@progress/kendo-vue-buttons 3.5.0 → 3.5.1-dev.202208150613

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 (135) hide show
  1. package/dist/cdn/js/kendo-vue-buttons.js +1 -1
  2. package/dist/es/Button.js +1 -1
  3. package/dist/es/ButtonGroupInterface.js +1 -0
  4. package/dist/es/ButtonInterface.js +1 -0
  5. package/dist/es/Chip/Chip.js +1 -1
  6. package/dist/es/Chip/ChipList.js +1 -1
  7. package/dist/es/Chip/selection-reducer.js +8 -12
  8. package/dist/es/FloatingActionButton/FloatingActionButton.js +8 -8
  9. package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
  10. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
  11. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
  12. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
  13. package/dist/es/FloatingActionButton/models/align-offset.js +1 -0
  14. package/dist/es/FloatingActionButton/models/align.js +1 -0
  15. package/dist/es/FloatingActionButton/models/events.js +1 -0
  16. package/dist/es/FloatingActionButton/models/position-mode.js +1 -0
  17. package/dist/es/FloatingActionButton/models/shape.js +1 -0
  18. package/dist/es/FloatingActionButton/models/size.js +1 -0
  19. package/dist/es/FloatingActionButton/models/theme-color.js +1 -0
  20. package/dist/es/FloatingActionButton/utils.js +2 -2
  21. package/dist/es/ListButton/ButtonItem.js +1 -1
  22. package/dist/es/ListButton/DropDownButton.js +8 -8
  23. package/dist/es/ListButton/SplitButton.js +8 -8
  24. package/dist/es/ListButton/models/ButtonItemInterface.js +1 -0
  25. package/dist/es/ListButton/models/ListButtonProps.js +1 -0
  26. package/dist/es/ListButton/models/PopupSettings.js +1 -0
  27. package/dist/es/ListButton/models/events.js +1 -0
  28. package/dist/es/buttonLook.js +1 -0
  29. package/dist/es/models/index.js +1 -0
  30. package/dist/es/package-metadata.js +1 -1
  31. package/dist/es/util.d.ts +3 -3
  32. package/dist/esm/Button.d.ts +123 -0
  33. package/dist/esm/Button.js +280 -0
  34. package/dist/esm/ButtonGroup.d.ts +49 -0
  35. package/dist/esm/ButtonGroup.js +106 -0
  36. package/dist/esm/ButtonGroupInterface.d.ts +30 -0
  37. package/dist/esm/ButtonGroupInterface.js +2 -0
  38. package/dist/esm/ButtonInterface.d.ts +56 -0
  39. package/dist/esm/ButtonInterface.js +2 -0
  40. package/dist/esm/ButtonWrap.d.ts +19 -0
  41. package/dist/esm/ButtonWrap.js +33 -0
  42. package/dist/esm/Chip/Chip.d.ts +199 -0
  43. package/dist/esm/Chip/Chip.js +339 -0
  44. package/dist/esm/Chip/ChipList.d.ts +174 -0
  45. package/dist/esm/Chip/ChipList.js +263 -0
  46. package/dist/esm/Chip/data-reducer.d.ts +21 -0
  47. package/dist/esm/Chip/data-reducer.js +34 -0
  48. package/dist/esm/Chip/focus-reducer.d.ts +24 -0
  49. package/dist/esm/Chip/focus-reducer.js +38 -0
  50. package/dist/esm/Chip/selection-reducer.d.ts +29 -0
  51. package/dist/esm/Chip/selection-reducer.js +102 -0
  52. package/dist/esm/FloatingActionButton/FloatingActionButton.d.ts +49 -0
  53. package/dist/esm/FloatingActionButton/FloatingActionButton.js +494 -0
  54. package/dist/esm/FloatingActionButton/FloatingActionButtonItem.d.ts +118 -0
  55. package/dist/esm/FloatingActionButton/FloatingActionButtonItem.js +121 -0
  56. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +13 -0
  57. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
  58. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +24 -0
  59. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
  60. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +243 -0
  61. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
  62. package/dist/esm/FloatingActionButton/models/align-offset.d.ts +20 -0
  63. package/dist/esm/FloatingActionButton/models/align-offset.js +1 -0
  64. package/dist/esm/FloatingActionButton/models/align.d.ts +27 -0
  65. package/dist/esm/FloatingActionButton/models/align.js +1 -0
  66. package/dist/esm/FloatingActionButton/models/events.d.ts +18 -0
  67. package/dist/esm/FloatingActionButton/models/events.js +2 -0
  68. package/dist/esm/FloatingActionButton/models/position-mode.d.ts +9 -0
  69. package/dist/esm/FloatingActionButton/models/position-mode.js +1 -0
  70. package/dist/esm/FloatingActionButton/models/shape.d.ts +13 -0
  71. package/dist/esm/FloatingActionButton/models/shape.js +1 -0
  72. package/dist/esm/FloatingActionButton/models/size.d.ts +10 -0
  73. package/dist/esm/FloatingActionButton/models/size.js +1 -0
  74. package/dist/esm/FloatingActionButton/models/theme-color.d.ts +17 -0
  75. package/dist/esm/FloatingActionButton/models/theme-color.js +1 -0
  76. package/dist/esm/FloatingActionButton/utils.d.ts +27 -0
  77. package/dist/esm/FloatingActionButton/utils.js +93 -0
  78. package/dist/esm/ListButton/ButtonItem.d.ts +58 -0
  79. package/dist/esm/ListButton/ButtonItem.js +138 -0
  80. package/dist/esm/ListButton/DropDownButton.d.ts +66 -0
  81. package/dist/esm/ListButton/DropDownButton.js +453 -0
  82. package/dist/esm/ListButton/SplitButton.d.ts +67 -0
  83. package/dist/esm/ListButton/SplitButton.js +515 -0
  84. package/dist/esm/ListButton/models/ButtonItemInterface.d.ts +29 -0
  85. package/dist/esm/ListButton/models/ButtonItemInterface.js +2 -0
  86. package/dist/esm/ListButton/models/ListButtonProps.d.ts +328 -0
  87. package/dist/esm/ListButton/models/ListButtonProps.js +2 -0
  88. package/dist/esm/ListButton/models/PopupSettings.d.ts +24 -0
  89. package/dist/esm/ListButton/models/PopupSettings.js +1 -0
  90. package/dist/esm/ListButton/models/events.d.ts +48 -0
  91. package/dist/esm/ListButton/models/events.js +1 -0
  92. package/dist/esm/ListButton/utils/navigation.d.ts +5 -0
  93. package/dist/esm/ListButton/utils/navigation.js +24 -0
  94. package/dist/esm/ListButton/utils/popup.d.ts +9 -0
  95. package/dist/esm/ListButton/utils/popup.js +20 -0
  96. package/dist/esm/additionalTypes.ts +21 -0
  97. package/dist/esm/buttonLook.d.ts +13 -0
  98. package/dist/esm/buttonLook.js +1 -0
  99. package/dist/esm/main.d.ts +30 -0
  100. package/dist/esm/main.js +15 -0
  101. package/dist/esm/models/index.d.ts +87 -0
  102. package/dist/esm/models/index.js +1 -0
  103. package/dist/esm/package-metadata.d.ts +5 -0
  104. package/dist/esm/package-metadata.js +11 -0
  105. package/dist/esm/package.json +3 -0
  106. package/dist/esm/toolbar/Toolbar.d.ts +112 -0
  107. package/dist/esm/toolbar/Toolbar.js +208 -0
  108. package/dist/esm/toolbar/tools/ToolbarItem.d.ts +64 -0
  109. package/dist/esm/toolbar/tools/ToolbarItem.js +58 -0
  110. package/dist/esm/toolbar/tools/ToolbarSeparator.d.ts +36 -0
  111. package/dist/esm/toolbar/tools/ToolbarSeparator.js +56 -0
  112. package/dist/esm/toolbar/tools/ToolbarSpacer.d.ts +36 -0
  113. package/dist/esm/toolbar/tools/ToolbarSpacer.js +53 -0
  114. package/dist/esm/util.d.ts +31 -0
  115. package/dist/esm/util.js +40 -0
  116. package/dist/npm/Button.js +5 -5
  117. package/dist/npm/ButtonGroup.js +4 -4
  118. package/dist/npm/ButtonWrap.js +1 -1
  119. package/dist/npm/Chip/Chip.js +10 -10
  120. package/dist/npm/Chip/ChipList.js +8 -8
  121. package/dist/npm/Chip/data-reducer.js +4 -2
  122. package/dist/npm/Chip/focus-reducer.js +4 -2
  123. package/dist/npm/Chip/selection-reducer.js +12 -14
  124. package/dist/npm/FloatingActionButton/FloatingActionButton.js +31 -31
  125. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +8 -8
  126. package/dist/npm/FloatingActionButton/utils.js +14 -9
  127. package/dist/npm/ListButton/ButtonItem.js +1 -1
  128. package/dist/npm/ListButton/DropDownButton.js +19 -19
  129. package/dist/npm/ListButton/SplitButton.js +19 -19
  130. package/dist/npm/main.js +6 -2
  131. package/dist/npm/package-metadata.js +1 -1
  132. package/dist/npm/toolbar/Toolbar.js +2 -2
  133. package/dist/npm/toolbar/tools/ToolbarItem.js +1 -1
  134. package/dist/npm/util.d.ts +3 -3
  135. package/package.json +11 -5
