@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.
Files changed (50) hide show
  1. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  2. package/dist/es/actionsheet/ActionSheet.d.ts +124 -0
  3. package/dist/es/actionsheet/ActionSheet.js +387 -0
  4. package/dist/es/actionsheet/ActionSheetContent.d.ts +41 -0
  5. package/dist/es/actionsheet/ActionSheetContent.js +31 -0
  6. package/dist/es/actionsheet/ActionSheetFooter.d.ts +41 -0
  7. package/dist/es/actionsheet/ActionSheetFooter.js +31 -0
  8. package/dist/es/actionsheet/ActionSheetHeader.d.ts +41 -0
  9. package/dist/es/actionsheet/ActionSheetHeader.js +31 -0
  10. package/dist/es/actionsheet/ActionSheetItem.d.ts +42 -0
  11. package/dist/es/actionsheet/ActionSheetItem.js +111 -0
  12. package/dist/es/actionsheet/interfaces/ActionSheetItemProps.d.ts +62 -0
  13. package/dist/es/actionsheet/interfaces/ActionSheetItemProps.js +1 -0
  14. package/dist/es/drawer/DrawerNavigation.js +2 -0
  15. package/dist/es/main.d.ts +6 -0
  16. package/dist/es/main.js +6 -0
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/esm/actionsheet/ActionSheet.d.ts +124 -0
  19. package/dist/esm/actionsheet/ActionSheet.js +387 -0
  20. package/dist/esm/actionsheet/ActionSheetContent.d.ts +41 -0
  21. package/dist/esm/actionsheet/ActionSheetContent.js +31 -0
  22. package/dist/esm/actionsheet/ActionSheetFooter.d.ts +41 -0
  23. package/dist/esm/actionsheet/ActionSheetFooter.js +31 -0
  24. package/dist/esm/actionsheet/ActionSheetHeader.d.ts +41 -0
  25. package/dist/esm/actionsheet/ActionSheetHeader.js +31 -0
  26. package/dist/esm/actionsheet/ActionSheetItem.d.ts +42 -0
  27. package/dist/esm/actionsheet/ActionSheetItem.js +111 -0
  28. package/dist/esm/actionsheet/interfaces/ActionSheetItemProps.d.ts +62 -0
  29. package/dist/esm/actionsheet/interfaces/ActionSheetItemProps.js +1 -0
  30. package/dist/esm/drawer/DrawerNavigation.js +2 -0
  31. package/dist/esm/main.d.ts +6 -0
  32. package/dist/esm/main.js +6 -0
  33. package/dist/esm/package-metadata.js +1 -1
  34. package/dist/npm/actionsheet/ActionSheet.d.ts +124 -0
  35. package/dist/npm/actionsheet/ActionSheet.js +394 -0
  36. package/dist/npm/actionsheet/ActionSheetContent.d.ts +41 -0
  37. package/dist/npm/actionsheet/ActionSheetContent.js +38 -0
  38. package/dist/npm/actionsheet/ActionSheetFooter.d.ts +41 -0
  39. package/dist/npm/actionsheet/ActionSheetFooter.js +38 -0
  40. package/dist/npm/actionsheet/ActionSheetHeader.d.ts +41 -0
  41. package/dist/npm/actionsheet/ActionSheetHeader.js +38 -0
  42. package/dist/npm/actionsheet/ActionSheetItem.d.ts +42 -0
  43. package/dist/npm/actionsheet/ActionSheetItem.js +118 -0
  44. package/dist/npm/actionsheet/interfaces/ActionSheetItemProps.d.ts +62 -0
  45. package/dist/npm/actionsheet/interfaces/ActionSheetItemProps.js +5 -0
  46. package/dist/npm/drawer/DrawerNavigation.js +2 -0
  47. package/dist/npm/main.d.ts +6 -0
  48. package/dist/npm/main.js +6 -0
  49. package/dist/npm/package-metadata.js +1 -1
  50. package/package.json +13 -13
