Socket
Socket
Sign inDemoInstall

vcolorpicker

Package Overview
Dependencies
54
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.4 to 2.0.5

CHANGELOG.md

60

lib/vcolorpicker.js

@@ -1,2 +0,2 @@

import { getCurrentScope as ne, onScopeDispose as le, unref as O, watch as re, defineComponent as se, ref as B, computed as F, openBlock as k, createElementBlock as w, createCommentVNode as L, createElementVNode as i, normalizeClass as W, normalizeStyle as M, Fragment as V, renderList as N, withDirectives as ue, isRef as ae, vModelText as ie, pushScopeId as ce, popScopeId as de } from "vue";
import { getCurrentScope as ne, onScopeDispose as le, unref as w, watch as re, defineComponent as se, ref as B, computed as F, openBlock as k, createElementBlock as h, createCommentVNode as L, createElementVNode as i, normalizeClass as W, normalizeStyle as M, Fragment as V, renderList as N, withDirectives as ue, isRef as ae, vModelText as ie, pushScopeId as ce, popScopeId as de } from "vue";
var j;

@@ -7,3 +7,3 @@ const $ = typeof window < "u", fe = (e) => typeof e == "string", pe = () => {

function ve(e) {
return typeof e == "function" ? e() : O(e);
return typeof e == "function" ? e() : w(e);
}

@@ -77,5 +77,5 @@ function me(e) {

}
const D = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, x = "__vueuse_ssr_handlers__";
D[x] = D[x] || {};
D[x];
const D = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, R = "__vueuse_ssr_handlers__";
D[R] = D[R] || {};
D[R];
var q;

@@ -93,3 +93,3 @@ (function(e) {

};
const we = {
const he = {
easeInSine: [0.12, 0, 0.39, 0],

@@ -122,4 +122,4 @@ easeOutSine: [0.61, 1, 0.88, 1],

linear: me
}, we);
const J = (e) => (ce("data-v-b46fc003"), e = e(), de(), e), Oe = { class: "hd" }, he = { class: "bd" }, Ie = /* @__PURE__ */ J(() => /* @__PURE__ */ i("h3", null, "\u4E3B\u9898\u989C\u8272", -1)), Ee = { class: "tColor" }, Pe = ["onMouseover", "onClick"], Me = { class: "bColor" }, Ae = ["onMouseover", "onClick"], $e = /* @__PURE__ */ J(() => /* @__PURE__ */ i("h3", null, "\u6807\u51C6\u989C\u8272", -1)), Te = { class: "tColor" }, Be = ["onMouseover", "onClick"], Ve = {
}, he);
const J = (e) => (ce("data-v-b46fc003"), e = e(), de(), e), we = { class: "hd" }, Oe = { class: "bd" }, Ie = /* @__PURE__ */ J(() => /* @__PURE__ */ i("h3", null, "\u4E3B\u9898\u989C\u8272", -1)), Ee = { class: "tColor" }, Pe = ["onMouseover", "onClick"], Me = { class: "bColor" }, Ae = ["onMouseover", "onClick"], $e = /* @__PURE__ */ J(() => /* @__PURE__ */ i("h3", null, "\u6807\u51C6\u989C\u8272", -1)), Te = { class: "tColor" }, Be = ["onMouseover", "onClick"], Ve = {
name: "colorPicker"

@@ -159,5 +159,5 @@ }, Ne = /* @__PURE__ */ se({

return n;
}), H = B(null), X = () => {
}), x = B(null), X = () => {
var n;
(n = H.value) == null || n.click();
(n = x.value) == null || n.click();
}, E = (n) => {

@@ -170,3 +170,3 @@ t("update:modelValue", n), t("change", n), s.value = !1;

return "#" + new Array(Math.abs(c.length - 7)).join("0") + c;
}, R = (n) => {
}, H = (n) => {
n = Z(n);

@@ -178,3 +178,3 @@ let r = [];

}, oe = (n, r, l) => {
let c = R(n), f = R(r), S = (f[0] - c[0]) / l, T = (f[1] - c[1]) / l, te = (f[2] - c[2]) / l, U = [];
let c = H(n), f = H(r), S = (f[0] - c[0]) / l, T = (f[1] - c[1]) / l, te = (f[2] - c[2]) / l, U = [];
for (let P = 0; P < l; P++)

@@ -184,3 +184,3 @@ U.push(ee(S * P + c[0], T * P + c[1], te * P + c[2]));

};
return (n, r) => (k(), w("div", {
return (n, r) => (k(), h("div", {
class: "m-colorPicker",

@@ -196,3 +196,3 @@ ref_key: "colorPicker",

class: W(["colorBtn", { disabled: e.disabled }]),
style: M(`background-color: ${O(a)}`),
style: M(`background-color: ${w(a)}`),
onClick: p

@@ -204,6 +204,6 @@ }, null, 6),

}, [
i("div", Oe, [
i("div", we, [
i("div", {
class: "colorView",
style: M({ "background-color": O(u).value })
style: M({ "background-color": w(u).value })
}, null, 4),

@@ -217,6 +217,6 @@ i("div", {

]),
i("div", he, [
i("div", Oe, [
Ie,
i("ul", Ee, [
(k(), w(V, null, N(y, (l, c) => i("li", {
(k(), h(V, null, N(y, (l, c) => i("li", {
key: c,

@@ -230,5 +230,5 @@ style: M({ backgroundColor: l }),

i("ul", Me, [
(k(!0), w(V, null, N(O(b), (l, c) => (k(), w("li", { key: c }, [
(k(!0), h(V, null, N(w(b), (l, c) => (k(), h("li", { key: c }, [
i("ul", null, [
(k(!0), w(V, null, N(l, (f, S) => (k(), w("li", {
(k(!0), h(V, null, N(l, (f, S) => (k(), h("li", {
key: S,

@@ -245,3 +245,3 @@ style: M({ backgroundColor: f }),

i("ul", Te, [
(k(), w(V, null, N(g, (l, c) => i("li", {
(k(), h(V, null, N(g, (l, c) => i("li", {
key: c,

@@ -259,7 +259,7 @@ style: M({ backgroundColor: l }),

ref_key: "html5ColorEl",
ref: H,
ref: x,
"onUpdate:modelValue": r[5] || (r[5] = (l) => ae(m) ? m.value = l : null),
onChange: r[6] || (r[6] = (l) => E(O(m)))
onChange: r[6] || (r[6] = (l) => E(w(m)))
}, null, 544), [
[ie, O(m)]
[ie, w(m)]
])

@@ -276,9 +276,9 @@ ])

return o;
}, h = /* @__PURE__ */ Qe(Ne, [["__scopeId", "data-v-b46fc003"], ["__file", "/workspaces/vue-color-picker/packages/color-picker/src/index.vue"]]);
h.install = function(e, t) {
e.component(h.name, h);
}, O = /* @__PURE__ */ Qe(Ne, [["__scopeId", "data-v-b46fc003"], ["__file", "/Users/zhuleyi/WORK/github/vue-color-picker/packages/color-picker/src/index.vue"]]);
O.install = function(e, t) {
e.component(O.name, O);
};
console.log("name", h.name);
console.log("name", O.name);
const Se = [
h
O
], Fe = function(e) {

@@ -288,3 +288,3 @@ Se.map((t) => e.component(t.name, t));

install: Fe,
colorPicker: h
colorPicker: O
};

@@ -291,0 +291,0 @@ export {

{
"name": "vcolorpicker",
"version": "2.0.4",
"version": "2.0.5",
"type": "module",
"description": "基于 Vue3 的颜色选择器",
"main": "./lib/vcolorpicker.mjs",
"main": "./lib/vcolorpicker.js",
"module": "./lib/vcolorpicker.js",

@@ -36,4 +36,5 @@ "exports": {

"@vueuse/core": "^9.6.0",
"ant-design-vue": "^3.2.15",
"highlight.js": "^11.7.0",
"vcolorpicker": "^2.0.3",
"vcolorpicker": "^2.0.4",
"vue": "^3.2.45"

@@ -52,3 +53,2 @@ },

"vite": "^3.2.4",
"vite-plugin-dts": "^1.7.1",
"vue-tsc": "^1.0.9"

@@ -55,0 +55,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc