@progress/kendo-vue-buttons 3.7.4-dev.202212300853 → 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.
Files changed (47) hide show
  1. package/dist/cdn/js/kendo-vue-buttons.js +1 -1
  2. package/dist/es/Button.js +4 -1
  3. package/dist/es/ButtonInterface.d.ts +4 -0
  4. package/dist/es/Chip/Chip.js +12 -3
  5. package/dist/es/FloatingActionButton/FloatingActionButton.js +2 -2
  6. package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +2 -2
  7. package/dist/es/ListButton/ButtonItem.js +2 -2
  8. package/dist/es/package-metadata.js +1 -1
  9. package/dist/es/toolbar/Toolbar.d.ts +12 -0
  10. package/dist/es/toolbar/Toolbar.js +16 -2
  11. package/dist/es/toolbar/tools/ToolbarItem.d.ts +2 -8
  12. package/dist/es/toolbar/tools/ToolbarItem.js +5 -9
  13. package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +2 -8
  14. package/dist/es/toolbar/tools/ToolbarSeparator.js +5 -15
  15. package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +2 -8
  16. package/dist/es/toolbar/tools/ToolbarSpacer.js +2 -8
  17. package/dist/esm/Button.js +4 -1
  18. package/dist/esm/ButtonInterface.d.ts +4 -0
  19. package/dist/esm/Chip/Chip.js +12 -3
  20. package/dist/esm/FloatingActionButton/FloatingActionButton.js +2 -2
  21. package/dist/esm/FloatingActionButton/FloatingActionButtonItem.js +2 -2
  22. package/dist/esm/ListButton/ButtonItem.js +2 -2
  23. package/dist/esm/package-metadata.js +1 -1
  24. package/dist/esm/toolbar/Toolbar.d.ts +12 -0
  25. package/dist/esm/toolbar/Toolbar.js +16 -2
  26. package/dist/esm/toolbar/tools/ToolbarItem.d.ts +2 -8
  27. package/dist/esm/toolbar/tools/ToolbarItem.js +5 -9
  28. package/dist/esm/toolbar/tools/ToolbarSeparator.d.ts +2 -8
  29. package/dist/esm/toolbar/tools/ToolbarSeparator.js +5 -15
  30. package/dist/esm/toolbar/tools/ToolbarSpacer.d.ts +2 -8
  31. package/dist/esm/toolbar/tools/ToolbarSpacer.js +2 -8
  32. package/dist/npm/Button.js +4 -1
  33. package/dist/npm/ButtonInterface.d.ts +4 -0
  34. package/dist/npm/Chip/Chip.js +12 -3
  35. package/dist/npm/FloatingActionButton/FloatingActionButton.js +2 -2
  36. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +2 -2
  37. package/dist/npm/ListButton/ButtonItem.js +2 -2
  38. package/dist/npm/package-metadata.js +1 -1
  39. package/dist/npm/toolbar/Toolbar.d.ts +12 -0
  40. package/dist/npm/toolbar/Toolbar.js +15 -1
  41. package/dist/npm/toolbar/tools/ToolbarItem.d.ts +2 -8
  42. package/dist/npm/toolbar/tools/ToolbarItem.js +5 -9
  43. package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +2 -8
  44. package/dist/npm/toolbar/tools/ToolbarSeparator.js +5 -15
  45. package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +2 -8
  46. package/dist/npm/toolbar/tools/ToolbarSpacer.js +2 -8
  47. package/package.json +8 -7
package/dist/es/Button.js CHANGED
@@ -26,6 +26,7 @@ var ButtonVue2 = {
26
26
  },