package/dist/es/Button.js CHANGED
@@ -115,7 +115,7 @@ var ButtonVue2 = {
115
115
  var hasIcon = icon !== undefined || iconClass !== undefined || imageUrl !== undefined;
116
116
  var defaultSlot = getDefaultSlots(this);
117
117
  var hasChildren = defaultSlot;
118
- return _a = {}, _a[styles.button] = true, _a["k-button-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-button-" + shape] = shape && shape !== 'rectangle', _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-icon-button'] = !hasChildren && hasIcon, _a['k-disabled'] = disabled, _a['k-selected'] = this.computedSelected, _a['k-rtl'] = dir === 'rtl', _a["k-button-" + fillMode] = fillMode, _a["k-button-" + fillMode + "-" + themeColor] = fillMode && themeColor, _a;
118
+ return _a = {}, _a[styles.button] = true, _a["k-button-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-button-".concat(shape)] = shape && shape !== 'rectangle', _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-icon-button'] = !hasChildren && hasIcon, _a['k-disabled'] = disabled, _a['k-selected'] = this.computedSelected, _a['k-rtl'] = dir === 'rtl', _a["k-button-".concat(fillMode)] = fillMode, _a["k-button-".concat(fillMode, "-").concat(themeColor)] = fillMode && themeColor, _a;
119
119
  }
