sakana-element 2.3.0 → 2.4.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.
Files changed (115) hide show
  1. package/README.md +5 -5
  2. package/dist/es/{Alert-BwTsp4X3.js → Alert-DfLsJvQD.js} +2 -2
  3. package/dist/es/{Avatar-CJu6JYV3.js → Avatar-Ci4OKsv7.js} +1 -1
  4. package/dist/es/{Badge-BmxZXX8k.js → Badge-B4wEToK6.js} +2 -2
  5. package/dist/es/{Breadcrumb-BP8MSklj.js → Breadcrumb-BFzww8jd.js} +2 -2
  6. package/dist/es/{Button-BJHtN7gh.js → Button-DbFviVWb.js} +3 -3
  7. package/dist/es/{Card-DJHkCmsz.js → Card-ClRqKkc_.js} +1 -1
  8. package/dist/es/ChatBubble-DFEV_lVI.js +9 -0
  9. package/dist/es/{Checkbox-DX8L3fyp.js → Checkbox-l86YI3Fr.js} +3 -3
  10. package/dist/es/{Collapse-Ir3V9CuO.js → Collapse-B67v6RSE.js} +4 -4
  11. package/dist/es/{ConfigProvider-CsbSqwwi.js → ConfigProvider-BCoGbcS5.js} +2 -2
  12. package/dist/es/Diff-BLiniLom.js +64 -0
  13. package/dist/es/{Divider-C7PtODSK.js → Divider-DDSOHv8G.js} +1 -1
  14. package/dist/es/{Drawer-C2eVmvUp.js → Drawer-apeXw6EO.js} +2 -2
  15. package/dist/es/{Dropdown-CVg_c2fB.js → Dropdown-By9qIErf.js} +9 -9
  16. package/dist/es/{FileInput-BE26BmXm.js → FileInput-CZ5jTfB_.js} +3 -3
  17. package/dist/es/Filter-B_1zU4Dq.js +40 -0
  18. package/dist/es/{Form-7lZt5ehf.js → Form-B_XDnSjK.js} +62 -61
  19. package/dist/es/{Icon-BLDDdSU-.js → Icon-D6qRB3pq.js} +1 -1
  20. package/dist/es/{Indicator-B-en-MgG.js → Indicator-C6Ip4dpP.js} +1 -1
  21. package/dist/es/{Input-C5HuVehE.js → Input-bThwBbNZ.js} +5 -5
  22. package/dist/es/Kbd-DXNjs7at.js +13 -0
  23. package/dist/es/{Link-Av9RdcFv.js → Link-08Ee61Fv.js} +1 -1
  24. package/dist/es/{Loading-CBNDUWQd.js → Loading-ByI9mjss.js} +3 -3
  25. package/dist/es/{Message-DgnyyuXn.js → Message-CGG-lV5I.js} +14 -14
  26. package/dist/es/{Notification-LYRXnVAf.js → Notification-B4clKY5h.js} +13 -13
  27. package/dist/es/{Overlay-CpvMhnuU.js → Overlay-6iPenJB1.js} +1 -1
  28. package/dist/es/Pixelate-A8J7jxDW.js +39 -0
  29. package/dist/es/{Popconfirm-DvxFdLrw.js → Popconfirm-gcHGcOTz.js} +12 -12
  30. package/dist/es/{Progress-Bc5INMhJ.js → Progress-DFUBJQ4X.js} +1 -1
  31. package/dist/es/{Radio-263_rtRl.js → Radio-CLBa1XIM.js} +3 -3
  32. package/dist/es/Resizable-BWrFr2oj.js +151 -0
  33. package/dist/es/{Select-7ZxUCS8z.js → Select-BtLqds1d.js} +14 -14
  34. package/dist/es/Skeleton-CGUQv3nQ.js +15 -0
  35. package/dist/es/{Switch-DiCsMJT3.js → Switch-CZJ-S77_.js} +3 -3
  36. package/dist/es/{Table-BvA_xzDe.js → Table-lHbxiyGq.js} +1 -1
  37. package/dist/es/{Tooltip-J3ji6weH.js → Tooltip-CdPqNYdn.js} +3 -3
  38. package/dist/es/Validator-7ZT_nXDZ.js +40 -0
  39. package/dist/es/{hooks-BqobYUzS.js → hooks-pU4JmsO3.js} +1 -1
  40. package/dist/es/index.js +98 -81
  41. package/dist/es/utils-BXICIEsD.js +139 -0
  42. package/dist/es/{vendor-DXmGx29U.js → vendor-DrBJKLFW.js} +254 -210
  43. package/dist/index.css +1 -1
  44. package/dist/{es/theme → theme}/Badge.css +151 -151
  45. package/dist/{es/theme → theme}/Button.css +72 -8
  46. package/dist/theme/ChatBubble.css +218 -0
  47. package/dist/{es/theme → theme}/Checkbox.css +138 -18
  48. package/dist/{es/theme → theme}/Collapse.css +96 -96
  49. package/dist/theme/Diff.css +110 -0
  50. package/dist/{es/theme → theme}/Divider.css +42 -3
  51. package/dist/{es/theme → theme}/Dropdown.css +2 -2
  52. package/dist/{es/theme → theme}/FileInput.css +32 -0
  53. package/dist/theme/Filter.css +598 -0
  54. package/dist/{es/theme → theme}/Input.css +414 -407
  55. package/dist/theme/Kbd.css +104 -0
  56. package/dist/{es/theme → theme}/Message.css +1 -1
  57. package/dist/{es/theme → theme}/Notification.css +44 -44
  58. package/dist/{es/theme → theme}/Radio.css +114 -48
  59. package/dist/theme/Resizable.css +95 -0
  60. package/dist/{es/theme → theme}/Select.css +198 -88
  61. package/dist/theme/Skeleton.css +192 -0
  62. package/dist/{es/theme → theme}/Switch.css +22 -3
  63. package/dist/theme/Validator.css +25 -0
  64. package/dist/types/components/ChatBubble/constants.d.ts +2 -0
  65. package/dist/types/components/ChatBubble/index.d.ts +27 -0
  66. package/dist/types/components/ChatBubble/types.d.ts +10 -0
  67. package/dist/types/components/Diff/constants.d.ts +4 -0
  68. package/dist/types/components/Diff/index.d.ts +67 -0
  69. package/dist/types/components/Diff/types.d.ts +29 -0
  70. package/dist/types/components/Dropdown/index.d.ts +3 -3
  71. package/dist/types/components/Filter/constants.d.ts +5 -0
  72. package/dist/types/components/Filter/index.d.ts +59 -0
  73. package/dist/types/components/Filter/types.d.ts +38 -0
  74. package/dist/types/components/Kbd/constants.d.ts +3 -0
  75. package/dist/types/components/Kbd/index.d.ts +24 -0
  76. package/dist/types/components/Kbd/types.d.ts +10 -0
  77. package/dist/types/components/Pixelate/index.d.ts +3 -3
  78. package/dist/types/components/Popconfirm/index.d.ts +3 -3
  79. package/dist/types/components/Resizable/constants.d.ts +3 -0
  80. package/dist/types/components/Resizable/index.d.ts +135 -0
  81. package/dist/types/components/Resizable/types.d.ts +52 -0
  82. package/dist/types/components/Select/index.d.ts +3 -3
  83. package/dist/types/components/Skeleton/index.d.ts +36 -0
  84. package/dist/types/components/Skeleton/types.d.ts +12 -0
  85. package/dist/types/components/Tooltip/index.d.ts +3 -3
  86. package/dist/types/components/Validator/index.d.ts +52 -0
  87. package/dist/types/components/Validator/types.d.ts +13 -0
  88. package/dist/types/components/index.d.ts +8 -1
  89. package/dist/types/utils/index.d.ts +1 -0
  90. package/dist/types/utils/pixelate.d.ts +10 -0
  91. package/dist/types/utils/style.d.ts +1 -0
  92. package/dist/umd/index.css +1 -1
  93. package/dist/umd/index.css.gz +0 -0
  94. package/dist/umd/index.umd.cjs +3 -3
  95. package/dist/umd/index.umd.cjs.gz +0 -0
  96. package/package.json +4 -4
  97. package/dist/es/Pixelate-BPypBgJU.js +0 -67
  98. package/dist/es/utils-BS5vsvlM.js +0 -101
  99. /package/dist/{es/theme → theme}/Alert.css +0 -0
  100. /package/dist/{es/theme → theme}/Avatar.css +0 -0
  101. /package/dist/{es/theme → theme}/Breadcrumb.css +0 -0
  102. /package/dist/{es/theme → theme}/Card.css +0 -0
  103. /package/dist/{es/theme → theme}/Drawer.css +0 -0
  104. /package/dist/{es/theme → theme}/Form.css +0 -0
  105. /package/dist/{es/theme → theme}/Icon.css +0 -0
  106. /package/dist/{es/theme → theme}/Indicator.css +0 -0
  107. /package/dist/{es/theme → theme}/Link.css +0 -0
  108. /package/dist/{es/theme → theme}/Loading.css +0 -0
  109. /package/dist/{es/theme → theme}/Overlay.css +0 -0
  110. /package/dist/{es/theme → theme}/Popconfirm.css +0 -0
  111. /package/dist/{es/theme → theme}/Progress.css +0 -0
  112. /package/dist/{es/theme → theme}/Table.css +0 -0
  113. /package/dist/{es/theme → theme}/Tooltip.css +0 -0
  114. /package/dist/{es/theme → theme}/fonts/zpix.woff2 +0 -0
  115. /package/dist/{es/theme → theme}/index.css +0 -0
