@progress/kendo-vue-indicators 8.0.3-develop.2 → 8.0.3-develop.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.
- package/badge/Badge.d.ts +93 -0
- package/badge/BadgeContainer.d.ts +101 -0
- package/badge/BadgeContainer.js +1 -1
- package/badge/BadgeContainer.mjs +35 -34
- package/badge/BadgeProps.d.ts +196 -0
- package/dist/cdn/js/kendo-vue-indicators.js +1 -1
- package/index.d.mts +10 -660
- package/index.d.ts +10 -660
- package/loader/Loader.d.ts +68 -0
- package/loader/LoaderProps.d.ts +50 -0
- package/loader/models/size.d.ts +18 -0
- package/loader/models/theme-color.d.ts +25 -0
- package/loader/models/type.d.ts +17 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +11 -5
- package/skeleton/Skeleton.d.ts +71 -0
- package/skeleton/SkeletonProps.d.ts +77 -0
package/badge/Badge.d.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BadgeAlign } from './BadgeProps';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the [Kendo UI for Vue Badge component]({% slug api_indicators_badgeprops %}).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```jsx
|
|
15
|
+
* <Badge>99+</Badge>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const Badge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
|
+
dir: PropType<string>;
|
|
20
|
+
align: {
|
|
21
|
+
type: PropType<BadgeAlign>;
|
|
22
|
+
default: () => BadgeAlign;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<"small" | "medium" | "large">;
|
|
26
|
+
validator: (value: string) => boolean;
|
|
27
|
+
};
|
|
28
|
+
fillMode: {
|
|
29
|
+
type: PropType<"solid" | "outline">;
|
|
30
|
+
validator: (value: string) => boolean;
|
|
31
|
+
};
|
|
32
|
+
themeColor: {
|
|
33
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "dark" | "light" | "inverse" | "inherit">;
|
|
34
|
+
validator: (value: string) => boolean;
|
|
35
|
+
};
|
|
36
|
+
rounded: {
|
|
37
|
+
type: PropType<"small" | "medium" | "large" | "none" | "full">;
|
|
38
|
+
validator: (value: string) => boolean;
|
|
39
|
+
};
|
|
40
|
+
position: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
validator: (value: string) => any;
|
|
44
|
+
};
|
|
45
|
+
cutoutBorder: PropType<boolean>;
|
|
46
|
+
}>, {}, {}, {
|
|
47
|
+
badgeClasses(): {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
'k-badge': boolean;
|
|
50
|
+
'k-badge-sm': boolean;
|
|
51
|
+
'k-badge-md': boolean;
|
|
52
|
+
'k-badge-lg': boolean;
|
|
53
|
+
'k-badge-border-cutout': any;
|
|
54
|
+
'k-top-start': boolean;
|
|
55
|
+
'k-top-end': boolean;
|
|
56
|
+
'k-bottom-start': boolean;
|
|
57
|
+
'k-bottom-end': boolean;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
focusElement(): void;
|
|
61
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
+
dir: PropType<string>;
|
|
63
|
+
align: {
|
|
64
|
+
type: PropType<BadgeAlign>;
|
|
65
|
+
default: () => BadgeAlign;
|
|
66
|
+
};
|
|
67
|
+
size: {
|
|
68
|
+
type: PropType<"small" | "medium" | "large">;
|
|
69
|
+
validator: (value: string) => boolean;
|
|
70
|
+
};
|
|
71
|
+
fillMode: {
|
|
72
|
+
type: PropType<"solid" | "outline">;
|
|
73
|
+
validator: (value: string) => boolean;
|
|
74
|
+
};
|
|
75
|
+
themeColor: {
|
|
76
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "dark" | "light" | "inverse" | "inherit">;
|
|
77
|
+
validator: (value: string) => boolean;
|
|
78
|
+
};
|
|
79
|
+
rounded: {
|
|
80
|
+
type: PropType<"small" | "medium" | "large" | "none" | "full">;
|
|
81
|
+
validator: (value: string) => boolean;
|
|
82
|
+
};
|
|
83
|
+
position: {
|
|
84
|
+
type: PropType<string>;
|
|
85
|
+
default: string;
|
|
86
|
+
validator: (value: string) => any;
|
|
87
|
+
};
|
|
88
|
+
cutoutBorder: PropType<boolean>;
|
|
89
|
+
}>> & Readonly<{}>, {
|
|
90
|
+
position: string;
|
|
91
|
+
align: BadgeAlign;
|
|
92
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
export { Badge };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BadgeAlign } from './BadgeProps';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the [Kendo UI for Vue BadgeContainer component]({% slug api_indicators_badgeprops %}).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```jsx
|
|
15
|
+
* <BadgeContainer>99+</BadgeContainer>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const BadgeContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
|
+
dir: PropType<string>;
|
|
20
|
+
align: {
|
|
21
|
+
type: PropType<BadgeAlign>;
|
|
22
|
+
default: () => BadgeAlign;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<"small" | "medium" | "large">;
|
|
26
|
+
validator: (value: string) => boolean;
|
|
27
|
+
};
|
|
28
|
+
fillMode: {
|
|
29
|
+
type: PropType<"solid" | "outline">;
|
|
30
|
+
validator: (value: string) => boolean;
|
|
31
|
+
};
|
|
32
|
+
themeColor: {
|
|
33
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "dark" | "light" | "inverse" | "inherit">;
|
|
34
|
+
default: string;
|
|
35
|
+
validator: (value: string) => boolean;
|
|
36
|
+
};
|
|
37
|
+
rounded: {
|
|
38
|
+
type: PropType<"small" | "medium" | "large" | "none" | "full">;
|
|
39
|
+
validator: (value: string) => boolean;
|
|
40
|
+
};
|
|
41
|
+
position: {
|
|
42
|
+
type: PropType<string>;
|
|
43
|
+
default: string;
|
|
44
|
+
validator: (value: string) => boolean;
|
|
45
|
+
};
|
|
46
|
+
cutoutBorder: PropType<boolean>;
|
|
47
|
+
content: PropType<any>;
|
|
48
|
+
}>, {}, {}, {
|
|
49
|
+
badgeContainerClasses(): {
|
|
50
|
+
'k-badge-container': boolean;
|
|
51
|
+
};
|
|
52
|
+
badgeClasses(): {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
'k-badge': boolean;
|
|
55
|
+
'k-badge-sm': boolean;
|
|
56
|
+
'k-badge-md': boolean;
|
|
57
|
+
'k-badge-lg': boolean;
|
|
58
|
+
'k-badge-border-cutout': any;
|
|
59
|
+
'k-top-start': boolean;
|
|
60
|
+
'k-top-end': boolean;
|
|
61
|
+
'k-bottom-start': boolean;
|
|
62
|
+
'k-bottom-end': boolean;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
focusElement(): void;
|
|
66
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
67
|
+
dir: PropType<string>;
|
|
68
|
+
align: {
|
|
69
|
+
type: PropType<BadgeAlign>;
|
|
70
|
+
default: () => BadgeAlign;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: PropType<"small" | "medium" | "large">;
|
|
74
|
+
validator: (value: string) => boolean;
|
|
75
|
+
};
|
|
76
|
+
fillMode: {
|
|
77
|
+
type: PropType<"solid" | "outline">;
|
|
78
|
+
validator: (value: string) => boolean;
|
|
79
|
+
};
|
|
80
|
+
themeColor: {
|
|
81
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "dark" | "light" | "inverse" | "inherit">;
|
|
82
|
+
default: string;
|
|
83
|
+
validator: (value: string) => boolean;
|
|
84
|
+
};
|
|
85
|
+
rounded: {
|
|
86
|
+
type: PropType<"small" | "medium" | "large" | "none" | "full">;
|
|
87
|
+
validator: (value: string) => boolean;
|
|
88
|
+
};
|
|
89
|
+
position: {
|
|
90
|
+
type: PropType<string>;
|
|
91
|
+
default: string;
|
|
92
|
+
validator: (value: string) => boolean;
|
|
93
|
+
};
|
|
94
|
+
cutoutBorder: PropType<boolean>;
|
|
95
|
+
content: PropType<any>;
|
|
96
|
+
}>> & Readonly<{}>, {
|
|
97
|
+
themeColor: "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "dark" | "light" | "inverse" | "inherit";
|
|
98
|
+
position: string;
|
|
99
|
+
align: BadgeAlign;
|
|
100
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
export { BadgeContainer };
|
package/badge/BadgeContainer.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),n=require("@progress/kendo-vue-common"),l=require("../package-metadata.js"),u=i.defineComponent({name:"KendoBadgeContainer",props:{dir:String,align:{type:Object,default:function(){return{vertical:"top",horizontal:"end"}}},size:{type:String,validator:function(e){return["none","small","medium","large"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","outline"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"].includes(e)}},rounded:{type:String,validator:function(e){return[null,"small","medium","large","full"].includes(e)}},position:{type:String,default:"edge",validator:function(e){return["edge","outside","inside"].includes(e)}},cutoutBorder:Boolean,content:[String,Function,Object]},created(){n.validatePackage(l.packageMetadata),this.currentDir=void 0},mounted(){this.currentDir=n.getDir(this.$el,this.$props.dir)},computed:{badgeContainerClasses(){return{"k-badge-container":!0}},badgeClasses(){const{size:e,fillMode:r,cutoutBorder:a,position:s,align:t,themeColor:o,rounded:d}=this.$props;return{"k-badge":!0,"k-badge-sm":e==="small","k-badge-md":e==="medium","k-badge-lg":e==="large",[`k-badge-${r}`]:r,[`k-badge-${o}`]:o,[`k-badge-${r}-${o}`]:!!(r&&o),[`k-rounded-${n.kendoThemeMaps.roundedMap[d]||d}`]:d,"k-badge-border-cutout":a,[`k-badge-${s}`]:s,"k-top-start":t.vertical==="top"&&t.horizontal==="start","k-top-end":t.vertical==="top"&&t.horizontal==="end","k-bottom-start":t.vertical==="bottom"&&t.horizontal==="start","k-bottom-end":t.vertical==="bottom"&&t.horizontal==="end"}}},render(){const e=n.getDefaultSlots(this),r=n.templateRendering.call(this,this.content,n.getListeners.call(this)),a=n.getTemplate.call(this,{h:i.h,template:r,additionalProps:this.$props});return i.createVNode("span",{class:this.badgeContainerClasses,style:{display:"inline-block"},dir:this.currentDir},[e,i.createVNode("span",{class:this.badgeClasses,dir:this.currentDir},[a])])},methods:{focusElement(){this.$el&&this.$el.focus()}}});exports.BadgeContainer=u;
|
package/badge/BadgeContainer.mjs
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
8
|
+
import { defineComponent as l, h as s, createVNode as d } from "vue";
|
|
9
9
|
import { getDefaultSlots as u, templateRendering as c, getListeners as g, getTemplate as p, kendoThemeMaps as m, getDir as h, validatePackage as f } from "@progress/kendo-vue-common";
|
|
10
10
|
import { packageMetadata as b } from "../package-metadata.mjs";
|
|
11
|
-
const
|
|
11
|
+
const $ = /* @__PURE__ */ l({
|
|
12
12
|
name: "KendoBadgeContainer",
|
|
13
13
|
props: {
|
|
14
14
|
dir: String,
|
|
@@ -23,34 +23,34 @@ const C = /* @__PURE__ */ d({
|
|
|
23
23
|
},
|
|
24
24
|
size: {
|
|
25
25
|
type: String,
|
|
26
|
-
validator: function(
|
|
27
|
-
return ["none", "small", "medium", "large"].includes(
|
|
26
|
+
validator: function(e) {
|
|
27
|
+
return ["none", "small", "medium", "large"].includes(e);
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
fillMode: {
|
|
31
31
|
type: String,
|
|
32
|
-
validator: function(
|
|
33
|
-
return ["solid", "outline"].includes(
|
|
32
|
+
validator: function(e) {
|
|
33
|
+
return ["solid", "outline"].includes(e);
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
themeColor: {
|
|
37
37
|
type: String,
|
|
38
38
|
default: "primary",
|
|
39
|
-
validator: function(
|
|
40
|
-
return ["primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse"].includes(
|
|
39
|
+
validator: function(e) {
|
|
40
|
+
return ["primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse"].includes(e);
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
rounded: {
|
|
44
44
|
type: String,
|
|
45
|
-
validator: function(
|
|
46
|
-
return [null, "small", "medium", "large", "full"].includes(
|
|
45
|
+
validator: function(e) {
|
|
46
|
+
return [null, "small", "medium", "large", "full"].includes(e);
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
position: {
|
|
50
50
|
type: String,
|
|
51
51
|
default: "edge",
|
|
52
|
-
validator: function(
|
|
53
|
-
return ["edge", "outside", "inside"].includes(
|
|
52
|
+
validator: function(e) {
|
|
53
|
+
return ["edge", "outside", "inside"].includes(e);
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
cutoutBorder: Boolean,
|
|
@@ -70,47 +70,48 @@ const C = /* @__PURE__ */ d({
|
|
|
70
70
|
},
|
|
71
71
|
badgeClasses() {
|
|
72
72
|
const {
|
|
73
|
-
size:
|
|
73
|
+
size: e,
|
|
74
74
|
fillMode: r,
|
|
75
|
-
cutoutBorder:
|
|
76
|
-
position:
|
|
77
|
-
align:
|
|
78
|
-
themeColor:
|
|
79
|
-
rounded:
|
|
75
|
+
cutoutBorder: o,
|
|
76
|
+
position: a,
|
|
77
|
+
align: t,
|
|
78
|
+
themeColor: n,
|
|
79
|
+
rounded: i
|
|
80
80
|
} = this.$props;
|
|
81
81
|
return {
|
|
82
82
|
"k-badge": !0,
|
|
83
|
-
"k-badge-sm":
|
|
84
|
-
"k-badge-md":
|
|
85
|
-
"k-badge-lg":
|
|
83
|
+
"k-badge-sm": e === "small",
|
|
84
|
+
"k-badge-md": e === "medium",
|
|
85
|
+
"k-badge-lg": e === "large",
|
|
86
86
|
[`k-badge-${r}`]: r,
|
|
87
|
-
[`k-badge-${
|
|
88
|
-
[`k-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"k-top-
|
|
93
|
-
"k-
|
|
94
|
-
"k-bottom-
|
|
87
|
+
[`k-badge-${n}`]: n,
|
|
88
|
+
[`k-badge-${r}-${n}`]: !!(r && n),
|
|
89
|
+
[`k-rounded-${m.roundedMap[i] || i}`]: i,
|
|
90
|
+
"k-badge-border-cutout": o,
|
|
91
|
+
[`k-badge-${a}`]: a,
|
|
92
|
+
"k-top-start": t.vertical === "top" && t.horizontal === "start",
|
|
93
|
+
"k-top-end": t.vertical === "top" && t.horizontal === "end",
|
|
94
|
+
"k-bottom-start": t.vertical === "bottom" && t.horizontal === "start",
|
|
95
|
+
"k-bottom-end": t.vertical === "bottom" && t.horizontal === "end"
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
99
|
render() {
|
|
99
|
-
const
|
|
100
|
+
const e = u(this), r = c.call(this, this.content, g.call(this)), o = p.call(this, {
|
|
100
101
|
h: s,
|
|
101
102
|
template: r,
|
|
102
103
|
additionalProps: this.$props
|
|
103
104
|
});
|
|
104
|
-
return
|
|
105
|
+
return d("span", {
|
|
105
106
|
class: this.badgeContainerClasses,
|
|
106
107
|
style: {
|
|
107
108
|
display: "inline-block"
|
|
108
109
|
},
|
|
109
110
|
dir: this.currentDir
|
|
110
|
-
}, [
|
|
111
|
+
}, [e, d("span", {
|
|
111
112
|
class: this.badgeClasses,
|
|
112
113
|
dir: this.currentDir
|
|
113
|
-
}, [
|
|
114
|
+
}, [o])]);
|
|
114
115
|
},
|
|
115
116
|
methods: {
|
|
116
117
|
focusElement() {
|
|
@@ -119,5 +120,5 @@ const C = /* @__PURE__ */ d({
|
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
$ as BadgeContainer
|
|
123
124
|
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents the props of the [Kendo UI for Vue Badge component]({% slug overview_badge %}).
|
|
10
|
+
*/
|
|
11
|
+
export interface BadgeProps {
|
|
12
|
+
/**
|
|
13
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
14
|
+
*/
|
|
15
|
+
dir?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the size of the Badge.
|
|
18
|
+
*
|
|
19
|
+
* The possible values are:
|
|
20
|
+
* * `small`
|
|
21
|
+
* * `medium`
|
|
22
|
+
* * `large`
|
|
23
|
+
*
|
|
24
|
+
* @default `undefined`
|
|
25
|
+
*/
|
|
26
|
+
size?: 'small' | 'medium' | 'large';
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the roundness of the Badge.
|
|
29
|
+
*
|
|
30
|
+
* The possible values are:
|
|
31
|
+
* - none
|
|
32
|
+
* - small
|
|
33
|
+
* - medium
|
|
34
|
+
* - large
|
|
35
|
+
* - full
|
|
36
|
+
*
|
|
37
|
+
* @default `undefined`
|
|
38
|
+
*/
|
|
39
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the appearance fill style of the Badge.
|
|
42
|
+
*
|
|
43
|
+
* The possible values are:
|
|
44
|
+
* * `solid`
|
|
45
|
+
* * `outline`
|
|
46
|
+
*
|
|
47
|
+
* @default `undefined`
|
|
48
|
+
*/
|
|
49
|
+
fillMode?: 'solid' | 'outline';
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the theme color of the Badge.
|
|
52
|
+
*
|
|
53
|
+
* The possible values are:
|
|
54
|
+
* * `primary`—Applies coloring based on primary theme color.
|
|
55
|
+
* * `secondary`—Applies coloring based on secondary theme color.
|
|
56
|
+
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
57
|
+
* * `inherit`— Applies inherited coloring value.
|
|
58
|
+
* * `info`—Applies coloring based on info theme color.
|
|
59
|
+
* * `success`— Applies coloring based on success theme color.
|
|
60
|
+
* * `warning`— Applies coloring based on warning theme color.
|
|
61
|
+
* * `error`— Applies coloring based on error theme color.
|
|
62
|
+
* * `dark`— Applies coloring based on dark theme color.
|
|
63
|
+
* * `light`— Applies coloring based on light theme color.
|
|
64
|
+
* * `inverse`— Applies coloring based on inverse theme color.
|
|
65
|
+
*
|
|
66
|
+
* @default `undefined`
|
|
67
|
+
*/
|
|
68
|
+
themeColor?: 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'inherit';
|
|
69
|
+
/**
|
|
70
|
+
* Specifies the alignment of the Badge.
|
|
71
|
+
*
|
|
72
|
+
* The possible keys are:
|
|
73
|
+
* * `horizontal`— Defines the possible horizontal alignment of the Badge.
|
|
74
|
+
* * `start`—Uses the start point of the parent element.
|
|
75
|
+
* * `end`(Default)—Uses the end point of the parent element.
|
|
76
|
+
* * `vertical`— Defines the possible vertical alignment of the Badge.
|
|
77
|
+
* * `top`(Default)—Uses the top point of the parent element.
|
|
78
|
+
* * `bottom`—Uses the bottom point of the parent element.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
align?: {
|
|
82
|
+
/**
|
|
83
|
+
* Defines the possible horizontal alignment of the Badge.
|
|
84
|
+
*
|
|
85
|
+
* The available values are:
|
|
86
|
+
* - `start`—Uses the start point of the parent element.
|
|
87
|
+
* - `end`(Default)—Uses the end point of the parent element.
|
|
88
|
+
*/
|
|
89
|
+
horizontal: 'start' | 'end';
|
|
90
|
+
/**
|
|
91
|
+
* Defines the possible vertical alignment of the Badge.
|
|
92
|
+
*
|
|
93
|
+
* The available values are:
|
|
94
|
+
* - `top`(Default)—Uses the top point of the parent element.
|
|
95
|
+
* - `bottom`—Uses the bottom point of the parent element.
|
|
96
|
+
*/
|
|
97
|
+
vertical: 'top' | 'bottom';
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Specifies the position of the Badge relative to the edge of the container element.
|
|
101
|
+
*
|
|
102
|
+
* The possible values are:
|
|
103
|
+
* * `edge` (Default)—The center of the Badge is positioned on the edge of the container element.
|
|
104
|
+
* * `outside`—The Badge is entirely positioned outside the edge of the container element.
|
|
105
|
+
* * `inside`—The Badge is entirely positioned inside the edge of the the container element.
|
|
106
|
+
*
|
|
107
|
+
* @default `edge`
|
|
108
|
+
*/
|
|
109
|
+
position?: 'edge' | 'outside' | 'inside' | string;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies wether or not to render additional "cutout" border around the Badge.
|
|
112
|
+
*
|
|
113
|
+
* The possible values are:
|
|
114
|
+
* * `true`
|
|
115
|
+
* * `false` (Default)
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
cutoutBorder?: boolean;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Represents the props of the [Kendo UI for Vue Badge component]({% slug overview_badge %}).
|
|
122
|
+
*/
|
|
123
|
+
export interface BadgeContainerProps extends BadgeProps {
|
|
124
|
+
/**
|
|
125
|
+
* Defines the custom rendering of the Badge content. Accepts a slot name, a `render` function, or a Vue Component.
|
|
126
|
+
*/
|
|
127
|
+
content?: any;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Specifies the theme color of the Badge.
|
|
131
|
+
*
|
|
132
|
+
* The possible values are:
|
|
133
|
+
* * `primary` (Default)—Applies coloring based on primary theme color.
|
|
134
|
+
* * `secondary`—Applies coloring based on secondary theme color.
|
|
135
|
+
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
136
|
+
* * `inherit`— Applies inherited coloring value.
|
|
137
|
+
* * `info`—Applies coloring based on info theme color.
|
|
138
|
+
* * `success`— Applies coloring based on success theme color.
|
|
139
|
+
* * `warning`— Applies coloring based on warning theme color.
|
|
140
|
+
* * `error`— Applies coloring based on error theme color.
|
|
141
|
+
* * `dark`— Applies coloring based on dark theme color.
|
|
142
|
+
* * `light`— Applies coloring based on light theme color.
|
|
143
|
+
* * `inverse`— Applies coloring based on inverse theme color.
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
export type BadgeThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'inherit';
|
|
147
|
+
/**
|
|
148
|
+
* Specifies the size of the Badge.
|
|
149
|
+
*
|
|
150
|
+
* The possible values are:
|
|
151
|
+
* * `small`
|
|
152
|
+
* * `medium` (Default)
|
|
153
|
+
* * `large`
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
export type BadgeSize = 'small' | 'medium' | 'large';
|
|
157
|
+
/**
|
|
158
|
+
* Specifies the horizontal and vertical alignment of the Badge in a relation to the element.
|
|
159
|
+
*/
|
|
160
|
+
export interface BadgeAlign {
|
|
161
|
+
/**
|
|
162
|
+
* Defines the possible horizontal alignment of the Badge.
|
|
163
|
+
*
|
|
164
|
+
* The available values are:
|
|
165
|
+
* - `start`—Uses the start point of the parent element.
|
|
166
|
+
* - `end`(Default)—Uses the end point of the parent element.
|
|
167
|
+
*/
|
|
168
|
+
horizontal: 'start' | 'end';
|
|
169
|
+
/**
|
|
170
|
+
* Defines the possible vertical alignment of the Badge.
|
|
171
|
+
*
|
|
172
|
+
* The available values are:
|
|
173
|
+
* - `top`(Default)—Uses the top point of the parent element.
|
|
174
|
+
* - `bottom`—Uses the bottom point of the parent element.
|
|
175
|
+
*/
|
|
176
|
+
vertical: 'top' | 'bottom';
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Specifies the appearance fill style of the Badge.
|
|
180
|
+
*
|
|
181
|
+
* The possible values are:
|
|
182
|
+
* * `solid` (Default)
|
|
183
|
+
* * `outline`
|
|
184
|
+
*
|
|
185
|
+
*/
|
|
186
|
+
export type BadgeFill = 'solid' | 'outline';
|
|
187
|
+
/**
|
|
188
|
+
* Specifies the position of the Badge relative to the edge of the container element.
|
|
189
|
+
*
|
|
190
|
+
* The possible values are:
|
|
191
|
+
* * `edge` (Default)—The center of the Badge is positioned on the edge of the container element.
|
|
192
|
+
* * `outside`—The Badge is entirely positioned outside the edge of the container element.
|
|
193
|
+
* * `inside`—The Badge is entirely positioned inside the edge of the the container element.
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
export type BadgePosition = 'edge' | 'outside' | 'inside';
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueIndicators={},e.Vue,e.KendoVueCommon)}(this,
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueIndicators={},e.Vue,e.KendoVueCommon)}(this,function(e,t,r){"use strict";const n={name:"@progress/kendo-vue-indicators",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1636623080,version:"8.0.3-develop.4",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"},i=t.defineComponent({name:"KendoBadge",props:{dir:String,align:{type:Object,default:function(){return{vertical:"top",horizontal:"end"}}},size:{type:String,validator:function(e){return["small","medium","large"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","outline"].includes(e)}},themeColor:{type:String,validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"].includes(e)}},rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},position:{type:String,default:"edge",validator:function(e){return["edge","outside","inside"].includes(e)}},cutoutBorder:Boolean},created(){r.validatePackage(n),this.currentDir=void 0},mounted(){this.currentDir=r.getDir(this.$el,this.$props.dir)},computed:{badgeClasses(){const{size:e,fillMode:t,cutoutBorder:n,position:i,align:o,themeColor:a,rounded:s}=this.$props;return{"k-badge":!0,"k-badge-sm":"small"===e,"k-badge-md":"medium"===e,"k-badge-lg":"large"===e,[`k-badge-${t}`]:t,[`k-badge-${a}`]:a,[`k-rounded-${r.kendoThemeMaps.roundedMap[s]||s}`]:s,"k-badge-border-cutout":n,[`k-badge-${i}`]:i,"k-top-start":"top"===o.vertical&&"start"===o.horizontal,"k-top-end":"top"===o.vertical&&"end"===o.horizontal,"k-bottom-start":"bottom"===o.vertical&&"start"===o.horizontal,"k-bottom-end":"bottom"===o.vertical&&"end"===o.horizontal}}},render(){const e=r.getDefaultSlots(this);return t.createVNode("span",{class:this.badgeClasses,dir:this.currentDir},[e])},methods:{focusElement(){this.$el&&this.$el.focus()}}}),o=t.defineComponent({name:"KendoBadgeContainer",props:{dir:String,align:{type:Object,default:function(){return{vertical:"top",horizontal:"end"}}},size:{type:String,validator:function(e){return["none","small","medium","large"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","outline"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"].includes(e)}},rounded:{type:String,validator:function(e){return[null,"small","medium","large","full"].includes(e)}},position:{type:String,default:"edge",validator:function(e){return["edge","outside","inside"].includes(e)}},cutoutBorder:Boolean,content:[String,Function,Object]},created(){r.validatePackage(n),this.currentDir=void 0},mounted(){this.currentDir=r.getDir(this.$el,this.$props.dir)},computed:{badgeContainerClasses:()=>({"k-badge-container":!0}),badgeClasses(){const{size:e,fillMode:t,cutoutBorder:n,position:i,align:o,themeColor:a,rounded:s}=this.$props;return{"k-badge":!0,"k-badge-sm":"small"===e,"k-badge-md":"medium"===e,"k-badge-lg":"large"===e,[`k-badge-${t}`]:t,[`k-badge-${a}`]:a,[`k-badge-${t}-${a}`]:!(!t||!a),[`k-rounded-${r.kendoThemeMaps.roundedMap[s]||s}`]:s,"k-badge-border-cutout":n,[`k-badge-${i}`]:i,"k-top-start":"top"===o.vertical&&"start"===o.horizontal,"k-top-end":"top"===o.vertical&&"end"===o.horizontal,"k-bottom-start":"bottom"===o.vertical&&"start"===o.horizontal,"k-bottom-end":"bottom"===o.vertical&&"end"===o.horizontal}}},render(){const e=r.getDefaultSlots(this),n=r.templateRendering.call(this,this.content,r.getListeners.call(this)),i=r.getTemplate.call(this,{h:t.h,template:n,additionalProps:this.$props});return t.createVNode("span",{class:this.badgeContainerClasses,style:{display:"inline-block"},dir:this.currentDir},[e,t.createVNode("span",{class:this.badgeClasses,dir:this.currentDir},[i])])},methods:{focusElement(){this.$el&&this.$el.focus()}}}),a={pulsing:2,"infinite-spinner":3,"converging-spinner":4},s=t.defineComponent({name:"KendoLoader",props:{type:{type:String,default:"pulsing",validator:function(e){return["pulsing","infinite-spinner","converging-spinner"].includes(e)}},size:{type:String,validator:function(e){return["none","small","medium","large"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"].includes(e)}}},created(){r.validatePackage(n)},computed:{loaderClasses(){const{type:e,size:t,themeColor:r}=this.$props;return{"k-loader":!0,"k-loader-sm":"small"===t,"k-loader-md":"medium"===t,"k-loader-lg":"large"===t,"k-loader-primary":"primary"===r,"k-loader-secondary":"secondary"===r,"k-loader-tertiary":"tertiary"===r,"k-loader-info":"info"===r,"k-loader-success":"success"===r,"k-loader-warning":"warning"===r,"k-loader-error":"error"===r,"k-loader-dark":"dark"===r,"k-loader-light":"light"===r,"k-loader-inverse":"inverse"===r,"k-loader-pulsing-2":"pulsing"===e,"k-loader-spinner-3":"infinite-spinner"===e,"k-loader-spinner-4":"converging-spinner"===e}}},render(){const{type:e}=this.$props,r=new Array(a[e]);return r.fill(0,0,a[e]),t.createVNode("div",{class:this.loaderClasses},[t.createVNode("div",{class:"k-loader-canvas"},[r.map(function(e,r){return t.createVNode("span",{key:r,class:"k-loader-segment"},null)},this)])])},methods:{focus(e){this.$el&&this.$el.focus(e)}}}),d=t.defineComponent({name:"KendoSkeleton",props:{animation:{type:[Object,Boolean],default:function(){return{type:"pulse"}},validator:function(e){return!1===e||["wave","pulse"].includes(e.type)}},shape:{type:String,default:"text",validator:function(e){return["circle","rectangle","text"].includes(e)}},ariaBusy:{type:Boolean,default:void 0},role:{type:String,default:void 0}},created(){r.validatePackage(n)},computed:{skeletonClasses(){return{"k-skeleton":!0,"k-skeleton-circle":"circle"===this.shape,"k-skeleton-rect":"rectangle"===this.shape,"k-skeleton-text":"text"===this.shape,"k-skeleton-pulse":r.isObject(this.animation)&&"pulse"===this.animation.type,"k-skeleton-wave":r.isObject(this.animation)&&"wave"===this.animation.type||!0===this.animation}}},render(){return t.createVNode("span",{role:this.$props.role,class:this.skeletonClasses,"aria-busy":this.$props.ariaBusy},null)}});e.Badge=i,e.BadgeContainer=o,e.Loader=s,e.Skeleton=d});
|