@@ -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 };
@@ -0,0 +1,111 @@
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 { Icon, getTemplate } from '@progress/kendo-vue-common';
7
+ /**
8
+ * @hidden
9
+ */
10
+ var ActionSheetItemVue2 = {
11
+ name: 'KendoActionSheetItem',
12
+ props: {
13
+ description: String,
14
+ disabled: Boolean,
15
+ group: {
16
+ type: String,
17
+ validator: function validator(value) {
18
+ return ['top', 'bottom', undefined].includes(value);
19
+ }
20
+ },
21
+ item: Object,
22
+ icon: String,
23
+ svgIcon: Object,
24
+ iconColor: String,
25
+ iconSize: String,
26
+ content: [String, Function, Object],
27
+ title: String
28
+ },
29
+ computed: {
30
+ wrapperClass: function wrapperClass() {
31
+ return {
32
+ 'k-actionsheet-item': true,
33
+ 'k-cursor-pointer': true,
34
+ 'k-disabled': this.$props.disabled
35
+ };
36
+ }
37
+ },
38
+ // @ts-ignore
39
+ setup: !isV3 ? undefined : function () {
40
+ var v3 = !!isV3;
41
+ return {
42
+ v3: v3
43
+ };
44
+ },
45
+ render: function render(createElement) {
46
+ var h = gh || createElement;
47
+ var itemContent = getTemplate.call(this, {
48
+ h: h,
49
+ template: this.$props.content,
50
+ defaultRendering: null,
51
+ additionalProps: {
52
+ item: this.$props.item
53
+ }
54
+ });
55
+ return h("span", {
56
+ tabIndex: this.$props.tabIndex,
57
+ attrs: this.v3 ? undefined : {
58
+ tabIndex: this.$props.tabIndex,
59
+ role: "button",
60
+ "aria-disabled": this.$props.disabled
61
+ },
62
+ "class": this.wrapperClass,
63
+ role: "button",
64
+ "aria-disabled": this.$props.disabled,
65
+ onClick: this.onClick,
66
+ on: this.v3 ? undefined : {
67
+ "click": this.onClick
68
+ }
69
+ }, [h("span", {
70
+ "class": "k-actionsheet-action"
71
+ }, [this.$props.content ? itemContent : [(this.$props.icon || this.$props.svgIcon) && h("span", {
72
+ className: "k-icon-wrap",
73
+ attrs: this.v3 ? undefined : {
74
+ className: "k-icon-wrap"
75
+ }
76
+ }, [h(Icon, {
77
+ name: this.$props.icon,
78
+ attrs: this.v3 ? undefined : {
79
+ name: this.$props.icon,
80
+ icon: this.$props.svgIcon,
81
+ size: this.iconSize
82
+ },
83
+ icon: this.$props.svgIcon,
84
+ "class": 'k-actionsheet-item-icon',
85
+ size: this.iconSize,
86
+ style: {
87
+ color: this.iconColor
88
+ }
89
+ })]), (this.$props.title || this.$props.description) && h("span", {
90
+ "class": "k-actionsheet-item-text"
91
+ }, [this.$props.title && h("span", {
92
+ "class": "k-actionsheet-item-title"
93
+ }, [this.$props.title]), this.$props.description && h("span", {
94
+ "class": "k-actionsheet-item-description"
95
+ }, [this.$props.description])])]])]);
96
+ },
97
+ methods: {
98
+ onClick: function onClick(event) {
99
+ this.$emit('click', {
100
+ syntheticEvent: event,
101
+ item: this.$props.item,
102
+ title: this.$props.title
103
+ });
104
+ }
105
+ }
106
+ };
107
+ /**
108
+ * @hidden
109
+ */
110
+ var ActionSheetItem = ActionSheetItemVue2;
111
+ export { ActionSheetItem, ActionSheetItemVue2 };
@@ -0,0 +1,62 @@
1
+ import { SVGIcon } from '@progress/kendo-svg-icons';
2
+ /**
3
+ * Represents the props of the Kendo UI for Vue ActionSheetItem.
4
+ */
5
+ export interface ActionSheetItemProps {
6
+ /**
7
+ * Specifies additional text rendered under the item's title.
8
+ */
9
+ description?: string;
10
+ /**
11
+ * Specifies if the ActionSheet item is initially disabled.
12
+ */
13
+ disabled?: boolean;
14
+ /**
15
+ * Defines the group of the item. Items can be segregated in two groups - `top` and `bottom`.
16
+ * Each specifying whether the ActionSheet item will be rendered over the separator or under it.
17
+ */
18
+ group?: 'top' | 'bottom' | string;
19
+ /**
20
+ * Defines the icon rendered inside the ActionSheet item.
21
+ */
22
+ icon?: string;
23
+ /**
24
+ * Defines an SVGIcon to be rendered inside the ActionSheet item.
25
+ */
26
+ svgIcon?: SVGIcon;
27
+ /**
28
+ * Defines an size of the icon or SVGIcon that is rendered inside the ActionSheet item.
29
+ */
30
+ iconSize?: string;
31
+ /**
32
+ * Defines the color of the icon or SVGIcon that is rendered inside the ActionSheet item.
33
+ */
34
+ iconColor?: string;
35
+ /**
36
+ * Specifies the text content of the ActionSheet item.
37
+ */
38
+ title?: string;
39
+ /**
40
+ * @hidden
41
+ */
42
+ item?: object;
43
+ /**
44
+ * Sets the content of the ActionSheetItem either as string that is pointing to a slot template of as render function.
45
+ */
46
+ content?: string | Function;
47
+ /**
48
+ * @hidden
49
+ */
50
+ onClick?: (event: {
51
+ event: any;
52
+ title?: string;
53
+ }) => void;
54
+ /**
55
+ * @hidden
56
+ */
57
+ onKeydown?: (event: any, title: string | undefined, id: number | undefined) => void;
58
+ /**
59
+ * @hidden
60
+ */
61
+ id?: number;
62
+ }
@@ -147,6 +147,7 @@ var DrawerNavigationVue2 = {
147
147
  index: index,
148
148
  text: element.text,
149
149
  icon: element.icon,
150
+ svgIcon: element.svgIcon,
150
151
  separator: element.separator,
151
152
  selected: element.selected,
152
153
  targetItem: element.targetItem
@@ -157,6 +158,7 @@ var DrawerNavigationVue2 = {
157
158
  },
158
159
  text: element.text,
159
160
  icon: element.icon,
161
+ svgIcon: element.svgIcon,
160
162
  separator: element.separator,
161
163
  selected: element.selected,
162
164
  targetItem: element.targetItem
package/dist/es/main.d.ts CHANGED
@@ -67,5 +67,11 @@ export * from './gridlayout/interfaces/GridLayoutProps';
67
67
  export * from './gridlayout/interfaces/GridLayoutItemProps';
68
68
  export * from './gridlayout/interfaces/GridLayoutRowProps';
69
69
  export * from './gridlayout/interfaces/GridLayoutColumnProps';
70
+ export * from './actionsheet/ActionSheet';
71
+ export * from './actionsheet/ActionSheetItem';
72
+ export * from './actionsheet/interfaces/ActionSheetItemProps';
73
+ export * from './actionsheet/ActionSheetHeader';
74
+ export * from './actionsheet/ActionSheetContent';
75
+ export * from './actionsheet/ActionSheetFooter';
70
76
  export * from './stacklayout/StackLayout';
71
77
  export * from './stacklayout/StackLayoutProps';
package/dist/es/main.js CHANGED
@@ -67,5 +67,11 @@ export * from './gridlayout/interfaces/GridLayoutProps';
67
67
  export * from './gridlayout/interfaces/GridLayoutItemProps';
68
68
  export * from './gridlayout/interfaces/GridLayoutRowProps';
69
69
  export * from './gridlayout/interfaces/GridLayoutColumnProps';
70
+ export * from './actionsheet/ActionSheet';
71
+ export * from './actionsheet/ActionSheetItem';
72
+ export * from './actionsheet/interfaces/ActionSheetItemProps';
73
+ export * from './actionsheet/ActionSheetHeader';
74
+ export * from './actionsheet/ActionSheetContent';
75
+ export * from './actionsheet/ActionSheetFooter';
70
76
  export * from './stacklayout/StackLayout';
71
77
  export * from './stacklayout/StackLayoutProps';
@@ -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: 1686052468,
8
+ publishDate: 1689074785,
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
  };
