@progress/kendo-vue-data-tools 3.7.4-dev.202212300853 → 3.7.4-dev.202301091431
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-data-tools.js +1 -1
- package/dist/es/cells/FilterCell.js +35 -21
- package/dist/es/columnmenu/ColumnMenu.js +5 -2
- package/dist/es/columnmenu/ColumnMenuCheckboxFilter.js +4 -1
- package/dist/es/columnmenu/ColumnMenuSort.js +8 -8
- package/dist/es/drag/ColumnDraggable.js +6 -2
- package/dist/es/filter/Expression.js +17 -8
- package/dist/es/filter/GroupToolbar.js +33 -8
- package/dist/es/header/FilterRow.d.ts +1 -0
- package/dist/es/header/FilterRow.js +9 -6
- package/dist/es/header/Header.d.ts +1 -0
- package/dist/es/header/Header.js +12 -2
- package/dist/es/header/HeaderRow.d.ts +1 -0
- package/dist/es/header/HeaderRow.js +12 -5
- package/dist/es/header/HeaderTdElement.d.ts +46 -0
- package/dist/es/header/HeaderTdElement.js +92 -0
- package/dist/es/header/HeaderThElement.d.ts +8 -1
- package/dist/es/header/HeaderThElement.js +10 -2
- package/dist/es/header/main.d.ts +1 -0
- package/dist/es/header/main.js +1 -0
- package/dist/es/interfaces/FilterCellProps.d.ts +12 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/pager/Pager.d.ts +13 -1
- package/dist/es/pager/Pager.js +66 -28
- package/dist/es/pager/PagerInput.d.ts +9 -1
- package/dist/es/pager/PagerInput.js +16 -2
- package/dist/es/pager/PagerNavigationButton.d.ts +13 -0
- package/dist/es/pager/PagerNavigationButton.js +30 -20
- package/dist/es/pager/PagerNumericButtons.d.ts +5 -1
- package/dist/es/pager/PagerNumericButtons.js +61 -27
- package/dist/es/pager/PagerPageSizes.d.ts +1 -0
- package/dist/es/pager/PagerPageSizes.js +3 -0
- package/dist/esm/cells/FilterCell.js +35 -21
- package/dist/esm/columnmenu/ColumnMenu.js +5 -2
- package/dist/esm/columnmenu/ColumnMenuCheckboxFilter.js +4 -1
- package/dist/esm/columnmenu/ColumnMenuSort.js +8 -8
- package/dist/esm/drag/ColumnDraggable.js +6 -2
- package/dist/esm/filter/Expression.js +17 -8
- package/dist/esm/filter/GroupToolbar.js +33 -8
- package/dist/esm/header/FilterRow.d.ts +1 -0
- package/dist/esm/header/FilterRow.js +9 -6
- package/dist/esm/header/Header.d.ts +1 -0
- package/dist/esm/header/Header.js +12 -2
- package/dist/esm/header/HeaderRow.d.ts +1 -0
- package/dist/esm/header/HeaderRow.js +12 -5
- package/dist/esm/header/HeaderTdElement.d.ts +46 -0
- package/dist/esm/header/HeaderTdElement.js +92 -0
- package/dist/esm/header/HeaderThElement.d.ts +8 -1
- package/dist/esm/header/HeaderThElement.js +10 -2
- package/dist/esm/header/main.d.ts +1 -0
- package/dist/esm/header/main.js +1 -0
- package/dist/esm/interfaces/FilterCellProps.d.ts +12 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/pager/Pager.d.ts +13 -1
- package/dist/esm/pager/Pager.js +66 -28
- package/dist/esm/pager/PagerInput.d.ts +9 -1
- package/dist/esm/pager/PagerInput.js +16 -2
- package/dist/esm/pager/PagerNavigationButton.d.ts +13 -0
- package/dist/esm/pager/PagerNavigationButton.js +30 -20
- package/dist/esm/pager/PagerNumericButtons.d.ts +5 -1
- package/dist/esm/pager/PagerNumericButtons.js +61 -27
- package/dist/esm/pager/PagerPageSizes.d.ts +1 -0
- package/dist/esm/pager/PagerPageSizes.js +3 -0
- package/dist/npm/cells/FilterCell.js +34 -20
- package/dist/npm/columnmenu/ColumnMenu.js +5 -2
- package/dist/npm/columnmenu/ColumnMenuCheckboxFilter.js +4 -1
- package/dist/npm/columnmenu/ColumnMenuSort.js +8 -8
- package/dist/npm/drag/ColumnDraggable.js +6 -2
- package/dist/npm/filter/Expression.js +17 -8
- package/dist/npm/filter/GroupToolbar.js +33 -8
- package/dist/npm/header/FilterRow.d.ts +1 -0
- package/dist/npm/header/FilterRow.js +9 -6
- package/dist/npm/header/Header.d.ts +1 -0
- package/dist/npm/header/Header.js +11 -1
- package/dist/npm/header/HeaderRow.d.ts +1 -0
- package/dist/npm/header/HeaderRow.js +12 -5
- package/dist/npm/header/HeaderTdElement.d.ts +46 -0
- package/dist/npm/header/HeaderTdElement.js +99 -0
- package/dist/npm/header/HeaderThElement.d.ts +8 -1
- package/dist/npm/header/HeaderThElement.js +10 -2
- package/dist/npm/header/main.d.ts +1 -0
- package/dist/npm/header/main.js +1 -0
- package/dist/npm/interfaces/FilterCellProps.d.ts +12 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/pager/Pager.d.ts +13 -1
- package/dist/npm/pager/Pager.js +65 -27
- package/dist/npm/pager/PagerInput.d.ts +9 -1
- package/dist/npm/pager/PagerInput.js +16 -2
- package/dist/npm/pager/PagerNavigationButton.d.ts +13 -0
- package/dist/npm/pager/PagerNavigationButton.js +30 -20
- package/dist/npm/pager/PagerNumericButtons.d.ts +5 -1
- package/dist/npm/pager/PagerNumericButtons.js +61 -27
- package/dist/npm/pager/PagerPageSizes.d.ts +1 -0
- package/dist/npm/pager/PagerPageSizes.js +3 -0
- package/package.json +12 -11
|
@@ -18,6 +18,7 @@ var kendo_vue_dateinputs_1 = require("@progress/kendo-vue-dateinputs");
|
|
|
18
18
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
19
19
|
var filterCommon_1 = require("../filterCommon");
|
|
20
20
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
21
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
21
22
|
/**
|
|
22
23
|
* @hidden
|
|
23
24
|
*/
|
|
@@ -40,7 +41,8 @@ var FilterCellVue2 = {
|
|
|
40
41
|
booleanValues: Array,
|
|
41
42
|
onChange: Function,
|
|
42
43
|
render: [String, Function, Object],
|
|
43
|
-
ariaLabel: String
|
|
44
|
+
ariaLabel: String,
|
|
45
|
+
size: String
|
|
44
46
|
},
|
|
45
47
|
inject: {
|
|
46
48
|
kendoLocalizationService: {
|
|
@@ -91,6 +93,7 @@ var FilterCellVue2 = {
|
|
|
91
93
|
render: function render(createElement) {
|
|
92
94
|
var _this = this;
|
|
93
95
|
var h = gh || createElement;
|
|
96
|
+
var size = this.$props.size;
|
|
94
97
|
var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
95
98
|
var selectedOperator = this.$props.operators.find(function (item) {
|
|
96
99
|
return item.operator === _this.$props.operator;
|
|
@@ -109,6 +112,7 @@ var FilterCellVue2 = {
|
|
|
109
112
|
value: selectedOperator,
|
|
110
113
|
attrs: this.v3 ? undefined : {
|
|
111
114
|
value: selectedOperator,
|
|
115
|
+
size: size,
|
|
112
116
|
iconClassName: "k-i-filter k-button-icon",
|
|
113
117
|
"data-items": this.$props.operators,
|
|
114
118
|
textField: "text",
|
|
@@ -118,6 +122,7 @@ var FilterCellVue2 = {
|
|
|
118
122
|
},
|
|
119
123
|
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterDropDownOperatorAriaLabel, main_1.messages[main_1.filterDropDownOperatorAriaLabel])
|
|
120
124
|
},
|
|
125
|
+
size: size,
|
|
121
126
|
"class": "k-dropdown-operator",
|
|
122
127
|
iconClassName: "k-i-filter k-button-icon",
|
|
123
128
|
"data-items": this.$props.operators,
|
|
@@ -137,12 +142,14 @@ var FilterCellVue2 = {
|
|
|
137
142
|
return (
|
|
138
143
|
// @ts-ignore
|
|
139
144
|
h(kendo_vue_inputs_1.NumericTextBox, {
|
|
140
|
-
|
|
145
|
+
size: size,
|
|
141
146
|
attrs: this.v3 ? undefined : {
|
|
147
|
+
size: size,
|
|
142
148
|
value: value,
|
|
143
149
|
title: this.$props.title,
|
|
144
150
|
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterNumericFilterAriaLabel, main_1.messages[main_1.filterNumericFilterAriaLabel])
|
|
145
151
|
},
|
|
152
|
+
value: value,
|
|
146
153
|
onChange: function onChange(e) {
|
|
147
154
|
_this.inputChange(e.value, e.event);
|
|
148
155
|
},
|
|
@@ -159,12 +166,14 @@ var FilterCellVue2 = {
|
|
|
159
166
|
return (
|
|
160
167
|
// @ts-ignore
|
|
161
168
|
h(kendo_vue_dateinputs_1.DatePicker, {
|
|
162
|
-
|
|
169
|
+
size: size,
|
|
163
170
|
attrs: this.v3 ? undefined : {
|
|
171
|
+
size: size,
|
|
164
172
|
value: value,
|
|
165
173
|
title: this.$props.title,
|
|
166
174
|
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterDateFilterAriaLabel, main_1.messages[main_1.filterDateFilterAriaLabel])
|
|
167
175
|
},
|
|
176
|
+
value: value,
|
|
168
177
|
onChange: function onChange(e) {
|
|
169
178
|
_this.inputChange(e.value, e);
|
|
170
179
|
},
|
|
@@ -186,10 +195,9 @@ var FilterCellVue2 = {
|
|
|
186
195
|
on: this.v3 ? undefined : {
|
|
187
196
|
"change": this.boolDropdownChange
|
|
188
197
|
},
|
|
189
|
-
|
|
190
|
-
return item.operator === (value !== null ? value : '');
|
|
191
|
-
}),
|
|
198
|
+
size: size,
|
|
192
199
|
attrs: this.v3 ? undefined : {
|
|
200
|
+
size: size,
|
|
193
201
|
value: booleanValues.find(function (item) {
|
|
194
202
|
return item.operator === (value !== null ? value : '');
|
|
195
203
|
}),
|
|
@@ -198,6 +206,9 @@ var FilterCellVue2 = {
|
|
|
198
206
|
title: this.$props.title,
|
|
199
207
|
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterEnumFilterDropdownAriaLabel, main_1.messages[main_1.filterEnumFilterDropdownAriaLabel])
|
|
200
208
|
},
|
|
209
|
+
value: booleanValues.find(function (item) {
|
|
210
|
+
return item.operator === (value !== null ? value : '');
|
|
211
|
+
}),
|
|
201
212
|
"data-items": booleanValues,
|
|
202
213
|
textField: "text",
|
|
203
214
|
title: this.$props.title,
|
|
@@ -205,14 +216,15 @@ var FilterCellVue2 = {
|
|
|
205
216
|
})
|
|
206
217
|
);
|
|
207
218
|
default:
|
|
208
|
-
return h(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
219
|
+
return h(kendo_vue_inputs_1.Input, {
|
|
220
|
+
size: size,
|
|
221
|
+
attrs: this.v3 ? undefined : {
|
|
222
|
+
size: size,
|
|
223
|
+
value: value || '',
|
|
224
|
+
title: this.$props.title,
|
|
225
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterTextFilterAriaLabel, main_1.messages[main_1.filterTextFilterAriaLabel])
|
|
215
226
|
},
|
|
227
|
+
value: value || '',
|
|
216
228
|
onInput: function onInput(e) {
|
|
217
229
|
_this.inputChange(e.target.value, e);
|
|
218
230
|
},
|
|
@@ -222,28 +234,30 @@ var FilterCellVue2 = {
|
|
|
222
234
|
}
|
|
223
235
|
},
|
|
224
236
|
title: this.$props.title,
|
|
225
|
-
attrs: this.v3 ? undefined : {
|
|
226
|
-
title: this.$props.title,
|
|
227
|
-
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterTextFilterAriaLabel, main_1.messages[main_1.filterTextFilterAriaLabel])
|
|
228
|
-
},
|
|
229
237
|
"aria-label": this.ariaLabel || ls.toLanguageString(main_1.filterTextFilterAriaLabel, main_1.messages[main_1.filterTextFilterAriaLabel])
|
|
230
|
-
})
|
|
238
|
+
});
|
|
231
239
|
}
|
|
232
240
|
};
|
|
233
241
|
var defaultRendering = h("div", {
|
|
234
242
|
"class": "k-filtercell"
|
|
235
|
-
}, [h("
|
|
243
|
+
}, [h("div", {
|
|
244
|
+
"class": "k-filtercell-wrapper"
|
|
245
|
+
}, [filterComponent.call(this, this.$props.filterType, this.$props.value), h("div", {
|
|
236
246
|
"class": "k-filtercell-operator"
|
|
237
247
|
}, [renderOperatorEditor.call(this),
|
|
238
248
|
// @ts-ignore function children
|
|
239
249
|
h(kendo_vue_buttons_1.Button, {
|
|
240
|
-
|
|
250
|
+
size: size,
|
|
241
251
|
attrs: this.v3 ? undefined : {
|
|
252
|
+
size: size,
|
|
242
253
|
type: "button",
|
|
243
254
|
icon: 'filter-clear',
|
|
255
|
+
svgIcon: kendo_svg_icons_1.filterClearIcon,
|
|
244
256
|
title: ls.toLanguageString(main_1.columnMenuFilterClearButton, main_1.messages[main_1.columnMenuFilterClearButton])
|
|
245
257
|
},
|
|
258
|
+
type: "button",
|
|
246
259
|
icon: 'filter-clear',
|
|
260
|
+
svgIcon: kendo_svg_icons_1.filterClearIcon,
|
|
247
261
|
"class": {
|
|
248
262
|
/* button is always visible if there is either value or operator */
|
|
249
263
|
'k-disabled': !(!(this.$props.value === null || this.$props.value === '') || this.$props.operator)
|
|
@@ -12,6 +12,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
12
12
|
var inject = allVue.inject;
|
|
13
13
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
14
|
var kendo_vue_popup_1 = require("@progress/kendo-vue-popup");
|
|
15
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
15
16
|
var ColumnMenuContent_1 = require("./ColumnMenuContent");
|
|
16
17
|
var utils_1 = require("../navigation/utils");
|
|
17
18
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
@@ -142,8 +143,10 @@ var ColumnMenuVue2 = {
|
|
|
142
143
|
}, [h(kendo_vue_common_1.Icon, {
|
|
143
144
|
name: 'more-vertical',
|
|
144
145
|
attrs: this.v3 ? undefined : {
|
|
145
|
-
name: 'more-vertical'
|
|
146
|
-
|
|
146
|
+
name: 'more-vertical',
|
|
147
|
+
icon: kendo_svg_icons_1.moreVerticalIcon
|
|
148
|
+
},
|
|
149
|
+
icon: kendo_svg_icons_1.moreVerticalIcon
|
|
147
150
|
})]),
|
|
148
151
|
// @ts-ignore function children
|
|
149
152
|
h(kendo_vue_popup_1.Popup, {
|
|
@@ -35,6 +35,7 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
|
35
35
|
var ColumnMenuItem_1 = require("./ColumnMenuItem");
|
|
36
36
|
var ColumnMenuItemGroup_1 = require("./ColumnMenuItemGroup");
|
|
37
37
|
var ColumnMenuItemContent_1 = require("./ColumnMenuItemContent");
|
|
38
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
38
39
|
var kendo_vue_inputs_1 = require("@progress/kendo-vue-inputs");
|
|
39
40
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
40
41
|
var main_1 = require("../messages/main");
|
|
@@ -153,8 +154,10 @@ var ColumnMenuCheckboxFilterVue2 = {
|
|
|
153
154
|
}, [h(kendo_vue_common_1.Icon, {
|
|
154
155
|
name: 'search',
|
|
155
156
|
attrs: this.v3 ? undefined : {
|
|
156
|
-
name: 'search'
|
|
157
|
+
name: 'search',
|
|
158
|
+
icon: kendo_svg_icons_1.searchIcon
|
|
157
159
|
},
|
|
160
|
+
icon: kendo_svg_icons_1.searchIcon,
|
|
158
161
|
"class": "k-input-icon"
|
|
159
162
|
}), h("input", {
|
|
160
163
|
ref: 'searchBox',
|
|
@@ -173,10 +173,10 @@ var ColumnMenuSortVue2 = {
|
|
|
173
173
|
title: localizationService.toLanguageString(main_1.columnMenuSortAscending, main_1.messages[main_1.columnMenuSortAscending]),
|
|
174
174
|
attrs: _this.v3 ? undefined : {
|
|
175
175
|
title: localizationService.toLanguageString(main_1.columnMenuSortAscending, main_1.messages[main_1.columnMenuSortAscending]),
|
|
176
|
-
iconClass: 'k-i-sort-asc-
|
|
176
|
+
iconClass: 'k-i-sort-asc-small',
|
|
177
177
|
selected: sortedAsc(currentSortIndex, sort)
|
|
178
178
|
},
|
|
179
|
-
iconClass: 'k-i-sort-asc-
|
|
179
|
+
iconClass: 'k-i-sort-asc-small',
|
|
180
180
|
selected: sortedAsc(currentSortIndex, sort),
|
|
181
181
|
onMenuitemclick: _this.onAscClick,
|
|
182
182
|
on: _this.v3 ? undefined : {
|
|
@@ -188,10 +188,10 @@ var ColumnMenuSortVue2 = {
|
|
|
188
188
|
title: localizationService.toLanguageString(main_1.columnMenuSortDescending, main_1.messages[main_1.columnMenuSortDescending]),
|
|
189
189
|
attrs: _this.v3 ? undefined : {
|
|
190
190
|
title: localizationService.toLanguageString(main_1.columnMenuSortDescending, main_1.messages[main_1.columnMenuSortDescending]),
|
|
191
|
-
iconClass: 'k-i-sort-desc-
|
|
191
|
+
iconClass: 'k-i-sort-desc-small',
|
|
192
192
|
selected: sortedDesc(currentSortIndex, sort)
|
|
193
193
|
},
|
|
194
|
-
iconClass: 'k-i-sort-desc-
|
|
194
|
+
iconClass: 'k-i-sort-desc-small',
|
|
195
195
|
selected: sortedDesc(currentSortIndex, sort),
|
|
196
196
|
onMenuitemclick: _this.onDescClick,
|
|
197
197
|
on: _this.v3 ? undefined : {
|
|
@@ -202,10 +202,10 @@ var ColumnMenuSortVue2 = {
|
|
|
202
202
|
title: localizationService.toLanguageString(main_1.columnMenuSortAscending, main_1.messages[main_1.columnMenuSortAscending]),
|
|
203
203
|
attrs: _this.v3 ? undefined : {
|
|
204
204
|
title: localizationService.toLanguageString(main_1.columnMenuSortAscending, main_1.messages[main_1.columnMenuSortAscending]),
|
|
205
|
-
iconClass: 'k-i-sort-asc-
|
|
205
|
+
iconClass: 'k-i-sort-asc-small',
|
|
206
206
|
selected: sortedAsc(currentSortIndex, sort)
|
|
207
207
|
},
|
|
208
|
-
iconClass: 'k-i-sort-asc-
|
|
208
|
+
iconClass: 'k-i-sort-asc-small',
|
|
209
209
|
selected: sortedAsc(currentSortIndex, sort),
|
|
210
210
|
onMenuitemclick: _this.onAscClick,
|
|
211
211
|
on: _this.v3 ? undefined : {
|
|
@@ -215,10 +215,10 @@ var ColumnMenuSortVue2 = {
|
|
|
215
215
|
title: localizationService.toLanguageString(main_1.columnMenuSortDescending, main_1.messages[main_1.columnMenuSortDescending]),
|
|
216
216
|
attrs: _this.v3 ? undefined : {
|
|
217
217
|
title: localizationService.toLanguageString(main_1.columnMenuSortDescending, main_1.messages[main_1.columnMenuSortDescending]),
|
|
218
|
-
iconClass: 'k-i-sort-desc-
|
|
218
|
+
iconClass: 'k-i-sort-desc-small',
|
|
219
219
|
selected: sortedDesc(currentSortIndex, sort)
|
|
220
220
|
},
|
|
221
|
-
iconClass: 'k-i-sort-desc-
|
|
221
|
+
iconClass: 'k-i-sort-desc-small',
|
|
222
222
|
selected: sortedDesc(currentSortIndex, sort),
|
|
223
223
|
onMenuitemclick: _this.onDescClick,
|
|
224
224
|
on: _this.v3 ? undefined : {
|
|
@@ -63,8 +63,12 @@ var ColumnDraggableVue2 = {
|
|
|
63
63
|
onRelease: this.onRelease,
|
|
64
64
|
ref: 'draggable'
|
|
65
65
|
}, this.v3 ? function () {
|
|
66
|
-
return [h("tr",
|
|
67
|
-
|
|
66
|
+
return [h("tr", {
|
|
67
|
+
"class": 'k-table-row'
|
|
68
|
+
}, [defaultSlot])];
|
|
69
|
+
} : [h("tr", {
|
|
70
|
+
"class": 'k-table-row'
|
|
71
|
+
}, [defaultSlot])])
|
|
68
72
|
);
|
|
69
73
|
}
|
|
70
74
|
};
|
|
@@ -35,6 +35,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
|
35
35
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
36
36
|
var kendo_vue_dropdowns_1 = require("@progress/kendo-vue-dropdowns");
|
|
37
37
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
38
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
38
39
|
var operators_1 = require("./operators");
|
|
39
40
|
var main_1 = require("../messages/main");
|
|
40
41
|
var TextFilter_1 = require("./filters/TextFilter");
|
|
@@ -279,11 +280,13 @@ var ExpressionVue2 = {
|
|
|
279
280
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
280
281
|
attrs: _this.v3 ? undefined : {
|
|
281
282
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
282
|
-
icon: "
|
|
283
|
+
icon: "x",
|
|
284
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
283
285
|
look: "flat",
|
|
284
286
|
type: "button"
|
|
285
287
|
},
|
|
286
|
-
icon: "
|
|
288
|
+
icon: "x",
|
|
289
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
287
290
|
look: "flat",
|
|
288
291
|
type: "button",
|
|
289
292
|
onClick: _this.onFilterRemove,
|
|
@@ -295,11 +298,13 @@ var ExpressionVue2 = {
|
|
|
295
298
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
296
299
|
attrs: _this.v3 ? undefined : {
|
|
297
300
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
298
|
-
icon: "
|
|
301
|
+
icon: "x",
|
|
302
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
299
303
|
look: "flat",
|
|
300
304
|
type: "button"
|
|
301
305
|
},
|
|
302
|
-
icon: "
|
|
306
|
+
icon: "x",
|
|
307
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
303
308
|
look: "flat",
|
|
304
309
|
type: "button",
|
|
305
310
|
onClick: _this.onFilterRemove,
|
|
@@ -402,11 +407,13 @@ var ExpressionVue2 = {
|
|
|
402
407
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
403
408
|
attrs: _this.v3 ? undefined : {
|
|
404
409
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
405
|
-
icon: "
|
|
410
|
+
icon: "x",
|
|
411
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
406
412
|
look: "flat",
|
|
407
413
|
type: "button"
|
|
408
414
|
},
|
|
409
|
-
icon: "
|
|
415
|
+
icon: "x",
|
|
416
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
410
417
|
look: "flat",
|
|
411
418
|
type: "button",
|
|
412
419
|
onClick: _this.onFilterRemove,
|
|
@@ -418,11 +425,13 @@ var ExpressionVue2 = {
|
|
|
418
425
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
419
426
|
attrs: _this.v3 ? undefined : {
|
|
420
427
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
421
|
-
icon: "
|
|
428
|
+
icon: "x",
|
|
429
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
422
430
|
look: "flat",
|
|
423
431
|
type: "button"
|
|
424
432
|
},
|
|
425
|
-
icon: "
|
|
433
|
+
icon: "x",
|
|
434
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
426
435
|
look: "flat",
|
|
427
436
|
type: "button",
|
|
428
437
|
onClick: _this.onFilterRemove,
|
|
@@ -34,6 +34,7 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
|
34
34
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
35
35
|
var operators_1 = require("./operators");
|
|
36
36
|
var main_1 = require("../messages/main");
|
|
37
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
37
38
|
/**
|
|
38
39
|
* @hidden
|
|
39
40
|
*/
|
|
@@ -231,9 +232,11 @@ var GroupToolbarVue2 = {
|
|
|
231
232
|
attrs: _this.v3 ? undefined : {
|
|
232
233
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
233
234
|
icon: "filter-add-expression",
|
|
235
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
234
236
|
type: "button"
|
|
235
237
|
},
|
|
236
238
|
icon: "filter-add-expression",
|
|
239
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
237
240
|
type: "button",
|
|
238
241
|
onClick: _this.onAddExpression,
|
|
239
242
|
on: _this.v3 ? undefined : {
|
|
@@ -245,9 +248,11 @@ var GroupToolbarVue2 = {
|
|
|
245
248
|
attrs: _this.v3 ? undefined : {
|
|
246
249
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
247
250
|
icon: "filter-add-expression",
|
|
251
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
248
252
|
type: "button"
|
|
249
253
|
},
|
|
250
254
|
icon: "filter-add-expression",
|
|
255
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
251
256
|
type: "button",
|
|
252
257
|
onClick: _this.onAddExpression,
|
|
253
258
|
on: _this.v3 ? undefined : {
|
|
@@ -263,9 +268,11 @@ var GroupToolbarVue2 = {
|
|
|
263
268
|
attrs: _this.v3 ? undefined : {
|
|
264
269
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
265
270
|
icon: "filter-add-group",
|
|
271
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
266
272
|
type: "button"
|
|
267
273
|
},
|
|
268
274
|
icon: "filter-add-group",
|
|
275
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
269
276
|
type: "button",
|
|
270
277
|
onClick: _this.onAddGroup,
|
|
271
278
|
on: _this.v3 ? undefined : {
|
|
@@ -277,9 +284,11 @@ var GroupToolbarVue2 = {
|
|
|
277
284
|
attrs: _this.v3 ? undefined : {
|
|
278
285
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
279
286
|
icon: "filter-add-group",
|
|
287
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
280
288
|
type: "button"
|
|
281
289
|
},
|
|
282
290
|
icon: "filter-add-group",
|
|
291
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
283
292
|
type: "button",
|
|
284
293
|
onClick: _this.onAddGroup,
|
|
285
294
|
on: _this.v3 ? undefined : {
|
|
@@ -294,11 +303,13 @@ var GroupToolbarVue2 = {
|
|
|
294
303
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
295
304
|
attrs: _this.v3 ? undefined : {
|
|
296
305
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
297
|
-
icon: "
|
|
306
|
+
icon: "x",
|
|
307
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
298
308
|
look: "flat",
|
|
299
309
|
type: "button"
|
|
300
310
|
},
|
|
301
|
-
icon: "
|
|
311
|
+
icon: "x",
|
|
312
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
302
313
|
look: "flat",
|
|
303
314
|
type: "button",
|
|
304
315
|
onClick: _this.onGroupRemove,
|
|
@@ -310,11 +321,13 @@ var GroupToolbarVue2 = {
|
|
|
310
321
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
311
322
|
attrs: _this.v3 ? undefined : {
|
|
312
323
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
313
|
-
icon: "
|
|
324
|
+
icon: "x",
|
|
325
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
314
326
|
look: "flat",
|
|
315
327
|
type: "button"
|
|
316
328
|
},
|
|
317
|
-
icon: "
|
|
329
|
+
icon: "x",
|
|
330
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
318
331
|
look: "flat",
|
|
319
332
|
type: "button",
|
|
320
333
|
onClick: _this.onGroupRemove,
|
|
@@ -454,9 +467,11 @@ var GroupToolbarVue2 = {
|
|
|
454
467
|
attrs: _this.v3 ? undefined : {
|
|
455
468
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
456
469
|
icon: "filter-add-expression",
|
|
470
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
457
471
|
type: "button"
|
|
458
472
|
},
|
|
459
473
|
icon: "filter-add-expression",
|
|
474
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
460
475
|
type: "button",
|
|
461
476
|
onClick: _this.onAddExpression,
|
|
462
477
|
on: _this.v3 ? undefined : {
|
|
@@ -468,9 +483,11 @@ var GroupToolbarVue2 = {
|
|
|
468
483
|
attrs: _this.v3 ? undefined : {
|
|
469
484
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
470
485
|
icon: "filter-add-expression",
|
|
486
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
471
487
|
type: "button"
|
|
472
488
|
},
|
|
473
489
|
icon: "filter-add-expression",
|
|
490
|
+
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
474
491
|
type: "button",
|
|
475
492
|
onClick: _this.onAddExpression,
|
|
476
493
|
on: _this.v3 ? undefined : {
|
|
@@ -482,9 +499,11 @@ var GroupToolbarVue2 = {
|
|
|
482
499
|
attrs: _this.v3 ? undefined : {
|
|
483
500
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
484
501
|
icon: "filter-add-group",
|
|
502
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
485
503
|
type: "button"
|
|
486
504
|
},
|
|
487
505
|
icon: "filter-add-group",
|
|
506
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
488
507
|
type: "button",
|
|
489
508
|
onClick: _this.onAddGroup,
|
|
490
509
|
on: _this.v3 ? undefined : {
|
|
@@ -496,9 +515,11 @@ var GroupToolbarVue2 = {
|
|
|
496
515
|
attrs: _this.v3 ? undefined : {
|
|
497
516
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
498
517
|
icon: "filter-add-group",
|
|
518
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
499
519
|
type: "button"
|
|
500
520
|
},
|
|
501
521
|
icon: "filter-add-group",
|
|
522
|
+
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
502
523
|
type: "button",
|
|
503
524
|
onClick: _this.onAddGroup,
|
|
504
525
|
on: _this.v3 ? undefined : {
|
|
@@ -509,11 +530,13 @@ var GroupToolbarVue2 = {
|
|
|
509
530
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
510
531
|
attrs: _this.v3 ? undefined : {
|
|
511
532
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
512
|
-
icon: "
|
|
533
|
+
icon: "x",
|
|
534
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
513
535
|
look: "flat",
|
|
514
536
|
type: "button"
|
|
515
537
|
},
|
|
516
|
-
icon: "
|
|
538
|
+
icon: "x",
|
|
539
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
517
540
|
look: "flat",
|
|
518
541
|
type: "button",
|
|
519
542
|
onClick: _this.onGroupRemove,
|
|
@@ -525,11 +548,13 @@ var GroupToolbarVue2 = {
|
|
|
525
548
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
526
549
|
attrs: _this.v3 ? undefined : {
|
|
527
550
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
528
|
-
icon: "
|
|
551
|
+
icon: "x",
|
|
552
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
529
553
|
look: "flat",
|
|
530
554
|
type: "button"
|
|
531
555
|
},
|
|
532
|
-
icon: "
|
|
556
|
+
icon: "x",
|
|
557
|
+
svgIcon: kendo_svg_icons_1.xIcon,
|
|
533
558
|
look: "flat",
|
|
534
559
|
type: "button",
|
|
535
560
|
onClick: _this.onGroupRemove,
|
|
@@ -16,6 +16,7 @@ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
|
16
16
|
var main_1 = require("../messages/main");
|
|
17
17
|
var utils_1 = require("../navigation/utils");
|
|
18
18
|
var HeaderThElement_1 = require("./HeaderThElement");
|
|
19
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
19
20
|
/**
|
|
20
21
|
* @hidden
|
|
21
22
|
*/
|
|
@@ -29,7 +30,8 @@ var FilterRowVue2 = {
|
|
|
29
30
|
sort: [Object, Array],
|
|
30
31
|
cellRender: [String, Function, Object],
|
|
31
32
|
isRtl: Boolean,
|
|
32
|
-
ariaRowIndex: Number
|
|
33
|
+
ariaRowIndex: Number,
|
|
34
|
+
size: String
|
|
33
35
|
},
|
|
34
36
|
inject: {
|
|
35
37
|
kendoLocalizationService: {
|
|
@@ -38,7 +40,7 @@ var FilterRowVue2 = {
|
|
|
38
40
|
},
|
|
39
41
|
methods: {
|
|
40
42
|
headerCellClassName: function headerCellClassName(field, locked) {
|
|
41
|
-
var result = ""
|
|
43
|
+
var result = "k-header" + (locked ? ' k-grid-header-sticky' : '');
|
|
42
44
|
if (this.$props.sort && this.$props.sort.filter(function (descriptor) {
|
|
43
45
|
return descriptor.field === field;
|
|
44
46
|
}).length > 0) {
|
|
@@ -101,7 +103,6 @@ var FilterRowVue2 = {
|
|
|
101
103
|
})[0];
|
|
102
104
|
return found ? found.operator : null;
|
|
103
105
|
};
|
|
104
|
-
var filterCellProps;
|
|
105
106
|
var serviceIndex = 0,
|
|
106
107
|
index = -1;
|
|
107
108
|
var filterCells = this.$props.columns.filter(function (c) {
|
|
@@ -118,6 +119,7 @@ var FilterRowVue2 = {
|
|
|
118
119
|
attrs: this.v3 ? undefined : {
|
|
119
120
|
grid: this.$props.grid,
|
|
120
121
|
field: column.field,
|
|
122
|
+
size: this.$props.size,
|
|
121
123
|
title: column.filterTitle,
|
|
122
124
|
value: activeFilterValueFor(column.field, filterType === 'text' ? '' : null),
|
|
123
125
|
operator: activeOperatorFor(column.field),
|
|
@@ -127,6 +129,7 @@ var FilterRowVue2 = {
|
|
|
127
129
|
render: column.filterCell || this.$props.cellRender
|
|
128
130
|
},
|
|
129
131
|
field: column.field,
|
|
132
|
+
size: this.$props.size,
|
|
130
133
|
title: column.filterTitle,
|
|
131
134
|
value: activeFilterValueFor(column.field, filterType === 'text' ? '' : null),
|
|
132
135
|
operator: activeOperatorFor(column.field),
|
|
@@ -164,7 +167,7 @@ var FilterRowVue2 = {
|
|
|
164
167
|
},
|
|
165
168
|
navigatable: column.navigatable,
|
|
166
169
|
style: style,
|
|
167
|
-
"class": this.headerCellClassName(column.field, column.locked) || undefined,
|
|
170
|
+
"class": (0, kendo_vue_common_1.classNames)('k-table-th', this.headerCellClassName(column.field, column.locked) || undefined),
|
|
168
171
|
ariaLabel: ariaAttrs.ariaLabel,
|
|
169
172
|
ariaColumnIndex: ariaAttrs.ariaColumnIndex
|
|
170
173
|
}, this.v3 ? function () {
|
|
@@ -183,13 +186,13 @@ var FilterRowVue2 = {
|
|
|
183
186
|
},
|
|
184
187
|
navigatable: column.navigatable,
|
|
185
188
|
style: style,
|
|
186
|
-
"class": this.headerCellClassName(column.field, column.locked) || undefined,
|
|
189
|
+
"class": (0, kendo_vue_common_1.classNames)('k-table-th', this.headerCellClassName(column.field, column.locked) || undefined),
|
|
187
190
|
ariaLabel: ariaAttrs.ariaLabel,
|
|
188
191
|
ariaColumnIndex: ariaAttrs.ariaColumnIndex
|
|
189
192
|
});
|
|
190
193
|
}, this);
|
|
191
194
|
return h("tr", {
|
|
192
|
-
"class": "k-filter-row",
|
|
195
|
+
"class": "k-table-row k-filter-row",
|
|
193
196
|
"aria-rowindex": this.ariaRowIndex,
|
|
194
197
|
attrs: this.v3 ? undefined : {
|
|
195
198
|
"aria-rowindex": this.ariaRowIndex,
|
|
@@ -21,7 +21,8 @@ var HeaderVue2 = {
|
|
|
21
21
|
headerRow: Object,
|
|
22
22
|
columnResize: Object,
|
|
23
23
|
cols: Array,
|
|
24
|
-
draggable: Boolean
|
|
24
|
+
draggable: Boolean,
|
|
25
|
+
size: String
|
|
25
26
|
},
|
|
26
27
|
data: function data() {
|
|
27
28
|
return {
|
|
@@ -37,6 +38,14 @@ var HeaderVue2 = {
|
|
|
37
38
|
'k-grid-header': true,
|
|
38
39
|
'k-grid-draggable-header': this.$props.draggable
|
|
39
40
|
};
|
|
41
|
+
},
|
|
42
|
+
tableClass: function tableClass() {
|
|
43
|
+
var _a;
|
|
44
|
+
var size = this.$props.size;
|
|
45
|
+
return _a = {
|
|
46
|
+
'k-table': true,
|
|
47
|
+
'k-grid-header-table': true
|
|
48
|
+
}, _a["k-table-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
40
49
|
}
|
|
41
50
|
},
|
|
42
51
|
mounted: function mounted() {
|
|
@@ -101,6 +110,7 @@ var HeaderVue2 = {
|
|
|
101
110
|
role: "presentation"
|
|
102
111
|
}
|
|
103
112
|
}, [h("table", {
|
|
113
|
+
"class": this.tableClass,
|
|
104
114
|
ref: (0, kendo_vue_common_1.setRef)(this, 'table'),
|
|
105
115
|
role: "presentation",
|
|
106
116
|
attrs: this.v3 ? undefined : {
|