@progress/kendo-vue-layout 8.4.0-develop.3 → 8.4.0-develop.4

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.
@@ -21,6 +21,7 @@ declare const AppBar: import('vue').DefineComponent<import('vue').ExtractPropTyp
21
21
  themeColor: {
22
22
  type: PropType<string>;
23
23
  default: string;
24
+ validator: (value: string) => boolean;
24
25
  };
25
26
  position: {
26
27
  type: PropType<string>;
@@ -41,6 +42,7 @@ declare const AppBar: import('vue').DefineComponent<import('vue').ExtractPropTyp
41
42
  themeColor: {
42
43
  type: PropType<string>;
43
44
  default: string;
45
+ validator: (value: string) => boolean;
44
46
  };
45
47
  position: {
46
48
  type: PropType<string>;
package/appbar/AppBar.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),a=require("@progress/kendo-vue-common"),r=require("../package-metadata.js"),p=i.defineComponent({name:"KendoAppBar",props:{id:String,themeColor:{type:String,default:"light"},position:{type:String,default:"top",validator:function(t){return["top","bottom"].includes(t)}},positionMode:{type:String,default:"static",validator:function(t){return["static","sticky","fixed"].includes(t)}}},created(){a.validatePackage(r.packageMetadata),this.calculatedId=a.guid()},computed:{wrapperClass(){const{position:t,positionMode:e,themeColor:o}=this.$props;return{"k-appbar":!0,"k-appbar-top":t==="top","k-appbar-bottom":t==="bottom","k-appbar-static":e==="static","k-appbar-sticky":e==="sticky","k-appbar-fixed":e==="fixed",[`k-appbar-${o}`]:!!o}}},render(){const t=a.getDefaultSlots(this),{id:e}=this.$props;return i.createVNode("div",{class:this.wrapperClass,id:e||this.calculatedId},[t])},methods:{focus(){this.$el&&a.focusFirstFocusableChild(this.$el)}}});exports.AppBar=p;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),a=require("@progress/kendo-vue-common"),r=require("../package-metadata.js"),s=i.defineComponent({name:"KendoAppBar",props:{id:String,themeColor:{type:String,default:"base",validator:function(t){return["base","primary","secondary","tertiary","inverse"].includes(t)}},position:{type:String,default:"top",validator:function(t){return["top","bottom"].includes(t)}},positionMode:{type:String,default:"static",validator:function(t){return["static","sticky","fixed"].includes(t)}}},created(){a.validatePackage(r.packageMetadata),this.calculatedId=a.guid()},computed:{wrapperClass(){const{position:t,positionMode:e,themeColor:o}=this.$props;return{"k-appbar":!0,"k-appbar-top":t==="top","k-appbar-bottom":t==="bottom","k-appbar-static":e==="static","k-appbar-sticky":e==="sticky","k-appbar-fixed":e==="fixed",[`k-appbar-${o}`]:!!o}}},render(){const t=a.getDefaultSlots(this),{id:e}=this.$props;return i.createVNode("div",{class:this.wrapperClass,id:e||this.calculatedId},[t])},methods:{focus(){this.$el&&a.focusFirstFocusableChild(this.$el)}}});exports.AppBar=s;
package/appbar/AppBar.mjs CHANGED
@@ -5,16 +5,19 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as e, createVNode as i } from "vue";
9
- import { focusFirstFocusableChild as p, getDefaultSlots as r, validatePackage as s, guid as d } from "@progress/kendo-vue-common";
8
+ import { defineComponent as o, createVNode as i } from "vue";
9
+ import { focusFirstFocusableChild as r, getDefaultSlots as p, validatePackage as s, guid as d } from "@progress/kendo-vue-common";
10
10
  import { packageMetadata as n } from "../package-metadata.mjs";
