@redneckz/wildless-cms-uni-blocks 0.14.347 → 0.14.348
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 +11 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/AtmsMap.js +4 -0
- package/dist/components/OfficesAtmsMap/AtmsMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +3 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/AtmsMap.js +4 -0
- package/lib/components/OfficesAtmsMap/AtmsMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +3 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +11 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.js +4 -0
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +3 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.js +4 -0
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +3 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/src/components/OfficesAtmsMap/AtmsMap.tsx +4 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +2 -0
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +3 -1
- package/package.json +1 -1
- package/src/components/OfficesAtmsMap/AtmsMap.tsx +4 -0
- package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +2 -0
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +3 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -4969,14 +4969,17 @@
|
|
|
4969
4969
|
bullionOperations: 'Операции со слитками',
|
|
4970
4970
|
preciousMetalsOperations: 'Операции с драгоценными металлами',
|
|
4971
4971
|
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
4972
|
+
locationDisabledPeople: 'Для маломобильных',
|
|
4973
|
+
designDisabledPeople: 'Для слабовидящих',
|
|
4972
4974
|
remoteWorkplace: 'Удаленное рабочее место',
|
|
4973
4975
|
};
|
|
4974
4976
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
4975
4977
|
const renderFiltrationForm = (filters, { field, reset }, onlyOffice) => {
|
|
4976
|
-
const visibleFiltersNum = 4;
|
|
4978
|
+
const visibleFiltersNum = onlyOffice ? 4 : 6;
|
|
4977
4979
|
const filtersCheckbox = (filters || []).map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key)));
|
|
4978
|
-
const [visibleFilters, hiddenFilters] =
|
|
4979
|
-
|
|
4980
|
+
const [visibleFilters, hiddenFilters] = visibleFiltersNum > 0
|
|
4981
|
+
? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
|
|
4982
|
+
: [filtersCheckbox, []];
|
|
4980
4983
|
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] })), renderFoldButton: renderFoldButton$2(reset, onlyOffice) }) })) : null }));
|
|
4981
4984
|
};
|
|
4982
4985
|
const renderFoldButton$2 = (reset, onlyOffice) => ({ isUnfolded, onToggle }) => {
|
|
@@ -5100,12 +5103,16 @@
|
|
|
5100
5103
|
terminalTypeTerm: false,
|
|
5101
5104
|
workAllTime: false,
|
|
5102
5105
|
billAcceptorEnable: false,
|
|
5106
|
+
locationDisabledPeople: false,
|
|
5107
|
+
designDisabledPeople: false,
|
|
5103
5108
|
};
|
|
5104
5109
|
const FILTRATION_PREDICATES$1 = {
|
|
5105
5110
|
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
5106
5111
|
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
5107
5112
|
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
5108
5113
|
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
5114
|
+
locationDisabledPeople: (item) => Boolean(item.locationDisabledPeople),
|
|
5115
|
+
designDisabledPeople: (item) => Boolean(item.designDisabledPeople),
|
|
5109
5116
|
};
|
|
5110
5117
|
const AtmsMap = JSX(({ data, className }) => {
|
|
5111
5118
|
const [currentLocation] = useLocation();
|
|
@@ -6244,7 +6251,7 @@
|
|
|
6244
6251
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6245
6252
|
});
|
|
6246
6253
|
|
|
6247
|
-
const packageVersion = "0.14.
|
|
6254
|
+
const packageVersion = "0.14.347";
|
|
6248
6255
|
|
|
6249
6256
|
exports.Blocks = Blocks;
|
|
6250
6257
|
exports.ContentPage = ContentPage;
|