@redneckz/wildless-cms-uni-blocks 0.14.213 → 0.14.214
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/bundle/bundle.umd.js +7 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/dist/components/ApplicationFormCustom/RegionField.js +1 -1
- package/dist/components/ApplicationFormCustom/RegionField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
- package/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getFormatData.js +1 -1
- package/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/lib/components/ApplicationFormCustom/RegionField.js +1 -1
- package/lib/components/ApplicationFormCustom/RegionField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
- package/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getFormatData.js +1 -1
- package/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +7 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/RegionField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/RegionField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getFormatData.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +2 -2
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/RegionField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/RegionField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/RegionPremiumField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getFormatData.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -3
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/RegionField.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/RegionPremiumField.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/getFormatData.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -3
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +1 -1
- package/src/components/ApplicationFormCustom/RegionField.tsx +1 -1
- package/src/components/ApplicationFormCustom/RegionPremiumField.tsx +1 -1
- package/src/components/ApplicationFormCustom/getFormatData.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1492,12 +1492,12 @@
|
|
|
1492
1492
|
|
|
1493
1493
|
const RegionField = JSX(({ field, input }) => {
|
|
1494
1494
|
const regions = useRegions();
|
|
1495
|
-
return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: useMemo(() => regions
|
|
1495
|
+
return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: useMemo(() => regions?.map(({ code = '', name = '' }) => ({ key: code, text: name })), [regions]), ...getValidation(field('region'), validatorObj.region, input?.required) }));
|
|
1496
1496
|
});
|
|
1497
1497
|
|
|
1498
1498
|
const RegionPremiumField = JSX(({ field, input }) => {
|
|
1499
1499
|
const branchByRegions = usePremiumBranchesByRegions();
|
|
1500
|
-
const regions = useMemo(() => branchByRegions
|
|
1500
|
+
const regions = useMemo(() => branchByRegions?.map(({ region }) => ({
|
|
1501
1501
|
key: region,
|
|
1502
1502
|
text: region,
|
|
1503
1503
|
})), []);
|
|
@@ -1549,8 +1549,8 @@
|
|
|
1549
1549
|
const AddressBranchField = JSX(({ field, input, isPremium = false }) => {
|
|
1550
1550
|
const regionKey = field('region')?.value?.text;
|
|
1551
1551
|
const addressBranch = isPremium
|
|
1552
|
-
? usePremiumBranchesByRegions()
|
|
1553
|
-
: useBranches(regionKey)
|
|
1552
|
+
? usePremiumBranchesByRegions()?.find((_) => _?.region === regionKey)?.branches
|
|
1553
|
+
: useBranches(regionKey)?.filter((branch) => branch?.address);
|
|
1554
1554
|
const { value, onChange } = field?.('addressBranch') || {};
|
|
1555
1555
|
useEffect(() => {
|
|
1556
1556
|
if (value?.key !== '') {
|
|
@@ -1807,7 +1807,7 @@
|
|
|
1807
1807
|
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, ...usedData } = data;
|
|
1808
1808
|
const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
|
|
1809
1809
|
const formatData = { ...usedData, ...(partnerComments ? { partnerComments } : {}) };
|
|
1810
|
-
return Object.fromEntries(Object.entries(formatData)
|
|
1810
|
+
return Object.fromEntries(Object.entries(formatData)?.map(([k, v]) => [
|
|
1811
1811
|
k,
|
|
1812
1812
|
(k === 'region' ? v?.text : v?.key) || v,
|
|
1813
1813
|
]));
|
|
@@ -1864,7 +1864,7 @@
|
|
|
1864
1864
|
return (jsx(ApplicationFormLayout, { className: style(formStyle, className), title: title, responseType: responseType, children: jsxs("form", { className: "", onSubmit: onSubmit, children: [sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [_?.title ? jsx("div", { className: "@xl:text-center @xl:col-span-2", children: _.title }) : null, _?.inputs?.map(getField(field, typeForm))] }, `section-${i}`))), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }) }));
|
|
1865
1865
|
});
|
|
1866
1866
|
const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
|
|
1867
|
-
const getConsentDataProcessing = (inputs) => inputs
|
|
1867
|
+
const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'consentDataProcessing');
|
|
1868
1868
|
|
|
1869
1869
|
/** @deprecated */
|
|
1870
1870
|
const AlignStyles = 'text-center';
|
|
@@ -5954,7 +5954,7 @@
|
|
|
5954
5954
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5955
5955
|
});
|
|
5956
5956
|
|
|
5957
|
-
const packageVersion = "0.14.
|
|
5957
|
+
const packageVersion = "0.14.213";
|
|
5958
5958
|
|
|
5959
5959
|
exports.Blocks = Blocks;
|
|
5960
5960
|
exports.ContentPage = ContentPage;
|