@data-driven-forms/ant-component-mapper
Advanced tools
Comparing version 2.14.0 to 2.15.0
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react")),o=_interopDefault(require("prop-types")),n=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),p=require("./form-wrapper-c1c7139d.js"),a=require("./prop-types-templates-0afb0262.js"),s=require("./multiple-choice-list-3a894ad2.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var c=function FinalCheckbox(e){var o=e.isDisabled,i=e.label,p=r._objectWithoutProperties(e,["isDisabled","label"]);return t.createElement(n.Checkbox,r._extends({},p,{disabled:o}),i)};c.propTypes={isDisabled:o.bool,label:o.node};var l=function Wrapper(e){var r=e.label,o=e.isRequired,n=e.children,i=e.meta,a=e.validateOnMount,s=e.helperText,c=e.description,l=e.FormItemProps;return t.createElement(p.AntForm,{label:r,meta:i,validateOnMount:a,helperText:s,description:c,FormItemProps:l,isRequired:o},n)};l.propTypes=function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e._defineProperty(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({},s.wrapperProps);var u=function MultipleChoiceList(e){return t.createElement(s.MultipleChoiceListCommon,r._extends({},e,{Wrapper:l,Checkbox:c}))};u.propTypes={input:o.shape({name:o.string.isRequired})},function ___$insertStyle(e){if(e&&"undefined"!=typeof window){var r=document.createElement("style");return r.setAttribute("type","text/css"),r.innerHTML=e,document.head.appendChild(r),e}}(".ddorg__ant-component-mapper_is-required {\n color: #ff4d4f;\n margin-right: 4px;\n}");var d=function IsRequired(e){var r=e.children;return t.createElement(t.Fragment,null,t.createElement("span",{className:"ddorg__ant-component-mapper_is-required","aria-hidden":"true"},"*"),r)};function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(o),!0).forEach((function(t){e._defineProperty(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$1(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}d.propTypes={children:a.childrenPropTypes};var b=function SingleCheckbox(e){var o=i(_objectSpread$1(_objectSpread$1({},e),{},{type:"checkbox"})),a=o.input,s=o.isReadOnly,c=o.isDisabled,l=o.isRequired,u=o.label,b=o.helperText,f=o.description,m=o.validateOnMount,y=o.meta,O=o.FormItemProps,h=r._objectWithoutProperties(o,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return t.createElement(p.AntForm,{label:u,meta:y,validateOnMount:m,helperText:b,description:f,FormItemProps:O,isRequired:l,hideLabel:!0},t.createElement(n.Checkbox,r._extends({checked:a.checked},a,{defaultValue:a.value?a.value:void 0,disabled:c||s,value:a.name},h),l?t.createElement(d,null,u):u))};b.propTypes={isReadOnly:o.bool,isDisabled:o.bool,isRequired:o.bool,label:o.node,helperText:o.node,description:o.node,validateOnMount:o.bool,FormItemProps:o.object};var f=function Checkbox(e){var o=e.options,n=r._objectWithoutProperties(e,["options"]);return o?t.createElement(u,r._extends({options:o},n)):t.createElement(b,n)};f.propTypes={options:o.array},exports.SingleCheckbox=b,exports.default=f; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react")),o=_interopDefault(require("prop-types")),n=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),p=require("./form-wrapper-0427620d.js"),a=require("./prop-types-templates-0afb0262.js"),s=require("./multiple-choice-list-3a894ad2.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var l=function FinalCheckbox(e){var o=e.isDisabled,i=e.label,p=r._objectWithoutProperties(e,["isDisabled","label"]);return t.createElement(n.Checkbox,r._extends({},p,{disabled:o}),i)};l.propTypes={isDisabled:o.bool,label:o.node};var c=function Wrapper(e){var r=e.label,o=e.isRequired,n=e.children,i=e.meta,a=e.validateOnMount,s=e.helperText,l=e.description,c=e.FormItemProps;return t.createElement(p.AntForm,{label:r,meta:i,validateOnMount:a,helperText:s,description:l,FormItemProps:c,isRequired:o},n)};c.propTypes=function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e._defineProperty(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({},s.wrapperProps);var u=function MultipleChoiceList(e){return t.createElement(s.MultipleChoiceListCommon,r._extends({},e,{Wrapper:c,Checkbox:l}))};u.propTypes={input:o.shape({name:o.string.isRequired})},function ___$insertStyle(e){if(e&&"undefined"!=typeof window){var r=document.createElement("style");return r.setAttribute("type","text/css"),r.innerHTML=e,document.head.appendChild(r),e}}(".ddorg__ant-component-mapper_is-required {\n color: #ff4d4f;\n margin-right: 4px;\n}");var d=function IsRequired(e){var r=e.children;return t.createElement(t.Fragment,null,t.createElement("span",{className:"ddorg__ant-component-mapper_is-required","aria-hidden":"true"},"*"),r)};function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(o),!0).forEach((function(t){e._defineProperty(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$1(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}d.propTypes={children:a.childrenPropTypes};var b=function SingleCheckbox(e){var o=i(_objectSpread$1(_objectSpread$1({},e),{},{type:"checkbox"})),a=o.input,s=o.isReadOnly,l=o.isDisabled,c=o.isRequired,u=o.label,b=o.helperText,f=o.description,m=o.validateOnMount,y=o.meta,O=o.FormItemProps,h=r._objectWithoutProperties(o,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return t.createElement(p.AntForm,{label:u,meta:y,validateOnMount:m,helperText:b,description:f,FormItemProps:O,isRequired:c,hideLabel:!0},t.createElement(n.Checkbox,r._extends({checked:a.checked},a,{defaultValue:a.value?a.value:void 0,disabled:l||s,value:a.name},h),c?t.createElement(d,null,u):u))};b.propTypes={isReadOnly:o.bool,isDisabled:o.bool,isRequired:o.bool,label:o.node,helperText:o.node,description:o.node,validateOnMount:o.bool,FormItemProps:o.object};var f=function Checkbox(e){var o=e.options,n=r._objectWithoutProperties(e,["options"]);return o?t.createElement(u,r._extends({options:o},n)):t.createElement(b,n)};f.propTypes={options:o.array},exports.SingleCheckbox=b,exports.default=f; | ||
//# sourceMappingURL=checkbox.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}(require("@data-driven-forms/react-form-renderer/dist/cjs/component-types"));require("./objectWithoutProperties-3645d43b.js"),require("react"),require("prop-types"),require("@data-driven-forms/react-form-renderer/dist/cjs/use-form-api"),require("antd");var t=require("./tabs.js"),i=require("./plain-text.js");require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api"),require("./form-wrapper-c1c7139d.js"),require("./prop-types-templates-0afb0262.js");var a=require("./text-field.js"),d=require("./textarea.js");require("./multiple-choice-list-3a894ad2.js");var u=require("./checkbox.js"),f=require("./date-picker.js"),s=require("./time-picker.js"),l=require("./radio.js"),o=require("./switch.js"),n=require("./select.js"),p=require("./wizard.js");require("./slicedToArray-1aee7201.js"),require("./toConsumableArray-43caa138.js"),require("@data-driven-forms/react-form-renderer/dist/cjs/wizard-context");var c=require("./sub-form.js"),j=require("./dual-list-select.js");require("@data-driven-forms/react-form-renderer/dist/cjs/field-array");var q,y=require("./field-array.js"),_=require("./slider.js"),P={TextField:a.default,Textarea:d.default,Select:n.default,Checkbox:u.default,Radio:l.default,Switch:o.default,DatePicker:f.default,TimePicker:s.default,PlainText:i.default,SubForm:c.default,Wizard:p.default,DualListSelect:j.default,FieldArray:y.default,Slider:_.default},m=(q={},e._defineProperty(q,r.TEXT_FIELD,a.default),e._defineProperty(q,r.TEXTAREA,d.default),e._defineProperty(q,r.SELECT,n.default),e._defineProperty(q,r.CHECKBOX,u.default),e._defineProperty(q,r.SUB_FORM,c.default),e._defineProperty(q,r.RADIO,l.default),e._defineProperty(q,r.TABS,t.default),e._defineProperty(q,r.DATE_PICKER,f.default),e._defineProperty(q,r.TIME_PICKER,s.default),e._defineProperty(q,r.PLAIN_TEXT,i.default),e._defineProperty(q,r.SWITCH,o.default),e._defineProperty(q,r.WIZARD,p.default),e._defineProperty(q,r.SLIDER,_.default),e._defineProperty(q,r.DUAL_LIST_SELECT,j.default),e._defineProperty(q,r.FIELD_ARRAY,y.default),q);exports.components=P,exports.default=m; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}(require("@data-driven-forms/react-form-renderer/dist/cjs/component-types"));require("./objectWithoutProperties-3645d43b.js"),require("react"),require("prop-types"),require("@data-driven-forms/react-form-renderer/dist/cjs/use-form-api"),require("antd");var t=require("./tabs.js"),i=require("./plain-text.js");require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api"),require("./form-wrapper-0427620d.js"),require("./prop-types-templates-0afb0262.js");var a=require("./text-field.js"),d=require("./textarea.js");require("./multiple-choice-list-3a894ad2.js");var u=require("./checkbox.js"),f=require("./date-picker.js"),s=require("./time-picker.js"),l=require("./radio.js"),o=require("./switch.js"),n=require("./select.js"),p=require("./wizard.js");require("./slicedToArray-1aee7201.js"),require("./toConsumableArray-43caa138.js"),require("@data-driven-forms/react-form-renderer/dist/cjs/wizard-context");var c=require("./sub-form.js"),j=require("./dual-list-select.js");require("@data-driven-forms/react-form-renderer/dist/cjs/field-array");var q,y=require("./field-array.js"),_=require("./slider.js"),P={TextField:a.default,Textarea:d.default,Select:n.default,Checkbox:u.default,Radio:l.default,Switch:o.default,DatePicker:f.default,TimePicker:s.default,PlainText:i.default,SubForm:c.default,Wizard:p.default,DualListSelect:j.default,FieldArray:y.default,Slider:_.default},m=(q={},e._defineProperty(q,r.TEXT_FIELD,a.default),e._defineProperty(q,r.TEXTAREA,d.default),e._defineProperty(q,r.SELECT,n.default),e._defineProperty(q,r.CHECKBOX,u.default),e._defineProperty(q,r.SUB_FORM,c.default),e._defineProperty(q,r.RADIO,l.default),e._defineProperty(q,r.TABS,t.default),e._defineProperty(q,r.DATE_PICKER,f.default),e._defineProperty(q,r.TIME_PICKER,s.default),e._defineProperty(q,r.PLAIN_TEXT,i.default),e._defineProperty(q,r.SWITCH,o.default),e._defineProperty(q,r.WIZARD,p.default),e._defineProperty(q,r.SLIDER,_.default),e._defineProperty(q,r.DUAL_LIST_SELECT,j.default),e._defineProperty(q,r.FIELD_ARRAY,y.default),q);exports.components=P,exports.default=m; | ||
//# sourceMappingURL=component-mapper.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),l=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var i=function DatePicker(t){var i=l(t),d=i.input,n=i.isReadOnly,p=i.isDisabled,s=i.placeholder,u=i.isRequired,c=i.label,b=i.helperText,f=i.description,m=i.validateOnMount,v=i.meta,q=i.FormItemProps,h=e._objectWithoutProperties(i,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),P=a.validationError(v,m);return r.createElement(a.AntForm,{label:c,meta:v,validateOnMount:m,helperText:b,description:f,FormItemProps:q,isRequired:u},r.createElement(o.DatePicker,e._extends({disabled:p||n,defaultValue:d.value?d.value:void 0,placeholder:s,required:u,error:!!P,readOnly:n},d,{value:d.value||null},h)))};i.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,locale:t.string,description:t.node,FormItemProps:t.object},i.defaultProps={placeholder:"Select date"},exports.default=i; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),l=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var i=function DatePicker(t){var i=l(t),d=i.input,n=i.isReadOnly,p=i.isDisabled,s=i.placeholder,u=i.isRequired,c=i.label,b=i.helperText,f=i.description,m=i.validateOnMount,v=i.meta,q=i.FormItemProps,h=e._objectWithoutProperties(i,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),P=a.validationError(v,m);return r.createElement(a.AntForm,{label:c,meta:v,validateOnMount:m,helperText:b,description:f,FormItemProps:q,isRequired:u},r.createElement(o.DatePicker,e._extends({disabled:p||n,defaultValue:d.value?d.value:void 0,placeholder:s,required:u,error:!!P,readOnly:n},d,{value:d.value||null},h)))};i.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,locale:t.string,description:t.node,FormItemProps:t.object},i.defaultProps={placeholder:"Select date"},exports.default=i; | ||
//# sourceMappingURL=date-picker.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react"));require("prop-types");var n=require("antd"),o=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),i=require("./form-wrapper-c1c7139d.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}require("./prop-types-templates-0afb0262.js");exports.default=function DualListSelect(u){var a=o(u),p=a.input,c=p.onChange,s=p.value,l=void 0===s?[]:s,f=r._objectWithoutProperties(p,["onChange","value"]),d=a.meta,b=a.validateOnMount,j=a.helperText,y=a.description,O=a.FormItemProps,m=a.isRequired,v=a.options,P=void 0===v?[]:v,h=a.label,g=r._objectWithoutProperties(a,["input","meta","validateOnMount","helperText","description","FormItemProps","isRequired","options","label"]),q=P.map((function(r){return function _objectSpread(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){e._defineProperty(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}({key:r.value},r)}));return t.createElement(i.AntForm,{label:h,meta:d,validateOnMount:b,helperText:j,description:y,FormItemProps:O,isRequired:m},t.createElement(n.Transfer,r._extends({},f,{targetKeys:l,onChange:function onChange(e){return c(e.filter((function(e){return P.find((function(r){return r.value===e}))})))},render:function render(e){return e.label},dataSource:q},g)))}; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react"));require("prop-types");var n=require("antd"),o=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),i=require("./form-wrapper-0427620d.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}require("./prop-types-templates-0afb0262.js");exports.default=function DualListSelect(u){var a=o(u),p=a.input,s=p.onChange,c=p.value,l=void 0===c?[]:c,f=r._objectWithoutProperties(p,["onChange","value"]),d=a.meta,b=a.validateOnMount,j=a.helperText,y=a.description,O=a.FormItemProps,m=a.isRequired,v=a.options,P=void 0===v?[]:v,h=a.label,g=r._objectWithoutProperties(a,["input","meta","validateOnMount","helperText","description","FormItemProps","isRequired","options","label"]),q=P.map((function(r){return function _objectSpread(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){e._defineProperty(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}({key:r.value},r)}));return t.createElement(i.AntForm,{label:h,meta:d,validateOnMount:b,helperText:j,description:y,FormItemProps:O,isRequired:m},t.createElement(n.Transfer,r._extends({},f,{targetKeys:l,onChange:function onChange(e){return s(e.filter((function(e){return P.find((function(r){return r.value===e}))})))},render:function render(e){return e.label},dataSource:q},g)))}; | ||
//# sourceMappingURL=dual-list-select.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=require("react"),n=_interopDefault(t),o=_interopDefault(require("prop-types")),a=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-form-api")),i=require("antd"),s=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),l=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var c=require("./slicedToArray-1aee7201.js"),u=require("./toConsumableArray-43caa138.js"),d=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/field-array"));function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _slicedToArray(e,r){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return t}}(e,r)||function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}(e,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f=r.createCommonjsModule((function(e){ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=require("react"),n=_interopDefault(t),o=_interopDefault(require("prop-types")),a=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-form-api")),i=require("antd"),s=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),l=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var c=require("./slicedToArray-1aee7201.js"),u=require("./toConsumableArray-43caa138.js"),d=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/field-array"));function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _slicedToArray(e,r){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return t}}(e,r)||function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}(e,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f=r.createCommonjsModule((function(e){ | ||
/*! | ||
@@ -3,0 +3,0 @@ Copyright (c) 2017 Jed Watson. |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./defineProperty-75110086.js"),require("@data-driven-forms/react-form-renderer/dist/cjs/component-types"),require("./objectWithoutProperties-3645d43b.js"),require("react"),require("prop-types"),require("@data-driven-forms/react-form-renderer/dist/cjs/use-form-api"),require("antd");var e=require("./tabs.js"),r=require("./plain-text.js");require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api"),require("./form-wrapper-c1c7139d.js"),require("./prop-types-templates-0afb0262.js"),require("./text-field.js");var t=require("./textarea.js");require("./multiple-choice-list-3a894ad2.js");var s=require("./checkbox.js"),a=require("./date-picker.js"),i=require("./time-picker.js"),o=require("./radio.js"),d=require("./switch.js"),u=require("./select.js"),p=require("./wizard.js");require("./slicedToArray-1aee7201.js"),require("./toConsumableArray-43caa138.js"),require("@data-driven-forms/react-form-renderer/dist/cjs/wizard-context");var l=require("./sub-form.js"),c=require("./dual-list-select.js");require("@data-driven-forms/react-form-renderer/dist/cjs/field-array");var f=require("./field-array.js"),q=require("./slider.js"),j=require("./component-mapper.js");require("@data-driven-forms/react-form-renderer/dist/cjs/form-spy");var m=require("./form-template.js");exports.Tabs=e.default,exports.PlainText=r.default,exports.Textarea=t.default,exports.Checkbox=s.default,exports.DatePicker=a.default,exports.TimePicker=i.default,exports.Radio=o.default,exports.Switch=d.default,exports.Select=u.default,exports.Wizard=p.default,exports.SubForm=l.default,exports.DualListSelect=c.default,exports.FieldArray=f.default,exports.Slider=q.default,exports.componentMapper=j.default,exports.components=j.components,exports.FormTemplate=m.default; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./defineProperty-75110086.js"),require("@data-driven-forms/react-form-renderer/dist/cjs/component-types"),require("./objectWithoutProperties-3645d43b.js"),require("react"),require("prop-types"),require("@data-driven-forms/react-form-renderer/dist/cjs/use-form-api"),require("antd");var e=require("./tabs.js"),r=require("./plain-text.js");require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api"),require("./form-wrapper-0427620d.js"),require("./prop-types-templates-0afb0262.js"),require("./text-field.js");var t=require("./textarea.js");require("./multiple-choice-list-3a894ad2.js");var s=require("./checkbox.js"),a=require("./date-picker.js"),i=require("./time-picker.js"),o=require("./radio.js"),d=require("./switch.js"),u=require("./select.js"),p=require("./wizard.js");require("./slicedToArray-1aee7201.js"),require("./toConsumableArray-43caa138.js"),require("@data-driven-forms/react-form-renderer/dist/cjs/wizard-context");var l=require("./sub-form.js"),f=require("./dual-list-select.js");require("@data-driven-forms/react-form-renderer/dist/cjs/field-array");var c=require("./field-array.js"),q=require("./slider.js"),j=require("./component-mapper.js");require("@data-driven-forms/react-form-renderer/dist/cjs/form-spy");var m=require("./form-template.js");exports.Tabs=e.default,exports.PlainText=r.default,exports.Textarea=t.default,exports.Checkbox=s.default,exports.DatePicker=a.default,exports.TimePicker=i.default,exports.Radio=o.default,exports.Switch=d.default,exports.Select=u.default,exports.Wizard=p.default,exports.SubForm=l.default,exports.DualListSelect=f.default,exports.FieldArray=c.default,exports.Slider=q.default,exports.componentMapper=j.default,exports.components=j.components,exports.FormTemplate=m.default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react")),o=_interopDefault(require("prop-types")),i=require("antd"),a=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),n=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var p=require("./multiple-choice-list-3a894ad2.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e._defineProperty(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var s=function RadioOption(e){var o=e.name,n=e.option,p=r._objectWithoutProperties(e,["name","option"]),s=a({name:o,type:"radio",value:n.value}).input;return t.createElement(i.Radio,r._extends({key:"".concat(o,"-").concat(n.value)},s,{id:"".concat(o,"-").concat(n.value)},p),n.label)};s.propTypes={name:o.string.isRequired,option:o.shape({label:o.string.isRequired,value:o.any.isRequired}).isRequired};var u=function Radio(e){var o=e.name,p=r._objectWithoutProperties(e,["name"]),u=a(_objectSpread(_objectSpread({},p),{},{name:o,type:"radio"})),l=u.options,c=u.isDisabled,d=u.label,b=u.isRequired,f=u.helperText,m=u.description,y=u.isReadOnly,j=u.meta,O=u.validateOnMount,v=u.FormItemProps,P=r._objectWithoutProperties(u,["options","isDisabled","label","isRequired","helperText","description","isReadOnly","meta","validateOnMount","FormItemProps"]);return t.createElement(n.AntForm,{label:d,meta:j,validateOnMount:O,helperText:f,description:m,FormItemProps:v,isRequired:b},t.createElement(i.Radio.Group,r._extends({name:o,disabled:c||y},P),l.map((function(e){return t.createElement(s,{key:e.value,name:o,option:e})}))))};u.propTypes=_objectSpread(_objectSpread({},p.wrapperProps),{},{options:o.arrayOf(o.shape({value:o.any,label:o.node})),label:o.node.isRequired,isDisabled:o.bool,isReadOnly:o.bool,description:o.node,FormItemProps:o.object}),u.defaultProps={options:[]},exports.default=u; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),r=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react")),o=_interopDefault(require("prop-types")),i=require("antd"),a=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),n=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var p=require("./multiple-choice-list-3a894ad2.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e._defineProperty(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var s=function RadioOption(e){var o=e.name,n=e.option,p=r._objectWithoutProperties(e,["name","option"]),s=a({name:o,type:"radio",value:n.value}).input;return t.createElement(i.Radio,r._extends({key:"".concat(o,"-").concat(n.value)},s,{id:"".concat(o,"-").concat(n.value)},p),n.label)};s.propTypes={name:o.string.isRequired,option:o.shape({label:o.string.isRequired,value:o.any.isRequired}).isRequired};var u=function Radio(e){var o=e.name,p=r._objectWithoutProperties(e,["name"]),u=a(_objectSpread(_objectSpread({},p),{},{name:o,type:"radio"})),l=u.options,c=u.isDisabled,d=u.label,b=u.isRequired,f=u.helperText,m=u.description,y=u.isReadOnly,j=u.meta,O=u.validateOnMount,v=u.FormItemProps,P=r._objectWithoutProperties(u,["options","isDisabled","label","isRequired","helperText","description","isReadOnly","meta","validateOnMount","FormItemProps"]);return t.createElement(n.AntForm,{label:d,meta:j,validateOnMount:O,helperText:f,description:m,FormItemProps:v,isRequired:b},t.createElement(i.Radio.Group,r._extends({name:o,disabled:c||y},P),l.map((function(e){return t.createElement(s,{key:e.value,name:o,option:e})}))))};u.propTypes=_objectSpread(_objectSpread({},p.wrapperProps),{},{options:o.arrayOf(o.shape({value:o.any,label:o.node})),label:o.node.isRequired,isDisabled:o.bool,isReadOnly:o.bool,description:o.node,FormItemProps:o.object}),u.defaultProps={options:[]},exports.default=u; | ||
//# sourceMappingURL=radio.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react")),r=_interopDefault(require("prop-types")),l=require("antd"),o=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var i=l.Select.Option,n=function Select(r){var n=o(r),u=n.input,s=n.isReadOnly,p=n.isDisabled,d=n.isClearable,c=n.placeholder,b=n.isRequired,f=n.label,v=n.helperText,m=n.validateOnMount,h=n.meta,q=n.options,O=n.isSearchable,y=n.description,C=n.FormItemProps,j=n.isMulti,R=e._objectWithoutProperties(n,["input","isReadOnly","isDisabled","isClearable","placeholder","isRequired","label","helperText","validateOnMount","meta","options","isSearchable","description","FormItemProps","isMulti"]);return t.createElement(a.AntForm,{label:f,meta:h,validateOnMount:m,helperText:v,description:y,FormItemProps:C,isRequired:b},t.createElement(l.Select,e._extends({},u,{value:u.value?u.value:void 0,defaultValue:u.value?u.value:void 0,placeholder:c||"Please choose",mode:j?"multiple":"",showSearch:!!O||j,filterOption:function filterOption(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},required:b,allowClear:d,notFoundContent:"No option found",disabled:p||s,onChange:function onChange(e,t){return u.onChange(j?function selectValue(e){return e.sort((function(e,t){return e.label.localeCompare(t.label,"en",{sensitivity:"base"})})).map((function(e){return e.value}))}(t):t?t.value:void 0)},input:u},R),q.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"value")&&null!==e.value})).map((function(e){var r=e.value,l=e.label;return t.createElement(i,{key:r,value:r,label:l},l)}))))};n.propTypes={isReadOnly:r.bool,isClearable:r.bool,isDisabled:r.bool,placeholder:r.node,isRequired:r.bool,label:r.node,helperText:r.node,validateOnMount:r.bool,isSearchable:r.bool,options:r.arrayOf(r.shape({value:r.any.isRequired,label:r.node.isRequired})).isRequired,description:r.node,FormItemProps:r.object,isMulti:r.bool},exports.default=n; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),t=_interopDefault(require("react")),r=_interopDefault(require("prop-types")),l=require("antd"),o=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var i=l.Select.Option,n=function Select(r){var n=o(r),u=n.input,s=n.isReadOnly,p=n.isDisabled,d=n.isClearable,c=n.placeholder,b=n.isRequired,f=n.label,v=n.helperText,m=n.validateOnMount,h=n.meta,q=n.options,O=n.isSearchable,y=n.description,C=n.FormItemProps,j=n.isMulti,R=e._objectWithoutProperties(n,["input","isReadOnly","isDisabled","isClearable","placeholder","isRequired","label","helperText","validateOnMount","meta","options","isSearchable","description","FormItemProps","isMulti"]);return t.createElement(a.AntForm,{label:f,meta:h,validateOnMount:m,helperText:v,description:y,FormItemProps:C,isRequired:b},t.createElement(l.Select,e._extends({},u,{value:u.value?u.value:void 0,defaultValue:u.value?u.value:void 0,placeholder:c||"Please choose",mode:j?"multiple":"",showSearch:!!O||j,filterOption:function filterOption(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},required:b,allowClear:d,notFoundContent:"No option found",disabled:p||s,onChange:function onChange(e,t){return u.onChange(j?function selectValue(e){return e.sort((function(e,t){return e.label.localeCompare(t.label,"en",{sensitivity:"base"})})).map((function(e){return e.value}))}(t):t?t.value:void 0)},input:u},R),q.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"value")&&null!==e.value})).map((function(e){var r=e.value,l=e.label;return t.createElement(i,{key:r,value:r,label:l},l)}))))};n.propTypes={isReadOnly:r.bool,isClearable:r.bool,isDisabled:r.bool,placeholder:r.node,isRequired:r.bool,label:r.node,helperText:r.node,validateOnMount:r.bool,isSearchable:r.bool,options:r.arrayOf(r.shape({value:r.any.isRequired,label:r.node.isRequired})).isRequired,description:r.node,FormItemProps:r.object,isMulti:r.bool},exports.default=n; | ||
//# sourceMappingURL=select.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=require("react"),t=_interopDefault(r);require("prop-types");var i=require("antd"),a=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),n=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");exports.default=function Slider(o){var s=a(o),u=s.input,l=u.value,d=u.onChange,p=e._objectWithoutProperties(u,["value","onChange"]),m=s.meta,c=s.label,f=s.validateOnMount,b=s.helperText,v=s.description,q=s.FormItemProps,y=s.isRequired,h=s.range,j=s.min,x=void 0===j?0:j,_=s.max,P=void 0===_?100:_,g=s.isDisabled,O=s.isReadOnly,A=e._objectWithoutProperties(s,["input","meta","label","validateOnMount","helperText","description","FormItemProps","isRequired","range","min","max","isDisabled","isReadOnly"]);return r.useEffect((function(){!0!==h||l&&Array.isArray(l)||d([x,P])}),[x,P,h,l,d]),t.createElement(n.AntForm,{label:c,meta:m,validateOnMount:f,helperText:b,description:v,FormItemProps:q,isRequired:y},t.createElement(i.Slider,e._extends({disabled:g||O,onChange:d},p,{value:!0!==h||Array.isArray(l)?l:[x,P],range:h,min:x,max:P},A)))}; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=require("react"),t=_interopDefault(r);require("prop-types");var i=require("antd"),a=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),n=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");exports.default=function Slider(o){var s=a(o),u=s.input,l=u.value,d=u.onChange,p=e._objectWithoutProperties(u,["value","onChange"]),m=s.meta,c=s.label,f=s.validateOnMount,b=s.helperText,v=s.description,q=s.FormItemProps,y=s.isRequired,h=s.range,j=s.min,x=void 0===j?0:j,_=s.max,P=void 0===_?100:_,g=s.isDisabled,O=s.isReadOnly,A=e._objectWithoutProperties(s,["input","meta","label","validateOnMount","helperText","description","FormItemProps","isRequired","range","min","max","isDisabled","isReadOnly"]);return r.useEffect((function(){!0!==h||l&&Array.isArray(l)||d([x,P])}),[x,P,h,l,d]),t.createElement(n.AntForm,{label:c,meta:m,validateOnMount:f,helperText:b,description:v,FormItemProps:q,isRequired:y},t.createElement(i.Slider,e._extends({disabled:g||O,onChange:d},p,{value:!0!==h||Array.isArray(l)?l:[x,P],range:h,min:x,max:P},A)))}; | ||
//# sourceMappingURL=slider.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),t=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),o=_interopDefault(require("prop-types")),n=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-c1c7139d.js");function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){e._defineProperty(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}require("./prop-types-templates-0afb0262.js");var p=function Switch(e){var o=i(_objectSpread(_objectSpread({},e),{},{type:"checkbox"})),p=o.input,l=o.isReadOnly,s=o.isDisabled,c=o.isRequired,d=o.label,u=o.helperText,b=o.description,f=o.validateOnMount,y=o.meta,O=o.onText,j=o.offText,m=o.FormItemProps,h=t._objectWithoutProperties(o,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","onText","offText","FormItemProps"]),v=p.name,P=p.value,x=p.onChange,w=p.onBlur;return r.createElement(a.AntForm,{label:d,meta:y,validateOnMount:f,helperText:u,description:b,FormItemProps:m,isRequired:c},r.createElement(n.Switch,t._extends({},h,{defaultValue:p.value?p.value:void 0,onChange:x,checked:P,name:v,onClick:w,checkedChildren:O,unCheckedChildren:j,disabled:s||l})))};p.propTypes={isReadOnly:o.bool,isDisabled:o.bool,isRequired:o.bool,label:o.node,helperText:o.node,validateOnMount:o.bool,onText:o.node,offText:o.node,description:o.node,FormItemProps:o.object},exports.Switch=p,exports.default=p; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defineProperty-75110086.js"),t=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),o=_interopDefault(require("prop-types")),n=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-0427620d.js");function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){e._defineProperty(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}require("./prop-types-templates-0afb0262.js");var p=function Switch(e){var o=i(_objectSpread(_objectSpread({},e),{},{type:"checkbox"})),p=o.input,l=o.isReadOnly,s=o.isDisabled,c=o.isRequired,d=o.label,u=o.helperText,b=o.description,f=o.validateOnMount,y=o.meta,O=o.onText,j=o.offText,m=o.FormItemProps,h=t._objectWithoutProperties(o,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","onText","offText","FormItemProps"]),v=p.name,P=p.value,x=p.onChange,w=p.onBlur;return r.createElement(a.AntForm,{label:d,meta:y,validateOnMount:f,helperText:u,description:b,FormItemProps:m,isRequired:c},r.createElement(n.Switch,t._extends({},h,{defaultValue:p.value?p.value:void 0,onChange:x,checked:P,name:v,onClick:w,checkedChildren:O,unCheckedChildren:j,disabled:s||l})))};p.propTypes={isReadOnly:o.bool,isDisabled:o.bool,isRequired:o.bool,label:o.node,helperText:o.node,validateOnMount:o.bool,onText:o.node,offText:o.node,description:o.node,FormItemProps:o.object},exports.Switch=p,exports.default=p; | ||
//# sourceMappingURL=switch.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),l=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var a=function TextField(t){var a=i(t),d=a.input,n=a.isReadOnly,p=a.isDisabled,s=a.placeholder,u=a.isRequired,c=a.label,b=a.helperText,m=a.description,f=a.validateOnMount,v=a.meta,q=a.FormItemProps,h=e._objectWithoutProperties(a,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return r.createElement(l.AntForm,{label:c,meta:v,validateOnMount:f,helperText:b,description:m,FormItemProps:q,isRequired:u},r.createElement(o.Input,e._extends({},d,{defaultValue:d.value?d.value:void 0,disabled:p,readOnly:n,placeholder:s},h)))};a.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object},exports.default=a; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),l=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var a=function TextField(t){var a=i(t),d=a.input,n=a.isReadOnly,p=a.isDisabled,s=a.placeholder,u=a.isRequired,c=a.label,b=a.helperText,m=a.description,f=a.validateOnMount,v=a.meta,q=a.FormItemProps,h=e._objectWithoutProperties(a,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return r.createElement(l.AntForm,{label:c,meta:v,validateOnMount:f,helperText:b,description:m,FormItemProps:q,isRequired:u},r.createElement(o.Input,e._extends({},d,{defaultValue:d.value?d.value:void 0,disabled:p,readOnly:n,placeholder:s},h)))};a.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object},exports.default=a; | ||
//# sourceMappingURL=text-field.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var l=o.Input.TextArea,d=function Textarea(t){var o=i(t),d=o.input,n=o.isReadOnly,p=o.isDisabled,s=o.placeholder,u=o.isRequired,c=o.label,b=o.helperText,m=o.description,f=o.validateOnMount,v=o.meta,q=o.FormItemProps,h=e._objectWithoutProperties(o,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return r.createElement(a.AntForm,{label:c,meta:v,validateOnMount:f,helperText:b,description:m,FormItemProps:q,isRequired:u},r.createElement(l,e._extends({},d,{defaultValue:d.value?d.value:void 0,disabled:p,readOnly:n,placeholder:s},h)))};d.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object},exports.default=d; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),a=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var l=o.Input.TextArea,d=function Textarea(t){var o=i(t),d=o.input,n=o.isReadOnly,p=o.isDisabled,s=o.placeholder,u=o.isRequired,c=o.label,b=o.helperText,m=o.description,f=o.validateOnMount,v=o.meta,q=o.FormItemProps,h=e._objectWithoutProperties(o,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return r.createElement(a.AntForm,{label:c,meta:v,validateOnMount:f,helperText:b,description:m,FormItemProps:q,isRequired:u},r.createElement(l,e._extends({},d,{defaultValue:d.value?d.value:void 0,disabled:p,readOnly:n,placeholder:s},h)))};d.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object},exports.default=d; | ||
//# sourceMappingURL=textarea.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),l=require("./form-wrapper-c1c7139d.js");require("./prop-types-templates-0afb0262.js");var a=function TimePicker(t){var a=i(t),d=a.input,s=a.isReadOnly,u=a.isDisabled,n=a.placeholder,p=a.isRequired,c=a.label,m=a.helperText,b=a.description,f=a.validateOnMount,v=a.meta,h=a.FormItemProps,q=e._objectWithoutProperties(a,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),P=l.validationError(v,f);return r.createElement(l.AntForm,{label:c,meta:v,validateOnMount:f,helperText:m,description:b,FormItemProps:h,isRequired:p},r.createElement(o.TimePicker,e._extends({use12Hours:!0,format:"h:mm a",disabled:u||s,placeholder:n,required:p,error:!!P,readOnly:s,defaultValue:d.value?d.value:void 0},d,{value:d.value||null},q)))};a.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,locale:t.string,description:t.node,FormItemProps:t.object},a.defaultProps={placeholder:"Select date"},exports.default=a; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./objectWithoutProperties-3645d43b.js"),r=_interopDefault(require("react")),t=_interopDefault(require("prop-types")),o=require("antd"),i=_interopDefault(require("@data-driven-forms/react-form-renderer/dist/cjs/use-field-api")),l=require("./form-wrapper-0427620d.js");require("./prop-types-templates-0afb0262.js");var a=function TimePicker(t){var a=i(t),d=a.input,s=a.isReadOnly,u=a.isDisabled,n=a.placeholder,p=a.isRequired,c=a.label,m=a.helperText,b=a.description,f=a.validateOnMount,v=a.meta,h=a.FormItemProps,q=e._objectWithoutProperties(a,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),P=l.validationError(v,f);return r.createElement(l.AntForm,{label:c,meta:v,validateOnMount:f,helperText:m,description:b,FormItemProps:h,isRequired:p},r.createElement(o.TimePicker,e._extends({use12Hours:!0,format:"h:mm a",disabled:u||s,placeholder:n,required:p,error:!!P,readOnly:s,defaultValue:d.value?d.value:void 0},d,{value:d.value||null},q)))};a.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,locale:t.string,description:t.node,FormItemProps:t.object},a.defaultProps={placeholder:"Select date"},exports.default=a; | ||
//# sourceMappingURL=time-picker.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as r,a as t}from"./objectWithoutProperties-97c77114.js";import o from"react";import n from"prop-types";import{Checkbox as i}from"antd";import a from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as p}from"./form-wrapper-b23cac05.js";import{c as s}from"./prop-types-templates-ed0445bb.js";import{w as c,M as l}from"./multiple-choice-list-27577f8f.js";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var d=function FinalCheckbox(e){var n=e.isDisabled,a=e.label,p=r(e,["isDisabled","label"]);return o.createElement(i,t({},p,{disabled:n}),a)};d.propTypes={isDisabled:n.bool,label:n.node};var u=function Wrapper(e){var r=e.label,t=e.isRequired,n=e.children,i=e.meta,a=e.validateOnMount,s=e.helperText,c=e.description,l=e.FormItemProps;return o.createElement(p,{label:r,meta:i,validateOnMount:a,helperText:s,description:c,FormItemProps:l,isRequired:t},n)};u.propTypes=function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({},c);var m=function MultipleChoiceList(e){return o.createElement(l,t({},e,{Wrapper:u,Checkbox:d}))};m.propTypes={input:n.shape({name:n.string.isRequired})},function ___$insertStyle(e){if(e&&"undefined"!=typeof window){var r=document.createElement("style");return r.setAttribute("type","text/css"),r.innerHTML=e,document.head.appendChild(r),e}}(".ddorg__ant-component-mapper_is-required {\n color: #ff4d4f;\n margin-right: 4px;\n}");var b=function IsRequired(e){var r=e.children;return o.createElement(o.Fragment,null,o.createElement("span",{className:"ddorg__ant-component-mapper_is-required","aria-hidden":"true"},"*"),r)};function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$1(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}b.propTypes={children:s};var f=function SingleCheckbox(e){var n=a(_objectSpread$1(_objectSpread$1({},e),{},{type:"checkbox"})),s=n.input,c=n.isReadOnly,l=n.isDisabled,d=n.isRequired,u=n.label,m=n.helperText,f=n.description,y=n.validateOnMount,O=n.meta,h=n.FormItemProps,j=r(n,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return o.createElement(p,{label:u,meta:O,validateOnMount:y,helperText:m,description:f,FormItemProps:h,isRequired:d,hideLabel:!0},o.createElement(i,t({checked:s.checked},s,{defaultValue:s.value?s.value:void 0,disabled:l||c,value:s.name},j),d?o.createElement(b,null,u):u))};f.propTypes={isReadOnly:n.bool,isDisabled:n.bool,isRequired:n.bool,label:n.node,helperText:n.node,description:n.node,validateOnMount:n.bool,FormItemProps:n.object};var y=function Checkbox(e){var n=e.options,i=r(e,["options"]);return n?o.createElement(m,t({options:n},i)):o.createElement(f,i)};y.propTypes={options:n.array};export default y;export{f as SingleCheckbox}; | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as r,a as t}from"./objectWithoutProperties-97c77114.js";import o from"react";import n from"prop-types";import{Checkbox as i}from"antd";import a from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as p}from"./form-wrapper-29aa56a7.js";import{c as s}from"./prop-types-templates-ed0445bb.js";import{w as c,M as l}from"./multiple-choice-list-27577f8f.js";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var d=function FinalCheckbox(e){var n=e.isDisabled,a=e.label,p=r(e,["isDisabled","label"]);return o.createElement(i,t({},p,{disabled:n}),a)};d.propTypes={isDisabled:n.bool,label:n.node};var u=function Wrapper(e){var r=e.label,t=e.isRequired,n=e.children,i=e.meta,a=e.validateOnMount,s=e.helperText,c=e.description,l=e.FormItemProps;return o.createElement(p,{label:r,meta:i,validateOnMount:a,helperText:s,description:c,FormItemProps:l,isRequired:t},n)};u.propTypes=function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({},c);var m=function MultipleChoiceList(e){return o.createElement(l,t({},e,{Wrapper:u,Checkbox:d}))};m.propTypes={input:n.shape({name:n.string.isRequired})},function ___$insertStyle(e){if(e&&"undefined"!=typeof window){var r=document.createElement("style");return r.setAttribute("type","text/css"),r.innerHTML=e,document.head.appendChild(r),e}}(".ddorg__ant-component-mapper_is-required {\n color: #ff4d4f;\n margin-right: 4px;\n}");var b=function IsRequired(e){var r=e.children;return o.createElement(o.Fragment,null,o.createElement("span",{className:"ddorg__ant-component-mapper_is-required","aria-hidden":"true"},"*"),r)};function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys$1(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}b.propTypes={children:s};var f=function SingleCheckbox(e){var n=a(_objectSpread$1(_objectSpread$1({},e),{},{type:"checkbox"})),s=n.input,c=n.isReadOnly,l=n.isDisabled,d=n.isRequired,u=n.label,m=n.helperText,f=n.description,y=n.validateOnMount,O=n.meta,h=n.FormItemProps,j=r(n,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return o.createElement(p,{label:u,meta:O,validateOnMount:y,helperText:m,description:f,FormItemProps:h,isRequired:d,hideLabel:!0},o.createElement(i,t({checked:s.checked},s,{defaultValue:s.value?s.value:void 0,disabled:l||c,value:s.name},j),d?o.createElement(b,null,u):u))};f.propTypes={isReadOnly:n.bool,isDisabled:n.bool,isRequired:n.bool,label:n.node,helperText:n.node,description:n.node,validateOnMount:n.bool,FormItemProps:n.object};var y=function Checkbox(e){var n=e.options,i=r(e,["options"]);return n?o.createElement(m,t({options:n},i)):o.createElement(f,i)};y.propTypes={options:n.array};export default y;export{f as SingleCheckbox}; | ||
//# sourceMappingURL=checkbox.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as r}from"./defineProperty-984bc41a.js";import e from"@data-driven-forms/react-form-renderer/dist/esm/component-types";import"./objectWithoutProperties-97c77114.js";import"react";import"prop-types";import"@data-driven-forms/react-form-renderer/dist/esm/use-form-api";import"antd";import t from"./tabs.js";import o from"./plain-text.js";import"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";import i from"./text-field.js";import m from"./textarea.js";import"./multiple-choice-list-27577f8f.js";import s from"./checkbox.js";import a from"./date-picker.js";import p from"./time-picker.js";import d from"./radio.js";import f from"./switch.js";import c from"./select.js";import l from"./wizard.js";import"./slicedToArray-6324ad71.js";import"./toConsumableArray-48c131d8.js";import"@data-driven-forms/react-form-renderer/dist/esm/wizard-context";import j from"./sub-form.js";import n from"./dual-list-select.js";import"@data-driven-forms/react-form-renderer/dist/esm/field-array";import T from"./field-array.js";import E from"./slider.js";var A,S={TextField:i,Textarea:m,Select:c,Checkbox:s,Radio:d,Switch:f,DatePicker:a,TimePicker:p,PlainText:o,SubForm:j,Wizard:l,DualListSelect:n,FieldArray:T,Slider:E},b=(r(A={},e.TEXT_FIELD,i),r(A,e.TEXTAREA,m),r(A,e.SELECT,c),r(A,e.CHECKBOX,s),r(A,e.SUB_FORM,j),r(A,e.RADIO,d),r(A,e.TABS,t),r(A,e.DATE_PICKER,a),r(A,e.TIME_PICKER,p),r(A,e.PLAIN_TEXT,o),r(A,e.SWITCH,f),r(A,e.WIZARD,l),r(A,e.SLIDER,E),r(A,e.DUAL_LIST_SELECT,n),r(A,e.FIELD_ARRAY,T),A);export default b;export{S as components}; | ||
import{_ as r}from"./defineProperty-984bc41a.js";import e from"@data-driven-forms/react-form-renderer/dist/esm/component-types";import"./objectWithoutProperties-97c77114.js";import"react";import"prop-types";import"@data-driven-forms/react-form-renderer/dist/esm/use-form-api";import"antd";import t from"./tabs.js";import o from"./plain-text.js";import"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";import i from"./text-field.js";import m from"./textarea.js";import"./multiple-choice-list-27577f8f.js";import s from"./checkbox.js";import a from"./date-picker.js";import p from"./time-picker.js";import d from"./radio.js";import f from"./switch.js";import c from"./select.js";import l from"./wizard.js";import"./slicedToArray-6324ad71.js";import"./toConsumableArray-48c131d8.js";import"@data-driven-forms/react-form-renderer/dist/esm/wizard-context";import j from"./sub-form.js";import n from"./dual-list-select.js";import"@data-driven-forms/react-form-renderer/dist/esm/field-array";import T from"./field-array.js";import E from"./slider.js";var A,S={TextField:i,Textarea:m,Select:c,Checkbox:s,Radio:d,Switch:f,DatePicker:a,TimePicker:p,PlainText:o,SubForm:j,Wizard:l,DualListSelect:n,FieldArray:T,Slider:E},x=(r(A={},e.TEXT_FIELD,i),r(A,e.TEXTAREA,m),r(A,e.SELECT,c),r(A,e.CHECKBOX,s),r(A,e.SUB_FORM,j),r(A,e.RADIO,d),r(A,e.TABS,t),r(A,e.DATE_PICKER,a),r(A,e.TIME_PICKER,p),r(A,e.PLAIN_TEXT,o),r(A,e.SWITCH,f),r(A,e.WIZARD,l),r(A,e.SLIDER,E),r(A,e.DUAL_LIST_SELECT,n),r(A,e.FIELD_ARRAY,T),A);export default x;export{S as components}; | ||
//# sourceMappingURL=component-mapper.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import t from"prop-types";import{DatePicker as a}from"antd";import l from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{v as i,A as d}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";var p=function DatePicker(t){var p=l(t),s=p.input,n=p.isReadOnly,m=p.isDisabled,u=p.placeholder,c=p.isRequired,b=p.label,f=p.helperText,v=p.description,h=p.validateOnMount,O=p.meta,P=p.FormItemProps,y=e(p,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),R=i(O,h);return o.createElement(d,{label:b,meta:O,validateOnMount:h,helperText:f,description:v,FormItemProps:P,isRequired:c},o.createElement(a,r({disabled:m||n,defaultValue:s.value?s.value:void 0,placeholder:u,required:c,error:!!R,readOnly:n},s,{value:s.value||null},y)))};p.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,locale:t.string,description:t.node,FormItemProps:t.object},p.defaultProps={placeholder:"Select date"};export default p; | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import a from"prop-types";import{DatePicker as t}from"antd";import l from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{v as i,A as d}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";var p=function DatePicker(a){var p=l(a),s=p.input,n=p.isReadOnly,m=p.isDisabled,u=p.placeholder,c=p.isRequired,b=p.label,f=p.helperText,v=p.description,h=p.validateOnMount,O=p.meta,P=p.FormItemProps,y=e(p,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),R=i(O,h);return o.createElement(d,{label:b,meta:O,validateOnMount:h,helperText:f,description:v,FormItemProps:P,isRequired:c},o.createElement(t,r({disabled:m||n,defaultValue:s.value?s.value:void 0,placeholder:u,required:c,error:!!R,readOnly:n},s,{value:s.value||null},y)))};p.propTypes={isReadOnly:a.bool,isDisabled:a.bool,placeholder:a.node,isRequired:a.bool,label:a.node,helperText:a.node,validateOnMount:a.bool,locale:a.string,description:a.node,FormItemProps:a.object},p.defaultProps={placeholder:"Select date"};export default p; | ||
//# sourceMappingURL=date-picker.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as r,a as t}from"./objectWithoutProperties-97c77114.js";import o from"react";import"prop-types";import{Transfer as n}from"antd";import i from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as a}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}export default function DualListSelect(p){var c=i(p),s=c.input,u=s.onChange,l=s.value,m=void 0===l?[]:l,f=r(s,["onChange","value"]),d=c.meta,b=c.validateOnMount,O=c.helperText,y=c.description,j=c.FormItemProps,v=c.isRequired,P=c.options,g=void 0===P?[]:P,h=c.label,w=r(c,["input","meta","validateOnMount","helperText","description","FormItemProps","isRequired","options","label"]),D=g.map((function(r){return function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({key:r.value},r)}));return o.createElement(a,{label:h,meta:d,validateOnMount:b,helperText:O,description:y,FormItemProps:j,isRequired:v},o.createElement(n,t({},f,{targetKeys:m,onChange:function onChange(e){return u(e.filter((function(e){return g.find((function(r){return r.value===e}))})))},render:function render(e){return e.label},dataSource:D},w)))} | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as r,a as t}from"./objectWithoutProperties-97c77114.js";import o from"react";import"prop-types";import{Transfer as n}from"antd";import i from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as a}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}export default function DualListSelect(p){var s=i(p),c=s.input,u=c.onChange,l=c.value,m=void 0===l?[]:l,f=r(c,["onChange","value"]),d=s.meta,b=s.validateOnMount,O=s.helperText,y=s.description,j=s.FormItemProps,v=s.isRequired,P=s.options,g=void 0===P?[]:P,h=s.label,w=r(s,["input","meta","validateOnMount","helperText","description","FormItemProps","isRequired","options","label"]),D=g.map((function(r){return function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({key:r.value},r)}));return o.createElement(a,{label:h,meta:d,validateOnMount:b,helperText:O,description:y,FormItemProps:j,isRequired:v},o.createElement(n,t({},f,{targetKeys:m,onChange:function onChange(e){return u(e.filter((function(e){return g.find((function(r){return r.value===e}))})))},render:function render(e){return e.label},dataSource:D},w)))} | ||
//# sourceMappingURL=dual-list-select.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{c as r,u as t,a as n,_ as o}from"./objectWithoutProperties-97c77114.js";import a,{useEffect as i,forwardRef as s,createElement as l,useReducer as c}from"react";import u from"prop-types";import f from"@data-driven-forms/react-form-renderer/dist/esm/use-form-api";import{Row as d,Col as p,Typography as b,Space as m,Button as h}from"antd";import g from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as y}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";import{g as v,a as _,_ as A}from"./slicedToArray-6324ad71.js";import{_ as P}from"./toConsumableArray-48c131d8.js";import w from"@data-driven-forms/react-form-renderer/dist/esm/field-array";function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _slicedToArray(e,r){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return t}}(e,r)||function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}(e,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var x=r((function(e){ | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{c as r,u as t,a as n,_ as o}from"./objectWithoutProperties-97c77114.js";import a,{useEffect as i,forwardRef as s,createElement as l,useReducer as c}from"react";import u from"prop-types";import f from"@data-driven-forms/react-form-renderer/dist/esm/use-form-api";import{Row as d,Col as p,Typography as b,Space as m,Button as h}from"antd";import g from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as y}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";import{g as v,a as _,_ as A}from"./slicedToArray-6324ad71.js";import{_ as P}from"./toConsumableArray-48c131d8.js";import w from"@data-driven-forms/react-form-renderer/dist/esm/field-array";function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _slicedToArray(e,r){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return t}}(e,r)||function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}(e,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var x=r((function(e){ | ||
/*! | ||
@@ -3,0 +3,0 @@ Copyright (c) 2017 Jed Watson. |
@@ -1,2 +0,2 @@ | ||
import"./defineProperty-984bc41a.js";import"@data-driven-forms/react-form-renderer/dist/esm/component-types";import"./objectWithoutProperties-97c77114.js";import"react";import"prop-types";import"@data-driven-forms/react-form-renderer/dist/esm/use-form-api";import"antd";export{default as Tabs}from"./tabs.js";export{default as PlainText}from"./plain-text.js";import"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";import"./text-field.js";export{default as Textarea}from"./textarea.js";import"./multiple-choice-list-27577f8f.js";export{default as Checkbox}from"./checkbox.js";export{default as DatePicker}from"./date-picker.js";export{default as TimePicker}from"./time-picker.js";export{default as Radio}from"./radio.js";export{default as Switch}from"./switch.js";export{default as Select}from"./select.js";export{default as Wizard}from"./wizard.js";import"./slicedToArray-6324ad71.js";import"./toConsumableArray-48c131d8.js";import"@data-driven-forms/react-form-renderer/dist/esm/wizard-context";export{default as SubForm}from"./sub-form.js";export{default as DualListSelect}from"./dual-list-select.js";import"@data-driven-forms/react-form-renderer/dist/esm/field-array";export{default as FieldArray}from"./field-array.js";export{default as Slider}from"./slider.js";export{default as componentMapper,components}from"./component-mapper.js";import"@data-driven-forms/react-form-renderer/dist/esm/form-spy";export{default as FormTemplate}from"./form-template.js"; | ||
import"./defineProperty-984bc41a.js";import"@data-driven-forms/react-form-renderer/dist/esm/component-types";import"./objectWithoutProperties-97c77114.js";import"react";import"prop-types";import"@data-driven-forms/react-form-renderer/dist/esm/use-form-api";import"antd";export{default as Tabs}from"./tabs.js";export{default as PlainText}from"./plain-text.js";import"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";import"./text-field.js";export{default as Textarea}from"./textarea.js";import"./multiple-choice-list-27577f8f.js";export{default as Checkbox}from"./checkbox.js";export{default as DatePicker}from"./date-picker.js";export{default as TimePicker}from"./time-picker.js";export{default as Radio}from"./radio.js";export{default as Switch}from"./switch.js";export{default as Select}from"./select.js";export{default as Wizard}from"./wizard.js";import"./slicedToArray-6324ad71.js";import"./toConsumableArray-48c131d8.js";import"@data-driven-forms/react-form-renderer/dist/esm/wizard-context";export{default as SubForm}from"./sub-form.js";export{default as DualListSelect}from"./dual-list-select.js";import"@data-driven-forms/react-form-renderer/dist/esm/field-array";export{default as FieldArray}from"./field-array.js";export{default as Slider}from"./slider.js";export{default as componentMapper,components}from"./component-mapper.js";import"@data-driven-forms/react-form-renderer/dist/esm/form-spy";export{default as FormTemplate}from"./form-template.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as r,a as t}from"./objectWithoutProperties-97c77114.js";import o from"react";import a from"prop-types";import{Radio as i}from"antd";import n from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as p}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";import{w as s}from"./multiple-choice-list-27577f8f.js";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var c=function RadioOption(e){var a=e.name,p=e.option,s=r(e,["name","option"]),c=n({name:a,type:"radio",value:p.value}).input;return o.createElement(i,t({key:"".concat(a,"-").concat(p.value)},c,{id:"".concat(a,"-").concat(p.value)},s),p.label)};c.propTypes={name:a.string.isRequired,option:a.shape({label:a.string.isRequired,value:a.any.isRequired}).isRequired};var l=function Radio(e){var a=e.name,s=r(e,["name"]),l=n(_objectSpread(_objectSpread({},s),{},{name:a,type:"radio"})),m=l.options,d=l.isDisabled,u=l.label,b=l.isRequired,f=l.helperText,y=l.description,O=l.isReadOnly,j=l.meta,v=l.validateOnMount,P=l.FormItemProps,R=r(l,["options","isDisabled","label","isRequired","helperText","description","isReadOnly","meta","validateOnMount","FormItemProps"]);return o.createElement(p,{label:u,meta:j,validateOnMount:v,helperText:f,description:y,FormItemProps:P,isRequired:b},o.createElement(i.Group,t({name:a,disabled:d||O},R),m.map((function(e){return o.createElement(c,{key:e.value,name:a,option:e})}))))};l.propTypes=_objectSpread(_objectSpread({},s),{},{options:a.arrayOf(a.shape({value:a.any,label:a.node})),label:a.node.isRequired,isDisabled:a.bool,isReadOnly:a.bool,description:a.node,FormItemProps:a.object}),l.defaultProps={options:[]};export default l; | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as r,a as t}from"./objectWithoutProperties-97c77114.js";import o from"react";import a from"prop-types";import{Radio as i}from"antd";import n from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as p}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";import{w as s}from"./multiple-choice-list-27577f8f.js";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var l=function RadioOption(e){var a=e.name,p=e.option,s=r(e,["name","option"]),l=n({name:a,type:"radio",value:p.value}).input;return o.createElement(i,t({key:"".concat(a,"-").concat(p.value)},l,{id:"".concat(a,"-").concat(p.value)},s),p.label)};l.propTypes={name:a.string.isRequired,option:a.shape({label:a.string.isRequired,value:a.any.isRequired}).isRequired};var c=function Radio(e){var a=e.name,s=r(e,["name"]),c=n(_objectSpread(_objectSpread({},s),{},{name:a,type:"radio"})),m=c.options,d=c.isDisabled,u=c.label,b=c.isRequired,f=c.helperText,y=c.description,O=c.isReadOnly,j=c.meta,v=c.validateOnMount,P=c.FormItemProps,R=r(c,["options","isDisabled","label","isRequired","helperText","description","isReadOnly","meta","validateOnMount","FormItemProps"]);return o.createElement(p,{label:u,meta:j,validateOnMount:v,helperText:f,description:y,FormItemProps:P,isRequired:b},o.createElement(i.Group,t({name:a,disabled:d||O},R),m.map((function(e){return o.createElement(l,{key:e.value,name:a,option:e})}))))};c.propTypes=_objectSpread(_objectSpread({},s),{},{options:a.arrayOf(a.shape({value:a.any,label:a.node})),label:a.node.isRequired,isDisabled:a.bool,isReadOnly:a.bool,description:a.node,FormItemProps:a.object}),c.defaultProps={options:[]};export default c; | ||
//# sourceMappingURL=radio.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e,a as o}from"./objectWithoutProperties-97c77114.js";import r from"react";import t from"prop-types";import{Select as l}from"antd";import a from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as i}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";var n=l.Option,s=function Select(t){var s=a(t),p=s.input,u=s.isReadOnly,d=s.isDisabled,c=s.isClearable,m=s.placeholder,b=s.isRequired,f=s.label,v=s.helperText,h=s.validateOnMount,O=s.meta,y=s.options,C=s.isSearchable,R=s.description,q=s.FormItemProps,M=s.isMulti,P=e(s,["input","isReadOnly","isDisabled","isClearable","placeholder","isRequired","label","helperText","validateOnMount","meta","options","isSearchable","description","FormItemProps","isMulti"]);return r.createElement(i,{label:f,meta:O,validateOnMount:h,helperText:v,description:R,FormItemProps:q,isRequired:b},r.createElement(l,o({},p,{value:p.value?p.value:void 0,defaultValue:p.value?p.value:void 0,placeholder:m||"Please choose",mode:M?"multiple":"",showSearch:!!C||M,filterOption:function filterOption(e,o){return o.children.toLowerCase().indexOf(e.toLowerCase())>=0},required:b,allowClear:c,notFoundContent:"No option found",disabled:d||u,onChange:function onChange(e,o){return p.onChange(M?function selectValue(e){return e.sort((function(e,o){return e.label.localeCompare(o.label,"en",{sensitivity:"base"})})).map((function(e){return e.value}))}(o):o?o.value:void 0)},input:p},P),y.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"value")&&null!==e.value})).map((function(e){var o=e.value,t=e.label;return r.createElement(n,{key:o,value:o,label:t},t)}))))};s.propTypes={isReadOnly:t.bool,isClearable:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,isSearchable:t.bool,options:t.arrayOf(t.shape({value:t.any.isRequired,label:t.node.isRequired})).isRequired,description:t.node,FormItemProps:t.object,isMulti:t.bool};export default s; | ||
import{_ as e,a as o}from"./objectWithoutProperties-97c77114.js";import r from"react";import a from"prop-types";import{Select as t}from"antd";import l from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as i}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";var n=t.Option,s=function Select(a){var s=l(a),p=s.input,u=s.isReadOnly,d=s.isDisabled,m=s.isClearable,c=s.placeholder,b=s.isRequired,f=s.label,v=s.helperText,h=s.validateOnMount,O=s.meta,y=s.options,C=s.isSearchable,R=s.description,q=s.FormItemProps,M=s.isMulti,P=e(s,["input","isReadOnly","isDisabled","isClearable","placeholder","isRequired","label","helperText","validateOnMount","meta","options","isSearchable","description","FormItemProps","isMulti"]);return r.createElement(i,{label:f,meta:O,validateOnMount:h,helperText:v,description:R,FormItemProps:q,isRequired:b},r.createElement(t,o({},p,{value:p.value?p.value:void 0,defaultValue:p.value?p.value:void 0,placeholder:c||"Please choose",mode:M?"multiple":"",showSearch:!!C||M,filterOption:function filterOption(e,o){return o.children.toLowerCase().indexOf(e.toLowerCase())>=0},required:b,allowClear:m,notFoundContent:"No option found",disabled:d||u,onChange:function onChange(e,o){return p.onChange(M?function selectValue(e){return e.sort((function(e,o){return e.label.localeCompare(o.label,"en",{sensitivity:"base"})})).map((function(e){return e.value}))}(o):o?o.value:void 0)},input:p},P),y.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"value")&&null!==e.value})).map((function(e){var o=e.value,a=e.label;return r.createElement(n,{key:o,value:o,label:a},a)}))))};s.propTypes={isReadOnly:a.bool,isClearable:a.bool,isDisabled:a.bool,placeholder:a.node,isRequired:a.bool,label:a.node,helperText:a.node,validateOnMount:a.bool,isSearchable:a.bool,options:a.arrayOf(a.shape({value:a.any.isRequired,label:a.node.isRequired})).isRequired,description:a.node,FormItemProps:a.object,isMulti:a.bool};export default s; | ||
//# sourceMappingURL=select.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import a,{useEffect as t}from"react";import"prop-types";import{Slider as i}from"antd";import o from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as n}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";export default function Slider(m){var s=o(m),p=s.input,d=p.value,l=p.onChange,u=e(p,["value","onChange"]),c=s.meta,f=s.label,b=s.validateOnMount,v=s.helperText,y=s.description,h=s.FormItemProps,x=s.isRequired,g=s.range,A=s.min,O=void 0===A?0:A,R=s.max,j=void 0===R?100:R,P=s.isDisabled,q=s.isReadOnly,C=e(s,["input","meta","label","validateOnMount","helperText","description","FormItemProps","isRequired","range","min","max","isDisabled","isReadOnly"]);return t((function(){!0!==g||d&&Array.isArray(d)||l([O,j])}),[O,j,g,d,l]),a.createElement(n,{label:f,meta:c,validateOnMount:b,helperText:v,description:y,FormItemProps:h,isRequired:x},a.createElement(i,r({disabled:P||q,onChange:l},u,{value:!0!==g||Array.isArray(d)?d:[O,j],range:g,min:O,max:j},C)))} | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import a,{useEffect as t}from"react";import"prop-types";import{Slider as i}from"antd";import o from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as n}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";export default function Slider(m){var s=o(m),p=s.input,d=p.value,l=p.onChange,u=e(p,["value","onChange"]),f=s.meta,c=s.label,v=s.validateOnMount,b=s.helperText,y=s.description,h=s.FormItemProps,x=s.isRequired,g=s.range,A=s.min,O=void 0===A?0:A,R=s.max,j=void 0===R?100:R,P=s.isDisabled,q=s.isReadOnly,C=e(s,["input","meta","label","validateOnMount","helperText","description","FormItemProps","isRequired","range","min","max","isDisabled","isReadOnly"]);return t((function(){!0!==g||d&&Array.isArray(d)||l([O,j])}),[O,j,g,d,l]),a.createElement(n,{label:c,meta:f,validateOnMount:v,helperText:b,description:y,FormItemProps:h,isRequired:x},a.createElement(i,r({disabled:P||q,onChange:l},u,{value:!0!==g||Array.isArray(d)?d:[O,j],range:g,min:O,max:j},C)))} | ||
//# sourceMappingURL=slider.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as t,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import n from"prop-types";import{Switch as i}from"antd";import a from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as p}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var s=function Switch(e){var n=a(_objectSpread(_objectSpread({},e),{},{type:"checkbox"})),s=n.input,c=n.isReadOnly,l=n.isDisabled,d=n.isRequired,m=n.label,b=n.helperText,f=n.description,u=n.validateOnMount,O=n.meta,y=n.onText,j=n.offText,h=n.FormItemProps,v=t(n,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","onText","offText","FormItemProps"]),P=s.name,x=s.value,w=s.onChange,T=s.onBlur;return o.createElement(p,{label:m,meta:O,validateOnMount:u,helperText:b,description:f,FormItemProps:h,isRequired:d},o.createElement(i,r({},v,{defaultValue:s.value?s.value:void 0,onChange:w,checked:x,name:P,onClick:T,checkedChildren:y,unCheckedChildren:j,disabled:l||c})))};s.propTypes={isReadOnly:n.bool,isDisabled:n.bool,isRequired:n.bool,label:n.node,helperText:n.node,validateOnMount:n.bool,onText:n.node,offText:n.node,description:n.node,FormItemProps:n.object};export default s;export{s as Switch}; | ||
import{_ as e}from"./defineProperty-984bc41a.js";import{_ as t,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import n from"prop-types";import{Switch as i}from"antd";import a from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as p}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var s=function Switch(e){var n=a(_objectSpread(_objectSpread({},e),{},{type:"checkbox"})),s=n.input,l=n.isReadOnly,c=n.isDisabled,d=n.isRequired,m=n.label,b=n.helperText,f=n.description,u=n.validateOnMount,O=n.meta,y=n.onText,j=n.offText,h=n.FormItemProps,v=t(n,["input","isReadOnly","isDisabled","isRequired","label","helperText","description","validateOnMount","meta","onText","offText","FormItemProps"]),P=s.name,x=s.value,w=s.onChange,T=s.onBlur;return o.createElement(p,{label:m,meta:O,validateOnMount:u,helperText:b,description:f,FormItemProps:h,isRequired:d},o.createElement(i,r({},v,{defaultValue:s.value?s.value:void 0,onChange:w,checked:x,name:P,onClick:T,checkedChildren:y,unCheckedChildren:j,disabled:c||l})))};s.propTypes={isReadOnly:n.bool,isDisabled:n.bool,isRequired:n.bool,label:n.node,helperText:n.node,validateOnMount:n.bool,onText:n.node,offText:n.node,description:n.node,FormItemProps:n.object};export default s;export{s as Switch}; | ||
//# sourceMappingURL=switch.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import t from"prop-types";import{Input as a}from"antd";import i from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as l}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";var d=function TextField(t){var d=i(t),p=d.input,s=d.isReadOnly,m=d.isDisabled,n=d.placeholder,u=d.isRequired,c=d.label,b=d.helperText,f=d.description,v=d.validateOnMount,h=d.meta,O=d.FormItemProps,y=e(d,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return o.createElement(l,{label:c,meta:h,validateOnMount:v,helperText:b,description:f,FormItemProps:O,isRequired:u},o.createElement(a,r({},p,{defaultValue:p.value?p.value:void 0,disabled:m,readOnly:s,placeholder:n},y)))};d.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object};export default d; | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import t from"prop-types";import{Input as a}from"antd";import i from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as l}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";var d=function TextField(t){var d=i(t),p=d.input,s=d.isReadOnly,m=d.isDisabled,n=d.placeholder,u=d.isRequired,b=d.label,c=d.helperText,f=d.description,v=d.validateOnMount,h=d.meta,O=d.FormItemProps,y=e(d,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return o.createElement(l,{label:b,meta:h,validateOnMount:v,helperText:c,description:f,FormItemProps:O,isRequired:u},o.createElement(a,r({},p,{defaultValue:p.value?p.value:void 0,disabled:m,readOnly:s,placeholder:n},y)))};d.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object};export default d; | ||
//# sourceMappingURL=text-field.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import t from"prop-types";import{Input as a}from"antd";import i from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as l}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";var p=a.TextArea,d=function Textarea(t){var a=i(t),d=a.input,s=a.isReadOnly,m=a.isDisabled,n=a.placeholder,u=a.isRequired,c=a.label,b=a.helperText,f=a.description,v=a.validateOnMount,h=a.meta,O=a.FormItemProps,x=e(a,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return o.createElement(l,{label:c,meta:h,validateOnMount:v,helperText:b,description:f,FormItemProps:O,isRequired:u},o.createElement(p,r({},d,{defaultValue:d.value?d.value:void 0,disabled:m,readOnly:s,placeholder:n},x)))};d.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object};export default d; | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import t from"prop-types";import{Input as a}from"antd";import i from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{A as l}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";var p=a.TextArea,d=function Textarea(t){var a=i(t),d=a.input,s=a.isReadOnly,m=a.isDisabled,n=a.placeholder,u=a.isRequired,b=a.label,c=a.helperText,f=a.description,v=a.validateOnMount,h=a.meta,O=a.FormItemProps,x=e(a,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]);return o.createElement(l,{label:b,meta:h,validateOnMount:v,helperText:c,description:f,FormItemProps:O,isRequired:u},o.createElement(p,r({},d,{defaultValue:d.value?d.value:void 0,disabled:m,readOnly:s,placeholder:n},x)))};d.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,description:t.node,FormItemProps:t.object};export default d; | ||
//# sourceMappingURL=textarea.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import t from"prop-types";import{TimePicker as a}from"antd";import l from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{v as i,A as d}from"./form-wrapper-b23cac05.js";import"./prop-types-templates-ed0445bb.js";var s=function TimePicker(t){var s=l(t),p=s.input,m=s.isReadOnly,n=s.isDisabled,u=s.placeholder,c=s.isRequired,b=s.label,f=s.helperText,v=s.description,h=s.validateOnMount,O=s.meta,P=s.FormItemProps,y=e(s,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),R=i(O,h);return o.createElement(d,{label:b,meta:O,validateOnMount:h,helperText:f,description:v,FormItemProps:P,isRequired:c},o.createElement(a,r({use12Hours:!0,format:"h:mm a",disabled:n||m,placeholder:u,required:c,error:!!R,readOnly:m,defaultValue:p.value?p.value:void 0},p,{value:p.value||null},y)))};s.propTypes={isReadOnly:t.bool,isDisabled:t.bool,placeholder:t.node,isRequired:t.bool,label:t.node,helperText:t.node,validateOnMount:t.bool,locale:t.string,description:t.node,FormItemProps:t.object},s.defaultProps={placeholder:"Select date"};export default s; | ||
import{_ as e,a as r}from"./objectWithoutProperties-97c77114.js";import o from"react";import a from"prop-types";import{TimePicker as t}from"antd";import l from"@data-driven-forms/react-form-renderer/dist/esm/use-field-api";import{v as i,A as d}from"./form-wrapper-29aa56a7.js";import"./prop-types-templates-ed0445bb.js";var s=function TimePicker(a){var s=l(a),p=s.input,m=s.isReadOnly,n=s.isDisabled,u=s.placeholder,c=s.isRequired,b=s.label,f=s.helperText,v=s.description,h=s.validateOnMount,O=s.meta,P=s.FormItemProps,y=e(s,["input","isReadOnly","isDisabled","placeholder","isRequired","label","helperText","description","validateOnMount","meta","FormItemProps"]),R=i(O,h);return o.createElement(d,{label:b,meta:O,validateOnMount:h,helperText:f,description:v,FormItemProps:P,isRequired:c},o.createElement(t,r({use12Hours:!0,format:"h:mm a",disabled:n||m,placeholder:u,required:c,error:!!R,readOnly:m,defaultValue:p.value?p.value:void 0},p,{value:p.value||null},y)))};s.propTypes={isReadOnly:a.bool,isDisabled:a.bool,placeholder:a.node,isRequired:a.bool,label:a.node,helperText:a.node,validateOnMount:a.bool,locale:a.string,description:a.node,FormItemProps:a.object},s.defaultProps={placeholder:"Select date"};export default s; | ||
//# sourceMappingURL=time-picker.js.map |
{ | ||
"name": "@data-driven-forms/ant-component-mapper", | ||
"version": "2.14.0", | ||
"version": "2.15.0", | ||
"description": "Component mapper for Ant Design component mapper form data-driven-forms.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
314501
1442