@pantograph/vue 0.30.4 → 0.30.6
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/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-7KKRWq3t.js → ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BYkFlZWU.js → ActionButton.vue_vue_type_script_setup_true_lang-CH_Oquxt.js} +1 -1
- package/dist/Alert/index.js +2 -2
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Avatar/index.js +2 -2
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CzFkAcKT.js → Avatar.vue_vue_type_style_index_0_lang-Br3Z0y8H.js} +57 -57
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DldQzFne.js +1 -0
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Ck1_dbLq.js → Badge.vue_vue_type_script_setup_true_lang-BVE5H-tP.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CxBSrreK.js → Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js} +1 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DQMQ2WbE.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DAiX2m7y.js → BaseBadge.vue_vue_type_style_index_0_lang-Xgu4prlJ.js} +19 -19
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-qkW0olhp.js → BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js} +66 -62
- package/dist/Blanket/index.js +1 -1
- package/dist/Blanket/index.umd.cjs +1 -1
- package/dist/{Blanket.vue_vue_type_style_index_0_lang-Dv68meO4.js → Blanket.vue_vue_type_style_index_0_lang-BZDbPoxP.js} +1 -1
- package/dist/{Blanket.vue_vue_type_style_index_0_lang-WKNPEuJI.js → Blanket.vue_vue_type_style_index_0_lang-CDrlnkqH.js} +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BFY3zxov.js → Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BtiJfT68.js → Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js} +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/Checkbox/index.js +2 -2
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CAdNvT8f.js → Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-u9Jw1VwG.js → Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js} +10 -9
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Did8RS1T.js → ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BVjzmZnp.js → ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js} +1 -1
- package/dist/ColorSwatch/index.js +32 -34
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +1 -0
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-C_XuCb0R.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-oV_EmLx_.js} +14 -12
- package/dist/ColorTrigger/ColorTrigger.d.ts +0 -1
- package/dist/ColorTrigger/index.js +2 -2
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +89 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +1 -0
- package/dist/Combobox/Combobox.d.ts +2 -7
- package/dist/Combobox/index.js +73 -70
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Comment/CommentActions.d.ts +0 -8
- package/dist/Comment/CommentEditor.d.ts +0 -16
- package/dist/Comment/CommentMention.d.ts +4 -12
- package/dist/Comment/CommentReactions.d.ts +0 -4
- package/dist/Comment/CommentTrigger.d.ts +2 -1
- package/dist/Comment/index.js +12 -10
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +7 -7
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DropZone/DropZone.d.ts +3 -0
- package/dist/DropZone/index.js +122 -84
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/FloatButton/FloatButton.d.ts +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxiLfXCr.js → FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Y3NGu4lx.js → FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js} +1 -1
- package/dist/Form/Form.d.ts +3 -1
- package/dist/Form/FormItem.d.ts +0 -1
- package/dist/Form/index.js +3 -3
- package/dist/Form/index.umd.cjs +2 -2
- package/dist/GOPicker/GOPicker.d.ts +0 -1
- package/dist/GOPicker/index.js +10 -7
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DBKQk4LJ.js → GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CgjAIWEo.js → GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js} +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DsSD_y63.js → IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js → IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js} +1 -1
- package/dist/IndentLevel/index.js +2 -2
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BUUUBn2Z.js → IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Bv3yL1Lk.js → IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BYE7yX5H.js → Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Rv1Cz38f.js → Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-ByHGhDsA.js → Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js} +26 -25
- package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +1 -0
- package/dist/InputNumber/InputNumber.d.ts +9 -9
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-C4GMpH6O.js → InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js} +86 -85
- package/dist/Menu/index.js +2 -2
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +5 -1
- package/dist/MenuItem/index.js +2 -2
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-ByicYJot.js → MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js} +212 -209
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +1 -0
- package/dist/Pagination/index.js +22 -20
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-dTuUkmBY.js → RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js} +8 -6
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-CaB3l3Qh.js → RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +1 -0
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-BXQbBiaE.js → Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js} +9 -7
- package/dist/Select/Select.d.ts +0 -1
- package/dist/Select/index.js +2 -2
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-7Tq97moQ.js → Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js} +114 -112
- package/dist/{Select.vue_vue_type_style_index_0_lang-C0JCB5l1.js → Select.vue_vue_type_style_index_0_lang-DI_YhCCT.js} +1 -1
- package/dist/Steps/Step.d.ts +1 -0
- package/dist/Steps/index.js +1 -1
- package/dist/Steps/index.umd.cjs +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +2 -2
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BFHMw2kq.js → Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js} +17 -15
- package/dist/Tabs/index.js +2 -2
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/index.js +43 -42
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Toast/Toast.d.ts +39 -3
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +114 -83
- package/dist/Toast/index.umd.cjs +1 -1
- package/dist/Tree/Tree.d.ts +0 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Upload/index.js +29 -27
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{index-AwKp_D1S.js → index-ClFtJyYC.js} +2 -2
- package/dist/index-DBiL8Htz.js +1 -0
- package/dist/index-DzG8mnap.js +1 -0
- package/dist/{index-BdPkHVwS.js → index-Y3XMSR_o.js} +72 -69
- package/dist/index.js +25 -25
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +26 -26
- package/dist/use/index.umd.cjs +1 -1
- package/package.json +3 -3
- package/dist/Avatar.vue_vue_type_style_index_0_lang-CX1z2Bid.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-O-9lK4KI.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1jasaOz.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CDF1AL9P.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BkJ15M1P.js +0 -88
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bm5rLiVf.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-CTIaAkrW.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DW-JqPiv.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-zBvtuEx_.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CLYRU64q.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-B9pNw4SK.js +0 -1
- package/dist/index-CLWvy5OA.js +0 -1
- package/dist/index-J_dmgfpe.js +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { Primitive as
|
|
6
|
-
import { B as
|
|
1
|
+
import { defineComponent as J, computed as c, useSlots as M, ref as x, watch as Q, createBlock as u, openBlock as p, unref as r, mergeProps as U, withCtx as v, createElementBlock as W, Fragment as X, createCommentVNode as T, renderSlot as I, createVNode as Y, createTextVNode as Z, toDisplayString as ee, normalizeClass as oe, h as te } from "vue";
|
|
2
|
+
import { _ as z } from "./Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js";
|
|
3
|
+
import { _ as ne } from "./Spinner.vue_vue_type_style_index_0_lang-BCf2tJzR.js";
|
|
4
|
+
import { _ as ae } from "./Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js";
|
|
5
|
+
import { Primitive as ie } from "reka-ui";
|
|
6
|
+
import { B as _, a as F, b as P, c as re, i as se } from "./index-ClFtJyYC.js";
|
|
7
7
|
import { useConfig as le } from "./ConfigProvider/index.js";
|
|
8
8
|
import { useFormInput as ce, isEmptyElement as pe } from "@pantograph/utils-vue";
|
|
9
9
|
import { getBemBlock as ue, generateVariantClassList as a, getComponentOptions as me, normCls as fe, getBemElement as de } from "@pantograph/utils";
|
|
10
10
|
import { cva as ge } from "class-variance-authority";
|
|
11
11
|
const n = ue("button"), ve = ge(n, {
|
|
12
12
|
variants: {
|
|
13
|
-
size: a(
|
|
13
|
+
size: a(re, n),
|
|
14
14
|
type: a(P, n),
|
|
15
|
-
color: a(
|
|
16
|
-
variant: a(
|
|
15
|
+
color: a(F, n),
|
|
16
|
+
variant: a(_, n),
|
|
17
17
|
action: a("action", n),
|
|
18
18
|
active: a("active", n),
|
|
19
19
|
text: a("text", n),
|
|
@@ -23,7 +23,7 @@ const n = ue("button"), ve = ge(n, {
|
|
|
23
23
|
block: a("block", n),
|
|
24
24
|
noRing: a("no-ring", n)
|
|
25
25
|
}
|
|
26
|
-
}), Ce = /* @__PURE__ */
|
|
26
|
+
}), Ce = /* @__PURE__ */ J({
|
|
27
27
|
...me("BaseButton"),
|
|
28
28
|
__name: "BaseButton",
|
|
29
29
|
props: {
|
|
@@ -58,24 +58,28 @@ const n = ue("button"), ve = ge(n, {
|
|
|
58
58
|
target: {}
|
|
59
59
|
},
|
|
60
60
|
emits: ["click"],
|
|
61
|
-
setup(
|
|
62
|
-
const o =
|
|
61
|
+
setup($, { expose: R, emit: V }) {
|
|
62
|
+
const o = $, { getFlipOnDir: m } = le(), w = m("flipOnDir"), E = m("preIconFlipOnDir"), N = m("postIconFlipOnDir"), G = m("badgeIconFlipOnDir"), S = se({}), f = c(() => {
|
|
63
63
|
var e;
|
|
64
|
-
return o.variant ?? ((e =
|
|
65
|
-
}), i =
|
|
66
|
-
() => ["icon", "float"].includes(
|
|
67
|
-
), t =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
return o.variant ?? ((e = S.props) == null ? void 0 : e.variant) ?? "simple";
|
|
65
|
+
}), i = c(
|
|
66
|
+
() => ["icon", "float"].includes(f.value) || (t.icon || o.icon) && !(o.text || t.default || o.preIcon || t.preIcon || o.postIcon || t.postIcon)
|
|
67
|
+
), t = M(), { getDisabled: y, getSize: b } = ce({
|
|
68
|
+
getSize: () => {
|
|
69
|
+
var e;
|
|
70
|
+
return o.size ?? ((e = S.props) == null ? void 0 : e.size);
|
|
71
|
+
},
|
|
72
|
+
defaults: { size: "md" },
|
|
73
|
+
exports: ["getDisabled", "getSize"]
|
|
74
|
+
}), j = c(() => {
|
|
71
75
|
let e = P.includes(o.type) ? o.type : "fill";
|
|
72
|
-
const
|
|
73
|
-
let
|
|
74
|
-
return o.action ? ((
|
|
76
|
+
const g = b.value ?? "md";
|
|
77
|
+
let s = o.color && F.includes(o.color) ? o.color : "primary", l = f.value && _.includes(f.value) ? f.value : "simple";
|
|
78
|
+
return o.action ? ((l === "float" || i.value) && (l = "icon"), e === "fill" && (e = "outline"), s = void 0) : l === "float" && (e === "ghost" && (e = "fill"), ["primary", "neutral"].includes(s) || (s = "primary")), {
|
|
75
79
|
size: g,
|
|
76
80
|
type: e,
|
|
77
|
-
color:
|
|
78
|
-
variant:
|
|
81
|
+
color: s,
|
|
82
|
+
variant: l,
|
|
79
83
|
action: !!o.action,
|
|
80
84
|
active: !!o.active,
|
|
81
85
|
loading: !!o.loading,
|
|
@@ -85,8 +89,8 @@ const n = ue("button"), ve = ge(n, {
|
|
|
85
89
|
preIcon: !i.value && !!(o.preIcon || t.preIcon),
|
|
86
90
|
postIcon: !i.value && !!(o.postIcon || t.postIcon)
|
|
87
91
|
};
|
|
88
|
-
}),
|
|
89
|
-
switch (
|
|
92
|
+
}), B = c(() => {
|
|
93
|
+
switch (b.value) {
|
|
90
94
|
case "lg":
|
|
91
95
|
return "sm";
|
|
92
96
|
case "sm":
|
|
@@ -94,8 +98,8 @@ const n = ue("button"), ve = ge(n, {
|
|
|
94
98
|
default:
|
|
95
99
|
return "xsm";
|
|
96
100
|
}
|
|
97
|
-
}),
|
|
98
|
-
switch (
|
|
101
|
+
}), A = c(() => {
|
|
102
|
+
switch (b.value) {
|
|
99
103
|
case "sm":
|
|
100
104
|
return "3xsm";
|
|
101
105
|
case "lg":
|
|
@@ -104,17 +108,17 @@ const n = ue("button"), ve = ge(n, {
|
|
|
104
108
|
default:
|
|
105
109
|
return "2xsm";
|
|
106
110
|
}
|
|
107
|
-
}), h = "2xsm", D = x(0), O =
|
|
108
|
-
|
|
111
|
+
}), h = "2xsm", D = x(0), O = c(() => o.as ? o.as : o.href ? "a" : "button");
|
|
112
|
+
Q(O, () => {
|
|
109
113
|
D.value++;
|
|
110
114
|
});
|
|
111
|
-
const
|
|
115
|
+
const K = c(() => {
|
|
112
116
|
const e = {
|
|
113
117
|
disabled: y.value
|
|
114
118
|
};
|
|
115
119
|
return o.href && (e.href = o.href, e.target = o.target), o.htmlType && (e.type = o.htmlType), o.hover && (e["data-hover"] = ""), e;
|
|
116
120
|
}), k = x();
|
|
117
|
-
|
|
121
|
+
R({
|
|
118
122
|
focus() {
|
|
119
123
|
var e;
|
|
120
124
|
(e = k.value) == null || e.focus();
|
|
@@ -124,57 +128,57 @@ const n = ue("button"), ve = ge(n, {
|
|
|
124
128
|
(e = k.value) == null || e.blur();
|
|
125
129
|
}
|
|
126
130
|
});
|
|
127
|
-
const
|
|
131
|
+
const L = V, q = (e) => {
|
|
128
132
|
if (o.loading || o.disabled) {
|
|
129
133
|
e.preventDefault(), e.stopPropagation();
|
|
130
134
|
return;
|
|
131
135
|
}
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
var e,
|
|
136
|
+
L("click", e);
|
|
137
|
+
}, H = () => {
|
|
138
|
+
var e, d, g;
|
|
135
139
|
if (o.action && o.active && !i.value) {
|
|
136
|
-
const
|
|
140
|
+
const s = (e = t.badge) == null ? void 0 : e.call(t, {
|
|
137
141
|
color: y.value ? "gray" : "primary",
|
|
138
142
|
size: h
|
|
139
143
|
});
|
|
140
|
-
if (!pe(
|
|
141
|
-
const
|
|
142
|
-
if (o.badgeText ||
|
|
143
|
-
return
|
|
144
|
-
|
|
144
|
+
if (!pe(s)) return s;
|
|
145
|
+
const l = (d = t.badgeText) == null ? void 0 : d.call(t, {}), C = (g = t.badgeIcon) == null ? void 0 : g.call(t, {});
|
|
146
|
+
if (o.badgeText || l || o.badgeIcon || C)
|
|
147
|
+
return te(
|
|
148
|
+
ae,
|
|
145
149
|
{
|
|
146
150
|
text: o.badgeText,
|
|
147
151
|
icon: o.badgeIcon,
|
|
148
|
-
flipOnDir:
|
|
152
|
+
flipOnDir: G.value,
|
|
149
153
|
color: y.value ? "gray" : "primary",
|
|
150
154
|
size: h
|
|
151
155
|
},
|
|
152
156
|
{
|
|
153
|
-
default:
|
|
157
|
+
default: l ? t.badgeText : void 0,
|
|
154
158
|
icon: C ? t.badgeIcon : void 0
|
|
155
159
|
}
|
|
156
160
|
);
|
|
157
161
|
}
|
|
158
162
|
return null;
|
|
159
163
|
};
|
|
160
|
-
return (e,
|
|
164
|
+
return (e, d) => (p(), u(r(ie), U({
|
|
161
165
|
as: O.value,
|
|
162
166
|
key: String(D.value),
|
|
163
|
-
class: r(fe)(r(ve)(
|
|
167
|
+
class: r(fe)(r(ve)(j.value), o.class),
|
|
164
168
|
ref_key: "buttonRef",
|
|
165
169
|
ref: k
|
|
166
|
-
},
|
|
170
|
+
}, K.value, { onClick: q }), {
|
|
167
171
|
default: v(() => [
|
|
168
|
-
e.loading ? (
|
|
172
|
+
e.loading ? (p(), u(ne, {
|
|
169
173
|
key: 1,
|
|
170
|
-
class:
|
|
171
|
-
size:
|
|
172
|
-
}, null, 8, ["class", "size"])) : (
|
|
173
|
-
(e.preIcon || t.preIcon) && !i.value ? (
|
|
174
|
+
class: oe(r(de)(r(n), "loading")),
|
|
175
|
+
size: B.value
|
|
176
|
+
}, null, 8, ["class", "size"])) : (p(), W(X, { key: 0 }, [
|
|
177
|
+
(e.preIcon || t.preIcon) && !i.value ? (p(), u(z, {
|
|
174
178
|
key: 0,
|
|
175
|
-
flipOnDir: r(
|
|
179
|
+
flipOnDir: r(E),
|
|
176
180
|
icon: e.preIcon,
|
|
177
|
-
size:
|
|
181
|
+
size: B.value,
|
|
178
182
|
customStroke: e.preIconCustomStroke
|
|
179
183
|
}, {
|
|
180
184
|
default: v(() => [
|
|
@@ -182,11 +186,11 @@ const n = ue("button"), ve = ge(n, {
|
|
|
182
186
|
]),
|
|
183
187
|
_: 3
|
|
184
188
|
}, 8, ["flipOnDir", "icon", "size", "customStroke"])) : T("", !0),
|
|
185
|
-
i.value ? (
|
|
189
|
+
i.value ? (p(), u(z, {
|
|
186
190
|
key: 1,
|
|
187
191
|
icon: e.icon,
|
|
188
|
-
size:
|
|
189
|
-
flipOnDir: r(
|
|
192
|
+
size: A.value,
|
|
193
|
+
flipOnDir: r(w),
|
|
190
194
|
customStroke: e.customStroke
|
|
191
195
|
}, {
|
|
192
196
|
default: v(() => [
|
|
@@ -194,15 +198,15 @@ const n = ue("button"), ve = ge(n, {
|
|
|
194
198
|
]),
|
|
195
199
|
_: 3
|
|
196
200
|
}, 8, ["icon", "size", "flipOnDir", "customStroke"])) : I(e.$slots, "default", { key: 2 }, () => [
|
|
197
|
-
ee(
|
|
201
|
+
Z(ee(e.text), 1)
|
|
198
202
|
]),
|
|
199
|
-
|
|
200
|
-
(e.postIcon || t.postIcon) && !i.value ? (
|
|
203
|
+
Y(H),
|
|
204
|
+
(e.postIcon || t.postIcon) && !i.value ? (p(), u(z, {
|
|
201
205
|
key: 3,
|
|
202
|
-
flipOnDir: r(
|
|
206
|
+
flipOnDir: r(N),
|
|
203
207
|
customStroke: e.postIconCustomStroke,
|
|
204
208
|
icon: e.postIcon,
|
|
205
|
-
size:
|
|
209
|
+
size: B.value
|
|
206
210
|
}, {
|
|
207
211
|
default: v(() => [
|
|
208
212
|
I(e.$slots, "postIcon")
|
package/dist/Blanket/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Blanket.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Blanket.vue_vue_type_style_index_0_lang-CDrlnkqH.js");exports.Blanket=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),n=require("@pantograph/utils"),l=["data-screen"],a=e.defineComponent({...n.getComponentOptions("Blanket"),__name:"Blanket",props:{screen:{type:Boolean,default:!0},zIndex:{default:
|
|
1
|
+
"use strict";const e=require("vue"),n=require("@pantograph/utils"),l=["data-screen"],a=e.defineComponent({...n.getComponentOptions("Blanket"),__name:"Blanket",props:{screen:{type:Boolean,default:!0},zIndex:{default:0},class:{}},setup(t){const o=t,r=n.getBemBlock("blanket");return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(r),o.class)),style:e.normalizeStyle({zIndex:s.zIndex}),"data-screen":s.screen?"":void 0},null,14,l))}});exports._sfc_main=a;
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
2
|
export type ButtonProps = Partial<Omit<BaseButtonProps, 'variant' | 'action' | 'active' | 'badgeText' | 'badgeIcon' | 'icon' | 'flipOnDir' | 'badgeIconFlipOnDir'>>;
|
|
3
|
-
type ButtonSlots = Omit<BaseButtonSlots, 'icon' | 'badge'>;
|
|
3
|
+
type ButtonSlots = Omit<BaseButtonSlots, 'icon' | 'badge' | 'badgeText' | 'badgeIcon'>;
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
6
6
|
slots: Readonly<ButtonSlots> & ButtonSlots;
|
package/dist/Button/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t } from "../Button.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as t } from "../Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js";
|
|
2
2
|
import { installComponent as o } from "@pantograph/utils-vue";
|
|
3
3
|
import { getComponentName as n } from "@pantograph/utils";
|
|
4
4
|
const e = o(t, n("Button"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Button.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js"),e=require("@pantograph/utils-vue"),u=require("@pantograph/utils"),n=e.installComponent(t._sfc_main,u.getComponentName("Button"));exports.Button=t._sfc_main;exports.default=t._sfc_main;exports.ButtonPlugin=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("es-toolkit"),u=require("./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("es-toolkit"),u=require("./BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js"),_=require("@pantograph/utils"),f=e.defineComponent({..._.getComponentOptions("Button",!1),__name:"Button",props:{as:{},class:{},text:{},size:{},color:{},noRing:{type:Boolean},type:{},loading:{type:Boolean},preIcon:{},postIcon:{},customStroke:{type:Boolean},preIconCustomStroke:{type:Boolean},postIconCustomStroke:{type:Boolean},preIconFlipOnDir:{},postIconFlipOnDir:{},htmlType:{},block:{type:Boolean},disabled:{type:Boolean,default:void 0},hover:{type:Boolean},href:{},target:{}},setup(r,{expose:s}){const a=r,i=e.useAttrs(),c=e.computed(()=>({...p.omit(i,["variant","action","active","badgeText","badgeIcon","icon","flipOnDir","badgeIconFlipOnDir"]),...a})),t=e.ref();return s({focus(){var o;(o=t.value)==null||o.focus()},blur(){var o;(o=t.value)==null||o.blur()}}),(o,m)=>(e.openBlock(),e.createBlock(u._sfc_main,e.mergeProps(c.value,{variant:"simple",ref_key:"buttonRef",ref:t}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),n=>({name:n,fn:e.withCtx(l=>[e.renderSlot(o.$slots,n,e.normalizeProps(e.guardReactiveProps(l)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, useAttrs as l, computed as m, ref as u, createBlock as f, openBlock as d, mergeProps as y, createSlots as B, renderList as b, withCtx as g, renderSlot as _, normalizeProps as v, guardReactiveProps as k } from "vue";
|
|
2
2
|
import { omit as I } from "es-toolkit";
|
|
3
|
-
import { _ as O } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as O } from "./BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js";
|
|
4
4
|
import { getComponentOptions as h } from "@pantograph/utils";
|
|
5
5
|
const F = /* @__PURE__ */ c({
|
|
6
6
|
...h("Button", !1),
|
|
@@ -23,7 +23,6 @@ export declare const injectButtonGroupContext: <T extends {
|
|
|
23
23
|
};
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
25
25
|
split: boolean;
|
|
26
|
-
size: ButtonSize;
|
|
27
26
|
variant: ButtonVariant;
|
|
28
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
29
28
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../index-DzG8mnap.js");require("@pantograph/utils-vue");require("@pantograph/utils");exports.ButtonGroup=t._sfc_main;exports.ButtonGroupPlugin=t.ButtonGroupPlugin;exports.default=t._sfc_main;exports.injectButtonGroupContext=t.injectButtonGroupContext;exports.provideButtonGroupContext=t.provideButtonGroupContext;
|
package/dist/Checkbox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { C as p, u as c, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as o } from "../Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js";
|
|
2
|
+
import { C as p, u as c, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js";
|
|
3
3
|
import { installComponent as e } from "@pantograph/utils-vue";
|
|
4
4
|
import { getComponentName as a } from "@pantograph/utils";
|
|
5
5
|
const m = e(o, a("Checkbox"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js"),o=require("@pantograph/utils-vue"),r=require("@pantograph/utils"),t=o.installComponent(e._sfc_main,r.getComponentName("Checkbox"));exports.Checkbox=e._sfc_main;exports.CheckboxSizes=e.CheckboxSizes;exports.default=e._sfc_main;exports.useColoredPantographCheckbox=e.useColoredPantographCheckbox;exports.useColoredPantographCheckboxGroup=e.useColoredPantographCheckboxGroup;exports.CheckboxPlugin=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),C=require("reka-ui"),n=require("@pantograph/tokens"),r=require("@pantograph/utils"),
|
|
1
|
+
"use strict";const e=require("vue"),C=require("reka-ui"),n=require("@pantograph/tokens"),r=require("@pantograph/utils"),N=require("class-variance-authority"),g=require("@pantograph/utils-vue"),x=require("es-toolkit"),j=require("./Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js"),B=["2xsm","xsm"],I=t=>({"--ptc-checkbox-bg":n.getCssCoreColor(`${t}-5`),"--ptc-checkbox-bg-hover":n.getCssCoreColor(`${t}-4`),"--ptc-checkbox-bg-focus":n.getCssCoreColor(`${t}-6`),"--ptc-checkbox-br-focus":n.getCssCoreColor(`${t}-6`),"--ptc-checkbox-bg-active":n.getCssCoreColor(`${t}-7`)}),O=t=>({"--ptc-group-checkbox-bg":n.getCssCoreColor(`${t}-5`),"--ptc-group-checkbox-bg-hover":n.getCssCoreColor(`${t}-4`),"--ptc-group-checkbox-bg-focus":n.getCssCoreColor(`${t}-6`),"--ptc-group-checkbox-br-focus":n.getCssCoreColor(`${t}-6`),"--ptc-group-checkbox-bg-active":n.getCssCoreColor(`${t}-7`)}),[V,y]=C.createContext("CheckboxGroup"),_=e.defineComponent({...r.getComponentOptions("CheckboxGroup"),__name:"CheckboxGroup",props:{asChild:{type:Boolean,default:!0},as:{},modelValue:{},size:{},disabled:{type:Boolean,default:void 0},name:{},options:{}},emits:["update:modelValue","change"],setup(t,{emit:f}){const u=f,l=t,a=o=>({value:typeof o=="object"?o==null?void 0:o.value:o,disabled:typeof o=="object"?o==null?void 0:o.disabled:void 0,label:typeof o=="object"?(o==null?void 0:o.label)??(o==null?void 0:o.value):o}),c=e.ref(l.modelValue??[]);e.watch(()=>l.modelValue,()=>{c.value=l.modelValue??[]});const v=e.computed({get(){return l.modelValue?l.modelValue:c.value},set(o){l.modelValue||(c.value=o),u("update:modelValue",o),u("change",o)}});return y({model:v,props:l}),(o,m)=>(e.openBlock(),e.createBlock(e.unref(C.Primitive),{as:o.as,asChild:o.asChild},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>{var d;return[(d=o.options)!=null&&d.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.options,(i,h)=>(e.openBlock(),e.createBlock(z,e.mergeProps({key:i.value??i,ref_for:!0},a(i)),null,16))),128)):e.createCommentVNode("",!0)]})]),_:3},8,["as","asChild"]))}}),U=g.installComponent(_,r.getComponentName("CheckboxGroup")),F=["for"],z=e.defineComponent({...r.getComponentOptions("Checkbox"),__name:"Checkbox",props:{checked:{type:[Boolean,String,null],default:void 0},size:{default:"xsm"},class:{},rootCls:{},indicatorCls:{},indeterminateCls:{},labelCls:{},label:{},value:{},id:{},valueAsLabel:{type:Boolean,default:!0},unExtendParent:{type:Boolean},defaultValue:{type:[Boolean,String]},modelValue:{type:[Boolean,String,null],default:void 0},disabled:{type:Boolean,default:void 0},name:{},required:{type:Boolean}},emits:["update:modelValue","update:checked","change","blur","focus"],setup(t,{emit:f}){const u=r.getBemBlock("checkbox"),l=t,a=l.unExtendParent?void 0:V({}),c=f,v=e.useSlots(),o=e.computed(()=>l.modelValue??l.checked),m=e.ref(o.value??!1);e.watch(()=>[l.modelValue,l.checked],()=>{m.value=o.value??!1});const d=e.computed({get(){var s;return(s=a==null?void 0:a.model)!=null&&s.value?l.value!==void 0&&(a==null?void 0:a.model.value.includes(l.value)):o.value!==void 0?o.value:m.value},set(s){var p;if((p=a==null?void 0:a.model)!=null&&p.value){if(l.value!==void 0){const b=a==null?void 0:a.model.value.indexOf(l.value);s&&b===-1?a.model.value=[...(a==null?void 0:a.model.value)??[],l.value]:!s&&b!==-1&&(a.model.value=a==null?void 0:a.model.value.filter(D=>D!==l.value))}}else o.value===void 0&&(m.value=s),c("update:checked",s),c("update:modelValue",s),c("change",s)}}),{getDisabled:i}=g.useFormInput({getDisabled:()=>{var s;return((s=a==null?void 0:a.props)==null?void 0:s.disabled)??l.disabled},exports:["getDisabled"]}),h=e.computed(()=>l.id??r.usePCId(u)),P=C.useEmitAsProps(c),$=e.computed(()=>({disabled:i.value,...L.value,...x.omit(l,["size","class","label","disabled","modelValue","checked","id","rootCls","indicatorCls","indeterminateCls","labelCls"]),...x.omit(P,["onUpdate:modelValue","onUpdate:checked"])})),G=N.cva(u,{variants:{size:r.generateVariantClassList(B,u)}}),S=e.computed(()=>l.label||v.default||l.value&&l.valueAsLabel),q=e.computed(()=>{if(l.label)return l.label;if(l.value&&l.valueAsLabel)return l.value}),k=e.computed(()=>{var s;return((s=a==null?void 0:a.props)==null?void 0:s.size)??l.size}),E=e.computed(()=>{switch(k.value){case"xsm":return"2xsm";case"2xsm":default:return"3xsm"}}),{rootBindings:w,inputBindings:L}=g.useInputDataStates({getDisabled:()=>i.value,emit:c}),A=()=>d.value=!d.value;return(s,p)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(u),"root"),s.rootCls)},e.unref(w)),[e.createVNode(e.unref(C.CheckboxRoot),e.mergeProps({onKeyup:e.withKeys(A,["enter"])},$.value,{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=b=>d.value=b),id:h.value,class:e.unref(r.normCls)(e.unref(G)({size:k.value}),l.class)}),{default:e.withCtx(()=>[e.createVNode(e.unref(C.CheckboxIndicator),{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(u),"indicator"),s.indicatorCls)),asChild:""},{default:e.withCtx(()=>[o.value!="indeterminate"?(e.openBlock(),e.createBlock(j._sfc_main,{key:0,icon:"tabler:check",size:E.value},null,8,["size"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(u),"indeterminate"),s.indeterminateCls))},null,2))]),_:1},8,["class"])]),_:1},16,["modelValue","id","class"]),S.value?(e.openBlock(),e.createElementBlock("label",{key:0,for:h.value,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(u),"label"),s.labelCls))},[e.renderSlot(s.$slots,"default",{checked:o.value,disabled:e.unref(i),required:s.required},()=>[e.createTextVNode(e.toDisplayString(q.value),1)])],10,F)):e.createCommentVNode("",!0)],16))}});exports.CheckboxGroupPlugin=U;exports.CheckboxSizes=B;exports._sfc_main=z;exports._sfc_main$1=_;exports.injectCheckboxGroupContext=V;exports.provideCheckboxGroupContext=y;exports.useColoredPantographCheckbox=I;exports.useColoredPantographCheckboxGroup=O;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as _, ref as G, watch as L, computed as n, createBlock as y, openBlock as p, unref as s, withCtx as B, renderSlot as
|
|
1
|
+
import { defineComponent as _, ref as G, watch as L, computed as n, createBlock as y, openBlock as p, unref as s, withCtx as B, renderSlot as D, createElementBlock as C, createCommentVNode as w, Fragment as T, renderList as H, mergeProps as $, useSlots as J, createVNode as P, withKeys as M, normalizeClass as x, createTextVNode as Q, toDisplayString as W } from "vue";
|
|
2
2
|
import { createContext as X, Primitive as Y, useEmitAsProps as Z, CheckboxRoot as ee, CheckboxIndicator as le } from "reka-ui";
|
|
3
3
|
import { getCssCoreColor as r } from "@pantograph/tokens";
|
|
4
|
-
import { getComponentOptions as
|
|
4
|
+
import { getComponentOptions as A, getComponentName as ae, getBemBlock as oe, usePCId as se, generateVariantClassList as te, normCls as v, getBemElement as h } from "@pantograph/utils";
|
|
5
5
|
import { cva as ue } from "class-variance-authority";
|
|
6
6
|
import { installComponent as re, useFormInput as de, useInputDataStates as ne } from "@pantograph/utils-vue";
|
|
7
7
|
import { omit as S } from "es-toolkit";
|
|
@@ -19,7 +19,7 @@ const ie = ["2xsm", "xsm"], $e = (t) => ({
|
|
|
19
19
|
"--ptc-group-checkbox-br-focus": r(`${t}-6`),
|
|
20
20
|
"--ptc-group-checkbox-bg-active": r(`${t}-7`)
|
|
21
21
|
}), [pe, be] = X("CheckboxGroup"), ve = /* @__PURE__ */ _({
|
|
22
|
-
...
|
|
22
|
+
...A("CheckboxGroup"),
|
|
23
23
|
__name: "CheckboxGroup",
|
|
24
24
|
props: {
|
|
25
25
|
asChild: { type: Boolean, default: !0 },
|
|
@@ -59,13 +59,13 @@ const ie = ["2xsm", "xsm"], $e = (t) => ({
|
|
|
59
59
|
asChild: e.asChild
|
|
60
60
|
}, {
|
|
61
61
|
default: B(() => [
|
|
62
|
-
|
|
62
|
+
D(e.$slots, "default", {}, () => {
|
|
63
63
|
var c;
|
|
64
64
|
return [
|
|
65
65
|
(c = e.options) != null && c.length ? (p(!0), C(T, { key: 0 }, H(e.options, (i, V) => (p(), y(fe, $({
|
|
66
66
|
key: i.value ?? i,
|
|
67
67
|
ref_for: !0
|
|
68
|
-
}, a(i)), null, 16))), 128)) :
|
|
68
|
+
}, a(i)), null, 16))), 128)) : w("", !0)
|
|
69
69
|
];
|
|
70
70
|
})
|
|
71
71
|
]),
|
|
@@ -73,7 +73,7 @@ const ie = ["2xsm", "xsm"], $e = (t) => ({
|
|
|
73
73
|
}, 8, ["as", "asChild"]));
|
|
74
74
|
}
|
|
75
75
|
}), Pe = re(ve, ae("CheckboxGroup")), me = ["for"], fe = /* @__PURE__ */ _({
|
|
76
|
-
...
|
|
76
|
+
...A("Checkbox"),
|
|
77
77
|
__name: "Checkbox",
|
|
78
78
|
props: {
|
|
79
79
|
checked: { type: [Boolean, String, null], default: void 0 },
|
|
@@ -124,7 +124,8 @@ const ie = ["2xsm", "xsm"], $e = (t) => ({
|
|
|
124
124
|
getDisabled: () => {
|
|
125
125
|
var o;
|
|
126
126
|
return ((o = a == null ? void 0 : a.props) == null ? void 0 : o.disabled) ?? l.disabled;
|
|
127
|
-
}
|
|
127
|
+
},
|
|
128
|
+
exports: ["getDisabled"]
|
|
128
129
|
}), V = n(() => l.id ?? se(u)), E = Z(d), j = n(() => ({
|
|
129
130
|
disabled: i.value,
|
|
130
131
|
...F.value,
|
|
@@ -200,14 +201,14 @@ const ie = ["2xsm", "xsm"], $e = (t) => ({
|
|
|
200
201
|
for: V.value,
|
|
201
202
|
class: x(s(v)(s(h)(s(u), "label"), o.labelCls))
|
|
202
203
|
}, [
|
|
203
|
-
|
|
204
|
+
D(o.$slots, "default", {
|
|
204
205
|
checked: e.value,
|
|
205
206
|
disabled: s(i),
|
|
206
207
|
required: o.required
|
|
207
208
|
}, () => [
|
|
208
209
|
Q(W(q.value), 1)
|
|
209
210
|
])
|
|
210
|
-
], 10, me)) :
|
|
211
|
+
], 10, me)) : w("", !0)
|
|
211
212
|
], 16));
|
|
212
213
|
}
|
|
213
214
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as t, c as x, i as c, p as i } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { b as t, c as x, i as c, p as i } from "../Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js";
|
|
2
2
|
import "@pantograph/utils-vue";
|
|
3
3
|
import "@pantograph/utils";
|
|
4
4
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js");require("@pantograph/utils-vue");require("@pantograph/utils");exports.CheckboxGroup=e._sfc_main$1;exports.CheckboxGroupPlugin=e.CheckboxGroupPlugin;exports.injectCheckboxGroupContext=e.injectCheckboxGroupContext;exports.provideCheckboxGroupContext=e.provideCheckboxGroupContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "../ColorPicker.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { i as p, p as C } from "../ColorPicker.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as o } from "../ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js";
|
|
2
|
+
import { i as p, p as C } from "../ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js";
|
|
3
3
|
import { installComponent as r } from "@pantograph/utils-vue";
|
|
4
4
|
import { getComponentName as e } from "@pantograph/utils";
|
|
5
5
|
const n = r(o, e("ColorPicker"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorPicker.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js"),o=require("@pantograph/utils-vue"),r=require("@pantograph/utils"),t=o.installComponent(e._sfc_main,r.getComponentName("ColorPicker"));exports.ColorPicker=e._sfc_main;exports.default=e._sfc_main;exports.injectColorPickerContext=e.injectColorPickerContext;exports.provideColorPickerContext=e.provideColorPickerContext;exports.ColorPickerPlugin=t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { onUnmounted as d0, defineComponent as $t, onMounted as zt, onBeforeUnmount as c0, createElementBlock as Te, openBlock as K, normalizeClass as G, unref as _, createElementVNode as Ne, ref as en, computed as te, watch as h0, reactive as p0, createVNode as Wn, createCommentVNode as Bn, createBlock as nn, isRef as b0, Fragment as m0, renderList as g0 } from "vue";
|
|
2
|
-
import { _ as x0 } from "./ActionButton.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as Zn } from "./Input.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as M0 } from "./Select.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as x0 } from "./ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js";
|
|
3
|
+
import { _ as Zn } from "./Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js";
|
|
4
|
+
import { _ as M0 } from "./Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js";
|
|
5
5
|
import { useVModel as Un } from "@pantograph/utils-vue";
|
|
6
6
|
import { createContext as y0 } from "reka-ui";
|
|
7
7
|
import { normCls as be, getBemElement as me, getBemBlock as v0, getComponentOptions as k0, getBemModifier as Jn } from "@pantograph/utils";
|