@progress/kendo-vue-buttons 2.7.3-dev.202201070829 → 2.8.0-dev.202201131525

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 (78) hide show
  1. package/dist/cdn/js/kendo-vue-buttons.js +1 -1
  2. package/dist/es/Button.d.ts +75 -6
  3. package/dist/es/Button.js +64 -19
  4. package/dist/es/ButtonGroup.d.ts +5 -6
  5. package/dist/es/ButtonGroup.js +4 -4
  6. package/dist/es/ButtonInterface.d.ts +4 -1
  7. package/dist/es/ButtonWrap.d.ts +5 -6
  8. package/dist/es/ButtonWrap.js +3 -3
  9. package/dist/es/Chip/Chip.d.ts +56 -10
  10. package/dist/es/Chip/Chip.js +47 -26
  11. package/dist/es/Chip/ChipList.d.ts +42 -6
  12. package/dist/es/Chip/ChipList.js +39 -13
  13. package/dist/es/FloatingActionButton/FloatingActionButton.d.ts +5 -6
  14. package/dist/es/FloatingActionButton/FloatingActionButton.js +26 -11
  15. package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
  16. package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
  17. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +28 -2
  18. package/dist/es/FloatingActionButton/models/shape.d.ts +1 -1
  19. package/dist/es/ListButton/ButtonItem.d.ts +5 -6
  20. package/dist/es/ListButton/ButtonItem.js +25 -12
  21. package/dist/es/ListButton/DropDownButton.d.ts +5 -6
  22. package/dist/es/ListButton/DropDownButton.js +61 -19
  23. package/dist/es/ListButton/SplitButton.d.ts +5 -6
  24. package/dist/es/ListButton/SplitButton.js +67 -29
  25. package/dist/es/ListButton/models/ListButtonProps.d.ts +138 -0
  26. package/dist/es/additionalTypes.ts +7 -1
  27. package/dist/es/buttonLook.d.ts +0 -1
  28. package/dist/es/main.d.ts +13 -13
  29. package/dist/es/main.js +13 -13
  30. package/dist/es/package-metadata.js +1 -1
  31. package/dist/es/toolbar/Toolbar.d.ts +5 -6
  32. package/dist/es/toolbar/Toolbar.js +16 -9
  33. package/dist/es/toolbar/tools/ToolbarItem.d.ts +5 -6
  34. package/dist/es/toolbar/tools/ToolbarItem.js +3 -3
  35. package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +4 -5
  36. package/dist/es/toolbar/tools/ToolbarSeparator.js +3 -3
  37. package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +4 -5
  38. package/dist/es/toolbar/tools/ToolbarSpacer.js +3 -3
  39. package/dist/es/util.js +7 -7
  40. package/dist/npm/Button.d.ts +75 -6
  41. package/dist/npm/Button.js +65 -20
  42. package/dist/npm/ButtonGroup.d.ts +5 -6
  43. package/dist/npm/ButtonGroup.js +6 -6
  44. package/dist/npm/ButtonInterface.d.ts +4 -1
  45. package/dist/npm/ButtonWrap.d.ts +5 -6
  46. package/dist/npm/ButtonWrap.js +5 -5
  47. package/dist/npm/Chip/Chip.d.ts +56 -10
  48. package/dist/npm/Chip/Chip.js +48 -27
  49. package/dist/npm/Chip/ChipList.d.ts +42 -6
  50. package/dist/npm/Chip/ChipList.js +40 -14
  51. package/dist/npm/FloatingActionButton/FloatingActionButton.d.ts +5 -6
  52. package/dist/npm/FloatingActionButton/FloatingActionButton.js +27 -12
  53. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
  54. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +5 -5
  55. package/dist/npm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +28 -2
  56. package/dist/npm/FloatingActionButton/models/shape.d.ts +1 -1
  57. package/dist/npm/ListButton/ButtonItem.d.ts +5 -6
  58. package/dist/npm/ListButton/ButtonItem.js +27 -14
  59. package/dist/npm/ListButton/DropDownButton.d.ts +5 -6
  60. package/dist/npm/ListButton/DropDownButton.js +62 -20
  61. package/dist/npm/ListButton/SplitButton.d.ts +5 -6
  62. package/dist/npm/ListButton/SplitButton.js +68 -31
  63. package/dist/npm/ListButton/models/ListButtonProps.d.ts +138 -0
  64. package/dist/npm/additionalTypes.ts +7 -1
  65. package/dist/npm/buttonLook.d.ts +0 -1
  66. package/dist/npm/main.d.ts +13 -13
  67. package/dist/npm/main.js +13 -12
  68. package/dist/npm/package-metadata.js +1 -1
  69. package/dist/npm/toolbar/Toolbar.d.ts +5 -6
  70. package/dist/npm/toolbar/Toolbar.js +18 -11
  71. package/dist/npm/toolbar/tools/ToolbarItem.d.ts +5 -6
  72. package/dist/npm/toolbar/tools/ToolbarItem.js +5 -5
  73. package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +4 -5
  74. package/dist/npm/toolbar/tools/ToolbarSeparator.js +5 -5
  75. package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +4 -5
  76. package/dist/npm/toolbar/tools/ToolbarSpacer.js +5 -5
  77. package/dist/npm/util.js +7 -7
  78. package/package.json +5 -5
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
19
19
  Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
