@progress/kendo-vue-layout 3.14.2 → 3.15.0-dev.202309281100
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 +16 -0
- package/dist/es/actionsheet/ActionSheet.js +49 -14
- package/dist/es/actionsheet/ActionSheetContent.js +9 -2
- package/dist/es/actionsheet/ActionSheetFooter.js +9 -2
- package/dist/es/actionsheet/ActionSheetHeader.js +16 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/actionsheet/ActionSheet.d.ts +16 -0
- package/dist/esm/actionsheet/ActionSheet.js +49 -14
- package/dist/esm/actionsheet/ActionSheetContent.js +9 -2
- package/dist/esm/actionsheet/ActionSheetFooter.js +9 -2
- package/dist/esm/actionsheet/ActionSheetHeader.js +16 -2
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/actionsheet/ActionSheet.d.ts +16 -0
- package/dist/npm/actionsheet/ActionSheet.js +49 -14
- package/dist/npm/actionsheet/ActionSheetContent.js +8 -1
- package/dist/npm/actionsheet/ActionSheetFooter.js +8 -1
- package/dist/npm/actionsheet/ActionSheetHeader.js +15 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +13 -13
|
@@ -62,6 +62,22 @@ export interface ActionSheetProps {
|
|
|
62
62
|
* The CSS classes that will be rendered on the inner ActionSheet element.
|
|
63
63
|
*/
|
|
64
64
|
className?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The CSS classes that will be rendered on the DOM element that wraps the header section of the ActionSheet element.
|
|
67
|
+
*/
|
|
68
|
+
headerClassName?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The CSS classes that will be rendered on the DOM element that wraps the footer section of the ActionSheet element.
|
|
71
|
+
*/
|
|
72
|
+
footerClassName?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The CSS classes that will be rendered on the DOM element that wraps the content section of the ActionSheet element.
|
|
75
|
+
*/
|
|
76
|
+
contentClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The custom Styles that will be applied on the DOM element that wraps the header section of the ActionSheet element.
|
|
79
|
+
*/
|
|
80
|
+
headerStyle?: string;
|
|
65
81
|
/**
|
|
66
82
|
* Sets the header content of the ActionSheet either as string that is pointing to a slot template of as render function.
|
|
67
83
|
*/
|
|
@@ -41,6 +41,22 @@ var ActionSheetVue2 = {
|
|
|
41
41
|
subTitle: String,
|
|
42
42
|
title: String,
|
|
43
43
|
className: String,
|
|
44
|
+
headerClassName: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: undefined
|
|
47
|
+
},
|
|
48
|
+
contentClassName: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: undefined
|
|
51
|
+
},
|
|
52
|
+
headerStyle: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: undefined
|
|
55
|
+
},
|
|
56
|
+
footerClassName: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: undefined
|
|
59
|
+
},
|
|
44
60
|
header: [String, Object, Function],
|
|
45
61
|
content: [String, Object, Function],
|
|
46
62
|
footer: [String, Object, Function],
|
|
@@ -71,7 +87,6 @@ var ActionSheetVue2 = {
|
|
|
71
87
|
}
|
|
72
88
|
},
|
|
73
89
|
updated: function updated() {
|
|
74
|
-
var _this = this;
|
|
75
90
|
this.element = getRef(this, 'actionSheet');
|
|
76
91
|
if (this.$props.expand && !this.show) {
|
|
77
92
|
this.show = true;
|
|
@@ -82,8 +97,9 @@ var ActionSheetVue2 = {
|
|
|
82
97
|
}
|
|
83
98
|
if (this.element) {
|
|
84
99
|
if (this.$props.navigatable) {
|
|
100
|
+
var navigatableElements_1 = this.$props.navigatableElements;
|
|
85
101
|
var innerElements = ['.k-actionsheet-footer', '.k-actionsheet-content', '.k-actionsheet-titlebar'].map(function (selector) {
|
|
86
|
-
return FOCUSABLE_ELEMENTS.concat(
|
|
102
|
+
return FOCUSABLE_ELEMENTS.concat(navigatableElements_1).map(function (focusableSelector) {
|
|
87
103
|
return "".concat(selector, " ").concat(focusableSelector);
|
|
88
104
|
});
|
|
89
105
|
});
|
|
@@ -101,7 +117,10 @@ var ActionSheetVue2 = {
|
|
|
101
117
|
}
|
|
102
118
|
}
|
|
103
119
|
});
|
|
104
|
-
this.navigation.focusElement(this.
|
|
120
|
+
navigatableElements_1.length !== 0 ? this.navigation.focusElement(this.element.querySelector(navigatableElements_1[0]), null)
|
|
121
|
+
// The above line focuses the first element of the $props.navigatableElements
|
|
122
|
+
// if the props is defined. Otherwise, the released logic will be executed
|
|
123
|
+
: this.navigation.focusElement(this.navigation.first, null);
|
|
105
124
|
}
|
|
106
125
|
}
|
|
107
126
|
},
|
|
@@ -145,7 +164,10 @@ var ActionSheetVue2 = {
|
|
|
145
164
|
expand = _a.expand,
|
|
146
165
|
tabIndex = _a.tabIndex,
|
|
147
166
|
className = _a.className,
|
|
148
|
-
animationDuration = _a.animationDuration
|
|
167
|
+
animationDuration = _a.animationDuration,
|
|
168
|
+
headerClassName = _a.headerClassName,
|
|
169
|
+
contentClassName = _a.contentClassName,
|
|
170
|
+
footerClassName = _a.footerClassName;
|
|
149
171
|
var header = templateRendering.call(this, this.$props.header, getListeners.call(this));
|
|
150
172
|
var headerContent = getTemplate.call(this, {
|
|
151
173
|
h: h,
|
|
@@ -185,7 +207,12 @@ var ActionSheetVue2 = {
|
|
|
185
207
|
}
|
|
186
208
|
}, [this.$props.header && !title && !subTitle &&
|
|
187
209
|
// @ts-ignore function children
|
|
188
|
-
h(ActionSheetHeader,
|
|
210
|
+
h(ActionSheetHeader, {
|
|
211
|
+
headerClassName: headerClassName,
|
|
212
|
+
attrs: this.v3 ? undefined : {
|
|
213
|
+
headerClassName: headerClassName
|
|
214
|
+
}
|
|
215
|
+
}, this.v3 ? function () {
|
|
189
216
|
return [headerContent];
|
|
190
217
|
} : [headerContent]), (title || subTitle) && h("div", {
|
|
191
218
|
"class": "k-actionsheet-titlebar k-text-center"
|
|
@@ -285,11 +312,21 @@ var ActionSheetVue2 = {
|
|
|
285
312
|
});
|
|
286
313
|
}, this)])]) :
|
|
287
314
|
// @ts-ignore function children
|
|
288
|
-
h(ActionSheetContent,
|
|
315
|
+
h(ActionSheetContent, {
|
|
316
|
+
contentClassName: contentClassName,
|
|
317
|
+
attrs: this.v3 ? undefined : {
|
|
318
|
+
contentClassName: contentClassName
|
|
319
|
+
}
|
|
320
|
+
}, this.v3 ? function () {
|
|
289
321
|
return [contentTemplate];
|
|
290
322
|
} : [contentTemplate]), this.$props.footer &&
|
|
291
323
|
// @ts-ignore function children
|
|
292
|
-
h(ActionSheetFooter,
|
|
324
|
+
h(ActionSheetFooter, {
|
|
325
|
+
footerClassName: footerClassName,
|
|
326
|
+
attrs: this.v3 ? undefined : {
|
|
327
|
+
footerClassName: footerClassName
|
|
328
|
+
}
|
|
329
|
+
}, this.v3 ? function () {
|
|
293
330
|
return [footerContent];
|
|
294
331
|
} : [footerContent])]);
|
|
295
332
|
return this.show && h("div", {
|
|
@@ -303,20 +340,18 @@ var ActionSheetVue2 = {
|
|
|
303
340
|
}), animation ?
|
|
304
341
|
// @ts-ignore function children
|
|
305
342
|
h(Slide, {
|
|
306
|
-
|
|
343
|
+
onExited: this.hideActionSheet,
|
|
344
|
+
on: this.v3 ? undefined : {
|
|
345
|
+
"exited": this.hideActionSheet
|
|
346
|
+
},
|
|
347
|
+
direction: 'up',
|
|
307
348
|
attrs: this.v3 ? undefined : {
|
|
308
|
-
id: 'test',
|
|
309
349
|
direction: 'up',
|
|
310
350
|
componentChildStyle: animationStyles || this.bottomPosition,
|
|
311
351
|
transitionEnterDuration: animationDuration,
|
|
312
352
|
transitionExitDuration: animationDuration,
|
|
313
353
|
appear: expand
|
|
314
354
|
},
|
|
315
|
-
onExited: this.hideActionSheet,
|
|
316
|
-
on: this.v3 ? undefined : {
|
|
317
|
-
"exited": this.hideActionSheet
|
|
318
|
-
},
|
|
319
|
-
direction: 'up',
|
|
320
355
|
componentChildStyle: animationStyles || this.bottomPosition,
|
|
321
356
|
transitionEnterDuration: animationDuration,
|
|
322
357
|
transitionExitDuration: animationDuration,
|
|
@@ -3,12 +3,18 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
|
+
import { getDefaultSlots, classNames } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
var ActionSheetContentVue2 = {
|
|
11
11
|
name: 'KendoActionSheetContent',
|
|
12
|
+
props: {
|
|
13
|
+
contentClassName: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: undefined
|
|
16
|
+
}
|
|
17
|
+
},
|
|
12
18
|
// @ts-ignore
|
|
13
19
|
setup: !isV3 ? undefined : function () {
|
|
14
20
|
var v3 = !!isV3;
|
|
@@ -19,8 +25,9 @@ var ActionSheetContentVue2 = {
|
|
|
19
25
|
render: function render(createElement) {
|
|
20
26
|
var h = gh || createElement;
|
|
21
27
|
var defaultSlot = getDefaultSlots(this);
|
|
28
|
+
var contentClassName = this.$props.contentClassName;
|
|
22
29
|
return h("div", {
|
|
23
|
-
"class": 'k-actionsheet-content'
|
|
30
|
+
"class": classNames('k-actionsheet-content', contentClassName)
|
|
24
31
|
}, [defaultSlot]);
|
|
25
32
|
}
|
|
26
33
|
};
|
|
@@ -3,12 +3,18 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
|
+
import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
var ActionSheetFooterVue2 = {
|
|
11
11
|
name: 'KendoActionSheetFooter',
|
|
12
|
+
props: {
|
|
13
|
+
footerClassName: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: undefined
|
|
16
|
+
}
|
|
17
|
+
},
|
|
12
18
|
// @ts-ignore
|
|
13
19
|
setup: !isV3 ? undefined : function () {
|
|
14
20
|
var v3 = !!isV3;
|
|
@@ -19,8 +25,9 @@ var ActionSheetFooterVue2 = {
|
|
|
19
25
|
render: function render(createElement) {
|
|
20
26
|
var h = gh || createElement;
|
|
21
27
|
var defaultSlot = getDefaultSlots(this);
|
|
28
|
+
var footerClassName = this.$props.footerClassName;
|
|
22
29
|
return h("div", {
|
|
23
|
-
"class": 'k-actionsheet-footer'
|
|
30
|
+
"class": classNames('k-actionsheet-footer', footerClassName)
|
|
24
31
|
}, [defaultSlot]);
|
|
25
32
|
}
|
|
26
33
|
};
|
|
@@ -3,12 +3,22 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
|
+
import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
var ActionSheetHeaderVue2 = {
|
|
11
11
|
name: 'KendoActionSheetHeader',
|
|
12
|
+
props: {
|
|
13
|
+
headerClassName: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: undefined
|
|
16
|
+
},
|
|
17
|
+
headerStyle: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: undefined
|
|
20
|
+
}
|
|
21
|
+
},
|
|
12
22
|
// @ts-ignore
|
|
13
23
|
setup: !isV3 ? undefined : function () {
|
|
14
24
|
var v3 = !!isV3;
|
|
@@ -19,8 +29,12 @@ var ActionSheetHeaderVue2 = {
|
|
|
19
29
|
render: function render(createElement) {
|
|
20
30
|
var h = gh || createElement;
|
|
21
31
|
var defaultSlot = getDefaultSlots(this);
|
|
32
|
+
var _a = this.$props,
|
|
33
|
+
headerStyle = _a.headerStyle,
|
|
34
|
+
headerClassName = _a.headerClassName;
|
|
22
35
|
return h("div", {
|
|
23
|
-
|
|
36
|
+
style: headerStyle,
|
|
37
|
+
"class": classNames('k-actionsheet-titlebar', headerClassName)
|
|
24
38
|
}, [defaultSlot]);
|
|
25
39
|
}
|
|
26
40
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-layout',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1695898148,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -62,6 +62,22 @@ export interface ActionSheetProps {
|
|
|
62
62
|
* The CSS classes that will be rendered on the inner ActionSheet element.
|
|
63
63
|
*/
|
|
64
64
|
className?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The CSS classes that will be rendered on the DOM element that wraps the header section of the ActionSheet element.
|
|
67
|
+
*/
|
|
68
|
+
headerClassName?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The CSS classes that will be rendered on the DOM element that wraps the footer section of the ActionSheet element.
|
|
71
|
+
*/
|
|
72
|
+
footerClassName?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The CSS classes that will be rendered on the DOM element that wraps the content section of the ActionSheet element.
|
|
75
|
+
*/
|
|
76
|
+
contentClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The custom Styles that will be applied on the DOM element that wraps the header section of the ActionSheet element.
|
|
79
|
+
*/
|
|
80
|
+
headerStyle?: string;
|
|
65
81
|
/**
|
|
66
82
|
* Sets the header content of the ActionSheet either as string that is pointing to a slot template of as render function.
|
|
67
83
|
*/
|
|
@@ -41,6 +41,22 @@ var ActionSheetVue2 = {
|
|
|
41
41
|
subTitle: String,
|
|
42
42
|
title: String,
|
|
43
43
|
className: String,
|
|
44
|
+
headerClassName: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: undefined
|
|
47
|
+
},
|
|
48
|
+
contentClassName: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: undefined
|
|
51
|
+
},
|
|
52
|
+
headerStyle: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: undefined
|
|
55
|
+
},
|
|
56
|
+
footerClassName: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: undefined
|
|
59
|
+
},
|
|
44
60
|
header: [String, Object, Function],
|
|
45
61
|
content: [String, Object, Function],
|
|
46
62
|
footer: [String, Object, Function],
|
|
@@ -71,7 +87,6 @@ var ActionSheetVue2 = {
|
|
|
71
87
|
}
|
|
72
88
|
},
|
|
73
89
|
updated: function updated() {
|
|
74
|
-
var _this = this;
|
|
75
90
|
this.element = getRef(this, 'actionSheet');
|
|
76
91
|
if (this.$props.expand && !this.show) {
|
|
77
92
|
this.show = true;
|
|
@@ -82,8 +97,9 @@ var ActionSheetVue2 = {
|
|
|
82
97
|
}
|
|
83
98
|
if (this.element) {
|
|
84
99
|
if (this.$props.navigatable) {
|
|
100
|
+
var navigatableElements_1 = this.$props.navigatableElements;
|
|
85
101
|
var innerElements = ['.k-actionsheet-footer', '.k-actionsheet-content', '.k-actionsheet-titlebar'].map(function (selector) {
|
|
86
|
-
return FOCUSABLE_ELEMENTS.concat(
|
|
102
|
+
return FOCUSABLE_ELEMENTS.concat(navigatableElements_1).map(function (focusableSelector) {
|
|
87
103
|
return "".concat(selector, " ").concat(focusableSelector);
|
|
88
104
|
});
|
|
89
105
|
});
|
|
@@ -101,7 +117,10 @@ var ActionSheetVue2 = {
|
|
|
101
117
|
}
|
|
102
118
|
}
|
|
103
119
|
});
|
|
104
|
-
this.navigation.focusElement(this.
|
|
120
|
+
navigatableElements_1.length !== 0 ? this.navigation.focusElement(this.element.querySelector(navigatableElements_1[0]), null)
|
|
121
|
+
// The above line focuses the first element of the $props.navigatableElements
|
|
122
|
+
// if the props is defined. Otherwise, the released logic will be executed
|
|
123
|
+
: this.navigation.focusElement(this.navigation.first, null);
|
|
105
124
|
}
|
|
106
125
|
}
|
|
107
126
|
},
|
|
@@ -145,7 +164,10 @@ var ActionSheetVue2 = {
|
|
|
145
164
|
expand = _a.expand,
|
|
146
165
|
tabIndex = _a.tabIndex,
|
|
147
166
|
className = _a.className,
|
|
148
|
-
animationDuration = _a.animationDuration
|
|
167
|
+
animationDuration = _a.animationDuration,
|
|
168
|
+
headerClassName = _a.headerClassName,
|
|
169
|
+
contentClassName = _a.contentClassName,
|
|
170
|
+
footerClassName = _a.footerClassName;
|
|
149
171
|
var header = templateRendering.call(this, this.$props.header, getListeners.call(this));
|
|
150
172
|
var headerContent = getTemplate.call(this, {
|
|
151
173
|
h: h,
|
|
@@ -185,7 +207,12 @@ var ActionSheetVue2 = {
|
|
|
185
207
|
}
|
|
186
208
|
}, [this.$props.header && !title && !subTitle &&
|
|
187
209
|
// @ts-ignore function children
|
|
188
|
-
h(ActionSheetHeader,
|
|
210
|
+
h(ActionSheetHeader, {
|
|
211
|
+
headerClassName: headerClassName,
|
|
212
|
+
attrs: this.v3 ? undefined : {
|
|
213
|
+
headerClassName: headerClassName
|
|
214
|
+
}
|
|
215
|
+
}, this.v3 ? function () {
|
|
189
216
|
return [headerContent];
|
|
190
217
|
} : [headerContent]), (title || subTitle) && h("div", {
|
|
191
218
|
"class": "k-actionsheet-titlebar k-text-center"
|
|
@@ -285,11 +312,21 @@ var ActionSheetVue2 = {
|
|
|
285
312
|
});
|
|
286
313
|
}, this)])]) :
|
|
287
314
|
// @ts-ignore function children
|
|
288
|
-
h(ActionSheetContent,
|
|
315
|
+
h(ActionSheetContent, {
|
|
316
|
+
contentClassName: contentClassName,
|
|
317
|
+
attrs: this.v3 ? undefined : {
|
|
318
|
+
contentClassName: contentClassName
|
|
319
|
+
}
|
|
320
|
+
}, this.v3 ? function () {
|
|
289
321
|
return [contentTemplate];
|
|
290
322
|
} : [contentTemplate]), this.$props.footer &&
|
|
291
323
|
// @ts-ignore function children
|
|
292
|
-
h(ActionSheetFooter,
|
|
324
|
+
h(ActionSheetFooter, {
|
|
325
|
+
footerClassName: footerClassName,
|
|
326
|
+
attrs: this.v3 ? undefined : {
|
|
327
|
+
footerClassName: footerClassName
|
|
328
|
+
}
|
|
329
|
+
}, this.v3 ? function () {
|
|
293
330
|
return [footerContent];
|
|
294
331
|
} : [footerContent])]);
|
|
295
332
|
return this.show && h("div", {
|
|
@@ -303,20 +340,18 @@ var ActionSheetVue2 = {
|
|
|
303
340
|
}), animation ?
|
|
304
341
|
// @ts-ignore function children
|
|
305
342
|
h(Slide, {
|
|
306
|
-
|
|
343
|
+
onExited: this.hideActionSheet,
|
|
344
|
+
on: this.v3 ? undefined : {
|
|
345
|
+
"exited": this.hideActionSheet
|
|
346
|
+
},
|
|
347
|
+
direction: 'up',
|
|
307
348
|
attrs: this.v3 ? undefined : {
|
|
308
|
-
id: 'test',
|
|
309
349
|
direction: 'up',
|
|
310
350
|
componentChildStyle: animationStyles || this.bottomPosition,
|
|
311
351
|
transitionEnterDuration: animationDuration,
|
|
312
352
|
transitionExitDuration: animationDuration,
|
|
313
353
|
appear: expand
|
|
314
354
|
},
|
|
315
|
-
onExited: this.hideActionSheet,
|
|
316
|
-
on: this.v3 ? undefined : {
|
|
317
|
-
"exited": this.hideActionSheet
|
|
318
|
-
},
|
|
319
|
-
direction: 'up',
|
|
320
355
|
componentChildStyle: animationStyles || this.bottomPosition,
|
|
321
356
|
transitionEnterDuration: animationDuration,
|
|
322
357
|
transitionExitDuration: animationDuration,
|
|
@@ -3,12 +3,18 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
|
+
import { getDefaultSlots, classNames } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
var ActionSheetContentVue2 = {
|
|
11
11
|
name: 'KendoActionSheetContent',
|
|
12
|
+
props: {
|
|
13
|
+
contentClassName: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: undefined
|
|
16
|
+
}
|
|
17
|
+
},
|
|
12
18
|
// @ts-ignore
|
|
13
19
|
setup: !isV3 ? undefined : function () {
|
|
14
20
|
var v3 = !!isV3;
|
|
@@ -19,8 +25,9 @@ var ActionSheetContentVue2 = {
|
|
|
19
25
|
render: function render(createElement) {
|
|
20
26
|
var h = gh || createElement;
|
|
21
27
|
var defaultSlot = getDefaultSlots(this);
|
|
28
|
+
var contentClassName = this.$props.contentClassName;
|
|
22
29
|
return h("div", {
|
|
23
|
-
"class": 'k-actionsheet-content'
|
|
30
|
+
"class": classNames('k-actionsheet-content', contentClassName)
|
|
24
31
|
}, [defaultSlot]);
|
|
25
32
|
}
|
|
26
33
|
};
|
|
@@ -3,12 +3,18 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
|
+
import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
var ActionSheetFooterVue2 = {
|
|
11
11
|
name: 'KendoActionSheetFooter',
|
|
12
|
+
props: {
|
|
13
|
+
footerClassName: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: undefined
|
|
16
|
+
}
|
|
17
|
+
},
|
|
12
18
|
// @ts-ignore
|
|
13
19
|
setup: !isV3 ? undefined : function () {
|
|
14
20
|
var v3 = !!isV3;
|
|
@@ -19,8 +25,9 @@ var ActionSheetFooterVue2 = {
|
|
|
19
25
|
render: function render(createElement) {
|
|
20
26
|
var h = gh || createElement;
|
|
21
27
|
var defaultSlot = getDefaultSlots(this);
|
|
28
|
+
var footerClassName = this.$props.footerClassName;
|
|
22
29
|
return h("div", {
|
|
23
|
-
"class": 'k-actionsheet-footer'
|
|
30
|
+
"class": classNames('k-actionsheet-footer', footerClassName)
|
|
24
31
|
}, [defaultSlot]);
|
|
25
32
|
}
|
|
26
33
|
};
|
|
@@ -3,12 +3,22 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
|
+
import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
var ActionSheetHeaderVue2 = {
|
|
11
11
|
name: 'KendoActionSheetHeader',
|
|
12
|
+
props: {
|
|
13
|
+
headerClassName: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: undefined
|
|
16
|
+
},
|
|
17
|
+
headerStyle: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: undefined
|
|
20
|
+
}
|
|
21
|
+
},
|
|
12
22
|
// @ts-ignore
|
|
13
23
|
setup: !isV3 ? undefined : function () {
|
|
14
24
|
var v3 = !!isV3;
|
|
@@ -19,8 +29,12 @@ var ActionSheetHeaderVue2 = {
|
|
|
19
29
|
render: function render(createElement) {
|
|
20
30
|
var h = gh || createElement;
|
|
21
31
|
var defaultSlot = getDefaultSlots(this);
|
|
32
|
+
var _a = this.$props,
|
|
33
|
+
headerStyle = _a.headerStyle,
|
|
34
|
+
headerClassName = _a.headerClassName;
|
|
22
35
|
return h("div", {
|
|
23
|
-
|
|
36
|
+
style: headerStyle,
|
|
37
|
+
"class": classNames('k-actionsheet-titlebar', headerClassName)
|
|
24
38
|
}, [defaultSlot]);
|
|
25
39
|
}
|
|
26
40
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-layout',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1695898148,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -62,6 +62,22 @@ export interface ActionSheetProps {
|
|
|
62
62
|
* The CSS classes that will be rendered on the inner ActionSheet element.
|
|
63
63
|
*/
|
|
64
64
|
className?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The CSS classes that will be rendered on the DOM element that wraps the header section of the ActionSheet element.
|
|
67
|
+
*/
|
|
68
|
+
headerClassName?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The CSS classes that will be rendered on the DOM element that wraps the footer section of the ActionSheet element.
|
|
71
|
+
*/
|
|
72
|
+
footerClassName?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The CSS classes that will be rendered on the DOM element that wraps the content section of the ActionSheet element.
|
|
75
|
+
*/
|
|
76
|
+
contentClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The custom Styles that will be applied on the DOM element that wraps the header section of the ActionSheet element.
|
|
79
|
+
*/
|
|
80
|
+
headerStyle?: string;
|
|
65
81
|
/**
|
|
66
82
|
* Sets the header content of the ActionSheet either as string that is pointing to a slot template of as render function.
|
|
67
83
|
*/
|
|
@@ -47,6 +47,22 @@ var ActionSheetVue2 = {
|
|
|
47
47
|
subTitle: String,
|
|
48
48
|
title: String,
|
|
49
49
|
className: String,
|
|
50
|
+
headerClassName: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: undefined
|
|
53
|
+
},
|
|
54
|
+
contentClassName: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: undefined
|
|
57
|
+
},
|
|
58
|
+
headerStyle: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: undefined
|
|
61
|
+
},
|
|
62
|
+
footerClassName: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: undefined
|
|
65
|
+
},
|
|
50
66
|
header: [String, Object, Function],
|
|
51
67
|
content: [String, Object, Function],
|
|
52
68
|
footer: [String, Object, Function],
|
|
@@ -77,7 +93,6 @@ var ActionSheetVue2 = {
|
|
|
77
93
|
}
|
|
78
94
|
},
|
|
79
95
|
updated: function updated() {
|
|
80
|
-
var _this = this;
|
|
81
96
|
this.element = (0, kendo_vue_common_1.getRef)(this, 'actionSheet');
|
|
82
97
|
if (this.$props.expand && !this.show) {
|
|
83
98
|
this.show = true;
|
|
@@ -88,8 +103,9 @@ var ActionSheetVue2 = {
|
|
|
88
103
|
}
|
|
89
104
|
if (this.element) {
|
|
90
105
|
if (this.$props.navigatable) {
|
|
106
|
+
var navigatableElements_1 = this.$props.navigatableElements;
|
|
91
107
|
var innerElements = ['.k-actionsheet-footer', '.k-actionsheet-content', '.k-actionsheet-titlebar'].map(function (selector) {
|
|
92
|
-
return kendo_vue_common_1.FOCUSABLE_ELEMENTS.concat(
|
|
108
|
+
return kendo_vue_common_1.FOCUSABLE_ELEMENTS.concat(navigatableElements_1).map(function (focusableSelector) {
|
|
93
109
|
return "".concat(selector, " ").concat(focusableSelector);
|
|
94
110
|
});
|
|
95
111
|
});
|
|
@@ -107,7 +123,10 @@ var ActionSheetVue2 = {
|
|
|
107
123
|
}
|
|
108
124
|
}
|
|
109
125
|
});
|
|
110
|
-
this.navigation.focusElement(this.
|
|
126
|
+
navigatableElements_1.length !== 0 ? this.navigation.focusElement(this.element.querySelector(navigatableElements_1[0]), null)
|
|
127
|
+
// The above line focuses the first element of the $props.navigatableElements
|
|
128
|
+
// if the props is defined. Otherwise, the released logic will be executed
|
|
129
|
+
: this.navigation.focusElement(this.navigation.first, null);
|
|
111
130
|
}
|
|
112
131
|
}
|
|
113
132
|
},
|
|
@@ -151,7 +170,10 @@ var ActionSheetVue2 = {
|
|
|
151
170
|
expand = _a.expand,
|
|
152
171
|
tabIndex = _a.tabIndex,
|
|
153
172
|
className = _a.className,
|
|
154
|
-
animationDuration = _a.animationDuration
|
|
173
|
+
animationDuration = _a.animationDuration,
|
|
174
|
+
headerClassName = _a.headerClassName,
|
|
175
|
+
contentClassName = _a.contentClassName,
|
|
176
|
+
footerClassName = _a.footerClassName;
|
|
155
177
|
var header = kendo_vue_common_1.templateRendering.call(this, this.$props.header, kendo_vue_common_1.getListeners.call(this));
|
|
156
178
|
var headerContent = kendo_vue_common_1.getTemplate.call(this, {
|
|
157
179
|
h: h,
|
|
@@ -191,7 +213,12 @@ var ActionSheetVue2 = {
|
|
|
191
213
|
}
|
|
192
214
|
}, [this.$props.header && !title && !subTitle &&
|
|
193
215
|
// @ts-ignore function children
|
|
194
|
-
h(ActionSheetHeader_1.ActionSheetHeader,
|
|
216
|
+
h(ActionSheetHeader_1.ActionSheetHeader, {
|
|
217
|
+
headerClassName: headerClassName,
|
|
218
|
+
attrs: this.v3 ? undefined : {
|
|
219
|
+
headerClassName: headerClassName
|
|
220
|
+
}
|
|
221
|
+
}, this.v3 ? function () {
|
|
195
222
|
return [headerContent];
|
|
196
223
|
} : [headerContent]), (title || subTitle) && h("div", {
|
|
197
224
|
"class": "k-actionsheet-titlebar k-text-center"
|
|
@@ -291,11 +318,21 @@ var ActionSheetVue2 = {
|
|
|
291
318
|
});
|
|
292
319
|
}, this)])]) :
|
|
293
320
|
// @ts-ignore function children
|
|
294
|
-
h(ActionSheetContent_1.ActionSheetContent,
|
|
321
|
+
h(ActionSheetContent_1.ActionSheetContent, {
|
|
322
|
+
contentClassName: contentClassName,
|
|
323
|
+
attrs: this.v3 ? undefined : {
|
|
324
|
+
contentClassName: contentClassName
|
|
325
|
+
}
|
|
326
|
+
}, this.v3 ? function () {
|
|
295
327
|
return [contentTemplate];
|
|
296
328
|
} : [contentTemplate]), this.$props.footer &&
|
|
297
329
|
// @ts-ignore function children
|
|
298
|
-
h(ActionSheetFooter_1.ActionSheetFooter,
|
|
330
|
+
h(ActionSheetFooter_1.ActionSheetFooter, {
|
|
331
|
+
footerClassName: footerClassName,
|
|
332
|
+
attrs: this.v3 ? undefined : {
|
|
333
|
+
footerClassName: footerClassName
|
|
334
|
+
}
|
|
335
|
+
}, this.v3 ? function () {
|
|
299
336
|
return [footerContent];
|
|
300
337
|
} : [footerContent])]);
|
|
301
338
|
return this.show && h("div", {
|
|
@@ -309,20 +346,18 @@ var ActionSheetVue2 = {
|
|
|
309
346
|
}), animation ?
|
|
310
347
|
// @ts-ignore function children
|
|
311
348
|
h(kendo_vue_animation_1.Slide, {
|
|
312
|
-
|
|
349
|
+
onExited: this.hideActionSheet,
|
|
350
|
+
on: this.v3 ? undefined : {
|
|
351
|
+
"exited": this.hideActionSheet
|
|
352
|
+
},
|
|
353
|
+
direction: 'up',
|
|
313
354
|
attrs: this.v3 ? undefined : {
|
|
314
|
-
id: 'test',
|
|
315
355
|
direction: 'up',
|
|
316
356
|
componentChildStyle: animationStyles || this.bottomPosition,
|
|
317
357
|
transitionEnterDuration: animationDuration,
|
|
318
358
|
transitionExitDuration: animationDuration,
|
|
319
359
|
appear: expand
|
|
320
360
|
},
|
|
321
|
-
onExited: this.hideActionSheet,
|
|
322
|
-
on: this.v3 ? undefined : {
|
|
323
|
-
"exited": this.hideActionSheet
|
|
324
|
-
},
|
|
325
|
-
direction: 'up',
|
|
326
361
|
componentChildStyle: animationStyles || this.bottomPosition,
|
|
327
362
|
transitionEnterDuration: animationDuration,
|
|
328
363
|
transitionExitDuration: animationDuration,
|