@progress/kendo-vue-indicators 3.5.0 → 3.5.1-dev.202208150613

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 (60) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/js/kendo-vue-indicators.js +1 -1
  3. package/dist/es/badge/Badge.d.ts +50 -0
  4. package/dist/es/badge/Badge.js +126 -0
  5. package/dist/es/badge/BadgeContainer.d.ts +50 -0
  6. package/dist/es/badge/BadgeContainer.js +139 -0
  7. package/dist/es/badge/BadgeContainerProps.d.ts +9 -0
  8. package/dist/es/badge/BadgeContainerProps.js +1 -0
  9. package/dist/es/badge/BadgeProps.d.ts +183 -0
  10. package/dist/es/badge/BadgeProps.js +1 -0
  11. package/dist/es/loader/LoaderProps.js +1 -0
  12. package/dist/es/loader/models/size.js +1 -0
  13. package/dist/es/loader/models/theme-color.js +1 -0
  14. package/dist/es/loader/models/type.js +1 -0
  15. package/dist/es/main.d.ts +4 -0
  16. package/dist/es/main.js +4 -0
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/skeleton/SkeletonProps.js +1 -0
  19. package/dist/esm/additionalTypes.ts +21 -0
  20. package/dist/esm/badge/Badge.d.ts +50 -0
  21. package/dist/esm/badge/Badge.js +126 -0
  22. package/dist/esm/badge/BadgeContainer.d.ts +50 -0
  23. package/dist/esm/badge/BadgeContainer.js +139 -0
  24. package/dist/esm/badge/BadgeContainerProps.d.ts +9 -0
  25. package/dist/esm/badge/BadgeContainerProps.js +1 -0
  26. package/dist/esm/badge/BadgeProps.d.ts +183 -0
  27. package/dist/esm/badge/BadgeProps.js +1 -0
  28. package/dist/esm/loader/Loader.d.ts +57 -0
  29. package/dist/esm/loader/Loader.js +114 -0
  30. package/dist/esm/loader/LoaderProps.d.ts +43 -0
  31. package/dist/esm/loader/LoaderProps.js +1 -0
  32. package/dist/esm/loader/models/size.d.ts +11 -0
  33. package/dist/esm/loader/models/size.js +1 -0
  34. package/dist/esm/loader/models/theme-color.d.ts +18 -0
  35. package/dist/esm/loader/models/theme-color.js +1 -0
  36. package/dist/esm/loader/models/type.d.ts +10 -0
  37. package/dist/esm/loader/models/type.js +1 -0
  38. package/dist/esm/main.d.ts +11 -0
  39. package/dist/esm/main.js +11 -0
  40. package/dist/esm/package-metadata.d.ts +5 -0
  41. package/dist/esm/package-metadata.js +11 -0
  42. package/dist/esm/package.json +3 -0
  43. package/dist/esm/skeleton/Skeleton.d.ts +57 -0
  44. package/dist/esm/skeleton/Skeleton.js +69 -0
  45. package/dist/esm/skeleton/SkeletonProps.d.ts +46 -0
  46. package/dist/esm/skeleton/SkeletonProps.js +1 -0
  47. package/dist/npm/badge/Badge.d.ts +50 -0
  48. package/dist/npm/badge/Badge.js +138 -0
  49. package/dist/npm/badge/BadgeContainer.d.ts +50 -0
  50. package/dist/npm/badge/BadgeContainer.js +152 -0
  51. package/dist/npm/badge/BadgeContainerProps.d.ts +9 -0
  52. package/dist/npm/badge/BadgeContainerProps.js +2 -0
  53. package/dist/npm/badge/BadgeProps.d.ts +183 -0
  54. package/dist/npm/badge/BadgeProps.js +2 -0
  55. package/dist/npm/loader/Loader.js +1 -1
  56. package/dist/npm/main.d.ts +4 -0
  57. package/dist/npm/main.js +10 -2
  58. package/dist/npm/package-metadata.js +1 -1
  59. package/dist/npm/skeleton/Skeleton.js +3 -3
  60. package/package.json +14 -8
