@progress/kendo-vue-buttons 3.7.4-dev.202211301436 → 3.7.4-dev.202212300853
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 +10 -6
- package/dist/es/ButtonInterface.d.ts +5 -0
- package/dist/es/Chip/Chip.d.ts +4 -0
- package/dist/es/Chip/Chip.js +21 -11
- 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.js +1 -1
- package/dist/esm/Button.js +10 -6
- package/dist/esm/ButtonInterface.d.ts +5 -0
- package/dist/esm/Chip/Chip.d.ts +4 -0
- package/dist/esm/Chip/Chip.js +21 -11
- 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.js +1 -1
- package/dist/npm/Button.js +9 -5
- package/dist/npm/ButtonInterface.d.ts +5 -0
- package/dist/npm/Chip/Chip.d.ts +4 -0
- package/dist/npm/Chip/Chip.js +20 -10
- 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.js +1 -1
- package/package.json +7 -6
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-buttons',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1672389521,
|
|
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/npm/Button.js
CHANGED
|
@@ -47,6 +47,7 @@ var ButtonVue2 = {
|
|
|
47
47
|
return undefined;
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
svgIcon: Object,
|
|
50
51
|
iconClass: {
|
|
51
52
|
type: String,
|
|
52
53
|
default: function _default() {
|
|
@@ -200,6 +201,7 @@ var ButtonVue2 = {
|
|
|
200
201
|
var _a = this.$props,
|
|
201
202
|
togglable = _a.togglable,
|
|
202
203
|
icon = _a.icon,
|
|
204
|
+
svgIcon = _a.svgIcon,
|
|
203
205
|
iconClass = _a.iconClass,
|
|
204
206
|
imageUrl = _a.imageUrl,
|
|
205
207
|
imageAlt = _a.imageAlt;
|
|
@@ -217,13 +219,15 @@ var ButtonVue2 = {
|
|
|
217
219
|
alt: imageAlt,
|
|
218
220
|
src: imageUrl
|
|
219
221
|
});
|
|
220
|
-
} else if (icon) {
|
|
221
|
-
var iconClasses = (0, kendo_vue_common_1.classNames)('k-
|
|
222
|
-
return h(
|
|
223
|
-
|
|
222
|
+
} else if (icon || svgIcon) {
|
|
223
|
+
var iconClasses = (0, kendo_vue_common_1.classNames)('k-button-icon', iconClass);
|
|
224
|
+
return h(kendo_vue_common_1.Icon, {
|
|
225
|
+
name: icon,
|
|
224
226
|
attrs: this.v3 ? undefined : {
|
|
225
|
-
|
|
227
|
+
name: icon,
|
|
228
|
+
icon: svgIcon
|
|
226
229
|
},
|
|
230
|
+
icon: svgIcon,
|
|
227
231
|
"class": iconClasses
|
|
228
232
|
});
|
|
229
233
|
} else if (iconClass) {
|
|
@@ -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
|
*/
|
|
@@ -41,6 +42,10 @@ export interface ButtonInterface {
|
|
|
41
42
|
* 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
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 to a `span` element inside the Button ([see example]({% slug icons_button %})). Allows the usage of custom icons.
|
|
46
51
|
*/
|
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: {
|
|
@@ -260,7 +261,14 @@ var ChipVue2 = {
|
|
|
260
261
|
themeColor = _b.themeColor,
|
|
261
262
|
fillMode = _b.fillMode,
|
|
262
263
|
look = _b.look,
|
|
263
|
-
type = _b.type
|
|
264
|
+
type = _b.type,
|
|
265
|
+
avatar = _b.avatar,
|
|
266
|
+
icon = _b.icon;
|
|
267
|
+
var avatarTemplate = kendo_vue_common_1.templateRendering.call(this, avatar, kendo_vue_common_1.getListeners.call(this));
|
|
268
|
+
var avatarRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
269
|
+
h: h,
|
|
270
|
+
template: avatarTemplate
|
|
271
|
+
});
|
|
264
272
|
return h("div", {
|
|
265
273
|
role: this.$props.role,
|
|
266
274
|
attrs: this.v3 ? undefined : {
|
|
@@ -268,7 +276,8 @@ var ChipVue2 = {
|
|
|
268
276
|
id: this.$props.value,
|
|
269
277
|
dir: this.currentDir,
|
|
270
278
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
271
|
-
"aria-
|
|
279
|
+
"aria-pressed": this.$props.role === 'button' ? this.currentSelected : undefined,
|
|
280
|
+
"aria-selected": this.$props.role === 'option' ? this.currentSelected : undefined,
|
|
272
281
|
"aria-disabled": this.$props.disabled,
|
|
273
282
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
274
283
|
},
|
|
@@ -282,7 +291,8 @@ var ChipVue2 = {
|
|
|
282
291
|
'k-selected': this.currentSelected,
|
|
283
292
|
'k-focus': this.computedFocused()
|
|
284
293
|
}, _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-
|
|
294
|
+
"aria-pressed": this.$props.role === 'button' ? this.currentSelected : undefined,
|
|
295
|
+
"aria-selected": this.$props.role === 'option' ? this.currentSelected : undefined,
|
|
286
296
|
"aria-disabled": this.$props.disabled,
|
|
287
297
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
288
298
|
onFocus: this.handleFocus,
|
|
@@ -295,11 +305,11 @@ var ChipVue2 = {
|
|
|
295
305
|
onBlur: this.handleBlur,
|
|
296
306
|
onClick: this.handleClick,
|
|
297
307
|
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", {
|
|
308
|
+
}, [this.currentSelected && this.$props.selectedIcon && h(kendo_vue_common_1.Icon, {
|
|
309
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', this.$props.selectedIcon)
|
|
310
|
+
}), icon && h(kendo_vue_common_1.Icon, {
|
|
311
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', icon)
|
|
312
|
+
}), avatar && avatarRender, h("span", {
|
|
303
313
|
"class": 'k-chip-content'
|
|
304
314
|
}, [this.$props.text && h("span", {
|
|
305
315
|
"aria-label": this.$props.text,
|
|
@@ -311,8 +321,8 @@ var ChipVue2 = {
|
|
|
311
321
|
"class": "k-chip-actions"
|
|
312
322
|
}, [h("span", {
|
|
313
323
|
"class": "k-chip-action k-chip-remove-action"
|
|
314
|
-
}, [h(
|
|
315
|
-
"class":
|
|
324
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
325
|
+
"class": this.$props.removeIcon,
|
|
316
326
|
onClick: this.handleRemove,
|
|
317
327
|
on: this.v3 ? undefined : {
|
|
318
328
|
"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
|
+
svgIcon: svgIcon
|
|
403
400
|
},
|
|
401
|
+
svgIcon: 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
|
+
svgIcon: svgIcon
|
|
111
|
+
},
|
|
112
|
+
svgIcon: 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
|
+
svgIcon: dataItem.svgIcon
|
|
86
|
+
},
|
|
87
|
+
svgIcon: 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: 1672389521,
|
|
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
|
};
|
|
@@ -100,7 +100,7 @@ var ToolbarVue2 = {
|
|
|
100
100
|
var h = gh || createElement;
|
|
101
101
|
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
102
102
|
return h("div", {
|
|
103
|
-
"class": 'k-
|
|
103
|
+
"class": 'k-toolbar',
|
|
104
104
|
role: "toolbar",
|
|
105
105
|
attrs: this.v3 ? undefined : {
|
|
106
106
|
role: "toolbar",
|
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.202212300853",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"test": "cd ../../ && npm run test -- --testPathPattern=/packages/buttons/.*",
|
|
21
|
-
"start": "gulp start",
|
|
21
|
+
"start": "gulp start --notsc",
|
|
22
22
|
"build-package": "gulp build-package"
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://www.telerik.com/kendo-vue-ui/",
|
|
@@ -39,13 +39,14 @@
|
|
|
39
39
|
"vue": "^2.6.12 || ^3.0.2"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@progress/kendo-vue-common": "3.7.4-dev.
|
|
43
|
-
"@progress/kendo-vue-popup": "3.7.4-dev.
|
|
42
|
+
"@progress/kendo-vue-common": "3.7.4-dev.202212300853",
|
|
43
|
+
"@progress/kendo-vue-popup": "3.7.4-dev.202212300853"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@progress/kendo-drawing": "^1.5.12",
|
|
47
|
-
"@progress/kendo-vue-dropdowns": "3.7.4-dev.
|
|
48
|
-
"@progress/kendo-vue-inputs": "3.7.4-dev.
|
|
47
|
+
"@progress/kendo-vue-dropdowns": "3.7.4-dev.202212300853",
|
|
48
|
+
"@progress/kendo-vue-inputs": "3.7.4-dev.202212300853",
|
|
49
|
+
"@progress/kendo-vue-layout": "3.7.4-dev.202212300853"
|
|
49
50
|
},
|
|
50
51
|
"@progress": {
|
|
51
52
|
"friendlyName": "Buttons",
|