@progress/kendo-react-common 8.3.0-develop.9 → 8.4.0-develop.1
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/dist/cdn/js/kendo-react-common.js +1 -1
- package/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +67 -61
- package/index.d.mts +15 -0
- package/index.d.ts +15 -0
- package/index.js +1 -1
- package/index.mjs +86 -84
- package/package.json +1 -1
- package/unstyled/dateinputs.js +1 -1
- package/unstyled/dateinputs.mjs +37 -37
- package/unstyled/dropdowns.js +1 -1
- package/unstyled/dropdowns.mjs +277 -145
- package/unstyled/form.js +1 -1
- package/unstyled/form.mjs +21 -20
- package/unstyled/icons.js +1 -1
- package/unstyled/icons.mjs +51 -34
- package/unstyled/inputs.js +1 -1
- package/unstyled/inputs.mjs +146 -180
- package/unstyled/interfaces/common.js +1 -1
- package/unstyled/interfaces/common.mjs +1 -1
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +27 -22
- package/unstyled/labels.js +1 -1
- package/unstyled/labels.mjs +67 -59
package/unstyled/dropdowns.mjs
CHANGED
|
@@ -6,226 +6,358 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import { getClassByName as
|
|
10
|
-
import { base as e, containers as t, states as
|
|
11
|
-
const
|
|
9
|
+
import { getClassByName as n } from "./interfaces/common.mjs";
|
|
10
|
+
import { base as e, containers as t, states as a, elements as s, dimensions as y, inputs as S, icon as k, components as m, cssUtils as H, dropDownListPrefix as P, pickerPrefix as b, sizeMap as c, fillModeMap as z, roundedMap as M, inputPrefix as u, comboBoxPrefix as A } from "./json-classes.mjs";
|
|
11
|
+
const p = {
|
|
12
12
|
clearButton: `${e.prefix}-${e.clear}-${e.value}`,
|
|
13
|
-
groupStickyHeader: `${e.prefix}-${t.list}-${t.group}-${
|
|
14
|
-
listHeaderText: `${e.prefix}-${t.list}-${
|
|
15
|
-
ul: `${e.prefix}-${t.list}-${
|
|
13
|
+
groupStickyHeader: `${e.prefix}-${t.list}-${t.group}-${a.sticky}-${s.header}`,
|
|
14
|
+
listHeaderText: `${e.prefix}-${t.list}-${s.header}-${s.text}`,
|
|
15
|
+
ul: `${e.prefix}-${t.list}-${s.ul}`,
|
|
16
16
|
li: {
|
|
17
17
|
main: `${e.prefix}-${t.list}-${t.item}`,
|
|
18
|
-
selected: `${e.prefix}-${
|
|
19
|
-
focused: `${e.prefix}-${
|
|
20
|
-
first: `${e.prefix}-${
|
|
21
|
-
disabled: `${e.prefix}-${
|
|
18
|
+
selected: `${e.prefix}-${a.selected}`,
|
|
19
|
+
focused: `${e.prefix}-${a.focus}`,
|
|
20
|
+
first: `${e.prefix}-${a.first}`,
|
|
21
|
+
disabled: `${e.prefix}-${a.disabled}`
|
|
22
22
|
},
|
|
23
23
|
groupLi: {
|
|
24
24
|
list: `${e.prefix}-${t.list}-${t.group}-${t.item}`,
|
|
25
|
-
table: `${e.prefix}-${
|
|
25
|
+
table: `${e.prefix}-${s.table}-${t.group}-${t.row}`
|
|
26
26
|
},
|
|
27
|
-
itemText: `${e.prefix}-${t.list}-${t.item}-${
|
|
27
|
+
itemText: `${e.prefix}-${t.list}-${t.item}-${s.text}`,
|
|
28
28
|
groupItemText: {
|
|
29
|
-
list: `${e.prefix}-${t.list}-${t.item}-${
|
|
30
|
-
table: `${e.prefix}-${
|
|
29
|
+
list: `${e.prefix}-${t.list}-${t.item}-${s.text}`,
|
|
30
|
+
table: `${e.prefix}-${s.table}-${s.th}`
|
|
31
31
|
},
|
|
32
|
-
itemGroupLabel: `${e.prefix}-${t.list}-${t.item}-${t.group}-${
|
|
32
|
+
itemGroupLabel: `${e.prefix}-${t.list}-${t.item}-${t.group}-${s.label}`,
|
|
33
33
|
noData: `${e.prefix}-${e.nodata}`,
|
|
34
|
-
heightContainer: `${e.prefix}-${
|
|
34
|
+
heightContainer: `${e.prefix}-${y.height}-${t.container}`,
|
|
35
35
|
optionlabel: {
|
|
36
36
|
main: `${e.prefix}-${t.list}-${t.optionlabel}`,
|
|
37
|
-
selected: `${e.prefix}-${
|
|
37
|
+
selected: `${e.prefix}-${a.selected}`
|
|
38
38
|
},
|
|
39
|
-
inputIcon: `${e.prefix}-${
|
|
40
|
-
searchbox: `${e.prefix}-${
|
|
39
|
+
inputIcon: `${e.prefix}-${S.input}-${k.prefix}`,
|
|
40
|
+
searchbox: `${e.prefix}-${m.searchbox}`,
|
|
41
41
|
listFilter: `${e.prefix}-${t.list}-${e.filter}`
|
|
42
|
-
},
|
|
43
|
-
clearButton:
|
|
44
|
-
groupStickyHeader:
|
|
45
|
-
listHeaderText:
|
|
46
|
-
ul:
|
|
47
|
-
li: (
|
|
48
|
-
const { c:
|
|
42
|
+
}, j = {
|
|
43
|
+
clearButton: n(p, "clearButton"),
|
|
44
|
+
groupStickyHeader: n(p, "groupStickyHeader"),
|
|
45
|
+
listHeaderText: n(p, "listHeaderText"),
|
|
46
|
+
ul: n(p, "ul"),
|
|
47
|
+
li: (o) => {
|
|
48
|
+
const { c: $ = p, selected: l, focused: r, first: d, disabled: f } = o, x = $.li;
|
|
49
49
|
return {
|
|
50
50
|
[x.main]: !0,
|
|
51
|
-
[x.selected]:
|
|
51
|
+
[x.selected]: l,
|
|
52
52
|
[x.focused]: r,
|
|
53
|
-
[x.first]:
|
|
54
|
-
[x.disabled]:
|
|
53
|
+
[x.first]: d,
|
|
54
|
+
[x.disabled]: f
|
|
55
55
|
};
|
|
56
56
|
},
|
|
57
|
-
groupLi: (
|
|
58
|
-
const { c:
|
|
57
|
+
groupLi: (o) => {
|
|
58
|
+
const { c: $ = p, isMultiColumn: l } = o, r = $.groupLi;
|
|
59
59
|
return {
|
|
60
|
-
[r.table]:
|
|
61
|
-
[r.list]: !
|
|
60
|
+
[r.table]: l,
|
|
61
|
+
[r.list]: !l
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
|
-
itemText:
|
|
65
|
-
groupItemText: (
|
|
66
|
-
const { c:
|
|
64
|
+
itemText: n(p, "itemText"),
|
|
65
|
+
groupItemText: (o) => {
|
|
66
|
+
const { c: $ = p, isMultiColumn: l } = o, r = $.groupItemText;
|
|
67
67
|
return {
|
|
68
|
-
[r.table]:
|
|
69
|
-
[r.list]: !
|
|
68
|
+
[r.table]: l,
|
|
69
|
+
[r.list]: !l
|
|
70
70
|
};
|
|
71
71
|
},
|
|
72
|
-
itemGroupLabel:
|
|
73
|
-
noData:
|
|
74
|
-
heightContainer:
|
|
75
|
-
optionlabel: (
|
|
76
|
-
const { c:
|
|
72
|
+
itemGroupLabel: n(p, "itemGroupLabel"),
|
|
73
|
+
noData: n(p, "noData"),
|
|
74
|
+
heightContainer: n(p, "heightContainer"),
|
|
75
|
+
optionlabel: (o) => {
|
|
76
|
+
const { c: $ = p, selected: l } = o, r = $.optionlabel;
|
|
77
77
|
return {
|
|
78
78
|
[r.main]: !0,
|
|
79
|
-
[r.selected]:
|
|
79
|
+
[r.selected]: l
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
|
-
inputIcon:
|
|
83
|
-
searchbox:
|
|
84
|
-
listFilter:
|
|
85
|
-
},
|
|
82
|
+
inputIcon: n(p, "inputIcon"),
|
|
83
|
+
searchbox: n(p, "searchbox"),
|
|
84
|
+
listFilter: n(p, "listFilter")
|
|
85
|
+
}, B = {
|
|
86
86
|
wrapper: {
|
|
87
|
-
main: `${e.prefix}-${
|
|
88
|
-
fullscreen: `${e.prefix}-${
|
|
89
|
-
bottom: `${e.prefix}-${
|
|
87
|
+
main: `${e.prefix}-${a.adaptive}-${m.actionsheet}`,
|
|
88
|
+
fullscreen: `${e.prefix}-${m.actionsheet}-${a.fullscreen}`,
|
|
89
|
+
bottom: `${e.prefix}-${m.actionsheet}-${a.bottom}`
|
|
90
90
|
},
|
|
91
|
-
header: `${e.prefix}-${
|
|
91
|
+
header: `${e.prefix}-${s.text}-${H.center}`,
|
|
92
92
|
titleBar: {
|
|
93
|
-
main: `${e.prefix}-${
|
|
94
|
-
position: `${e.prefix}-${
|
|
93
|
+
main: `${e.prefix}-${m.actionsheet}-${t.titlebar}-${t.group}`,
|
|
94
|
+
position: `${e.prefix}-${H.hbox}`
|
|
95
|
+
},
|
|
96
|
+
title: `${e.prefix}-${m.actionsheet}-${s.title}`,
|
|
97
|
+
subtitle: {
|
|
98
|
+
main: `${e.prefix}-${m.actionsheet}-${s.subtitle}`,
|
|
99
|
+
textCenter: `${e.prefix}-${s.text}-${H.center}`
|
|
95
100
|
},
|
|
96
|
-
|
|
97
|
-
actions: `${e.prefix}-${f.actionsheet}-${t.actions}`,
|
|
101
|
+
actions: `${e.prefix}-${m.actionsheet}-${t.actions}`,
|
|
98
102
|
titleBarGroup: {
|
|
99
|
-
main: `${e.prefix}-${
|
|
100
|
-
filter: `${e.prefix}-${
|
|
103
|
+
main: `${e.prefix}-${m.actionsheet}-${t.titlebar}-${t.group}`,
|
|
104
|
+
filter: `${e.prefix}-${m.actionsheet}-${e.filter}`
|
|
101
105
|
}
|
|
102
|
-
},
|
|
103
|
-
wrapper: (
|
|
104
|
-
const { c:
|
|
106
|
+
}, E = {
|
|
107
|
+
wrapper: (o) => {
|
|
108
|
+
const { c: $ = B, isFullScreen: l } = o, r = $.wrapper;
|
|
105
109
|
return {
|
|
106
110
|
[r.main]: !0,
|
|
107
|
-
[r.fullscreen]:
|
|
108
|
-
[r.bottom]: !
|
|
111
|
+
[r.fullscreen]: l,
|
|
112
|
+
[r.bottom]: !l
|
|
109
113
|
};
|
|
110
114
|
},
|
|
111
|
-
header:
|
|
112
|
-
titleBar: (
|
|
113
|
-
const { c:
|
|
115
|
+
header: n(B, "header"),
|
|
116
|
+
titleBar: (o) => {
|
|
117
|
+
const { c: $ = B } = o, l = $.titleBar;
|
|
114
118
|
return {
|
|
115
|
-
[
|
|
116
|
-
[
|
|
119
|
+
[l.main]: !0,
|
|
120
|
+
[l.position]: !0
|
|
117
121
|
};
|
|
118
122
|
},
|
|
119
|
-
title:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const { c: n = g } = l, i = n.titleBarGroup;
|
|
123
|
+
title: n(B, "title"),
|
|
124
|
+
subtitle: (o) => {
|
|
125
|
+
const { c: $ = B } = o, l = $.subtitle;
|
|
123
126
|
return {
|
|
124
|
-
[
|
|
125
|
-
[
|
|
127
|
+
[l.main]: !0,
|
|
128
|
+
[l.textCenter]: !0
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
actions: n(B, "actions"),
|
|
132
|
+
titleBarGroup: (o) => {
|
|
133
|
+
const { c: $ = B } = o, l = $.titleBarGroup;
|
|
134
|
+
return {
|
|
135
|
+
[l.main]: !0,
|
|
136
|
+
[l.filter]: !0
|
|
126
137
|
};
|
|
127
138
|
}
|
|
128
|
-
},
|
|
139
|
+
}, g = {
|
|
129
140
|
wrapper: {
|
|
130
|
-
main:
|
|
131
|
-
picker:
|
|
141
|
+
main: P,
|
|
142
|
+
picker: b,
|
|
132
143
|
size: {
|
|
133
|
-
small: `${
|
|
134
|
-
medium: `${
|
|
135
|
-
large: `${
|
|
144
|
+
small: `${b}-${c.small}`,
|
|
145
|
+
medium: `${b}-${c.medium}`,
|
|
146
|
+
large: `${b}-${c.large}`
|
|
136
147
|
},
|
|
137
148
|
fillMode: {
|
|
138
|
-
solid: `${
|
|
139
|
-
outline: `${
|
|
140
|
-
flat: `${
|
|
141
|
-
link: `${
|
|
142
|
-
clear: `${
|
|
149
|
+
solid: `${b}-${z.solid}`,
|
|
150
|
+
outline: `${b}-${z.outline}`,
|
|
151
|
+
flat: `${b}-${z.flat}`,
|
|
152
|
+
link: `${b}-${z.link}`,
|
|
153
|
+
clear: `${b}-${z.clear}`
|
|
143
154
|
},
|
|
144
155
|
rounded: {
|
|
145
|
-
small: `${e.prefix}-${e.rounded}-${
|
|
146
|
-
medium: `${e.prefix}-${e.rounded}-${
|
|
147
|
-
large: `${e.prefix}-${e.rounded}-${
|
|
156
|
+
small: `${e.prefix}-${e.rounded}-${M.small}`,
|
|
157
|
+
medium: `${e.prefix}-${e.rounded}-${M.medium}`,
|
|
158
|
+
large: `${e.prefix}-${e.rounded}-${M.large}`
|
|
148
159
|
},
|
|
149
|
-
disabled: `${e.prefix}-${
|
|
150
|
-
focused: `${e.prefix}-${
|
|
151
|
-
invalid: `${e.prefix}-${
|
|
152
|
-
loading: `${e.prefix}-${
|
|
153
|
-
required: `${e.prefix}-${
|
|
154
|
-
},
|
|
155
|
-
loadingIcon: `${
|
|
156
|
-
|
|
160
|
+
disabled: `${e.prefix}-${a.disabled}`,
|
|
161
|
+
focused: `${e.prefix}-${a.focus}`,
|
|
162
|
+
invalid: `${e.prefix}-${a.invalid}`,
|
|
163
|
+
loading: `${e.prefix}-${a.loading}`,
|
|
164
|
+
required: `${e.prefix}-${a.required}`
|
|
165
|
+
},
|
|
166
|
+
loadingIcon: `${u}-${a.loading}-${k.prefix}`,
|
|
167
|
+
inputButton: `${u}-${s.button}`,
|
|
157
168
|
listContainer: {
|
|
158
169
|
main: `${e.prefix}-${t.list}-${t.container}`,
|
|
159
|
-
popup: `${e.prefix}-${
|
|
170
|
+
popup: `${e.prefix}-${m.dropdownlist}-${t.popup}`
|
|
160
171
|
},
|
|
161
|
-
input: `${
|
|
162
|
-
inputText: `${
|
|
163
|
-
listHeader: `${e.prefix}-${t.list}-${
|
|
172
|
+
input: `${u}-${S.inner}`,
|
|
173
|
+
inputText: `${u}-${e.value}-${s.text}`,
|
|
174
|
+
listHeader: `${e.prefix}-${t.list}-${s.header}`,
|
|
164
175
|
list: {
|
|
165
176
|
main: `${e.prefix}-${t.list}`,
|
|
166
177
|
size: {
|
|
167
|
-
small: `${e.prefix}-${t.list}-${
|
|
168
|
-
medium: `${e.prefix}-${t.list}-${
|
|
169
|
-
large: `${e.prefix}-${t.list}-${
|
|
178
|
+
small: `${e.prefix}-${t.list}-${c.small}`,
|
|
179
|
+
medium: `${e.prefix}-${t.list}-${c.medium}`,
|
|
180
|
+
large: `${e.prefix}-${t.list}-${c.large}`
|
|
170
181
|
},
|
|
171
182
|
virtual: `${e.prefix}-${e.virtual}-${t.list}`
|
|
172
183
|
},
|
|
173
184
|
listContent: `${e.prefix}-${t.list}-${t.content}`,
|
|
174
|
-
listFooter: `${e.prefix}-${t.list}-${
|
|
175
|
-
},
|
|
176
|
-
wrapper: (
|
|
185
|
+
listFooter: `${e.prefix}-${t.list}-${s.footer}`
|
|
186
|
+
}, J = {
|
|
187
|
+
wrapper: (o) => {
|
|
177
188
|
const {
|
|
178
|
-
c:
|
|
179
|
-
size:
|
|
189
|
+
c: $ = g,
|
|
190
|
+
size: l,
|
|
180
191
|
rounded: r,
|
|
181
|
-
fillMode:
|
|
182
|
-
focused:
|
|
192
|
+
fillMode: d,
|
|
193
|
+
focused: f,
|
|
183
194
|
disabled: x,
|
|
184
195
|
invalid: v,
|
|
185
|
-
loading:
|
|
186
|
-
required:
|
|
187
|
-
} =
|
|
196
|
+
loading: C,
|
|
197
|
+
required: T
|
|
198
|
+
} = o, i = $.wrapper;
|
|
188
199
|
return {
|
|
189
|
-
[
|
|
190
|
-
[
|
|
191
|
-
[
|
|
192
|
-
[`${
|
|
193
|
-
[
|
|
194
|
-
[
|
|
195
|
-
[`${e.prefix}-${e.rounded}-${r}`]: r && !
|
|
196
|
-
[
|
|
197
|
-
[
|
|
198
|
-
[
|
|
199
|
-
[
|
|
200
|
-
[
|
|
200
|
+
[i.main]: !0,
|
|
201
|
+
[i.picker]: !0,
|
|
202
|
+
[i.size[l]]: i.size[l],
|
|
203
|
+
[`${b}-${l}`]: l && !i.size[l],
|
|
204
|
+
[i.fillMode[d]]: i.fillMode[d],
|
|
205
|
+
[i.rounded[r]]: i.rounded[r],
|
|
206
|
+
[`${e.prefix}-${e.rounded}-${r}`]: r && !i.rounded[r],
|
|
207
|
+
[i.focused]: f,
|
|
208
|
+
[i.disabled]: x,
|
|
209
|
+
[i.loading]: C,
|
|
210
|
+
[i.invalid]: v,
|
|
211
|
+
[i.required]: T
|
|
201
212
|
};
|
|
202
213
|
},
|
|
203
|
-
loadingIcon:
|
|
204
|
-
|
|
205
|
-
listContainer: (
|
|
206
|
-
const { c:
|
|
214
|
+
loadingIcon: n(g, "loadingIcon"),
|
|
215
|
+
inputButton: n(g, "inputButton"),
|
|
216
|
+
listContainer: (o) => {
|
|
217
|
+
const { c: $ = g } = o, l = $.listContainer;
|
|
207
218
|
return {
|
|
208
|
-
[
|
|
209
|
-
[
|
|
219
|
+
[l.main]: !0,
|
|
220
|
+
[l.popup]: !0
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
input: n(g, "input"),
|
|
224
|
+
inputText: n(g, "inputText"),
|
|
225
|
+
listHeader: n(g, "listHeader"),
|
|
226
|
+
list: (o) => {
|
|
227
|
+
const { c: $ = g, size: l, virtual: r } = o, d = $.list;
|
|
228
|
+
return {
|
|
229
|
+
[d.main]: !0,
|
|
230
|
+
[d.size[l]]: d.size[l],
|
|
231
|
+
[`${e.prefix}-${t.list}-${l}`]: l && !d.size[l],
|
|
232
|
+
[d.virtual]: r
|
|
233
|
+
};
|
|
234
|
+
},
|
|
235
|
+
listContent: n(g, "listContent"),
|
|
236
|
+
listFooter: n(g, "listFooter")
|
|
237
|
+
}, h = {
|
|
238
|
+
wrapper: {
|
|
239
|
+
main: A,
|
|
240
|
+
input: u,
|
|
241
|
+
size: {
|
|
242
|
+
small: `${u}-${c.small}`,
|
|
243
|
+
medium: `${u}-${c.medium}`,
|
|
244
|
+
large: `${u}-${c.large}`
|
|
245
|
+
},
|
|
246
|
+
fillMode: {
|
|
247
|
+
solid: `${u}-${z.solid}`,
|
|
248
|
+
outline: `${u}-${z.outline}`,
|
|
249
|
+
flat: `${u}-${z.flat}`,
|
|
250
|
+
link: `${u}-${z.link}`,
|
|
251
|
+
clear: `${u}-${z.clear}`
|
|
252
|
+
},
|
|
253
|
+
rounded: {
|
|
254
|
+
small: `${e.prefix}-${e.rounded}-${M.small}`,
|
|
255
|
+
medium: `${e.prefix}-${e.rounded}-${M.medium}`,
|
|
256
|
+
large: `${e.prefix}-${e.rounded}-${M.large}`
|
|
257
|
+
},
|
|
258
|
+
disabled: `${e.prefix}-${a.disabled}`,
|
|
259
|
+
focused: `${e.prefix}-${a.focus}`,
|
|
260
|
+
invalid: `${e.prefix}-${a.invalid}`,
|
|
261
|
+
loading: `${e.prefix}-${a.loading}`,
|
|
262
|
+
required: `${e.prefix}-${a.required}`
|
|
263
|
+
},
|
|
264
|
+
loadingIcon: `${u}-${a.loading}-${k.prefix}`,
|
|
265
|
+
inputButton: `${u}-${s.button}`,
|
|
266
|
+
listContainer: {
|
|
267
|
+
main: `${e.prefix}-${t.list}-${t.container}`,
|
|
268
|
+
popup: `${e.prefix}-${m.combobox}-${t.popup}`
|
|
269
|
+
},
|
|
270
|
+
input: `${u}-${S.inner}`,
|
|
271
|
+
inputText: `${u}-${e.value}-${s.text}`,
|
|
272
|
+
listHeader: `${e.prefix}-${s.table}-${s.header}`,
|
|
273
|
+
list: {
|
|
274
|
+
list: `${e.prefix}-${t.list}`,
|
|
275
|
+
table: `${e.prefix}-${e.data}-${s.table}`,
|
|
276
|
+
size: {
|
|
277
|
+
prefix: `${e.prefix}-${t.list}-`,
|
|
278
|
+
small: `${e.prefix}-${t.list}-${c.small}`,
|
|
279
|
+
medium: `${e.prefix}-${t.list}-${c.medium}`,
|
|
280
|
+
large: `${e.prefix}-${t.list}-${c.large}`
|
|
281
|
+
},
|
|
282
|
+
tableSize: {
|
|
283
|
+
prefix: `${e.prefix}-${s.table}-`,
|
|
284
|
+
small: `${e.prefix}-${s.table}-${c.small}`,
|
|
285
|
+
medium: `${e.prefix}-${s.table}-${c.medium}`,
|
|
286
|
+
large: `${e.prefix}-${s.table}-${c.large}`
|
|
287
|
+
},
|
|
288
|
+
virtual: `${e.prefix}-${e.virtual}-${t.list}`
|
|
289
|
+
},
|
|
290
|
+
listContent: {
|
|
291
|
+
main: `${e.prefix}-${t.list}-${t.content}`,
|
|
292
|
+
scroller: `${e.prefix}-${t.list}-${e.scroller}`
|
|
293
|
+
},
|
|
294
|
+
listFooter: `${e.prefix}-${t.list}-${s.footer}`
|
|
295
|
+
}, K = {
|
|
296
|
+
wrapper: (o) => {
|
|
297
|
+
var D, I;
|
|
298
|
+
const {
|
|
299
|
+
c: $ = h,
|
|
300
|
+
size: l,
|
|
301
|
+
rounded: r,
|
|
302
|
+
fillMode: d,
|
|
303
|
+
focused: f,
|
|
304
|
+
disabled: x,
|
|
305
|
+
invalid: v,
|
|
306
|
+
loading: C,
|
|
307
|
+
required: T
|
|
308
|
+
} = o, i = $.wrapper;
|
|
309
|
+
return {
|
|
310
|
+
[i == null ? void 0 : i.main]: !0,
|
|
311
|
+
[i == null ? void 0 : i.input]: !0,
|
|
312
|
+
[i == null ? void 0 : i.size[l]]: i == null ? void 0 : i.size[l],
|
|
313
|
+
[`${b}-${l}`]: l && !(i != null && i.size[l]),
|
|
314
|
+
[i == null ? void 0 : i.fillMode[d]]: i == null ? void 0 : i.fillMode[d],
|
|
315
|
+
[i == null ? void 0 : i.rounded[r]]: i == null ? void 0 : i.rounded[r],
|
|
316
|
+
[`${(D = e) == null ? void 0 : D.prefix}-${(I = e) == null ? void 0 : I.rounded}-${r}`]: r && !(i != null && i.rounded[r]),
|
|
317
|
+
[i == null ? void 0 : i.focused]: f,
|
|
318
|
+
[i == null ? void 0 : i.disabled]: x,
|
|
319
|
+
[i == null ? void 0 : i.loading]: C,
|
|
320
|
+
[i == null ? void 0 : i.invalid]: v,
|
|
321
|
+
[i == null ? void 0 : i.required]: T
|
|
322
|
+
};
|
|
323
|
+
},
|
|
324
|
+
loadingIcon: n(h, "loadingIcon"),
|
|
325
|
+
inputButton: n(h, "inputButton"),
|
|
326
|
+
listContainer: (o) => {
|
|
327
|
+
const { c: $ = h, popup: l } = o, r = $.listContainer;
|
|
328
|
+
return {
|
|
329
|
+
[r == null ? void 0 : r.main]: !0,
|
|
330
|
+
[r == null ? void 0 : r.popup]: l
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
input: n(h, "input"),
|
|
334
|
+
inputText: n(h, "inputText"),
|
|
335
|
+
listHeader: n(h, "listHeader"),
|
|
336
|
+
list: (o) => {
|
|
337
|
+
var x, v, C, T, i, D, I, F, L, q, G;
|
|
338
|
+
const { c: $ = h, size: l, tableSize: r, virtual: d, list: f } = o;
|
|
339
|
+
return {
|
|
340
|
+
[(x = $.list) == null ? void 0 : x.list]: !f,
|
|
341
|
+
[(v = $.list) == null ? void 0 : v.table]: f,
|
|
342
|
+
[(C = $.list) == null ? void 0 : C.size[l]]: !f && ((T = $.list) == null ? void 0 : T.size[l]),
|
|
343
|
+
[`${(i = $.list) == null ? void 0 : i.size.prefix}${l}`]: !f && l && !((D = $.list) != null && D.size[l]),
|
|
344
|
+
[(I = $.list) == null ? void 0 : I.tableSize[r]]: f && ((F = $.list) == null ? void 0 : F.tableSize[r]),
|
|
345
|
+
[`${(L = $.list) == null ? void 0 : L.tableSize.prefix}${r}`]: f && r && !((q = $.list) != null && q.tableSize[r]),
|
|
346
|
+
[(G = $.list) == null ? void 0 : G.virtual]: d
|
|
210
347
|
};
|
|
211
348
|
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
listHeader: o(c, "listHeader"),
|
|
215
|
-
list: (l) => {
|
|
216
|
-
const { c: n = c, size: i, virtual: r } = l, u = n.list;
|
|
349
|
+
listContent: (o) => {
|
|
350
|
+
const { c: $ = h, virtual: l } = o, r = $.listContent;
|
|
217
351
|
return {
|
|
218
|
-
[
|
|
219
|
-
[
|
|
220
|
-
[`${e.prefix}-${t.list}-${i}`]: i && !u.size[i],
|
|
221
|
-
[u.virtual]: r
|
|
352
|
+
[r == null ? void 0 : r.main]: !0,
|
|
353
|
+
[r == null ? void 0 : r.scroller]: !l
|
|
222
354
|
};
|
|
223
355
|
},
|
|
224
|
-
|
|
225
|
-
listFooter: o(c, "listFooter")
|
|
356
|
+
listFooter: n(h, "listFooter")
|
|
226
357
|
};
|
|
227
358
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
359
|
+
K as uComboBox,
|
|
360
|
+
J as uDropDownList,
|
|
361
|
+
E as uDropDownsActionSheet,
|
|
362
|
+
j as uDropDownsBase
|
|
231
363
|
};
|
package/unstyled/form.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),o=`${e.base.prefix}-${e.forms.form}`,
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),o=`${e.base.prefix}-${e.forms.form}`,l=`${e.base.prefix}-${e.forms.form}-${e.forms.field}`,m={form:{main:o,size:{prefix:`${o}-`,small:`${o}-${e.sizeMap.small}`,medium:`${o}-${e.sizeMap.medium}`,large:`${o}-${e.sizeMap.large}`},orientation:{horizontal:`${o}-${e.orientationMap.horizontal}`,vertical:`${o}-${e.orientationMap.vertical}`}},formField:{main:l,isRtl:`${e.base.prefix}-${e.base.rtl}`}},f={form:n=>{var a;const{size:r,orientation:s,c:t=m}=n,i=t.form;return{[i.main]:!0,[i.size[r]]:i.size[r],[((a=i.size)==null?void 0:a.prefix)||""]:r&&!i.size[r],[i.orientation[s]]:i.orientation[s]}}},$={formField:n=>{const{isRtl:r,c:s=m}=n,t=s.formField;return{[t.main]:!0,[t.isRtl]:r}}};exports.uForm=f;exports.uFormField=$;
|
package/unstyled/form.mjs
CHANGED
|
@@ -6,45 +6,46 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import { base as s, forms as l, sizeMap as n, orientationMap as
|
|
10
|
-
const o = `${s.prefix}-${l.form}`,
|
|
9
|
+
import { base as s, forms as l, sizeMap as n, orientationMap as f } from "./json-classes.mjs";
|
|
10
|
+
const o = `${s.prefix}-${l.form}`, c = `${s.prefix}-${l.form}-${l.field}`, $ = {
|
|
11
11
|
form: {
|
|
12
12
|
main: o,
|
|
13
13
|
size: {
|
|
14
|
+
prefix: `${o}-`,
|
|
14
15
|
small: `${o}-${n.small}`,
|
|
15
16
|
medium: `${o}-${n.medium}`,
|
|
16
17
|
large: `${o}-${n.large}`
|
|
17
18
|
},
|
|
18
19
|
orientation: {
|
|
19
|
-
horizontal: `${o}-${
|
|
20
|
-
vertical: `${o}-${
|
|
20
|
+
horizontal: `${o}-${f.horizontal}`,
|
|
21
|
+
vertical: `${o}-${f.vertical}`
|
|
21
22
|
}
|
|
23
|
+
},
|
|
24
|
+
formField: {
|
|
25
|
+
main: c,
|
|
26
|
+
isRtl: `${s.prefix}-${s.rtl}`
|
|
22
27
|
}
|
|
23
|
-
},
|
|
28
|
+
}, p = {
|
|
24
29
|
form: (m) => {
|
|
25
|
-
|
|
30
|
+
var a;
|
|
31
|
+
const { size: r, orientation: e, c: t = $ } = m, i = t.form;
|
|
26
32
|
return {
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
33
|
+
[i.main]: !0,
|
|
34
|
+
[i.size[r]]: i.size[r],
|
|
35
|
+
[((a = i.size) == null ? void 0 : a.prefix) || ""]: r && !i.size[r],
|
|
36
|
+
[i.orientation[e]]: i.orientation[e]
|
|
31
37
|
};
|
|
32
38
|
}
|
|
33
|
-
},
|
|
34
|
-
formField: {
|
|
35
|
-
main: f,
|
|
36
|
-
isRtl: `${s.prefix}-${s.rtl}`
|
|
37
|
-
}
|
|
38
|
-
}, F = {
|
|
39
|
+
}, u = {
|
|
39
40
|
formField: (m) => {
|
|
40
|
-
const { isRtl:
|
|
41
|
+
const { isRtl: r, c: e = $ } = m, t = e.formField;
|
|
41
42
|
return {
|
|
42
43
|
[t.main]: !0,
|
|
43
|
-
[t.isRtl]:
|
|
44
|
+
[t.isRtl]: r
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
p as uForm,
|
|
50
|
+
u as uFormField
|
|
50
51
|
};
|
package/unstyled/icons.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),l={
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),l={wrapper:{main:`${e.base.prefix}-${e.icon.prefix}`,svgPrefix:`${e.base.prefix}-${e.icon.svg}-${e.icon.prefix}`,namePrefix:`${e.base.prefix}-${e.icon.svg}-${e.icon.i}-`,flipH:`${e.base.prefix}-${e.icon.flipH}`,flipV:`${e.base.prefix}-${e.icon.flipV}`,themeColor:{inherit:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.inherit}`,primary:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.primary}`,secondary:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.secondary}`,tertiary:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.tertiary}`,info:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.info}`,success:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.success}`,warning:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.warning}`,error:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.error}`,dark:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.dark}`,light:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.light}`,inverse:`${e.base.prefix}-${e.icon.color}-${e.themeColorMap.inverse}`},size:{default:"",xsmall:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.xsmall}`,small:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.small}`,medium:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.medium}`,large:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.large}`,xlarge:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.xlarge}`,xxlarge:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.xxlarge}`,xxxlarge:`${e.base.prefix}-${e.icon.prefix}-${e.sizeMap.xxxlarge}`}},svg:{main:"",flipH:"",flipV:""}},c={wrapper:p=>{const{iconNameProp:o,themeColor:a,flipH:s,flipV:r,size:$,c:n=l}=p,i=n.wrapper;return{[i.main]:!0,[i.svgPrefix]:!0,[`${i.namePrefix||""}${o}`]:o,[i.themeColor[a]]:a,[i.flipH]:s,[i.flipV]:r,[i.size[$]]:i.size[$]}},svg:p=>{const{flipH:o,flipV:a,c:s=l}=p,r=s.svg;return{[r.main]:!0,[r.flipH]:o,[r.flipV]:a}}};exports.uSvgIcon=c;
|