@aurouscia/au-color-picker 0.0.2 → 0.0.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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as Z, ref as k, onMounted as le, onUnmounted as ue, openBlock as V, createElementBlock as A, normalizeStyle as ee, isRef as re, createElementVNode as d, computed as $, onBeforeMount as ie, watch as ce, createVNode as ve, withDirectives as fe, vModelSelect as de, createCommentVNode as pe } from "vue";
2
- import w from "color-convert";
1
+ import { defineComponent as ee, ref as k, onMounted as le, onUnmounted as ue, openBlock as L, createElementBlock as V, normalizeStyle as $, isRef as ie, createElementVNode as d, computed as Y, onBeforeMount as re, watch as ce, createVNode as ve, withDirectives as fe, vModelSelect as de, createCommentVNode as pe } from "vue";
2
+ import S from "color-convert";
3
3
  function ge(g, v) {
4
4
  const x = g.x - v.x, c = g.y - v.y;
5
5
  return x ** 2 + c ** 2;
@@ -14,75 +14,75 @@ function xe(g) {
14
14
  x += v.offsetTop, c += v.offsetLeft, v = v.offsetParent;
15
15
  return { y: x, x: c };
16
16
  }
17
- const C = 400, E = 400, j = 200, ye = 200, F = 190, G = 150, L = 200, K = 16, J = 3, me = /* @__PURE__ */ Z({
17
+ const C = 400, E = 400, Z = 200, ye = 200, F = 190, G = 150, A = 200, K = 16, J = 3, me = /* @__PURE__ */ ee({
18
18
  __name: "AuColorPickerRing",
19
19
  props: {
20
20
  initialHex: {}
21
21
  },
22
22
  emits: ["changed"],
23
23
  setup(g, { expose: v, emit: x }) {
24
- const c = k(), M = k();
25
- let P, u;
26
- const N = { x: 199, y: 199 }, U = (F + G) / 2, X = F ** 2, B = G ** 2, r = (C - L) / 2, b = r + L, m = k(0), H = k(100), _ = k(100), R = g;
24
+ const c = k(), H = k();
25
+ let I, u;
26
+ const N = { x: 199, y: 199 }, U = (F + G) / 2, X = F ** 2, M = G ** 2, r = (C - A) / 2, b = r + A, m = k(0), B = k(100), P = k(100), R = g;
27
27
  let f;
28
28
  function T() {
29
29
  var n, a;
30
- const e = (n = c.value) == null ? void 0 : n.getContext("2d"), t = (a = M.value) == null ? void 0 : a.getContext("2d");
30
+ const e = (n = c.value) == null ? void 0 : n.getContext("2d"), t = (a = H.value) == null ? void 0 : a.getContext("2d");
31
31
  if (!e || !t)
32
32
  throw Error("canvas context getting error");
33
33
  if (R.initialHex) {
34
- const h = w.hex.hsv(R.initialHex);
35
- m.value = h[0], H.value = h[1], _.value = h[2];
34
+ const h = S.hex.hsv(R.initialHex);
35
+ m.value = h[0], B.value = h[1], P.value = h[2];
36
36
  }
37
- P = e, u = t, f = P.getImageData(0, 0, C, E), z(), s(), Y(), P.putImageData(f, 0, 0);
37
+ I = e, u = t, f = I.getImageData(0, 0, C, E), z(), s(), j(), I.putImageData(f, 0, 0);
38
38
  }
39
39
  function z() {
40
40
  for (let e = 0; e < C; e++)
41
41
  for (let t = 0; t < E; t++) {
42
42
  const n = { x: e, y: t };
43
43
  if (o(n)) {
44
- const a = n.y * C * 4 + n.x * 4, h = i(n), S = w.hsv.rgb([h, 100, 100]);
45
- f.data[a] = S[0], f.data[a + 1] = S[1], f.data[a + 2] = S[2], f.data[a + 3] = 255;
44
+ const a = n.y * C * 4 + n.x * 4, h = l(n), _ = S.hsv.rgb([h, 100, 100]);
45
+ f.data[a] = _[0], f.data[a + 1] = _[1], f.data[a + 2] = _[2], f.data[a + 3] = 255;
46
46
  }
47
47
  }
48
48
  }
49
- function i(e) {
49
+ function l(e) {
50
50
  return 360 * ((he(e, N) + Math.PI) / (2 * Math.PI));
51
51
  }
52
52
  function o(e) {
53
53
  const t = ge(N, e);
54
- return t > B && t < X;
54
+ return t > M && t < X;
55
55
  }
56
56
  function s() {
57
57
  for (let e = 0; e < C; e++)
58
58
  for (let t = 0; t < E; t++) {
59
59
  const n = { x: e, y: t };
60
- if (I(n)) {
61
- const a = n.y * C * 4 + n.x * 4, { s: h, v: S } = y(n), q = w.hsv.rgb([m.value, h, S]);
60
+ if (w(n)) {
61
+ const a = n.y * C * 4 + n.x * 4, { s: h, v: _ } = y(n), q = S.hsv.rgb([m.value, h, _]);
62
62
  f.data[a] = q[0], f.data[a + 1] = q[1], f.data[a + 2] = q[2], f.data[a + 3] = 255;
63
63
  }
64
64
  }
65
65
  }
66
66
  function y(e) {
67
67
  const t = e.x - r, n = e.y - r;
68
- let a = t / L, h = 1 - n / L;
68
+ let a = t / A, h = 1 - n / A;
69
69
  return a > 1 ? a = 1 : a < 0 && (a = 0), h > 1 ? h = 1 : h < 0 && (h = 0), { s: 100 * a, v: 100 * h };
70
70
  }
71
- function I(e) {
71
+ function w(e) {
72
72
  return !(e.x < r || e.x > b || e.y < r || e.y > b);
73
73
  }
74
- let l = !1, p = "none", O = !1;
74
+ let i = !1, p = "none", O = !1;
75
75
  function W(e, t) {
76
- if (l || t && !O)
76
+ if (i || t && !O)
77
77
  return;
78
- l = !0;
78
+ i = !0;
79
79
  const n = ne(e);
80
- if (p === "none" && (I(n) ? p = "square" : o(n) && (p = "ring")), p === "ring" && (e.preventDefault(), m.value = i(n), s(), P.putImageData(f, 0, 0)), p === "square") {
80
+ if (p === "none" && (w(n) ? p = "square" : o(n) && (p = "ring")), p === "ring" && (e.preventDefault(), m.value = l(n), s(), I.putImageData(f, 0, 0)), p === "square") {
81
81
  e.preventDefault();
82
82
  const a = y(n);
83
- H.value = a.s, _.value = a.v;
83
+ B.value = a.s, P.value = a.v;
84
84
  }
85
- p !== "none" && Y(!0), l = !1;
85
+ p !== "none" && j(!0), i = !1;
86
86
  }
87
87
  function D() {
88
88
  p = "none", O = !1;
@@ -95,37 +95,37 @@ const C = 400, E = 400, j = 200, ye = 200, F = 190, G = 150, L = 200, K = 16, J
95
95
  t -= a.x, n -= a.y;
96
96
  } else
97
97
  t = e.offsetX, n = e.offsetY;
98
- return t = t * C / j, n = n * C / j, { x: t, y: n };
98
+ return t = t * C / Z, n = n * C / Z, { x: t, y: n };
99
99
  }
100
- function Y(e) {
100
+ function j(e) {
101
101
  if (e) {
102
- const ae = w.hsv.hex([m.value, H.value, _.value]);
102
+ const ae = S.hsv.hex([m.value, B.value, P.value]);
103
103
  se("changed", ae);
104
104
  }
105
- const t = (m.value / 360 * 2 + 1) * Math.PI, n = Math.cos(t) * U + C / 2, a = Math.sin(t) * U + E / 2, h = H.value / 100 * L + r, S = (1 - _.value / 100) * L + r;
105
+ const t = (m.value / 360 * 2 + 1) * Math.PI, n = Math.cos(t) * U + C / 2, a = Math.sin(t) * U + E / 2, h = B.value / 100 * A + r, _ = (1 - P.value / 100) * A + r;
106
106
  u.reset(), u.lineWidth = 4, u.strokeStyle = "black", u.beginPath(), u.arc(n, a, K - 2, 0, 2 * Math.PI), u.stroke(), u.beginPath(), u.arc(n, a, J, 0, 2 * Math.PI), u.fill();
107
- const q = _.value > 50 ? "black" : "#ddd";
108
- u.strokeStyle = q, u.fillStyle = q, u.beginPath(), u.arc(h, S, K - 2, 0, 2 * Math.PI), u.stroke(), u.beginPath(), u.arc(h, S, J, 0, 2 * Math.PI), u.fill();
107
+ const q = P.value > 50 ? "black" : "#ddd";
108
+ u.strokeStyle = q, u.fillStyle = q, u.beginPath(), u.arc(h, _, K - 2, 0, 2 * Math.PI), u.stroke(), u.beginPath(), u.arc(h, _, J, 0, 2 * Math.PI), u.fill();
109
109
  }
110
110
  function oe(e) {
111
- const t = w.hex.hsv(e);
112
- m.value = t[0], H.value = t[1], _.value = t[2], s(), P.putImageData(f, 0, 0), Y();
111
+ const t = S.hex.hsv(e);
112
+ m.value = t[0], B.value = t[1], P.value = t[2], s(), I.putImageData(f, 0, 0), j();
113
113
  }
114
114
  const se = x;
115
115
  return v({ enforceTo: oe }), le(() => {
116
116
  T(), window.addEventListener("touchend", D), window.addEventListener("mouseup", D);
117
117
  }), ue(() => {
118
118
  window.removeEventListener("touchend", D), window.removeEventListener("mouseup", D);
119
- }), (e, t) => (V(), A("div", {
119
+ }), (e, t) => (L(), V("div", {
120
120
  class: "acpRingBody",
121
- style: ee({ width: j + "px", height: ye + "px" }),
121
+ style: $({ width: Z + "px", height: ye + "px" }),
122
122
  onTouchstart: W,
123
123
  onTouchmove: W,
124
124
  onTouchend: D,
125
125
  onMouseleave: D,
126
126
  onMousemove: t[0] || (t[0] = (n) => W(n, !0)),
127
127
  onMousedown: t[1] || (t[1] = (n) => {
128
- W(n), re(O) ? O.value = !0 : O = !0;
128
+ W(n), ie(O) ? O.value = !0 : O = !0;
129
129
  })
130
130
  }, [
131
131
  d("canvas", {
@@ -138,185 +138,188 @@ const C = 400, E = 400, j = 200, ye = 200, F = 190, G = 150, L = 200, K = 16, J
138
138
  width: C,
139
139
  height: E,
140
140
  ref_key: "cursorCvs",
141
- ref: M
141
+ ref: H
142
142
  }, null, 512)
143
143
  ], 36));
144
144
  }
145
145
  }), te = (g, v) => {
146
146
  const x = g.__vccOpts || g;
147
- for (const [c, M] of v)
148
- x[c] = M;
147
+ for (const [c, H] of v)
148
+ x[c] = H;
149
149
  return x;
150
150
  }, Ce = /* @__PURE__ */ te(me, [["__scopeId", "data-v-7f97ab8e"]]);
151
151
  function Q(g) {
152
152
  return /^#([0-9A-F]{3}){1,2}$/i.test(g);
153
153
  }
154
- const Pe = {
155
- key: 0,
156
- class: "acpPanel"
157
- }, _e = { class: "acpRing" }, ke = { class: "acpParams" }, we = {
154
+ const Ie = { class: "acpRing" }, Pe = { class: "acpParams" }, ke = {
158
155
  key: 0,
159
156
  class: "acpSingleInput"
160
- }, Ie = ["value"], Se = {
157
+ }, Se = ["value"], we = {
161
158
  key: 1,
162
159
  class: "acpTripleInputs"
163
- }, be = ["value"], He = ["value"], Me = ["value"], Be = {
160
+ }, _e = ["value"], be = ["value"], Be = ["value"], He = {
164
161
  key: 2,
165
162
  class: "acpTripleInputs"
166
- }, Re = ["value"], Te = ["value"], De = ["value"], qe = /* @__PURE__ */ Z({
163
+ }, Me = ["value"], Re = ["value"], Te = ["value"], De = /* @__PURE__ */ ee({
167
164
  __name: "AuColorPicker",
168
165
  props: {
169
166
  inital: {},
170
167
  entryStyles: {},
171
- pos: {}
168
+ entryActiveStyles: {},
169
+ pos: {},
170
+ panelBaseZIndex: {}
172
171
  },
173
172
  emits: ["change", "done"],
174
173
  setup(g, { expose: v, emit: x }) {
175
- const c = g, M = $(() => {
176
- let i = {};
177
- return c.entryStyles && Object.assign(i, c.entryStyles), i.backgroundColor = r.value, c.pos === "right" ? i.right = "0px" : i.left = "0px", i;
178
- }), P = k(), u = k(!1);
174
+ const c = g, H = Y(() => {
175
+ let l = {};
176
+ return c.entryStyles && Object.assign(l, c.entryStyles), l.backgroundColor = r.value, c.pos === "right" ? l.right = "0px" : l.left = "0px", u.value || (l.transition = "0s", Object.assign(l, c.entryActiveStyles)), l;
177
+ }), I = k(), u = k(!1);
179
178
  function N() {
180
179
  u.value = !1;
181
180
  }
182
181
  function U() {
183
182
  u.value = !u.value;
184
183
  }
185
- function X(i) {
186
- r.value = f(i), T();
184
+ function X(l) {
185
+ r.value = f(l), T();
187
186
  }
188
- const B = k("hex"), r = k("#ff0000"), b = $(() => w.hex.rgb(r.value)), m = $(() => w.hex.hsv(r.value));
189
- function H(i) {
187
+ const M = k("hex"), r = k("#ff0000"), b = Y(() => S.hex.rgb(r.value)), m = Y(() => S.hex.hsv(r.value));
188
+ function B(l) {
190
189
  var s;
191
- const o = i.target;
190
+ const o = l.target;
192
191
  if ("value" in o) {
193
192
  const y = o.value;
194
193
  if (y && Q(y)) {
195
- r.value = f(y), (s = P.value) == null || s.enforceTo(r.value), T();
194
+ r.value = f(y), (s = I.value) == null || s.enforceTo(r.value), T();
196
195
  return;
197
196
  }
198
197
  o.value = r.value;
199
198
  }
200
199
  }
201
- function _(i, o) {
200
+ function P(l, o) {
202
201
  var y;
203
- const s = i.target;
202
+ const s = l.target;
204
203
  if ("value" in s) {
205
- const I = s.value;
206
- if (I) {
207
- let l = parseInt(I);
208
- if (isNaN(l))
204
+ const w = s.value;
205
+ if (w) {
206
+ let i = parseInt(w);
207
+ if (isNaN(i))
209
208
  s.value = "0";
210
209
  else {
211
- l > 255 ? l = 255 : l < 0 && (l = 0);
210
+ i > 255 ? i = 255 : i < 0 && (i = 0);
212
211
  const p = [...b.value];
213
- o == "r" ? p[0] = l : o == "g" ? p[1] = l : p[2] = l, r.value = f(w.rgb.hex(p)), (y = P.value) == null || y.enforceTo(r.value), s.value = l.toString(), T();
212
+ o == "r" ? p[0] = i : o == "g" ? p[1] = i : p[2] = i, r.value = f(S.rgb.hex(p)), (y = I.value) == null || y.enforceTo(r.value), s.value = i.toString(), T();
214
213
  return;
215
214
  }
216
215
  }
217
216
  }
218
217
  }
219
- function R(i, o) {
218
+ function R(l, o) {
220
219
  var y;
221
- const s = i.target;
220
+ const s = l.target;
222
221
  if ("value" in s) {
223
- const I = s.value;
224
- if (I) {
225
- let l = parseInt(I);
226
- if (isNaN(l))
222
+ const w = s.value;
223
+ if (w) {
224
+ let i = parseInt(w);
225
+ if (isNaN(i))
227
226
  s.value = "0";
228
227
  else {
229
- o === "h" ? l > 359 && (l = 359) : l > 100 && (l = 100), l < 0 && (l = 0);
228
+ o === "h" ? i > 359 && (i = 359) : i > 100 && (i = 100), i < 0 && (i = 0);
230
229
  const p = [...m.value];
231
- o == "h" ? p[0] = l : o == "s" ? p[1] = l : p[2] = l, r.value = f(w.hsv.hex(p)), s.value = l.toString(), (y = P.value) == null || y.enforceTo(r.value), T();
230
+ o == "h" ? p[0] = i : o == "s" ? p[1] = i : p[2] = i, r.value = f(S.hsv.hex(p)), s.value = i.toString(), (y = I.value) == null || y.enforceTo(r.value), T();
232
231
  return;
233
232
  }
234
233
  }
235
234
  }
236
235
  }
237
- function f(i) {
238
- return i.startsWith("#") ? i.toUpperCase() : "#" + i.toUpperCase();
236
+ function f(l) {
237
+ return l.startsWith("#") ? l.toUpperCase() : "#" + l.toUpperCase();
239
238
  }
240
239
  function T() {
241
240
  z("change", r.value);
242
241
  }
243
- ie(() => {
242
+ re(() => {
244
243
  c.inital && Q(c.inital) && (r.value = f(c.inital));
245
244
  });
246
245
  const z = x;
247
- return v({ closePanel: N }), ce(u, (i) => {
248
- i === !1 && z("done", r.value);
249
- }), (i, o) => (V(), A("div", {
246
+ return v({ closePanel: N }), ce(u, (l) => {
247
+ l === !1 && z("done", r.value);
248
+ }), (l, o) => (L(), V("div", {
250
249
  class: "acp",
251
250
  onClick: o[7] || (o[7] = (s) => s.stopPropagation())
252
251
  }, [
253
252
  d("div", {
254
253
  class: "acpEntry",
255
- style: ee(M.value),
254
+ style: $(H.value),
256
255
  onClick: U
257
256
  }, null, 4),
258
- u.value ? (V(), A("div", Pe, [
259
- d("div", _e, [
257
+ u.value ? (L(), V("div", {
258
+ key: 0,
259
+ class: "acpPanel",
260
+ style: $({ zIndex: (l.panelBaseZIndex || 0) + 100 })
261
+ }, [
262
+ d("div", Ie, [
260
263
  ve(Ce, {
261
264
  ref_key: "ring",
262
- ref: P,
265
+ ref: I,
263
266
  initialHex: r.value,
264
267
  onChanged: X
265
268
  }, null, 8, ["initialHex"])
266
269
  ]),
267
- d("div", ke, [
270
+ d("div", Pe, [
268
271
  fe(d("select", {
269
- "onUpdate:modelValue": o[0] || (o[0] = (s) => B.value = s)
272
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => M.value = s)
270
273
  }, o[8] || (o[8] = [
271
274
  d("option", { value: "hex" }, "HEX", -1),
272
275
  d("option", { value: "rgb" }, "RGB", -1),
273
276
  d("option", { value: "hsv" }, "HSV", -1)
274
277
  ]), 512), [
275
- [de, B.value]
278
+ [de, M.value]
276
279
  ]),
277
- B.value == "hex" ? (V(), A("div", we, [
280
+ M.value == "hex" ? (L(), V("div", ke, [
278
281
  d("input", {
279
282
  value: r.value,
280
- onBlur: H,
283
+ onBlur: B,
281
284
  spellcheck: "false",
282
285
  maxlength: "7"
283
- }, null, 40, Ie)
284
- ])) : B.value == "rgb" ? (V(), A("div", Se, [
286
+ }, null, 40, Se)
287
+ ])) : M.value == "rgb" ? (L(), V("div", we, [
285
288
  d("input", {
286
289
  value: b.value[0],
287
- onBlur: o[1] || (o[1] = (s) => _(s, "r"))
288
- }, null, 40, be),
290
+ onBlur: o[1] || (o[1] = (s) => P(s, "r"))
291
+ }, null, 40, _e),
289
292
  d("input", {
290
293
  value: b.value[1],
291
- onBlur: o[2] || (o[2] = (s) => _(s, "g"))
292
- }, null, 40, He),
294
+ onBlur: o[2] || (o[2] = (s) => P(s, "g"))
295
+ }, null, 40, be),
293
296
  d("input", {
294
297
  value: b.value[2],
295
- onBlur: o[3] || (o[3] = (s) => _(s, "b"))
296
- }, null, 40, Me)
297
- ])) : (V(), A("div", Be, [
298
+ onBlur: o[3] || (o[3] = (s) => P(s, "b"))
299
+ }, null, 40, Be)
300
+ ])) : (L(), V("div", He, [
298
301
  d("input", {
299
302
  value: m.value[0],
300
303
  onBlur: o[4] || (o[4] = (s) => R(s, "h"))
301
- }, null, 40, Re),
304
+ }, null, 40, Me),
302
305
  d("input", {
303
306
  value: m.value[1],
304
307
  onBlur: o[5] || (o[5] = (s) => R(s, "s"))
305
- }, null, 40, Te),
308
+ }, null, 40, Re),
306
309
  d("input", {
307
310
  value: m.value[2],
308
311
  onBlur: o[6] || (o[6] = (s) => R(s, "v"))
309
- }, null, 40, De)
312
+ }, null, 40, Te)
310
313
  ]))
311
314
  ]),
312
315
  d("div", { class: "acpDoneBtn" }, [
313
316
  d("button", { onClick: N }, "OK")
314
317
  ])
315
- ])) : pe("", !0)
318
+ ], 4)) : pe("", !0)
316
319
  ]));
317
320
  }
318
- }), Ve = /* @__PURE__ */ te(qe, [["__scopeId", "data-v-4f4a2c1e"]]);
321
+ }), Ae = /* @__PURE__ */ te(De, [["__scopeId", "data-v-e44e35b3"]]);
319
322
  export {
320
- Ve as AuColorPicker,
323
+ Ae as AuColorPicker,
321
324
  Ce as AuColorPickerRing
322
325
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .acpRingBody[data-v-7f97ab8e]{position:relative}canvas[data-v-7f97ab8e]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.acpPanel[data-v-4f4a2c1e]{margin-top:3px;position:absolute}.acpPanel .acpParams[data-v-4f4a2c1e]{display:flex;justify-content:space-between;align-items:center;padding:5px}.acpPanel .acpParams select[data-v-4f4a2c1e],.acpPanel .acpParams input[data-v-4f4a2c1e]{margin:0;padding:2px;display:block;font-size:16px;box-sizing:border-box;height:24px;line-height:24px}.acpPanel .acpParams input[data-v-4f4a2c1e]{text-align:center}.acpPanel .acpParams .acpSingleInput input[data-v-4f4a2c1e]{width:120px}.acpPanel .acpParams .acpTripleInputs[data-v-4f4a2c1e]{display:flex;justify-content:space-around}.acpPanel .acpParams .acpTripleInputs input[data-v-4f4a2c1e]{width:40px}.acpPanel .acpDoneBtn[data-v-4f4a2c1e]{display:flex;justify-content:center;align-items:center;padding:8px}.acpPanel .acpDoneBtn button[data-v-4f4a2c1e]{background:none;border:none;color:gray;font-size:16px;cursor:pointer}.acpPanel .acpDoneBtn button[data-v-4f4a2c1e]:hover{color:#000}.acpPanel[data-v-4f4a2c1e]{border-radius:5px;box-shadow:0 0 5px #000;background-color:#fff}.acp[data-v-4f4a2c1e]{position:relative;width:fit-content}
1
+ .acpRingBody[data-v-7f97ab8e]{position:relative}canvas[data-v-7f97ab8e]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.acpEntry[data-v-e44e35b3]{width:30px;height:30px;cursor:pointer;border-radius:5px;box-shadow:0 0 5px #000;background-color:#fff}.acpPanel[data-v-e44e35b3]{margin-top:3px;position:absolute}.acpPanel .acpParams[data-v-e44e35b3]{display:flex;justify-content:space-between;align-items:center;padding:5px}.acpPanel .acpParams select[data-v-e44e35b3],.acpPanel .acpParams input[data-v-e44e35b3]{margin:0;padding:2px;display:block;font-size:16px;box-sizing:border-box;height:24px;line-height:24px}.acpPanel .acpParams input[data-v-e44e35b3]{text-align:center}.acpPanel .acpParams .acpSingleInput input[data-v-e44e35b3]{width:120px}.acpPanel .acpParams .acpTripleInputs[data-v-e44e35b3]{display:flex;justify-content:space-around}.acpPanel .acpParams .acpTripleInputs input[data-v-e44e35b3]{width:40px}.acpPanel .acpDoneBtn[data-v-e44e35b3]{display:flex;justify-content:center;align-items:center;padding:8px}.acpPanel .acpDoneBtn button[data-v-e44e35b3]{background:none;border:none;color:gray;font-size:16px;cursor:pointer}.acpPanel .acpDoneBtn button[data-v-e44e35b3]:hover{color:#000}.acpPanel[data-v-e44e35b3]{border-radius:5px;box-shadow:0 0 5px #000;background-color:#fff}.acp[data-v-e44e35b3]{position:relative;width:fit-content}
@@ -3,7 +3,9 @@ declare function closePanel(): void;
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  inital?: string;
5
5
  entryStyles?: CSSProperties;
6
+ entryActiveStyles?: CSSProperties;
6
7
  pos?: "left" | "right";
8
+ panelBaseZIndex?: number;
7
9
  }, {
8
10
  closePanel: typeof closePanel;
9
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -12,7 +14,9 @@ declare const _default: import("vue").DefineComponent<{
12
14
  }, string, import("vue").PublicProps, Readonly<{
13
15
  inital?: string;
14
16
  entryStyles?: CSSProperties;
17
+ entryActiveStyles?: CSSProperties;
15
18
  pos?: "left" | "right";
19
+ panelBaseZIndex?: number;
16
20
  }> & Readonly<{
17
21
  onDone?: ((hexStr: string) => any) | undefined;
18
22
  onChange?: ((hexStr: string) => any) | undefined;
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "description": "vue3颜色选择器组件",
12
12
  "keywords": ["vue", "color", "component"],
13
- "version": "0.0.2",
13
+ "version": "0.0.4",
14
14
  "type": "module",
15
15
  "files": [
16
16
  "dist"