@progress/kendo-vue-buttons 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.
Files changed (33) hide show
  1. package/Button.d.ts +8 -9
  2. package/Chip/Chip.d.ts +0 -6
  3. package/Chip/Chip.js +1 -1
  4. package/Chip/Chip.mjs +16 -18
  5. package/FloatingActionButton/FloatingActionButton.d.ts +3 -5
  6. package/FloatingActionButton/FloatingActionButton.js +1 -1
  7. package/FloatingActionButton/FloatingActionButton.mjs +60 -56
  8. package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +2 -8
  9. package/FloatingActionButton/models/theme-color.d.ts +3 -9
  10. package/ListButton/ButtonItem.d.ts +0 -6
  11. package/ListButton/ButtonItem.js +1 -1
  12. package/ListButton/ButtonItem.mjs +9 -14
  13. package/ListButton/DropDownButton.d.ts +8 -5
  14. package/ListButton/DropDownButton.js +1 -1
  15. package/ListButton/DropDownButton.mjs +105 -101
  16. package/ListButton/SplitButton.d.ts +4 -4
  17. package/ListButton/SplitButton.js +1 -1
  18. package/ListButton/SplitButton.mjs +47 -49
  19. package/ListButton/models/ListButtonProps.d.ts +8 -8
  20. package/SegmentedControl/SegmentedControl.d.ts +2 -2
  21. package/SegmentedControl/interfaces/SegmentedControlTypes.d.ts +1 -0
  22. package/SmartPasteButton/SmartPasteButton.d.ts +6 -6
  23. package/SpeechToText/SpeechToTextButton.d.ts +4 -4
  24. package/SpeechToText/SpeechToTextButton.js +1 -1
  25. package/SpeechToText/SpeechToTextButton.mjs +16 -16
  26. package/dist/cdn/js/kendo-vue-buttons.js +1 -1
  27. package/package-metadata.js +1 -1
  28. package/package-metadata.mjs +2 -2
  29. package/package.json +11 -6
  30. package/toolbar/Toolbar.d.ts +2 -2
  31. package/toolbar/Toolbar.js +1 -1
  32. package/toolbar/Toolbar.mjs +2 -2
  33. package/ListButton/messages/index.d.ts +0 -17
package/Button.d.ts CHANGED
@@ -19,14 +19,14 @@ export interface ButtonProps extends ButtonInterface {
19
19
  * Configures the `size` of the Button.
20
20
  *
21
21
  * The available options are:
22
- * - xsmall
22
+ * - xs
23
23
  * - small
24
24
  * - medium
25
25
  * - large
26
26
  *
27
27
  * @default `undefined`
28
28
  */
29
- size?: 'xsmall' | 'small' | 'medium' | 'large';
29
+ size?: 'xs' | 'small' | 'medium' | 'large';
30
30
  /**
31
31
  * Configures the `roundness` of the Button.
32
32
  *
@@ -64,13 +64,12 @@ export interface ButtonProps extends ButtonInterface {
64
64
  * - info
65
65
  * - success
66
66
  * - warning
67
- * - dark
68
- * - light
67
+ * - error
69
68
  * - inverse
70
69
  *
71
70
  * @default `undefined`
72
71
  */
73
- themeColor?: 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse';
72
+ themeColor?: 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'inverse';
74
73
  /**
75
74
  * Sets the `tabIndex` property of the Button.
76
75
  */
@@ -165,10 +164,10 @@ declare const Button: import('vue').DefineComponent<import('vue').ExtractPropTyp
165
164
  type: PropType<boolean>;
166
165
  default: any;
167
166
  };
168
- size: PropType<"small" | "medium" | "xsmall" | "large">;
167
+ size: PropType<"small" | "medium" | "xs" | "large">;
169
168
  rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
170
169
  fillMode: PropType<"flat" | "link" | "solid" | "outline">;
171
- themeColor: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
170
+ themeColor: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "inverse">;
172
171
  tabIndex: PropType<number>;
173
172
  accessKey: PropType<string>;
174
173
  id: PropType<string>;
@@ -243,10 +242,10 @@ declare const Button: import('vue').DefineComponent<import('vue').ExtractPropTyp
243
242
  type: PropType<boolean>;
244
243
  default: any;
245
244
  };
246
- size: PropType<"small" | "medium" | "xsmall" | "large">;
245
+ size: PropType<"small" | "medium" | "xs" | "large">;
247
246
  rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
248
247
  fillMode: PropType<"flat" | "link" | "solid" | "outline">;
249
- themeColor: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
248
+ themeColor: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "inverse">;
250
249
  tabIndex: PropType<number>;
251
250
  accessKey: PropType<string>;
252
251
  id: PropType<string>;
package/Chip/Chip.d.ts CHANGED
@@ -171,10 +171,6 @@ export interface ChipProps {
171
171
  * For example these elements could contain error or hint message.
172
172
  */
173
173
  ariaDescribedBy?: string;
174
- /**
175
- * Identifies the accessible name for the Chip component.
176
- */
177
- ariaLabel?: string;
178
174
  /**
179
175
  * @hidden
180
176
  */
@@ -256,7 +252,6 @@ declare const Chip: import('vue').DefineComponent<import('vue').ExtractPropTypes
256
252
  default: string;
257
253
  };
258
254
  tabIndex: PropType<number>;
259
- ariaLabel: PropType<string>;
260
255
  onMousedown: PropType<(event: any) => void>;
261
256
  }>, {
262
257
  chipRef: import('vue').Ref<any, any>;
@@ -335,7 +330,6 @@ declare const Chip: import('vue').DefineComponent<import('vue').ExtractPropTypes
335
330
  default: string;
336
331
  };
337
332
  tabIndex: PropType<number>;
338
- ariaLabel: PropType<string>;
339
333
  onMousedown: PropType<(event: any) => void>;
