@pantograph/vue 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/ActionButton.d.ts +3 -1
- 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-DcBX3a1o.js → ActionButton.vue_vue_type_script_setup_true_lang-B0eNtCzk.js} +2 -2
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DFub0Hcl.js → ActionButton.vue_vue_type_script_setup_true_lang-BIWVFbea.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-CVVcfxyr.js → Alert.vue_vue_type_style_index_0_lang-BSIcQ4DS.js} +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-CaTNrrHL.js → Alert.vue_vue_type_style_index_0_lang-cIZRz6sS.js} +4 -4
- package/dist/Avatar/Avatar.d.ts +3 -3
- 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-CX1sta-J.js → Avatar.vue_vue_type_style_index_0_lang-CBVeKSHl.js} +4 -4
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DR1jvjrw.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-BuOGp5iZ.js → Badge.vue_vue_type_script_setup_true_lang-CRBo7E6c.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DmB7tI3W.js → Badge.vue_vue_type_script_setup_true_lang-DZeztsJc.js} +2 -2
- package/dist/Base/BaseButton/BaseButton.d.ts +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Bm7Ws0Br.js → BaseBadge.vue_vue_type_style_index_0_lang-B6UPA38N.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Dyf5Itew.js → BaseBadge.vue_vue_type_style_index_0_lang-GKHPOXfN.js} +1 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CSmk6-57.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DrP39U4f.js → BaseButton.vue_vue_type_style_index_0_lang-w7u610EL.js} +6 -6
- package/dist/Button/Button.d.ts +3 -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-C_gtO_u4.js → Button.vue_vue_type_script_setup_true_lang-CSJG3-ae.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-iG80XOZV.js → Button.vue_vue_type_script_setup_true_lang-CmnxuKmC.js} +2 -2
- 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-BR6VXq_C.js → ButtonGroup.vue_vue_type_script_setup_true_lang-MzFTjLDZ.js} +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-pO76J3IF.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +11 -4
- 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-BUsaushG.js +215 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DlhaSr0r.js +1 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-B5ysLVmU.js → Chip.vue_vue_type_style_index_0_lang-AsBzrLnx.js} +2 -2
- package/dist/{Chip.vue_vue_type_style_index_0_lang-BhblTbNP.js → Chip.vue_vue_type_style_index_0_lang-DAMN8Pat.js} +1 -1
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-DD3LQS6y.js +1 -0
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-DS4NmCJg.js → ChipGroup.vue_vue_type_style_index_0_lang-rpHI86wu.js} +2 -2
- 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-C2VdXKDc.js → ColorPicker.vue_vue_type_style_index_0_lang-BwQMhXhh.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-D6ZB-_t8.js → ColorPicker.vue_vue_type_style_index_0_lang-C10d9ifa.js} +4 -4
- 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-DimJxsDn.js → ColorSwatch.vue_vue_type_style_index_0_lang-Bt7cQXJ-.js} +3 -3
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-KlMoI_Hp.js → ColorSwatch.vue_vue_type_style_index_0_lang-Cow-jRwT.js} +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-B29VSSji.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CQJBGM6K.js} +21 -21
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Dmq99tNS.js +1 -0
- 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-D6yA0C2q.js → ColorTrigger.vue_vue_type_style_index_0_lang-BixlBGGN.js} +16 -16
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-Bk1z9mQB.js → ColorTrigger.vue_vue_type_style_index_0_lang-DzRGz03R.js} +1 -1
- package/dist/ConfigProvider/index.js +4 -4
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-B46DyEKC.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-DZrfyqy1.js → DataTable.vue_vue_type_style_index_0_lang-B_pmXaRS.js} +285 -286
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-CSbBpFWB.js → DropZone.vue_vue_type_style_index_0_lang-Cn0joiBW.js} +2 -2
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-C1CnbFOE.js → DropZone.vue_vue_type_style_index_0_lang-iZaJAHgd.js} +1 -1
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-B39Mn26P.js → Empty.vue_vue_type_style_index_0_lang-h8MWwTRY.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-BqFgkYhC.js → Empty.vue_vue_type_style_index_0_lang-j4NDDwxW.js} +1 -1
- package/dist/FloatButton/FloatButton.d.ts +3 -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-CNVlSUPj.js → FloatButton.vue_vue_type_script_setup_true_lang-CvQ3HHH8.js} +2 -2
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Blj-9oN5.js → FloatButton.vue_vue_type_script_setup_true_lang-nOzkjuVx.js} +1 -1
- package/dist/Form/FormItem.d.ts +2 -2
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-DkAsuRzx.js → GOPicker.vue_vue_type_style_index_0_lang-CKOLjTAw.js} +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-vGlNQUoO.js → GOPicker.vue_vue_type_style_index_0_lang-YsBsYzMO.js} +11 -11
- 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-BTsn7nLs.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C-x3X735.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CEOGWwJM.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DA2fe1n4.js} +3 -3
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-HcFe6_Vb.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CC3p20Tg.js} +2 -2
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DI_xE1fO.js +1 -0
- 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-CIFtTipO.js +9 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-CpvDQCOg.js +3744 -0
- package/dist/IconButton/IconButton.d.ts +3 -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-D388m6fm.js → IconButton.vue_vue_type_script_setup_true_lang-COiaP6-B.js} +2 -2
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-m3mR6VEM.js → IconButton.vue_vue_type_script_setup_true_lang-Dw89u232.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-DPfNYN67.js → Image.vue_vue_type_style_index_0_lang-CwYetQrM.js} +2 -2
- package/dist/{Image.vue_vue_type_style_index_0_lang-DLb5knce.js → Image.vue_vue_type_style_index_0_lang-D_sqFods.js} +1 -1
- 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-CsjGc54Z.js → IndentLevel.vue_vue_type_style_index_0_lang-BVtAN0Og.js} +6 -6
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-k5iZOhVO.js → IndentLevel.vue_vue_type_style_index_0_lang-DQHWuDOz.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-CPAOryUb.js → Indicator.vue_vue_type_script_setup_true_lang-Bv33d-sy.js} +2 -2
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CRiAYdPc.js → Indicator.vue_vue_type_script_setup_true_lang-TIymCipl.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-CTb4MXkG.js → Input.vue_vue_type_style_index_0_lang-CZCW5FNF.js} +1 -1
- package/dist/{Input.vue_vue_type_style_index_0_lang-CM5QrDtQ.js → Input.vue_vue_type_style_index_0_lang-D-5lM9jt.js} +25 -25
- 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-BQQ0nAvH.js → Kbd.vue_vue_type_style_index_0_lang-BfteklVJ.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-Dj0JiHQo.js → Kbd.vue_vue_type_style_index_0_lang-CCgfPLZn.js} +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-D6XzXTaK.js +1 -0
- package/dist/{Link.vue_vue_type_style_index_0_lang-C_mBWT2_.js → Link.vue_vue_type_style_index_0_lang-DG28PgqB.js} +18 -19
- 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-CxAgw2gt.js → Menu.vue_vue_type_style_index_0_lang-BrnaLusN.js} +22 -23
- package/dist/Menu.vue_vue_type_style_index_0_lang-CyYhodWd.js +1 -0
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Popover/Popover.d.ts +78 -30
- 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-BklvbKcI.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-BHPFTCxh.js → Popover.vue_vue_type_style_index_0_lang-Nc78vcLj.js} +19 -18
- package/dist/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/RadioGroup/RadioGroupItem.d.ts +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-CM5wgorK.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-CWL4InJh.js → RadioGroup.vue_vue_type_script_setup_true_lang-_JHawXtl.js} +8 -8
- package/dist/ScrollContainer/ScrollContainer.d.ts +105 -442
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-BCifzLd0.js → ScrollContainer.vue_vue_type_style_index_0_lang-C9wALvlT.js} +2 -2
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DMSP8-2P.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-A9e6rEAD.js → Shortcut.vue_vue_type_style_index_0_lang-BVZMx2lR.js} +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-BYLoJiAu.js → Shortcut.vue_vue_type_style_index_0_lang-DOOFhmFt.js} +2 -2
- 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-B2IAgHJe.js → Spinner.vue_vue_type_style_index_0_lang-8jSg4kDU.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BXIx0zui.js → Spinner.vue_vue_type_style_index_0_lang-hnGKuGCg.js} +1 -1
- package/dist/Switch/Switch.d.ts +17 -4
- 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-CCyWevBz.js +137 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-CXl-twKR.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-CfNfd4pR.js → THead.vue_vue_type_style_index_0_lang-ByopipuK.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-BtoA25fT.js → THead.vue_vue_type_style_index_0_lang-CgYhkGxH.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +168 -682
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-CZ1XTsOk.js → Textarea.vue_vue_type_style_index_0_lang-DHlg1Lpw.js} +11 -11
- package/dist/Textarea.vue_vue_type_style_index_0_lang-DTiYWQtC.js +1 -0
- 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-DGZo_1ma.js → Tree.vue_vue_type_style_index_0_lang-BtdRHKAx.js} +36 -36
- package/dist/Tree.vue_vue_type_style_index_0_lang-Cyg5lThY.js +1 -0
- package/dist/index.js +45 -45
- package/dist/index.umd.cjs +1 -1
- package/dist/{uniq-CU6bG3wx.js → uniq-DQ1DR2NQ.js} +1 -1
- package/dist/{uniq-3GxRIp2w.js → uniq-DUBh_cnK.js} +3 -3
- package/dist/{useInputDataStates-Dc5NKjxO.js → useInputDataStates-Bbj0JbCD.js} +10 -10
- package/dist/{useInputDataStates-DFBr_6zP.js → useInputDataStates-NUYy6fip.js} +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.umd.cjs +1 -1
- package/package.json +2 -2
- package/dist/Avatar.vue_vue_type_style_index_0_lang-CPQs2Rtc.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-MMg5J1BM.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BMgmz-S9.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BSodliHF.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DJnxBJl5.js +0 -212
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-BELThyi5.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C6B1fiFQ.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-BPK2BeQg.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BQoxpyPr.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CaH23-ZR.js +0 -3688
- package/dist/Icon.vue_vue_type_style_index_0_lang-DfjbwGzY.js +0 -9
- package/dist/Link.vue_vue_type_style_index_0_lang-Dt4HGYZt.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-DDpRuAzz.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CuNiigpu.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-D3LRE5oP.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-V-T6wrV1.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DFBf9wjn.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DvbdWfQF.js +0 -108
- package/dist/Textarea.vue_vue_type_style_index_0_lang-DPm_-6E3.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-DZy7ixTB.js +0 -1
- package/dist/isEmpty-CbPTzk3Q.js +0 -1
- package/dist/isEmpty-Cv0scv9v.js +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as r, a as e, S as l, _ as n } from "../ScrollContainer.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as r, a as e, S as l, _ as n } from "../ScrollContainer.vue_vue_type_style_index_0_lang-C9wALvlT.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ScrollContainer,
|
|
4
4
|
e as ScrollContainerSizes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ScrollContainer.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ScrollContainer.vue_vue_type_style_index_0_lang-DMSP8-2P.js");exports.ScrollContainer=e._sfc_main;exports.ScrollContainerSizes=e.ScrollContainerSizes;exports.ScrollContainerTypes=e.ScrollContainerTypes;exports.default=e._sfc_main;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as q, createElementBlock as G, openBlock as p, normalizeClass as o, unref as e, createElementVNode as a, computed as oe, useTemplateRef as c, shallowRef as k, onBeforeUnmount as le, onMounted as re, createBlock as Y, mergeProps as F, withCtx as v, createVNode as f, createCommentVNode as W, renderSlot as I, Fragment as te } from "vue";
|
|
2
|
-
import { ScrollAreaRoot as ae, ScrollAreaViewport as ie, ScrollAreaScrollbar as L, ScrollAreaThumb as U, ScrollAreaCorner as ne } from "
|
|
2
|
+
import { ScrollAreaRoot as ae, ScrollAreaViewport as ie, ScrollAreaScrollbar as L, ScrollAreaThumb as U, ScrollAreaCorner as ne } from "reka-ui";
|
|
3
3
|
import { cva as J } from "class-variance-authority";
|
|
4
4
|
import { getBemBlock as ce, getBemElement as r, generateVariantClassList as i } from "@pantograph/utils";
|
|
5
5
|
import { useElementVisibility as w, useIntersectionObserver as ue, useDebounceFn as fe, useResizeObserver as j } from "@vueuse/core";
|
|
6
|
-
import { u as ve } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { u as ve } from "./Icon.vue_vue_type_style_index_0_lang-CpvDQCOg.js";
|
|
7
7
|
const l = ce("scroll_container"), pe = /* @__PURE__ */ q({
|
|
8
8
|
__name: "Mask",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("reka-ui"),A=require("class-variance-authority"),r=require("@pantograph/utils"),n=require("@vueuse/core"),X=require("./Icon.vue_vue_type_style_index_0_lang-CIFtTipO.js"),l=r.getBemBlock("scroll_container"),Y=e.defineComponent({__name:"Mask",props:{topVisible:{type:Boolean},bottomVisible:{type:Boolean},endVisible:{type:Boolean},startVisible:{type:Boolean}},setup(c){const u=c,t=r.getBemElement(l,"mask"),i=A.cva(t,{variants:{topVisible:r.generateVariantClassList("top-visible",t),bottomVisible:r.generateVariantClassList("bottom-visible",t),startVisible:r.generateVariantClassList("start-visible",t),endVisible:r.generateVariantClassList("end-visible",t)}});return(v,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i)(u))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(t),"top"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(t),"bottom"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(t),"start"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(t),"end"))},null,2)],2))}}),F=["auto","always","scroll","hover"],L=["sm","md","lg"],U=e.defineComponent({inheritAttrs:!1,__name:"ScrollContainer",props:{scrollDistance:{default:10},scrollHideDelay:{default:200},dir:{},type:{default:"hover"},hasMask:{type:Boolean},size:{default:"md"},scrollbarCls:{},thumbCls:{},cornerCls:{},rootProps:{},overlay:{type:Boolean,default:!0},color:{}},emits:["loadMore"],setup(c,{expose:u,emit:t}){const i=c,v=t,b=A.cva(l,{variants:{size:r.generateVariantClassList(L,l),overlay:r.generateVariantClassList("overlay",l),isOverflowX:r.generateVariantClassList("overflowed-x",l),isOverflowY:r.generateVariantClassList("overflowed-y",l),hasMask:r.generateVariantClassList("has-mask",l)}}),f=r.getBemElement(l,"scroll_bar"),C=r.getBemElement(f,"thumb"),{config:O}=X.useConfig(),q=e.computed(()=>i.dir?i.dir:O.dir.value),V=e.useTemplateRef("top"),D=n.useElementVisibility(V),y=e.useTemplateRef("end"),H=n.useElementVisibility(y),h=e.useTemplateRef("start"),P=n.useElementVisibility(h),g=e.useTemplateRef("bottom"),m=e.shallowRef(!1),{stop:$}=n.useIntersectionObserver(g,([{isIntersecting:s}])=>{s?(v("loadMore"),m.value=!0):m.value=!1});e.onBeforeUnmount($);const o=e.useTemplateRef("root"),B=e.useTemplateRef("container"),k=e.useTemplateRef("wrap"),E=e.shallowRef(!1),w=e.shallowRef(!1),d=n.useDebounceFn(()=>{var s,p,z,S,_,N,R,T,M;e.unref((s=o.value)==null?void 0:s.viewport)&&(E.value=(((z=(p=e.unref(o.value))==null?void 0:p.viewport)==null?void 0:z.offsetWidth)||0)<(((_=(S=e.unref(o.value))==null?void 0:S.viewport)==null?void 0:_.scrollWidth)||0),w.value=(((R=(N=e.unref(o.value))==null?void 0:N.viewport)==null?void 0:R.offsetHeight)||0)<(((M=(T=e.unref(o.value))==null?void 0:T.viewport)==null?void 0:M.scrollHeight)||0))},10);return e.onMounted(()=>d()),n.useResizeObserver(o,d),n.useResizeObserver(k,d),u({container:B,root:o}),(s,p)=>(e.openBlock(),e.createBlock(e.unref(a.ScrollAreaRoot),e.mergeProps({class:[e.unref(b)({overlay:s.overlay,isOverflowX:E.value,isOverflowY:w.value,hasMask:s.hasMask,size:s.size})],scrollHideDelay:i.scrollHideDelay,dir:q.value,type:i.type},s.rootProps,{style:{"--ptc-scroll-container-color":s.color},ref_key:"root",ref:o}),{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaViewport),e.mergeProps({class:e.unref(r.getBemElement)(e.unref(l),"area")},s.$attrs,{ref_key:"container",ref:B,"as-child":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"area__wrap")),ref_key:"wrap",ref:k},[e.renderSlot(s.$slots,"default"),s.hasMask?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{ref_key:"top",ref:V,class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"top_observer"))},null,2),e.createElementVNode("div",{ref_key:"end",ref:y,class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"end_observer"))},null,2),e.createElementVNode("div",{ref_key:"start",ref:h,class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"start_observer"))},null,2),e.createElementVNode("div",{ref_key:"bottom",ref:g,class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"bottom_observer"))},null,2)],64)):e.createCommentVNode("",!0)],2)]),_:3},16,["class"]),s.hasMask?(e.openBlock(),e.createBlock(Y,{key:0,topVisible:e.unref(D),bottomVisible:m.value,endVisible:e.unref(H),startVisible:e.unref(P)},null,8,["topVisible","bottomVisible","endVisible","startVisible"])):e.createCommentVNode("",!0),e.createVNode(e.unref(a.ScrollAreaScrollbar),{class:e.normalizeClass([e.unref(f),s.scrollbarCls]),orientation:"vertical",ref:"vertical"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaThumb),{class:e.normalizeClass([e.unref(C),s.thumbCls])},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(a.ScrollAreaScrollbar),{class:e.normalizeClass([e.unref(f),s.scrollbarCls]),orientation:"horizontal",ref:"horizontal"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaThumb),{class:e.normalizeClass([e.unref(C),s.thumbCls])},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(a.ScrollAreaCorner),{ref:"corner",class:e.normalizeClass(s.cornerCls)},null,8,["class"]),e.renderSlot(s.$slots,"root")]),_:3},16,["class","scrollHideDelay","dir","type","style"]))}});exports.ScrollContainerSizes=L;exports.ScrollContainerTypes=F;exports._sfc_main=U;
|
package/dist/Shortcut/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-BVZMx2lR.js");exports.Shortcut=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),l=require("@pantograph/utils"),u=require("./options-B4iSAKol.js"),i=require("./Kbd.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),l=require("@pantograph/utils"),u=require("./options-B4iSAKol.js"),i=require("./Kbd.vue_vue_type_style_index_0_lang-BfteklVJ.js"),a=require("./Icon.vue_vue_type_style_index_0_lang-CIFtTipO.js"),m=e.defineComponent({...u.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0}},setup(n){const r=n,o=l.getBemBlock("shortcut");return(t,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o),r.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i._sfc_main),e.mergeProps({ref_for:!0},s),null,16),t.items.length>1&&c<t.items.length-1&&t.plus?(e.openBlock(),e.createBlock(a._sfc_main$3,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))],2))}});exports._sfc_main=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as c, createElementBlock as r, openBlock as t, normalizeClass as i, unref as o, Fragment as s, renderList as u, createVNode as f, createBlock as _, createCommentVNode as g, mergeProps as d } from "vue";
|
|
2
2
|
import { getBemBlock as h } from "@pantograph/utils";
|
|
3
3
|
import { g as B } from "./options-JBqnVZUl.js";
|
|
4
|
-
import { _ as k } from "./Kbd.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { f as C } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as k } from "./Kbd.vue_vue_type_style_index_0_lang-CCgfPLZn.js";
|
|
5
|
+
import { f as C } from "./Icon.vue_vue_type_style_index_0_lang-CpvDQCOg.js";
|
|
6
6
|
const b = /* @__PURE__ */ c({
|
|
7
7
|
...B("Shortcut"),
|
|
8
8
|
__name: "Shortcut",
|
package/dist/Spinner/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-8jSg4kDU.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("@pantograph/utils"),C=require("class-variance-authority"),d=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),o=require("@pantograph/utils"),C=require("class-variance-authority"),d=require("./Icon.vue_vue_type_style_index_0_lang-CIFtTipO.js"),p=require("./options-B4iSAKol.js"),a=["3xsm","2xsm","sm"],f={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},B=e.defineComponent({...p.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{}},setup(l){const s=l,n=o.getBemBlock("spinner"),c=C.cva(n,{variants:{size:o.generateVariantClassList(a,n),icon:o.generateVariantClassList("icon",n)}}),i=e.useSlots(),m=e.computed(()=>!!s.text||!!i.default),u=e.computed(()=>s.text);return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)({size:t.size,icon:!!t.icon||!!i.icon}),s.class])},[e.createVNode(d._sfc_main$3,{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"icon")),size:t.size,icon:t.icon},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},()=>[t.icon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",f,r[0]||(r[0]=[e.createElementVNode("path",{d:"M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",fill:"currentColor"},[e.createElementVNode("animateTransform",{attributeName:"transform",dur:"1s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})],-1)])))])]),_:3},8,["class","size","icon"]),m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"text"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(u.value),1)])],2)):e.createCommentVNode("",!0)],2))}});exports.SpinnerSizes=a;exports._sfc_main=B;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as z, useSlots as S, computed as m, createElementBlock as s, openBlock as i, normalizeClass as a, unref as o, createVNode as x, createCommentVNode as c, withCtx as h, renderSlot as C, createElementVNode as p, createTextVNode as k, toDisplayString as y } from "vue";
|
|
2
2
|
import { getBemBlock as N, generateVariantClassList as f, getBemElement as u } from "@pantograph/utils";
|
|
3
3
|
import { cva as V } from "class-variance-authority";
|
|
4
|
-
import { f as T } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { f as T } from "./Icon.vue_vue_type_style_index_0_lang-CpvDQCOg.js";
|
|
5
5
|
import { g as w } from "./options-JBqnVZUl.js";
|
|
6
6
|
const E = ["3xsm", "2xsm", "sm"], _ = {
|
|
7
7
|
key: 0,
|
package/dist/Switch/Switch.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { SwitchRootProps } from '
|
|
1
|
+
import { SwitchRootProps, SwitchRootEmits, CheckboxRootEmits } from 'reka-ui';
|
|
2
2
|
import { Class } from '../types';
|
|
3
3
|
import { SwitchSize } from './Switch.model';
|
|
4
4
|
import { IconSize } from '../Icon';
|
|
5
5
|
export interface SwitchProps extends Omit<SwitchRootProps, 'asChild'> {
|
|
6
|
+
checked?: SwitchRootProps['modelValue'];
|
|
6
7
|
size?: SwitchSize;
|
|
7
8
|
class?: Class;
|
|
8
9
|
rootCls?: Class;
|
|
9
10
|
labelCls?: Class;
|
|
10
11
|
label?: string;
|
|
11
12
|
}
|
|
13
|
+
export interface SwitchEmits extends SwitchRootEmits {
|
|
14
|
+
/** deprecated */
|
|
15
|
+
'update:checked': CheckboxRootEmits['update:modelValue'];
|
|
16
|
+
change: [value: boolean];
|
|
17
|
+
blur: [e: InputEvent];
|
|
18
|
+
focus: [e: InputEvent];
|
|
19
|
+
}
|
|
12
20
|
export interface SwitchSlots {
|
|
13
21
|
checkedText?: () => never;
|
|
14
22
|
uncheckedText?: () => never;
|
|
@@ -30,18 +38,23 @@ declare function __VLS_template(): {
|
|
|
30
38
|
};
|
|
31
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
40
|
declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
"update:modelValue": (payload: boolean) => any;
|
|
33
42
|
blur: (e: InputEvent) => any;
|
|
43
|
+
change: (value: boolean) => any;
|
|
34
44
|
focus: (e: InputEvent) => any;
|
|
35
|
-
"update:checked": (
|
|
45
|
+
"update:checked": (value: boolean | "indeterminate") => any;
|
|
36
46
|
}, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((payload: boolean) => any) | undefined;
|
|
37
48
|
onBlur?: ((e: InputEvent) => any) | undefined;
|
|
49
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
38
50
|
onFocus?: ((e: InputEvent) => any) | undefined;
|
|
39
|
-
"onUpdate:checked"?: ((
|
|
51
|
+
"onUpdate:checked"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
40
52
|
}>, {
|
|
53
|
+
modelValue: boolean | null;
|
|
41
54
|
size: SwitchSize;
|
|
42
55
|
disabled: boolean;
|
|
43
56
|
required: boolean;
|
|
44
|
-
checked: boolean;
|
|
57
|
+
checked: boolean | null;
|
|
45
58
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
46
59
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
60
|
export default _default;
|
package/dist/Switch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-CXl-twKR.js");exports.Switch=e._sfc_main;exports.SwitchSizes=e.SwitchSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { defineComponent as N, useSlots as A, computed as t, ref as L, watch as _, createElementBlock as p, openBlock as h, mergeProps as C, unref as s, createVNode as z, createCommentVNode as v, withCtx as S, normalizeClass as u, renderSlot as a, createElementVNode as y, createTextVNode as q, toDisplayString as F } from "vue";
|
|
2
|
+
import { getBemBlock as O, generateVariantClassList as f, usePCId as R, getBemElement as n } from "@pantograph/utils";
|
|
3
|
+
import { cva as j } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as G, SwitchRoot as H, SwitchThumb as J } from "reka-ui";
|
|
5
|
+
import { o as I } from "./Icon.vue_vue_type_style_index_0_lang-CpvDQCOg.js";
|
|
6
|
+
import { g as K } from "./options-JBqnVZUl.js";
|
|
7
|
+
import "@iconify/vue";
|
|
8
|
+
import { u as M, U as Q } from "./useInputDataStates-Bbj0JbCD.js";
|
|
9
|
+
const W = ["2xsm", "xsm", "sm"], X = ["for"], ne = /* @__PURE__ */ N({
|
|
10
|
+
...K("Switch"),
|
|
11
|
+
__name: "Switch",
|
|
12
|
+
props: {
|
|
13
|
+
checked: { type: [Boolean, null], default: void 0 },
|
|
14
|
+
size: { default: "xsm" },
|
|
15
|
+
class: {},
|
|
16
|
+
rootCls: {},
|
|
17
|
+
labelCls: {},
|
|
18
|
+
label: {},
|
|
19
|
+
defaultValue: { type: Boolean },
|
|
20
|
+
modelValue: { type: [Boolean, null], default: void 0 },
|
|
21
|
+
disabled: { type: Boolean, default: void 0 },
|
|
22
|
+
id: {},
|
|
23
|
+
value: {},
|
|
24
|
+
as: {},
|
|
25
|
+
name: {},
|
|
26
|
+
required: { type: Boolean, default: void 0 }
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:checked", "change", "blur", "focus", "update:modelValue"],
|
|
29
|
+
setup(x, { emit: w }) {
|
|
30
|
+
const o = x, i = w, T = G(i), l = O("switch"), P = j(l, {
|
|
31
|
+
variants: {
|
|
32
|
+
size: f(W, l),
|
|
33
|
+
innerText: f("inner-text", l),
|
|
34
|
+
innerIcon: f("inner-icon", l)
|
|
35
|
+
}
|
|
36
|
+
}), c = A(), k = t(() => o.id ?? R(l)), { getDisabled: b } = M(), { rootBindings: $, inputBindings: U } = Q({
|
|
37
|
+
getDisabled: () => b.value,
|
|
38
|
+
emit: i
|
|
39
|
+
}), D = t(() => ({
|
|
40
|
+
...I(
|
|
41
|
+
o,
|
|
42
|
+
"size",
|
|
43
|
+
"class",
|
|
44
|
+
"id",
|
|
45
|
+
"rootCls",
|
|
46
|
+
"labelCls",
|
|
47
|
+
"label",
|
|
48
|
+
"disabled",
|
|
49
|
+
"modelValue",
|
|
50
|
+
"checked"
|
|
51
|
+
),
|
|
52
|
+
disabled: b.value,
|
|
53
|
+
...I(T, "onUpdate:modelValue", "onUpdate:checked"),
|
|
54
|
+
id: k.value,
|
|
55
|
+
...U.value
|
|
56
|
+
})), r = t(() => o.size === "xsm" ? "3xsm" : "2xsm"), V = t(() => !!(c.label || o.label)), d = t(() => o.modelValue ?? o.checked), m = L(d.value ?? !1);
|
|
57
|
+
_(
|
|
58
|
+
() => [o.modelValue, o.checked],
|
|
59
|
+
() => {
|
|
60
|
+
m.value = d.value ?? !1;
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
const g = t({
|
|
64
|
+
get() {
|
|
65
|
+
return d.value !== void 0 ? d.value : m.value;
|
|
66
|
+
},
|
|
67
|
+
set(e) {
|
|
68
|
+
d.value === void 0 && (m.value = e), i("update:checked", e), i("update:modelValue", e), i("change", e);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
return (e, B) => (h(), p("div", C({
|
|
72
|
+
key: V.value,
|
|
73
|
+
class: [s(n)(s(l), "root"), o.rootCls]
|
|
74
|
+
}, s($)), [
|
|
75
|
+
z(s(H), C({
|
|
76
|
+
class: [
|
|
77
|
+
s(P)({
|
|
78
|
+
size: e.size,
|
|
79
|
+
innerText: !!(c.checkedText || c.uncheckedText),
|
|
80
|
+
innerIcon: !!(c.checkedIcon || c.uncheckedIcon)
|
|
81
|
+
}),
|
|
82
|
+
o.class
|
|
83
|
+
]
|
|
84
|
+
}, D.value, {
|
|
85
|
+
modelValue: g.value,
|
|
86
|
+
"onUpdate:modelValue": B[0] || (B[0] = (E) => g.value = E)
|
|
87
|
+
}), {
|
|
88
|
+
default: S(() => [
|
|
89
|
+
z(s(J), {
|
|
90
|
+
class: u(s(n)(s(l), "thumb"))
|
|
91
|
+
}, {
|
|
92
|
+
default: S(() => [
|
|
93
|
+
["xsm", "sm"].includes(e.size) ? a(e.$slots, "thumb", {
|
|
94
|
+
key: 0,
|
|
95
|
+
size: r.value
|
|
96
|
+
}) : v("", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
}, 8, ["class"]),
|
|
100
|
+
["xsm", "sm"].includes(e.size) ? (h(), p("div", {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: u(s(n)(s(l), "inner"))
|
|
103
|
+
}, [
|
|
104
|
+
y("div", {
|
|
105
|
+
class: u(s(n)(s(l), "inner__checked"))
|
|
106
|
+
}, [
|
|
107
|
+
a(e.$slots, "checkedText", {}, () => [
|
|
108
|
+
a(e.$slots, "checkedIcon", { size: r.value })
|
|
109
|
+
])
|
|
110
|
+
], 2),
|
|
111
|
+
y("div", {
|
|
112
|
+
class: u(s(n)(s(l), "inner__unchecked"))
|
|
113
|
+
}, [
|
|
114
|
+
a(e.$slots, "uncheckedText", {}, () => [
|
|
115
|
+
a(e.$slots, "uncheckedIcon", { size: r.value })
|
|
116
|
+
])
|
|
117
|
+
], 2)
|
|
118
|
+
], 2)) : v("", !0)
|
|
119
|
+
]),
|
|
120
|
+
_: 3
|
|
121
|
+
}, 16, ["class", "modelValue"]),
|
|
122
|
+
V.value ? (h(), p("label", {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: u([s(n)(s(l), "label"), e.labelCls]),
|
|
125
|
+
for: k.value
|
|
126
|
+
}, [
|
|
127
|
+
a(e.$slots, "label", {}, () => [
|
|
128
|
+
q(F(e.label), 1)
|
|
129
|
+
])
|
|
130
|
+
], 10, X)) : v("", !0)
|
|
131
|
+
], 16));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
W as S,
|
|
136
|
+
ne as _
|
|
137
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("@pantograph/utils"),I=require("class-variance-authority"),i=require("reka-ui"),v=require("./Icon.vue_vue_type_style_index_0_lang-CIFtTipO.js"),w=require("./options-B4iSAKol.js");require("@iconify/vue");const k=require("./useInputDataStates-NUYy6fip.js"),C=["2xsm","xsm","sm"],q=["for"],x=e.defineComponent({...w.getComponentOptions("Switch"),__name:"Switch",props:{checked:{type:[Boolean,null],default:void 0},size:{default:"xsm"},class:{},rootCls:{},labelCls:{},label:{},defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean,default:void 0},id:{},value:{},as:{},name:{},required:{type:Boolean,default:void 0}},emits:["update:checked","change","blur","focus","update:modelValue"],setup(g,{emit:B}){const o=g,n=B,V=i.useEmitAsProps(n),s=l.getBemBlock("switch"),b=I.cva(s,{variants:{size:l.generateVariantClassList(C,s),innerText:l.generateVariantClassList("inner-text",s),innerIcon:l.generateVariantClassList("inner-icon",s)}}),a=e.useSlots(),d=e.computed(()=>o.id??l.usePCId(s)),{getDisabled:m}=k.useFormInput(),{rootBindings:z,inputBindings:S}=k.UseInputDataStates({getDisabled:()=>m.value,emit:n}),E=e.computed(()=>({...v.omit(o,"size","class","id","rootCls","labelCls","label","disabled","modelValue","checked"),disabled:m.value,...v.omit(V,"onUpdate:modelValue","onUpdate:checked"),id:d.value,...S.value})),c=e.computed(()=>o.size==="xsm"?"3xsm":"2xsm"),p=e.computed(()=>!!(a.label||o.label)),r=e.computed(()=>o.modelValue??o.checked),u=e.ref(r.value??!1);e.watch(()=>[o.modelValue,o.checked],()=>{u.value=r.value??!1});const f=e.computed({get(){return r.value!==void 0?r.value:u.value},set(t){r.value===void 0&&(u.value=t),n("update:checked",t),n("update:modelValue",t),n("change",t)}});return(t,h)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:p.value,class:[e.unref(l.getBemElement)(e.unref(s),"root"),o.rootCls]},e.unref(z)),[e.createVNode(e.unref(i.SwitchRoot),e.mergeProps({class:[e.unref(b)({size:t.size,innerText:!!(a.checkedText||a.uncheckedText),innerIcon:!!(a.checkedIcon||a.uncheckedIcon)}),o.class]},E.value,{modelValue:f.value,"onUpdate:modelValue":h[0]||(h[0]=y=>f.value=y)}),{default:e.withCtx(()=>[e.createVNode(e.unref(i.SwitchThumb),{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"thumb"))},{default:e.withCtx(()=>[["xsm","sm"].includes(t.size)?e.renderSlot(t.$slots,"thumb",{key:0,size:c.value}):e.createCommentVNode("",!0)]),_:3},8,["class"]),["xsm","sm"].includes(t.size)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"inner"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"inner__checked"))},[e.renderSlot(t.$slots,"checkedText",{},()=>[e.renderSlot(t.$slots,"checkedIcon",{size:c.value})])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"inner__unchecked"))},[e.renderSlot(t.$slots,"uncheckedText",{},()=>[e.renderSlot(t.$slots,"uncheckedIcon",{size:c.value})])],2)],2)):e.createCommentVNode("",!0)]),_:3},16,["class","modelValue"]),p.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(l.getBemElement)(e.unref(s),"label"),t.labelCls]),for:d.value},[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],10,q)):e.createCommentVNode("",!0)],16))}});exports.SwitchSizes=C;exports._sfc_main=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("@pantograph/utils"),p=require("class-variance-authority"),i=require("./options-B4iSAKol.js");require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("@pantograph/utils"),p=require("class-variance-authority"),i=require("./options-B4iSAKol.js");require("./Icon.vue_vue_type_style_index_0_lang-CIFtTipO.js");const m=["lg","xlg"],c=t.getBemBlock("table"),u=e.defineComponent({...i.getComponentOptions("Table"),__name:"Table",props:{size:{default:"lg"},class:{}},setup(o){const r=o,s=p.cva(c,{variants:{size:t.generateVariantClassList(m,c)}});return(a,n)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass([e.unref(s)({size:a.size}),r.class])},[e.renderSlot(a.$slots,"default")],2))}}),d=e.defineComponent({...i.getComponentOptions("Th"),__name:"Th",props:{class:{},size:{},selection:{type:Boolean}},setup(o){const r=o,s=t.getBemElement(c,"th"),a=p.cva(s,{variants:{size:t.generateVariantClassList(m,s),selection:t.generateVariantClassList("selection",s)}});return(n,l)=>(e.openBlock(),e.createElementBlock("th",{class:e.normalizeClass([e.unref(a)({size:n.size,selection:n.selection}),r.class])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"content"))},[e.renderSlot(n.$slots,"default")],2)],2))}}),C=e.defineComponent({...i.getComponentOptions("Td"),__name:"Td",props:{class:{},size:{},empty:{type:Boolean},wrap:{type:Boolean},lazyLoadObserver:{type:Boolean}},setup(o){const r=o,s=t.getBemElement(c,"td"),a=p.cva(s,{variants:{size:t.generateVariantClassList(m,s),lazyLoadObserver:t.generateVariantClassList("lazy-load-observer",s),wrap:t.generateVariantClassList("wrap",s)}}),n=e.useSlots();return(l,z)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass([e.unref(a)({size:l.size,lazyLoadObserver:l.lazyLoadObserver,wrap:l.wrap}),{paragraph:l.wrap},r.class])},[l.empty?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"empty"))},[e.renderSlot(l.$slots,"default")],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(l.$slots,"default"),n.absoluteAction?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"absolute_action"))},[e.renderSlot(l.$slots,"absoluteAction")],2)):e.createCommentVNode("",!0)],64))],2))}}),y=["onClick","onDblclick","onContextmenu","onMouseenter","onMouseleave"],f=e.defineComponent({...i.getComponentOptions("Tr"),__name:"Tr",props:{class:{},zebra:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},lazyLoadObserver:{type:Boolean},onClick:{type:Function},onDblclick:{type:Function},onContextmenu:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function}},setup(o){const r=o,s=t.getBemElement(c,"tr"),a=p.cva(s,{variants:{zebra:t.generateVariantClassList("zebra",s),empty:t.generateVariantClassList("empty",s),checked:t.generateVariantClassList("checked",s),lazyLoadObserver:t.generateVariantClassList("lazy-load-observer",s)}});return(n,l)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass([e.unref(a)({zebra:n.zebra,empty:n.empty,checked:n.checked,lazyLoadObserver:n.lazyLoadObserver}),r.class]),onClick:n.onClick,onDblclick:n.onDblclick,onContextmenu:n.onContextmenu,onMouseenter:n.onMouseenter,onMouseleave:n.onMouseleave},[e.renderSlot(n.$slots,"default")],42,y))}}),k=e.defineComponent({...i.getComponentOptions("TBody"),__name:"TBody",props:{class:{}},setup(o){const r=o,s=t.getBemElement(c,"tbody");return(a,n)=>(e.openBlock(),e.createElementBlock("tbody",{class:e.normalizeClass([e.unref(s),r.class])},[e.renderSlot(a.$slots,"default")],2))}}),B=e.defineComponent({...i.getComponentOptions("THead"),__name:"THead",props:{class:{},sticky:{type:Boolean}},setup(o){const r=o,s=t.getBemElement(c,"thead"),a=p.cva(s,{variants:{sticky:t.generateVariantClassList("sticky",s)}});return(n,l)=>(e.openBlock(),e.createElementBlock("thead",{class:e.normalizeClass([e.unref(a)({sticky:n.sticky}),r.class])},[e.renderSlot(n.$slots,"default")],2))}});exports.TableSizes=m;exports._sfc_main=u;exports._sfc_main$1=d;exports._sfc_main$2=C;exports._sfc_main$3=f;exports._sfc_main$4=k;exports._sfc_main$5=B;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as y, createElementBlock as c, openBlock as i, normaliz
|
|
|
2
2
|
import { getBemBlock as B, generateVariantClassList as l, getBemElement as d } from "@pantograph/utils";
|
|
3
3
|
import { cva as z } from "class-variance-authority";
|
|
4
4
|
import { g as b } from "./options-JBqnVZUl.js";
|
|
5
|
-
import "./Icon.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import "./Icon.vue_vue_type_style_index_0_lang-CpvDQCOg.js";
|
|
6
6
|
const v = ["lg", "xlg"], m = B("table"), w = /* @__PURE__ */ y({
|
|
7
7
|
...b("Table"),
|
|
8
8
|
__name: "Table",
|
package/dist/Table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as T, e, _ as d, T as b, b as o, a as r, c as l } from "../THead.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { d as T, e, _ as d, T as b, b as o, a as r, c as l } from "../THead.vue_vue_type_style_index_0_lang-CgYhkGxH.js";
|
|
2
2
|
export {
|
|
3
3
|
T as TBody,
|
|
4
4
|
e as THead,
|
package/dist/Table/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../THead.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../THead.vue_vue_type_style_index_0_lang-ByopipuK.js");exports.TBody=e._sfc_main$4;exports.THead=e._sfc_main$5;exports.Table=e._sfc_main;exports.TableSizes=e.TableSizes;exports.Td=e._sfc_main$2;exports.Th=e._sfc_main$1;exports.Tr=e._sfc_main$3;
|