@progress/kendo-vue-data-tools 3.7.4-dev.202212300853 → 3.7.4-dev.202301120847

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.
Files changed (110) hide show
  1. package/dist/cdn/js/kendo-vue-data-tools.js +1 -1
  2. package/dist/es/cells/FilterCell.js +35 -21
  3. package/dist/es/columnmenu/ColumnMenu.js +7 -4
  4. package/dist/es/columnmenu/ColumnMenuCheckboxFilter.js +12 -5
  5. package/dist/es/columnmenu/ColumnMenuFilter.js +9 -4
  6. package/dist/es/columnmenu/ColumnMenuItem.d.ts +9 -0
  7. package/dist/es/columnmenu/ColumnMenuItem.js +12 -1
  8. package/dist/es/columnmenu/ColumnMenuSort.js +17 -8
  9. package/dist/es/drag/ColumnDraggable.js +6 -2
  10. package/dist/es/drag/CommonDragLogic.d.ts +1 -0
  11. package/dist/es/drag/CommonDragLogic.js +21 -10
  12. package/dist/es/filter/Expression.js +17 -8
  13. package/dist/es/filter/GroupToolbar.js +33 -8
  14. package/dist/es/header/FilterRow.d.ts +1 -0
  15. package/dist/es/header/FilterRow.js +6 -4
  16. package/dist/es/header/Header.d.ts +1 -0
  17. package/dist/es/header/Header.js +12 -2
  18. package/dist/es/header/HeaderRow.d.ts +1 -0
  19. package/dist/es/header/HeaderRow.js +12 -5
  20. package/dist/es/header/HeaderTdElement.d.ts +46 -0
  21. package/dist/es/header/HeaderTdElement.js +92 -0
  22. package/dist/es/header/HeaderThElement.d.ts +8 -1
  23. package/dist/es/header/HeaderThElement.js +10 -2
  24. package/dist/es/header/main.d.ts +1 -0
  25. package/dist/es/header/main.js +1 -0
  26. package/dist/es/interfaces/FilterCellProps.d.ts +12 -0
  27. package/dist/es/package-metadata.js +1 -1
  28. package/dist/es/pager/Pager.d.ts +13 -1
  29. package/dist/es/pager/Pager.js +66 -28
  30. package/dist/es/pager/PagerInput.d.ts +9 -1
  31. package/dist/es/pager/PagerInput.js +16 -2
  32. package/dist/es/pager/PagerNavigationButton.d.ts +13 -0
  33. package/dist/es/pager/PagerNavigationButton.js +30 -20
  34. package/dist/es/pager/PagerNumericButtons.d.ts +5 -1
  35. package/dist/es/pager/PagerNumericButtons.js +61 -27
  36. package/dist/es/pager/PagerPageSizes.d.ts +1 -0
  37. package/dist/es/pager/PagerPageSizes.js +3 -0
  38. package/dist/esm/cells/FilterCell.js +35 -21
  39. package/dist/esm/columnmenu/ColumnMenu.js +7 -4
  40. package/dist/esm/columnmenu/ColumnMenuCheckboxFilter.js +12 -5
  41. package/dist/esm/columnmenu/ColumnMenuFilter.js +9 -4
  42. package/dist/esm/columnmenu/ColumnMenuItem.d.ts +9 -0
  43. package/dist/esm/columnmenu/ColumnMenuItem.js +12 -1
  44. package/dist/esm/columnmenu/ColumnMenuSort.js +17 -8
  45. package/dist/esm/drag/ColumnDraggable.js +6 -2
  46. package/dist/esm/drag/CommonDragLogic.d.ts +1 -0
  47. package/dist/esm/drag/CommonDragLogic.js +21 -10
  48. package/dist/esm/filter/Expression.js +17 -8
  49. package/dist/esm/filter/GroupToolbar.js +33 -8
  50. package/dist/esm/header/FilterRow.d.ts +1 -0
  51. package/dist/esm/header/FilterRow.js +6 -4
  52. package/dist/esm/header/Header.d.ts +1 -0
  53. package/dist/esm/header/Header.js +12 -2
  54. package/dist/esm/header/HeaderRow.d.ts +1 -0
  55. package/dist/esm/header/HeaderRow.js +12 -5
  56. package/dist/esm/header/HeaderTdElement.d.ts +46 -0
  57. package/dist/esm/header/HeaderTdElement.js +92 -0
  58. package/dist/esm/header/HeaderThElement.d.ts +8 -1
  59. package/dist/esm/header/HeaderThElement.js +10 -2
  60. package/dist/esm/header/main.d.ts +1 -0
  61. package/dist/esm/header/main.js +1 -0
  62. package/dist/esm/interfaces/FilterCellProps.d.ts +12 -0
  63. package/dist/esm/package-metadata.js +1 -1
  64. package/dist/esm/pager/Pager.d.ts +13 -1
  65. package/dist/esm/pager/Pager.js +66 -28
  66. package/dist/esm/pager/PagerInput.d.ts +9 -1
  67. package/dist/esm/pager/PagerInput.js +16 -2
  68. package/dist/esm/pager/PagerNavigationButton.d.ts +13 -0
  69. package/dist/esm/pager/PagerNavigationButton.js +30 -20
  70. package/dist/esm/pager/PagerNumericButtons.d.ts +5 -1
  71. package/dist/esm/pager/PagerNumericButtons.js +61 -27
  72. package/dist/esm/pager/PagerPageSizes.d.ts +1 -0
  73. package/dist/esm/pager/PagerPageSizes.js +3 -0
  74. package/dist/npm/cells/FilterCell.js +34 -20
  75. package/dist/npm/columnmenu/ColumnMenu.js +7 -4
  76. package/dist/npm/columnmenu/ColumnMenuCheckboxFilter.js +12 -5
  77. package/dist/npm/columnmenu/ColumnMenuFilter.js +9 -4
  78. package/dist/npm/columnmenu/ColumnMenuItem.d.ts +9 -0
  79. package/dist/npm/columnmenu/ColumnMenuItem.js +12 -1
  80. package/dist/npm/columnmenu/ColumnMenuSort.js +17 -8
  81. package/dist/npm/drag/ColumnDraggable.js +6 -2
  82. package/dist/npm/drag/CommonDragLogic.d.ts +1 -0
  83. package/dist/npm/drag/CommonDragLogic.js +21 -10
  84. package/dist/npm/filter/Expression.js +17 -8
  85. package/dist/npm/filter/GroupToolbar.js +33 -8
  86. package/dist/npm/header/FilterRow.d.ts +1 -0
  87. package/dist/npm/header/FilterRow.js +6 -4
  88. package/dist/npm/header/Header.d.ts +1 -0
  89. package/dist/npm/header/Header.js +11 -1
  90. package/dist/npm/header/HeaderRow.d.ts +1 -0
  91. package/dist/npm/header/HeaderRow.js +12 -5
  92. package/dist/npm/header/HeaderTdElement.d.ts +46 -0
  93. package/dist/npm/header/HeaderTdElement.js +99 -0
  94. package/dist/npm/header/HeaderThElement.d.ts +8 -1
  95. package/dist/npm/header/HeaderThElement.js +10 -2
  96. package/dist/npm/header/main.d.ts +1 -0
  97. package/dist/npm/header/main.js +1 -0
  98. package/dist/npm/interfaces/FilterCellProps.d.ts +12 -0
  99. package/dist/npm/package-metadata.js +1 -1
  100. package/dist/npm/pager/Pager.d.ts +13 -1
  101. package/dist/npm/pager/Pager.js +65 -27
  102. package/dist/npm/pager/PagerInput.d.ts +9 -1
  103. package/dist/npm/pager/PagerInput.js +16 -2
  104. package/dist/npm/pager/PagerNavigationButton.d.ts +13 -0
  105. package/dist/npm/pager/PagerNavigationButton.js +30 -20
  106. package/dist/npm/pager/PagerNumericButtons.d.ts +5 -1
  107. package/dist/npm/pager/PagerNumericButtons.js +61 -27
  108. package/dist/npm/pager/PagerPageSizes.d.ts +1 -0
  109. package/dist/npm/pager/PagerPageSizes.js +3 -0
  110. package/package.json +12 -11
