@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.
- package/dist/cdn/js/kendo-vue-buttons.js +1 -1
- package/dist/es/Button.d.ts +75 -6
- package/dist/es/Button.js +64 -19
- package/dist/es/ButtonGroup.d.ts +5 -6
- package/dist/es/ButtonGroup.js +4 -4
- package/dist/es/ButtonInterface.d.ts +4 -1
- package/dist/es/ButtonWrap.d.ts +5 -6
- package/dist/es/ButtonWrap.js +3 -3
- package/dist/es/Chip/Chip.d.ts +56 -10
- package/dist/es/Chip/Chip.js +47 -26
- package/dist/es/Chip/ChipList.d.ts +42 -6
- package/dist/es/Chip/ChipList.js +39 -13
- package/dist/es/FloatingActionButton/FloatingActionButton.d.ts +5 -6
- package/dist/es/FloatingActionButton/FloatingActionButton.js +26 -11
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +28 -2
- package/dist/es/FloatingActionButton/models/shape.d.ts +1 -1
- package/dist/es/ListButton/ButtonItem.d.ts +5 -6
- package/dist/es/ListButton/ButtonItem.js +25 -12
- package/dist/es/ListButton/DropDownButton.d.ts +5 -6
- package/dist/es/ListButton/DropDownButton.js +61 -19
- package/dist/es/ListButton/SplitButton.d.ts +5 -6
- package/dist/es/ListButton/SplitButton.js +67 -29
- package/dist/es/ListButton/models/ListButtonProps.d.ts +138 -0
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/buttonLook.d.ts +0 -1
- package/dist/es/main.d.ts +13 -13
- package/dist/es/main.js +13 -13
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/Toolbar.d.ts +5 -6
- package/dist/es/toolbar/Toolbar.js +16 -9
- package/dist/es/toolbar/tools/ToolbarItem.d.ts +5 -6
- package/dist/es/toolbar/tools/ToolbarItem.js +3 -3
- package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +4 -5
- package/dist/es/toolbar/tools/ToolbarSeparator.js +3 -3
- package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +4 -5
- package/dist/es/toolbar/tools/ToolbarSpacer.js +3 -3
- package/dist/es/util.js +7 -7
- package/dist/npm/Button.d.ts +75 -6
- package/dist/npm/Button.js +65 -20
- package/dist/npm/ButtonGroup.d.ts +5 -6
- package/dist/npm/ButtonGroup.js +6 -6
- package/dist/npm/ButtonInterface.d.ts +4 -1
- package/dist/npm/ButtonWrap.d.ts +5 -6
- package/dist/npm/ButtonWrap.js +5 -5
- package/dist/npm/Chip/Chip.d.ts +56 -10
- package/dist/npm/Chip/Chip.js +48 -27
- package/dist/npm/Chip/ChipList.d.ts +42 -6
- package/dist/npm/Chip/ChipList.js +40 -14
- package/dist/npm/FloatingActionButton/FloatingActionButton.d.ts +5 -6
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +27 -12
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +5 -5
- package/dist/npm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +28 -2
- package/dist/npm/FloatingActionButton/models/shape.d.ts +1 -1
- package/dist/npm/ListButton/ButtonItem.d.ts +5 -6
- package/dist/npm/ListButton/ButtonItem.js +27 -14
- package/dist/npm/ListButton/DropDownButton.d.ts +5 -6
- package/dist/npm/ListButton/DropDownButton.js +62 -20
- package/dist/npm/ListButton/SplitButton.d.ts +5 -6
- package/dist/npm/ListButton/SplitButton.js +68 -31
- package/dist/npm/ListButton/models/ListButtonProps.d.ts +138 -0
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/buttonLook.d.ts +0 -1
- package/dist/npm/main.d.ts +13 -13
- package/dist/npm/main.js +13 -12
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/Toolbar.d.ts +5 -6
- package/dist/npm/toolbar/Toolbar.js +18 -11
- package/dist/npm/toolbar/tools/ToolbarItem.d.ts +5 -6
- package/dist/npm/toolbar/tools/ToolbarItem.js +5 -5
- package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +4 -5
- package/dist/npm/toolbar/tools/ToolbarSeparator.js +5 -5
- package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +4 -5
- package/dist/npm/toolbar/tools/ToolbarSpacer.js +5 -5
- package/dist/npm/util.js +7 -7
- 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.
|
|
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
|
|
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-
|
|
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
|
|
193
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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.
|
|
418
|
-
var
|
|
419
|
-
exports.
|
|
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
|
|
57
|
+
export interface SplitButtonAll extends Vue2type, SplitButtonMethods, SplitButtonData, SplitButtonComputed, SplitButtonState {
|
|
59
58
|
}
|
|
60
|
-
declare let
|
|
61
|
-
declare const
|
|
62
|
-
export { SplitButton,
|
|
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.
|
|
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
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
return _a = {
|
|
124
|
-
'k-widget': true,
|
|
141
|
+
return {
|
|
125
142
|
'k-split-button': true,
|
|
126
|
-
'k-button-group': true
|
|
127
|
-
|
|
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
|
|
195
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
484
|
-
var
|
|
485
|
-
exports.
|
|
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—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—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—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—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—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—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—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—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—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—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
|
-
|
|
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 };
|
package/dist/npm/buttonLook.d.ts
CHANGED
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Button, ButtonProps } from './Button';
|
|
2
|
-
import { ButtonGroup,
|
|
1
|
+
import { Button, ButtonVue2, ButtonProps } from './Button';
|
|
2
|
+
import { ButtonGroup, ButtonGroupVue2, ButtonGroupProps } from './ButtonGroup';
|
|
3
3
|
import { ButtonLook } from './buttonLook';
|
|
4
|
-
import { Chip,
|
|
5
|
-
import { 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,
|
|
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,
|
|
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,
|
|
20
|
-
import { 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,
|
|
27
|
-
import { ToolbarItem,
|
|
28
|
-
import { ToolbarSeparator,
|
|
29
|
-
import { ToolbarSpacer,
|
|
30
|
-
export { Toolbar,
|
|
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.
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
50
|
+
Object.defineProperty(exports, "ToolbarSpacerVue2", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacerVue2; } });
|