@orchidui/dashboard 1.20.1-8 → 1.21.1-0
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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createHighlighter as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
],
|
|
1
|
+
import { ref as o, onMounted as i, createElementBlock as r, openBlock as s } from "vue";
|
|
2
|
+
import { createHighlighter as c } from "shiki";
|
|
3
|
+
import u from "./Dashboard/CodeBlock/customTheme.js";
|
|
4
|
+
const m = Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"comment":"the JSON object key","include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=\\\\})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"comment":"the JSON object value","include":"#value"},{"match":"[^\\\\s,]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^\\\\s\\\\}]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')), p = [
|
|
5
|
+
m
|
|
6
|
+
], d = ["innerHTML"], y = {
|
|
7
7
|
__name: "OcCodeBlock",
|
|
8
8
|
props: {
|
|
9
9
|
jsonObject: {
|
|
@@ -16,22 +16,22 @@ const p = Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","pattern
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(a) {
|
|
19
|
-
const n = a, e =
|
|
20
|
-
return
|
|
21
|
-
const t = await
|
|
22
|
-
themes: [
|
|
23
|
-
langs: [
|
|
19
|
+
const n = a, e = o();
|
|
20
|
+
return i(async () => {
|
|
21
|
+
const t = await c({
|
|
22
|
+
themes: [u],
|
|
23
|
+
langs: [p]
|
|
24
24
|
});
|
|
25
25
|
e.value = t.codeToHtml(n.jsonObject, {
|
|
26
26
|
theme: "Custom Theme",
|
|
27
27
|
lang: n.lang
|
|
28
28
|
});
|
|
29
|
-
}), (t,
|
|
29
|
+
}), (t, l) => (s(), r("div", {
|
|
30
30
|
class: "p-5 rounded bg-oc-gray-900 code-block",
|
|
31
31
|
innerHTML: e.value
|
|
32
|
-
}, null, 8,
|
|
32
|
+
}, null, 8, d));
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
y as default
|
|
37
37
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var pt = Object.defineProperty;
|
|
2
2
|
var gt = (n, V, r) => V in n ? pt(n, V, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[V] = r;
|
|
3
3
|
var We = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
|
|
4
|
-
import { ref as v, computed as $e, createBlock as P, openBlock as m, unref as w, normalizeClass as Q, withCtx as W, createVNode as L, createElementBlock as E, createSlots as vt, renderSlot as je, normalizeStyle as te, createCommentVNode as H, onMounted as Je, watch as fe, createElementVNode as h, Teleport as mt, Fragment as ge, createTextVNode as ve, toDisplayString as Ne, renderList as Ke, withKeys as ot, inject as Re, reactive as _e, provide as Be, nextTick as ft, withDirectives as ht, vShow as yt,
|
|
5
|
-
import { Q as Y, a as
|
|
6
|
-
import { BaseInput as st, Dropdown as rt, Input as we, Icon as A, Modal as
|
|
7
|
-
import { rgbToHsl as et, rgb2Hex as tt, rgbaToHex8 as
|
|
8
|
-
import { PieChart as
|
|
9
|
-
import { LineChart as
|
|
10
|
-
import { BarChart as
|
|
11
|
-
import { BarRaceChart as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
4
|
+
import { ref as v, computed as $e, createBlock as P, openBlock as m, unref as w, normalizeClass as Q, withCtx as W, createVNode as L, createElementBlock as E, createSlots as vt, renderSlot as je, normalizeStyle as te, createCommentVNode as H, onMounted as Je, watch as fe, createElementVNode as h, Teleport as mt, Fragment as ge, createTextVNode as ve, toDisplayString as Ne, renderList as Ke, withKeys as ot, inject as Re, reactive as _e, provide as Be, nextTick as ft, withDirectives as ht, vShow as yt, defineAsyncComponent as it } from "vue";
|
|
5
|
+
import { Q as Y, a as bt } from "./QuillEditor-DwCbpq2d.js";
|
|
6
|
+
import { BaseInput as st, Dropdown as rt, Input as we, Icon as A, Modal as xt, Select as Ze, Slider as Ae } from "@orchidui/core";
|
|
7
|
+
import { rgbToHsl as et, rgb2Hex as tt, rgbaToHex8 as kt, hsl2Hex as lt, hexToRgb as ze, rgbToHue as Qe, hslToRgb as at, hex8ToRgba as $t, parseRgba as wt, parseRgb as St } from "./Dashboard/ColorPicker/components/converters.js";
|
|
8
|
+
import { PieChart as Ct } from "./Dashboard/Charts/PieChart/OcPieChart.js";
|
|
9
|
+
import { LineChart as Ml } from "./Dashboard/Charts/LineChart/OcLineChart.js";
|
|
10
|
+
import { BarChart as Al } from "./Dashboard/Charts/BarChart/OcBarChart.js";
|
|
11
|
+
import { BarRaceChart as Pl } from "./Dashboard/Charts/BarRaceChart/OcBarRaceChart.js";
|
|
12
|
+
import { _ as ql } from "./OcCard-D3be6IMj.js";
|
|
13
|
+
const It = { key: 1 }, Vt = {
|
|
14
14
|
__name: "OcColorPicker",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {
|
|
@@ -87,7 +87,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
89
|
menu: W(() => [
|
|
90
|
-
B.value ? H("", !0) : (m(), P(w(
|
|
90
|
+
B.value ? H("", !0) : (m(), P(w(xl), {
|
|
91
91
|
key: 0,
|
|
92
92
|
variant: n.variant,
|
|
93
93
|
"show-alpha": !n.hideOpacity,
|
|
@@ -100,7 +100,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
100
100
|
}, null, 8, ["variant", "show-alpha", "type", "model-value", "last-used-colors", "preset-colors"]))
|
|
101
101
|
]),
|
|
102
102
|
default: W(() => [
|
|
103
|
-
n.hideInputColor ? (m(), E("div",
|
|
103
|
+
n.hideInputColor ? (m(), E("div", It, [
|
|
104
104
|
je(U.$slots, "picker-icon", {}, () => [
|
|
105
105
|
L(w(A), {
|
|
106
106
|
class: "cursor-pointer",
|
|
@@ -131,10 +131,10 @@ const Vt = { key: 1 }, Tt = {
|
|
|
131
131
|
_: 3
|
|
132
132
|
}, 8, ["class"]));
|
|
133
133
|
}
|
|
134
|
-
},
|
|
134
|
+
}, Tt = ["id"], Lt = { class: "flex items-center gap-x-3 px-5" }, Bt = { class: "flex items-center gap-x-5 cursor-pointer" }, Rt = { class: "flex flex-col py-2 overflow-hidden" }, Et = ["onClick"], Ut = { class: "flex gap-x-3 items-center px-5" }, Dt = { class: "flex items-center gap-x-3 px-5" }, Ht = { class: "flex gap-x-3 items-center px-5" }, Ot = { class: "flex gap-x-3 items-center px-5" }, Mt = { class: "flex items-center" }, Qt = { class: "grid cursor-pointer px-5" }, At = {
|
|
135
135
|
key: 5,
|
|
136
136
|
class: "flex gap-x-3 items-center px-5"
|
|
137
|
-
},
|
|
137
|
+
}, Nt = { class: "flex" }, Pt = { class: "mt-1 mx-2 cursor-pointer" }, Rl = {
|
|
138
138
|
__name: "OcTextEditor",
|
|
139
139
|
props: {
|
|
140
140
|
/**
|
|
@@ -340,7 +340,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
340
340
|
}, {
|
|
341
341
|
default: W(() => [
|
|
342
342
|
(m(), P(mt, { to: "body" }, [
|
|
343
|
-
L(w(
|
|
343
|
+
L(w(xt), {
|
|
344
344
|
size: "small",
|
|
345
345
|
title: "Insert table",
|
|
346
346
|
modelValue: K.value,
|
|
@@ -373,7 +373,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
373
373
|
class: Q(["grid", { "has-error": n.errorMessage }]),
|
|
374
374
|
onClick: Me
|
|
375
375
|
}, [
|
|
376
|
-
z.value ? (m(), P(w(
|
|
376
|
+
z.value ? (m(), P(w(bt), {
|
|
377
377
|
key: 0,
|
|
378
378
|
id: `#${z.value}`,
|
|
379
379
|
ref_key: "quill",
|
|
@@ -396,7 +396,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
396
396
|
class: "flex min-h-[36px] flex-wrap !py-2 !px-3 gap-y-2 rounded-t"
|
|
397
397
|
}, [
|
|
398
398
|
f.value.includes("changes") ? (m(), E(ge, { key: 0 }, [
|
|
399
|
-
h("div",
|
|
399
|
+
h("div", Lt, [
|
|
400
400
|
L(w(A), {
|
|
401
401
|
class: Q(U.value ? "text-oc-text cursor-pointer" : "text-oc-text-300"),
|
|
402
402
|
width: "20",
|
|
@@ -421,18 +421,18 @@ const Vt = { key: 1 }, Tt = {
|
|
|
421
421
|
class: "px-5"
|
|
422
422
|
}, {
|
|
423
423
|
menu: W(() => [
|
|
424
|
-
h("div",
|
|
424
|
+
h("div", Rt, [
|
|
425
425
|
(m(!0), E(ge, null, Ke(n.fontSizes, (x) => (m(), E("div", {
|
|
426
426
|
key: x.value,
|
|
427
427
|
class: Q(["min-w-[120px] cursor-pointer py-2 px-3 hover:bg-oc-gray-50", X.value === x.value ? "font-medium" : ""]),
|
|
428
428
|
onClick: (G) => De(x.value)
|
|
429
|
-
}, Ne(x.label), 11,
|
|
429
|
+
}, Ne(x.label), 11, Et))), 128))
|
|
430
430
|
])
|
|
431
431
|
]),
|
|
432
432
|
default: W(() => {
|
|
433
433
|
var x;
|
|
434
434
|
return [
|
|
435
|
-
h("div",
|
|
435
|
+
h("div", Bt, [
|
|
436
436
|
ve(Ne((x = n.fontSizes.find((G) => G.value === X.value)) == null ? void 0 : x.label) + " ", 1),
|
|
437
437
|
L(w(A), {
|
|
438
438
|
width: "20",
|
|
@@ -448,7 +448,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
448
448
|
o[17] || (o[17] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
449
449
|
], 64)) : H("", !0),
|
|
450
450
|
f.value.includes("font-style") ? (m(), E(ge, { key: 2 }, [
|
|
451
|
-
h("div",
|
|
451
|
+
h("div", Ut, [
|
|
452
452
|
L(w(A), {
|
|
453
453
|
class: Q(["cursor-pointer", D.value ? "text-oc-text" : "text-oc-text-300"]),
|
|
454
454
|
width: "20",
|
|
@@ -473,7 +473,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
473
473
|
]),
|
|
474
474
|
o[18] || (o[18] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
475
475
|
], 64)) : H("", !0),
|
|
476
|
-
h("div",
|
|
476
|
+
h("div", Dt, [
|
|
477
477
|
f.value.includes("link") ? (m(), P(w(A), {
|
|
478
478
|
key: 0,
|
|
479
479
|
class: "cursor-pointer",
|
|
@@ -516,7 +516,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
516
516
|
]),
|
|
517
517
|
f.value.includes("list") ? (m(), E(ge, { key: 3 }, [
|
|
518
518
|
o[19] || (o[19] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
519
|
-
h("div",
|
|
519
|
+
h("div", Ht, [
|
|
520
520
|
L(w(A), {
|
|
521
521
|
class: Q(["cursor-pointer", ae.value === "bullet" ? "text-oc-text" : "text-oc-text-300"]),
|
|
522
522
|
width: "20",
|
|
@@ -535,7 +535,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
535
535
|
], 64)) : H("", !0),
|
|
536
536
|
f.value.includes("alignment") ? (m(), E(ge, { key: 4 }, [
|
|
537
537
|
o[20] || (o[20] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
538
|
-
h("div",
|
|
538
|
+
h("div", Ot, [
|
|
539
539
|
L(w(A), {
|
|
540
540
|
class: Q(["cursor-pointer", ee.value ? "text-oc-text-300" : "text-oc-text"]),
|
|
541
541
|
width: "20",
|
|
@@ -567,8 +567,8 @@ const Vt = { key: 1 }, Tt = {
|
|
|
567
567
|
])
|
|
568
568
|
], 64)) : H("", !0),
|
|
569
569
|
o[22] || (o[22] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
570
|
-
h("div",
|
|
571
|
-
L(w(
|
|
570
|
+
h("div", Mt, [
|
|
571
|
+
L(w(Vt), {
|
|
572
572
|
modelValue: de.value,
|
|
573
573
|
"onUpdate:modelValue": [
|
|
574
574
|
o[11] || (o[11] = (x) => de.value = x),
|
|
@@ -577,7 +577,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
577
577
|
"hide-input-color": ""
|
|
578
578
|
}, {
|
|
579
579
|
"picker-icon": W(() => [
|
|
580
|
-
h("div",
|
|
580
|
+
h("div", Qt, [
|
|
581
581
|
h("div", {
|
|
582
582
|
style: te(`color:${de.value}`)
|
|
583
583
|
}, "A", 4),
|
|
@@ -591,7 +591,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
591
591
|
}, 8, ["modelValue"])
|
|
592
592
|
]),
|
|
593
593
|
o[23] || (o[23] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
594
|
-
ce.value ? (m(), E("div",
|
|
594
|
+
ce.value ? (m(), E("div", At, [
|
|
595
595
|
L(w(Ae), {
|
|
596
596
|
label: "Image width",
|
|
597
597
|
class: "w-[120px]",
|
|
@@ -600,7 +600,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
600
600
|
"max-limit": 100,
|
|
601
601
|
"onUpdate:modelValue": Te
|
|
602
602
|
}, null, 8, ["model-value"]),
|
|
603
|
-
h("div",
|
|
603
|
+
h("div", Nt, [
|
|
604
604
|
L(w(A), {
|
|
605
605
|
class: "cursor-pointer",
|
|
606
606
|
width: "20",
|
|
@@ -624,7 +624,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
624
624
|
})
|
|
625
625
|
])
|
|
626
626
|
])) : H("", !0),
|
|
627
|
-
h("div",
|
|
627
|
+
h("div", Pt, [
|
|
628
628
|
(m(), E("svg", {
|
|
629
629
|
width: "20",
|
|
630
630
|
height: "20",
|
|
@@ -641,7 +641,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
641
641
|
}, null, -1)
|
|
642
642
|
])))
|
|
643
643
|
])
|
|
644
|
-
], 8,
|
|
644
|
+
], 8, Tt)
|
|
645
645
|
]),
|
|
646
646
|
_: 1
|
|
647
647
|
}, 8, ["id", "content", "options", "placeholder"])) : H("", !0)
|
|
@@ -650,7 +650,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
650
650
|
_: 1
|
|
651
651
|
}, 8, ["label", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
|
652
652
|
}
|
|
653
|
-
},
|
|
653
|
+
}, Xt = {
|
|
654
654
|
__name: "InputHex",
|
|
655
655
|
props: {
|
|
656
656
|
modelValue: {
|
|
@@ -706,7 +706,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
706
706
|
onKeyup: ot(C, ["enter"])
|
|
707
707
|
}, null, 8, ["model-value"]));
|
|
708
708
|
}
|
|
709
|
-
},
|
|
709
|
+
}, qt = { class: "grid grid-cols-3 gap-3" }, nt = {
|
|
710
710
|
__name: "InputRgbHsl",
|
|
711
711
|
props: {
|
|
712
712
|
inputType: {
|
|
@@ -776,7 +776,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
776
776
|
};
|
|
777
777
|
},
|
|
778
778
|
{ immediate: !0, deep: !0 }
|
|
779
|
-
), (M, T) => (m(), E("div",
|
|
779
|
+
), (M, T) => (m(), E("div", qt, [
|
|
780
780
|
L(w(we), {
|
|
781
781
|
ref_key: "rInputEl",
|
|
782
782
|
ref: f,
|
|
@@ -800,7 +800,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
800
800
|
}, null, 8, ["model-value"])
|
|
801
801
|
]));
|
|
802
802
|
}
|
|
803
|
-
},
|
|
803
|
+
}, Ft = {
|
|
804
804
|
__name: "InputOpacity",
|
|
805
805
|
props: {
|
|
806
806
|
modelValue: {
|
|
@@ -837,7 +837,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
837
837
|
_: 1
|
|
838
838
|
}, 8, ["model-value"]));
|
|
839
839
|
}
|
|
840
|
-
},
|
|
840
|
+
}, Gt = {
|
|
841
841
|
__name: "SelectColorFormat",
|
|
842
842
|
props: {
|
|
843
843
|
modelValue: { default: "RGB", type: String }
|
|
@@ -867,7 +867,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
867
867
|
"onUpdate:modelValue": f
|
|
868
868
|
}, null, 8, ["model-value"]));
|
|
869
869
|
}
|
|
870
|
-
},
|
|
870
|
+
}, Yt = { class: "opacity-bar" }, Wt = { class: "picker-opacity-slider opacity-bar-background" }, zt = ["value"], jt = {
|
|
871
871
|
__name: "SliderOpacity",
|
|
872
872
|
props: {
|
|
873
873
|
modelValue: { default: 0, type: Number }
|
|
@@ -877,8 +877,8 @@ const Vt = { key: 1 }, Tt = {
|
|
|
877
877
|
const r = Re("opacitySlider"), y = V, u = (f) => {
|
|
878
878
|
y("update:modelValue", parseInt(f.target.value)), y("onInput", f);
|
|
879
879
|
};
|
|
880
|
-
return (f, C) => (m(), E("div",
|
|
881
|
-
h("div",
|
|
880
|
+
return (f, C) => (m(), E("div", Yt, [
|
|
881
|
+
h("div", Wt, [
|
|
882
882
|
h("input", {
|
|
883
883
|
ref_key: "opacitySlider",
|
|
884
884
|
ref: r,
|
|
@@ -888,11 +888,11 @@ const Vt = { key: 1 }, Tt = {
|
|
|
888
888
|
min: "0",
|
|
889
889
|
max: "100",
|
|
890
890
|
onInput: u
|
|
891
|
-
}, null, 40,
|
|
891
|
+
}, null, 40, zt)
|
|
892
892
|
])
|
|
893
893
|
]));
|
|
894
894
|
}
|
|
895
|
-
},
|
|
895
|
+
}, Kt = {
|
|
896
896
|
__name: "SliderGradient",
|
|
897
897
|
props: {
|
|
898
898
|
gradientType: String
|
|
@@ -947,7 +947,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
947
947
|
], 34)
|
|
948
948
|
], 512));
|
|
949
949
|
}
|
|
950
|
-
},
|
|
950
|
+
}, Zt = { class: "picker-hue" }, Jt = ["value"], _t = {
|
|
951
951
|
__name: "SliderHue",
|
|
952
952
|
props: {
|
|
953
953
|
modelValue: { default: 0, type: Number }
|
|
@@ -957,7 +957,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
957
957
|
const r = V, y = (u) => {
|
|
958
958
|
r("update:modelValue", parseFloat(u.target.value)), r("onInput", u);
|
|
959
959
|
};
|
|
960
|
-
return (u, f) => (m(), E("div",
|
|
960
|
+
return (u, f) => (m(), E("div", Zt, [
|
|
961
961
|
h("input", {
|
|
962
962
|
value: n.modelValue,
|
|
963
963
|
class: "picker-hue-range-slider",
|
|
@@ -967,13 +967,13 @@ const Vt = { key: 1 }, Tt = {
|
|
|
967
967
|
step: "0.1",
|
|
968
968
|
onInput: y,
|
|
969
969
|
onChange: f[0] || (f[0] = (C) => u.$emit("onChange", C))
|
|
970
|
-
}, null, 40,
|
|
970
|
+
}, null, 40, Jt)
|
|
971
971
|
]));
|
|
972
972
|
}
|
|
973
|
-
},
|
|
973
|
+
}, el = { class: "px-2 mt-2" }, tl = {
|
|
974
974
|
key: 1,
|
|
975
975
|
class: "grid grid-cols-2 gap-4 px-1"
|
|
976
|
-
},
|
|
976
|
+
}, ll = {
|
|
977
977
|
__name: "GradientSettings",
|
|
978
978
|
props: {
|
|
979
979
|
mode: {
|
|
@@ -1005,7 +1005,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1005
1005
|
break;
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
|
-
return (C, p) => (m(), E("div",
|
|
1008
|
+
return (C, p) => (m(), E("div", el, [
|
|
1009
1009
|
n.gradientType == "linear" && r.value ? (m(), P(w(Ae), {
|
|
1010
1010
|
key: 0,
|
|
1011
1011
|
label: "Angle",
|
|
@@ -1023,7 +1023,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1023
1023
|
])),
|
|
1024
1024
|
_: 1
|
|
1025
1025
|
}, 8, ["model-value"])) : H("", !0),
|
|
1026
|
-
n.gradientType == "radial" && y.value ? (m(), E("div",
|
|
1026
|
+
n.gradientType == "radial" && y.value ? (m(), E("div", tl, [
|
|
1027
1027
|
L(w(Ae), {
|
|
1028
1028
|
label: "Position X",
|
|
1029
1029
|
"model-value": n.percentageX,
|
|
@@ -1057,7 +1057,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1057
1057
|
])) : H("", !0)
|
|
1058
1058
|
]));
|
|
1059
1059
|
}
|
|
1060
|
-
},
|
|
1060
|
+
}, al = {
|
|
1061
1061
|
__name: "PickerWrap",
|
|
1062
1062
|
emits: ["onMouseDown"],
|
|
1063
1063
|
setup(n) {
|
|
@@ -1084,14 +1084,14 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1084
1084
|
}, null, 512)
|
|
1085
1085
|
], 544));
|
|
1086
1086
|
}
|
|
1087
|
-
},
|
|
1087
|
+
}, nl = { class: "w-full flex justify-center" }, ol = {
|
|
1088
1088
|
key: 1,
|
|
1089
1089
|
width: "28",
|
|
1090
1090
|
height: "28",
|
|
1091
1091
|
viewBox: "0 0 28 28",
|
|
1092
1092
|
fill: "none",
|
|
1093
1093
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1094
|
-
},
|
|
1094
|
+
}, il = {
|
|
1095
1095
|
__name: "ColorType",
|
|
1096
1096
|
props: {
|
|
1097
1097
|
variant: String,
|
|
@@ -1111,7 +1111,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1111
1111
|
},
|
|
1112
1112
|
emits: ["onChangeMode"],
|
|
1113
1113
|
setup(n) {
|
|
1114
|
-
return (V, r) => (m(), E("div",
|
|
1114
|
+
return (V, r) => (m(), E("div", nl, [
|
|
1115
1115
|
h("button", {
|
|
1116
1116
|
type: "button",
|
|
1117
1117
|
class: Q(n.mode == "solid" ? "active" : ""),
|
|
@@ -1122,7 +1122,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1124
1124
|
style: te(`background:${n.modelValue}`)
|
|
1125
|
-
}, null, 4)) : (m(), E("svg",
|
|
1125
|
+
}, null, 4)) : (m(), E("svg", ol, r[3] || (r[3] = [
|
|
1126
1126
|
h("g", { opacity: "0.5" }, [
|
|
1127
1127
|
h("path", {
|
|
1128
1128
|
d: "M0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14Z",
|
|
@@ -1165,19 +1165,19 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1165
1165
|
], 6)
|
|
1166
1166
|
]));
|
|
1167
1167
|
}
|
|
1168
|
-
},
|
|
1168
|
+
}, sl = ["cp-theme"], rl = {
|
|
1169
1169
|
key: 0,
|
|
1170
1170
|
class: "flex justify-end border-b h-[46px] relative mt-[-5px] mb-5"
|
|
1171
|
-
},
|
|
1171
|
+
}, ul = {
|
|
1172
1172
|
key: 1,
|
|
1173
1173
|
class: "grid items-center mb-5"
|
|
1174
|
-
},
|
|
1174
|
+
}, dl = { key: 2 }, cl = { key: 0 }, pl = { class: "ck-cp-local-color-conatiner" }, gl = ["onClick"], vl = { class: "flex items-center gap-2" }, ml = { id: "ck-cp-target-background" }, fl = { class: "flex gap-3" }, hl = {
|
|
1175
1175
|
key: 0,
|
|
1176
1176
|
class: "w-full flex gap-3"
|
|
1177
|
-
},
|
|
1177
|
+
}, yl = {
|
|
1178
1178
|
key: 4,
|
|
1179
1179
|
class: "ck-cp-local-color-conatiner"
|
|
1180
|
-
},
|
|
1180
|
+
}, bl = ["onClick"], xl = {
|
|
1181
1181
|
__name: "OcColorPickerPopup",
|
|
1182
1182
|
props: {
|
|
1183
1183
|
modelValue: {
|
|
@@ -1425,7 +1425,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1425
1425
|
let d = "";
|
|
1426
1426
|
switch (r.type) {
|
|
1427
1427
|
case "HEX8":
|
|
1428
|
-
d =
|
|
1428
|
+
d = kt(e, l, i, s / 100);
|
|
1429
1429
|
break;
|
|
1430
1430
|
case "RGBA":
|
|
1431
1431
|
d = `rgba(${e},${l},${i},${s / 100})`;
|
|
@@ -1582,16 +1582,16 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1582
1582
|
};
|
|
1583
1583
|
if (t.includes("#"))
|
|
1584
1584
|
if (t.length >= 8)
|
|
1585
|
-
e =
|
|
1585
|
+
e = $t(t);
|
|
1586
1586
|
else {
|
|
1587
1587
|
let l = ze(t);
|
|
1588
1588
|
l ? (e.a = 1, e.r = l.r, e.g = l.g, e.b = l.b) : e = null;
|
|
1589
1589
|
}
|
|
1590
1590
|
else if (t.includes("rgb"))
|
|
1591
1591
|
if (t.includes("rgba"))
|
|
1592
|
-
e =
|
|
1592
|
+
e = wt(t);
|
|
1593
1593
|
else {
|
|
1594
|
-
let l =
|
|
1594
|
+
let l = St(t);
|
|
1595
1595
|
l ? (e.a = 1, e.r = l.r, e.g = l.g, e.b = l.b) : e = null;
|
|
1596
1596
|
}
|
|
1597
1597
|
e && (a.value[0].r = e.r, a.value[0].b = e.b, a.value[0].g = e.g, a.value[0].a = parseInt((e.a * 100).toFixed(0)), oe.value = a.value[0].a, a.value[0].hue = 0);
|
|
@@ -1644,8 +1644,8 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1644
1644
|
class: Q(["ck-cp-container", n.disabled ? "ck-cp-disabled " : ""]),
|
|
1645
1645
|
"cp-theme": n.theme
|
|
1646
1646
|
}, [
|
|
1647
|
-
n.variant == "gradient" ? (m(), E("div",
|
|
1648
|
-
L(
|
|
1647
|
+
n.variant == "gradient" ? (m(), E("div", rl, [
|
|
1648
|
+
L(il, {
|
|
1649
1649
|
class: "mr-auto",
|
|
1650
1650
|
variant: n.variant,
|
|
1651
1651
|
mode: y.value,
|
|
@@ -1655,14 +1655,14 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1655
1655
|
onOnChangeMode: ut
|
|
1656
1656
|
}, null, 8, ["variant", "mode", "model-value", "iconClasses", "gradientType"])
|
|
1657
1657
|
])) : H("", !0),
|
|
1658
|
-
y.value == "gradient" && n.variant == "gradient" ? (m(), E("div",
|
|
1659
|
-
L(
|
|
1658
|
+
y.value == "gradient" && n.variant == "gradient" ? (m(), E("div", ul, [
|
|
1659
|
+
L(Kt, {
|
|
1660
1660
|
gradientType: T.value,
|
|
1661
1661
|
onOnAddColor: qe,
|
|
1662
1662
|
onOnMouseDown: Ve,
|
|
1663
1663
|
onOnDeleteColor: Ge
|
|
1664
1664
|
}, null, 8, ["gradientType"]),
|
|
1665
|
-
L(
|
|
1665
|
+
L(ll, {
|
|
1666
1666
|
percentageY: B.percentageY,
|
|
1667
1667
|
"onUpdate:percentageY": e[0] || (e[0] = (l) => B.percentageY = l),
|
|
1668
1668
|
angle: B.angle,
|
|
@@ -1674,22 +1674,22 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1674
1674
|
gradientType: T.value,
|
|
1675
1675
|
onOnInput: F
|
|
1676
1676
|
}, null, 8, ["percentageY", "angle", "percentageX", "inputType", "mode", "gradientType"])
|
|
1677
|
-
])) : (m(), E("div",
|
|
1678
|
-
n.presetColors ? (m(), E("div",
|
|
1677
|
+
])) : (m(), E("div", dl, [
|
|
1678
|
+
n.presetColors ? (m(), E("div", cl, [
|
|
1679
1679
|
e[10] || (e[10] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium" }, "Choose color", -1)),
|
|
1680
|
-
h("div",
|
|
1680
|
+
h("div", pl, [
|
|
1681
1681
|
(m(!0), E(ge, null, Ke(n.presetColors, (l) => (m(), E("div", {
|
|
1682
1682
|
key: `color-${l}`,
|
|
1683
1683
|
class: "ck-cp-color-item !w-[32px] !h-[32px]",
|
|
1684
1684
|
style: te(`background:${l}`),
|
|
1685
1685
|
onClick: (i) => se(l)
|
|
1686
|
-
}, null, 12,
|
|
1686
|
+
}, null, 12, gl))), 128))
|
|
1687
1687
|
])
|
|
1688
1688
|
])) : H("", !0)
|
|
1689
1689
|
])),
|
|
1690
|
-
L(
|
|
1691
|
-
h("div",
|
|
1692
|
-
L(
|
|
1690
|
+
L(al, { onOnMouseDown: Pe }),
|
|
1691
|
+
h("div", vl, [
|
|
1692
|
+
L(_t, {
|
|
1693
1693
|
class: Q(M.value ? "max-w-[90%]" : ""),
|
|
1694
1694
|
modelValue: ne.value,
|
|
1695
1695
|
"onUpdate:modelValue": e[3] || (e[3] = (l) => ne.value = l),
|
|
@@ -1715,22 +1715,22 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1715
1715
|
], -1)
|
|
1716
1716
|
]))) : H("", !0)
|
|
1717
1717
|
]),
|
|
1718
|
-
n.showAlpha ? (m(), P(
|
|
1718
|
+
n.showAlpha ? (m(), P(jt, {
|
|
1719
1719
|
key: 3,
|
|
1720
1720
|
modelValue: oe.value,
|
|
1721
1721
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => oe.value = l),
|
|
1722
1722
|
onOnInput: e[6] || (e[6] = (l) => He(l.target.value))
|
|
1723
1723
|
}, null, 8, ["modelValue"])) : H("", !0),
|
|
1724
|
-
ht(h("div",
|
|
1724
|
+
ht(h("div", ml, null, 512), [
|
|
1725
1725
|
[yt, !1]
|
|
1726
1726
|
]),
|
|
1727
|
-
h("div",
|
|
1728
|
-
L(
|
|
1727
|
+
h("div", fl, [
|
|
1728
|
+
L(Gt, {
|
|
1729
1729
|
"model-value": U.value,
|
|
1730
1730
|
"onUpdate:modelValue": pe
|
|
1731
1731
|
}, null, 8, ["model-value"]),
|
|
1732
|
-
N.value && n.showInputSet ? (m(), E("div",
|
|
1733
|
-
U.value == "HEX" ? (m(), P(
|
|
1732
|
+
N.value && n.showInputSet ? (m(), E("div", hl, [
|
|
1733
|
+
U.value == "HEX" ? (m(), P(Xt, {
|
|
1734
1734
|
key: 0,
|
|
1735
1735
|
modelValue: z.value,
|
|
1736
1736
|
"onUpdate:modelValue": [
|
|
@@ -1749,7 +1749,7 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1749
1749
|
"hsl-value": X,
|
|
1750
1750
|
onUpdateHslValue: o
|
|
1751
1751
|
}, null, 8, ["hsl-value"])) : H("", !0),
|
|
1752
|
-
n.showAlpha ? (m(), P(
|
|
1752
|
+
n.showAlpha ? (m(), P(Ft, {
|
|
1753
1753
|
key: 3,
|
|
1754
1754
|
modelValue: oe.value,
|
|
1755
1755
|
"onUpdate:modelValue": [
|
|
@@ -1760,23 +1760,23 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1760
1760
|
])) : H("", !0)
|
|
1761
1761
|
]),
|
|
1762
1762
|
e[12] || (e[12] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium font-inter" }, "Last used", -1)),
|
|
1763
|
-
O.value.length > 0 && n.showColorList ? (m(), E("div",
|
|
1763
|
+
O.value.length > 0 && n.showColorList ? (m(), E("div", yl, [
|
|
1764
1764
|
(m(!0), E(ge, null, Ke(Z.value, (l) => (m(), E("div", {
|
|
1765
1765
|
key: `color-${l}`,
|
|
1766
1766
|
class: "ck-cp-color-item !w-[32px] !h-[32px]",
|
|
1767
1767
|
style: te(`background:${l}`),
|
|
1768
1768
|
onClick: (i) => se(l)
|
|
1769
|
-
}, null, 12,
|
|
1769
|
+
}, null, 12, bl))), 128))
|
|
1770
1770
|
])) : H("", !0)
|
|
1771
|
-
], 10,
|
|
1771
|
+
], 10, sl));
|
|
1772
1772
|
}
|
|
1773
|
-
},
|
|
1773
|
+
}, kl = { class: "flex flex-col pt-10 px-7 gap-y-7 items-center" }, $l = { class: "flex flex-col gap-y-4 text-center items-center" }, wl = {
|
|
1774
1774
|
key: 0,
|
|
1775
1775
|
class: "text-xl font-medium"
|
|
1776
|
-
},
|
|
1776
|
+
}, Sl = {
|
|
1777
1777
|
key: 0,
|
|
1778
1778
|
class: "text-sm text-oc-text-400"
|
|
1779
|
-
},
|
|
1779
|
+
}, El = {
|
|
1780
1780
|
__name: "OcOnboardingProgressbar",
|
|
1781
1781
|
props: {
|
|
1782
1782
|
title: {
|
|
@@ -1825,36 +1825,36 @@ const Vt = { key: 1 }, Tt = {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
]
|
|
1827
1827
|
}));
|
|
1828
|
-
return (y, u) => (m(), E("div",
|
|
1829
|
-
L(w(
|
|
1828
|
+
return (y, u) => (m(), E("div", kl, [
|
|
1829
|
+
L(w(Ct), {
|
|
1830
1830
|
class: "w-[140px] bg-white rounded-full h-[140px]",
|
|
1831
1831
|
"additional-options": r.value,
|
|
1832
1832
|
"tooltip-formatter": () => null,
|
|
1833
1833
|
"tooltip-value-formatter": () => null
|
|
1834
1834
|
}, null, 8, ["additional-options"]),
|
|
1835
|
-
h("div",
|
|
1836
|
-
n.title ? (m(), E("span",
|
|
1835
|
+
h("div", $l, [
|
|
1836
|
+
n.title ? (m(), E("span", wl, Ne(n.title), 1)) : H("", !0),
|
|
1837
1837
|
je(y.$slots, "description", {}, () => [
|
|
1838
|
-
n.description ? (m(), E("span",
|
|
1838
|
+
n.description ? (m(), E("span", Sl, Ne(n.description), 1)) : H("", !0)
|
|
1839
1839
|
])
|
|
1840
1840
|
])
|
|
1841
1841
|
]));
|
|
1842
1842
|
}
|
|
1843
|
-
}
|
|
1844
|
-
() => import("./OcCodeBlock-
|
|
1845
|
-
),
|
|
1843
|
+
}, Ul = it(
|
|
1844
|
+
() => import("./OcCodeBlock-B_LpoG2V.js")
|
|
1845
|
+
), Dl = it(
|
|
1846
1846
|
() => import("./OcLottieAnimation-BjY3rCjS.js")
|
|
1847
1847
|
);
|
|
1848
1848
|
export {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1849
|
+
Al as BarChart,
|
|
1850
|
+
Pl as BarRaceChart,
|
|
1851
|
+
ql as Card,
|
|
1852
|
+
Ul as CodeBlock,
|
|
1853
|
+
Vt as ColorPicker,
|
|
1854
|
+
xl as ColorPickerPopup,
|
|
1855
|
+
Ml as LineChart,
|
|
1856
|
+
Dl as LottieAnimation,
|
|
1857
|
+
El as OnboardingProgressbar,
|
|
1858
|
+
Ct as PieChart,
|
|
1859
|
+
Rl as TextEditor
|
|
1860
1860
|
};
|