@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/npm/icons/Icon.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
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
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
exports.IconVue2 = exports.Icon = void 0;
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
var Vue = require("vue");
|
|
21
|
-
var allVue = Vue;
|
|
22
|
-
var gh = allVue.h;
|
|
23
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
24
|
-
var FontIcon_1 = require("./FontIcon");
|
|
25
|
-
var SvgIcon_1 = require("./SvgIcon");
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
var IconVue2 = {
|
|
30
|
-
name: 'KendoIcon',
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
emits: {
|
|
33
|
-
click: null
|
|
34
|
-
},
|
|
35
|
-
inject: {
|
|
36
|
-
kendoIcons: {
|
|
37
|
-
default: {
|
|
38
|
-
type: 'svg',
|
|
39
|
-
icons: {}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
name: String,
|
|
45
|
-
icon: Object,
|
|
46
|
-
title: String,
|
|
47
|
-
themeColor: {
|
|
48
|
-
type: String
|
|
49
|
-
},
|
|
50
|
-
size: {
|
|
51
|
-
type: String
|
|
52
|
-
},
|
|
53
|
-
flip: {
|
|
54
|
-
type: String
|
|
55
|
-
},
|
|
56
|
-
id: String,
|
|
57
|
-
ariaLabel: String,
|
|
58
|
-
viewBox: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '0 0 24 24'
|
|
61
|
-
},
|
|
62
|
-
tabIndex: Number
|
|
63
|
-
},
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
setup: !isV3 ? undefined : function () {
|
|
66
|
-
var v3 = !!isV3;
|
|
67
|
-
return {
|
|
68
|
-
v3: v3
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
render: function render(createElement) {
|
|
73
|
-
var h = gh || createElement;
|
|
74
|
-
var _a = this.$props,
|
|
75
|
-
name = _a.name,
|
|
76
|
-
icon = _a.icon,
|
|
77
|
-
themeColor = _a.themeColor,
|
|
78
|
-
size = _a.size,
|
|
79
|
-
flip = _a.flip,
|
|
80
|
-
id = _a.id,
|
|
81
|
-
viewBox = _a.viewBox,
|
|
82
|
-
tabIndex = _a.tabIndex,
|
|
83
|
-
title = _a.title,
|
|
84
|
-
ariaLabel = _a.ariaLabel;
|
|
85
|
-
var svg = name && this.kendoIcons && this.kendoIcons.icons && this.kendoIcons.icons[name] || icon;
|
|
86
|
-
var renderSVG = this.kendoIcons && this.kendoIcons.type === 'svg' && svg !== undefined;
|
|
87
|
-
var newSize = this.kendoIcons && this.kendoIcons.size ? this.kendoIcons.size : size;
|
|
88
|
-
var newFlip = this.kendoIcons && this.kendoIcons.flip ? this.kendoIcons.flip : flip;
|
|
89
|
-
var resolvedName = name || (icon && icon.name ? icon.name : undefined);
|
|
90
|
-
var commonProps = {
|
|
91
|
-
themeColor: themeColor,
|
|
92
|
-
size: newSize,
|
|
93
|
-
flip: newFlip,
|
|
94
|
-
id: id,
|
|
95
|
-
tabIndex: tabIndex,
|
|
96
|
-
title: title,
|
|
97
|
-
ariaLabel: ariaLabel
|
|
98
|
-
};
|
|
99
|
-
var fontIcon = h(FontIcon_1.FontIcon, __assign(__assign({}, commonProps), {
|
|
100
|
-
name: resolvedName,
|
|
101
|
-
attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
|
|
102
|
-
name: resolvedName
|
|
103
|
-
}),
|
|
104
|
-
onClick: this.handleClick,
|
|
105
|
-
on: this.v3 ? undefined : {
|
|
106
|
-
'click': this.handleClick
|
|
107
|
-
}
|
|
108
|
-
}));
|
|
109
|
-
var svgIcon = h(SvgIcon_1.SvgIcon, __assign(__assign({}, commonProps), {
|
|
110
|
-
icon: svg,
|
|
111
|
-
viewBox: viewBox,
|
|
112
|
-
name: resolvedName,
|
|
113
|
-
attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
|
|
114
|
-
icon: svg,
|
|
115
|
-
viewBox: viewBox,
|
|
116
|
-
name: resolvedName
|
|
117
|
-
}),
|
|
118
|
-
onClick: this.handleClick,
|
|
119
|
-
on: this.v3 ? undefined : {
|
|
120
|
-
'click': this.handleClick
|
|
121
|
-
}
|
|
122
|
-
}));
|
|
123
|
-
return renderSVG ? svgIcon : fontIcon;
|
|
124
|
-
},
|
|
125
|
-
methods: {
|
|
126
|
-
handleClick: function handleClick(e) {
|
|
127
|
-
this.$emit('click', e);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
exports.IconVue2 = IconVue2;
|
|
132
|
-
/**
|
|
133
|
-
* @hidden
|
|
134
|
-
*/
|
|
135
|
-
var Icon = IconVue2;
|
|
136
|
-
exports.Icon = Icon;
|
|
@@ -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 };
|
|
@@ -1,135 +0,0 @@
|
|
|
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
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
exports.SvgIconVue2 = exports.SvgIcon = void 0;
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
var Vue = require("vue");
|
|
21
|
-
var allVue = Vue;
|
|
22
|
-
var gh = allVue.h;
|
|
23
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
24
|
-
var constants_1 = require("./constants");
|
|
25
|
-
var defaultSlots_1 = require("../defaultSlots");
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
var SvgIconVue2 = {
|
|
30
|
-
name: 'KendoSvgIcon',
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
emits: {
|
|
33
|
-
click: null
|
|
34
|
-
},
|
|
35
|
-
props: {
|
|
36
|
-
name: String,
|
|
37
|
-
icon: Object,
|
|
38
|
-
themeColor: {
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
size: {
|
|
42
|
-
type: String
|
|
43
|
-
},
|
|
44
|
-
flip: {
|
|
45
|
-
type: String
|
|
46
|
-
},
|
|
47
|
-
id: String,
|
|
48
|
-
ariaLabel: String,
|
|
49
|
-
title: String,
|
|
50
|
-
viewBox: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: '0 0 24 24'
|
|
53
|
-
},
|
|
54
|
-
tabIndex: Number,
|
|
55
|
-
svgClassName: String,
|
|
56
|
-
svgStyle: Object
|
|
57
|
-
},
|
|
58
|
-
computed: {
|
|
59
|
-
wrapperClass: function wrapperClass() {
|
|
60
|
-
var _a;
|
|
61
|
-
var _b = this.$props,
|
|
62
|
-
name = _b.name,
|
|
63
|
-
flip = _b.flip,
|
|
64
|
-
size = _b.size,
|
|
65
|
-
themeColor = _b.themeColor;
|
|
66
|
-
return _a = {
|
|
67
|
-
'k-icon': true,
|
|
68
|
-
'k-svg-icon': true
|
|
69
|
-
}, _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[constants_1.SIZE_CLASSES[size]] = size, _a;
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
// @ts-ignore
|
|
73
|
-
setup: !isV3 ? undefined : function () {
|
|
74
|
-
var v3 = !!isV3;
|
|
75
|
-
return {
|
|
76
|
-
v3: v3
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
render: function render(createElement) {
|
|
81
|
-
var h = gh || createElement;
|
|
82
|
-
var defaultSlot = (0, defaultSlots_1.getDefaultSlots)(this);
|
|
83
|
-
var _a = this.$props,
|
|
84
|
-
svgClassName = _a.svgClassName,
|
|
85
|
-
icon = _a.icon,
|
|
86
|
-
id = _a.id,
|
|
87
|
-
tabIndex = _a.tabIndex,
|
|
88
|
-
svgStyle = _a.svgStyle,
|
|
89
|
-
viewBox = _a.viewBox,
|
|
90
|
-
title = _a.title,
|
|
91
|
-
ariaLabel = _a.ariaLabel;
|
|
92
|
-
var innerHTML = icon ? icon.content : undefined;
|
|
93
|
-
var attrs = {
|
|
94
|
-
id: id,
|
|
95
|
-
title: title,
|
|
96
|
-
'aria-hidden': true,
|
|
97
|
-
tabIndex: tabIndex,
|
|
98
|
-
ariaLabel: ariaLabel,
|
|
99
|
-
focusable: 'false',
|
|
100
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
101
|
-
viewBox: icon ? icon.viewBox : viewBox
|
|
102
|
-
};
|
|
103
|
-
var svg = h('svg', __assign(__assign({}, attrs), {
|
|
104
|
-
attrs: this.v3 ? undefined : attrs,
|
|
105
|
-
domProps: this.v3 ? undefined : {
|
|
106
|
-
innerHTML: innerHTML
|
|
107
|
-
},
|
|
108
|
-
innerHTML: innerHTML,
|
|
109
|
-
'class': svgClassName,
|
|
110
|
-
style: svgStyle
|
|
111
|
-
}), icon ? [] : [defaultSlot]);
|
|
112
|
-
return h("span", {
|
|
113
|
-
"class": this.wrapperClass,
|
|
114
|
-
onClick: this.handleClick,
|
|
115
|
-
on: this.v3 ? undefined : {
|
|
116
|
-
"click": this.handleClick
|
|
117
|
-
},
|
|
118
|
-
"aria-hidden": true,
|
|
119
|
-
attrs: this.v3 ? undefined : {
|
|
120
|
-
"aria-hidden": true
|
|
121
|
-
}
|
|
122
|
-
}, [svg]);
|
|
123
|
-
},
|
|
124
|
-
methods: {
|
|
125
|
-
handleClick: function handleClick(e) {
|
|
126
|
-
this.$emit('click', e);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
exports.SvgIconVue2 = SvgIconVue2;
|
|
131
|
-
/**
|
|
132
|
-
* @hidden
|
|
133
|
-
*/
|
|
134
|
-
var SvgIcon = SvgIconVue2;
|
|
135
|
-
exports.SvgIcon = SvgIcon;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SIZE_CLASSES = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
exports.SIZE_CLASSES = {
|
|
8
|
-
'default': '',
|
|
9
|
-
'xsmall': 'k-icon-xs',
|
|
10
|
-
'small': 'k-icon-sm',
|
|
11
|
-
'medium': 'k-icon-md',
|
|
12
|
-
'large': 'k-icon-lg',
|
|
13
|
-
'xlarge': 'k-icon-xl',
|
|
14
|
-
'xxlarge': 'k-icon-xxl',
|
|
15
|
-
'xxxlarge': 'k-icon-xxxl'
|
|
16
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getIconName = void 0;
|
|
4
|
-
var getIconName = function (iconName) {
|
|
5
|
-
return (iconName && iconName.indexOf('k-i-') !== -1)
|
|
6
|
-
? iconName.split('k-i-')[1]
|
|
7
|
-
: iconName;
|
|
8
|
-
};
|
|
9
|
-
exports.getIconName = getIconName;
|
|
@@ -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,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,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';
|
package/dist/npm/isObject.d.ts
DELETED
package/dist/npm/isObject.js
DELETED
package/dist/npm/isRtl.d.ts
DELETED
package/dist/npm/isRtl.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDir = exports.isRtl = void 0;
|
|
4
|
-
var canUseDOM_1 = require("./canUseDOM");
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
function isRtl(element) {
|
|
9
|
-
return Boolean(canUseDOM_1.canUseDOM && element && getComputedStyle(element).direction === 'rtl');
|
|
10
|
-
}
|
|
11
|
-
exports.isRtl = isRtl;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
function getDir(element, initialDir) {
|
|
16
|
-
if (!initialDir && canUseDOM_1.canUseDOM && element) {
|
|
17
|
-
// Note: getComputedStyle forces reflow
|
|
18
|
-
var rtlCandidate = window.getComputedStyle(element).direction;
|
|
19
|
-
if (rtlCandidate) {
|
|
20
|
-
// rerender is needed as DOM is read after first render
|
|
21
|
-
return rtlCandidate;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return initialDir;
|
|
25
|
-
}
|
|
26
|
-
exports.getDir = getDir;
|
package/dist/npm/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/npm/keys.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Keys = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
var Keys = {
|
|
8
|
-
backspace: 8,
|
|
9
|
-
tab: 9,
|
|
10
|
-
enter: 13,
|
|
11
|
-
shift: 16,
|
|
12
|
-
esc: 27,
|
|
13
|
-
space: 32,
|
|
14
|
-
pageUp: 33,
|
|
15
|
-
pageDown: 34,
|
|
16
|
-
end: 35,
|
|
17
|
-
home: 36,
|
|
18
|
-
left: 37,
|
|
19
|
-
up: 38,
|
|
20
|
-
right: 39,
|
|
21
|
-
down: 40,
|
|
22
|
-
delete: 46
|
|
23
|
-
};
|
|
24
|
-
exports.Keys = Keys;
|
package/dist/npm/listeners.d.ts
DELETED
package/dist/npm/listeners.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getListeners = exports.hasListener = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
function hasListener(eventName) {
|
|
8
|
-
if (this.v3) {
|
|
9
|
-
var eventInAttrs = Object.keys(this.$attrs).map(function (name) { return name.toLowerCase(); })
|
|
10
|
-
.some(function (event) { return event.endsWith(eventName.toLowerCase()); });
|
|
11
|
-
var eventInProps = Object.entries(this.$props)
|
|
12
|
-
.some(function (_a) {
|
|
13
|
-
var name = _a[0], value = _a[1];
|
|
14
|
-
var event = name.toLowerCase();
|
|
15
|
-
return value !== undefined && event.startsWith('on') && event.endsWith(eventName.toLowerCase());
|
|
16
|
-
});
|
|
17
|
-
return eventInAttrs || eventInProps;
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return this.$listeners[eventName];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.hasListener = hasListener;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
function getListeners() {
|
|
28
|
-
if (this.v3) {
|
|
29
|
-
var listeners = {};
|
|
30
|
-
for (var key in (this.$attrs)) {
|
|
31
|
-
if (key.startsWith('on')) {
|
|
32
|
-
listeners[key] = this.$attrs[key];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
for (var key in (this.$props)) {
|
|
36
|
-
if (key.startsWith('on')) {
|
|
37
|
-
listeners[key] = this.$props[key];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return listeners;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.$listeners;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.getListeners = getListeners;
|
package/dist/npm/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';
|