@progress/kendo-vue-grid 8.4.0-develop.2 → 8.4.0-develop.4

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.
@@ -5,17 +5,17 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as s, createVNode as m } from "vue";
9
- import { provideLocalizationService as d } from "@progress/kendo-vue-intl";
10
- import { ContextMenu as p } from "@progress/kendo-vue-layout";
11
- import { sortDescSmallIcon as x, sortAscSmallIcon as I, fileExcelIcon as u, filePdfIcon as f, caretAltUpIcon as g, caretAltDownIcon as C, caretAltToTopIcon as h, caretAltToBottomIcon as w, caretAltExpandIcon as S, clipboardIcon as v, fileTxtIcon as R, pageHeaderSectionIcon as y, unpinOutlineIcon as c, pinOutlineBottomIcon as i, pinOutlineTopIcon as r, pinOutlineIcon as b, tableRowGroupsIcon as A, gridIcon as E, tableUnmergeIcon as D, tableBodyIcon as P, trashIcon as T, pencilIcon as B, plusIcon as H } from "@progress/kendo-svg-icons";
8
+ import { defineComponent as l, createVNode as d } from "vue";
9
+ import { provideLocalizationService as p } from "@progress/kendo-vue-intl";
10
+ import { ContextMenu as x } from "@progress/kendo-vue-layout";
11
+ import { sortDescSmallIcon as I, sortAscSmallIcon as f, fileExcelIcon as u, filePdfIcon as g, chevronUpIcon as h, chevronDownIcon as c, chevronDoubleUpIcon as C, chevronDoubleDownIcon as v, clipboardIcon as w, fileTxtIcon as S, pageHeaderSectionIcon as R, unpinIcon as i, pinBottomIcon as r, pinTopIcon as s, pinIcon as b, tableRowGroupsIcon as y, gridIcon as D, tableUnmergeIcon as E, tableBodyIcon as P, trashIcon as A, pencilIcon as T, plusIcon as B } from "@progress/kendo-svg-icons";
12
12
  import { GridContextMenuItemNames as t } from "./enums.mjs";