120
120
  },
121
121
  updated: function updated() {
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -292,7 +292,7 @@ var ChipVue2 = {
292
292
  'k-disabled': this.$props.disabled,
293
293
  'k-selected': this.currentSelected,
294
294
  'k-focus': this.computedFocused()
295
- }, _a["k-chip-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-chip-" + fillMode] = fillMode, _a["k-chip-" + fillMode + "-" + 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)),
295
+ }, _a["k-chip-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(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)),
296
296
  "aria-checked": this.currentSelected,
297
297
  "aria-disabled": this.$props.disabled,
298
298
  "aria-describedby": this.$props.ariaDescribedBy,
@@ -215,7 +215,7 @@ var ChipListVue2 = {
215
215
  dir: this.currentDir,
216
216
  style: this.$props.style,
217
217
  tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
218
- "class": classNames('k-chip-list', (_a = {}, _a["k-chip-list-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-rtl'] = this.currentDir === 'rtl', _a['k-selection-single'] = this.$props.selection === 'single', _a['k-selection-multiple'] = this.$props.selection === 'multiple', _a['k-disabled'] = this.$props.disabled, _a)),
218
+ "class": classNames('k-chip-list', (_a = {}, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-rtl'] = this.currentDir === 'rtl', _a['k-selection-single'] = this.$props.selection === 'single', _a['k-selection-multiple'] = this.$props.selection === 'multiple', _a['k-disabled'] = this.$props.disabled, _a)),
219
219
  "aria-labelledby": this.$props.ariaLabelledBy,
220
220
  "aria-describedby": this.$props.ariaDescribedBy
221
221
  }, [this.computedDataItems.map(function (item) {
@@ -1,15 +1,11 @@
1
- var __spreadArrays = this && this.__spreadArrays || function () {
2
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
3
- s += arguments[i].length;
4
- }
5
-
6
- for (var r = Array(s), k = 0, i = 0; i < il; i++) {
7
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
8
- r[k] = a[j];
1
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
9
6
  }
10
7
  }
11
-
12
- return r;
8
+ return to.concat(ar || Array.prototype.slice.call(from));
13
9
  };
14
10
  /**
15
11
  * @hidden
@@ -70,7 +66,7 @@ export var selectionReducer = function selectionReducer(state, action) {
70
66
  return i === action.payload;
71
67
  }) ? state.filter(function (i) {
72
68
  return i !== action.payload;
73
- }) : __spreadArrays(state, [action.payload]);
69
+ }) : __spreadArray(__spreadArray([], state, true), [action.payload], false);
74
70
  }
75
71
 
76
72
  if (state === null) {
@@ -87,7 +83,7 @@ export var selectionReducer = function selectionReducer(state, action) {
87
83
  return i === action.payload;
88
84
  }) ? state.filter(function (i) {
89
85
  return i !== action.payload;
90
- }) : __spreadArrays(state, [action.payload]);
86
+ }) : __spreadArray(__spreadArray([], state, true), [action.payload], false);
91
87
  }
92
88
 
93
89
  return state;
@@ -141,7 +141,7 @@ var FloatingActionButtonVue2 = {
141
141
  rounded = _b.rounded;
142
142
  return _a = {
143
143
  'k-fab': true
144
- }, _a["k-fab-" + (shape || 'rectangle')] = shape !== null, _a["k-fab-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-fab-" + fillMode] = fillMode, _a["k-fab-" + fillMode + "-" + themeColor] = fillMode && themeColor, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.currentFocused, _a["k-" + this.$props.align.vertical + "-" + this.$props.align.horizontal] = true, _a;
144
+ }, _a["k-fab-".concat(shape || 'rectangle')] = shape !== null, _a["k-fab-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-fab-".concat(fillMode)] = fillMode, _a["k-fab-".concat(fillMode, "-").concat(themeColor)] = fillMode && themeColor, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.currentFocused, _a["k-".concat(this.$props.align.vertical, "-").concat(this.$props.align.horizontal)] = true, _a;
145
145
  },
146
146
  computedOpened: function computedOpened() {
147
147
  return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
@@ -335,13 +335,13 @@ var FloatingActionButtonVue2 = {
335
335
  index: index,
336
336
  attrs: this.v3 ? undefined : {
337
337
  index: index,
338
- id: this.listId + "-" + index,
338
+ id: "".concat(this.listId, "-").concat(index),
339
339
  disabled: disabled || element.disabled,
340
340
  focused: this.focusedIndex === index,
341
341
  dataItem: element,
342
342
  item: item
343
343
  },
344
- id: this.listId + "-" + index,
344
+ id: "".concat(this.listId, "-").concat(index),
345
345
  disabled: disabled || element.disabled,
346
346
  focused: this.focusedIndex === index,
347
347
  dataItem: element,
@@ -376,9 +376,9 @@ var FloatingActionButtonVue2 = {
376
376
  "aria-disabled": disabled,
377
377
  "aria-expanded": items ? this.computedOpened : undefined,
378
378
  "aria-haspopup": items ? true : false,
379
- "aria-label": (text || '') + " floatingactionbutton",
379
+ "aria-label": "".concat(text || '', " floatingactionbutton"),
380
380
  "aria-owns": items ? this.listId : undefined,
381
- "aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId + "-" + this.focusedIndex : undefined,
381
+ "aria-activedescendant": this.focusedIndex >= 0 && items ? "".concat(this.listId, "-").concat(this.focusedIndex) : undefined,
382
382
  tabindex: getTabIndex(tabIndex, disabled),
383
383
  accesskey: accessKey,
384
384
  dir: this.currentDir,
@@ -389,9 +389,9 @@ var FloatingActionButtonVue2 = {
389
389
  "aria-disabled": disabled,
390
390
  "aria-expanded": items ? this.computedOpened : undefined,
391
391
  "aria-haspopup": items ? true : false,
392
- "aria-label": (text || '') + " floatingactionbutton",
392
+ "aria-label": "".concat(text || '', " floatingactionbutton"),
393
393
  "aria-owns": items ? this.listId : undefined,
394
- "aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId + "-" + this.focusedIndex : undefined,
394
+ "aria-activedescendant": this.focusedIndex >= 0 && items ? "".concat(this.listId, "-").concat(this.focusedIndex) : undefined,
395
395
  tabindex: getTabIndex(tabIndex, disabled),
396
396
  accesskey: accessKey,
397
397
  dir: this.currentDir,
@@ -416,7 +416,7 @@ var FloatingActionButtonVue2 = {
416
416
  attrs: this.v3 ? undefined : {
417
417
  role: "presentation"
418
418
  },
419
- "class": classNames("k-fab-icon k-icon k-i-" + icon)
419
+ "class": classNames("k-fab-icon k-icon k-i-".concat(icon))
420
420
  }) : iconClass ? h("span", {
421
421
  role: "presentation",
422
422
  attrs: this.v3 ? undefined : {
@@ -81,13 +81,13 @@ var FloatingActionButtonItemVue2 = {
81
81
  role: 'menuitem',
82
82
  tabindex: getTabIndex(tabIndex, disabled),
83
83
  "aria-disabled": disabled,
84
- "aria-label": (text || '') + " floatingactionbutton item"
84
+ "aria-label": "".concat(text || '', " floatingactionbutton item")
85
85
  },
86
86
  "class": this.itemClassNames,
87
87
  role: 'menuitem',
88
88
  tabindex: getTabIndex(tabIndex, disabled),
89
89
  "aria-disabled": disabled,
90
- "aria-label": (text || '') + " floatingactionbutton item",
90
+ "aria-label": "".concat(text || '', " floatingactionbutton item"),
91
91
  onClick: this.handleClick,
92
92
  on: this.v3 ? undefined : {
93
93
  "click": this.handleClick,
@@ -99,7 +99,7 @@ var FloatingActionButtonItemVue2 = {
99
99
  }, [text && h("span", {
100
100
  "class": "k-fab-item-text"
101
101
  }, [text]), icon && h("span", {
102
- "class": classNames("k-fab-item-icon k-icon k-i-" + icon)
102
+ "class": classNames("k-fab-item-icon k-icon k-i-".concat(icon))
103
103
  })]);
104
104
  item = getTemplate.call(this, {
105
105
  h: h,
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  // import { FloatingActionButtonItemProps } from '../../main';
2
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -53,13 +53,13 @@ export var position = function (ref, align, alignOffset, isRtl) {
53
53
  toStringValues(alignOffset.x) :
54
54
  DEFAULT_OFFSET;
55
55
  var xCenterFab = alignOffset && alignOffset.x !== undefined ?
56
- "calc(50% + " + toStringValues(alignOffset.x) + ")" :
56
+ "calc(50% + ".concat(toStringValues(alignOffset.x), ")") :
57
57
  '50%';
58
58
  var yFab = alignOffset && alignOffset.y !== undefined ?
59
59
  toStringValues(alignOffset.y) :
60
60
  DEFAULT_OFFSET;
61
61
  var yCenterFab = alignOffset && alignOffset.y !== undefined ?
62
- "calc(50% + " + toStringValues(alignOffset.y) + ")" :
62
+ "calc(50% + ".concat(toStringValues(alignOffset.y), ")") :
63
63
  '50%';
64
64
  ref.style.setProperty(horizontalPosition(align, isRtl), horizontal === 'center' ? xCenterFab : xFab);
65
65
  ref.style.setProperty(verticalPosition(align), vertical === 'middle' ? yCenterFab : yFab);
@@ -67,7 +67,7 @@ var ButtonItemVue2 = {
67
67
  textField = _a.textField,
68
68
  index = _a.index;
69
69
  var text = dataItem.text !== undefined ? dataItem.text : textField ? dataItem[textField] : dataItem;
70
- var iconClass = dataItem.icon ? "k-icon k-i-" + dataItem.icon : dataItem.iconClass;
70
+ var iconClass = dataItem.icon ? "k-icon k-i-".concat(dataItem.icon) : dataItem.iconClass;
71
71
  var itemContent = h("span", {
72
72
  tabindex: -1,
73
73
  attrs: this.v3 ? undefined : {
@@ -185,7 +185,7 @@ var DropDownButtonVue2 = {
185
185
  render: templateRendering.call(this, itemRender, getListeners.call(this)),
186
186
  item: item,
187
187
  index: index,
188
- id: this.guid + "-" + index
188
+ id: "".concat(this.guid, "-").concat(index)
189
189
  },
190
190
  textField: textField,
191
191
  focused: this.focusedIndex === index,
@@ -199,7 +199,7 @@ var DropDownButtonVue2 = {
199
199
  item: item,
200
200
  index: index,
201
201
  key: index,
202
- id: this.guid + "-" + index
202
+ id: "".concat(this.guid, "-").concat(index)
203
203
  })
204
204
  );
205
205
  }, this) : null;
@@ -233,7 +233,7 @@ var DropDownButtonVue2 = {
233
233
  } : undefined
234
234
  }, this.v3 ? function () {
235
235
  return [h("ul", {
236
- "class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
236
+ "class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
237
237
  role: "menu",
238
238
  attrs: _this.v3 ? undefined : {
239
239
  role: "menu",
@@ -242,7 +242,7 @@ var DropDownButtonVue2 = {
242
242
  id: _this.guid
243
243
  }, [renderChildItems.call(_this)])];
244
244
  } : [h("ul", {
245
- "class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
245
+ "class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
246
246
  role: "menu",
247
247
  attrs: _this.v3 ? undefined : {
248
248
  role: "menu",
@@ -289,9 +289,9 @@ var DropDownButtonVue2 = {
289
289
  "aria-disabled": disabled,
290
290
  "aria-haspopup": true,
291
291
  "aria-expanded": this.computedOpened,
292
- "aria-label": this.$props.text + " dropdownbutton",
292
+ "aria-label": "".concat(this.$props.text, " dropdownbutton"),
293
293
  "aria-owns": this.guid,
294
- "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
294
+ "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
295
295
  },
296
296
  shape: this.$props.shape,
297
297
  rounded: this.$props.rounded,
@@ -318,9 +318,9 @@ var DropDownButtonVue2 = {
318
318
  "aria-disabled": disabled,
319
319
  "aria-haspopup": true,
320
320
  "aria-expanded": this.computedOpened,
321
- "aria-label": this.$props.text + " dropdownbutton",
321
+ "aria-label": "".concat(this.$props.text, " dropdownbutton"),
322
322
  "aria-owns": this.guid,
323
- "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
323
+ "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
324
324
  }, this.v3 ? function () {
325
325
  return [_this2.$props.text, defaultSlot];
326
326
  } : [_this2.$props.text, defaultSlot]), renderPopup.call(this)]);
@@ -176,7 +176,7 @@ var SplitButtonVue2 = {
176
176
  render: templateRendering.call(this, itemRender, getListeners.call(this)),
177
177
  item: item,
178
178
  index: index,
179
- id: this.guid + "-" + index
179
+ id: "".concat(this.guid, "-").concat(index)
180
180
  },
181
181
  textField: textField,
182
182
  focused: this.focusedIndex === index,
@@ -190,7 +190,7 @@ var SplitButtonVue2 = {
190
190
  item: item,
191
191
  key: index,
192
192
  index: index,
193
- id: this.guid + "-" + index
193
+ id: "".concat(this.guid, "-").concat(index)
194
194
  })
195
195
  );
196
196
  }, this) : null;
@@ -224,7 +224,7 @@ var SplitButtonVue2 = {
224
224
  } : undefined
225
225
  }, this.v3 ? function () {
226
226
  return [h("ul", {
227
- "class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
227
+ "class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
228
228
  role: "menu",
229
229
  attrs: _this2.v3 ? undefined : {
230
230
  role: "menu",
@@ -233,7 +233,7 @@ var SplitButtonVue2 = {
233
233
  id: _this2.guid
234
234
  }, [renderChildItems.call(_this2)])];
235
235
  } : [h("ul", {
236
- "class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
236
+ "class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
237
237
  role: "menu",
238
238
  attrs: _this2.v3 ? undefined : {
239
239
  role: "menu",
@@ -278,9 +278,9 @@ var SplitButtonVue2 = {
278
278
  "aria-disabled": disabled,
279
279
  "aria-haspopup": true,
280
280
  "aria-expanded": this.computedOpened,
281
- "aria-label": this.$props.text + " splitbutton",
281
+ "aria-label": "".concat(this.$props.text, " splitbutton"),
282
282
  "aria-owns": this.guid,
283
- "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
283
+ "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
284
284
  },
285
285
  rounded: this.$props.rounded,
286
286
  fillMode: this.$props.fillMode,
@@ -307,9 +307,9 @@ var SplitButtonVue2 = {
307
307
  "aria-disabled": disabled,
308
308
  "aria-haspopup": true,
309
309
  "aria-expanded": this.computedOpened,
310
- "aria-label": this.$props.text + " splitbutton",
310
+ "aria-label": "".concat(this.$props.text, " splitbutton"),
311
311
  "aria-owns": this.guid,
312
- "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
312
+ "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
313
313
  }, this.v3 ? function () {
314
314
  return [_this3.$props.text, defaultSlot];
315
315
  } : [_this3.$props.text, defaultSlot]), // @ts-ignore
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -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: 1659428804,
8
+ publishDate: 1660543116,
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/es/util.d.ts CHANGED
@@ -6,6 +6,9 @@ export declare const internalButtons = ".k-dropdownlist > .k-button,.k-colorpick
6
6
  * @hidden
7
7
  */
8
8
  export declare const toolbarButtons: string[];
9
+ /**
10
+ * @hidden
11
+ */
9
12
  declare const _default: {
10
13
  styles: {
11
14
  button: string;
@@ -25,7 +28,4 @@ declare const _default: {
25
28
  rtl: string;
26
29
  };
27
30
  };
28
- /**
29
- * @hidden
30
- */
31
31
  export default _default;
@@ -0,0 +1,123 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ import { ButtonInterface } from './ButtonInterface';
7
+ /**
8
+ * Represents the props of the [Kendo UI for Vue Button component]({% slug overview_button %}).
9
+ * Extends the [native button props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement).
10
+ */
11
+ export interface ButtonProps extends ButtonInterface {
12
+ /**
13
+ * Configures the `size` of the Button.
14
+ *
15
+ * The available options are:
16
+ * - small
17
+ * - medium
18
+ * - large
19
+ * - null&mdash;Does not set a size `className`.
20
+ *
21
+ * @default `medium`
22
+ */
23
+ size?: null | 'small' | 'medium' | 'large' | string;
24
+ /**
25
+ * Configures the `shape` of the Button.
26
+ *
27
+ * The available options are:
28
+ * - rectangle
29
+ * - square
30
+ * - null&mdash;Does not set a shape `className`.
31
+ *
32
+ * @default `rectangle`
33
+ */
34
+ shape?: null | 'rectangle' | 'square' | string;
35
+ /**
36
+ * Configures the `roundness` of the Button.
37
+ *
38
+ * The available options are:
39
+ * - small
40
+ * - medium
41
+ * - large
42
+ * - circle
43
+ * - full
44
+ * - null&mdash;Does not set a rounded `className`.
45
+ *
46
+ * @default `medium`
47
+ */
48
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
49
+ /**
50
+ * Configures the `fillMode` of the Button.
51
+ *
52
+ * The available options are:
53
+ * - solid
54
+ * - outline
55
+ * - flat
56
+ * - link
57
+ * - null&mdash;Does not set a fillMode `className`.
58
+ *
59
+ * @default `solid`
60
+ */
61
+ fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
62
+ /**
63
+ * Configures the `themeColor` of the Button.
64
+ *
65
+ * The available options are:
66
+ * - base
67
+ * - primary
68
+ * - secondary
69
+ * - tertiary
70
+ * - info
71
+ * - success
72
+ * - warning
73
+ * - dark
74
+ * - light
75
+ * - inverse
76
+ * - null&mdash;Does not set a themeColor `className`.
77
+ *
78
+ * @default `base`
79
+ */
80
+ themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
81
+ }
82
+ /**
83
+ * @hidden
84
+ */
85
+ export interface ButtonState {
86
+ _activeTemp?: boolean;
87
+ }
88
+ /**
89
+ * @hidden
90
+ */
91
+ export interface ButtonComputed {
92
+ [key: string]: any;
93
+ buttonClasses: object;
94
+ }
95
+ /**
96
+ * @hidden
97
+ */
98
+ export interface ButtonMethods {
99
+ [key: string]: any;
100
+ focus: (e: any) => void;
101
+ toggleIfApplicable: () => void;
102
+ handleClick: (event: any) => void;
103
+ }
104
+ /**
105
+ * @hidden
106
+ */
107
+ export interface ButtonData {
108
+ currentActive: boolean;
109
+ }
110
+ /**
111
+ * @hidden
112
+ */
113
+ export interface ButtonAll extends Vue2type, ButtonMethods, ButtonData, ButtonComputed, ButtonState {
114
+ }
115
+ /**
116
+ * @hidden
117
+ */
118
+ declare let ButtonVue2: ComponentOptions<ButtonAll, DefaultData<ButtonData>, DefaultMethods<ButtonAll>, ButtonComputed, RecordPropsDefinition<ButtonProps>>;
119
+ /**
120
+ * @hidden
121
+ */
122
+ declare const Button: DefineComponent<ButtonProps, any, ButtonData, ButtonComputed, ButtonMethods, {}, {}, {}, string, ButtonProps, ButtonProps, {}>;
123
+ export { Button, ButtonVue2 };