340
334
  }>> & Readonly<{
341
335
  onClick?: (event: ChipMouseEvent) => any;
package/Chip/Chip.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 a=require("vue"),t=require("@progress/kendo-vue-common"),m=require("@progress/kendo-svg-icons"),o=require("./focus-reducer.js"),$=require("./data-reducer.js"),l=require("./selection-reducer.js"),S=require("../package-metadata.js"),b=a.defineComponent({name:"KendoVueChip",props:{id:String,text:String,avatar:{type:[String,Function,Object],default:function(){}},value:[String,Object],dir:{type:String,default:function(){return"ltr"}},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:function(){return"x-circle"}},removeSvgIcon:{type:Object,default:function(){return m.xCircleIcon}},disabled:{type:Boolean,default:!1},icon:String,svgIcon:Object,selectedIcon:{type:String,default:function(){return"check"}},selectedSvgIcon:{type:Object,default:function(){return m.checkIcon}},size:String,rounded:String,fillMode:{type:String,validator:function(e){return["flat","outline","solid"].includes(e)}},themeColor:{type:String,validator:function(e){return["base","error","info","success","warning"].includes(e)}},dataItem:Object,selected:Boolean,ariaDescribedBy:String,role:{type:String,default:"button"},tabIndex:Number,ariaLabel:String,onMousedown:Function},emits:{click:e=>!0,keydown:e=>!0,blur:e=>!0,focus:e=>!0,remove:e=>!0},inject:{kendoSelection:{default:{value:null}},kendoFocused:{default:{value:null}},kendoDataItems:{default:null},handleDispatchDataItems:{default:t.noop},handleDispatchSelection:{default:t.noop},handleDispatchFocus:{default:t.noop}},created(){this.currentDir=void 0,t.validatePackage(S.packageMetadata)},mounted(){this.chip=t.getRef(this,"chip"),this.currentDir=this.$props.dir!==void 0?this.$props.dir==="rtl":this.$el&&getComputedStyle(this.$el).direction==="rtl"||!1},updated(){this.kendoFocused.value===this.$props.value&&this.$el&&this.$el.focus()},computed:{currentSelected(){return this.$props.selected||(Array.isArray(this.kendoSelection.value)?this.kendoSelection.value.some(e=>e===this.$props.value):this.kendoSelection.value===this.$props.value)},chipLabelClass(){return{"k-chip-label":!0}}},methods:{computedFocused(){return this.kendoFocused.value===this.$props.value},handleMouseDown(e){this.$emit("mousedown",e)},handleClick(e){this.handleDispatchSelection&&this.handleDispatchSelection({type:l.SELECTION_ACTION.toggle,payload:this.$props.value,event:e}),this.$emit("click",{target:this.target,event:e})},handleRemove(e){e.stopPropagation(),this.$props.removable&&(this.handleDispatchFocus&&(this.handleDispatchDataItems({type:$.DATA_ACTION.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:o.FOCUS_ACTION.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:l.SELECTION_ACTION.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown(e){switch(e.keyCode){case t.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.FOCUS_ACTION.prev,payload:this.$props.value,event:e});break;case t.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.FOCUS_ACTION.next,payload:this.$props.value,event:e});break;case t.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:l.SELECTION_ACTION.toggle,payload:this.$props.value,event:e});break;case t.Keys.delete:this.handleRemove(e);break}this.$emit("keydown",{target:this.target,event:e})},handleFocus(e){this.handleDispatchFocus&&this.handleDispatchFocus({payload:this.$props.value,type:o.FOCUS_ACTION.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur(e){this.$emit("blur",{target:this.target,event:e})}},setup(){return{chipRef:a.ref(null)}},render(){const{size:e,rounded:n,themeColor:c,fillMode:r,look:s,avatar:i,icon:d,svgIcon:h,selectedIcon:u,selectedSvgIcon:p,removeIcon:f,removeSvgIcon:v}=this.$props,g=t.templateRendering.call(this,i,t.getListeners.call(this)),k=i?a.createVNode("div",{class:`k-chip-avatar k-avatar k-rounded-${i.rounded||"medium"} k-avatar-${t.kendoThemeMaps.sizeMap[e]||e} k-avatar-solid k-avatar-solid-primary`,style:i.style},[a.createVNode("span",{class:"k-avatar-image"},[a.createVNode("img",{src:i.imageUrl,alt:i.imageAlt},null)])]):null,y=t.getTemplate.call(this,{h:a.h,template:g});return a.createVNode("div",{role:this.$props.role,id:this.$props.value,ref:t.setRef(this,"chip"),dir:this.currentDir,tabindex:t.getTabIndex(this.$props.tabIndex,this.$props.disabled,void 0),class:t.classNames("k-chip",{"k-rtl":this.currentDir==="rtl","k-disabled":this.$props.disabled,"k-selected":this.currentSelected,"k-focus":this.computedFocused(),[`k-chip-${t.kendoThemeMaps.sizeMap[e]||e}`]:e,[`k-rounded-${t.kendoThemeMaps.roundedMap[n]||n}`]:n,[`k-chip-${r}`]:r,[`k-chip-${c}`]:c,"k-chip-outline":s==="outline"||s==="outlined","k-chip-solid":s==="solid"||s==="filled"||r==="solid"}),"aria-pressed":this.$props.role==="button"?this.currentSelected:void 0,"aria-selected":this.$props.role==="option"?this.currentSelected:void 0,"aria-disabled":this.$props.disabled||void 0,"aria-label":this.$props.ariaLabel,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown},[this.currentSelected&&(u||p)&&a.createVNode(t.Icon,{name:t.getIconName(u),icon:p,size:"small"},null),(d||h)&&a.createVNode(t.Icon,{name:t.getIconName(d),icon:h,size:"small",class:"k-chip-icon"},null),i?i.imageUrl?k:y:null,a.createVNode("span",{class:"k-chip-content"},[this.$props.text&&a.createVNode("span",{class:this.chipLabelClass},[this.$props.text])]),this.$props.removable&&a.createVNode("span",{class:"k-chip-actions"},[a.createVNode("span",{class:"k-chip-action k-chip-remove-action"},[a.createVNode(t.Icon,{name:t.getIconName(f),icon:v,size:"small",onClick:this.handleRemove},null)])])])}});exports.Chip=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),t=require("@progress/kendo-vue-common"),m=require("@progress/kendo-svg-icons"),o=require("./focus-reducer.js"),$=require("./data-reducer.js"),l=require("./selection-reducer.js"),S=require("../package-metadata.js"),b=a.defineComponent({name:"KendoVueChip",props:{id:String,text:String,avatar:{type:[String,Function,Object],default:function(){}},value:[String,Object],dir:{type:String,default:function(){return"ltr"}},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:function(){return"x-circle"}},removeSvgIcon:{type:Object,default:function(){return m.xCircleIcon}},disabled:{type:Boolean,default:!1},icon:String,svgIcon:Object,selectedIcon:{type:String,default:function(){return"check"}},selectedSvgIcon:{type:Object,default:function(){return m.checkIcon}},size:String,rounded:String,fillMode:{type:String,validator:function(e){return["flat","outline","solid"].includes(e)}},themeColor:{type:String,validator:function(e){return["base","error","info","success","warning"].includes(e)}},dataItem:Object,selected:Boolean,ariaDescribedBy:String,role:{type:String,default:"button"},tabIndex:Number,onMousedown:Function},emits:{click:e=>!0,keydown:e=>!0,blur:e=>!0,focus:e=>!0,remove:e=>!0},inject:{kendoSelection:{default:{value:null}},kendoFocused:{default:{value:null}},kendoDataItems:{default:null},handleDispatchDataItems:{default:t.noop},handleDispatchSelection:{default:t.noop},handleDispatchFocus:{default:t.noop}},created(){this.currentDir=void 0,t.validatePackage(S.packageMetadata)},mounted(){this.chip=t.getRef(this,"chip"),this.currentDir=this.$props.dir!==void 0?this.$props.dir==="rtl":this.$el&&getComputedStyle(this.$el).direction==="rtl"||!1},updated(){this.kendoFocused.value===this.$props.value&&this.$el&&this.$el.focus()},computed:{currentSelected(){return this.$props.selected||(Array.isArray(this.kendoSelection.value)?this.kendoSelection.value.some(e=>e===this.$props.value):this.kendoSelection.value===this.$props.value)},chipLabelClass(){return{"k-chip-label":!0}}},methods:{computedFocused(){return this.kendoFocused.value===this.$props.value},handleMouseDown(e){this.$emit("mousedown",e)},handleClick(e){this.handleDispatchSelection&&this.handleDispatchSelection({type:l.SELECTION_ACTION.toggle,payload:this.$props.value,event:e}),this.$emit("click",{target:this.target,event:e})},handleRemove(e){e.stopPropagation(),this.$props.removable&&(this.handleDispatchFocus&&(this.handleDispatchDataItems({type:$.DATA_ACTION.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:o.FOCUS_ACTION.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:l.SELECTION_ACTION.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown(e){switch(e.keyCode){case t.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.FOCUS_ACTION.prev,payload:this.$props.value,event:e});break;case t.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.FOCUS_ACTION.next,payload:this.$props.value,event:e});break;case t.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:l.SELECTION_ACTION.toggle,payload:this.$props.value,event:e});break;case t.Keys.delete:this.handleRemove(e);break}this.$emit("keydown",{target:this.target,event:e})},handleFocus(e){this.handleDispatchFocus&&this.handleDispatchFocus({payload:this.$props.value,type:o.FOCUS_ACTION.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur(e){this.$emit("blur",{target:this.target,event:e})}},setup(){return{chipRef:a.ref(null)}},render(){const{size:e,rounded:n,themeColor:c,fillMode:r,look:s,avatar:i,icon:d,svgIcon:h,selectedIcon:u,selectedSvgIcon:p,removeIcon:v,removeSvgIcon:f}=this.$props,g=t.templateRendering.call(this,i,t.getListeners.call(this)),k=i?a.createVNode("div",{class:`k-chip-avatar k-avatar k-rounded-${i.rounded||"medium"} k-avatar-${t.kendoThemeMaps.sizeMap[e]||e} k-avatar-solid k-avatar-solid-primary`,style:i.style},[a.createVNode("span",{class:"k-avatar-image"},[a.createVNode("img",{src:i.imageUrl,alt:i.imageAlt},null)])]):null,y=t.getTemplate.call(this,{h:a.h,template:g});return a.createVNode("div",{role:this.$props.role,id:this.$props.value,ref:t.setRef(this,"chip"),dir:this.currentDir,tabindex:t.getTabIndex(this.$props.tabIndex,this.$props.disabled,void 0),class:t.classNames("k-chip",{"k-rtl":this.currentDir==="rtl","k-disabled":this.$props.disabled,"k-selected":this.currentSelected,"k-focus":this.computedFocused(),[`k-chip-${t.kendoThemeMaps.sizeMap[e]||e}`]:e,[`k-rounded-${t.kendoThemeMaps.roundedMap[n]||n}`]:n,[`k-chip-${r}`]:r,[`k-chip-${c}`]:c,"k-chip-outline":s==="outline"||s==="outlined","k-chip-solid":s==="solid"||s==="filled"||r==="solid"}),"aria-pressed":this.$props.role==="button"?this.currentSelected:void 0,"aria-selected":this.$props.role==="option"?this.currentSelected:void 0,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown},[this.currentSelected&&(u||p)&&a.createVNode(t.Icon,{name:t.getIconName(u),icon:p,size:"small"},null),(d||h)&&a.createVNode(t.Icon,{name:t.getIconName(d),icon:h,size:"small"},null),i?i.imageUrl?k:y:null,a.createVNode("span",{class:"k-chip-content"},[this.$props.text&&a.createVNode("span",{"aria-label":this.$props.text,class:this.chipLabelClass},[this.$props.text])]),this.$props.removable&&a.createVNode("span",{class:"k-chip-actions"},[a.createVNode("span",{class:"k-chip-action k-chip-remove-action"},[a.createVNode(t.Icon,{name:t.getIconName(v),icon:f,size:"small",onClick:this.handleRemove},null)])])])}});exports.Chip=b;
package/Chip/Chip.mjs CHANGED
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { defineComponent as D, createVNode as t, h as I, ref as F } from "vue";
9
- import { noop as r, templateRendering as C, getListeners as w, kendoThemeMaps as c, getTemplate as x, classNames as M, getTabIndex as O, setRef as R, Icon as d, getIconName as h, Keys as s, getRef as T, validatePackage as A } from "@progress/kendo-vue-common";
9
+ import { noop as n, templateRendering as C, getListeners as w, kendoThemeMaps as c, getTemplate as x, classNames as M, getTabIndex as O, setRef as R, Icon as d, getIconName as h, Keys as a, getRef as T, validatePackage as A } from "@progress/kendo-vue-common";
10
10
  import { checkIcon as B, xCircleIcon as N } from "@progress/kendo-svg-icons";
11
11
  import { FOCUS_ACTION as o } from "./focus-reducer.mjs";
12
12
  import { DATA_ACTION as j } from "./data-reducer.mjs";
@@ -85,7 +85,6 @@ const q = /* @__PURE__ */ D({
85
85
  default: "button"
86
86
  },
87
87
  tabIndex: Number,
88
- ariaLabel: String,
89
88
  onMousedown: Function
90
89
  },
91
90
  emits: {
@@ -110,13 +109,13 @@ const q = /* @__PURE__ */ D({
110
109
  default: null
111
110
  },
112
111
  handleDispatchDataItems: {
113
- default: r
112
+ default: n
114
113
  },
115
114
  handleDispatchSelection: {
116
- default: r
115
+ default: n
117
116
  },
118
117
  handleDispatchFocus: {
119
- default: r
118
+ default: n
120
119
  }
121
120
  },
122
121
  created() {
@@ -175,28 +174,28 @@ const q = /* @__PURE__ */ D({
175
174
  },
176
175
  handleKeyDown(e) {
177
176
  switch (e.keyCode) {
178
- case s.left:
177
+ case a.left:
179
178
  this.handleDispatchFocus && this.handleDispatchFocus({
180
179
  type: o.prev,
181
180
  payload: this.$props.value,
182
181
  event: e
183
182
  });
184
183
  break;
185
- case s.right:
184
+ case a.right:
186
185
  this.handleDispatchFocus && this.handleDispatchFocus({
187
186
  type: o.next,
188
187
  payload: this.$props.value,
189
188
  event: e
190
189
  });
191
190
  break;
192
- case s.enter:
191
+ case a.enter:
193
192
  this.handleDispatchFocus && this.handleDispatchSelection({
194
193
  type: p.toggle,
195
194
  payload: this.$props.value,
196
195
  event: e
197
196
  });
198
197
  break;
199
- case s.delete:
198
+ case a.delete:
200
199
  this.handleRemove(e);
201
200
  break;
202
201
  }
@@ -232,8 +231,8 @@ const q = /* @__PURE__ */ D({
232
231
  size: e,
233
232
  rounded: l,
234
233
  themeColor: u,
235
- fillMode: n,
236
- look: a,
234
+ fillMode: r,
235
+ look: s,
237
236
  avatar: i,
238
237
  icon: m,
239
238
  svgIcon: f,
@@ -266,15 +265,14 @@ const q = /* @__PURE__ */ D({
266
265
  "k-focus": this.computedFocused(),
267
266
  [`k-chip-${c.sizeMap[e] || e}`]: e,
268
267
  [`k-rounded-${c.roundedMap[l] || l}`]: l,
269
- [`k-chip-${n}`]: n,
268
+ [`k-chip-${r}`]: r,
270
269
  [`k-chip-${u}`]: u,
271
- "k-chip-outline": a === "outline" || a === "outlined",
272
- "k-chip-solid": a === "solid" || a === "filled" || n === "solid"
270
+ "k-chip-outline": s === "outline" || s === "outlined",
271
+ "k-chip-solid": s === "solid" || s === "filled" || r === "solid"
273
272
  }),
274
273
  "aria-pressed": this.$props.role === "button" ? this.currentSelected : void 0,
275
274
  "aria-selected": this.$props.role === "option" ? this.currentSelected : void 0,
276
- "aria-disabled": this.$props.disabled || void 0,
277
- "aria-label": this.$props.ariaLabel,
275
+ "aria-disabled": this.$props.disabled,
278
276
  "aria-describedby": this.$props.ariaDescribedBy,
279
277
  onFocus: this.handleFocus,
280
278
  onBlur: this.handleBlur,
@@ -288,11 +286,11 @@ const q = /* @__PURE__ */ D({
288
286
  }, null), (m || f) && t(d, {
289
287
  name: h(m),
290
288
  icon: f,
291
- size: "small",
292
- class: "k-chip-icon"
289
+ size: "small"
293
290
  }, null), i ? i.imageUrl ? b : S : null, t("span", {
294
291
  class: "k-chip-content"
295
292
  }, [this.$props.text && t("span", {
293
+ "aria-label": this.$props.text,
296
294
  class: this.chipLabelClass
297
295
  }, [this.$props.text])]), this.$props.removable && t("span", {
298
296
  class: "k-chip-actions"
@@ -40,7 +40,7 @@ declare const FloatingActionButton: import('vue').DefineComponent<import('vue').
40
40
  };
41
41
  positionMode: {
42
42
  type: PropType<FloatingActionButtonPositionMode>;
43
- default: any;
43
+ default: () => FloatingActionButtonPositionMode;
44
44
  };
45
45
  popupSettings: {
46
46
  type: PropType<import('..').FloatingActionButtonPopupSettings>;
@@ -68,11 +68,9 @@ declare const FloatingActionButton: import('vue').DefineComponent<import('vue').
68
68
  'k-fab': boolean;
69
69
  'k-disabled': any;
70
70
  'k-focus': any;
71
- 'k-pos-absolute': boolean;
72
- 'k-pos-fixed': boolean;
73
71
  };
74
72
  computedOpened(): any;
75
- rootClassNames(): any;
73
+ rootClassNames(): string;
76
74
  }, {
77
75
  dispatchPopupEvent(dispatchedEvent: any, isOpen?: boolean): void;
78
76
  handleClick(event: any): void;
@@ -120,7 +118,7 @@ declare const FloatingActionButton: import('vue').DefineComponent<import('vue').
120
118
  };
121
119
  positionMode: {
122
120
  type: PropType<FloatingActionButtonPositionMode>;
123
- default: any;
121
+ default: () => FloatingActionButtonPositionMode;
124
122
  };
125
123
  popupSettings: {
126
124
  type: PropType<import('..').FloatingActionButtonPopupSettings>;
@@ -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("@progress/kendo-vue-common"),I=require("./FloatingActionButtonItem.js"),y=require("../package-metadata.js"),u=require("./utils.js"),x=require("@progress/kendo-vue-popup"),v=o.defineComponent({name:"KendoVueFloatingActionButton",props:{id:String,dir:String,tabIndex:Number,accessKey:String,disabled:{type:Boolean,default:!1},icon:String,svgIcon:Object,iconClass:String,items:[Object,Array],item:[String,Function,Object],text:String,alignOffset:Object,opened:{type:Boolean,default:void 0},align:{type:Object,default:function(){return{vertical:"bottom",horizontal:"end"}}},positionMode:{type:String,default:void 0},popupSettings:{type:Object,default:function(){return{}}},rounded:String,fillMode:{type:String,validator:function(e){return["flat","link","outline","solid"].includes(e)}},size:String,themeColor:String},emits:{click:e=>!0,mousedown:e=>!0,mouseup:e=>!0,open:e=>!0,close:e=>!0,itemclick:e=>!0,focus:e=>!0,blur:e=>!0,keydown:e=>!0},data(){return{currentOpened:!1,currentFocused:!1,focusedIndex:-1,currentDir:"ltr",isRtl:!1}},created(){s.validatePackage(y.packageMetadata),this.element=void 0,this._anchor=s.guid(),this.listId=s.guid(),this.buttonId=s.guid()},mounted(){this.element=this.kendoAnchorRef,this.list=s.getRef(this,"list"),this.popup=s.getRef(this,"popup"),this.currentDir=this.$props.dir!==void 0?this.$props.dir:this.$el&&getComputedStyle(this.$el).direction==="rtl"||!1,this.isRtl=this.currentDir==="rtl",this.opened!==void 0&&u.position(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated(){u.position(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl),this.currentFocused&&this.element&&this.element.focus()},computed:{buttonClassNames(){const{size:e,themeColor:t,fillMode:n,rounded:i,positionMode:d}=this.$props;return{"k-fab":!0,[`k-fab-${s.kendoThemeMaps.sizeMap[e]||e}`]:e,[`k-rounded-${s.kendoThemeMaps.roundedMap[i]||i}`]:i,[`k-fab-${n}`]:n,[`k-fab-${t}`]:t,"k-disabled":this.$props.disabled,"k-focus":this.currentFocused,"k-pos-absolute":d==="absolute","k-pos-fixed":d==="fixed",[`k-${this.$props.align.vertical}-${this.$props.align.horizontal}`]:!!d}},computedOpened(){return this.$props.opened===void 0?this.currentOpened:this.$props.opened},rootClassNames(){}},methods:{dispatchPopupEvent(e,t){this.$props.items&&this.$emit(t?"open":"close",{event:e,isOpened:!t})},handleClick(e){if(!(!e.target||this.$props.disabled))if(!this.$props.items)this.$emit("click",e,void 0);else{const t=!this.computedOpened;this.currentOpened=t,this.currentFocused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,!this.computedOpened)}},handleFocus(e){this.currentFocused=!0,this.focusedIndex=this.computedOpened?0:-1,this.$emit("focus",{event:e})},handleBlur(e){this.currentFocused=!1,this.currentOpened=!1,this.focusedIndex=-1,this.$emit("blur",{event:e}),this.computedOpened&&this.dispatchPopupEvent(e,!1)},handleMouseDown(e){e.preventDefault(),this.$emit("mousedown",e)},handleMouseUp(e){this.$emit("mouseup",e)},dispatchItemClickEvent(e,t){this.$props.items&&(this.$props.items[t].disabled||this.$emit("itemclick",e,{itemProps:this.$props.items[t],itemIndex:t}))},handleItemClick(e,t){!e.target||!this.$props.items||(this.focusedIndex=t,this.currentOpened=!1,this.dispatchItemClickEvent(e,t),this.dispatchPopupEvent(e,!1))},handleItemDown(e){s.canUseDOM&&document.activeElement===this.element&&e.preventDefault()},handleKeyDown(e){const t=this.focusedIndex,n=this.$props.items?this.$props.items.length-1:-1,i=this.$props.align.vertical==="bottom";switch(e.keyCode){case s.Keys.enter:case s.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case s.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case s.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case s.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case s.Keys.down:case s.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case s.Keys.up:case s.Keys.left:e.preventDefault(),t>0&&!i&&(this.focusedIndex=t-1),t<n&&i&&(this.focusedIndex=t+1);break}this.$emit("keydown",e,void 0)}},setup(){const e=o.ref(null),t=o.ref(null);return{chipRef:e,kendoAnchorRef:t}},render(){const{align:e,disabled:t,icon:n,svgIcon:i,iconClass:d,id:h,items:r,text:c,tabIndex:g,accessKey:b,popupSettings:l}=this.$props,k=s.templateRendering.call(this,this.$props.item,s.getListeners.call(this)),$=function(){return r&&r.map(function(a,p){return o.createVNode(I.FloatingActionButtonItem,{key:p,index:p,id:`${this.listId}-${p}`,disabled:t||a.disabled,focused:this.focusedIndex===p,dataItem:a,item:k,class:s.classNames(a.className,u.getTextDirectionClass(this.currentDir||"ltr",e.horizontal)),onClick:this.handleItemClick,onDown:this.handleItemDown},null)},this)},f=n&&!c,m=(this.element?this.element.offsetWidth:0)/2-32/2;return o.createVNode("div",{class:this.rootClassNames},[o.createVNode("button",{ref:a=>{this.kendoAnchorRef=a},id:h||this.buttonId,role:r?"menubutton":void 0,type:"button","aria-disabled":t||void 0,"aria-expanded":r?this.computedOpened:void 0,"aria-haspopup":r?!0:void 0,"aria-label":!c&&(n||i||d)?"Action":void 0,"aria-owns":r?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&r?`${this.listId}-${this.focusedIndex}`:void 0,tabindex:s.getTabIndex(g,t),accesskey:b,dir:this.currentDir,disabled:t,class:this.buttonClassNames,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onFocusin:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown},[n||i?o.createVNode(s.Icon,{name:n,icon:i,class:"k-fab-icon"},null):d?o.createVNode(s.Icon,{class:d},null):null,c&&o.createVNode("span",{class:"k-fab-text"},[c])]),o.createVNode(x.Popup,{ref:s.setRef(this,"popup"),show:this.computedOpened,anchor:this._anchor,animate:l.animate,popupClass:s.classNames("k-popup-transparent k-fab-popup",l.popupClass),anchorAlign:l.anchorAlign||u.getAnchorAlign(e,this.isRtl),popupAlign:l.popupAlign||u.getPopupAlign(e,this.isRtl),style:{boxShadow:"none"}},{default:()=>[o.createVNode("ul",{ref:s.setRef(this,"list"),role:"menu","aria-labelledby":h,id:this.listId,class:s.classNames("k-fab-items",{"k-fab-items-bottom":e.vertical!=="bottom","k-fab-items-top":e.vertical==="bottom"}),style:{paddingLeft:f?m+"px":void 0,paddingRight:f?m+"px":void 0}},[$.call(this)])]})])}});exports.FloatingActionButton=v;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),s=require("@progress/kendo-vue-common"),y=require("./FloatingActionButtonItem.js"),x=require("../package-metadata.js"),a=require("./utils.js"),v=require("@progress/kendo-vue-popup"),O=n.defineComponent({name:"KendoVueFloatingActionButton",props:{id:String,dir:String,tabIndex:Number,accessKey:String,disabled:{type:Boolean,default:!1},icon:String,svgIcon:Object,iconClass:String,items:[Object,Array],item:[String,Function,Object],text:String,alignOffset:Object,opened:{type:Boolean,default:void 0},align:{type:Object,default:function(){return{vertical:"bottom",horizontal:"end"}}},positionMode:{type:String,default:function(){return"fixed"}},popupSettings:{type:Object,default:function(){return{}}},rounded:String,fillMode:{type:String,validator:function(e){return["flat","link","outline","solid"].includes(e)}},size:String,themeColor:String},emits:{click:e=>!0,mousedown:e=>!0,mouseup:e=>!0,open:e=>!0,close:e=>!0,itemclick:e=>!0,focus:e=>!0,blur:e=>!0,keydown:e=>!0},data(){return{currentOpened:!1,currentFocused:!1,focusedIndex:-1,currentDir:"ltr",isRtl:!1}},created(){s.validatePackage(x.packageMetadata),this.element=void 0,this._anchor=s.guid(),this.listId=s.guid(),this.buttonId=s.guid()},mounted(){this.element=this.kendoAnchorRef,this.list=s.getRef(this,"list"),this.popup=s.getRef(this,"popup"),this.currentDir=this.$props.dir!==void 0?this.$props.dir:this.$el&&getComputedStyle(this.$el).direction==="rtl"||!1,this.isRtl=this.currentDir==="rtl",this.opened!==void 0&&a.position(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated(){a.position(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl),this.currentFocused&&this.element&&this.element.focus()},computed:{buttonClassNames(){const{size:e,themeColor:t,fillMode:o,rounded:i}=this.$props;return{"k-fab":!0,[`k-fab-${s.kendoThemeMaps.sizeMap[e]||e}`]:e,[`k-rounded-${s.kendoThemeMaps.roundedMap[i]||i}`]:i,[`k-fab-${o}`]:o,[`k-fab-${t}`]:t,"k-disabled":this.$props.disabled,"k-focus":this.currentFocused,[`k-${this.$props.align.vertical}-${this.$props.align.horizontal}`]:!0}},computedOpened(){return this.$props.opened===void 0?this.currentOpened:this.$props.opened},rootClassNames(){return s.classNames({"k-pos-absolute":this.$props.positionMode==="absolute","k-pos-fixed":this.$props.positionMode==="fixed"})}},methods:{dispatchPopupEvent(e,t){this.$props.items&&this.$emit(t?"open":"close",{event:e,isOpened:!t})},handleClick(e){if(!(!e.target||this.$props.disabled))if(!this.$props.items)this.$emit("click",e,void 0);else{const t=!this.computedOpened;this.currentOpened=t,this.currentFocused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,!this.computedOpened)}},handleFocus(e){this.currentFocused=!0,this.focusedIndex=this.computedOpened?0:-1,this.$emit("focus",{event:e})},handleBlur(e){this.currentFocused=!1,this.currentOpened=!1,this.focusedIndex=-1,this.$emit("blur",{event:e}),this.computedOpened&&this.dispatchPopupEvent(e,!1)},handleMouseDown(e){e.preventDefault(),this.$emit("mousedown",e)},handleMouseUp(e){this.$emit("mouseup",e)},dispatchItemClickEvent(e,t){this.$props.items&&(this.$props.items[t].disabled||this.$emit("itemclick",e,{itemProps:this.$props.items[t],itemIndex:t}))},handleItemClick(e,t){!e.target||!this.$props.items||(this.focusedIndex=t,this.currentOpened=!1,this.dispatchItemClickEvent(e,t),this.dispatchPopupEvent(e,!1))},handleItemDown(e){s.canUseDOM&&document.activeElement===this.element&&e.preventDefault()},handleKeyDown(e){const t=this.focusedIndex,o=this.$props.items?this.$props.items.length-1:-1,i=this.$props.align.vertical==="bottom";switch(e.keyCode){case s.Keys.enter:case s.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case s.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case s.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case s.Keys.end:e.preventDefault(),this.focusedIndex=o;break;case s.Keys.down:case s.Keys.right:e.preventDefault(),t<o&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case s.Keys.up:case s.Keys.left:e.preventDefault(),t>0&&!i&&(this.focusedIndex=t-1),t<o&&i&&(this.focusedIndex=t+1);break}this.$emit("keydown",e,void 0)}},setup(){const e=n.ref(null),t=n.ref(null);return{chipRef:e,kendoAnchorRef:t}},render(){var b;const{align:e,disabled:t,icon:o,svgIcon:i,iconClass:p,id:h,items:d,text:u,tabIndex:g,accessKey:k,popupSettings:c}=this.$props,$=s.templateRendering.call(this,this.$props.item,s.getListeners.call(this)),I=function(){return d&&d.map(function(r,l){return n.createVNode(y.FloatingActionButtonItem,{key:l,index:l,id:`${this.listId}-${l}`,disabled:t||r.disabled,focused:this.focusedIndex===l,dataItem:r,item:$,class:s.classNames(r.className,a.getTextDirectionClass(this.currentDir||"ltr",e.horizontal)),onClick:this.handleItemClick,onDown:this.handleItemDown},null)},this)},f=o&&!u,m=(this.element?this.element.offsetWidth:0)/2-32/2;return n.createVNode("div",{class:this.rootClassNames},[n.createVNode("button",{ref:r=>{this.kendoAnchorRef=r},id:h||this.buttonId,role:d?"menubutton":"button",type:"button","aria-disabled":t,"aria-expanded":d?this.computedOpened:void 0,"aria-haspopup":!!d,"aria-label":`${u||""} floatingactionbutton`,"aria-owns":d?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&d?`${this.listId}-${this.focusedIndex}`:void 0,tabindex:(b=s.getTabIndex(g,t))!=null?b:0,accesskey:k,dir:this.currentDir,disabled:t,class:this.buttonClassNames,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onFocusin:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown},[o||i?n.createVNode(s.Icon,{name:o,icon:i,class:"k-fab-icon"},null):p?n.createVNode(s.Icon,{class:p},null):null,u&&n.createVNode("span",{class:"k-fab-text"},[u])]),n.createVNode(v.Popup,{ref:s.setRef(this,"popup"),show:this.computedOpened,anchor:this._anchor,animate:c.animate,popupClass:s.classNames("k-popup-transparent k-fab-popup",c.popupClass),anchorAlign:c.anchorAlign||a.getAnchorAlign(e,this.isRtl),popupAlign:c.popupAlign||a.getPopupAlign(e,this.isRtl),style:{boxShadow:"none"}},{default:()=>[n.createVNode("ul",{ref:s.setRef(this,"list"),role:"menu","aria-labelledby":h,id:this.listId,class:s.classNames("k-fab-items",{"k-fab-items-bottom":e.vertical!=="bottom","k-fab-items-top":e.vertical==="bottom"}),style:{paddingLeft:f?m+"px":void 0,paddingRight:f?m+"px":void 0}},[I.call(this)])]})])}});exports.FloatingActionButton=O;
@@ -5,13 +5,13 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as w, createVNode as o, ref as g } from "vue";
9
- import { templateRendering as A, getListeners as S, getTabIndex as M, Icon as k, classNames as c, setRef as $, Keys as n, canUseDOM as F, kendoThemeMaps as I, getRef as x, validatePackage as R, guid as h } from "@progress/kendo-vue-common";
10
- import { FloatingActionButtonItem as E } from "./FloatingActionButtonItem.mjs";
11
- import { packageMetadata as B } from "../package-metadata.mjs";
12
- import { getPopupAlign as N, getAnchorAlign as P, position as O, getTextDirectionClass as K } from "./utils.mjs";
13
- import { Popup as j } from "@progress/kendo-vue-popup";
14
- const G = /* @__PURE__ */ w({
8
+ import { defineComponent as M, createVNode as o, ref as $ } from "vue";
9
+ import { templateRendering as S, getListeners as A, getTabIndex as F, Icon as k, classNames as p, setRef as I, Keys as n, canUseDOM as R, kendoThemeMaps as x, getRef as O, validatePackage as E, guid as c } from "@progress/kendo-vue-common";
10
+ import { FloatingActionButtonItem as B } from "./FloatingActionButtonItem.mjs";
11
+ import { packageMetadata as N } from "../package-metadata.mjs";
12
+ import { getPopupAlign as P, getAnchorAlign as K, position as v, getTextDirectionClass as j } from "./utils.mjs";
13
+ import { Popup as z } from "@progress/kendo-vue-popup";
14
+ const H = /* @__PURE__ */ M({
15
15
  name: "KendoVueFloatingActionButton",
16
16
  props: {
17
17
  id: String,
@@ -44,7 +44,9 @@ const G = /* @__PURE__ */ w({
44
44
  },
45
45
  positionMode: {
46
46
  type: String,
47
- default: void 0
47
+ default: function() {
48
+ return "fixed";
49
+ }
48
50
  },
49
51
  popupSettings: {
50
52
  type: Object,
@@ -83,13 +85,13 @@ const G = /* @__PURE__ */ w({
83
85
  };
84
86
  },
85
87
  created() {
86
- R(B), this.element = void 0, this._anchor = h(), this.listId = h(), this.buttonId = h();
88
+ E(N), this.element = void 0, this._anchor = c(), this.listId = c(), this.buttonId = c();
87
89
  },
88
90
  mounted() {
89
- this.element = this.kendoAnchorRef, this.list = x(this, "list"), this.popup = x(this, "popup"), this.currentDir = this.$props.dir !== void 0 ? this.$props.dir : this.$el && getComputedStyle(this.$el).direction === "rtl" || !1, this.isRtl = this.currentDir === "rtl", this.opened !== void 0 && O(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl);
91
+ this.element = this.kendoAnchorRef, this.list = O(this, "list"), this.popup = O(this, "popup"), this.currentDir = this.$props.dir !== void 0 ? this.$props.dir : this.$el && getComputedStyle(this.$el).direction === "rtl" || !1, this.isRtl = this.currentDir === "rtl", this.opened !== void 0 && v(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl);
90
92
  },
91
93
  updated() {
92
- O(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl), this.currentFocused && this.element && this.element.focus();
94
+ v(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl), this.currentFocused && this.element && this.element.focus();
93
95
  },
94
96
  computed: {
95
97
  buttonClassNames() {
@@ -97,26 +99,27 @@ const G = /* @__PURE__ */ w({
97
99
  size: e,
98
100
  themeColor: t,
99
101
  fillMode: i,
100
- rounded: s,
101
- positionMode: d
102
+ rounded: s
102
103
  } = this.$props;
103
104
  return {
104
105
  "k-fab": !0,
105
- [`k-fab-${I.sizeMap[e] || e}`]: e,
106
- [`k-rounded-${I.roundedMap[s] || s}`]: s,
106
+ [`k-fab-${x.sizeMap[e] || e}`]: e,
107
+ [`k-rounded-${x.roundedMap[s] || s}`]: s,
107
108
  [`k-fab-${i}`]: i,
108
109
  [`k-fab-${t}`]: t,
109
110
  "k-disabled": this.$props.disabled,
110
111
  "k-focus": this.currentFocused,
111
- "k-pos-absolute": d === "absolute",
112
- "k-pos-fixed": d === "fixed",
113
- [`k-${this.$props.align.vertical}-${this.$props.align.horizontal}`]: !!d
112
+ [`k-${this.$props.align.vertical}-${this.$props.align.horizontal}`]: !0
114
113
  };
115
114
  },
116
115
  computedOpened() {
117
116
  return this.$props.opened === void 0 ? this.currentOpened : this.$props.opened;
118
117
  },
119
118
  rootClassNames() {
119
+ return p({
120
+ "k-pos-absolute": this.$props.positionMode === "absolute",
121
+ "k-pos-fixed": this.$props.positionMode === "fixed"
122
+ });
120
123
  }
121
124
  },
122
125
  methods: {
@@ -161,7 +164,7 @@ const G = /* @__PURE__ */ w({
161
164
  !e.target || !this.$props.items || (this.focusedIndex = t, this.currentOpened = !1, this.dispatchItemClickEvent(e, t), this.dispatchPopupEvent(e, !1));
162
165
  },
163
166
  handleItemDown(e) {
164
- F && document.activeElement === this.element && e.preventDefault();
167
+ R && document.activeElement === this.element && e.preventDefault();
165
168
  },
166
169
  handleKeyDown(e) {
167
170
  const t = this.focusedIndex, i = this.$props.items ? this.$props.items.length - 1 : -1, s = this.$props.align.vertical === "bottom";
@@ -192,58 +195,59 @@ const G = /* @__PURE__ */ w({
192
195
  }
193
196
  },
194
197
  setup() {
195
- const e = g(null), t = g(null);
198
+ const e = $(null), t = $(null);
196
199
  return {
197
200
  chipRef: e,
198
201
  kendoAnchorRef: t
199
202
  };
200
203
  },
201
204
  render() {
205
+ var g;
202
206
  const {
203
207
  align: e,
204
208
  disabled: t,
205
209
  icon: i,
206
210
  svgIcon: s,
207
- iconClass: d,
211
+ iconClass: h,
208
212
  id: f,
209
213
  items: r,
210
- text: u,
211
- tabIndex: v,
212
- accessKey: C,
214
+ text: a,
215
+ tabIndex: C,
216
+ accessKey: y,
213
217
  popupSettings: l
214
- } = this.$props, y = A.call(this, this.$props.item, S.call(this)), D = function() {
215
- return r && r.map(function(a, p) {
216
- return o(E, {
217
- key: p,
218
- index: p,
219
- id: `${this.listId}-${p}`,
220
- disabled: t || a.disabled,
221
- focused: this.focusedIndex === p,
222
- dataItem: a,
223
- item: y,
224
- class: c(a.className, K(this.currentDir || "ltr", e.horizontal)),
218
+ } = this.$props, D = S.call(this, this.$props.item, A.call(this)), w = function() {
219
+ return r && r.map(function(d, u) {
220
+ return o(B, {
221
+ key: u,
222
+ index: u,
223
+ id: `${this.listId}-${u}`,
224
+ disabled: t || d.disabled,
225
+ focused: this.focusedIndex === u,
226
+ dataItem: d,
227
+ item: D,
228
+ class: p(d.className, j(this.currentDir || "ltr", e.horizontal)),
225
229
  onClick: this.handleItemClick,
226
230
  onDown: this.handleItemDown
227
231
  }, null);
228
232
  }, this);
229
- }, m = i && !u, b = (this.element ? this.element.offsetWidth : 0) / 2 - 32 / 2;
233
+ }, m = i && !a, b = (this.element ? this.element.offsetWidth : 0) / 2 - 32 / 2;
230
234
  return o("div", {
231
235
  class: this.rootClassNames
232
236
  }, [o("button", {
233
- ref: (a) => {
234
- this.kendoAnchorRef = a;
237
+ ref: (d) => {
238
+ this.kendoAnchorRef = d;
235
239
  },
236
240
  id: f || this.buttonId,
237
- role: r ? "menubutton" : void 0,
241
+ role: r ? "menubutton" : "button",
238
242
  type: "button",
239
- "aria-disabled": t || void 0,
243
+ "aria-disabled": t,
240
244
  "aria-expanded": r ? this.computedOpened : void 0,
241
- "aria-haspopup": r ? !0 : void 0,
242
- "aria-label": !u && (i || s || d) ? "Action" : void 0,
245
+ "aria-haspopup": !!r,
246
+ "aria-label": `${a || ""} floatingactionbutton`,
243
247
  "aria-owns": r ? this.listId : void 0,
244
248
  "aria-activedescendant": this.focusedIndex >= 0 && r ? `${this.listId}-${this.focusedIndex}` : void 0,
245
- tabindex: M(v, t),
246
- accesskey: C,
249
+ tabindex: (g = F(C, t)) != null ? g : 0,
250
+ accesskey: y,
247
251
  dir: this.currentDir,
248
252
  disabled: t,
249
253
  class: this.buttonClassNames,
@@ -257,28 +261,28 @@ const G = /* @__PURE__ */ w({
257
261
  name: i,
258
262
  icon: s,
259
263
  class: "k-fab-icon"
260
- }, null) : d ? o(k, {
261
- class: d
262
- }, null) : null, u && o("span", {
264
+ }, null) : h ? o(k, {
265
+ class: h
266
+ }, null) : null, a && o("span", {
263
267
  class: "k-fab-text"
264
- }, [u])]), o(j, {
265
- ref: $(this, "popup"),
268
+ }, [a])]), o(z, {
269
+ ref: I(this, "popup"),
266
270
  show: this.computedOpened,
267
271
  anchor: this._anchor,
268
272
  animate: l.animate,
269
- popupClass: c("k-popup-transparent k-fab-popup", l.popupClass),
270
- anchorAlign: l.anchorAlign || P(e, this.isRtl),
271
- popupAlign: l.popupAlign || N(e, this.isRtl),
273
+ popupClass: p("k-popup-transparent k-fab-popup", l.popupClass),
274
+ anchorAlign: l.anchorAlign || K(e, this.isRtl),
275
+ popupAlign: l.popupAlign || P(e, this.isRtl),
272
276
  style: {
273
277
  boxShadow: "none"
274
278
  }
275
279
  }, {
276
280
  default: () => [o("ul", {
277
- ref: $(this, "list"),
281
+ ref: I(this, "list"),
278
282
  role: "menu",
279
283
  "aria-labelledby": f,
280
284
  id: this.listId,
281
- class: c("k-fab-items", {
285
+ class: p("k-fab-items", {
282
286
  "k-fab-items-bottom": e.vertical !== "bottom",
283
287
  "k-fab-items-top": e.vertical === "bottom"
284
288
  }),
@@ -286,10 +290,10 @@ const G = /* @__PURE__ */ w({
286
290
  paddingLeft: m ? b + "px" : void 0,
287
291
  paddingRight: m ? b + "px" : void 0
288
292
  }
289
- }, [D.call(this)])]
293
+ }, [w.call(this)])]
290
294
  })]);
291
295
  }
292
296
  });
293
297
  export {
294
- G as FloatingActionButton
298
+ H as FloatingActionButton
295
299
  };
@@ -154,16 +154,10 @@ export interface FloatingActionButtonProps extends Omit<any, 'onBlur' | 'onFocus
154
154
  * [see example]({% slug appearance_floatingactionbutton %}).
155
155
  *
156
156
  * The possible values are:
157
- * * `primary` (Default)&mdash;Applies coloring based on the primary theme color.
157
+ * * `base` (Default)&mdash;Applies base coloring.
158
+ * * `primary`&mdash;Applies coloring based on the primary theme color.
158
159
  * * `secondary`&mdash;Applies coloring based on the secondary theme color.
159
160
  * * `tertiary`&mdash; Applies coloring based on the tertiary theme color.
160
- * * `info`&mdash;Applies coloring based on the info theme color.
161
- * * `success`&mdash; Applies coloring based on the success theme color.
162
- * * `warning`&mdash; Applies coloring based on the warning theme color.
163
- * * `error`&mdash; Applies coloring based on the error theme color.
164
- * * `dark`&mdash; Applies coloring based on the dark theme color.
165
- * * `light`&mdash; Applies coloring based on the light theme color.
166
- * * `inverse`&mdash; Applies coloring based on the inverse theme color.
167
161
  *
168
162
  */
169
163
  themeColor?: FloatingActionButtonThemeColor;
@@ -9,16 +9,10 @@
9
9
  * Specifies the theme color of the Floating Action Button..
10
10
  *
11
11
  * The possible values are:
12
- * * `primary` (Default)&mdash;Applies coloring based on the primary theme color.
12
+ * * `base` (Default)&mdash;Applies base coloring.
13
+ * * `primary`&mdash;Applies coloring based on the primary theme color.
13
14
  * * `secondary`&mdash;Applies coloring based on the secondary theme color.
14
15
  * * `tertiary`&mdash; Applies coloring based on the tertiary theme color.
15
- * * `info`&mdash;Applies coloring based on the info theme color.
16
- * * `success`&mdash; Applies coloring based on the success theme color.
17
- * * `warning`&mdash; Applies coloring based on the warning theme color.
18
- * * `error`&mdash; Applies coloring based on the error theme color.
19
- * * `dark`&mdash; Applies coloring based on the dark theme color.
20
- * * `light`&mdash; Applies coloring based on the light theme color.
21
- * * `inverse`&mdash; Applies coloring based on the inverse theme color.
22
16
  *
23
17
  */
24
- export type FloatingActionButtonThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
18
+ export type FloatingActionButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary';
@@ -19,8 +19,6 @@ export interface ButtonItemProps {
19
19
  id?: string;
20
20
  textField?: string;
21
21
  role?: string;
22
- first?: boolean;
23
- last?: boolean;
24
22
  }
25
23
  /**
26
24
  * @hidden
@@ -34,8 +32,6 @@ declare const ButtonItem: import('vue').DefineComponent<import('vue').ExtractPro
34
32
  id: PropType<string>;
35
33
  textField: PropType<string>;
36
34
  role: PropType<string>;
37
- first: PropType<boolean>;
38
- last: PropType<boolean>;
39
35
  }>, {}, {}, {
40
36
  wrapperClass(): object;
41
37
  innerClass(): object;
@@ -54,8 +50,6 @@ declare const ButtonItem: import('vue').DefineComponent<import('vue').ExtractPro
54
50
  id: PropType<string>;
55
51
  textField: PropType<string>;
56
52
  role: PropType<string>;
57
- first: PropType<boolean>;
58
- last: PropType<boolean>;
59
53
  }>> & Readonly<{
60
54
  onClick?: (event: any, index: number) => any;
61
55
  onDown?: (event: any, index: number) => any;
@@ -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=require("vue"),o=require("@progress/kendo-vue-common"),c=t.defineComponent({name:"KendoButtonItem",emits:{click:(e,n)=>!0,down:(e,n)=>!0},props:{focused:Boolean,index:Number,item:Object,render:[String,Object,Function],dataItem:[String,Object],id:String,textField:String,role:String,first:Boolean,last:Boolean},computed:{wrapperClass(){return{"k-item":!0,"k-menu-item":!0,"k-first":this.$props.first,"k-last":this.$props.last,"k-focus":this.$props.focused}},innerClass(){const{dataItem:e}=this.$props;return{"k-link k-menu-link":!0,"k-selected":e.selected,"k-disabled":e.disabled}}},methods:{onClick(e){this.$emit("click",e,this.$props.index)},onDown(e){this.$emit("down",e,this.$props.index)}},render(){const{dataItem:e,id:n,render:r}=this.$props,a=function(){const{textField:s,index:l}=this.$props,i=e.text!==void 0?e.text:s?e[s]:e,d=t.createVNode("span",{tabindex:-1,class:this.innerClass,key:"icon"},[e.icon||e.svgIcon?t.createVNode(o.Icon,{name:e.icon,icon:e.svgIcon,class:e.iconClass},null):e.iconClass&&t.createVNode("span",{class:e.iconClass,role:"presentation"},null),e.imageUrl&&t.createVNode("img",{class:"k-icon",alt:"",src:e.imageUrl,role:"presentation",key:"image"},null),i&&t.createVNode("span",{class:"k-menu-link-text"},[i])]);return o.getTemplate.call(this,{h:t.h,template:this.$props.dataItem.render||r,defaultRendering:d,additionalProps:{item:e,itemIndex:l,innerClass:this.innerClass,focused:this.focused}})};return t.createVNode("li",{id:n,class:this.wrapperClass,onClick:this.onClick,onMousedown:this.onDown,onPointerdown:this.onDown,role:"menuitem","aria-disabled":e.disabled||void 0},[a.call(this)])}});exports.ButtonItem=c;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("@progress/kendo-vue-common"),l=t.defineComponent({name:"KendoButtonItem",emits:{click:(e,n)=>!0,down:(e,n)=>!0},props:{focused:Boolean,index:Number,item:Object,render:[String,Object,Function],dataItem:[String,Object],id:String,textField:String,role:String},computed:{wrapperClass(){return{"k-item":!0,"k-focus":this.$props.focused}},innerClass(){const{dataItem:e}=this.$props;return{"k-link k-menu-link":!0,"k-selected":e.selected,"k-disabled":e.disabled}}},methods:{onClick(e){this.$emit("click",e,this.$props.index)},onDown(e){this.$emit("down",e,this.$props.index)}},render(){const{dataItem:e,id:n,render:r}=this.$props,d=function(){const{textField:i,index:a}=this.$props,s=e.text!==void 0?e.text:i?e[i]:e,c=t.createVNode("span",{tabindex:-1,class:this.innerClass,key:"icon"},[e.icon||e.svgIcon?t.createVNode(o.Icon,{name:e.icon,icon:e.svgIcon,class:e.iconClass},null):e.iconClass&&t.createVNode("span",{class:e.iconClass,role:"presentation"},null),e.imageUrl&&t.createVNode("img",{class:"k-icon",alt:"",src:e.imageUrl,role:"presentation",key:"image"},null),s&&t.createVNode("span",{class:"k-menu-link-text"},[s])]);return o.getTemplate.call(this,{h:t.h,template:this.$props.dataItem.render||r,defaultRendering:c,additionalProps:{item:e,itemIndex:a,innerClass:this.innerClass,focused:this.focused}})};return t.createVNode("li",{id:n,class:this.wrapperClass,onClick:this.onClick,onMousedown:this.onDown,onPointerdown:this.onDown,role:"menuitem","aria-disabled":e.disabled||void 0},[d.call(this)])}});exports.ButtonItem=l;