@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
|
@@ -78,9 +78,7 @@ var GroupToolbarVue2 = {
|
|
|
78
78
|
render: function render(createElement) {
|
|
79
79
|
var _this = this;
|
|
80
80
|
var h = gh || createElement;
|
|
81
|
-
var
|
|
82
|
-
fields = _a.fields,
|
|
83
|
-
filter = _a.filter;
|
|
81
|
+
var filter = this.$props.filter;
|
|
84
82
|
var locService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
85
83
|
return h("div", {
|
|
86
84
|
"class": "k-filter-toolbar"
|
|
@@ -98,78 +96,12 @@ var GroupToolbarVue2 = {
|
|
|
98
96
|
}, this.v3 ? function () {
|
|
99
97
|
return [
|
|
100
98
|
// @ts-ignore function children
|
|
101
|
-
h(kendo_vue_buttons_1.
|
|
99
|
+
h(kendo_vue_buttons_1.ButtonGroup, {
|
|
100
|
+
"class": "k-toolbar-button-group"
|
|
101
|
+
}, _this.v3 ? function () {
|
|
102
102
|
return [
|
|
103
103
|
// @ts-ignore function children
|
|
104
|
-
h(kendo_vue_buttons_1.
|
|
105
|
-
return [
|
|
106
|
-
// @ts-ignore function children
|
|
107
|
-
h(kendo_vue_buttons_1.Button, {
|
|
108
|
-
togglable: true,
|
|
109
|
-
attrs: _this.v3 ? undefined : {
|
|
110
|
-
togglable: true,
|
|
111
|
-
selected: filter.logic === 'and',
|
|
112
|
-
type: "button"
|
|
113
|
-
},
|
|
114
|
-
onClick: _this.onLogicAnd,
|
|
115
|
-
on: _this.v3 ? undefined : {
|
|
116
|
-
"click": _this.onLogicAnd
|
|
117
|
-
},
|
|
118
|
-
selected: filter.logic === 'and',
|
|
119
|
-
type: "button"
|
|
120
|
-
}, _this.v3 ? function () {
|
|
121
|
-
return [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])];
|
|
122
|
-
} : [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])]),
|
|
123
|
-
// @ts-ignore function children
|
|
124
|
-
h(kendo_vue_buttons_1.Button, {
|
|
125
|
-
togglable: true,
|
|
126
|
-
attrs: _this.v3 ? undefined : {
|
|
127
|
-
togglable: true,
|
|
128
|
-
selected: filter.logic === 'or',
|
|
129
|
-
type: "button"
|
|
130
|
-
},
|
|
131
|
-
onClick: _this.onLogicOr,
|
|
132
|
-
on: _this.v3 ? undefined : {
|
|
133
|
-
"click": _this.onLogicOr
|
|
134
|
-
},
|
|
135
|
-
selected: filter.logic === 'or',
|
|
136
|
-
type: "button"
|
|
137
|
-
}, _this.v3 ? function () {
|
|
138
|
-
return [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])];
|
|
139
|
-
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])];
|
|
140
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
141
|
-
togglable: true,
|
|
142
|
-
attrs: _this.v3 ? undefined : {
|
|
143
|
-
togglable: true,
|
|
144
|
-
selected: filter.logic === 'and',
|
|
145
|
-
type: "button"
|
|
146
|
-
},
|
|
147
|
-
onClick: _this.onLogicAnd,
|
|
148
|
-
on: _this.v3 ? undefined : {
|
|
149
|
-
"click": _this.onLogicAnd
|
|
150
|
-
},
|
|
151
|
-
selected: filter.logic === 'and',
|
|
152
|
-
type: "button"
|
|
153
|
-
}, _this.v3 ? function () {
|
|
154
|
-
return [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])];
|
|
155
|
-
} : [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])]), h(kendo_vue_buttons_1.Button, {
|
|
156
|
-
togglable: true,
|
|
157
|
-
attrs: _this.v3 ? undefined : {
|
|
158
|
-
togglable: true,
|
|
159
|
-
selected: filter.logic === 'or',
|
|
160
|
-
type: "button"
|
|
161
|
-
},
|
|
162
|
-
onClick: _this.onLogicOr,
|
|
163
|
-
on: _this.v3 ? undefined : {
|
|
164
|
-
"click": _this.onLogicOr
|
|
165
|
-
},
|
|
166
|
-
selected: filter.logic === 'or',
|
|
167
|
-
type: "button"
|
|
168
|
-
}, _this.v3 ? function () {
|
|
169
|
-
return [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])];
|
|
170
|
-
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])])];
|
|
171
|
-
} : [h(kendo_vue_buttons_1.ButtonGroup, _this.v3 ? function () {
|
|
172
|
-
return [h(kendo_vue_buttons_1.Button, {
|
|
104
|
+
h(kendo_vue_buttons_1.Button, {
|
|
173
105
|
togglable: true,
|
|
174
106
|
attrs: _this.v3 ? undefined : {
|
|
175
107
|
togglable: true,
|
|
@@ -180,11 +112,14 @@ var GroupToolbarVue2 = {
|
|
|
180
112
|
on: _this.v3 ? undefined : {
|
|
181
113
|
"click": _this.onLogicAnd
|
|
182
114
|
},
|
|
115
|
+
"class": "k-toolbar-button",
|
|
183
116
|
selected: filter.logic === 'and',
|
|
184
117
|
type: "button"
|
|
185
118
|
}, _this.v3 ? function () {
|
|
186
119
|
return [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])];
|
|
187
|
-
} : [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])]),
|
|
120
|
+
} : [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])]),
|
|
121
|
+
// @ts-ignore function children
|
|
122
|
+
h(kendo_vue_buttons_1.Button, {
|
|
188
123
|
togglable: true,
|
|
189
124
|
attrs: _this.v3 ? undefined : {
|
|
190
125
|
togglable: true,
|
|
@@ -195,6 +130,7 @@ var GroupToolbarVue2 = {
|
|
|
195
130
|
on: _this.v3 ? undefined : {
|
|
196
131
|
"click": _this.onLogicOr
|
|
197
132
|
},
|
|
133
|
+
"class": "k-toolbar-button",
|
|
198
134
|
selected: filter.logic === 'or',
|
|
199
135
|
type: "button"
|
|
200
136
|
}, _this.v3 ? function () {
|
|
@@ -211,6 +147,7 @@ var GroupToolbarVue2 = {
|
|
|
211
147
|
on: _this.v3 ? undefined : {
|
|
212
148
|
"click": _this.onLogicAnd
|
|
213
149
|
},
|
|
150
|
+
"class": "k-toolbar-button",
|
|
214
151
|
selected: filter.logic === 'and',
|
|
215
152
|
type: "button"
|
|
216
153
|
}, _this.v3 ? function () {
|
|
@@ -226,32 +163,14 @@ var GroupToolbarVue2 = {
|
|
|
226
163
|
on: _this.v3 ? undefined : {
|
|
227
164
|
"click": _this.onLogicOr
|
|
228
165
|
},
|
|
166
|
+
"class": "k-toolbar-button",
|
|
229
167
|
selected: filter.logic === 'or',
|
|
230
168
|
type: "button"
|
|
231
169
|
}, _this.v3 ? function () {
|
|
232
170
|
return [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])];
|
|
233
|
-
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])])
|
|
171
|
+
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])]),
|
|
234
172
|
// @ts-ignore function children
|
|
235
|
-
h(kendo_vue_buttons_1.
|
|
236
|
-
return [
|
|
237
|
-
// @ts-ignore function children
|
|
238
|
-
h(kendo_vue_buttons_1.Button, {
|
|
239
|
-
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
240
|
-
attrs: _this.v3 ? undefined : {
|
|
241
|
-
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
242
|
-
icon: "filter-add-expression",
|
|
243
|
-
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
244
|
-
type: "button"
|
|
245
|
-
},
|
|
246
|
-
icon: "filter-add-expression",
|
|
247
|
-
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
248
|
-
type: "button",
|
|
249
|
-
onClick: _this.onAddExpression,
|
|
250
|
-
on: _this.v3 ? undefined : {
|
|
251
|
-
"click": _this.onAddExpression
|
|
252
|
-
}
|
|
253
|
-
})];
|
|
254
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
173
|
+
h(kendo_vue_buttons_1.Button, {
|
|
255
174
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
256
175
|
attrs: _this.v3 ? undefined : {
|
|
257
176
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
@@ -262,32 +181,14 @@ var GroupToolbarVue2 = {
|
|
|
262
181
|
icon: "filter-add-expression",
|
|
263
182
|
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
264
183
|
type: "button",
|
|
184
|
+
"class": "k-toolbar-button",
|
|
265
185
|
onClick: _this.onAddExpression,
|
|
266
186
|
on: _this.v3 ? undefined : {
|
|
267
187
|
"click": _this.onAddExpression
|
|
268
188
|
}
|
|
269
|
-
})
|
|
189
|
+
}),
|
|
270
190
|
// @ts-ignore function children
|
|
271
|
-
h(kendo_vue_buttons_1.
|
|
272
|
-
return [
|
|
273
|
-
// @ts-ignore function children
|
|
274
|
-
h(kendo_vue_buttons_1.Button, {
|
|
275
|
-
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
276
|
-
attrs: _this.v3 ? undefined : {
|
|
277
|
-
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
278
|
-
icon: "filter-add-group",
|
|
279
|
-
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
280
|
-
type: "button"
|
|
281
|
-
},
|
|
282
|
-
icon: "filter-add-group",
|
|
283
|
-
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
284
|
-
type: "button",
|
|
285
|
-
onClick: _this.onAddGroup,
|
|
286
|
-
on: _this.v3 ? undefined : {
|
|
287
|
-
"click": _this.onAddGroup
|
|
288
|
-
}
|
|
289
|
-
})];
|
|
290
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
191
|
+
h(kendo_vue_buttons_1.Button, {
|
|
291
192
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
292
193
|
attrs: _this.v3 ? undefined : {
|
|
293
194
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
@@ -298,116 +199,35 @@ var GroupToolbarVue2 = {
|
|
|
298
199
|
icon: "filter-add-group",
|
|
299
200
|
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
300
201
|
type: "button",
|
|
202
|
+
"class": "k-toolbar-button",
|
|
301
203
|
onClick: _this.onAddGroup,
|
|
302
204
|
on: _this.v3 ? undefined : {
|
|
303
205
|
"click": _this.onAddGroup
|
|
304
206
|
}
|
|
305
|
-
})
|
|
207
|
+
}),
|
|
306
208
|
// @ts-ignore function children
|
|
307
|
-
h(kendo_vue_buttons_1.
|
|
308
|
-
return [
|
|
309
|
-
// @ts-ignore function children
|
|
310
|
-
h(kendo_vue_buttons_1.Button, {
|
|
311
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
312
|
-
attrs: _this.v3 ? undefined : {
|
|
313
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
314
|
-
icon: "x",
|
|
315
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
316
|
-
look: "flat",
|
|
317
|
-
type: "button"
|
|
318
|
-
},
|
|
319
|
-
icon: "x",
|
|
320
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
321
|
-
look: "flat",
|
|
322
|
-
type: "button",
|
|
323
|
-
onClick: _this.onGroupRemove,
|
|
324
|
-
on: _this.v3 ? undefined : {
|
|
325
|
-
"click": _this.onGroupRemove
|
|
326
|
-
}
|
|
327
|
-
})];
|
|
328
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
209
|
+
h(kendo_vue_buttons_1.Button, {
|
|
329
210
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
330
211
|
attrs: _this.v3 ? undefined : {
|
|
331
212
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
332
213
|
icon: "x",
|
|
333
214
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
334
|
-
|
|
215
|
+
fillMode: "flat",
|
|
335
216
|
type: "button"
|
|
336
217
|
},
|
|
337
218
|
icon: "x",
|
|
338
219
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
339
|
-
|
|
220
|
+
fillMode: "flat",
|
|
340
221
|
type: "button",
|
|
222
|
+
"class": "k-toolbar-button",
|
|
341
223
|
onClick: _this.onGroupRemove,
|
|
342
224
|
on: _this.v3 ? undefined : {
|
|
343
225
|
"click": _this.onGroupRemove
|
|
344
226
|
}
|
|
345
|
-
})]
|
|
346
|
-
} : [h(kendo_vue_buttons_1.
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
togglable: true,
|
|
350
|
-
attrs: _this.v3 ? undefined : {
|
|
351
|
-
togglable: true,
|
|
352
|
-
selected: filter.logic === 'and',
|
|
353
|
-
type: "button"
|
|
354
|
-
},
|
|
355
|
-
onClick: _this.onLogicAnd,
|
|
356
|
-
on: _this.v3 ? undefined : {
|
|
357
|
-
"click": _this.onLogicAnd
|
|
358
|
-
},
|
|
359
|
-
selected: filter.logic === 'and',
|
|
360
|
-
type: "button"
|
|
361
|
-
}, _this.v3 ? function () {
|
|
362
|
-
return [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])];
|
|
363
|
-
} : [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])]), h(kendo_vue_buttons_1.Button, {
|
|
364
|
-
togglable: true,
|
|
365
|
-
attrs: _this.v3 ? undefined : {
|
|
366
|
-
togglable: true,
|
|
367
|
-
selected: filter.logic === 'or',
|
|
368
|
-
type: "button"
|
|
369
|
-
},
|
|
370
|
-
onClick: _this.onLogicOr,
|
|
371
|
-
on: _this.v3 ? undefined : {
|
|
372
|
-
"click": _this.onLogicOr
|
|
373
|
-
},
|
|
374
|
-
selected: filter.logic === 'or',
|
|
375
|
-
type: "button"
|
|
376
|
-
}, _this.v3 ? function () {
|
|
377
|
-
return [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])];
|
|
378
|
-
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])];
|
|
379
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
380
|
-
togglable: true,
|
|
381
|
-
attrs: _this.v3 ? undefined : {
|
|
382
|
-
togglable: true,
|
|
383
|
-
selected: filter.logic === 'and',
|
|
384
|
-
type: "button"
|
|
385
|
-
},
|
|
386
|
-
onClick: _this.onLogicAnd,
|
|
387
|
-
on: _this.v3 ? undefined : {
|
|
388
|
-
"click": _this.onLogicAnd
|
|
389
|
-
},
|
|
390
|
-
selected: filter.logic === 'and',
|
|
391
|
-
type: "button"
|
|
392
|
-
}, _this.v3 ? function () {
|
|
393
|
-
return [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])];
|
|
394
|
-
} : [locService.toLanguageString(main_1.filterAndLogic, main_1.messages[main_1.filterAndLogic])]), h(kendo_vue_buttons_1.Button, {
|
|
395
|
-
togglable: true,
|
|
396
|
-
attrs: _this.v3 ? undefined : {
|
|
397
|
-
togglable: true,
|
|
398
|
-
selected: filter.logic === 'or',
|
|
399
|
-
type: "button"
|
|
400
|
-
},
|
|
401
|
-
onClick: _this.onLogicOr,
|
|
402
|
-
on: _this.v3 ? undefined : {
|
|
403
|
-
"click": _this.onLogicOr
|
|
404
|
-
},
|
|
405
|
-
selected: filter.logic === 'or',
|
|
406
|
-
type: "button"
|
|
407
|
-
}, _this.v3 ? function () {
|
|
408
|
-
return [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])];
|
|
409
|
-
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])])];
|
|
410
|
-
} : [h(kendo_vue_buttons_1.ButtonGroup, _this.v3 ? function () {
|
|
227
|
+
})];
|
|
228
|
+
} : [h(kendo_vue_buttons_1.ButtonGroup, {
|
|
229
|
+
"class": "k-toolbar-button-group"
|
|
230
|
+
}, _this.v3 ? function () {
|
|
411
231
|
return [h(kendo_vue_buttons_1.Button, {
|
|
412
232
|
togglable: true,
|
|
413
233
|
attrs: _this.v3 ? undefined : {
|
|
@@ -419,6 +239,7 @@ var GroupToolbarVue2 = {
|
|
|
419
239
|
on: _this.v3 ? undefined : {
|
|
420
240
|
"click": _this.onLogicAnd
|
|
421
241
|
},
|
|
242
|
+
"class": "k-toolbar-button",
|
|
422
243
|
selected: filter.logic === 'and',
|
|
423
244
|
type: "button"
|
|
424
245
|
}, _this.v3 ? function () {
|
|
@@ -434,6 +255,7 @@ var GroupToolbarVue2 = {
|
|
|
434
255
|
on: _this.v3 ? undefined : {
|
|
435
256
|
"click": _this.onLogicOr
|
|
436
257
|
},
|
|
258
|
+
"class": "k-toolbar-button",
|
|
437
259
|
selected: filter.logic === 'or',
|
|
438
260
|
type: "button"
|
|
439
261
|
}, _this.v3 ? function () {
|
|
@@ -450,6 +272,7 @@ var GroupToolbarVue2 = {
|
|
|
450
272
|
on: _this.v3 ? undefined : {
|
|
451
273
|
"click": _this.onLogicAnd
|
|
452
274
|
},
|
|
275
|
+
"class": "k-toolbar-button",
|
|
453
276
|
selected: filter.logic === 'and',
|
|
454
277
|
type: "button"
|
|
455
278
|
}, _this.v3 ? function () {
|
|
@@ -465,28 +288,12 @@ var GroupToolbarVue2 = {
|
|
|
465
288
|
on: _this.v3 ? undefined : {
|
|
466
289
|
"click": _this.onLogicOr
|
|
467
290
|
},
|
|
291
|
+
"class": "k-toolbar-button",
|
|
468
292
|
selected: filter.logic === 'or',
|
|
469
293
|
type: "button"
|
|
470
294
|
}, _this.v3 ? function () {
|
|
471
295
|
return [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])];
|
|
472
|
-
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])])
|
|
473
|
-
return [h(kendo_vue_buttons_1.Button, {
|
|
474
|
-
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
475
|
-
attrs: _this.v3 ? undefined : {
|
|
476
|
-
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
477
|
-
icon: "filter-add-expression",
|
|
478
|
-
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
479
|
-
type: "button"
|
|
480
|
-
},
|
|
481
|
-
icon: "filter-add-expression",
|
|
482
|
-
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
483
|
-
type: "button",
|
|
484
|
-
onClick: _this.onAddExpression,
|
|
485
|
-
on: _this.v3 ? undefined : {
|
|
486
|
-
"click": _this.onAddExpression
|
|
487
|
-
}
|
|
488
|
-
})];
|
|
489
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
296
|
+
} : [locService.toLanguageString(main_1.filterOrLogic, main_1.messages[main_1.filterOrLogic])])]), h(kendo_vue_buttons_1.Button, {
|
|
490
297
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
491
298
|
attrs: _this.v3 ? undefined : {
|
|
492
299
|
title: locService.toLanguageString(main_1.filterAddExpression, main_1.messages[main_1.filterAddExpression]),
|
|
@@ -497,28 +304,12 @@ var GroupToolbarVue2 = {
|
|
|
497
304
|
icon: "filter-add-expression",
|
|
498
305
|
svgIcon: kendo_svg_icons_1.filterAddExpressionIcon,
|
|
499
306
|
type: "button",
|
|
307
|
+
"class": "k-toolbar-button",
|
|
500
308
|
onClick: _this.onAddExpression,
|
|
501
309
|
on: _this.v3 ? undefined : {
|
|
502
310
|
"click": _this.onAddExpression
|
|
503
311
|
}
|
|
504
|
-
})
|
|
505
|
-
return [h(kendo_vue_buttons_1.Button, {
|
|
506
|
-
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
507
|
-
attrs: _this.v3 ? undefined : {
|
|
508
|
-
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
509
|
-
icon: "filter-add-group",
|
|
510
|
-
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
511
|
-
type: "button"
|
|
512
|
-
},
|
|
513
|
-
icon: "filter-add-group",
|
|
514
|
-
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
515
|
-
type: "button",
|
|
516
|
-
onClick: _this.onAddGroup,
|
|
517
|
-
on: _this.v3 ? undefined : {
|
|
518
|
-
"click": _this.onAddGroup
|
|
519
|
-
}
|
|
520
|
-
})];
|
|
521
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
312
|
+
}), h(kendo_vue_buttons_1.Button, {
|
|
522
313
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
523
314
|
attrs: _this.v3 ? undefined : {
|
|
524
315
|
title: locService.toLanguageString(main_1.filterAddGroup, main_1.messages[main_1.filterAddGroup]),
|
|
@@ -529,47 +320,30 @@ var GroupToolbarVue2 = {
|
|
|
529
320
|
icon: "filter-add-group",
|
|
530
321
|
svgIcon: kendo_svg_icons_1.filterAddGroupIcon,
|
|
531
322
|
type: "button",
|
|
323
|
+
"class": "k-toolbar-button",
|
|
532
324
|
onClick: _this.onAddGroup,
|
|
533
325
|
on: _this.v3 ? undefined : {
|
|
534
326
|
"click": _this.onAddGroup
|
|
535
327
|
}
|
|
536
|
-
})
|
|
537
|
-
return [h(kendo_vue_buttons_1.Button, {
|
|
538
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
539
|
-
attrs: _this.v3 ? undefined : {
|
|
540
|
-
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
541
|
-
icon: "x",
|
|
542
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
543
|
-
look: "flat",
|
|
544
|
-
type: "button"
|
|
545
|
-
},
|
|
546
|
-
icon: "x",
|
|
547
|
-
svgIcon: kendo_svg_icons_1.xIcon,
|
|
548
|
-
look: "flat",
|
|
549
|
-
type: "button",
|
|
550
|
-
onClick: _this.onGroupRemove,
|
|
551
|
-
on: _this.v3 ? undefined : {
|
|
552
|
-
"click": _this.onGroupRemove
|
|
553
|
-
}
|
|
554
|
-
})];
|
|
555
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
328
|
+
}), h(kendo_vue_buttons_1.Button, {
|
|
556
329
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
557
330
|
attrs: _this.v3 ? undefined : {
|
|
558
331
|
title: locService.toLanguageString(main_1.filterClose, main_1.messages[main_1.filterClose]),
|
|
559
332
|
icon: "x",
|
|
560
333
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
561
|
-
|
|
334
|
+
fillMode: "flat",
|
|
562
335
|
type: "button"
|
|
563
336
|
},
|
|
564
337
|
icon: "x",
|
|
565
338
|
svgIcon: kendo_svg_icons_1.xIcon,
|
|
566
|
-
|
|
339
|
+
fillMode: "flat",
|
|
567
340
|
type: "button",
|
|
341
|
+
"class": "k-toolbar-button",
|
|
568
342
|
onClick: _this.onGroupRemove,
|
|
569
343
|
on: _this.v3 ? undefined : {
|
|
570
344
|
"click": _this.onGroupRemove
|
|
571
345
|
}
|
|
572
|
-
})])])
|
|
346
|
+
})])]);
|
|
573
347
|
},
|
|
574
348
|
methods: {
|
|
575
349
|
onGroupRemove: function onGroupRemove() {
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-data-tools',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1692280186,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
package/dist/npm/pager/Pager.js
CHANGED
|
@@ -31,14 +31,6 @@ var main_1 = require("../messages/main");
|
|
|
31
31
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
32
32
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
33
33
|
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
var RESPONSIVE_BREAKPOINT_MEDIUM = 600;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
var RESPONSIVE_BREAKPOINT_LARGE = 768;
|
|
42
34
|
/**
|
|
43
35
|
* @hidden
|
|
44
36
|
*/
|
|
@@ -89,18 +81,23 @@ var PagerVue2 = {
|
|
|
89
81
|
default: undefined
|
|
90
82
|
}
|
|
91
83
|
},
|
|
84
|
+
created: function created() {
|
|
85
|
+
this.pagerSizesIndex = 1;
|
|
86
|
+
this.pagerInfoIndex = 2;
|
|
87
|
+
},
|
|
92
88
|
data: function data() {
|
|
93
89
|
return {
|
|
94
90
|
currentSize: 'medium',
|
|
95
|
-
currentRtl: false
|
|
91
|
+
currentRtl: false,
|
|
92
|
+
itemsToFit: undefined,
|
|
93
|
+
itemsWidths: undefined
|
|
96
94
|
};
|
|
97
95
|
},
|
|
98
96
|
mounted: function mounted() {
|
|
99
97
|
window.addEventListener('resize', this.onWindowResize);
|
|
100
98
|
this.currentRtl = (0, kendo_vue_common_1.isRtl)(this.$el);
|
|
101
|
-
this.
|
|
102
|
-
|
|
103
|
-
updated: function updated() {
|
|
99
|
+
var childsWidths = this.collectPagerChildsWidths();
|
|
100
|
+
this.itemsWidths = childsWidths;
|
|
104
101
|
this.onWindowResize();
|
|
105
102
|
},
|
|
106
103
|
destroyed: !!isV3 ? undefined : function () {
|
|
@@ -167,17 +164,41 @@ var PagerVue2 = {
|
|
|
167
164
|
if (!element || !this.$props.responsive || this.$props.settings.responsive === false) {
|
|
168
165
|
return;
|
|
169
166
|
}
|
|
170
|
-
|
|
171
|
-
if (width < RESPONSIVE_BREAKPOINT_MEDIUM) {
|
|
172
|
-
this.currentSize = 'small';
|
|
173
|
-
} else if (width >= RESPONSIVE_BREAKPOINT_MEDIUM && width < RESPONSIVE_BREAKPOINT_LARGE) {
|
|
174
|
-
this.currentSize = 'medium';
|
|
175
|
-
} else {
|
|
176
|
-
this.currentSize = 'large';
|
|
177
|
-
}
|
|
167
|
+
this.itemsToFit = this.fitChildsInParent(element, this.itemsWidths || []);
|
|
178
168
|
},
|
|
179
169
|
transformDimesion: function transformDimesion(initialValue) {
|
|
180
170
|
return typeof initialValue === 'string' ? initialValue.endsWith('px') ? initialValue : initialValue + 'px' : initialValue + 'px';
|
|
171
|
+
},
|
|
172
|
+
collectPagerChildsWidths: function collectPagerChildsWidths() {
|
|
173
|
+
var _a;
|
|
174
|
+
var arrayChildren = Array.from(((_a = this.$el) === null || _a === void 0 ? void 0 : _a.children) || []);
|
|
175
|
+
var widths = arrayChildren.map(function (item) {
|
|
176
|
+
if (item instanceof HTMLElement) {
|
|
177
|
+
return item.offsetWidth;
|
|
178
|
+
}
|
|
179
|
+
return 0;
|
|
180
|
+
});
|
|
181
|
+
return widths;
|
|
182
|
+
},
|
|
183
|
+
fitChildsInParent: function fitChildsInParent(parent, childsWidths) {
|
|
184
|
+
var fitItems = [0];
|
|
185
|
+
var elementsWith = 0;
|
|
186
|
+
var updatedWidths = childsWidths;
|
|
187
|
+
var parentWidth = parent.offsetWidth;
|
|
188
|
+
var firstElement = childsWidths[0];
|
|
189
|
+
var buffer = 40;
|
|
190
|
+
elementsWith += firstElement;
|
|
191
|
+
for (var index = 1; index < childsWidths.length; index++) {
|
|
192
|
+
var parentChild = parent.children[index];
|
|
193
|
+
var currentElement = (parentChild === null || parentChild === void 0 ? void 0 : parentChild.offsetWidth) || childsWidths[index];
|
|
194
|
+
if ((elementsWith += currentElement) < parentWidth - buffer) {
|
|
195
|
+
fitItems.push(index);
|
|
196
|
+
} else {
|
|
197
|
+
updatedWidths[index] = currentElement;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
this.itemsWidths = updatedWidths;
|
|
201
|
+
return fitItems;
|
|
181
202
|
}
|
|
182
203
|
},
|
|
183
204
|
// @ts-ignore
|
|
@@ -193,18 +214,19 @@ var PagerVue2 = {
|
|
|
193
214
|
},
|
|
194
215
|
// @ts-ignore
|
|
195
216
|
render: function render(createElement) {
|
|
217
|
+
var _a, _b;
|
|
196
218
|
var h = gh || createElement;
|
|
197
|
-
var
|
|
198
|
-
skip =
|
|
199
|
-
take =
|
|
200
|
-
total =
|
|
201
|
-
pageSizes =
|
|
202
|
-
buttonCount =
|
|
203
|
-
messagesMap =
|
|
204
|
-
info =
|
|
205
|
-
type =
|
|
206
|
-
previousNext =
|
|
207
|
-
pageSizeValue =
|
|
219
|
+
var _c = this.$props,
|
|
220
|
+
skip = _c.skip,
|
|
221
|
+
take = _c.take,
|
|
222
|
+
total = _c.total,
|
|
223
|
+
pageSizes = _c.pageSizes,
|
|
224
|
+
buttonCount = _c.buttonCount,
|
|
225
|
+
messagesMap = _c.messagesMap,
|
|
226
|
+
info = _c.info,
|
|
227
|
+
type = _c.type,
|
|
228
|
+
previousNext = _c.previousNext,
|
|
229
|
+
pageSizeValue = _c.pageSizeValue;
|
|
208
230
|
var settings = __assign({
|
|
209
231
|
pageSizes: pageSizes,
|
|
210
232
|
buttonCount: buttonCount,
|
|
@@ -239,9 +261,9 @@ var PagerVue2 = {
|
|
|
239
261
|
var changer = settings.type === 'numeric' ?
|
|
240
262
|
// @ts-ignore
|
|
241
263
|
h(PagerNumericButtons_1.PagerNumericButtons, {
|
|
242
|
-
responsiveSize: this.
|
|
264
|
+
responsiveSize: this.responsive && this.itemsToFit && this.itemsToFit.length < 2 ? 'small' : 'large',
|
|
243
265
|
attrs: this.v3 ? undefined : {
|
|
244
|
-
responsiveSize: this.
|
|
266
|
+
responsiveSize: this.responsive && this.itemsToFit && this.itemsToFit.length < 2 ? 'small' : 'large',
|
|
245
267
|
size: this.size,
|
|
246
268
|
buttonCount: settings.buttonCount || 0,
|
|
247
269
|
totalPages: this.totalPages,
|
|
@@ -441,7 +463,7 @@ var PagerVue2 = {
|
|
|
441
463
|
"aria-controls": this.$props.ariaControls
|
|
442
464
|
}, [h("div", {
|
|
443
465
|
"class": 'k-pager-numbers-wrap'
|
|
444
|
-
}, [first, prev, changer, next, last]), renderPageSizes, infoElement]);
|
|
466
|
+
}, [first, prev, changer, next, last]), !(this.responsive && this.itemsToFit && !((_a = this.itemsToFit) === null || _a === void 0 ? void 0 : _a.includes(this.pagerSizesIndex))) && renderPageSizes, !(this.responsive && this.itemsToFit && !((_b = this.itemsToFit) === null || _b === void 0 ? void 0 : _b.includes(this.pagerInfoIndex))) && infoElement]);
|
|
445
467
|
}
|
|
446
468
|
};
|
|
447
469
|
exports.PagerVue2 = PagerVue2;
|
|
@@ -51,8 +51,8 @@ var PagerInfoVue2 = {
|
|
|
51
51
|
messageKey: main_1.pagerInfo,
|
|
52
52
|
defaultMessage: main_1.messages[main_1.pagerInfo]
|
|
53
53
|
};
|
|
54
|
-
return h("
|
|
55
|
-
"class": "k-pager-info
|
|
54
|
+
return h("span", {
|
|
55
|
+
"class": "k-pager-info"
|
|
56
56
|
}, [intlService.format(localizationService.toLanguageString(infoMessage.messageKey, infoMessage.defaultMessage), [Math.min(this.$props.skip + 1, this.$props.totalPages), Math.min(this.$props.skip + this.$props.currentPage, this.$props.totalPages), this.$props.totalPages])]);
|
|
57
57
|
}
|
|
58
58
|
};
|