@progress/kendo-vue-data-tools 3.12.0 → 3.13.0-dev.202308171358
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/filter/Expression.js +11 -49
- package/dist/es/filter/Filter.js +1 -1
- package/dist/es/filter/GroupToolbar.js +41 -267
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/pager/Pager.js +56 -34
- package/dist/es/pager/PagerInfo.js +2 -2
- package/dist/es/pager/PagerInput.js +23 -38
- package/dist/es/pager/PagerNumericButtons.js +9 -1
- package/dist/esm/filter/Expression.js +11 -49
- package/dist/esm/filter/Filter.js +1 -1
- package/dist/esm/filter/GroupToolbar.js +41 -267
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/pager/Pager.js +56 -34
- package/dist/esm/pager/PagerInfo.js +2 -2
- package/dist/esm/pager/PagerInput.js +23 -38
- package/dist/esm/pager/PagerNumericButtons.js +9 -1
- package/dist/npm/filter/Expression.js +11 -49
- package/dist/npm/filter/Filter.js +1 -1
- package/dist/npm/filter/GroupToolbar.js +40 -266
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/pager/Pager.js +56 -34
- package/dist/npm/pager/PagerInfo.js +2 -2
- package/dist/npm/pager/PagerInput.js +23 -38
- package/dist/npm/pager/PagerNumericButtons.js +9 -1
- package/package.json +11 -10
|
@@ -6,7 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { messages, pagerOf, pagerPage, pagerTotalPages, pagerPageInputAriaLabel } from '../messages/main.js';
|
|
8
8
|
import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
9
|
-
import {
|
|
9
|
+
import { NumericTextBox } from '@progress/kendo-vue-inputs';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -26,36 +26,22 @@ var PagerInputVue2 = {
|
|
|
26
26
|
default: null
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
data: function data() {
|
|
30
|
+
return {
|
|
31
|
+
currentText: undefined
|
|
32
|
+
};
|
|
31
33
|
},
|
|
32
34
|
computed: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var size = this.$props.size;
|
|
36
|
-
return _a = {
|
|
37
|
-
'k-textbox': true,
|
|
38
|
-
'k-input': true,
|
|
39
|
-
'k-rounded-md': true,
|
|
40
|
-
'k-input-solid': true
|
|
41
|
-
}, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a;
|
|
35
|
+
computedValue: function computedValue() {
|
|
36
|
+
return this.$props.currentPage !== undefined ? this.$props.currentPage : this.currentText;
|
|
42
37
|
}
|
|
43
38
|
},
|
|
44
39
|
methods: {
|
|
45
40
|
changeHangler: function changeHangler(e) {
|
|
46
|
-
|
|
47
|
-
this
|
|
48
|
-
|
|
49
|
-
this.$emit('pagechange', parseInt(text, 10), e);
|
|
41
|
+
this.currentText = e.target.value;
|
|
42
|
+
if (this.currentText) {
|
|
43
|
+
this.$emit('pagechange', this.currentText, e);
|
|
50
44
|
}
|
|
51
|
-
},
|
|
52
|
-
blurHandler: function blurHandler() {
|
|
53
|
-
this.$forceUpdate();
|
|
54
|
-
},
|
|
55
|
-
value: function value() {
|
|
56
|
-
var value = this._text === undefined ? this.$props.currentPage.toString() : this._text;
|
|
57
|
-
this._text = undefined;
|
|
58
|
-
return value;
|
|
59
45
|
}
|
|
60
46
|
},
|
|
61
47
|
// @ts-ignore
|
|
@@ -91,26 +77,25 @@ var PagerInputVue2 = {
|
|
|
91
77
|
defaultMessage: messages[pagerPageInputAriaLabel]
|
|
92
78
|
};
|
|
93
79
|
return h("span", {
|
|
94
|
-
"class": "k-pager-input
|
|
95
|
-
}, [localizationService.toLanguageString(pageMessage.messageKey, pageMessage.defaultMessage), h(
|
|
96
|
-
|
|
97
|
-
}, [h("input", {
|
|
98
|
-
"class": "k-input-inner",
|
|
99
|
-
value: this.v3 ? this.value() : null,
|
|
100
|
-
domProps: this.v3 ? undefined : {
|
|
101
|
-
"value": this.value()
|
|
102
|
-
},
|
|
103
|
-
ariaLabel: localizationService.toLanguageString(pageInputAriaLabel.messageKey, pageInputAriaLabel.defaultMessage),
|
|
80
|
+
"class": "k-pager-input"
|
|
81
|
+
}, [h("span", [localizationService.toLanguageString(pageMessage.messageKey, pageMessage.defaultMessage)]), h(NumericTextBox, {
|
|
82
|
+
min: 1,
|
|
104
83
|
attrs: this.v3 ? undefined : {
|
|
84
|
+
min: 1,
|
|
85
|
+
value: this.computedValue,
|
|
86
|
+
spinners: false,
|
|
87
|
+
size: this.$props.size,
|
|
105
88
|
ariaLabel: localizationService.toLanguageString(pageInputAriaLabel.messageKey, pageInputAriaLabel.defaultMessage)
|
|
106
89
|
},
|
|
107
|
-
|
|
90
|
+
value: this.computedValue,
|
|
91
|
+
onChange: this.changeHangler,
|
|
108
92
|
on: this.v3 ? undefined : {
|
|
109
|
-
"blur": this.blurHandler,
|
|
110
93
|
"change": this.changeHangler
|
|
111
94
|
},
|
|
112
|
-
|
|
113
|
-
|
|
95
|
+
spinners: false,
|
|
96
|
+
size: this.$props.size,
|
|
97
|
+
ariaLabel: localizationService.toLanguageString(pageInputAriaLabel.messageKey, pageInputAriaLabel.defaultMessage)
|
|
98
|
+
}), h("span", ["".concat(localizationService.toLanguageString(ofMessage.messageKey, ofMessage.defaultMessage), " ").concat(intlService.format(localizationService.toLanguageString(totalPagesMessage.messageKey, totalPagesMessage.defaultMessage), [this.$props.totalPages]))])]);
|
|
114
99
|
}
|
|
115
100
|
};
|
|
116
101
|
/**
|
|
@@ -170,6 +170,11 @@ var PagerNumericButtonsVue2 = {
|
|
|
170
170
|
}, this);
|
|
171
171
|
var dropdown = function dropdown(currentButtons) {
|
|
172
172
|
return h("select", {
|
|
173
|
+
style: {
|
|
174
|
+
width: '5em',
|
|
175
|
+
margin: '0px 1em',
|
|
176
|
+
display: this.$props.responsiveSize === 'small' ? 'inline-flex' : 'none'
|
|
177
|
+
},
|
|
173
178
|
"class": this.dropdownClass,
|
|
174
179
|
ariaLabel: localizationService.toLanguageString(pagerSmallPageSelectoLabel.messageKey, pagerSmallPageSelectoLabel.defaultMessage),
|
|
175
180
|
attrs: this.v3 ? undefined : {
|
|
@@ -193,7 +198,10 @@ var PagerNumericButtonsVue2 = {
|
|
|
193
198
|
return h("div", {
|
|
194
199
|
"class": "k-pager-numbers-wrap"
|
|
195
200
|
}, [h("div", {
|
|
196
|
-
"class": "k-pager-numbers"
|
|
201
|
+
"class": "k-pager-numbers",
|
|
202
|
+
style: {
|
|
203
|
+
display: this.$props.responsiveSize !== 'small' ? '' : 'none'
|
|
204
|
+
}
|
|
197
205
|
}, [prevDots, numerics, postDots]), dropdown.call(this, buttons)]);
|
|
198
206
|
}
|
|
199
207
|
};
|
|
@@ -274,46 +274,26 @@ var ExpressionVue2 = {
|
|
|
274
274
|
}, _this.v3 ? function () {
|
|
275
275
|
return [field && filterEditors.call(_this, field.filter, field.filterRender)];
|
|
276
276
|
} : [field && filterEditors.call(_this, field.filter, field.filterRender)]),
|
|
277
|
-
// @ts-ignore
|
|
278
|
-
h(kendo_vue_buttons_1.
|
|
279
|
-
return [
|
|
280
|
-
// @ts-ignore
|
|
281
|
-
h(kendo_vue_buttons_1.Button, {
|
|
282
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
283
|
-
attrs: _this.v3 ? undefined : {
|
|
284
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
285
|
-
icon: "x",
|
|
286
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
287
|
-
look: "flat",
|
|
288
|
-
type: "button"
|
|
289
|
-
},
|
|
290
|
-
icon: "x",
|
|
291
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
292
|
-
look: "flat",
|
|
293
|
-
type: "button",
|
|
294
|
-
onClick: _this.onFilterRemove,
|
|
295
|
-
on: _this.v3 ? undefined : {
|
|
296
|
-
"click": _this.onFilterRemove
|
|
297
|
-
}
|
|
298
|
-
})];
|
|
299
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
277
|
+
// @ts-ignore
|
|
278
|
+
h(kendo_vue_buttons_1.Button, {
|
|
300
279
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
301
280
|
attrs: _this.v3 ? undefined : {
|
|
302
281
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
303
282
|
icon: "x",
|
|
304
283
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
305
|
-
|
|
284
|
+
fillMode: "flat",
|
|
306
285
|
type: "button"
|
|
307
286
|
},
|
|
308
287
|
icon: "x",
|
|
309
288
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
310
|
-
|
|
289
|
+
fillMode: "flat",
|
|
311
290
|
type: "button",
|
|
291
|
+
"class": "k-toolbar-button",
|
|
312
292
|
onClick: _this.onFilterRemove,
|
|
313
293
|
on: _this.v3 ? undefined : {
|
|
314
294
|
"click": _this.onFilterRemove
|
|
315
295
|
}
|
|
316
|
-
})]
|
|
296
|
+
})];
|
|
317
297
|
} : [h(kendo_vue_buttons_1.ToolbarItem, {
|
|
318
298
|
"class": "k-filter-field"
|
|
319
299
|
}, _this.v3 ? function () {
|
|
@@ -404,43 +384,25 @@ var ExpressionVue2 = {
|
|
|
404
384
|
"class": "k-filter-value"
|
|
405
385
|
}, _this.v3 ? function () {
|
|
406
386
|
return [field && filterEditors.call(_this, field.filter, field.filterRender)];
|
|
407
|
-
} : [field && filterEditors.call(_this, field.filter, field.filterRender)]), h(kendo_vue_buttons_1.
|
|
408
|
-
return [h(kendo_vue_buttons_1.Button, {
|
|
409
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
410
|
-
attrs: _this.v3 ? undefined : {
|
|
411
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
412
|
-
icon: "x",
|
|
413
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
414
|
-
look: "flat",
|
|
415
|
-
type: "button"
|
|
416
|
-
},
|
|
417
|
-
icon: "x",
|
|
418
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
419
|
-
look: "flat",
|
|
420
|
-
type: "button",
|
|
421
|
-
onClick: _this.onFilterRemove,
|
|
422
|
-
on: _this.v3 ? undefined : {
|
|
423
|
-
"click": _this.onFilterRemove
|
|
424
|
-
}
|
|
425
|
-
})];
|
|
426
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
387
|
+
} : [field && filterEditors.call(_this, field.filter, field.filterRender)]), h(kendo_vue_buttons_1.Button, {
|
|
427
388
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
428
389
|
attrs: _this.v3 ? undefined : {
|
|
429
390
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
430
391
|
icon: "x",
|
|
431
392
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
432
|
-
|
|
393
|
+
fillMode: "flat",
|
|
433
394
|
type: "button"
|
|
434
395
|
},
|
|
435
396
|
icon: "x",
|
|
436
397
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
437
|
-
|
|
398
|
+
fillMode: "flat",
|
|
438
399
|
type: "button",
|
|
400
|
+
"class": "k-toolbar-button",
|
|
439
401
|
onClick: _this.onFilterRemove,
|
|
440
402
|
on: _this.v3 ? undefined : {
|
|
441
403
|
"click": _this.onFilterRemove
|
|
442
404
|
}
|
|
443
|
-
})])])
|
|
405
|
+
})])]);
|
|
444
406
|
},
|
|
445
407
|
methods: {
|
|
446
408
|
onFieldChange: function onFieldChange(event) {
|