@progress/kendo-vue-common 5.3.0-dev.202410141143 → 5.3.0-develop.2
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/Draggable.js +8 -0
- package/Draggable.mjs +50 -0
- package/browser-support.service.js +8 -0
- package/browser-support.service.mjs +21 -0
- package/canUseDOM.js +8 -0
- package/canUseDOM.mjs +12 -0
- package/classNames.js +8 -0
- package/classNames.mjs +12 -0
- package/clone.js +8 -0
- package/clone.mjs +41 -0
- package/constants/main.js +8 -0
- package/constants/main.mjs +11 -0
- package/defaultSlots.js +8 -0
- package/defaultSlots.mjs +14 -0
- package/dist/cdn/js/kendo-vue-common.js +8 -1
- package/focus.js +8 -0
- package/focus.mjs +56 -0
- package/getActiveElement.js +8 -0
- package/getActiveElement.mjs +18 -0
- package/getTabIndex.js +8 -0
- package/getTabIndex.mjs +15 -0
- package/getter.js +8 -0
- package/getter.mjs +27 -0
- package/guid.js +8 -0
- package/guid.mjs +16 -0
- package/hasRelativeStackingContext.js +8 -0
- package/hasRelativeStackingContext.mjs +24 -0
- package/icons/FontIcon.js +8 -0
- package/icons/FontIcon.mjs +75 -0
- package/icons/Icon.js +8 -0
- package/icons/Icon.mjs +89 -0
- package/icons/SvgIcon.js +8 -0
- package/icons/SvgIcon.mjs +97 -0
- package/icons/constants.js +8 -0
- package/icons/constants.mjs +20 -0
- package/icons/getIconName.js +8 -0
- package/icons/getIconName.mjs +13 -0
- package/index.d.mts +966 -0
- package/index.d.ts +966 -0
- package/index.js +8 -0
- package/index.mjs +90 -0
- package/isObject.js +8 -0
- package/isObject.mjs +11 -0
- package/isRtl.js +8 -0
- package/isRtl.mjs +23 -0
- package/keys.js +8 -0
- package/keys.mjs +27 -0
- package/listeners.js +8 -0
- package/listeners.mjs +26 -0
- package/navigation.js +8 -0
- package/navigation.mjs +66 -0
- package/noop.js +8 -0
- package/noop.mjs +12 -0
- package/package.json +28 -29
- package/refs.js +8 -0
- package/refs.mjs +19 -0
- package/scrollbarWidth.js +8 -0
- package/scrollbarWidth.mjs +19 -0
- package/setter.js +8 -0
- package/setter.mjs +27 -0
- package/templateRendering.js +8 -0
- package/templateRendering.mjs +70 -0
- package/theme.js +8 -0
- package/theme.mjs +22 -0
- package/treeDataOperations.js +8 -0
- package/treeDataOperations.mjs +52 -0
- package/validate-package.js +11 -0
- package/validate-package.mjs +30 -0
- package/watermark/WatermarkOverlay.js +8 -0
- package/watermark/WatermarkOverlay.mjs +135 -0
- package/dist/es/Draggable.d.ts +0 -64
- package/dist/es/Draggable.js +0 -85
- package/dist/es/FormComponent.d.ts +0 -81
- package/dist/es/FormComponent.js +0 -1
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/browser-support.service.d.ts +0 -7
- package/dist/es/browser-support.service.js +0 -29
- package/dist/es/canUseDOM.d.ts +0 -5
- package/dist/es/canUseDOM.js +0 -9
- package/dist/es/classNames.d.ts +0 -4
- package/dist/es/classNames.js +0 -24
- package/dist/es/clone.d.ts +0 -20
- package/dist/es/clone.js +0 -49
- package/dist/es/constants/main.d.ts +0 -4
- package/dist/es/constants/main.js +0 -4
- package/dist/es/defaultSlots.d.ts +0 -4
- package/dist/es/defaultSlots.js +0 -7
- package/dist/es/focus.d.ts +0 -20
- package/dist/es/focus.js +0 -84
- package/dist/es/getActiveElement.d.ts +0 -8
- package/dist/es/getActiveElement.js +0 -23
- package/dist/es/getTabIndex.d.ts +0 -4
- package/dist/es/getTabIndex.js +0 -22
- package/dist/es/getter.d.ts +0 -4
- package/dist/es/getter.js +0 -23
- package/dist/es/guid.d.ts +0 -5
- package/dist/es/guid.js +0 -18
- package/dist/es/hasRelativeStackingContext.d.ts +0 -2
- package/dist/es/hasRelativeStackingContext.js +0 -25
- package/dist/es/icons/BaseIconProps.d.ts +0 -77
- package/dist/es/icons/BaseIconProps.js +0 -1
- package/dist/es/icons/FontIcon.d.ts +0 -51
- package/dist/es/icons/FontIcon.js +0 -91
- package/dist/es/icons/Icon.d.ts +0 -49
- package/dist/es/icons/Icon.js +0 -129
- package/dist/es/icons/SvgIcon.d.ts +0 -99
- package/dist/es/icons/SvgIcon.js +0 -128
- package/dist/es/icons/constants.d.ts +0 -13
- package/dist/es/icons/constants.js +0 -13
- package/dist/es/icons/getIconName.d.ts +0 -2
- package/dist/es/icons/getIconName.js +0 -6
- package/dist/es/icons/models/flip.d.ts +0 -11
- package/dist/es/icons/models/flip.js +0 -1
- package/dist/es/icons/models/size.d.ts +0 -15
- package/dist/es/icons/models/size.js +0 -1
- package/dist/es/icons/models/theme-color.d.ts +0 -21
- package/dist/es/icons/models/theme-color.js +0 -1
- package/dist/es/isObject.d.ts +0 -4
- package/dist/es/isObject.js +0 -6
- package/dist/es/isRtl.d.ts +0 -8
- package/dist/es/isRtl.js +0 -21
- package/dist/es/keys.d.ts +0 -21
- package/dist/es/keys.js +0 -21
- package/dist/es/listeners.d.ts +0 -8
- package/dist/es/listeners.js +0 -41
- package/dist/es/main.d.ts +0 -35
- package/dist/es/main.js +0 -34
- package/dist/es/navigation.d.ts +0 -46
- package/dist/es/navigation.js +0 -106
- package/dist/es/noop.d.ts +0 -5
- package/dist/es/noop.js +0 -5
- package/dist/es/refs.d.ts +0 -8
- package/dist/es/refs.js +0 -14
- package/dist/es/scrollbarWidth.d.ts +0 -8
- package/dist/es/scrollbarWidth.js +0 -22
- package/dist/es/setter.d.ts +0 -4
- package/dist/es/setter.js +0 -24
- package/dist/es/templateRendering.d.ts +0 -19
- package/dist/es/templateRendering.js +0 -111
- package/dist/es/theme.d.ts +0 -7
- package/dist/es/theme.js +0 -13
- package/dist/es/treeDataOperations.d.ts +0 -43
- package/dist/es/treeDataOperations.js +0 -116
- package/dist/es/validate-package.d.ts +0 -8
- package/dist/es/validate-package.js +0 -27
- package/dist/es/watermark/WatermarkOverlay.d.ts +0 -11
- package/dist/es/watermark/WatermarkOverlay.js +0 -200
- package/dist/esm/Draggable.d.ts +0 -64
- package/dist/esm/Draggable.js +0 -85
- package/dist/esm/FormComponent.d.ts +0 -81
- package/dist/esm/FormComponent.js +0 -1
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/browser-support.service.d.ts +0 -7
- package/dist/esm/browser-support.service.js +0 -29
- package/dist/esm/canUseDOM.d.ts +0 -5
- package/dist/esm/canUseDOM.js +0 -9
- package/dist/esm/classNames.d.ts +0 -4
- package/dist/esm/classNames.js +0 -24
- package/dist/esm/clone.d.ts +0 -20
- package/dist/esm/clone.js +0 -49
- package/dist/esm/constants/main.d.ts +0 -4
- package/dist/esm/constants/main.js +0 -4
- package/dist/esm/defaultSlots.d.ts +0 -4
- package/dist/esm/defaultSlots.js +0 -7
- package/dist/esm/focus.d.ts +0 -20
- package/dist/esm/focus.js +0 -84
- package/dist/esm/getActiveElement.d.ts +0 -8
- package/dist/esm/getActiveElement.js +0 -23
- package/dist/esm/getTabIndex.d.ts +0 -4
- package/dist/esm/getTabIndex.js +0 -22
- package/dist/esm/getter.d.ts +0 -4
- package/dist/esm/getter.js +0 -23
- package/dist/esm/guid.d.ts +0 -5
- package/dist/esm/guid.js +0 -18
- package/dist/esm/hasRelativeStackingContext.d.ts +0 -2
- package/dist/esm/hasRelativeStackingContext.js +0 -25
- package/dist/esm/icons/BaseIconProps.d.ts +0 -77
- package/dist/esm/icons/BaseIconProps.js +0 -1
- package/dist/esm/icons/FontIcon.d.ts +0 -51
- package/dist/esm/icons/FontIcon.js +0 -91
- package/dist/esm/icons/Icon.d.ts +0 -49
- package/dist/esm/icons/Icon.js +0 -129
- package/dist/esm/icons/SvgIcon.d.ts +0 -99
- package/dist/esm/icons/SvgIcon.js +0 -128
- package/dist/esm/icons/constants.d.ts +0 -13
- package/dist/esm/icons/constants.js +0 -13
- package/dist/esm/icons/getIconName.d.ts +0 -2
- package/dist/esm/icons/getIconName.js +0 -6
- package/dist/esm/icons/models/flip.d.ts +0 -11
- package/dist/esm/icons/models/flip.js +0 -1
- package/dist/esm/icons/models/size.d.ts +0 -15
- package/dist/esm/icons/models/size.js +0 -1
- package/dist/esm/icons/models/theme-color.d.ts +0 -21
- package/dist/esm/icons/models/theme-color.js +0 -1
- package/dist/esm/isObject.d.ts +0 -4
- package/dist/esm/isObject.js +0 -6
- package/dist/esm/isRtl.d.ts +0 -8
- package/dist/esm/isRtl.js +0 -21
- package/dist/esm/keys.d.ts +0 -21
- package/dist/esm/keys.js +0 -21
- package/dist/esm/listeners.d.ts +0 -8
- package/dist/esm/listeners.js +0 -41
- package/dist/esm/main.d.ts +0 -35
- package/dist/esm/main.js +0 -34
- package/dist/esm/navigation.d.ts +0 -46
- package/dist/esm/navigation.js +0 -106
- package/dist/esm/noop.d.ts +0 -5
- package/dist/esm/noop.js +0 -5
- package/dist/esm/package.json +0 -3
- package/dist/esm/refs.d.ts +0 -8
- package/dist/esm/refs.js +0 -14
- package/dist/esm/scrollbarWidth.d.ts +0 -8
- package/dist/esm/scrollbarWidth.js +0 -22
- package/dist/esm/setter.d.ts +0 -4
- package/dist/esm/setter.js +0 -24
- package/dist/esm/templateRendering.d.ts +0 -19
- package/dist/esm/templateRendering.js +0 -111
- package/dist/esm/theme.d.ts +0 -7
- package/dist/esm/theme.js +0 -13
- package/dist/esm/treeDataOperations.d.ts +0 -43
- package/dist/esm/treeDataOperations.js +0 -116
- package/dist/esm/validate-package.d.ts +0 -8
- package/dist/esm/validate-package.js +0 -27
- package/dist/esm/watermark/WatermarkOverlay.d.ts +0 -11
- package/dist/esm/watermark/WatermarkOverlay.js +0 -200
- package/dist/npm/Draggable.d.ts +0 -64
- package/dist/npm/Draggable.js +0 -92
- package/dist/npm/FormComponent.d.ts +0 -81
- package/dist/npm/FormComponent.js +0 -5
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/browser-support.service.d.ts +0 -7
- package/dist/npm/browser-support.service.js +0 -32
- package/dist/npm/canUseDOM.d.ts +0 -5
- package/dist/npm/canUseDOM.js +0 -12
- package/dist/npm/classNames.d.ts +0 -4
- package/dist/npm/classNames.js +0 -28
- package/dist/npm/clone.d.ts +0 -20
- package/dist/npm/clone.js +0 -57
- package/dist/npm/constants/main.d.ts +0 -4
- package/dist/npm/constants/main.js +0 -7
- package/dist/npm/defaultSlots.d.ts +0 -4
- package/dist/npm/defaultSlots.js +0 -11
- package/dist/npm/focus.d.ts +0 -20
- package/dist/npm/focus.js +0 -92
- package/dist/npm/getActiveElement.d.ts +0 -8
- package/dist/npm/getActiveElement.js +0 -28
- package/dist/npm/getTabIndex.d.ts +0 -4
- package/dist/npm/getTabIndex.js +0 -26
- package/dist/npm/getter.d.ts +0 -4
- package/dist/npm/getter.js +0 -27
- package/dist/npm/guid.d.ts +0 -5
- package/dist/npm/guid.js +0 -21
- package/dist/npm/hasRelativeStackingContext.d.ts +0 -2
- package/dist/npm/hasRelativeStackingContext.js +0 -29
- package/dist/npm/icons/BaseIconProps.d.ts +0 -77
- package/dist/npm/icons/BaseIconProps.js +0 -2
- package/dist/npm/icons/FontIcon.d.ts +0 -51
- package/dist/npm/icons/FontIcon.js +0 -98
- package/dist/npm/icons/Icon.d.ts +0 -49
- package/dist/npm/icons/Icon.js +0 -136
- package/dist/npm/icons/SvgIcon.d.ts +0 -99
- package/dist/npm/icons/SvgIcon.js +0 -135
- package/dist/npm/icons/constants.d.ts +0 -13
- package/dist/npm/icons/constants.js +0 -16
- package/dist/npm/icons/getIconName.d.ts +0 -2
- package/dist/npm/icons/getIconName.js +0 -9
- package/dist/npm/icons/models/flip.d.ts +0 -11
- package/dist/npm/icons/models/flip.js +0 -2
- package/dist/npm/icons/models/size.d.ts +0 -15
- package/dist/npm/icons/models/size.js +0 -2
- package/dist/npm/icons/models/theme-color.d.ts +0 -21
- package/dist/npm/icons/models/theme-color.js +0 -2
- package/dist/npm/isObject.d.ts +0 -4
- package/dist/npm/isObject.js +0 -10
- package/dist/npm/isRtl.d.ts +0 -8
- package/dist/npm/isRtl.js +0 -26
- package/dist/npm/keys.d.ts +0 -21
- package/dist/npm/keys.js +0 -24
- package/dist/npm/listeners.d.ts +0 -8
- package/dist/npm/listeners.js +0 -46
- package/dist/npm/main.d.ts +0 -35
- package/dist/npm/main.js +0 -82
- package/dist/npm/navigation.d.ts +0 -46
- package/dist/npm/navigation.js +0 -109
- package/dist/npm/noop.d.ts +0 -5
- package/dist/npm/noop.js +0 -8
- package/dist/npm/refs.d.ts +0 -8
- package/dist/npm/refs.js +0 -19
- package/dist/npm/scrollbarWidth.d.ts +0 -8
- package/dist/npm/scrollbarWidth.js +0 -27
- package/dist/npm/setter.d.ts +0 -4
- package/dist/npm/setter.js +0 -28
- package/dist/npm/templateRendering.d.ts +0 -19
- package/dist/npm/templateRendering.js +0 -117
- package/dist/npm/theme.d.ts +0 -7
- package/dist/npm/theme.js +0 -16
- package/dist/npm/treeDataOperations.d.ts +0 -43
- package/dist/npm/treeDataOperations.js +0 -124
- package/dist/npm/validate-package.d.ts +0 -8
- package/dist/npm/validate-package.js +0 -32
- package/dist/npm/watermark/WatermarkOverlay.d.ts +0 -11
- package/dist/npm/watermark/WatermarkOverlay.js +0 -207
package/dist/es/icons/Icon.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
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
|
-
for (var p in s) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import * as Vue from 'vue';
|
|
15
|
-
var allVue = Vue;
|
|
16
|
-
var gh = allVue.h;
|
|
17
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { FontIcon } from './FontIcon';
|
|
19
|
-
import { SvgIcon } from './SvgIcon';
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
var IconVue2 = {
|
|
24
|
-
name: 'KendoIcon',
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
emits: {
|
|
27
|
-
click: null
|
|
28
|
-
},
|
|
29
|
-
inject: {
|
|
30
|
-
kendoIcons: {
|
|
31
|
-
default: {
|
|
32
|
-
type: 'svg',
|
|
33
|
-
icons: {}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
props: {
|
|
38
|
-
name: String,
|
|
39
|
-
icon: Object,
|
|
40
|
-
title: String,
|
|
41
|
-
themeColor: {
|
|
42
|
-
type: String
|
|
43
|
-
},
|
|
44
|
-
size: {
|
|
45
|
-
type: String
|
|
46
|
-
},
|
|
47
|
-
flip: {
|
|
48
|
-
type: String
|
|
49
|
-
},
|
|
50
|
-
id: String,
|
|
51
|
-
ariaLabel: String,
|
|
52
|
-
viewBox: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: '0 0 24 24'
|
|
55
|
-
},
|
|
56
|
-
tabIndex: Number
|
|
57
|
-
},
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
setup: !isV3 ? undefined : function () {
|
|
60
|
-
var v3 = !!isV3;
|
|
61
|
-
return {
|
|
62
|
-
v3: v3
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
render: function render(createElement) {
|
|
67
|
-
var h = gh || createElement;
|
|
68
|
-
var _a = this.$props,
|
|
69
|
-
name = _a.name,
|
|
70
|
-
icon = _a.icon,
|
|
71
|
-
themeColor = _a.themeColor,
|
|
72
|
-
size = _a.size,
|
|
73
|
-
flip = _a.flip,
|
|
74
|
-
id = _a.id,
|
|
75
|
-
viewBox = _a.viewBox,
|
|
76
|
-
tabIndex = _a.tabIndex,
|
|
77
|
-
title = _a.title,
|
|
78
|
-
ariaLabel = _a.ariaLabel;
|
|
79
|
-
var svg = name && this.kendoIcons && this.kendoIcons.icons && this.kendoIcons.icons[name] || icon;
|
|
80
|
-
var renderSVG = this.kendoIcons && this.kendoIcons.type === 'svg' && svg !== undefined;
|
|
81
|
-
var newSize = this.kendoIcons && this.kendoIcons.size ? this.kendoIcons.size : size;
|
|
82
|
-
var newFlip = this.kendoIcons && this.kendoIcons.flip ? this.kendoIcons.flip : flip;
|
|
83
|
-
var resolvedName = name || (icon && icon.name ? icon.name : undefined);
|
|
84
|
-
var commonProps = {
|
|
85
|
-
themeColor: themeColor,
|
|
86
|
-
size: newSize,
|
|
87
|
-
flip: newFlip,
|
|
88
|
-
id: id,
|
|
89
|
-
tabIndex: tabIndex,
|
|
90
|
-
title: title,
|
|
91
|
-
ariaLabel: ariaLabel
|
|
92
|
-
};
|
|
93
|
-
var fontIcon = h(FontIcon, __assign(__assign({}, commonProps), {
|
|
94
|
-
name: resolvedName,
|
|
95
|
-
attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
|
|
96
|
-
name: resolvedName
|
|
97
|
-
}),
|
|
98
|
-
onClick: this.handleClick,
|
|
99
|
-
on: this.v3 ? undefined : {
|
|
100
|
-
'click': this.handleClick
|
|
101
|
-
}
|
|
102
|
-
}));
|
|
103
|
-
var svgIcon = h(SvgIcon, __assign(__assign({}, commonProps), {
|
|
104
|
-
icon: svg,
|
|
105
|
-
viewBox: viewBox,
|
|
106
|
-
name: resolvedName,
|
|
107
|
-
attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
|
|
108
|
-
icon: svg,
|
|
109
|
-
viewBox: viewBox,
|
|
110
|
-
name: resolvedName
|
|
111
|
-
}),
|
|
112
|
-
onClick: this.handleClick,
|
|
113
|
-
on: this.v3 ? undefined : {
|
|
114
|
-
'click': this.handleClick
|
|
115
|
-
}
|
|
116
|
-
}));
|
|
117
|
-
return renderSVG ? svgIcon : fontIcon;
|
|
118
|
-
},
|
|
119
|
-
methods: {
|
|
120
|
-
handleClick: function handleClick(e) {
|
|
121
|
-
this.$emit('click', e);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* @hidden
|
|
127
|
-
*/
|
|
128
|
-
var Icon = IconVue2;
|
|
129
|
-
export { Icon, IconVue2 };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
-
declare type DefaultMethods<V> = {
|
|
4
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
-
};
|
|
6
|
-
import { BaseIconProps } from './BaseIconProps';
|
|
7
|
-
/**
|
|
8
|
-
* Specifies the SVG icon.
|
|
9
|
-
*/
|
|
10
|
-
export interface SVGIcon {
|
|
11
|
-
/**
|
|
12
|
-
* The unique name of the icon.
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* The entire SVG content of the icon.
|
|
17
|
-
*/
|
|
18
|
-
content: string;
|
|
19
|
-
/**
|
|
20
|
-
* The [viewBox](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox)
|
|
21
|
-
* definition that should be used for the icon.
|
|
22
|
-
*/
|
|
23
|
-
viewBox: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export interface SvgIconHandle {
|
|
29
|
-
/**
|
|
30
|
-
* The SvgIconHandle element.
|
|
31
|
-
*/
|
|
32
|
-
element: HTMLSpanElement | null;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Represents the props of the [Kendo UI for Vue SvgIcon component]({% slug overview_svgicon %}).
|
|
36
|
-
*/
|
|
37
|
-
export interface SvgIconProps extends BaseIconProps {
|
|
38
|
-
/**
|
|
39
|
-
* Represents the name of the icon.
|
|
40
|
-
*/
|
|
41
|
-
name?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies the SVG icon.
|
|
44
|
-
*
|
|
45
|
-
* * The possible keys are:
|
|
46
|
-
* * `name`—The unique name of the icon.
|
|
47
|
-
* * `content`—The entire SVG content of the icon.
|
|
48
|
-
* * `viewBox`—The viewBox definition that should be used for the icon.
|
|
49
|
-
*/
|
|
50
|
-
icon?: SVGIcon;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies the viewBox of the custom SVG icon.
|
|
53
|
-
*/
|
|
54
|
-
viewBox?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Specifies a list of CSS classes that will be added to the svg element.
|
|
57
|
-
*/
|
|
58
|
-
svgClassName?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Sets additional CSS styles to the svg element.
|
|
61
|
-
*/
|
|
62
|
-
svgStyle?: object;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
export interface SvgIconState {
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
export interface SvgIconComputed {
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
export interface SvgIconMethods {
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
export interface SvgIconData {
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* @hidden
|
|
88
|
-
*/
|
|
89
|
-
export interface SvgIconAll extends Vue2type, SvgIconMethods, SvgIconData, SvgIconComputed, SvgIconState {
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
declare let SvgIconVue2: ComponentOptions<SvgIconAll, DefaultData<SvgIconData>, DefaultMethods<SvgIconAll>, SvgIconComputed, RecordPropsDefinition<SvgIconProps>>;
|
|
95
|
-
/**
|
|
96
|
-
* @hidden
|
|
97
|
-
*/
|
|
98
|
-
declare const SvgIcon: DefineComponent<SvgIconProps, any, SvgIconData, SvgIconComputed, SvgIconMethods, {}, {}, {}, string, SvgIconProps, SvgIconProps, {}>;
|
|
99
|
-
export { SvgIcon, SvgIconVue2 };
|
package/dist/es/icons/SvgIcon.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
for (var p in s) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import * as Vue from 'vue';
|
|
15
|
-
var allVue = Vue;
|
|
16
|
-
var gh = allVue.h;
|
|
17
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { SIZE_CLASSES } from './constants';
|
|
19
|
-
import { getDefaultSlots } from '../defaultSlots';
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
var SvgIconVue2 = {
|
|
24
|
-
name: 'KendoSvgIcon',
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
emits: {
|
|
27
|
-
click: null
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
name: String,
|
|
31
|
-
icon: Object,
|
|
32
|
-
themeColor: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
flip: {
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
id: String,
|
|
42
|
-
ariaLabel: String,
|
|
43
|
-
title: String,
|
|
44
|
-
viewBox: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: '0 0 24 24'
|
|
47
|
-
},
|
|
48
|
-
tabIndex: Number,
|
|
49
|
-
svgClassName: String,
|
|
50
|
-
svgStyle: Object
|
|
51
|
-
},
|
|
52
|
-
computed: {
|
|
53
|
-
wrapperClass: function wrapperClass() {
|
|
54
|
-
var _a;
|
|
55
|
-
var _b = this.$props,
|
|
56
|
-
name = _b.name,
|
|
57
|
-
flip = _b.flip,
|
|
58
|
-
size = _b.size,
|
|
59
|
-
themeColor = _b.themeColor;
|
|
60
|
-
return _a = {
|
|
61
|
-
'k-icon': true,
|
|
62
|
-
'k-svg-icon': true
|
|
63
|
-
}, _a['k-color-' + themeColor] = themeColor, _a['k-svg-i-' + name] = name, _a['k-flip-h'] = flip === 'horizontal' || flip === 'both', _a['k-flip-v'] = flip === 'vertical' || flip === 'both', _a[SIZE_CLASSES[size]] = size, _a;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
setup: !isV3 ? undefined : function () {
|
|
68
|
-
var v3 = !!isV3;
|
|
69
|
-
return {
|
|
70
|
-
v3: v3
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
render: function render(createElement) {
|
|
75
|
-
var h = gh || createElement;
|
|
76
|
-
var defaultSlot = getDefaultSlots(this);
|
|
77
|
-
var _a = this.$props,
|
|
78
|
-
svgClassName = _a.svgClassName,
|
|
79
|
-
icon = _a.icon,
|
|
80
|
-
id = _a.id,
|
|
81
|
-
tabIndex = _a.tabIndex,
|
|
82
|
-
svgStyle = _a.svgStyle,
|
|
83
|
-
viewBox = _a.viewBox,
|
|
84
|
-
title = _a.title,
|
|
85
|
-
ariaLabel = _a.ariaLabel;
|
|
86
|
-
var innerHTML = icon ? icon.content : undefined;
|
|
87
|
-
var attrs = {
|
|
88
|
-
id: id,
|
|
89
|
-
title: title,
|
|
90
|
-
'aria-hidden': true,
|
|
91
|
-
tabIndex: tabIndex,
|
|
92
|
-
ariaLabel: ariaLabel,
|
|
93
|
-
focusable: 'false',
|
|
94
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
95
|
-
viewBox: icon ? icon.viewBox : viewBox
|
|
96
|
-
};
|
|
97
|
-
var svg = h('svg', __assign(__assign({}, attrs), {
|
|
98
|
-
attrs: this.v3 ? undefined : attrs,
|
|
99
|
-
domProps: this.v3 ? undefined : {
|
|
100
|
-
innerHTML: innerHTML
|
|
101
|
-
},
|
|
102
|
-
innerHTML: innerHTML,
|
|
103
|
-
'class': svgClassName,
|
|
104
|
-
style: svgStyle
|
|
105
|
-
}), icon ? [] : [defaultSlot]);
|
|
106
|
-
return h("span", {
|
|
107
|
-
"class": this.wrapperClass,
|
|
108
|
-
onClick: this.handleClick,
|
|
109
|
-
on: this.v3 ? undefined : {
|
|
110
|
-
"click": this.handleClick
|
|
111
|
-
},
|
|
112
|
-
"aria-hidden": true,
|
|
113
|
-
attrs: this.v3 ? undefined : {
|
|
114
|
-
"aria-hidden": true
|
|
115
|
-
}
|
|
116
|
-
}, [svg]);
|
|
117
|
-
},
|
|
118
|
-
methods: {
|
|
119
|
-
handleClick: function handleClick(e) {
|
|
120
|
-
this.$emit('click', e);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* @hidden
|
|
126
|
-
*/
|
|
127
|
-
var SvgIcon = SvgIconVue2;
|
|
128
|
-
export { SvgIcon, SvgIconVue2 };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the icon flip direction.
|
|
3
|
-
*
|
|
4
|
-
* The possible values are:
|
|
5
|
-
* * `default` (Default)—No flipping applied.
|
|
6
|
-
* * `horizontal`—Flips the icon in horizontal direction.
|
|
7
|
-
* * `vertical`—Flips the icon in vertical direction.
|
|
8
|
-
* * `both`—Flips the icon in both horizontal and vertical directions.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export declare type IconFlip = 'default' | 'horizontal' | 'vertical' | 'both';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the size of the icon.
|
|
3
|
-
*
|
|
4
|
-
* The possible values are:
|
|
5
|
-
* * `default` (Default)—Font-size: 16px; Width: 16px; Height: 16px.
|
|
6
|
-
* * `xsmall`—Font-size: 12px; Width: 12px; Height: 12px.
|
|
7
|
-
* * `small`—Font-size: 14px; Width: 14px; Height: 14px.
|
|
8
|
-
* * `medium`—Font-size: 16px; Width: 16px; Height: 16px.
|
|
9
|
-
* * `large`—Font-size: 20px; Width: 20px; Height: 20px.
|
|
10
|
-
* * `xlarge`—Font-size: 24px; Width: 24px; Height: 24px.
|
|
11
|
-
* * `xxlarge`—Font-size: 32px; Width: 32px; Height: 32px.
|
|
12
|
-
* * `xxxlarge`—Font-size: 48px; Width: 48px; Height: 48px.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare type IconSize = 'default' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the theme color of the Icon.
|
|
3
|
-
*
|
|
4
|
-
* The possible values are:
|
|
5
|
-
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
6
|
-
* * `primary` —Applies coloring based on primary theme color.
|
|
7
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
8
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
9
|
-
* * `info`—Applies coloring based on info theme color.
|
|
10
|
-
* * `success`— Applies coloring based on success theme color.
|
|
11
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
12
|
-
* * `error`— Applies coloring based on error theme color.
|
|
13
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
14
|
-
* * `light`— Applies coloring based on light theme color.
|
|
15
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
16
|
-
*
|
|
17
|
-
* If the property is not set, the icon inherits the color from its parent.
|
|
18
|
-
*
|
|
19
|
-
* You can use the `style` prop to apply custom color related properties to the icon.
|
|
20
|
-
*/
|
|
21
|
-
export declare type IconThemeColor = 'inherit' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/es/isObject.d.ts
DELETED
package/dist/es/isObject.js
DELETED
package/dist/es/isRtl.d.ts
DELETED
package/dist/es/isRtl.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { canUseDOM } from './canUseDOM';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export function isRtl(element) {
|
|
6
|
-
return Boolean(canUseDOM && element && getComputedStyle(element).direction === 'rtl');
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export function getDir(element, initialDir) {
|
|
12
|
-
if (!initialDir && canUseDOM && element) {
|
|
13
|
-
// Note: getComputedStyle forces reflow
|
|
14
|
-
var rtlCandidate = window.getComputedStyle(element).direction;
|
|
15
|
-
if (rtlCandidate) {
|
|
16
|
-
// rerender is needed as DOM is read after first render
|
|
17
|
-
return rtlCandidate;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return initialDir;
|
|
21
|
-
}
|
package/dist/es/keys.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
declare const Keys: {
|
|
5
|
-
backspace: number;
|
|
6
|
-
tab: number;
|
|
7
|
-
enter: number;
|
|
8
|
-
shift: number;
|
|
9
|
-
esc: number;
|
|
10
|
-
space: number;
|
|
11
|
-
pageUp: number;
|
|
12
|
-
pageDown: number;
|
|
13
|
-
end: number;
|
|
14
|
-
home: number;
|
|
15
|
-
left: number;
|
|
16
|
-
up: number;
|
|
17
|
-
right: number;
|
|
18
|
-
down: number;
|
|
19
|
-
delete: number;
|
|
20
|
-
};
|
|
21
|
-
export { Keys };
|
package/dist/es/keys.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var Keys = {
|
|
5
|
-
backspace: 8,
|
|
6
|
-
tab: 9,
|
|
7
|
-
enter: 13,
|
|
8
|
-
shift: 16,
|
|
9
|
-
esc: 27,
|
|
10
|
-
space: 32,
|
|
11
|
-
pageUp: 33,
|
|
12
|
-
pageDown: 34,
|
|
13
|
-
end: 35,
|
|
14
|
-
home: 36,
|
|
15
|
-
left: 37,
|
|
16
|
-
up: 38,
|
|
17
|
-
right: 39,
|
|
18
|
-
down: 40,
|
|
19
|
-
delete: 46
|
|
20
|
-
};
|
|
21
|
-
export { Keys };
|
package/dist/es/listeners.d.ts
DELETED
package/dist/es/listeners.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export function hasListener(eventName) {
|
|
5
|
-
if (this.v3) {
|
|
6
|
-
var eventInAttrs = Object.keys(this.$attrs).map(function (name) { return name.toLowerCase(); })
|
|
7
|
-
.some(function (event) { return event.endsWith(eventName.toLowerCase()); });
|
|
8
|
-
var eventInProps = Object.entries(this.$props)
|
|
9
|
-
.some(function (_a) {
|
|
10
|
-
var name = _a[0], value = _a[1];
|
|
11
|
-
var event = name.toLowerCase();
|
|
12
|
-
return value !== undefined && event.startsWith('on') && event.endsWith(eventName.toLowerCase());
|
|
13
|
-
});
|
|
14
|
-
return eventInAttrs || eventInProps;
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return this.$listeners[eventName];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export function getListeners() {
|
|
24
|
-
if (this.v3) {
|
|
25
|
-
var listeners = {};
|
|
26
|
-
for (var key in (this.$attrs)) {
|
|
27
|
-
if (key.startsWith('on')) {
|
|
28
|
-
listeners[key] = this.$attrs[key];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
for (var key in (this.$props)) {
|
|
32
|
-
if (key.startsWith('on')) {
|
|
33
|
-
listeners[key] = this.$props[key];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return listeners;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.$listeners;
|
|
40
|
-
}
|
|
41
|
-
}
|
package/dist/es/main.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { classNames } from './classNames';
|
|
2
|
-
import { guid } from './guid';
|
|
3
|
-
import { Keys } from './keys';
|
|
4
|
-
import { FormComponentProps, FormComponentValidity } from './FormComponent';
|
|
5
|
-
import { canUseDOM } from './canUseDOM';
|
|
6
|
-
import { getRef, setRef } from './refs';
|
|
7
|
-
import { focusFirstFocusableChild, focusLastFocusableChild, focusContainer, firstFocusableChild, lastFocusableChild } from './focus';
|
|
8
|
-
import { Draggable, DraggablePressEvent, DraggableDragEvent, DraggableReleaseEvent } from './Draggable';
|
|
9
|
-
import { clone, cloneArray, cloneValue, cloneObject, cloneDate } from './clone';
|
|
10
|
-
import { isObject } from './isObject';
|
|
11
|
-
import { noop } from './noop';
|
|
12
|
-
import { getter } from './getter';
|
|
13
|
-
import { setter } from './setter';
|
|
14
|
-
import { hasListener, getListeners } from './listeners';
|
|
15
|
-
import { templateRendering, getTemplate, templateDefinition } from './templateRendering';
|
|
16
|
-
import { getTabIndex } from './getTabIndex';
|
|
17
|
-
import { getDefaultSlots } from './defaultSlots';
|
|
18
|
-
import { isRtl, getDir } from './isRtl';
|
|
19
|
-
import { validatePackage, shouldShowValidationUI } from './validate-package';
|
|
20
|
-
export { getRef, setRef, classNames, guid, Keys, noop, isObject, getListeners, hasListener, FormComponentProps, FormComponentValidity, canUseDOM, firstFocusableChild, focusFirstFocusableChild, lastFocusableChild, focusLastFocusableChild, focusContainer, clone, Draggable, DraggablePressEvent, DraggableDragEvent, DraggableReleaseEvent, cloneArray, cloneValue, cloneObject, cloneDate, getTemplate, templateRendering, templateDefinition, getTabIndex, getDefaultSlots, isRtl, getDir, getter, setter, validatePackage, shouldShowValidationUI };
|
|
21
|
-
export * from './theme';
|
|
22
|
-
export * from './treeDataOperations';
|
|
23
|
-
export * from './browser-support.service';
|
|
24
|
-
export * from './scrollbarWidth';
|
|
25
|
-
export * from './hasRelativeStackingContext';
|
|
26
|
-
export * from './icons/Icon';
|
|
27
|
-
export * from './icons/FontIcon';
|
|
28
|
-
export * from './icons/SvgIcon';
|
|
29
|
-
export * from './icons/getIconName';
|
|
30
|
-
export * from './icons/models/flip';
|
|
31
|
-
export * from './icons/models/size';
|
|
32
|
-
export * from './icons/models/theme-color';
|
|
33
|
-
export * from './navigation';
|
|
34
|
-
export * from './getActiveElement';
|
|
35
|
-
export * from './watermark/WatermarkOverlay';
|
package/dist/es/main.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { classNames } from './classNames';
|
|
2
|
-
import { guid } from './guid';
|
|
3
|
-
import { Keys } from './keys';
|
|
4
|
-
import { canUseDOM } from './canUseDOM';
|
|
5
|
-
import { getRef, setRef } from './refs';
|
|
6
|
-
import { focusFirstFocusableChild, focusLastFocusableChild, focusContainer, firstFocusableChild, lastFocusableChild } from './focus';
|
|
7
|
-
import { Draggable } from './Draggable';
|
|
8
|
-
import { clone, cloneArray, cloneValue, cloneObject, cloneDate } from './clone';
|
|
9
|
-
import { isObject } from './isObject';
|
|
10
|
-
import { noop } from './noop';
|
|
11
|
-
import { getter } from './getter';
|
|
12
|
-
import { setter } from './setter';
|
|
13
|
-
import { hasListener, getListeners } from './listeners';
|
|
14
|
-
import { templateRendering, getTemplate, templateDefinition } from './templateRendering';
|
|
15
|
-
import { getTabIndex } from './getTabIndex';
|
|
16
|
-
import { getDefaultSlots } from './defaultSlots';
|
|
17
|
-
import { isRtl, getDir } from './isRtl';
|
|
18
|
-
import { validatePackage, shouldShowValidationUI } from './validate-package';
|
|
19
|
-
export { getRef, setRef, classNames, guid, Keys, noop, isObject, getListeners, hasListener, canUseDOM, firstFocusableChild, focusFirstFocusableChild, lastFocusableChild, focusLastFocusableChild, focusContainer, clone, Draggable, cloneArray, cloneValue, cloneObject, cloneDate, getTemplate, templateRendering, templateDefinition, getTabIndex, getDefaultSlots, isRtl, getDir, getter, setter, validatePackage, shouldShowValidationUI };
|
|
20
|
-
export * from './theme';
|
|
21
|
-
export * from './treeDataOperations';
|
|
22
|
-
export * from './browser-support.service';
|
|
23
|
-
export * from './scrollbarWidth';
|
|
24
|
-
export * from './hasRelativeStackingContext';
|
|
25
|
-
export * from './icons/Icon';
|
|
26
|
-
export * from './icons/FontIcon';
|
|
27
|
-
export * from './icons/SvgIcon';
|
|
28
|
-
export * from './icons/getIconName';
|
|
29
|
-
export * from './icons/models/flip';
|
|
30
|
-
export * from './icons/models/size';
|
|
31
|
-
export * from './icons/models/theme-color';
|
|
32
|
-
export * from './navigation';
|
|
33
|
-
export * from './getActiveElement';
|
|
34
|
-
export * from './watermark/WatermarkOverlay';
|