@progress/kendo-vue-inputs 7.0.1-develop.2 → 7.0.1-develop.3

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 (42) hide show
  1. package/checkbox/Checkbox.js +1 -1
  2. package/checkbox/Checkbox.mjs +23 -19
  3. package/colors/ColorGradient.js +2 -2
  4. package/colors/ColorGradient.mjs +10 -10
  5. package/colors/ColorPalette.js +1 -1
  6. package/colors/ColorPalette.mjs +16 -16
  7. package/colors/ColorPicker.js +1 -1
  8. package/colors/ColorPicker.mjs +16 -16
  9. package/colors/FlatColorPicker.js +1 -1
  10. package/colors/FlatColorPicker.mjs +35 -35
  11. package/colors/HexInput.js +1 -1
  12. package/colors/HexInput.mjs +15 -11
  13. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  14. package/index.d.mts +559 -226
  15. package/index.d.ts +559 -226
  16. package/input/Input.js +1 -1
  17. package/input/Input.mjs +39 -35
  18. package/maskedtextbox/MaskedTextBox.js +1 -1
  19. package/maskedtextbox/MaskedTextBox.mjs +12 -5
  20. package/numerictextbox/NumericTextBox.js +1 -1
  21. package/numerictextbox/NumericTextBox.mjs +11 -7
  22. package/package-metadata.js +1 -1
  23. package/package-metadata.mjs +2 -2
  24. package/package.json +9 -9
  25. package/radiobutton/RadioButton.js +1 -1
  26. package/radiobutton/RadioButton.mjs +30 -24
  27. package/radiobutton/RadioGroup.js +1 -1
  28. package/radiobutton/RadioGroup.mjs +30 -30
  29. package/rating/Rating.js +1 -1
  30. package/rating/Rating.mjs +34 -30
  31. package/rating/RatingItem.js +1 -1
  32. package/rating/RatingItem.mjs +4 -4
  33. package/signature/Signature.js +1 -1
  34. package/signature/Signature.mjs +11 -11
  35. package/slider/Slider.js +1 -1
  36. package/slider/Slider.mjs +18 -14
  37. package/switch/Switch.js +1 -1
  38. package/switch/Switch.mjs +15 -11
  39. package/textarea/TextArea.js +1 -1
  40. package/textarea/TextArea.mjs +18 -18
  41. package/textbox/TextBox.js +1 -1
  42. package/textbox/TextBox.mjs +25 -21
@@ -5,32 +5,32 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as T, h as n, createVNode as t, isVNode as z } from "vue";
8
+ import { defineComponent as T, h as l, createVNode as t, isVNode as z } from "vue";
9
9
  import { dropletSliderIcon as F, paletteIcon as L, dropletSlashIcon as R } from "@progress/kendo-svg-icons";
10
- import { Keys as c, focusContainer as M, focusFirstFocusableChild as G, templateRendering as h, getListeners as p, getTemplate as g, classNames as D, getTabIndex as j, kendoThemeMaps as N, Icon as u, validatePackage as E, setRef as m } from "@progress/kendo-vue-common";
11
- import { ButtonGroup as O, Button as l } from "@progress/kendo-vue-buttons";
10
+ import { Keys as u, focusContainer as M, focusFirstFocusableChild as G, templateRendering as h, getListeners as p, getTemplate as g, classNames as D, getTabIndex as j, kendoThemeMaps as N, Icon as c, validatePackage as E, setRef as m } from "@progress/kendo-vue-common";
11
+ import { ButtonGroup as O, Button as a } from "@progress/kendo-vue-buttons";
12
12
  import { DEFAULT_PRESET as A, ColorPalette as _ } from "./ColorPalette.mjs";
13
13
  import { ColorGradient as H } from "./ColorGradient.mjs";
14
14
  import { packageMetadata as U } from "../package-metadata.mjs";
15
- import { flatColorPickerGradientBtn as f, messages as a, flatColorPickerPaletteBtn as C, flatColorPickerClearBtn as k, flatColorPickerCancelBtn as b, flatColorPickerApplyBtn as w } from "../messages/main.mjs";
15
+ import { flatColorPickerGradientBtn as f, messages as r, flatColorPickerPaletteBtn as C, flatColorPickerClearBtn as k, flatColorPickerCancelBtn as v, flatColorPickerApplyBtn as b } from "../messages/main.mjs";
16
16
  import { parseColor as q } from "./utils/color-parser.mjs";
