@progress/kendo-vue-buttons 2.7.2 → 2.8.0-dev.202201121019

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 (76) 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 +3 -3
  15. package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
  16. package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
  17. package/dist/es/FloatingActionButton/models/shape.d.ts +1 -1
  18. package/dist/es/ListButton/ButtonItem.d.ts +5 -6
  19. package/dist/es/ListButton/ButtonItem.js +25 -12
  20. package/dist/es/ListButton/DropDownButton.d.ts +5 -6
  21. package/dist/es/ListButton/DropDownButton.js +61 -19
  22. package/dist/es/ListButton/SplitButton.d.ts +5 -6
  23. package/dist/es/ListButton/SplitButton.js +66 -26
  24. package/dist/es/ListButton/models/ListButtonProps.d.ts +138 -0
  25. package/dist/es/additionalTypes.ts +7 -1
  26. package/dist/es/buttonLook.d.ts +0 -1
  27. package/dist/es/main.d.ts +13 -13
  28. package/dist/es/main.js +13 -13
  29. package/dist/es/package-metadata.js +1 -1
  30. package/dist/es/toolbar/Toolbar.d.ts +5 -6
  31. package/dist/es/toolbar/Toolbar.js +16 -9
  32. package/dist/es/toolbar/tools/ToolbarItem.d.ts +5 -6
  33. package/dist/es/toolbar/tools/ToolbarItem.js +3 -3
  34. package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +4 -5
  35. package/dist/es/toolbar/tools/ToolbarSeparator.js +3 -3
  36. package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +4 -5
  37. package/dist/es/toolbar/tools/ToolbarSpacer.js +3 -3
  38. package/dist/es/util.js +6 -7
  39. package/dist/npm/Button.d.ts +75 -6
  40. package/dist/npm/Button.js +65 -20
  41. package/dist/npm/ButtonGroup.d.ts +5 -6
  42. package/dist/npm/ButtonGroup.js +6 -6
  43. package/dist/npm/ButtonInterface.d.ts +4 -1
  44. package/dist/npm/ButtonWrap.d.ts +5 -6
  45. package/dist/npm/ButtonWrap.js +5 -5
  46. package/dist/npm/Chip/Chip.d.ts +56 -10
  47. package/dist/npm/Chip/Chip.js +48 -27
  48. package/dist/npm/Chip/ChipList.d.ts +42 -6
  49. package/dist/npm/Chip/ChipList.js +40 -14
  50. package/dist/npm/FloatingActionButton/FloatingActionButton.d.ts +5 -6
  51. package/dist/npm/FloatingActionButton/FloatingActionButton.js +5 -5
  52. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
  53. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +5 -5
  54. package/dist/npm/FloatingActionButton/models/shape.d.ts +1 -1
  55. package/dist/npm/ListButton/ButtonItem.d.ts +5 -6
  56. package/dist/npm/ListButton/ButtonItem.js +27 -14
  57. package/dist/npm/ListButton/DropDownButton.d.ts +5 -6
  58. package/dist/npm/ListButton/DropDownButton.js +62 -20
  59. package/dist/npm/ListButton/SplitButton.d.ts +5 -6
  60. package/dist/npm/ListButton/SplitButton.js +67 -27
  61. package/dist/npm/ListButton/models/ListButtonProps.d.ts +138 -0
  62. package/dist/npm/additionalTypes.ts +7 -1
  63. package/dist/npm/buttonLook.d.ts +0 -1
  64. package/dist/npm/main.d.ts +13 -13
  65. package/dist/npm/main.js +13 -12
  66. package/dist/npm/package-metadata.js +1 -1
  67. package/dist/npm/toolbar/Toolbar.d.ts +5 -6
  68. package/dist/npm/toolbar/Toolbar.js +18 -11
  69. package/dist/npm/toolbar/tools/ToolbarItem.d.ts +5 -6
  70. package/dist/npm/toolbar/tools/ToolbarItem.js +5 -5
  71. package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +4 -5
  72. package/dist/npm/toolbar/tools/ToolbarSeparator.js +5 -5
  73. package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +4 -5
  74. package/dist/npm/toolbar/tools/ToolbarSpacer.js +5 -5
  75. package/dist/npm/util.js +6 -7
  76. package/package.json +5 -5
