@orchidui/dashboard 1.40.0 → 1.42.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.
- 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/OverviewMonthlyBarChart/OcOverviewMonthlyBarChart.js +1 -1
- package/dist/Dashboard/Charts/OverviewPieChart/OcOverviewPieChart.js +1 -1
- package/dist/Dashboard/Charts/PieChart/OcPieChart.js +1 -1
- package/dist/Dashboard/composables/useChart.js +3 -23
- package/dist/{OcBarChart-DFnF2-u0.js → OcBarChart-BeJ-2kbj.js} +6 -6
- package/dist/{OcBarRaceChart-B6S4Rrlq.js → OcBarRaceChart-DHRvE-Sj.js} +7 -7
- package/dist/OcCodeBlock-DBRj4Nc-.js +7479 -0
- package/dist/{OcLineChart-CTDLgo1v.js → OcLineChart-C3LywLKU.js} +9 -10
- package/dist/{OcOverviewMonthlyBarChart-OfktFA_r.js → OcOverviewMonthlyBarChart-CSheXsBM.js} +1 -1
- package/dist/{OcOverviewPieChart-BIpg_ZOf.js → OcOverviewPieChart-D_5Rlnk-.js} +12 -12
- package/dist/{OcPieChart-NSv6CW-L.js → OcPieChart-BMRa-wJO.js} +1 -1
- package/dist/abap-BmBUA35e.js +6 -0
- package/dist/actionscript-3-zFUbzQa9.js +6 -0
- package/dist/ada-CBvPkFpZ.js +6 -0
- package/dist/andromeeda-uXNdzNpk.js +4 -0
- package/dist/angular-html-0fTdLuKf.js +32 -0
- package/dist/angular-ts-wkniW60G.js +21 -0
- package/dist/apache-CVNlsSDc.js +6 -0
- package/dist/apex-DFk3KRB1.js +6 -0
- package/dist/apl-kaEwJ7IG.js +16 -0
- package/dist/applescript-CYMR_y0g.js +6 -0
- package/dist/ara-4QmU5e04.js +6 -0
- package/dist/asciidoc-v_1bjgUg.js +6 -0
- package/dist/asm-RC0Yh-NZ.js +6 -0
- package/dist/astro-BQf3GAVw.js +16 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/awk-gPH8MVMW.js +6 -0
- package/dist/ayu-dark-CxPZkpb2.js +4 -0
- package/dist/ballerina-kvLnRU_e.js +6 -0
- package/dist/bat-BHYy44sT.js +6 -0
- package/dist/beancount-D-MADTs_.js +6 -0
- package/dist/berry-Ci9U0o4h.js +6 -0
- package/dist/bibtex-CX618D15.js +6 -0
- package/dist/bicep-iuYiPopT.js +6 -0
- package/dist/blade-BygCIzZL.js +18 -0
- package/dist/bsl-BIXPNqL4.js +8 -0
- package/dist/c-DASdrs7p.js +6 -0
- package/dist/cadence-BDALQi26.js +6 -0
- package/dist/cairo-tXZKA2PT.js +8 -0
- package/dist/catppuccin-frappe-BrTOiad2.js +4 -0
- package/dist/catppuccin-latte-D-dc_R4m.js +4 -0
- package/dist/catppuccin-macchiato-DN4jOp0G.js +4 -0
- package/dist/catppuccin-mocha-B8yCE3-3.js +4 -0
- package/dist/clarity-CNgV2Ths.js +6 -0
- package/dist/clojure-CsKKFGwv.js +6 -0
- package/dist/cmake-Dr-A3iJx.js +6 -0
- package/dist/cobol-DMssKNmC.js +10 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeql-DBNTqJi1.js +6 -0
- package/dist/coffee-D_GzM8k1.js +8 -0
- package/dist/common-lisp-r7ZEOG7T.js +6 -0
- package/dist/coq-CB6Pv_W9.js +6 -0
- package/dist/cpp-CJF2i3ah.js +18 -0
- package/dist/crystal-BKWnaU3g.js +18 -0
- package/dist/csharp-CYWRhZ2R.js +6 -0
- package/dist/css-D1aVdRIU.js +6 -0
- package/dist/csv-DvCncUGQ.js +6 -0
- package/dist/cue-BXMrmvay.js +6 -0
- package/dist/cypher-DTm5zNR1.js +6 -0
- package/dist/d-D6ZXmn3l.js +6 -0
- package/dist/dark-plus-pUHDTVV0.js +4 -0
- package/dist/dart-Dz59Is3F.js +6 -0
- package/dist/dax-DTVGzydb.js +6 -0
- package/dist/desktop-Db9vb-dl.js +6 -0
- package/dist/diff-XmNrvgM1.js +6 -0
- package/dist/docker-DWH2onkn.js +6 -0
- package/dist/dotenv-4337wvzu.js +6 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-CvvfrJSx.js +6 -0
- package/dist/edge-CgxR-qhM.js +12 -0
- package/dist/elixir-DZkeSPwW.js +8 -0
- package/dist/elm-BKuV1HE1.js +8 -0
- package/dist/emacs-lisp-BAefI874.js +6 -0
- package/dist/erb-BLwkpXUJ.js +10 -0
- package/dist/erlang-CmIiwF3I.js +6 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/fennel-DNqkz9pE.js +6 -0
- package/dist/fish-DIm72t2T.js +6 -0
- package/dist/fluent-BapTxJsC.js +6 -0
- package/dist/fortran-fixed-form-s9Hnb3av.js +8 -0
- package/dist/fortran-free-form-CNDsBFUj.js +6 -0
- package/dist/fsharp-Cv0x43wb.js +8 -0
- package/dist/gdresource-CMcKXvgJ.js +10 -0
- package/dist/gdscript-D7aheHm-.js +6 -0
- package/dist/gdshader-BGJEsM2Z.js +6 -0
- package/dist/genie-C9gPjc6J.js +6 -0
- package/dist/gherkin-bka1Exbx.js +6 -0
- package/dist/git-commit-BspYIY3P.js +8 -0
- package/dist/git-rebase--zLBTjUa.js +8 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/gleam-B4k9YFGD.js +6 -0
- package/dist/glimmer-js-DhY9umHJ.js +14 -0
- package/dist/glimmer-ts-CCrHcYH5.js +14 -0
- package/dist/glsl-XLGYNq5B.js +8 -0
- package/dist/gnuplot-DnWoRZt-.js +6 -0
- package/dist/go-BErP6iv1.js +6 -0
- package/dist/graphql-DWpQF4JI.js +14 -0
- package/dist/groovy-IWs5-NIO.js +6 -0
- package/dist/hack-CQrV-ytR.js +10 -0
- package/dist/haml-CMN0hQaL.js +10 -0
- package/dist/handlebars-Cc-7fXX5.js +14 -0
- package/dist/haskell-CtlGos0K.js +6 -0
- package/dist/haxe-CZZ33vZw.js +6 -0
- package/dist/hcl-6hOg9WP4.js +6 -0
- package/dist/hjson-CgwED-oz.js +6 -0
- package/dist/hlsl-3-lv4gi7.js +6 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/html-B0P_v3yU.js +10 -0
- package/dist/html-derivative-D59SHfh8.js +8 -0
- package/dist/http-Cnx0tOP_.js +14 -0
- package/dist/hxml-BNKImryz.js +8 -0
- package/dist/hy-C2xHhR6I.js +6 -0
- package/dist/imba-Drd0AMDo.js +8 -0
- package/dist/index.js +130 -130
- package/dist/ini-BUcvsX-U.js +6 -0
- package/dist/java-B7odJ7Ap.js +6 -0
- package/dist/javascript-fa8UlHZE.js +6 -0
- package/dist/jinja-CCSYduCH.js +11 -0
- package/dist/jison-BygvlveW.js +8 -0
- package/dist/json5-Z7F6rA6a.js +6 -0
- package/dist/jsonc-Dphhs4m2.js +6 -0
- package/dist/jsonl-D9jj92Gg.js +6 -0
- package/dist/jsonnet-DEQ7IUoJ.js +6 -0
- package/dist/jssm-j74e88UX.js +6 -0
- package/dist/jsx-Bkesy5tT.js +6 -0
- package/dist/julia-CiahampL.js +16 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kotlin-DCgZY7Ii.js +6 -0
- package/dist/kusto-Cw029H-v.js +6 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-LfGCYGw5.js +8 -0
- package/dist/lean-CYSet4vs.js +6 -0
- package/dist/less-DQA4v-Nm.js +6 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/liquid-DZG7C2O9.js +14 -0
- package/dist/log-D2eRfqDn.js +6 -0
- package/dist/logo-QEAtGWZ9.js +6 -0
- package/dist/lua-BVfhNLDr.js +8 -0
- package/dist/luau-BjYGiqID.js +6 -0
- package/dist/make-BjuHP00g.js +6 -0
- package/dist/markdown-B6guhLWd.js +6 -0
- package/dist/marko-CHlMS8w5.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BpQlIJiw.js +6 -0
- package/dist/mdc-4K6B6lHG.js +12 -0
- package/dist/mdx-DIoECIFU.js +6 -0
- package/dist/mermaid-BZ7WHNIe.js +6 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/mipsasm-DusDYkFc.js +6 -0
- package/dist/mojo-CY9jaezJ.js +6 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/move-ChphFumd.js +6 -0
- package/dist/narrat-Dz4d7OmN.js +6 -0
- package/dist/nextflow-DW0Yq9a2.js +6 -0
- package/dist/nginx-Can2eAjw.js +8 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-B3r2RtQZ.js +20 -0
- package/dist/nix-Cg5uV_xg.js +6 -0
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nushell-BfRnzRWn.js +6 -0
- package/dist/objective-c-BGg9R27G.js +6 -0
- package/dist/objective-cpp-CJ3y3V_5.js +6 -0
- package/dist/ocaml-BZLsfx_o.js +6 -0
- package/dist/one-dark-pro-D7-kP8fv.js +4 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/pascal-l2bqd7Dz.js +6 -0
- package/dist/perl-DaMQyPwp.js +16 -0
- package/dist/php-CWGJF8OP.js +18 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plsql-oVq_K_wH.js +6 -0
- package/dist/po-5jaeIyVd.js +6 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-wcLp8ci7.js +6 -0
- package/dist/postcss-BZ3MNRIJ.js +6 -0
- package/dist/powerquery-CgRa2XRw.js +6 -0
- package/dist/powershell-Diwyv8Eh.js +6 -0
- package/dist/prisma-COL_v1x4.js +6 -0
- package/dist/prolog-CuvJOxqT.js +6 -0
- package/dist/proto-o9HLmF90.js +6 -0
- package/dist/pug-HKe4Luo3.js +12 -0
- package/dist/puppet-wpGOnQp5.js +6 -0
- package/dist/purescript-B_1NgE2N.js +6 -0
- package/dist/python-xYxLFJY-.js +6 -0
- package/dist/qml-FlMIyjU9.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qss-D-h4NdUG.js +6 -0
- package/dist/r-F-9I-ITZ.js +6 -0
- package/dist/racket-BoD1TBFT.js +6 -0
- package/dist/raku-IaYcw19m.js +6 -0
- package/dist/razor-CeqqNtyB.js +10 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/reg-CMUdAgIP.js +6 -0
- package/dist/regexp-GiFkbxS-.js +6 -0
- package/dist/rel-BaRn3QX7.js +6 -0
- package/dist/riscv-B9V3SsvW.js +6 -0
- package/dist/rose-pine-DhT-HZE9.js +4 -0
- package/dist/rose-pine-dawn-DiCjL2i4.js +4 -0
- package/dist/rose-pine-moon-BNmGHlcn.js +4 -0
- package/dist/rst-C3D6-dqL.js +22 -0
- package/dist/ruby-DcPLUUK3.js +30 -0
- package/dist/rust-Pc7DCsZD.js +6 -0
- package/dist/sas-tDSYjXcL.js +8 -0
- package/dist/sass-iCyS6eP9.js +6 -0
- package/dist/scala-Cly-fENF.js +6 -0
- package/dist/scheme-Zi24oEYu.js +6 -0
- package/dist/scss-DhHc4lxB.js +8 -0
- package/dist/sdbl-BBamrXFL.js +6 -0
- package/dist/shaderlab-CvqEIoL0.js +8 -0
- package/dist/shellscript-Dn0-btNd.js +6 -0
- package/dist/shellsession-8OLo3sB6.js +8 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/smalltalk-Cns31tKw.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solidity-BG_k8fA_.js +6 -0
- package/dist/soy-EwHMOVPj.js +8 -0
- package/dist/sparql-DhuelBut.js +8 -0
- package/dist/splunk-CTqDjQdo.js +6 -0
- package/dist/sql-DCkt643-.js +6 -0
- package/dist/ssh-config-DHHGll-v.js +6 -0
- package/dist/stata-Dok6hMw0.js +8 -0
- package/dist/stylus-n_9f0QQ5.js +6 -0
- package/dist/svelte-01qw6Rxm.js +14 -0
- package/dist/swift-BAWqNR8A.js +6 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-Cui-g-ut.js +6 -0
- package/dist/systemd-CsKYQIQK.js +6 -0
- package/dist/talonscript-D2dGh8FO.js +6 -0
- package/dist/tasl-D3W8HMV6.js +6 -0
- package/dist/tcl-2y0Fuc4S.js +6 -0
- package/dist/templ-Hmy8U0DD.js +12 -0
- package/dist/terraform-BGW6Oerf.js +6 -0
- package/dist/tex-mHs7a43s.js +8 -0
- package/dist/tokyo-night-LhP3hHhi.js +4 -0
- package/dist/toml-CQSfOn0e.js +6 -0
- package/dist/ts-tags-DYZ4SGcN.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsx-DiGsgWT8.js +6 -0
- package/dist/turtle-BJ2wmjPc.js +6 -0
- package/dist/twig-0UtreqTB.js +18 -0
- package/dist/typescript-buWNZFwO.js +6 -0
- package/dist/typespec-bLbdsxJL.js +6 -0
- package/dist/typst-Y9_SmXTs.js +6 -0
- package/dist/useChart-D5nAyTGV.js +43912 -0
- package/dist/v-wa8Orrdd.js +6 -0
- package/dist/vala-DRdriFr_.js +6 -0
- package/dist/vb-E2_-jk4M.js +6 -0
- package/dist/verilog-B1iBoR5_.js +6 -0
- package/dist/vesper-CJsaOsSM.js +4 -0
- package/dist/vhdl-CRVaAhXk.js +6 -0
- package/dist/viml-B-zWOd7Z.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vue-B1umNz-U.js +31 -0
- package/dist/vue-html-C0Lp2_RV.js +10 -0
- package/dist/vyper-DWutKXpa.js +6 -0
- package/dist/wasm-Bv5f0gKv.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wenyan-BMYnfus1.js +6 -0
- package/dist/wgsl-DnPoPGDU.js +6 -0
- package/dist/wikitext-CntM04PE.js +6 -0
- package/dist/wolfram-Ws5qPlX9.js +6 -0
- package/dist/xml-ChBsf5uy.js +8 -0
- package/dist/xsl-BefjlXrd.js +8 -0
- package/dist/yaml-Bbg74JKr.js +6 -0
- package/dist/zenscript-C0RKE4nU.js +6 -0
- package/dist/zig-D6SXBGNm.js +6 -0
- package/package.json +2 -2
- package/dist/OcCodeBlock-CMo9zvOn.js +0 -37
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var pt = Object.defineProperty;
|
|
2
|
-
var gt = (
|
|
3
|
-
var We = (
|
|
2
|
+
var gt = (n, V, r) => V in n ? pt(n, V, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[V] = r;
|
|
3
|
+
var We = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
|
|
4
4
|
import { ref as v, computed as $e, createBlock as N, 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 D, onMounted as Je, watch as fe, createElementVNode as h, Teleport as mt, Fragment as ge, createTextVNode as ve, toDisplayString as Pe, 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
5
|
import { Q as Y, a as bt } from "./QuillEditor-caFVpQGG.js";
|
|
6
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";
|
|
@@ -34,8 +34,8 @@ const It = { key: 1 }, Vt = {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["update:model-value"],
|
|
37
|
-
setup(
|
|
38
|
-
const r =
|
|
37
|
+
setup(n, { emit: V }) {
|
|
38
|
+
const r = n, y = V, d = v(!1), f = v(r.modelValue), C = (O) => {
|
|
39
39
|
O && (f.value = O, y("update:model-value", O));
|
|
40
40
|
}, p = $e(() => r.variant === "gradient" ? {
|
|
41
41
|
class: "w-[20px] h-[20px] hide-svg-icon",
|
|
@@ -67,7 +67,7 @@ const It = { key: 1 }, Vt = {
|
|
|
67
67
|
f.value = O, y("update:model-value", O), d.value = !1;
|
|
68
68
|
};
|
|
69
69
|
return (O, X) => (m(), N(w(st), {
|
|
70
|
-
class: Q(
|
|
70
|
+
class: Q(n.hideInputColor ? "w-[40px]" : ""),
|
|
71
71
|
onClick: X[1] || (X[1] = () => {
|
|
72
72
|
var U;
|
|
73
73
|
return (U = a.value) == null ? void 0 : U.toggleDropdown();
|
|
@@ -83,7 +83,7 @@ const It = { key: 1 }, Vt = {
|
|
|
83
83
|
T
|
|
84
84
|
],
|
|
85
85
|
"max-menu-height": 800,
|
|
86
|
-
placement:
|
|
86
|
+
placement: n.placement,
|
|
87
87
|
"popper-options": {
|
|
88
88
|
strategy: "fixed"
|
|
89
89
|
}
|
|
@@ -91,18 +91,18 @@ const It = { key: 1 }, Vt = {
|
|
|
91
91
|
menu: W(() => [
|
|
92
92
|
B.value ? D("", !0) : (m(), N(w(xl), {
|
|
93
93
|
key: 0,
|
|
94
|
-
variant:
|
|
95
|
-
"show-alpha": !
|
|
96
|
-
type:
|
|
97
|
-
"model-value":
|
|
94
|
+
variant: n.variant,
|
|
95
|
+
"show-alpha": !n.hideOpacity,
|
|
96
|
+
type: n.hideOpacity ? "HEX" : "HEX8",
|
|
97
|
+
"model-value": n.modelValue,
|
|
98
98
|
"last-used-colors": H.value,
|
|
99
|
-
"preset-colors":
|
|
99
|
+
"preset-colors": n.presetColors,
|
|
100
100
|
"onUpdate:modelValue": C,
|
|
101
101
|
onLastUsedPick: z
|
|
102
102
|
}, null, 8, ["variant", "show-alpha", "type", "model-value", "last-used-colors", "preset-colors"]))
|
|
103
103
|
]),
|
|
104
104
|
default: W(() => [
|
|
105
|
-
|
|
105
|
+
n.hideInputColor ? (m(), E("div", It, [
|
|
106
106
|
je(O.$slots, "picker-icon", {}, () => [
|
|
107
107
|
L(w(A), {
|
|
108
108
|
class: "cursor-pointer",
|
|
@@ -179,7 +179,7 @@ const It = { key: 1 }, Vt = {
|
|
|
179
179
|
},
|
|
180
180
|
variant: {
|
|
181
181
|
type: String,
|
|
182
|
-
validator: (
|
|
182
|
+
validator: (n) => ["default", "text-only"].includes(n),
|
|
183
183
|
default: "default"
|
|
184
184
|
},
|
|
185
185
|
placeholder: {
|
|
@@ -189,8 +189,8 @@ const It = { key: 1 }, Vt = {
|
|
|
189
189
|
isCustomImageUpload: Boolean
|
|
190
190
|
},
|
|
191
191
|
emits: ["update:modelValue", "update:image", "uploadImage"],
|
|
192
|
-
setup(
|
|
193
|
-
const r =
|
|
192
|
+
setup(n, { emit: V }) {
|
|
193
|
+
const r = n, y = V, d = {
|
|
194
194
|
default: [
|
|
195
195
|
"changes",
|
|
196
196
|
"font-size",
|
|
@@ -223,13 +223,13 @@ const It = { key: 1 }, Vt = {
|
|
|
223
223
|
Math.random().toString(36).replace(/[^a-zA-Z]+/g, "")
|
|
224
224
|
), O = v(!1), X = v(!1), U = v(!1), le = v(!1), J = v(!1), j = v(!1), R = v(!1), q = v(""), ae = v(""), ee = v(""), x = v(), Se = v(!1), ue = v(r.image), ie = (u) => {
|
|
225
225
|
O.value = x.value.getQuill().history.stack.undo.length > 0, X.value = x.value.getQuill().history.stack.redo.length > 0, U.value = x.value.getQuill().getFormat().bold, le.value = x.value.getQuill().getFormat().italic, J.value = x.value.getQuill().getFormat().underline, R.value = x.value.getQuill().getFormat().blockquote, ae.value = x.value.getQuill().getFormat().list, ee.value = x.value.getQuill().getFormat().align;
|
|
226
|
-
let
|
|
227
|
-
|
|
226
|
+
let o = document.createElement("div");
|
|
227
|
+
o.innerHTML = u, Se.value && (o.innerText ? y("update:modelValue", u || "") : y("update:modelValue", ""), o.remove());
|
|
228
228
|
}, Xe = () => {
|
|
229
229
|
if (x.value.getQuill().getSelection(!0)) {
|
|
230
|
-
const
|
|
231
|
-
x.value.getQuill().insertText(
|
|
232
|
-
`, Y.sources.USER), x.value.getQuill().insertEmbed(
|
|
230
|
+
const o = x.value.getQuill().getSelection(!0);
|
|
231
|
+
x.value.getQuill().insertText(o.index, `
|
|
232
|
+
`, Y.sources.USER), x.value.getQuill().insertEmbed(o.index + 1, "divider", !0, Y.sources.USER), x.value.getQuill().setSelection(o.index + 2, Y.sources.SILENT);
|
|
233
233
|
}
|
|
234
234
|
}, Ee = () => {
|
|
235
235
|
x.value.getQuill().history.undo(), ie(r.modelValue);
|
|
@@ -252,8 +252,8 @@ const It = { key: 1 }, Vt = {
|
|
|
252
252
|
}, Ne = () => {
|
|
253
253
|
x.value.getQuill().format("blockquote", !R.value);
|
|
254
254
|
}, oe = (u) => {
|
|
255
|
-
const
|
|
256
|
-
|
|
255
|
+
const o = x.value.getQuill().getSelection();
|
|
256
|
+
o && (x.value.getQuill().clipboard.dangerouslyPasteHTML(o.index, `<img src="${u}" />`), ue.value = u, y("update:image", ue.value));
|
|
257
257
|
}, De = () => {
|
|
258
258
|
if (x.value.getQuill().getSelection() || x.value.getQuill().setSelection(x.value.getQuill().getLength() - 1), r.isCustomImageUpload) {
|
|
259
259
|
if (!x.value.getQuill().getSelection()) return;
|
|
@@ -262,8 +262,8 @@ const It = { key: 1 }, Vt = {
|
|
|
262
262
|
}
|
|
263
263
|
const u = document.createElement("input");
|
|
264
264
|
u.type = "file", u.accept = "jpg,.jpeg,.png,.webp,.gif", u.onchange = () => {
|
|
265
|
-
const
|
|
266
|
-
b.onload = () => oe(b.result), b.readAsDataURL(
|
|
265
|
+
const o = u.files[0], b = new FileReader();
|
|
266
|
+
b.onload = () => oe(b.result), b.readAsDataURL(o);
|
|
267
267
|
}, u.click();
|
|
268
268
|
}, He = (u) => /^data:image\/(png|jpg|jpeg|gif);base64,/.test(u), F = (u) => {
|
|
269
269
|
setTimeout(() => {
|
|
@@ -279,8 +279,8 @@ const It = { key: 1 }, Vt = {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}, 100);
|
|
282
|
-
const { items:
|
|
283
|
-
|
|
282
|
+
const { items: o } = u.clipboardData;
|
|
283
|
+
o.length && o[0].getAsString((b) => {
|
|
284
284
|
He(b) && (x.value.getQuill().getSelection() || x.value.getQuill().setSelection(x.value.getQuill().getLength() - 1));
|
|
285
285
|
});
|
|
286
286
|
}, _ = () => {
|
|
@@ -298,33 +298,33 @@ const It = { key: 1 }, Vt = {
|
|
|
298
298
|
const ye = v(100), ce = v(!1), Te = (u) => {
|
|
299
299
|
var b, P;
|
|
300
300
|
ye.value = u;
|
|
301
|
-
const
|
|
302
|
-
|
|
301
|
+
const o = (b = window.getSelection()) == null ? void 0 : b.focusNode;
|
|
302
|
+
o && o.nodeName !== "#text" && (x.value.getQuill().format("width", `${ye.value}%`), (P = o == null ? void 0 : o.querySelector("img")) == null || P.setAttribute("style", "margin:auto;display:block;"));
|
|
303
303
|
}, be = (u = "left") => {
|
|
304
304
|
var b, P;
|
|
305
|
-
const
|
|
306
|
-
if (
|
|
305
|
+
const o = (b = window.getSelection()) == null ? void 0 : b.focusNode;
|
|
306
|
+
if (o && o.nodeName !== "#text") {
|
|
307
307
|
let se = "float:left";
|
|
308
|
-
u == "center" ? se = "" : u == "right" && (se = "float:right"), (P =
|
|
308
|
+
u == "center" ? se = "" : u == "right" && (se = "float:right"), (P = o == null ? void 0 : o.querySelector("img")) == null || P.setAttribute("style", `margin:auto;display:block;${se}`);
|
|
309
309
|
}
|
|
310
310
|
}, Me = () => {
|
|
311
311
|
var b, P;
|
|
312
|
-
const u = (b = window.getSelection()) == null ? void 0 : b.focusNode,
|
|
313
|
-
ce.value = typeof
|
|
312
|
+
const u = (b = window.getSelection()) == null ? void 0 : b.focusNode, o = (u == null ? void 0 : u.nodeType) === Node.ELEMENT_NODE ? u == null ? void 0 : u.innerHTML : (P = u == null ? void 0 : u.parentElement) == null ? void 0 : P.innerHTML;
|
|
313
|
+
ce.value = typeof o == "string" && (o == null ? void 0 : o.includes("<img"));
|
|
314
314
|
}, K = v(!1), G = v(3), Le = v(3), Fe = $e(() => {
|
|
315
315
|
let u = [];
|
|
316
|
-
for (let
|
|
316
|
+
for (let o = 1; o < 30; o++)
|
|
317
317
|
u.push({
|
|
318
|
-
label:
|
|
319
|
-
value:
|
|
318
|
+
label: o.toString(),
|
|
319
|
+
value: o.toString()
|
|
320
320
|
});
|
|
321
321
|
return u;
|
|
322
322
|
}), Ge = $e(() => {
|
|
323
323
|
let u = [];
|
|
324
|
-
for (let
|
|
324
|
+
for (let o = 1; o < 12; o++)
|
|
325
325
|
u.push({
|
|
326
|
-
label:
|
|
327
|
-
value:
|
|
326
|
+
label: o.toString(),
|
|
327
|
+
value: o.toString()
|
|
328
328
|
});
|
|
329
329
|
return u;
|
|
330
330
|
}), Ye = () => {
|
|
@@ -336,14 +336,14 @@ const It = { key: 1 }, Vt = {
|
|
|
336
336
|
(u) => {
|
|
337
337
|
u || x.value.getQuill().setContents([], "silent");
|
|
338
338
|
}
|
|
339
|
-
), (u,
|
|
340
|
-
label:
|
|
341
|
-
hint:
|
|
342
|
-
"error-message":
|
|
343
|
-
"is-required":
|
|
344
|
-
"label-icon":
|
|
345
|
-
"tooltip-text":
|
|
346
|
-
"tooltip-options":
|
|
339
|
+
), (u, o) => (m(), N(w(st), {
|
|
340
|
+
label: n.label,
|
|
341
|
+
hint: n.hint,
|
|
342
|
+
"error-message": n.errorMessage,
|
|
343
|
+
"is-required": n.isRequired,
|
|
344
|
+
"label-icon": n.labelIcon,
|
|
345
|
+
"tooltip-text": n.tooltipText,
|
|
346
|
+
"tooltip-options": n.tooltipOptions
|
|
347
347
|
}, {
|
|
348
348
|
default: W(() => [
|
|
349
349
|
(m(), N(mt, { to: "body" }, [
|
|
@@ -351,7 +351,7 @@ const It = { key: 1 }, Vt = {
|
|
|
351
351
|
size: "small",
|
|
352
352
|
title: "Insert table",
|
|
353
353
|
modelValue: K.value,
|
|
354
|
-
"onUpdate:modelValue":
|
|
354
|
+
"onUpdate:modelValue": o[2] || (o[2] = (b) => K.value = b),
|
|
355
355
|
class: "!w-full !h-full",
|
|
356
356
|
confirmButtonProps: {
|
|
357
357
|
label: "Save",
|
|
@@ -361,14 +361,14 @@ const It = { key: 1 }, Vt = {
|
|
|
361
361
|
default: W(() => [
|
|
362
362
|
L(w(Ze), {
|
|
363
363
|
modelValue: Le.value,
|
|
364
|
-
"onUpdate:modelValue":
|
|
364
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => Le.value = b),
|
|
365
365
|
options: Ge.value,
|
|
366
366
|
label: "Table cell",
|
|
367
367
|
class: "mb-3"
|
|
368
368
|
}, null, 8, ["modelValue", "options"]),
|
|
369
369
|
L(w(Ze), {
|
|
370
370
|
modelValue: G.value,
|
|
371
|
-
"onUpdate:modelValue":
|
|
371
|
+
"onUpdate:modelValue": o[1] || (o[1] = (b) => G.value = b),
|
|
372
372
|
options: Fe.value,
|
|
373
373
|
label: "Table rows"
|
|
374
374
|
}, null, 8, ["modelValue", "options"])
|
|
@@ -377,7 +377,7 @@ const It = { key: 1 }, Vt = {
|
|
|
377
377
|
}, 8, ["modelValue", "confirmButtonProps"])
|
|
378
378
|
])),
|
|
379
379
|
h("div", {
|
|
380
|
-
class: Q(["grid", { "has-error":
|
|
380
|
+
class: Q(["grid", { "has-error": n.errorMessage }]),
|
|
381
381
|
onClick: Me
|
|
382
382
|
}, [
|
|
383
383
|
z.value ? (m(), N(w(bt), {
|
|
@@ -385,7 +385,7 @@ const It = { key: 1 }, Vt = {
|
|
|
385
385
|
id: `#${z.value}`,
|
|
386
386
|
ref_key: "quill",
|
|
387
387
|
ref: x,
|
|
388
|
-
content:
|
|
388
|
+
content: n.modelValue,
|
|
389
389
|
options: {
|
|
390
390
|
bounds: `#${z.value}`
|
|
391
391
|
},
|
|
@@ -393,7 +393,7 @@ const It = { key: 1 }, Vt = {
|
|
|
393
393
|
theme: "snow",
|
|
394
394
|
"content-type": "html",
|
|
395
395
|
class: "min-h-[200px]",
|
|
396
|
-
placeholder:
|
|
396
|
+
placeholder: n.placeholder,
|
|
397
397
|
"onUpdate:content": ie,
|
|
398
398
|
onPaste: F
|
|
399
399
|
}, {
|
|
@@ -419,17 +419,17 @@ const It = { key: 1 }, Vt = {
|
|
|
419
419
|
onClick: Oe
|
|
420
420
|
}, null, 8, ["class"])
|
|
421
421
|
]),
|
|
422
|
-
|
|
422
|
+
o[16] || (o[16] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
423
423
|
], 64)) : D("", !0),
|
|
424
424
|
f.value.includes("font-size") ? (m(), E(ge, { key: 1 }, [
|
|
425
425
|
L(w(rt), {
|
|
426
426
|
modelValue: j.value,
|
|
427
|
-
"onUpdate:modelValue":
|
|
427
|
+
"onUpdate:modelValue": o[3] || (o[3] = (b) => j.value = b),
|
|
428
428
|
class: "px-5"
|
|
429
429
|
}, {
|
|
430
430
|
menu: W(() => [
|
|
431
431
|
h("div", Rt, [
|
|
432
|
-
(m(!0), E(ge, null, Ke(
|
|
432
|
+
(m(!0), E(ge, null, Ke(n.fontSizes, (b) => (m(), E("div", {
|
|
433
433
|
key: b.value,
|
|
434
434
|
class: Q(["min-w-[120px] cursor-pointer py-2 px-3 hover:bg-oc-gray-50", q.value === b.value ? "font-medium" : ""]),
|
|
435
435
|
onClick: (P) => Ue(b.value)
|
|
@@ -440,7 +440,7 @@ const It = { key: 1 }, Vt = {
|
|
|
440
440
|
var b;
|
|
441
441
|
return [
|
|
442
442
|
h("div", Bt, [
|
|
443
|
-
ve(Pe((b =
|
|
443
|
+
ve(Pe((b = n.fontSizes.find((P) => P.value === q.value)) == null ? void 0 : b.label) + " ", 1),
|
|
444
444
|
L(w(A), {
|
|
445
445
|
width: "20",
|
|
446
446
|
height: "20",
|
|
@@ -452,7 +452,7 @@ const It = { key: 1 }, Vt = {
|
|
|
452
452
|
}),
|
|
453
453
|
_: 1
|
|
454
454
|
}, 8, ["modelValue"]),
|
|
455
|
-
|
|
455
|
+
o[17] || (o[17] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
456
456
|
], 64)) : D("", !0),
|
|
457
457
|
f.value.includes("font-style") ? (m(), E(ge, { key: 2 }, [
|
|
458
458
|
h("div", Ot, [
|
|
@@ -478,7 +478,7 @@ const It = { key: 1 }, Vt = {
|
|
|
478
478
|
onClick: Ie
|
|
479
479
|
}, null, 8, ["class"])
|
|
480
480
|
]),
|
|
481
|
-
|
|
481
|
+
o[18] || (o[18] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
|
|
482
482
|
], 64)) : D("", !0),
|
|
483
483
|
h("div", Ut, [
|
|
484
484
|
f.value.includes("link") ? (m(), N(w(A), {
|
|
@@ -518,67 +518,67 @@ const It = { key: 1 }, Vt = {
|
|
|
518
518
|
width: "20",
|
|
519
519
|
height: "20",
|
|
520
520
|
name: "table",
|
|
521
|
-
onClick:
|
|
521
|
+
onClick: o[4] || (o[4] = (b) => K.value = !K.value)
|
|
522
522
|
})
|
|
523
523
|
]),
|
|
524
524
|
f.value.includes("list") ? (m(), E(ge, { key: 3 }, [
|
|
525
|
-
|
|
525
|
+
o[19] || (o[19] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
526
526
|
h("div", Dt, [
|
|
527
527
|
L(w(A), {
|
|
528
528
|
class: Q(["cursor-pointer", ae.value === "bullet" ? "text-oc-text" : "text-oc-text-300"]),
|
|
529
529
|
width: "20",
|
|
530
530
|
height: "20",
|
|
531
531
|
name: "text-editor/bullet",
|
|
532
|
-
onClick:
|
|
532
|
+
onClick: o[5] || (o[5] = (b) => Ve("bullet"))
|
|
533
533
|
}, null, 8, ["class"]),
|
|
534
534
|
L(w(A), {
|
|
535
535
|
class: Q(["cursor-pointer", ae.value === "ordered" ? "text-oc-text" : "text-oc-text-300"]),
|
|
536
536
|
width: "20",
|
|
537
537
|
height: "20",
|
|
538
538
|
name: "text-editor/number",
|
|
539
|
-
onClick:
|
|
539
|
+
onClick: o[6] || (o[6] = (b) => Ve("ordered"))
|
|
540
540
|
}, null, 8, ["class"])
|
|
541
541
|
])
|
|
542
542
|
], 64)) : D("", !0),
|
|
543
543
|
f.value.includes("alignment") ? (m(), E(ge, { key: 4 }, [
|
|
544
|
-
|
|
544
|
+
o[20] || (o[20] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
545
545
|
h("div", Ht, [
|
|
546
546
|
L(w(A), {
|
|
547
547
|
class: Q(["cursor-pointer", ee.value ? "text-oc-text-300" : "text-oc-text"]),
|
|
548
548
|
width: "20",
|
|
549
549
|
height: "20",
|
|
550
550
|
name: "text-editor/left",
|
|
551
|
-
onClick:
|
|
551
|
+
onClick: o[7] || (o[7] = (b) => he())
|
|
552
552
|
}, null, 8, ["class"]),
|
|
553
553
|
L(w(A), {
|
|
554
554
|
class: Q(["cursor-pointer", ee.value === "center" ? "text-oc-text" : "text-oc-text-300"]),
|
|
555
555
|
width: "20",
|
|
556
556
|
height: "20",
|
|
557
557
|
name: "text-editor/center",
|
|
558
|
-
onClick:
|
|
558
|
+
onClick: o[8] || (o[8] = (b) => he("center"))
|
|
559
559
|
}, null, 8, ["class"]),
|
|
560
560
|
L(w(A), {
|
|
561
561
|
class: Q(["cursor-pointer", ee.value === "right" ? "text-oc-text" : "text-oc-text-300"]),
|
|
562
562
|
width: "20",
|
|
563
563
|
height: "20",
|
|
564
564
|
name: "text-editor/right",
|
|
565
|
-
onClick:
|
|
565
|
+
onClick: o[9] || (o[9] = (b) => he("right"))
|
|
566
566
|
}, null, 8, ["class"]),
|
|
567
567
|
L(w(A), {
|
|
568
568
|
class: Q(["cursor-pointer", ee.value === "justify" ? "text-oc-text" : "text-oc-text-300"]),
|
|
569
569
|
width: "20",
|
|
570
570
|
height: "20",
|
|
571
571
|
name: "text-editor/justify",
|
|
572
|
-
onClick:
|
|
572
|
+
onClick: o[10] || (o[10] = (b) => he("justify"))
|
|
573
573
|
}, null, 8, ["class"])
|
|
574
574
|
])
|
|
575
575
|
], 64)) : D("", !0),
|
|
576
|
-
|
|
576
|
+
o[22] || (o[22] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
577
577
|
h("div", Mt, [
|
|
578
578
|
L(w(Vt), {
|
|
579
579
|
modelValue: de.value,
|
|
580
580
|
"onUpdate:modelValue": [
|
|
581
|
-
|
|
581
|
+
o[11] || (o[11] = (b) => de.value = b),
|
|
582
582
|
qe
|
|
583
583
|
],
|
|
584
584
|
"hide-input-color": ""
|
|
@@ -597,7 +597,7 @@ const It = { key: 1 }, Vt = {
|
|
|
597
597
|
_: 1
|
|
598
598
|
}, 8, ["modelValue"])
|
|
599
599
|
]),
|
|
600
|
-
|
|
600
|
+
o[23] || (o[23] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
|
|
601
601
|
ce.value ? (m(), E("div", At, [
|
|
602
602
|
L(w(Ae), {
|
|
603
603
|
label: "Image width",
|
|
@@ -613,21 +613,21 @@ const It = { key: 1 }, Vt = {
|
|
|
613
613
|
width: "20",
|
|
614
614
|
height: "20",
|
|
615
615
|
name: "text-editor/left",
|
|
616
|
-
onClick:
|
|
616
|
+
onClick: o[12] || (o[12] = (b) => be())
|
|
617
617
|
}),
|
|
618
618
|
L(w(A), {
|
|
619
619
|
class: "cursor-pointer",
|
|
620
620
|
width: "20",
|
|
621
621
|
height: "20",
|
|
622
622
|
name: "text-editor/center",
|
|
623
|
-
onClick:
|
|
623
|
+
onClick: o[13] || (o[13] = (b) => be("center"))
|
|
624
624
|
}),
|
|
625
625
|
L(w(A), {
|
|
626
626
|
class: "cursor-pointer",
|
|
627
627
|
width: "20",
|
|
628
628
|
height: "20",
|
|
629
629
|
name: "text-editor/right",
|
|
630
|
-
onClick:
|
|
630
|
+
onClick: o[14] || (o[14] = (b) => be("right"))
|
|
631
631
|
})
|
|
632
632
|
])
|
|
633
633
|
])) : D("", !0),
|
|
@@ -638,8 +638,8 @@ const It = { key: 1 }, Vt = {
|
|
|
638
638
|
viewBox: "0 0 15 15",
|
|
639
639
|
fill: "none",
|
|
640
640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
641
|
-
onClick:
|
|
642
|
-
}, [...
|
|
641
|
+
onClick: o[15] || (o[15] = (b) => Xe())
|
|
642
|
+
}, [...o[21] || (o[21] = [
|
|
643
643
|
h("path", {
|
|
644
644
|
"fill-rule": "evenodd",
|
|
645
645
|
"clip-rule": "evenodd",
|
|
@@ -667,8 +667,8 @@ const It = { key: 1 }, Vt = {
|
|
|
667
667
|
emits: {
|
|
668
668
|
"update:modelValue": []
|
|
669
669
|
},
|
|
670
|
-
setup(
|
|
671
|
-
const r =
|
|
670
|
+
setup(n, { emit: V }) {
|
|
671
|
+
const r = n, y = V, d = v(""), f = (p) => {
|
|
672
672
|
d.value = p, d.value = `#${p.replace(/#/g, "")}`;
|
|
673
673
|
}, C = () => {
|
|
674
674
|
let p = d.value;
|
|
@@ -731,8 +731,8 @@ const It = { key: 1 }, Vt = {
|
|
|
731
731
|
"update-rgb-value": [],
|
|
732
732
|
"update-hsl-value": []
|
|
733
733
|
},
|
|
734
|
-
setup(
|
|
735
|
-
const r =
|
|
734
|
+
setup(n, { emit: V }) {
|
|
735
|
+
const r = n, y = V, d = v({
|
|
736
736
|
r: 0,
|
|
737
737
|
g: 0,
|
|
738
738
|
b: 0
|
|
@@ -817,8 +817,8 @@ const It = { key: 1 }, Vt = {
|
|
|
817
817
|
emits: {
|
|
818
818
|
"update:modelValue": []
|
|
819
819
|
},
|
|
820
|
-
setup(
|
|
821
|
-
const r =
|
|
820
|
+
setup(n, { emit: V }) {
|
|
821
|
+
const r = n, y = V, d = v(""), f = (p) => {
|
|
822
822
|
d.value = p;
|
|
823
823
|
}, C = () => {
|
|
824
824
|
let p = parseInt(d.value);
|
|
@@ -850,8 +850,8 @@ const It = { key: 1 }, Vt = {
|
|
|
850
850
|
modelValue: { default: "RGB", type: String }
|
|
851
851
|
},
|
|
852
852
|
emits: ["update:model-value"],
|
|
853
|
-
setup(
|
|
854
|
-
const y = v(
|
|
853
|
+
setup(n, { emit: V }) {
|
|
854
|
+
const y = v(n.modelValue), d = V, f = (C) => {
|
|
855
855
|
y.value = C, d("update:model-value", C);
|
|
856
856
|
};
|
|
857
857
|
return (C, p) => (m(), N(w(Ze), {
|
|
@@ -880,7 +880,7 @@ const It = { key: 1 }, Vt = {
|
|
|
880
880
|
modelValue: { default: 0, type: Number }
|
|
881
881
|
},
|
|
882
882
|
emits: ["update:modelValue", "onInput"],
|
|
883
|
-
setup(
|
|
883
|
+
setup(n, { emit: V }) {
|
|
884
884
|
const r = Re("opacitySlider"), y = V, d = (f) => {
|
|
885
885
|
y("update:modelValue", parseInt(f.target.value)), y("onInput", f);
|
|
886
886
|
};
|
|
@@ -889,7 +889,7 @@ const It = { key: 1 }, Vt = {
|
|
|
889
889
|
h("input", {
|
|
890
890
|
ref_key: "opacitySlider",
|
|
891
891
|
ref: r,
|
|
892
|
-
value:
|
|
892
|
+
value: n.modelValue,
|
|
893
893
|
class: "opacity__slider",
|
|
894
894
|
type: "range",
|
|
895
895
|
min: "0",
|
|
@@ -905,7 +905,7 @@ const It = { key: 1 }, Vt = {
|
|
|
905
905
|
gradientType: String
|
|
906
906
|
},
|
|
907
907
|
emits: ["onAddColor", "onMouseDown", "onDeleteColor"],
|
|
908
|
-
setup(
|
|
908
|
+
setup(n, { emit: V }) {
|
|
909
909
|
const r = Re("gradientBar"), y = v(), d = V, f = (T) => {
|
|
910
910
|
T.preventDefault();
|
|
911
911
|
}, C = v("left:0"), p = v(!1), a = (T) => {
|
|
@@ -939,8 +939,8 @@ const It = { key: 1 }, Vt = {
|
|
|
939
939
|
], 6),
|
|
940
940
|
h("div", {
|
|
941
941
|
class: Q(["gradient-bar", {
|
|
942
|
-
"mt-[20px]":
|
|
943
|
-
"mt-[12px]":
|
|
942
|
+
"mt-[20px]": n.gradientType === "linear",
|
|
943
|
+
"mt-[12px]": n.gradientType === "radial"
|
|
944
944
|
}]),
|
|
945
945
|
onMousedown: a,
|
|
946
946
|
onDragstart: f
|
|
@@ -960,13 +960,13 @@ const It = { key: 1 }, Vt = {
|
|
|
960
960
|
modelValue: { default: 0, type: Number }
|
|
961
961
|
},
|
|
962
962
|
emits: ["update:modelValue", "onInput", "onChange"],
|
|
963
|
-
setup(
|
|
963
|
+
setup(n, { emit: V }) {
|
|
964
964
|
const r = V, y = (d) => {
|
|
965
965
|
r("update:modelValue", parseFloat(d.target.value)), r("onInput", d);
|
|
966
966
|
};
|
|
967
967
|
return (d, f) => (m(), E("div", Zt, [
|
|
968
968
|
h("input", {
|
|
969
|
-
value:
|
|
969
|
+
value: n.modelValue,
|
|
970
970
|
class: "picker-hue-range-slider",
|
|
971
971
|
type: "range",
|
|
972
972
|
min: "0",
|
|
@@ -993,7 +993,7 @@ const It = { key: 1 }, Vt = {
|
|
|
993
993
|
percentageY: { default: 50, type: Number }
|
|
994
994
|
},
|
|
995
995
|
emits: ["update:angle", "update:percentageX", "update:percentageY", "onInput"],
|
|
996
|
-
setup(
|
|
996
|
+
setup(n, { emit: V }) {
|
|
997
997
|
const r = v(!1), y = v(!1);
|
|
998
998
|
Je(() => {
|
|
999
999
|
r.value = !0, y.value = !0;
|
|
@@ -1013,10 +1013,10 @@ const It = { key: 1 }, Vt = {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
return (C, p) => (m(), E("div", el, [
|
|
1016
|
-
|
|
1016
|
+
n.gradientType == "linear" && r.value ? (m(), N(w(Ae), {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
label: "Angle",
|
|
1019
|
-
"model-value":
|
|
1019
|
+
"model-value": n.angle,
|
|
1020
1020
|
"min-limit": 0,
|
|
1021
1021
|
"max-limit": 360,
|
|
1022
1022
|
"onUpdate:modelValue": p[0] || (p[0] = (a) => f(a, "angle"))
|
|
@@ -1030,10 +1030,10 @@ const It = { key: 1 }, Vt = {
|
|
|
1030
1030
|
])]),
|
|
1031
1031
|
_: 1
|
|
1032
1032
|
}, 8, ["model-value"])) : D("", !0),
|
|
1033
|
-
|
|
1033
|
+
n.gradientType == "radial" && y.value ? (m(), E("div", tl, [
|
|
1034
1034
|
L(w(Ae), {
|
|
1035
1035
|
label: "Position X",
|
|
1036
|
-
"model-value":
|
|
1036
|
+
"model-value": n.percentageX,
|
|
1037
1037
|
"min-limit": 0,
|
|
1038
1038
|
"max-limit": 100,
|
|
1039
1039
|
"onUpdate:modelValue": p[1] || (p[1] = (a) => f(a, "percentageX"))
|
|
@@ -1048,7 +1048,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1048
1048
|
}, 8, ["model-value"]),
|
|
1049
1049
|
L(w(Ae), {
|
|
1050
1050
|
label: "Position Y",
|
|
1051
|
-
"model-value":
|
|
1051
|
+
"model-value": n.percentageY,
|
|
1052
1052
|
"min-limit": 0,
|
|
1053
1053
|
"max-limit": 100,
|
|
1054
1054
|
"onUpdate:modelValue": p[2] || (p[2] = (a) => f(a, "percentageY"))
|
|
@@ -1067,7 +1067,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1067
1067
|
}, al = {
|
|
1068
1068
|
__name: "PickerWrap",
|
|
1069
1069
|
emits: ["onMouseDown"],
|
|
1070
|
-
setup(
|
|
1070
|
+
setup(n) {
|
|
1071
1071
|
const V = Re("canvas"), r = Re("pickerWrap"), y = Re("pickerPointer"), d = (f) => {
|
|
1072
1072
|
f.preventDefault();
|
|
1073
1073
|
};
|
|
@@ -1117,18 +1117,18 @@ const It = { key: 1 }, Vt = {
|
|
|
1117
1117
|
modelValue: String
|
|
1118
1118
|
},
|
|
1119
1119
|
emits: ["onChangeMode"],
|
|
1120
|
-
setup(
|
|
1120
|
+
setup(n) {
|
|
1121
1121
|
return (V, r) => (m(), E("div", nl, [
|
|
1122
1122
|
h("button", {
|
|
1123
1123
|
type: "button",
|
|
1124
|
-
class: Q(
|
|
1124
|
+
class: Q(n.mode == "solid" ? "active" : ""),
|
|
1125
1125
|
style: { padding: "7px" },
|
|
1126
1126
|
onClick: r[0] || (r[0] = (y) => V.$emit("onChangeMode", "solid"))
|
|
1127
1127
|
}, [
|
|
1128
|
-
|
|
1128
|
+
n.modelValue && n.mode == "solid" ? (m(), E("div", {
|
|
1129
1129
|
key: 0,
|
|
1130
1130
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1131
|
-
style: te(`background:${
|
|
1131
|
+
style: te(`background:${n.modelValue}`)
|
|
1132
1132
|
}, null, 4)) : (m(), E("svg", ol, [...r[3] || (r[3] = [
|
|
1133
1133
|
h("g", { opacity: "0.5" }, [
|
|
1134
1134
|
h("path", {
|
|
@@ -1140,14 +1140,14 @@ const It = { key: 1 }, Vt = {
|
|
|
1140
1140
|
], 2),
|
|
1141
1141
|
h("button", {
|
|
1142
1142
|
type: "button",
|
|
1143
|
-
class: Q(
|
|
1144
|
-
style: te(`${
|
|
1143
|
+
class: Q(n.gradientType == "linear" && n.mode != "solid" ? "active" : ""),
|
|
1144
|
+
style: te(`${n.iconClasses.linear ? "" : "padding: 7px;"}`),
|
|
1145
1145
|
onClick: r[1] || (r[1] = (y) => V.$emit("onChangeMode", "linear"))
|
|
1146
1146
|
}, [
|
|
1147
1147
|
h("div", {
|
|
1148
1148
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1149
1149
|
style: te(
|
|
1150
|
-
|
|
1150
|
+
n.modelValue && n.gradientType == "linear" && n.mode != "solid" ? `background:${n.modelValue}` : `
|
|
1151
1151
|
background: linear-gradient(
|
|
1152
1152
|
180deg,
|
|
1153
1153
|
#03102f 0%,
|
|
@@ -1159,14 +1159,14 @@ const It = { key: 1 }, Vt = {
|
|
|
1159
1159
|
], 6),
|
|
1160
1160
|
h("button", {
|
|
1161
1161
|
type: "button",
|
|
1162
|
-
class: Q(
|
|
1163
|
-
style: te(`${
|
|
1162
|
+
class: Q(n.gradientType == "radial" && n.mode != "solid" ? "active" : ""),
|
|
1163
|
+
style: te(`${n.iconClasses.radial ? "" : "padding: 6px;"}`),
|
|
1164
1164
|
onClick: r[2] || (r[2] = (y) => V.$emit("onChangeMode", "radial"))
|
|
1165
1165
|
}, [
|
|
1166
1166
|
h("div", {
|
|
1167
1167
|
class: "w-[28px] h-[28px] rounded-full border",
|
|
1168
1168
|
style: te(
|
|
1169
|
-
|
|
1169
|
+
n.modelValue && n.gradientType == "radial" && n.mode != "solid" ? `background:${n.modelValue}` : "background: radial-gradient(circle at 50% 50%, rgb(255, 255, 255) 0%, rgb(3, 16, 47) 100%);"
|
|
1170
1170
|
)
|
|
1171
1171
|
}, null, 4)
|
|
1172
1172
|
], 6)
|
|
@@ -1220,8 +1220,8 @@ const It = { key: 1 }, Vt = {
|
|
|
1220
1220
|
lastUsedColors: Array
|
|
1221
1221
|
},
|
|
1222
1222
|
emits: ["update:modelValue", "last-used-pick"],
|
|
1223
|
-
setup(
|
|
1224
|
-
const r =
|
|
1223
|
+
setup(n, { emit: V }) {
|
|
1224
|
+
const r = n, y = v(r.variant == "gradient" ? "gradient" : "solid"), d = v(null), f = V, C = v(r.modelValue), p = (t) => {
|
|
1225
1225
|
C.value = t, X.value && f("update:modelValue", t);
|
|
1226
1226
|
}, a = v([
|
|
1227
1227
|
{ id: 1, r: 68, g: 71, b: 119, a: 100, percent: 0, hue: 0, select: !0 },
|
|
@@ -1498,7 +1498,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
} else
|
|
1500
1500
|
oe.value = e, G(), K();
|
|
1501
|
-
},
|
|
1501
|
+
}, o = (t) => {
|
|
1502
1502
|
q.h = t.h, q.s = t.s, q.l = t.l;
|
|
1503
1503
|
const e = a.value.find((l) => l.select == !0);
|
|
1504
1504
|
if (e && !Number.isNaN(q.h) && !Number.isNaN(q.s) && !Number.isNaN(q.l)) {
|
|
@@ -1648,21 +1648,21 @@ const It = { key: 1 }, Vt = {
|
|
|
1648
1648
|
}), (t, e) => (m(), E("div", {
|
|
1649
1649
|
ref_key: "pickerTemplateRef",
|
|
1650
1650
|
ref: d,
|
|
1651
|
-
class: Q(["ck-cp-container",
|
|
1652
|
-
"cp-theme":
|
|
1651
|
+
class: Q(["ck-cp-container", n.disabled ? "ck-cp-disabled " : ""]),
|
|
1652
|
+
"cp-theme": n.theme
|
|
1653
1653
|
}, [
|
|
1654
|
-
|
|
1654
|
+
n.variant == "gradient" ? (m(), E("div", rl, [
|
|
1655
1655
|
L(il, {
|
|
1656
1656
|
class: "mr-auto",
|
|
1657
|
-
variant:
|
|
1657
|
+
variant: n.variant,
|
|
1658
1658
|
mode: y.value,
|
|
1659
|
-
"model-value":
|
|
1660
|
-
iconClasses:
|
|
1659
|
+
"model-value": n.modelValue,
|
|
1660
|
+
iconClasses: n.iconClasses,
|
|
1661
1661
|
gradientType: T.value,
|
|
1662
1662
|
onOnChangeMode: ut
|
|
1663
1663
|
}, null, 8, ["variant", "mode", "model-value", "iconClasses", "gradientType"])
|
|
1664
1664
|
])) : D("", !0),
|
|
1665
|
-
y.value == "gradient" &&
|
|
1665
|
+
y.value == "gradient" && n.variant == "gradient" ? (m(), E("div", ul, [
|
|
1666
1666
|
L(Kt, {
|
|
1667
1667
|
gradientType: T.value,
|
|
1668
1668
|
onOnAddColor: qe,
|
|
@@ -1682,10 +1682,10 @@ const It = { key: 1 }, Vt = {
|
|
|
1682
1682
|
onOnInput: G
|
|
1683
1683
|
}, null, 8, ["percentageY", "angle", "percentageX", "inputType", "mode", "gradientType"])
|
|
1684
1684
|
])) : (m(), E("div", dl, [
|
|
1685
|
-
|
|
1685
|
+
n.presetColors ? (m(), E("div", cl, [
|
|
1686
1686
|
e[10] || (e[10] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium" }, "Choose color", -1)),
|
|
1687
1687
|
h("div", pl, [
|
|
1688
|
-
(m(!0), E(ge, null, Ke(
|
|
1688
|
+
(m(!0), E(ge, null, Ke(n.presetColors, (l) => (m(), E("div", {
|
|
1689
1689
|
key: `color-${l}`,
|
|
1690
1690
|
class: "ck-cp-color-item !w-[32px] !h-[32px]",
|
|
1691
1691
|
style: te(`background:${l}`),
|
|
@@ -1722,7 +1722,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1722
1722
|
], -1)
|
|
1723
1723
|
])])) : D("", !0)
|
|
1724
1724
|
]),
|
|
1725
|
-
|
|
1725
|
+
n.showAlpha ? (m(), N(jt, {
|
|
1726
1726
|
key: 3,
|
|
1727
1727
|
modelValue: oe.value,
|
|
1728
1728
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => oe.value = l),
|
|
@@ -1736,7 +1736,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1736
1736
|
"model-value": O.value,
|
|
1737
1737
|
"onUpdate:modelValue": pe
|
|
1738
1738
|
}, null, 8, ["model-value"]),
|
|
1739
|
-
X.value &&
|
|
1739
|
+
X.value && n.showInputSet ? (m(), E("div", hl, [
|
|
1740
1740
|
O.value == "HEX" ? (m(), N(Nt, {
|
|
1741
1741
|
key: 0,
|
|
1742
1742
|
modelValue: z.value,
|
|
@@ -1754,9 +1754,9 @@ const It = { key: 1 }, Vt = {
|
|
|
1754
1754
|
key: 2,
|
|
1755
1755
|
"input-type": "HSL",
|
|
1756
1756
|
"hsl-value": q,
|
|
1757
|
-
onUpdateHslValue:
|
|
1757
|
+
onUpdateHslValue: o
|
|
1758
1758
|
}, null, 8, ["hsl-value"])) : D("", !0),
|
|
1759
|
-
|
|
1759
|
+
n.showAlpha ? (m(), N(Ft, {
|
|
1760
1760
|
key: 3,
|
|
1761
1761
|
modelValue: oe.value,
|
|
1762
1762
|
"onUpdate:modelValue": [
|
|
@@ -1767,7 +1767,7 @@ const It = { key: 1 }, Vt = {
|
|
|
1767
1767
|
])) : D("", !0)
|
|
1768
1768
|
]),
|
|
1769
1769
|
e[12] || (e[12] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium font-inter" }, "Last used", -1)),
|
|
1770
|
-
H.value.length > 0 &&
|
|
1770
|
+
H.value.length > 0 && n.showColorList ? (m(), E("div", yl, [
|
|
1771
1771
|
(m(!0), E(ge, null, Ke(Z.value, (l) => (m(), E("div", {
|
|
1772
1772
|
key: `color-${l}`,
|
|
1773
1773
|
class: "ck-cp-color-item !w-[32px] !h-[32px]",
|
|
@@ -1803,8 +1803,8 @@ const It = { key: 1 }, Vt = {
|
|
|
1803
1803
|
default: () => []
|
|
1804
1804
|
}
|
|
1805
1805
|
},
|
|
1806
|
-
setup(
|
|
1807
|
-
const V =
|
|
1806
|
+
setup(n) {
|
|
1807
|
+
const V = n, r = $e(() => ({
|
|
1808
1808
|
grid: {
|
|
1809
1809
|
containLabel: !1
|
|
1810
1810
|
},
|
|
@@ -1840,15 +1840,15 @@ const It = { key: 1 }, Vt = {
|
|
|
1840
1840
|
"tooltip-value-formatter": () => null
|
|
1841
1841
|
}, null, 8, ["additional-options"]),
|
|
1842
1842
|
h("div", $l, [
|
|
1843
|
-
|
|
1843
|
+
n.title ? (m(), E("span", wl, Pe(n.title), 1)) : D("", !0),
|
|
1844
1844
|
je(y.$slots, "description", {}, () => [
|
|
1845
|
-
|
|
1845
|
+
n.description ? (m(), E("span", Sl, Pe(n.description), 1)) : D("", !0)
|
|
1846
1846
|
])
|
|
1847
1847
|
])
|
|
1848
1848
|
]));
|
|
1849
1849
|
}
|
|
1850
1850
|
}, Ol = it(
|
|
1851
|
-
() => import("./OcCodeBlock-
|
|
1851
|
+
() => import("./OcCodeBlock-DBRj4Nc-.js").then((n) => n.O)
|
|
1852
1852
|
), Ul = it(
|
|
1853
1853
|
() => import("./OcLottieAnimation-DtD2oJib.js")
|
|
1854
1854
|
);
|