@kne/form-info 0.1.6 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,2BAA2B;EAC3B,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,OAAO;EACP,WAAW;AACb;AACA;;EAEE,mBAAmB;EACnB,wBAAwB;AAC1B;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,yCAAyC;EACzC,0CAA0C;EAC1C,iBAAiB;AACnB;;AAEA;EACE,iCAAiC;AACnC;AACA;EACE,UAAU;EACV,YAAY;EACZ,YAAY;AACd;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;EACvB,UAAU;EACV,YAAY;EACZ,cAAc;AAChB;AACA;EACE,mCAAmC;EACnC,2BAA2B;EAC3B,iCAAiC;EACjC,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,iDAAiD;EACjD,iBAAiB;EACjB,YAAY;EACZ,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,wBAAwB;AAC1B;AACA;EACE,aAAa;AACf;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,aAAa;EACb,iBAAiB;EACjB,QAAQ;AACV;AACA;EACE,aAAa;AACf;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;AAC7B;AACA;EACE,aAAa;AACf;AACA;EACE,+CAA+C;AACjD;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,aAAa;EACb,uBAAuB;AACzB;;AAEA;EACE,wCAAwC;AAC1C;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kCAAkC;AACpC;AACA;EACE,2BAA2B;EAC3B,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;EACrB,wBAAwB;EACxB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,gBAAgB;AAClB","file":"index.css","sourcesContent":[".form-outer :global(.multi-field-delete-label) {\n display: none;\n}\n.form-outer:global(.react-form--inner) :global(.react-form__field-label.is-req:before) {\n position: static;\n transform: translateX(0);\n margin-right: 6px;\n}\n.form-outer:global(.react-form--inner) :global(.multi-field-delete-label) {\n display: block;\n}\n.form-outer :global .react-form__field {\n color: var(--font-color);\n}\n.form-outer :global .react-form__field input {\n color: var(--font-color);\n}\n.form-outer :global .react-form__field input::placeholder {\n color: var(--font-color-grey-2);\n}\n.form-outer :global .react-form__field-label {\n color: var(--font-color-grey);\n font-size: 14px;\n line-height: 20px;\n margin-bottom: 8px;\n font-weight: normal !important;\n}\n.form-outer :global .react-form__field-label.is-req:before {\n color: var(--color-warning);\n display: inline-block;\n font-weight: bold;\n}\n.form-outer :global .react-form__field-error {\n line-height: 14px;\n}\n.form-outer :global .ant-input-number,\n.form-outer :global .ant-input-number-group-wrapper {\n width: 100%;\n}\n.form-outer :global .ant-picker.react-form__field-component,\n.form-outer :global .data_range_picker {\n flex: 1;\n width: 100%;\n}\n.form-outer :global .ant-input-number-group-addon,\n.form-outer :global .ant-input-group-addon {\n background: #ffffff;\n color: var(--font-color);\n}\n\n.form-info > :global(.ant-card-head .part-title) {\n font-size: var(--font-size-large);\n}\n\n.extra-btn:global(.ant-btn) {\n border-radius: var(--radius-default, 2px);\n border: 1px solid var(--font-color-grey-2);\n padding: 6px 12px;\n}\n\n.list-part > :global(.ant-card-head .part-title) {\n font-size: var(--font-size-large);\n}\n.list-part .list-part .extra-btn {\n padding: 0;\n border: none;\n min-width: 0;\n}\n.list-part:global.ant-card .ant-card-body {\n padding: 16px 0 0;\n border-radius: 0;\n}\n\n.list-item.is-important > .list-item-part:global(.ant-card > .ant-card-head) {\n background: var(--primary-color-06);\n}\n.list-item.is-important > .list-item-part:global(.ant-card > .ant-card-head .ant-card-head-title .part-title) {\n color: var(--primary-color);\n}\n.list-item.is-important .list-item-part:global(.ant-card .ant-card-head-title .part-title) {\n font-weight: 500;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-head) {\n background: transparent;\n padding: 0;\n border: none;\n line-height: 1;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-head) :global(.part-title) {\n background: var(--primary-color-06);\n color: var(--primary-color);\n font-size: var(--font-size-small);\n font-weight: bold;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-body) {\n padding: 16px 0;\n}\n.list-item.is-important > .list-item-part {\n border-color: var(--primary-color-5);\n}\n.list-item.is-important .table-list-inner {\n border: none;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head) {\n background: #f8f8f8;\n border-bottom: 1px solid var(--font-color-grey-4);\n line-height: 36px;\n height: 36px;\n padding: 0 16px;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head) .extra-btn {\n min-width: auto !important;\n border: none !important;\n padding: 0 !important;\n background: transparent !important;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head-title) :global(.part-title) {\n background: transparent;\n font-weight: normal;\n font-size: 14px;\n color: var(--font-color);\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-body) {\n padding: 16px;\n}\n.list-item :global(.ant-divider) {\n border-top-color: var(--font-color-grey-2);\n}\n.list-item :global(.ant-divider) {\n display: none;\n}\n.list-item:not(:last-child) {\n margin-bottom: 16px;\n}\n\n.list-item-part {\n border: 1px solid var(--font-color-grey-4);\n}\n\n.multi-field-item {\n display: flex;\n flex-wrap: nowrap;\n gap: 8px;\n}\n.multi-field-item:not(:first-child) :global .react-form__field-label {\n display: none;\n}\n.multi-field-item .react-form__field-label {\n color: var(--font-color-grey);\n font-size: 14px;\n line-height: 20px;\n height: 20px;\n margin-bottom: 8px;\n}\n.multi-field-item :global .react-form__field {\n flex: 1;\n}\n\n.multi-field-add-btn {\n margin-bottom: 16px;\n}\n\n.table-list .list-item {\n margin-bottom: 0 !important;\n}\n.table-list :global .react-form__field-label {\n display: none;\n}\n.table-list :global .ant-row:not(:last-child) {\n border-bottom: solid 1px var(--bg-color-grey-3);\n}\n.table-list :global .ant-row:hover {\n background: var(--bg-color-grey-1) !important;\n}\n.table-list :global .ant-col {\n padding: 16px;\n width: var(--col-width);\n}\n\n.table-list-inner {\n border: solid 1px var(--bg-color-grey-3);\n}\n\n.table-list-field:global(.ant-col) {\n padding-bottom: 0;\n}\n\n.table-list-header {\n background: var(--bg-color-grey-1);\n}\n.table-list-header .is-req:before {\n color: var(--color-warning);\n content: \"*\";\n position: static;\n display: inline-block;\n transform: translateX(0);\n margin-right: 6px;\n font-weight: bold;\n}\n.table-list-header :global .ant-col {\n padding: 8px 16px;\n}\n\n.table-options {\n flex-basis: 100px;\n text-align: right;\n}\n\n.steps {\n justify-content: center;\n width: auto;\n}\n.steps :global(.ant-steps-item) {\n max-width: 450px;\n}\n.steps :global(.ant-steps-item-content) {\n text-wrap: nowrap;\n}\n\n.steps-form-inner {\n width: 100%;\n}\n\n.steps-modal .steps {\n padding: 0 100px;\n}\n\n.table-list-empty {\n padding: 16px;\n}\n\n.extra-container {\n min-height: 32px;\n}"]}
1
+ {"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,2BAA2B;EAC3B,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,OAAO;EACP,WAAW;AACb;AACA;;EAEE,mBAAmB;EACnB,wBAAwB;AAC1B;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,yCAAyC;EACzC,0CAA0C;EAC1C,iBAAiB;AACnB;;AAEA;EACE,iCAAiC;AACnC;AACA;EACE,UAAU;EACV,YAAY;EACZ,YAAY;AACd;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;EACvB,UAAU;EACV,YAAY;EACZ,cAAc;AAChB;AACA;EACE,mCAAmC;EACnC,2BAA2B;EAC3B,iCAAiC;EACjC,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,iDAAiD;EACjD,iBAAiB;EACjB,YAAY;EACZ,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,wBAAwB;AAC1B;AACA;EACE,aAAa;AACf;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,aAAa;EACb,iBAAiB;EACjB,QAAQ;AACV;AACA;EACE,aAAa;AACf;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;AAC7B;AACA;EACE,aAAa;AACf;AACA;EACE,+CAA+C;AACjD;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,aAAa;EACb,uBAAuB;AACzB;;AAEA;EACE,wCAAwC;AAC1C;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kCAAkC;AACpC;AACA;EACE,2BAA2B;EAC3B,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;EACrB,wBAAwB;EACxB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,gBAAgB;AAClB","file":"index.css","sourcesContent":[".form-outer :global(.multi-field-delete-label) {\n display: none;\n}\n.form-outer:global(.react-form--inner) :global(.react-form__field-label.is-req:before) {\n position: static;\n transform: translateX(0);\n margin-right: 6px;\n}\n.form-outer:global(.react-form--inner) :global(.multi-field-delete-label) {\n display: block;\n}\n.form-outer :global .react-form__field {\n color: var(--font-color);\n}\n.form-outer :global .react-form__field input {\n color: var(--font-color);\n}\n.form-outer :global .react-form__field input::placeholder {\n color: var(--font-color-grey-2);\n}\n.form-outer :global .react-form__field-label {\n color: var(--font-color-grey);\n font-size: 14px;\n line-height: 20px;\n margin-bottom: 8px;\n font-weight: normal !important;\n}\n.form-outer :global .react-form__field-label.is-req:before {\n color: var(--color-warning);\n display: inline-block;\n font-weight: bold;\n}\n.form-outer :global .react-form__field-error {\n line-height: 14px;\n}\n.form-outer :global .ant-input-number,\n.form-outer :global .ant-input-number-group-wrapper {\n width: 100%;\n}\n.form-outer :global .ant-picker.react-form__field-component,\n.form-outer :global .data_range_picker {\n flex: 1;\n width: 100%;\n}\n.form-outer :global .ant-input-number-group-addon,\n.form-outer :global .ant-input-group-addon {\n background: #ffffff;\n color: var(--font-color);\n}\n\n.form-info > :global(.ant-card-head .part-title) {\n font-size: var(--font-size-large);\n}\n\n.extra-btn:global(.ant-btn) {\n border-radius: var(--radius-default, 2px);\n border: 1px solid var(--font-color-grey-2);\n padding: 6px 12px;\n}\n\n.list-part > :global(.ant-card-head .part-title) {\n font-size: var(--font-size-large);\n}\n.list-part .list-part .extra-btn {\n padding: 0;\n border: none;\n min-width: 0;\n}\n.list-part:global.ant-card .ant-card-body {\n padding: 16px 0 0;\n border-radius: 0;\n}\n\n.list-item.is-important > .list-item-part:global(.ant-card > .ant-card-head) {\n background: var(--primary-color-06);\n}\n.list-item.is-important > .list-item-part:global(.ant-card > .ant-card-head .ant-card-head-title .part-title) {\n color: var(--primary-color);\n}\n.list-item.is-important .list-item-part:global(.ant-card .ant-card-head-title .part-title) {\n font-weight: 500;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-head) {\n background: transparent;\n padding: 0;\n border: none;\n line-height: 1;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-head) :global(.part-title) {\n background: var(--primary-color-06);\n color: var(--primary-color);\n font-size: var(--font-size-small);\n font-weight: bold;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-body) {\n padding: 16px 0;\n}\n.list-item.is-important > .list-item-part {\n border-color: var(--primary-color-5);\n}\n.list-item.is-important .table-list-inner {\n border: none;\n}\n.list-item .list-item-part {\n padding: 0;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head) {\n background: #f8f8f8;\n border-bottom: 1px solid var(--font-color-grey-4);\n line-height: 36px;\n height: 36px;\n padding: 0 16px;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head) .extra-btn {\n min-width: auto !important;\n border: none !important;\n padding: 0 !important;\n background: transparent !important;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head-title) :global(.part-title) {\n background: transparent;\n font-weight: normal;\n font-size: 14px;\n color: var(--font-color);\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-body) {\n padding: 16px;\n}\n.list-item :global(.ant-divider) {\n border-top-color: var(--font-color-grey-2);\n}\n.list-item :global(.ant-divider) {\n display: none;\n}\n.list-item:not(:last-child) {\n margin-bottom: 16px;\n}\n\n.list-item-part {\n border: 1px solid var(--font-color-grey-4);\n}\n\n.multi-field-item {\n display: flex;\n flex-wrap: nowrap;\n gap: 8px;\n}\n.multi-field-item:not(:first-child) :global .react-form__field-label {\n display: none;\n}\n.multi-field-item .react-form__field-label {\n color: var(--font-color-grey);\n font-size: 14px;\n line-height: 20px;\n height: 20px;\n margin-bottom: 8px;\n}\n.multi-field-item :global .react-form__field {\n flex: 1;\n}\n\n.multi-field-add-btn {\n margin-bottom: 16px;\n}\n\n.table-list .list-item {\n margin-bottom: 0 !important;\n}\n.table-list :global .react-form__field-label {\n display: none;\n}\n.table-list :global .ant-row:not(:last-child) {\n border-bottom: solid 1px var(--bg-color-grey-3);\n}\n.table-list :global .ant-row:hover {\n background: var(--bg-color-grey-1) !important;\n}\n.table-list :global .ant-col {\n padding: 16px;\n width: var(--col-width);\n}\n\n.table-list-inner {\n border: solid 1px var(--bg-color-grey-3);\n}\n\n.table-list-field:global(.ant-col) {\n padding-bottom: 0;\n}\n\n.table-list-header {\n background: var(--bg-color-grey-1);\n}\n.table-list-header .is-req:before {\n color: var(--color-warning);\n content: \"*\";\n position: static;\n display: inline-block;\n transform: translateX(0);\n margin-right: 6px;\n font-weight: bold;\n}\n.table-list-header :global .ant-col {\n padding: 8px 16px;\n}\n\n.table-options {\n flex-basis: 100px;\n text-align: right;\n}\n\n.steps {\n justify-content: center;\n width: auto;\n}\n.steps :global(.ant-steps-item) {\n max-width: 450px;\n}\n.steps :global(.ant-steps-item-content) {\n text-wrap: nowrap;\n}\n\n.steps-form-inner {\n width: 100%;\n}\n\n.steps-modal .steps {\n padding: 0 100px;\n}\n\n.table-list-empty {\n padding: 16px;\n}\n\n.extra-container {\n min-height: 32px;\n}"]}
package/dist/index.js CHANGED
@@ -117,7 +117,7 @@ var classnames = createCommonjsModule(function (module) {
117
117
  }());
118
118
  });