@@ -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;
@@ -50,6 +49,43 @@ export interface ChipListProps extends FormComponentProps {
50
49
  * Triggered after value change.
51
50
  */
52
51
  onChange?: (event: ChipListChangeEvent) => void;
52
+ /**
53
+ * Configures the `size` of the Chip.
54
+ *
55
+ * The available options are:
56
+ * - small
57
+ * - medium
58
+ * - large
59
+ * - null&mdash;Does not set a size `class`.
60
+ *
61
+ * @default `medium`
62
+ */
63
+ size?: null | 'small' | 'medium' | 'large' | string;
64
+ /**
65
+ * Configures the `roundness` of the Chip.
66
+ *
67
+ * The available options are:
68
+ * - small
69
+ * - medium
70
+ * - large
71
+ * - full
72
+ * - null&mdash;Does not set a rounded `class`.
73
+ *
74
+ * @default `medium`
75
+ */
76
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
77
+ /**
78
+ * Configures the `fillMode` of the Chip.
79
+ *
80
+ * The available options are:
81
+ * - solid
82
+ * - outline
83
+ * - flat
84
+ * - null&mdash;Does not set a fillMode `class`.
85
+ *
86
+ * @default `solid`
87
+ */
88
+ fillMode?: null | 'solid' | 'outline' | 'flat' | string;
53
89
  /**
54
90
  * Represents the selection state of Chip component.
55
91
  */
@@ -125,7 +161,7 @@ export interface ChipListComputed {
125
161
  /**
126
162
  * @hidden
127
163
  */
128
- export interface ChipListAll extends ChipListMethods, ChipListState, ChipListData, ChipListComputed, Vue {
164
+ export interface ChipListAll extends ChipListMethods, ChipListState, ChipListData, ChipListComputed, Vue2type {
129
165
  }
130
166
  /**
131
167
  * @hidden
@@ -133,6 +169,6 @@ export interface ChipListAll extends ChipListMethods, ChipListState, ChipListDat
133
169
  /**
134
170
  * Represents the default `ChipList` component.
135
171
  */
136
- declare let ChipList: ComponentOptions<Vue, DefaultData<ChipListData>, DefaultMethods<ChipListAll>, ChipListComputed, RecordPropsDefinition<ChipListProps>>;
137
- declare const ChipListVue3: DefineComponent<ChipListProps, any, ChipListData, ChipListComputed, ChipListMethods, {}, {}, {}, string, ChipListProps, ChipListProps, {}>;
138
- export { ChipList, ChipListVue3 };
172
+ declare let ChipListVue2: ComponentOptions<Vue2type, DefaultData<ChipListData>, DefaultMethods<ChipListAll>, ChipListComputed, RecordPropsDefinition<ChipListProps>>;
173
+ declare const ChipList: DefineComponent<ChipListProps, any, ChipListData, ChipListComputed, ChipListMethods, {}, {}, {}, string, ChipListProps, ChipListProps, {}>;
174
+ export { ChipList, ChipListVue2 };
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
19
19
  Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
- exports.ChipListVue3 = exports.ChipList = void 0; // @ts-ignore
22
+ exports.ChipListVue2 = exports.ChipList = void 0; // @ts-ignore
23
23
 
24
24
  var Vue = require("vue");
25
25
 
@@ -47,7 +47,7 @@ var package_metadata_1 = require("../package-metadata");
47
47
  */
48
48
 
49
49
 
50
- var ChipList = {
50
+ var ChipListVue2 = {
51
51
  name: 'KendoVueChipList',
52
52
  props: {
53
53
  id: String,
@@ -66,6 +66,21 @@ var ChipList = {
66
66
  return null;
67
67
  }
68
68
  },
69
+ size: {
70
+ type: String,
71
+ default: 'medium'
72
+ },
73
+ rounded: {
74
+ type: String,
75
+ default: 'medium'
76
+ },
77
+ fillMode: {
78
+ type: String,
79
+ default: 'solid',
80
+ validator: function validator(value) {
81
+ return [null, 'flat', 'outline', 'solid'].includes(value);
82
+ }
83
+ },
69
84
  selection: {
70
85
  type: String,
71
86
  default: function _default() {
@@ -198,9 +213,12 @@ var ChipList = {
198
213
  };
199
214
  },
200
215
  render: function render(createElement) {
216
+ var _a;
217
+
201
218
  var _this = this;
202
219
 
203
220
  var h = gh || createElement;
221
+ var size = this.$props.size;
204
222
  return h("div", {
205
223
  ref: this.v3 ? function (el) {
206
224
  _this.chipListRef = el;
@@ -218,12 +236,7 @@ var ChipList = {
218
236
  dir: this.currentDir,
219
237
  style: this.$props.style,
220
238
  tabIndex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
221
- "class": kendo_vue_common_1.classNames('k-chip-list', {
222
- 'k-rtl': this.currentDir === 'rtl',
223
- 'k-selection-single': this.$props.selection === 'single',
224
- 'k-selection-multiple': this.$props.selection === 'multiple',
225
- 'k-state-disabled': this.$props.disabled
226
- }, this.$props.className),
239
+ "class": kendo_vue_common_1.classNames('k-chip-list', (_a = {}, _a["k-chip-list-" + (kendo_vue_common_1.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)),
227
240
  "aria-labelledby": this.$props.ariaLabelledBy,
228
241
  "aria-describedby": this.$props.ariaDescribedBy
229
242
  }, [this.computedDataItems.map(function (item) {
@@ -235,21 +248,34 @@ var ChipList = {
235
248
  role: 'option',
236
249
  dataItem: item,
237
250
  text: item[this.$props.textField],
238
- value: item[this.$props.valueField]
251
+ value: item[this.$props.valueField],
252
+ size: this.$props.size,
253
+ rounded: this.$props.rounded,
254
+ fillMode: this.$props.fillMode
239
255
  },
240
256
  dataItem: item,
241
257
  key: item[this.$props.valueField],
242
258
  text: item[this.$props.textField],
243
- value: item[this.$props.valueField]
259
+ value: item[this.$props.valueField],
260
+ size: this.$props.size,
261
+ rounded: this.$props.rounded,
262
+ fillMode: this.$props.fillMode
244
263
  });
245
264
  return kendo_vue_common_1.getTemplate.call(this, {
246
265
  h: h,
247
266
  template: chipTemplate,
248
- defaultRendering: chipDefaultRendering
267
+ defaultRendering: chipDefaultRendering,
268
+ additionalProps: {
269
+ dataItem: item,
270
+ key: item[this.$props.valueField],
271
+ text: item[this.$props.textField],
272
+ value: item[this.$props.valueField],
273
+ size: this.$props.size
274
+ }
249
275
  });
250
276
  }, this)]);
251
277
  }
252
278
  };
253
- exports.ChipList = ChipList;
254
- var ChipListVue3 = ChipList;
255
- exports.ChipListVue3 = ChipListVue3;
279
+ exports.ChipListVue2 = ChipListVue2;
280
+ var ChipList = ChipListVue2;
281
+ exports.ChipList = ChipList;
@@ -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;
@@ -37,7 +36,7 @@ export interface FloatingActionButtonComputed {
37
36
  /**
38
37
  * @hidden
39
38
  */
40
- export interface FloatingActionButtonAll extends FloatingActionButtonMethods, FloatingActionButtonState, FloatingActionButtonData, FloatingActionButtonComputed, Vue {
39
+ export interface FloatingActionButtonAll extends FloatingActionButtonMethods, FloatingActionButtonState, FloatingActionButtonData, FloatingActionButtonComputed, Vue2type {
41
40
  }
42
41
  /**
43
42
  * @hidden
@@ -45,6 +44,6 @@ export interface FloatingActionButtonAll extends FloatingActionButtonMethods, Fl
45
44
  /**
46
45
  * Represents the default `FloatingActionButton` component.
47
46
  */
48
- declare let FloatingActionButton: ComponentOptions<Vue, DefaultData<FloatingActionButtonData>, DefaultMethods<FloatingActionButtonAll>, FloatingActionButtonComputed, RecordPropsDefinition<FloatingActionButtonProps>>;
49
- declare const FloatingActionButtonVue3: DefineComponent<FloatingActionButtonProps, any, FloatingActionButtonData, FloatingActionButtonComputed, FloatingActionButtonMethods, {}, {}, {}, string, FloatingActionButtonProps, FloatingActionButtonProps, {}>;
50
- export { FloatingActionButton, FloatingActionButtonVue3 };
47
+ declare let FloatingActionButtonVue2: ComponentOptions<Vue2type, DefaultData<FloatingActionButtonData>, DefaultMethods<FloatingActionButtonAll>, FloatingActionButtonComputed, RecordPropsDefinition<FloatingActionButtonProps>>;
48
+ declare const FloatingActionButton: DefineComponent<FloatingActionButtonProps, any, FloatingActionButtonData, FloatingActionButtonComputed, FloatingActionButtonMethods, {}, {}, {}, string, FloatingActionButtonProps, FloatingActionButtonProps, {}>;
49
+ export { FloatingActionButton, FloatingActionButtonVue2 };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.FloatingActionButtonVue3 = exports.FloatingActionButton = void 0; // @ts-ignore
6
+ exports.FloatingActionButtonVue2 = exports.FloatingActionButton = void 0; // @ts-ignore
7
7
 
8
8
  var Vue = require("vue");
9
9
 
@@ -29,7 +29,7 @@ var kendo_vue_popup_1 = require("@progress/kendo-vue-popup");
29
29
  */
30
30
 
31
31
 
32
- var FloatingActionButton = {
32
+ var FloatingActionButtonVue2 = {
33
33
  name: 'KendoVueFloatingActionButton',
34
34
  props: {
35
35
  id: String,
@@ -492,6 +492,6 @@ var FloatingActionButton = {
492
492
  }, [fabItems.call(_this2)])])]);
493
493
  }
494
494
  };
495
- exports.FloatingActionButton = FloatingActionButton;
496
- var FloatingActionButtonVue3 = FloatingActionButton;
497
- exports.FloatingActionButtonVue3 = FloatingActionButtonVue3;
495
+ exports.FloatingActionButtonVue2 = FloatingActionButtonVue2;
496
+ var FloatingActionButton = FloatingActionButtonVue2;
497
+ exports.FloatingActionButton = FloatingActionButton;
@@ -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;
@@ -106,12 +105,12 @@ export interface FloatingActionButtonItemComputed {
106
105
  /**
107
106
  * @hidden
108
107
  */
109
- export interface FloatingActionButtonItemAll extends FloatingActionButtonItemMethods, FloatingActionButtonItemState, FloatingActionButtonItemData, FloatingActionButtonItemComputed, Vue {
108
+ export interface FloatingActionButtonItemAll extends FloatingActionButtonItemMethods, FloatingActionButtonItemState, FloatingActionButtonItemData, FloatingActionButtonItemComputed, Vue2type {
110
109
  }
111
110
  /**
112
111
  * Represents the [Kendo UI for Vue FloatingActionButtonItem component]({% slug overview_floatingactionbutton %}).
113
112
  *
114
113
  */
115
- declare let FloatingActionButtonItem: ComponentOptions<Vue, DefaultData<FloatingActionButtonItemData>, DefaultMethods<FloatingActionButtonItemAll>, FloatingActionButtonItemComputed, RecordPropsDefinition<FloatingActionButtonItemProps>>;
116
- declare const FloatingActionButtonItemVue3: DefineComponent<FloatingActionButtonItemProps, any, FloatingActionButtonItemData, FloatingActionButtonItemComputed, FloatingActionButtonItemMethods, {}, {}, {}, string, FloatingActionButtonItemProps, FloatingActionButtonItemProps, {}>;
117
- export { FloatingActionButtonItem, FloatingActionButtonItemVue3 };
114
+ declare let FloatingActionButtonItemVue2: ComponentOptions<Vue2type, DefaultData<FloatingActionButtonItemData>, DefaultMethods<FloatingActionButtonItemAll>, FloatingActionButtonItemComputed, RecordPropsDefinition<FloatingActionButtonItemProps>>;
115
+ declare const FloatingActionButtonItem: DefineComponent<FloatingActionButtonItemProps, any, FloatingActionButtonItemData, FloatingActionButtonItemComputed, FloatingActionButtonItemMethods, {}, {}, {}, string, FloatingActionButtonItemProps, FloatingActionButtonItemProps, {}>;
116
+ export { FloatingActionButtonItem, FloatingActionButtonItemVue2 };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.FloatingActionButtonItemVue3 = exports.FloatingActionButtonItem = void 0; // @ts-ignore
6
+ exports.FloatingActionButtonItemVue2 = exports.FloatingActionButtonItem = void 0; // @ts-ignore
7
7
 
8
8
  var Vue = require("vue");
9
9
 
@@ -18,7 +18,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
18
  */
19
19
 
20
20
 
21
- var FloatingActionButtonItem = {
21
+ var FloatingActionButtonItemVue2 = {
22
22
  name: 'KendoVueFloatingActionButtonItem',
23
23
  props: {
24
24
  disabled: Boolean,
@@ -128,6 +128,6 @@ var FloatingActionButtonItem = {
128
128
  return item;
129
129
  }
130
130
  };
131
- exports.FloatingActionButtonItem = FloatingActionButtonItem;
132
- var FloatingActionButtonItemVue3 = FloatingActionButtonItem;
133
- exports.FloatingActionButtonItemVue3 = FloatingActionButtonItemVue3;
131
+ exports.FloatingActionButtonItemVue2 = FloatingActionButtonItemVue2;
132
+ var FloatingActionButtonItem = FloatingActionButtonItemVue2;
133
+ exports.FloatingActionButtonItem = FloatingActionButtonItem;
@@ -2,7 +2,7 @@
2
2
  * Specifies the shape of the Floating Action Button.
3
3
  *
4
4
  * The possible values are:
5
- * * `pill`(Default)&mdash;Applies border radius equal to half of the height of the FloatingActionButton.
5
+ * * `full`(Default)&mdash;Applies border radius equal to half of the height of the FloatingActionButton.
6
6
  * If the Floating Action Button contains only icon, the shape will be circle.
7
7
  * * `circle`&mdash;Applies circle shape on the FloatingActionButton.
8
8
  * * `rectangle`&mdash;Applies no border radius on the FloatingActionButton.
@@ -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;
@@ -46,8 +45,8 @@ export interface ButtonItemData {
46
45
  /**
47
46
  * @hidden
48
47
  */
49
- export interface ButtonItemAll extends Vue, ButtonItemMethods, ButtonItemData, ButtonItemComputed, ButtonItemState {
48
+ export interface ButtonItemAll extends Vue2type, ButtonItemMethods, ButtonItemData, ButtonItemComputed, ButtonItemState {
50
49
  }
51
- declare let ButtonItem: ComponentOptions<ButtonItemAll, DefaultData<ButtonItemData>, DefaultMethods<ButtonItemAll>, ButtonItemComputed, RecordPropsDefinition<ButtonItemProps>>;
52
- declare const ButtonItemVue3: DefineComponent<ButtonItemProps, any, ButtonItemData, ButtonItemComputed, ButtonItemMethods, {}, {}, {}, string, ButtonItemProps, ButtonItemProps, {}>;
53
- export { ButtonItem, ButtonItemVue3 };
50
+ declare let ButtonItemVue2: ComponentOptions<ButtonItemAll, DefaultData<ButtonItemData>, DefaultMethods<ButtonItemAll>, ButtonItemComputed, RecordPropsDefinition<ButtonItemProps>>;
51
+ declare const ButtonItem: DefineComponent<ButtonItemProps, any, ButtonItemData, ButtonItemComputed, ButtonItemMethods, {}, {}, {}, string, ButtonItemProps, ButtonItemProps, {}>;
52
+ export { ButtonItem, ButtonItemVue2 };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ButtonItemVue3 = exports.ButtonItem = void 0; // @ts-ignore
6
+ exports.ButtonItemVue2 = exports.ButtonItem = void 0; // @ts-ignore
7
7
 
8
8
  var Vue = require("vue");
9
9
 
@@ -13,7 +13,7 @@ var gh = allVue.h;
13
13
  var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
14
14
 
15
15
 
16
- var ButtonItem = {
16
+ var ButtonItemVue2 = {
17
17
  name: 'KendoButtonItem',
18
18
  // @ts-ignore
19
19
  emits: {
@@ -31,14 +31,19 @@ var ButtonItem = {
31
31
  },
32
32
  computed: {
33
33
  wrapperClass: function wrapperClass() {
34
+ return {
35
+ 'k-item': true
36
+ };
37
+ },
38
+ innerClass: function innerClass() {
34
39
  var _a = this.$props,
35
40
  dataItem = _a.dataItem,
36
41
  focused = _a.focused;
37
42
  return {
38
- 'k-item': true,
39
- 'k-state-focused': focused,
40
- 'k-state-selected': dataItem.selected,
41
- 'k-state-disabled': dataItem.disabled
43
+ 'k-link k-menu-link': true,
44
+ 'k-focus': focused,
45
+ 'k-selected': dataItem.selected,
46
+ 'k-disabled': dataItem.disabled
42
47
  };
43
48
  }
44
49
  },
@@ -70,15 +75,21 @@ var ButtonItem = {
70
75
  index = _a.index;
71
76
  var text = dataItem.text !== undefined ? dataItem.text : textField ? dataItem[textField] : dataItem;
72
77
  var iconClass = dataItem.icon ? "k-icon k-i-" + dataItem.icon : dataItem.iconClass;
73
- var itemContent = [iconClass && h("span", {
78
+ var itemContent = h("span", {
79
+ tabIndex: -1,
80
+ attrs: this.v3 ? undefined : {
81
+ tabIndex: -1
82
+ },
83
+ "class": this.innerClass,
84
+ key: "icon"
85
+ }, [iconClass && h("span", {
74
86
  "class": iconClass,
75
87
  role: "presentation",
76
88
  attrs: this.v3 ? undefined : {
77
89
  role: "presentation"
78
- },
79
- key: "icon"
90
+ }
80
91
  }), dataItem.imageUrl && h("img", {
81
- "class": "k-image",
92
+ "class": "k-icon",
82
93
  alt: "",
83
94
  attrs: this.v3 ? undefined : {
84
95
  alt: "",
@@ -88,7 +99,9 @@ var ButtonItem = {
88
99
  src: dataItem.imageUrl,
89
100
  role: "presentation",
90
101
  key: "image"
91
- }), text];
102
+ }), text && h("span", {
103
+ "class": "k-menu-link-text"
104
+ }, [text])]);
92
105
  return kendo_vue_common_1.getTemplate.call(this, {
93
106
  h: h,
94
107
  template: this.$props.dataItem.render || render,
@@ -122,6 +135,6 @@ var ButtonItem = {
122
135
  return item;
123
136
  }
124
137
  };
125
- exports.ButtonItem = ButtonItem;
126
- var ButtonItemVue3 = ButtonItem;
127
- exports.ButtonItemVue3 = ButtonItemVue3;
138
+ exports.ButtonItemVue2 = ButtonItemVue2;
139
+ var ButtonItem = ButtonItemVue2;
140
+ exports.ButtonItem = ButtonItem;
@@ -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;
@@ -54,8 +53,8 @@ export interface DropDownButtonState {
54
53
  /**
55
54
  * @hidden
56
55
  */
57
- export interface DropDownButtonAll extends Vue, DropDownButtonMethods, DropDownButtonData, DropDownButtonComputed, DropDownButtonState {
56
+ export interface DropDownButtonAll extends Vue2type, DropDownButtonMethods, DropDownButtonData, DropDownButtonComputed, DropDownButtonState {
58
57
  }
59
- declare let DropDownButton: ComponentOptions<DropDownButtonAll, DefaultData<DropDownButtonData>, DefaultMethods<DropDownButtonAll>, DropDownButtonComputed, RecordPropsDefinition<DropDownButtonProps>>;
60
- declare const DropDownButtonVue3: DefineComponent<DropDownButtonProps, any, DropDownButtonData, DropDownButtonComputed, DropDownButtonMethods, {}, {}, {}, string, DropDownButtonProps, DropDownButtonProps, {}>;
61
- export { DropDownButton, DropDownButtonVue3 };
58
+ declare let DropDownButtonVue2: ComponentOptions<DropDownButtonAll, DefaultData<DropDownButtonData>, DefaultMethods<DropDownButtonAll>, DropDownButtonComputed, RecordPropsDefinition<DropDownButtonProps>>;
59
+ declare const DropDownButton: DefineComponent<DropDownButtonProps, any, DropDownButtonData, DropDownButtonComputed, DropDownButtonMethods, {}, {}, {}, string, DropDownButtonProps, DropDownButtonProps, {}>;
60
+ export { DropDownButton, DropDownButtonVue2 };
@@ -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 };