11
- const f = /* @__PURE__ */ e({
11
+ const f = /* @__PURE__ */ o({
12
12
  name: "KendoAppBar",
13
13
  props: {
14
14
  id: String,
15
15
  themeColor: {
16
16
  type: String,
17
- default: "light"
17
+ default: "base",
18
+ validator: function(t) {
19
+ return ["base", "primary", "secondary", "tertiary", "inverse"].includes(t);
20
+ }
18
21
  },
19
22
  position: {
20
23
  type: String,
@@ -38,32 +41,32 @@ const f = /* @__PURE__ */ e({
38
41
  wrapperClass() {
39
42
  const {
40
43
  position: t,
41
- positionMode: o,
44
+ positionMode: e,
42
45
  themeColor: a
43
46
  } = this.$props;
44
47
  return {
45
48
  "k-appbar": !0,
46
49
  "k-appbar-top": t === "top",
47
50
  "k-appbar-bottom": t === "bottom",
48
- "k-appbar-static": o === "static",
49
- "k-appbar-sticky": o === "sticky",
50
- "k-appbar-fixed": o === "fixed",
51
+ "k-appbar-static": e === "static",
52
+ "k-appbar-sticky": e === "sticky",
53
+ "k-appbar-fixed": e === "fixed",
51
54
  [`k-appbar-${a}`]: !!a
52
55
  };
53
56
  }
54
57
  },
55
58
  render() {
56
- const t = r(this), {
57
- id: o
59
+ const t = p(this), {
60
+ id: e
58
61
  } = this.$props;
59
62
  return i("div", {
60
63
  class: this.wrapperClass,
61
- id: o || this.calculatedId
64
+ id: e || this.calculatedId
62
65
  }, [t]);
63
66
  },
64
67
  methods: {
65
68
  focus() {
66
- this.$el && p(this.$el);
69
+ this.$el && r(this.$el);
67
70
  }
68
71
  }
69
72
  });
@@ -36,10 +36,11 @@ export interface AppBarProps {
36
36
  * Specifies the theme color of the AppBar ([see example]({% slug appearance_appbar %})).
37
37
  *
38
38
  * * The possible values are:
39
- * * `light` (Default)
40
- * * 'primary'
41
- * * 'dark'
42
- * * 'inherit'
39
+ * * `base` (Default)
40
+ * * `primary`
41
+ * * `secondary`
42
+ * * `tertiary`
43
+ * * `inverse`
43
44
  *
44
45
  */
45
46
  themeColor?: AppBarThemeColor | string;
@@ -66,9 +67,11 @@ export type AppBarPositionMode = 'static' | 'sticky' | 'fixed';
66
67
  * Specifies the theme color of the AppBar ([see example]({% slug appearance_appbar %})).
67
68
  *
68
69
  * * The possible values are:
69
- * * `inherit`
70
- * * `light` (Default)
71
- * * `dark`
70
+ * * `base` (Default)
71
+ * * `primary`
72
+ * * `secondary`
73
+ * * `tertiary`
74
+ * * `inverse`
72
75
  *
73
76
  */
74
- export type AppBarThemeColor = 'light' | 'dark' | 'inherit';
77
+ export type AppBarThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'inverse';
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),c=require("../package-metadata.js"),a=require("@progress/kendo-vue-common"),d=require("./models/utils.js"),u=require("./BottomNavigationItem.js"),m=l.defineComponent({name:"KendoBottomNavigation",emits:{keydown:null,select:t=>!0},props:{dir:String,themeColor:{type:String,default:"primary",validator:function(t){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"].includes(t)}},fill:{type:String,default:"flat",validator:function(t){return["solid","flat"].includes(t)}},fillMode:{type:String,default:"flat",validator:function(t){return["solid","flat"].includes(t)}},item:[String,Object,Function],items:Array,itemFlow:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},positionMode:{type:String,default:"fixed",validator:function(t){return["sticky","fixed"].includes(t)}},border:{type:Boolean,default:!0},disabled:Boolean,selected:Number},created(){a.validatePackage(c.packageMetadata),this.navId=a.guid()},computed:{navClasses(){const{themeColor:t,fillMode:e,positionMode:n,itemFlow:r,border:i,disabled:o}=this.$props,s=e!==void 0?e:this.$props.fill;return{"k-bottom-nav":!0,[d.POSITION_MODE_CLASSES[n]]:!0,[d.THEME_COLOR_CLASSES[t]]:!0,[`k-bottom-nav-${s}`]:s,[`k-bottom-nav-${s}-${t}`]:!!(s&&t),[d.ITEM_FLOW_CLASSES[r]]:!0,"k-bottom-nav-border":i,"k-disabled":o}}},render(){const{id:t,items:e,item:n,disabled:r}=this.$props;return l.createVNode("nav",{class:this.navClasses,id:t||this.navId},[e&&e.map(function(i,o){const s=a.templateRendering.call(this,i.item||n,a.getListeners.call(this));return l.createVNode(u.BottomNavigationItem,{key:o,index:o,style:i.style,class:i.class,id:`${t||this.navId}-${o}`,disabled:r||i.disabled,selected:this.selected===o||i.selected,dataItem:i,item:s,onSelect:this.handleSelect,onKeydown:this.handleKeyDown},null)},this)])},methods:{focus(){this.$el&&a.focusFirstFocusableChild(this.$el)},dispatchSelectEvent(t,e){this.items&&(this.items[e].disabled||this.$emit("select",{event:t,itemTarget:this.items[e],itemIndex:e}))},handleSelect(t,e){this.dispatchSelectEvent(t,e)},handleKeyDown(t,e){switch(t.keyCode){case a.Keys.enter:case a.Keys.space:this.dispatchSelectEvent(t,e),t.preventDefault();break}this.$emit("keydown",{event:t,itemTarget:this.items[e],itemIndex:e})}}});exports.BottomNavigation=m;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),c=require("../package-metadata.js"),a=require("@progress/kendo-vue-common"),d=require("./models/utils.js"),u=require("./BottomNavigationItem.js"),m=l.defineComponent({name:"KendoBottomNavigation",emits:{keydown:null,select:t=>!0},props:{dir:String,themeColor:{type:String,default:"base",validator:function(t){return["base","primary","secondary","tertiary","inverse"].includes(t)}},fill:{type:String,default:"flat",validator:function(t){return["solid","flat"].includes(t)}},fillMode:{type:String,default:"flat",validator:function(t){return["solid","flat"].includes(t)}},item:[String,Object,Function],items:Array,itemFlow:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},positionMode:{type:String,default:"fixed",validator:function(t){return["sticky","fixed"].includes(t)}},border:{type:Boolean,default:!0},disabled:Boolean,selected:Number},created(){a.validatePackage(c.packageMetadata),this.navId=a.guid()},computed:{navClasses(){const{themeColor:t,fillMode:e,positionMode:n,itemFlow:r,border:i,disabled:s}=this.$props,o=e!==void 0?e:this.$props.fill;return{"k-bottom-nav":!0,[d.POSITION_MODE_CLASSES[n]]:!0,[d.THEME_COLOR_CLASSES[t]]:!0,[`k-bottom-nav-${o}`]:o,[`k-bottom-nav-${o}-${t}`]:!!(o&&t),[d.ITEM_FLOW_CLASSES[r]]:!0,"k-bottom-nav-border":i,"k-disabled":s}}},render(){const{id:t,items:e,item:n,disabled:r}=this.$props;return l.createVNode("nav",{class:this.navClasses,id:t||this.navId},[e&&e.map(function(i,s){const o=a.templateRendering.call(this,i.item||n,a.getListeners.call(this));return l.createVNode(u.BottomNavigationItem,{key:s,index:s,style:i.style,class:i.class,id:`${t||this.navId}-${s}`,disabled:r||i.disabled,selected:this.selected===s||i.selected,dataItem:i,item:o,onSelect:this.handleSelect,onKeydown:this.handleKeyDown},null)},this)])},methods:{focus(){this.$el&&a.focusFirstFocusableChild(this.$el)},dispatchSelectEvent(t,e){this.items&&(this.items[e].disabled||this.$emit("select",{event:t,itemTarget:this.items[e],itemIndex:e}))},handleSelect(t,e){this.dispatchSelectEvent(t,e)},handleKeyDown(t,e){switch(t.keyCode){case a.Keys.enter:case a.Keys.space:this.dispatchSelectEvent(t,e),t.preventDefault();break}this.$emit("keydown",{event:t,itemTarget:this.items[e],itemIndex:e})}}});exports.BottomNavigation=m;
@@ -9,7 +9,7 @@ import { defineComponent as d, createVNode as n } from "vue";
9
9
  import { packageMetadata as c } from "../package-metadata.mjs";
10
10
  import { Keys as l, focusFirstFocusableChild as u, templateRendering as m, getListeners as f, validatePackage as h, guid as p } from "@progress/kendo-vue-common";
11
11
  import { ITEM_FLOW_CLASSES as v, THEME_COLOR_CLASSES as S, POSITION_MODE_CLASSES as y } from "./models/utils.mjs";
12
- import { BottomNavigationItem as g } from "./BottomNavigationItem.mjs";
12
+ import { BottomNavigationItem as b } from "./BottomNavigationItem.mjs";
13
13
  const w = /* @__PURE__ */ d({
14
14
  name: "KendoBottomNavigation",
15
15
  emits: {
@@ -20,9 +20,9 @@ const w = /* @__PURE__ */ d({
20
20
  dir: String,
21
21
  themeColor: {
22
22
  type: String,
23
- default: "primary",
23
+ default: "base",
24
24
  validator: function(t) {
25
- return ["primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse"].includes(t);
25
+ return ["base", "primary", "secondary", "tertiary", "inverse"].includes(t);
26
26
  }
27
27
  },
28
28
  fill: {
@@ -99,7 +99,7 @@ const w = /* @__PURE__ */ d({
99
99
  id: t || this.navId
100
100
  }, [e && e.map(function(i, o) {
101
101
  const s = m.call(this, i.item || a, f.call(this));
102
- return n(g, {
102
+ return n(b, {
103
103
  key: o,
104
104
  index: o,
105
105
  style: i.style,
@@ -24,15 +24,10 @@ export interface BottomNavigationProps {
24
24
  * ([see example]({% slug appearance_bottomnavigation %}#toc-theme-color)).
25
25
  *
26
26
  * The possible values are:
27
- * * `primary` (Default) &mdash; Applies coloring based on the primary theme color.
27
+ * * `base` (Default) &mdash; Applies base coloring.
28
+ * * `primary` &mdash; Applies coloring based on the primary theme color.
28
29
  * * `secondary` &mdash; Applies coloring based on the secondary theme color.
29
30
  * * `tertiary` &mdash; Applies coloring based on the tertiary theme color.
30
- * * `info` &mdash; Applies coloring based on the info theme color.
31
- * * `success` &mdash; Applies coloring based on the success theme color.
32
- * * `warning` &mdash; Applies coloring based on the warning theme color.
33
- * * `error` &mdash; Applies coloring based on the error theme color.
34
- * * `dark` &mdash; Applies coloring based on the dark theme color.
35
- * * `light` &mdash; Applies coloring based on the light theme color.
36
31
  * * `inverse` &mdash; Applies coloring based on the inverted theme color.
37
32
  */
38
33
  themeColor?: BottomNavigationThemeColor | string;
@@ -129,18 +124,13 @@ export type BottomNavigationItemFlow = 'vertical' | 'horizontal';
129
124
  * ([see example]({% slug appearance_bottomnavigation %}#toc-theme-color)).
130
125
  *
131
126
  * The possible values are:
132
- * * `primary` (Default) &mdash; Applies coloring based on the primary theme color.
127
+ * * `base` (Default) &mdash; Applies base coloring.
128
+ * * `primary` &mdash; Applies coloring based on the primary theme color.
133
129
  * * `secondary` &mdash; Applies coloring based on the secondary theme color.
134
130
  * * `tertiary` &mdash; Applies coloring based on the tertiary theme color.
135
- * * `info` &mdash; Applies coloring based on the info theme color.
136
- * * `success` &mdash; Applies coloring based on the success theme color.
137
- * * `warning` &mdash; Applies coloring based on the warning theme color.
138
- * * `error` &mdash; Applies coloring based on the error theme color.
139
- * * `dark` &mdash; Applies coloring based on the dark theme color.
140
- * * `light` &mdash; Applies coloring based on the light theme color.
141
131
  * * `inverse` &mdash; Applies coloring based on the inverted theme color.
142
132
  */
143
- export type BottomNavigationThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
133
+ export type BottomNavigationThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'inverse';
144
134
  /**
145
135
  * Specifies the position and behavior of the BottomNavigation when the page is scrolled
146
136
  * ([see example]({% slug positioning_bottomnavigation %}#toc-position-mode)).
@@ -9,15 +9,10 @@
9
9
  * @hidden
10
10
  */
11
11
  export declare const THEME_COLOR_CLASSES: {
12
+ base: string;
12
13
  primary: string;
13
14
  secondary: string;
14
15
  tertiary: string;
15
- info: string;
16
- success: string;
17
- warning: string;
18
- error: string;
19
- dark: string;
20
- light: string;
21
16
  inverse: string;
22
17
  };
23
18
  /**
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={primary:"k-bottom-nav-primary",secondary:"k-bottom-nav-secondary",tertiary:"k-bottom-nav-tertiary",info:"k-bottom-nav-info",success:"k-bottom-nav-success",warning:"k-bottom-nav-warning",error:"k-bottom-nav-error",dark:"k-bottom-nav-dark",light:"k-bottom-nav-light",inverse:"k-bottom-nav-inverse"},o={vertical:"k-bottom-nav-item-flow-vertical",horizontal:"k-bottom-nav-item-flow-horizontal"},r={fixed:"k-pos-fixed",sticky:"k-pos-sticky"};exports.ITEM_FLOW_CLASSES=o;exports.POSITION_MODE_CLASSES=r;exports.THEME_COLOR_CLASSES=t;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={base:"k-bottom-nav-base",primary:"k-bottom-nav-primary",secondary:"k-bottom-nav-secondary",tertiary:"k-bottom-nav-tertiary",inverse:"k-bottom-nav-inverse"},o={vertical:"k-bottom-nav-item-flow-vertical",horizontal:"k-bottom-nav-item-flow-horizontal"},e={fixed:"k-pos-fixed",sticky:"k-pos-sticky"};exports.ITEM_FLOW_CLASSES=o;exports.POSITION_MODE_CLASSES=e;exports.THEME_COLOR_CLASSES=t;
@@ -5,26 +5,21 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const o = {
8
+ const t = {
9
+ base: "k-bottom-nav-base",
9
10
  primary: "k-bottom-nav-primary",
10
11
  secondary: "k-bottom-nav-secondary",
11
12
  tertiary: "k-bottom-nav-tertiary",
12
- info: "k-bottom-nav-info",
13
- success: "k-bottom-nav-success",
14
- warning: "k-bottom-nav-warning",
15
- error: "k-bottom-nav-error",
16
- dark: "k-bottom-nav-dark",
17
- light: "k-bottom-nav-light",
18
13
  inverse: "k-bottom-nav-inverse"
19
- }, t = {
14
+ }, o = {
20
15
  vertical: "k-bottom-nav-item-flow-vertical",
21
16
  horizontal: "k-bottom-nav-item-flow-horizontal"
22
- }, n = {
17
+ }, a = {
23
18
  fixed: "k-pos-fixed",
24
19
  sticky: "k-pos-sticky"
25
20
  };
26
21
  export {
27
- t as ITEM_FLOW_CLASSES,
28
- n as POSITION_MODE_CLASSES,
29
- o as THEME_COLOR_CLASSES
22
+ o as ITEM_FLOW_CLASSES,
23
+ a as POSITION_MODE_CLASSES,
24
+ t as THEME_COLOR_CLASSES
30
25
  };
package/card/Avatar.d.ts CHANGED
@@ -38,7 +38,7 @@ declare const Avatar: import('vue').DefineComponent<import('vue').ExtractPropTyp
38
38
  validator: (value: string) => boolean;
39
39
  };
40
40
  themeColor: {
41
- type: PropType<string>;
41
+ type: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "inverse">;
42
42
  default: string;
43
43
  validator: (value: string) => boolean;
44
44
  };
@@ -65,12 +65,12 @@ declare const Avatar: import('vue').DefineComponent<import('vue').ExtractPropTyp
65
65
  validator: (value: string) => boolean;
66
66
  };
67
67
  themeColor: {
68
- type: PropType<string>;
68
+ type: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "inverse">;
69
69
  default: string;
70
70
  validator: (value: string) => boolean;
71
71
  };
72
72
  }>> & Readonly<{}>, {
73
73
  type: string;
74
- themeColor: string;
74
+ themeColor: "base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "inverse";
75
75
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
76
76
  export { Avatar };
package/card/Avatar.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./interfaces/Enums.js"),d=require("../package-metadata.js"),t=require("@progress/kendo-vue-common"),l=o.defineComponent({name:"KendoAvatar",props:{type:{type:String,default:s.avatarType.TEXT,validator:function(e){return["text","image","icon"].includes(e)}},border:Boolean,rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","outline"].includes(e)}},size:{type:String,validator:function(e){return["none","small","medium","large",null].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse","inherit"].includes(e)}}},created(){t.validatePackage(d.packageMetadata)},computed:{wrapperClass(){const{border:e,type:u,size:a,rounded:n,fillMode:r,themeColor:i}=this.$props;return{"k-avatar-bordered":e,"k-avatar":!0,[`k-avatar-${t.kendoThemeMaps.sizeMap[a]||a}`]:a,[`k-rounded-${t.kendoThemeMaps.roundedMap[n]||n}`]:n,[`k-avatar-${r}`]:r,[`k-avatar-${r}-${i}`]:!!(r&&i)}},innerClass(){return{[`k-avatar-${this.$props.type}`]:this.$props.type}}},render(){const e=t.getDefaultSlots(this);return o.createVNode("div",{class:this.wrapperClass},[o.createVNode("span",{class:this.innerClass},[e])])}});exports.Avatar=l;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./interfaces/Enums.js"),d=require("../package-metadata.js"),t=require("@progress/kendo-vue-common"),l=o.defineComponent({name:"KendoAvatar",props:{type:{type:String,default:s.avatarType.TEXT,validator:function(e){return["text","image","icon"].includes(e)}},border:Boolean,rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","outline"].includes(e)}},size:{type:String,validator:function(e){return["none","small","medium","large",null].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return["base","primary","secondary","tertiary"].includes(e)}}},created(){t.validatePackage(d.packageMetadata)},computed:{wrapperClass(){const{border:e,type:u,size:r,rounded:n,fillMode:a,themeColor:i}=this.$props;return{"k-avatar-bordered":e,"k-avatar":!0,[`k-avatar-${t.kendoThemeMaps.sizeMap[r]||r}`]:r,[`k-rounded-${t.kendoThemeMaps.roundedMap[n]||n}`]:n,[`k-avatar-${a}`]:a,[`k-avatar-${a}-${i}`]:!!(a&&i)}},innerClass(){return{[`k-avatar-${this.$props.type}`]:this.$props.type}}},render(){const e=t.getDefaultSlots(this);return o.createVNode("div",{class:this.wrapperClass},[o.createVNode("span",{class:this.innerClass},[e])])}});exports.Avatar=l;
package/card/Avatar.mjs CHANGED
@@ -5,16 +5,16 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as s, createVNode as o } from "vue";
9
- import { avatarType as l } from "./interfaces/Enums.mjs";
8
+ import { defineComponent as l, createVNode as o } from "vue";
9
+ import { avatarType as s } from "./interfaces/Enums.mjs";
10
10
  import { packageMetadata as d } from "../package-metadata.mjs";
11
11
  import { getDefaultSlots as p, kendoThemeMaps as i, validatePackage as u } from "@progress/kendo-vue-common";
12
- const g = /* @__PURE__ */ s({
12
+ const g = /* @__PURE__ */ l({
13
13
  name: "KendoAvatar",
14
14
  props: {
15
15
  type: {
16
16
  type: String,
17
- default: l.TEXT,
17
+ default: s.TEXT,
18
18
  validator: function(e) {
19
19
  return ["text", "image", "icon"].includes(e);
20
20
  }
@@ -40,9 +40,9 @@ const g = /* @__PURE__ */ s({
40
40
  },
41
41
  themeColor: {
42
42
  type: String,
43
- default: "primary",
43
+ default: "base",
44
44
  validator: function(e) {
45
- return ["primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse", "inherit"].includes(e);
45
+ return ["base", "primary", "secondary", "tertiary"].includes(e);
46
46
  }
47
47
  }
48
48
  },
@@ -35,7 +35,7 @@ export interface AvatarProps {
35
35
  */
36
36
  border?: boolean;
37
37
  /**
38
- * Configures the `roundness` of the Button.
38
+ * Configures the `roundness` of the Avatar.
39
39
  *
40
40
  * The available options are:
41
41
  * - small
@@ -57,7 +57,7 @@ export interface AvatarProps {
57
57
  */
58
58
  type?: avatarType | string;
59
59
  /**
60
- * Configures the `themeColor` of the Button.
60
+ * Configures the `themeColor` of the Avatar.
61
61
  *
62
62
  * The available options are:
63
63
  * - base
@@ -68,12 +68,10 @@ export interface AvatarProps {
68
68
  * - success
69
69
  * - error
70
70
  * - warning
71
- * - dark
72
- * - light
73
71
  * - inverse
74
72
  * - null&mdash;Does not set a themeColor `className`.
75
73
  *
76
74
  * @default `base`
77
75
  */
78
- themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'error' | 'warning' | 'dark' | 'light' | 'inverse' | string;
76
+ themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'error' | 'warning' | 'inverse';
79
77
  }