13
- const M = {
13
+ const H = {
14
14
  [t.create]: {
15
15
  name: "create",
16
16
  text: "Add",
17
17
  icon: "plus",
18
- svgIcon: H,
18
+ svgIcon: B,
19
19
  data: {
20
20
  action: "AddCommand"
21
21
  }
@@ -24,7 +24,7 @@ const M = {
24
24
  name: "edit",
25
25
  text: "Edit",
26
26
  icon: "pencil",
27
- svgIcon: B,
27
+ svgIcon: T,
28
28
  data: {
29
29
  action: "EditCommand"
30
30
  }
@@ -33,7 +33,7 @@ const M = {
33
33
  name: "delete",
34
34
  text: "Delete",
35
35
  icon: "trash",
36
- svgIcon: T,
36
+ svgIcon: A,
37
37
  data: {
38
38
  action: "DeleteCommand"
39
39
  }
@@ -47,7 +47,7 @@ const M = {
47
47
  name: "selectRow",
48
48
  text: "Row",
49
49
  icon: "table-row-groups",
50
- svgIcon: A,
50
+ svgIcon: y,
51
51
  data: {
52
52
  action: "SelectRowCommand"
53
53
  }
@@ -55,7 +55,7 @@ const M = {
55
55
  name: "selectAllRows",
56
56
  text: "All rows",
57
57
  icon: "grid",
58
- svgIcon: E,
58
+ svgIcon: D,
59
59
  data: {
60
60
  action: "SelectAllRowsCommand"
61
61
  }
@@ -63,7 +63,7 @@ const M = {
63
63
  name: "clearSelection",
64
64
  text: "Clear selection",
65
65
  icon: "table-unmerge",
66
- svgIcon: D,
66
+ svgIcon: E,
67
67
  data: {
68
68
  action: "ClearSelectionCommand"
69
69
  }
@@ -72,29 +72,29 @@ const M = {
72
72
  [t.pinRow]: {
73
73
  name: "pinRow",
74
74
  text: "Pin row",
75
- icon: "pin-outline",
75
+ icon: "pin",
76
76
  svgIcon: b,
77
77
  items: [{
78
78
  name: "pinTop",
79
79
  text: "Pin to Top",
80
- icon: "pin-outline-top",
81
- svgIcon: r,
80
+ icon: "pin-top",
81
+ svgIcon: s,
82
82
  data: {
83
83
  action: "PinTopCommand"
84
84
  }
85
85
  }, {
86
86
  name: "pinBottom",
87
87
  text: "Pin to Bottom",
88
- icon: "pin-outline-bottom",
89
- svgIcon: i,
88
+ icon: "pin-bottom",
89
+ svgIcon: r,
90
90
  data: {
91
91
  action: "PinBottomCommand"
92
92
  }
93
93
  }, {
94
94
  name: "unpin",
95
95
  text: "Unpin",
96
- icon: "unpin-outline",
97
- svgIcon: c,
96
+ icon: "unpin",
97
+ svgIcon: i,
98
98
  data: {
99
99
  action: "UnpinCommand"
100
100
  }
@@ -103,8 +103,8 @@ const M = {
103
103
  [t.pinTop]: {
104
104
  name: "pinTop",
105
105
  text: "Pin to Top",
106
- icon: "pin-outline-top",
107
- svgIcon: r,
106
+ icon: "pin-top",
107
+ svgIcon: s,
108
108
  data: {
109
109
  action: "PinTopCommand"
110
110
  }
@@ -112,8 +112,8 @@ const M = {
112
112
  [t.pinBottom]: {
113
113
  name: "pinBottom",
114
114
  text: "Pin to Bottom",
115
- icon: "pin-outline-bottom",
116
- svgIcon: i,
115
+ icon: "pin-bottom",
116
+ svgIcon: r,
117
117
  data: {
118
118
  action: "PinBottomCommand"
119
119
  }
@@ -121,8 +121,8 @@ const M = {
121
121
  [t.unpin]: {
122
122
  name: "unpin",
123
123
  text: "Unpin",
124
- icon: "unpin-outline",
125
- svgIcon: c,
124
+ icon: "unpin",
125
+ svgIcon: i,
126
126
  data: {
127
127
  action: "UnpinCommand"
128
128
  }
@@ -131,7 +131,7 @@ const M = {
131
131
  name: "copySelection",
132
132
  text: "Copy selection",
133
133
  icon: "page-header-section",
134
- svgIcon: y,
134
+ svgIcon: R,
135
135
  data: {
136
136
  action: "CopySelectionCommand"
137
137
  },
@@ -141,7 +141,7 @@ const M = {
141
141
  name: "copySelectionNoHeaders",
142
142
  text: "Copy selection (No Headers)",
143
143
  icon: "file-txt",
144
- svgIcon: R,
144
+ svgIcon: S,
145
145
  data: {
146
146
  action: "CopySelectionCommand"
147
147
  }
@@ -150,7 +150,7 @@ const M = {
150
150
  name: "paste",
151
151
  text: "Paste (use CTRL/⌘ + V)",
152
152
  icon: "clipboard",
153
- svgIcon: v,
153
+ svgIcon: w,
154
154
  data: {
155
155
  action: "PasteCommand"
156
156
  }
@@ -158,37 +158,37 @@ const M = {
158
158
  [t.reorderRow]: {
159
159
  name: "reorderRow",
160
160
  text: "Reorder row",
161
- icon: "caret-alt-expand",
162
- svgIcon: S,
161
+ icon: "chevron-down",
162
+ svgIcon: c,
163
163
  items: [{
164
164
  name: "reorderRowUp",
165
165
  text: "Up",
166
- icon: "caret-alt-up",
167
- svgIcon: g,
166
+ icon: "chevron-up",
167
+ svgIcon: h,
168
168
  data: {
169
169
  action: "ReorderRowCommand"
170
170
  }
171
171
  }, {
172
172
  name: "reorderRowDown",
173
173
  text: "Down",
174
- icon: "caret-alt-down",
175
- svgIcon: C,
174
+ icon: "chevron-down",
175
+ svgIcon: c,
176
176
  data: {
177
177
  action: "ReorderRowCommand"
178
178
  }
179
179
  }, {
180
180
  name: "reorderRowTop",
181
181
  text: "Top",
182
- icon: "caret-alt-to-top",
183
- svgIcon: h,
182
+ icon: "chevron-double-up",
183
+ svgIcon: C,
184
184
  data: {
185
185
  action: "ReorderRowCommand"
186
186
  }
187
187
  }, {
188
188
  name: "reorderRowBottom",
189
189
  text: "Bottom",
190
- icon: "caret-alt-to-bottom",
191
- svgIcon: w,
190
+ icon: "chevron-double-down",
191
+ svgIcon: v,
192
192
  data: {
193
193
  action: "ReorderRowCommand"
194
194
  }
@@ -198,7 +198,7 @@ const M = {
198
198
  name: "exportPDF",
199
199
  text: "Export to PDF",
200
200
  icon: "file-pdf",
201
- svgIcon: f,
201
+ svgIcon: g,
202
202
  data: {
203
203
  action: "ExportPDFCommand"
204
204
  }
@@ -238,7 +238,7 @@ const M = {
238
238
  name: "sortAsc",
239
239
  text: "Sort Ascending",
240
240
  icon: "sort-asc-small",
241
- svgIcon: I,
241
+ svgIcon: f,
242
242
  data: {
243
243
  action: "SortCommand"
244
244
  }
@@ -247,7 +247,7 @@ const M = {
247
247
  name: "sortDesc",
248
248
  text: "Sort Descending",
249
249
  icon: "sort-desc-small",
250
- svgIcon: x,
250
+ svgIcon: I,
251
251
  data: {
252
252
  action: "SortCommand"
253
253
  }
@@ -258,7 +258,7 @@ const M = {
258
258
  }, G = (o) => {
259
259
  let e = [];
260
260
  return o.clipboard && (e = e.concat([t.copySelection, t.copySelectionNoHeaders, t.paste])), o.editable && (e.length && (e = e.concat([t.separator])), e = e.concat([t.create, t.edit, t.delete])), o.selectable && (e.length && (e = e.concat([t.separator])), e = e.concat([t.select])), o.rowReorderable && (e.length && (e = e.concat([t.separator])), e = e.concat([t.reorderRow])), o.pdf && (e.length && (e = e.concat([t.separator])), e = e.concat([t.exportPDF])), o.pinnable && (e.length && (e = e.concat([t.separator])), e = e.concat([t.pinRow])), e;
261
- }, L = /* @__PURE__ */ s({
261
+ }, L = /* @__PURE__ */ l({
262
262
  name: "GridContextMenu",
263
263
  props: {
264
264
  show: {
@@ -301,7 +301,7 @@ const M = {
301
301
  menuItems() {
302
302
  if (this.$props.items)
303
303
  return this.$props.items.map((o) => typeof o == "string" ? {
304
- ...M[o]
304
+ ...H[o]
305
305
  } : {
306
306
  ...o
307
307
  });
@@ -318,8 +318,8 @@ const M = {
318
318
  }
319
319
  },
320
320
  render() {
321
- const o = d(this), e = this.menuItems(), n = e == null ? void 0 : e.map((l) => this.localizeItem(l, o)), a = !!(this.$props.show && (n != null && n.length));
322
- return m(p, {
321
+ const o = p(this), e = this.menuItems(), n = e == null ? void 0 : e.map((m) => this.localizeItem(m, o)), a = !!(this.$props.show && (n != null && n.length));
322
+ return d(x, {
323
323
  show: a,
324
324
  offset: this.$props.offset,
325
325
  items: n,
@@ -330,7 +330,7 @@ const M = {
330
330
  });
331
331
  export {
332
332
  L as GridContextMenu,
333
- M as contextMenuItemsMap,
333
+ H as contextMenuItemsMap,
334
334
  G as getDefaultBodyContextMenuItems,
335
335
  z as getDefaultHeadContextMenuItems
336
336
  };