@progress/kendo-vue-common 3.7.4-dev.202212020747 → 3.7.4-dev.202212300853

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/js/kendo-vue-common.js +1 -1
  3. package/dist/es/icons/BaseIconProps.d.ts +66 -0
  4. package/dist/es/icons/BaseIconProps.js +1 -0
  5. package/dist/es/icons/FontIcon.d.ts +51 -0
  6. package/dist/es/icons/FontIcon.js +65 -0
  7. package/dist/es/icons/Icon.d.ts +49 -0
  8. package/dist/es/icons/Icon.js +97 -0
  9. package/dist/es/icons/SvgIcon.d.ts +95 -0
  10. package/dist/es/icons/SvgIcon.js +88 -0
  11. package/dist/es/icons/constants.d.ts +11 -0
  12. package/dist/es/icons/constants.js +11 -0
  13. package/dist/es/icons/models/flip.d.ts +11 -0
  14. package/dist/es/icons/models/flip.js +1 -0
  15. package/dist/es/icons/models/size.d.ts +13 -0
  16. package/dist/es/icons/models/size.js +1 -0
  17. package/dist/es/icons/models/theme-color.d.ts +21 -0
  18. package/dist/es/icons/models/theme-color.js +1 -0
  19. package/dist/es/main.d.ts +6 -0
  20. package/dist/es/main.js +6 -0
  21. package/dist/esm/icons/BaseIconProps.d.ts +66 -0
  22. package/dist/esm/icons/BaseIconProps.js +1 -0
  23. package/dist/esm/icons/FontIcon.d.ts +51 -0
  24. package/dist/esm/icons/FontIcon.js +65 -0
  25. package/dist/esm/icons/Icon.d.ts +49 -0
  26. package/dist/esm/icons/Icon.js +97 -0
  27. package/dist/esm/icons/SvgIcon.d.ts +95 -0
  28. package/dist/esm/icons/SvgIcon.js +88 -0
  29. package/dist/esm/icons/constants.d.ts +11 -0
  30. package/dist/esm/icons/constants.js +11 -0
  31. package/dist/esm/icons/models/flip.d.ts +11 -0
  32. package/dist/esm/icons/models/flip.js +1 -0
  33. package/dist/esm/icons/models/size.d.ts +13 -0
  34. package/dist/esm/icons/models/size.js +1 -0
  35. package/dist/esm/icons/models/theme-color.d.ts +21 -0
  36. package/dist/esm/icons/models/theme-color.js +1 -0
  37. package/dist/esm/main.d.ts +6 -0
  38. package/dist/esm/main.js +6 -0
  39. package/dist/npm/icons/BaseIconProps.d.ts +66 -0
  40. package/dist/npm/icons/BaseIconProps.js +2 -0
  41. package/dist/npm/icons/FontIcon.d.ts +51 -0
  42. package/dist/npm/icons/FontIcon.js +72 -0
  43. package/dist/npm/icons/Icon.d.ts +49 -0
  44. package/dist/npm/icons/Icon.js +104 -0
  45. package/dist/npm/icons/SvgIcon.d.ts +95 -0
  46. package/dist/npm/icons/SvgIcon.js +95 -0
  47. package/dist/npm/icons/constants.d.ts +11 -0
  48. package/dist/npm/icons/constants.js +14 -0
  49. package/dist/npm/icons/models/flip.d.ts +11 -0
  50. package/dist/npm/icons/models/flip.js +2 -0
  51. package/dist/npm/icons/models/size.d.ts +13 -0
  52. package/dist/npm/icons/models/size.js +2 -0
  53. package/dist/npm/icons/models/theme-color.d.ts +21 -0
  54. package/dist/npm/icons/models/theme-color.js +2 -0
  55. package/dist/npm/main.d.ts +6 -0
  56. package/dist/npm/main.js +6 -0
  57. package/package.json +3 -2
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var SIZE_CLASSES = {
5
+ 'default': '',
6
+ 'xsmall': 'k-icon-xs',
7
+ 'small': 'k-icon-sm',
8
+ 'medium': 'k-icon-md',
9
+ 'large': 'k-icon-lg',
10
+ 'xlarge': 'k-icon-xl'
11
+ };
@@ -0,0 +1,11 @@
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';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
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: 8px; Width: 8px; Height: 8px.
7
+ * * `small`—Font-size: 12px; Width: 12px; Height: 12px.
8
+ * * `medium`—Font-size: 32px; Width: 32px; Height: 32px.
9
+ * * `large`—Font-size: 48px; Width: 48px; Height: 48px.
10
+ * * `xlarge`—Font-size: 64px; Width: 64px; Height: 64px.
11
+ *
12
+ */
13
+ export declare type IconSize = 'default' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
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';
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/main.d.ts CHANGED
@@ -23,3 +23,9 @@ export * from './treeDataOperations';
23
23
  export * from './browser-support.service';
