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

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 +74 -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 +90 -0
  7. package/dist/es/icons/Icon.d.ts +49 -0
  8. package/dist/es/icons/Icon.js +125 -0
  9. package/dist/es/icons/SvgIcon.d.ts +95 -0
  10. package/dist/es/icons/SvgIcon.js +120 -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 +74 -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 +90 -0
  25. package/dist/esm/icons/Icon.d.ts +49 -0
  26. package/dist/esm/icons/Icon.js +125 -0
  27. package/dist/esm/icons/SvgIcon.d.ts +95 -0
  28. package/dist/esm/icons/SvgIcon.js +120 -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 +74 -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 +97 -0
  43. package/dist/npm/icons/Icon.d.ts +49 -0
  44. package/dist/npm/icons/Icon.js +132 -0
  45. package/dist/npm/icons/SvgIcon.d.ts +95 -0
  46. package/dist/npm/icons/SvgIcon.js +127 -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 +5 -3
@@ -0,0 +1,120 @@
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
+ icon: Object,
31
+ themeColor: {
32
+ type: String
33
+ },
34
+ size: {
35
+ type: String
36
+ },
37
+ flip: {
38
+ type: String
39
+ },
40
+ id: String,
41
+ ariaLabel: String,
42
+ title: String,
43
+ viewBox: {
44
+ type: String,
45
+ default: '0 0 24 24'
46
+ },
47
+ tabIndex: Number
48
+ },
49
+ computed: {
50
+ wrapperClass: function wrapperClass() {
51
+ var _a;
52
+ var _b = this.$props,
53
+ name = _b.name,
54
+ flip = _b.flip,
55
+ size = _b.size,
56
+ themeColor = _b.themeColor;
57
+ return _a = {
58
+ 'k-svg-icon': true
59
+ }, _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;
60
+ }
61
+ },
62
+ // @ts-ignore
63
+ setup: !isV3 ? undefined : function () {
64
+ var v3 = !!isV3;
65
+ return {
66
+ v3: v3
67
+ };
68
+ },
69
+ // @ts-ignore
70
+ render: function render(createElement) {
71
+ var h = gh || createElement;
72
+ var defaultSlot = getDefaultSlots(this);
73
+ var _a = this.$props,
74
+ svgClassName = _a.svgClassName,
75
+ icon = _a.icon,
76
+ id = _a.id,
77
+ tabIndex = _a.tabIndex,
78
+ svgStyle = _a.svgStyle,
79
+ viewBox = _a.viewBox,
80
+ title = _a.title,
81
+ ariaLabel = _a.ariaLabel;
82
+ var innerHTML = icon ? icon.content : undefined;
83
+ var attrs = {
84
+ id: id,
85
+ title: title,
86
+ 'aria-hidden': true,
87
+ tabIndex: tabIndex,
88
+ ariaLabel: ariaLabel,
89
+ focusable: 'false',
90
+ xmlns: 'http://www.w3.org/2000/svg',
91
+ viewBox: icon ? icon.viewBox : viewBox
92
+ };
93
+ var svg = h('svg', __assign(__assign({}, attrs), {
94
+ attrs: attrs,
95
+ domProps: {
96
+ innerHTML: innerHTML
97
+ },
98
+ innerHTML: innerHTML,
99
+ 'class': svgClassName,
100
+ style: svgStyle
101
+ }), [icon ? undefined : defaultSlot]);
102
+ return h("span", {
103
+ "class": this.wrapperClass,
104
+ onClick: this.handleClick,
105
+ on: this.v3 ? undefined : {
106
+ "click": this.handleClick
107
+ }
108
+ }, [svg]);
109
+ },
110
+ methods: {
111
+ handleClick: function handleClick(e) {
112
+ this.$emit('click', e);
113
+ }
114
+ }
115
+ };
116
+ /**
117
+ * @hidden
118
+ */
119
+ var SvgIcon = SvgIconVue2;
120
+ 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 {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Specifies the theme color of the Icon.
3
+ *
4
+ * The possible values are:
5
+ * * `inherit` (Default)&mdash;Applies coloring based on the current color.
6
+ * * `primary` &mdash;Applies coloring based on primary theme color.
7
+ * * `secondary`&mdash;Applies coloring based on secondary theme color.
8
+ * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
9
+ * * `info`&mdash;Applies coloring based on info theme color.
10
+ * * `success`&mdash; Applies coloring based on success theme color.
11
+ * * `warning`&mdash; Applies coloring based on warning theme color.
12
+ * * `error`&mdash; Applies coloring based on error theme color.
13
+ * * `dark`&mdash; Applies coloring based on dark theme color.
14
+ * * `light`&mdash; Applies coloring based on light theme color.
15
+ * * `inverse`&mdash; 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,74 @@
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
+ * Sets the `aria-label` of the icon element.
18
+ */
19
+ ariaLabel?: string;
20
+ /**
21
+ * Sets the `title` of the icon element.
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Specifies a list of CSS classes that will be added to the root DOM element.
26
+ */
27
+ class?: string;
28
+ /**
29
+ * Specifies the theme color of the Icon.
30
+ *
31
+ * The possible values are:
32
+ * * `inherit` (Default)&mdash;Applies coloring based on the current color.
33
+ * * `primary` &mdash;Applies coloring based on primary theme color.
34
+ * * `secondary`&mdash;Applies coloring based on secondary theme color.
35
+ * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
36
+ * * `info`&mdash;Applies coloring based on info theme color.
37
+ * * `success`&mdash; Applies coloring based on success theme color.
38
+ * * `warning`&mdash; Applies coloring based on warning theme color.
39
+ * * `error`&mdash; Applies coloring based on error theme color.
40
+ * * `dark`&mdash; Applies coloring based on dark theme color.
41
+ * * `light`&mdash; Applies coloring based on light theme color.
42
+ * * `inverse`&mdash; Applies coloring based on inverse theme color.
43
+ *
44
+ * If the property is not set, the icon inherits the color from its parent.
45
+ *
46
+ * You can use the `style` prop to apply custom color related properties to the icon.
47
+ */
48
+ themeColor?: IconThemeColor | string;
49
+ /**
50
+ * Specifies the size of the icon.
51
+ *
52
+ * The possible values are:
53
+ * * `default` (Default)&mdash;Font-size: 16px; Width: 16px; Height: 16px.
54
+ * * `xsmall`&mdash;Font-size: 8px; Width: 8px; Height: 8px.
55
+ * * `small`&mdash;Font-size: 12px; Width: 12px; Height: 12px.
56
+ * * `medium`&mdash;Font-size: 32px; Width: 32px; Height: 32px.
57
+ * * `large`&mdash;Font-size: 48px; Width: 48px; Height: 48px.
58
+ * * `xlarge`&mdash;Font-size: 64px; Width: 64px; Height: 64px.
59
+ *
60
+ * You can use the `style` prop to apply custom font size to the icon.
61
+ */
62
+ size?: IconSize | string;
63
+ /**
64
+ * Specifies the icon flip direction.
65
+ *
66
+ * The possible values are:
67
+ * * `default` (Default)&mdash;No flipping applied.
68
+ * * `horizontal`&mdash;Flips the icon in horizontal direction.
69
+ * * `vertical`&mdash;Flips the icon in vertical direction.
70
+ * * `both`&mdash;Flips the icon in both horizontal and vertical directions.
71
+ *
72
+ */
73
+ flip?: IconFlip | string;
74
+ }
@@ -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,90 @@
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
+ // @ts-ignore
13
+ emits: {
14
+ click: null
15
+ },
16
+ props: {
17
+ name: String,
18
+ themeColor: {
19
+ type: String
20
+ },
21
+ size: {
22
+ type: String
23
+ },
24
+ flip: {
25
+ type: String
26
+ },
27
+ id: String,
28
+ ariaLabel: String,
29
+ title: String,
30
+ tabIndex: Number
31
+ },
32
+ computed: {
33
+ fontClassNames: function fontClassNames() {
34
+ var _a;
35
+ var _b = this.$props,
36
+ name = _b.name,
37
+ flip = _b.flip,
38
+ size = _b.size,
39
+ themeColor = _b.themeColor;
40
+ return _a = {
41
+ 'k-icon': true
42
+ }, _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;
43
+ }
44
+ },
45
+ // @ts-ignore
46
+ setup: !isV3 ? undefined : function () {
47
+ var v3 = !!isV3;
48
+ return {
49
+ v3: v3
50
+ };
51
+ },
52
+ // @ts-ignore
53
+ render: function render(createElement) {
54
+ var h = gh || createElement;
55
+ var _a = this.$props,
56
+ id = _a.id,
57
+ title = _a.title,
58
+ tabIndex = _a.tabIndex,
59
+ ariaLabel = _a.ariaLabel;
60
+ return h("span", {
61
+ "class": this.fontClassNames,
62
+ id: id,
63
+ attrs: this.v3 ? undefined : {
64
+ id: id,
65
+ title: title,
66
+ "aria-label": ariaLabel,
67
+ tabIndex: tabIndex,
68
+ role: "presentation"
69
+ },
70
+ title: title,
71
+ "aria-label": ariaLabel,
72
+ tabIndex: tabIndex,
73
+ role: "presentation",
74
+ onClick: this.handleClick,
75
+ on: this.v3 ? undefined : {
76
+ "click": this.handleClick
77
+ }
78
+ });
79
+ },
80
+ methods: {
81
+ handleClick: function handleClick(e) {
82
+ this.$emit('click', e);
83
+ }
84
+ }
85
+ };
86
+ /**
87
+ * @hidden
88
+ */
89
+ var FontIcon = FontIconVue2;
90
+ 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,125 @@
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
+ // @ts-ignore
26
+ emits: {
27
+ click: null
28
+ },
29
+ inject: {
30
+ kendoIcons: {
31
+ default: {
32
+ type: 'font',
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 = icon || name && this.kendoIcons.icons[name];
80
+ var renderSVG = this.kendoIcons.type === 'svg' && svg !== undefined;
81
+ var resolvedName = name || (icon && icon.name ? icon.name : undefined);
82
+ var commonProps = {
83
+ themeColor: themeColor,
84
+ size: size,
85
+ flip: flip,
86
+ id: id,
87
+ tabIndex: tabIndex,
88
+ title: title,
89
+ ariaLabel: ariaLabel
90
+ };
91
+ var fontIcon = h(FontIcon, __assign(__assign({}, commonProps), {
92
+ name: resolvedName,
93
+ attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
94
+ name: resolvedName
95
+ }),
96
+ onClick: this.handleClick,
97
+ on: this.v3 ? undefined : {
98
+ 'click': this.handleClick
99
+ }
100
+ }));
101
+ var svgIcon = h(SvgIcon, __assign(__assign({}, commonProps), {
102
+ icon: icon,
103
+ viewBox: viewBox,
104
+ attrs: this.v3 ? undefined : __assign(__assign({}, commonProps), {
105
+ icon: icon,
106
+ viewBox: viewBox
107
+ }),
108
+ onClick: this.handleClick,
109
+ on: this.v3 ? undefined : {
110
+ 'click': this.handleClick
111
+ }
112
+ }));
113
+ return renderSVG ? svgIcon : fontIcon;
114
+ },
115
+ methods: {
116
+ handleClick: function handleClick(e) {
117
+ this.$emit('click', e);
118
+ }
119
+ }
120
+ };
121
+ /**
122
+ * @hidden
123
+ */
124
+ var Icon = IconVue2;
125
+ export { Icon, IconVue2 };