- exports.DropDownButtonVue3 = exports.DropDownButton = void 0; // @ts-ignore
22
+ exports.DropDownButtonVue2 = exports.DropDownButton = void 0; // @ts-ignore
23
23
 
24
24
  var Vue = require("vue");
25
25
 
@@ -44,7 +44,7 @@ var kendo_vue_common_2 = require("@progress/kendo-vue-common");
44
44
  var package_metadata_1 = require("../package-metadata"); // tslint:enable:max-line-length
45
45
 
46
46
 
47
- var DropDownButton = {
47
+ var DropDownButtonVue2 = {
48
48
  name: 'KendoDropDownButton',
49
49
  // @ts-ignore
50
50
  emits: {
@@ -73,6 +73,36 @@ var DropDownButton = {
73
73
  popupSettings: Object,
74
74
  itemRender: [String, Object, Function],
75
75
  item: Function,
76
+ size: {
77
+ type: String,
78
+ default: 'medium'
79
+ },
80
+ shape: {
81
+ type: String,
82
+ default: 'rectangle',
83
+ validator: function validator(value) {
84
+ return [null, 'rectangle', 'square'].includes(value);
85
+ }
86
+ },
87
+ rounded: {
88
+ type: String,
89
+ default: 'medium'
90
+ },
91
+ fillMode: {
92
+ type: String,
93
+ default: 'solid',
94
+ validator: function validator(value) {
95
+ return [null, 'flat', 'link', 'outline', 'solid'].includes(value);
96
+ }
97
+ },
98
+ // eslint-disable-next-line max-len
99
+ themeColor: {
100
+ type: String,
101
+ default: 'base',
102
+ validator: function validator(value) {
103
+ return [null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'].includes(value);
104
+ }
105
+ },
76
106
  opened: {
77
107
  type: Boolean,
78
108
  default: undefined
@@ -121,9 +151,8 @@ var DropDownButton = {
121
151
  },
122
152
  wrapperClass: function wrapperClass() {
123
153
  return {
124
- 'k-widget': true,
125
154
  'k-dropdown-button': true,
126
- 'k-state-focused': this.focused
155
+ 'k-focus': this.focused
127
156
  };
128
157
  }
129
158
  },
@@ -158,6 +187,7 @@ var DropDownButton = {
158
187
  }) : dataItem;
159
188
  return (// @ts-ignore
160
189
  h(ButtonItem_1.ButtonItem, {
190
+ "class": "k-menu-item",
161
191
  dataItem: currentDataItem,
162
192
  attrs: this.v3 ? undefined : {
163
193
  dataItem: currentDataItem,
@@ -189,8 +219,10 @@ var DropDownButton = {
189
219
  var renderPopup = function renderPopup() {
190
220
  var _this = this;
191
221
 
192
- var _a = this.$props.popupSettings,
193
- popupSettings = _a === void 0 ? {} : _a;
222
+ var _a = this.$props,
223
+ _b = _a.popupSettings,
224
+ popupSettings = _b === void 0 ? {} : _b,
225
+ size = _a.size;
194
226
  return (// @ts-ignore function children
195
227
  h(kendo_vue_popup_1.Popup, {
196
228
  anchor: this._anchor,
@@ -198,13 +230,13 @@ var DropDownButton = {
198
230
  anchor: this._anchor,
199
231
  show: this.computedOpened,
200
232
  animate: popupSettings.animate,
201
- popupClass: kendo_vue_common_1.classNames('k-list-container k-reset k-group', popupSettings.popupClass),
233
+ popupClass: kendo_vue_common_1.classNames('k-menu-popup', popupSettings.popupClass),
202
234
  anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl),
203
235
  popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl)
204
236
  },
205
237
  show: this.computedOpened,
206
238
  animate: popupSettings.animate,
207
- popupClass: kendo_vue_common_1.classNames('k-list-container k-reset k-group', popupSettings.popupClass),
239
+ popupClass: kendo_vue_common_1.classNames('k-menu-popup', popupSettings.popupClass),
208
240
  anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl),
209
241
  popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl),
210
242
  style: rtl ? {
@@ -212,7 +244,7 @@ var DropDownButton = {
212
244
  } : undefined
213
245
  }, this.v3 ? function () {
214
246
  return [h("ul", {
215
- "class": "k-list k-reset",
247
+ "class": "k-group k-menu-group k-reset k-menu-group-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size),
216
248
  role: "menu",
217
249
  attrs: _this.v3 ? undefined : {
218
250
  role: "menu",
@@ -221,7 +253,7 @@ var DropDownButton = {
221
253
  id: _this.guid
222
254
  }, [renderChildItems.call(_this)])];
223
255
  } : [h("ul", {
224
- "class": "k-list k-reset",
256
+ "class": "k-group k-menu-group k-reset k-menu-group-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size),
225
257
  role: "menu",
226
258
  attrs: _this.v3 ? undefined : {
227
259
  role: "menu",
@@ -248,14 +280,13 @@ var DropDownButton = {
248
280
  }
249
281
  }, [// @ts-ignore function children
250
282
  h(Button_1.Button, {
251
- onClick: this.onClickMainButton,
252
- on: this.v3 ? undefined : {
253
- "click": this.onClickMainButton,
254
- "mousedown": this.mouseDown
255
- },
256
- onMousedown: this.mouseDown,
257
- disabled: disabled || undefined,
283
+ size: this.$props.size,
258
284
  attrs: this.v3 ? undefined : {
285
+ size: this.$props.size,
286
+ shape: this.$props.shape,
287
+ rounded: this.$props.rounded,
288
+ fillMode: this.$props.fillMode,
289
+ themeColor: this.$props.themeColor,
259
290
  disabled: disabled || undefined,
260
291
  tabIndex: tabIndex,
261
292
  accessKey: this.$props.accessKey,
@@ -273,6 +304,17 @@ var DropDownButton = {
273
304
  "aria-owns": this.guid,
274
305
  "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
275
306
  },
307
+ shape: this.$props.shape,
308
+ rounded: this.$props.rounded,
309
+ fillMode: this.$props.fillMode,
310
+ themeColor: this.$props.themeColor,
311
+ onClick: this.onClickMainButton,
312
+ on: this.v3 ? undefined : {
313
+ "click": this.onClickMainButton,
314
+ "mousedown": this.mouseDown
315
+ },
316
+ onMousedown: this.mouseDown,
317
+ disabled: disabled || undefined,
276
318
  tabIndex: tabIndex,
277
319
  accessKey: this.$props.accessKey,
278
320
  icon: this.$props.icon,
@@ -414,6 +456,6 @@ var DropDownButton = {
414
456
  }
415
457
  }
416
458
  };
417
- exports.DropDownButton = DropDownButton;
418
- var DropDownButtonVue3 = DropDownButton;
419
- exports.DropDownButtonVue3 = DropDownButtonVue3;
459
+ exports.DropDownButtonVue2 = DropDownButtonVue2;
460
+ var DropDownButton = DropDownButtonVue2;
461
+ exports.DropDownButton = DropDownButton;
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -55,8 +54,8 @@ export interface SplitButtonState {
55
54
  /**
56
55
  * @hidden
57
56
  */
58
- export interface SplitButtonAll extends Vue, SplitButtonMethods, SplitButtonData, SplitButtonComputed, SplitButtonState {
57
+ export interface SplitButtonAll extends Vue2type, SplitButtonMethods, SplitButtonData, SplitButtonComputed, SplitButtonState {
59
58
  }
60
- declare let SplitButton: ComponentOptions<SplitButtonAll, DefaultData<SplitButtonData>, DefaultMethods<SplitButtonAll>, SplitButtonComputed, RecordPropsDefinition<SplitButtonProps>>;
61
- declare const SplitButtonVue3: DefineComponent<SplitButtonProps, any, SplitButtonData, SplitButtonComputed, SplitButtonMethods, {}, {}, {}, string, SplitButtonProps, SplitButtonProps, {}>;
62
- export { SplitButton, SplitButtonVue3 };
59
+ declare let SplitButtonVue2: ComponentOptions<SplitButtonAll, DefaultData<SplitButtonData>, DefaultMethods<SplitButtonAll>, SplitButtonComputed, RecordPropsDefinition<SplitButtonProps>>;
60
+ declare const SplitButton: DefineComponent<SplitButtonProps, any, SplitButtonData, SplitButtonComputed, SplitButtonMethods, {}, {}, {}, string, SplitButtonProps, SplitButtonProps, {}>;
61
+ export { SplitButton, SplitButtonVue2 };
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
19
19
  Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
- exports.SplitButtonVue3 = exports.SplitButton = void 0; // @ts-ignore
22
+ exports.SplitButtonVue2 = exports.SplitButton = void 0; // @ts-ignore
23
23
 
24
24
  var Vue = require("vue");
25
25
 
@@ -41,13 +41,10 @@ var popup_1 = require("./utils/popup");
41
41
 
42
42
  var kendo_vue_common_2 = require("@progress/kendo-vue-common");
43
43
 
44
- var package_metadata_1 = require("../package-metadata");
44
+ var package_metadata_1 = require("../package-metadata"); // tslint:enable:max-line-length
45
45
 
46
- var util_1 = require("../util");
47
46
 
48
- var styles = util_1.default.styles; // tslint:enable:max-line-length
49
-
50
- var SplitButton = {
47
+ var SplitButtonVue2 = {
51
48
  name: 'KendoSplitButton',
52
49
  // @ts-ignore
53
50
  emits: {
@@ -71,6 +68,29 @@ var SplitButton = {
71
68
  tabIndex: Number,
72
69
  disabled: Boolean,
73
70
  icon: String,
71
+ size: {
72
+ type: String,
73
+ default: 'medium'
74
+ },
75
+ rounded: {
76
+ type: String,
77
+ default: 'medium'
78
+ },
79
+ fillMode: {
80
+ type: String,
81
+ default: 'solid',
82
+ validator: function validator(value) {
83
+ return [null, 'flat', 'link', 'outline', 'solid'].includes(value);
84
+ }
85
+ },
86
+ // eslint-disable-next-line max-len
87
+ themeColor: {
88
+ type: String,
89
+ default: 'base',
90
+ validator: function validator(value) {
91
+ return [null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'].includes(value);
92
+ }
93
+ },
74
94
  opened: {
75
95
  type: Boolean,
76
96
  default: undefined
@@ -118,13 +138,11 @@ var SplitButton = {
118
138
  return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
119
139
  },
120
140
  wrapperClass: function wrapperClass() {
121
- var _a;
122
-
123
- return _a = {
124
- 'k-widget': true,
141
+ return {
125
142
  'k-split-button': true,
126
- 'k-button-group': true
127
- }, _a[styles["" + this.$props.look]] = true, _a['k-state-focused'] = this.focused, _a;
143
+ 'k-button-group': true,
144
+ 'k-focus': this.focused
145
+ };
128
146
  }
129
147
  },
130
148
  // @ts-ignore
@@ -160,6 +178,7 @@ var SplitButton = {
160
178
  }) : dataItem;
161
179
  return (// @ts-ignore
162
180
  h(ButtonItem_1.ButtonItem, {
181
+ "class": "k-menu-item",
163
182
  dataItem: currentDataItem,
164
183
  attrs: this.v3 ? undefined : {
165
184
  dataItem: currentDataItem,
@@ -191,8 +210,10 @@ var SplitButton = {
191
210
  var renderPopup = function renderPopup() {
192
211
  var _this2 = this;
193
212
 
194
- var _a = this.$props.popupSettings,
195
- popupSettings = _a === void 0 ? {} : _a;
213
+ var _a = this.$props,
214
+ _b = _a.popupSettings,
215
+ popupSettings = _b === void 0 ? {} : _b,
216
+ size = _a.size;
196
217
  return (// @ts-ignore function children
197
218
  h(kendo_vue_popup_1.Popup, {
198
219
  anchor: this._anchor,
@@ -200,13 +221,13 @@ var SplitButton = {
200
221
  anchor: this._anchor,
201
222
  show: this.computedOpened,
202
223
  animate: popupSettings.animate,
203
- popupClass: kendo_vue_common_1.classNames('k-list-container k-reset k-group', popupSettings.popupClass),
224
+ popupClass: kendo_vue_common_1.classNames('k-menu-popup', popupSettings.popupClass),
204
225
  anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl),
205
226
  popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl)
206
227
  },
207
228
  show: this.computedOpened,
208
229
  animate: popupSettings.animate,
209
- popupClass: kendo_vue_common_1.classNames('k-list-container k-reset k-group', popupSettings.popupClass),
230
+ popupClass: kendo_vue_common_1.classNames('k-menu-popup', popupSettings.popupClass),
210
231
  anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl),
211
232
  popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl),
212
233
  style: rtl ? {
@@ -214,7 +235,7 @@ var SplitButton = {
214
235
  } : undefined
215
236
  }, this.v3 ? function () {
216
237
  return [h("ul", {
217
- "class": "k-list k-reset",
238
+ "class": "k-group k-menu-group k-reset k-menu-group-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size),
218
239
  role: "menu",
219
240
  attrs: _this2.v3 ? undefined : {
220
241
  role: "menu",
@@ -223,7 +244,7 @@ var SplitButton = {
223
244
  id: _this2.guid
224
245
  }, [renderChildItems.call(_this2)])];
225
246
  } : [h("ul", {
226
- "class": "k-list k-reset",
247
+ "class": "k-group k-menu-group k-reset k-menu-group-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size),
227
248
  role: "menu",
228
249
  attrs: _this2.v3 ? undefined : {
229
250
  role: "menu",
@@ -250,16 +271,12 @@ var SplitButton = {
250
271
  }
251
272
  }, [// @ts-ignore function children
252
273
  h(Button_1.Button, {
253
- onClick: function onClick(event) {
254
- return _this.onItemClick(event, -1);
255
- },
256
- on: this.v3 ? undefined : {
257
- "click": function onClick(event) {
258
- return _this.onItemClick(event, -1);
259
- }
260
- },
261
- disabled: disabled || undefined,
274
+ size: this.$props.size,
262
275
  attrs: this.v3 ? undefined : {
276
+ size: this.$props.size,
277
+ rounded: this.$props.rounded,
278
+ fillMode: this.$props.fillMode,
279
+ themeColor: this.$props.themeColor,
263
280
  disabled: disabled || undefined,
264
281
  tabIndex: tabIndex,
265
282
  accessKey: this.$props.accessKey,
@@ -276,6 +293,18 @@ var SplitButton = {
276
293
  "aria-owns": this.guid,
277
294
  "aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
278
295
  },
296
+ rounded: this.$props.rounded,
297
+ fillMode: this.$props.fillMode,
298
+ themeColor: this.$props.themeColor,
299
+ onClick: function onClick(event) {
300
+ return _this.onItemClick(event, -1);
301
+ },
302
+ on: this.v3 ? undefined : {
303
+ "click": function onClick(event) {
304
+ return _this.onItemClick(event, -1);
305
+ }
306
+ },
307
+ disabled: disabled || undefined,
279
308
  tabIndex: tabIndex,
280
309
  accessKey: this.$props.accessKey,
281
310
  "class": this.$props.buttonClass,
@@ -296,8 +325,12 @@ var SplitButton = {
296
325
  return [_this3.$props.text];
297
326
  } : [_this3.$props.text]), // @ts-ignore
298
327
  h(Button_1.Button, {
299
- icon: "arrow-s",
328
+ size: this.$props.size,
300
329
  attrs: this.v3 ? undefined : {
330
+ size: this.$props.size,
331
+ rounded: this.$props.rounded,
332
+ fillMode: this.$props.fillMode,
333
+ themeColor: this.$props.themeColor,
301
334
  icon: "arrow-s",
302
335
  disabled: disabled || undefined,
303
336
  tabIndex: -1,
@@ -305,6 +338,10 @@ var SplitButton = {
305
338
  dir: dir,
306
339
  "aria-label": "menu toggling button"
307
340
  },
341
+ rounded: this.$props.rounded,
342
+ fillMode: this.$props.fillMode,
343
+ themeColor: this.$props.themeColor,
344
+ icon: "arrow-s",
308
345
  disabled: disabled || undefined,
309
346
  tabIndex: -1,
310
347
  look: this.$props.look,
@@ -480,6 +517,6 @@ var SplitButton = {
480
517
  }
481
518
  }
482
519
  };
483
- exports.SplitButton = SplitButton;
484
- var SplitButtonVue3 = SplitButton;
485
- exports.SplitButtonVue3 = SplitButtonVue3;
520
+ exports.SplitButtonVue2 = SplitButtonVue2;
521
+ var SplitButton = SplitButtonVue2;
522
+ exports.SplitButton = SplitButton;
@@ -68,6 +68,75 @@ export interface DropDownButtonProps {
68
68
  * Sets the direction of the component.
69
69
  */
70
70
  dir?: string;
71
+ /**
72
+ * Configures the `size` of the Button.
73
+ *
74
+ * The available options are:
75
+ * - small
76
+ * - medium
77
+ * - large
78
+ * - null&mdash;Does not set a size `className`.
79
+ *
80
+ * @default `medium`
81
+ */
82
+ size?: null | 'small' | 'medium' | 'large' | string;
83
+ /**
84
+ * Configures the `shape` of the Button.
85
+ *
86
+ * The available options are:
87
+ * - rectangle
88
+ * - square
89
+ * - null&mdash;Does not set a shape `className`.
90
+ *
91
+ * @default `rectangle`
92
+ */
93
+ shape?: null | 'rectangle' | 'square' | string;
94
+ /**
95
+ * Configures the `roundness` of the Button.
96
+ *
97
+ * The available options are:
98
+ * - small
99
+ * - medium
100
+ * - large
101
+ * - circle
102
+ * - full
103
+ * - null&mdash;Does not set a rounded `className`.
104
+ *
105
+ * @default `medium`
106
+ */
107
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
108
+ /**
109
+ * Configures the `fillMode` of the Button.
110
+ *
111
+ * The available options are:
112
+ * - solid
113
+ * - outline
114
+ * - flat
115
+ * - link
116
+ * - null&mdash;Does not set a fillMode `className`.
117
+ *
118
+ * @default `solid`
119
+ */
120
+ fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
121
+ /**
122
+ * Configures the `themeColor` of the Button.
123
+ *
124
+ * The available options are:
125
+ * - base
126
+ * - primary
127
+ * - secondary
128
+ * - tertiary
129
+ * - info
130
+ * - success
131
+ * - warning
132
+ * - dark
133
+ * - light
134
+ * - inverse
135
+ * - null&mdash;Does not set a themeColor `className`.
136
+ *
137
+ * @default `base`
138
+ */
139
+ themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
71
140
  /**
72
141
  * Adds visual weight to the button and makes it primary ([see example]({% slug overview_dropdownbutton %}#toc-basic-usage)).
73
142
  */
@@ -163,6 +232,75 @@ export interface SplitButtonProps {
163
232
  * Sets the direction of the component.
164
233
  */
165
234
  dir?: string;
235
+ /**
236
+ * Configures the `size` of the Button.
237
+ *
238
+ * The available options are:
239
+ * - small
240
+ * - medium
241
+ * - large
242
+ * - null&mdash;Does not set a size `className`.
243
+ *
244
+ * @default `medium`
245
+ */
246
+ size?: null | 'small' | 'medium' | 'large' | string;
247
+ /**
248
+ * Configures the `shape` of the Button.
249
+ *
250
+ * The available options are:
251
+ * - rectangle
252
+ * - square
253
+ * - null&mdash;Does not set a shape `className`.
254
+ *
255
+ * @default `rectangle`
256
+ */
257
+ shape?: null | 'rectangle' | 'square' | string;
258
+ /**
259
+ * Configures the `roundness` of the Button.
260
+ *
261
+ * The available options are:
262
+ * - small
263
+ * - medium
264
+ * - large
265
+ * - circle
266
+ * - full
267
+ * - null&mdash;Does not set a rounded `className`.
268
+ *
269
+ * @default `medium`
270
+ */
271
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
272
+ /**
273
+ * Configures the `fillMode` of the Button.
274
+ *
275
+ * The available options are:
276
+ * - solid
277
+ * - outline
278
+ * - flat
279
+ * - link
280
+ * - null&mdash;Does not set a fillMode `className`.
281
+ *
282
+ * @default `solid`
283
+ */
284
+ fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
285
+ /**
286
+ * Configures the `themeColor` of the Button.
287
+ *
288
+ * The available options are:
289
+ * - base
290
+ * - primary
291
+ * - secondary
292
+ * - tertiary
293
+ * - info
294
+ * - success
295
+ * - warning
296
+ * - dark
297
+ * - light
298
+ * - inverse
299
+ * - null&mdash;Does not set a themeColor `className`.
300
+ *
301
+ * @default `base`
302
+ */
303
+ themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
166
304
  /**
167
305
  * Fires when the main button is clicked ([see example]({% slug overview_splitbutton %}#toc-events)).
168
306
  */
@@ -1,3 +1,9 @@
1
1
  // @ts-ignore
2
2
  import { DefineComponent } from 'vue';
3
- export { DefineComponent };
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+ // @ts-ignore
6
+ type Vue2type = Vue.default;
7
+ // @ts-ignore
8
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
9
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -8,7 +8,6 @@
8
8
  *
9
9
  * @example
10
10
  * ```ts-no-run
11
- * <k-button :look="'flat'"></k-button>
12
11
  * ```
13
12
  */
14
13
  export declare type ButtonLook = 'default' | 'flat' | 'outline';
@@ -1,13 +1,13 @@
1
- import { Button, ButtonProps } from './Button';
2
- import { ButtonGroup, ButtonGroupVue3, ButtonGroupProps } from './ButtonGroup';
1
+ import { Button, ButtonVue2, ButtonProps } from './Button';
2
+ import { ButtonGroup, ButtonGroupVue2, ButtonGroupProps } from './ButtonGroup';
3
3
  import { ButtonLook } from './buttonLook';
4
- import { Chip, ChipVue3, ChipProps, ChipHandle } from './Chip/Chip';
5
- import { ChipList, ChipListVue3, ChipListProps, ChipListHandle } from './Chip/ChipList';
4
+ import { Chip, ChipVue2, ChipProps, ChipHandle } from './Chip/Chip';
5
+ import { ChipList, ChipListVue2, ChipListProps, ChipListHandle } from './Chip/ChipList';
6
6
  import { ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipListChangeEvent, ChipListDataChangeEvent } from './models/index';
7
- import { FloatingActionButton, FloatingActionButtonVue3 } from './FloatingActionButton/FloatingActionButton';
7
+ import { FloatingActionButton, FloatingActionButtonVue2 } from './FloatingActionButton/FloatingActionButton';
8
8
  import { FloatingActionButtonHandle } from './FloatingActionButton/interfaces/FloatingActionButtonHandle';
9
9
  import { FloatingActionButtonProps } from './FloatingActionButton/interfaces/FloatingActionButtonProps';
10
- import { FloatingActionButtonItem, FloatingActionButtonItemVue3, FloatingActionButtonItemHandle, FloatingActionButtonItemProps } from './FloatingActionButton/FloatingActionButtonItem';
10
+ import { FloatingActionButtonItem, FloatingActionButtonItemVue2, FloatingActionButtonItemHandle, FloatingActionButtonItemProps } from './FloatingActionButton/FloatingActionButtonItem';
11
11
  import { FloatingActionButtonPopupSettings } from './FloatingActionButton/interfaces/FloatingActionButtonPopupSettings';
12
12
  export * from './FloatingActionButton/models/events';
13
13
  import { FloatingActionButtonAlign } from './FloatingActionButton/models/align';
@@ -16,15 +16,15 @@ import { FloatingActionButtonPositionMode } from './FloatingActionButton/models/
16
16
  import { FloatingActionButtonShape } from './FloatingActionButton/models/shape';
17
17
  import { FloatingActionButtonSize } from './FloatingActionButton/models/size';
18
18
  import { FloatingActionButtonThemeColor } from './FloatingActionButton/models/theme-color';
19
- import { SplitButton, SplitButtonVue3 } from './ListButton/SplitButton';
20
- import { DropDownButton, DropDownButtonVue3 } from './ListButton/DropDownButton';
19
+ import { SplitButton, SplitButtonVue2 } from './ListButton/SplitButton';
20
+ import { DropDownButton, DropDownButtonVue2 } from './ListButton/DropDownButton';
21
21
  import { DropDownButtonProps } from './ListButton/models/ListButtonProps';
22
22
  import { SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent } from './ListButton/models/events';
23
23
  import { ButtonItem } from './ListButton/models/ButtonItem';
24
24
  import { ButtonItemProps } from './ListButton/ButtonItem';
25
25
  import { ButtonsPopupSettings } from './ListButton/models/PopupSettings';
26
- import { Toolbar, ToolbarVue3, ToolbarProps, ToolbarResizeEvent } from './toolbar/Toolbar';
27
- import { ToolbarItem, ToolbarItemVue3 } from './toolbar/tools/ToolbarItem';
28
- import { ToolbarSeparator, ToolbarSeparatorVue3 } from './toolbar/tools/ToolbarSeparator';
29
- import { ToolbarSpacer, ToolbarSpacerVue3 } from './toolbar/tools/ToolbarSpacer';
30
- export { Toolbar, ToolbarVue3, ToolbarProps, ToolbarItem, ToolbarItemVue3, ToolbarSeparator, ToolbarSeparatorVue3, ToolbarResizeEvent, ToolbarSpacer, ToolbarSpacerVue3, Button, ButtonProps, ButtonLook, ButtonGroup, ButtonGroupVue3, ButtonGroupProps, SplitButton, SplitButtonVue3, DropDownButton, DropDownButtonVue3, DropDownButtonProps, ButtonItem, ButtonItemProps, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent, ButtonsPopupSettings, Chip, ChipVue3, ChipProps, ChipHandle, ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipList, ChipListVue3, ChipListProps, ChipListHandle, ChipListDataChangeEvent, ChipListChangeEvent, FloatingActionButton, FloatingActionButtonVue3, FloatingActionButtonProps, FloatingActionButtonHandle, FloatingActionButtonItem, FloatingActionButtonItemVue3, FloatingActionButtonItemHandle, FloatingActionButtonItemProps, FloatingActionButtonPopupSettings, FloatingActionButtonAlign, FloatingActionButtonAlignOffset, FloatingActionButtonPositionMode, FloatingActionButtonSize, FloatingActionButtonShape, FloatingActionButtonThemeColor };
26
+ import { Toolbar, ToolbarVue2, ToolbarProps, ToolbarResizeEvent } from './toolbar/Toolbar';
27
+ import { ToolbarItem, ToolbarItemVue2 } from './toolbar/tools/ToolbarItem';
28
+ import { ToolbarSeparator, ToolbarSeparatorVue2 } from './toolbar/tools/ToolbarSeparator';
29
+ import { ToolbarSpacer, ToolbarSpacerVue2 } from './toolbar/tools/ToolbarSpacer';
30
+ export { Toolbar, ToolbarVue2, ToolbarProps, ToolbarItem, ToolbarItemVue2, ToolbarSeparator, ToolbarSeparatorVue2, ToolbarResizeEvent, ToolbarSpacer, ToolbarSpacerVue2, Button, ButtonVue2, ButtonProps, ButtonLook, ButtonGroup, ButtonGroupVue2, ButtonGroupProps, SplitButton, SplitButtonVue2, DropDownButton, DropDownButtonVue2, DropDownButtonProps, ButtonItem, ButtonItemProps, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent, ButtonsPopupSettings, Chip, ChipVue2, ChipProps, ChipHandle, ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipList, ChipListVue2, ChipListProps, ChipListHandle, ChipListDataChangeEvent, ChipListChangeEvent, FloatingActionButton, FloatingActionButtonVue2, FloatingActionButtonProps, FloatingActionButtonHandle, FloatingActionButtonItem, FloatingActionButtonItemVue2, FloatingActionButtonItemHandle, FloatingActionButtonItemProps, FloatingActionButtonPopupSettings, FloatingActionButtonAlign, FloatingActionButtonAlignOffset, FloatingActionButtonPositionMode, FloatingActionButtonSize, FloatingActionButtonShape, FloatingActionButtonThemeColor };
package/dist/npm/main.js CHANGED
@@ -10,40 +10,41 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.FloatingActionButtonItemVue3 = exports.FloatingActionButtonItem = exports.FloatingActionButtonVue3 = exports.FloatingActionButton = exports.ChipListVue3 = exports.ChipList = exports.ChipVue3 = exports.Chip = exports.DropDownButtonVue3 = exports.DropDownButton = exports.SplitButtonVue3 = exports.SplitButton = exports.ButtonGroupVue3 = exports.ButtonGroup = exports.Button = exports.ToolbarSpacerVue3 = exports.ToolbarSpacer = exports.ToolbarSeparatorVue3 = exports.ToolbarSeparator = exports.ToolbarItemVue3 = exports.ToolbarItem = exports.ToolbarVue3 = exports.Toolbar = void 0;
13
+ exports.FloatingActionButtonItemVue2 = exports.FloatingActionButtonItem = exports.FloatingActionButtonVue2 = exports.FloatingActionButton = exports.ChipListVue2 = exports.ChipList = exports.ChipVue2 = exports.Chip = exports.DropDownButtonVue2 = exports.DropDownButton = exports.SplitButtonVue2 = exports.SplitButton = exports.ButtonGroupVue2 = exports.ButtonGroup = exports.ButtonVue2 = exports.Button = exports.ToolbarSpacerVue2 = exports.ToolbarSpacer = exports.ToolbarSeparatorVue2 = exports.ToolbarSeparator = exports.ToolbarItemVue2 = exports.ToolbarItem = exports.ToolbarVue2 = exports.Toolbar = void 0;
14
14
  var Button_1 = require("./Button");
15
15
  Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
16
+ Object.defineProperty(exports, "ButtonVue2", { enumerable: true, get: function () { return Button_1.ButtonVue2; } });
16
17
  var ButtonGroup_1 = require("./ButtonGroup");
17
18
  Object.defineProperty(exports, "ButtonGroup", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroup; } });
18
- Object.defineProperty(exports, "ButtonGroupVue3", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroupVue3; } });
19
+ Object.defineProperty(exports, "ButtonGroupVue2", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroupVue2; } });
19
20
  var Chip_1 = require("./Chip/Chip");
20
21
  Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.Chip; } });
21
- Object.defineProperty(exports, "ChipVue3", { enumerable: true, get: function () { return Chip_1.ChipVue3; } });
22
+ Object.defineProperty(exports, "ChipVue2", { enumerable: true, get: function () { return Chip_1.ChipVue2; } });
22
23
  var ChipList_1 = require("./Chip/ChipList");
23
24
  Object.defineProperty(exports, "ChipList", { enumerable: true, get: function () { return ChipList_1.ChipList; } });
24
- Object.defineProperty(exports, "ChipListVue3", { enumerable: true, get: function () { return ChipList_1.ChipListVue3; } });
25
+ Object.defineProperty(exports, "ChipListVue2", { enumerable: true, get: function () { return ChipList_1.ChipListVue2; } });
25
26
  var FloatingActionButton_1 = require("./FloatingActionButton/FloatingActionButton");
26
27
  Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButton; } });
27
- Object.defineProperty(exports, "FloatingActionButtonVue3", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButtonVue3; } });
28
+ Object.defineProperty(exports, "FloatingActionButtonVue2", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButtonVue2; } });
28
29
  var FloatingActionButtonItem_1 = require("./FloatingActionButton/FloatingActionButtonItem");
29
30
  Object.defineProperty(exports, "FloatingActionButtonItem", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItem; } });
30
- Object.defineProperty(exports, "FloatingActionButtonItemVue3", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItemVue3; } });
31
+ Object.defineProperty(exports, "FloatingActionButtonItemVue2", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItemVue2; } });
31
32
  __exportStar(require("./FloatingActionButton/models/events"), exports);
32
33
  var SplitButton_1 = require("./ListButton/SplitButton");
33
34
  Object.defineProperty(exports, "SplitButton", { enumerable: true, get: function () { return SplitButton_1.SplitButton; } });
34
- Object.defineProperty(exports, "SplitButtonVue3", { enumerable: true, get: function () { return SplitButton_1.SplitButtonVue3; } });
35
+ Object.defineProperty(exports, "SplitButtonVue2", { enumerable: true, get: function () { return SplitButton_1.SplitButtonVue2; } });
35
36
  var DropDownButton_1 = require("./ListButton/DropDownButton");
36
37
  Object.defineProperty(exports, "DropDownButton", { enumerable: true, get: function () { return DropDownButton_1.DropDownButton; } });
37
- Object.defineProperty(exports, "DropDownButtonVue3", { enumerable: true, get: function () { return DropDownButton_1.DropDownButtonVue3; } });
38
+ Object.defineProperty(exports, "DropDownButtonVue2", { enumerable: true, get: function () { return DropDownButton_1.DropDownButtonVue2; } });
38
39
  var Toolbar_1 = require("./toolbar/Toolbar");
39
40
  Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return Toolbar_1.Toolbar; } });
40
- Object.defineProperty(exports, "ToolbarVue3", { enumerable: true, get: function () { return Toolbar_1.ToolbarVue3; } });
41
+ Object.defineProperty(exports, "ToolbarVue2", { enumerable: true, get: function () { return Toolbar_1.ToolbarVue2; } });
41
42
  var ToolbarItem_1 = require("./toolbar/tools/ToolbarItem");
42
43
  Object.defineProperty(exports, "ToolbarItem", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItem; } });
43
- Object.defineProperty(exports, "ToolbarItemVue3", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItemVue3; } });
44
+ Object.defineProperty(exports, "ToolbarItemVue2", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItemVue2; } });
44
45
  var ToolbarSeparator_1 = require("./toolbar/tools/ToolbarSeparator");
45
46
  Object.defineProperty(exports, "ToolbarSeparator", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparator; } });
46
- Object.defineProperty(exports, "ToolbarSeparatorVue3", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparatorVue3; } });
47
+ Object.defineProperty(exports, "ToolbarSeparatorVue2", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparatorVue2; } });
47
48
  var ToolbarSpacer_1 = require("./toolbar/tools/ToolbarSpacer");
48
49
  Object.defineProperty(exports, "ToolbarSpacer", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacer; } });
49
- Object.defineProperty(exports, "ToolbarSpacerVue3", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacerVue3; } });
50
+ Object.defineProperty(exports, "ToolbarSpacerVue2", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacerVue2; } });