@redneckz/wildless-cms-uni-blocks 0.14.915 → 0.14.916
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +6 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Footer/LinkList.d.ts +0 -1
- package/bundle/model/AspectsProps.d.ts +9 -1
- package/bundle/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/dist/components/Footer/LinkList.d.ts +0 -1
- package/dist/components/Footer/LinkList.js +2 -2
- package/dist/components/Footer/LinkList.js.map +1 -1
- package/dist/model/AspectsProps.d.ts +9 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +3 -3
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/lib/components/Footer/LinkList.d.ts +0 -1
- package/lib/components/Footer/LinkList.js +2 -2
- package/lib/components/Footer/LinkList.js.map +1 -1
- package/lib/model/AspectsProps.d.ts +9 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
- package/lib/ui-kit/Sitemap/Sitemap.js +3 -3
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Footer/LinkList.d.ts +0 -1
- package/mobile/bundle/model/AspectsProps.d.ts +9 -1
- package/mobile/bundle/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/dist/components/Footer/LinkList.d.ts +0 -1
- package/mobile/dist/components/Footer/LinkList.js +2 -2
- package/mobile/dist/components/Footer/LinkList.js.map +1 -1
- package/mobile/dist/model/AspectsProps.d.ts +9 -1
- package/mobile/dist/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/lib/components/Footer/LinkList.d.ts +0 -1
- package/mobile/lib/components/Footer/LinkList.js +2 -2
- package/mobile/lib/components/Footer/LinkList.js.map +1 -1
- package/mobile/lib/model/AspectsProps.d.ts +9 -1
- package/mobile/lib/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/src/components/Footer/LinkList.tsx +2 -7
- package/mobile/src/model/AspectsProps.ts +11 -1
- package/mobile/src/ui-kit/Sitemap/SitemapProps.ts +1 -0
- package/package.json +1 -1
- package/src/components/Footer/LinkList.tsx +2 -7
- package/src/model/AspectsProps.ts +11 -1
- package/src/ui-kit/Sitemap/Sitemap.tsx +29 -29
- package/src/ui-kit/Sitemap/SitemapProps.ts +1 -0
|
@@ -2,7 +2,6 @@ import { type ComponentType } from '../../model/ComponentType';
|
|
|
2
2
|
import { type LinkProps } from '../../model/LinkProps';
|
|
3
3
|
interface LinkListProps extends ComponentType {
|
|
4
4
|
items?: LinkProps[];
|
|
5
|
-
isFlex?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const LinkList: import("@redneckz/uni-jsx").UNIComponent<LinkListProps, any, any>;
|
|
8
7
|
export {};
|
|
@@ -30,6 +30,14 @@ export declare type MindboxEventAspect = {
|
|
|
30
30
|
export declare type ChatBotAspect = {
|
|
31
31
|
aspectName: 'openChatBot';
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @title Отправить событие партнёру
|
|
35
|
+
* @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
|
|
36
|
+
*/
|
|
37
|
+
export declare type PartnersEventAspect = {
|
|
38
|
+
aspectName: 'partnersEvent';
|
|
39
|
+
params?: AspectData;
|
|
40
|
+
};
|
|
33
41
|
/**
|
|
34
42
|
* @title Не выбрано
|
|
35
43
|
*/
|
|
@@ -41,7 +49,7 @@ export declare type EmptyAspect = {
|
|
|
41
49
|
* @title Параметр
|
|
42
50
|
* @default { "aspectName": "" }
|
|
43
51
|
*/
|
|
44
|
-
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect;
|
|
52
|
+
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect | PartnersEventAspect;
|
|
45
53
|
export declare type AspectsProps = {
|
|
46
54
|
/** @title Дополнительные атрибуты */
|
|
47
55
|
data?: AspectsDef[];
|
|
@@ -2,7 +2,6 @@ import { type ComponentType } from '../../model/ComponentType';
|
|
|
2
2
|
import { type LinkProps } from '../../model/LinkProps';
|
|
3
3
|
interface LinkListProps extends ComponentType {
|
|
4
4
|
items?: LinkProps[];
|
|
5
|
-
isFlex?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const LinkList: import("@redneckz/uni-jsx").UNIComponent<LinkListProps, any, any>;
|
|
8
7
|
export {};
|
|
@@ -5,9 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const useLink_1 = require("../../hooks/useLink");
|
|
6
6
|
const dataAttributes_1 = require("../../utils/dataAttributes");
|
|
7
7
|
const style_1 = require("../../utils/style");
|
|
8
|
-
exports.LinkList = (0, uni_jsx_1.JSX)(({ className
|
|
8
|
+
exports.LinkList = (0, uni_jsx_1.JSX)(({ className, items }) => {
|
|
9
9
|
const link = (0, useLink_1.useLink)();
|
|
10
|
-
return (
|
|
10
|
+
return (0, jsx_runtime_1.jsx)("ul", { className: (0, style_1.style)('w-full', className), children: items?.map(renderLinkListItem(link)) });
|
|
11
11
|
});
|
|
12
12
|
const renderLinkListItem = (link) => ({ dataFooter, ...linkProps }, i) => {
|
|
13
13
|
const { text, href, target, onClick } = link(linkProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/components/Footer/LinkList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAG9C,+DAAkE;AAClE,6CAA0C;
|
|
1
|
+
{"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/components/Footer/LinkList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAG9C,+DAAkE;AAClE,6CAA0C;AAM7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEvB,OAAO,+BAAI,SAAS,EAAE,IAAA,aAAK,EAAC,QAAQ,EAAE,SAAS,CAAC,YAAG,KAAK,EAAE,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAM,CAAC;AAChG,CAAC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GACtB,CAAC,IAAgC,EAAE,EAAE,CACrC,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,EAAuB,EAAE,CAAS,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAExD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,+BAAoB,SAAS,EAAC,WAAW,YACvC,8BACE,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,KAEZ,IAAA,qCAAoB,EAAC,UAAU,CAAC,YAEnC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GACjB,IAXG,MAAM,CAAC,CAAC,CAAC,CAYb,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -30,6 +30,14 @@ export declare type MindboxEventAspect = {
|
|
|
30
30
|
export declare type ChatBotAspect = {
|
|
31
31
|
aspectName: 'openChatBot';
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @title Отправить событие партнёру
|
|
35
|
+
* @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
|
|
36
|
+
*/
|
|
37
|
+
export declare type PartnersEventAspect = {
|
|
38
|
+
aspectName: 'partnersEvent';
|
|
39
|
+
params?: AspectData;
|
|
40
|
+
};
|
|
33
41
|
/**
|
|
34
42
|
* @title Не выбрано
|
|
35
43
|
*/
|
|
@@ -41,7 +49,7 @@ export declare type EmptyAspect = {
|
|
|
41
49
|
* @title Параметр
|
|
42
50
|
* @default { "aspectName": "" }
|
|
43
51
|
*/
|
|
44
|
-
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect;
|
|
52
|
+
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect | PartnersEventAspect;
|
|
45
53
|
export declare type AspectsProps = {
|
|
46
54
|
/** @title Дополнительные атрибуты */
|
|
47
55
|
data?: AspectsDef[];
|
|
@@ -10,15 +10,15 @@ const style_1 = require("../../utils/style");
|
|
|
10
10
|
const isVisibleItem_1 = require("./isVisibleItem");
|
|
11
11
|
const FOOTER_AREA_KEYS = ['all', 'footer'];
|
|
12
12
|
const IS_SINGLE_SEARCH_INDEX = Boolean(Env_1.env.SINGLE_SEARCH_INDEX);
|
|
13
|
-
exports.Sitemap = (0, uni_jsx_1.JSX)(({ className, navigationItems }) => {
|
|
13
|
+
exports.Sitemap = (0, uni_jsx_1.JSX)(({ className, navigationItems, isSearchPanel = false }) => {
|
|
14
14
|
const link = (0, useLink_1.useLink)();
|
|
15
15
|
const filteredItems = navigationItems?.filter((0, isVisibleItem_1.isVisibleItem)(FOOTER_AREA_KEYS))?.map(link) ?? [];
|
|
16
16
|
const [firstItem] = filteredItems;
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "space-y-2", children: IS_SINGLE_SEARCH_INDEX ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { className: "columns-3 space-y-3 gap-x-6xl", items: firstItem?.items
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "space-y-2", children: IS_SINGLE_SEARCH_INDEX && isSearchPanel ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { className: "block columns-3 space-y-3 gap-x-6xl", items: firstItem?.items }) })) : ((0, jsx_runtime_1.jsx)("div", { role: "menu", className: (0, style_1.style)('w-full flex items-start justify-between flex-col md:flex-row gap-m lg:order-2', className), children: filteredItems?.map(renderColumn) })) }));
|
|
18
18
|
});
|
|
19
19
|
const renderColumn = (menuItem, index) => {
|
|
20
20
|
const { text, items = [], href, target = '_self', onClick, dataFooter } = menuItem;
|
|
21
21
|
const visibleSubItems = items.filter((0, isVisibleItem_1.isVisibleItem)(FOOTER_AREA_KEYS));
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { role: "menuitem", className: "flex flex-col gap-s w-full @md:w-1/4", children: [(0, jsx_runtime_1.jsx)("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target, onClick: onClick, ...(0, dataAttributes_1.getAspectsAttributes)(dataFooter), children: text }), visibleSubItems ? (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: visibleSubItems }) : null] }, String(index)));
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { role: "menuitem", className: "flex flex-col gap-s w-full @md:w-1/4", children: [(0, jsx_runtime_1.jsx)("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target, onClick: onClick, ...(0, dataAttributes_1.getAspectsAttributes)(dataFooter), children: text }), visibleSubItems ? ((0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { className: "flex flex-col gap-s", items: visibleSubItems })) : null] }, String(index)));
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=Sitemap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/ui-kit/Sitemap/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAE5D,mCAAgC;AAChC,iDAA8C;AAC9C,+DAAkE;AAClE,6CAA0C;AAC1C,mDAAgD;AAGhD,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC3C,MAAM,sBAAsB,GAAG,OAAO,CAAC,SAAG,CAAC,mBAAmB,CAAC,CAAC;AAEnD,QAAA,OAAO,GAAG,IAAA,aAAG,
|
|
1
|
+
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/ui-kit/Sitemap/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAE5D,mCAAgC;AAChC,iDAA8C;AAC9C,+DAAkE;AAClE,6CAA0C;AAC1C,mDAAgD;AAGhD,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC3C,MAAM,sBAAsB,GAAG,OAAO,CAAC,SAAG,CAAC,mBAAmB,CAAC,CAAC;AAEnD,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,GAAG,KAAK,EAAE,EAAE,EAAE;IACxD,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEvB,MAAM,aAAa,GAAG,eAAe,EAAE,MAAM,CAAC,IAAA,6BAAa,EAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAEhG,MAAM,CAAC,SAAS,CAAC,GAAG,aAAa,CAAC;IAElC,OAAO,CACL,gCAAK,SAAS,EAAC,WAAW,YACvB,sBAAsB,IAAI,aAAa,CAAC,CAAC,CAAC,CACzC,0CACE,uBAAC,mBAAQ,IAAC,SAAS,EAAC,qCAAqC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,GAAI,GACjF,CACP,CAAC,CAAC,CAAC,CACF,gCACE,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,IAAA,aAAK,EACd,+EAA+E,EAC/E,SAAS,CACV,YAEA,aAAa,EAAE,GAAG,CAAC,YAAY,CAAC,GAC7B,CACP,GACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,QAAoD,EAAE,KAAa,EAAE,EAAE;IAC3F,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;IAEnF,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,IAAA,6BAAa,EAAC,gBAAgB,CAAC,CAAC,CAAC;IAEtE,OAAO,CACL,iCAAK,IAAI,EAAC,UAAU,EAAqB,SAAS,EAAC,sCAAsC,aACvF,8BACE,SAAS,EAAC,yEAAyE,EACnF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KAEZ,IAAA,qCAAoB,EAAC,UAAU,CAAC,YAEnC,IAAI,GACH,EACH,eAAe,CAAC,CAAC,CAAC,CACjB,uBAAC,mBAAQ,IAAC,SAAS,EAAC,qBAAqB,EAAC,KAAK,EAAE,eAAe,GAAI,CACrE,CAAC,CAAC,CAAC,IAAI,KAbgB,MAAM,CAAC,KAAK,CAAC,CAcjC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { type ComponentType } from '../../model/ComponentType';
|
|
|
2
2
|
import { type LinkProps } from '../../model/LinkProps';
|
|
3
3
|
interface LinkListProps extends ComponentType {
|
|
4
4
|
items?: LinkProps[];
|
|
5
|
-
isFlex?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const LinkList: import("@redneckz/uni-jsx").UNIComponent<LinkListProps, any, any>;
|
|
8
7
|
export {};
|
|
@@ -3,9 +3,9 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
4
|
import { getAspectsAttributes } from '../../utils/dataAttributes.js';
|
|
5
5
|
import { style } from '../../utils/style.js';
|
|
6
|
-
export const LinkList = JSX(({ className
|
|
6
|
+
export const LinkList = JSX(({ className, items }) => {
|
|
7
7
|
const link = useLink();
|
|
8
|
-
return
|
|
8
|
+
return _jsx("ul", { className: style('w-full', className), children: items?.map(renderLinkListItem(link)) });
|
|
9
9
|
});
|
|
10
10
|
const renderLinkListItem = (link) => ({ dataFooter, ...linkProps }, i) => {
|
|
11
11
|
const { text, href, target, onClick } = link(linkProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/components/Footer/LinkList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/components/Footer/LinkList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAM1C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,OAAO,aAAI,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,YAAG,KAAK,EAAE,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAM,CAAC;AAChG,CAAC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GACtB,CAAC,IAAgC,EAAE,EAAE,CACrC,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,EAAuB,EAAE,CAAS,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAExD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,aAAoB,SAAS,EAAC,WAAW,YACvC,YACE,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,KAEZ,oBAAoB,CAAC,UAAU,CAAC,YAEnC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GACjB,IAXG,MAAM,CAAC,CAAC,CAAC,CAYb,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -30,6 +30,14 @@ export declare type MindboxEventAspect = {
|
|
|
30
30
|
export declare type ChatBotAspect = {
|
|
31
31
|
aspectName: 'openChatBot';
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @title Отправить событие партнёру
|
|
35
|
+
* @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
|
|
36
|
+
*/
|
|
37
|
+
export declare type PartnersEventAspect = {
|
|
38
|
+
aspectName: 'partnersEvent';
|
|
39
|
+
params?: AspectData;
|
|
40
|
+
};
|
|
33
41
|
/**
|
|
34
42
|
* @title Не выбрано
|
|
35
43
|
*/
|
|
@@ -41,7 +49,7 @@ export declare type EmptyAspect = {
|
|
|
41
49
|
* @title Параметр
|
|
42
50
|
* @default { "aspectName": "" }
|
|
43
51
|
*/
|
|
44
|
-
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect;
|
|
52
|
+
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect | PartnersEventAspect;
|
|
45
53
|
export declare type AspectsProps = {
|
|
46
54
|
/** @title Дополнительные атрибуты */
|
|
47
55
|
data?: AspectsDef[];
|
|
@@ -41,7 +41,7 @@ export declare const getParticipantIncomes: (participantIncomes: Participant['pa
|
|
|
41
41
|
export declare const getParticipantAddresses: (participantAddresses: Participant['participantAddresses']) => {
|
|
42
42
|
addressRegistration: {
|
|
43
43
|
addressType: {
|
|
44
|
-
key: "
|
|
44
|
+
key: "WORK" | "REGISTRATION" | "RESIDENTAL";
|
|
45
45
|
};
|
|
46
46
|
apartment: string;
|
|
47
47
|
block: string;
|
|
@@ -60,7 +60,7 @@ export declare const getParticipantAddresses: (participantAddresses: Participant
|
|
|
60
60
|
} | undefined;
|
|
61
61
|
addressFact: {
|
|
62
62
|
addressType: {
|
|
63
|
-
key: "
|
|
63
|
+
key: "WORK" | "REGISTRATION" | "RESIDENTAL";
|
|
64
64
|
};
|
|
65
65
|
apartment: string;
|
|
66
66
|
block: string;
|
|
@@ -79,7 +79,7 @@ export declare const getParticipantAddresses: (participantAddresses: Participant
|
|
|
79
79
|
} | undefined;
|
|
80
80
|
organizationAddress: {
|
|
81
81
|
addressType: {
|
|
82
|
-
key: "
|
|
82
|
+
key: "WORK" | "REGISTRATION" | "RESIDENTAL";
|
|
83
83
|
};
|
|
84
84
|
apartment: string;
|
|
85
85
|
block: string;
|
|
@@ -8,15 +8,15 @@ import { style } from '../../utils/style.js';
|
|
|
8
8
|
import { isVisibleItem } from './isVisibleItem.js';
|
|
9
9
|
const FOOTER_AREA_KEYS = ['all', 'footer'];
|
|
10
10
|
const IS_SINGLE_SEARCH_INDEX = Boolean(env.SINGLE_SEARCH_INDEX);
|
|
11
|
-
export const Sitemap = JSX(({ className, navigationItems }) => {
|
|
11
|
+
export const Sitemap = JSX(({ className, navigationItems, isSearchPanel = false }) => {
|
|
12
12
|
const link = useLink();
|
|
13
13
|
const filteredItems = navigationItems?.filter(isVisibleItem(FOOTER_AREA_KEYS))?.map(link) ?? [];
|
|
14
14
|
const [firstItem] = filteredItems;
|
|
15
|
-
return (_jsx("div", { className: "space-y-2", children: IS_SINGLE_SEARCH_INDEX ? (_jsx("div", { children: _jsx(LinkList, { className: "columns-3 space-y-3 gap-x-6xl", items: firstItem?.items
|
|
15
|
+
return (_jsx("div", { className: "space-y-2", children: IS_SINGLE_SEARCH_INDEX && isSearchPanel ? (_jsx("div", { children: _jsx(LinkList, { className: "block columns-3 space-y-3 gap-x-6xl", items: firstItem?.items }) })) : (_jsx("div", { role: "menu", className: style('w-full flex items-start justify-between flex-col md:flex-row gap-m lg:order-2', className), children: filteredItems?.map(renderColumn) })) }));
|
|
16
16
|
});
|
|
17
17
|
const renderColumn = (menuItem, index) => {
|
|
18
18
|
const { text, items = [], href, target = '_self', onClick, dataFooter } = menuItem;
|
|
19
19
|
const visibleSubItems = items.filter(isVisibleItem(FOOTER_AREA_KEYS));
|
|
20
|
-
return (_jsxs("div", { role: "menuitem", className: "flex flex-col gap-s w-full @md:w-1/4", children: [_jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target, onClick: onClick, ...getAspectsAttributes(dataFooter), children: text }), visibleSubItems ? _jsx(LinkList, { items: visibleSubItems }) : null] }, String(index)));
|
|
20
|
+
return (_jsxs("div", { role: "menuitem", className: "flex flex-col gap-s w-full @md:w-1/4", children: [_jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target, onClick: onClick, ...getAspectsAttributes(dataFooter), children: text }), visibleSubItems ? (_jsx(LinkList, { className: "flex flex-col gap-s", items: visibleSubItems })) : null] }, String(index)));
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=Sitemap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/ui-kit/Sitemap/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC3C,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/ui-kit/Sitemap/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC3C,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CACxB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,GAAG,KAAK,EAAE,EAAE,EAAE;IACxD,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,aAAa,GAAG,eAAe,EAAE,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAEhG,MAAM,CAAC,SAAS,CAAC,GAAG,aAAa,CAAC;IAElC,OAAO,CACL,cAAK,SAAS,EAAC,WAAW,YACvB,sBAAsB,IAAI,aAAa,CAAC,CAAC,CAAC,CACzC,wBACE,KAAC,QAAQ,IAAC,SAAS,EAAC,qCAAqC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,GAAI,GACjF,CACP,CAAC,CAAC,CAAC,CACF,cACE,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,KAAK,CACd,+EAA+E,EAC/E,SAAS,CACV,YAEA,aAAa,EAAE,GAAG,CAAC,YAAY,CAAC,GAC7B,CACP,GACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,QAAoD,EAAE,KAAa,EAAE,EAAE;IAC3F,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;IAEnF,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEtE,OAAO,CACL,eAAK,IAAI,EAAC,UAAU,EAAqB,SAAS,EAAC,sCAAsC,aACvF,YACE,SAAS,EAAC,yEAAyE,EACnF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KAEZ,oBAAoB,CAAC,UAAU,CAAC,YAEnC,IAAI,GACH,EACH,eAAe,CAAC,CAAC,CAAC,CACjB,KAAC,QAAQ,IAAC,SAAS,EAAC,qBAAqB,EAAC,KAAK,EAAE,eAAe,GAAI,CACrE,CAAC,CAAC,CAAC,IAAI,KAbgB,MAAM,CAAC,KAAK,CAAC,CAcjC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -10495,9 +10495,9 @@
|
|
|
10495
10495
|
});
|
|
10496
10496
|
const getCurrencyRates = (currencies) => currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
|
|
10497
10497
|
|
|
10498
|
-
const LinkList = JSX(({ className
|
|
10498
|
+
const LinkList = JSX(({ className, items }) => {
|
|
10499
10499
|
const link = useLink();
|
|
10500
|
-
return
|
|
10500
|
+
return jsx("ul", { className: style('w-full', className), children: items?.map(renderLinkListItem(link)) });
|
|
10501
10501
|
});
|
|
10502
10502
|
const renderLinkListItem = (link) => ({ dataFooter, ...linkProps }, i) => {
|
|
10503
10503
|
const { text, href, target, onClick } = link(linkProps);
|
|
@@ -11835,7 +11835,7 @@
|
|
|
11835
11835
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11836
11836
|
});
|
|
11837
11837
|
|
|
11838
|
-
const packageVersion = "0.14.
|
|
11838
|
+
const packageVersion = "0.14.915";
|
|
11839
11839
|
|
|
11840
11840
|
exports.Blocks = Blocks;
|
|
11841
11841
|
exports.ContentPage = ContentPage;
|