119
119
 
120
- var style = {"form-outer":"_ZQNNL","form-info":"_GW4Xx","extra-btn":"_eY4qR","list-part":"_SL3dC","list-item":"_PNnMa","is-important":"_Xkp38","list-item-part":"_HiB5Q","table-list-inner":"_Uw-3T","multi-field-item":"_uogqr","react-form__field-label":"_UGjS9","multi-field-add-btn":"_rjVPh","table-list":"_r8-bn","table-list-field":"_Qkutm","table-list-header":"_9WdfD","is-req":"_CsPaL","table-options":"_8smwK","steps":"_IOdkE","steps-form-inner":"_uc1HZ","steps-modal":"_vWPQO","table-list-empty":"_DXskv","extra-container":"_wU-w4"};
120
+ var style = {"form-outer":"kne-form-info_ZQNNL","form-info":"kne-form-info_GW4Xx","extra-btn":"kne-form-info_eY4qR","list-part":"kne-form-info_SL3dC","list-item":"kne-form-info_PNnMa","is-important":"kne-form-info_Xkp38","list-item-part":"kne-form-info_HiB5Q","table-list-inner":"kne-form-info_Uw-3T","multi-field-item":"kne-form-info_uogqr","react-form__field-label":"kne-form-info_UGjS9","multi-field-add-btn":"kne-form-info_rjVPh","table-list":"kne-form-info_r8-bn","table-list-field":"kne-form-info_Qkutm","table-list-header":"kne-form-info_9WdfD","is-req":"kne-form-info_CsPaL","table-options":"kne-form-info_8smwK","steps":"kne-form-info_IOdkE","steps-form-inner":"kne-form-info_uc1HZ","steps-modal":"kne-form-info_vWPQO","table-list-empty":"kne-form-info_DXskv","extra-container":"kne-form-info_wU-w4"};
121
121
 