24
24
  export * from './scrollbarWidth';
25
25
  export * from './hasRelativeStackingContext';
26
+ export * from './icons/Icon';
27
+ export * from './icons/FontIcon';
28
+ export * from './icons/SvgIcon';
29
+ export * from './icons/models/flip';
30
+ export * from './icons/models/size';
31
+ export * from './icons/models/theme-color';
package/dist/es/main.js CHANGED
@@ -22,3 +22,9 @@ export * from './treeDataOperations';
22
22
  export * from './browser-support.service';
23
23
  export * from './scrollbarWidth';
24
24
  export * from './hasRelativeStackingContext';
25
+ export * from './icons/Icon';
26
+ export * from './icons/FontIcon';
27
+ export * from './icons/SvgIcon';
28
+ export * from './icons/models/flip';
29
+ export * from './icons/models/size';
30
+ export * from './icons/models/theme-color';
@@ -0,0 +1,66 @@
1
+ import { IconThemeColor } from './models/theme-color';
2
+ import { IconSize } from './models/size';
3
+ import { IconFlip } from './models/flip';
4
+ /**
5
+ * @hidden
6
+ */
7
+ export interface BaseIconProps {
8
+ /**
9
+ * Sets the `tabIndex` of the icon element.
10
+ */
11
+ tabIndex?: number;
12
+ /**
13
+ * Sets the `id` of the icon element.
14
+ */
15
+ id?: string;
16
+ /**
17
+ * Specifies a list of CSS classes that will be added to the root DOM element.
18
+ */
19
+ class?: string;
20
+ /**
21
+ * Specifies the theme color of the Icon.
22
+ *
23
+ * The possible values are:
24
+ * * `inherit` (Default)—Applies coloring based on the current color.
25
+ * * `primary` —Applies coloring based on primary theme color.
26
+ * * `secondary`—Applies coloring based on secondary theme color.
27
+ * * `tertiary`— Applies coloring based on tertiary theme color.
28
+ * * `info`—Applies coloring based on info theme color.
29
+ * * `success`— Applies coloring based on success theme color.
30
+ * * `warning`— Applies coloring based on warning theme color.
31
+ * * `error`— Applies coloring based on error theme color.
32
+ * * `dark`— Applies coloring based on dark theme color.
33
+ * * `light`— Applies coloring based on light theme color.
34
+ * * `inverse`— Applies coloring based on inverse theme color.
35
+ *
36
+ * If the property is not set, the icon inherits the color from its parent.
37
+ *
38
+ * You can use the `style` prop to apply custom color related properties to the icon.
39
+ */
40
+ themeColor?: IconThemeColor | string;
41
+ /**
42
+ * Specifies the size of the icon.
43
+ *
44
+ * The possible values are:
45
+ * * `default` (Default)—Font-size: 16px; Width: 16px; Height: 16px.
46
+ * * `xsmall`—Font-size: 8px; Width: 8px; Height: 8px.
47
+ * * `small`—Font-size: 12px; Width: 12px; Height: 12px.
48
+ * * `medium`—Font-size: 32px; Width: 32px; Height: 32px.
49
+ * * `large`—Font-size: 48px; Width: 48px; Height: 48px.
50
+ * * `xlarge`—Font-size: 64px; Width: 64px; Height: 64px.
51
+ *
52
+ * You can use the `style` prop to apply custom font size to the icon.
53
+ */
54
+ size?: IconSize | string;
55
+ /**
56
+ * Specifies the icon flip direction.
57
+ *
58
+ * The possible values are:
59
+ * * `default` (Default)—No flipping applied.
60
+ * * `horizontal`—Flips the icon in horizontal direction.
61
+ * * `vertical`—Flips the icon in vertical direction.
62
+ * * `both`—Flips the icon in both horizontal and vertical directions.
63
+ *
64
+ */
65
+ flip?: IconFlip | string;
66
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
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
+ * Represents the props of the [Kendo UI for Vue Icon component]({% slug overview_icon %}).
9
+ */
10
+ export interface FontIconProps extends BaseIconProps {
11
+ /**
12
+ * Represents the name of the icon.
13
+ */
14
+ name?: string;
15
+ }
16
+ /**
17
+ * @hidden
18
+ */
19
+ export interface FontIconState {
20
+ }
21
+ /**
22
+ * @hidden
23
+ */
24
+ export interface FontIconComputed {
25
+ [key: string]: any;
26
+ }
27
+ /**
28
+ * @hidden
29
+ */
30
+ export interface FontIconMethods {
31
+ [key: string]: any;
32
+ }
33
+ /**
34
+ * @hidden
35
+ */
36
+ export interface FontIconData {
37
+ }
38
+ /**
39
+ * @hidden
40
+ */
41
+ export interface FontIconAll extends Vue2type, FontIconMethods, FontIconData, FontIconComputed, FontIconState {
42
+ }
43
+ /**
44
+ * @hidden
45
+ */
46
+ declare let FontIconVue2: ComponentOptions<FontIconAll, DefaultData<FontIconData>, DefaultMethods<FontIconAll>, FontIconComputed, RecordPropsDefinition<FontIconProps>>;
47
+ /**
48
+ * @hidden
49
+ */
50
+ declare const FontIcon: DefineComponent<FontIconProps, any, FontIconData, FontIconComputed, FontIconMethods, {}, {}, {}, string, FontIconProps, FontIconProps, {}>;
51
+ export { FontIcon, FontIconVue2 };
@@ -0,0 +1,65 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { SIZE_CLASSES } from './constants.js';
7
+ /**
8
+ * @hidden
9
+ */
10
+ var FontIconVue2 = {
11
+ name: 'KendoFontIcon',
12
+ props: {
13
+ name: String,
14
+ themeColor: {
15
+ type: String
16
+ },
17
+ size: {
18
+ type: String
19
+ },
20
+ flip: {
21
+ type: String
22
+ },
23
+ id: String,
24
+ tabIndex: Number
25
+ },
26
+ computed: {
27
+ fontClassNames: function fontClassNames() {
28
+ var _a;
29
+ var _b = this.$props,
30
+ name = _b.name,
31
+ flip = _b.flip,
32
+ size = _b.size,
33
+ themeColor = _b.themeColor;
34
+ return _a = {
35
+ 'k-icon': true
36
+ }, _a['k-i-' + name] = name, _a['k-color-' + themeColor] = themeColor, _a['k-flip-h'] = flip === 'horizontal' || flip === 'both', _a['k-flip-v'] = flip === 'vertical' || flip === 'both', _a[SIZE_CLASSES[size]] = size, _a;
37
+ }
38
+ },
39
+ // @ts-ignore
40
+ setup: !isV3 ? undefined : function () {
41
+ var v3 = !!isV3;
42
+ return {
43
+ v3: v3
44
+ };
45
+ },
46
+ // @ts-ignore
47
+ render: function render(createElement) {
48
+ var h = gh || createElement;
49
+ var id = this.$props.id;
50
+ return h("span", {
51
+ "class": this.fontClassNames,
52
+ id: id,
53
+ attrs: this.v3 ? undefined : {
54
+ id: id,
55
+ role: "presentation"
56
+ },
57
+ role: "presentation"
58
+ });
59
+ }
60
+ };
61
+ /**
62
+ * @hidden
63
+ */
64
+ var FontIcon = FontIconVue2;
65
+ export { FontIcon, FontIconVue2 };
@@ -0,0 +1,49 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ import { SvgIconProps } from './SvgIcon';
3
+ declare type DefaultData<V> = object | ((this: V) => {});
4
+ declare type DefaultMethods<V> = {
5
+ [key: string]: (this: V, ...args: any[]) => any;
6
+ };
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface IconProps extends SvgIconProps {
11
+ iconType?: string;
12
+ name?: string;
13
+ }
14
+ /**
15
+ * @hidden
16
+ */
17
+ export interface IconState {
18
+ }
19
+ /**
20
+ * @hidden
21
+ */
22
+ export interface IconComputed {
23
+ [key: string]: any;
24
+ }
25
+ /**
26
+ * @hidden
27
+ */
28
+ export interface IconMethods {
29
+ [key: string]: any;
30
+ }
31
+ /**
32
+ * @hidden
33
+ */
34
+ export interface IconData {
35
+ }
36
+ /**
37
+ * @hidden
38
+ */
39
+ export interface IconAll extends Vue2type, IconMethods, IconData, IconComputed, IconState {
40
+ }
41
+ /**
42
+ * @hidden
43
+ */
44
+ declare let IconVue2: ComponentOptions<IconAll, DefaultData<IconData>, DefaultMethods<IconAll>, IconComputed, RecordPropsDefinition<IconProps>>;
45
+ /**
46
+ * @hidden
47
+ */
48
+ declare const Icon: DefineComponent<IconProps, any, IconData, IconComputed, IconMethods, {}, {}, {}, string, IconProps, IconProps, {}>;
49
+ export { Icon, IconVue2 };
@@ -0,0 +1,97 @@
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.js';
19
+ import { SvgIcon } from './SvgIcon.js';
20
+ /**
21
+ * @hidden
22
+ */
23
+ var IconVue2 = {
24
+ name: 'KendoIcon',
25
+ props: {
26
+ iconType: {
27
+ type: String,
28
+ default: 'font'
29
+ },
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
+ viewBox: {
43
+ type: String,
44
+ default: '0 0 24 24'
45
+ },
46
+ tabIndex: Number
47
+ },
48
+ // @ts-ignore
49
+ setup: !isV3 ? undefined : function () {
50
+ var v3 = !!isV3;
51
+ return {
52
+ v3: v3
53
+ };
54
+ },
55
+ // @ts-ignore
56
+ render: function render(createElement) {
57
+ var h = gh || createElement;
58
+ var _a = this.$props,
59
+ iconType = _a.iconType,
60
+ name = _a.name,
61
+ icon = _a.icon,
62
+ themeColor = _a.themeColor,
63
+ size = _a.size,
64
+ flip = _a.flip,
65
+ id = _a.id,
66
+ viewBox = _a.viewBox,
67
+ tabIndex = _a.tabIndex;
68
+ var resolvedName = name || (icon && icon.name ? icon.name.split('-icon')[0] : undefined);
69
+ var commonProps = {
70
+ themeColor: themeColor,
71
+ size: size,
72
+ flip: flip,
73
+ id: id,
74
+ tabIndex: tabIndex
75
+ };
76
+ var fontIcon = h(FontIcon, __assign(__assign({}, commonProps), {
77
+ name: resolvedName,
78
+ attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
79
+ name: resolvedName
80
+ })
81
+ }));
82
+ var svgIcon = h(SvgIcon, __assign(__assign({}, commonProps), {
83
+ icon: icon,
84
+ viewBox: viewBox,
85
+ attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
86
+ icon: icon,
87
+ viewBox: viewBox
88
+ })
89
+ }));
90
+ return iconType === 'font' ? fontIcon : svgIcon;
91
+ }
92
+ };
93
+ /**
94
+ * @hidden
95
+ */
96
+ var Icon = IconVue2;
97
+ export { Icon, IconVue2 };
@@ -0,0 +1,95 @@
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
+ * Specifies the SVG icon.
40
+ *
41
+ * * The possible keys are:
42
+ * * `name`&mdash;The unique name of the icon.
43
+ * * `content`&mdash;The entire SVG content of the icon.
44
+ * * `viewBox`&mdash;The viewBox definition that should be used for the icon.
45
+ */
46
+ icon?: SVGIcon;
47
+ /**
48
+ * Specifies the viewBox of the custom SVG icon.
49
+ */
50
+ viewBox?: string;
51
+ /**
52
+ * Specifies a list of CSS classes that will be added to the svg element.
53
+ */
54
+ svgClassName?: string;
55
+ /**
56
+ * Sets additional CSS styles to the svg element.
57
+ */
58
+ svgStyle?: object;
59
+ }
60
+ /**
61
+ * @hidden
62
+ */
63
+ export interface SvgIconState {
64
+ }
65
+ /**
66
+ * @hidden
67
+ */
68
+ export interface SvgIconComputed {
69
+ [key: string]: any;
70
+ }
71
+ /**
72
+ * @hidden
73
+ */
74
+ export interface SvgIconMethods {
75
+ [key: string]: any;
76
+ }
77
+ /**
78
+ * @hidden
79
+ */
80
+ export interface SvgIconData {
81
+ }
82
+ /**
83
+ * @hidden
84
+ */
85
+ export interface SvgIconAll extends Vue2type, SvgIconMethods, SvgIconData, SvgIconComputed, SvgIconState {
86
+ }
87
+ /**
88
+ * @hidden
89
+ */
90
+ declare let SvgIconVue2: ComponentOptions<SvgIconAll, DefaultData<SvgIconData>, DefaultMethods<SvgIconAll>, SvgIconComputed, RecordPropsDefinition<SvgIconProps>>;
91
+ /**
92
+ * @hidden
93
+ */
94
+ declare const SvgIcon: DefineComponent<SvgIconProps, any, SvgIconData, SvgIconComputed, SvgIconMethods, {}, {}, {}, string, SvgIconProps, SvgIconProps, {}>;
95
+ export { SvgIcon, SvgIconVue2 };
@@ -0,0 +1,88 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { SIZE_CLASSES } from './constants.js';
7
+ import { getDefaultSlots } from '../defaultSlots.js';
8
+ /**
9
+ * @hidden
10
+ */
11
+ var SvgIconVue2 = {
12
+ name: 'KendoSvgIcon',
13
+ props: {
14
+ icon: Object,
15
+ themeColor: {
16
+ type: String
17
+ },
18
+ size: {
19
+ type: String
20
+ },
21
+ flip: {
22
+ type: String
23
+ },
24
+ id: String,
25
+ viewBox: {
26
+ type: String,
27
+ default: '0 0 24 24'
28
+ },
29
+ tabIndex: Number
30
+ },
31
+ computed: {
32
+ wrapperClass: function wrapperClass() {
33
+ var _a;
34
+ var _b = this.$props,
35
+ name = _b.name,
36
+ flip = _b.flip,
37
+ size = _b.size,
38
+ themeColor = _b.themeColor;
39
+ return _a = {
40
+ 'k-svg-icon': true
41
+ }, _a['k-color-' + themeColor] = true, _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]] = true, _a;
42
+ }
43
+ },
44
+ // @ts-ignore
45
+ setup: !isV3 ? undefined : function () {
46
+ var v3 = !!isV3;
47
+ return {
48
+ v3: v3
49
+ };
50
+ },
51
+ // @ts-ignore
52
+ render: function render(createElement) {
53
+ var h = gh || createElement;
54
+ var defaultSlot = getDefaultSlots(this);
55
+ var _a = this.$props,
56
+ svgClassName = _a.svgClassName,
57
+ icon = _a.icon,
58
+ id = _a.id,
59
+ tabIndex = _a.tabIndex,
60
+ svgStyle = _a.svgStyle,
61
+ viewBox = _a.viewBox;
62
+ var innerHTML = icon ? icon.content : undefined;
63
+ var svg = h('svg', {
64
+ attrs: {
65
+ id: id,
66
+ 'aria-hidden': true,
67
+ tabIndex: tabIndex,
68
+ focusable: 'false',
69
+ xmlns: 'http://www.w3.org/2000/svg',
70
+ viewBox: icon ? icon.viewBox : viewBox
71
+ },
72
+ domProps: {
73
+ innerHTML: innerHTML
74
+ },
75
+ innerHTML: innerHTML,
76
+ 'class': svgClassName,
77
+ style: svgStyle
78
+ }, [icon ? undefined : defaultSlot]);
79
+ return h("span", {
80
+ "class": this.wrapperClass
81
+ }, [svg]);
82
+ }
83
+ };
84
+ /**
85
+ * @hidden
86
+ */
87
+ var SvgIcon = SvgIconVue2;
88
+ export { SvgIcon, SvgIconVue2 };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const SIZE_CLASSES: {
5
+ default: string;
6
+ xsmall: string;
7
+ small: string;
8
+ medium: string;
9
+ large: string;
10
+ xlarge: string;
11
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var SIZE_CLASSES = {
5
+ 'default': '',
6
+ 'xsmall': 'k-icon-xs',
7
+ 'small': 'k-icon-sm',
8
+ 'medium': 'k-icon-md',
9
+ 'large': 'k-icon-lg',
10
+ 'xlarge': 'k-icon-xl'
11
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Specifies the icon flip direction.
3
+ *
4
+ * The possible values are:
5
+ * * `default` (Default)&mdash;No flipping applied.
6
+ * * `horizontal`&mdash;Flips the icon in horizontal direction.
7
+ * * `vertical`&mdash;Flips the icon in vertical direction.
8
+ * * `both`&mdash;Flips the icon in both horizontal and vertical directions.
9
+ *
10
+ */
11
+ export declare type IconFlip = 'default' | 'horizontal' | 'vertical' | 'both';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Specifies the size of the icon.
3
+ *
4
+ * The possible values are:
5
+ * * `default` (Default)&mdash;Font-size: 16px; Width: 16px; Height: 16px.
6
+ * * `xsmall`&mdash;Font-size: 8px; Width: 8px; Height: 8px.
7
+ * * `small`&mdash;Font-size: 12px; Width: 12px; Height: 12px.
8
+ * * `medium`&mdash;Font-size: 32px; Width: 32px; Height: 32px.
9
+ * * `large`&mdash;Font-size: 48px; Width: 48px; Height: 48px.
10
+ * * `xlarge`&mdash;Font-size: 64px; Width: 64px; Height: 64px.
11
+ *
12
+ */
13
+ export declare type IconSize = 'default' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
@@ -0,0 +1 @@
1
+ export {};