@@ -7,11 +7,12 @@ var inject = allVue.inject;
7
7
  import { Button } from '@progress/kendo-vue-buttons';
8
8
  import { messages, columnMenuFilterClearButton as filterClearButton, columnMenuFilterChooseOperator as filterChooseOperator, filterTextFilterAriaLabel, filterEnumFilterDropdownAriaLabel, filterDateFilterAriaLabel, filterNumericFilterAriaLabel, filterDropDownOperatorAriaLabel } from '../messages/main';
9
9
  import { DropDownList } from '@progress/kendo-vue-dropdowns';
10
- import { NumericTextBox } from '@progress/kendo-vue-inputs';
10
+ import { NumericTextBox, Input } from '@progress/kendo-vue-inputs';
11
11
  import { DatePicker } from '@progress/kendo-vue-dateinputs';
12
12
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
13
13
  import { cellBoolDropdownChange, cellInputChange, cellOperatorChange } from '../filterCommon';
14
14
  import { templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
15
+ import { filterClearIcon } from '@progress/kendo-svg-icons';
15
16
  /**
16
17
  * @hidden
17
18
  */
@@ -34,7 +35,8 @@ var FilterCellVue2 = {
34
35
  booleanValues: Array,
35
36
  onChange: Function,
36
37
  render: [String, Function, Object],
37
- ariaLabel: String
38
+ ariaLabel: String,
39
+ size: String
38
40
  },
39
41
  inject: {
40
42
  kendoLocalizationService: {
@@ -85,6 +87,7 @@ var FilterCellVue2 = {
85
87
  render: function render(createElement) {
86
88
  var _this = this;
87
89
  var h = gh || createElement;
90
+ var size = this.$props.size;
88
91
  var ls = provideLocalizationService(this);
89
92
  var selectedOperator = this.$props.operators.find(function (item) {
90
93
  return item.operator === _this.$props.operator;
@@ -103,6 +106,7 @@ var FilterCellVue2 = {
103
106
  value: selectedOperator,
104
107
  attrs: this.v3 ? undefined : {
105
108
  value: selectedOperator,
109
+ size: size,
106
110
  iconClassName: "k-i-filter k-button-icon",
107
111
  "data-items": this.$props.operators,
108
112
  textField: "text",
@@ -112,6 +116,7 @@ var FilterCellVue2 = {
112
116
  },
113
117
  "aria-label": this.ariaLabel || ls.toLanguageString(filterDropDownOperatorAriaLabel, messages[filterDropDownOperatorAriaLabel])
114
118
  },
119
+ size: size,
115
120
  "class": "k-dropdown-operator",
116
121
  iconClassName: "k-i-filter k-button-icon",
117
122
  "data-items": this.$props.operators,
@@ -131,12 +136,14 @@ var FilterCellVue2 = {
131
136
  return (
132
137
  // @ts-ignore
133
138
  h(NumericTextBox, {
134
- value: value,
139
+ size: size,
135
140
  attrs: this.v3 ? undefined : {
141
+ size: size,
136
142
  value: value,
137
143
  title: this.$props.title,
138
144
  "aria-label": this.ariaLabel || ls.toLanguageString(filterNumericFilterAriaLabel, messages[filterNumericFilterAriaLabel])
139
145
  },
146
+ value: value,
140
147
  onChange: function onChange(e) {
141
148
  _this.inputChange(e.value, e.event);
142
149
  },
@@ -153,12 +160,14 @@ var FilterCellVue2 = {
153
160
  return (
154
161
  // @ts-ignore
155
162
  h(DatePicker, {
156
- value: value,
163
+ size: size,
157
164
  attrs: this.v3 ? undefined : {
165
+ size: size,
158
166
  value: value,
159
167
  title: this.$props.title,
160
168
  "aria-label": this.ariaLabel || ls.toLanguageString(filterDateFilterAriaLabel, messages[filterDateFilterAriaLabel])
161
169
  },
170
+ value: value,
162
171
  onChange: function onChange(e) {
163
172
  _this.inputChange(e.value, e);
164
173
  },
@@ -180,10 +189,9 @@ var FilterCellVue2 = {
180
189
  on: this.v3 ? undefined : {
181
190
  "change": this.boolDropdownChange
182
191
  },
183
- value: booleanValues.find(function (item) {
184
- return item.operator === (value !== null ? value : '');
185
- }),
192
+ size: size,
186
193
  attrs: this.v3 ? undefined : {
194
+ size: size,
187
195
  value: booleanValues.find(function (item) {
188
196
  return item.operator === (value !== null ? value : '');
189
197
  }),
@@ -192,6 +200,9 @@ var FilterCellVue2 = {
192
200
  title: this.$props.title,
193
201
  "aria-label": this.ariaLabel || ls.toLanguageString(filterEnumFilterDropdownAriaLabel, messages[filterEnumFilterDropdownAriaLabel])
194
202
  },
203
+ value: booleanValues.find(function (item) {
204
+ return item.operator === (value !== null ? value : '');
205
+ }),
195
206
  "data-items": booleanValues,
196
207
  textField: "text",
197
208
  title: this.$props.title,
@@ -199,14 +210,15 @@ var FilterCellVue2 = {
199
210
  })
200
211
  );
201
212
  default:
202
- return h("span", {
203
- "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
204
- }, [h("input", {
205
- "class": "k-input-inner",
206
- value: this.v3 ? value || '' : null,
207
- domProps: this.v3 ? undefined : {
208
- "value": value || ''
213
+ return h(Input, {
214
+ size: size,
215
+ attrs: this.v3 ? undefined : {
216
+ size: size,
217
+ value: value || '',
218
+ title: this.$props.title,
219
+ "aria-label": this.ariaLabel || ls.toLanguageString(filterTextFilterAriaLabel, messages[filterTextFilterAriaLabel])
209
220
  },
221
+ value: value || '',
210
222
  onInput: function onInput(e) {
211
223
  _this.inputChange(e.target.value, e);
212
224
  },
@@ -216,28 +228,30 @@ var FilterCellVue2 = {
216
228
  }
217
229
  },
218
230
  title: this.$props.title,
219
- attrs: this.v3 ? undefined : {
220
- title: this.$props.title,
221
- "aria-label": this.ariaLabel || ls.toLanguageString(filterTextFilterAriaLabel, messages[filterTextFilterAriaLabel])
222
- },
223
231
  "aria-label": this.ariaLabel || ls.toLanguageString(filterTextFilterAriaLabel, messages[filterTextFilterAriaLabel])
224
- })]);
232
+ });
225
233
  }
226
234
  };
227
235
  var defaultRendering = h("div", {
228
236
  "class": "k-filtercell"
229
- }, [h("span", [filterComponent.call(this, this.$props.filterType, this.$props.value), h("div", {
237
+ }, [h("div", {
238
+ "class": "k-filtercell-wrapper"
239
+ }, [filterComponent.call(this, this.$props.filterType, this.$props.value), h("div", {
230
240
  "class": "k-filtercell-operator"
231
241
  }, [renderOperatorEditor.call(this),
232
242
  // @ts-ignore function children
233
243
  h(Button, {
234
- type: "button",
244
+ size: size,
235
245
  attrs: this.v3 ? undefined : {
246
+ size: size,
236
247
  type: "button",
237
248
  icon: 'filter-clear',
249
+ svgIcon: filterClearIcon,
238
250
  title: ls.toLanguageString(filterClearButton, messages[filterClearButton])
239
251
  },
252
+ type: "button",
240
253
  icon: 'filter-clear',
254
+ svgIcon: filterClearIcon,
241
255
  "class": {
242
256
  /* button is always visible if there is either value or operator */
243
257
  'k-disabled': !(!(this.$props.value === null || this.$props.value === '') || this.$props.operator)
@@ -6,6 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var inject = allVue.inject;
7
7
  import { guid, Icon, setRef } from '@progress/kendo-vue-common';
8
8
  import { Popup } from '@progress/kendo-vue-popup';
9
+ import { moreVerticalIcon } from '@progress/kendo-svg-icons';
9
10
  import { ColumnMenuContent } from './ColumnMenuContent';
10
11
  import { tableKeyboardNavigationTools } from '../navigation/utils';
11
12
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
@@ -86,8 +87,8 @@ var ColumnMenuVue2 = {
86
87
  handleFocus: function handleFocus(_) {
87
88
  clearTimeout(this.blurTimeout);
88
89
  },
89
- anchorClick: function anchorClick() {
90
- var that = this;
90
+ anchorClick: function anchorClick(e) {
91
+ e.preventDefault();
91
92
  this.show = !this.show;
92
93
  },
93
94
  closeMenu: function closeMenu() {
@@ -136,8 +137,10 @@ var ColumnMenuVue2 = {
136
137
  }, [h(Icon, {
137
138
  name: 'more-vertical',
138
139
  attrs: this.v3 ? undefined : {
139
- name: 'more-vertical'
140
- }
140
+ name: 'more-vertical',
141
+ icon: moreVerticalIcon
142
+ },
143
+ icon: moreVerticalIcon
141
144
  })]),
142
145
  // @ts-ignore function children
143
146
  h(Popup, {
@@ -29,6 +29,7 @@ import { Button } from '@progress/kendo-vue-buttons';
29
29
  import { ColumnMenuItem } from './ColumnMenuItem';
30
30
  import { ColumnMenuItemGroup } from './ColumnMenuItemGroup';
31
31
  import { ColumnMenuItemContent } from './ColumnMenuItemContent';
32
+ import { filterIcon, searchIcon } from '@progress/kendo-svg-icons';
32
33
  import { Checkbox } from '@progress/kendo-vue-inputs';
33
34
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
34
35
  import { messages, columnMenuFilterClearButton as filterClearButton, columnMenuFilterSubmitButton as filterSubmitButton, columnMenuFilterTitle as filterTitle, searchPlaceholder, filterCheckAll } from '../messages/main';
@@ -147,8 +148,10 @@ var ColumnMenuCheckboxFilterVue2 = {
147
148
  }, [h(Icon, {
148
149
  name: 'search',
149
150
  attrs: this.v3 ? undefined : {
150
- name: 'search'
151
+ name: 'search',
152
+ icon: searchIcon
151
153
  },
154
+ icon: searchIcon,
152
155
  "class": "k-input-icon"
153
156
  }), h("input", {
154
157
  ref: 'searchBox',
@@ -214,9 +217,11 @@ var ColumnMenuCheckboxFilterVue2 = {
214
217
  title: localizationService.toLanguageString(filterTitle, messages[filterTitle]),
215
218
  attrs: _this2.v3 ? undefined : {
216
219
  title: localizationService.toLanguageString(filterTitle, messages[filterTitle]),
217
- iconClass: 'k-i-filter'
220
+ icon: 'filter',
221
+ svgIcon: filterIcon
218
222
  },
219
- iconClass: 'k-i-filter',
223
+ icon: 'filter',
224
+ svgIcon: filterIcon,
220
225
  onClick: _this2.onFilterExpand,
221
226
  on: _this2.v3 ? undefined : {
222
227
  "click": _this2.onFilterExpand
@@ -375,9 +380,11 @@ var ColumnMenuCheckboxFilterVue2 = {
375
380
  title: localizationService.toLanguageString(filterTitle, messages[filterTitle]),
376
381
  attrs: _this2.v3 ? undefined : {
377
382
  title: localizationService.toLanguageString(filterTitle, messages[filterTitle]),
378
- iconClass: 'k-i-filter'
383
+ icon: 'filter',
384
+ svgIcon: filterIcon
379
385
  },
380
- iconClass: 'k-i-filter',
386
+ icon: 'filter',
387
+ svgIcon: filterIcon,
381
388
  onClick: _this2.onFilterExpand,
382
389
  on: _this2.v3 ? undefined : {
383
390
  "click": _this2.onFilterExpand
@@ -37,6 +37,7 @@ import { messages, columnMenuFilterClearButton, columnMenuFilterSubmitButton, co
37
37
  import { ColumnMenuFilterCell } from './ColumnMenuFilterCell';
38
38
  import { ColumnMenuFilterOperators } from './ColumnMenuFilterOperators';
39
39
  import { DropDownList } from '@progress/kendo-vue-dropdowns';
40
+ import { filterIcon } from '@progress/kendo-svg-icons';
40
41
  /**
41
42
  * @hidden
42
43
  */
@@ -352,9 +353,11 @@ var ColumnMenuFilterVue2 = {
352
353
  title: localizationService.toLanguageString(columnMenuFilterTitle, messages[columnMenuFilterTitle]),
353
354
  attrs: _this2.v3 ? undefined : {
354
355
  title: localizationService.toLanguageString(columnMenuFilterTitle, messages[columnMenuFilterTitle]),
355
- iconClass: 'k-i-filter'
356
+ icon: 'filter',
357
+ svgIcon: filterIcon
356
358
  },
357
- iconClass: 'k-i-filter',
359
+ icon: 'filter',
360
+ svgIcon: filterIcon,
358
361
  onMenuitemclick: _this2.onFilterExpand,
359
362
  on: _this2.v3 ? undefined : {
360
363
  "menuitemclick": _this2.onFilterExpand
@@ -641,9 +644,11 @@ var ColumnMenuFilterVue2 = {
641
644
  title: localizationService.toLanguageString(columnMenuFilterTitle, messages[columnMenuFilterTitle]),
642
645
  attrs: _this2.v3 ? undefined : {
643
646
  title: localizationService.toLanguageString(columnMenuFilterTitle, messages[columnMenuFilterTitle]),
644
- iconClass: 'k-i-filter'
647
+ icon: 'filter',
648
+ svgIcon: filterIcon
645
649
  },
646
- iconClass: 'k-i-filter',
650
+ icon: 'filter',
651
+ svgIcon: filterIcon,
647
652
  onMenuitemclick: _this2.onFilterExpand,
648
653
  on: _this2.v3 ? undefined : {
649
654
  "menuitemclick": _this2.onFilterExpand
@@ -3,6 +3,7 @@ declare type DefaultData<V> = object | ((this: V) => {});
3
3
  declare type DefaultMethods<V> = {
4
4
  [key: string]: (this: V, ...args: any[]) => any;
5
5
  };
6
+ import { SVGIcon } from '@progress/kendo-svg-icons';
6
7
  /**
7
8
  * The props of the ColumnMenuItem component.
8
9
  */
@@ -19,6 +20,14 @@ export interface ColumnMenuItemProps {
19
20
  * The class of the icon rendered next to the title.
20
21
  */
21
22
  iconClass: string;
23
+ /**
24
+ * Defines the name for the icon.
25
+ */
26
+ icon?: string;
27
+ /**
28
+ * Defines the svg icon in a Kendo UI for Vue theme.
29
+ */
30
+ svgIcon?: SVGIcon;
22
31
  /**
23
32
  * The selected state of the component.
24
33
  */
@@ -11,6 +11,8 @@ var ColumnMenuItemVue2 = {
11
11
  props: {
12
12
  title: String,
13
13
  iconClass: String,
14
+ icon: String,
15
+ svgIcon: Object,
14
16
  selected: Boolean
15
17
  },
16
18
  methods: {
@@ -36,7 +38,9 @@ var ColumnMenuItemVue2 = {
36
38
  var _a = this.$props,
37
39
  title = _a.title,
38
40
  iconClass = _a.iconClass,
39
- selected = _a.selected;
41
+ selected = _a.selected,
42
+ icon = _a.icon,
43
+ svgIcon = _a.svgIcon;
40
44
  return h("div", {
41
45
  tabindex: 0,
42
46
  attrs: this.v3 ? undefined : {
@@ -51,6 +55,13 @@ var ColumnMenuItemVue2 = {
51
55
  "class": "k-columnmenu-item ".concat(selected ? 'k-selected' : '')
52
56
  }, [iconClass && h(Icon, {
53
57
  "class": iconClass
58
+ }), (icon || svgIcon) && h(Icon, {
59
+ name: icon,
60
+ attrs: this.v3 ? undefined : {
61
+ name: icon,
62
+ svg: svgIcon
63
+ },
64
+ svg: svgIcon
54
65
  }), title]);
55
66
  }
56
67
  };
@@ -10,6 +10,7 @@ import { normalize } from '../interfaces/SortSettings';
10
10
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
11
11
  import { messages, columnMenuSortAscending as sortAscending, columnMenuSortDescending as sortDescending } from '../messages/main';
12
12
  import { hasListener } from '@progress/kendo-vue-common';
13
+ import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
13
14
  /**
14
15
  * @hidden
15
16
  */
@@ -166,10 +167,12 @@ var ColumnMenuSortVue2 = {
166
167
  title: localizationService.toLanguageString(sortAscending, messages[sortAscending]),
167
168
  attrs: _this.v3 ? undefined : {
168
169
  title: localizationService.toLanguageString(sortAscending, messages[sortAscending]),
169
- iconClass: 'k-i-sort-asc-sm',
170
+ icon: 'sort-asc-small',
171
+ scgIcon: sortAscSmallIcon,
170
172
  selected: sortedAsc(currentSortIndex, sort)
171
173
  },
172
- iconClass: 'k-i-sort-asc-sm',
174
+ icon: 'sort-asc-small',
175
+ scgIcon: sortAscSmallIcon,
173
176
  selected: sortedAsc(currentSortIndex, sort),
174
177
  onMenuitemclick: _this.onAscClick,
175
178
  on: _this.v3 ? undefined : {
@@ -181,10 +184,12 @@ var ColumnMenuSortVue2 = {
181
184
  title: localizationService.toLanguageString(sortDescending, messages[sortDescending]),
182
185
  attrs: _this.v3 ? undefined : {
183
186
  title: localizationService.toLanguageString(sortDescending, messages[sortDescending]),
184
- iconClass: 'k-i-sort-desc-sm',
187
+ icon: 'sort-desc-small',
188
+ svgIcon: sortDescSmallIcon,
185
189
  selected: sortedDesc(currentSortIndex, sort)
186
190
  },
187
- iconClass: 'k-i-sort-desc-sm',
191
+ icon: 'sort-desc-small',
192
+ svgIcon: sortDescSmallIcon,
188
193
  selected: sortedDesc(currentSortIndex, sort),
189
194
  onMenuitemclick: _this.onDescClick,
190
195
  on: _this.v3 ? undefined : {
@@ -195,10 +200,12 @@ var ColumnMenuSortVue2 = {
195
200
  title: localizationService.toLanguageString(sortAscending, messages[sortAscending]),
196
201
  attrs: _this.v3 ? undefined : {
197
202
  title: localizationService.toLanguageString(sortAscending, messages[sortAscending]),
198
- iconClass: 'k-i-sort-asc-sm',
203
+ icon: 'sort-asc-small',
204
+ scgIcon: sortAscSmallIcon,
199
205
  selected: sortedAsc(currentSortIndex, sort)
200
206
  },
201
- iconClass: 'k-i-sort-asc-sm',
207
+ icon: 'sort-asc-small',
208
+ scgIcon: sortAscSmallIcon,
202
209
  selected: sortedAsc(currentSortIndex, sort),
203
210
  onMenuitemclick: _this.onAscClick,
204
211
  on: _this.v3 ? undefined : {
@@ -208,10 +215,12 @@ var ColumnMenuSortVue2 = {
208
215
  title: localizationService.toLanguageString(sortDescending, messages[sortDescending]),
209
216
  attrs: _this.v3 ? undefined : {
210
217
  title: localizationService.toLanguageString(sortDescending, messages[sortDescending]),
211
- iconClass: 'k-i-sort-desc-sm',
218
+ icon: 'sort-desc-small',
219
+ svgIcon: sortDescSmallIcon,
212
220
  selected: sortedDesc(currentSortIndex, sort)
213
221
  },
214
- iconClass: 'k-i-sort-desc-sm',
222
+ icon: 'sort-desc-small',
223
+ svgIcon: sortDescSmallIcon,
215
224
  selected: sortedDesc(currentSortIndex, sort),
216
225
  onMenuitemclick: _this.onDescClick,
217
226
  on: _this.v3 ? undefined : {
@@ -57,8 +57,12 @@ var ColumnDraggableVue2 = {
57
57
  onRelease: this.onRelease,
58
58
  ref: 'draggable'
59
59
  }, this.v3 ? function () {
60
- return [h("tr", [defaultSlot])];
61
- } : [h("tr", [defaultSlot])])
60
+ return [h("tr", {
61
+ "class": 'k-table-row'
62
+ }, [defaultSlot])];
63
+ } : [h("tr", {
64
+ "class": 'k-table-row'
65
+ }, [defaultSlot])])
62
66
  );
63
67
  }
64
68
  };
@@ -28,6 +28,7 @@ export declare class CommonDragLogic {
28
28
  dragHandler: (event: any, element: HTMLElement) => void;
29
29
  releaseHandler: (event: any) => void;
30
30
  private getColumnIndex;
31
+ private isTargetGroupingContainer;
31
32
  private getGroupIndex;
32
33
  private isValid;
33
34
  private updateDragElementClue;
@@ -16,7 +16,7 @@ var CommonDragLogic = /** @class */ (function () {
16
16
  this.currentGroup = -1;
17
17
  this.groupPanelDivElement = null;
18
18
  this.refGroupPanelDiv = function (e) {
19
- _this.groupPanelDivElement = e;
19
+ _this.groupPanelDivElement = e.children ? e.children[0] : e;
20
20
  };
21
21
  this.refDropElementClue = function (e) {
22
22
  _this.dropElementClue = e;
@@ -52,10 +52,12 @@ var CommonDragLogic = /** @class */ (function () {
52
52
  return;
53
53
  }
54
54
  _this.currentColumn = _this.getColumnIndex(event, element);
55
- _this.currentGroup = _this.getGroupIndex(event);
56
- if (_this.groupPanelDivElement && _this.startGroup >= 0) {
57
- _this.currentGroup = Math.min(_this.currentGroup, _this.groupPanelDivElement.children.length - 2);
58
- }
55
+ var groupPanelChildren = _this.groupPanelDivElement.children;
56
+ _this.currentGroup = _this.isTargetGroupingContainer(event)
57
+ ? groupPanelChildren && groupPanelChildren.length
58
+ ? groupPanelChildren.length - 1
59
+ : 0
60
+ : _this.getGroupIndex(event);
59
61
  var invalidIndex = !_this.isValid();
60
62
  if (invalidIndex) {
61
63
  _this.currentColumn = -1;
@@ -63,7 +65,9 @@ var CommonDragLogic = /** @class */ (function () {
63
65
  }
64
66
  var targetElement = (_this.currentColumn >= 0) ?
65
67
  element.children[_this.columns[_this.currentColumn].index] :
66
- _this.groupPanelDivElement && _this.groupPanelDivElement.children[_this.currentGroup];
68
+ _this.isTargetGroupingContainer(event)
69
+ ? event.originalEvent.target
70
+ : _this.groupPanelDivElement && _this.groupPanelDivElement.children[_this.currentGroup];
67
71
  _this.updateDragElementClue(event, element, targetElement, invalidIndex);
68
72
  _this.updateDropElementClue(event, element, targetElement, invalidIndex);
69
73
  };
@@ -118,6 +122,10 @@ var CommonDragLogic = /** @class */ (function () {
118
122
  }
119
123
  return -1;
120
124
  };
125
+ CommonDragLogic.prototype.isTargetGroupingContainer = function (event) {
126
+ var target = event.originalEvent.target;
127
+ return target.className.indexOf('k-grouping-drop-container') !== -1;
128
+ };
121
129
  CommonDragLogic.prototype.getGroupIndex = function (event) {
122
130
  return getIndex(event, this.groupPanelDivElement);
123
131
  };
@@ -151,7 +159,7 @@ var CommonDragLogic = /** @class */ (function () {
151
159
  this.dragElementClue.top = (event.pageY + 10);
152
160
  this.dragElementClue.left = event.pageX;
153
161
  this.dragElementClue.innerText = innerText;
154
- this.dragElementClue.status = (invalidIndex || !targetElement) ? 'k-i-cancel' : 'k-i-add';
162
+ this.dragElementClue.status = (invalidIndex || !targetElement) ? 'k-i-cancel' : 'k-i-plus';
155
163
  };
156
164
  CommonDragLogic.prototype.updateDropElementClue = function (event, element, targetElement, invalidIndex) {
157
165
  if (!this.dropElementClue) {
@@ -162,15 +170,18 @@ var CommonDragLogic = /** @class */ (function () {
162
170
  return;
163
171
  }
164
172
  var rect = targetElement.getBoundingClientRect();
173
+ var groupElement = targetElement.closest('.k-grouping-header');
174
+ var rectParent = (groupElement || targetElement).getBoundingClientRect();
165
175
  var left = rect.left + event.pageX - event.clientX - 6;
166
- if (this.currentColumn > this.startColumn || this.currentGroup > this.startGroup && this.startGroup !== -1) {
176
+ if (!this.isTargetGroupingContainer(event) && (this.currentColumn > this.startColumn
177
+ || this.currentGroup > this.startGroup && this.startGroup !== -1)) {
167
178
  left += rect.width;
168
179
  }
169
- var top = rect.top + event.pageY - event.clientY;
180
+ var top = rectParent.top + event.pageY - event.clientY;
170
181
  this.dropElementClue.visible = true;
171
182
  this.dropElementClue.top = top;
172
183
  this.dropElementClue.left = left;
173
- this.dropElementClue.height = (this.currentColumn >= 0) ? element.clientHeight : rect.height;
184
+ this.dropElementClue.height = (this.currentColumn >= 0) ? element.clientHeight : rectParent.height;
174
185
  };
175
186
  return CommonDragLogic;
176
187
  }());
@@ -29,6 +29,7 @@ import { getTemplate } from '@progress/kendo-vue-common';
29
29
  import { Button, Toolbar, ToolbarItem } from '@progress/kendo-vue-buttons';
30
30
  import { DropDownList } from '@progress/kendo-vue-dropdowns';
31
31
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
32
+ import { xIcon } from '@progress/kendo-svg-icons';
32
33
  import { unaryOperator, stringOperator } from './operators';
33
34
  import { messages, filterClose, filterExpressionDropdownAriaLabel, filterExpressionOperatorDropdownAriaLabel } from '../messages/main';
34
35
  import { TextFilter } from './filters/TextFilter';
@@ -273,11 +274,13 @@ var ExpressionVue2 = {
273
274
  title: locService.toLanguageString(filterClose, messages[filterClose]),
274
275
  attrs: _this.v3 ? undefined : {
275
276
  title: locService.toLanguageString(filterClose, messages[filterClose]),
276
- icon: "close",
277
+ icon: "x",
278
+ svgIcon: xIcon,
277
279
  look: "flat",
278
280
  type: "button"
279
281
  },
280
- icon: "close",
282
+ icon: "x",
283
+ svgIcon: xIcon,
281
284
  look: "flat",
282
285
  type: "button",
283
286
  onClick: _this.onFilterRemove,
@@ -289,11 +292,13 @@ var ExpressionVue2 = {
289
292
  title: locService.toLanguageString(filterClose, messages[filterClose]),
290
293
  attrs: _this.v3 ? undefined : {
291
294
  title: locService.toLanguageString(filterClose, messages[filterClose]),
292
- icon: "close",
295
+ icon: "x",
296
+ svgIcon: xIcon,
293
297
  look: "flat",
294
298
  type: "button"
295
299
  },
296
- icon: "close",
300
+ icon: "x",
301
+ svgIcon: xIcon,
297
302
  look: "flat",
298
303
  type: "button",
299
304
  onClick: _this.onFilterRemove,
@@ -396,11 +401,13 @@ var ExpressionVue2 = {
396
401
  title: locService.toLanguageString(filterClose, messages[filterClose]),
397
402
  attrs: _this.v3 ? undefined : {
398
403
  title: locService.toLanguageString(filterClose, messages[filterClose]),
399
- icon: "close",
404
+ icon: "x",
405
+ svgIcon: xIcon,
400
406
  look: "flat",
401
407
  type: "button"
402
408
  },
403
- icon: "close",
409
+ icon: "x",
410
+ svgIcon: xIcon,
404
411
  look: "flat",
405
412
  type: "button",
406
413
  onClick: _this.onFilterRemove,
@@ -412,11 +419,13 @@ var ExpressionVue2 = {
412
419
  title: locService.toLanguageString(filterClose, messages[filterClose]),
413
420
  attrs: _this.v3 ? undefined : {
414
421
  title: locService.toLanguageString(filterClose, messages[filterClose]),
415
- icon: "close",
422
+ icon: "x",
423
+ svgIcon: xIcon,
416
424
  look: "flat",
417
425
  type: "button"
418
426
  },
419
- icon: "close",
427
+ icon: "x",
428
+ svgIcon: xIcon,
420
429
  look: "flat",
421
430
  type: "button",
422
431
  onClick: _this.onFilterRemove,