@@ -0,0 +1,124 @@
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 { Navigation } from '@progress/kendo-vue-common';
7
+ import { ActionSheetItemProps } from './interfaces/ActionSheetItemProps';
8
+ /**
9
+ * The props of the ActionSheet component.
10
+ */
11
+ export interface ActionSheetProps {
12
+ /**
13
+ * The collection of items that will be rendered in the ActionSheet.
14
+ */
15
+ items?: ActionSheetItemProps[];
16
+ /**
17
+ * Specifies the text that is rendered under the title.
18
+ */
19
+ subTitle?: string;
20
+ /**
21
+ * Specifies the text that is rendered as title.
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Fires when the modal overlay is clicked.
26
+ */
27
+ onClose?: (event: any) => void;
28
+ /**
29
+ * Fires when an ActionSheet item is clicked.
30
+ */
31
+ onItemselect?: (event: {
32
+ syntheticEvent: any;
33
+ title?: string;
34
+ item?: any;
35
+ }) => void;
36
+ /**
37
+ * Specifies the `tabIndex` of the ActionSheet.
38
+ */
39
+ tabIndex?: number;
40
+ /**
41
+ * Specifies if the ActionSheet can be navigatable with keyboard.
42
+ * Defaults to `true`.
43
+ */
44
+ navigatable?: boolean;
45
+ /**
46
+ * Specifies the selectors of the navigatable elements inside the templates of the ActionSheet.
47
+ */
48
+ navigatableElements?: string[];
49
+ /**
50
+ * Controls the popup animation. By default, the open and close animations are disabled.
51
+ */
52
+ animation?: boolean;
53
+ /**
54
+ * @hidden
55
+ */
56
+ animationStyles?: any;
57
+ /**
58
+ * Specifies the duration of the transition for the entering and closing Animation. Defaults to `300ms`.
59
+ */
60
+ animationDuration?: number;
61
+ /**
62
+ * The CSS classes that will be rendered on the inner ActionSheet element.
63
+ */
64
+ className?: string;
65
+ /**
66
+ * Sets the header content of the ActionSheet either as string that is pointing to a slot template of as render function.
67
+ */
68
+ header?: string | Function;
69
+ /**
70
+ * Sets the content content of the ActionSheet either as string that is pointing to a slot template of as render function.
71
+ */
72
+ content?: string | Function;
73
+ /**
74
+ * Sets the footer content of the ActionSheet either as string that is pointing to a slot template of as render function.
75
+ */
76
+ footer?: string | Function;
77
+ /**
78
+ * Sets the item content of the ActionSheet either as string that is pointing to a slot template of as render function.
79
+ */
80
+ item?: string | Function;
81
+ /**
82
+ * Specifies the state of the ActionSheet.
83
+ */
84
+ expand?: boolean;
85
+ }
86
+ /**
87
+ * @hidden
88
+ */
89
+ export interface ActionSheetState {
90
+ show?: boolean;
91
+ slide?: boolean;
92
+ }
93
+ /**
94
+ * @hidden
95
+ */
96
+ export interface ActionSheetComputed {
97
+ [key: string]: any;
98
+ }
99
+ /**
100
+ * @hidden
101
+ */
102
+ export interface ActionSheetMethods {
103
+ [key: string]: any;
104
+ }
105
+ /**
106
+ * @hidden
107
+ */
108
+ export interface ActionSheetData {
109
+ navigation?: Navigation;
110
+ }
111
+ /**
112
+ * @hidden
113
+ */
114
+ export interface ActionSheetAll extends Vue2type, ActionSheetMethods, ActionSheetData, ActionSheetComputed, ActionSheetState {
115
+ }
116
+ /**
117
+ * @hidden
118
+ */
119
+ declare let ActionSheetVue2: ComponentOptions<ActionSheetAll, DefaultData<ActionSheetData>, DefaultMethods<ActionSheetAll>, ActionSheetComputed, RecordPropsDefinition<ActionSheetProps>>;
120
+ /**
121
+ * @hidden
122
+ */
123
+ declare const ActionSheet: DefineComponent<{}, any, ActionSheetData, ActionSheetComputed, ActionSheetMethods, {}, {}, {}, string, {}, {}, {}>;
124
+ export { ActionSheet, ActionSheetVue2 };