@progress/kendo-vue-buttons 2.7.3 → 3.0.0-dev.202201141128
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 +62 -29
- package/dist/es/ButtonGroup.d.ts +5 -6
- package/dist/es/ButtonGroup.js +4 -4
- package/dist/es/ButtonInterface.d.ts +8 -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 +63 -30
- package/dist/npm/ButtonGroup.d.ts +5 -6
- package/dist/npm/ButtonGroup.js +6 -6
- package/dist/npm/ButtonInterface.d.ts +8 -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
|
@@ -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—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—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—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,
|
|
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
|
|
137
|
-
declare const
|
|
138
|
-
export { ChipList,
|
|
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.
|
|
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
|
|
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.
|
|
254
|
-
var
|
|
255
|
-
exports.
|
|
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,
|
|
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
|
|
49
|
-
declare const
|
|
50
|
-
export { FloatingActionButton,
|
|
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.
|
|
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
|
|
32
|
+
var FloatingActionButtonVue2 = {
|
|
33
33
|
name: 'KendoVueFloatingActionButton',
|
|
34
34
|
props: {
|
|
35
35
|
id: String,
|
|
@@ -74,6 +74,17 @@ var FloatingActionButton = {
|
|
|
74
74
|
return 'pill';
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
+
rounded: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: 'full'
|
|
80
|
+
},
|
|
81
|
+
fillMode: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: 'solid',
|
|
84
|
+
validator: function validator(value) {
|
|
85
|
+
return [null, 'flat', 'link', 'outline', 'solid'].includes(value);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
77
88
|
size: {
|
|
78
89
|
type: String,
|
|
79
90
|
default: function _default() {
|
|
@@ -135,13 +146,17 @@ var FloatingActionButton = {
|
|
|
135
146
|
},
|
|
136
147
|
computed: {
|
|
137
148
|
buttonClassNames: function buttonClassNames() {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
var _a;
|
|
150
|
+
|
|
151
|
+
var _b = this.$props,
|
|
152
|
+
size = _b.size,
|
|
153
|
+
icon = _b.icon,
|
|
154
|
+
themeColor = _b.themeColor,
|
|
155
|
+
fillMode = _b.fillMode,
|
|
156
|
+
rounded = _b.rounded;
|
|
157
|
+
return _a = {
|
|
158
|
+
'k-fab': true
|
|
159
|
+
}, _a["k-fab-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-" + (kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-fab-" + fillMode] = fillMode, _a["k-fab-" + fillMode + "-" + themeColor] = fillMode && themeColor, _a['k-icon-button'] = icon, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.currentFocused, _a["k-" + this.$props.align.vertical + "-" + this.$props.align.horizontal] = true, _a;
|
|
145
160
|
},
|
|
146
161
|
computedOpened: function computedOpened() {
|
|
147
162
|
return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
|
|
@@ -492,6 +507,6 @@ var FloatingActionButton = {
|
|
|
492
507
|
}, [fabItems.call(_this2)])])]);
|
|
493
508
|
}
|
|
494
509
|
};
|
|
495
|
-
exports.
|
|
496
|
-
var
|
|
497
|
-
exports.
|
|
510
|
+
exports.FloatingActionButtonVue2 = FloatingActionButtonVue2;
|
|
511
|
+
var FloatingActionButton = FloatingActionButtonVue2;
|
|
512
|
+
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,
|
|
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
|
|
116
|
-
declare const
|
|
117
|
-
export { FloatingActionButtonItem,
|
|
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.
|
|
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
|
|
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.
|
|
132
|
-
var
|
|
133
|
-
exports.
|
|
131
|
+
exports.FloatingActionButtonItemVue2 = FloatingActionButtonItemVue2;
|
|
132
|
+
var FloatingActionButtonItem = FloatingActionButtonItemVue2;
|
|
133
|
+
exports.FloatingActionButtonItem = FloatingActionButtonItem;
|
|
@@ -3,7 +3,6 @@ import { FloatingActionButtonAlign } from '../models/align';
|
|
|
3
3
|
import { FloatingActionButtonAlignOffset } from '../models/align-offset';
|
|
4
4
|
import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events';
|
|
5
5
|
import { FloatingActionButtonPositionMode } from '../models/position-mode';
|
|
6
|
-
import { FloatingActionButtonShape } from '../models/shape';
|
|
7
6
|
import { FloatingActionButtonSize } from '../models/size';
|
|
8
7
|
import { FloatingActionButtonThemeColor } from '../models/theme-color';
|
|
9
8
|
/**
|
|
@@ -114,7 +113,34 @@ export interface FloatingActionButtonProps extends Omit<any, 'onBlur' | 'onFocus
|
|
|
114
113
|
* * `square`—Applies square shape on the FloatingActionButton.
|
|
115
114
|
*
|
|
116
115
|
*/
|
|
117
|
-
shape?:
|
|
116
|
+
shape?: null | 'rectangle' | 'square' | string;
|
|
117
|
+
/**
|
|
118
|
+
* Configures the `roundness` of the Floating Action Button.
|
|
119
|
+
*
|
|
120
|
+
* The available options are:
|
|
121
|
+
* - small
|
|
122
|
+
* - medium
|
|
123
|
+
* - large
|
|
124
|
+
* - circle
|
|
125
|
+
* - full
|
|
126
|
+
* - null—Does not set a rounded `class`.
|
|
127
|
+
*
|
|
128
|
+
* @default `medium`
|
|
129
|
+
*/
|
|
130
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
131
|
+
/**
|
|
132
|
+
* Configures the `fillMode` of the Floating Action Button.
|
|
133
|
+
*
|
|
134
|
+
* The available options are:
|
|
135
|
+
* - solid
|
|
136
|
+
* - outline
|
|
137
|
+
* - flat
|
|
138
|
+
* - link
|
|
139
|
+
* - null—Does not set a fillMode `class`.
|
|
140
|
+
*
|
|
141
|
+
* @default `solid`
|
|
142
|
+
*/
|
|
143
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
|
|
118
144
|
/**
|
|
119
145
|
* Specifies the size of the Floating Action Button
|
|
120
146
|
* [see example]({% slug appearance_floatingactionbutton %}).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Specifies the shape of the Floating Action Button.
|
|
3
3
|
*
|
|
4
4
|
* The possible values are:
|
|
5
|
-
* * `
|
|
5
|
+
* * `full`(Default)—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`—Applies circle shape on the FloatingActionButton.
|
|
8
8
|
* * `rectangle`—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
|
|
48
|
+
export interface ButtonItemAll extends Vue2type, ButtonItemMethods, ButtonItemData, ButtonItemComputed, ButtonItemState {
|
|
50
49
|
}
|
|
51
|
-
declare let
|
|
52
|
-
declare const
|
|
53
|
-
export { ButtonItem,
|
|
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.
|
|
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
|
|
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-
|
|
39
|
-
'k-
|
|
40
|
-
'k-
|
|
41
|
-
'k-
|
|
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 =
|
|
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-
|
|
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.
|
|
126
|
-
var
|
|
127
|
-
exports.
|
|
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
|
|
56
|
+
export interface DropDownButtonAll extends Vue2type, DropDownButtonMethods, DropDownButtonData, DropDownButtonComputed, DropDownButtonState {
|
|
58
57
|
}
|
|
59
|
-
declare let
|
|
60
|
-
declare const
|
|
61
|
-
export { DropDownButton,
|
|
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 };
|