@progress/kendo-vue-inputs 6.1.0-develop.4 → 6.1.0-develop.6
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/colors/ColorGradient.js +2 -2
- package/colors/ColorGradient.mjs +104 -89
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +68 -61
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +68 -59
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +113 -57
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +82 -60
- package/colors/HexInput.js +1 -1
- package/colors/HexInput.mjs +13 -11
- package/colors/common/ColorsAdaptiveMode.js +8 -0
- package/colors/common/ColorsAdaptiveMode.mjs +91 -0
- package/colors/utils/color-cache.js +1 -1
- package/colors/utils/color-cache.mjs +2 -7
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +116 -7
- package/index.d.ts +116 -7
- package/messages/main.js +2 -2
- package/messages/main.mjs +26 -24
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
package/colors/HexInput.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { parseColor as
|
|
8
|
+
import { defineComponent as s, createVNode as o } from "vue";
|
|
9
|
+
import { parseColor as i } from "./utils/color-parser.mjs";
|
|
10
10
|
import { isPresent as r } from "./utils/misc.mjs";
|
|
11
11
|
import { TextBox as h } from "../textbox/TextBox.mjs";
|
|
12
|
-
const
|
|
12
|
+
const x = /* @__PURE__ */ s({
|
|
13
13
|
name: "KendoHexInput",
|
|
14
14
|
emits: {
|
|
15
15
|
hexchange: null,
|
|
@@ -20,11 +20,12 @@ const p = /* @__PURE__ */ o({
|
|
|
20
20
|
tabIndex: Number,
|
|
21
21
|
hex: String,
|
|
22
22
|
disabled: Boolean,
|
|
23
|
-
id: String
|
|
23
|
+
id: String,
|
|
24
|
+
size: String
|
|
24
25
|
},
|
|
25
26
|
computed: {
|
|
26
27
|
isHexValid() {
|
|
27
|
-
return !!
|
|
28
|
+
return !!i(this.currentHex, "rgba");
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
data() {
|
|
@@ -42,7 +43,7 @@ const p = /* @__PURE__ */ o({
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
render() {
|
|
45
|
-
return
|
|
46
|
+
return o(h, {
|
|
46
47
|
id: this.$props.id,
|
|
47
48
|
value: this.currentHex,
|
|
48
49
|
onInput: this.onChange,
|
|
@@ -51,21 +52,22 @@ const p = /* @__PURE__ */ o({
|
|
|
51
52
|
onBlur: this.onBlur,
|
|
52
53
|
valid: this.isHexValid,
|
|
53
54
|
disabled: this.$props.disabled,
|
|
55
|
+
size: this.$props.size,
|
|
54
56
|
tabIndex: this.tabIndex,
|
|
55
57
|
ref: "input"
|
|
56
58
|
}, null);
|
|
57
59
|
},
|
|
58
60
|
methods: {
|
|
59
61
|
onChange(e) {
|
|
60
|
-
const t = e.target.value,
|
|
61
|
-
this.currentHex = t, r(
|
|
62
|
+
const t = e.target.value, n = i(t, "rgba");
|
|
63
|
+
this.currentHex = t, r(n) && this.$emit("hexchange", {
|
|
62
64
|
hex: t,
|
|
63
|
-
value:
|
|
65
|
+
value: n,
|
|
64
66
|
event: e
|
|
65
67
|
});
|
|
66
68
|
},
|
|
67
69
|
onBlur(e) {
|
|
68
|
-
r(
|
|
70
|
+
r(i(this.hex, "rgba")) || (this.currentHex = this.originalHex), this.$emit("blur", e);
|
|
69
71
|
},
|
|
70
72
|
onFocus(e) {
|
|
71
73
|
this.$emit("focus", e);
|
|
@@ -73,5 +75,5 @@ const p = /* @__PURE__ */ o({
|
|
|
73
75
|
}
|
|
74
76
|
});
|
|
75
77
|
export {
|
|
76
|
-
|
|
78
|
+
x as HexInput
|
|
77
79
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("@progress/kendo-vue-layout"),l=require("@progress/kendo-vue-buttons"),h=require("@progress/kendo-svg-icons");function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const m=e.defineComponent({name:"KendoActionSheet",props:{expand:Boolean,animationStyles:Object,classNameAdaptive:String,title:String,componentToRender:Object,applyText:String,cancelText:String},emits:["actionSheetClose","cancelBtnClick","applyBtnClick"],methods:{onClose(){this.$emit("actionSheetClose")},onCancel(){this.$emit("cancelBtnClick")},onApply(t){this.$emit("applyBtnClick",t)}},render(){const{title:t,componentToRender:i,expand:c,applyText:o,cancelText:n,animationStyles:r,classNameAdaptive:s}=this.$props,d=function(){return e.h(e.createVNode(l.Button,{tabIndex:0,size:"large","aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",icon:"x",svgIcon:h.xIcon,onClick:this.onClose},null))}.call(this),p=()=>e.h(e.createVNode(e.Fragment,null,[e.createVNode(l.Button,{size:"large",class:"k-coloreditor-cancel","aria-label":n,onClick:this.onCancel},a(n)?n:{default:()=>[n]}),e.createVNode(l.Button,{themeColor:"primary",size:"large",class:"k-coloreditor-apply","aria-label":o,onClick:this.onApply},a(o)?o:{default:()=>[o]})])),u=()=>e.h(i);return e.createVNode(C.ActionSheet,{onClose:this.onClose,animationStyles:r,className:s,contentClassName:"!k-overflow-hidden",footerClassName:"k-actions k-actions-stretched k-actions-horizontal",title:t,content:u,footer:p,expand:c,actions:d},null)}});exports.ColorsAdaptiveMode=m;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { defineComponent as h, h as l, createVNode as t, Fragment as f, isVNode as u } from "vue";
|
|
9
|
+
import { ActionSheet as y } from "@progress/kendo-vue-layout";
|
|
10
|
+
import { Button as a } from "@progress/kendo-vue-buttons";
|
|
11
|
+
import { xIcon as k } from "@progress/kendo-svg-icons";
|
|
12
|
+
function i(e) {
|
|
13
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !u(e);
|
|
14
|
+
}
|
|
15
|
+
const A = /* @__PURE__ */ h({
|
|
16
|
+
name: "KendoActionSheet",
|
|
17
|
+
props: {
|
|
18
|
+
expand: Boolean,
|
|
19
|
+
animationStyles: Object,
|
|
20
|
+
classNameAdaptive: String,
|
|
21
|
+
title: String,
|
|
22
|
+
componentToRender: Object,
|
|
23
|
+
applyText: String,
|
|
24
|
+
cancelText: String
|
|
25
|
+
},
|
|
26
|
+
emits: ["actionSheetClose", "cancelBtnClick", "applyBtnClick"],
|
|
27
|
+
methods: {
|
|
28
|
+
onClose() {
|
|
29
|
+
this.$emit("actionSheetClose");
|
|
30
|
+
},
|
|
31
|
+
onCancel() {
|
|
32
|
+
this.$emit("cancelBtnClick");
|
|
33
|
+
},
|
|
34
|
+
onApply(e) {
|
|
35
|
+
this.$emit("applyBtnClick", e);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
const {
|
|
40
|
+
title: e,
|
|
41
|
+
componentToRender: c,
|
|
42
|
+
expand: r,
|
|
43
|
+
applyText: o,
|
|
44
|
+
cancelText: n,
|
|
45
|
+
animationStyles: s,
|
|
46
|
+
classNameAdaptive: p
|
|
47
|
+
} = this.$props, d = function() {
|
|
48
|
+
return l(t(a, {
|
|
49
|
+
tabIndex: 0,
|
|
50
|
+
size: "large",
|
|
51
|
+
"aria-label": "Cancel",
|
|
52
|
+
"aria-disabled": "false",
|
|
53
|
+
type: "button",
|
|
54
|
+
fillMode: "flat",
|
|
55
|
+
icon: "x",
|
|
56
|
+
svgIcon: k,
|
|
57
|
+
onClick: this.onClose
|
|
58
|
+
}, null));
|
|
59
|
+
}.call(this), m = () => l(t(f, null, [t(a, {
|
|
60
|
+
size: "large",
|
|
61
|
+
class: "k-coloreditor-cancel",
|
|
62
|
+
"aria-label": n,
|
|
63
|
+
onClick: this.onCancel
|
|
64
|
+
}, i(n) ? n : {
|
|
65
|
+
default: () => [n]
|
|
66
|
+
}), t(a, {
|
|
67
|
+
themeColor: "primary",
|
|
68
|
+
size: "large",
|
|
69
|
+
class: "k-coloreditor-apply",
|
|
70
|
+
"aria-label": o,
|
|
71
|
+
onClick: this.onApply
|
|
72
|
+
}, i(o) ? o : {
|
|
73
|
+
default: () => [o]
|
|
74
|
+
})])), C = () => l(c);
|
|
75
|
+
return t(y, {
|
|
76
|
+
onClose: this.onClose,
|
|
77
|
+
animationStyles: s,
|
|
78
|
+
className: p,
|
|
79
|
+
contentClassName: "!k-overflow-hidden",
|
|
80
|
+
footerClassName: "k-actions k-actions-stretched k-actions-horizontal",
|
|
81
|
+
title: e,
|
|
82
|
+
content: C,
|
|
83
|
+
footer: m,
|
|
84
|
+
expand: r,
|
|
85
|
+
actions: d
|
|
86
|
+
}, null);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
A as ColorsAdaptiveMode
|
|
91
|
+
};
|
|
@@ -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 e=
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={opacity:!0};function o(t){}exports.DEFAULT_GRADIENT_SETTINGS=e;exports.removeCachedColor=o;
|
|
@@ -5,17 +5,12 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DEFAULT_PRESET as E, DEFAULT_TILE_SIZE as T } from "../ColorPalette.mjs";
|
|
9
8
|
const e = {
|
|
10
9
|
opacity: !0
|
|
11
|
-
}, S = {
|
|
12
|
-
palette: E,
|
|
13
|
-
tileSize: T
|
|
14
10
|
};
|
|
15
|
-
function
|
|
11
|
+
function t(o) {
|
|
16
12
|
}
|
|
17
13
|
export {
|
|
18
14
|
e as DEFAULT_GRADIENT_SETTINGS,
|
|
19
|
-
|
|
20
|
-
_ as removeCachedColor
|
|
15
|
+
t as removeCachedColor
|
|
21
16
|
};
|