122
122
  const _excluded$7 = ["className", "column", "list", "gap"];
123
123
  const FormInfo = props => {
@@ -125,18 +125,15 @@ const FormInfo = props => {
125
125
  column: 2,
126
126
  list: []
127
127
  }, props),
128
- {
129
- className,
130
- column,
131
- list,
132
- gap
133
- } = _Object$assign,
128
+ className = _Object$assign.className,
129
+ column = _Object$assign.column,
130
+ list = _Object$assign.list,
131
+ gap = _Object$assign.gap,
134
132
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$7);
135
133
  const isFlexBox = !(Number.isInteger(column) && column > 0);
136
- const {
137
- ref: flexBoxRef,
138
- column: flexBoxColumn
139
- } = flexBox.useFlexBox(isFlexBox ? column : {});
134
+ const _useFlexBox = flexBox.useFlexBox(isFlexBox ? column : {}),
135
+ flexBoxRef = _useFlexBox.ref,
136
+ flexBoxColumn = _useFlexBox.column;
140
137
  const renderInner = (column, notLayout) => {
141
138
  return /*#__PURE__*/jsxRuntime.jsx(reactFormPlus.FormInfo, {
142
139
  list: list,
@@ -210,12 +207,11 @@ const withLocale = reactIntl.createWithIntlProvider({
210
207
  namespace: 'form-info'
211
208
  });
212
209
 
213
- const _excluded$6 = ["className", "itemClassName", "removeIcon", "removeText", "addText", "addIcon", "important", "title"],
210
+ const _excluded$6 = ["className", "itemClassName", "removeIcon", "removeText", "addText", "addIcon", "important", "title", "bordered"],
214
211
  _excluded2$2 = ["id", "allowRemove", "onRemove", "index", "groupArgs"];
215
212
  const List = withLocale(p => {
216
- const {
217
- formatMessage
218
- } = reactIntl.useIntl();
213
+ const _useIntl = reactIntl.useIntl(),
214
+ formatMessage = _useIntl.formatMessage;
219
215
  const _Object$assign = Object.assign({}, {
220
216
  addText: formatMessage({
221
217
  id: 'addText'
@@ -229,31 +225,29 @@ const List = withLocale(p => {
229
225
  description: false
230
226
  })
231
227
  }, p),
232
- {
233
- className,
234
- itemClassName,
235
- removeIcon,
236
- removeText,
237
- addText,
238
- addIcon,
239
- important,
240
- title
241
- } = _Object$assign,
228
+ className = _Object$assign.className,
229
+ itemClassName = _Object$assign.itemClassName,
230
+ removeIcon = _Object$assign.removeIcon,
231
+ removeText = _Object$assign.removeText,
232
+ addText = _Object$assign.addText,
233
+ addIcon = _Object$assign.addIcon,
234
+ important = _Object$assign.important,
235
+ title = _Object$assign.title,
236
+ bordered = _Object$assign.bordered,
242
237
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$6);
243
238
  return /*#__PURE__*/jsxRuntime.jsx(reactFormPlus.SubList, _extends({}, others, {
244
239
  className: classnames(className, style['list-part']),
245
240
  listRender: _ref => {
246
- let {
247
- id,
248
- allowRemove,
249
- onRemove
250
- } = _ref,
241
+ let id = _ref.id,
242
+ allowRemove = _ref.allowRemove,
243
+ onRemove = _ref.onRemove,
251
244
  props = _objectWithoutPropertiesLoose(_ref, _excluded2$2);
252
245
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
253
246
  className: classnames(style['list-item'], {
254
247
  [style['is-important']]: important
255
248
  }),
256
249
  children: [/*#__PURE__*/jsxRuntime.jsx(FormInfo, _extends({}, props, {
250
+ bordered: bordered,
257
251
  className: style['list-item-part'],
258
252
  gap: 16,
259
253
  extra: allowRemove && /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
@@ -268,13 +262,12 @@ const List = withLocale(p => {
268
262
  }, id);
269
263
  },
270
264
  children: (children, _ref2) => {
271
- let {
272
- allowAdd,
273
- onAdd
274
- } = _ref2;
265
+ let allowAdd = _ref2.allowAdd,
266
+ onAdd = _ref2.onAdd;
275
267
  return /*#__PURE__*/jsxRuntime.jsx(InfoPage__default["default"].Part, {
276
268
  className: itemClassName,
277
269
  title: title,
270
+ bordered: bordered,
278
271
  extra: /*#__PURE__*/jsxRuntime.jsx("div", {
279
272
  className: style['extra-container'],
280
273
  children: allowAdd && /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
@@ -292,9 +285,8 @@ const List = withLocale(p => {
292
285
 
293
286
  const _excluded$5 = ["className", "addText", "addIcon", "removeIcon", "removeText"];
294
287
  const MultiField = withLocale(p => {
295
- const {
296
- formatMessage
297
- } = reactIntl.useIntl();
288
+ const _useIntl = reactIntl.useIntl(),
289
+ formatMessage = _useIntl.formatMessage;
298
290
  const _Object$assign = Object.assign({}, {
299
291
  addText: formatMessage({
300
292
  id: 'addText'
@@ -306,21 +298,17 @@ const MultiField = withLocale(p => {
306
298
  description: false
307
299
  })
308
300
  }, p),
309
- {
310
- className,
311
- addText,
312
- addIcon,
313
- removeIcon,
314
- removeText
315
- } = _Object$assign,
301
+ className = _Object$assign.className,
302
+ addText = _Object$assign.addText,
303
+ addIcon = _Object$assign.addIcon,
304
+ removeIcon = _Object$assign.removeIcon,
305
+ removeText = _Object$assign.removeText,
316
306
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$5);
317
307
  return /*#__PURE__*/jsxRuntime.jsx(reactFormPlus.MultiField, _extends({}, others, {
318
308
  itemRender: (children, _ref) => {
319
- let {
320
- id,
321
- allowRemove,
322
- onRemove
323
- } = _ref;
309
+ let id = _ref.id,
310
+ allowRemove = _ref.allowRemove,
311
+ onRemove = _ref.onRemove;
324
312
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
325
313
  className: classnames('multi-field-item', style['multi-field-item']),
326
314
  children: [children, /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -336,10 +324,8 @@ const MultiField = withLocale(p => {
336
324
  }, id);
337
325
  },
338
326
  children: (children, _ref2) => {
339
- let {
340
- allowAdd,
341
- onAdd
342
- } = _ref2;
327
+ let allowAdd = _ref2.allowAdd,
328
+ onAdd = _ref2.onAdd;
343
329
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
344
330
  className: classnames(className, 'multi-field', style['multi-field']),
345
331
  children: [children, allowAdd && /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
@@ -354,11 +340,10 @@ const MultiField = withLocale(p => {
354
340
  }));
355
341
  });
356
342
 
357
- const _excluded$4 = ["className", "addIcon", "addText", "removeIcon", "removeText", "title"];
343
+ const _excluded$4 = ["className", "addIcon", "addText", "removeIcon", "removeText", "title", "bordered"];
358
344
  const TableList = withLocale(p => {
359
- const {
360
- formatMessage
361
- } = reactIntl.useIntl();
345
+ const _useIntl = reactIntl.useIntl(),
346
+ formatMessage = _useIntl.formatMessage;
362
347
  const _Object$assign = Object.assign({}, {
363
348
  empty: /*#__PURE__*/jsxRuntime.jsx(antd.Empty, {
364
349
  description: false,
@@ -373,20 +358,17 @@ const TableList = withLocale(p => {
373
358
  id: 'deleteText'
374
359
  })
375
360
  }, p),
376
- {
377
- className,
378
- addIcon,
379
- addText,
380
- removeIcon,
381
- removeText,
382
- title
383
- } = _Object$assign,
361
+ className = _Object$assign.className,
362
+ addIcon = _Object$assign.addIcon,
363
+ addText = _Object$assign.addText,
364
+ removeIcon = _Object$assign.removeIcon,
365
+ removeText = _Object$assign.removeText,
366
+ title = _Object$assign.title,
367
+ bordered = _Object$assign.bordered,
384
368
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$4);
385
369
  return /*#__PURE__*/jsxRuntime.jsx(reactFormPlus.TableList, _extends({}, others, {
386
370
  headerRender: (children, _ref) => {
387
- let {
388
- width
389
- } = _ref;
371
+ let width = _ref.width;
390
372
  return /*#__PURE__*/jsxRuntime.jsxs(antd.Row, {
391
373
  className: style['table-list-header'],
392
374
  wrap: false,
@@ -399,10 +381,8 @@ const TableList = withLocale(p => {
399
381
  });
400
382
  },
401
383
  headerItemRender: (children, _ref2) => {
402
- let {
403
- id,
404
- isReq
405
- } = _ref2;
384
+ let id = _ref2.id,
385
+ isReq = _ref2.isReq;
406
386
  return /*#__PURE__*/jsxRuntime.jsx(antd.Col, {
407
387
  className: classnames({
408
388
  [style['is-req']]: isReq
@@ -418,12 +398,10 @@ const TableList = withLocale(p => {
418
398
  });
419
399
  },
420
400
  listRender: (children, _ref3) => {
421
- let {
422
- id,
423
- width,
424
- onRemove,
425
- allowRemove
426
- } = _ref3;
401
+ let id = _ref3.id,
402
+ width = _ref3.width,
403
+ onRemove = _ref3.onRemove,
404
+ allowRemove = _ref3.allowRemove;
427
405
  return /*#__PURE__*/jsxRuntime.jsxs(antd.Row, {
428
406
  wrap: false,
429
407
  align: "top",
@@ -444,13 +422,12 @@ const TableList = withLocale(p => {
444
422
  }, id);
445
423
  },
446
424
  children: (children, _ref4) => {
447
- let {
448
- onAdd,
449
- allowAdd
450
- } = _ref4;
425
+ let onAdd = _ref4.onAdd,
426
+ allowAdd = _ref4.allowAdd;
451
427
  return /*#__PURE__*/jsxRuntime.jsx(InfoPage__default["default"].Part, {
452
428
  title: title,
453
429
  className: classnames(className, style['table-list']),
430
+ bordered: bordered,
454
431
  extra: /*#__PURE__*/jsxRuntime.jsx("div", {
455
432
  className: style['extra-container'],
456
433
  children: allowAdd && /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
@@ -474,10 +451,8 @@ const Form = /*#__PURE__*/react.forwardRef((props, ref) => {
474
451
  const _Object$assign = Object.assign({}, {
475
452
  type: 'inner'
476
453
  }, props),
477
- {
478
- className,
479
- children
480
- } = _Object$assign,
454
+ className = _Object$assign.className,
455
+ children = _Object$assign.children,
481
456
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$3);
482
457
  return /*#__PURE__*/jsxRuntime.jsx(reactFormAntd.FormAntd, _extends({}, others, {
483
458
  ref: ref,
@@ -3345,7 +3320,9 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
3345
3320
  function baseUnset(object, path) {
3346
3321
  path = _castPath(path, object);
3347
3322
 
3348
- // Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
3323
+ // Prevent prototype pollution:
3324
+ // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
3325
+ // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
3349
3326
  var index = -1,
3350
3327
  length = path.length;
3351
3328
 
@@ -3353,32 +3330,17 @@ function baseUnset(object, path) {
3353
3330
  return true;
3354
3331
  }
3355
3332
 
3356
- var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
3357
-
3358
3333
  while (++index < length) {
3359
- var key = path[index];
3360
-
3361
- // skip non-string keys (e.g., Symbols, numbers)
3362
- if (typeof key !== 'string') {
3363
- continue;
3364
- }
3334
+ var key = _toKey(path[index]);
3365
3335
 
3366
3336
  // Always block "__proto__" anywhere in the path if it's not expected
3367
3337
  if (key === '__proto__' && !hasOwnProperty$1.call(object, '__proto__')) {
3368
3338
  return false;
3369
3339
  }
3370
3340
 
3371
- // Block "constructor.prototype" chains
3372
- if (key === 'constructor' &&
3373
- (index + 1) < length &&
3374
- typeof path[index + 1] === 'string' &&
3375
- path[index + 1] === 'prototype') {
3376
-
3377
- // Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
3378
- if (isRootPrimitive && index === 0) {
3379
- continue;
3380
- }
3381
-
3341
+ // Block constructor/prototype as non-terminal traversal keys to prevent
3342
+ // escaping the object graph into built-in constructors and prototypes.
3343
+ if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
3382
3344
  return false;
3383
3345
  }
3384
3346
  }
@@ -3778,15 +3740,13 @@ const _excluded$2 = ["children", "cancelText", "cancelButtonProps", "okButtonPro
3778
3740
  _excluded2$1 = ["formProps", "autoClose", "children", "modalRender"],
3779
3741
  _excluded3$1 = ["formProps", "okType", "okButtonProps", "okText", "onOk", "cancelButtonProps", "cancelText", "footer", "renderModal", "modalRender", "autoClose"];
3780
3742
  const ModalFooter = props => {
3781
- const {
3782
- children,
3783
- cancelText,
3784
- cancelButtonProps,
3785
- okButtonProps,
3786
- okType,
3787
- onOk,
3788
- okText
3789
- } = props,
3743
+ const children = props.children,
3744
+ cancelText = props.cancelText,
3745
+ cancelButtonProps = props.cancelButtonProps,
3746
+ okButtonProps = props.okButtonProps,
3747
+ okType = props.okType,
3748
+ onOk = props.onOk,
3749
+ okText = props.okText,
3790
3750
  others = _objectWithoutPropertiesLoose(props, _excluded$2);
3791
3751
  const defaultFooter = /*#__PURE__*/jsxRuntime.jsxs(antd.Flex, {
3792
3752
  justify: "space-between",
@@ -3817,12 +3777,10 @@ const ModalFooter = props => {
3817
3777
  return defaultFooter;
3818
3778
  };
3819
3779
  const ModalForm = props => {
3820
- const {
3821
- formProps,
3822
- autoClose,
3823
- children,
3824
- modalRender
3825
- } = props,
3780
+ const formProps = props.formProps,
3781
+ autoClose = props.autoClose,
3782
+ children = props.children,
3783
+ modalRender = props.modalRender,
3826
3784
  others = _objectWithoutPropertiesLoose(props, _excluded2$1);
3827
3785
  const formChildren = /*#__PURE__*/jsxRuntime.jsx(Form, _extends({}, Object.assign({}, formProps, {
3828
3786
  onSubmit: function (data) {
@@ -3850,9 +3808,8 @@ const ModalForm = props => {
3850
3808
  }) : formChildren;
3851
3809
  };
3852
3810
  const FormModal = withLocale(p => {
3853
- const {
3854
- formatMessage
3855
- } = reactIntl.useIntl();
3811
+ const _useIntl = reactIntl.useIntl(),
3812
+ formatMessage = _useIntl.formatMessage;
3856
3813
  const _Object$assign = Object.assign({}, {
3857
3814
  formProps: {},
3858
3815
  autoClose: true,
@@ -3865,19 +3822,17 @@ const FormModal = withLocale(p => {
3865
3822
  }),
3866
3823
  renderModal: props => /*#__PURE__*/jsxRuntime.jsx(antd.Modal, _extends({}, props))
3867
3824
  }, p),
3868
- {
3869
- formProps,
3870
- okType,
3871
- okButtonProps,
3872
- okText,
3873
- onOk,
3874
- cancelButtonProps,
3875
- cancelText,
3876
- footer,
3877
- renderModal,
3878
- modalRender,
3879
- autoClose
3880
- } = _Object$assign,
3825
+ formProps = _Object$assign.formProps,
3826
+ okType = _Object$assign.okType,
3827
+ okButtonProps = _Object$assign.okButtonProps,
3828
+ okText = _Object$assign.okText,
3829
+ onOk = _Object$assign.onOk,
3830
+ cancelButtonProps = _Object$assign.cancelButtonProps,
3831
+ cancelText = _Object$assign.cancelText,
3832
+ footer = _Object$assign.footer,
3833
+ renderModal = _Object$assign.renderModal,
3834
+ modalRender = _Object$assign.modalRender,
3835
+ autoClose = _Object$assign.autoClose,
3881
3836
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded3$1);
3882
3837
  return renderModal(Object.assign({}, others, {
3883
3838
  modalRender: children => /*#__PURE__*/jsxRuntime.jsx(ModalForm, _extends({}, Object.assign({}, others, {
@@ -3909,18 +3864,18 @@ const FormSteps = p => {
3909
3864
  items: [],
3910
3865
  onComplete: () => {}
3911
3866
  }, p),
3912
- {
3913
- className,
3914
- stepsClassName,
3915
- autoStep,
3916
- onComplete,
3917
- children
3918
- } = _Object$assign,
3867
+ className = _Object$assign.className,
3868
+ stepsClassName = _Object$assign.stepsClassName,
3869
+ autoStep = _Object$assign.autoStep,
3870
+ onComplete = _Object$assign.onComplete,
3871
+ children = _Object$assign.children,
3919
3872
  stepProps = _objectWithoutPropertiesLoose(_Object$assign, _excluded$1);
3920
- const [currentStep, onStepChange] = useControlValue__default["default"](stepProps, {
3921
- value: 'current',
3922
- defaultValue: 'defaultCurrent'
3923
- });
3873
+ const _useControlValue = useControlValue__default["default"](stepProps, {
3874
+ value: 'current',
3875
+ defaultValue: 'defaultCurrent'
3876
+ }),
3877
+ currentStep = _useControlValue[0],
3878
+ onStepChange = _useControlValue[1];
3924
3879
  const stepCacheRef = react.useRef([]);
3925
3880
  const isLastStep = currentStep === stepProps.items.length - 1;
3926
3881
  const currentFormProps = Object.assign({}, (_stepProps$items$curr = stepProps.items[currentStep]) == null ? void 0 : _stepProps$items$curr.formProps, {
@@ -4379,36 +4334,29 @@ const _excluded = ["completeText", "nextText"],
4379
4334
  _excluded2 = ["modalProps", "completeText", "nextText", "className"],
4380
4335
  _excluded3 = ["children"];
4381
4336
  const childrenContext = /*#__PURE__*/react.createContext({});
4382
- const {
4383
- Provider
4384
- } = childrenContext;
4337
+ const Provider = childrenContext.Provider;
4385
4338
  const useChildrenContext = () => {
4386
4339
  return react.useContext(childrenContext);
4387
4340
  };
4388
4341
  const StepChildren = () => {
4389
- const {
4390
- stepChildren
4391
- } = useChildrenContext();
4342
+ const _useChildrenContext = useChildrenContext(),
4343
+ stepChildren = _useChildrenContext.stepChildren;
4392
4344
  return stepChildren;
4393
4345
  };
4394
4346
  const StepFormFooter = p => {
4395
4347
  const _Object$assign = Object.assign({}, p),
4396
- {
4397
- completeText,
4398
- nextText
4399
- } = _Object$assign,
4348
+ completeText = _Object$assign.completeText,
4349
+ nextText = _Object$assign.nextText,
4400
4350
  props = _objectWithoutPropertiesLoose(_Object$assign, _excluded);
4401
- const {
4402
- isLastStep
4403
- } = useChildrenContext();
4351
+ const _useChildrenContext2 = useChildrenContext(),
4352
+ isLastStep = _useChildrenContext2.isLastStep;
4404
4353
  return /*#__PURE__*/jsxRuntime.jsx(ModalFooter, _extends({}, props, {
4405
4354
  okText: isLastStep ? completeText : nextText
4406
4355
  }));
4407
4356
  };
4408
4357
  const FormStepsModal = withLocale(p => {
4409
- const {
4410
- formatMessage
4411
- } = reactIntl.useIntl();
4358
+ const _useIntl = reactIntl.useIntl(),
4359
+ formatMessage = _useIntl.formatMessage;
4412
4360
  const _merge = merge_1({}, {
4413
4361
  autoStep: true,
4414
4362
  modalProps: {
@@ -4421,18 +4369,14 @@ const FormStepsModal = withLocale(p => {
4421
4369
  id: 'next'
4422
4370
  })
4423
4371
  }, p),
4424
- {
4425
- modalProps,
4426
- completeText,
4427
- nextText,
4428
- className
4429
- } = _merge,
4372
+ modalProps = _merge.modalProps,
4373
+ completeText = _merge.completeText,
4374
+ nextText = _merge.nextText,
4375
+ className = _merge.className,
4430
4376
  others = _objectWithoutPropertiesLoose(_merge, _excluded2);
4431
4377
  return /*#__PURE__*/jsxRuntime.jsx(FormModal, _extends({}, modalProps, {
4432
4378
  modalRender: _ref => {
4433
- let {
4434
- defaultChildren
4435
- } = _ref;
4379
+ let defaultChildren = _ref.defaultChildren;
4436
4380
  return /*#__PURE__*/jsxRuntime.jsx(FormSteps, _extends({}, Object.assign({}, others, {
4437
4381
  items: others.items.map(item => {
4438
4382
  return Object.assign({}, item, {
@@ -4458,9 +4402,7 @@ const FormStepsModal = withLocale(p => {
4458
4402
  }
4459
4403
  },
4460
4404
  children: _ref2 => {
4461
- let {
4462
- children: stepChildren
4463
- } = _ref2,
4405
+ let stepChildren = _ref2.children,
4464
4406
  props = _objectWithoutPropertiesLoose(_ref2, _excluded3);
4465
4407
  return /*#__PURE__*/jsxRuntime.jsx(Provider, {
4466
4408
  value: _extends({
@@ -4472,9 +4414,7 @@ const FormStepsModal = withLocale(p => {
4472
4414
  }));
4473
4415
  },
4474
4416
  footer: _ref3 => {
4475
- let {
4476
- props
4477
- } = _ref3;
4417
+ let props = _ref3.props;
4478
4418
  return /*#__PURE__*/jsxRuntime.jsx(StepFormFooter, _extends({}, props, {
4479
4419
  completeText: completeText,
4480
4420
  nextText: nextText