@progress/kendo-vue-layout 3.11.0 → 3.11.1-dev.202307111135
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-layout.js +1 -1
- package/dist/es/actionsheet/ActionSheet.d.ts +124 -0
- package/dist/es/actionsheet/ActionSheet.js +387 -0
- package/dist/es/actionsheet/ActionSheetContent.d.ts +41 -0
- package/dist/es/actionsheet/ActionSheetContent.js +31 -0
- package/dist/es/actionsheet/ActionSheetFooter.d.ts +41 -0
- package/dist/es/actionsheet/ActionSheetFooter.js +31 -0
- package/dist/es/actionsheet/ActionSheetHeader.d.ts +41 -0
- package/dist/es/actionsheet/ActionSheetHeader.js +31 -0
- package/dist/es/actionsheet/ActionSheetItem.d.ts +42 -0
- package/dist/es/actionsheet/ActionSheetItem.js +111 -0
- package/dist/es/actionsheet/interfaces/ActionSheetItemProps.d.ts +62 -0
- package/dist/es/actionsheet/interfaces/ActionSheetItemProps.js +1 -0
- package/dist/es/drawer/DrawerNavigation.js +2 -0
- package/dist/es/main.d.ts +6 -0
- package/dist/es/main.js +6 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/actionsheet/ActionSheet.d.ts +124 -0
- package/dist/esm/actionsheet/ActionSheet.js +387 -0
- package/dist/esm/actionsheet/ActionSheetContent.d.ts +41 -0
- package/dist/esm/actionsheet/ActionSheetContent.js +31 -0
- package/dist/esm/actionsheet/ActionSheetFooter.d.ts +41 -0
- package/dist/esm/actionsheet/ActionSheetFooter.js +31 -0
- package/dist/esm/actionsheet/ActionSheetHeader.d.ts +41 -0
- package/dist/esm/actionsheet/ActionSheetHeader.js +31 -0
- package/dist/esm/actionsheet/ActionSheetItem.d.ts +42 -0
- package/dist/esm/actionsheet/ActionSheetItem.js +111 -0
- package/dist/esm/actionsheet/interfaces/ActionSheetItemProps.d.ts +62 -0
- package/dist/esm/actionsheet/interfaces/ActionSheetItemProps.js +1 -0
- package/dist/esm/drawer/DrawerNavigation.js +2 -0
- package/dist/esm/main.d.ts +6 -0
- package/dist/esm/main.js +6 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/actionsheet/ActionSheet.d.ts +124 -0
- package/dist/npm/actionsheet/ActionSheet.js +394 -0
- package/dist/npm/actionsheet/ActionSheetContent.d.ts +41 -0
- package/dist/npm/actionsheet/ActionSheetContent.js +38 -0
- package/dist/npm/actionsheet/ActionSheetFooter.d.ts +41 -0
- package/dist/npm/actionsheet/ActionSheetFooter.js +38 -0
- package/dist/npm/actionsheet/ActionSheetHeader.d.ts +41 -0
- package/dist/npm/actionsheet/ActionSheetHeader.js +38 -0
- package/dist/npm/actionsheet/ActionSheetItem.d.ts +42 -0
- package/dist/npm/actionsheet/ActionSheetItem.js +118 -0
- package/dist/npm/actionsheet/interfaces/ActionSheetItemProps.d.ts +62 -0
- package/dist/npm/actionsheet/interfaces/ActionSheetItemProps.js +5 -0
- package/dist/npm/drawer/DrawerNavigation.js +2 -0
- package/dist/npm/main.d.ts +6 -0
- package/dist/npm/main.js +6 -0
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +13 -13
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
import * as Vue from 'vue';
|
|
12
|
+
var allVue = Vue;
|
|
13
|
+
var gh = allVue.h;
|
|
14
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
15
|
+
import { Slide } from '@progress/kendo-vue-animation';
|
|
16
|
+
import { validatePackage, Navigation, FOCUSABLE_ELEMENTS, classNames, getRef, setRef, templateRendering, getListeners, getTemplate, guid } from '@progress/kendo-vue-common';
|
|
17
|
+
import { packageMetadata } from '../package-metadata.js';
|
|
18
|
+
import { ActionSheetItem } from './ActionSheetItem.js';
|
|
19
|
+
import { ActionSheetHeader } from './ActionSheetHeader.js';
|
|
20
|
+
import { ActionSheetFooter } from './ActionSheetFooter.js';
|
|
21
|
+
import { ActionSheetContent } from './ActionSheetContent.js';
|
|
22
|
+
var DEFAULT_DURATION = 300;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
var ActionSheetVue2 = {
|
|
27
|
+
name: 'KendoActionSheet',
|
|
28
|
+
props: {
|
|
29
|
+
expand: Boolean,
|
|
30
|
+
animation: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
animationDuration: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: DEFAULT_DURATION
|
|
37
|
+
},
|
|
38
|
+
animationStyles: Object,
|
|
39
|
+
tabIndex: Number,
|
|
40
|
+
items: Array,
|
|
41
|
+
subTitle: String,
|
|
42
|
+
title: String,
|
|
43
|
+
className: String,
|
|
44
|
+
header: [String, Object, Function],
|
|
45
|
+
content: [String, Object, Function],
|
|
46
|
+
footer: [String, Object, Function],
|
|
47
|
+
item: [String, Object, Function],
|
|
48
|
+
navigatable: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true
|
|
51
|
+
},
|
|
52
|
+
navigatableElements: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: function _default() {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
created: function created() {
|
|
60
|
+
this.bottomPosition = {
|
|
61
|
+
bottom: '0px',
|
|
62
|
+
width: '100%'
|
|
63
|
+
};
|
|
64
|
+
this.guidId = guid();
|
|
65
|
+
validatePackage(packageMetadata);
|
|
66
|
+
},
|
|
67
|
+
mounted: function mounted() {
|
|
68
|
+
this.element = getRef(this, 'actionSheet');
|
|
69
|
+
if (this.$props.expand && !this.show) {
|
|
70
|
+
this.show = true;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
updated: function updated() {
|
|
74
|
+
var _this = this;
|
|
75
|
+
this.element = getRef(this, 'actionSheet');
|
|
76
|
+
if (this.$props.expand && !this.show) {
|
|
77
|
+
this.show = true;
|
|
78
|
+
}
|
|
79
|
+
if (this.element && !this.$props.className) {
|
|
80
|
+
this.element.style.setProperty('--kendo-actionsheet-height', 'auto');
|
|
81
|
+
this.element.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
82
|
+
}
|
|
83
|
+
if (this.element) {
|
|
84
|
+
if (this.$props.navigatable) {
|
|
85
|
+
var innerElements = ['.k-actionsheet-footer', '.k-actionsheet-content', '.k-actionsheet-titlebar'].map(function (selector) {
|
|
86
|
+
return FOCUSABLE_ELEMENTS.concat(_this.$props.navigatableElements).map(function (focusableSelector) {
|
|
87
|
+
return "".concat(selector, " ").concat(focusableSelector);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
var selectors = __spreadArray(['.k-actionsheet-item'], innerElements.flat(), true);
|
|
91
|
+
this.navigation = new Navigation({
|
|
92
|
+
tabIndex: this.$props.tabIndex || 0,
|
|
93
|
+
root: this.element,
|
|
94
|
+
rovingTabIndex: false,
|
|
95
|
+
selectors: selectors,
|
|
96
|
+
keyboardEvents: {
|
|
97
|
+
keydown: {
|
|
98
|
+
'Tab': this.onTab,
|
|
99
|
+
'Enter': this.onEnter,
|
|
100
|
+
'Escape': this.onEscape
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
this.navigation.focusElement(this.navigation.first, null);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data: function data() {
|
|
109
|
+
return {
|
|
110
|
+
show: false,
|
|
111
|
+
slide: false
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
computed: {
|
|
115
|
+
topGroupItems: function topGroupItems() {
|
|
116
|
+
var _a;
|
|
117
|
+
return (_a = this.items) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
|
|
118
|
+
return !item.group || item.group === 'top';
|
|
119
|
+
});
|
|
120
|
+
},
|
|
121
|
+
bottomGroupItems: function bottomGroupItems() {
|
|
122
|
+
var _a;
|
|
123
|
+
return (_a = this.items) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
|
|
124
|
+
return item.group === 'bottom';
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
shouldRenderSeparator: function shouldRenderSeparator() {
|
|
128
|
+
return this.topGroupItems && this.topGroupItems.length > 0 && this.bottomGroupItems && this.bottomGroupItems.length > 0;
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
setup: !isV3 ? undefined : function () {
|
|
133
|
+
var v3 = !!isV3;
|
|
134
|
+
return {
|
|
135
|
+
v3: v3
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
render: function render(createElement) {
|
|
139
|
+
var h = gh || createElement;
|
|
140
|
+
var _a = this.$props,
|
|
141
|
+
title = _a.title,
|
|
142
|
+
subTitle = _a.subTitle,
|
|
143
|
+
animationStyles = _a.animationStyles,
|
|
144
|
+
animation = _a.animation,
|
|
145
|
+
expand = _a.expand,
|
|
146
|
+
tabIndex = _a.tabIndex,
|
|
147
|
+
className = _a.className,
|
|
148
|
+
animationDuration = _a.animationDuration;
|
|
149
|
+
var header = templateRendering.call(this, this.$props.header, getListeners.call(this));
|
|
150
|
+
var headerContent = getTemplate.call(this, {
|
|
151
|
+
h: h,
|
|
152
|
+
template: header,
|
|
153
|
+
defaultRendering: null
|
|
154
|
+
});
|
|
155
|
+
var content = templateRendering.call(this, this.$props.content, getListeners.call(this));
|
|
156
|
+
var contentTemplate = getTemplate.call(this, {
|
|
157
|
+
h: h,
|
|
158
|
+
template: content,
|
|
159
|
+
defaultRendering: null
|
|
160
|
+
});
|
|
161
|
+
var footer = templateRendering.call(this, this.$props.footer, getListeners.call(this));
|
|
162
|
+
var footerContent = getTemplate.call(this, {
|
|
163
|
+
h: h,
|
|
164
|
+
template: footer,
|
|
165
|
+
defaultRendering: null
|
|
166
|
+
});
|
|
167
|
+
var actionSheetPanel = h("div", {
|
|
168
|
+
"class": classNames('k-actionsheet', className, {
|
|
169
|
+
'k-actionsheet-bottom': !className
|
|
170
|
+
}),
|
|
171
|
+
role: "dialog",
|
|
172
|
+
attrs: this.v3 ? undefined : {
|
|
173
|
+
role: "dialog",
|
|
174
|
+
"aria-modal": "true",
|
|
175
|
+
"aria-hidden": false,
|
|
176
|
+
"aria-labelledby": this.guidId
|
|
177
|
+
},
|
|
178
|
+
"aria-modal": "true",
|
|
179
|
+
"aria-hidden": false,
|
|
180
|
+
"aria-labelledby": this.guidId,
|
|
181
|
+
ref: setRef(this, 'actionSheet'),
|
|
182
|
+
onKeydown: this.handleKeyDown,
|
|
183
|
+
on: this.v3 ? undefined : {
|
|
184
|
+
"keydown": this.handleKeyDown
|
|
185
|
+
}
|
|
186
|
+
}, [this.$props.header && !title && !subTitle &&
|
|
187
|
+
// @ts-ignore function children
|
|
188
|
+
h(ActionSheetHeader, this.v3 ? function () {
|
|
189
|
+
return [headerContent];
|
|
190
|
+
} : [headerContent]), (title || subTitle) && h("div", {
|
|
191
|
+
"class": "k-actionsheet-titlebar k-text-center"
|
|
192
|
+
}, [h("div", {
|
|
193
|
+
"class": "k-actionsheet-titlebar-group k-hbox"
|
|
194
|
+
}, [h("div", {
|
|
195
|
+
"class": 'k-actionsheet-title',
|
|
196
|
+
id: this.guidId,
|
|
197
|
+
attrs: this.v3 ? undefined : {
|
|
198
|
+
id: this.guidId
|
|
199
|
+
}
|
|
200
|
+
}, [title && h("div", [title]), subTitle && h("div", {
|
|
201
|
+
"class": "k-actionsheet-subtitle"
|
|
202
|
+
}, [subTitle])])])]), !this.$props.content ? h("div", {
|
|
203
|
+
"class": "k-actionsheet-content"
|
|
204
|
+
}, [h("div", {
|
|
205
|
+
"class": "k-list-ul",
|
|
206
|
+
role: "group",
|
|
207
|
+
attrs: this.v3 ? undefined : {
|
|
208
|
+
role: "group"
|
|
209
|
+
}
|
|
210
|
+
}, [this.topGroupItems && this.topGroupItems.map(function (item, idx) {
|
|
211
|
+
var itemContent = templateRendering.call(this, this.$props.item || item.content, getListeners.call(this));
|
|
212
|
+
return h(ActionSheetItem, {
|
|
213
|
+
title: item.title,
|
|
214
|
+
attrs: this.v3 ? undefined : {
|
|
215
|
+
title: item.title,
|
|
216
|
+
description: item.description,
|
|
217
|
+
disabled: item.disabled,
|
|
218
|
+
id: idx,
|
|
219
|
+
item: item,
|
|
220
|
+
icon: item.icon,
|
|
221
|
+
svgIcon: item.svgIcon,
|
|
222
|
+
iconSize: item.iconSize,
|
|
223
|
+
iconColor: item.iconColor,
|
|
224
|
+
tabIndex: tabIndex || 0,
|
|
225
|
+
content: itemContent
|
|
226
|
+
},
|
|
227
|
+
description: item.description,
|
|
228
|
+
disabled: item.disabled,
|
|
229
|
+
id: idx,
|
|
230
|
+
key: idx,
|
|
231
|
+
item: item,
|
|
232
|
+
icon: item.icon,
|
|
233
|
+
svgIcon: item.svgIcon,
|
|
234
|
+
iconSize: item.iconSize,
|
|
235
|
+
iconColor: item.iconColor,
|
|
236
|
+
tabIndex: tabIndex || 0,
|
|
237
|
+
content: itemContent,
|
|
238
|
+
onClick: this.handleItemClick,
|
|
239
|
+
on: this.v3 ? undefined : {
|
|
240
|
+
"click": this.handleItemClick
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}, this)]), this.shouldRenderSeparator && h("hr", {
|
|
244
|
+
"class": "k-hr"
|
|
245
|
+
}), h("div", {
|
|
246
|
+
"class": "k-list-ul",
|
|
247
|
+
role: "group",
|
|
248
|
+
attrs: this.v3 ? undefined : {
|
|
249
|
+
role: "group"
|
|
250
|
+
}
|
|
251
|
+
}, [this.bottomGroupItems && this.bottomGroupItems.map(function (item, idx) {
|
|
252
|
+
var _a;
|
|
253
|
+
return h(ActionSheetItem, {
|
|
254
|
+
id: idx + (((_a = this.topGroupItems) === null || _a === void 0 ? void 0 : _a.length) || 0),
|
|
255
|
+
attrs: this.v3 ? undefined : {
|
|
256
|
+
id: idx + (((_a = this.topGroupItems) === null || _a === void 0 ? void 0 : _a.length) || 0),
|
|
257
|
+
item: item,
|
|
258
|
+
title: item.title,
|
|
259
|
+
description: item.description,
|
|
260
|
+
disabled: item.disabled,
|
|
261
|
+
icon: item.icon,
|
|
262
|
+
svgIcon: item.svgIcon,
|
|
263
|
+
iconSize: item.iconSize,
|
|
264
|
+
iconColor: item.iconColor,
|
|
265
|
+
tabIndex: tabIndex || 0
|
|
266
|
+
},
|
|
267
|
+
key: idx,
|
|
268
|
+
item: item,
|
|
269
|
+
title: item.title,
|
|
270
|
+
description: item.description,
|
|
271
|
+
disabled: item.disabled,
|
|
272
|
+
icon: item.icon,
|
|
273
|
+
svgIcon: item.svgIcon,
|
|
274
|
+
iconSize: item.iconSize,
|
|
275
|
+
iconColor: item.iconColor,
|
|
276
|
+
tabIndex: tabIndex || 0,
|
|
277
|
+
onClick: this.handleItemClick,
|
|
278
|
+
on: this.v3 ? undefined : {
|
|
279
|
+
"click": this.handleItemClick
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}, this)])]) :
|
|
283
|
+
// @ts-ignore function children
|
|
284
|
+
h(ActionSheetContent, this.v3 ? function () {
|
|
285
|
+
return [contentTemplate];
|
|
286
|
+
} : [contentTemplate]), this.$props.footer &&
|
|
287
|
+
// @ts-ignore function children
|
|
288
|
+
h(ActionSheetFooter, this.v3 ? function () {
|
|
289
|
+
return [footerContent];
|
|
290
|
+
} : [footerContent])]);
|
|
291
|
+
return this.show && h("div", {
|
|
292
|
+
"class": "k-actionsheet-container"
|
|
293
|
+
}, [h("div", {
|
|
294
|
+
"class": "k-overlay",
|
|
295
|
+
onClick: this.handleOverlayClick,
|
|
296
|
+
on: this.v3 ? undefined : {
|
|
297
|
+
"click": this.handleOverlayClick
|
|
298
|
+
}
|
|
299
|
+
}), animation ?
|
|
300
|
+
// @ts-ignore function children
|
|
301
|
+
h(Slide, {
|
|
302
|
+
id: 'test',
|
|
303
|
+
attrs: this.v3 ? undefined : {
|
|
304
|
+
id: 'test',
|
|
305
|
+
direction: 'up',
|
|
306
|
+
componentChildStyle: animationStyles || this.bottomPosition,
|
|
307
|
+
transitionEnterDuration: animationDuration,
|
|
308
|
+
transitionExitDuration: animationDuration,
|
|
309
|
+
appear: expand
|
|
310
|
+
},
|
|
311
|
+
onExited: this.hideActionSheet,
|
|
312
|
+
on: this.v3 ? undefined : {
|
|
313
|
+
"exited": this.hideActionSheet
|
|
314
|
+
},
|
|
315
|
+
direction: 'up',
|
|
316
|
+
componentChildStyle: animationStyles || this.bottomPosition,
|
|
317
|
+
transitionEnterDuration: animationDuration,
|
|
318
|
+
transitionExitDuration: animationDuration,
|
|
319
|
+
appear: expand
|
|
320
|
+
}, this.v3 ? function () {
|
|
321
|
+
return [expand ? actionSheetPanel : null];
|
|
322
|
+
} : [expand ? actionSheetPanel : null]) : actionSheetPanel]);
|
|
323
|
+
},
|
|
324
|
+
methods: {
|
|
325
|
+
handleKeyDown: function handleKeyDown(e) {
|
|
326
|
+
if (this.$props.navigatable) {
|
|
327
|
+
this.navigation.triggerKeyboardEvent(e);
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
onTab: function onTab(target, nav, ev) {
|
|
331
|
+
ev.preventDefault();
|
|
332
|
+
if (ev.shiftKey) {
|
|
333
|
+
nav.focusPrevious(target);
|
|
334
|
+
} else {
|
|
335
|
+
nav.focusNext(target);
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
handleOverlayClick: function handleOverlayClick(ev) {
|
|
339
|
+
this.$emit('close', ev);
|
|
340
|
+
if (!this.$props.animation) {
|
|
341
|
+
this.hideActionSheet();
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
handleItemClick: function handleItemClick(ev) {
|
|
345
|
+
this.$emit('itemselect', ev);
|
|
346
|
+
if (!this.$props.animation) {
|
|
347
|
+
this.hideActionSheet();
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
onEnter: function onEnter(target, nav, ev) {
|
|
351
|
+
if (target.ariaDisabled) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
var isItem = target.className && target.className.indexOf('k-actionsheet-item') !== -1;
|
|
355
|
+
var allItems = nav.elements.filter(function (e) {
|
|
356
|
+
return e.className.indexOf('k-actionsheet-item') !== -1;
|
|
357
|
+
});
|
|
358
|
+
if (isItem) {
|
|
359
|
+
ev.preventDefault();
|
|
360
|
+
var item = this.$props.items[allItems.indexOf(target)];
|
|
361
|
+
this.$emit('itemselect', {
|
|
362
|
+
syntheticEvent: ev,
|
|
363
|
+
item: item,
|
|
364
|
+
title: item && item.title
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
if (!this.$props.animation) {
|
|
368
|
+
this.hideActionSheet();
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
onEscape: function onEscape(_target, _nav, ev) {
|
|
372
|
+
ev.preventDefault();
|
|
373
|
+
this.$emit('close', ev);
|
|
374
|
+
if (!this.$props.animation) {
|
|
375
|
+
this.hideActionSheet();
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
hideActionSheet: function hideActionSheet() {
|
|
379
|
+
this.show = false;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* @hidden
|
|
385
|
+
*/
|
|
386
|
+
var ActionSheet = ActionSheetVue2;
|
|
387
|
+
export { ActionSheet, ActionSheetVue2 };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export interface ActionSheetContentState {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface ActionSheetContentComputed {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export interface ActionSheetContentMethods {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface ActionSheetContentData {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export interface ActionSheetContentAll extends Vue2type, ActionSheetContentMethods, ActionSheetContentData, ActionSheetContentComputed, ActionSheetContentState {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
declare let ActionSheetContentVue2: ComponentOptions<ActionSheetContentAll, DefaultData<ActionSheetContentData>, DefaultMethods<ActionSheetContentAll>, ActionSheetContentComputed, RecordPropsDefinition<{}>>;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
declare const ActionSheetContent: DefineComponent<{}, any, ActionSheetContentData, ActionSheetContentComputed, ActionSheetContentMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
41
|
+
export { ActionSheetContent, ActionSheetContentVue2 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
var ActionSheetContentVue2 = {
|
|
11
|
+
name: 'KendoActionSheetContent',
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
setup: !isV3 ? undefined : function () {
|
|
14
|
+
var v3 = !!isV3;
|
|
15
|
+
return {
|
|
16
|
+
v3: v3
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
render: function render(createElement) {
|
|
20
|
+
var h = gh || createElement;
|
|
21
|
+
var defaultSlot = getDefaultSlots(this);
|
|
22
|
+
return h("div", {
|
|
23
|
+
"class": 'k-actionsheet-content'
|
|
24
|
+
}, [defaultSlot]);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
var ActionSheetContent = ActionSheetContentVue2;
|
|
31
|
+
export { ActionSheetContent, ActionSheetContentVue2 };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export interface ActionSheetFooterState {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface ActionSheetFooterComputed {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export interface ActionSheetFooterMethods {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface ActionSheetFooterData {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export interface ActionSheetFooterAll extends Vue2type, ActionSheetFooterMethods, ActionSheetFooterData, ActionSheetFooterComputed, ActionSheetFooterState {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
declare let ActionSheetFooterVue2: ComponentOptions<ActionSheetFooterAll, DefaultData<ActionSheetFooterData>, DefaultMethods<ActionSheetFooterAll>, ActionSheetFooterComputed, RecordPropsDefinition<{}>>;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
declare const ActionSheetFooter: DefineComponent<{}, any, ActionSheetFooterData, ActionSheetFooterComputed, ActionSheetFooterMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
41
|
+
export { ActionSheetFooter, ActionSheetFooterVue2 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
var ActionSheetFooterVue2 = {
|
|
11
|
+
name: 'KendoActionSheetFooter',
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
setup: !isV3 ? undefined : function () {
|
|
14
|
+
var v3 = !!isV3;
|
|
15
|
+
return {
|
|
16
|
+
v3: v3
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
render: function render(createElement) {
|
|
20
|
+
var h = gh || createElement;
|
|
21
|
+
var defaultSlot = getDefaultSlots(this);
|
|
22
|
+
return h("div", {
|
|
23
|
+
"class": 'k-actionsheet-footer'
|
|
24
|
+
}, [defaultSlot]);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
var ActionSheetFooter = ActionSheetFooterVue2;
|
|
31
|
+
export { ActionSheetFooter, ActionSheetFooterVue2 };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export interface ActionSheetHeaderState {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface ActionSheetHeaderComputed {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export interface ActionSheetHeaderMethods {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface ActionSheetHeaderData {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export interface ActionSheetHeaderAll extends Vue2type, ActionSheetHeaderMethods, ActionSheetHeaderData, ActionSheetHeaderComputed, ActionSheetHeaderState {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
declare let ActionSheetHeaderVue2: ComponentOptions<ActionSheetHeaderAll, DefaultData<ActionSheetHeaderData>, DefaultMethods<ActionSheetHeaderAll>, ActionSheetHeaderComputed, RecordPropsDefinition<{}>>;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
declare const ActionSheetHeader: DefineComponent<{}, any, ActionSheetHeaderData, ActionSheetHeaderComputed, ActionSheetHeaderMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
41
|
+
export { ActionSheetHeader, ActionSheetHeaderVue2 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
var ActionSheetHeaderVue2 = {
|
|
11
|
+
name: 'KendoActionSheetHeader',
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
setup: !isV3 ? undefined : function () {
|
|
14
|
+
var v3 = !!isV3;
|
|
15
|
+
return {
|
|
16
|
+
v3: v3
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
render: function render(createElement) {
|
|
20
|
+
var h = gh || createElement;
|
|
21
|
+
var defaultSlot = getDefaultSlots(this);
|
|
22
|
+
return h("div", {
|
|
23
|
+
"class": 'k-actionsheet-titlebar'
|
|
24
|
+
}, [defaultSlot]);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
var ActionSheetHeader = ActionSheetHeaderVue2;
|
|
31
|
+
export { ActionSheetHeader, ActionSheetHeaderVue2 };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { ActionSheetItemProps } from './interfaces/ActionSheetItemProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface ActionSheetItemState {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface ActionSheetItemComputed {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export interface ActionSheetItemMethods {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export interface ActionSheetItemData {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export interface ActionSheetItemAll extends Vue2type, ActionSheetItemMethods, ActionSheetItemData, ActionSheetItemComputed, ActionSheetItemState {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
declare let ActionSheetItemVue2: ComponentOptions<ActionSheetItemAll, DefaultData<ActionSheetItemData>, DefaultMethods<ActionSheetItemAll>, ActionSheetItemComputed, RecordPropsDefinition<ActionSheetItemProps>>;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
declare const ActionSheetItem: DefineComponent<ActionSheetItemProps, any, ActionSheetItemData, ActionSheetItemComputed, ActionSheetItemMethods, {}, {}, {}, string, ActionSheetItemProps, ActionSheetItemProps, {}>;
|
|
42
|
+
export { ActionSheetItem, ActionSheetItemVue2 };
|