@progress/kendo-vue-common 8.1.0-develop.1 → 8.1.0-develop.3
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/package.json +1 -1
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +128 -111
- package/validate-package.d.ts +11 -1
- package/validate-package.js +2 -2
- package/validate-package.mjs +14 -17
- package/watermark/WatermarkOverlay.d.ts +16 -31
- package/watermark/WatermarkOverlay.js +1 -1
- package/watermark/WatermarkOverlay.mjs +340 -86
package/unstyled/grid.mjs
CHANGED
|
@@ -5,26 +5,27 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { base as t,
|
|
9
|
-
const
|
|
8
|
+
import { base as t, states as l, gridPrefix as $, containers as u, grid as o, elements as i, gridRowReorder as h, cursor as g, dimensions as x, sizeMap as m } from "./json-classes.mjs";
|
|
9
|
+
const n = {
|
|
10
10
|
wrapper: {
|
|
11
|
-
main:
|
|
11
|
+
main: $,
|
|
12
12
|
size: {
|
|
13
|
-
small: `${
|
|
14
|
-
medium: `${
|
|
13
|
+
small: `${$}-${m.small}`,
|
|
14
|
+
medium: `${$}-${m.medium}`
|
|
15
15
|
},
|
|
16
|
-
virtual: `${
|
|
16
|
+
virtual: `${$}-${t.virtual}`,
|
|
17
|
+
stacked: `${$}-stack`
|
|
17
18
|
},
|
|
18
|
-
ariaRoot: `${
|
|
19
|
-
container: `${
|
|
19
|
+
ariaRoot: `${$}-${o.ariaRoot}`,
|
|
20
|
+
container: `${$}-${u.container}`,
|
|
20
21
|
content: {
|
|
21
|
-
main: `${
|
|
22
|
+
main: `${$}-${u.content}`,
|
|
22
23
|
virtual: `${t.prefix}-${t.virtual}-${u.content}`
|
|
23
24
|
},
|
|
24
|
-
tableWrap: `${
|
|
25
|
+
tableWrap: `${$}-${o.tableWrap}`,
|
|
25
26
|
table: {
|
|
26
27
|
main: `${t.prefix}-${i.table}`,
|
|
27
|
-
gridTable: `${
|
|
28
|
+
gridTable: `${$}-${i.table}`,
|
|
28
29
|
size: {
|
|
29
30
|
small: `${t.prefix}-${i.table}-${m.small}`,
|
|
30
31
|
medium: `${t.prefix}-${i.table}-${m.medium}`
|
|
@@ -32,17 +33,17 @@ const $ = {
|
|
|
32
33
|
},
|
|
33
34
|
tbody: `${t.prefix}-${i.table}-${i.tbody}`,
|
|
34
35
|
thead: {
|
|
35
|
-
main: `${
|
|
36
|
-
draggable: `${
|
|
36
|
+
main: `${$}-${i.table}-${i.thead}`,
|
|
37
|
+
draggable: `${$}-${l.draggable}-${i.header}`
|
|
37
38
|
},
|
|
38
39
|
header: {
|
|
39
|
-
main: `${
|
|
40
|
-
draggable: `${
|
|
40
|
+
main: `${$}-${i.header}`,
|
|
41
|
+
draggable: `${$}-${l.draggable}-${i.header}`
|
|
41
42
|
},
|
|
42
|
-
headerWrap: `${
|
|
43
|
+
headerWrap: `${$}-${i.header}-${u.wrap}`,
|
|
43
44
|
headerTable: {
|
|
44
45
|
main: `${t.prefix}-${i.table}`,
|
|
45
|
-
header: `${
|
|
46
|
+
header: `${$}-${i.header}-${i.table}`,
|
|
46
47
|
size: {
|
|
47
48
|
small: `${t.prefix}-${i.table}-${m.small}`,
|
|
48
49
|
medium: `${t.prefix}-${i.table}-${m.medium}`
|
|
@@ -53,7 +54,7 @@ const $ = {
|
|
|
53
54
|
header: `${t.prefix}-${i.header}`,
|
|
54
55
|
first: `${t.prefix}-${l.first}`,
|
|
55
56
|
filterable: `${t.prefix}-${l.filterable}`,
|
|
56
|
-
locked: `${
|
|
57
|
+
locked: `${$}-${i.header}-${l.sticky}`,
|
|
57
58
|
sorted: `${t.prefix}-${l.sorted}`
|
|
58
59
|
},
|
|
59
60
|
tableThead: `${t.prefix}-${i.table}-${i.thead}`,
|
|
@@ -61,45 +62,45 @@ const $ = {
|
|
|
61
62
|
sortIcon: `${t.prefix}-${l.sort}-${i.icon}`,
|
|
62
63
|
sortOrder: `${t.prefix}-${l.sort}-${l.order}`,
|
|
63
64
|
tr: {
|
|
64
|
-
main: `${t.prefix}-${i.table}-${
|
|
65
|
-
header: `${t.prefix}-${i.table}-${
|
|
66
|
-
grouping: `${t.prefix}-${l.grouping}-${
|
|
67
|
-
footer: `${t.prefix}-${
|
|
68
|
-
master: `${t.prefix}-${
|
|
69
|
-
rowAlt: `${t.prefix}-${i.table}-${l.alt}-${
|
|
65
|
+
main: `${t.prefix}-${i.table}-${o.row}`,
|
|
66
|
+
header: `${t.prefix}-${i.table}-${o.group}-${o.row}`,
|
|
67
|
+
grouping: `${t.prefix}-${l.grouping}-${o.row}`,
|
|
68
|
+
footer: `${t.prefix}-${o.group}-${i.footer}`,
|
|
69
|
+
master: `${t.prefix}-${o.master}-${o.row}`,
|
|
70
|
+
rowAlt: `${t.prefix}-${i.table}-${l.alt}-${o.row}`,
|
|
70
71
|
selected: `${t.prefix}-${l.selected}`,
|
|
71
72
|
highlighted: `${t.prefix}-${l.highlighted}`,
|
|
72
|
-
isInEdit: `${
|
|
73
|
+
isInEdit: `${$}-${l.edit}-${o.row}`
|
|
73
74
|
},
|
|
74
75
|
detailTr: {
|
|
75
|
-
main: `${t.prefix}-${i.table}-${
|
|
76
|
-
row: `${t.prefix}-${
|
|
77
|
-
rowAlt: `${t.prefix}-${i.table}-${l.alt}-${
|
|
76
|
+
main: `${t.prefix}-${i.table}-${o.row}`,
|
|
77
|
+
row: `${t.prefix}-${o.detail}-${o.row}`,
|
|
78
|
+
rowAlt: `${t.prefix}-${i.table}-${l.alt}-${o.row}`
|
|
78
79
|
},
|
|
79
|
-
simpleTr: `${t.prefix}-${i.table}-${
|
|
80
|
-
headerCellInner: `${t.prefix}-${
|
|
81
|
-
columnTitle: `${t.prefix}-${
|
|
80
|
+
simpleTr: `${t.prefix}-${i.table}-${o.row}`,
|
|
81
|
+
headerCellInner: `${t.prefix}-${o.cellInner}`,
|
|
82
|
+
columnTitle: `${t.prefix}-${o.column}-${i.title}`,
|
|
82
83
|
headerCellLink: {
|
|
83
84
|
main: `${t.prefix}-${i.link}`,
|
|
84
|
-
notSortable: `${t.important}${t.prefix}-${
|
|
85
|
+
notSortable: `${t.important}${t.prefix}-${g.default}`
|
|
85
86
|
},
|
|
86
|
-
noRecords: `${
|
|
87
|
-
noRecordsTemplate: `${
|
|
88
|
-
pager: `${
|
|
87
|
+
noRecords: `${$}-${o.noRecords}`,
|
|
88
|
+
noRecordsTemplate: `${$}-${o.noRecords}-${l.template}`,
|
|
89
|
+
pager: `${$}-${o.pager}`,
|
|
89
90
|
sorted: `${t.prefix}-${l.sorted}`,
|
|
90
|
-
contentSticky: `${
|
|
91
|
+
contentSticky: `${$}-${u.content}-${l.sticky}`,
|
|
91
92
|
hierarchyCell: {
|
|
92
|
-
main: `${t.prefix}-${
|
|
93
|
+
main: `${t.prefix}-${o.hierarchy}-${o.cell}`,
|
|
93
94
|
header: `${t.prefix}-${i.header}`
|
|
94
95
|
},
|
|
95
96
|
rowReorder: {
|
|
96
97
|
dropIndicator: {
|
|
97
|
-
main: `${t.prefix}-${
|
|
98
|
-
direction: `${t.prefix}-${
|
|
98
|
+
main: `${t.prefix}-${h.drop}-${h.hint}`,
|
|
99
|
+
direction: `${t.prefix}-${h.drop}-${h.hint}-${h.horizontal}`
|
|
99
100
|
},
|
|
100
101
|
dragClue: {
|
|
101
|
-
main: `${t.prefix}-${
|
|
102
|
-
operation: `${t.prefix}-${
|
|
102
|
+
main: `${t.prefix}-${h.drag}-${h.clue}`,
|
|
103
|
+
operation: `${t.prefix}-${h.reorder}-${h.clue}`
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
td: {
|
|
@@ -109,131 +110,136 @@ const $ = {
|
|
|
109
110
|
},
|
|
110
111
|
detailTd: {
|
|
111
112
|
main: `${t.prefix}-${i.table}-${i.td}`,
|
|
112
|
-
cell: `${t.prefix}-${
|
|
113
|
+
cell: `${t.prefix}-${o.detail}-${o.cell}`
|
|
113
114
|
},
|
|
114
115
|
editTd: {
|
|
115
116
|
main: `${t.prefix}-${i.table}-${i.td}`,
|
|
116
|
-
cell: `${
|
|
117
|
+
cell: `${$}-${l.edit}-${o.cell}`,
|
|
117
118
|
selected: `${t.prefix}-${l.selected}`
|
|
118
119
|
},
|
|
119
120
|
hierarchyTd: {
|
|
120
121
|
main: `${t.prefix}-${i.table}-${i.td}`,
|
|
121
|
-
cell: `${t.prefix}-${
|
|
122
|
-
}
|
|
122
|
+
cell: `${t.prefix}-${o.hierarchy}-${o.cell}`
|
|
123
|
+
},
|
|
124
|
+
stickyContainer: {
|
|
125
|
+
main: `${$}-${l.sticky}-${u.container}`,
|
|
126
|
+
bottom: `${t.prefix}-pos-${l.bottom}`
|
|
127
|
+
},
|
|
128
|
+
srOnly: `${t.prefix}-sr-only`
|
|
123
129
|
}, w = {
|
|
124
130
|
wrapper: (r) => {
|
|
125
|
-
|
|
126
|
-
const { size: e, virtual: a, c: d = $.wrapper } = r;
|
|
131
|
+
const { size: e, virtual: a, isStackedMode: c, c: s = n.wrapper } = r;
|
|
127
132
|
return {
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[`${
|
|
131
|
-
[
|
|
133
|
+
[s.main]: !0,
|
|
134
|
+
[s.size[e]]: s.size[e],
|
|
135
|
+
[`${$}-${e}`]: e && !s.size[e],
|
|
136
|
+
[s.virtual]: a,
|
|
137
|
+
[s.stacked]: c
|
|
132
138
|
};
|
|
133
139
|
},
|
|
134
140
|
ariaRoot: (r) => {
|
|
135
|
-
const { c: e =
|
|
141
|
+
const { c: e = n } = r;
|
|
136
142
|
return e.ariaRoot;
|
|
137
143
|
},
|
|
138
144
|
container: (r) => {
|
|
139
|
-
const { c: e =
|
|
145
|
+
const { c: e = n } = r;
|
|
140
146
|
return e.container;
|
|
141
147
|
},
|
|
142
148
|
content: (r) => {
|
|
143
|
-
const { c: e =
|
|
149
|
+
const { c: e = n.content } = r;
|
|
144
150
|
return {
|
|
145
151
|
[e.main]: !0,
|
|
146
152
|
[e.virtual]: !0
|
|
147
153
|
};
|
|
148
154
|
},
|
|
149
155
|
tableWrap: (r) => {
|
|
150
|
-
const { c: e =
|
|
156
|
+
const { c: e = n } = r;
|
|
151
157
|
return e.tableWrap;
|
|
152
158
|
},
|
|
153
159
|
table: (r) => {
|
|
154
|
-
var
|
|
155
|
-
const { size: e, c: a =
|
|
160
|
+
var c, s, d;
|
|
161
|
+
const { size: e, c: a = n.table } = r;
|
|
156
162
|
return {
|
|
157
163
|
[a.main]: !0,
|
|
158
164
|
[a.gridTable]: !0,
|
|
159
|
-
[a.size[e]]: (
|
|
160
|
-
[`${t.prefix}-${i.table}-${e}`]: !((
|
|
165
|
+
[(c = a.size) == null ? void 0 : c[e]]: e !== void 0 && ((s = a.size) == null ? void 0 : s[e]),
|
|
166
|
+
[`${t.prefix}-${i.table}-${e}`]: e !== void 0 && !((d = a.size) != null && d[e])
|
|
161
167
|
};
|
|
162
168
|
},
|
|
163
169
|
tbody: (r) => {
|
|
164
|
-
const { c: e =
|
|
170
|
+
const { c: e = n } = r;
|
|
165
171
|
return e.tbody;
|
|
166
172
|
},
|
|
167
173
|
thead: (r) => {
|
|
168
|
-
const { draggable: e, c: a =
|
|
174
|
+
const { draggable: e, c: a = n.thead } = r;
|
|
169
175
|
return {
|
|
170
176
|
[a.main]: !0,
|
|
171
177
|
[a.draggable]: e
|
|
172
178
|
};
|
|
173
179
|
},
|
|
174
180
|
header: (r) => {
|
|
175
|
-
const { draggable: e, c: a =
|
|
181
|
+
const { draggable: e, c: a = n.header } = r;
|
|
176
182
|
return {
|
|
177
183
|
[a.main]: !0,
|
|
178
184
|
[a.draggable]: e
|
|
179
185
|
};
|
|
180
186
|
},
|
|
181
187
|
headerWrap: (r) => {
|
|
182
|
-
const { c: e =
|
|
188
|
+
const { c: e = n } = r;
|
|
183
189
|
return e.headerWrap;
|
|
184
190
|
},
|
|
185
191
|
headerTable: (r) => {
|
|
186
|
-
const { size: e, c: a =
|
|
192
|
+
const { size: e, c: a = n.headerTable } = r;
|
|
187
193
|
return {
|
|
188
194
|
[a.main]: !0,
|
|
189
195
|
[a.header]: !0,
|
|
190
|
-
[a.size[e]]: a.size[e],
|
|
191
|
-
[`${t.prefix}-${i.table}-${e}`]: !a.size[e]
|
|
196
|
+
[a.size[e]]: e !== void 0 && a.size[e],
|
|
197
|
+
[`${t.prefix}-${i.table}-${e}`]: e !== void 0 && !a.size[e]
|
|
192
198
|
};
|
|
193
199
|
},
|
|
194
200
|
headerTh: (r) => {
|
|
195
|
-
const { first: e, filterable: a, locked:
|
|
201
|
+
const { first: e, filterable: a, locked: c, sorted: s, c: d = n.headerTh } = r;
|
|
196
202
|
return {
|
|
197
|
-
[
|
|
198
|
-
[
|
|
199
|
-
[
|
|
200
|
-
[
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
+
[d.main]: !0,
|
|
204
|
+
[d.header]: !0,
|
|
205
|
+
[d.first]: e,
|
|
206
|
+
[d.filterable]: a,
|
|
207
|
+
[d.locked]: c,
|
|
208
|
+
[d.sorted]: s
|
|
203
209
|
};
|
|
204
210
|
},
|
|
205
211
|
tableThead: (r) => {
|
|
206
|
-
const { c: e =
|
|
212
|
+
const { c: e = n } = r;
|
|
207
213
|
return e.tableThead;
|
|
208
214
|
},
|
|
209
215
|
heightContainer: (r) => {
|
|
210
|
-
const { c: e =
|
|
216
|
+
const { c: e = n } = r;
|
|
211
217
|
return e.heightContainer;
|
|
212
218
|
},
|
|
213
219
|
sortIcon: (r) => {
|
|
214
|
-
const { c: e =
|
|
220
|
+
const { c: e = n } = r;
|
|
215
221
|
return e.sortIcon;
|
|
216
222
|
},
|
|
217
223
|
sortOrder: (r) => {
|
|
218
|
-
const { c: e =
|
|
224
|
+
const { c: e = n } = r;
|
|
219
225
|
return e.sortOrder;
|
|
220
226
|
},
|
|
221
227
|
tr: (r) => {
|
|
222
|
-
const { isHeader: e, isFooter: a, isMaster:
|
|
228
|
+
const { isHeader: e, isFooter: a, isMaster: c, isAltRow: s, selected: d, highlighted: f, isInEdit: b, c: p = n.tr } = r;
|
|
223
229
|
return {
|
|
224
|
-
[
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
230
|
-
[
|
|
231
|
-
[
|
|
232
|
-
[
|
|
230
|
+
[p.main]: !0,
|
|
231
|
+
[p.header]: e,
|
|
232
|
+
[p.grouping]: e,
|
|
233
|
+
[p.footer]: a,
|
|
234
|
+
[p.master]: c,
|
|
235
|
+
[p.rowAlt]: c && s,
|
|
236
|
+
[p.selected]: d,
|
|
237
|
+
[p.highlighted]: f,
|
|
238
|
+
[p.isInEdit]: b
|
|
233
239
|
};
|
|
234
240
|
},
|
|
235
241
|
detailTr: (r) => {
|
|
236
|
-
const { isAlt: e, c: a =
|
|
242
|
+
const { isAlt: e, c: a = n.detailTr } = r;
|
|
237
243
|
return {
|
|
238
244
|
[a.main]: !0,
|
|
239
245
|
[a.row]: !0,
|
|
@@ -241,85 +247,85 @@ const $ = {
|
|
|
241
247
|
};
|
|
242
248
|
},
|
|
243
249
|
simpleTr: (r) => {
|
|
244
|
-
const { c: e =
|
|
250
|
+
const { c: e = n } = r;
|
|
245
251
|
return e.simpleTr;
|
|
246
252
|
},
|
|
247
253
|
rowReorder: (r) => {
|
|
248
254
|
const {
|
|
249
255
|
dropIndicatorMain: e,
|
|
250
256
|
dropIndicatorDirection: a,
|
|
251
|
-
dragClueMain:
|
|
257
|
+
dragClueMain: c,
|
|
252
258
|
dragClueOperation: s,
|
|
253
|
-
c =
|
|
259
|
+
c: d = n.rowReorder
|
|
254
260
|
} = r;
|
|
255
261
|
return {
|
|
256
|
-
[
|
|
257
|
-
[
|
|
258
|
-
[
|
|
259
|
-
[
|
|
262
|
+
[d.dropIndicator.main]: e,
|
|
263
|
+
[d.dropIndicator.direction]: a,
|
|
264
|
+
[d.dragClue.main]: c,
|
|
265
|
+
[d.dragClue.operation]: s
|
|
260
266
|
};
|
|
261
267
|
},
|
|
262
268
|
headerCellInner: (r) => {
|
|
263
|
-
const { c: e =
|
|
269
|
+
const { c: e = n } = r;
|
|
264
270
|
return e.headerCellInner;
|
|
265
271
|
},
|
|
266
272
|
columnTitle: (r) => {
|
|
267
|
-
const { c: e =
|
|
273
|
+
const { c: e = n } = r;
|
|
268
274
|
return e.columnTitle;
|
|
269
275
|
},
|
|
270
276
|
headerCellLink: (r) => {
|
|
271
|
-
const { sortable: e, c: a =
|
|
277
|
+
const { sortable: e, c: a = n.headerCellLink } = r;
|
|
272
278
|
return {
|
|
273
279
|
[a.main]: !0,
|
|
274
280
|
[a.notSortable]: !e
|
|
275
281
|
};
|
|
276
282
|
},
|
|
277
283
|
noRecords: (r) => {
|
|
278
|
-
const { c: e =
|
|
284
|
+
const { c: e = n } = r;
|
|
279
285
|
return e.noRecords;
|
|
280
286
|
},
|
|
281
287
|
noRecordsTemplate: (r) => {
|
|
282
|
-
const { c: e =
|
|
288
|
+
const { c: e = n } = r;
|
|
283
289
|
return e.noRecordsTemplate;
|
|
284
290
|
},
|
|
285
291
|
pager: (r) => {
|
|
286
|
-
const { c: e =
|
|
292
|
+
const { c: e = n } = r;
|
|
287
293
|
return e.pager;
|
|
288
294
|
},
|
|
289
295
|
sorted: (r) => {
|
|
290
|
-
const { c: e =
|
|
296
|
+
const { c: e = n } = r;
|
|
291
297
|
return e.sorted;
|
|
292
298
|
},
|
|
293
299
|
contentSticky: (r) => {
|
|
294
|
-
const { locked: e, c: a =
|
|
300
|
+
const { locked: e, c: a = n } = r;
|
|
295
301
|
return {
|
|
296
302
|
[a.contentSticky]: e
|
|
297
303
|
};
|
|
298
304
|
},
|
|
299
305
|
hierarchyCell: (r) => {
|
|
300
|
-
const { c: e =
|
|
306
|
+
const { c: e = n.hierarchyCell } = r;
|
|
301
307
|
return {
|
|
302
308
|
[e.main]: !0,
|
|
303
309
|
[e.header]: !0
|
|
304
310
|
};
|
|
305
311
|
},
|
|
306
312
|
td: (r) => {
|
|
307
|
-
const { selected: e, highlighted: a, c
|
|
313
|
+
const { selected: e, highlighted: a, c = n.td } = r;
|
|
308
314
|
return {
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
[
|
|
315
|
+
[c.main]: !0,
|
|
316
|
+
[c.selected]: e,
|
|
317
|
+
[c.highlighted]: a
|
|
312
318
|
};
|
|
313
319
|
},
|
|
314
320
|
detailTd: (r) => {
|
|
315
|
-
const { c: e =
|
|
321
|
+
const { c: e = n.detailTd } = r;
|
|
316
322
|
return {
|
|
317
323
|
[e.main]: !0,
|
|
318
324
|
[e.cell]: !0
|
|
319
325
|
};
|
|
320
326
|
},
|
|
321
327
|
editTd: (r) => {
|
|
322
|
-
const { selected: e, c: a =
|
|
328
|
+
const { selected: e, c: a = n.editTd } = r;
|
|
323
329
|
return {
|
|
324
330
|
[a.main]: !0,
|
|
325
331
|
[a.cell]: !0,
|
|
@@ -327,11 +333,22 @@ const $ = {
|
|
|
327
333
|
};
|
|
328
334
|
},
|
|
329
335
|
hierarchyTd: (r) => {
|
|
330
|
-
const { c: e =
|
|
336
|
+
const { c: e = n.hierarchyTd } = r;
|
|
331
337
|
return {
|
|
332
338
|
[e.main]: !0,
|
|
333
339
|
[e.cell]: !0
|
|
334
340
|
};
|
|
341
|
+
},
|
|
342
|
+
stickyContainer: (r) => {
|
|
343
|
+
const { bottom: e, c: a = n.stickyContainer } = r;
|
|
344
|
+
return {
|
|
345
|
+
[a.main]: !0,
|
|
346
|
+
[a.bottom]: e
|
|
347
|
+
};
|
|
348
|
+
},
|
|
349
|
+
srOnly: (r) => {
|
|
350
|
+
const { c: e = n } = r;
|
|
351
|
+
return e.srOnly;
|
|
335
352
|
}
|
|
336
353
|
};
|
|
337
354
|
export {
|
package/validate-package.d.ts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface LicenseMessage {
|
|
12
|
+
code?: string;
|
|
13
|
+
licenseType?: string;
|
|
14
|
+
version?: string;
|
|
15
|
+
productName?: string;
|
|
16
|
+
expiration?: string;
|
|
17
|
+
}
|
|
8
18
|
/**
|
|
9
19
|
* @hidden
|
|
10
20
|
*/
|
|
@@ -18,4 +28,4 @@ export declare function shouldShowValidationUI(packageMetadata: any): boolean;
|
|
|
18
28
|
*
|
|
19
29
|
* Returns the notification message to display, if any.
|
|
20
30
|
*/
|
|
21
|
-
export declare const getLicenseMessage: (e: any) =>
|
|
31
|
+
export declare const getLicenseMessage: (e: any) => LicenseMessage | undefined;
|
package/validate-package.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-licensing");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-licensing");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=l(c),r=["telerik.com","progress.com","stackblitz.io","csb.app","webcontainer.io"],s=i,o=typeof s!="undefined"&&s.validatePackage?s:s.default;function g(e){if(o&&o.validatePackage)o.validatePackage(e);else{let t=`License activation failed for ${e.name}
|
|
9
9
|
`;t+=`The @progress/kendo-licensing script is not loaded.
|
|
10
10
|
`,t+=`See ${e.licensingDocsUrl} for more information.
|
|
11
|
-
`,console.warn(t)}}function
|
|
11
|
+
`,console.warn(t)}}function d(e){return!r.some(n=>{var a;return(a=globalThis.document)==null?void 0:a.location.hostname.endsWith(n)})&&!(o&&o.validatePackage&&o.validatePackage(e))}const u=e=>i.getLicenseStatus(e).message;exports.getLicenseMessage=u;exports.shouldShowValidationUI=d;exports.validatePackage=g;
|
package/validate-package.mjs
CHANGED
|
@@ -6,30 +6,27 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "@progress/kendo-licensing";
|
|
9
|
-
const c = ["telerik.com", "progress.com", "stackblitz.io", "csb.app", "webcontainer.io"],
|
|
10
|
-
function l(
|
|
11
|
-
if (
|
|
12
|
-
|
|
9
|
+
const c = ["telerik.com", "progress.com", "stackblitz.io", "csb.app", "webcontainer.io"], i = a, s = typeof i != "undefined" && i.validatePackage ? i : i.default;
|
|
10
|
+
function l(e) {
|
|
11
|
+
if (s && s.validatePackage)
|
|
12
|
+
s.validatePackage(e);
|
|
13
13
|
else {
|
|
14
|
-
let
|
|
14
|
+
let o = `License activation failed for ${e.name}
|
|
15
15
|
`;
|
|
16
|
-
|
|
17
|
-
`,
|
|
18
|
-
`, console.warn(
|
|
16
|
+
o += `The @progress/kendo-licensing script is not loaded.
|
|
17
|
+
`, o += `See ${e.licensingDocsUrl} for more information.
|
|
18
|
+
`, console.warn(o);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
function r(
|
|
21
|
+
function r(e) {
|
|
22
22
|
return !c.some((t) => {
|
|
23
|
-
var
|
|
24
|
-
return (
|
|
25
|
-
}) && !(
|
|
23
|
+
var n;
|
|
24
|
+
return (n = globalThis.document) == null ? void 0 : n.location.hostname.endsWith(t);
|
|
25
|
+
}) && !(s && s.validatePackage && s.validatePackage(e));
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
const e = a.getLicenseStatus(o).message;
|
|
29
|
-
return e == null ? void 0 : e.notificationMessage;
|
|
30
|
-
};
|
|
27
|
+
const g = (e) => a.getLicenseStatus(e).message;
|
|
31
28
|
export {
|
|
32
|
-
|
|
29
|
+
g as getLicenseMessage,
|
|
33
30
|
r as shouldShowValidationUI,
|
|
34
31
|
l as validatePackage
|
|
35
32
|
};
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
import { LicenseMessage } from '../validate-package';
|
|
8
10
|
/**
|
|
9
11
|
* @hidden
|
|
10
12
|
*/
|
|
11
13
|
declare const WatermarkOverlay: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
14
|
message: {
|
|
13
|
-
type:
|
|
15
|
+
type: PropType<LicenseMessage>;
|
|
14
16
|
default: any;
|
|
15
17
|
};
|
|
16
18
|
}>, {}, {
|
|
@@ -27,43 +29,26 @@ declare const WatermarkOverlay: import('vue').DefineComponent<import('vue').Extr
|
|
|
27
29
|
'pointer-events': string;
|
|
28
30
|
'background-image': string;
|
|
29
31
|
};
|
|
30
|
-
bannerStyles: {
|
|
31
|
-
display: string;
|
|
32
|
-
justifyContent: string;
|
|
33
|
-
alignItems: string;
|
|
34
|
-
position: string;
|
|
35
|
-
top: string;
|
|
36
|
-
right: string;
|
|
37
|
-
padding: string;
|
|
38
|
-
'border-radius': string;
|
|
39
|
-
'box-shadow': string;
|
|
40
|
-
'font-size': string;
|
|
41
|
-
'font-weight': number;
|
|
42
|
-
'line-height': string;
|
|
43
|
-
'background-color': string;
|
|
44
|
-
color: string;
|
|
45
|
-
'z-index': number;
|
|
46
|
-
};
|
|
47
|
-
bannerButtonStyles: {
|
|
48
|
-
display: string;
|
|
49
|
-
position: string;
|
|
50
|
-
border: string;
|
|
51
|
-
'border-radius': string;
|
|
52
|
-
padding: string;
|
|
53
|
-
'background-color': string;
|
|
54
|
-
transition: string;
|
|
55
|
-
outline: string;
|
|
56
|
-
cursor: string;
|
|
57
|
-
};
|
|
58
32
|
showBanner: boolean;
|
|
33
|
+
bannerMounted: boolean;
|
|
34
|
+
isClient: boolean;
|
|
35
|
+
isCTAButtonHovered: boolean;
|
|
36
|
+
isCloseButtonHovered: boolean;
|
|
37
|
+
isMobile: boolean;
|
|
38
|
+
isDesktop: boolean;
|
|
59
39
|
}, {}, {
|
|
40
|
+
updateViewport(): void;
|
|
60
41
|
onCloseBannerClick(): void;
|
|
42
|
+
setCTAButtonHovered(value: boolean): void;
|
|
43
|
+
setCloseButtonHovered(value: boolean): void;
|
|
44
|
+
renderCloseButton(isMobileButton: boolean): import("vue/jsx-runtime").JSX.Element;
|
|
45
|
+
renderBannerElement(): import("vue/jsx-runtime").JSX.Element;
|
|
61
46
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
47
|
message: {
|
|
63
|
-
type:
|
|
48
|
+
type: PropType<LicenseMessage>;
|
|
64
49
|
default: any;
|
|
65
50
|
};
|
|
66
51
|
}>> & Readonly<{}>, {
|
|
67
|
-
message:
|
|
52
|
+
message: LicenseMessage;
|
|
68
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
69
54
|
export { WatermarkOverlay };
|