@@ -0,0 +1,183 @@
1
+ /**
2
+ * Represents the props of the [KendoReact Badge component]({% slug overview_badge %}).
3
+ */
4
+ export interface BadgeProps {
5
+ /**
6
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
7
+ */
8
+ dir?: string;
9
+ /**
10
+ * Specifies the size of the Badge.
11
+ *
12
+ * The possible values are:
13
+ * * `small`
14
+ * * `medium` (Default)
15
+ * * `large`
16
+ * * null—Does not set a size `className`
17
+ *
18
+ * @default `medium`
19
+ */
20
+ size?: null | 'small' | 'medium' | 'large' | string;
21
+ /**
22
+ * Specifies the roundness of the Badge.
23
+ *
24
+ * The possible values are:
25
+ * - small
26
+ * - medium (Default)
27
+ * - large
28
+ * - full
29
+ * - null—Does not set a rounded `className`
30
+ *
31
+ * @default `medium`
32
+ */
33
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
34
+ /**
35
+ * Specifies the appearance fill style of the Badge.
36
+ *
37
+ * The possible values are:
38
+ * * `solid` (Default)
39
+ * * `outline`
40
+ * * null—Does not set a fillMode `className`
41
+ *
42
+ * @default `solid`
43
+ */
44
+ fillMode?: null | 'solid' | 'outline' | string;
45
+ /**
46
+ * Specifies the theme color of the Badge.
47
+ *
48
+ * The possible values are:
49
+ * * `primary` (Default)—Applies coloring based on primary theme color.
50
+ * * `secondary`—Applies coloring based on secondary theme color.
51
+ * * `tertiary`— Applies coloring based on tertiary theme color.
52
+ * * `inherit`— Applies inherited coloring value.
53
+ * * `info`—Applies coloring based on info theme color.
54
+ * * `success`— Applies coloring based on success theme color.
55
+ * * `warning`— Applies coloring based on warning theme color.
56
+ * * `error`— Applies coloring based on error theme color.
57
+ * * `dark`— Applies coloring based on dark theme color.
58
+ * * `light`— Applies coloring based on light theme color.
59
+ * * `inverse`— Applies coloring based on inverse theme color.
60
+ * * null—Does not set a themeColor `className`.
61
+ *
62
+ * @default `primary`
63
+ */
64
+ themeColor?: null | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'inherit' | string;
65
+ /**
66
+ * Specifies the alignment of the Badge.
67
+ *
68
+ * The possible keys are:
69
+ * * `horizontal`— Defines the possible horizontal alignment of the Badge.
70
+ * * `start`—Uses the start point of the parent element.
71
+ * * `end`(Default)—Uses the end point of the parent element.
72
+ * * `vertical`— Defines the possible vertical alignment of the Badge.
73
+ * * `top`(Default)—Uses the top point of the parent element.
74
+ * * `bottom`—Uses the bottom point of the parent element.
75
+ *
76
+ */
77
+ align?: {
78
+ /**
79
+ * Defines the possible horizontal alignment of the Badge.
80
+ *
81
+ * The available values are:
82
+ * - `start`—Uses the start point of the parent element.
83
+ * - `end`(Default)—Uses the end point of the parent element.
84
+ */
85
+ horizontal: 'start' | 'end';
86
+ /**
87
+ * Defines the possible vertical alignment of the Badge.
88
+ *
89
+ * The available values are:
90
+ * - `top`(Default)—Uses the top point of the parent element.
91
+ * - `bottom`—Uses the bottom point of the parent element.
92
+ */
93
+ vertical: 'top' | 'bottom';
94
+ };
95
+ /**
96
+ * Specifies the position of the Badge relative to the edge of the container element.
97
+ *
98
+ * The possible values are:
99
+ * * `edge` (Default)—The center of the Badge is positioned on the edge of the container element.
100
+ * * `outside`—The Badge is entirely positioned outside the edge of the container element.
101
+ * * `inside`—The Badge is entirely positioned inside the edge of the the container element.
102
+ *
103
+ * @default `edge`
104
+ */
105
+ position?: 'edge' | 'outside' | 'inside' | string;
106
+ /**
107
+ * Specifies wether or not to render additional "cutout" border around the Badge.
108
+ *
109
+ * The possible values are:
110
+ * * `true`
111
+ * * `false` (Default)
112
+ *
113
+ */
114
+ cutoutBorder?: boolean;
115
+ }
116
+ /**
117
+ * Specifies the theme color of the Badge.
118
+ *
119
+ * The possible values are:
120
+ * * `primary` (Default)—Applies coloring based on primary theme color.
121
+ * * `secondary`—Applies coloring based on secondary theme color.
122
+ * * `tertiary`— Applies coloring based on tertiary theme color.
123
+ * * `inherit`— Applies inherited coloring value.
124
+ * * `info`—Applies coloring based on info theme color.
125
+ * * `success`— Applies coloring based on success theme color.
126
+ * * `warning`— Applies coloring based on warning theme color.
127
+ * * `error`— Applies coloring based on error theme color.
128
+ * * `dark`— Applies coloring based on dark theme color.
129
+ * * `light`— Applies coloring based on light theme color.
130
+ * * `inverse`— Applies coloring based on inverse theme color.
131
+ *
132
+ */
133
+ export declare type BadgeThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'inherit';
134
+ /**
135
+ * Specifies the size of the Badge.
136
+ *
137
+ * The possible values are:
138
+ * * `small`
139
+ * * `medium` (Default)
140
+ * * `large`
141
+ *
142
+ */
143
+ export declare type BadgeSize = 'small' | 'medium' | 'large';
144
+ /**
145
+ * Specifies the horizontal and vertical alignment of the Badge in a relation to the element.
146
+ */
147
+ export interface BadgeAlign {
148
+ /**
149
+ * Defines the possible horizontal alignment of the Badge.
150
+ *
151
+ * The available values are:
152
+ * - `start`—Uses the start point of the parent element.
153
+ * - `end`(Default)—Uses the end point of the parent element.
154
+ */
155
+ horizontal: 'start' | 'end';
156
+ /**
157
+ * Defines the possible vertical alignment of the Badge.
158
+ *
159
+ * The available values are:
160
+ * - `top`(Default)—Uses the top point of the parent element.
161
+ * - `bottom`—Uses the bottom point of the parent element.
162
+ */
163
+ vertical: 'top' | 'bottom';
164
+ }
165
+ /**
166
+ * Specifies the appearance fill style of the Badge.
167
+ *
168
+ * The possible values are:
169
+ * * `solid` (Default)
170
+ * * `outline`
171
+ *
172
+ */
173
+ export declare type BadgeFill = 'solid' | 'outline';
174
+ /**
175
+ * Specifies the position of the Badge relative to the edge of the container element.
176
+ *
177
+ * The possible values are:
178
+ * * `edge` (Default)—The center of the Badge is positioned on the edge of the container element.
179
+ * * `outside`—The Badge is entirely positioned outside the edge of the container element.
180
+ * * `inside`—The Badge is entirely positioned inside the edge of the the container element.
181
+ *
182
+ */
183
+ export declare type BadgePosition = 'edge' | 'outside' | 'inside';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,57 @@
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 { LoaderProps } from './LoaderProps';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export interface LoaderHandle {
12
+ /**
13
+ * The Loader element.
14
+ */
15
+ element: HTMLSpanElement | null;
16
+ /**
17
+ * Focus the Loader.
18
+ */
19
+ focus: () => void;
20
+ }
21
+ /**
22
+ * @hidden
23
+ */
24
+ export interface LoaderState {
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface LoaderComputed {
30
+ [key: string]: any;
31
+ loaderClasses: object;
32
+ }
33
+ /**
34
+ * @hidden
35
+ */
36
+ export interface LoaderMethods {
37
+ [key: string]: any;
38
+ }
39
+ /**
40
+ * @hidden
41
+ */
42
+ export interface LoaderData {
43
+ }
44
+ /**
45
+ * @hidden
46
+ */
47
+ export interface LoaderAll extends Vue, LoaderMethods, LoaderData, LoaderComputed, LoaderState {
48
+ }
49
+ /**
50
+ * @hidden
51
+ */
52
+ declare let LoaderVue2: ComponentOptions<LoaderAll, DefaultData<LoaderData>, DefaultMethods<LoaderAll>, LoaderComputed, RecordPropsDefinition<LoaderProps>>;
53
+ /**
54
+ * @hidden
55
+ */
56
+ declare const Loader: DefineComponent<LoaderProps, any, LoaderData, LoaderComputed, LoaderMethods, {}, {}, {}, string, LoaderProps, LoaderProps, {}>;
57
+ export { Loader, LoaderVue2 };
@@ -0,0 +1,114 @@
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 { validatePackage } from '@progress/kendo-vue-common';
7
+ import { packageMetadata } from '../package-metadata.js';
8
+ var SEGMENT_COUNT = {
9
+ 'pulsing': 2,
10
+ 'infinite-spinner': 3,
11
+ 'converging-spinner': 4
12
+ };
13
+ var TYPE_CLASSES = {
14
+ 'pulsing': 'k-loader-pulsing-2',
15
+ 'infinite-spinner': 'k-loader-spinner-3',
16
+ 'converging-spinner': 'k-loader-spinner-4'
17
+ };
18
+ /**
19
+ * @hidden
20
+ */
21
+
22
+ var LoaderVue2 = {
23
+ name: 'KendoLoader',
24
+ props: {
25
+ type: {
26
+ type: String,
27
+ default: 'pulsing',
28
+ validator: function validator(value) {
29
+ return ['pulsing', 'infinite-spinner', 'converging-spinner'].includes(value);
30
+ }
31
+ },
32
+ size: {
33
+ type: String,
34
+ default: 'medium',
35
+ validator: function validator(value) {
36
+ return ['small', 'medium', 'large'].includes(value);
37
+ }
38
+ },
39
+ themeColor: {
40
+ type: String,
41
+ default: 'primary',
42
+ validator: function validator(value) {
43
+ return ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'].includes(value);
44
+ }
45
+ }
46
+ },
47
+ created: function created() {
48
+ validatePackage(packageMetadata);
49
+ },
50
+ computed: {
51
+ loaderClasses: function loaderClasses() {
52
+ var _a = this.$props,
53
+ type = _a.type,
54
+ size = _a.size,
55
+ themeColor = _a.themeColor;
56
+ return {
57
+ 'k-loader': true,
58
+ 'k-loader-sm': size === 'small',
59
+ 'k-loader-md': size === 'medium',
60
+ 'k-loader-lg': size === 'large',
61
+ 'k-loader-primary': themeColor === 'primary',
62
+ 'k-loader-secondary': themeColor === 'secondary',
63
+ 'k-loader-tertiary': themeColor === 'tertiary',
64
+ 'k-loader-info': themeColor === 'info',
65
+ 'k-loader-success': themeColor === 'success',
66
+ 'k-loader-warning': themeColor === 'warning',
67
+ 'k-loader-error': themeColor === 'error',
68
+ 'k-loader-dark': themeColor === 'dark',
69
+ 'k-loader-light': themeColor === 'light',
70
+ 'k-loader-inverse': themeColor === 'inverse',
71
+ 'k-loader-pulsing-2': type === 'pulsing',
72
+ 'k-loader-spinner-3': type === 'infinite-spinner',
73
+ 'k-loader-spinner-4': type === 'converging-spinner'
74
+ };
75
+ }
76
+ },
77
+ // @ts-ignore
78
+ setup: !isV3 ? undefined : function () {
79
+ var v3 = !!isV3;
80
+ return {
81
+ v3: v3
82
+ };
83
+ },
84
+ // @ts-ignore
85
+ render: function render(createElement) {
86
+ var h = gh || createElement;
87
+ var type = this.$props.type;
88
+ var spans = new Array(SEGMENT_COUNT[type]);
89
+ spans.fill(0, 0, SEGMENT_COUNT[type]);
90
+ return h("div", {
91
+ "class": this.loaderClasses
92
+ }, [h("div", {
93
+ "class": "k-loader-canvas"
94
+ }, [spans.map(function (_, i) {
95
+ return h("span", {
96
+ key: i,
97
+ "class": "k-loader-segment"
98
+ });
99
+ }, this)])]);
100
+ },
101
+ methods: {
102
+ focus: function focus(e) {
103
+ if (this.$el) {
104
+ this.$el.focus(e);
105
+ }
106
+ }
107
+ }
108
+ };
109
+ /**
110
+ * @hidden
111
+ */
112
+
113
+ var Loader = LoaderVue2;
114
+ export { Loader, LoaderVue2 };
@@ -0,0 +1,43 @@
1
+ import { LoaderSize } from './models/size';
2
+ import { LoaderThemeColor } from './models/theme-color';
3
+ import { LoaderType } from './models/type';
4
+ /**
5
+ * Represents the props of the [Kendo UI for Vue Loader component]({% slug overview_loader %}).
6
+ */
7
+ export interface LoaderProps {
8
+ /**
9
+ * Specifies the size of the Loader.
10
+ *
11
+ * The possible values are:
12
+ * * `small`
13
+ * * `medium` (Default)
14
+ * * `large`
15
+ *
16
+ */
17
+ size?: LoaderSize | string;
18
+ /**
19
+ * Specifies the theme color of the Loader.
20
+ *
21
+ * The possible values are:
22
+ * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
23
+ * * `secondary`&mdash;Applies coloring based on secondary theme color.
24
+ * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
25
+ * * `info`&mdash;Applies coloring based on info theme color.
26
+ * * `success`&mdash; Applies coloring based on success theme color.
27
+ * * `warning`&mdash; Applies coloring based on warning theme color.
28
+ * * `error`&mdash; Applies coloring based on error theme color.
29
+ * * `dark`&mdash; Applies coloring based on dark theme color.
30
+ * * `light`&mdash; Applies coloring based on light theme color.
31
+ * * `inverse`&mdash; Applies coloring based on inverse theme color.
32
+ */
33
+ themeColor?: LoaderThemeColor | string;
34
+ /**
35
+ * Specifies the Loader animation type.
36
+ *
37
+ * The possible values are:
38
+ * - `pulsing` (default)
39
+ * - `infinite-spinner`
40
+ * - `converging-spinner`
41
+ */
42
+ type?: LoaderType | string;
43
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Specifies the size of the Loader
3
+ * ([see example]({% slug appearance_loader %}#toc-size)).
4
+ *
5
+ * The possible values are:
6
+ * * `small`
7
+ * * `medium` (Default)
8
+ * * `large`
9
+ *
10
+ */
11
+ export declare type LoaderSize = 'small' | 'medium' | 'large';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Specifies the theme color of the Loader.
3
+ * ([see example]({% slug appearance_loader %}#toc-theme-color)).
4
+ *
5
+ * The possible values are:
6
+ * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
7
+ * * `secondary`&mdash;Applies coloring based on secondary theme color.
8
+ * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
9
+ * * `info`&mdash;Applies coloring based on info theme color.
10
+ * * `success`&mdash; Applies coloring based on success theme color.
11
+ * * `warning`&mdash; Applies coloring based on warning theme color.
12
+ * * `error`&mdash; Applies coloring based on error theme color.
13
+ * * `dark`&mdash; Applies coloring based on dark theme color.
14
+ * * `light`&mdash; Applies coloring based on light theme color.
15
+ * * `inverse`&mdash; Applies coloring based on inverted theme color.
16
+ *
17
+ */
18
+ export declare type LoaderThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Specifies the Loader animation type.
3
+ *
4
+ * The possible values are:
5
+ * - `pulsing` (default)
6
+ * - `infinite-spinner`
7
+ * - `converging-spinner`
8
+ *
9
+ */
10
+ export declare type LoaderType = 'pulsing' | 'infinite-spinner' | 'converging-spinner';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export * from './badge/Badge';
2
+ export * from './badge/BadgeProps';
3
+ export * from './badge/BadgeContainer';
4
+ export * from './badge/BadgeContainerProps';
5
+ export * from './loader/Loader';
6
+ export * from './loader/LoaderProps';
7
+ export * from './loader/models/size';
8
+ export * from './loader/models/theme-color';
9
+ export * from './loader/models/type';
10
+ export * from './skeleton/Skeleton';
11
+ export * from './skeleton/SkeletonProps';
@@ -0,0 +1,11 @@
1
+ export * from './badge/Badge.js';
2
+ export * from './badge/BadgeProps.js';
3
+ export * from './badge/BadgeContainer.js';
4
+ export * from './badge/BadgeContainerProps.js';
5
+ export * from './loader/Loader.js';
6
+ export * from './loader/LoaderProps.js';
7
+ export * from './loader/models/size.js';
8
+ export * from './loader/models/theme-color.js';
9
+ export * from './loader/models/type.js';
10
+ export * from './skeleton/Skeleton.js';
11
+ export * from './skeleton/SkeletonProps.js';
@@ -0,0 +1,5 @@
1
+ import { PackageMetadata } from '@progress/kendo-licensing';
2
+ /**
3
+ * @hidden
4
+ */
5
+ export declare const packageMetadata: PackageMetadata;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var packageMetadata = {
5
+ name: '@progress/kendo-vue-indicators',
6
+ productName: 'Kendo UI for Vue',
7
+ productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
+ publishDate: 1660543598,
9
+ version: '',
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
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,57 @@
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 { SkeletonProps } from './SkeletonProps';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export interface SkeletonHandle {
12
+ /**
13
+ * The Skeleton element.
14
+ */
15
+ element: HTMLSpanElement | null;
16
+ /**
17
+ * Focus the Skeleton.
18
+ */
19
+ focus: () => void;
20
+ }
21
+ /**
22
+ * @hidden
23
+ */
24
+ export interface SkeletonState {
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface SkeletonComputed {
30
+ [key: string]: any;
31
+ skeletonClasses: object;
32
+ }
33
+ /**
34
+ * @hidden
35
+ */
36
+ export interface SkeletonMethods {
37
+ [key: string]: any;
38
+ }
39
+ /**
40
+ * @hidden
41
+ */
42
+ export interface SkeletonData {
43
+ }
44
+ /**
45
+ * @hidden
46
+ */
47
+ export interface SkeletonAll extends Vue, SkeletonMethods, SkeletonData, SkeletonComputed, SkeletonState {
48
+ }
49
+ /**
50
+ * @hidden
51
+ */
52
+ declare let SkeletonVue2: ComponentOptions<SkeletonAll, DefaultData<SkeletonData>, DefaultMethods<SkeletonAll>, SkeletonComputed, RecordPropsDefinition<SkeletonProps>>;
53
+ /**
54
+ * @hidden
55
+ */
56
+ declare const Skeleton: DefineComponent<SkeletonProps, any, SkeletonData, SkeletonComputed, SkeletonMethods, {}, {}, {}, string, SkeletonProps, SkeletonProps, {}>;
57
+ export { Skeleton, SkeletonVue2 };
@@ -0,0 +1,69 @@
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 { validatePackage, isObject } from '@progress/kendo-vue-common';
7
+ import { packageMetadata } from '../package-metadata.js';
8
+ /**
9
+ * @hidden
10
+ */
11
+
12
+ var SkeletonVue2 = {
13
+ name: 'KendoSkeleton',
14
+ props: {
15
+ animation: {
16
+ type: [Object, Boolean],
17
+ default: function _default() {
18
+ return {
19
+ type: 'pulse'
20
+ };
21
+ },
22
+ validator: function validator(value) {
23
+ return ['wave', 'pulse'].includes(value.type);
24
+ }
25
+ },
26
+ shape: {
27
+ type: String,
28
+ default: 'text',
29
+ validator: function validator(value) {
30
+ return ['circle', 'rectangle', 'text'].includes(value);
31
+ }
32
+ }
33
+ },
34
+ created: function created() {
35
+ validatePackage(packageMetadata);
36
+ },
37
+ computed: {
38
+ skeletonClasses: function skeletonClasses() {
39
+ return {
40
+ 'k-skeleton': true,
41
+ 'k-skeleton-circle': this.shape === 'circle',
42
+ 'k-skeleton-rectangle': this.shape === 'rectangle',
43
+ 'k-skeleton-text': this.shape === 'text',
44
+ 'k-skeleton-pulse': isObject(this.animation) && this.animation.type === 'pulse',
45
+ 'k-skeleton-wave': isObject(this.animation) && this.animation.type === 'wave' || this.animation === true
46
+ };
47
+ }
48
+ },
49
+ // @ts-ignore
50
+ setup: !isV3 ? undefined : function () {
51
+ var v3 = !!isV3;
52
+ return {
53
+ v3: v3
54
+ };
55
+ },
56
+ // @ts-ignore
57
+ render: function render(createElement) {
58
+ var h = gh || createElement;
59
+ return h("span", {
60
+ "class": this.skeletonClasses
61
+ });
62
+ }
63
+ };
64
+ /**
65
+ * @hidden
66
+ */
67
+
68
+ var Skeleton = SkeletonVue2;
69
+ export { Skeleton, SkeletonVue2 };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Represents the props of the [Kendo Ui for Vue Skeleton component]({% slug overview_skeleton %}).
3
+ */
4
+ export interface SkeletonProps {
5
+ /**
6
+ * Specifies the animation settings of the Skeleton.
7
+ *
8
+ * The possible keys are:
9
+ * * `type`&mdash;Defines the type of the Skeleton animation.
10
+ * * `wave`&mdash;Shows wave animation effect.
11
+ * * `pulse`(Default)&mdash;Shows pulse animation effect.
12
+ *
13
+ * To disable the animation, set the property to `false`.
14
+ *
15
+ */
16
+ animation?: boolean | SkeletonAnimation;
17
+ /**
18
+ * Specifies the shape of the Skeleton.
19
+ *
20
+ * The possible values are:
21
+ * * `circle`&mdash;Renders a circular Skeleton.
22
+ * * `text`(Default)&mdash;Renders a line Skeleton.
23
+ * * `rectangle`&mdash;Renders a rectangular Skeleton.
24
+ *
25
+ */
26
+ shape?: SkeletonShape | string;
27
+ }
28
+ /**
29
+ * Specifies the shape of the Skeleton.
30
+ *
31
+ * The possible values are:
32
+ * * `circle`&mdash;Renders a circular Skeleton.
33
+ * * `text`(Default)&mdash;Renders a line Skeleton.
34
+ * * `rectangle`&mdash;Renders a rectangular Skeleton.
35
+ *
36
+ */
37
+ export declare type SkeletonShape = 'circle' | 'text' | 'rectangle';
38
+ /**
39
+ * Specifies the animation settings of the Skeleton.
40
+ */
41
+ export interface SkeletonAnimation {
42
+ /**
43
+ * Specifies the type of the Skeleton animation. Defaults to `pulse`.
44
+ */
45
+ type?: 'wave' | 'pulse';
46
+ }
@@ -0,0 +1 @@
1
+ export {};