@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 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/main.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ export * from './badge/Badge';
2
+ export * from './badge/BadgeProps';
3
+ export * from './badge/BadgeContainer';
4
+ export * from './badge/BadgeContainerProps';
1
5
  export * from './loader/Loader';
2
6
  export * from './loader/LoaderProps';
3
7
  export * from './loader/models/size';
package/dist/es/main.js CHANGED
@@ -1,3 +1,7 @@
1
+ export * from './badge/Badge';
2
+ export * from './badge/BadgeProps';
3
+ export * from './badge/BadgeContainer';
4
+ export * from './badge/BadgeContainerProps';
1
5
  export * from './loader/Loader';
2
6
  export * from './loader/LoaderProps';
3
7
  export * from './loader/models/size';
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-indicators',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1659429139,
8
+ publishDate: 1660543598,
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 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ // @ts-ignore
2
+ import { DefineComponent } from 'vue';
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+
6
+ /**
7
+ * @hidden
8
+ */
9
+ // @ts-ignore
10
+ type Vue2type = Vue.default;
11
+
12
+ /**
13
+ * @hidden
14
+ */
15
+ // @ts-ignore
16
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
+ /**
18
+ * @hidden
19
+ */
20
+ // @ts-ignore
21
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -0,0 +1,50 @@
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 { BadgeProps } from './BadgeProps';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export interface BadgeState {
12
+ }
13
+ /**
14
+ * @hidden
15
+ */
16
+ export interface BadgeComputed {
17
+ [key: string]: any;
18
+ badgeClasses: object;
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface BadgeMethods {
24
+ [key: string]: any;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface BadgeData {
30
+ currentDir?: string;
31
+ }
32
+ /**
33
+ * @hidden
34
+ */
35
+ export interface BadgeAll extends Vue, BadgeMethods, BadgeData, BadgeComputed, BadgeState {
36
+ }
37
+ /**
38
+ * @hidden
39
+ */
40
+ declare let BadgeVue2: ComponentOptions<BadgeAll, DefaultData<BadgeData>, DefaultMethods<BadgeAll>, BadgeComputed, RecordPropsDefinition<BadgeProps>>;
41
+ /**
42
+ * Represents the [Kendo UI for Vue Badge component]({% slug overview_badge_props %}).
43
+ *
44
+ * @example
45
+ * ```jsx
46
+ * <Badge>99+</Badge>
47
+ * ```
48
+ */
49
+ declare const Badge: DefineComponent<BadgeProps, any, BadgeData, BadgeComputed, BadgeMethods, {}, {}, {}, string, BadgeProps, BadgeProps, {}>;
50
+ export { Badge, BadgeVue2 };
@@ -0,0 +1,126 @@
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, getDir, kendoThemeMaps } from '@progress/kendo-vue-common';
7
+ import { validatePackage } from '@progress/kendo-vue-common';
8
+ import { packageMetadata } from '../package-metadata.js';
9
+ /**
10
+ * @hidden
11
+ */
12
+
13
+ var BadgeVue2 = {
14
+ name: 'KendoBadge',
15
+ props: {
16
+ dir: String,
17
+ align: {
18
+ type: Object,
19
+ default: function _default() {
20
+ return {
21
+ vertical: 'top',
22
+ horizontal: 'end'
23
+ };
24
+ }
25
+ },
26
+ size: {
27
+ type: String,
28
+ default: 'medium',
29
+ validator: function validator(value) {
30
+ return ['small', 'medium', 'large'].includes(value);
31
+ }
32
+ },
33
+ fillMode: {
34
+ type: String,
35
+ default: 'solid',
36
+ validator: function validator(value) {
37
+ return ['solid', 'outline'].includes(value);
38
+ }
39
+ },
40
+ themeColor: {
41
+ type: String,
42
+ default: 'primary',
43
+ validator: function validator(value) {
44
+ return ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'].includes(value);
45
+ }
46
+ },
47
+ rounded: {
48
+ type: String,
49
+ default: 'medium',
50
+ validator: function validator(value) {
51
+ return [null, 'small', 'medium', 'large', 'full'].includes(value);
52
+ }
53
+ },
54
+ position: {
55
+ type: String,
56
+ default: 'edge',
57
+ validator: function validator(value) {
58
+ return ['edge', 'outside', 'inside'].includes(value);
59
+ }
60
+ },
61
+ cutoutBorder: Boolean
62
+ },
63
+ created: function created() {
64
+ validatePackage(packageMetadata);
65
+ },
66
+ mounted: function mounted() {
67
+ this.currentDir = getDir(this.$el, this.$props.dir);
68
+ },
69
+ computed: {
70
+ badgeClasses: function badgeClasses() {
71
+ var _a;
72
+
73
+ var _b = this.$props,
74
+ size = _b.size,
75
+ fillMode = _b.fillMode,
76
+ cutoutBorder = _b.cutoutBorder,
77
+ position = _b.position,
78
+ align = _b.align,
79
+ themeColor = _b.themeColor,
80
+ rounded = _b.rounded;
81
+ return _a = {
82
+ 'k-badge': true,
83
+ 'k-badge-sm': size === 'small',
84
+ 'k-badge-md': size === 'medium',
85
+ 'k-badge-lg': size === 'large'
86
+ }, _a["k-badge-".concat(fillMode)] = fillMode, _a["k-badge-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor), _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-badge-border-cutout'] = cutoutBorder, _a["k-badge-".concat(position)] = position, _a['k-top-start'] = align.vertical === 'top' && align.horizontal === 'start', _a['k-top-end'] = align.vertical === 'top' && align.horizontal === 'end', _a['k-bottom-start'] = align.vertical === 'bottom' && align.horizontal === 'start', _a['k-bottom-end'] = align.vertical === 'bottom' && align.horizontal === 'end', _a;
87
+ }
88
+ },
89
+ // @ts-ignore
90
+ setup: !isV3 ? undefined : function () {
91
+ var v3 = !!isV3;
92
+ return {
93
+ v3: v3
94
+ };
95
+ },
96
+ // @ts-ignore
97
+ render: function render(createElement) {
98
+ var h = gh || createElement;
99
+ var defaultSlot = getDefaultSlots(this);
100
+ return h("span", {
101
+ "class": this.badgeClasses,
102
+ dir: this.currentDir,
103
+ attrs: this.v3 ? undefined : {
104
+ dir: this.currentDir
105
+ }
106
+ }, [defaultSlot]);
107
+ },
108
+ methods: {
109
+ focusElement: function focusElement() {
110
+ if (this.$el) {
111
+ this.$el.focus();
112
+ }
113
+ }
114
+ }
115
+ };
116
+ /**
117
+ * Represents the [Kendo UI for Vue Badge component]({% slug overview_badge_props %}).
118
+ *
119
+ * @example
120
+ * ```jsx
121
+ * <Badge>99+</Badge>
122
+ * ```
123
+ */
124
+
125
+ var Badge = BadgeVue2;
126
+ export { Badge, BadgeVue2 };
@@ -0,0 +1,50 @@
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 { BadgeProps } from './BadgeProps';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export interface BadgeContainerState {
12
+ }
13
+ /**
14
+ * @hidden
15
+ */
16
+ export interface BadgeContainerComputed {
17
+ [key: string]: any;
18
+ badgeContainerClasses: object;
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface BadgeContainerMethods {
24
+ [key: string]: any;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface BadgeContainerData {
30
+ currentDir?: string;
31
+ }
32
+ /**
33
+ * @hidden
34
+ */
35
+ export interface BadgeContainerAll extends Vue, BadgeContainerMethods, BadgeContainerData, BadgeContainerComputed, BadgeContainerState {
36
+ }
37
+ /**
38
+ * @hidden
39
+ */
40
+ declare let BadgeContainerVue2: ComponentOptions<BadgeContainerAll, DefaultData<BadgeContainerData>, DefaultMethods<BadgeContainerAll>, BadgeContainerComputed, RecordPropsDefinition<BadgeProps>>;
41
+ /**
42
+ * Represents the [Kendo UI for Vue BadgeContainer component]({% slug overview_badge_props %}).
43
+ *
44
+ * @example
45
+ * ```jsx
46
+ * <BadgeContainer>99+</BadgeContainer>
47
+ * ```
48
+ */
49
+ declare const BadgeContainer: DefineComponent<BadgeProps, any, BadgeContainerData, BadgeContainerComputed, BadgeContainerMethods, {}, {}, {}, string, BadgeProps, BadgeProps, {}>;
50
+ export { BadgeContainer, BadgeContainerVue2 };
@@ -0,0 +1,139 @@
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
18
+ import * as Vue from 'vue';
19
+ var allVue = Vue;
20
+ var gh = allVue.h;
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
+ import { getDefaultSlots, getDir } from '@progress/kendo-vue-common';
23
+ import { validatePackage } from '@progress/kendo-vue-common';
24
+ import { packageMetadata } from '../package-metadata.js';
25
+ import { Badge } from './Badge.js';
26
+ /**
27
+ * @hidden
28
+ */
29
+
30
+ var BadgeContainerVue2 = {
31
+ name: 'KendoBadgeContainer',
32
+ props: {
33
+ dir: String,
34
+ align: {
35
+ type: Object,
36
+ default: function _default() {
37
+ return {
38
+ vertical: 'top',
39
+ horizontal: 'end'
40
+ };
41
+ }
42
+ },
43
+ size: {
44
+ type: String,
45
+ default: 'medium',
46
+ validator: function validator(value) {
47
+ return ['small', 'medium', 'large'].includes(value);
48
+ }
49
+ },
50
+ fillMode: {
51
+ type: String,
52
+ default: 'solid',
53
+ validator: function validator(value) {
54
+ return ['solid', 'outline'].includes(value);
55
+ }
56
+ },
57
+ themeColor: {
58
+ type: String,
59
+ default: 'primary',
60
+ validator: function validator(value) {
61
+ return ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'].includes(value);
62
+ }
63
+ },
64
+ rounded: {
65
+ type: String,
66
+ default: 'medium',
67
+ validator: function validator(value) {
68
+ return [null, 'small', 'medium', 'large', 'full'].includes(value);
69
+ }
70
+ },
71
+ position: {
72
+ type: String,
73
+ default: 'edge',
74
+ validator: function validator(value) {
75
+ return ['edge', 'outside', 'inside'].includes(value);
76
+ }
77
+ },
78
+ cutoutBorder: Boolean
79
+ },
80
+ created: function created() {
81
+ validatePackage(packageMetadata);
82
+ },
83
+ mounted: function mounted() {
84
+ this.currentDir = getDir(this.$el, this.$props.dir);
85
+ },
86
+ computed: {
87
+ badgeContainerClasses: function badgeContainerClasses() {
88
+ return {
89
+ 'k-badge-container': true
90
+ };
91
+ }
92
+ },
93
+ // @ts-ignore
94
+ setup: !isV3 ? undefined : function () {
95
+ var v3 = !!isV3;
96
+ return {
97
+ v3: v3
98
+ };
99
+ },
100
+ // @ts-ignore
101
+ render: function render(createElement) {
102
+ var h = gh || createElement;
103
+ var defaultSlot = getDefaultSlots(this);
104
+
105
+ var badgeProps = __assign({}, this.$props);
106
+
107
+ var badge = h(Badge, __assign({
108
+ attrs: this.v3 ? undefined : badgeProps
109
+ }, badgeProps));
110
+ return h("span", {
111
+ "class": this.badgeContainerClasses,
112
+ style: {
113
+ display: 'inline-block'
114
+ },
115
+ dir: this.currentDir,
116
+ attrs: this.v3 ? undefined : {
117
+ dir: this.currentDir
118
+ }
119
+ }, [defaultSlot, badge]);
120
+ },
121
+ methods: {
122
+ focusElement: function focusElement() {
123
+ if (this.$el) {
124
+ this.$el.focus();
125
+ }
126
+ }
127
+ }
128
+ };
129
+ /**
130
+ * Represents the [Kendo UI for Vue BadgeContainer component]({% slug overview_badge_props %}).
131
+ *
132
+ * @example
133
+ * ```jsx
134
+ * <BadgeContainer>99+</BadgeContainer>
135
+ * ```
136
+ */
137
+
138
+ var BadgeContainer = BadgeContainerVue2;
139
+ export { BadgeContainer, BadgeContainerVue2 };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Represents the props of the [Kendo UI for Vue BadgeContainer component]({% slug overview_badge %}).
3
+ */
4
+ export interface BadgeContainerProps {
5
+ /**
6
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
7
+ */
8
+ dir?: string;
9
+ }
@@ -0,0 +1 @@
1
+ export {};