@progress/kendo-vue-buttons 3.7.4-dev.202212020747 → 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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-buttons.js +1 -1
- package/dist/es/Button.js +14 -7
- package/dist/es/ButtonInterface.d.ts +9 -0
- package/dist/es/Chip/Chip.d.ts +4 -0
- package/dist/es/Chip/Chip.js +32 -13
- package/dist/es/FloatingActionButton/FloatingActionButton.js +10 -10
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -0
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +12 -6
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +5 -0
- package/dist/es/ListButton/ButtonItem.js +11 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/Toolbar.d.ts +12 -0
- package/dist/es/toolbar/Toolbar.js +16 -2
- package/dist/es/toolbar/tools/ToolbarItem.d.ts +2 -8
- package/dist/es/toolbar/tools/ToolbarItem.js +5 -9
- package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +2 -8
- package/dist/es/toolbar/tools/ToolbarSeparator.js +5 -15
- package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +2 -8
- package/dist/es/toolbar/tools/ToolbarSpacer.js +2 -8
- package/dist/esm/Button.js +14 -7
- package/dist/esm/ButtonInterface.d.ts +9 -0
- package/dist/esm/Chip/Chip.d.ts +4 -0
- package/dist/esm/Chip/Chip.js +32 -13
- package/dist/esm/FloatingActionButton/FloatingActionButton.js +10 -10
- package/dist/esm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -0
- package/dist/esm/FloatingActionButton/FloatingActionButtonItem.js +12 -6
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +5 -0
- package/dist/esm/ListButton/ButtonItem.js +11 -4
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/toolbar/Toolbar.d.ts +12 -0
- package/dist/esm/toolbar/Toolbar.js +16 -2
- package/dist/esm/toolbar/tools/ToolbarItem.d.ts +2 -8
- package/dist/esm/toolbar/tools/ToolbarItem.js +5 -9
- package/dist/esm/toolbar/tools/ToolbarSeparator.d.ts +2 -8
- package/dist/esm/toolbar/tools/ToolbarSeparator.js +5 -15
- package/dist/esm/toolbar/tools/ToolbarSpacer.d.ts +2 -8
- package/dist/esm/toolbar/tools/ToolbarSpacer.js +2 -8
- package/dist/npm/Button.js +13 -6
- package/dist/npm/ButtonInterface.d.ts +9 -0
- package/dist/npm/Chip/Chip.d.ts +4 -0
- package/dist/npm/Chip/Chip.js +31 -12
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +9 -9
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -0
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +11 -5
- package/dist/npm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +5 -0
- package/dist/npm/ListButton/ButtonItem.js +10 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/Toolbar.d.ts +12 -0
- package/dist/npm/toolbar/Toolbar.js +15 -1
- package/dist/npm/toolbar/tools/ToolbarItem.d.ts +2 -8
- package/dist/npm/toolbar/tools/ToolbarItem.js +5 -9
- package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +2 -8
- package/dist/npm/toolbar/tools/ToolbarSeparator.js +5 -15
- package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +2 -8
- package/dist/npm/toolbar/tools/ToolbarSpacer.js +2 -8
- package/package.json +8 -6
package/dist/npm/Button.js
CHANGED
|
@@ -32,6 +32,7 @@ var ButtonVue2 = {
|
|
|
32
32
|
},
|
|
33
33
|
props: {
|
|
34
34
|
ariaLabel: String,
|
|
35
|
+
title: String,
|
|
35
36
|
dir: String,
|
|
36
37
|
selected: {
|
|
37
38
|
type: Boolean,
|
|
@@ -47,6 +48,7 @@ var ButtonVue2 = {
|
|
|
47
48
|
return undefined;
|
|
48
49
|
}
|
|
49
50
|
},
|
|
51
|
+
svgIcon: Object,
|
|
50
52
|
iconClass: {
|
|
51
53
|
type: String,
|
|
52
54
|
default: function _default() {
|
|
@@ -200,6 +202,7 @@ var ButtonVue2 = {
|
|
|
200
202
|
var _a = this.$props,
|
|
201
203
|
togglable = _a.togglable,
|
|
202
204
|
icon = _a.icon,
|
|
205
|
+
svgIcon = _a.svgIcon,
|
|
203
206
|
iconClass = _a.iconClass,
|
|
204
207
|
imageUrl = _a.imageUrl,
|
|
205
208
|
imageAlt = _a.imageAlt;
|
|
@@ -217,13 +220,15 @@ var ButtonVue2 = {
|
|
|
217
220
|
alt: imageAlt,
|
|
218
221
|
src: imageUrl
|
|
219
222
|
});
|
|
220
|
-
} else if (icon) {
|
|
221
|
-
var iconClasses = (0, kendo_vue_common_1.classNames)('k-
|
|
222
|
-
return h(
|
|
223
|
-
|
|
223
|
+
} else if (icon || svgIcon) {
|
|
224
|
+
var iconClasses = (0, kendo_vue_common_1.classNames)('k-button-icon', iconClass);
|
|
225
|
+
return h(kendo_vue_common_1.Icon, {
|
|
226
|
+
name: icon,
|
|
224
227
|
attrs: this.v3 ? undefined : {
|
|
225
|
-
|
|
228
|
+
name: icon,
|
|
229
|
+
icon: svgIcon
|
|
226
230
|
},
|
|
231
|
+
icon: svgIcon,
|
|
227
232
|
"class": iconClasses
|
|
228
233
|
});
|
|
229
234
|
} else if (iconClass) {
|
|
@@ -261,12 +266,14 @@ var ButtonVue2 = {
|
|
|
261
266
|
onKeypress: this.handleKeypress,
|
|
262
267
|
onKeydown: this.handleKeydown,
|
|
263
268
|
onContextmenu: this.handleContextmenu,
|
|
264
|
-
|
|
269
|
+
title: this.title,
|
|
265
270
|
attrs: this.v3 ? undefined : {
|
|
271
|
+
title: this.title,
|
|
266
272
|
"aria-label": this.ariaLabel,
|
|
267
273
|
"aria-disabled": this.$props.disabled || undefined,
|
|
268
274
|
"aria-pressed": togglable ? this.currentActive ? true : undefined : undefined
|
|
269
275
|
},
|
|
276
|
+
"aria-label": this.ariaLabel,
|
|
270
277
|
"aria-disabled": this.$props.disabled || undefined,
|
|
271
278
|
"aria-pressed": togglable ? this.currentActive ? true : undefined : undefined
|
|
272
279
|
}, [iconElement.call(this), defaultSlot && h("span", {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
1
2
|
/**
|
|
2
3
|
* Inherits the native HTML Button. Represents the properties which can be set to a Button.
|
|
3
4
|
*/
|
|
@@ -25,6 +26,10 @@ export interface ButtonInterface {
|
|
|
25
26
|
* Sets the aria-label of the Button.
|
|
26
27
|
*/
|
|
27
28
|
ariaLabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the aria-label of the Button.
|
|
31
|
+
*/
|
|
32
|
+
title?: string;
|
|
28
33
|
/**
|
|
29
34
|
* Sets the direction of the Button.
|
|
30
35
|
*/
|
|
@@ -41,6 +46,10 @@ export interface ButtonInterface {
|
|
|
41
46
|
* Defines the name for an existing icon in a Kendo UI for Vue theme ([see example]({% slug icons_button %})). The icon is rendered inside the Button by a `span.k-icon` element.
|
|
42
47
|
*/
|
|
43
48
|
icon?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
51
|
+
*/
|
|
52
|
+
svgIcon?: SVGIcon;
|
|
44
53
|
/**
|
|
45
54
|
* Defines a CSS class—or multiple classes separated by spaces—which are applied to a `span` element inside the Button ([see example]({% slug icons_button %})). Allows the usage of custom icons.
|
|
46
55
|
*/
|
package/dist/npm/Chip/Chip.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ export interface ChipProps {
|
|
|
56
56
|
* Determines if the Chip style is `filled` or `outlined`.
|
|
57
57
|
*/
|
|
58
58
|
look?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Defines the avatar template that will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
61
|
+
*/
|
|
62
|
+
avatar?: string | Function | Object;
|
|
59
63
|
/**
|
|
60
64
|
* Configures the `size` of the Chip.
|
|
61
65
|
*
|
package/dist/npm/Chip/Chip.js
CHANGED
|
@@ -23,6 +23,7 @@ var ChipVue2 = {
|
|
|
23
23
|
props: {
|
|
24
24
|
id: String,
|
|
25
25
|
text: String,
|
|
26
|
+
avatar: [String, Function, Object],
|
|
26
27
|
value: [String, Object],
|
|
27
28
|
type: String,
|
|
28
29
|
dir: {
|
|
@@ -38,7 +39,7 @@ var ChipVue2 = {
|
|
|
38
39
|
removeIcon: {
|
|
39
40
|
type: String,
|
|
40
41
|
default: function _default() {
|
|
41
|
-
return '
|
|
42
|
+
return 'x-circle';
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
disabled: {
|
|
@@ -136,6 +137,12 @@ var ChipVue2 = {
|
|
|
136
137
|
return this.$props.selected || (Array.isArray(this.kendoSelection.value) ? this.kendoSelection.value.some(function (i) {
|
|
137
138
|
return i === _this.$props.value;
|
|
138
139
|
}) : this.kendoSelection.value === this.$props.value);
|
|
140
|
+
},
|
|
141
|
+
chipLabelClass: function chipLabelClass() {
|
|
142
|
+
return {
|
|
143
|
+
'k-chip-label': true,
|
|
144
|
+
'k-text-ellipsis': true
|
|
145
|
+
};
|
|
139
146
|
}
|
|
140
147
|
},
|
|
141
148
|
methods: {
|
|
@@ -260,7 +267,14 @@ var ChipVue2 = {
|
|
|
260
267
|
themeColor = _b.themeColor,
|
|
261
268
|
fillMode = _b.fillMode,
|
|
262
269
|
look = _b.look,
|
|
263
|
-
type = _b.type
|
|
270
|
+
type = _b.type,
|
|
271
|
+
avatar = _b.avatar,
|
|
272
|
+
icon = _b.icon;
|
|
273
|
+
var avatarTemplate = kendo_vue_common_1.templateRendering.call(this, avatar, kendo_vue_common_1.getListeners.call(this));
|
|
274
|
+
var avatarRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
275
|
+
h: h,
|
|
276
|
+
template: avatarTemplate
|
|
277
|
+
});
|
|
264
278
|
return h("div", {
|
|
265
279
|
role: this.$props.role,
|
|
266
280
|
attrs: this.v3 ? undefined : {
|
|
@@ -268,7 +282,8 @@ var ChipVue2 = {
|
|
|
268
282
|
id: this.$props.value,
|
|
269
283
|
dir: this.currentDir,
|
|
270
284
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
271
|
-
"aria-
|
|
285
|
+
"aria-pressed": this.$props.role === 'button' ? this.currentSelected : undefined,
|
|
286
|
+
"aria-selected": this.$props.role === 'option' ? this.currentSelected : undefined,
|
|
272
287
|
"aria-disabled": this.$props.disabled,
|
|
273
288
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
274
289
|
},
|
|
@@ -282,7 +297,8 @@ var ChipVue2 = {
|
|
|
282
297
|
'k-selected': this.currentSelected,
|
|
283
298
|
'k-focus': this.computedFocused()
|
|
284
299
|
}, _a["k-chip-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-chip-".concat(fillMode)] = fillMode, _a["k-chip-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor), _a['k-chip-success'] = type === 'success', _a['k-chip-warning'] = type === 'warning', _a['k-chip-error'] = type === 'error', _a['k-chip-info'] = type === 'info', _a['k-chip-outline'] = look === 'outline' || look === 'outlined', _a['k-chip-solid'] = look === 'solid' || look === 'filled', _a)),
|
|
285
|
-
"aria-
|
|
300
|
+
"aria-pressed": this.$props.role === 'button' ? this.currentSelected : undefined,
|
|
301
|
+
"aria-selected": this.$props.role === 'option' ? this.currentSelected : undefined,
|
|
286
302
|
"aria-disabled": this.$props.disabled,
|
|
287
303
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
288
304
|
onFocus: this.handleFocus,
|
|
@@ -295,24 +311,27 @@ var ChipVue2 = {
|
|
|
295
311
|
onBlur: this.handleBlur,
|
|
296
312
|
onClick: this.handleClick,
|
|
297
313
|
onKeydown: this.handleKeyDown
|
|
298
|
-
}, [this.currentSelected && this.$props.selectedIcon && h(
|
|
299
|
-
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon',
|
|
300
|
-
}),
|
|
301
|
-
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon',
|
|
302
|
-
}), h("span", {
|
|
314
|
+
}, [this.currentSelected && this.$props.selectedIcon && h(kendo_vue_common_1.Icon, {
|
|
315
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', this.$props.selectedIcon)
|
|
316
|
+
}), icon && h(kendo_vue_common_1.Icon, {
|
|
317
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', icon)
|
|
318
|
+
}), avatar && avatarRender, h("span", {
|
|
303
319
|
"class": 'k-chip-content'
|
|
304
320
|
}, [this.$props.text && h("span", {
|
|
305
321
|
"aria-label": this.$props.text,
|
|
306
322
|
attrs: this.v3 ? undefined : {
|
|
307
323
|
"aria-label": this.$props.text
|
|
308
324
|
},
|
|
309
|
-
"class":
|
|
325
|
+
"class": this.chipLabelClass
|
|
310
326
|
}, [this.$props.text])]), this.$props.removable && h("span", {
|
|
311
327
|
"class": "k-chip-actions"
|
|
312
328
|
}, [h("span", {
|
|
313
329
|
"class": "k-chip-action k-chip-remove-action"
|
|
314
|
-
}, [h(
|
|
315
|
-
|
|
330
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
331
|
+
name: this.$props.removeIcon,
|
|
332
|
+
attrs: this.v3 ? undefined : {
|
|
333
|
+
name: this.$props.removeIcon
|
|
334
|
+
},
|
|
316
335
|
onClick: this.handleRemove,
|
|
317
336
|
on: this.v3 ? undefined : {
|
|
318
337
|
"click": this.handleRemove
|
|
@@ -27,6 +27,7 @@ var FloatingActionButtonVue2 = {
|
|
|
27
27
|
accessKey: String,
|
|
28
28
|
disabled: Boolean,
|
|
29
29
|
icon: String,
|
|
30
|
+
svgIcon: Object,
|
|
30
31
|
iconClass: String,
|
|
31
32
|
items: [Object, Array],
|
|
32
33
|
item: [String, Function, Object],
|
|
@@ -298,6 +299,7 @@ var FloatingActionButtonVue2 = {
|
|
|
298
299
|
align = _a.align,
|
|
299
300
|
disabled = _a.disabled,
|
|
300
301
|
icon = _a.icon,
|
|
302
|
+
svgIcon = _a.svgIcon,
|
|
301
303
|
iconClass = _a.iconClass,
|
|
302
304
|
id = _a.id,
|
|
303
305
|
items = _a.items,
|
|
@@ -390,17 +392,15 @@ var FloatingActionButtonVue2 = {
|
|
|
390
392
|
onFocusin: this.handleFocus,
|
|
391
393
|
onBlur: this.handleBlur,
|
|
392
394
|
onKeydown: this.handleKeyDown
|
|
393
|
-
}, [icon ? h(
|
|
394
|
-
|
|
395
|
+
}, [icon || svgIcon ? h(kendo_vue_common_1.Icon, {
|
|
396
|
+
name: icon,
|
|
395
397
|
attrs: this.v3 ? undefined : {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"class": (0, kendo_vue_common_1.classNames)("k-fab-icon k-icon k-i-".concat(icon))
|
|
399
|
-
}) : iconClass ? h("span", {
|
|
400
|
-
role: "presentation",
|
|
401
|
-
attrs: this.v3 ? undefined : {
|
|
402
|
-
role: "presentation"
|
|
398
|
+
name: icon,
|
|
399
|
+
icon: svgIcon
|
|
403
400
|
},
|
|
401
|
+
icon: svgIcon,
|
|
402
|
+
"class": 'k-fab-icon'
|
|
403
|
+
}) : iconClass ? h(kendo_vue_common_1.Icon, {
|
|
404
404
|
"class": iconClass
|
|
405
405
|
}) : null, text && h("span", {
|
|
406
406
|
"class": "k-fab-text"
|
|
@@ -3,6 +3,7 @@ declare type DefaultData<V> = object | ((this: V) => {});
|
|
|
3
3
|
declare type DefaultMethods<V> = {
|
|
4
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
5
|
};
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
6
7
|
/**
|
|
7
8
|
* The FloatingActionButtonItemHandle ref.
|
|
8
9
|
*/
|
|
@@ -36,6 +37,10 @@ export interface FloatingActionButtonItemProps {
|
|
|
36
37
|
* [see example]({% slug databinding_floatingactionbutton %}).
|
|
37
38
|
*/
|
|
38
39
|
icon?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
42
|
+
*/
|
|
43
|
+
svgIcon?: SVGIcon;
|
|
39
44
|
/**
|
|
40
45
|
* Specifies the text of the FloatingActionButtonItem
|
|
41
46
|
* [see example]({% slug databinding_floatingactionbutton %}).
|
|
@@ -73,10 +73,10 @@ var FloatingActionButtonItemVue2 = {
|
|
|
73
73
|
disabled = _a.disabled,
|
|
74
74
|
id = _a.id,
|
|
75
75
|
tabIndex = _a.tabIndex,
|
|
76
|
-
dataItem = _a.dataItem
|
|
77
|
-
customProp = _a.customProp;
|
|
76
|
+
dataItem = _a.dataItem;
|
|
78
77
|
var text = dataItem.text,
|
|
79
|
-
icon = dataItem.icon
|
|
78
|
+
icon = dataItem.icon,
|
|
79
|
+
svgIcon = dataItem.svgIcon;
|
|
80
80
|
var item;
|
|
81
81
|
var itemDefaultRendering = h("li", {
|
|
82
82
|
ref: (0, kendo_vue_common_1.setRef)(this, 'element'),
|
|
@@ -103,8 +103,14 @@ var FloatingActionButtonItemVue2 = {
|
|
|
103
103
|
onPointerdown: this.onDown
|
|
104
104
|
}, [text && h("span", {
|
|
105
105
|
"class": "k-fab-item-text"
|
|
106
|
-
}, [text]), icon && h(
|
|
107
|
-
|
|
106
|
+
}, [text]), icon && h(kendo_vue_common_1.Icon, {
|
|
107
|
+
name: icon,
|
|
108
|
+
attrs: this.v3 ? undefined : {
|
|
109
|
+
name: icon,
|
|
110
|
+
icon: svgIcon
|
|
111
|
+
},
|
|
112
|
+
icon: svgIcon,
|
|
113
|
+
"class": "k-fab-item-icon"
|
|
108
114
|
})]);
|
|
109
115
|
item = kendo_vue_common_1.getTemplate.call(this, {
|
|
110
116
|
h: h,
|
|
@@ -5,6 +5,7 @@ import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../mod
|
|
|
5
5
|
import { FloatingActionButtonPositionMode } from '../models/position-mode';
|
|
6
6
|
import { FloatingActionButtonSize } from '../models/size';
|
|
7
7
|
import { FloatingActionButtonThemeColor } from '../models/theme-color';
|
|
8
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
10
11
|
*/
|
|
@@ -41,6 +42,10 @@ export interface FloatingActionButtonProps extends Omit<any, 'onBlur' | 'onFocus
|
|
|
41
42
|
* Button [see example]({% slug contenttypes_floatingactionbutton %}).
|
|
42
43
|
*/
|
|
43
44
|
icon?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
47
|
+
*/
|
|
48
|
+
svgIcon?: SVGIcon;
|
|
44
49
|
/**
|
|
45
50
|
* Defines a CSS class or multiple classes separated by spaces which are applied
|
|
46
51
|
* to a `span` element inside the Floating Action Button. Allows the usage of custom icons.
|
|
@@ -71,7 +71,6 @@ var ButtonItemVue2 = {
|
|
|
71
71
|
textField = _a.textField,
|
|
72
72
|
index = _a.index;
|
|
73
73
|
var text = dataItem.text !== undefined ? dataItem.text : textField ? dataItem[textField] : dataItem;
|
|
74
|
-
var iconClass = dataItem.icon ? "k-icon k-i-".concat(dataItem.icon) : dataItem.iconClass;
|
|
75
74
|
var itemContent = h("span", {
|
|
76
75
|
tabindex: -1,
|
|
77
76
|
attrs: this.v3 ? undefined : {
|
|
@@ -79,8 +78,16 @@ var ButtonItemVue2 = {
|
|
|
79
78
|
},
|
|
80
79
|
"class": this.innerClass,
|
|
81
80
|
key: "icon"
|
|
82
|
-
}, [
|
|
83
|
-
|
|
81
|
+
}, [dataItem.icon || dataItem.svgIcon ? h(kendo_vue_common_1.Icon, {
|
|
82
|
+
name: dataItem.icon,
|
|
83
|
+
attrs: this.v3 ? undefined : {
|
|
84
|
+
name: dataItem.icon,
|
|
85
|
+
icon: dataItem.svgIcon
|
|
86
|
+
},
|
|
87
|
+
icon: dataItem.svgIcon,
|
|
88
|
+
"class": dataItem.iconClass
|
|
89
|
+
}) : dataItem.iconClass && h("span", {
|
|
90
|
+
"class": dataItem.iconClass,
|
|
84
91
|
role: "presentation",
|
|
85
92
|
attrs: this.v3 ? undefined : {
|
|
86
93
|
role: "presentation"
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-buttons',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673273361,
|
|
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
|
};
|
|
@@ -61,6 +61,18 @@ export interface ToolbarProps {
|
|
|
61
61
|
* ].
|
|
62
62
|
*/
|
|
63
63
|
buttons?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Configures the `size` of the Toolbar.
|
|
66
|
+
*
|
|
67
|
+
* The available options are:
|
|
68
|
+
* - small
|
|
69
|
+
* - medium
|
|
70
|
+
* - large
|
|
71
|
+
* - null—Does not set a size `class`.
|
|
72
|
+
*
|
|
73
|
+
* @default `medium`
|
|
74
|
+
*/
|
|
75
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
64
76
|
}
|
|
65
77
|
/**
|
|
66
78
|
* @hidden
|
|
@@ -44,6 +44,13 @@ var ToolbarVue2 = {
|
|
|
44
44
|
default: function _default() {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: 'medium',
|
|
51
|
+
validator: function validator(value) {
|
|
52
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
53
|
+
}
|
|
47
54
|
}
|
|
48
55
|
},
|
|
49
56
|
created: function created() {
|
|
@@ -58,6 +65,13 @@ var ToolbarVue2 = {
|
|
|
58
65
|
computed: {
|
|
59
66
|
selectors: function selectors() {
|
|
60
67
|
return this.$props.buttons || util_1.toolbarButtons;
|
|
68
|
+
},
|
|
69
|
+
wrapperClass: function wrapperClass() {
|
|
70
|
+
var _a;
|
|
71
|
+
var size = this.$props.size;
|
|
72
|
+
return _a = {
|
|
73
|
+
'k-toolbar': true
|
|
74
|
+
}, _a["k-toolbar-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-toolbar-resizable'] = true, _a;
|
|
61
75
|
}
|
|
62
76
|
},
|
|
63
77
|
mounted: function mounted() {
|
|
@@ -100,7 +114,7 @@ var ToolbarVue2 = {
|
|
|
100
114
|
var h = gh || createElement;
|
|
101
115
|
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
102
116
|
return h("div", {
|
|
103
|
-
"class":
|
|
117
|
+
"class": this.wrapperClass,
|
|
104
118
|
role: "toolbar",
|
|
105
119
|
attrs: this.v3 ? undefined : {
|
|
106
120
|
role: "toolbar",
|
|
@@ -41,21 +41,15 @@ declare let ToolbarItemVue2: ComponentOptions<ToolbarItemAll, DefaultData<Toolba
|
|
|
41
41
|
* ```jsx
|
|
42
42
|
* <template>
|
|
43
43
|
* <Toolbar>
|
|
44
|
-
* <ToolbarItem>
|
|
45
44
|
* <ButtonGroup>
|
|
46
45
|
* <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
|
|
47
46
|
* <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
|
|
48
47
|
* <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
|
|
49
48
|
* </ButtonGroup>
|
|
50
|
-
*
|
|
51
|
-
* <ToolbarSpacer />
|
|
52
|
-
* <ToolbarItem>
|
|
49
|
+
* <ToolbarSpacer />
|
|
53
50
|
* <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
|
|
54
|
-
*
|
|
55
|
-
* <ToolbarSeparator />
|
|
56
|
-
* <ToolbarItem>
|
|
51
|
+
* <ToolbarSeparator />
|
|
57
52
|
* <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
|
|
58
|
-
* </ToolbarItem>
|
|
59
53
|
* </Toolbar>
|
|
60
54
|
* </template>
|
|
61
55
|
* ```
|
|
@@ -30,7 +30,9 @@ var ToolbarItemVue2 = {
|
|
|
30
30
|
render: function render(createElement) {
|
|
31
31
|
var h = gh || createElement;
|
|
32
32
|
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
33
|
-
return h("
|
|
33
|
+
return h("div", {
|
|
34
|
+
"class": 'k-toolbar-item'
|
|
35
|
+
}, [defaultSlot]);
|
|
34
36
|
}
|
|
35
37
|
};
|
|
36
38
|
exports.ToolbarItemVue2 = ToolbarItemVue2;
|
|
@@ -40,21 +42,15 @@ exports.ToolbarItemVue2 = ToolbarItemVue2;
|
|
|
40
42
|
* ```jsx
|
|
41
43
|
* <template>
|
|
42
44
|
* <Toolbar>
|
|
43
|
-
* <ToolbarItem>
|
|
44
45
|
* <ButtonGroup>
|
|
45
46
|
* <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
|
|
46
47
|
* <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
|
|
47
48
|
* <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
|
|
48
49
|
* </ButtonGroup>
|
|
49
|
-
*
|
|
50
|
-
* <ToolbarSpacer />
|
|
51
|
-
* <ToolbarItem>
|
|
50
|
+
* <ToolbarSpacer />
|
|
52
51
|
* <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
|
|
53
|
-
*
|
|
54
|
-
* <ToolbarSeparator />
|
|
55
|
-
* <ToolbarItem>
|
|
52
|
+
* <ToolbarSeparator />
|
|
56
53
|
* <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
|
|
57
|
-
* </ToolbarItem>
|
|
58
54
|
* </Toolbar>
|
|
59
55
|
* </template>
|
|
60
56
|
* ```
|
|
@@ -13,21 +13,15 @@ declare let ToolbarSeparatorVue2: ComponentOptions<Vue2type, DefaultData<{}>, De
|
|
|
13
13
|
* ```jsx
|
|
14
14
|
* <template>
|
|
15
15
|
* <Toolbar>
|
|
16
|
-
* <ToolbarItem>
|
|
17
16
|
* <ButtonGroup>
|
|
18
17
|
* <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
|
|
19
18
|
* <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
|
|
20
19
|
* <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
|
|
21
20
|
* </ButtonGroup>
|
|
22
|
-
*
|
|
23
|
-
* <ToolbarSpacer />
|
|
24
|
-
* <ToolbarItem>
|
|
21
|
+
* <ToolbarSpacer />
|
|
25
22
|
* <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
|
|
26
|
-
*
|
|
27
|
-
* <ToolbarSeparator />
|
|
28
|
-
* <ToolbarItem>
|
|
23
|
+
* <ToolbarSeparator />
|
|
29
24
|
* <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
|
|
30
|
-
* </ToolbarItem>
|
|
31
25
|
* </Toolbar>
|
|
32
26
|
* </template>
|
|
33
27
|
* ```
|
|
@@ -9,7 +9,6 @@ var Vue = require("vue");
|
|
|
9
9
|
var allVue = Vue;
|
|
10
10
|
var gh = allVue.h;
|
|
11
11
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
|
-
var ToolbarItem_1 = require("./ToolbarItem");
|
|
13
12
|
/**
|
|
14
13
|
* @hidden
|
|
15
14
|
*/
|
|
@@ -24,12 +23,9 @@ var ToolbarSeparatorVue2 = {
|
|
|
24
23
|
},
|
|
25
24
|
render: function render(createElement) {
|
|
26
25
|
var h = gh || createElement;
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"class": "k-separator"
|
|
31
|
-
})
|
|
32
|
-
);
|
|
26
|
+
return h("div", {
|
|
27
|
+
"class": "k-separator"
|
|
28
|
+
});
|
|
33
29
|
}
|
|
34
30
|
};
|
|
35
31
|
exports.ToolbarSeparatorVue2 = ToolbarSeparatorVue2;
|
|
@@ -39,21 +35,15 @@ exports.ToolbarSeparatorVue2 = ToolbarSeparatorVue2;
|
|
|
39
35
|
* ```jsx
|
|
40
36
|
* <template>
|
|
41
37
|
* <Toolbar>
|
|
42
|
-
* <ToolbarItem>
|
|
43
38
|
* <ButtonGroup>
|
|
44
39
|
* <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
|
|
45
40
|
* <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
|
|
46
41
|
* <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
|
|
47
42
|
* </ButtonGroup>
|
|
48
|
-
*
|
|
49
|
-
* <ToolbarSpacer />
|
|
50
|
-
* <ToolbarItem>
|
|
43
|
+
* <ToolbarSpacer />
|
|
51
44
|
* <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
|
|
52
|
-
*
|
|
53
|
-
* <ToolbarSeparator />
|
|
54
|
-
* <ToolbarItem>
|
|
45
|
+
* <ToolbarSeparator />
|
|
55
46
|
* <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
|
|
56
|
-
* </ToolbarItem>
|
|
57
47
|
* </Toolbar>
|
|
58
48
|
* </template>
|
|
59
49
|
* ```
|
|
@@ -13,21 +13,15 @@ declare let ToolbarSpacerVue2: ComponentOptions<Vue2type, DefaultData<{}>, Defau
|
|
|
13
13
|
* ```jsx
|
|
14
14
|
* <template>
|
|
15
15
|
* <Toolbar>
|
|
16
|
-
* <ToolbarItem>
|
|
17
16
|
* <ButtonGroup>
|
|
18
17
|
* <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
|
|
19
18
|
* <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
|
|
20
19
|
* <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
|
|
21
20
|
* </ButtonGroup>
|
|
22
|
-
*
|
|
23
|
-
* <ToolbarSpacer />
|
|
24
|
-
* <ToolbarItem>
|
|
21
|
+
* <ToolbarSpacer />
|
|
25
22
|
* <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
|
|
26
|
-
*
|
|
27
|
-
* <ToolbarSeparator />
|
|
28
|
-
* <ToolbarItem>
|
|
23
|
+
* <ToolbarSeparator />
|
|
29
24
|
* <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
|
|
30
|
-
* </ToolbarItem>
|
|
31
25
|
* </Toolbar>
|
|
32
26
|
* </template>
|
|
33
27
|
* ```
|
|
@@ -35,21 +35,15 @@ exports.ToolbarSpacerVue2 = ToolbarSpacerVue2;
|
|
|
35
35
|
* ```jsx
|
|
36
36
|
* <template>
|
|
37
37
|
* <Toolbar>
|
|
38
|
-
* <ToolbarItem>
|
|
39
38
|
* <ButtonGroup>
|
|
40
39
|
* <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
|
|
41
40
|
* <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
|
|
42
41
|
* <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
|
|
43
42
|
* </ButtonGroup>
|
|
44
|
-
*
|
|
45
|
-
* <ToolbarSpacer />
|
|
46
|
-
* <ToolbarItem>
|
|
43
|
+
* <ToolbarSpacer />
|
|
47
44
|
* <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
|
|
48
|
-
*
|
|
49
|
-
* <ToolbarSeparator />
|
|
50
|
-
* <ToolbarItem>
|
|
45
|
+
* <ToolbarSeparator />
|
|
51
46
|
* <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
|
|
52
|
-
* </ToolbarItem>
|
|
53
47
|
* </Toolbar>
|
|
54
48
|
* </template>
|
|
55
49
|
* ```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-buttons",
|
|
3
3
|
"description": "Kendo UI for Vue Buttons package",
|
|
4
|
-
"version": "3.7.4-dev.
|
|
4
|
+
"version": "3.7.4-dev.202301091431",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -35,17 +35,19 @@
|
|
|
35
35
|
"Telerik"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@progress/kendo-licensing": "^1.
|
|
38
|
+
"@progress/kendo-licensing": "^1.3.0",
|
|
39
|
+
"@progress/kendo-svg-icons": "^1.0.0",
|
|
39
40
|
"vue": "^2.6.12 || ^3.0.2"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@progress/kendo-vue-common": "3.7.4-dev.
|
|
43
|
-
"@progress/kendo-vue-popup": "3.7.4-dev.
|
|
43
|
+
"@progress/kendo-vue-common": "3.7.4-dev.202301091431",
|
|
44
|
+
"@progress/kendo-vue-popup": "3.7.4-dev.202301091431"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@progress/kendo-drawing": "^1.5.12",
|
|
47
|
-
"@progress/kendo-vue-dropdowns": "3.7.4-dev.
|
|
48
|
-
"@progress/kendo-vue-inputs": "3.7.4-dev.
|
|
48
|
+
"@progress/kendo-vue-dropdowns": "3.7.4-dev.202301091431",
|
|
49
|
+
"@progress/kendo-vue-inputs": "3.7.4-dev.202301091431",
|
|
50
|
+
"@progress/kendo-vue-layout": "3.7.4-dev.202301091431"
|
|
49
51
|
},
|
|
50
52
|
"@progress": {
|
|
51
53
|
"friendlyName": "Buttons",
|