@progress/kendo-vue-data-tools 3.5.3 → 3.5.4-dev.202209071223
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.d.ts +7 -2
- package/dist/es/cells/FilterCell.js +32 -21
- package/dist/es/filter/Expression.js +33 -17
- package/dist/es/filter/filters/EnumFilter.js +10 -5
- package/dist/es/filter/filters/TextFilter.d.ts +4 -0
- package/dist/es/filter/filters/TextFilter.js +11 -3
- package/dist/es/header/FilterRow.d.ts +8 -2
- package/dist/es/header/FilterRow.js +9 -2
- package/dist/es/header/Header.js +0 -4
- package/dist/es/header/HeaderCell.d.ts +1 -1
- package/dist/es/header/HeaderCell.js +8 -5
- package/dist/es/header/HeaderRow.js +20 -7
- package/dist/es/interfaces/FilterCellProps.d.ts +4 -0
- package/dist/es/messages/main.d.ts +45 -0
- package/dist/es/messages/main.js +45 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/pager/Pager.js +10 -9
- package/dist/es/pager/PagerNavigationButton.d.ts +7 -1
- package/dist/es/pager/PagerNavigationButton.js +6 -1
- package/dist/es/pager/PagerNumericButtons.js +1 -1
- package/dist/esm/cells/FilterCell.d.ts +7 -2
- package/dist/esm/cells/FilterCell.js +32 -21
- package/dist/esm/filter/Expression.js +33 -17
- package/dist/esm/filter/filters/EnumFilter.js +10 -5
- package/dist/esm/filter/filters/TextFilter.d.ts +4 -0
- package/dist/esm/filter/filters/TextFilter.js +11 -3
- package/dist/esm/header/FilterRow.d.ts +8 -2
- package/dist/esm/header/FilterRow.js +9 -2
- package/dist/esm/header/Header.js +0 -4
- package/dist/esm/header/HeaderCell.d.ts +1 -1
- package/dist/esm/header/HeaderCell.js +8 -5
- package/dist/esm/header/HeaderRow.js +20 -7
- package/dist/esm/interfaces/FilterCellProps.d.ts +4 -0
- package/dist/esm/messages/main.d.ts +45 -0
- package/dist/esm/messages/main.js +45 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/pager/Pager.js +10 -9
- package/dist/esm/pager/PagerNavigationButton.d.ts +7 -1
- package/dist/esm/pager/PagerNavigationButton.js +6 -1
- package/dist/esm/pager/PagerNumericButtons.js +1 -1
- package/dist/npm/cells/FilterCell.d.ts +7 -2
- package/dist/npm/cells/FilterCell.js +31 -20
- package/dist/npm/filter/Expression.js +32 -16
- package/dist/npm/filter/filters/EnumFilter.js +9 -4
- package/dist/npm/filter/filters/TextFilter.d.ts +4 -0
- package/dist/npm/filter/filters/TextFilter.js +13 -3
- package/dist/npm/header/FilterRow.d.ts +8 -2
- package/dist/npm/header/FilterRow.js +9 -2
- package/dist/npm/header/Header.js +0 -4
- package/dist/npm/header/HeaderCell.d.ts +1 -1
- package/dist/npm/header/HeaderCell.js +8 -5
- package/dist/npm/header/HeaderRow.js +20 -7
- package/dist/npm/interfaces/FilterCellProps.d.ts +4 -0
- package/dist/npm/messages/main.d.ts +45 -0
- package/dist/npm/messages/main.js +46 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/pager/Pager.js +10 -9
- package/dist/npm/pager/PagerNavigationButton.d.ts +7 -1
- package/dist/npm/pager/PagerNavigationButton.js +6 -1
- package/dist/npm/pager/PagerNumericButtons.js +1 -1
- package/package.json +10 -10
|
@@ -262,6 +262,42 @@ export declare const sortAriaLabel = "sort.ariaLabel";
|
|
|
262
262
|
* @hidden
|
|
263
263
|
*/
|
|
264
264
|
export declare const filterAriaLabel = "filter.ariaLabel";
|
|
265
|
+
/**
|
|
266
|
+
* @hidden
|
|
267
|
+
*/
|
|
268
|
+
export declare const filterGroupAriaLabel = "filter.groupAriaLabel";
|
|
269
|
+
/**
|
|
270
|
+
* @hidden
|
|
271
|
+
*/
|
|
272
|
+
export declare const filterExpressionAriaLabel = "filter.expressionAriaLabel";
|
|
273
|
+
/**
|
|
274
|
+
* @hidden
|
|
275
|
+
*/
|
|
276
|
+
export declare const filterExpressionDropdownAriaLabel = "filter.expressionDropdownAriaLabel";
|
|
277
|
+
/**
|
|
278
|
+
* @hidden
|
|
279
|
+
*/
|
|
280
|
+
export declare const filterExpressionOperatorDropdownAriaLabel = "filter.expressionOperatorDropdownAriaLabel";
|
|
281
|
+
/**
|
|
282
|
+
* @hidden
|
|
283
|
+
*/
|
|
284
|
+
export declare const filterEnumFilterDropdownAriaLabel = "filter.enumFilterDropdownAriaLabel";
|
|
285
|
+
/**
|
|
286
|
+
* @hidden
|
|
287
|
+
*/
|
|
288
|
+
export declare const filterNumericFilterAriaLabel = "filter.numericFilterAriaLabel";
|
|
289
|
+
/**
|
|
290
|
+
* @hidden
|
|
291
|
+
*/
|
|
292
|
+
export declare const filterTextFilterAriaLabel = "filter.textFilterAriaLabel";
|
|
293
|
+
/**
|
|
294
|
+
* @hidden
|
|
295
|
+
*/
|
|
296
|
+
export declare const filterDateFilterAriaLabel = "filter.dateFilterAriaLabel";
|
|
297
|
+
/**
|
|
298
|
+
* @hidden
|
|
299
|
+
*/
|
|
300
|
+
export declare const filterDropDownOperatorAriaLabel = "filter.dropdownOperatorAriaLabel";
|
|
265
301
|
/**
|
|
266
302
|
* @hidden
|
|
267
303
|
*/
|
|
@@ -304,6 +340,15 @@ export declare const messages: {
|
|
|
304
340
|
"filter.addExpression": string;
|
|
305
341
|
"filter.addGroup": string;
|
|
306
342
|
"filter.close": string;
|
|
343
|
+
"filter.groupAriaLabel": string;
|
|
344
|
+
"filter.expressionAriaLabel": string;
|
|
345
|
+
"filter.expressionDropdownAriaLabel": string;
|
|
346
|
+
"filter.expressionOperatorDropdownAriaLabel": string;
|
|
347
|
+
"filter.enumFilterDropdownAriaLabel": string;
|
|
348
|
+
"filter.numericFilterAriaLabel": string;
|
|
349
|
+
"filter.textFilterAriaLabel": string;
|
|
350
|
+
"filter.dateFilterAriaLabel": string;
|
|
351
|
+
"filter.dropdownOperatorAriaLabel": string;
|
|
307
352
|
"columnMenu.filterChooseOperator": string;
|
|
308
353
|
"columnMenu.filterClearButton": string;
|
|
309
354
|
"columnMenu.filterSubmitButton": string;
|
package/dist/es/messages/main.js
CHANGED
|
@@ -263,6 +263,42 @@ export var sortAriaLabel = 'sort.ariaLabel';
|
|
|
263
263
|
* @hidden
|
|
264
264
|
*/
|
|
265
265
|
export var filterAriaLabel = 'filter.ariaLabel';
|
|
266
|
+
/**
|
|
267
|
+
* @hidden
|
|
268
|
+
*/
|
|
269
|
+
export var filterGroupAriaLabel = 'filter.groupAriaLabel';
|
|
270
|
+
/**
|
|
271
|
+
* @hidden
|
|
272
|
+
*/
|
|
273
|
+
export var filterExpressionAriaLabel = 'filter.expressionAriaLabel';
|
|
274
|
+
/**
|
|
275
|
+
* @hidden
|
|
276
|
+
*/
|
|
277
|
+
export var filterExpressionDropdownAriaLabel = 'filter.expressionDropdownAriaLabel';
|
|
278
|
+
/**
|
|
279
|
+
* @hidden
|
|
280
|
+
*/
|
|
281
|
+
export var filterExpressionOperatorDropdownAriaLabel = 'filter.expressionOperatorDropdownAriaLabel';
|
|
282
|
+
/**
|
|
283
|
+
* @hidden
|
|
284
|
+
*/
|
|
285
|
+
export var filterEnumFilterDropdownAriaLabel = 'filter.enumFilterDropdownAriaLabel';
|
|
286
|
+
/**
|
|
287
|
+
* @hidden
|
|
288
|
+
*/
|
|
289
|
+
export var filterNumericFilterAriaLabel = 'filter.numericFilterAriaLabel';
|
|
290
|
+
/**
|
|
291
|
+
* @hidden
|
|
292
|
+
*/
|
|
293
|
+
export var filterTextFilterAriaLabel = 'filter.textFilterAriaLabel';
|
|
294
|
+
/**
|
|
295
|
+
* @hidden
|
|
296
|
+
*/
|
|
297
|
+
export var filterDateFilterAriaLabel = 'filter.dateFilterAriaLabel';
|
|
298
|
+
/**
|
|
299
|
+
* @hidden
|
|
300
|
+
*/
|
|
301
|
+
export var filterDropDownOperatorAriaLabel = 'filter.dropdownOperatorAriaLabel';
|
|
266
302
|
/**
|
|
267
303
|
* @hidden
|
|
268
304
|
*/
|
|
@@ -305,6 +341,15 @@ export var messages = (_a = {},
|
|
|
305
341
|
_a[filterAddExpression] = 'Add Expression',
|
|
306
342
|
_a[filterAddGroup] = 'Add Group',
|
|
307
343
|
_a[filterClose] = 'Close',
|
|
344
|
+
_a[filterGroupAriaLabel] = 'Filter toolbar',
|
|
345
|
+
_a[filterExpressionAriaLabel] = 'Filter expression row',
|
|
346
|
+
_a[filterExpressionDropdownAriaLabel] = 'Filter dropdown',
|
|
347
|
+
_a[filterExpressionOperatorDropdownAriaLabel] = 'Filter operator dropdown',
|
|
348
|
+
_a[filterEnumFilterDropdownAriaLabel] = 'Select True/False',
|
|
349
|
+
_a[filterNumericFilterAriaLabel] = 'Enter number filter',
|
|
350
|
+
_a[filterTextFilterAriaLabel] = 'Enter text filter',
|
|
351
|
+
_a[filterDateFilterAriaLabel] = 'Enter date filter',
|
|
352
|
+
_a[filterDropDownOperatorAriaLabel] = 'Choose Operator',
|
|
308
353
|
_a[columnMenuFilterChooseOperator] = 'Choose Operator',
|
|
309
354
|
_a[columnMenuFilterClearButton] = 'Clear',
|
|
310
355
|
_a[columnMenuFilterSubmitButton] = 'Filter',
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-data-tools',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662553004,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/pager/Pager.js
CHANGED
|
@@ -109,7 +109,8 @@ var PagerVue2 = {
|
|
|
109
109
|
wrapperClass: {
|
|
110
110
|
get: function get() {
|
|
111
111
|
return {
|
|
112
|
-
'k-
|
|
112
|
+
'k-widget': true,
|
|
113
|
+
'k-pager': true,
|
|
113
114
|
'k-pager-sm': this.size === 'small',
|
|
114
115
|
'k-pager-md': this.size === 'medium'
|
|
115
116
|
};
|
|
@@ -269,10 +270,10 @@ var PagerVue2 = {
|
|
|
269
270
|
attrs: this.v3 ? undefined : {
|
|
270
271
|
page: 1,
|
|
271
272
|
title: localizationService.toLanguageString(firstPageMessage.messageKey, firstPageMessage.defaultMessage),
|
|
272
|
-
icon: '
|
|
273
|
+
icon: 'caret-alt-to-left'
|
|
273
274
|
},
|
|
274
275
|
title: localizationService.toLanguageString(firstPageMessage.messageKey, firstPageMessage.defaultMessage),
|
|
275
|
-
icon: '
|
|
276
|
+
icon: 'caret-alt-to-left',
|
|
276
277
|
onPagechange: this.changePage,
|
|
277
278
|
on: this.v3 ? undefined : {
|
|
278
279
|
"pagechange": this.changePage
|
|
@@ -285,10 +286,10 @@ var PagerVue2 = {
|
|
|
285
286
|
attrs: this.v3 ? undefined : {
|
|
286
287
|
page: this.currentPage - 1,
|
|
287
288
|
title: localizationService.toLanguageString(previousPageMessage.messageKey, previousPageMessage.defaultMessage),
|
|
288
|
-
icon: '
|
|
289
|
+
icon: 'caret-alt-left'
|
|
289
290
|
},
|
|
290
291
|
title: localizationService.toLanguageString(previousPageMessage.messageKey, previousPageMessage.defaultMessage),
|
|
291
|
-
icon: '
|
|
292
|
+
icon: 'caret-alt-left',
|
|
292
293
|
onPagechange: this.changePage,
|
|
293
294
|
on: this.v3 ? undefined : {
|
|
294
295
|
"pagechange": this.changePage
|
|
@@ -301,10 +302,10 @@ var PagerVue2 = {
|
|
|
301
302
|
attrs: this.v3 ? undefined : {
|
|
302
303
|
page: this.currentPage + 1,
|
|
303
304
|
title: localizationService.toLanguageString(nextPageMessage.messageKey, nextPageMessage.defaultMessage),
|
|
304
|
-
icon: '
|
|
305
|
+
icon: 'caret-alt-right'
|
|
305
306
|
},
|
|
306
307
|
title: localizationService.toLanguageString(nextPageMessage.messageKey, nextPageMessage.defaultMessage),
|
|
307
|
-
icon: '
|
|
308
|
+
icon: 'caret-alt-right',
|
|
308
309
|
onPagechange: this.changePage,
|
|
309
310
|
on: this.v3 ? undefined : {
|
|
310
311
|
"pagechange": this.changePage
|
|
@@ -317,10 +318,10 @@ var PagerVue2 = {
|
|
|
317
318
|
attrs: this.v3 ? undefined : {
|
|
318
319
|
page: this.totalPages,
|
|
319
320
|
title: localizationService.toLanguageString(lastPageMessage.messageKey, lastPageMessage.defaultMessage),
|
|
320
|
-
icon: '
|
|
321
|
+
icon: 'caret-alt-to-right'
|
|
321
322
|
},
|
|
322
323
|
title: localizationService.toLanguageString(lastPageMessage.messageKey, lastPageMessage.defaultMessage),
|
|
323
|
-
icon: '
|
|
324
|
+
icon: 'caret-alt-to-right',
|
|
324
325
|
onPagechange: this.changePage,
|
|
325
326
|
on: this.v3 ? undefined : {
|
|
326
327
|
"pagechange": this.changePage
|
|
@@ -29,6 +29,12 @@ export interface PagerNavigationButtonEmits {
|
|
|
29
29
|
export interface PagerNavigationButtonMethods extends Vue2type {
|
|
30
30
|
changePage: (e: any) => void;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export interface PagerNavigationButtonComputed {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}
|
|
32
38
|
/**
|
|
33
39
|
* @hidden
|
|
34
40
|
*/
|
|
@@ -37,7 +43,7 @@ export interface PagerNavigationButtonState {
|
|
|
37
43
|
/**
|
|
38
44
|
* @hidden
|
|
39
45
|
*/
|
|
40
|
-
export interface PagerNavigationButtonAll extends PagerNavigationButtonMethods, PagerNavigationButtonState {
|
|
46
|
+
export interface PagerNavigationButtonAll extends PagerNavigationButtonMethods, PagerNavigationButtonState, PagerNavigationButtonProps, PagerNavigationButtonComputed {
|
|
41
47
|
}
|
|
42
48
|
/**
|
|
43
49
|
* @hidden
|
|
@@ -14,6 +14,11 @@ var PagerNavigationButtonVue2 = {
|
|
|
14
14
|
icon: String,
|
|
15
15
|
page: Number
|
|
16
16
|
},
|
|
17
|
+
computed: {
|
|
18
|
+
iconClass: function iconClass() {
|
|
19
|
+
return 'k-icon k-i-' + this.icon;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
17
22
|
inject: {
|
|
18
23
|
kendoLocalizationService: {
|
|
19
24
|
default: null
|
|
@@ -51,7 +56,7 @@ var PagerNavigationButtonVue2 = {
|
|
|
51
56
|
},
|
|
52
57
|
title: this.$props.title
|
|
53
58
|
}, [h("span", {
|
|
54
|
-
"class": this
|
|
59
|
+
"class": this.iconClass,
|
|
55
60
|
"aria-label": this.$props.title,
|
|
56
61
|
attrs: this.v3 ? undefined : {
|
|
57
62
|
"aria-label": this.$props.title
|
|
@@ -135,7 +135,7 @@ var PagerNumericButtonsVue2 = {
|
|
|
135
135
|
return h("div", {
|
|
136
136
|
"class": "k-pager-numbers-wrap"
|
|
137
137
|
}, [this.$props.size !== 'small' ? h("ul", {
|
|
138
|
-
"class": "k-pager-numbers
|
|
138
|
+
"class": "k-pager-numbers"
|
|
139
139
|
}, [prevDots, numerics, postDots]) : dropdown.call(this, buttons)]);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
@@ -7,7 +7,7 @@ import { FilterCellProps } from '../interfaces/FilterCellProps';
|
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
|
-
export interface FilterCellMethods
|
|
10
|
+
export interface FilterCellMethods {
|
|
11
11
|
triggerClick: () => void;
|
|
12
12
|
inputChange: (value: any, e: any) => void;
|
|
13
13
|
operatorChange: (operatorValue: any, e: any) => void;
|
|
@@ -18,7 +18,12 @@ export interface FilterCellMethods extends Vue2type {
|
|
|
18
18
|
/**
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
export interface FilterCellAll extends FilterCellMethods, FilterCellProps, Vue2type {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
declare let FilterCellVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<FilterCellAll>, {}, RecordPropsDefinition<FilterCellProps>>;
|
|
22
27
|
/**
|
|
23
28
|
* @hidden
|
|
24
29
|
*/
|
|
@@ -5,7 +5,7 @@ var gh = allVue.h;
|
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
8
|
-
import { messages, columnMenuFilterClearButton as filterClearButton, columnMenuFilterChooseOperator as filterChooseOperator } from '../messages/main.js';
|
|
8
|
+
import { messages, columnMenuFilterClearButton as filterClearButton, columnMenuFilterChooseOperator as filterChooseOperator, filterTextFilterAriaLabel, filterEnumFilterDropdownAriaLabel, filterDateFilterAriaLabel, filterNumericFilterAriaLabel, filterDropDownOperatorAriaLabel } from '../messages/main.js';
|
|
9
9
|
import { DropDownList } from '@progress/kendo-vue-dropdowns';
|
|
10
10
|
import { NumericTextBox } from '@progress/kendo-vue-inputs';
|
|
11
11
|
import { DatePicker } from '@progress/kendo-vue-dateinputs';
|
|
@@ -34,7 +34,8 @@ var FilterCellVue2 = {
|
|
|
34
34
|
operators: Array,
|
|
35
35
|
booleanValues: Array,
|
|
36
36
|
onChange: Function,
|
|
37
|
-
render: [String, Function, Object]
|
|
37
|
+
render: [String, Function, Object],
|
|
38
|
+
ariaLabel: String
|
|
38
39
|
},
|
|
39
40
|
inject: {
|
|
40
41
|
kendoLocalizationService: {
|
|
@@ -86,7 +87,7 @@ var FilterCellVue2 = {
|
|
|
86
87
|
var _this = this;
|
|
87
88
|
|
|
88
89
|
var h = gh || createElement;
|
|
89
|
-
var
|
|
90
|
+
var ls = provideLocalizationService(this);
|
|
90
91
|
var selectedOperator = this.$props.operators.find(function (item) {
|
|
91
92
|
return item.operator === _this.$props.operator;
|
|
92
93
|
}) || null;
|
|
@@ -108,19 +109,21 @@ var FilterCellVue2 = {
|
|
|
108
109
|
iconClassName: "k-i-filter k-icon",
|
|
109
110
|
"data-items": this.$props.operators,
|
|
110
111
|
textField: "text",
|
|
111
|
-
title:
|
|
112
|
+
title: ls.toLanguageString(filterChooseOperator, messages[filterChooseOperator]),
|
|
112
113
|
popupSettings: {
|
|
113
114
|
width: ''
|
|
114
|
-
}
|
|
115
|
+
},
|
|
116
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterDropDownOperatorAriaLabel, messages[filterDropDownOperatorAriaLabel])
|
|
115
117
|
},
|
|
116
118
|
"class": "k-dropdown-operator",
|
|
117
119
|
iconClassName: "k-i-filter k-icon",
|
|
118
120
|
"data-items": this.$props.operators,
|
|
119
121
|
textField: "text",
|
|
120
|
-
title:
|
|
122
|
+
title: ls.toLanguageString(filterChooseOperator, messages[filterChooseOperator]),
|
|
121
123
|
popupSettings: {
|
|
122
124
|
width: ''
|
|
123
|
-
}
|
|
125
|
+
},
|
|
126
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterDropDownOperatorAriaLabel, messages[filterDropDownOperatorAriaLabel])
|
|
124
127
|
})
|
|
125
128
|
);
|
|
126
129
|
};
|
|
@@ -135,7 +138,8 @@ var FilterCellVue2 = {
|
|
|
135
138
|
value: value,
|
|
136
139
|
attrs: this.v3 ? undefined : {
|
|
137
140
|
value: value,
|
|
138
|
-
title: this.$props.title
|
|
141
|
+
title: this.$props.title,
|
|
142
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterNumericFilterAriaLabel, messages[filterNumericFilterAriaLabel])
|
|
139
143
|
},
|
|
140
144
|
onChange: function onChange(e) {
|
|
141
145
|
_this.inputChange(e.value, e.event);
|
|
@@ -145,7 +149,8 @@ var FilterCellVue2 = {
|
|
|
145
149
|
_this.inputChange(e.value, e.event);
|
|
146
150
|
}
|
|
147
151
|
},
|
|
148
|
-
title: this.$props.title
|
|
152
|
+
title: this.$props.title,
|
|
153
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterNumericFilterAriaLabel, messages[filterNumericFilterAriaLabel])
|
|
149
154
|
})
|
|
150
155
|
);
|
|
151
156
|
|
|
@@ -155,7 +160,8 @@ var FilterCellVue2 = {
|
|
|
155
160
|
value: value,
|
|
156
161
|
attrs: this.v3 ? undefined : {
|
|
157
162
|
value: value,
|
|
158
|
-
title: this.$props.title
|
|
163
|
+
title: this.$props.title,
|
|
164
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterDateFilterAriaLabel, messages[filterDateFilterAriaLabel])
|
|
159
165
|
},
|
|
160
166
|
onChange: function onChange(e) {
|
|
161
167
|
_this.inputChange(e.value, e);
|
|
@@ -165,7 +171,8 @@ var FilterCellVue2 = {
|
|
|
165
171
|
_this.inputChange(e.value, e);
|
|
166
172
|
}
|
|
167
173
|
},
|
|
168
|
-
title: this.$props.title
|
|
174
|
+
title: this.$props.title,
|
|
175
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterDateFilterAriaLabel, messages[filterDateFilterAriaLabel])
|
|
169
176
|
})
|
|
170
177
|
);
|
|
171
178
|
|
|
@@ -186,11 +193,13 @@ var FilterCellVue2 = {
|
|
|
186
193
|
}),
|
|
187
194
|
"data-items": booleanValues,
|
|
188
195
|
textField: "text",
|
|
189
|
-
title: this.$props.title
|
|
196
|
+
title: this.$props.title,
|
|
197
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterEnumFilterDropdownAriaLabel, messages[filterEnumFilterDropdownAriaLabel])
|
|
190
198
|
},
|
|
191
199
|
"data-items": booleanValues,
|
|
192
200
|
textField: "text",
|
|
193
|
-
title: this.$props.title
|
|
201
|
+
title: this.$props.title,
|
|
202
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterEnumFilterDropdownAriaLabel, messages[filterEnumFilterDropdownAriaLabel])
|
|
194
203
|
})
|
|
195
204
|
);
|
|
196
205
|
|
|
@@ -213,35 +222,37 @@ var FilterCellVue2 = {
|
|
|
213
222
|
},
|
|
214
223
|
title: this.$props.title,
|
|
215
224
|
attrs: this.v3 ? undefined : {
|
|
216
|
-
title: this.$props.title
|
|
217
|
-
|
|
225
|
+
title: this.$props.title,
|
|
226
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterTextFilterAriaLabel, messages[filterTextFilterAriaLabel])
|
|
227
|
+
},
|
|
228
|
+
"aria-label": this.ariaLabel || ls.toLanguageString(filterTextFilterAriaLabel, messages[filterTextFilterAriaLabel])
|
|
218
229
|
})]);
|
|
219
230
|
}
|
|
220
231
|
};
|
|
221
232
|
|
|
222
233
|
var defaultRendering = h("div", {
|
|
223
234
|
"class": "k-filtercell"
|
|
224
|
-
}, [h("div", {
|
|
225
|
-
"class": "k-filtercell-
|
|
226
|
-
}, [
|
|
235
|
+
}, [h("span", [filterComponent.call(this, this.$props.filterType, this.$props.value), h("div", {
|
|
236
|
+
"class": "k-filtercell-operator"
|
|
237
|
+
}, [renderOperatorEditor.call(this), // @ts-ignore function children
|
|
227
238
|
h(Button, {
|
|
228
239
|
type: "button",
|
|
229
240
|
attrs: this.v3 ? undefined : {
|
|
230
241
|
type: "button",
|
|
231
242
|
icon: 'filter-clear',
|
|
232
|
-
title:
|
|
243
|
+
title: ls.toLanguageString(filterClearButton, messages[filterClearButton])
|
|
233
244
|
},
|
|
234
245
|
icon: 'filter-clear',
|
|
235
246
|
"class": {
|
|
236
247
|
/* button is always visible if there is either value or operator */
|
|
237
248
|
'k-disabled': !(!(this.$props.value === null || this.$props.value === '') || this.$props.operator)
|
|
238
249
|
},
|
|
239
|
-
title:
|
|
250
|
+
title: ls.toLanguageString(filterClearButton, messages[filterClearButton]),
|
|
240
251
|
onClick: this.clear,
|
|
241
252
|
on: this.v3 ? undefined : {
|
|
242
253
|
"click": this.clear
|
|
243
254
|
}
|
|
244
|
-
})])]);
|
|
255
|
+
})])])]);
|
|
245
256
|
var gridListeners = this.$props.grid ? getListeners.call(this.$props.grid) : null;
|
|
246
257
|
var cellRenderFunction = templateRendering.call(this.$props.grid, this.$props.render, gridListeners);
|
|
247
258
|
return getTemplate.call(this, {
|
|
@@ -37,7 +37,7 @@ import { Button, Toolbar, ToolbarItem } from '@progress/kendo-vue-buttons';
|
|
|
37
37
|
import { DropDownList } from '@progress/kendo-vue-dropdowns';
|
|
38
38
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
39
39
|
import { unaryOperator, stringOperator } from './operators.js';
|
|
40
|
-
import { messages, filterClose } from '../messages/main.js';
|
|
40
|
+
import { messages, filterClose, filterExpressionDropdownAriaLabel, filterExpressionOperatorDropdownAriaLabel } from '../messages/main.js';
|
|
41
41
|
import { TextFilter } from './filters/TextFilter.js';
|
|
42
42
|
import { NumericFilter } from './filters/NumericFilter.js';
|
|
43
43
|
import { BooleanFilter } from './filters/BooleanFilter.js';
|
|
@@ -187,7 +187,8 @@ var ExpressionVue2 = {
|
|
|
187
187
|
textField: "label",
|
|
188
188
|
value: fields.find(function (f) {
|
|
189
189
|
return f.name === filter.field;
|
|
190
|
-
})
|
|
190
|
+
}),
|
|
191
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
191
192
|
},
|
|
192
193
|
textField: "label",
|
|
193
194
|
value: fields.find(function (f) {
|
|
@@ -196,7 +197,8 @@ var ExpressionVue2 = {
|
|
|
196
197
|
onChange: _this.onFieldChange,
|
|
197
198
|
on: _this.v3 ? undefined : {
|
|
198
199
|
"change": _this.onFieldChange
|
|
199
|
-
}
|
|
200
|
+
},
|
|
201
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
200
202
|
})];
|
|
201
203
|
} : [h(DropDownList, {
|
|
202
204
|
"class": "k-filter-dropdown",
|
|
@@ -206,7 +208,8 @@ var ExpressionVue2 = {
|
|
|
206
208
|
textField: "label",
|
|
207
209
|
value: fields.find(function (f) {
|
|
208
210
|
return f.name === filter.field;
|
|
209
|
-
})
|
|
211
|
+
}),
|
|
212
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
210
213
|
},
|
|
211
214
|
textField: "label",
|
|
212
215
|
value: fields.find(function (f) {
|
|
@@ -215,7 +218,8 @@ var ExpressionVue2 = {
|
|
|
215
218
|
onChange: _this.onFieldChange,
|
|
216
219
|
on: _this.v3 ? undefined : {
|
|
217
220
|
"change": _this.onFieldChange
|
|
218
|
-
}
|
|
221
|
+
},
|
|
222
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
219
223
|
})]), // @ts-ignore function children
|
|
220
224
|
h(ToolbarItem, {
|
|
221
225
|
"class": "k-filter-operator"
|
|
@@ -228,7 +232,8 @@ var ExpressionVue2 = {
|
|
|
228
232
|
textField: "text",
|
|
229
233
|
value: operators.find(function (o) {
|
|
230
234
|
return o.operator === filter.operator;
|
|
231
|
-
})
|
|
235
|
+
}),
|
|
236
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
232
237
|
},
|
|
233
238
|
textField: "text",
|
|
234
239
|
value: operators.find(function (o) {
|
|
@@ -237,7 +242,8 @@ var ExpressionVue2 = {
|
|
|
237
242
|
onChange: _this.onOperatorChange,
|
|
238
243
|
on: _this.v3 ? undefined : {
|
|
239
244
|
"change": _this.onOperatorChange
|
|
240
|
-
}
|
|
245
|
+
},
|
|
246
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
241
247
|
})];
|
|
242
248
|
} : [h(DropDownList, {
|
|
243
249
|
dataItems: operators,
|
|
@@ -246,7 +252,8 @@ var ExpressionVue2 = {
|
|
|
246
252
|
textField: "text",
|
|
247
253
|
value: operators.find(function (o) {
|
|
248
254
|
return o.operator === filter.operator;
|
|
249
|
-
})
|
|
255
|
+
}),
|
|
256
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
250
257
|
},
|
|
251
258
|
textField: "text",
|
|
252
259
|
value: operators.find(function (o) {
|
|
@@ -255,7 +262,8 @@ var ExpressionVue2 = {
|
|
|
255
262
|
onChange: _this.onOperatorChange,
|
|
256
263
|
on: _this.v3 ? undefined : {
|
|
257
264
|
"change": _this.onOperatorChange
|
|
258
|
-
}
|
|
265
|
+
},
|
|
266
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
259
267
|
})]), // @ts-ignore function children
|
|
260
268
|
h(ToolbarItem, {
|
|
261
269
|
"class": "k-filter-value"
|
|
@@ -307,7 +315,8 @@ var ExpressionVue2 = {
|
|
|
307
315
|
textField: "label",
|
|
308
316
|
value: fields.find(function (f) {
|
|
309
317
|
return f.name === filter.field;
|
|
310
|
-
})
|
|
318
|
+
}),
|
|
319
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
311
320
|
},
|
|
312
321
|
textField: "label",
|
|
313
322
|
value: fields.find(function (f) {
|
|
@@ -316,7 +325,8 @@ var ExpressionVue2 = {
|
|
|
316
325
|
onChange: _this.onFieldChange,
|
|
317
326
|
on: _this.v3 ? undefined : {
|
|
318
327
|
"change": _this.onFieldChange
|
|
319
|
-
}
|
|
328
|
+
},
|
|
329
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
320
330
|
})];
|
|
321
331
|
} : [h(DropDownList, {
|
|
322
332
|
"class": "k-filter-dropdown",
|
|
@@ -326,7 +336,8 @@ var ExpressionVue2 = {
|
|
|
326
336
|
textField: "label",
|
|
327
337
|
value: fields.find(function (f) {
|
|
328
338
|
return f.name === filter.field;
|
|
329
|
-
})
|
|
339
|
+
}),
|
|
340
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
330
341
|
},
|
|
331
342
|
textField: "label",
|
|
332
343
|
value: fields.find(function (f) {
|
|
@@ -335,7 +346,8 @@ var ExpressionVue2 = {
|
|
|
335
346
|
onChange: _this.onFieldChange,
|
|
336
347
|
on: _this.v3 ? undefined : {
|
|
337
348
|
"change": _this.onFieldChange
|
|
338
|
-
}
|
|
349
|
+
},
|
|
350
|
+
ariaLabel: locService.toLanguageString(filterExpressionDropdownAriaLabel, messages[filterExpressionDropdownAriaLabel])
|
|
339
351
|
})]), h(ToolbarItem, {
|
|
340
352
|
"class": "k-filter-operator"
|
|
341
353
|
}, _this.v3 ? function () {
|
|
@@ -346,7 +358,8 @@ var ExpressionVue2 = {
|
|
|
346
358
|
textField: "text",
|
|
347
359
|
value: operators.find(function (o) {
|
|
348
360
|
return o.operator === filter.operator;
|
|
349
|
-
})
|
|
361
|
+
}),
|
|
362
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
350
363
|
},
|
|
351
364
|
textField: "text",
|
|
352
365
|
value: operators.find(function (o) {
|
|
@@ -355,7 +368,8 @@ var ExpressionVue2 = {
|
|
|
355
368
|
onChange: _this.onOperatorChange,
|
|
356
369
|
on: _this.v3 ? undefined : {
|
|
357
370
|
"change": _this.onOperatorChange
|
|
358
|
-
}
|
|
371
|
+
},
|
|
372
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
359
373
|
})];
|
|
360
374
|
} : [h(DropDownList, {
|
|
361
375
|
dataItems: operators,
|
|
@@ -364,7 +378,8 @@ var ExpressionVue2 = {
|
|
|
364
378
|
textField: "text",
|
|
365
379
|
value: operators.find(function (o) {
|
|
366
380
|
return o.operator === filter.operator;
|
|
367
|
-
})
|
|
381
|
+
}),
|
|
382
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
368
383
|
},
|
|
369
384
|
textField: "text",
|
|
370
385
|
value: operators.find(function (o) {
|
|
@@ -373,7 +388,8 @@ var ExpressionVue2 = {
|
|
|
373
388
|
onChange: _this.onOperatorChange,
|
|
374
389
|
on: _this.v3 ? undefined : {
|
|
375
390
|
"change": _this.onOperatorChange
|
|
376
|
-
}
|
|
391
|
+
},
|
|
392
|
+
ariaLabel: locService.toLanguageString(filterExpressionOperatorDropdownAriaLabel, messages[filterExpressionOperatorDropdownAriaLabel])
|
|
377
393
|
})]), h(ToolbarItem, {
|
|
378
394
|
"class": "k-filter-value"
|
|
379
395
|
}, _this.v3 ? function () {
|
|
@@ -21,7 +21,7 @@ var gh = allVue.h;
|
|
|
21
21
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
22
22
|
import { DropDownList } from '@progress/kendo-vue-dropdowns';
|
|
23
23
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
24
|
-
import { messages } from '../../messages/main.js';
|
|
24
|
+
import { messages, filterEnumFilterDropdownAriaLabel } from '../../messages/main.js';
|
|
25
25
|
/**
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
@@ -34,7 +34,8 @@ var EnumFilterVue2 = {
|
|
|
34
34
|
required: true
|
|
35
35
|
},
|
|
36
36
|
dataItems: Array,
|
|
37
|
-
defaultItem: Object
|
|
37
|
+
defaultItem: Object,
|
|
38
|
+
ariaLabel: String
|
|
38
39
|
},
|
|
39
40
|
inject: {
|
|
40
41
|
kendoLocalizationService: {
|
|
@@ -55,7 +56,9 @@ var EnumFilterVue2 = {
|
|
|
55
56
|
filter = _a.filter,
|
|
56
57
|
_b = _a.dataItems,
|
|
57
58
|
dataItems = _b === void 0 ? [] : _b,
|
|
58
|
-
defaultItem = _a.defaultItem
|
|
59
|
+
defaultItem = _a.defaultItem,
|
|
60
|
+
_c = _a.ariaLabel,
|
|
61
|
+
ariaLabel = _c === void 0 ? locService.toLanguageString(filterEnumFilterDropdownAriaLabel, messages[filterEnumFilterDropdownAriaLabel]) : _c;
|
|
59
62
|
var locData = dataItems.map(function (item) {
|
|
60
63
|
return __assign(__assign({}, item), {
|
|
61
64
|
text: locService.toLanguageString(item.text, messages[item.text] || item.text)
|
|
@@ -72,7 +75,8 @@ var EnumFilterVue2 = {
|
|
|
72
75
|
}) || null,
|
|
73
76
|
defaultItem: defaultItem,
|
|
74
77
|
dataItems: locData,
|
|
75
|
-
textField: "text"
|
|
78
|
+
textField: "text",
|
|
79
|
+
ariaLabel: ariaLabel
|
|
76
80
|
},
|
|
77
81
|
onChange: this.onChange,
|
|
78
82
|
on: this.v3 ? undefined : {
|
|
@@ -80,7 +84,8 @@ var EnumFilterVue2 = {
|
|
|
80
84
|
},
|
|
81
85
|
defaultItem: defaultItem,
|
|
82
86
|
dataItems: locData,
|
|
83
|
-
textField: "text"
|
|
87
|
+
textField: "text",
|
|
88
|
+
ariaLabel: ariaLabel
|
|
84
89
|
})
|
|
85
90
|
);
|
|
86
91
|
},
|