@progress/kendo-react-common 11.4.0 → 12.0.0-develop.10

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/unstyled/grid.mjs CHANGED
@@ -5,78 +5,76 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { gridPrefix as o, sizeMap as u, base as t, grid as n, containers as m, elements as i, states as l, dimensions as b, cursor as x, gridRowReorder as h } from "./json-classes.mjs";
8
+ import { gridPrefix as l, sizeMap as p, base as t, grid as n, containers as u, elements as i, states as o, dimensions as b, cursor as x, gridRowReorder as h } from "./json-classes.mjs";
9
9
  const $ = {
10
10
  wrapper: {
11
- main: o,
11
+ main: l,
12
12
  size: {
13
- small: `${o}-${u.small}`,
14
- medium: `${o}-${u.medium}`
13
+ small: `${l}-${p.small}`,
14
+ medium: `${l}-${p.medium}`
15
15
  },
16
- virtual: `${o}-${t.virtual}`
16
+ virtual: `${l}-${t.virtual}`
17
17
  },
18
- ariaRoot: `${o}-${n.ariaRoot}`,
19
- container: `${o}-${m.container}`,
18
+ ariaRoot: `${l}-${n.ariaRoot}`,
19
+ container: `${l}-${u.container}`,
20
20
  content: {
21
- main: `${o}-${m.content}`,
22
- virtual: `${t.prefix}-${t.virtual}-${m.content}`
21
+ main: `${l}-${u.content}`,
22
+ virtual: `${t.prefix}-${t.virtual}-${u.content}`
23
23
  },
24
- tableWrap: `${o}-${n.tableWrap}`,
24
+ tableWrap: `${l}-${n.tableWrap}`,
25
25
  table: {
26
26
  main: `${t.prefix}-${i.table}`,
27
- gridTable: `${o}-${i.table}`,
27
+ gridTable: `${l}-${i.table}`,
28
28
  size: {
29
- small: `${t.prefix}-${i.table}-${u.small}`,
30
- medium: `${t.prefix}-${i.table}-${u.medium}`
29
+ small: `${t.prefix}-${i.table}-${p.small}`,
30
+ medium: `${t.prefix}-${i.table}-${p.medium}`
31
31
  }
32
32
  },
33
33
  tbody: `${t.prefix}-${i.table}-${i.tbody}`,
34
34
  thead: {
35
- main: `${o}-${i.table}-${i.thead}`,
36
- draggable: `${o}-${l.draggable}-${i.header}`
35
+ main: `${l}-${i.table}-${i.thead}`,
36
+ draggable: `${l}-${o.draggable}-${i.header}`
37
37
  },
38
38
  header: {
39
- main: `${o}-${i.header}`,
40
- draggable: `${o}-${l.draggable}-${i.header}`
39
+ main: `${l}-${i.header}`,
40
+ draggable: `${l}-${o.draggable}-${i.header}`
41
41
  },
42
- headerWrap: `${o}-${i.header}-${m.wrap}`,
42
+ headerWrap: `${l}-${i.header}-${u.wrap}`,
43
43
  headerTable: {
44
44
  main: `${t.prefix}-${i.table}`,
45
- header: `${o}-${i.header}-${i.table}`,
45
+ header: `${l}-${i.header}-${i.table}`,
46
46
  size: {
47
- small: `${t.prefix}-${i.table}-${u.small}`,
48
- medium: `${t.prefix}-${i.table}-${u.medium}`
47
+ small: `${t.prefix}-${i.table}-${p.small}`,
48
+ medium: `${t.prefix}-${i.table}-${p.medium}`
49
49
  }
50
50
  },
51
51
  headerTh: {
52
52
  main: `${t.prefix}-${i.table}-${i.th}`,
53
53
  header: `${t.prefix}-${i.header}`,
54
- first: `${t.prefix}-${l.first}`,
55
- filterable: `${t.prefix}-${l.filterable}`,
56
- locked: `${o}-${i.header}-${l.sticky}`,
57
- sorted: `${t.prefix}-${l.sorted}`
54
+ first: `${t.prefix}-${o.first}`,
55
+ filterable: `${t.prefix}-${o.filterable}`,
56
+ locked: `${l}-${i.header}-${o.sticky}`,
57
+ sorted: `${t.prefix}-${o.sorted}`
58
58
  },
59
59
  tableThead: `${t.prefix}-${i.table}-${i.thead}`,
60
- heightContainer: `${t.prefix}-${b.height}-${m.container}`,
61
- sortIcon: `${t.prefix}-${l.sort}-${i.icon}`,
62
- sortOrder: `${t.prefix}-${l.sort}-${l.order}`,
60
+ heightContainer: `${t.prefix}-${b.height}-${u.container}`,
61
+ sortIcon: `${t.prefix}-${o.sort}-${i.icon}`,
62
+ sortOrder: `${t.prefix}-${o.sort}-${o.order}`,
63
63
  tr: {
64
64
  main: `${t.prefix}-${i.table}-${n.row}`,
65
65
  header: `${t.prefix}-${i.table}-${n.group}-${n.row}`,
66
- grouping: `${t.prefix}-${l.grouping}-${n.row}`,
66
+ grouping: `${t.prefix}-${o.grouping}-${n.row}`,
67
67
  footer: `${t.prefix}-${n.group}-${i.footer}`,
68
68
  master: `${t.prefix}-${n.master}-${n.row}`,
69
- rowAlt: `${t.prefix}-${i.table}-${l.alt}-${n.row}`,
70
- alt: `${t.prefix}-${l.alt}`,
71
- selected: `${t.prefix}-${l.selected}`,
72
- highlighted: `${t.prefix}-${l.highlighted}`,
73
- isInEdit: `${o}-${l.edit}-${n.row}`
69
+ rowAlt: `${t.prefix}-${i.table}-${o.alt}-${n.row}`,
70
+ selected: `${t.prefix}-${o.selected}`,
71
+ highlighted: `${t.prefix}-${o.highlighted}`,
72
+ isInEdit: `${l}-${o.edit}-${n.row}`
74
73
  },
75
74
  detailTr: {
76
75
  main: `${t.prefix}-${i.table}-${n.row}`,
77
76
  row: `${t.prefix}-${n.detail}-${n.row}`,
78
- rowAlt: `${t.prefix}-${i.table}-${l.alt}-${n.row}`,
79
- alt: `${t.prefix}-${l.alt}`
77
+ rowAlt: `${t.prefix}-${i.table}-${o.alt}-${n.row}`
80
78
  },
81
79
  simpleTr: `${t.prefix}-${i.table}-${n.row}`,
82
80
  headerCellInner: `${t.prefix}-${n.cellInner}`,
@@ -85,11 +83,11 @@ const $ = {
85
83
  main: `${t.prefix}-${i.link}`,
86
84
  notSortable: `${t.important}${t.prefix}-${x.default}`
87
85
  },
88
- noRecords: `${o}-${n.noRecords}`,
89
- noRecordsTemplate: `${o}-${n.noRecords}-${l.template}`,
90
- pager: `${o}-${n.pager}`,
91
- sorted: `${t.prefix}-${l.sorted}`,
92
- contentSticky: `${o}-${m.content}-${l.sticky}`,
86
+ noRecords: `${l}-${n.noRecords}`,
87
+ noRecordsTemplate: `${l}-${n.noRecords}-${o.template}`,
88
+ pager: `${l}-${n.pager}`,
89
+ sorted: `${t.prefix}-${o.sorted}`,
90
+ contentSticky: `${l}-${u.content}-${o.sticky}`,
93
91
  hierarchyCell: {
94
92
  main: `${t.prefix}-${n.hierarchy}-${n.cell}`,
95
93
  header: `${t.prefix}-${i.header}`
@@ -106,8 +104,8 @@ const $ = {
106
104
  },
107
105
  td: {
108
106
  main: `${t.prefix}-${i.table}-${i.td}`,
109
- selected: `${t.prefix}-${l.selected}`,
110
- highlighted: `${t.prefix}-${l.highlighted}`
107
+ selected: `${t.prefix}-${o.selected}`,
108
+ highlighted: `${t.prefix}-${o.highlighted}`
111
109
  },
112
110
  detailTd: {
113
111
  main: `${t.prefix}-${i.table}-${i.td}`,
@@ -115,8 +113,8 @@ const $ = {
115
113
  },
116
114
  editTd: {
117
115
  main: `${t.prefix}-${i.table}-${i.td}`,
118
- cell: `${o}-${l.edit}-${n.cell}`,
119
- selected: `${t.prefix}-${l.selected}`
116
+ cell: `${l}-${o.edit}-${n.cell}`,
117
+ selected: `${t.prefix}-${o.selected}`
120
118
  },
121
119
  hierarchyTd: {
122
120
  main: `${t.prefix}-${i.table}-${i.td}`,
@@ -128,7 +126,7 @@ const $ = {
128
126
  return {
129
127
  [d.main]: !0,
130
128
  [d.size[e]]: d.size[e],
131
- [`${o}-${e}`]: e && !d.size[e],
129
+ [`${l}-${e}`]: e && !d.size[e],
132
130
  [d.virtual]: a
133
131
  };
134
132
  },
@@ -192,14 +190,14 @@ const $ = {
192
190
  };
193
191
  },
194
192
  headerTh: (r) => {
195
- const { first: e, filterable: a, locked: d, sorted: p, c = $.headerTh } = r;
193
+ const { first: e, filterable: a, locked: d, sorted: m, c = $.headerTh } = r;
196
194
  return {
197
195
  [c.main]: !0,
198
196
  [c.header]: !0,
199
197
  [c.first]: e,
200
198
  [c.filterable]: a,
201
199
  [c.locked]: d,
202
- [c.sorted]: p
200
+ [c.sorted]: m
203
201
  };
204
202
  },
205
203
  tableThead: (r) => {
@@ -219,15 +217,14 @@ const $ = {
219
217
  return e.sortOrder;
220
218
  },
221
219
  tr: (r) => {
222
- const { isHeader: e, isFooter: a, isMaster: d, isAltRow: p, selected: c, highlighted: f, isInEdit: g, c: s = $.tr } = r;
220
+ const { isHeader: e, isFooter: a, isMaster: d, isAltRow: m, selected: c, highlighted: f, isInEdit: g, c: s = $.tr } = r;
223
221
  return {
224
222
  [s.main]: !0,
225
223
  [s.header]: e,
226
224
  [s.grouping]: e,
227
225
  [s.footer]: a,
228
226
  [s.master]: d,
229
- [s.rowAlt]: d && p,
230
- [s.alt]: d && p,
227
+ [s.rowAlt]: d && m,
231
228
  [s.selected]: c,
232
229
  [s.highlighted]: f,
233
230
  [s.isInEdit]: g
@@ -238,8 +235,7 @@ const $ = {
238
235
  return {
239
236
  [a.main]: !0,
240
237
  [a.row]: !0,
241
- [a.rowAlt]: e,
242
- [a.alt]: e
238
+ [a.rowAlt]: e
243
239
  };
244
240
  },
245
241
  simpleTr: (r) => {
@@ -251,14 +247,14 @@ const $ = {
251
247
  dropIndicatorMain: e,
252
248
  dropIndicatorDirection: a,
253
249
  dragClueMain: d,
254
- dragClueOperation: p,
250
+ dragClueOperation: m,
255
251
  c = $.rowReorder
256
252
  } = r;
257
253
  return {
258
254
  [c.dropIndicator.main]: e,
259
255
  [c.dropIndicator.direction]: a,
260
256
  [c.dragClue.main]: d,
261
- [c.dragClue.operation]: p
257
+ [c.dragClue.operation]: m
262
258
  };
263
259
  },
264
260
  headerCellInner: (r) => {