@orchidui/dashboard 1.8.1-92 → 1.8.1-95
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/dist/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/Charts/BarChart/OcBarChart.js +1 -1
- package/dist/Dashboard/Charts/BarRaceChart/OcBarRaceChart.js +1 -1
- package/dist/Dashboard/Charts/LineChart/OcLineChart.js +1 -1
- package/dist/Dashboard/Charts/PieChart/OcPieChart.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/{OcBarChart-CgKo9rAM.js → OcBarChart-DFnF2-u0.js} +2 -2
- package/dist/{OcBarRaceChart-D_XrqdiO.js → OcBarRaceChart-B6S4Rrlq.js} +3 -3
- package/dist/{OcCard-BpqC7suH.js → OcCard-D3be6IMj.js} +1 -1
- package/dist/OcCodeBlock-CBdVqav7.js +37 -0
- package/dist/{OcLineChart-dAL6sRiP.js → OcLineChart-CTDLgo1v.js} +2 -2
- package/dist/OcLottieAnimation-0mdksHMn.js +7747 -0
- package/dist/{OcPieChart-Kn-CkXip.js → OcPieChart-NSv6CW-L.js} +4 -4
- package/dist/QuillEditor-DRwC0sgJ.js +9552 -0
- package/dist/index.js +14 -14
- package/package.json +3 -3
- package/dist/OcCodeBlock-chTpuRDc.js +0 -63
- package/dist/OcLottieAnimation-EBkAB8-y.js +0 -7741
- package/dist/QuillEditor-BHWfmp5D.js +0 -9544
- /package/dist/{style.css → dashboard.css} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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 ze = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
|
|
4
|
-
import { ref as v, computed as he,
|
|
5
|
-
import { Q as G, a as yt } from "./QuillEditor-
|
|
4
|
+
import { ref as v, computed as he, createBlock as q, openBlock as m, unref as w, normalizeClass as Q, withCtx as Y, createVNode as T, createElementBlock as E, createSlots as vt, renderSlot as Ke, normalizeStyle as ee, createCommentVNode as D, onMounted as _e, watch as ye, createElementVNode as h, Fragment as pe, createTextVNode as ge, toDisplayString as Ne, renderList as Ze, withKeys as it, inject as Be, reactive as et, provide as Te, nextTick as mt, withDirectives as ft, vShow as bt, defineComponent as ht, defineAsyncComponent as st } from "vue";
|
|
5
|
+
import { Q as G, a as yt } from "./QuillEditor-DRwC0sgJ.js";
|
|
6
6
|
import { BaseInput as rt, Dropdown as ut, Input as $e, Icon as A, Modal as xt, Select as Je, Slider as Fe } from "@orchidui/core";
|
|
7
|
-
import {
|
|
7
|
+
import { rgbToHsl as tt, rgb2Hex as lt, rgbaToHex8 as kt, hsl2Hex as at, hexToRgb as je, rgbToHue as Ae, hslToRgb as nt, hex8ToRgba as $t, parseRgba as wt, parseRgb as St } from "./Dashboard/ColorPicker/components/converters.js";
|
|
8
8
|
import { PieChart as Ct } from "./Dashboard/Charts/PieChart/OcPieChart.js";
|
|
9
9
|
import { LineChart as Ol } from "./Dashboard/Charts/LineChart/OcLineChart.js";
|
|
10
10
|
import { BarChart as Al } from "./Dashboard/Charts/BarChart/OcBarChart.js";
|
|
11
11
|
import { BarRaceChart as Nl } from "./Dashboard/Charts/BarRaceChart/OcBarRaceChart.js";
|
|
12
|
-
import { _ as Xl } from "./OcCard-
|
|
12
|
+
import { _ as Xl } from "./OcCard-D3be6IMj.js";
|
|
13
13
|
const It = { key: 1 }, Vt = {
|
|
14
14
|
__name: "OcColorPicker",
|
|
15
15
|
props: {
|
|
@@ -1272,7 +1272,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1272
1272
|
}, Ce = (t) => {
|
|
1273
1273
|
if (!t) {
|
|
1274
1274
|
let e = Pe();
|
|
1275
|
-
const l =
|
|
1275
|
+
const l = nt(ae.value, e.s, e.l);
|
|
1276
1276
|
if (l) {
|
|
1277
1277
|
if (F.value) {
|
|
1278
1278
|
let i = a.value.find((s) => s.select == !0);
|
|
@@ -1282,7 +1282,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
}, ae = v(0), Ie = async (t) => {
|
|
1285
|
-
const { rgb: e } =
|
|
1285
|
+
const { rgb: e } = at(ae.value, 100, 50);
|
|
1286
1286
|
ke(e), setTimeout(() => {
|
|
1287
1287
|
Ce(t), b();
|
|
1288
1288
|
}, 0);
|
|
@@ -1292,7 +1292,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1292
1292
|
}, de = () => {
|
|
1293
1293
|
const t = a.value.find((e) => e.select == !0);
|
|
1294
1294
|
if (t) {
|
|
1295
|
-
const { l: e, s: l } =
|
|
1295
|
+
const { l: e, s: l } = tt(t.r, t.g, t.b);
|
|
1296
1296
|
let i = e, s = l;
|
|
1297
1297
|
Number.isNaN(s) && (s = i);
|
|
1298
1298
|
let d = { x: 0, y: 0 }, k = z.value.offsetWidth - R.value.offsetWidth, I = z.value.offsetHeight - R.value.offsetHeight;
|
|
@@ -1455,7 +1455,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1455
1455
|
d = `rgb(${e},${l},${i})`;
|
|
1456
1456
|
break;
|
|
1457
1457
|
case "HEX":
|
|
1458
|
-
d =
|
|
1458
|
+
d = lt(e, l, i);
|
|
1459
1459
|
break;
|
|
1460
1460
|
}
|
|
1461
1461
|
p(d);
|
|
@@ -1491,7 +1491,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1491
1491
|
$ && (R.value.style.left = `${$.x}px`, R.value.style.top = `${$.y}px`);
|
|
1492
1492
|
} else {
|
|
1493
1493
|
ae.value = I;
|
|
1494
|
-
const { rgb: $ } =
|
|
1494
|
+
const { rgb: $ } = at(I, 100, 50);
|
|
1495
1495
|
ke($);
|
|
1496
1496
|
const g = de();
|
|
1497
1497
|
g && (R.value.style.left = `${g.x}px`, R.value.style.top = `${g.y}px`);
|
|
@@ -1516,7 +1516,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1516
1516
|
X.h = t.h, X.s = t.s, X.l = t.l;
|
|
1517
1517
|
const e = a.value.find((l) => l.select == !0);
|
|
1518
1518
|
if (e && !Number.isNaN(X.h) && !Number.isNaN(X.s) && !Number.isNaN(X.l)) {
|
|
1519
|
-
const { r: l, g: i, b: s } =
|
|
1519
|
+
const { r: l, g: i, b: s } = nt(X.h, X.s / 100, X.l / 100);
|
|
1520
1520
|
e.hue = X.h, e.r = l, e.g = i, e.b = s, ie(e.r, e.g, e.b, e.hue, !0), P(), oe();
|
|
1521
1521
|
}
|
|
1522
1522
|
}, o = () => {
|
|
@@ -1529,7 +1529,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
}, b = () => {
|
|
1531
1531
|
const t = a.value.find((e) => e.select == !0);
|
|
1532
|
-
t && (W.value =
|
|
1532
|
+
t && (W.value = lt(t.r, t.g, t.b).toUpperCase()), se(M.value);
|
|
1533
1533
|
}, J = (t) => {
|
|
1534
1534
|
f("last-used-pick", t);
|
|
1535
1535
|
};
|
|
@@ -1624,7 +1624,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1624
1624
|
case "RGB":
|
|
1625
1625
|
break;
|
|
1626
1626
|
case "HSL": {
|
|
1627
|
-
const { h: l, s: i, l: s } =
|
|
1627
|
+
const { h: l, s: i, l: s } = tt(e.r, e.g, e.b);
|
|
1628
1628
|
X.h = Math.round(l), X.s = Math.round(i * 100), X.l = Math.round(s * 100);
|
|
1629
1629
|
break;
|
|
1630
1630
|
}
|
|
@@ -1862,9 +1862,9 @@ const It = { key: 1 }, Vt = {
|
|
|
1862
1862
|
]));
|
|
1863
1863
|
}
|
|
1864
1864
|
}), Ml = st(
|
|
1865
|
-
() => import("./OcCodeBlock-
|
|
1865
|
+
() => import("./OcCodeBlock-CBdVqav7.js")
|
|
1866
1866
|
), Ul = st(
|
|
1867
|
-
() => import("./OcLottieAnimation-
|
|
1867
|
+
() => import("./OcLottieAnimation-0mdksHMn.js")
|
|
1868
1868
|
);
|
|
1869
1869
|
export {
|
|
1870
1870
|
Al as BarChart,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchidui/dashboard",
|
|
3
3
|
"description": "Orchid Dashboard UI , Dashboard Ui Library Vue 3 tailwind css",
|
|
4
|
-
"version": "1.8.1-
|
|
4
|
+
"version": "1.8.1-95",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "vite build"
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"rollup": "npm:@rollup/wasm-node"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@orchidui/core": "
|
|
36
|
+
"@orchidui/core": "1.8.1-95"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, ref as i, onMounted as r, openBlock as s, createElementBlock as c } from "vue";
|
|
2
|
-
import { getHighlighter as u } from "shikiji";
|
|
3
|
-
import m from "./Dashboard/CodeBlock/customTheme.js";
|
|
4
|
-
const d = Object.freeze({ 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: `(?x) # turn on extended mode
|
|
5
|
-
-? # an optional minus
|
|
6
|
-
(?:
|
|
7
|
-
0 # a zero
|
|
8
|
-
| # ...or...
|
|
9
|
-
[1-9] # a 1-9 character
|
|
10
|
-
\\d* # followed by zero or more digits
|
|
11
|
-
)
|
|
12
|
-
(?:
|
|
13
|
-
(?:
|
|
14
|
-
\\. # a period
|
|
15
|
-
\\d+ # followed by one or more digits
|
|
16
|
-
)?
|
|
17
|
-
(?:
|
|
18
|
-
[eE] # an e character
|
|
19
|
-
[+-]? # followed by an option +/-
|
|
20
|
-
\\d+ # followed by one or more digits
|
|
21
|
-
)? # make exponent optional
|
|
22
|
-
)? # make decimal portion optional`, 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: `(?x) # turn on extended mode
|
|
23
|
-
\\\\ # a literal backslash
|
|
24
|
-
(?: # ...followed by...
|
|
25
|
-
["\\\\/bfnrt] # one of these characters
|
|
26
|
-
| # ...or...
|
|
27
|
-
u # a u
|
|
28
|
-
[0-9a-fA-F]{4}) # and four hex digits`, 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" });
|
|
29
|
-
var p = [
|
|
30
|
-
d
|
|
31
|
-
];
|
|
32
|
-
const l = ["innerHTML"], h = /* @__PURE__ */ o({
|
|
33
|
-
__name: "OcCodeBlock",
|
|
34
|
-
props: {
|
|
35
|
-
jsonObject: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: !0
|
|
38
|
-
},
|
|
39
|
-
lang: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "json"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
setup(a) {
|
|
45
|
-
const n = a, e = i();
|
|
46
|
-
return r(async () => {
|
|
47
|
-
const t = await u({
|
|
48
|
-
themes: [m],
|
|
49
|
-
langs: [p]
|
|
50
|
-
});
|
|
51
|
-
e.value = t.codeToHtml(n.jsonObject, {
|
|
52
|
-
theme: "Custom Theme",
|
|
53
|
-
lang: n.lang
|
|
54
|
-
});
|
|
55
|
-
}), (t, g) => (s(), c("div", {
|
|
56
|
-
class: "p-5 rounded bg-oc-gray-900 code-block",
|
|
57
|
-
innerHTML: e.value
|
|
58
|
-
}, null, 8, l));
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
export {
|
|
62
|
-
h as default
|
|
63
|
-
};
|