@progress/kendo-vue-common 7.0.3-develop.1 → 7.1.0-develop.2
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-vue-common.js +1 -1
- package/index.d.mts +2054 -5
- package/index.d.ts +2054 -5
- package/index.js +1 -1
- package/index.mjs +147 -73
- package/package.json +1 -1
- package/unstyled/animations.js +8 -0
- package/unstyled/animations.mjs +184 -0
- package/unstyled/buttons.js +8 -0
- package/unstyled/buttons.mjs +263 -0
- package/unstyled/common.js +8 -0
- package/unstyled/common.mjs +16 -0
- package/unstyled/dateinputs.js +8 -0
- package/unstyled/dateinputs.mjs +523 -0
- package/unstyled/dropdowns.js +8 -0
- package/unstyled/dropdowns.mjs +350 -0
- package/unstyled/form.js +8 -0
- package/unstyled/form.mjs +84 -0
- package/unstyled/grid.js +8 -0
- package/unstyled/grid.mjs +339 -0
- package/unstyled/icons.js +8 -0
- package/unstyled/icons.mjs +68 -0
- package/unstyled/inputs.js +8 -0
- package/unstyled/inputs.mjs +219 -0
- package/unstyled/json-classes.js +8 -0
- package/unstyled/json-classes.mjs +334 -0
- package/unstyled/labels.js +8 -0
- package/unstyled/labels.mjs +106 -0
- package/unstyled/popup.js +8 -0
- package/unstyled/popup.mjs +92 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { getClassByName as s } from "./common.mjs";
|
|
9
|
+
import { base as e, containers as i, components as b, inputs as F, icon as q, inputPrefix as p, states as u, dimensions as y, elements as o, cssUtils as k, sizeMap as x, roundedMap as M, pickerPrefix as g, fillModeMap as z, dropDownListPrefix as P, comboBoxPrefix as A } from "./json-classes.mjs";
|
|
10
|
+
const d = {
|
|
11
|
+
clearButton: `${e.prefix}-${e.clear}-${e.value}`,
|
|
12
|
+
groupStickyHeader: `${e.prefix}-${i.list}-${i.group}-${u.sticky}-${o.header}`,
|
|
13
|
+
listHeaderText: `${e.prefix}-${i.list}-${o.header}-${o.text}`,
|
|
14
|
+
ul: `${e.prefix}-${i.list}-${o.ul}`,
|
|
15
|
+
li: {
|
|
16
|
+
main: `${e.prefix}-${i.list}-${i.item}`,
|
|
17
|
+
selected: `${e.prefix}-${u.selected}`,
|
|
18
|
+
focused: `${e.prefix}-${u.focus}`,
|
|
19
|
+
first: `${e.prefix}-${u.first}`,
|
|
20
|
+
disabled: `${e.prefix}-${u.disabled}`
|
|
21
|
+
},
|
|
22
|
+
groupLi: {
|
|
23
|
+
list: `${e.prefix}-${i.list}-${i.group}-${i.item}`,
|
|
24
|
+
table: `${e.prefix}-${o.table}-${i.group}-${i.row}`
|
|
25
|
+
},
|
|
26
|
+
itemText: `${e.prefix}-${i.list}-${i.item}-${o.text}`,
|
|
27
|
+
groupItemText: {
|
|
28
|
+
list: `${e.prefix}-${i.list}-${i.item}-${o.text}`,
|
|
29
|
+
table: `${e.prefix}-${o.table}-${o.th}`
|
|
30
|
+
},
|
|
31
|
+
itemGroupLabel: `${e.prefix}-${i.list}-${i.item}-${i.group}-${o.label}`,
|
|
32
|
+
noData: `${e.prefix}-${e.nodata}`,
|
|
33
|
+
heightContainer: `${e.prefix}-${y.height}-${i.container}`,
|
|
34
|
+
optionLabel: {
|
|
35
|
+
main: `${e.prefix}-${i.list}-${i.optionLabel}`,
|
|
36
|
+
selected: `${e.prefix}-${u.selected}`
|
|
37
|
+
},
|
|
38
|
+
inputInner: `${p}-${F.inner}`,
|
|
39
|
+
inputIcon: `${e.prefix}-${F.input}-${q.prefix}`,
|
|
40
|
+
searchbox: `${e.prefix}-${b.searchbox}`,
|
|
41
|
+
listFilter: `${e.prefix}-${i.list}-${e.filter}`
|
|
42
|
+
}, j = {
|
|
43
|
+
clearButton: s(d, "clearButton"),
|
|
44
|
+
groupStickyHeader: s(d, "groupStickyHeader"),
|
|
45
|
+
listHeaderText: s(d, "listHeaderText"),
|
|
46
|
+
ul: s(d, "ul"),
|
|
47
|
+
li: (n) => {
|
|
48
|
+
const { c: $ = d, selected: t, focused: l, first: c, disabled: f } = n, m = $.li;
|
|
49
|
+
return {
|
|
50
|
+
[m.main]: !0,
|
|
51
|
+
[m.selected]: t,
|
|
52
|
+
[m.focused]: l,
|
|
53
|
+
[m.first]: c,
|
|
54
|
+
[m.disabled]: f
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
groupLi: (n) => {
|
|
58
|
+
const { c: $ = d, isMultiColumn: t } = n, l = $.groupLi;
|
|
59
|
+
return {
|
|
60
|
+
[l.table]: t,
|
|
61
|
+
[l.list]: !t
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
itemText: s(d, "itemText"),
|
|
65
|
+
groupItemText: (n) => {
|
|
66
|
+
const { c: $ = d, isMultiColumn: t } = n, l = $.groupItemText;
|
|
67
|
+
return {
|
|
68
|
+
[l.table]: t,
|
|
69
|
+
[l.list]: !t
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
itemGroupLabel: s(d, "itemGroupLabel"),
|
|
73
|
+
noData: s(d, "noData"),
|
|
74
|
+
heightContainer: s(d, "heightContainer"),
|
|
75
|
+
optionLabel: (n) => {
|
|
76
|
+
const { c: $ = d, selected: t } = n, l = $.optionLabel;
|
|
77
|
+
return {
|
|
78
|
+
[l.main]: !0,
|
|
79
|
+
[l.selected]: t
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
inputInner: s(d, "inputInner"),
|
|
83
|
+
inputIcon: s(d, "inputIcon"),
|
|
84
|
+
searchbox: s(d, "searchbox"),
|
|
85
|
+
listFilter: s(d, "listFilter")
|
|
86
|
+
}, C = {
|
|
87
|
+
wrapper: {
|
|
88
|
+
main: `${e.prefix}-${u.adaptive}-${b.actionsheet}`,
|
|
89
|
+
fullscreen: `${e.prefix}-${b.actionsheet}-${u.fullscreen}`,
|
|
90
|
+
bottom: `${e.prefix}-${b.actionsheet}-${u.bottom}`
|
|
91
|
+
},
|
|
92
|
+
header: `${e.prefix}-${o.text}-${k.center}`,
|
|
93
|
+
titleBar: {
|
|
94
|
+
main: `${e.prefix}-${b.actionsheet}-${i.titlebar}-${i.group}`,
|
|
95
|
+
position: `${e.prefix}-${k.hbox}`
|
|
96
|
+
},
|
|
97
|
+
title: `${e.prefix}-${b.actionsheet}-${o.title}`,
|
|
98
|
+
subtitle: {
|
|
99
|
+
main: `${e.prefix}-${b.actionsheet}-${o.subtitle}`,
|
|
100
|
+
textCenter: `${e.prefix}-${o.text}-${k.center}`
|
|
101
|
+
},
|
|
102
|
+
actions: `${e.prefix}-${b.actionsheet}-${i.actions}`,
|
|
103
|
+
titleBarGroup: {
|
|
104
|
+
main: `${e.prefix}-${b.actionsheet}-${i.titlebar}-${i.group}`,
|
|
105
|
+
filter: `${e.prefix}-${b.actionsheet}-${e.filter}`
|
|
106
|
+
}
|
|
107
|
+
}, E = {
|
|
108
|
+
wrapper: (n) => {
|
|
109
|
+
const { c: $ = C, isFullScreen: t } = n, l = $.wrapper;
|
|
110
|
+
return {
|
|
111
|
+
[l.main]: !0,
|
|
112
|
+
[l.fullscreen]: t,
|
|
113
|
+
[l.bottom]: !t
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
header: s(C, "header"),
|
|
117
|
+
titleBar: (n) => {
|
|
118
|
+
const { c: $ = C } = n, t = $.titleBar;
|
|
119
|
+
return {
|
|
120
|
+
[t.main]: !0,
|
|
121
|
+
[t.position]: !0
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
title: s(C, "title"),
|
|
125
|
+
subtitle: (n) => {
|
|
126
|
+
const { c: $ = C } = n, t = $.subtitle;
|
|
127
|
+
return {
|
|
128
|
+
[t.main]: !0,
|
|
129
|
+
[t.textCenter]: !0
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
actions: s(C, "actions"),
|
|
133
|
+
titleBarGroup: (n) => {
|
|
134
|
+
const { c: $ = C } = n, t = $.titleBarGroup;
|
|
135
|
+
return {
|
|
136
|
+
[t.main]: !0,
|
|
137
|
+
[t.filter]: !0
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}, h = {
|
|
141
|
+
wrapper: {
|
|
142
|
+
main: P,
|
|
143
|
+
picker: g,
|
|
144
|
+
size: {
|
|
145
|
+
small: `${g}-${x.small}`,
|
|
146
|
+
medium: `${g}-${x.medium}`,
|
|
147
|
+
large: `${g}-${x.large}`
|
|
148
|
+
},
|
|
149
|
+
fillMode: {
|
|
150
|
+
solid: `${g}-${z.solid}`,
|
|
151
|
+
outline: `${g}-${z.outline}`,
|
|
152
|
+
flat: `${g}-${z.flat}`,
|
|
153
|
+
link: `${g}-${z.link}`,
|
|
154
|
+
clear: `${g}-${z.clear}`
|
|
155
|
+
},
|
|
156
|
+
rounded: {
|
|
157
|
+
small: `${e.prefix}-${e.rounded}-${M.small}`,
|
|
158
|
+
medium: `${e.prefix}-${e.rounded}-${M.medium}`,
|
|
159
|
+
large: `${e.prefix}-${e.rounded}-${M.large}`
|
|
160
|
+
},
|
|
161
|
+
disabled: `${e.prefix}-${u.disabled}`,
|
|
162
|
+
focused: `${e.prefix}-${u.focus}`,
|
|
163
|
+
invalid: `${e.prefix}-${u.invalid}`,
|
|
164
|
+
loading: `${e.prefix}-${u.loading}`,
|
|
165
|
+
required: `${e.prefix}-${u.required}`
|
|
166
|
+
},
|
|
167
|
+
loadingIcon: `${p}-${u.loading}-${q.prefix}`,
|
|
168
|
+
inputButton: `${p}-${o.button}`,
|
|
169
|
+
listContainer: {
|
|
170
|
+
main: `${e.prefix}-${i.list}-${i.container}`,
|
|
171
|
+
popup: `${e.prefix}-${b.dropdownlist}-${i.popup}`
|
|
172
|
+
},
|
|
173
|
+
inputInner: `${p}-${F.inner}`,
|
|
174
|
+
inputText: `${p}-${e.value}-${o.text}`,
|
|
175
|
+
listHeader: `${e.prefix}-${i.list}-${o.header}`,
|
|
176
|
+
list: {
|
|
177
|
+
main: `${e.prefix}-${i.list}`,
|
|
178
|
+
size: {
|
|
179
|
+
small: `${e.prefix}-${i.list}-${x.small}`,
|
|
180
|
+
medium: `${e.prefix}-${i.list}-${x.medium}`,
|
|
181
|
+
large: `${e.prefix}-${i.list}-${x.large}`
|
|
182
|
+
},
|
|
183
|
+
virtual: `${e.prefix}-${e.virtual}-${i.list}`
|
|
184
|
+
},
|
|
185
|
+
listContent: `${e.prefix}-${i.list}-${i.content}`,
|
|
186
|
+
listFooter: `${e.prefix}-${i.list}-${o.footer}`
|
|
187
|
+
}, J = {
|
|
188
|
+
wrapper: (n) => {
|
|
189
|
+
var B, D, T, H, S;
|
|
190
|
+
const {
|
|
191
|
+
c: $ = h,
|
|
192
|
+
size: t,
|
|
193
|
+
rounded: l,
|
|
194
|
+
fillMode: c,
|
|
195
|
+
focused: f,
|
|
196
|
+
disabled: m,
|
|
197
|
+
invalid: I,
|
|
198
|
+
loading: L,
|
|
199
|
+
required: r
|
|
200
|
+
} = n, a = $.wrapper;
|
|
201
|
+
return {
|
|
202
|
+
[a.main]: !0,
|
|
203
|
+
[a.picker]: !0,
|
|
204
|
+
[a.size[t]]: (B = a.size) == null ? void 0 : B[t],
|
|
205
|
+
[`${g}-${t}`]: t && !((D = a.size) != null && D[t]),
|
|
206
|
+
[a.fillMode[c]]: (T = a.fillMode) == null ? void 0 : T[c],
|
|
207
|
+
[a.rounded[l]]: (H = a.rounded) == null ? void 0 : H[l],
|
|
208
|
+
[`${e.prefix}-${e.rounded}-${l}`]: l && !((S = a.rounded) != null && S[l]),
|
|
209
|
+
[a.focused]: f,
|
|
210
|
+
[a.disabled]: m,
|
|
211
|
+
[a.loading]: L,
|
|
212
|
+
[a.invalid]: I,
|
|
213
|
+
[a.required]: r
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
loadingIcon: s(h, "loadingIcon"),
|
|
217
|
+
inputButton: s(h, "inputButton"),
|
|
218
|
+
listContainer: (n) => {
|
|
219
|
+
const { c: $ = h, popup: t } = n, l = $.listContainer;
|
|
220
|
+
return {
|
|
221
|
+
[l.main]: !0,
|
|
222
|
+
[l.popup]: t
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
inputInner: s(h, "inputInner"),
|
|
226
|
+
inputText: s(h, "inputText"),
|
|
227
|
+
listHeader: s(h, "listHeader"),
|
|
228
|
+
list: (n) => {
|
|
229
|
+
var f;
|
|
230
|
+
const { c: $ = h, size: t, virtual: l } = n, c = $.list;
|
|
231
|
+
return {
|
|
232
|
+
[c.main]: !0,
|
|
233
|
+
[c.size[t]]: c.size[t],
|
|
234
|
+
[`${e.prefix}-${i.list}-${t}`]: t && !((f = c.size) != null && f[t]),
|
|
235
|
+
[c.virtual]: l
|
|
236
|
+
};
|
|
237
|
+
},
|
|
238
|
+
listContent: s(h, "listContent"),
|
|
239
|
+
listFooter: s(h, "listFooter")
|
|
240
|
+
}, v = {
|
|
241
|
+
wrapper: {
|
|
242
|
+
main: A,
|
|
243
|
+
input: p,
|
|
244
|
+
size: {
|
|
245
|
+
small: `${p}-${x.small}`,
|
|
246
|
+
medium: `${p}-${x.medium}`,
|
|
247
|
+
large: `${p}-${x.large}`
|
|
248
|
+
},
|
|
249
|
+
fillMode: {
|
|
250
|
+
solid: `${p}-${z.solid}`,
|
|
251
|
+
outline: `${p}-${z.outline}`,
|
|
252
|
+
flat: `${p}-${z.flat}`,
|
|
253
|
+
link: `${p}-${z.link}`,
|
|
254
|
+
clear: `${p}-${z.clear}`
|
|
255
|
+
},
|
|
256
|
+
rounded: {
|
|
257
|
+
small: `${e.prefix}-${e.rounded}-${M.small}`,
|
|
258
|
+
medium: `${e.prefix}-${e.rounded}-${M.medium}`,
|
|
259
|
+
large: `${e.prefix}-${e.rounded}-${M.large}`
|
|
260
|
+
},
|
|
261
|
+
disabled: `${e.prefix}-${u.disabled}`,
|
|
262
|
+
invalid: `${e.prefix}-${u.invalid}`,
|
|
263
|
+
loading: `${e.prefix}-${u.loading}`,
|
|
264
|
+
required: `${e.prefix}-${u.required}`
|
|
265
|
+
},
|
|
266
|
+
loadingIcon: `${p}-${u.loading}-${q.prefix}`,
|
|
267
|
+
inputButton: `${p}-${o.button}`,
|
|
268
|
+
listContainer: {
|
|
269
|
+
main: `${e.prefix}-${i.list}-${i.container}`,
|
|
270
|
+
popup: `${e.prefix}-${b.combobox}-${i.popup}`
|
|
271
|
+
},
|
|
272
|
+
listHeader: `${e.prefix}-${o.table}-${o.header}`,
|
|
273
|
+
list: {
|
|
274
|
+
list: `${e.prefix}-${i.list}`,
|
|
275
|
+
table: `${e.prefix}-${e.data}-${o.table}`,
|
|
276
|
+
size: {
|
|
277
|
+
prefix: `${e.prefix}-${i.list}-`,
|
|
278
|
+
small: `${e.prefix}-${i.list}-${x.small}`,
|
|
279
|
+
medium: `${e.prefix}-${i.list}-${x.medium}`,
|
|
280
|
+
large: `${e.prefix}-${i.list}-${x.large}`
|
|
281
|
+
},
|
|
282
|
+
tableSize: {
|
|
283
|
+
prefix: `${e.prefix}-${o.table}-`,
|
|
284
|
+
small: `${e.prefix}-${o.table}-${x.small}`,
|
|
285
|
+
medium: `${e.prefix}-${o.table}-${x.medium}`,
|
|
286
|
+
large: `${e.prefix}-${o.table}-${x.large}`
|
|
287
|
+
},
|
|
288
|
+
virtual: `${e.prefix}-${e.virtual}-${i.list}`
|
|
289
|
+
},
|
|
290
|
+
listContent: {
|
|
291
|
+
main: `${e.prefix}-${i.list}-${i.content}`,
|
|
292
|
+
scroller: `${e.prefix}-${i.list}-${e.scroller}`
|
|
293
|
+
},
|
|
294
|
+
listFooter: `${e.prefix}-${i.list}-${o.footer}`
|
|
295
|
+
}, K = {
|
|
296
|
+
wrapper: (n) => {
|
|
297
|
+
var a, B;
|
|
298
|
+
const { c: $ = v, size: t, rounded: l, fillMode: c, disabled: f, invalid: m, loading: I, required: L } = n, r = $.wrapper;
|
|
299
|
+
return {
|
|
300
|
+
[r == null ? void 0 : r.main]: !0,
|
|
301
|
+
[r == null ? void 0 : r.input]: !0,
|
|
302
|
+
[r == null ? void 0 : r.size[t]]: r == null ? void 0 : r.size[t],
|
|
303
|
+
[`${g}-${t}`]: t && !(r != null && r.size[t]),
|
|
304
|
+
[r == null ? void 0 : r.fillMode[c]]: r == null ? void 0 : r.fillMode[c],
|
|
305
|
+
[r == null ? void 0 : r.rounded[l]]: r == null ? void 0 : r.rounded[l],
|
|
306
|
+
[`${(a = e) == null ? void 0 : a.prefix}-${(B = e) == null ? void 0 : B.rounded}-${l}`]: l && !(r != null && r.rounded[l]),
|
|
307
|
+
[r == null ? void 0 : r.disabled]: f,
|
|
308
|
+
[r == null ? void 0 : r.loading]: I,
|
|
309
|
+
[r == null ? void 0 : r.invalid]: m,
|
|
310
|
+
[r == null ? void 0 : r.required]: L
|
|
311
|
+
};
|
|
312
|
+
},
|
|
313
|
+
loadingIcon: s(v, "loadingIcon"),
|
|
314
|
+
inputButton: s(v, "inputButton"),
|
|
315
|
+
listContainer: (n) => {
|
|
316
|
+
const { c: $ = v, popup: t } = n, l = $.listContainer;
|
|
317
|
+
return {
|
|
318
|
+
[l == null ? void 0 : l.main]: !0,
|
|
319
|
+
[l == null ? void 0 : l.popup]: t
|
|
320
|
+
};
|
|
321
|
+
},
|
|
322
|
+
listHeader: s(v, "listHeader"),
|
|
323
|
+
list: (n) => {
|
|
324
|
+
var m, I, L, r, a, B, D, T, H, S, G;
|
|
325
|
+
const { c: $ = v, size: t, tableSize: l, virtual: c, list: f } = n;
|
|
326
|
+
return {
|
|
327
|
+
[(m = $.list) == null ? void 0 : m.list]: !f,
|
|
328
|
+
[(I = $.list) == null ? void 0 : I.table]: f,
|
|
329
|
+
[(L = $.list) == null ? void 0 : L.size[t]]: !f && ((r = $.list) == null ? void 0 : r.size[t]),
|
|
330
|
+
[`${(a = $.list) == null ? void 0 : a.size.prefix}${t}`]: !f && t && !((B = $.list) != null && B.size[t]),
|
|
331
|
+
[(D = $.list) == null ? void 0 : D.tableSize[l]]: f && ((T = $.list) == null ? void 0 : T.tableSize[l]),
|
|
332
|
+
[`${(H = $.list) == null ? void 0 : H.tableSize.prefix}${l}`]: f && l && !((S = $.list) != null && S.tableSize[l]),
|
|
333
|
+
[(G = $.list) == null ? void 0 : G.virtual]: c
|
|
334
|
+
};
|
|
335
|
+
},
|
|
336
|
+
listContent: (n) => {
|
|
337
|
+
const { c: $ = v, virtual: t } = n, l = $.listContent;
|
|
338
|
+
return {
|
|
339
|
+
[l == null ? void 0 : l.main]: !0,
|
|
340
|
+
[l == null ? void 0 : l.scroller]: !t
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
listFooter: s(v, "listFooter")
|
|
344
|
+
};
|
|
345
|
+
export {
|
|
346
|
+
K as uComboBox,
|
|
347
|
+
J as uDropDownList,
|
|
348
|
+
E as uDropDownsActionSheet,
|
|
349
|
+
j as uDropDownsBase
|
|
350
|
+
};
|
package/unstyled/form.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),i=`${e.base.prefix}-${e.forms.form}`,c=`${e.base.prefix}-${e.forms.form}-${e.forms.field}`,a={form:{main:i,size:{prefix:`${i}-`,small:`${i}-${e.sizeMap.small}`,medium:`${i}-${e.sizeMap.medium}`,large:`${i}-${e.sizeMap.large}`},orientation:{horizontal:`${i}-${e.orientationMap.horizontal}`,vertical:`${i}-${e.orientationMap.vertical}`}},formLayout:{main:`${e.base.prefix}-${e.forms.form}-layout ${e.base.prefix}-d-grid`},fieldset:{main:`${e.base.prefix}-${e.forms.form}-${e.forms.fieldset}`},legend:{main:`${e.base.prefix}-${e.forms.form}-${e.forms.legend}`},field:{main:c,isRtl:`${e.base.prefix}-${e.base.rtl}`},separator:{main:`${e.base.prefix}-${e.forms.form}-${e.forms.separator}`}},u={form:o=>{var f,m,l,$;const{size:r,orientation:s,c:n=a}=o,t=n.form;return{[t.main]:!0,[t.size[r]]:(f=t.size)==null?void 0:f[r],[((m=t.size)==null?void 0:m.prefix)||""]:r&&!((l=t.size)!=null&&l[r]),[t.orientation[s]]:($=t.orientation)==null?void 0:$[s]}},formLayout:o=>{const{c:r=a}=o;return{[r.formLayout.main]:!0}},fieldset:o=>{const{c:r=a}=o;return{[r.fieldset.main]:!0}},legend:o=>{const{c:r=a}=o;return{[r.legend.main]:!0}},field:o=>{const{isRtl:r,c:s=a}=o,n=s.field;return{[n.main]:!0,[n.isRtl]:r}},separator:o=>{const{c:r=a}=o;return{[r.separator.main]:!0}}};exports.uForm=u;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { base as o, forms as t, orientationMap as u, sizeMap as m } from "./json-classes.mjs";
|
|
9
|
+
const n = `${o.prefix}-${t.form}`, p = `${o.prefix}-${t.form}-${t.field}`, a = {
|
|
10
|
+
form: {
|
|
11
|
+
main: n,
|
|
12
|
+
size: {
|
|
13
|
+
prefix: `${n}-`,
|
|
14
|
+
small: `${n}-${m.small}`,
|
|
15
|
+
medium: `${n}-${m.medium}`,
|
|
16
|
+
large: `${n}-${m.large}`
|
|
17
|
+
},
|
|
18
|
+
orientation: {
|
|
19
|
+
horizontal: `${n}-${u.horizontal}`,
|
|
20
|
+
vertical: `${n}-${u.vertical}`
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
formLayout: {
|
|
24
|
+
main: `${o.prefix}-${t.form}-layout ${o.prefix}-d-grid`
|
|
25
|
+
},
|
|
26
|
+
fieldset: {
|
|
27
|
+
main: `${o.prefix}-${t.form}-${t.fieldset}`
|
|
28
|
+
},
|
|
29
|
+
legend: {
|
|
30
|
+
main: `${o.prefix}-${t.form}-${t.legend}`
|
|
31
|
+
},
|
|
32
|
+
field: {
|
|
33
|
+
main: p,
|
|
34
|
+
isRtl: `${o.prefix}-${o.rtl}`
|
|
35
|
+
},
|
|
36
|
+
separator: {
|
|
37
|
+
main: `${o.prefix}-${t.form}-${t.separator}`
|
|
38
|
+
}
|
|
39
|
+
}, g = {
|
|
40
|
+
form: (r) => {
|
|
41
|
+
var l, $, c, d;
|
|
42
|
+
const { size: e, orientation: i, c: f = a } = r, s = f.form;
|
|
43
|
+
return {
|
|
44
|
+
[s.main]: !0,
|
|
45
|
+
[s.size[e]]: (l = s.size) == null ? void 0 : l[e],
|
|
46
|
+
[(($ = s.size) == null ? void 0 : $.prefix) || ""]: e && !((c = s.size) != null && c[e]),
|
|
47
|
+
[s.orientation[i]]: (d = s.orientation) == null ? void 0 : d[i]
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
formLayout: (r) => {
|
|
51
|
+
const { c: e = a } = r;
|
|
52
|
+
return {
|
|
53
|
+
[e.formLayout.main]: !0
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
fieldset: (r) => {
|
|
57
|
+
const { c: e = a } = r;
|
|
58
|
+
return {
|
|
59
|
+
[e.fieldset.main]: !0
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
legend: (r) => {
|
|
63
|
+
const { c: e = a } = r;
|
|
64
|
+
return {
|
|
65
|
+
[e.legend.main]: !0
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
field: (r) => {
|
|
69
|
+
const { isRtl: e, c: i = a } = r, f = i.field;
|
|
70
|
+
return {
|
|
71
|
+
[f.main]: !0,
|
|
72
|
+
[f.isRtl]: e
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
separator: (r) => {
|
|
76
|
+
const { c: e = a } = r;
|
|
77
|
+
return {
|
|
78
|
+
[e.separator.main]: !0
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
g as uForm
|
|
84
|
+
};
|
package/unstyled/grid.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),a={wrapper:{main:e.gridPrefix,size:{small:`${e.gridPrefix}-${e.sizeMap.small}`,medium:`${e.gridPrefix}-${e.sizeMap.medium}`},virtual:`${e.gridPrefix}-${e.base.virtual}`},ariaRoot:`${e.gridPrefix}-${e.grid.ariaRoot}`,container:`${e.gridPrefix}-${e.containers.container}`,content:{main:`${e.gridPrefix}-${e.containers.content}`,virtual:`${e.base.prefix}-${e.base.virtual}-${e.containers.content}`},tableWrap:`${e.gridPrefix}-${e.grid.tableWrap}`,table:{main:`${e.base.prefix}-${e.elements.table}`,gridTable:`${e.gridPrefix}-${e.elements.table}`,size:{small:`${e.base.prefix}-${e.elements.table}-${e.sizeMap.small}`,medium:`${e.base.prefix}-${e.elements.table}-${e.sizeMap.medium}`}},tbody:`${e.base.prefix}-${e.elements.table}-${e.elements.tbody}`,thead:{main:`${e.base.prefix}-${e.elements.table}-${e.elements.thead}`,draggable:`${e.gridPrefix}-${e.states.draggable}-${e.elements.header}`},header:{main:`${e.gridPrefix}-${e.elements.header}`,draggable:`${e.gridPrefix}-${e.states.draggable}-${e.elements.header}`},headerWrap:`${e.gridPrefix}-${e.elements.header}-${e.containers.wrap}`,headerTable:{main:`${e.base.prefix}-${e.elements.table}`,header:`${e.gridPrefix}-${e.elements.header}-${e.elements.table}`,size:{small:`${e.base.prefix}-${e.elements.table}-${e.sizeMap.small}`,medium:`${e.base.prefix}-${e.elements.table}-${e.sizeMap.medium}`}},headerTh:{main:`${e.base.prefix}-${e.elements.table}-${e.elements.th}`,header:`${e.base.prefix}-${e.elements.header}`,first:`${e.base.prefix}-${e.states.first}`,filterable:`${e.base.prefix}-${e.states.filterable}`,locked:`${e.gridPrefix}-${e.elements.header}-${e.states.sticky}`,sorted:`${e.base.prefix}-${e.states.sorted}`},tableThead:`${e.base.prefix}-${e.elements.table}-${e.elements.thead}`,heightContainer:`${e.base.prefix}-${e.dimensions.height}-${e.containers.container}`,sortIcon:`${e.base.prefix}-${e.states.sort}-${e.elements.icon}`,sortOrder:`${e.base.prefix}-${e.states.sort}-${e.states.order}`,tr:{main:`${e.base.prefix}-${e.elements.table}-${e.grid.row}`,header:`${e.base.prefix}-${e.elements.table}-${e.grid.group}-${e.grid.row}`,grouping:`${e.base.prefix}-${e.states.grouping}-${e.grid.row}`,footer:`${e.base.prefix}-${e.grid.group}-${e.elements.footer}`,master:`${e.base.prefix}-${e.grid.master}-${e.grid.row}`,rowAlt:`${e.base.prefix}-${e.elements.table}-${e.states.alt}-${e.grid.row}`,selected:`${e.base.prefix}-${e.states.selected}`,highlighted:`${e.base.prefix}-${e.states.highlighted}`,isInEdit:`${e.gridPrefix}-${e.states.edit}-${e.grid.row}`},detailTr:{main:`${e.base.prefix}-${e.elements.table}-${e.grid.row}`,row:`${e.base.prefix}-${e.grid.detail}-${e.grid.row}`,rowAlt:`${e.base.prefix}-${e.elements.table}-${e.states.alt}-${e.grid.row}`},simpleTr:`${e.base.prefix}-${e.elements.table}-${e.grid.row}`,headerCellInner:`${e.base.prefix}-${e.grid.cellInner}`,columnTitle:`${e.base.prefix}-${e.grid.column}-${e.elements.title}`,headerCellLink:{main:`${e.base.prefix}-${e.elements.link}`,notSortable:`${e.base.important}${e.base.prefix}-${e.cursor.default}`},noRecords:`${e.gridPrefix}-${e.grid.noRecords}`,noRecordsTemplate:`${e.gridPrefix}-${e.grid.noRecords}-${e.states.template}`,pager:`${e.gridPrefix}-${e.grid.pager}`,sorted:`${e.base.prefix}-${e.states.sorted}`,contentSticky:`${e.gridPrefix}-${e.containers.content}-${e.states.sticky}`,hierarchyCell:{main:`${e.base.prefix}-${e.grid.hierarchy}-${e.grid.cell}`,header:`${e.base.prefix}-${e.elements.header}`},rowReorder:{dropIndicator:{main:`${e.base.prefix}-${e.gridRowReorder.drop}-${e.gridRowReorder.hint}`,direction:`${e.base.prefix}-${e.gridRowReorder.drop}-${e.gridRowReorder.hint}-${e.gridRowReorder.horizontal}`},dragClue:{main:`${e.base.prefix}-${e.gridRowReorder.drag}-${e.gridRowReorder.clue}`,operation:`${e.base.prefix}-${e.gridRowReorder.reorder}-${e.gridRowReorder.clue}`}},td:{main:`${e.base.prefix}-${e.elements.table}-${e.elements.td}`,selected:`${e.base.prefix}-${e.states.selected}`,highlighted:`${e.base.prefix}-${e.states.highlighted}`},detailTd:{main:`${e.base.prefix}-${e.elements.table}-${e.elements.td}`,cell:`${e.base.prefix}-${e.grid.detail}-${e.grid.cell}`},editTd:{main:`${e.base.prefix}-${e.elements.table}-${e.elements.td}`,cell:`${e.gridPrefix}-${e.states.edit}-${e.grid.cell}`,selected:`${e.base.prefix}-${e.states.selected}`},hierarchyTd:{main:`${e.base.prefix}-${e.elements.table}-${e.elements.td}`,cell:`${e.base.prefix}-${e.grid.hierarchy}-${e.grid.cell}`}},c={wrapper:t=>{var d,n;const{size:r,virtual:i,c:s=a.wrapper}=t;return{[s.main]:!0,[s.size[r]]:(d=s.size)==null?void 0:d[r],[`${e.gridPrefix}-${r}`]:r&&!((n=s.size)!=null&&n[r]),[s.virtual]:i}},ariaRoot:t=>{const{c:r=a}=t;return r.ariaRoot},container:t=>{const{c:r=a}=t;return r.container},content:t=>{const{c:r=a.content}=t;return{[r.main]:!0,[r.virtual]:!0}},tableWrap:t=>{const{c:r=a}=t;return r.tableWrap},table:t=>{var s,d;const{size:r,c:i=a.table}=t;return{[i.main]:!0,[i.gridTable]:!0,[i.size[r]]:(s=i.size)==null?void 0:s[r],[`${e.base.prefix}-${e.elements.table}-${r}`]:!((d=i.size)!=null&&d[r])}},tbody:t=>{const{c:r=a}=t;return r.tbody},thead:t=>{const{draggable:r,c:i=a.thead}=t;return{[i.main]:!0,[i.draggable]:r}},header:t=>{const{draggable:r,c:i=a.header}=t;return{[i.main]:!0,[i.draggable]:r}},headerWrap:t=>{const{c:r=a}=t;return r.headerWrap},headerTable:t=>{const{size:r,c:i=a.headerTable}=t;return{[i.main]:!0,[i.header]:!0,[i.size[r]]:i.size[r],[`${e.base.prefix}-${e.elements.table}-${r}`]:!i.size[r]}},headerTh:t=>{const{first:r,filterable:i,locked:s,sorted:d,c:n=a.headerTh}=t;return{[n.main]:!0,[n.header]:!0,[n.first]:r,[n.filterable]:i,[n.locked]:s,[n.sorted]:d}},tableThead:t=>{const{c:r=a}=t;return r.tableThead},heightContainer:t=>{const{c:r=a}=t;return r.heightContainer},sortIcon:t=>{const{c:r=a}=t;return r.sortIcon},sortOrder:t=>{const{c:r=a}=t;return r.sortOrder},tr:t=>{const{isHeader:r,isFooter:i,isMaster:s,isAltRow:d,selected:n,highlighted:o,isInEdit:$,c:l=a.tr}=t;return{[l.main]:!0,[l.header]:r,[l.grouping]:r,[l.footer]:i,[l.master]:s,[l.rowAlt]:s&&d,[l.selected]:n,[l.highlighted]:o,[l.isInEdit]:$}},detailTr:t=>{const{isAlt:r,c:i=a.detailTr}=t;return{[i.main]:!0,[i.row]:!0,[i.rowAlt]:r}},simpleTr:t=>{const{c:r=a}=t;return r.simpleTr},rowReorder:t=>{const{dropIndicatorMain:r,dropIndicatorDirection:i,dragClueMain:s,dragClueOperation:d,c:n=a.rowReorder}=t;return{[n.dropIndicator.main]:r,[n.dropIndicator.direction]:i,[n.dragClue.main]:s,[n.dragClue.operation]:d}},headerCellInner:t=>{const{c:r=a}=t;return r.headerCellInner},columnTitle:t=>{const{c:r=a}=t;return r.columnTitle},headerCellLink:t=>{const{sortable:r,c:i=a.headerCellLink}=t;return{[i.main]:!0,[i.notSortable]:!r}},noRecords:t=>{const{c:r=a}=t;return r.noRecords},noRecordsTemplate:t=>{const{c:r=a}=t;return r.noRecordsTemplate},pager:t=>{const{c:r=a}=t;return r.pager},sorted:t=>{const{c:r=a}=t;return r.sorted},contentSticky:t=>{const{locked:r,c:i=a}=t;return{[i.contentSticky]:r}},hierarchyCell:t=>{const{c:r=a.hierarchyCell}=t;return{[r.main]:!0,[r.header]:!0}},td:t=>{const{selected:r,highlighted:i,c:s=a.td}=t;return{[s.main]:!0,[s.selected]:r,[s.highlighted]:i}},detailTd:t=>{const{c:r=a.detailTd}=t;return{[r.main]:!0,[r.cell]:!0}},editTd:t=>{const{selected:r,c:i=a.editTd}=t;return{[i.main]:!0,[i.cell]:!0,[i.selected]:r}},hierarchyTd:t=>{const{c:r=a.hierarchyTd}=t;return{[r.main]:!0,[r.cell]:!0}}};exports.uGrid=c;
|