@progress/kendo-vue-inputs 7.0.1-develop.2 → 7.0.1-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.
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Checkbox.mjs +23 -19
- package/colors/ColorGradient.js +2 -2
- package/colors/ColorGradient.mjs +10 -10
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +16 -16
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +16 -16
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +35 -35
- package/colors/HexInput.js +1 -1
- package/colors/HexInput.mjs +15 -11
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +559 -226
- package/index.d.ts +559 -226
- package/input/Input.js +1 -1
- package/input/Input.mjs +39 -35
- package/maskedtextbox/MaskedTextBox.js +1 -1
- package/maskedtextbox/MaskedTextBox.mjs +12 -5
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +11 -7
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +30 -24
- package/radiobutton/RadioGroup.js +1 -1
- package/radiobutton/RadioGroup.mjs +30 -30
- package/rating/Rating.js +1 -1
- package/rating/Rating.mjs +34 -30
- package/rating/RatingItem.js +1 -1
- package/rating/RatingItem.mjs +4 -4
- package/signature/Signature.js +1 -1
- package/signature/Signature.mjs +11 -11
- package/slider/Slider.js +1 -1
- package/slider/Slider.mjs +18 -14
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +15 -11
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +18 -18
- package/textbox/TextBox.js +1 -1
- 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
|
|
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
|
|
11
|
-
import { ButtonGroup as O, Button as
|
|
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
|
|
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
|
|
19
|
+
function w(e) {
|
|
20
20
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !z(e);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const ne = /* @__PURE__ */ T({
|
|
23
23
|
name: "KendoFlatColorPicker",
|
|
24
24
|
emits: {
|
|
25
|
-
viewchange:
|
|
26
|
-
changemodel:
|
|
27
|
-
"update:modelValue":
|
|
28
|
-
"update:modelRgbaValue":
|
|
29
|
-
focus:
|
|
30
|
-
blur:
|
|
31
|
-
focusout:
|
|
32
|
-
keydown:
|
|
33
|
-
change:
|
|
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,
|
|
137
|
-
h:
|
|
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:
|
|
140
|
+
h: l,
|
|
141
141
|
template: S
|
|
142
142
|
}), K = function() {
|
|
143
|
-
return
|
|
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
|
|
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(
|
|
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(
|
|
194
|
+
default: () => [t(c, {
|
|
195
195
|
size: e,
|
|
196
196
|
name: "droplet-slider",
|
|
197
197
|
icon: F
|
|
198
198
|
}, null)]
|
|
199
|
-
}), t(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
263
|
-
default: () => [
|
|
264
|
-
}), t(
|
|
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
|
-
},
|
|
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 ===
|
|
309
|
+
e.keyCode === u.enter && this.triggerChange(e);
|
|
310
310
|
},
|
|
311
311
|
gradientKeyDown(e) {
|
|
312
|
-
e.stopPropagation(), !this.showButtons && e.keyCode ===
|
|
312
|
+
e.stopPropagation(), !this.showButtons && e.keyCode === u.enter && this.triggerChange(e);
|
|
313
313
|
},
|
|
314
314
|
handleButtonKeydown(e) {
|
|
315
|
-
e.keyCode ===
|
|
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
|
-
|
|
344
|
+
ne as FlatColorPicker
|
|
345
345
|
};
|
package/colors/HexInput.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 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:
|
|
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;
|
package/colors/HexInput.mjs
CHANGED
|
@@ -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
|
|
10
|
+
import { isPresent as n } from "./utils/misc.mjs";
|
|
11
11
|
import { TextBox as h } from "../textbox/TextBox.mjs";
|
|
12
|
-
const
|
|
12
|
+
const d = /* @__PURE__ */ s({
|
|
13
13
|
name: "KendoHexInput",
|
|
14
14
|
emits: {
|
|
15
|
-
hexchange:
|
|
16
|
-
blur:
|
|
17
|
-
focus:
|
|
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,
|
|
63
|
-
this.currentHex = t, r
|
|
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:
|
|
65
|
+
value: r,
|
|
66
66
|
event: e
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
69
|
onBlur(e) {
|
|
70
|
-
|
|
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",
|
|
75
|
+
this.$emit("focus", {
|
|
76
|
+
event: e
|
|
77
|
+
});
|
|
74
78
|
}
|
|
75
79
|
}
|
|
76
80
|
});
|
|
77
81
|
export {
|
|
78
|
-
|
|
82
|
+
d as HexInput
|
|
79
83
|
};
|