@redneckz/wildless-cms-uni-blocks 0.14.219 → 0.14.220
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.
- package/bin/migration-scripts/0.14.214.js +25 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +5 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/dist/components/ApplicationFormCustom/getField.js +2 -1
- package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/Input/InputControl.js +1 -1
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +1 -0
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/lib/components/ApplicationFormCustom/getField.js +2 -1
- package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/Input/InputControl.js +1 -1
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/dist/components/ApplicationFormCustom/getField.js +2 -1
- package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/lib/components/ApplicationFormCustom/getField.js +2 -1
- package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +38 -13
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +5 -4
- package/mobile/src/components/ApplicationFormCustom/getField.tsx +10 -1
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
- package/mobile/src/ui-kit/Input/InputControl.tsx +13 -2
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +38 -13
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +32 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +5 -4
- package/src/components/ApplicationFormCustom/getField.tsx +10 -1
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
- package/src/ui-kit/Input/InputControl.tsx +13 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
|
|
1202
1202
|
const DatePickerControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(DatePicker, { label: label && rest?.errors ? `${label}*` : label, valid: Boolean(!error), ...rest }), renderErrorText(error)] })));
|
|
1203
1203
|
|
|
1204
|
-
const InputControl = JSX(({ className, label, value = '', placeholder, error, onChange, onBlur, isTextarea, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(Input, { type:
|
|
1204
|
+
const InputControl = JSX(({ className, label, value = '', placeholder, error, onChange, onBlur, isTextarea, type, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(Input, { type: type || 'text', "aria-label": label, label: label && rest?.errors ? `${label}*` : label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur, isTextarea: isTextarea, placeholder: rest?.errors && !label ? `${placeholder}*` : placeholder }), renderErrorText(error)] })));
|
|
1205
1205
|
|
|
1206
1206
|
const isPlaceholder = (_) => _ === '_';
|
|
1207
1207
|
const isDigit = (_) => /\d/.test(_);
|
|
@@ -1383,6 +1383,7 @@
|
|
|
1383
1383
|
fullName: defaultValidator,
|
|
1384
1384
|
inn: innValidator,
|
|
1385
1385
|
partnerComments: defaultValidator,
|
|
1386
|
+
collectionCount: defaultValidator,
|
|
1386
1387
|
comment: defaultValidator,
|
|
1387
1388
|
acquiringType: defaultSelectValidator,
|
|
1388
1389
|
serviceType: defaultSelectValidator,
|
|
@@ -1535,7 +1536,8 @@
|
|
|
1535
1536
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
1536
1537
|
birthday: (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, required) })),
|
|
1537
1538
|
isClient: (jsx(CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })),
|
|
1538
|
-
partnerComments: (jsx(InputControl, {
|
|
1539
|
+
partnerComments: (jsx(InputControl, { ...getValidation(field('partnerComments'), validatorObj.partnerComments, required), placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441", isTextarea: true, ...rest })),
|
|
1540
|
+
collectionCount: (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u043A\u0430\u0441\u0441\u0430\u0446\u0438\u0438", type: "number", ...getValidation(field('partnerComments'), validatorObj.collectionCount, required) })),
|
|
1539
1541
|
acquiringType: jsx(AcquiringField, { field: field, input: input }),
|
|
1540
1542
|
onlineCheckout: jsx(OnlineCheckoutField, { field: field }),
|
|
1541
1543
|
posTerminal: jsx(PosTerminalField, { field: field }),
|
|
@@ -6011,7 +6013,7 @@
|
|
|
6011
6013
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6012
6014
|
});
|
|
6013
6015
|
|
|
6014
|
-
const packageVersion = "0.14.
|
|
6016
|
+
const packageVersion = "0.14.219";
|
|
6015
6017
|
|
|
6016
6018
|
exports.Blocks = Blocks;
|
|
6017
6019
|
exports.ContentPage = ContentPage;
|