@progress/kendo-vue-layout 3.6.3 → 3.6.4-dev.202210071340

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 (113) hide show
  1. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  2. package/dist/es/appbar/AppBar.d.ts +44 -0
  3. package/dist/es/appbar/AppBar.js +90 -0
  4. package/dist/es/appbar/AppBarSection.d.ts +44 -0
  5. package/dist/es/appbar/AppBarSection.js +40 -0
  6. package/dist/es/appbar/AppBarSpacer.d.ts +44 -0
  7. package/dist/es/appbar/AppBarSpacer.js +57 -0
  8. package/dist/es/appbar/interfaces/AppBarProps.d.ts +66 -0
  9. package/dist/es/appbar/interfaces/AppBarProps.js +1 -0
  10. package/dist/es/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
  11. package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
  12. package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
  13. package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
  14. package/dist/es/bottomnavigation/BottomNavigation.d.ts +45 -0
  15. package/dist/es/bottomnavigation/BottomNavigation.js +179 -0
  16. package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +44 -0
  17. package/dist/es/bottomnavigation/BottomNavigationItem.js +124 -0
  18. package/dist/es/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
  19. package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
  20. package/dist/es/bottomnavigation/BottomNavigationProps.d.ts +143 -0
  21. package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
  22. package/dist/es/bottomnavigation/models/events.d.ts +18 -0
  23. package/dist/es/bottomnavigation/models/events.js +1 -0
  24. package/dist/es/bottomnavigation/models/utils.d.ts +36 -0
  25. package/dist/es/bottomnavigation/models/utils.js +36 -0
  26. package/dist/es/expansionpanel/ExpansionPanel.d.ts +42 -0
  27. package/dist/es/expansionpanel/ExpansionPanel.js +185 -0
  28. package/dist/es/expansionpanel/ExpansionPanelContent.d.ts +19 -0
  29. package/dist/es/expansionpanel/ExpansionPanelContent.js +39 -0
  30. package/dist/es/expansionpanel/interfaces.d.ts +79 -0
  31. package/dist/es/expansionpanel/interfaces.js +1 -0
  32. package/dist/es/expansionpanel/main.d.ts +3 -0
  33. package/dist/es/expansionpanel/main.js +3 -0
  34. package/dist/es/main.d.ts +12 -0
  35. package/dist/es/main.js +12 -0
  36. package/dist/es/package-metadata.js +1 -1
  37. package/dist/es/stepper/interfaces/StepProps.d.ts +0 -4
  38. package/dist/es/stepper/interfaces/StepperProps.d.ts +0 -4
  39. package/dist/esm/appbar/AppBar.d.ts +44 -0
  40. package/dist/esm/appbar/AppBar.js +90 -0
  41. package/dist/esm/appbar/AppBarSection.d.ts +44 -0
  42. package/dist/esm/appbar/AppBarSection.js +40 -0
  43. package/dist/esm/appbar/AppBarSpacer.d.ts +44 -0
  44. package/dist/esm/appbar/AppBarSpacer.js +57 -0
  45. package/dist/esm/appbar/interfaces/AppBarProps.d.ts +66 -0
  46. package/dist/esm/appbar/interfaces/AppBarProps.js +1 -0
  47. package/dist/esm/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
  48. package/dist/esm/appbar/interfaces/AppBarSectionProps.js +1 -0
  49. package/dist/esm/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
  50. package/dist/esm/appbar/interfaces/AppBarSpacerProps.js +1 -0
  51. package/dist/esm/bottomnavigation/BottomNavigation.d.ts +45 -0
  52. package/dist/esm/bottomnavigation/BottomNavigation.js +179 -0
  53. package/dist/esm/bottomnavigation/BottomNavigationItem.d.ts +44 -0
  54. package/dist/esm/bottomnavigation/BottomNavigationItem.js +124 -0
  55. package/dist/esm/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
  56. package/dist/esm/bottomnavigation/BottomNavigationItemProps.js +1 -0
  57. package/dist/esm/bottomnavigation/BottomNavigationProps.d.ts +143 -0
  58. package/dist/esm/bottomnavigation/BottomNavigationProps.js +1 -0
  59. package/dist/esm/bottomnavigation/models/events.d.ts +18 -0
  60. package/dist/esm/bottomnavigation/models/events.js +1 -0
  61. package/dist/esm/bottomnavigation/models/utils.d.ts +36 -0
  62. package/dist/esm/bottomnavigation/models/utils.js +36 -0
  63. package/dist/esm/expansionpanel/ExpansionPanel.d.ts +42 -0
  64. package/dist/esm/expansionpanel/ExpansionPanel.js +185 -0
  65. package/dist/esm/expansionpanel/ExpansionPanelContent.d.ts +19 -0
  66. package/dist/esm/expansionpanel/ExpansionPanelContent.js +39 -0
  67. package/dist/esm/expansionpanel/interfaces.d.ts +79 -0
  68. package/dist/esm/expansionpanel/interfaces.js +1 -0
  69. package/dist/esm/expansionpanel/main.d.ts +3 -0
  70. package/dist/esm/expansionpanel/main.js +3 -0
  71. package/dist/esm/main.d.ts +12 -0
  72. package/dist/esm/main.js +12 -0
  73. package/dist/esm/package-metadata.js +1 -1
  74. package/dist/esm/stepper/interfaces/StepProps.d.ts +0 -4
  75. package/dist/esm/stepper/interfaces/StepperProps.d.ts +0 -4
  76. package/dist/npm/appbar/AppBar.d.ts +44 -0
  77. package/dist/npm/appbar/AppBar.js +101 -0
  78. package/dist/npm/appbar/AppBarSection.d.ts +44 -0
  79. package/dist/npm/appbar/AppBarSection.js +50 -0
  80. package/dist/npm/appbar/AppBarSpacer.d.ts +44 -0
  81. package/dist/npm/appbar/AppBarSpacer.js +67 -0
  82. package/dist/npm/appbar/interfaces/AppBarProps.d.ts +66 -0
  83. package/dist/npm/appbar/interfaces/AppBarProps.js +2 -0
  84. package/dist/npm/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
  85. package/dist/npm/appbar/interfaces/AppBarSectionProps.js +2 -0
  86. package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
  87. package/dist/npm/appbar/interfaces/AppBarSpacerProps.js +2 -0
  88. package/dist/npm/bottomnavigation/BottomNavigation.d.ts +45 -0
  89. package/dist/npm/bottomnavigation/BottomNavigation.js +192 -0
  90. package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +44 -0
  91. package/dist/npm/bottomnavigation/BottomNavigationItem.js +135 -0
  92. package/dist/npm/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
  93. package/dist/npm/bottomnavigation/BottomNavigationItemProps.js +2 -0
  94. package/dist/npm/bottomnavigation/BottomNavigationProps.d.ts +143 -0
  95. package/dist/npm/bottomnavigation/BottomNavigationProps.js +2 -0
  96. package/dist/npm/bottomnavigation/models/events.d.ts +18 -0
  97. package/dist/npm/bottomnavigation/models/events.js +2 -0
  98. package/dist/npm/bottomnavigation/models/utils.d.ts +36 -0
  99. package/dist/npm/bottomnavigation/models/utils.js +39 -0
  100. package/dist/npm/expansionpanel/ExpansionPanel.d.ts +42 -0
  101. package/dist/npm/expansionpanel/ExpansionPanel.js +196 -0
  102. package/dist/npm/expansionpanel/ExpansionPanelContent.d.ts +19 -0
  103. package/dist/npm/expansionpanel/ExpansionPanelContent.js +50 -0
  104. package/dist/npm/expansionpanel/interfaces.d.ts +79 -0
  105. package/dist/npm/expansionpanel/interfaces.js +2 -0
  106. package/dist/npm/expansionpanel/main.d.ts +3 -0
  107. package/dist/npm/expansionpanel/main.js +36 -0
  108. package/dist/npm/main.d.ts +12 -0
  109. package/dist/npm/main.js +12 -0
  110. package/dist/npm/package-metadata.js +1 -1
  111. package/dist/npm/stepper/interfaces/StepProps.d.ts +0 -4
  112. package/dist/npm/stepper/interfaces/StepperProps.d.ts +0 -4
  113. package/package.json +11 -10