17
17
  import { DEFAULT_GRADIENT_SETTINGS as J } from "./utils/color-cache.mjs";
18
18
  import { provideLocalizationService as Q } from "@progress/kendo-vue-intl";
19
- function v(e) {
19
+ function w(e) {
20
20
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !z(e);
21
21
  }
22
- const re = /* @__PURE__ */ T({
22
+ const ne = /* @__PURE__ */ T({
23
23
  name: "KendoFlatColorPicker",
24
24
  emits: {
25
- viewchange: null,
26
- changemodel: null,
27
- "update:modelValue": null,
28
- "update:modelRgbaValue": null,
29
- focus: null,
30
- blur: null,
31
- focusout: null,
32
- keydown: null,
33
- change: null
25
+ viewchange: (e) => !0,
26
+ changemodel: (e) => !0,
27
+ "update:modelValue": (e) => !0,
28
+ "update:modelRgbaValue": (e) => !0,
29
+ focus: (e) => !0,
30
+ blur: (e) => !0,
31
+ focusout: (e) => !0,
32
+ keydown: (e) => !0,
33
+ change: (e) => !0
34
34
  },
35
35
  props: {
36
36
  modelValue: String,
@@ -133,14 +133,14 @@ const re = /* @__PURE__ */ T({
133
133
  const {
134
134
  size: e,
135
135
  adaptive: o
136
- } = this.$props, i = Q(this), y = i.toLanguageString(f, a[f]), V = i.toLanguageString(C, a[C]), B = i.toLanguageString(k, a[k]), r = i.toLanguageString(b, a[b]), s = i.toLanguageString(w, a[w]), P = h.call(this, this.$props.header, p.call(this)), S = h.call(this, this.$props.footer, p.call(this)), I = g.call(this, {
137
- h: n,
136
+ } = this.$props, i = Q(this), y = i.toLanguageString(f, r[f]), V = i.toLanguageString(C, r[C]), B = i.toLanguageString(k, r[k]), n = i.toLanguageString(v, r[v]), s = i.toLanguageString(b, r[b]), P = h.call(this, this.$props.header, p.call(this)), S = h.call(this, this.$props.footer, p.call(this)), I = g.call(this, {
137
+ h: l,
138
138
  template: P
139
139
  }), $ = g.call(this, {
140
- h: n,
140
+ h: l,
141
141
  template: S
142
142
  }), K = function() {
143
- return n(H, {
143
+ return l(H, {
144
144
  ref: m(this, "gradient"),
145
145
  tabIndex: -1,
146
146
  value: this.colorValue,
@@ -152,7 +152,7 @@ const re = /* @__PURE__ */ T({
152
152
  ...this.gradientSettings
153
153
  });
154
154
  }, x = function() {
155
- return n(_, {
155
+ return l(_, {
156
156
  ref: m(this, "palette"),
157
157
  tabIndex: this.computedTabIndex,
158
158
  value: this.colorValue,
@@ -180,7 +180,7 @@ const re = /* @__PURE__ */ T({
180
180
  }, [t(O, {
181
181
  class: "k-button-group-flat"
182
182
  }, {
183
- default: () => [t(l, {
183
+ default: () => [t(a, {
184
184
  tabIndex: this.computedTabIndex,
185
185
  type: "button",
186
186
  togglable: !0,
@@ -191,12 +191,12 @@ const re = /* @__PURE__ */ T({
191
191
  size: e,
192
192
  onClick: (d) => this.handleViewChange(d, "gradient")
193
193
  }, {
194
- default: () => [t(u, {
194
+ default: () => [t(c, {
195
195
  size: e,
196
196
  name: "droplet-slider",
197
197
  icon: F
198
198
  }, null)]
199
- }), t(l, {
199
+ }), t(a, {
200
200
  tabIndex: this.computedTabIndex,
201
201
  type: "button",
202
202
  togglable: !0,
@@ -207,7 +207,7 @@ const re = /* @__PURE__ */ T({
207
207
  size: e,
208
208
  onClick: (d) => this.handleViewChange(d, "palette")
209
209
  }, {
210
- default: () => [t(u, {
210
+ default: () => [t(c, {
211
211
  size: e,
212
212
  name: "palette",
213
213
  icon: L
@@ -217,7 +217,7 @@ const re = /* @__PURE__ */ T({
217
217
  class: "k-spacer"
218
218
  }, null), t("div", {
219
219
  class: "k-coloreditor-header-actions k-hstack"
220
- }, [this.$props.showClearButton && t(l, {
220
+ }, [this.$props.showClearButton && t(a, {
221
221
  tabIndex: this.computedTabIndex,
222
222
  type: "button",
223
223
  fillMode: "flat",
@@ -226,7 +226,7 @@ const re = /* @__PURE__ */ T({
226
226
  onKeydown: this.handleButtonKeydown,
227
227
  onClick: this.handleResetColor
228
228
  }, {
229
- default: () => [t(u, {
229
+ default: () => [t(c, {
230
230
  size: e,
231
231
  name: "droplet-slash",
232
232
  icon: R
@@ -252,23 +252,23 @@ const re = /* @__PURE__ */ T({
252
252
  class: "k-coloreditor-views k-vstack"
253
253
  }, [this.isColorGradient ? K.call(this) : x.call(this)]), this.$props.showButtons && t("div", {
254
254
  class: "k-coloreditor-footer k-actions k-actions-end"
255
- }, [t(l, {
255
+ }, [t(a, {
256
256
  tabIndex: this.computedTabIndex,
257
257
  type: "button",
258
258
  class: "k-coloreditor-cancel",
259
259
  size: e,
260
260
  onKeydown: this.handleButtonKeydown,
261
261
  onClick: this.handleCancelBtnClick
262
- }, v(r) ? r : {
263
- default: () => [r]
264
- }), t(l, {
262
+ }, w(n) ? n : {
263
+ default: () => [n]
264
+ }), t(a, {
265
265
  tabIndex: this.computedTabIndex,
266
266
  type: "button",
267
267
  class: "k-coloreditor-apply k-primary",
268
268
  size: e,
269
269
  onKeydown: this.handleButtonKeydown,
270
270
  onClick: this.triggerChange
271
- }, v(s) ? s : {
271
+ }, w(s) ? s : {
272
272
  default: () => [s]
273
273
  })]), $]);
274
274
  },
@@ -306,13 +306,13 @@ const re = /* @__PURE__ */ T({
306
306
  });
307
307
  },
308
308
  innerKeyDown(e) {
309
- e.keyCode === c.enter && this.triggerChange(e);
309
+ e.keyCode === u.enter && this.triggerChange(e);
310
310
  },
311
311
  gradientKeyDown(e) {
312
- e.stopPropagation(), !this.showButtons && e.keyCode === c.enter && this.triggerChange(e);
312
+ e.stopPropagation(), !this.showButtons && e.keyCode === u.enter && this.triggerChange(e);
313
313
  },
314
314
  handleButtonKeydown(e) {
315
- e.keyCode === c.enter && e.stopPropagation();
315
+ e.keyCode === u.enter && e.stopPropagation();
316
316
  },
317
317
  handleCancelBtnClick() {
318
318
  this.colorValue = this.computedPrevColor;
@@ -341,5 +341,5 @@ const re = /* @__PURE__ */ T({
341
341
  }
342
342
  });
343
343
  export {
344
- re as FlatColorPicker
344
+ ne as FlatColorPicker
345
345
  };
@@ -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 n=require("vue"),r=require("./utils/color-parser.js"),s=require("./utils/misc.js"),o=require("../textbox/TextBox.js"),u=n.defineComponent({name:"KendoHexInput",emits:{hexchange:null,blur:null,focus:null},props:{tabIndex:Number,hex:String,disabled:Boolean,id:String,size:String},computed:{isHexValid(){return!!r.parseColor(this.currentHex,"rgba")}},data(){return{currentHex:this.$props.hex,originalHex:this.$props.hex}},mounted(){this._input=this.$refs.input._input},watch:{hex:function(e){this.currentHex=e}},render(){return n.createVNode(o.TextBox,{id:this.$props.id,value:this.currentHex,onInput:this.onChange,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,valid:this.isHexValid,disabled:this.$props.disabled,size:this.$props.size,tabIndex:this.tabIndex,ref:"input"},null)},methods:{onChange(e){const t=e.target.value,i=r.parseColor(t,"rgba");this.currentHex=t,s.isPresent(i)&&this.$emit("hexchange",{hex:t,value:i,event:e})},onBlur(e){s.isPresent(r.parseColor(this.hex,"rgba"))||(this.currentHex=this.originalHex),this.$emit("blur",e)},onFocus(e){this.$emit("focus",e)}}});exports.HexInput=u;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),r=require("./utils/color-parser.js"),s=require("./utils/misc.js"),o=require("../textbox/TextBox.js"),u=n.defineComponent({name:"KendoHexInput",emits:{hexchange:e=>!0,blur:e=>!0,focus:e=>!0},props:{tabIndex:Number,hex:String,disabled:Boolean,id:String,size:String},computed:{isHexValid(){return!!r.parseColor(this.currentHex,"rgba")}},data(){return{currentHex:this.$props.hex,originalHex:this.$props.hex}},mounted(){this._input=this.$refs.input._input},watch:{hex:function(e){this.currentHex=e}},render(){return n.createVNode(o.TextBox,{id:this.$props.id,value:this.currentHex,onInput:this.onChange,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,valid:this.isHexValid,disabled:this.$props.disabled,size:this.$props.size,tabIndex:this.tabIndex,ref:"input"},null)},methods:{onChange(e){const t=e.target.value,i=r.parseColor(t,"rgba");this.currentHex=t,s.isPresent(i)&&this.$emit("hexchange",{hex:t,value:i,event:e})},onBlur(e){s.isPresent(r.parseColor(this.hex,"rgba"))||(this.currentHex=this.originalHex),this.$emit("blur",{event:e})},onFocus(e){this.$emit("focus",{event:e})}}});exports.HexInput=u;
@@ -7,14 +7,14 @@
7
7
  */
8
8
  import { defineComponent as s, createVNode as o } from "vue";
9
9
  import { parseColor as i } from "./utils/color-parser.mjs";
10
- import { isPresent as r } from "./utils/misc.mjs";
10
+ import { isPresent as n } from "./utils/misc.mjs";
11
11
  import { TextBox as h } from "../textbox/TextBox.mjs";
12
- const x = /* @__PURE__ */ s({
12
+ const d = /* @__PURE__ */ s({
13
13
  name: "KendoHexInput",
14
14
  emits: {
15
- hexchange: null,
16
- blur: null,
17
- focus: null
15
+ hexchange: (e) => !0,
16
+ blur: (e) => !0,
17
+ focus: (e) => !0
18
18
  },
19
19
  props: {
20
20
  tabIndex: Number,
@@ -59,21 +59,25 @@ const x = /* @__PURE__ */ s({
59
59
  },
60
60
  methods: {
61
61
  onChange(e) {
62
- const t = e.target.value, n = i(t, "rgba");
63
- this.currentHex = t, r(n) && this.$emit("hexchange", {
62
+ const t = e.target.value, r = i(t, "rgba");
63
+ this.currentHex = t, n(r) && this.$emit("hexchange", {
64
64
  hex: t,
65
- value: n,
65
+ value: r,
66
66
  event: e
67
67
  });
68
68
  },
69
69
  onBlur(e) {
70
- r(i(this.hex, "rgba")) || (this.currentHex = this.originalHex), this.$emit("blur", e);
70
+ n(i(this.hex, "rgba")) || (this.currentHex = this.originalHex), this.$emit("blur", {
71
+ event: e
72
+ });
71
73
  },
72
74
  onFocus(e) {
73
- this.$emit("focus", e);
75
+ this.$emit("focus", {
76
+ event: e
77
+ });
74
78
  }
75
79
  }
76
80
  });
77
81
  export {
78
- x as HexInput
82
+ d as HexInput
79
83
  };