27
27
  props: {
28
28
  ariaLabel: String,
29
+ title: String,
29
30
  dir: String,
30
31
  selected: {
31
32
  type: Boolean,
@@ -259,12 +260,14 @@ var ButtonVue2 = {
259
260
  onKeypress: this.handleKeypress,
260
261
  onKeydown: this.handleKeydown,
261
262
  onContextmenu: this.handleContextmenu,
262
- "aria-label": this.ariaLabel,
263
+ title: this.title,
263
264
  attrs: this.v3 ? undefined : {
265
+ title: this.title,
264
266
  "aria-label": this.ariaLabel,
265
267
  "aria-disabled": this.$props.disabled || undefined,
266
268
  "aria-pressed": togglable ? this.currentActive ? true : undefined : undefined
267
269
  },
270
+ "aria-label": this.ariaLabel,
268
271
  "aria-disabled": this.$props.disabled || undefined,
269
272
  "aria-pressed": togglable ? this.currentActive ? true : undefined : undefined
270
273
  }, [iconElement.call(this), defaultSlot && h("span", {
@@ -26,6 +26,10 @@ export interface ButtonInterface {
26
26
  * Sets the aria-label of the Button.
27
27
  */
28
28
  ariaLabel?: string;
29
+ /**
30
+ * Sets the aria-label of the Button.
31
+ */
32
+ title?: string;
29
33
  /**
30
34
  * Sets the direction of the Button.
31
35
  */
@@ -33,7 +33,7 @@ var ChipVue2 = {
33
33
  removeIcon: {
34
34
  type: String,
35
35
  default: function _default() {
36
- return 'k-i-x-circle';
36
+ return 'x-circle';
37
37
  }
38
38
  },
39
39
  disabled: {
@@ -131,6 +131,12 @@ var ChipVue2 = {
131
131
  return this.$props.selected || (Array.isArray(this.kendoSelection.value) ? this.kendoSelection.value.some(function (i) {
132
132
  return i === _this.$props.value;
133
133
  }) : this.kendoSelection.value === this.$props.value);
134
+ },
135
+ chipLabelClass: function chipLabelClass() {
136
+ return {
137
+ 'k-chip-label': true,
138
+ 'k-text-ellipsis': true
139
+ };
134
140
  }
135
141
  },
136
142
  methods: {
@@ -310,13 +316,16 @@ var ChipVue2 = {
310
316
  attrs: this.v3 ? undefined : {
311
317
  "aria-label": this.$props.text
312
318
  },
313
- "class": 'k-chip-label'
319
+ "class": this.chipLabelClass
314
320
  }, [this.$props.text])]), this.$props.removable && h("span", {
315
321
  "class": "k-chip-actions"
316
322
  }, [h("span", {
317
323
  "class": "k-chip-action k-chip-remove-action"
318
324
  }, [h(Icon, {
319
- "class": this.$props.removeIcon,
325
+ name: this.$props.removeIcon,
326
+ attrs: this.v3 ? undefined : {
327
+ name: this.$props.removeIcon
328
+ },
320
329
  onClick: this.handleRemove,
321
330
  on: this.v3 ? undefined : {
322
331
  "click": this.handleRemove
@@ -390,9 +390,9 @@ var FloatingActionButtonVue2 = {
390
390
  name: icon,
391
391
  attrs: this.v3 ? undefined : {
392
392
  name: icon,
393
- svgIcon: svgIcon
393
+ icon: svgIcon
394
394
  },
395
- svgIcon: svgIcon,
395
+ icon: svgIcon,
396
396
  "class": 'k-fab-icon'
397
397
  }) : iconClass ? h(Icon, {
398
398
  "class": iconClass
@@ -101,9 +101,9 @@ var FloatingActionButtonItemVue2 = {
101
101
  name: icon,
102
102
  attrs: this.v3 ? undefined : {
103
103
  name: icon,
104
- svgIcon: svgIcon
104
+ icon: svgIcon
105
105
  },
106
- svgIcon: svgIcon,
106
+ icon: svgIcon,
107
107
  "class": "k-fab-item-icon"
108
108
  })]);
109
109
  item = getTemplate.call(this, {
@@ -76,9 +76,9 @@ var ButtonItemVue2 = {
76
76
  name: dataItem.icon,
77
77
  attrs: this.v3 ? undefined : {
78
78
  name: dataItem.icon,
79
- svgIcon: dataItem.svgIcon
79
+ icon: dataItem.svgIcon
80
80
  },
81
- svgIcon: dataItem.svgIcon,
81
+ icon: dataItem.svgIcon,
82
82
  "class": dataItem.iconClass
83
83
  }) : dataItem.iconClass && h("span", {
84
84
  "class": dataItem.iconClass,
@@ -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: 1672389521,
8
+ publishDate: 1673273361,
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
  };
@@ -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
@@ -15,7 +15,7 @@ import * as Vue from 'vue';
15
15
  var allVue = Vue;
16
16
  var gh = allVue.h;
17
17
  var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { Keys, validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
18
+ import { Keys, validatePackage, getDefaultSlots, kendoThemeMaps } from '@progress/kendo-vue-common';
19
19
  import { toolbarButtons, internalButtons } from './../util';
20
20
  import { packageMetadata } from '../package-metadata';
21
21
  /**
@@ -38,6 +38,13 @@ var ToolbarVue2 = {
38
38
  default: function _default() {
39
39
  return undefined;
40
40
  }
41
+ },
42
+ size: {
43
+ type: String,
44
+ default: 'medium',
45
+ validator: function validator(value) {
46
+ return [null, 'small', 'medium', 'large'].includes(value);
47
+ }
41
48
  }
42
49
  },
43
50
  created: function created() {
@@ -52,6 +59,13 @@ var ToolbarVue2 = {
52
59
  computed: {
53
60
  selectors: function selectors() {
54
61
  return this.$props.buttons || toolbarButtons;
62
+ },
63
+ wrapperClass: function wrapperClass() {
64
+ var _a;
65
+ var size = this.$props.size;
66
+ return _a = {
67
+ 'k-toolbar': true
68
+ }, _a["k-toolbar-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-toolbar-resizable'] = true, _a;
55
69
  }
56
70
  },
57
71
  mounted: function mounted() {
@@ -94,7 +108,7 @@ var ToolbarVue2 = {
94
108
  var h = gh || createElement;
95
109
  var defaultSlot = getDefaultSlots(this);
96
110
  return h("div", {
97
- "class": 'k-toolbar',
111
+ "class": this.wrapperClass,
98
112
  role: "toolbar",
99
113
  attrs: this.v3 ? undefined : {
100
114
  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
- * </ToolbarItem>
51
- * <ToolbarSpacer />
52
- * <ToolbarItem>
49
+ * <ToolbarSpacer />
53
50
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
54
- * </ToolbarItem>
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
  * ```
@@ -24,7 +24,9 @@ var ToolbarItemVue2 = {
24
24
  render: function render(createElement) {
25
25
  var h = gh || createElement;
26
26
  var defaultSlot = getDefaultSlots(this);
27
- return h("span", [defaultSlot]);
27
+ return h("div", {
28
+ "class": 'k-toolbar-item'
29
+ }, [defaultSlot]);
28
30
  }
29
31
  };
30
32
  /**
@@ -33,21 +35,15 @@ var ToolbarItemVue2 = {
33
35
  * ```jsx
34
36
  * <template>
35
37
  * <Toolbar>
36
- * <ToolbarItem>
37
38
  * <ButtonGroup>
38
39
  * <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
39
40
  * <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
40
41
  * <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
41
42
  * </ButtonGroup>
42
- * </ToolbarItem>
43
- * <ToolbarSpacer />
44
- * <ToolbarItem>
43
+ * <ToolbarSpacer />
45
44
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
46
- * </ToolbarItem>
47
- * <ToolbarSeparator />
48
- * <ToolbarItem>
45
+ * <ToolbarSeparator />
49
46
  * <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
50
- * </ToolbarItem>
51
47
  * </Toolbar>
52
48
  * </template>
53
49
  * ```
@@ -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
- * </ToolbarItem>
23
- * <ToolbarSpacer />
24
- * <ToolbarItem>
21
+ * <ToolbarSpacer />
25
22
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
26
- * </ToolbarItem>
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
  * ```
@@ -3,7 +3,6 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { ToolbarItem } from './ToolbarItem';
7
6
  /**
8
7
  * @hidden
9
8
  */
@@ -18,12 +17,9 @@ var ToolbarSeparatorVue2 = {
18
17
  },
19
18
  render: function render(createElement) {
20
19
  var h = gh || createElement;
21
- return (
22
- // @ts-ignore
23
- h(ToolbarItem, {
24
- "class": "k-separator"
25
- })
26
- );
20
+ return h("div", {
21
+ "class": "k-separator"
22
+ });
27
23
  }
28
24
  };
29
25
  /**
@@ -32,21 +28,15 @@ var ToolbarSeparatorVue2 = {
32
28
  * ```jsx
33
29
  * <template>
34
30
  * <Toolbar>
35
- * <ToolbarItem>
36
31
  * <ButtonGroup>
37
32
  * <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
38
33
  * <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
39
34
  * <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
40
35
  * </ButtonGroup>
41
- * </ToolbarItem>
42
- * <ToolbarSpacer />
43
- * <ToolbarItem>
36
+ * <ToolbarSpacer />
44
37
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
45
- * </ToolbarItem>
46
- * <ToolbarSeparator />
47
- * <ToolbarItem>
38
+ * <ToolbarSeparator />
48
39
  * <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
49
- * </ToolbarItem>
50
40
  * </Toolbar>
51
41
  * </template>
52
42
  * ```
@@ -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
- * </ToolbarItem>
23
- * <ToolbarSpacer />
24
- * <ToolbarItem>
21
+ * <ToolbarSpacer />
25
22
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
26
- * </ToolbarItem>
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
  * ```
@@ -28,21 +28,15 @@ var ToolbarSpacerVue2 = {
28
28
  * ```jsx
29
29
  * <template>
30
30
  * <Toolbar>
31
- * <ToolbarItem>
32
31
  * <ButtonGroup>
33
32
  * <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
34
33
  * <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
35
34
  * <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
36
35
  * </ButtonGroup>
37
- * </ToolbarItem>
38
- * <ToolbarSpacer />
39
- * <ToolbarItem>
36
+ * <ToolbarSpacer />
40
37
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
41
- * </ToolbarItem>
42
- * <ToolbarSeparator />
43
- * <ToolbarItem>
38
+ * <ToolbarSeparator />
44
39
  * <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
45
- * </ToolbarItem>
46
40
  * </Toolbar>
47
41
  * </template>
48
42
  * ```
@@ -26,6 +26,7 @@ var ButtonVue2 = {
26
26
  },
27
27
  props: {
28
28
  ariaLabel: String,
29
+ title: String,
29
30
  dir: String,
30
31
  selected: {
31
32
  type: Boolean,
@@ -259,12 +260,14 @@ var ButtonVue2 = {
259
260
  onKeypress: this.handleKeypress,
260
261
  onKeydown: this.handleKeydown,
261
262
  onContextmenu: this.handleContextmenu,
262
- "aria-label": this.ariaLabel,
263
+ title: this.title,
263
264
  attrs: this.v3 ? undefined : {
265
+ title: this.title,
264
266
  "aria-label": this.ariaLabel,
265
267
  "aria-disabled": this.$props.disabled || undefined,
266
268
  "aria-pressed": togglable ? this.currentActive ? true : undefined : undefined
267
269
  },
270
+ "aria-label": this.ariaLabel,
268
271
  "aria-disabled": this.$props.disabled || undefined,
269
272
  "aria-pressed": togglable ? this.currentActive ? true : undefined : undefined
270
273
  }, [iconElement.call(this), defaultSlot && h("span", {
@@ -26,6 +26,10 @@ export interface ButtonInterface {
26
26
  * Sets the aria-label of the Button.
27
27
  */
28
28
  ariaLabel?: string;
29
+ /**
30
+ * Sets the aria-label of the Button.
31
+ */
32
+ title?: string;
29
33
  /**
30
34
  * Sets the direction of the Button.
31
35
  */
@@ -33,7 +33,7 @@ var ChipVue2 = {
33
33
  removeIcon: {
34
34
  type: String,
35
35
  default: function _default() {
36
- return 'k-i-x-circle';
36
+ return 'x-circle';
37
37
  }
38
38
  },
39
39
  disabled: {
@@ -131,6 +131,12 @@ var ChipVue2 = {
131
131
  return this.$props.selected || (Array.isArray(this.kendoSelection.value) ? this.kendoSelection.value.some(function (i) {
132
132
  return i === _this.$props.value;
133
133
  }) : this.kendoSelection.value === this.$props.value);
134
+ },
135
+ chipLabelClass: function chipLabelClass() {
136
+ return {
137
+ 'k-chip-label': true,
138
+ 'k-text-ellipsis': true
139
+ };
134
140
  }
135
141
  },
136
142
  methods: {
@@ -310,13 +316,16 @@ var ChipVue2 = {
310
316
  attrs: this.v3 ? undefined : {
311
317
  "aria-label": this.$props.text
312
318
  },
313
- "class": 'k-chip-label'
319
+ "class": this.chipLabelClass
314
320
  }, [this.$props.text])]), this.$props.removable && h("span", {
315
321
  "class": "k-chip-actions"
316
322
  }, [h("span", {
317
323
  "class": "k-chip-action k-chip-remove-action"
318
324
  }, [h(Icon, {
319
- "class": this.$props.removeIcon,
325
+ name: this.$props.removeIcon,
326
+ attrs: this.v3 ? undefined : {
327
+ name: this.$props.removeIcon
328
+ },
320
329
  onClick: this.handleRemove,
321
330
  on: this.v3 ? undefined : {
322
331
  "click": this.handleRemove
@@ -390,9 +390,9 @@ var FloatingActionButtonVue2 = {
390
390
  name: icon,
391
391
  attrs: this.v3 ? undefined : {
392
392
  name: icon,
393
- svgIcon: svgIcon
393
+ icon: svgIcon
394
394
  },
395
- svgIcon: svgIcon,
395
+ icon: svgIcon,
396
396
  "class": 'k-fab-icon'
397
397
  }) : iconClass ? h(Icon, {
398
398
  "class": iconClass
@@ -101,9 +101,9 @@ var FloatingActionButtonItemVue2 = {
101
101
  name: icon,
102
102
  attrs: this.v3 ? undefined : {
103
103
  name: icon,
104
- svgIcon: svgIcon
104
+ icon: svgIcon
105
105
  },
106
- svgIcon: svgIcon,
106
+ icon: svgIcon,
107
107
  "class": "k-fab-item-icon"
108
108
  })]);
109
109
  item = getTemplate.call(this, {
@@ -76,9 +76,9 @@ var ButtonItemVue2 = {
76
76
  name: dataItem.icon,
77
77
  attrs: this.v3 ? undefined : {
78
78
  name: dataItem.icon,
79
- svgIcon: dataItem.svgIcon
79
+ icon: dataItem.svgIcon
80
80
  },
81
- svgIcon: dataItem.svgIcon,
81
+ icon: dataItem.svgIcon,
82
82
  "class": dataItem.iconClass
83
83
  }) : dataItem.iconClass && h("span", {
84
84
  "class": dataItem.iconClass,
@@ -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: 1672389521,
8
+ publishDate: 1673273361,
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
  };
@@ -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&mdash;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
@@ -15,7 +15,7 @@ import * as Vue from 'vue';
15
15
  var allVue = Vue;
16
16
  var gh = allVue.h;
17
17
  var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { Keys, validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
18
+ import { Keys, validatePackage, getDefaultSlots, kendoThemeMaps } from '@progress/kendo-vue-common';
19
19
  import { toolbarButtons, internalButtons } from './../util.js';
20
20
  import { packageMetadata } from '../package-metadata.js';
21
21
  /**
@@ -38,6 +38,13 @@ var ToolbarVue2 = {
38
38
  default: function _default() {
39
39
  return undefined;
40
40
  }
41
+ },
42
+ size: {
43
+ type: String,
44
+ default: 'medium',
45
+ validator: function validator(value) {
46
+ return [null, 'small', 'medium', 'large'].includes(value);
47
+ }
41
48
  }
42
49
  },
43
50
  created: function created() {
@@ -52,6 +59,13 @@ var ToolbarVue2 = {
52
59
  computed: {
53
60
  selectors: function selectors() {
54
61
  return this.$props.buttons || toolbarButtons;
62
+ },
63
+ wrapperClass: function wrapperClass() {
64
+ var _a;
65
+ var size = this.$props.size;
66
+ return _a = {
67
+ 'k-toolbar': true
68
+ }, _a["k-toolbar-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-toolbar-resizable'] = true, _a;
55
69
  }
56
70
  },
57
71
  mounted: function mounted() {
@@ -94,7 +108,7 @@ var ToolbarVue2 = {
94
108
  var h = gh || createElement;
95
109
  var defaultSlot = getDefaultSlots(this);
96
110
  return h("div", {
97
- "class": 'k-toolbar',
111
+ "class": this.wrapperClass,
98
112
  role: "toolbar",
99
113
  attrs: this.v3 ? undefined : {
100
114
  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
- * </ToolbarItem>
51
- * <ToolbarSpacer />
52
- * <ToolbarItem>
49
+ * <ToolbarSpacer />
53
50
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
54
- * </ToolbarItem>
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
  * ```
@@ -24,7 +24,9 @@ var ToolbarItemVue2 = {
24
24
  render: function render(createElement) {
25
25
  var h = gh || createElement;
26
26
  var defaultSlot = getDefaultSlots(this);
27
- return h("span", [defaultSlot]);
27
+ return h("div", {
28
+ "class": 'k-toolbar-item'
29
+ }, [defaultSlot]);
28
30
  }
29
31
  };
30
32
  /**
@@ -33,21 +35,15 @@ var ToolbarItemVue2 = {
33
35
  * ```jsx
34
36
  * <template>
35
37
  * <Toolbar>
36
- * <ToolbarItem>
37
38
  * <ButtonGroup>
38
39
  * <Button :icon="'bold'" :title="'Bold'" :togglable="true" />
39
40
  * <Button :icon="'italic'" :title="'Italic'" :togglable="true" />
40
41
  * <Button :icon="'underline'" :title="'Underline'" :togglable="true" />
41
42
  * </ButtonGroup>
42
- * </ToolbarItem>
43
- * <ToolbarSpacer />
44
- * <ToolbarItem>
43
+ * <ToolbarSpacer />
45
44
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
46
- * </ToolbarItem>
47
- * <ToolbarSeparator />
48
- * <ToolbarItem>
45
+ * <ToolbarSeparator />
49
46
  * <Button :icon="'cut'" :title="'Cut'"> Cut </Button>
50
- * </ToolbarItem>
51
47
  * </Toolbar>
52
48
  * </template>
53
49
  * ```
@@ -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
- * </ToolbarItem>
23
- * <ToolbarSpacer />
24
- * <ToolbarItem>
21
+ * <ToolbarSpacer />
25
22
  * <SplitButton :text="'Insert'" :items="splitItems"> </SplitButton>
26
- * </ToolbarItem>
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
  * ```