@@ -0,0 +1,143 @@
1
+ import { BottomNavigationItemProps } from './BottomNavigationItemProps';
2
+ import { BottomNavigationEvent, BottomNavigationSelectEvent } from './models/events';
3
+ /**
4
+ * Represents the props of the [KendoReact BottomNavigation component]({% slug overview_bottomnavigation %}).
5
+ */
6
+ export interface BottomNavigationProps {
7
+ /**
8
+ * Sets the `id` property of the root BottomNavigation element.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
13
+ */
14
+ dir?: string;
15
+ /**
16
+ * Specifies the theme color of the BottomNavigation
17
+ * ([see example]({% slug appearance_bottomnavigation %}#toc-theme-color)).
18
+ *
19
+ * The possible values are:
20
+ * * `primary` (Default) — Applies coloring based on the primary theme color.
21
+ * * `secondary` — Applies coloring based on the secondary theme color.
22
+ * * `tertiary` — Applies coloring based on the tertiary theme color.
23
+ * * `info` — Applies coloring based on the info theme color.
24
+ * * `success` — Applies coloring based on the success theme color.
25
+ * * `warning` — Applies coloring based on the warning theme color.
26
+ * * `error` — Applies coloring based on the error theme color.
27
+ * * `dark` — Applies coloring based on the dark theme color.
28
+ * * `light` — Applies coloring based on the light theme color.
29
+ * * `inverse` — Applies coloring based on the inverted theme color.
30
+ */
31
+ themeColor?: BottomNavigationThemeColor | string;
32
+ /**
33
+ * The fill style of the BottomNavigation
34
+ * ([see example]({% slug appearance_bottomnavigation %}#toc-fill)).
35
+ *
36
+ * The possible values are:
37
+ * * `flat`(Default) — Sets the theme color as the text color. The background will be white.
38
+ * * `solid` — Sets the theme color as a background color.
39
+ */
40
+ fill?: BottomNavigationFill | string;
41
+ /**
42
+ * Specifies the position and behavior of the BottomNavigation when the page is scrolled
43
+ * ([see example]({% slug positioning_bottomnavigation %}#toc-position-mode)).
44
+ *
45
+ * The possible values are:
46
+ * * `fixed`(Default) — The BottomNavigation always stays at the bottom of the viewport, regardless of the page scroll position.
47
+ * * `sticky` — Positions the BottomNavigation based on the user's scroll position. A sticky element toggles between static
48
+ * and fixed CSS [`position`](https://developer.mozilla.org/en-US/docs/Web/CSS/position) property, depending on the scroll position.
49
+ * It is positioned static until a given offset position is met in the viewport - then it "sticks" in place like `fixed` positionMode.
50
+ */
51
+ positionMode?: BottomNavigationPositionMode | string;
52
+ /**
53
+ * Specifies how the icon and text label are positioned in each item of the BottomNavigation
54
+ * ([see example]({% slug content_types_bottomnavigation %}#toc-item-flow)).
55
+ *
56
+ * The possible values are:
57
+ * * `vertical`(Default) — Renders the text below the icon.
58
+ * * `horizontal` — Renders the text and the icon on the same line.
59
+ */
60
+ itemFlow?: BottomNavigationItemFlow | string;
61
+ /**
62
+ * Sets a border to the BottomNavigation.
63
+ */
64
+ border?: boolean;
65
+ /**
66
+ * Disables the whole BottomNavigation.
67
+ */
68
+ disabled?: boolean;
69
+ /**
70
+ * The index of the selected BottomNavigationItem.
71
+ */
72
+ selected?: number;
73
+ /**
74
+ * The collection of items that will be rendered in the BottomNavigation ([see example]({% slug overview_bottomnavigation %})).
75
+ */
76
+ items?: Array<BottomNavigationItemProps>;
77
+ /**
78
+ * Overrides the default component's content responsible for visualizing a single item
79
+ * ([see example]({% slug custom_rendering_bottomnavigation %}#toc-custom-rendering)).
80
+ */
81
+ item?: any;
82
+ /**
83
+ * Fires when a BottomNavigation item is about to be rendered
84
+ * ([see example]({% slug custom_rendering_bottomnavigation %}#toc-item-render-property)).
85
+ * Used to override the default appearance of the items.
86
+ */
87
+ itemRender?: any;
88
+ /**
89
+ * Fires when a BottomNavigation item is selected.
90
+ */
91
+ onSelect?: (event: BottomNavigationSelectEvent) => void;
92
+ /**
93
+ * Triggered on `onKeyDown` event.
94
+ */
95
+ onKeyDown?: (event: BottomNavigationEvent) => void;
96
+ }
97
+ /**
98
+ * The fill style of the BottomNavigation
99
+ * ([see example]({% slug appearance_bottomnavigation %}#toc-fill)).
100
+ *
101
+ * The possible values are:
102
+ * * `flat`(Default) &mdash; Sets the theme color as the text color. The background will be white.
103
+ * * `solid` &mdash; Sets the theme color as a background color.
104
+ *
105
+ */
106
+ export declare type BottomNavigationFill = 'solid' | 'flat';
107
+ /**
108
+ * Specifies how the icon and text label are positioned in each item of the BottomNavigation
109
+ * ([see example]({% slug content_types_bottomnavigation %}#toc-item-flow)).
110
+ *
111
+ * The possible values are:
112
+ * * `vertical`(Default) &mdash; Renders the text below the icon.
113
+ * * `horizontal` &mdash; Renders the text and the icon on the same line.
114
+ */
115
+ export declare type BottomNavigationItemFlow = 'vertical' | 'horizontal';
116
+ /**
117
+ * Specifies the theme color of the BottomNavigationThemeColor.
118
+ * ([see example]({% slug appearance_bottomnavigation %}#toc-theme-color)).
119
+ *
120
+ * The possible values are:
121
+ * * `primary` (Default) &mdash; Applies coloring based on the primary theme color.
122
+ * * `secondary` &mdash; Applies coloring based on the secondary theme color.
123
+ * * `tertiary` &mdash; Applies coloring based on the tertiary theme color.
124
+ * * `info` &mdash; Applies coloring based on the info theme color.
125
+ * * `success` &mdash; Applies coloring based on the success theme color.
126
+ * * `warning` &mdash; Applies coloring based on the warning theme color.
127
+ * * `error` &mdash; Applies coloring based on the error theme color.
128
+ * * `dark` &mdash; Applies coloring based on the dark theme color.
129
+ * * `light` &mdash; Applies coloring based on the light theme color.
130
+ * * `inverse` &mdash; Applies coloring based on the inverted theme color.
131
+ */
132
+ export declare type BottomNavigationThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
133
+ /**
134
+ * Specifies the position and behavior of the BottomNavigation when the page is scrolled
135
+ * ([see example]({% slug positioning_bottomnavigation %}#toc-position-mode)).
136
+ *
137
+ * The possible values are:
138
+ * * `fixed`(Default) &mdash; The BottomNavigation always stays at the bottom of the viewport, regardless of the page scroll position.
139
+ * * `sticky` &mdash; Positions the BottomNavigation based on the user's scroll position. A sticky element toggles between
140
+ * static and fixed CSS [`position`](https://developer.mozilla.org/en-US/docs/Web/CSS/position) property, depending on the scroll position.
141
+ * It is positioned static until a given offset position is met in the viewport - then it "sticks" in place like `fixed` positionMode.
142
+ */
143
+ export declare type BottomNavigationPositionMode = 'sticky' | 'fixed';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The arguments for the `onSelect` BottomNavigation event.
3
+ */
4
+ export interface BottomNavigationSelectEvent {
5
+ /**
6
+ * A BottomNavigation item event target.
7
+ */
8
+ itemTarget: any;
9
+ /**
10
+ * The index of the selected BottomNavigation item.
11
+ */
12
+ itemIndex: number;
13
+ }
14
+ /**
15
+ * Represents the return type of the BottomNavigation events.
16
+ */
17
+ export interface BottomNavigationEvent {
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const THEME_COLOR_CLASSES: {
5
+ primary: string;
6
+ secondary: string;
7
+ tertiary: string;
8
+ info: string;
9
+ success: string;
10
+ warning: string;
11
+ error: string;
12
+ dark: string;
13
+ light: string;
14
+ inverse: string;
15
+ };
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare const FILL_CLASSES: {
20
+ flat: string;
21
+ solid: string;
22
+ };
23
+ /**
24
+ * @hidden
25
+ */
26
+ export declare const ITEM_FLOW_CLASSES: {
27
+ vertical: string;
28
+ horizontal: string;
29
+ };
30
+ /**
31
+ * @hidden
32
+ */
33
+ export declare const POSITION_MODE_CLASSES: {
34
+ fixed: string;
35
+ sticky: string;
36
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POSITION_MODE_CLASSES = exports.ITEM_FLOW_CLASSES = exports.FILL_CLASSES = exports.THEME_COLOR_CLASSES = void 0;
4
+ /**
5
+ * @hidden
6
+ */
7
+ exports.THEME_COLOR_CLASSES = {
8
+ 'primary': 'k-bottom-nav-primary',
9
+ 'secondary': 'k-bottom-nav-secondary',
10
+ 'tertiary': 'k-bottom-nav-tertiary',
11
+ 'info': 'k-bottom-nav-info',
12
+ 'success': 'k-bottom-nav-success',
13
+ 'warning': 'k-bottom-nav-warning',
14
+ 'error': 'k-bottom-nav-error',
15
+ 'dark': 'k-bottom-nav-dark',
16
+ 'light': 'k-bottom-nav-light',
17
+ 'inverse': 'k-bottom-nav-inverse'
18
+ };
19
+ /**
20
+ * @hidden
21
+ */
22
+ exports.FILL_CLASSES = {
23
+ 'flat': 'k-bottom-nav-flat',
24
+ 'solid': 'k-bottom-nav-solid'
25
+ };
26
+ /**
27
+ * @hidden
28
+ */
29
+ exports.ITEM_FLOW_CLASSES = {
30
+ 'vertical': 'k-bottom-nav-item-flow-vertical',
31
+ 'horizontal': 'k-bottom-nav-item-flow-horizontal'
32
+ };
33
+ /**
34
+ * @hidden
35
+ */
36
+ exports.POSITION_MODE_CLASSES = {
37
+ 'fixed': 'k-pos-fixed',
38
+ 'sticky': 'k-pos-sticky'
39
+ };
@@ -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 { ExpansionPanelProps } from './interfaces';
7
+ /**
8
+ * @hidden
9
+ */
10
+ interface ExpansionPanelState {
11
+ }
12
+ /**
13
+ * @hidden
14
+ */
15
+ interface ExpansionPanelData {
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ export interface ExpansionPanelMethods {
21
+ [key: string]: any;
22
+ }
23
+ /**
24
+ * @hidden
25
+ */
26
+ export interface ExpansionPanelComputed {
27
+ [key: string]: any;
28
+ }
29
+ /**
30
+ * @hidden
31
+ */
32
+ export interface ExpansionPanelAll extends ExpansionPanelMethods, ExpansionPanelState, ExpansionPanelData, ExpansionPanelComputed, Vue2type {
33
+ }
34
+ /**
35
+ * @hidden
36
+ */
37
+ declare const ExpansionPanelVue2: ComponentOptions<Vue2type, DefaultData<ExpansionPanelData>, DefaultMethods<ExpansionPanelAll>, ExpansionPanelComputed, RecordPropsDefinition<ExpansionPanelProps>>;
38
+ /**
39
+ * @hidden
40
+ */
41
+ declare let ExpansionPanel: DefineComponent<ExpansionPanelProps, any, ExpansionPanelData, ExpansionPanelComputed, ExpansionPanelMethods, {}, {}, {}, string, ExpansionPanelProps, ExpansionPanelProps, {}>;
42
+ export { ExpansionPanel, ExpansionPanelVue2 };
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExpansionPanelVue2 = exports.ExpansionPanel = void 0; // @ts-ignore
7
+
8
+ var Vue = require("vue");
9
+
10
+ var allVue = Vue;
11
+ var gh = allVue.h;
12
+ var isV3 = allVue.version && allVue.version[0] === '3';
13
+
14
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
+
16
+ var package_metadata_1 = require("../package-metadata");
17
+ /**
18
+ * @hidden
19
+ */
20
+
21
+
22
+ var ExpansionPanelVue2 = {
23
+ name: 'KendoExpansionPanel',
24
+ props: {
25
+ dir: String,
26
+ id: String,
27
+ tabIndex: Number,
28
+ title: String,
29
+ subtitle: String,
30
+ titleRender: [String, Object, Function],
31
+ subtitleRender: [String, Object, Function],
32
+ expandIcon: String,
33
+ collapseIcon: String,
34
+ expanded: Boolean,
35
+ disabled: Boolean
36
+ },
37
+ created: function created() {
38
+ (0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
39
+ },
40
+ computed: {
41
+ wrapperClass: function wrapperClass() {
42
+ var _a = this.$props,
43
+ expanded = _a.expanded,
44
+ disabled = _a.disabled;
45
+ return {
46
+ 'k-expander': true,
47
+ 'k-expanded': expanded,
48
+ 'k-focus': this.focused && !disabled,
49
+ 'k-disabled': disabled
50
+ };
51
+ },
52
+ expandIconClass: function expandIconClass() {
53
+ var _a;
54
+
55
+ var _b = this.$props,
56
+ expanded = _b.expanded,
57
+ expandIcon = _b.expandIcon,
58
+ collapseIcon = _b.collapseIcon;
59
+ return _a = {
60
+ 'k-icon': true,
61
+ 'k-i-chevron-down': !expanded && !expandIcon,
62
+ 'k-i-chevron-up': expanded && !collapseIcon
63
+ }, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
64
+ }
65
+ },
66
+ data: function data() {
67
+ return {
68
+ focused: false
69
+ };
70
+ },
71
+ // @ts-ignore
72
+ setup: !isV3 ? undefined : function () {
73
+ var v3 = !!isV3;
74
+ return {
75
+ v3: v3
76
+ };
77
+ },
78
+ render: function render(createElement) {
79
+ var h = gh || createElement;
80
+ var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
81
+ var _a = this.$props,
82
+ _b = _a.expanded,
83
+ expanded = _b === void 0 ? false : _b,
84
+ disabled = _a.disabled,
85
+ title = _a.title,
86
+ titleRender = _a.titleRender,
87
+ subtitle = _a.subtitle,
88
+ subtitleRender = _a.subtitleRender,
89
+ ariaControls = _a.ariaControls,
90
+ tabIndex = _a.tabIndex,
91
+ id = _a.id;
92
+ var titleTemplate = kendo_vue_common_1.templateRendering.call(this, titleRender, kendo_vue_common_1.getListeners.call(this));
93
+ var titleToRender = kendo_vue_common_1.getTemplate.call(this, {
94
+ h: h,
95
+ template: titleTemplate,
96
+ defaultRendering: h("div", {
97
+ "class": "k-expander-title"
98
+ }, [title])
99
+ });
100
+ var subtitleTemplate = kendo_vue_common_1.templateRendering.call(this, subtitleRender, kendo_vue_common_1.getListeners.call(this));
101
+ var subtitleToRender = kendo_vue_common_1.getTemplate.call(this, {
102
+ h: h,
103
+ template: subtitleTemplate,
104
+ defaultRendering: h("div", {
105
+ "class": "k-expander-sub-title"
106
+ }, [subtitle])
107
+ });
108
+ return h("div", {
109
+ "class": this.wrapperClass,
110
+ onFocusin: this.handleFocus,
111
+ on: this.v3 ? undefined : {
112
+ "focusin": this.handleFocus,
113
+ "focusout": this.handleBlur,
114
+ "keydown": this.onKeyDown
115
+ },
116
+ onFocusout: this.handleBlur,
117
+ id: id // dir={useRtl(elementRef, dir)}
118
+ ,
119
+ attrs: this.v3 ? undefined : {
120
+ id: id
121
+ },
122
+ onKeydown: this.onKeyDown
123
+ }, [h("div", {
124
+ role: 'button',
125
+ attrs: this.v3 ? undefined : {
126
+ role: 'button',
127
+ "aria-controls": ariaControls,
128
+ "aria-expanded": expanded,
129
+ "aria-disabled": disabled,
130
+ tabIndex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled)
131
+ },
132
+ ref: 'header',
133
+ "aria-controls": ariaControls,
134
+ "aria-expanded": expanded,
135
+ "aria-disabled": disabled,
136
+ tabIndex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
137
+ "class": "k-expander-header",
138
+ onClick: this.onClick,
139
+ on: this.v3 ? undefined : {
140
+ "click": this.onClick
141
+ }
142
+ }, [titleToRender, h("span", {
143
+ "class": "k-spacer"
144
+ }), subtitleToRender, h("span", {
145
+ "class": "k-expander-indicator"
146
+ }, [h("span", {
147
+ "class": this.expandIconClass
148
+ })])]), defaultSlots]);
149
+ },
150
+ methods: {
151
+ onClick: function onClick(event) {
152
+ if (this.$props.disabled) {
153
+ return;
154
+ }
155
+
156
+ this.$emit('action', {
157
+ event: event,
158
+ expanded: this.expanded
159
+ });
160
+ },
161
+ onKeyDown: function onKeyDown(event) {
162
+ if (this.$props.disabled) {
163
+ return;
164
+ }
165
+
166
+ if ((event.keyCode === kendo_vue_common_1.Keys.enter || event.keyCode === kendo_vue_common_1.Keys.space) && event.target === this.$refs.header) {
167
+ event.preventDefault();
168
+ this.$emit('action', {
169
+ event: event,
170
+ expanded: this.expanded
171
+ });
172
+ }
173
+ },
174
+ handleFocus: function handleFocus() {
175
+ if (this.$props.disabled) {
176
+ return;
177
+ }
178
+
179
+ this.focused = true;
180
+ },
181
+ handleBlur: function handleBlur() {
182
+ if (this.$props.disabled) {
183
+ return;
184
+ }
185
+
186
+ this.focused = false;
187
+ }
188
+ }
189
+ };
190
+ exports.ExpansionPanelVue2 = ExpansionPanelVue2;
191
+ /**
192
+ * @hidden
193
+ */
194
+
195
+ var ExpansionPanel = ExpansionPanelVue2;
196
+ exports.ExpansionPanel = ExpansionPanel;
@@ -0,0 +1,19 @@
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 ExpansionPanelContentAll extends Vue2type {
10
+ }
11
+ /**
12
+ * @hidden
13
+ */
14
+ declare const ExpansionPanelContentVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ExpansionPanelContentAll>, {}, RecordPropsDefinition<{}>>;
15
+ /**
16
+ * @hidden
17
+ */
18
+ declare let ExpansionPanelContent: DefineComponent<{}, any, {}, {}, {}, {}, {}, {}, string, {}, {}, {}>;
19
+ export { ExpansionPanelContent, ExpansionPanelContentVue2 };
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExpansionPanelContentVue2 = exports.ExpansionPanelContent = void 0; // @ts-ignore
7
+
8
+ var Vue = require("vue");
9
+
10
+ var allVue = Vue;
11
+ var gh = allVue.h;
12
+ var isV3 = allVue.version && allVue.version[0] === '3';
13
+
14
+ var package_metadata_1 = require("../package-metadata");
15
+
16
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
17
+ /**
18
+ * @hidden
19
+ */
20
+
21
+
22
+ var ExpansionPanelContentVue2 = {
23
+ name: 'KendoExpansionPanelContent',
24
+ created: function created() {
25
+ (0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
26
+ },
27
+ // @ts-ignore
28
+ setup: !isV3 ? undefined : function () {
29
+ var v3 = !!isV3;
30
+ return {
31
+ v3: v3
32
+ };
33
+ },
34
+ render: function render(createElement) {
35
+ var h = gh || createElement;
36
+ var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
37
+ return h("div", {
38
+ "class": 'k-expander-content-wrapper'
39
+ }, [h("div", {
40
+ "class": 'k-expander-content'
41
+ }, [defaultSlots])]);
42
+ }
43
+ };
44
+ exports.ExpansionPanelContentVue2 = ExpansionPanelContentVue2;
45
+ /**
46
+ * @hidden
47
+ */
48
+
49
+ var ExpansionPanelContent = ExpansionPanelContentVue2;
50
+ exports.ExpansionPanelContent = ExpansionPanelContent;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * The ExpansionPanel ref.
3
+ */
4
+ export interface ExpansionPanelHandle {
5
+ /**
6
+ * The ExpansionPanel element.
7
+ */
8
+ element: HTMLDivElement | null;
9
+ }
10
+ /**
11
+ * The arguments for the `onAction` ExpansionPanel event.
12
+ */
13
+ export interface ExpansionPanelActionEvent {
14
+ /**
15
+ * Represents the `expanded` state of the ExpansionPanel.
16
+ */
17
+ expanded: boolean;
18
+ }
19
+ /**
20
+ * The props of the ExpansionPanel component.
21
+ */
22
+ export interface ExpansionPanelProps {
23
+ /**
24
+ * Sets additional CSS classes to the ExpansionPanel.
25
+ */
26
+ class?: string;
27
+ /**
28
+ * Sets the `id` property of the root ExpansionPanel element.
29
+ */
30
+ id?: string;
31
+ /**
32
+ * Specifies the primary text in the header of the ExpansionPanel.
33
+ */
34
+ title?: string;
35
+ /**
36
+ * Specifies the secondary text in the header of the ExpansionPanel, which is rendered next to the collapse/expand icon.
37
+ */
38
+ subtitle?: string;
39
+ /**
40
+ * Specifies the primary text template in the header of the ExpansionPanel.
41
+ */
42
+ titleRender?: any;
43
+ /**
44
+ * Specifies the secondary text in the header of the ExpansionPanel, which is rendered next to the collapse/expand icon.
45
+ */
46
+ subtitleRender?: any;
47
+ /**
48
+ * Sets a custom icon via css class(es), for the expanded state of the ExpansionPanel.
49
+ */
50
+ expandIcon?: string;
51
+ /**
52
+ * Sets a custom icon via css class(es), for the collapsed state of the ExpansionPanel.
53
+ */
54
+ collapseIcon?: string;
55
+ /**
56
+ * Sets the `dir` property of the ExpansionPanel.
57
+ */
58
+ dir?: string;
59
+ /**
60
+ * Sets the `tabIndex` property of the ExpansionPanel.
61
+ */
62
+ tabIndex?: number;
63
+ /**
64
+ * Sets the `expanded` state of the ExpansionPanel.
65
+ */
66
+ expanded?: boolean;
67
+ /**
68
+ * Sets the `disabled` state of the ExpansionPanel.
69
+ */
70
+ disabled?: boolean;
71
+ /**
72
+ * Sets `aria-controls`. The value should represent the `id` of the controlled content element.
73
+ */
74
+ ariaControls?: string;
75
+ /**
76
+ * The event handler that will be fired when the expanded state of the ExpansionPanel is about to change.
77
+ */
78
+ onAction?: (event: ExpansionPanelActionEvent) => void;
79
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './ExpansionPanel';
2
+ export * from './ExpansionPanelContent';
3
+ export * from './interfaces';
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var __createBinding = undefined && undefined.__createBinding || (Object.create ? function (o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return m[k];
12
+ }
13
+ };
14
+ }
15
+
16
+ Object.defineProperty(o, k2, desc);
17
+ } : function (o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ });
21
+
22
+ var __exportStar = undefined && undefined.__exportStar || function (m, exports) {
23
+ for (var p in m) {
24
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
25
+ }
26
+ };
27
+
28
+ Object.defineProperty(exports, "__esModule", {
29
+ value: true
30
+ });
31
+
32
+ __exportStar(require("./ExpansionPanel"), exports);
33
+
34
+ __exportStar(require("./ExpansionPanelContent"), exports);
35
+
36
+ __exportStar(require("./interfaces"), exports);