@@ -0,0 +1,40 @@
1
+ import { _ as e, w as s } from "./utils-BXICIEsD.js";
2
+ import { defineComponent as a, ref as t, watch as r, provide as i, reactive as l, toRefs as o, createElementBlock as n, openBlock as d, normalizeClass as u, createElementVNode as c, renderSlot as v, toDisplayString as m } from "vue";
3
+ import { z as g } from "zod";
4
+ import { F as f } from "./Form-B_XDnSjK.js";
5
+ const p = { class: "px-validator__content" }, h = { class: "px-validator__hint-text" }, _ = s(e(a({ name: "PxValidator", __name: "Validator", props: { modelValue: {}, rules: { default: () => [] } }, emits: ["validate"], setup(e2, { expose: s2, emit: a2 }) {
6
+ const _2 = e2, x = a2, V = t("init"), I = t("");
7
+ function y(e3) {
8
+ const s3 = _2.rules ?? [];
9
+ return e3 ? s3.filter(((s4) => !s4.trigger || (Array.isArray(s4.trigger) ? s4.trigger.includes(e3) : s4.trigger === e3))) : s3;
10
+ }
11
+ async function P(e3) {
12
+ var _a;
13
+ for (const s3 of e3) {
14
+ let e4 = s3.schema ?? null;
15
+ if (!e4 && s3.required && (e4 = g.string({ message: s3.message ?? "This field is required" }).min(1, s3.message ?? "This field is required")), !e4) continue;
16
+ const a3 = e4.safeParse(_2.modelValue);
17
+ if (!a3.success) {
18
+ const e5 = s3.message ?? ((_a = a3.error.issues[0]) == null ? void 0 : _a.message) ?? "Validation failed";
19
+ return V.value = "error", I.value = e5, x("validate", false, e5), Promise.reject(e5);
20
+ }
21
+ }
22
+ return V.value = "success", I.value = "", x("validate", true, ""), true;
23
+ }
24
+ const j = async (e3) => {
25
+ const s3 = y(e3);
26
+ return !s3.length || P(s3);
27
+ }, q = () => {
28
+ V.value = "init", I.value = "";
29
+ };
30
+ return r((() => _2.modelValue), (() => {
31
+ const e3 = y("change");
32
+ e3.length && P(e3).catch((() => {
33
+ }));
34
+ })), s2({ validate: j, reset: q, validateStatus: V, validateMessage: I }), i(f, l({ ...o(_2), validate: (e3) => j(e3).catch((() => false)), resetField: q, clearValidate: q, addInputId: () => {
35
+ }, removeInputId: () => {
36
+ } })), (e3, s3) => (d(), n("div", { class: u(["px-validator", { "is-error": "error" === V.value, "is-success": "success" === V.value }]) }, [c("div", p, [v(e3.$slots, "default", {}, void 0, true)]), c("div", { class: u(["px-validator__hint", { "is-hidden": "error" !== V.value }]) }, [v(e3.$slots, "hint", { message: I.value }, (() => [c("span", h, m(I.value), 1)]), true)], 2)], 2));
37
+ } }), [["__scopeId", "data-v-9c099378"]]));
38
+ export {
39
+ _ as P
40
+ };
@@ -1,5 +1,5 @@
1
1
  import { isRef as e, watch as t, onMounted as n, onBeforeUnmount as o, unref as a, getCurrentInstance as r, useSlots as l, watchEffect as u, ref as s, inject as i, computed as c, onUnmounted as d } from "vue";
