md-components-mdigial-azamat 0.0.322 → 0.0.324
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.
|
@@ -1,51 +1,56 @@
|
|
|
1
1
|
import { jsx as r, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import { FeaturesCard as
|
|
3
|
-
import { FieldTypes as
|
|
4
|
-
import { t as
|
|
2
|
+
import { FeaturesCard as T } from "../Cards/FeaturesCard/index.js";
|
|
3
|
+
import { FieldTypes as e, DataTypesEnum as m } from "../Types/FiledTypes.js";
|
|
4
|
+
import { t as E } from "../themeProps-d4f49292.js";
|
|
5
5
|
import { C } from "../ComponentContainer-dca711c6.js";
|
|
6
|
-
import { H as
|
|
7
|
-
import { S as
|
|
6
|
+
import { H as I } from "../Heading-f935c90a.js";
|
|
7
|
+
import { S as N } from "../SafeHtml-c32fde04.js";
|
|
8
8
|
import { c as s } from "../cn-6a4bf187.js";
|
|
9
|
-
import { S as
|
|
10
|
-
const
|
|
9
|
+
import { S as t } from "../size-b1291031.js";
|
|
10
|
+
const A = {
|
|
11
11
|
type: "cards",
|
|
12
12
|
label: "Карточки",
|
|
13
13
|
dataType: "array",
|
|
14
14
|
data: {
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
17
|
-
image:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
title: e.TITLE,
|
|
16
|
+
description: e.DESCRIPTION,
|
|
17
|
+
image: e.FILE,
|
|
18
|
+
// Карточку рисует FeaturesCard, а он показывает ссылку по link/link_text.
|
|
19
|
+
// Без них в схеме конструктор не строит поля, и подпись ссылки в карточке
|
|
20
|
+
// нельзя ни исправить, ни стереть.
|
|
21
|
+
link: e.LINK,
|
|
22
|
+
link_text: e.TITLE,
|
|
23
|
+
is_black: e.BOOLEAN,
|
|
24
|
+
variant: e.VARIANT,
|
|
25
|
+
badge: e.TITLE,
|
|
26
|
+
color_bg: e.COLOR,
|
|
27
|
+
item_color_text: e.COLOR,
|
|
28
|
+
color_description: e.COLOR
|
|
24
29
|
}
|
|
25
30
|
}, y = {
|
|
26
31
|
type: "multiHasText",
|
|
27
32
|
label: "Множественные текстовые карточки",
|
|
28
33
|
dataType: "boolean"
|
|
29
|
-
},
|
|
34
|
+
}, _ = {
|
|
30
35
|
label: "Размер карточки",
|
|
31
36
|
key: "size",
|
|
32
37
|
dataType: m.select,
|
|
33
38
|
options: [
|
|
34
|
-
{ value:
|
|
35
|
-
{ value:
|
|
36
|
-
{ value:
|
|
39
|
+
{ value: t.SMALL, label: "Маленький" },
|
|
40
|
+
{ value: t.MEDIUM, label: "Средний" },
|
|
41
|
+
{ value: t.LARGE, label: "Большой" }
|
|
37
42
|
]
|
|
38
|
-
},
|
|
43
|
+
}, O = {
|
|
39
44
|
label: "Размер изображений",
|
|
40
45
|
key: "image_size",
|
|
41
46
|
dataType: m.select,
|
|
42
47
|
options: [
|
|
43
|
-
{ value:
|
|
44
|
-
{ value:
|
|
45
|
-
{ value:
|
|
48
|
+
{ value: t.SMALL, label: "Маленький" },
|
|
49
|
+
{ value: t.MEDIUM, label: "Средний" },
|
|
50
|
+
{ value: t.LARGE, label: "Большой" },
|
|
46
51
|
{ value: "xlarge", label: "Очень большой" }
|
|
47
52
|
]
|
|
48
|
-
},
|
|
53
|
+
}, R = {
|
|
49
54
|
label: "Выравнивание контента карточек",
|
|
50
55
|
key: "content_align",
|
|
51
56
|
dataType: m.select,
|
|
@@ -54,32 +59,32 @@ const I = {
|
|
|
54
59
|
{ value: "center", label: "Середина" },
|
|
55
60
|
{ value: "end", label: "Конец" }
|
|
56
61
|
]
|
|
57
|
-
},
|
|
58
|
-
|
|
62
|
+
}, S = [
|
|
63
|
+
A,
|
|
59
64
|
"title",
|
|
60
|
-
|
|
65
|
+
E,
|
|
61
66
|
"description",
|
|
67
|
+
_,
|
|
62
68
|
O,
|
|
63
69
|
R,
|
|
64
|
-
S,
|
|
65
70
|
"turnover",
|
|
66
71
|
y,
|
|
67
72
|
"grid"
|
|
68
|
-
],
|
|
73
|
+
], k = ({
|
|
69
74
|
cards: i,
|
|
70
75
|
title: c,
|
|
71
76
|
title_tag: f,
|
|
72
77
|
title_color: d,
|
|
73
78
|
description: o,
|
|
74
|
-
size: g =
|
|
75
|
-
image_size: u =
|
|
79
|
+
size: g = t.SMALL,
|
|
80
|
+
image_size: u = t.LARGE,
|
|
76
81
|
turnover: h,
|
|
77
82
|
multiHasText: n = !1,
|
|
78
83
|
grid: x,
|
|
79
84
|
layoutMode: a,
|
|
80
|
-
content_align:
|
|
85
|
+
content_align: L = "start"
|
|
81
86
|
}) => {
|
|
82
|
-
const
|
|
87
|
+
const v = (() => {
|
|
83
88
|
if (a)
|
|
84
89
|
switch (a) {
|
|
85
90
|
case "grid-2":
|
|
@@ -100,9 +105,9 @@ const I = {
|
|
|
100
105
|
if (n)
|
|
101
106
|
return "grid grid-cols-2 items-stretch max-tablet:grid-cols-1 h-full";
|
|
102
107
|
switch (g) {
|
|
103
|
-
case
|
|
108
|
+
case t.MEDIUM:
|
|
104
109
|
return "grid grid-cols-3 items-stretch max-tablet:grid-cols-1";
|
|
105
|
-
case
|
|
110
|
+
case t.LARGE:
|
|
106
111
|
return "grid grid-cols-2 items-stretch max-tablet:grid-cols-1";
|
|
107
112
|
default:
|
|
108
113
|
return "grid grid-cols-2 items-stretch max-tablet:grid-cols-1";
|
|
@@ -115,7 +120,7 @@ const I = {
|
|
|
115
120
|
children: [
|
|
116
121
|
(c || o) && /* @__PURE__ */ b("div", { className: "mb-[24px] max-tablet:mb-[8px] w-full text-center", children: [
|
|
117
122
|
c && /* @__PURE__ */ r(
|
|
118
|
-
|
|
123
|
+
I,
|
|
119
124
|
{
|
|
120
125
|
tag: f,
|
|
121
126
|
fallback: "h2",
|
|
@@ -127,7 +132,7 @@ const I = {
|
|
|
127
132
|
}
|
|
128
133
|
),
|
|
129
134
|
o && /* @__PURE__ */ r(
|
|
130
|
-
|
|
135
|
+
N,
|
|
131
136
|
{
|
|
132
137
|
html: o,
|
|
133
138
|
as: "div",
|
|
@@ -135,14 +140,14 @@ const I = {
|
|
|
135
140
|
}
|
|
136
141
|
)
|
|
137
142
|
] }),
|
|
138
|
-
/* @__PURE__ */ r("div", { className: s(
|
|
143
|
+
/* @__PURE__ */ r("div", { className: s(v, "gap-[24px] w-full"), children: i == null ? void 0 : i.map(
|
|
139
144
|
(l, p) => l && /* @__PURE__ */ r(
|
|
140
|
-
|
|
145
|
+
T,
|
|
141
146
|
{
|
|
142
147
|
data: l,
|
|
143
148
|
size: g,
|
|
144
149
|
image_size: u,
|
|
145
|
-
content_align:
|
|
150
|
+
content_align: L,
|
|
146
151
|
className: s(
|
|
147
152
|
{
|
|
148
153
|
"h-full": !a && n || a === "first-large"
|
|
@@ -159,8 +164,8 @@ const I = {
|
|
|
159
164
|
}
|
|
160
165
|
) });
|
|
161
166
|
};
|
|
162
|
-
|
|
167
|
+
k.propsToEdit = S;
|
|
163
168
|
export {
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
k as CardIconList,
|
|
170
|
+
S as propsToEdit
|
|
166
171
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { FieldTypes as i } from "../../Types/FiledTypes.js";
|
|
3
|
-
import { B as
|
|
4
|
-
import { I as
|
|
5
|
-
import { S as
|
|
3
|
+
import { B as _ } from "../../index-4ceee683.js";
|
|
4
|
+
import { I as f } from "../../index-df8034eb.js";
|
|
5
|
+
import { S as w } from "../../SafeHtml-c32fde04.js";
|
|
6
6
|
import { c as p } from "../../cn-6a4bf187.js";
|
|
7
|
-
import { S as
|
|
8
|
-
const
|
|
7
|
+
import { S as n } from "../../size-b1291031.js";
|
|
8
|
+
const u = {
|
|
9
9
|
type: "data",
|
|
10
10
|
label: "Данные карточки функции",
|
|
11
11
|
dataType: "object",
|
|
@@ -24,15 +24,15 @@ const w = {
|
|
|
24
24
|
color_description: i.COLOR
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
27
|
+
}, L = [u, "size", "image_size", "className"], t = {
|
|
28
|
+
[n.SMALL]: { width: 48, height: 48 },
|
|
29
|
+
[n.MEDIUM]: { width: 84, height: 84 },
|
|
30
|
+
[n.LARGE]: { width: 120, height: 120 },
|
|
31
31
|
xlarge: { width: 330, height: 220 }
|
|
32
|
-
},
|
|
32
|
+
}, y = ({
|
|
33
33
|
data: e,
|
|
34
34
|
size: r,
|
|
35
|
-
image_size: m =
|
|
35
|
+
image_size: m = n.LARGE,
|
|
36
36
|
content_align: h = "start",
|
|
37
37
|
className: g
|
|
38
38
|
}) => {
|
|
@@ -40,15 +40,15 @@ const w = {
|
|
|
40
40
|
start: "items-start text-left",
|
|
41
41
|
center: "items-center text-center",
|
|
42
42
|
end: "items-end text-right"
|
|
43
|
-
}, c = s[h] || s.start,
|
|
43
|
+
}, c = s[h] || s.start, l = t[m] ?? t[n.LARGE], b = (e == null ? void 0 : e.button_type) === "button" ? !!(e != null && e.button_text) : !!(e != null && e.link_text);
|
|
44
44
|
return console.log((e == null ? void 0 : e.title) || (e == null ? void 0 : e.description)), /* @__PURE__ */ x(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: p(
|
|
48
48
|
"relative bg-white rounded-[20px] flex flex-col justify-between gap-[32px] w-full box-border",
|
|
49
49
|
c,
|
|
50
|
-
r ===
|
|
51
|
-
r ===
|
|
50
|
+
r === n.LARGE && "min-h-[300px]",
|
|
51
|
+
r === n.SMALL ? "p-[24px]" : "p-[32px]",
|
|
52
52
|
g
|
|
53
53
|
),
|
|
54
54
|
style: { background: e == null ? void 0 : e.color_bg },
|
|
@@ -66,18 +66,18 @@ const w = {
|
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
68
|
(e == null ? void 0 : e.image) && /* @__PURE__ */ o(
|
|
69
|
-
|
|
69
|
+
f,
|
|
70
70
|
{
|
|
71
71
|
src: e == null ? void 0 : e.image,
|
|
72
72
|
alt: e == null ? void 0 : e.title,
|
|
73
|
-
width:
|
|
74
|
-
height:
|
|
73
|
+
width: l.width,
|
|
74
|
+
height: l.height,
|
|
75
75
|
className: p(
|
|
76
76
|
"object-contain",
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
l.width === 48 && "min-w-[48px] min-h-[48px] w-[48px] h-[48px]",
|
|
78
|
+
l.width === 84 && "min-w-[84px] min-h-[84px] w-[84px] h-[84px]",
|
|
79
|
+
l.width === 120 && "min-w-[120px] min-h-[120px] w-[120px] h-[120px]",
|
|
80
|
+
l.width === 330 && "min-w-[220px] min-h-[180px] w-[220px] h-[180px] min-[641px]:min-w-[330px] min-[641px]:w-[330px] min-[641px]:min-h-[220px] min-[641px]:h-[220px] max-w-fit"
|
|
81
81
|
),
|
|
82
82
|
imageStyles: "object-contain"
|
|
83
83
|
}
|
|
@@ -97,7 +97,7 @@ const w = {
|
|
|
97
97
|
className: "text-[15px] leading-[22px] text-graySoft break-words [&_a]:underline [&_a]:hover:opacity-80 [&_a]:text-inherit",
|
|
98
98
|
style: { color: e == null ? void 0 : e.color_description },
|
|
99
99
|
children: /* @__PURE__ */ o(
|
|
100
|
-
|
|
100
|
+
w,
|
|
101
101
|
{
|
|
102
102
|
html: e.description,
|
|
103
103
|
as: "div"
|
|
@@ -107,14 +107,14 @@ const w = {
|
|
|
107
107
|
)
|
|
108
108
|
] })
|
|
109
109
|
] }),
|
|
110
|
-
r ===
|
|
110
|
+
r === n.LARGE && b && ((e == null ? void 0 : e.button_type) === "button" ? /* @__PURE__ */ o(
|
|
111
111
|
"a",
|
|
112
112
|
{
|
|
113
113
|
href: e == null ? void 0 : e.link,
|
|
114
114
|
target: "_blank",
|
|
115
115
|
className: "font-inter text-[16px] leading-[24px] font-semibold",
|
|
116
116
|
children: /* @__PURE__ */ o(
|
|
117
|
-
|
|
117
|
+
_,
|
|
118
118
|
{
|
|
119
119
|
variant: e == null ? void 0 : e.button_variant,
|
|
120
120
|
button_hex: e == null ? void 0 : e.button_hex,
|
|
@@ -136,8 +136,8 @@ const w = {
|
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
};
|
|
139
|
-
|
|
139
|
+
y.propsToEdit = L;
|
|
140
140
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
y as FeaturesCard,
|
|
142
|
+
L as propsToEdit
|
|
143
143
|
};
|
|
@@ -1,125 +1,163 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { C as
|
|
3
|
-
import { H as
|
|
4
|
-
import { c as
|
|
5
|
-
import { propsToEdit as
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
}, []),
|
|
1
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { C as L } from "../ComponentContainer-dca711c6.js";
|
|
3
|
+
import { H as T } from "../Heading-f935c90a.js";
|
|
4
|
+
import { c as l } from "../cn-6a4bf187.js";
|
|
5
|
+
import { propsToEdit as O } from "./schema.js";
|
|
6
|
+
const k = (n) => n.reduce((a, s) => {
|
|
7
|
+
var m;
|
|
8
|
+
const r = a[a.length - 1], o = (m = s.group) == null ? void 0 : m.trim();
|
|
9
|
+
return o ? r && !r.standalone && r.title === o ? (r.span += 1, a) : (a.push({ title: o, span: 1, standalone: !1 }), a) : (a.push({ title: s.title, span: 1, standalone: !0 }), a);
|
|
10
|
+
}, []), I = {
|
|
11
11
|
"bottom-right": "justify-end",
|
|
12
12
|
"bottom-left": "justify-start",
|
|
13
13
|
"top-right": "justify-end",
|
|
14
14
|
"top-left": "justify-start"
|
|
15
|
-
},
|
|
15
|
+
}, f = (n) => n.startsWith("top"), A = {
|
|
16
16
|
small: "w-[120px] max-tablet:w-[80px]",
|
|
17
17
|
medium: "w-[200px] max-tablet:w-[130px]",
|
|
18
18
|
large: "w-[280px] max-tablet:w-[170px]"
|
|
19
|
-
},
|
|
19
|
+
}, i = "border border-greyLight px-4 py-3 text-center align-middle", H = ({
|
|
20
20
|
title: n,
|
|
21
21
|
title_tag: a,
|
|
22
|
-
caption:
|
|
23
|
-
columns:
|
|
24
|
-
rows:
|
|
25
|
-
image:
|
|
26
|
-
image_alt:
|
|
27
|
-
overlay_position:
|
|
28
|
-
overlay_size:
|
|
22
|
+
caption: s,
|
|
23
|
+
columns: r,
|
|
24
|
+
rows: o,
|
|
25
|
+
image: m,
|
|
26
|
+
image_alt: G,
|
|
27
|
+
overlay_position: p = "bottom-right",
|
|
28
|
+
overlay_size: S = "medium",
|
|
29
|
+
width: v = "full",
|
|
30
|
+
title_placement: C = "above"
|
|
29
31
|
}) => {
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
32
|
+
const c = r ?? [];
|
|
33
|
+
if (!c.length)
|
|
32
34
|
return null;
|
|
33
|
-
const b =
|
|
35
|
+
const b = k(c), h = C === "inside", g = v === "content", N = b.some((e) => !e.standalone), w = m ? /* @__PURE__ */ t(
|
|
34
36
|
"div",
|
|
35
37
|
{
|
|
36
|
-
className:
|
|
38
|
+
className: l(
|
|
37
39
|
"pointer-events-none flex",
|
|
38
|
-
|
|
40
|
+
I[p],
|
|
39
41
|
// Небольшой заход на край таблицы: так штамп читается как печать
|
|
40
42
|
// на документе, а не как отдельная картинка рядом
|
|
41
|
-
|
|
43
|
+
f(p) ? "-mb-6" : "-mt-6"
|
|
42
44
|
),
|
|
43
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ t(
|
|
44
46
|
"img",
|
|
45
47
|
{
|
|
46
|
-
src:
|
|
47
|
-
alt:
|
|
48
|
-
className:
|
|
48
|
+
src: m,
|
|
49
|
+
alt: G ?? "",
|
|
50
|
+
className: l("select-none", A[S])
|
|
49
51
|
}
|
|
50
52
|
)
|
|
51
53
|
}
|
|
52
54
|
) : null;
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
n && /* @__PURE__ */
|
|
55
|
-
|
|
55
|
+
return /* @__PURE__ */ x(L, { children: [
|
|
56
|
+
n && !h && /* @__PURE__ */ t(
|
|
57
|
+
T,
|
|
56
58
|
{
|
|
57
59
|
tag: a,
|
|
58
60
|
fallback: "h3",
|
|
59
|
-
className:
|
|
61
|
+
className: l(
|
|
60
62
|
"mx-auto mb-6 max-w-[1200px] text-center text-[22px] leading-[28px] font-medium text-black",
|
|
61
63
|
"max-tablet:mb-4 max-tablet:text-[18px] max-tablet:leading-[24px]"
|
|
62
64
|
),
|
|
63
65
|
children: n
|
|
64
66
|
}
|
|
65
67
|
),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
className: r(
|
|
73
|
-
x,
|
|
74
|
-
"border-b-0 bg-lightGray3 font-medium caption-top"
|
|
75
|
-
),
|
|
76
|
-
children: o
|
|
77
|
-
}
|
|
68
|
+
/* @__PURE__ */ x(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
className: l(
|
|
72
|
+
"mx-auto max-w-[1200px]",
|
|
73
|
+
g ? "w-fit max-w-full" : "w-full"
|
|
78
74
|
),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
children: [
|
|
76
|
+
f(p) ? w : null,
|
|
77
|
+
/* @__PURE__ */ t("div", { className: "overflow-x-auto custom-scrollbar", children: /* @__PURE__ */ x(
|
|
78
|
+
"table",
|
|
82
79
|
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
children:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
children: t
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
className: l(
|
|
81
|
+
"border-collapse text-[15px] leading-[20px] text-black",
|
|
82
|
+
g ? "w-auto" : "w-full"
|
|
83
|
+
),
|
|
84
|
+
children: [
|
|
85
|
+
s && !h && /* @__PURE__ */ t(
|
|
86
|
+
"caption",
|
|
87
|
+
{
|
|
88
|
+
className: l(
|
|
89
|
+
i,
|
|
90
|
+
"border-b-0 bg-lightGray3 font-medium caption-top"
|
|
91
|
+
),
|
|
92
|
+
children: s
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ x("thead", { children: [
|
|
96
|
+
h && n && /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t(
|
|
97
|
+
"th",
|
|
98
|
+
{
|
|
99
|
+
scope: "col",
|
|
100
|
+
colSpan: c.length,
|
|
101
|
+
className: l(i, "font-medium"),
|
|
102
|
+
children: n
|
|
103
|
+
}
|
|
104
|
+
) }),
|
|
105
|
+
h && s && /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t(
|
|
106
|
+
"th",
|
|
107
|
+
{
|
|
108
|
+
scope: "col",
|
|
109
|
+
colSpan: c.length,
|
|
110
|
+
className: l(i, "bg-lightGray3 font-medium"),
|
|
111
|
+
children: s
|
|
112
|
+
}
|
|
113
|
+
) }),
|
|
114
|
+
/* @__PURE__ */ t("tr", { children: b.map((e, d) => /* @__PURE__ */ t(
|
|
115
|
+
"th",
|
|
116
|
+
{
|
|
117
|
+
scope: e.span > 1 ? "colgroup" : "col",
|
|
118
|
+
colSpan: e.span,
|
|
119
|
+
rowSpan: N && e.standalone ? 2 : 1,
|
|
120
|
+
className: l(i, "font-medium"),
|
|
121
|
+
children: e.title
|
|
122
|
+
},
|
|
123
|
+
d
|
|
124
|
+
)) }),
|
|
125
|
+
N && /* @__PURE__ */ t("tr", { children: c.map(
|
|
126
|
+
(e, d) => {
|
|
127
|
+
var u;
|
|
128
|
+
return (u = e.group) != null && u.trim() ? /* @__PURE__ */ t(
|
|
129
|
+
"th",
|
|
130
|
+
{
|
|
131
|
+
scope: "col",
|
|
132
|
+
className: l(i, "bg-lightGray3 font-normal"),
|
|
133
|
+
children: e.title
|
|
134
|
+
},
|
|
135
|
+
d
|
|
136
|
+
) : null;
|
|
137
|
+
}
|
|
138
|
+
) })
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ t("tbody", { children: o == null ? void 0 : o.map((e, d) => /* @__PURE__ */ t("tr", { children: c.map((u, y) => {
|
|
141
|
+
var j, E;
|
|
142
|
+
return /* @__PURE__ */ t(
|
|
143
|
+
"td",
|
|
144
|
+
{
|
|
145
|
+
className: i,
|
|
146
|
+
children: ((E = (j = e.cells) == null ? void 0 : j[y]) == null ? void 0 : E.value) ?? ""
|
|
147
|
+
},
|
|
148
|
+
y
|
|
149
|
+
);
|
|
150
|
+
}) }, e.id ?? d)) })
|
|
151
|
+
]
|
|
103
152
|
}
|
|
104
|
-
) })
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"td",
|
|
110
|
-
{
|
|
111
|
-
className: x,
|
|
112
|
-
children: ((j = (w = t.cells) == null ? void 0 : w[N]) == null ? void 0 : j.value) ?? ""
|
|
113
|
-
},
|
|
114
|
-
N
|
|
115
|
-
);
|
|
116
|
-
}) }, t.id ?? m)) })
|
|
117
|
-
] }) }),
|
|
118
|
-
u(c) ? null : g
|
|
119
|
-
] })
|
|
153
|
+
) }),
|
|
154
|
+
f(p) ? null : w
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
)
|
|
120
158
|
] });
|
|
121
159
|
};
|
|
122
|
-
|
|
160
|
+
H.propsToEdit = O;
|
|
123
161
|
export {
|
|
124
|
-
|
|
162
|
+
H as GroupedTable
|
|
125
163
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataTypesEnum as e, FieldTypes as
|
|
2
|
-
const
|
|
1
|
+
import { DataTypesEnum as e, FieldTypes as l } from "../Types/FiledTypes.js";
|
|
2
|
+
const a = {
|
|
3
3
|
type: "caption",
|
|
4
4
|
key: "caption",
|
|
5
5
|
dataType: e.string,
|
|
@@ -10,12 +10,12 @@ const l = {
|
|
|
10
10
|
dataType: e.array,
|
|
11
11
|
data: {
|
|
12
12
|
group: {
|
|
13
|
-
type:
|
|
13
|
+
type: l.TITLE,
|
|
14
14
|
key: "group",
|
|
15
15
|
label: "Группа (одинаковая у соседних колонок объединит их в шапке)"
|
|
16
16
|
},
|
|
17
17
|
title: {
|
|
18
|
-
type:
|
|
18
|
+
type: l.TITLE,
|
|
19
19
|
key: "title",
|
|
20
20
|
label: "Заголовок колонки"
|
|
21
21
|
}
|
|
@@ -31,19 +31,37 @@ const l = {
|
|
|
31
31
|
dataType: e.array,
|
|
32
32
|
data: {
|
|
33
33
|
value: {
|
|
34
|
-
type:
|
|
34
|
+
type: l.TITLE,
|
|
35
35
|
key: "value",
|
|
36
36
|
label: "Значение"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
}, p = {
|
|
42
|
+
dataType: e.select,
|
|
43
|
+
type: "width",
|
|
44
|
+
key: "width",
|
|
45
|
+
label: "Ширина таблицы",
|
|
46
|
+
options: [
|
|
47
|
+
{ label: "Во всю ширину", value: "full" },
|
|
48
|
+
{ label: "По содержимому", value: "content" }
|
|
49
|
+
]
|
|
41
50
|
}, y = {
|
|
51
|
+
dataType: e.select,
|
|
52
|
+
type: "title_placement",
|
|
53
|
+
key: "title_placement",
|
|
54
|
+
label: "Где заголовок",
|
|
55
|
+
options: [
|
|
56
|
+
{ label: "Над таблицей", value: "above" },
|
|
57
|
+
{ label: "Первой строкой внутри", value: "inside" }
|
|
58
|
+
]
|
|
59
|
+
}, i = {
|
|
42
60
|
type: "image_alt",
|
|
43
61
|
key: "image_alt",
|
|
44
62
|
dataType: e.string,
|
|
45
63
|
label: "Описание картинки поверх таблицы (читают голосом)"
|
|
46
|
-
},
|
|
64
|
+
}, s = {
|
|
47
65
|
dataType: e.select,
|
|
48
66
|
type: "overlay_position",
|
|
49
67
|
key: "overlay_position",
|
|
@@ -54,7 +72,7 @@ const l = {
|
|
|
54
72
|
{ label: "Сверху справа", value: "top-right" },
|
|
55
73
|
{ label: "Сверху слева", value: "top-left" }
|
|
56
74
|
]
|
|
57
|
-
},
|
|
75
|
+
}, n = {
|
|
58
76
|
dataType: e.select,
|
|
59
77
|
type: "overlay_size",
|
|
60
78
|
key: "overlay_size",
|
|
@@ -66,13 +84,15 @@ const l = {
|
|
|
66
84
|
]
|
|
67
85
|
}, r = [
|
|
68
86
|
"title",
|
|
69
|
-
|
|
87
|
+
y,
|
|
88
|
+
a,
|
|
70
89
|
t,
|
|
71
90
|
o,
|
|
72
|
-
"image",
|
|
73
|
-
y,
|
|
74
91
|
p,
|
|
75
|
-
|
|
92
|
+
"image",
|
|
93
|
+
i,
|
|
94
|
+
s,
|
|
95
|
+
n
|
|
76
96
|
];
|
|
77
97
|
export {
|
|
78
98
|
r as propsToEdit
|