@pantograph/vue 0.10.10 → 0.10.11
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-BG7u9LIG.js → ActionButton.vue_vue_type_script_setup_true_lang-BZf08kPh.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-IoETLE0O.js → ActionButton.vue_vue_type_script_setup_true_lang-BayCQ8ok.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-D4dEbqHH.js → Avatar.vue_vue_type_style_index_0_lang-BLPh8zCp.js} +4 -4
- package/dist/Avatar.vue_vue_type_style_index_0_lang-Duxj62Xn.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-CH42t3gX.js → Badge.vue_vue_type_script_setup_true_lang-BChsnh9M.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DpNMg53J.js → Badge.vue_vue_type_script_setup_true_lang-C8L2pGJ3.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BxgARR_1.js → BaseBadge.vue_vue_type_style_index_0_lang-CEI46Vj4.js} +3 -3
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-WTsL3poJ.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-Cu_wyrUY.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DJqcYRpF.js → BaseButton.vue_vue_type_style_index_0_lang-Cxd4xw3_.js} +27 -27
- 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-J7hRUhgA.js → Button.vue_vue_type_script_setup_true_lang-8Q-PTpnv.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B-avy3kM.js → Button.vue_vue_type_script_setup_true_lang-C8xrlHDs.js} +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-Dh51uD32.js +1 -0
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-BVgtQiw3.js → ButtonGroup.vue_vue_type_script_setup_true_lang-pokTDMXb.js} +2 -2
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BuqfswxO.js +1 -0
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-BD4g7E0x.js → Checkbox.vue_vue_type_style_index_0_lang-C7it9Wv8.js} +32 -33
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C_pnnVeP.js → ColorPicker.vue_vue_type_style_index_0_lang-Cul5oJ7_.js} +4 -4
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-D_Q2AACS.js +1 -0
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-D_h9Uh7N.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-yBOw-fww.js → ColorSwatch.vue_vue_type_style_index_0_lang-ju2qA_wA.js} +9 -9
- 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-DWGCMHVU.js +1 -0
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-3q_reTrP.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Dc6gEmsZ.js} +5 -5
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CORbzpQN.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-42QveuGX.js → ColorTrigger.vue_vue_type_style_index_0_lang-CvjaO0Uv.js} +4 -4
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +72 -73
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/{Divider.vue_vue_type_style_index_0_lang-gVx_vqDi.js → Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js} +6 -6
- package/dist/Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js +1 -0
- 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-B7ootzCL.js → FloatButton.vue_vue_type_script_setup_true_lang-77A3vBEt.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CAyEhHHh.js → FloatButton.vue_vue_type_script_setup_true_lang-CNoTwogj.js} +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-C2euaah9.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DQ-TKjQG.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-OnALz-Tz.js → GraphicalObject.vue_vue_type_script_setup_true_lang-fyO8zi4r.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BpIpKu8I.js → Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js} +14 -14
- package/dist/Icon.vue_vue_type_style_index_0_lang-C00M2fnO.js +1 -0
- 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-xla7KmxH.js → IconButton.vue_vue_type_script_setup_true_lang-B1hjcIFz.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-7_PYDN9E.js → IconButton.vue_vue_type_script_setup_true_lang-DytRXxrl.js} +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-C4SkcHXd.js +1 -0
- package/dist/{Image.vue_vue_type_style_index_0_lang-CEjH8O4M.js → Image.vue_vue_type_style_index_0_lang-C_S48q8S.js} +31 -27
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-dLaCzS6D.js → IndentLevel.vue_vue_type_style_index_0_lang-Bxo_bAGI.js} +22 -22
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CR3y-jwd.js +1 -0
- 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-DVckQEuz.js → Indicator.vue_vue_type_script_setup_true_lang-26XUXdy9.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-nI2QH14j.js → Indicator.vue_vue_type_script_setup_true_lang-Bsp8iIQN.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-XtKgk5B8.js +1 -0
- package/dist/{Input.vue_vue_type_style_index_0_lang-FKf9XyaK.js → Input.vue_vue_type_style_index_0_lang-xQIFQmTg.js} +29 -29
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-Bn1y_pgM.js → Kbd.vue_vue_type_style_index_0_lang-BQINoskR.js} +10 -10
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DQHLesHx.js +1 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-RUqqWTb-.js +1 -0
- package/dist/{Menu.vue_vue_type_style_index_0_lang-Ck9CxDR-.js → Menu.vue_vue_type_style_index_0_lang-U69mRopb.js} +125 -126
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-DWUbX1hj.js → Popover.vue_vue_type_style_index_0_lang-BCFXul8O.js} +21 -21
- package/dist/Popover.vue_vue_type_style_index_0_lang-CYNcA-aI.js +1 -0
- 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-BOBbzyDE.js → RadioGroup.vue_vue_type_script_setup_true_lang-DKL0EQQ3.js} +16 -17
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-d6MmLjW3.js +1 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DeTzUFmC.js +1 -0
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-CJt1kV6P.js → Shortcut.vue_vue_type_style_index_0_lang-lRQda-XM.js} +7 -7
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-BRov9v5C.js +1 -0
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-Cjdn_7-J.js → Skeleton.vue_vue_type_style_index_0_lang-aSGb2hn6.js} +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-jNr_ArsA.js → Spinner.vue_vue_type_style_index_0_lang-CBIZtgX4.js} +14 -14
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CTjUx8rR.js +1 -0
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BBTDR8Er.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-RH_NKvPq.js → Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js} +27 -28
- package/dist/THead.vue_vue_type_style_index_0_lang-BG_UqFq7.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-a7H6iK5g.js → THead.vue_vue_type_style_index_0_lang-tkq9EicC.js} +39 -39
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-Da1-B5KL.js +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-B0hYCF3A.js → Tree.vue_vue_type_style_index_0_lang-irjjsFae.js} +92 -93
- package/dist/{element-CddU1vUY.js → element-DPnhLHX0.js} +3 -3
- package/dist/{index-iTlmMf0U.js → index-D5U1ryWK.js} +1 -1
- package/dist/index-fCdmNGB1.js +1 -0
- package/dist/index.js +42 -44
- package/dist/index.umd.cjs +1 -1
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.js +8 -10
- package/dist/utils/index.umd.cjs +1 -1
- package/package.json +3 -3
- package/dist/Avatar.vue_vue_type_style_index_0_lang-Dr9VyclW.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-ClfiEnXz.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DndNatbg.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BQSX0RsB.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DpSl2w9U.js +0 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-Bb7zVqrK.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DyDZjB9Y.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CgRHGAgy.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DXtbauyZ.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-C5RHPy-r.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-Bdg8nv_L.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BiAWuqdh.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-BDlu0lax.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-CNj8fhLM.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DuWf5jZ8.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-DfgJ3ZH2.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CSEDJHxO.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Cslq8WZ_.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-CpVIYfIz.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-DZND-tF6.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-Vg1KW5X9.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-FOAYQAqS.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-BoOaxYv2.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-B-7t14tN.js +0 -1
- package/dist/class-BCq3bHT0.js +0 -25
- package/dist/class-DSOvBJxR.js +0 -1
- package/dist/index-BBeDQiz4.js +0 -1
- package/dist/useId-DvOSMFGX.js +0 -9
- package/dist/useId-Ku3O_8TK.js +0 -1
- package/dist/utils/useId.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-BayCQ8ok.js");exports.ActionButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as l, computed as m, ref as u, createBlock as f, openBlock as d, mergeProps as _, createSlots as b, renderList as g, withCtx as v, renderSlot as I, normalizeProps as B, guardReactiveProps as O } from "vue";
|
|
2
2
|
import { o as k } from "./omit-CD3OjwFx.js";
|
|
3
|
-
import { _ as x } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as x } from "./BaseButton.vue_vue_type_style_index_0_lang-Cxd4xw3_.js";
|
|
4
4
|
import { g as y } from "./options-JBqnVZUl.js";
|
|
5
5
|
const R = /* @__PURE__ */ p({
|
|
6
6
|
...y("ActionButton", !1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-C4BrcXKG.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-C4BrcXKG.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-Cu_wyrUY.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("ActionButton",!1),__name:"ActionButton",props:{class:{},preIcon:{},postIcon:{},size:{},text:{},icon:{},active:{type:Boolean},badgeText:{},badgeIcon:{},postIconFlipOnDir:{},preIconFlipOnDir:{},badgeIconFlipOnDir:{},type:{},variant:{}},setup(r,{expose:s}){const c=r,i=e.useAttrs(),a=e.computed(()=>({...p.omit(i,"variant","loading","color"),...c})),o=e.ref();return s({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(a.value,{action:"",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t, c as r, b as e, A, a as v, _ as n } from "../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as t, c as r, b as e, A, a as v, _ as n } from "../Avatar.vue_vue_type_style_index_0_lang-BLPh8zCp.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Avatar,
|
|
4
4
|
r as AvatarOnlineAlignments,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-Duxj62Xn.js");exports.Avatar=e._sfc_main;exports.AvatarOnlineAlignments=e.AvatarOnlineAlignments;exports.AvatarShapes=e.AvatarShapes;exports.AvatarSizes=e.AvatarSizes;exports.AvatarStrokes=e.AvatarStrokes;exports.default=e._sfc_main;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as E, useSlots as F, computed as n, createElementBlock as _, openBlock as i, normalizeClass as p, createVNode as I, h as z, createBlock as A, unref as t, withCtx as b, createCommentVNode as x, Fragment as M, mergeProps as R, renderSlot as B, createTextVNode as $, toDisplayString as G } from "vue";
|
|
2
2
|
import { createContext as T, useEmitAsProps as H, AvatarRoot as J, AvatarImage as K, AvatarFallback as Q } from "radix-vue";
|
|
3
|
-
import {
|
|
3
|
+
import { getBemBlock as O, getBemElement as v, generateVariantClassList as f } from "@pantograph/utils";
|
|
4
4
|
import { cva as j } from "class-variance-authority";
|
|
5
5
|
import { g as q } from "./options-JBqnVZUl.js";
|
|
6
|
-
import { _ as U } from "./Popover.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { _ as U } from "./Popover.vue_vue_type_style_index_0_lang-BCFXul8O.js";
|
|
7
7
|
import "@iconify/vue";
|
|
8
|
-
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
9
|
-
import { _ as X } from "./Indicator.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js";
|
|
9
|
+
import { _ as X } from "./Indicator.vue_vue_type_script_setup_true_lang-Bsp8iIQN.js";
|
|
10
10
|
const [Y, Z] = T("AvatarGroup"), ue = /* @__PURE__ */ E({
|
|
11
11
|
...q("AvatarGroup"),
|
|
12
12
|
__name: "AvatarGroup",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),m=require("radix-vue"),s=require("@pantograph/utils"),z=require("class-variance-authority"),x=require("./options-B4iSAKol.js"),b=require("./Popover.vue_vue_type_style_index_0_lang-CYNcA-aI.js");require("@iconify/vue");const N=require("./Icon.vue_vue_type_style_index_0_lang-C00M2fnO.js"),G=require("./Indicator.vue_vue_type_script_setup_true_lang-26XUXdy9.js"),[y,S]=m.createContext("AvatarGroup"),P=e.defineComponent({...x.getComponentOptions("AvatarGroup"),__name:"AvatarGroup",props:{class:{},gutter:{type:Boolean},size:{},shape:{},popoverCls:{},maxCount:{}},setup(f){const r=f,p=e.useSlots(),n=e.computed(()=>r.size),a=e.computed(()=>r.shape),g=s.getBemBlock("avatar"),v=s.getBemElement(g,"group"),C=z.cva(v,{variants:{gutter:s.generateVariantClassList("gutter",v)}});S({size:n,shape:a});const l=e.computed(()=>r.maxCount?Number(r.maxCount):0),c=e.computed(()=>C({gutter:r.gutter})),u=()=>{const o=p.default?p.default():[];return l.value>1&&o.length>l.value?[...o.filter((d,i)=>i<l.value-1),e.h(b._sfc_main,{containerCls:r.popoverCls},{default:()=>e.h(V,{text:`+${o.length-l.value+1}`}),content:()=>e.h("div",{class:[c.value,r.class]},{default:()=>o.filter((d,i)=>i>=l.value-1)})})]:o};return(o,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([c.value,r.class])},[e.createVNode(u,{maxCount:o.maxCount},null,8,["maxCount"])],2))}}),_=["2xsm","xsm","sm","md","lg","xlg"],k=["gray","white"],A=["circle","square","rect"],h={start:"online-start",end:"online-end"},V=e.defineComponent({...x.getComponentOptions("Avatar"),__name:"Avatar",props:{src:{default:""},class:{},onlineColor:{default:"lime"},size:{default:"md"},stroke:{},shape:{default:"circle"},online:{type:Boolean},alt:{},fallback:{},text:{},icon:{default:"tabler:user"},onlineAlignment:{default:"start"},referrerPolicy:{},delayMs:{}},emits:["loadingStatusChange"],setup(f,{emit:r}){const p=e.useSlots(),n=s.getBemBlock("avatar"),a=f,g=r,v=m.useEmitAsProps(g),C=z.cva(n,{variants:{size:s.generateVariantClassList(_,n),stroke:s.generateVariantClassList(k,n),shape:s.generateVariantClassList(A,n),onlineAlignment:s.generateVariantClassList(h,n)}}),l=y({size:e.computed(()=>a.size),shape:e.computed(()=>a.shape)}),c=e.computed(()=>l.size.value??a.size),u=e.computed(()=>l.shape.value??a.shape),o=e.computed(()=>{const t=c.value&&_.includes(c.value)?c.value:"md",B=a.stroke&&k.includes(a.stroke)?a.stroke:"none",q=u.value&&A.includes(u.value)?u.value:"circle",E=h[a.onlineAlignment]?a.onlineAlignment:"start";return{size:t,stroke:B,shape:q,onlineAlignment:E}}),d=e.computed(()=>{switch(c.value){case"lg":case"xlg":return"tiny";default:return"tinier"}}),i=e.computed(()=>{switch(c.value){case"lg":case"xlg":return"sm";case"xsm":case"2xsm":return"3xsm";case"sm":case"md":default:return"xsm"}});return(t,B)=>(e.openBlock(),e.createBlock(e.unref(m.AvatarRoot),{as:"div",class:e.normalizeClass([e.unref(C)(o.value),a.class])},{default:e.withCtx(()=>[!p.default&&!t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.src?(e.openBlock(),e.createBlock(e.unref(m.AvatarImage),e.mergeProps({key:0},e.unref(v),{src:t.src,alt:t.alt,class:e.unref(s.getBemElement)(e.unref(n),"image")}),null,16,["src","alt","class"])):e.createCommentVNode("",!0),e.createVNode(e.unref(m.AvatarFallback),{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(n),"fallback"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"fallback",{},()=>[t.fallback?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(N._sfc_main),{key:0,icon:t.icon,size:i.value},null,8,["icon","size"])),e.createTextVNode(" "+e.toDisplayString(t.fallback),1)])]),_:3},8,["class"])],64)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(n),"image"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)])],2)),t.online?(e.openBlock(),e.createBlock(G._sfc_main,{key:2,color:t.onlineColor,size:d.value,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(n),"online"))},null,8,["color","size","class"])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});exports.AvatarOnlineAlignments=h;exports.AvatarShapes=A;exports.AvatarSizes=_;exports.AvatarStrokes=k;exports._sfc_main=V;exports._sfc_main$1=P;exports.injectAvatarGroupContext=y;exports.provideAvatarGroupContext=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-Duxj62Xn.js");exports.AvatarGroup=t._sfc_main$1;exports.injectAvatarGroupContext=t.injectAvatarGroupContext;exports.provideAvatarGroupContext=t.provideAvatarGroupContext;
|
package/dist/Badge/index.js
CHANGED
package/dist/Badge/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-BChsnh9M.js");exports.Badge=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u=require("./omit-C4BrcXKG.js"),t=require("./BaseBadge.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),u=require("./omit-C4BrcXKG.js"),t=require("./BaseBadge.vue_vue_type_style_index_0_lang-WTsL3poJ.js"),m=require("./options-B4iSAKol.js"),r=require("@pantograph/tokens"),d=e.defineComponent({...m.getComponentOptions("Badge",!1),__name:"Badge",props:{class:{},text:{},icon:{},flipOnDir:{},size:{},color:{}},setup(l){const o=l,g=e.useAttrs(),i=e.computed(()=>{const a=[...t.BadgeColors,...t.BadgeColorsSubtle],c={...Object.fromEntries(t.BadgeColors.map(s=>[s,r.getCssVar(`${s}-5`)])),...Object.fromEntries(t.BadgeColorsSubtle.map(s=>[s,r.getCssVar(`${s.replace("-subtle","")}-0`)])),"gray-subtle":r.getCssVar("gray-1")},n={...Object.fromEntries(t.BadgeColors.map(s=>[s,r.getCssVar("grayscale-light-0")])),yellow:r.getCssVar("grayscale-dark-0"),...Object.fromEntries(t.BadgeColorsSubtle.map(s=>[s,r.getCssVar(`${s.replace("-subtle","")}-5`)])),"gray-subtle":r.getCssVar("gray-6")};return o.color&&a.includes(o.color)?{bg:c[o.color],fg:n[o.color]}:{bg:r.getCssVar("primary-5"),fg:r.getCssVar("primary-oncolor")}}),p=e.computed(()=>({...u.omit(g,"type"),...o,...i.value}));return(a,c)=>(e.openBlock(),e.createBlock(t._sfc_main,e.mergeProps(p.value,{type:"pill"}),e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),n=>({name:n,fn:e.withCtx(s=>[e.renderSlot(a.$slots,n,e.normalizeProps(e.guardReactiveProps(s)))])}))]),1040))}});exports._sfc_main=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as u, computed as l, createBlock as b, openBlock as d, mergeProps as y, createSlots as _, renderList as B, withCtx as C, renderSlot as O, normalizeProps as $, guardReactiveProps as j } from "vue";
|
|
2
2
|
import { o as k } from "./omit-CD3OjwFx.js";
|
|
3
|
-
import { B as a, a as n, _ as E } from "./BaseBadge.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { B as a, a as n, _ as E } from "./BaseBadge.vue_vue_type_style_index_0_lang-CEI46Vj4.js";
|
|
4
4
|
import { g as h } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { getCssVar as r } from "@pantograph/tokens";
|
|
6
6
|
const z = /* @__PURE__ */ f({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as _, useSlots as h, computed as i, createElementBlock as u, openBlock as o, normalizeStyle as S, normalizeClass as D, unref as r, createCommentVNode as m, Fragment as O, createBlock as w, renderSlot as p, withCtx as V, createTextVNode as $, toDisplayString as F } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { getBemBlock as I, generateVariantClassList as l } from "@pantograph/utils";
|
|
3
3
|
import { cva as N } from "class-variance-authority";
|
|
4
4
|
import { g as T } from "./options-JBqnVZUl.js";
|
|
5
5
|
import "@iconify/vue";
|
|
6
|
-
import { _ as E } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { u as L } from "./index-
|
|
6
|
+
import { _ as E } from "./Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js";
|
|
7
|
+
import { u as L } from "./index-D5U1ryWK.js";
|
|
8
8
|
const f = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], b = ["rect", "pill", "minify"], M = [
|
|
9
9
|
"primary",
|
|
10
10
|
"red",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("@pantograph/utils"),B=require("class-variance-authority"),C=require("./options-B4iSAKol.js");require("@iconify/vue");const _=require("./Icon.vue_vue_type_style_index_0_lang-C00M2fnO.js"),x=require("./index-fCdmNGB1.js"),r=["2xsm","xsm","sm","md","tiny","tinier"],o=["rect","pill","minify"],z=["primary","red","orange","amber","yellow","lime","green","teal","cyan","sky","blue","ocean","violet","amethyst","fuchsia","pink","gray"],k=["primary-subtle","red-subtle","orange-subtle","amber-subtle","yellow-subtle","lime-subtle","green-subtle","teal-subtle","cyan-subtle","sky-subtle","blue-subtle","ocean-subtle","violet-subtle","amethyst-subtle","fuchsia-subtle","pink-subtle","gray-subtle"],S=e.defineComponent({...C.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{},text:{},bg:{},fg:{},br:{},type:{default:"pill"},icon:{},flipOnDir:{}},setup(u){const{getFlipOnDir:m}=x.useConfig(),d=m("flipOnDir"),i=l.getBemBlock("badge"),s=u,p=B.cva(i,{variants:{size:l.generateVariantClassList(r,i),type:l.generateVariantClassList(o,i),text:l.generateVariantClassList("text",i),icon:l.generateVariantClassList("icon",i),br:l.generateVariantClassList("br",i)}}),a=e.useSlots(),n=e.computed(()=>o.includes(s.type)?s.type:"pill"),f=e.computed(()=>!!(s.text||a.default)),g=e.computed(()=>!!(s.icon||a.icon)),c=e.computed(()=>{let t=r.includes(s.size)?s.size:"md";return t==="sm"&&n.value!=="rect"?n.value==="minify"?t="tiny":n.value==="pill"&&(t="md"):n.value==="minify"&&!["tiny","tinier"].includes(t)?t="tiny":n.value!=="minify"&&["tiny","tinier"].includes(t)&&(t="md"),t}),y=e.computed(()=>{switch(c.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),b=e.computed(()=>({size:c.value,type:n.value,text:f.value,icon:g.value,br:!!s.br})),v=e.computed(()=>{const t=a.icon??s.icon;return s.type==="rect"&&(a.default||s.text)?!1:t});return(t,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p)(b.value),s.class]),style:e.normalizeStyle({"--ptc-badge-fg":s.fg,"--ptc-badge-bg":s.bg,"--ptc-badge-br":s.br})},[n.value!=="minify"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v.value?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,icon:t.icon,size:y.value,flipOnDir:e.unref(d)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size","flipOnDir"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)])],64)):e.createCommentVNode("",!0)],6))}});exports.BadgeColors=z;exports.BadgeColorsSubtle=k;exports.BadgeSizes=r;exports.BadgeTypes=o;exports._sfc_main=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./Icon.vue_vue_type_style_index_0_lang-C00M2fnO.js"),S=require("./Spinner.vue_vue_type_style_index_0_lang-CTjUx8rR.js"),x=require("./Badge.vue_vue_type_script_setup_true_lang-BChsnh9M.js"),s=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-Dh51uD32.js"),a=require("@pantograph/utils"),h=require("class-variance-authority"),L=require("./options-B4iSAKol.js"),q=require("./index-fCdmNGB1.js"),B="2xsm",T=e.defineComponent({...L.getComponentOptions("BaseButton"),__name:"BaseButton",props:{class:{},text:{},size:{},color:{default:"primary"},type:{default:"fill"},variant:{},loading:{type:Boolean},action:{type:Boolean},active:{type:Boolean},badgeText:{},badgeIcon:{},icon:{},preIcon:{},postIcon:{},flipOnDir:{},preIconFlipOnDir:{},postIconFlipOnDir:{},badgeIconFlipOnDir:{}},setup(I,{expose:y}){const n=I,{getFlipOnDir:l}=q.useConfig(),_=l("flipOnDir"),z=l("preIconFlipOnDir"),C=l("postIconFlipOnDir"),b=l("badgeIconFlipOnDir"),o=a.getBemBlock("button"),k=h.cva(o,{variants:{size:a.generateVariantClassList(s.ButtonSizes,o),type:a.generateVariantClassList(s.ButtonTypes,o),color:a.generateVariantClassList(s.ButtonColors,o),variant:a.generateVariantClassList(s.ButtonVariants,o),action:a.generateVariantClassList("action",o),active:a.generateVariantClassList("active",o),text:a.generateVariantClassList("text",o),preIcon:a.generateVariantClassList("preIcon",o),postIcon:a.generateVariantClassList("postIcon",o),loading:a.generateVariantClassList("loading",o)}}),v=s.injectButtonGroupContext({size:e.computed(()=>n.size),variant:e.computed(()=>n.variant)}),c=e.computed(()=>n.variant??v.variant.value??"simple"),r=e.computed(()=>["icon","float"].includes(c.value)),i=e.useSlots(),D=e.computed(()=>{let t=s.ButtonTypes.includes(n.type)?n.type:"fill";const u=n.size??v.size.value,V=u&&s.ButtonSizes.includes(u)?u:"md";let p=n.color&&s.ButtonColors.includes(n.color)?n.color:"primary",d=c.value&&s.ButtonVariants.includes(c.value)?c.value:"simple";return n.action?(d==="float"&&(d="icon"),t==="fill"&&(t="outline"),p=void 0):d==="float"&&(t==="ghost"&&(t="fill"),["primary","gray"].includes(p)||(p="primary")),{size:V,type:t,color:p,variant:d,action:!!n.action,active:!!n.active,loading:!!n.loading,text:!r.value&&!!(n.text||i.default),preIcon:!r.value&&!!(n.preIcon||i.preIcon),postIcon:!r.value&&!!(n.postIcon||i.postIcon)}}),f=e.computed(()=>{switch(n.size){case"sm":return"3xsm";default:return"2xsm"}}),O=e.computed(()=>{switch(n.size){case"sm":return"3xsm";case"lg":return"xsm";case"md":default:return"2xsm"}}),g=e.ref();return y({focus(){var t;(t=g.value)==null||t.focus()},blur(){var t;(t=g.value)==null||t.blur()}}),(t,u)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass([e.unref(k)(D.value),n.class]),tabindex:"0",ref_key:"buttonRef",ref:g},[t.loading?(e.openBlock(),e.createBlock(S._sfc_main,{key:1,class:e.normalizeClass(e.unref(a.getBemElement)(e.unref(o),"loading")),size:f.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(t.preIcon||i.preIcon)&&!r.value?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,flipOnDir:e.unref(z),icon:t.preIcon,size:f.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"preIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(m._sfc_main,{key:1,icon:t.icon,size:O.value,flipOnDir:e.unref(_)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size","flipOnDir"])):e.renderSlot(t.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),t.action&&t.active&&!r.value&&(t.badgeText||i.badgeText||t.badgeIcon||i.badgeIcon)?e.renderSlot(t.$slots,"badge",e.normalizeProps(e.mergeProps({key:3},{color:t.$attrs.disabled?"gray":"primary",size:B})),()=>[e.createVNode(x._sfc_main,{text:t.badgeText,icon:t.badgeIcon,flipOnDir:e.unref(b),color:t.$attrs.disabled?"gray":"primary",size:B},e.createSlots({_:2},[i.badgeText?{name:"default",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"badgeText")]),key:"0"}:void 0,i.badgeIcon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"badgeIcon")]),key:"1"}:void 0]),1032,["text","icon","flipOnDir","color"])]):e.createCommentVNode("",!0),(t.postIcon||i.postIcon)&&!r.value?(e.openBlock(),e.createBlock(m._sfc_main,{key:4,flipOnDir:e.unref(C),icon:t.postIcon,size:f.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"postIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0)],64))],2))}});exports._sfc_main=T;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as A, computed as s, useSlots as G, ref as L, createElementBlock as D, openBlock as c, normalizeClass as O, unref as l, createBlock as v, Fragment as _, createCommentVNode as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as U } from "./Spinner.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as W } from "./Badge.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { defineComponent as A, computed as s, useSlots as G, ref as L, createElementBlock as D, openBlock as c, normalizeClass as O, unref as l, createBlock as v, Fragment as _, createCommentVNode as B, renderSlot as r, withCtx as p, createTextVNode as q, toDisplayString as H, normalizeProps as J, mergeProps as K, createVNode as M, createSlots as Q } from "vue";
|
|
2
|
+
import { _ as b } from "./Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js";
|
|
3
|
+
import { _ as U } from "./Spinner.vue_vue_type_style_index_0_lang-CBIZtgX4.js";
|
|
4
|
+
import { _ as W } from "./Badge.vue_vue_type_script_setup_true_lang-C8L2pGJ3.js";
|
|
5
|
+
import { B as k, b as $, a as C, c as F, i as X } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-pokTDMXb.js";
|
|
6
|
+
import { getBemBlock as Y, generateVariantClassList as t, getBemElement as Z } from "@pantograph/utils";
|
|
7
7
|
import { cva as ee } from "class-variance-authority";
|
|
8
8
|
import { g as oe } from "./options-JBqnVZUl.js";
|
|
9
|
-
import { u as ne } from "./index-
|
|
9
|
+
import { u as ne } from "./index-D5U1ryWK.js";
|
|
10
10
|
const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
11
11
|
...oe("BaseButton"),
|
|
12
12
|
__name: "BaseButton",
|
|
@@ -33,10 +33,10 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
33
33
|
setup(T, { expose: x }) {
|
|
34
34
|
const o = T, { getFlipOnDir: u } = ne(), h = u("flipOnDir"), P = u("preIconFlipOnDir"), V = u("postIconFlipOnDir"), w = u("badgeIconFlipOnDir"), n = Y("button"), N = ee(n, {
|
|
35
35
|
variants: {
|
|
36
|
-
size: t(
|
|
37
|
-
type: t(
|
|
38
|
-
color: t(
|
|
39
|
-
variant: t(
|
|
36
|
+
size: t(F, n),
|
|
37
|
+
type: t(C, n),
|
|
38
|
+
color: t($, n),
|
|
39
|
+
variant: t(k, n),
|
|
40
40
|
action: t("action", n),
|
|
41
41
|
active: t("active", n),
|
|
42
42
|
text: t("text", n),
|
|
@@ -47,10 +47,10 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
47
47
|
}), z = X({
|
|
48
48
|
size: s(() => o.size),
|
|
49
49
|
variant: s(() => o.variant)
|
|
50
|
-
}), f = s(() => o.variant ?? z.variant.value ?? "simple"),
|
|
51
|
-
let e =
|
|
52
|
-
const d = o.size ?? z.size.value, j = d &&
|
|
53
|
-
let m = o.color &&
|
|
50
|
+
}), f = s(() => o.variant ?? z.variant.value ?? "simple"), a = s(() => ["icon", "float"].includes(f.value)), i = G(), E = s(() => {
|
|
51
|
+
let e = C.includes(o.type) ? o.type : "fill";
|
|
52
|
+
const d = o.size ?? z.size.value, j = d && F.includes(d) ? d : "md";
|
|
53
|
+
let m = o.color && $.includes(o.color) ? o.color : "primary", g = f.value && k.includes(f.value) ? f.value : "simple";
|
|
54
54
|
return o.action ? (g === "float" && (g = "icon"), e === "fill" && (e = "outline"), m = void 0) : g === "float" && (e === "ghost" && (e = "fill"), ["primary", "gray"].includes(m) || (m = "primary")), {
|
|
55
55
|
size: j,
|
|
56
56
|
type: e,
|
|
@@ -59,9 +59,9 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
59
59
|
action: !!o.action,
|
|
60
60
|
active: !!o.active,
|
|
61
61
|
loading: !!o.loading,
|
|
62
|
-
text: !
|
|
63
|
-
preIcon: !
|
|
64
|
-
postIcon: !
|
|
62
|
+
text: !a.value && !!(o.text || i.default),
|
|
63
|
+
preIcon: !a.value && !!(o.preIcon || i.preIcon),
|
|
64
|
+
postIcon: !a.value && !!(o.postIcon || i.postIcon)
|
|
65
65
|
};
|
|
66
66
|
}), I = s(() => {
|
|
67
67
|
switch (o.size) {
|
|
@@ -101,7 +101,7 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
101
101
|
class: O(l(Z)(l(n), "loading")),
|
|
102
102
|
size: I.value
|
|
103
103
|
}, null, 8, ["class", "size"])) : (c(), D(_, { key: 0 }, [
|
|
104
|
-
(e.preIcon ||
|
|
104
|
+
(e.preIcon || i.preIcon) && !a.value ? (c(), v(b, {
|
|
105
105
|
key: 0,
|
|
106
106
|
flipOnDir: l(P),
|
|
107
107
|
icon: e.preIcon,
|
|
@@ -111,8 +111,8 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
111
111
|
r(e.$slots, "preIcon")
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
114
|
-
}, 8, ["flipOnDir", "icon", "size"])) :
|
|
115
|
-
|
|
114
|
+
}, 8, ["flipOnDir", "icon", "size"])) : B("", !0),
|
|
115
|
+
a.value ? (c(), v(b, {
|
|
116
116
|
key: 1,
|
|
117
117
|
icon: e.icon,
|
|
118
118
|
size: R.value,
|
|
@@ -125,7 +125,7 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
125
125
|
}, 8, ["icon", "size", "flipOnDir"])) : r(e.$slots, "default", { key: 2 }, () => [
|
|
126
126
|
q(H(e.text), 1)
|
|
127
127
|
]),
|
|
128
|
-
e.action && e.active && !
|
|
128
|
+
e.action && e.active && !a.value && (e.badgeText || i.badgeText || e.badgeIcon || i.badgeIcon) ? r(e.$slots, "badge", J(K({ key: 3 }, { color: e.$attrs.disabled ? "gray" : "primary", size: S })), () => [
|
|
129
129
|
M(W, {
|
|
130
130
|
text: e.badgeText,
|
|
131
131
|
icon: e.badgeIcon,
|
|
@@ -133,14 +133,14 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
133
133
|
color: e.$attrs.disabled ? "gray" : "primary",
|
|
134
134
|
size: S
|
|
135
135
|
}, Q({ _: 2 }, [
|
|
136
|
-
|
|
136
|
+
i.badgeText ? {
|
|
137
137
|
name: "default",
|
|
138
138
|
fn: p(() => [
|
|
139
139
|
r(e.$slots, "badgeText")
|
|
140
140
|
]),
|
|
141
141
|
key: "0"
|
|
142
142
|
} : void 0,
|
|
143
|
-
|
|
143
|
+
i.badgeIcon ? {
|
|
144
144
|
name: "icon",
|
|
145
145
|
fn: p(() => [
|
|
146
146
|
r(e.$slots, "badgeIcon")
|
|
@@ -148,8 +148,8 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
148
148
|
key: "1"
|
|
149
149
|
} : void 0
|
|
150
150
|
]), 1032, ["text", "icon", "flipOnDir", "color"])
|
|
151
|
-
]) :
|
|
152
|
-
(e.postIcon ||
|
|
151
|
+
]) : B("", !0),
|
|
152
|
+
(e.postIcon || i.postIcon) && !a.value ? (c(), v(b, {
|
|
153
153
|
key: 4,
|
|
154
154
|
flipOnDir: l(V),
|
|
155
155
|
icon: e.postIcon,
|
|
@@ -159,7 +159,7 @@ const S = "2xsm", fe = /* @__PURE__ */ A({
|
|
|
159
159
|
r(e.$slots, "postIcon")
|
|
160
160
|
]),
|
|
161
161
|
_: 3
|
|
162
|
-
}, 8, ["flipOnDir", "icon", "size"])) :
|
|
162
|
+
}, 8, ["flipOnDir", "icon", "size"])) : B("", !0)
|
|
163
163
|
], 64))
|
|
164
164
|
], 2));
|
|
165
165
|
}
|
package/dist/Button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Button.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Button.vue_vue_type_script_setup_true_lang-C8xrlHDs.js");exports.Button=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, useAttrs as l, computed as m, ref as u, createBlock as f, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
2
|
import { o as y } from "./omit-CD3OjwFx.js";
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-Cxd4xw3_.js";
|
|
4
4
|
import { g as O } from "./options-JBqnVZUl.js";
|
|
5
5
|
const z = /* @__PURE__ */ c({
|
|
6
6
|
...O("Button", !1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-C4BrcXKG.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-C4BrcXKG.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-Cu_wyrUY.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("Button",!1),__name:"Button",props:{class:{},type:{},color:{},loading:{type:Boolean},preIcon:{},postIcon:{},size:{},text:{},postIconFlipOnDir:{},preIconFlipOnDir:{}},setup(s,{expose:r}){const c=s,i=e.useAttrs(),a=e.computed(()=>({...p.omit(i,"variant","icon","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(a.value,{variant:"simple",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ButtonGroup.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ButtonGroup.vue_vue_type_script_setup_true_lang-Dh51uD32.js");exports.ButtonGroup=t._sfc_main;exports.default=t._sfc_main;exports.injectButtonGroupContext=t.injectButtonGroupContext;exports.provideButtonGroupContext=t.provideButtonGroupContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),o=require("@pantograph/utils"),c=require("./options-B4iSAKol.js"),l=require("class-variance-authority"),B=require("radix-vue"),m=["simple","icon","float"],d=["fill","outline","ghost"],g=["primary","danger","success","warning","gray"],r=["sm","md","lg"],C=[...r,"none"],[f,a]=B.createContext("ButtonGroup"),v=t.defineComponent({...c.getComponentOptions("ButtonGroup"),__name:"ButtonGroup",props:{class:{},size:{default:"md"},variant:{default:"simple"},gap:{},split:{type:Boolean,default:!0}},setup(i){const e=i,u=o.getBemBlock("button"),n=o.getBemElement(u,"group"),p=l.cva(n,{variants:{gap:o.generateVariantClassList(C,n),split:o.generateVariantClassList("split",n)}});return a({size:t.computed(()=>e.size),variant:t.computed(()=>e.variant)}),(s,G)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(p)({gap:e.gap??e.size,split:s.split}),e.class])},[t.renderSlot(s.$slots,"default")],2))}});exports.ButtonColors=g;exports.ButtonSizes=r;exports.ButtonTypes=d;exports.ButtonVariants=m;exports._sfc_main=v;exports.injectButtonGroupContext=f;exports.provideButtonGroupContext=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, computed as n, createElementBlock as l, openBlock as u, normalizeClass as c, unref as m, renderSlot as B } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { getBemBlock as f, getBemElement as g, generateVariantClassList as e } from "@pantograph/utils";
|
|
3
3
|
import { g as d } from "./options-JBqnVZUl.js";
|
|
4
4
|
import { cva as C } from "class-variance-authority";
|
|
5
5
|
import { createContext as v } from "radix-vue";
|
|
@@ -14,7 +14,7 @@ const S = ["simple", "icon", "float"], V = ["fill", "outline", "ghost"], j = ["p
|
|
|
14
14
|
split: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
16
|
setup(a) {
|
|
17
|
-
const t = a, r =
|
|
17
|
+
const t = a, r = f("button"), o = g(r, "group"), p = C(o, {
|
|
18
18
|
variants: {
|
|
19
19
|
gap: e(z, o),
|
|
20
20
|
split: e("split", o)
|
package/dist/Checkbox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-C7it9Wv8.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Checkbox,
|
|
4
4
|
s as CheckboxSizes,
|
|
@@ -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-BuqfswxO.js");exports.Checkbox=e._sfc_main;exports.CheckboxSizes=e.CheckboxSizes;exports.default=e._sfc_main;exports.useColoredPantographCheckbox=e.useColoredPantographCheckbox;exports.useColoredPantographCheckboxGroup=e.useColoredPantographCheckboxGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),h=require("radix-vue"),l=require("@pantograph/tokens"),r=require("@pantograph/utils"),V=require("class-variance-authority"),x=require("./options-B4iSAKol.js"),P=require("./omit-C4BrcXKG.js"),w=require("./Icon.vue_vue_type_style_index_0_lang-C00M2fnO.js"),L=require("./useInputDataStates-CbRgNQqU.js"),g=["2xsm","xsm"],I=a=>({"--ptc-checkbox-bg":`var(--${l.prefixTokens}-${a}-5)`,"--ptc-checkbox-bg-hover":`var(--${l.prefixTokens}-${a}-4)`,"--ptc-checkbox-bg-focus":`var(--${l.prefixTokens}-${a}-6)`,"--ptc-checkbox-br-focus":`var(--${l.prefixTokens}-${a}-6)`,"--ptc-checkbox-bg-active":`var(--${l.prefixTokens}-${a}-7)`}),N=a=>({"--ptc-group-checkbox-bg":`var(--${l.prefixTokens}-${a}-5)`,"--ptc-group-checkbox-bg-hover":`var(--${l.prefixTokens}-${a}-4)`,"--ptc-group-checkbox-bg-focus":`var(--${l.prefixTokens}-${a}-6)`,"--ptc-group-checkbox-br-focus":`var(--${l.prefixTokens}-${a}-6)`,"--ptc-group-checkbox-bg-active":`var(--${l.prefixTokens}-${a}-7)`}),[B,$]=h.createContext("CheckboxGroup"),A=e.defineComponent({...x.getComponentOptions("CheckboxGroup"),__name:"CheckboxGroup",props:{value:{},size:{},disabled:{type:Boolean},name:{},options:{}},emits:["update:value","change"],setup(a,{emit:m}){const c=m,t=a,s=e.ref(t.value??[]);e.watch(()=>t.value,()=>{s.value=t.value??[]});const u=e.computed({get(){return t.value?t.value:s.value},set(n){t.value||(s.value=n),c("update:value",n),c("change",n)}}),f=e.computed(()=>t.size),i=e.computed(()=>t.disabled?!0:void 0);return $({model:u,size:f,disabled:i}),(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(n.$slots,"default",{},()=>{var p;return[(p=n.options)!=null&&p.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.options,k=>(e.openBlock(),e.createBlock(z,e.mergeProps({key:k.value,ref_for:!0},k),null,16))),128)):e.createCommentVNode("",!0)]})]))}}),D=["for"],z=e.defineComponent({...x.getComponentOptions("Checkbox"),__name:"Checkbox",props:{size:{default:"xsm"},class:{},rootCls:{},indicatorCls:{},indeterminateCls:{},labelCls:{},label:{},value:{},id:{},valueAsLabel:{type:Boolean,default:!0},defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{}},emits:["update:checked","change","blur","focus"],setup(a,{emit:m}){const c=r.getBemBlock("checkbox"),t=a,s=B({}),u=m,f=e.useSlots(),i=e.ref(t.checked??!1);e.watch(()=>t.checked,()=>{i.value=t.checked??!1});const n=e.computed({get(){var o;return(o=s.model)!=null&&o.value?t.value!==void 0&&s.model.value.includes(t.value):t.checked!==void 0?t.checked:i.value},set(o){var d;if((d=s.model)!=null&&d.value){if(t.value!==void 0){const v=s.model.value.indexOf(t.value);o&&v===-1?s.model.value=[...s.model.value,t.value]:!o&&v!==-1&&(s.model.value=s.model.value.filter(G=>G!==t.value))}}else t.checked===void 0&&(i.value=o),u("update:checked",o),u("change",o)}}),b=e.computed(()=>t.id??r.usePCId(c)),p=e.computed(()=>{var o;return{disabled:((o=s.disabled)==null?void 0:o.value)??t.disabled,...T.value,...P.omit(t,"size","class","label","disabled","checked","id","rootCls","indicatorCls","indeterminateCls","labelCls")}}),k=V.cva(c,{variants:{size:r.generateVariantClassList(g,c)}}),y=e.computed(()=>t.label||f.default||t.value&&t.valueAsLabel),_=e.computed(()=>{if(t.label)return t.label;if(t.value&&t.valueAsLabel)return t.value}),C=e.computed(()=>{var o;return((o=s.size)==null?void 0:o.value)??t.size}),q=e.computed(()=>{switch(C.value){case"xsm":return"2xsm";case"2xsm":default:return"3xsm"}}),{rootBindings:S,inputBindings:T}=L.UseInputDataStates({getDisabled:()=>{var o;return((o=s.disabled)==null?void 0:o.value)??t.disabled},emit:u}),E=()=>n.value=!n.value;return(o,d)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(r.getBemElement)(e.unref(c),"root"),o.rootCls]},e.unref(S)),[e.createVNode(e.unref(h.CheckboxRoot),e.mergeProps({onKeyup:e.withKeys(E,["enter"])},p.value,{checked:n.value,"onUpdate:checked":d[0]||(d[0]=v=>n.value=v),id:b.value,class:[e.unref(k)({size:C.value}),t.class]}),{default:e.withCtx(()=>[e.createVNode(e.unref(h.CheckboxIndicator),{class:e.normalizeClass([e.unref(r.getBemElement)(e.unref(c),"indicator"),o.indicatorCls]),asChild:""},{default:e.withCtx(()=>[t.checked!="indeterminate"?(e.openBlock(),e.createBlock(w._sfc_main,{key:0,icon:"tabler:check",size:q.value},null,8,["size"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([e.unref(r.getBemElement)(e.unref(c),"indeterminate"),o.indeterminateCls])},null,2))]),_:1},8,["class"])]),_:1},16,["checked","id","class"]),y.value?(e.openBlock(),e.createElementBlock("label",{key:0,for:b.value,class:e.normalizeClass([e.unref(r.getBemElement)(e.unref(c),"label"),o.labelCls])},[e.renderSlot(o.$slots,"default",{checked:o.checked,disabled:o.disabled,required:o.required},()=>[e.createTextVNode(e.toDisplayString(_.value),1)])],10,D)):e.createCommentVNode("",!0)],16))}});exports.CheckboxSizes=g;exports._sfc_main=z;exports._sfc_main$1=A;exports.injectCheckboxGroupContext=B;exports.provideCheckboxGroupContext=$;exports.useColoredPantographCheckbox=I;exports.useColoredPantographCheckboxGroup=N;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { defineComponent as S, ref as _, watch as L, computed as
|
|
1
|
+
import { defineComponent as S, ref as _, watch as L, computed as r, createElementBlock as p, openBlock as i, renderSlot as G, createCommentVNode as w, Fragment as K, renderList as O, createBlock as V, mergeProps as $, useSlots as T, unref as l, createVNode as y, withKeys as j, withCtx as B, normalizeClass as x, createTextVNode as F, toDisplayString as R } from "vue";
|
|
2
2
|
import { createContext as H, CheckboxRoot as J, CheckboxIndicator as M } from "radix-vue";
|
|
3
3
|
import { prefixTokens as n } from "@pantograph/tokens";
|
|
4
|
-
import {
|
|
5
|
-
import { cva as
|
|
4
|
+
import { getBemBlock as Q, usePCId as W, generateVariantClassList as X, getBemElement as f } from "@pantograph/utils";
|
|
5
|
+
import { cva as Y } from "class-variance-authority";
|
|
6
6
|
import { g as P } from "./options-JBqnVZUl.js";
|
|
7
|
-
import { o as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as ee } from "./useId-DvOSMFGX.js";
|
|
7
|
+
import { o as Z } from "./omit-CD3OjwFx.js";
|
|
8
|
+
import { _ as ee } from "./Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js";
|
|
10
9
|
import { U as ae } from "./useInputDataStates-CZbdWpyp.js";
|
|
11
|
-
const te = ["2xsm", "xsm"],
|
|
10
|
+
const te = ["2xsm", "xsm"], he = (t) => ({
|
|
12
11
|
"--ptc-checkbox-bg": `var(--${n}-${t}-5)`,
|
|
13
12
|
"--ptc-checkbox-bg-hover": `var(--${n}-${t}-4)`,
|
|
14
13
|
"--ptc-checkbox-bg-focus": `var(--${n}-${t}-6)`,
|
|
15
14
|
"--ptc-checkbox-br-focus": `var(--${n}-${t}-6)`,
|
|
16
15
|
"--ptc-checkbox-bg-active": `var(--${n}-${t}-7)`
|
|
17
|
-
}),
|
|
16
|
+
}), fe = (t) => ({
|
|
18
17
|
"--ptc-group-checkbox-bg": `var(--${n}-${t}-5)`,
|
|
19
18
|
"--ptc-group-checkbox-bg-hover": `var(--${n}-${t}-4)`,
|
|
20
19
|
"--ptc-group-checkbox-bg-focus": `var(--${n}-${t}-6)`,
|
|
21
20
|
"--ptc-group-checkbox-br-focus": `var(--${n}-${t}-6)`,
|
|
22
21
|
"--ptc-group-checkbox-bg-active": `var(--${n}-${t}-7)`
|
|
23
|
-
}), [oe, se] = H("CheckboxGroup"),
|
|
22
|
+
}), [oe, se] = H("CheckboxGroup"), ke = /* @__PURE__ */ S({
|
|
24
23
|
...P("CheckboxGroup"),
|
|
25
24
|
__name: "CheckboxGroup",
|
|
26
25
|
props: {
|
|
@@ -32,21 +31,21 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
32
31
|
},
|
|
33
32
|
emits: ["update:value", "change"],
|
|
34
33
|
setup(t, { emit: k }) {
|
|
35
|
-
const
|
|
34
|
+
const c = k, e = t, o = _(e.value ?? []);
|
|
36
35
|
L(
|
|
37
36
|
() => e.value,
|
|
38
37
|
() => {
|
|
39
38
|
o.value = e.value ?? [];
|
|
40
39
|
}
|
|
41
40
|
);
|
|
42
|
-
const u =
|
|
41
|
+
const u = r({
|
|
43
42
|
get() {
|
|
44
43
|
return e.value ? e.value : o.value;
|
|
45
44
|
},
|
|
46
45
|
set(s) {
|
|
47
|
-
e.value || (o.value = s),
|
|
46
|
+
e.value || (o.value = s), c("update:value", s), c("change", s);
|
|
48
47
|
}
|
|
49
|
-
}), C =
|
|
48
|
+
}), C = r(() => e.size), d = r(() => e.disabled ? !0 : void 0);
|
|
50
49
|
return se({
|
|
51
50
|
model: u,
|
|
52
51
|
size: C,
|
|
@@ -55,7 +54,7 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
55
54
|
G(s.$slots, "default", {}, () => {
|
|
56
55
|
var m;
|
|
57
56
|
return [
|
|
58
|
-
(m = s.options) != null && m.length ? (i(!0), p(K, { key: 0 }, O(s.options, (b) => (i(), V(
|
|
57
|
+
(m = s.options) != null && m.length ? (i(!0), p(K, { key: 0 }, O(s.options, (b) => (i(), V(ce, $({
|
|
59
58
|
key: b.value,
|
|
60
59
|
ref_for: !0
|
|
61
60
|
}, b), null, 16))), 128)) : w("", !0)
|
|
@@ -63,7 +62,7 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
63
62
|
})
|
|
64
63
|
]));
|
|
65
64
|
}
|
|
66
|
-
}), le = ["for"],
|
|
65
|
+
}), le = ["for"], ce = /* @__PURE__ */ S({
|
|
67
66
|
...P("Checkbox"),
|
|
68
67
|
__name: "Checkbox",
|
|
69
68
|
props: {
|
|
@@ -85,14 +84,14 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
85
84
|
},
|
|
86
85
|
emits: ["update:checked", "change", "blur", "focus"],
|
|
87
86
|
setup(t, { emit: k }) {
|
|
88
|
-
const
|
|
87
|
+
const c = Q("checkbox"), e = t, o = oe({}), u = k, C = T(), d = _(e.checked ?? !1);
|
|
89
88
|
L(
|
|
90
89
|
() => e.checked,
|
|
91
90
|
() => {
|
|
92
91
|
d.value = e.checked ?? !1;
|
|
93
92
|
}
|
|
94
93
|
);
|
|
95
|
-
const s =
|
|
94
|
+
const s = r({
|
|
96
95
|
get() {
|
|
97
96
|
var a;
|
|
98
97
|
return (a = o.model) != null && a.value ? e.value !== void 0 && o.model.value.includes(e.value) : e.checked !== void 0 ? e.checked : d.value;
|
|
@@ -109,12 +108,12 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
109
108
|
} else
|
|
110
109
|
e.checked === void 0 && (d.value = a), u("update:checked", a), u("change", a);
|
|
111
110
|
}
|
|
112
|
-
}), g =
|
|
111
|
+
}), g = r(() => e.id ?? W(c)), m = r(() => {
|
|
113
112
|
var a;
|
|
114
113
|
return {
|
|
115
114
|
disabled: ((a = o.disabled) == null ? void 0 : a.value) ?? e.disabled,
|
|
116
115
|
...N.value,
|
|
117
|
-
...
|
|
116
|
+
...Z(
|
|
118
117
|
e,
|
|
119
118
|
"size",
|
|
120
119
|
"class",
|
|
@@ -128,17 +127,17 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
128
127
|
"labelCls"
|
|
129
128
|
)
|
|
130
129
|
};
|
|
131
|
-
}), b =
|
|
130
|
+
}), b = Y(c, {
|
|
132
131
|
variants: {
|
|
133
|
-
size:
|
|
132
|
+
size: X(te, c)
|
|
134
133
|
}
|
|
135
|
-
}), q =
|
|
134
|
+
}), q = r(() => e.label || C.default || e.value && e.valueAsLabel), A = r(() => {
|
|
136
135
|
if (e.label) return e.label;
|
|
137
136
|
if (e.value && e.valueAsLabel) return e.value;
|
|
138
|
-
}), z =
|
|
137
|
+
}), z = r(() => {
|
|
139
138
|
var a;
|
|
140
139
|
return ((a = o.size) == null ? void 0 : a.value) ?? e.size;
|
|
141
|
-
}), D =
|
|
140
|
+
}), D = r(() => {
|
|
142
141
|
switch (z.value) {
|
|
143
142
|
case "xsm":
|
|
144
143
|
return "2xsm";
|
|
@@ -154,7 +153,7 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
154
153
|
emit: u
|
|
155
154
|
}), U = () => s.value = !s.value;
|
|
156
155
|
return (a, v) => (i(), p("div", $({
|
|
157
|
-
class: [l(f)(l(
|
|
156
|
+
class: [l(f)(l(c), "root"), a.rootCls]
|
|
158
157
|
}, l(I)), [
|
|
159
158
|
y(l(J), $({
|
|
160
159
|
onKeyup: j(U, ["enter"])
|
|
@@ -166,17 +165,17 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
166
165
|
}), {
|
|
167
166
|
default: B(() => [
|
|
168
167
|
y(l(M), {
|
|
169
|
-
class: x([l(f)(l(
|
|
168
|
+
class: x([l(f)(l(c), "indicator"), a.indicatorCls]),
|
|
170
169
|
asChild: ""
|
|
171
170
|
}, {
|
|
172
171
|
default: B(() => [
|
|
173
|
-
e.checked != "indeterminate" ? (i(), V(
|
|
172
|
+
e.checked != "indeterminate" ? (i(), V(ee, {
|
|
174
173
|
key: 0,
|
|
175
174
|
icon: "tabler:check",
|
|
176
175
|
size: D.value
|
|
177
176
|
}, null, 8, ["size"])) : (i(), p("span", {
|
|
178
177
|
key: 1,
|
|
179
|
-
class: x([l(f)(l(
|
|
178
|
+
class: x([l(f)(l(c), "indeterminate"), a.indeterminateCls])
|
|
180
179
|
}, null, 2))
|
|
181
180
|
]),
|
|
182
181
|
_: 1
|
|
@@ -187,7 +186,7 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
187
186
|
q.value ? (i(), p("label", {
|
|
188
187
|
key: 0,
|
|
189
188
|
for: g.value,
|
|
190
|
-
class: x([l(f)(l(
|
|
189
|
+
class: x([l(f)(l(c), "label"), a.labelCls])
|
|
191
190
|
}, [
|
|
192
191
|
G(a.$slots, "default", {
|
|
193
192
|
checked: a.checked,
|
|
@@ -202,10 +201,10 @@ const te = ["2xsm", "xsm"], fe = (t) => ({
|
|
|
202
201
|
});
|
|
203
202
|
export {
|
|
204
203
|
te as C,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
ce as _,
|
|
205
|
+
fe as a,
|
|
206
|
+
ke as b,
|
|
208
207
|
oe as i,
|
|
209
208
|
se as p,
|
|
210
|
-
|
|
209
|
+
he as u
|
|
211
210
|
};
|
|
@@ -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-BuqfswxO.js");exports.CheckboxGroup=e._sfc_main$1;exports.injectCheckboxGroupContext=e.injectCheckboxGroupContext;exports.provideCheckboxGroupContext=e.provideCheckboxGroupContext;
|
|
@@ -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-D_Q2AACS.js");exports.ColorPicker=e._sfc_main;exports.default=e._sfc_main;exports.injectColorPickerContext=e.injectColorPickerContext;exports.provideColorPickerContext=e.provideColorPickerContext;
|