2
- import { f as m, y as v, k as f, z as p, n as h, o as g, a as E } from "./vendor-DXmGx29U.js";
2
+ import { f as m, y as v, k as f, z as p, I as h, J as g, a as E } from "./vendor-DrBJKLFW.js";
3
3
  function L(r2, l2, u2) {
4
4
  e(r2) ? t(r2, ((e2, t2) => {
5
5
  null == t2 || t2.removeEventListener(l2, u2), null == e2 || e2.addEventListener(l2, u2);
package/dist/es/index.js CHANGED
@@ -1,111 +1,128 @@
1
- import { P as g } from "./Alert-BwTsp4X3.js";
2
- import { P as o } from "./Avatar-CJu6JYV3.js";
3
- import { P as I } from "./Badge-BmxZXX8k.js";
4
- import { P as C, a as l } from "./Breadcrumb-BP8MSklj.js";
5
- import { a as Z, P as s } from "./Button-BJHtN7gh.js";
6
- import { P as c } from "./Card-DJHkCmsz.js";
7
- import { P as e, a as A } from "./Checkbox-DX8L3fyp.js";
8
- import { P as p, a as B } from "./Collapse-Ir3V9CuO.js";
9
- import { P as b, p as G } from "./ConfigProvider-CsbSqwwi.js";
10
- import { E, u } from "./ConfigProvider-CsbSqwwi.js";
11
- import { P as r } from "./Drawer-C2eVmvUp.js";
12
- import { P as y } from "./Divider-C7PtODSK.js";
13
- import { P as W, a as X } from "./Dropdown-CVg_c2fB.js";
14
- import { P as w } from "./FileInput-BE26BmXm.js";
15
- import { P as h, a as S } from "./Form-7lZt5ehf.js";
16
- import { u as u2 } from "./Form-7lZt5ehf.js";
17
- import { a as H, r as K } from "./Icon-BLDDdSU-.js";
18
- import { d, i } from "./Icon-BLDDdSU-.js";
19
- import { P as Y } from "./Indicator-B-en-MgG.js";
20
- import { P as R } from "./Input-C5HuVehE.js";
21
- import { P as Q } from "./Link-Av9RdcFv.js";
22
- import { P as V, a as f } from "./Loading-CBNDUWQd.js";
23
- import { v, L, v as v2 } from "./Loading-CBNDUWQd.js";
24
- import { P as x, a as N } from "./Message-DgnyyuXn.js";
25
- import { m } from "./Message-DgnyyuXn.js";
26
- import { P as F } from "./Notification-LYRXnVAf.js";
27
- import { a, n } from "./Notification-LYRXnVAf.js";
28
- import { P } from "./Pixelate-BPypBgJU.js";
29
- import { P as J } from "./Popconfirm-DvxFdLrw.js";
30
- import { P as D } from "./Progress-Bc5INMhJ.js";
31
- import { P as U, a as z } from "./Radio-263_rtRl.js";
32
- import { P as T, a as M } from "./Select-7ZxUCS8z.js";
33
- import { P as O } from "./Switch-DiCsMJT3.js";
34
- import { P as q } from "./Table-BvA_xzDe.js";
35
- import { t } from "./Table-BvA_xzDe.js";
36
- import { P as $ } from "./Tooltip-J3ji6weH.js";
37
- import { f as _ } from "./vendor-DXmGx29U.js";
1
+ import { P as g } from "./Alert-DfLsJvQD.js";
2
+ import { P as o } from "./Avatar-Ci4OKsv7.js";
3
+ import { P as I } from "./Badge-B4wEToK6.js";
4
+ import { P as C, a as l } from "./Breadcrumb-BFzww8jd.js";
5
+ import { a as s, P as Z } from "./Button-DbFviVWb.js";
6
+ import { P as e } from "./Card-ClRqKkc_.js";
7
+ import { P as c } from "./ChatBubble-DFEV_lVI.js";
8
+ import { P as p, a as A } from "./Checkbox-l86YI3Fr.js";
9
+ import { P as B, a as r } from "./Collapse-B67v6RSE.js";
10
+ import { P as b, p as G } from "./ConfigProvider-BCoGbcS5.js";
11
+ import { E, u } from "./ConfigProvider-BCoGbcS5.js";
12
+ import { P as y } from "./Diff-BLiniLom.js";
13
+ import { P as W } from "./Divider-DDSOHv8G.js";
14
+ import { P as X } from "./Drawer-apeXw6EO.js";
15
+ import { P as w, a as h } from "./Dropdown-By9qIErf.js";
16
+ import { P as S } from "./FileInput-CZ5jTfB_.js";
17
+ import { P as H, a as K } from "./Filter-B_1zU4Dq.js";
18
+ import { P as Y, a as f } from "./Form-B_XDnSjK.js";
19
+ import { u as u2 } from "./Form-B_XDnSjK.js";
20
+ import { a as R, r as V } from "./Icon-D6qRB3pq.js";
21
+ import { d, i } from "./Icon-D6qRB3pq.js";
22
+ import { P as Q } from "./Indicator-C6Ip4dpP.js";
23
+ import { P as x } from "./Input-bThwBbNZ.js";
24
+ import { P as N } from "./Kbd-DXNjs7at.js";
25
+ import { P as F } from "./Link-08Ee61Fv.js";
26
+ import { P, a as D } from "./Loading-ByI9mjss.js";
27
+ import { v, L, v as v2 } from "./Loading-ByI9mjss.js";
28
+ import { P as J, a as z } from "./Message-CGG-lV5I.js";
29
+ import { m } from "./Message-CGG-lV5I.js";
30
+ import { P as U } from "./Notification-B4clKY5h.js";
31
+ import { a, n } from "./Notification-B4clKY5h.js";
32
+ import { P as T } from "./Pixelate-A8J7jxDW.js";
33
+ import { P as M } from "./Popconfirm-gcHGcOTz.js";
34
+ import { P as O } from "./Progress-DFUBJQ4X.js";
35
+ import { P as q, a as $ } from "./Radio-CLBa1XIM.js";
36
+ import { P as _, a as gg, b as og } from "./Resizable-BWrFr2oj.js";
37
+ import { P as Ig, a as Cg } from "./Select-BtLqds1d.js";
38
+ import { P as ag } from "./Skeleton-CGUQv3nQ.js";
39
+ import { P as lg } from "./Switch-CZJ-S77_.js";
40
+ import { P as mg } from "./Table-lHbxiyGq.js";
41
+ import { t } from "./Table-lHbxiyGq.js";
42
+ import { P as sg } from "./Tooltip-CdPqNYdn.js";
43
+ import { P as Zg } from "./Validator-7ZT_nXDZ.js";
44
+ import { f as eg } from "./vendor-DrBJKLFW.js";
38
45
  import "vue";
39
- import { j, k } from "./hooks-BqobYUzS.js";
40
- const gg = [o, I, C, l, Z, s, c, e, A, H, Y, p, B, g, r, $, J, W, X, x, F, R, Q, w, N, V, f, O, q, T, M, P, D, h, S, b, y, U, z], og = { name: "ja", el: { select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, dropdown: { toggleDropdown: "ドロップダウン切替" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力", close: "このダイアログを閉じる" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" } } }, Ig = { name: "ko", el: { select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" } } }, Cg = { name: "zh-cn", el: { select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, dropdown: { toggleDropdown: "切换下拉菜单" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!", close: "关闭此对话框" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" } } }, ag = { name: "zh-tw", el: { select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" } } };
41
- if (K(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
46
+ import { j, k } from "./hooks-pU4JmsO3.js";
47
+ const cg = [g, o, I, C, l, s, Z, e, c, p, A, B, r, b, y, W, X, w, h, S, H, K, Y, f, R, Q, x, N, F, P, D, J, z, U, Ig, T, M, O, q, $, _, gg, og, Cg, ag, lg, mg, sg, Zg], pg = { name: "ja", el: { select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, dropdown: { toggleDropdown: "ドロップダウン切替" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力", close: "このダイアログを閉じる" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" } } }, dg = { name: "ko", el: { select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" } } }, Ag = { name: "zh-cn", el: { select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, dropdown: { toggleDropdown: "切换下拉菜单" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!", close: "关闭此对话框" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" } } }, ig = { name: "zh-tw", el: { select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" } } };
48
+ if (V(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
42
49
  CSS.paintWorklet.addModule(new URL("data:text/javascript;base64,LyoqCiAqIENTUyBIb3VkaW5pIFBhaW50IFdvcmtsZXQgLSBQaXhlbCBCb3JkZXIKICoKICogQ3JlYXRlcyBhdXRoZW50aWMgcGl4ZWxhdGVkIGJvcmRlcnMgZm9yIHJldHJvIFVJIGFlc3RoZXRpYwogKgogKiBDdXN0b20gUHJvcGVydGllczoKICogLSAtLXB4LWJvcmRlci1jb2xvcjogQm9yZGVyIGNvbG9yIChkZWZhdWx0OiAjMDAwMDAwKQogKiAtIC0tcHgtYm9yZGVyLXdpZHRoOiBCb3JkZXIgd2lkdGggaW4gcGl4ZWxzIChkZWZhdWx0OiAyKQogKiAtIC0tcHgtYm9yZGVyLXBpeGVsLXNpemU6IFNpemUgb2YgZWFjaCBwaXhlbCBibG9jayAoZGVm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Gl4ZWxTaXplKTsKICAgICAgfQogICAgfQoKICAgIGN0eC5nbG9iYWxBbHBoYSA9IDE7CiAgfQp9CgovLyBSZWdpc3RlciB0aGUgcGFpbnQgd29ya2xldApyZWdpc3RlclBhaW50KCdwaXhlbC1zaGFkb3cnLCBQaXhlbFNoYWRvd1BhaW50ZXIpOwo=", import.meta.url).href);
43
50
  } catch (g2) {
44
51
  }
45
- const lg = /* @__PURE__ */ (function(g2) {
52
+ const tg = /* @__PURE__ */ (function(g2) {
46
53
  return (o2, I2) => {
47
- _(g2, ((g3) => o2.use(g3))), I2 && G(I2, o2, true);
54
+ eg(g2, ((g3) => o2.use(g3))), I2 && G(I2, o2, true);
48
55
  };
49
- })(gg);
56
+ })(cg);
50
57
  export {
51
58
  g as PxAlert,
52
59
  o as PxAvatar,
53
60
  I as PxBadge,
54
61
  C as PxBreadcrumb,
55
62
  l as PxBreadcrumbItem,
56
- Z as PxButton,
57
- s as PxButtonGroup,
58
- c as PxCard,
59
- e as PxCheckbox,
63
+ s as PxButton,
64
+ Z as PxButtonGroup,
65
+ e as PxCard,
66
+ c as PxChatBubble,
67
+ p as PxCheckbox,
60
68
  A as PxCheckboxGroup,
61
- p as PxCollapse,
62
- B as PxCollapseItem,
69
+ B as PxCollapse,
70
+ r as PxCollapseItem,
63
71
  b as PxConfigProvider,
64
- y as PxDivider,
65
- r as PxDrawer,
66
- W as PxDropdown,
67
- X as PxDropdownItem,
68
- w as PxFileInput,
69
- h as PxForm,
70
- S as PxFormItem,
71
- H as PxIcon,
72
- Y as PxIndicator,
73
- R as PxInput,
74
- Q as PxLink,
75
- V as PxLoading,
72
+ y as PxDiff,
73
+ W as PxDivider,
74
+ X as PxDrawer,
75
+ w as PxDropdown,
76
+ h as PxDropdownItem,
77
+ S as PxFileInput,
78
+ H as PxFilter,
79
+ K as PxFilterItem,
80
+ Y as PxForm,
81
+ f as PxFormItem,
82
+ R as PxIcon,
83
+ Q as PxIndicator,
84
+ x as PxInput,
85
+ N as PxKbd,
86
+ F as PxLink,
87
+ P as PxLoading,
76
88
  v as PxLoadingDirective,
77
- f as PxLoadingIndicator,
89
+ D as PxLoadingIndicator,
78
90
  L as PxLoadingService,
79
- x as PxMessage,
80
- N as PxMessageBox,
81
- F as PxNotification,
82
- M as PxOption,
83
- P as PxPixelate,
84
- J as PxPopconfirm,
85
- D as PxProgress,
86
- U as PxRadio,
87
- z as PxRadioGroup,
88
- T as PxSelect,
89
- O as PxSwitch,
90
- q as PxTable,
91
- $ as PxTooltip,
92
- lg as default,
91
+ J as PxMessage,
92
+ z as PxMessageBox,
93
+ U as PxNotification,
94
+ Ig as PxOption,
95
+ T as PxPixelate,
96
+ M as PxPopconfirm,
97
+ O as PxProgress,
98
+ q as PxRadio,
99
+ $ as PxRadioGroup,
100
+ _ as PxResizableGroup,
101
+ gg as PxResizableHandle,
102
+ og as PxResizablePanel,
103
+ Cg as PxSelect,
104
+ ag as PxSkeleton,
105
+ lg as PxSwitch,
106
+ mg as PxTable,
107
+ sg as PxTooltip,
108
+ Zg as PxValidator,
109
+ tg as default,
93
110
  d as defaultPixelIcons,
94
111
  E as en,
95
112
  i as iconSizeMap,
96
- og as ja,
97
- Ig as ko,
113
+ pg as ja,
114
+ dg as ko,
98
115
  m as messageTypes,
99
116
  a as notificationPosition,
100
117
  n as notificationTypes,
101
118
  G as provideGlobalConfig,
102
- K as registerDefaultPixelIcons,
119
+ V as registerDefaultPixelIcons,
103
120
  t as tableSize,
104
121
  u2 as useFormItem,
105
122
  u as useGlobalConfig,
106
123
  j as useSystemTheme,
107
124
  k as useTheme,
108
125
  v2 as vLoading,
109
- Cg as zhCn,
110
- ag as zhTw
126
+ Ag as zhCn,
127
+ ig as zhTw
111
128
  };
@@ -0,0 +1,139 @@
1
+ import { h as e, d as t, y as o } from "./vendor-DrBJKLFW.js";
2
+ import { defineComponent as r } from "vue";
3
+ function n(e2, t2) {
4
+ const o2 = parseInt(e2.replace("#", ""), 16);
5
+ return `#${(Math.max(0, (o2 >> 16) - Math.round(2.55 * t2)) << 16 | Math.max(0, (o2 >> 8 & 255) - Math.round(2.55 * t2)) << 8 | Math.max(0, (255 & o2) - Math.round(2.55 * t2))).toString(16).padStart(6, "0")}`;
6
+ }
7
+ function a(e2, t2) {
8
+ const o2 = parseInt(e2.replace("#", ""), 16);
9
+ return `#${(Math.min(255, (o2 >> 16) + Math.round(2.55 * t2)) << 16 | Math.min(255, (o2 >> 8 & 255) + Math.round(2.55 * t2)) << 8 | Math.min(255, (255 & o2) + Math.round(2.55 * t2))).toString(16).padStart(6, "0")}`;
10
+ }
11
+ function c(e2) {
12
+ const t2 = parseInt(e2.replace("#", ""), 16);
13
+ return (0.299 * (t2 >> 16) + 0.587 * (t2 >> 8 & 255) + 0.114 * (255 & t2)) / 255 > 0.6 ? "#1e1e2e" : "#ffffff";
14
+ }
15
+ function s(e2) {
16
+ return { color: e2, dark: n(e2, 15), light: a(e2, 35), contrast: c(e2), transparent: "transparent" };
17
+ }
18
+ function i(e2, t2, o2) {
19
+ const r2 = {};
20
+ for (const [n2, a2] of Object.entries(o2)) r2[`--${t2}-${n2}`] = e2[a2];
21
+ return r2;
22
+ }
23
+ const l = { outline: { "text-color": "color", "bg-color": "transparent", "border-color": "color", "shadow-color": "transparent" }, dash: { "text-color": "color", "bg-color": "light", "border-color": "color", "shadow-color": "transparent" }, default: { "text-color": "contrast", "bg-color": "color", "border-color": "dark", "shadow-color": "dark" } };
24
+ function u(e2, t2) {
25
+ }
26
+ const f = { spinner: "loader", loading: "loader", "eye-slash": "eye-closed", "eye-off": "eye-closed", xmark: "close", x: "close", times: "close", "circle-xmark": "close-box", "x-circle": "close-box", "times-circle": "close-box", error: "close-box", "circle-info": "info-box", "info-circle": "info-box", info: "info-box", "check-circle": "check", "circle-check": "check", success: "check", "circle-exclamation": "warning-box", "exclamation-circle": "warning-box", warning: "warning-box", "angle-down": "chevron-down", "caret-down": "chevron-down", "angle-up": "chevron-up", "caret-up": "chevron-up", "angle-left": "chevron-left", "caret-left": "chevron-left", "angle-right": "chevron-right", "caret-right": "chevron-right", "question-circle": "info-box", "circle-question": "info-box", help: "info-box", question: "info-box", gear: "sliders", cog: "sliders", settings: "sliders", star: "bookmark", "star-solid": "bookmark" };
27
+ function d(e2) {
28
+ return e2 in f ? f[e2] : e2;
29
+ }
30
+ const h = /* @__PURE__ */ new Set(["svg", "path", "rect", "circle", "ellipse", "line", "polyline", "polygon", "g", "defs", "clipPath", "mask", "title", "desc", "linearGradient", "radialGradient", "stop", "symbol", "use"]), g = /^on/i, p = /^\s*javascript\s*:/i;
31
+ function m(e2) {
32
+ if (!e2 || "string" != typeof e2) return "";
33
+ if ("undefined" == typeof DOMParser) return "";
34
+ const t2 = new DOMParser().parseFromString(e2, "image/svg+xml");
35
+ return t2.querySelector("parsererror") ? "" : (b(t2.documentElement), t2.documentElement.outerHTML);
36
+ }
37
+ function b(e2) {
38
+ const t2 = Array.from(e2.children);
39
+ for (const e3 of t2) {
40
+ const t3 = e3.tagName.toLowerCase();
41
+ if (h.has(t3)) {
42
+ for (const t4 of Array.from(e3.attributes)) (g.test(t4.name) || "href" === t4.name && p.test(t4.value) || "xlink:href" === t4.name && p.test(t4.value)) && e3.removeAttribute(t4.name);
43
+ b(e3);
44
+ } else e3.remove();
45
+ }
46
+ }
47
+ const x = /* @__PURE__ */ new Map();
48
+ function M(e2) {
49
+ for (const [t2, o2] of Object.entries(e2)) x.set(t2, m(o2));
50
+ }
51
+ function v(e2) {
52
+ return x.get(e2);
53
+ }
54
+ const w = (e2) => (e2.install = (t2) => {
55
+ const o2 = e2.name;
56
+ t2.component(o2, e2);
57
+ }, e2), y = (e2, t2) => (e2.install = (o2) => {
58
+ o2.config.globalProperties[t2] = e2;
59
+ }, e2);
60
+ function k(e2, t2) {
61
+ for (; e2.length >= t2; ) e2[0].props.onDestroy();
62
+ }
63
+ function S(e2) {
64
+ let t2 = false, o2 = 0;
65
+ const r2 = (t3) => {
66
+ var _a;
67
+ "Escape" === t3.code && ((_a = e2()) == null ? void 0 : _a.handler.close());
68
+ };
69
+ return { register() {
70
+ o2++, t2 || (document.addEventListener("keydown", r2), t2 = true);
71
+ }, unregister() {
72
+ o2--, o2 <= 0 && (document.removeEventListener("keydown", r2), t2 = false, o2 = 0);
73
+ } };
74
+ }
75
+ function N(e2, t2, o2, r2) {
76
+ if (0 === r2.length) return [e2, t2, o2];
77
+ let n2 = 1 / 0, a2 = r2[0];
78
+ for (const c2 of r2) {
79
+ const r3 = (e2 - c2[0]) ** 2 + (t2 - c2[1]) ** 2 + (o2 - c2[2]) ** 2;
80
+ if (0 === r3) return c2;
81
+ r3 < n2 && (n2 = r3, a2 = c2);
82
+ }
83
+ return a2;
84
+ }
85
+ function $(e2, t2, o2) {
86
+ const r2 = e2.getContext("2d");
87
+ if (!r2) return;
88
+ const { pixelSize: n2, grayscale: a2 = false, palette: c2, background: s2 = "#FFFFFF" } = o2, i2 = t2.naturalWidth, l2 = t2.naturalHeight;
89
+ e2.width = i2, e2.height = l2, r2.drawImage(t2, 0, 0, i2, l2);
90
+ const u2 = r2.getImageData(0, 0, i2, l2).data, f2 = Math.max(1, Math.round(n2)), d2 = c2 ? (function(e3) {
91
+ return e3.map(((e4) => "string" == typeof e4 ? (function(e5) {
92
+ const t3 = e5.replace("#", "");
93
+ return [parseInt(t3.substring(0, 2), 16), parseInt(t3.substring(2, 4), 16), parseInt(t3.substring(4, 6), 16)];
94
+ })(e4) : e4));
95
+ })(c2) : null;
96
+ r2.fillStyle = s2, r2.fillRect(0, 0, i2, l2);
97
+ for (let e3 = 0; e3 < l2; e3 += f2) for (let t3 = 0; t3 < i2; t3 += f2) {
98
+ const o3 = Math.min(f2, i2 - t3), n3 = Math.min(f2, l2 - e3);
99
+ let c3 = 0, s3 = 0, h2 = 0, g2 = 0;
100
+ for (let r3 = 0; r3 < n3; r3++) for (let n4 = 0; n4 < o3; n4++) {
101
+ const o4 = 4 * ((e3 + r3) * i2 + (t3 + n4));
102
+ c3 += u2[o4], s3 += u2[o4 + 1], h2 += u2[o4 + 2], g2++;
103
+ }
104
+ let p2 = Math.round(c3 / g2), m2 = Math.round(s3 / g2), b2 = Math.round(h2 / g2);
105
+ a2 && (p2 = m2 = b2 = Math.round(0.299 * p2 + 0.587 * m2 + 0.114 * b2)), d2 && ([p2, m2, b2] = N(p2, m2, b2, d2)), r2.fillStyle = `rgb(${p2},${m2},${b2})`, r2.fillRect(t3, e3, o3, n3);
106
+ }
107
+ }
108
+ function F(o2, r2 = "px") {
109
+ return o2 ? e(o2) || ((e2) => !!t(e2) && !Number.isNaN(Number(e2)))(o2) ? `${o2}${r2}` : t(o2) ? o2 : void 0 : "";
110
+ }
111
+ function I(e2, t2, o2) {
112
+ return Math.max(t2, Math.min(o2, e2));
113
+ }
114
+ const j = /* @__PURE__ */ new Map([["info", "info-box"], ["success", "check"], ["warning", "warning-box"], ["danger", "close-box"], ["error", "close-box"]]), O = r({ props: { vNode: { type: [String, Object, Function], required: true } }, setup: (e2) => () => o(e2.vNode) ? e2.vNode() : e2.vNode }), q = (e2, t2) => {
115
+ const o2 = e2.__vccOpts || e2;
116
+ for (const [e3, r2] of t2) o2[e3] = r2;
117
+ return o2;
118
+ };
119
+ export {
120
+ O as R,
121
+ l as S,
122
+ q as _,
123
+ I as a,
124
+ F as b,
125
+ s as c,
126
+ u as d,
127
+ d as e,
128
+ M as f,
129
+ v as g,
130
+ k as h,
131
+ S as i,
132
+ y as j,
133
+ a as l,
134
+ $ as p,
135
+ i as r,
136
+ m as s,
137
+ j as t,
138
+ w
139
+ };