@progress/kendo-vue-layout 2.6.3 → 2.6.4

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 (118) hide show
  1. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  2. package/dist/es/drawer/Drawer.d.ts +47 -0
  3. package/dist/es/drawer/Drawer.js +186 -0
  4. package/dist/es/drawer/DrawerContent.d.ts +36 -0
  5. package/dist/es/drawer/DrawerContent.js +26 -0
  6. package/dist/es/drawer/DrawerItem.d.ts +38 -0
  7. package/dist/es/drawer/DrawerItem.js +108 -0
  8. package/dist/es/drawer/DrawerNavigation.d.ts +45 -0
  9. package/dist/es/drawer/DrawerNavigation.js +182 -0
  10. package/dist/es/drawer/context/DrawerContext.d.ts +17 -0
  11. package/dist/es/drawer/context/DrawerContext.js +13 -0
  12. package/dist/es/drawer/interfaces/DrawerAnimation.d.ts +14 -0
  13. package/dist/es/drawer/interfaces/DrawerAnimation.js +0 -0
  14. package/dist/es/drawer/interfaces/DrawerContentProps.d.ts +5 -0
  15. package/dist/es/drawer/interfaces/DrawerContentProps.js +0 -0
  16. package/dist/es/drawer/interfaces/DrawerItemHandle.d.ts +17 -0
  17. package/dist/es/drawer/interfaces/DrawerItemHandle.js +0 -0
  18. package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +43 -0
  19. package/dist/es/drawer/interfaces/DrawerItemProps.js +0 -0
  20. package/dist/es/drawer/interfaces/DrawerNavigationProps.d.ts +5 -0
  21. package/dist/es/drawer/interfaces/DrawerNavigationProps.js +0 -0
  22. package/dist/es/drawer/interfaces/DrawerProps.d.ts +69 -0
  23. package/dist/es/drawer/interfaces/DrawerProps.js +0 -0
  24. package/dist/es/drawer/interfaces/DrawerSelectEvent.d.ts +13 -0
  25. package/dist/es/drawer/interfaces/DrawerSelectEvent.js +0 -0
  26. package/dist/es/main.d.ts +21 -0
  27. package/dist/es/main.js +21 -0
  28. package/dist/es/menu/MenuProps.d.ts +2 -2
  29. package/dist/es/menu/components/Menu.js +5 -1
  30. package/dist/es/menu/models/BaseMenuItem.d.ts +3 -3
  31. package/dist/es/package-metadata.js +1 -1
  32. package/dist/es/stepper/Step.d.ts +38 -0
  33. package/dist/es/stepper/Step.js +197 -0
  34. package/dist/es/stepper/Stepper.d.ts +39 -0
  35. package/dist/es/stepper/Stepper.js +351 -0
  36. package/dist/es/stepper/contants.d.ts +8 -0
  37. package/dist/es/stepper/contants.js +8 -0
  38. package/dist/es/stepper/context/StepperContext.d.ts +16 -0
  39. package/dist/es/stepper/context/StepperContext.js +8 -0
  40. package/dist/es/stepper/interfaces/StepChangeEvent.d.ts +9 -0
  41. package/dist/es/stepper/interfaces/StepChangeEvent.js +0 -0
  42. package/dist/es/stepper/interfaces/StepFocusEvent.d.ts +5 -0
  43. package/dist/es/stepper/interfaces/StepFocusEvent.js +0 -0
  44. package/dist/es/stepper/interfaces/StepHandle.d.ts +13 -0
  45. package/dist/es/stepper/interfaces/StepHandle.js +3 -0
  46. package/dist/es/stepper/interfaces/StepProps.d.ts +67 -0
  47. package/dist/es/stepper/interfaces/StepProps.js +0 -0
  48. package/dist/es/stepper/interfaces/StepperChangeEvent.d.ts +9 -0
  49. package/dist/es/stepper/interfaces/StepperChangeEvent.js +0 -0
  50. package/dist/es/stepper/interfaces/StepperFocusEvent.d.ts +5 -0
  51. package/dist/es/stepper/interfaces/StepperFocusEvent.js +0 -0
  52. package/dist/es/stepper/interfaces/StepperHandle.d.ts +13 -0
  53. package/dist/es/stepper/interfaces/StepperHandle.js +3 -0
  54. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.d.ts +23 -0
  55. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +15 -0
  56. package/dist/es/stepper/interfaces/StepperProps.d.ts +80 -0
  57. package/dist/es/stepper/interfaces/StepperProps.js +0 -0
  58. package/dist/es/stepper/messages/index.d.ts +10 -0
  59. package/dist/es/stepper/messages/index.js +11 -0
  60. package/dist/npm/drawer/Drawer.d.ts +47 -0
  61. package/dist/npm/drawer/Drawer.js +198 -0
  62. package/dist/npm/drawer/DrawerContent.d.ts +36 -0
  63. package/dist/npm/drawer/DrawerContent.js +36 -0
  64. package/dist/npm/drawer/DrawerItem.d.ts +38 -0
  65. package/dist/npm/drawer/DrawerItem.js +118 -0
  66. package/dist/npm/drawer/DrawerNavigation.d.ts +45 -0
  67. package/dist/npm/drawer/DrawerNavigation.js +193 -0
  68. package/dist/npm/drawer/context/DrawerContext.d.ts +17 -0
  69. package/dist/npm/drawer/context/DrawerContext.js +15 -0
  70. package/dist/npm/drawer/interfaces/DrawerAnimation.d.ts +14 -0
  71. package/dist/npm/drawer/interfaces/DrawerAnimation.js +2 -0
  72. package/dist/npm/drawer/interfaces/DrawerContentProps.d.ts +5 -0
  73. package/dist/npm/drawer/interfaces/DrawerContentProps.js +2 -0
  74. package/dist/npm/drawer/interfaces/DrawerItemHandle.d.ts +17 -0
  75. package/dist/npm/drawer/interfaces/DrawerItemHandle.js +2 -0
  76. package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +43 -0
  77. package/dist/npm/drawer/interfaces/DrawerItemProps.js +2 -0
  78. package/dist/npm/drawer/interfaces/DrawerNavigationProps.d.ts +5 -0
  79. package/dist/npm/drawer/interfaces/DrawerNavigationProps.js +2 -0
  80. package/dist/npm/drawer/interfaces/DrawerProps.d.ts +69 -0
  81. package/dist/npm/drawer/interfaces/DrawerProps.js +2 -0
  82. package/dist/npm/drawer/interfaces/DrawerSelectEvent.d.ts +13 -0
  83. package/dist/npm/drawer/interfaces/DrawerSelectEvent.js +2 -0
  84. package/dist/npm/main.d.ts +21 -0
  85. package/dist/npm/main.js +21 -0
  86. package/dist/npm/menu/MenuProps.d.ts +2 -2
  87. package/dist/npm/menu/components/Menu.js +5 -1
  88. package/dist/npm/menu/models/BaseMenuItem.d.ts +3 -3
  89. package/dist/npm/package-metadata.js +1 -1
  90. package/dist/npm/stepper/Step.d.ts +38 -0
  91. package/dist/npm/stepper/Step.js +210 -0
  92. package/dist/npm/stepper/Stepper.d.ts +39 -0
  93. package/dist/npm/stepper/Stepper.js +366 -0
  94. package/dist/npm/stepper/contants.d.ts +8 -0
  95. package/dist/npm/stepper/contants.js +11 -0
  96. package/dist/npm/stepper/context/StepperContext.d.ts +16 -0
  97. package/dist/npm/stepper/context/StepperContext.js +10 -0
  98. package/dist/npm/stepper/interfaces/StepChangeEvent.d.ts +9 -0
  99. package/dist/npm/stepper/interfaces/StepChangeEvent.js +2 -0
  100. package/dist/npm/stepper/interfaces/StepFocusEvent.d.ts +5 -0
  101. package/dist/npm/stepper/interfaces/StepFocusEvent.js +2 -0
  102. package/dist/npm/stepper/interfaces/StepHandle.d.ts +13 -0
  103. package/dist/npm/stepper/interfaces/StepHandle.js +5 -0
  104. package/dist/npm/stepper/interfaces/StepProps.d.ts +67 -0
  105. package/dist/npm/stepper/interfaces/StepProps.js +2 -0
  106. package/dist/npm/stepper/interfaces/StepperChangeEvent.d.ts +9 -0
  107. package/dist/npm/stepper/interfaces/StepperChangeEvent.js +2 -0
  108. package/dist/npm/stepper/interfaces/StepperFocusEvent.d.ts +5 -0
  109. package/dist/npm/stepper/interfaces/StepperFocusEvent.js +2 -0
  110. package/dist/npm/stepper/interfaces/StepperHandle.d.ts +13 -0
  111. package/dist/npm/stepper/interfaces/StepperHandle.js +5 -0
  112. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.d.ts +23 -0
  113. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +18 -0
  114. package/dist/npm/stepper/interfaces/StepperProps.d.ts +80 -0
  115. package/dist/npm/stepper/interfaces/StepperProps.js +2 -0
  116. package/dist/npm/stepper/messages/index.d.ts +10 -0
  117. package/dist/npm/stepper/messages/index.js +14 -0
  118. package/package.json +11 -9
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DrawerNavigationVue3 = exports.DrawerNavigation = void 0; // @ts-ignore
7
+
8
+ var Vue = require("vue");
9
+
10
+ var allVue = Vue;
11
+ var gh = allVue.h;
12
+
13
+ var DrawerItem_1 = require("./DrawerItem");
14
+
15
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
16
+ /**
17
+ * @hidden
18
+ */
19
+
20
+
21
+ var DEFAULT_EXPANDED_WIDTH = 240;
22
+ /**
23
+ * @hidden
24
+ */
25
+
26
+ var DEFAULT_MINI_WIDTH = 50;
27
+ /**
28
+ * @hidden
29
+ */
30
+
31
+ var DEFAULT_ANIMATION = {
32
+ type: 'slide',
33
+ duration: 200
34
+ };
35
+ /**
36
+ * @hidden
37
+ */
38
+
39
+ var NO_ANIMATION = {
40
+ type: 'slide',
41
+ duration: 0
42
+ }; // tslint:enable:max-line-length
43
+
44
+ var DrawerNavigation = {
45
+ name: 'KendoDrawerNavigation',
46
+ props: {
47
+ item: [Object],
48
+ tabIndex: Number
49
+ },
50
+ inject: {
51
+ kendoDrawer: {
52
+ default: null
53
+ }
54
+ },
55
+ computed: {
56
+ navigationClassNames: function navigationClassNames() {
57
+ var position = this.kendoDrawer.position;
58
+ return {
59
+ 'k-widget k-drawer': true,
60
+ 'k-drawer-start': position === 'start',
61
+ 'k-drawer-end': position === 'end'
62
+ };
63
+ }
64
+ },
65
+ // @ts-ignore
66
+ setup: !gh ? undefined : function () {
67
+ var v3 = !!gh;
68
+ return {
69
+ v3: v3
70
+ };
71
+ },
72
+ // @ts-ignore
73
+ render: function render(createElement) {
74
+ var h = gh || createElement;
75
+ var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
76
+ var _a = this.kendoDrawer,
77
+ animation = _a.animation,
78
+ expanded = _a.expanded,
79
+ mode = _a.mode,
80
+ position = _a.position,
81
+ mini = _a.mini,
82
+ dir = _a.dir,
83
+ width = _a.width,
84
+ miniWidth = _a.miniWidth,
85
+ items = _a.items;
86
+ var customSettings = typeof animation !== 'boolean' ? animation : animation === false ? NO_ANIMATION : DEFAULT_ANIMATION;
87
+ var navWidth = width ? width : DEFAULT_EXPANDED_WIDTH;
88
+ var navMiniWidth = miniWidth ? miniWidth : DEFAULT_MINI_WIDTH;
89
+ var expandPush = {
90
+ opacity: 1,
91
+ flexBasis: navWidth + 'px',
92
+ WebkitTransition: 'all ' + (customSettings && customSettings.duration) + 'ms',
93
+ transition: 'all ' + (customSettings && customSettings.duration) + 'ms'
94
+ };
95
+ var expandOverlay = {
96
+ opacity: 1,
97
+ transform: 'translateX(0px)',
98
+ WebkitTransition: 'all ' + (customSettings && customSettings.duration) + 'ms',
99
+ transition: 'all ' + (customSettings && customSettings.duration) + 'ms'
100
+ };
101
+ var collapsePush = {
102
+ opacity: !mini ? 0 : 1,
103
+ flexBasis: !mini ? 0 : navMiniWidth + 'px',
104
+ WebkitTransition: 'all ' + (customSettings && customSettings.duration) + 'ms',
105
+ transition: 'all ' + (customSettings && customSettings.duration) + 'ms'
106
+ };
107
+ var collapseOverlay = {
108
+ opacity: 0,
109
+ transform: 'translateX(-100%)',
110
+ WebkitTransition: 'all ' + (customSettings && customSettings.duration) + 'ms',
111
+ transition: 'all ' + (customSettings && customSettings.duration) + 'ms'
112
+ };
113
+ var collapseOverlayRtl = {
114
+ opacity: 0,
115
+ transform: 'translateX(100%)',
116
+ WebkitTransition: 'all ' + (customSettings && customSettings.duration) + 'ms',
117
+ transition: 'all ' + (customSettings && customSettings.duration) + 'ms'
118
+ };
119
+ var collapseOverlayMini = {
120
+ transform: 'translateX(0%)',
121
+ WebkitTransitionDuration: (customSettings && customSettings.duration) + 'ms',
122
+ transitionDuration: (customSettings && customSettings.duration) + 'ms'
123
+ };
124
+ var drawerAnimation = expanded ? mode === 'push' ? expandPush : expandOverlay : mode === 'push' ? collapsePush : dir === 'ltr' && position === 'start' || dir === 'rtl' && position === 'end' ? mini ? collapseOverlayMini : collapseOverlay : mini ? collapseOverlayMini : collapseOverlayRtl;
125
+ var drawerItems = items && h("ul", {
126
+ "class": 'k-drawer-items',
127
+ role: "listbox",
128
+ attrs: this.v3 ? undefined : {
129
+ role: "listbox",
130
+ title: "drawer-list",
131
+ "aria-expanded": expanded
132
+ },
133
+ title: "drawer-list",
134
+ "aria-expanded": expanded
135
+ }, [items.map(function (element, index) {
136
+ var item = this.$props.item ? kendo_vue_common_1.templateRendering.call(this, this.$props.item, kendo_vue_common_1.getListeners.call(this)) : undefined;
137
+ var itemDefaultRendering = // @ts-ignore
138
+ h(DrawerItem_1.DrawerItem, {
139
+ key: index,
140
+ index: index,
141
+ attrs: this.v3 ? undefined : {
142
+ index: index,
143
+ text: element.text,
144
+ icon: element.icon,
145
+ separator: element.separator,
146
+ selected: element.selected,
147
+ targetItem: element.targetItem
148
+ },
149
+ onSelect: this.onSelect,
150
+ on: this.v3 ? undefined : {
151
+ "select": this.onSelect
152
+ },
153
+ text: element.text,
154
+ icon: element.icon,
155
+ separator: element.separator,
156
+ selected: element.selected,
157
+ targetItem: element.targetItem
158
+ });
159
+ var itemRendering = kendo_vue_common_1.getTemplate.call(this, {
160
+ h: h,
161
+ template: item,
162
+ defaultRendering: itemDefaultRendering,
163
+ additionalProps: element
164
+ });
165
+ return itemRendering;
166
+ }, this)]);
167
+ var drawerNavigation = h("div", {
168
+ style: drawerAnimation,
169
+ "class": this.navigationClassNames
170
+ }, [h("div", {
171
+ "class": 'k-drawer-wrapper',
172
+ style: !expanded && mini && mode === 'overlay' ? {
173
+ width: navMiniWidth + 'px'
174
+ } : {
175
+ width: navWidth + 'px'
176
+ }
177
+ }, [drawerItems || defaultSlot])]);
178
+ return drawerNavigation;
179
+ },
180
+ methods: {
181
+ focus: function focus(e) {
182
+ if (this.$el) {
183
+ this.$el.focus(e);
184
+ }
185
+ },
186
+ onSelect: function onSelect(e, index) {
187
+ this.$emit('select', e, index);
188
+ }
189
+ }
190
+ };
191
+ exports.DrawerNavigation = DrawerNavigation;
192
+ var DrawerNavigationVue3 = DrawerNavigation;
193
+ exports.DrawerNavigationVue3 = DrawerNavigationVue3;
@@ -0,0 +1,17 @@
1
+ import { DrawerAnimation } from '../interfaces/DrawerAnimation';
2
+ import { DrawerItemProps } from '../interfaces/DrawerItemProps';
3
+ /** @hidden */
4
+ export declare type DrawerContextType = {
5
+ animation?: boolean | DrawerAnimation;
6
+ expanded?: boolean;
7
+ mode?: 'overlay' | 'push';
8
+ position?: 'start' | 'end';
9
+ mini?: boolean;
10
+ dir?: string;
11
+ items?: Array<DrawerItemProps>;
12
+ item?: any;
13
+ width?: number;
14
+ miniWidth?: number;
15
+ onOverlayClick?: (event: any) => void;
16
+ onSelect?: (target: any, idx: number) => void;
17
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * @hidden
5
+ */
6
+ var defaultContext = {
7
+ animation: true,
8
+ expanded: false,
9
+ mode: 'overlay',
10
+ position: 'start',
11
+ mini: false,
12
+ dir: 'ltr',
13
+ width: 240,
14
+ miniWidth: 50
15
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Specifies the animation settings of the Drawer.
3
+ *
4
+ */
5
+ export interface DrawerAnimation {
6
+ /**
7
+ * Specifies the type of the Drawer animation.
8
+ */
9
+ type?: 'slide';
10
+ /**
11
+ * Specifies the duration of the Drawer animation ([see example]({% slug display_modes_drawer %}#toc-expand-modes)) .
12
+ */
13
+ duration: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The properties of the [Kendo UI for Vue DrawerContent component]({% slug overview_drawer %}).
3
+ */
4
+ export interface DrawerContentProps {
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The DrawerItem ref.
3
+ */
4
+ export interface DrawerItemHandle {
5
+ /**
6
+ * The DrawerItem element.
7
+ */
8
+ element: any;
9
+ /**
10
+ * Focus the DrawerItem.
11
+ */
12
+ focus: (e: any) => void;
13
+ /**
14
+ * The props of the DrawerItem.
15
+ */
16
+ props?: any;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
1
+ /**
2
+ * An interface for the Drawer items.
3
+ */
4
+ export interface DrawerItemProps {
5
+ /**
6
+ * Specifies if the Drawer item is disabled.
7
+ */
8
+ disabled?: boolean;
9
+ /**
10
+ * Defines the name for an existing icon in a Kendo UI for Vue theme.
11
+ * The icon is rendered inside the Drawer item by a `span.k-icon` element.
12
+ */
13
+ icon?: string;
14
+ /**
15
+ * Specifies if the Drawer item is initially selected.
16
+ */
17
+ selected?: boolean;
18
+ /**
19
+ * Specifies if this is a separator item.
20
+ */
21
+ separator?: boolean;
22
+ /**
23
+ * Specifies the text content of the Drawer item.
24
+ */
25
+ text?: string;
26
+ /**
27
+ * Sets the index of the DrawerItem that is used to identify it.
28
+ */
29
+ index?: number;
30
+ /**
31
+ * Sets the `tabIndex` property of the DrawerItem.
32
+ * Defaults to `0`.
33
+ */
34
+ tabIndex?: number;
35
+ /**
36
+ * Sets a custom property. Contained in the DrawerItem props that are returned from the `onSelect` Drawer event.
37
+ */
38
+ [customProp: string]: any;
39
+ /**
40
+ * @hidden
41
+ */
42
+ onSelect?(target?: any, idx?: number): void;
43
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The properties of the [Kendo UI for Vue DrawerNavigation component]({% slug overview_drawer %}).
3
+ */
4
+ export interface DrawerNavigationProps {
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,69 @@
1
+ import { DrawerSelectEvent } from './DrawerSelectEvent';
2
+ import { DrawerAnimation } from '../interfaces/DrawerAnimation';
3
+ import { DrawerItemProps } from './DrawerItemProps';
4
+ /**
5
+ * The properties of the [Kendo UI for Vue Drawer component]({% slug overview_drawer %}).
6
+ */
7
+ export interface DrawerProps {
8
+ /**
9
+ * Specifies the animation settings of the Drawer.
10
+ * If boolean enables or disables the default animation.
11
+ * Use DrawerAnimation to set slide animation with customizable duration option. Accepts a number in milliseconds.
12
+ */
13
+ animation?: boolean | DrawerAnimation;
14
+ /**
15
+ * Specifies the state of the Drawer. Defaults to `false` ([see example]({% slug expanded_state_drawer %})).
16
+ */
17
+ expanded?: boolean;
18
+ /**
19
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
20
+ */
21
+ dir?: string;
22
+ /**
23
+ * Specifies the mode in which the Drawer will be displayed.
24
+ * The possible values are `overlay` and `push`.
25
+ * Defaults to `overlay` ([see example]({% slug display_modes_drawer %}#toc-expand-modes)).
26
+ */
27
+ mode?: 'overlay' | 'push' | string;
28
+ /**
29
+ * Specifies the position of the Drawer.
30
+ * The possible values are `start` and `end` ([see example]({% slug positioning_drawer %})).
31
+ */
32
+ position?: 'start' | 'end' | string;
33
+ /**
34
+ * Sets the `tabIndex` property of the Drawer.
35
+ */
36
+ tabIndex?: number;
37
+ /**
38
+ * Enables the mini (compact) view of the Drawer which is displayed when the component is collapsed
39
+ * ([see example]({% slug display_modes_drawer %}#toc-mini-view))).
40
+ */
41
+ mini?: boolean;
42
+ /**
43
+ * Defines the width of the Drawer when the mini view is enabled and the component is collapsed. Defaults to `50`.
44
+ */
45
+ miniWidth?: number;
46
+ /**
47
+ * Defines the width of the Drawer when it is expanded. Defaults to `240`.
48
+ */
49
+ width?: number;
50
+ /**
51
+ * The collection of items that will be rendered in the Drawer ([see example]({% slug overview_drawer %})).
52
+ */
53
+ items?: Array<DrawerItemProps>;
54
+ /**
55
+ * Overrides the default component responsible for visualizing a single item ([see example]({% slug custom_rendering %})).
56
+ *
57
+ * The default Component is: [DrawerItem]({% slug api_layout_draweritem %}).
58
+ */
59
+ item?: any;
60
+ /**
61
+ * The event handler that will be fired when the overlay is clicked.
62
+ * Used in overlay mode only.
63
+ */
64
+ onOverlayClick?: (event: any) => void;
65
+ /**
66
+ * Fires when a Drawer item is selected.
67
+ */
68
+ onSelect?: (event: DrawerSelectEvent) => void;
69
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The arguments for the `onSelect` Drawer event.
3
+ */
4
+ export interface DrawerSelectEvent {
5
+ /**
6
+ * A Drawer item event target.
7
+ */
8
+ itemTarget: any;
9
+ /**
10
+ * The index of the selected Drawer item.
11
+ */
12
+ itemIndex: number;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,27 @@ export * from './card/CardImage';
12
12
  export * from './card/CardSubtitle';
13
13
  export * from './card/CardFooter';
14
14
  export * from './card/Avatar';
15
+ export * from './drawer/Drawer';
16
+ export * from './drawer/interfaces/DrawerProps';
17
+ export * from './drawer/DrawerNavigation';
18
+ export * from './drawer/interfaces/DrawerNavigationProps';
19
+ export * from './drawer/DrawerContent';
20
+ export * from './drawer/interfaces/DrawerContentProps';
21
+ export * from './drawer/DrawerItem';
22
+ export * from './drawer/interfaces/DrawerItemHandle';
23
+ export * from './drawer/interfaces/DrawerItemProps';
24
+ export * from './drawer/interfaces/DrawerSelectEvent';
25
+ export * from './drawer/interfaces/DrawerAnimation';
26
+ export * from './stepper/Stepper';
27
+ export * from './stepper/interfaces/StepperProps';
28
+ export * from './stepper/interfaces/StepperHandle';
29
+ export * from './stepper/interfaces/StepperChangeEvent';
30
+ export * from './stepper/interfaces/StepperFocusEvent';
31
+ export * from './stepper/Step';
32
+ export * from './stepper/interfaces/StepProps';
33
+ export * from './stepper/interfaces/StepHandle';
34
+ export * from './stepper/interfaces/StepChangeEvent';
35
+ export * from './stepper/interfaces/StepFocusEvent';
15
36
  export * from './menu/components/Menu';
16
37
  export * from './menu/components/MenuItemLink';
17
38
  export * from './menu/components/MenuItemArrow';
package/dist/npm/main.js CHANGED
@@ -24,6 +24,27 @@ __exportStar(require("./card/CardImage"), exports);
24
24
  __exportStar(require("./card/CardSubtitle"), exports);
25
25
  __exportStar(require("./card/CardFooter"), exports);
26
26
  __exportStar(require("./card/Avatar"), exports);
27
+ __exportStar(require("./drawer/Drawer"), exports);
28
+ __exportStar(require("./drawer/interfaces/DrawerProps"), exports);
29
+ __exportStar(require("./drawer/DrawerNavigation"), exports);
30
+ __exportStar(require("./drawer/interfaces/DrawerNavigationProps"), exports);
31
+ __exportStar(require("./drawer/DrawerContent"), exports);
32
+ __exportStar(require("./drawer/interfaces/DrawerContentProps"), exports);
33
+ __exportStar(require("./drawer/DrawerItem"), exports);
34
+ __exportStar(require("./drawer/interfaces/DrawerItemHandle"), exports);
35
+ __exportStar(require("./drawer/interfaces/DrawerItemProps"), exports);
36
+ __exportStar(require("./drawer/interfaces/DrawerSelectEvent"), exports);
37
+ __exportStar(require("./drawer/interfaces/DrawerAnimation"), exports);
38
+ __exportStar(require("./stepper/Stepper"), exports);
39
+ __exportStar(require("./stepper/interfaces/StepperProps"), exports);
40
+ __exportStar(require("./stepper/interfaces/StepperHandle"), exports);
41
+ __exportStar(require("./stepper/interfaces/StepperChangeEvent"), exports);
42
+ __exportStar(require("./stepper/interfaces/StepperFocusEvent"), exports);
43
+ __exportStar(require("./stepper/Step"), exports);
44
+ __exportStar(require("./stepper/interfaces/StepProps"), exports);
45
+ __exportStar(require("./stepper/interfaces/StepHandle"), exports);
46
+ __exportStar(require("./stepper/interfaces/StepChangeEvent"), exports);
47
+ __exportStar(require("./stepper/interfaces/StepFocusEvent"), exports);
27
48
  __exportStar(require("./menu/components/Menu"), exports);
28
49
  __exportStar(require("./menu/components/MenuItemLink"), exports);
29
50
  __exportStar(require("./menu/components/MenuItemArrow"), exports);
@@ -29,11 +29,11 @@ export interface MenuProps {
29
29
  */
30
30
  openOnClick?: boolean;
31
31
  /**
32
- * A React functional or class component which is used for rendering the innermost part of the Menu item ([see example]({% slug rendering_menu %}#toc-items)). By default, the innermost item part includes only the text for the item.
32
+ * A Vue functional or class component which is used for rendering the innermost part of the Menu item ([see example]({% slug rendering_menu %}#toc-items)). By default, the innermost item part includes only the text for the item.
33
33
  */
34
34
  itemRender?: any;
35
35
  /**
36
- * A React functional or class component which is used for rendering the link of the item ([see example]({% slug rendering_menu %}#toc-links)). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.
36
+ * A Vue functional or class component which is used for rendering the link of the item ([see example]({% slug rendering_menu %}#toc-links)). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.
37
37
  */
38
38
  linkRender?: any;
39
39
  /**
@@ -93,7 +93,11 @@ var Menu = {
93
93
  // }
94
94
  this.mouseOverHandler.OpenOnClick = this.$props.openOnClick;
95
95
  },
96
- destroyed: function destroyed() {
96
+ destroyed: !!gh ? undefined : function () {
97
+ this.clearItemHoverAndLeaveRequestsIfApplicable();
98
+ },
99
+ // @ts-ignore
100
+ unmounted: function unmounted() {
97
101
  this.clearItemHoverAndLeaveRequestsIfApplicable();
98
102
  },
99
103
  data: function data() {
@@ -27,15 +27,15 @@ export interface BaseMenuItem {
27
27
  */
28
28
  cssStyle?: any;
29
29
  /**
30
- * A React functional or class component which is used for rendering the innermost part of the Menu item ([see example]({% slug rendering_menu %}#toc-items)). By default, the innermost item part includes only the text for the item.
30
+ * A Vue functional or class component which is used for rendering the innermost part of the Menu item ([see example]({% slug rendering_menu %}#toc-items)). By default, the innermost item part includes only the text for the item.
31
31
  */
32
32
  render?: any;
33
33
  /**
34
- * A React functional or class component which is used for rendering the link of the item ([see example]({% slug rendering_menu %}#toc-links)). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.
34
+ * A Vue functional or class component which is used for rendering the link of the item ([see example]({% slug rendering_menu %}#toc-links)). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.
35
35
  */
36
36
  linkRender?: any;
37
37
  /**
38
- * A React functional or class component which is used for rendering content instead of the item children ([see example]({% slug rendering_menu %}#toc-content)).
38
+ * A Vue functional or class component which is used for rendering content instead of the item children ([see example]({% slug rendering_menu %}#toc-content)).
39
39
  */
40
40
  contentRender?: any;
41
41
  /**
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-layout',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1636532314,
11
+ publishDate: 1638285607,
12
12
  version: '',
13
13
  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'
14
14
  };
@@ -0,0 +1,38 @@
1
+ import { DefineComponent } from '../additionalTypes';
2
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
3
+ declare type DefaultData<V> = object | ((this: V) => {});
4
+ declare type DefaultMethods<V> = {
5
+ [key: string]: (this: V, ...args: any[]) => any;
6
+ };
7
+ import { StepProps } from './interfaces/StepProps';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export interface StepState {
12
+ }
13
+ /**
14
+ * @hidden
15
+ */
16
+ export interface StepComputed {
17
+ itemClassNames: object;
18
+ itemStyles: object;
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface StepMethods {
24
+ [key: string]: any;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface StepData {
30
+ }
31
+ /**
32
+ * @hidden
33
+ */
34
+ export interface StepAll extends Vue, StepMethods, StepData, StepComputed, StepState {
35
+ }
36
+ declare let Step: ComponentOptions<StepAll, DefaultData<StepData>, DefaultMethods<StepAll>, StepComputed, RecordPropsDefinition<StepProps>>;
37
+ declare const StepVue3: DefineComponent<StepProps, any, StepData, StepComputed, StepMethods, {}, {}, {}, string, StepProps, StepProps, {}>;
38
+ export { Step, StepVue3 };