@redneckz/wildless-cms-uni-blocks 0.14.280 → 0.14.282
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.280.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +7 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/bundle/model/ContentPageDef.d.ts +1 -0
- package/bundle/model/LinkProps.d.ts +3 -3
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/dist/components/ApplicationFormCustom/VedField.js +1 -1
- package/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/dist/model/ContentPageDef.d.ts +1 -0
- package/dist/model/LinkProps.d.ts +3 -3
- package/lib/common.css +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/lib/components/ApplicationFormCustom/VedField.js +1 -1
- package/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/lib/model/ContentPageDef.d.ts +1 -0
- package/lib/model/LinkProps.d.ts +3 -3
- package/mobile/bundle/bundle.umd.js +7 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/bundle/model/ContentPageDef.d.ts +1 -0
- package/mobile/bundle/model/LinkProps.d.ts +3 -3
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/dist/components/ApplicationFormCustom/VedField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/dist/model/ContentPageDef.d.ts +1 -0
- package/mobile/dist/model/LinkProps.d.ts +3 -3
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/lib/components/ApplicationFormCustom/VedField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/lib/model/ContentPageDef.d.ts +1 -0
- package/mobile/lib/model/LinkProps.d.ts +3 -3
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
- package/mobile/src/components/ApplicationFormCustom/VedField.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
- package/mobile/src/model/ContentPageDef.ts +1 -0
- package/mobile/src/model/LinkProps.ts +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +159 -101
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
- package/src/components/ApplicationFormCustom/VedField.tsx +1 -1
- package/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
- package/src/model/ContentPageDef.ts +1 -0
- package/src/model/LinkProps.ts +3 -3
package/bundle/bundle.umd.js
CHANGED
|
@@ -1460,7 +1460,7 @@
|
|
|
1460
1460
|
field?.('addressBranch')?.onChange?.('');
|
|
1461
1461
|
}
|
|
1462
1462
|
}, [fieldRegion?.value]);
|
|
1463
|
-
return (jsx(SelectControl, { label: "\
|
|
1463
|
+
return (jsx(SelectControl, { label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", options: (addressBranch || []).map(({ address = '' }) => ({
|
|
1464
1464
|
key: address,
|
|
1465
1465
|
text: address,
|
|
1466
1466
|
})), ...getValidation(field('addressBranch'), validatorObj.addressBranch, input?.required) }));
|
|
@@ -1626,7 +1626,7 @@
|
|
|
1626
1626
|
field?.('region')?.onChange?.('');
|
|
1627
1627
|
}
|
|
1628
1628
|
}, [value]);
|
|
1629
|
-
return (jsxs("div", { className: "py-m
|
|
1629
|
+
return (jsxs("div", { className: "py-m gap-m grid @xl:flex @xl:items-center", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: onChange })] }));
|
|
1630
1630
|
});
|
|
1631
1631
|
|
|
1632
1632
|
const getField =
|
|
@@ -1734,7 +1734,10 @@
|
|
|
1734
1734
|
consentDataProcessing: false,
|
|
1735
1735
|
};
|
|
1736
1736
|
const getInitialFormState = (inputs, typeForm = '') => {
|
|
1737
|
-
const formState = Object.fromEntries(
|
|
1737
|
+
const formState = Object.fromEntries(inputs.map((_) => [
|
|
1738
|
+
_.name,
|
|
1739
|
+
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
|
|
1740
|
+
]));
|
|
1738
1741
|
if (formState?.serviceType && typeForm === 'PREMIUMSERVICE') {
|
|
1739
1742
|
formState.serviceType = SERVICE_TYPES[1];
|
|
1740
1743
|
}
|
|
@@ -6109,7 +6112,7 @@
|
|
|
6109
6112
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6110
6113
|
});
|
|
6111
6114
|
|
|
6112
|
-
const packageVersion = "0.14.
|
|
6115
|
+
const packageVersion = "0.14.281";
|
|
6113
6116
|
|
|
6114
6117
|
exports.Blocks = Blocks;
|
|
6115
6118
|
exports.ContentPage = ContentPage;
|