@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.
- package/README.md +2 -2
- package/dist/cdn/js/kendo-vue-indicators.js +1 -1
- package/dist/es/badge/Badge.d.ts +50 -0
- package/dist/es/badge/Badge.js +126 -0
- package/dist/es/badge/BadgeContainer.d.ts +50 -0
- package/dist/es/badge/BadgeContainer.js +139 -0
- package/dist/es/badge/BadgeContainerProps.d.ts +9 -0
- package/dist/es/badge/BadgeContainerProps.js +1 -0
- package/dist/es/badge/BadgeProps.d.ts +183 -0
- package/dist/es/badge/BadgeProps.js +1 -0
- package/dist/es/loader/LoaderProps.js +1 -0
- package/dist/es/loader/models/size.js +1 -0
- package/dist/es/loader/models/theme-color.js +1 -0
- package/dist/es/loader/models/type.js +1 -0
- package/dist/es/main.d.ts +4 -0
- package/dist/es/main.js +4 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/skeleton/SkeletonProps.js +1 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/badge/Badge.d.ts +50 -0
- package/dist/esm/badge/Badge.js +126 -0
- package/dist/esm/badge/BadgeContainer.d.ts +50 -0
- package/dist/esm/badge/BadgeContainer.js +139 -0
- package/dist/esm/badge/BadgeContainerProps.d.ts +9 -0
- package/dist/esm/badge/BadgeContainerProps.js +1 -0
- package/dist/esm/badge/BadgeProps.d.ts +183 -0
- package/dist/esm/badge/BadgeProps.js +1 -0
- package/dist/esm/loader/Loader.d.ts +57 -0
- package/dist/esm/loader/Loader.js +114 -0
- package/dist/esm/loader/LoaderProps.d.ts +43 -0
- package/dist/esm/loader/LoaderProps.js +1 -0
- package/dist/esm/loader/models/size.d.ts +11 -0
- package/dist/esm/loader/models/size.js +1 -0
- package/dist/esm/loader/models/theme-color.d.ts +18 -0
- package/dist/esm/loader/models/theme-color.js +1 -0
- package/dist/esm/loader/models/type.d.ts +10 -0
- package/dist/esm/loader/models/type.js +1 -0
- package/dist/esm/main.d.ts +11 -0
- package/dist/esm/main.js +11 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/skeleton/Skeleton.d.ts +57 -0
- package/dist/esm/skeleton/Skeleton.js +69 -0
- package/dist/esm/skeleton/SkeletonProps.d.ts +46 -0
- package/dist/esm/skeleton/SkeletonProps.js +1 -0
- package/dist/npm/badge/Badge.d.ts +50 -0
- package/dist/npm/badge/Badge.js +138 -0
- package/dist/npm/badge/BadgeContainer.d.ts +50 -0
- package/dist/npm/badge/BadgeContainer.js +152 -0
- package/dist/npm/badge/BadgeContainerProps.d.ts +9 -0
- package/dist/npm/badge/BadgeContainerProps.js +2 -0
- package/dist/npm/badge/BadgeProps.d.ts +183 -0
- package/dist/npm/badge/BadgeProps.js +2 -0
- package/dist/npm/loader/Loader.js +1 -1
- package/dist/npm/main.d.ts +4 -0
- package/dist/npm/main.js +10 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/skeleton/Skeleton.js +3 -3
- package/package.json +14 -8
|
@@ -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,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BadgeVue2 = exports.Badge = 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 kendo_vue_common_2 = require("@progress/kendo-vue-common");
|
|
17
|
+
|
|
18
|
+
var package_metadata_1 = require("../package-metadata");
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var BadgeVue2 = {
|
|
25
|
+
name: 'KendoBadge',
|
|
26
|
+
props: {
|
|
27
|
+
dir: String,
|
|
28
|
+
align: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: function _default() {
|
|
31
|
+
return {
|
|
32
|
+
vertical: 'top',
|
|
33
|
+
horizontal: 'end'
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
size: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: 'medium',
|
|
40
|
+
validator: function validator(value) {
|
|
41
|
+
return ['small', 'medium', 'large'].includes(value);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
fillMode: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: 'solid',
|
|
47
|
+
validator: function validator(value) {
|
|
48
|
+
return ['solid', 'outline'].includes(value);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
themeColor: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: 'primary',
|
|
54
|
+
validator: function validator(value) {
|
|
55
|
+
return ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'].includes(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
rounded: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: 'medium',
|
|
61
|
+
validator: function validator(value) {
|
|
62
|
+
return [null, 'small', 'medium', 'large', 'full'].includes(value);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
position: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: 'edge',
|
|
68
|
+
validator: function validator(value) {
|
|
69
|
+
return ['edge', 'outside', 'inside'].includes(value);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
cutoutBorder: Boolean
|
|
73
|
+
},
|
|
74
|
+
created: function created() {
|
|
75
|
+
(0, kendo_vue_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
76
|
+
},
|
|
77
|
+
mounted: function mounted() {
|
|
78
|
+
this.currentDir = (0, kendo_vue_common_1.getDir)(this.$el, this.$props.dir);
|
|
79
|
+
},
|
|
80
|
+
computed: {
|
|
81
|
+
badgeClasses: function badgeClasses() {
|
|
82
|
+
var _a;
|
|
83
|
+
|
|
84
|
+
var _b = this.$props,
|
|
85
|
+
size = _b.size,
|
|
86
|
+
fillMode = _b.fillMode,
|
|
87
|
+
cutoutBorder = _b.cutoutBorder,
|
|
88
|
+
position = _b.position,
|
|
89
|
+
align = _b.align,
|
|
90
|
+
themeColor = _b.themeColor,
|
|
91
|
+
rounded = _b.rounded;
|
|
92
|
+
return _a = {
|
|
93
|
+
'k-badge': true,
|
|
94
|
+
'k-badge-sm': size === 'small',
|
|
95
|
+
'k-badge-md': size === 'medium',
|
|
96
|
+
'k-badge-lg': size === 'large'
|
|
97
|
+
}, _a["k-badge-".concat(fillMode)] = fillMode, _a["k-badge-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor), _a["k-rounded-".concat(kendo_vue_common_1.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;
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
setup: !isV3 ? undefined : function () {
|
|
102
|
+
var v3 = !!isV3;
|
|
103
|
+
return {
|
|
104
|
+
v3: v3
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
render: function render(createElement) {
|
|
109
|
+
var h = gh || createElement;
|
|
110
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
111
|
+
return h("span", {
|
|
112
|
+
"class": this.badgeClasses,
|
|
113
|
+
dir: this.currentDir,
|
|
114
|
+
attrs: this.v3 ? undefined : {
|
|
115
|
+
dir: this.currentDir
|
|
116
|
+
}
|
|
117
|
+
}, [defaultSlot]);
|
|
118
|
+
},
|
|
119
|
+
methods: {
|
|
120
|
+
focusElement: function focusElement() {
|
|
121
|
+
if (this.$el) {
|
|
122
|
+
this.$el.focus();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
exports.BadgeVue2 = BadgeVue2;
|
|
128
|
+
/**
|
|
129
|
+
* Represents the [Kendo UI for Vue Badge component]({% slug overview_badge_props %}).
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```jsx
|
|
133
|
+
* <Badge>99+</Badge>
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
var Badge = BadgeVue2;
|
|
138
|
+
exports.Badge = Badge;
|
|
@@ -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,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var p in s) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports.BadgeContainerVue2 = exports.BadgeContainer = void 0; // @ts-ignore
|
|
23
|
+
|
|
24
|
+
var Vue = require("vue");
|
|
25
|
+
|
|
26
|
+
var allVue = Vue;
|
|
27
|
+
var gh = allVue.h;
|
|
28
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
29
|
+
|
|
30
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
31
|
+
|
|
32
|
+
var kendo_vue_common_2 = require("@progress/kendo-vue-common");
|
|
33
|
+
|
|
34
|
+
var package_metadata_1 = require("../package-metadata");
|
|
35
|
+
|
|
36
|
+
var Badge_1 = require("./Badge");
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
var BadgeContainerVue2 = {
|
|
43
|
+
name: 'KendoBadgeContainer',
|
|
44
|
+
props: {
|
|
45
|
+
dir: String,
|
|
46
|
+
align: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: function _default() {
|
|
49
|
+
return {
|
|
50
|
+
vertical: 'top',
|
|
51
|
+
horizontal: 'end'
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
size: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: 'medium',
|
|
58
|
+
validator: function validator(value) {
|
|
59
|
+
return ['small', 'medium', 'large'].includes(value);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
fillMode: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: 'solid',
|
|
65
|
+
validator: function validator(value) {
|
|
66
|
+
return ['solid', 'outline'].includes(value);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
themeColor: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: 'primary',
|
|
72
|
+
validator: function validator(value) {
|
|
73
|
+
return ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'].includes(value);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
rounded: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: 'medium',
|
|
79
|
+
validator: function validator(value) {
|
|
80
|
+
return [null, 'small', 'medium', 'large', 'full'].includes(value);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
position: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: 'edge',
|
|
86
|
+
validator: function validator(value) {
|
|
87
|
+
return ['edge', 'outside', 'inside'].includes(value);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
cutoutBorder: Boolean
|
|
91
|
+
},
|
|
92
|
+
created: function created() {
|
|
93
|
+
(0, kendo_vue_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
94
|
+
},
|
|
95
|
+
mounted: function mounted() {
|
|
96
|
+
this.currentDir = (0, kendo_vue_common_1.getDir)(this.$el, this.$props.dir);
|
|
97
|
+
},
|
|
98
|
+
computed: {
|
|
99
|
+
badgeContainerClasses: function badgeContainerClasses() {
|
|
100
|
+
return {
|
|
101
|
+
'k-badge-container': true
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
// @ts-ignore
|
|
106
|
+
setup: !isV3 ? undefined : function () {
|
|
107
|
+
var v3 = !!isV3;
|
|
108
|
+
return {
|
|
109
|
+
v3: v3
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
render: function render(createElement) {
|
|
114
|
+
var h = gh || createElement;
|
|
115
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
116
|
+
|
|
117
|
+
var badgeProps = __assign({}, this.$props);
|
|
118
|
+
|
|
119
|
+
var badge = h(Badge_1.Badge, __assign({
|
|
120
|
+
attrs: this.v3 ? undefined : badgeProps
|
|
121
|
+
}, badgeProps));
|
|
122
|
+
return h("span", {
|
|
123
|
+
"class": this.badgeContainerClasses,
|
|
124
|
+
style: {
|
|
125
|
+
display: 'inline-block'
|
|
126
|
+
},
|
|
127
|
+
dir: this.currentDir,
|
|
128
|
+
attrs: this.v3 ? undefined : {
|
|
129
|
+
dir: this.currentDir
|
|
130
|
+
}
|
|
131
|
+
}, [defaultSlot, badge]);
|
|
132
|
+
},
|
|
133
|
+
methods: {
|
|
134
|
+
focusElement: function focusElement() {
|
|
135
|
+
if (this.$el) {
|
|
136
|
+
this.$el.focus();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
exports.BadgeContainerVue2 = BadgeContainerVue2;
|
|
142
|
+
/**
|
|
143
|
+
* Represents the [Kendo UI for Vue BadgeContainer component]({% slug overview_badge_props %}).
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```jsx
|
|
147
|
+
* <BadgeContainer>99+</BadgeContainer>
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
var BadgeContainer = BadgeContainerVue2;
|
|
152
|
+
exports.BadgeContainer = BadgeContainer;
|
|
@@ -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,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';
|
|
@@ -55,7 +55,7 @@ var LoaderVue2 = {
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
created: function created() {
|
|
58
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
58
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
59
59
|
},
|
|
60
60
|
computed: {
|
|
61
61
|
loaderClasses: function loaderClasses() {
|
package/dist/npm/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/npm/main.js
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
8
12
|
}));
|
|
9
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
15
|
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./badge/Badge"), exports);
|
|
18
|
+
__exportStar(require("./badge/BadgeProps"), exports);
|
|
19
|
+
__exportStar(require("./badge/BadgeContainer"), exports);
|
|
20
|
+
__exportStar(require("./badge/BadgeContainerProps"), exports);
|
|
13
21
|
__exportStar(require("./loader/Loader"), exports);
|
|
14
22
|
__exportStar(require("./loader/LoaderProps"), exports);
|
|
15
23
|
__exportStar(require("./loader/models/size"), exports);
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-indicators',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1660543598,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -42,7 +42,7 @@ var SkeletonVue2 = {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
created: function created() {
|
|
45
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
45
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
46
46
|
},
|
|
47
47
|
computed: {
|
|
48
48
|
skeletonClasses: function skeletonClasses() {
|
|
@@ -51,8 +51,8 @@ var SkeletonVue2 = {
|
|
|
51
51
|
'k-skeleton-circle': this.shape === 'circle',
|
|
52
52
|
'k-skeleton-rectangle': this.shape === 'rectangle',
|
|
53
53
|
'k-skeleton-text': this.shape === 'text',
|
|
54
|
-
'k-skeleton-pulse': kendo_vue_common_1.isObject(this.animation) && this.animation.type === 'pulse',
|
|
55
|
-
'k-skeleton-wave': kendo_vue_common_1.isObject(this.animation) && this.animation.type === 'wave' || this.animation === true
|
|
54
|
+
'k-skeleton-pulse': (0, kendo_vue_common_1.isObject)(this.animation) && this.animation.type === 'pulse',
|
|
55
|
+
'k-skeleton-wave': (0, kendo_vue_common_1.isObject)(this.animation) && this.animation.type === 'wave' || this.animation === true
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
},
|