@progress/kendo-react-common 8.3.0-develop.1 → 8.3.0-develop.11
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/hocs/use-unstyled-hoc.js +8 -0
- package/hocs/use-unstyled-hoc.mjs +17 -0
- package/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +52 -56
- package/index.d.mts +635 -0
- package/index.d.ts +635 -0
- package/index.js +1 -1
- package/index.mjs +194 -118
- package/package.json +1 -1
- package/unstyled/animations.js +8 -0
- package/unstyled/animations.mjs +185 -0
- package/unstyled/buttons.js +8 -0
- package/unstyled/buttons.mjs +253 -0
- package/unstyled/dateinputs.js +8 -0
- package/unstyled/dateinputs.mjs +556 -0
- package/unstyled/dropdowns.js +8 -0
- package/unstyled/dropdowns.mjs +231 -0
- package/unstyled/form.js +8 -0
- package/unstyled/form.mjs +50 -0
- package/unstyled/grid.js +8 -0
- package/unstyled/grid.mjs +319 -0
- package/unstyled/icons.js +8 -0
- package/unstyled/icons.mjs +53 -0
- package/unstyled/inputs.js +8 -0
- package/unstyled/inputs.mjs +262 -0
- package/unstyled/interfaces/common.js +8 -0
- package/unstyled/interfaces/common.mjs +17 -0
- package/unstyled/json-classes.js +8 -0
- package/unstyled/json-classes.mjs +315 -0
- package/unstyled/labels.js +8 -0
- package/unstyled/labels.mjs +99 -0
- package/unstyled/main.js +8 -0
- package/unstyled/main.mjs +14 -0
- package/unstyled/popup.js +8 -0
- package/unstyled/popup.mjs +91 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { getClassByName as d } from "./interfaces/common.mjs";
|
|
10
|
+
import { base as e, dateInputs as n, elements as f, containers as o, states as s, orientationMap as B, actions as S, components as v, inputPrefix as p, sizeMap as h, fillModeMap as z, roundedMap as k, calendarPrefix as c, cssUtils as I, directionMap as P, inputs as W } from "./json-classes.mjs";
|
|
11
|
+
const b = {
|
|
12
|
+
footer: {
|
|
13
|
+
main: `${e.prefix}-${n.time}-${f.footer}`,
|
|
14
|
+
actions: `${e.prefix}-${o.actions}`,
|
|
15
|
+
stretched: `${e.prefix}-${o.actions}-${s.stretched}`,
|
|
16
|
+
horizontal: `${e.prefix}-${o.actions}-${B.horizontal}`
|
|
17
|
+
},
|
|
18
|
+
cancel: `${e.prefix}-${n.time}-${S.cancel}`,
|
|
19
|
+
accept: `${e.prefix}-${n.time}-${S.accept}`,
|
|
20
|
+
part: {
|
|
21
|
+
main: `${e.prefix}-${n.time}-${o.part}`,
|
|
22
|
+
disabled: `${e.prefix}-${s.disabled}`
|
|
23
|
+
},
|
|
24
|
+
header: `${e.prefix}-${n.time}-${f.header}`,
|
|
25
|
+
now: `${e.prefix}-${n.time}-${n.now}`,
|
|
26
|
+
listContainer: `${e.prefix}-${n.time}-${o.list}-${o.container}`,
|
|
27
|
+
highlight: `${e.prefix}-${n.time}-${f.header}`,
|
|
28
|
+
listWrapper: {
|
|
29
|
+
main: `${e.prefix}-${n.time}-${o.list}-${o.wrapper}`,
|
|
30
|
+
focused: `${e.prefix}-${s.focus}`
|
|
31
|
+
},
|
|
32
|
+
list: `${e.prefix}-${n.time}-${o.list}`,
|
|
33
|
+
container: {
|
|
34
|
+
main: `${e.prefix}-${n.time}-${o.container}`,
|
|
35
|
+
scrollable: `${e.prefix}-${s.scrollable}`,
|
|
36
|
+
content: `${e.prefix}-${o.content}`
|
|
37
|
+
},
|
|
38
|
+
separator: `${e.prefix}-${n.time}-${o.separator}`,
|
|
39
|
+
ul: `${e.prefix}-${e.reset}`,
|
|
40
|
+
li: `${e.prefix}-${o.item}`,
|
|
41
|
+
title: `${e.prefix}-${f.title}`,
|
|
42
|
+
scrollablePlaceholder: `${e.prefix}-${s.scrollable}-${o.placeholder}`
|
|
43
|
+
}, R = {
|
|
44
|
+
footer: (t) => {
|
|
45
|
+
const { c: a = b } = t, i = a.footer;
|
|
46
|
+
return {
|
|
47
|
+
[i.main]: !0,
|
|
48
|
+
[i.actions]: !0,
|
|
49
|
+
[i.stretched]: !0,
|
|
50
|
+
[i.horizontal]: !0
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
cancel: d(b, "cancel"),
|
|
54
|
+
accept: d(b, "accept"),
|
|
55
|
+
part: (t) => {
|
|
56
|
+
const { c: a = b, mobileMode: i, disabled: r } = t, l = a.part;
|
|
57
|
+
return {
|
|
58
|
+
[l.main]: i,
|
|
59
|
+
[l.disabled]: r
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
header: d(b, "header"),
|
|
63
|
+
now: d(b, "now"),
|
|
64
|
+
listContainer: d(b, "listContainer"),
|
|
65
|
+
highlight: d(b, "highlight"),
|
|
66
|
+
listWrapper: (t) => {
|
|
67
|
+
const { c: a = b, focused: i } = t, r = a.listWrapper;
|
|
68
|
+
return {
|
|
69
|
+
[r.main]: !0,
|
|
70
|
+
[r.focused]: i
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
list: d(b, "list"),
|
|
74
|
+
container: (t) => {
|
|
75
|
+
const { c: a = b, content: i, scrollable: r } = t, l = a.container;
|
|
76
|
+
return {
|
|
77
|
+
[l.main]: !0,
|
|
78
|
+
[l.content]: i,
|
|
79
|
+
[l.scrollable]: r
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
separator: d(b, "separator"),
|
|
83
|
+
ul: d(b, "ul"),
|
|
84
|
+
li: d(b, "li"),
|
|
85
|
+
title: d(b, "title"),
|
|
86
|
+
scrollablePlaceholder: d(b, "scrollablePlaceholder")
|
|
87
|
+
}, q = {
|
|
88
|
+
wrapper: {
|
|
89
|
+
main: `${e.prefix}-${v.timepicker}`,
|
|
90
|
+
input: `${p}`,
|
|
91
|
+
size: {
|
|
92
|
+
small: `${p}-${h.small}`,
|
|
93
|
+
medium: `${p}-${h.medium}`,
|
|
94
|
+
large: `${p}-${h.large}`
|
|
95
|
+
},
|
|
96
|
+
fillMode: {
|
|
97
|
+
solid: `${p}-${z.solid}`,
|
|
98
|
+
outline: `${p}-${z.outline}`,
|
|
99
|
+
flat: `${p}-${z.flat}`
|
|
100
|
+
},
|
|
101
|
+
rounded: {
|
|
102
|
+
small: `${e.prefix}-${e.rounded}-${k.small}`,
|
|
103
|
+
medium: `${e.prefix}-${e.rounded}-${k.medium}`,
|
|
104
|
+
large: `${e.prefix}-${e.rounded}-${k.large}`
|
|
105
|
+
},
|
|
106
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
107
|
+
required: `${e.prefix}-${s.required}`,
|
|
108
|
+
invalid: `${e.prefix}-${s.invalid}`
|
|
109
|
+
},
|
|
110
|
+
inputButton: `${p}-${f.button}`,
|
|
111
|
+
popup: {
|
|
112
|
+
main: `${e.prefix}-${v.timepicker}-${o.popup}`,
|
|
113
|
+
container: `${e.prefix}-${o.list}-${o.container}`
|
|
114
|
+
},
|
|
115
|
+
timeSelector: {
|
|
116
|
+
main: `${e.prefix}-${n.timeselector}`,
|
|
117
|
+
size: {
|
|
118
|
+
medium: `${e.prefix}-${n.timeselector}-${h.medium}`,
|
|
119
|
+
large: `${e.prefix}-${n.timeselector}-${h.large}`
|
|
120
|
+
},
|
|
121
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
122
|
+
reset: `${e.prefix}-${e.reset}`
|
|
123
|
+
}
|
|
124
|
+
}, U = {
|
|
125
|
+
wrapper: (t) => {
|
|
126
|
+
const { c: a = q, size: i, fillMode: r, rounded: l, disabled: u, required: g, invalid: M } = t, $ = a.wrapper;
|
|
127
|
+
return {
|
|
128
|
+
[$.main]: !0,
|
|
129
|
+
[$.input]: !0,
|
|
130
|
+
[$.size[i]]: $.size[i],
|
|
131
|
+
[`${p}-${i}`]: i && !$.size[i],
|
|
132
|
+
[$.fillMode[r]]: $.fillMode[r],
|
|
133
|
+
[$.rounded[l]]: $.rounded[l],
|
|
134
|
+
[`${e.prefix}-${e.rounded}-${l}`]: l && !$.rounded[l],
|
|
135
|
+
[$.disabled]: u,
|
|
136
|
+
[$.invalid]: M,
|
|
137
|
+
[$.required]: g
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
inputButton: d(q, "inputButton"),
|
|
141
|
+
popup: (t) => {
|
|
142
|
+
const { c: a = q } = t, i = a.popup;
|
|
143
|
+
return {
|
|
144
|
+
[i.main]: !0,
|
|
145
|
+
[i.container]: !0
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
timeSelector: (t) => {
|
|
149
|
+
const {
|
|
150
|
+
c: a = q,
|
|
151
|
+
disabled: i,
|
|
152
|
+
mobileMode: r
|
|
153
|
+
} = t, l = a.timeSelector;
|
|
154
|
+
return {
|
|
155
|
+
[l.main]: !0,
|
|
156
|
+
[l.size.large]: r,
|
|
157
|
+
[l.reset]: r,
|
|
158
|
+
[l.size.medium]: !r,
|
|
159
|
+
[l.disabled]: i
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}, m = {
|
|
163
|
+
wrapper: {
|
|
164
|
+
main: `${c}`,
|
|
165
|
+
infinite: `${c}-${e.infinite}`,
|
|
166
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
167
|
+
weekNumber: `${e.prefix}-${n.week}-${n.number}`,
|
|
168
|
+
size: {
|
|
169
|
+
medium: `${c}-${h.medium}`,
|
|
170
|
+
large: `${c}-${h.large}`
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
view: {
|
|
174
|
+
main: `${c}-${o.view}`,
|
|
175
|
+
vertical: `${e.prefix}-${I.vstack}`,
|
|
176
|
+
month: `${c}-${n.month}${o.view}`,
|
|
177
|
+
year: `${c}-${n.year}${o.view}`,
|
|
178
|
+
decade: `${c}-${n.decade}${o.view}`,
|
|
179
|
+
century: `${c}-${n.century}${o.view}`
|
|
180
|
+
},
|
|
181
|
+
navigation: `${c}-${n.navigation}`,
|
|
182
|
+
navigationHighlight: `${c}-${n.navigation}-${s.highlight}`,
|
|
183
|
+
table: {
|
|
184
|
+
main: `${c}-${f.table}`,
|
|
185
|
+
weekdays: `${c}-${n.weekdays}`
|
|
186
|
+
},
|
|
187
|
+
thead: `${c}-${f.thead}`,
|
|
188
|
+
tr: `${c}-${f.tr}`,
|
|
189
|
+
th: `${c}-${f.th}`,
|
|
190
|
+
caption: `${c}-${f.caption}`,
|
|
191
|
+
tbody: `${c}-${f.tbody}`,
|
|
192
|
+
ul: `${e.prefix}-${e.reset}`,
|
|
193
|
+
td: {
|
|
194
|
+
main: `${c}-${f.td}`,
|
|
195
|
+
rangeStart: `${e.prefix}-${n.range}-${P.start}`,
|
|
196
|
+
rangeEnd: `${e.prefix}-${n.range}-${P.end}`,
|
|
197
|
+
rangeMid: `${e.prefix}-${n.range}-${P.mid}`,
|
|
198
|
+
rangeSplitEnd: `${e.prefix}-${n.range}-${S.split}-${P.end}`,
|
|
199
|
+
rangeSplitStart: `${e.prefix}-${n.range}-${S.split}-${P.start}`,
|
|
200
|
+
active: `${e.prefix}-${s.active}`,
|
|
201
|
+
focused: `${e.prefix}-${e.state}-${s.pending}-${s.focus}`,
|
|
202
|
+
selected: `${e.prefix}-${s.selected}`,
|
|
203
|
+
today: `${e.prefix}-${n.today}`,
|
|
204
|
+
weekend: `${e.prefix}-${n.weekend}`,
|
|
205
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
206
|
+
isOtherMonth: `${e.prefix}-${n.other}-${n.month}`,
|
|
207
|
+
isEmpty: `${e.prefix}-${s.empty}`,
|
|
208
|
+
isWeek: `${e.prefix}-${s.alt}`
|
|
209
|
+
},
|
|
210
|
+
title: `${c}-${f.title}`,
|
|
211
|
+
header: {
|
|
212
|
+
main: `${c}-${f.header}`,
|
|
213
|
+
vertical: `${e.prefix}-${I.vstack}`
|
|
214
|
+
},
|
|
215
|
+
spacer: `${e.prefix}-${o.spacer}`,
|
|
216
|
+
nav: `${c}-${o.nav}`,
|
|
217
|
+
today: {
|
|
218
|
+
main: `${c}-${o.nav}-${n.today}`,
|
|
219
|
+
disabled: `${e.prefix}-${s.disabled}`
|
|
220
|
+
},
|
|
221
|
+
scrollable: {
|
|
222
|
+
main: `${e.prefix}-${s.scrollable}`,
|
|
223
|
+
content: `${e.prefix}-${o.content}`,
|
|
224
|
+
horizontal: `${e.prefix}-${s.scrollable}-${B.horizontal}`
|
|
225
|
+
},
|
|
226
|
+
scrollablePlaceholder: {
|
|
227
|
+
main: `${e.prefix}-${s.scrollable}-${o.placeholder}`,
|
|
228
|
+
horizontal: `${e.prefix}-${s.scrollable}-${B.horizontal}-${o.placeholder}`
|
|
229
|
+
},
|
|
230
|
+
link: `${e.prefix}-${f.link}`,
|
|
231
|
+
navigationMarker: `${c}-${n.navigation}-${n.marker}`
|
|
232
|
+
}, j = {
|
|
233
|
+
wrapper: (t) => {
|
|
234
|
+
const {
|
|
235
|
+
c: a = m,
|
|
236
|
+
disabled: i,
|
|
237
|
+
weekNumber: r,
|
|
238
|
+
mobileMode: l
|
|
239
|
+
} = t, u = a.wrapper;
|
|
240
|
+
return {
|
|
241
|
+
[u.main]: !0,
|
|
242
|
+
[u.infinite]: !0,
|
|
243
|
+
[u.disabled]: i,
|
|
244
|
+
[u.weekNumber]: r,
|
|
245
|
+
[u.size.large]: l,
|
|
246
|
+
[u.size.medium]: !l
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
view: (t) => {
|
|
250
|
+
const {
|
|
251
|
+
c: a = m,
|
|
252
|
+
month: i,
|
|
253
|
+
year: r,
|
|
254
|
+
decade: l,
|
|
255
|
+
century: u
|
|
256
|
+
} = t, g = a.view;
|
|
257
|
+
return {
|
|
258
|
+
[g.main]: !0,
|
|
259
|
+
[g.vertical]: !0,
|
|
260
|
+
[g.month]: i,
|
|
261
|
+
[g.year]: r,
|
|
262
|
+
[g.decade]: l,
|
|
263
|
+
[g.century]: u
|
|
264
|
+
};
|
|
265
|
+
},
|
|
266
|
+
navigation: d(m, "navigation"),
|
|
267
|
+
navigationHighlight: d(m, "navigationHighlight"),
|
|
268
|
+
table: (t) => {
|
|
269
|
+
const {
|
|
270
|
+
c: a = m,
|
|
271
|
+
weekdays: i
|
|
272
|
+
} = t, r = a.table;
|
|
273
|
+
return {
|
|
274
|
+
[r.main]: !0,
|
|
275
|
+
[r.weekdays]: i
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
thead: d(m, "thead"),
|
|
279
|
+
tr: d(m, "tr"),
|
|
280
|
+
th: d(m, "th"),
|
|
281
|
+
tbody: d(m, "tbody"),
|
|
282
|
+
title: d(m, "title"),
|
|
283
|
+
header: (t) => {
|
|
284
|
+
const {
|
|
285
|
+
c: a = m,
|
|
286
|
+
vertical: i
|
|
287
|
+
} = t, r = a.header;
|
|
288
|
+
return {
|
|
289
|
+
[r.main]: !0,
|
|
290
|
+
[r.vertical]: i
|
|
291
|
+
};
|
|
292
|
+
},
|
|
293
|
+
today: (t) => {
|
|
294
|
+
const {
|
|
295
|
+
c: a = m,
|
|
296
|
+
disabled: i
|
|
297
|
+
} = t, r = a.today;
|
|
298
|
+
return {
|
|
299
|
+
[r.main]: !0,
|
|
300
|
+
[r.disabled]: i
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
spacer: d(m, "spacer"),
|
|
304
|
+
nav: d(m, "nav"),
|
|
305
|
+
caption: d(m, "caption"),
|
|
306
|
+
ul: d(m, "ul"),
|
|
307
|
+
td: (t) => {
|
|
308
|
+
const {
|
|
309
|
+
c: a = m,
|
|
310
|
+
rangeStart: i,
|
|
311
|
+
rangeEnd: r,
|
|
312
|
+
rangeMid: l,
|
|
313
|
+
rangeSplitEnd: u,
|
|
314
|
+
rangeSplitStart: g,
|
|
315
|
+
active: M,
|
|
316
|
+
focused: $,
|
|
317
|
+
selected: D,
|
|
318
|
+
today: F,
|
|
319
|
+
weekend: N,
|
|
320
|
+
disabled: T,
|
|
321
|
+
isOtherMonth: G,
|
|
322
|
+
isEmpty: C,
|
|
323
|
+
isWeek: E
|
|
324
|
+
} = t, x = a.td;
|
|
325
|
+
return E ? {
|
|
326
|
+
[x.main]: !0,
|
|
327
|
+
[x.isWeek]: E
|
|
328
|
+
} : C ? {
|
|
329
|
+
[x.main]: !0,
|
|
330
|
+
[x.isEmpty]: C
|
|
331
|
+
} : {
|
|
332
|
+
[x.main]: !0,
|
|
333
|
+
[x.rangeStart]: i,
|
|
334
|
+
[x.rangeEnd]: r,
|
|
335
|
+
[x.rangeMid]: l,
|
|
336
|
+
[x.rangeSplitEnd]: u,
|
|
337
|
+
[x.rangeSplitStart]: g,
|
|
338
|
+
[x.active]: M,
|
|
339
|
+
[x.focused]: $,
|
|
340
|
+
[x.selected]: D,
|
|
341
|
+
[x.today]: F,
|
|
342
|
+
[x.weekend]: N,
|
|
343
|
+
[x.disabled]: T,
|
|
344
|
+
[x.isOtherMonth]: G
|
|
345
|
+
};
|
|
346
|
+
},
|
|
347
|
+
scrollable: (t) => {
|
|
348
|
+
const {
|
|
349
|
+
c: a = m,
|
|
350
|
+
horizontal: i
|
|
351
|
+
} = t, r = a.scrollable;
|
|
352
|
+
return {
|
|
353
|
+
[r.main]: !0,
|
|
354
|
+
[r.content]: !0,
|
|
355
|
+
[r.horizontal]: i
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
scrollablePlaceholder: (t) => {
|
|
359
|
+
const {
|
|
360
|
+
c: a = m,
|
|
361
|
+
horizontal: i
|
|
362
|
+
} = t, r = a.scrollablePlaceholder;
|
|
363
|
+
return {
|
|
364
|
+
[r.main]: !0,
|
|
365
|
+
[r.horizontal]: i
|
|
366
|
+
};
|
|
367
|
+
},
|
|
368
|
+
link: d(m, "link"),
|
|
369
|
+
navigationMarker: (t) => {
|
|
370
|
+
const {
|
|
371
|
+
c: a = m,
|
|
372
|
+
isRangeStart: i
|
|
373
|
+
} = t;
|
|
374
|
+
return {
|
|
375
|
+
[a.navigationMarker]: i
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
}, y = {
|
|
379
|
+
wrapper: {
|
|
380
|
+
main: `${e.prefix}-${v.dateinput}`,
|
|
381
|
+
input: `${p}`,
|
|
382
|
+
size: {
|
|
383
|
+
small: `${p}-${h.small}`,
|
|
384
|
+
medium: `${p}-${h.medium}`,
|
|
385
|
+
large: `${p}-${h.large}`
|
|
386
|
+
},
|
|
387
|
+
fillMode: {
|
|
388
|
+
solid: `${p}-${z.solid}`,
|
|
389
|
+
outline: `${p}-${z.outline}`,
|
|
390
|
+
flat: `${p}-${z.flat}`
|
|
391
|
+
},
|
|
392
|
+
rounded: {
|
|
393
|
+
small: `${e.prefix}-${e.rounded}-${k.small}`,
|
|
394
|
+
medium: `${e.prefix}-${e.rounded}-${k.medium}`,
|
|
395
|
+
large: `${e.prefix}-${e.rounded}-${k.large}`
|
|
396
|
+
},
|
|
397
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
398
|
+
required: `${e.prefix}-${s.required}`,
|
|
399
|
+
invalid: `${e.prefix}-${s.invalid}`
|
|
400
|
+
},
|
|
401
|
+
input: `${p}-${W.inner}`,
|
|
402
|
+
inputSpinner: {
|
|
403
|
+
main: `${p}-${W.spinner}`,
|
|
404
|
+
button: `${e.prefix}-${W.spin}-${f.button}`
|
|
405
|
+
},
|
|
406
|
+
spinnerIncrease: `${e.prefix}-${W.spinner}-${S.increase}`,
|
|
407
|
+
spinnerDecrease: `${e.prefix}-${W.spinner}-${S.decrease}`,
|
|
408
|
+
clearButton: `${e.prefix}-${e.clear}-${e.value}`
|
|
409
|
+
}, A = {
|
|
410
|
+
wrapper: (t) => {
|
|
411
|
+
const { c: a = y, size: i, fillMode: r, rounded: l, disabled: u, required: g, invalid: M } = t, $ = a.wrapper;
|
|
412
|
+
return {
|
|
413
|
+
[$.main]: !0,
|
|
414
|
+
[$.input]: !0,
|
|
415
|
+
[$.size[i]]: $.size[i],
|
|
416
|
+
[`${p}-${i}`]: i && !$.size[i],
|
|
417
|
+
[$.fillMode[r]]: $.fillMode[r],
|
|
418
|
+
[$.rounded[l]]: $.rounded[l],
|
|
419
|
+
[`${e.prefix}-${e.rounded}-${l}`]: l && !$.rounded[l],
|
|
420
|
+
[$.disabled]: u,
|
|
421
|
+
[$.invalid]: M,
|
|
422
|
+
[$.required]: g
|
|
423
|
+
};
|
|
424
|
+
},
|
|
425
|
+
input: d(y, "input"),
|
|
426
|
+
inputSpinner: (t) => {
|
|
427
|
+
const { c: a = y } = t, i = a.inputSpinner;
|
|
428
|
+
return {
|
|
429
|
+
[i.main]: !0,
|
|
430
|
+
[i.button]: !0
|
|
431
|
+
};
|
|
432
|
+
},
|
|
433
|
+
spinnerIncrease: d(y, "spinnerIncrease"),
|
|
434
|
+
spinnerDecrease: d(y, "spinnerDecrease"),
|
|
435
|
+
clearButton: d(y, "clearButton")
|
|
436
|
+
}, w = {
|
|
437
|
+
wrapper: {
|
|
438
|
+
main: `${e.prefix}-${v.datetimepicker}`,
|
|
439
|
+
input: `${p}`,
|
|
440
|
+
size: {
|
|
441
|
+
small: `${p}-${h.small}`,
|
|
442
|
+
medium: `${p}-${h.medium}`,
|
|
443
|
+
large: `${p}-${h.large}`
|
|
444
|
+
},
|
|
445
|
+
fillMode: {
|
|
446
|
+
solid: `${p}-${z.solid}`,
|
|
447
|
+
outline: `${p}-${z.outline}`,
|
|
448
|
+
flat: `${p}-${z.flat}`
|
|
449
|
+
},
|
|
450
|
+
rounded: {
|
|
451
|
+
small: `${e.prefix}-${e.rounded}-${k.small}`,
|
|
452
|
+
medium: `${e.prefix}-${e.rounded}-${k.medium}`,
|
|
453
|
+
large: `${e.prefix}-${e.rounded}-${k.large}`
|
|
454
|
+
},
|
|
455
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
456
|
+
required: `${e.prefix}-${s.required}`,
|
|
457
|
+
invalid: `${e.prefix}-${s.invalid}`
|
|
458
|
+
},
|
|
459
|
+
inputButton: `${p}-${f.button}`,
|
|
460
|
+
popup: {
|
|
461
|
+
main: `${e.prefix}-${v.datetime}-${o.container}`,
|
|
462
|
+
reset: `${e.prefix}-${e.reset}`
|
|
463
|
+
},
|
|
464
|
+
wrap: {
|
|
465
|
+
main: `${e.prefix}-${v.datetime}-${o.wrap}`,
|
|
466
|
+
date: `${e.prefix}-${n.date}-${o.tab}`,
|
|
467
|
+
time: `${e.prefix}-${n.time}-${o.tab}`,
|
|
468
|
+
disabled: `${e.prefix}-${s.disabled}`
|
|
469
|
+
},
|
|
470
|
+
timeFooter: {
|
|
471
|
+
main: `${e.prefix}-${v.datetime}-${f.footer}`,
|
|
472
|
+
actions: `${e.prefix}-${o.actions}`,
|
|
473
|
+
stretched: `${e.prefix}-${o.actions}-${s.stretched}`
|
|
474
|
+
},
|
|
475
|
+
buttonGroup: `${e.prefix}-${v.datetime}-${v.buttongroup}`,
|
|
476
|
+
selector: `${e.prefix}-${v.datetime}-${n.selector}`,
|
|
477
|
+
calendarWrap: `${e.prefix}-${v.datetime}-${c}-${o.wrap}`,
|
|
478
|
+
timeWrap: `${e.prefix}-${v.datetime}-${n.time}-${o.wrap}`,
|
|
479
|
+
timeSelector: {
|
|
480
|
+
main: `${e.prefix}-${n.timeselector}`,
|
|
481
|
+
size: {
|
|
482
|
+
medium: `${e.prefix}-${n.timeselector}-${h.medium}`,
|
|
483
|
+
large: `${e.prefix}-${n.timeselector}-${h.large}`
|
|
484
|
+
},
|
|
485
|
+
disabled: `${e.prefix}-${s.disabled}`,
|
|
486
|
+
reset: `${e.prefix}-${e.reset}`
|
|
487
|
+
}
|
|
488
|
+
}, J = {
|
|
489
|
+
wrapper: (t) => {
|
|
490
|
+
const { c: a = w, size: i, fillMode: r, rounded: l, disabled: u, required: g, invalid: M } = t, $ = a.wrapper;
|
|
491
|
+
return {
|
|
492
|
+
[$.main]: !0,
|
|
493
|
+
[$.input]: !0,
|
|
494
|
+
[$.size[i]]: $.size[i],
|
|
495
|
+
[`${p}-${i}`]: i && !$.size[i],
|
|
496
|
+
[$.fillMode[r]]: $.fillMode[r],
|
|
497
|
+
[$.rounded[l]]: $.rounded[l],
|
|
498
|
+
[`${e.prefix}-${e.rounded}-${l}`]: l && !$.rounded[l],
|
|
499
|
+
[$.disabled]: u,
|
|
500
|
+
[$.invalid]: M,
|
|
501
|
+
[$.required]: g
|
|
502
|
+
};
|
|
503
|
+
},
|
|
504
|
+
inputButton: d(w, "inputButton"),
|
|
505
|
+
popup: (t) => {
|
|
506
|
+
const { c: a = w } = t, i = a.popup;
|
|
507
|
+
return {
|
|
508
|
+
[i.main]: !0,
|
|
509
|
+
[i.reset]: !0
|
|
510
|
+
};
|
|
511
|
+
},
|
|
512
|
+
wrap: (t) => {
|
|
513
|
+
const {
|
|
514
|
+
c: a = w,
|
|
515
|
+
disabled: i,
|
|
516
|
+
date: r,
|
|
517
|
+
time: l
|
|
518
|
+
} = t, u = a.wrap;
|
|
519
|
+
return {
|
|
520
|
+
[u.main]: !0,
|
|
521
|
+
[u.time]: l,
|
|
522
|
+
[u.date]: r,
|
|
523
|
+
[u.disabled]: i
|
|
524
|
+
};
|
|
525
|
+
},
|
|
526
|
+
timeFooter: (t) => {
|
|
527
|
+
const { c: a = w } = t, i = a.timeFooter;
|
|
528
|
+
return {
|
|
529
|
+
[i.main]: !0,
|
|
530
|
+
[i.actions]: !0,
|
|
531
|
+
[i.stretched]: !0
|
|
532
|
+
};
|
|
533
|
+
},
|
|
534
|
+
buttonGroup: d(w, "buttonGroup"),
|
|
535
|
+
selector: d(w, "selector"),
|
|
536
|
+
calendarWrap: d(w, "calendarWrap"),
|
|
537
|
+
timeWrap: d(w, "timeWrap"),
|
|
538
|
+
timeSelector: (t) => {
|
|
539
|
+
const {
|
|
540
|
+
c: a = w,
|
|
541
|
+
mobileMode: i
|
|
542
|
+
} = t, r = a.timeSelector;
|
|
543
|
+
return {
|
|
544
|
+
[r.main]: i,
|
|
545
|
+
[r.size.large]: i,
|
|
546
|
+
[r.reset]: i
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
export {
|
|
551
|
+
j as uCalendar,
|
|
552
|
+
A as uDateInput,
|
|
553
|
+
J as uDateTimePicker,
|
|
554
|
+
R as uTime,
|
|
555
|
+
U as uTimePicker
|
|
556
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./interfaces/common.js"),e=require("./json-classes.js"),o={clearButton:`${e.base.prefix}-${e.base.clear}-${e.base.value}`,groupStickyHeader:`${e.base.prefix}-${e.containers.list}-${e.containers.group}-${e.states.sticky}-${e.elements.header}`,listHeaderText:`${e.base.prefix}-${e.containers.list}-${e.elements.header}-${e.elements.text}`,ul:`${e.base.prefix}-${e.containers.list}-${e.elements.ul}`,li:{main:`${e.base.prefix}-${e.containers.list}-${e.containers.item}`,selected:`${e.base.prefix}-${e.states.selected}`,focused:`${e.base.prefix}-${e.states.focus}`,first:`${e.base.prefix}-${e.states.first}`,disabled:`${e.base.prefix}-${e.states.disabled}`},groupLi:{list:`${e.base.prefix}-${e.containers.list}-${e.containers.group}-${e.containers.item}`,table:`${e.base.prefix}-${e.elements.table}-${e.containers.group}-${e.containers.row}`},itemText:`${e.base.prefix}-${e.containers.list}-${e.containers.item}-${e.elements.text}`,groupItemText:{list:`${e.base.prefix}-${e.containers.list}-${e.containers.item}-${e.elements.text}`,table:`${e.base.prefix}-${e.elements.table}-${e.elements.th}`},itemGroupLabel:`${e.base.prefix}-${e.containers.list}-${e.containers.item}-${e.containers.group}-${e.elements.label}`,noData:`${e.base.prefix}-${e.base.nodata}`,heightContainer:`${e.base.prefix}-${e.dimensions.height}-${e.containers.container}`,optionlabel:{main:`${e.base.prefix}-${e.containers.list}-${e.containers.optionlabel}`,selected:`${e.base.prefix}-${e.states.selected}`},inputIcon:`${e.base.prefix}-${e.inputs.input}-${e.icon.prefix}`,searchbox:`${e.base.prefix}-${e.components.searchbox}`,listFilter:`${e.base.prefix}-${e.containers.list}-${e.base.filter}`},b={clearButton:i.getClassByName(o,"clearButton"),groupStickyHeader:i.getClassByName(o,"groupStickyHeader"),listHeaderText:i.getClassByName(o,"listHeaderText"),ul:i.getClassByName(o,"ul"),li:a=>{const{c:n=o,selected:t,focused:s,first:l,disabled:u}=a,p=n.li;return{[p.main]:!0,[p.selected]:t,[p.focused]:s,[p.first]:l,[p.disabled]:u}},groupLi:a=>{const{c:n=o,isMultiColumn:t}=a,s=n.groupLi;return{[s.table]:t,[s.list]:!t}},itemText:i.getClassByName(o,"itemText"),groupItemText:a=>{const{c:n=o,isMultiColumn:t}=a,s=n.groupItemText;return{[s.table]:t,[s.list]:!t}},itemGroupLabel:i.getClassByName(o,"itemGroupLabel"),noData:i.getClassByName(o,"noData"),heightContainer:i.getClassByName(o,"heightContainer"),optionlabel:a=>{const{c:n=o,selected:t}=a,s=n.optionlabel;return{[s.main]:!0,[s.selected]:t}},inputIcon:i.getClassByName(o,"inputIcon"),searchbox:i.getClassByName(o,"searchbox"),listFilter:i.getClassByName(o,"listFilter")},c={wrapper:{main:`${e.base.prefix}-${e.states.adaptive}-${e.components.actionsheet}`,fullscreen:`${e.base.prefix}-${e.components.actionsheet}-${e.states.fullscreen}`,bottom:`${e.base.prefix}-${e.components.actionsheet}-${e.states.bottom}`},header:`${e.base.prefix}-${e.elements.text}-${e.cssUtils.center}`,titleBar:{main:`${e.base.prefix}-${e.components.actionsheet}-${e.containers.titlebar}-${e.containers.group}`,position:`${e.base.prefix}-${e.cssUtils.hbox}`},title:`${e.base.prefix}-${e.components.actionsheet}-${e.elements.title}`,actions:`${e.base.prefix}-${e.components.actionsheet}-${e.containers.actions}`,titleBarGroup:{main:`${e.base.prefix}-${e.components.actionsheet}-${e.containers.titlebar}-${e.containers.group}`,filter:`${e.base.prefix}-${e.components.actionsheet}-${e.base.filter}`}},x={wrapper:a=>{const{c:n=c,isFullScreen:t}=a,s=n.wrapper;return{[s.main]:!0,[s.fullscreen]:t,[s.bottom]:!t}},header:i.getClassByName(c,"header"),titleBar:a=>{const{c:n=c}=a,t=n.titleBar;return{[t.main]:!0,[t.position]:!0}},title:i.getClassByName(c,"title"),actions:i.getClassByName(c,"actions"),titleBarGroup:a=>{const{c:n=c}=a,t=n.titleBarGroup;return{[t.main]:!0,[t.filter]:!0}}},$={wrapper:{main:e.dropDownListPrefix,picker:e.pickerPrefix,size:{small:`${e.pickerPrefix}-${e.sizeMap.small}`,medium:`${e.pickerPrefix}-${e.sizeMap.medium}`,large:`${e.pickerPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.pickerPrefix}-${e.fillModeMap.solid}`,outline:`${e.pickerPrefix}-${e.fillModeMap.outline}`,flat:`${e.pickerPrefix}-${e.fillModeMap.flat}`,link:`${e.pickerPrefix}-${e.fillModeMap.link}`,clear:`${e.pickerPrefix}-${e.fillModeMap.clear}`},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},disabled:`${e.base.prefix}-${e.states.disabled}`,focused:`${e.base.prefix}-${e.states.focus}`,invalid:`${e.base.prefix}-${e.states.invalid}`,loading:`${e.base.prefix}-${e.states.loading}`,required:`${e.base.prefix}-${e.states.required}`},loadingIcon:`${e.inputPrefix}-${e.states.loading}-${e.icon.prefix}`,iconButton:`${e.inputPrefix}-${e.elements.button}`,listContainer:{main:`${e.base.prefix}-${e.containers.list}-${e.containers.container}`,popup:`${e.base.prefix}-${e.components.dropdownlist}-${e.containers.popup}`},input:`${e.inputPrefix}-${e.inputs.inner}`,inputText:`${e.inputPrefix}-${e.base.value}-${e.elements.text}`,listHeader:`${e.base.prefix}-${e.containers.list}-${e.elements.header}`,list:{main:`${e.base.prefix}-${e.containers.list}`,size:{small:`${e.base.prefix}-${e.containers.list}-${e.sizeMap.small}`,medium:`${e.base.prefix}-${e.containers.list}-${e.sizeMap.medium}`,large:`${e.base.prefix}-${e.containers.list}-${e.sizeMap.large}`},virtual:`${e.base.prefix}-${e.base.virtual}-${e.containers.list}`},listContent:`${e.base.prefix}-${e.containers.list}-${e.containers.content}`,listFooter:`${e.base.prefix}-${e.containers.list}-${e.elements.footer}`},g={wrapper:a=>{const{c:n=$,size:t,rounded:s,fillMode:l,focused:u,disabled:p,invalid:d,loading:m,required:f}=a,r=n.wrapper;return{[r.main]:!0,[r.picker]:!0,[r.size[t]]:r.size[t],[`${e.pickerPrefix}-${t}`]:t&&!r.size[t],[r.fillMode[l]]:r.fillMode[l],[r.rounded[s]]:r.rounded[s],[`${e.base.prefix}-${e.base.rounded}-${s}`]:s&&!r.rounded[s],[r.focused]:u,[r.disabled]:p,[r.loading]:m,[r.invalid]:d,[r.required]:f}},loadingIcon:i.getClassByName($,"loadingIcon"),iconButton:i.getClassByName($,"iconButton"),listContainer:a=>{const{c:n=$}=a,t=n.listContainer;return{[t.main]:!0,[t.popup]:!0}},input:i.getClassByName($,"input"),inputText:i.getClassByName($,"inputText"),listHeader:i.getClassByName($,"listHeader"),list:a=>{const{c:n=$,size:t,virtual:s}=a,l=n.list;return{[l.main]:!0,[l.size[t]]:l.size[t],[`${e.base.prefix}-${e.containers.list}-${t}`]:t&&!l.size[t],[l.virtual]:s}},listContent:i.getClassByName($,"listContent"),listFooter:i.getClassByName($,"listFooter")};exports.uDropDownList=g;exports.uDropDownsActionSheet=x;exports.uDropDownsBase=b;
|