@opentinyvue/vue-color-picker 3.21.0 → 3.22.1
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/lib/index.js +4 -11
- package/package.json +6 -6
- package/src/index.d.ts +2 -2
- package/src/pc.vue.d.ts +6 -6
- package/lib/mobile.js +0 -55
- package/src/mobile.vue.d.ts +0 -40
package/lib/index.js
CHANGED
|
@@ -7,19 +7,12 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import PcTemplate from "./pc.js";
|
|
12
|
-
import MobileTemplate from "./mobile.js";
|
|
13
12
|
import "@opentinyvue/vue-theme/color-picker/index.css";
|
|
14
13
|
var template = function template2(mode) {
|
|
15
14
|
var _process$env;
|
|
16
|
-
|
|
17
|
-
if ("pc" === (tinyMode || mode)) {
|
|
18
|
-
return PcTemplate;
|
|
19
|
-
}
|
|
20
|
-
if ("mobile" === (tinyMode || mode)) {
|
|
21
|
-
return MobileTemplate;
|
|
22
|
-
}
|
|
15
|
+
typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
23
16
|
return PcTemplate;
|
|
24
17
|
};
|
|
25
18
|
var $constants = {};
|
|
@@ -41,7 +34,7 @@ var ColorPicker = defineComponent({
|
|
|
41
34
|
type: String,
|
|
42
35
|
default: "",
|
|
43
36
|
validator: function validator(val) {
|
|
44
|
-
return ["
|
|
37
|
+
return ["large", "medium", "small", "mini", ""].includes(val);
|
|
45
38
|
}
|
|
46
39
|
},
|
|
47
40
|
format: {
|
|
@@ -76,7 +69,7 @@ var ColorPicker = defineComponent({
|
|
|
76
69
|
});
|
|
77
70
|
}
|
|
78
71
|
});
|
|
79
|
-
var version = "3.
|
|
72
|
+
var version = "3.undefined";
|
|
80
73
|
ColorPicker.model = {
|
|
81
74
|
prop: "modelValue",
|
|
82
75
|
event: "update:modelValue"
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-color-picker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@opentinyvue/vue-color-select-panel": "~3.
|
|
10
|
-
"@opentinyvue/vue-common": "~3.
|
|
11
|
-
"@opentinyvue/vue-icon": "~3.
|
|
12
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
13
|
-
"@opentinyvue/vue-theme": "~3.
|
|
9
|
+
"@opentinyvue/vue-color-select-panel": "~3.22.0",
|
|
10
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -69,11 +69,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
69
69
|
tiny_theme: StringConstructor;
|
|
70
70
|
tiny_chart_theme: ObjectConstructor;
|
|
71
71
|
}>>, {
|
|
72
|
-
format: unknown[];
|
|
73
72
|
size: string;
|
|
73
|
+
format: unknown[];
|
|
74
|
+
visible: boolean;
|
|
74
75
|
tiny_mode_root: boolean;
|
|
75
76
|
_constants: Record<string, any>;
|
|
76
|
-
visible: boolean;
|
|
77
77
|
alpha: boolean;
|
|
78
78
|
enableHistory: boolean;
|
|
79
79
|
enablePredefineColor: boolean;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
-
format?: any;
|
|
3
2
|
size?: any;
|
|
3
|
+
format?: any;
|
|
4
|
+
visible?: any;
|
|
4
5
|
tiny_mode?: any;
|
|
5
6
|
tiny_mode_root?: any;
|
|
6
7
|
tiny_template?: any;
|
|
@@ -9,7 +10,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
9
10
|
tiny_theme?: any;
|
|
10
11
|
tiny_chart_theme?: any;
|
|
11
12
|
modelValue?: any;
|
|
12
|
-
visible?: any;
|
|
13
13
|
alpha?: any;
|
|
14
14
|
predefine?: any;
|
|
15
15
|
history?: any;
|
|
@@ -25,8 +25,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
25
25
|
gcls: (key: any) => any;
|
|
26
26
|
m: (...cssClasses: any[]) => string;
|
|
27
27
|
}, any, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("cancel" | "update:modelValue" | "confirm")[], "cancel" | "update:modelValue" | "confirm", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
28
|
-
format?: any;
|
|
29
28
|
size?: any;
|
|
29
|
+
format?: any;
|
|
30
|
+
visible?: any;
|
|
30
31
|
tiny_mode?: any;
|
|
31
32
|
tiny_mode_root?: any;
|
|
32
33
|
tiny_template?: any;
|
|
@@ -35,7 +36,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
35
36
|
tiny_theme?: any;
|
|
36
37
|
tiny_chart_theme?: any;
|
|
37
38
|
modelValue?: any;
|
|
38
|
-
visible?: any;
|
|
39
39
|
alpha?: any;
|
|
40
40
|
predefine?: any;
|
|
41
41
|
history?: any;
|
|
@@ -46,8 +46,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
46
46
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
47
47
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
readonly format?: any;
|
|
50
49
|
readonly size?: any;
|
|
50
|
+
readonly format?: any;
|
|
51
|
+
readonly visible?: any;
|
|
51
52
|
readonly tiny_mode?: any;
|
|
52
53
|
readonly tiny_mode_root?: any;
|
|
53
54
|
readonly tiny_template?: any;
|
|
@@ -56,7 +57,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
56
57
|
readonly tiny_theme?: any;
|
|
57
58
|
readonly tiny_chart_theme?: any;
|
|
58
59
|
readonly modelValue?: any;
|
|
59
|
-
readonly visible?: any;
|
|
60
60
|
readonly alpha?: any;
|
|
61
61
|
readonly predefine?: any;
|
|
62
62
|
readonly history?: any;
|
package/lib/mobile.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/color-picker/vue';
|
|
2
|
-
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
-
import { openBlock, createElementBlock } from 'vue';
|
|
4
|
-
|
|
5
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
6
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
8
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
9
|
-
t && (r = t);
|
|
10
|
-
var o = 0;
|
|
11
|
-
return function() {
|
|
12
|
-
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
|
-
}
|
|
17
|
-
function _unsupportedIterableToArray(r, a) {
|
|
18
|
-
if (r) {
|
|
19
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
20
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
21
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function _arrayLikeToArray(r, a) {
|
|
25
|
-
(null == a || a > r.length) && (a = r.length);
|
|
26
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
27
|
-
return n;
|
|
28
|
-
}
|
|
29
|
-
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
30
|
-
var target = sfc.__vccOpts || sfc;
|
|
31
|
-
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
32
|
-
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
33
|
-
target[key] = val;
|
|
34
|
-
}
|
|
35
|
-
return target;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var _sfc_main = defineComponent({
|
|
39
|
-
emits: ["update:modelValue"],
|
|
40
|
-
props: [].concat(props, ["modelValue"]),
|
|
41
|
-
setup: function setup$1(props2, context) {
|
|
42
|
-
return setup({
|
|
43
|
-
props: props2,
|
|
44
|
-
context,
|
|
45
|
-
renderless,
|
|
46
|
-
api
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
51
|
-
return openBlock(), createElementBlock("div");
|
|
52
|
-
}
|
|
53
|
-
var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
54
|
-
|
|
55
|
-
export { mobile as default };
|
package/src/mobile.vue.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
-
tiny_mode?: any;
|
|
3
|
-
tiny_mode_root?: any;
|
|
4
|
-
tiny_template?: any;
|
|
5
|
-
tiny_renderless?: any;
|
|
6
|
-
_constants?: any;
|
|
7
|
-
tiny_theme?: any;
|
|
8
|
-
tiny_chart_theme?: any;
|
|
9
|
-
modelValue?: any;
|
|
10
|
-
}>, {
|
|
11
|
-
t: (this: any, path: any, options?: any) => any;
|
|
12
|
-
vm: any;
|
|
13
|
-
f: (props: any, attrs?: {}) => {};
|
|
14
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
15
|
-
d: (props: any) => void;
|
|
16
|
-
dp: (props: any) => void;
|
|
17
|
-
gcls: (key: any) => any;
|
|
18
|
-
m: (...cssClasses: any[]) => string;
|
|
19
|
-
}, any, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
20
|
-
tiny_mode?: any;
|
|
21
|
-
tiny_mode_root?: any;
|
|
22
|
-
tiny_template?: any;
|
|
23
|
-
tiny_renderless?: any;
|
|
24
|
-
_constants?: any;
|
|
25
|
-
tiny_theme?: any;
|
|
26
|
-
tiny_chart_theme?: any;
|
|
27
|
-
modelValue?: any;
|
|
28
|
-
}>>> & {
|
|
29
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
readonly tiny_mode?: any;
|
|
32
|
-
readonly tiny_mode_root?: any;
|
|
33
|
-
readonly tiny_template?: any;
|
|
34
|
-
readonly tiny_renderless?: any;
|
|
35
|
-
readonly _constants?: any;
|
|
36
|
-
readonly tiny_theme?: any;
|
|
37
|
-
readonly tiny_chart_theme?: any;
|
|
38
|
-
readonly modelValue?: any;
|
|
39
|
-
}, {}>;
|
|
40
|
-
export default _default;
|