@pantograph/vue 0.30.8 → 0.30.10
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 +6 -6
- 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-D9p0ZSR8.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js → ActionButton.vue_vue_type_script_setup_true_lang-DxSqcwKk.js} +10 -10
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Alert/index.js +67 -67
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/index.js +2 -2
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-5wPimdpu.js +201 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-KicZdDY5.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- 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-CQFRqDV5.js +1 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-D5HMKOHA.js +58 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
- package/dist/Base/BaseButton/BaseButton.d.ts +2 -2
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Xgu4prlJ.js → BaseBadge.vue_vue_type_style_index_0_lang-Ca-g18u1.js} +27 -27
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DDBBnMzY.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DMu6fhel.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DklrsHU0.js +226 -0
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-0yOrRnPS.js +1 -0
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-tmtwQWes.js +159 -0
- package/dist/Blanket/Blanket.d.ts +1 -1
- package/dist/Blanket/index.js +1 -1
- package/dist/Blanket/index.umd.cjs +1 -1
- package/dist/Blanket.vue_vue_type_style_index_0_lang-BPkyT5c6.js +22 -0
- package/dist/Blanket.vue_vue_type_style_index_0_lang-Bygy0Fq3.js +1 -0
- package/dist/Button/Button.d.ts +6 -6
- 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-4r_7Pf3d.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js → Button.vue_vue_type_script_setup_true_lang-BriN8N0z.js} +19 -19
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/index.js +69 -69
- package/dist/Card/index.umd.cjs +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/index.js +2 -2
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DHP7ASJN.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-upe4IS_Q.js +224 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +2 -2
- 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-CSqQRmWd.js +1 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-CjM8-c2F.js +144 -0
- package/dist/ChipGroup/ChipGroup.d.ts +2 -2
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js → ColorPicker.vue_vue_type_style_index_0_lang-D_7EPnnc.js} +88 -88
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js → ColorPicker.vue_vue_type_style_index_0_lang-hWbfLKPH.js} +2 -2
- package/dist/ColorSwatch/index.js +47 -47
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +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-BK_7bsZT.js +1 -0
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cz8lY-US.js +171 -0
- package/dist/ColorTrigger/index.js +2 -2
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-B6h8UYUo.js +1 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Iid3Aoo0.js +89 -0
- package/dist/Combobox/index.js +398 -398
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +1 -1
- package/dist/Comment/Comment.d.ts +1 -1
- package/dist/Comment/CommentActions.d.ts +8 -8
- package/dist/Comment/CommentEditor.d.ts +30 -26
- package/dist/Comment/CommentReactions.d.ts +4 -4
- package/dist/Comment/CommentTrigger.d.ts +1 -1
- package/dist/Comment/index.js +428 -432
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/components/DataTableHeaderCell.d.ts +6 -6
- package/dist/DataTable/index.js +1019 -1011
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types/cell.d.ts +1 -1
- package/dist/DataTable/types/index.d.ts +1 -1
- package/dist/DataTable/utils/useColumnFixed.d.ts +2 -1
- package/dist/DataTable/utils/useColumnSize.d.ts +4 -1
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/index.js +2 -2
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-Heq87yk1.js +1 -0
- package/dist/{Divider.vue_vue_type_style_index_0_lang-GfWcHNix.js → Divider.vue_vue_type_style_index_0_lang-eXMD78c3.js} +15 -15
- package/dist/DropZone/DropZone.d.ts +1 -1
- package/dist/DropZone/index.js +71 -71
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/Empty/Empty.d.ts +1 -1
- package/dist/Empty/index.js +2 -2
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-BNHYA3-k.js +1 -0
- package/dist/{Empty.vue_vue_type_style_index_0_lang-DnH-eKDp.js → Empty.vue_vue_type_style_index_0_lang-CjN-zB7k.js} +68 -68
- package/dist/FloatButton/FloatButton.d.ts +6 -6
- 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-BuUin84o.js → FloatButton.vue_vue_type_script_setup_true_lang-CunaTFDQ.js} +11 -11
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-RlW1TNPB.js +1 -0
- package/dist/Form/Form.d.ts +2 -2
- package/dist/Form/FormItem.d.ts +1 -1
- package/dist/Form/index.js +396 -396
- package/dist/Form/index.umd.cjs +3 -3
- package/dist/FormValidation/FormValidation.d.ts +1 -1
- package/dist/FormValidation/index.js +1 -1
- package/dist/FormValidation/index.umd.cjs +1 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-DcXAThgj.js +1 -0
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-FGFyFCis.js +45 -0
- package/dist/GOPicker/GOPicker.model.d.ts +1 -1
- package/dist/GOPicker/index.js +226 -226
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BDZKksip.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js → GraphicalObject.vue_vue_type_script_setup_true_lang-Bnu4NkgN.js} +15 -15
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +1 -1
- package/dist/GraphicalObjectGroup/index.js +28 -28
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/HoverCard/index.js +44 -44
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.js +2 -2
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js +59 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-D9YESScE.js +1 -0
- package/dist/IconButton/IconButton.d.ts +6 -6
- 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-BwL7lOA2.js → IconButton.vue_vue_type_script_setup_true_lang-k-2rKarz.js} +10 -10
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-zUlWLsjp.js +1 -0
- package/dist/Image/Image.d.ts +1 -1
- package/dist/Image/index.js +2 -2
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BBxqLThg.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-fXu01ETy.js +121 -0
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +2 -2
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-2IAeKcy_.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DUTq_uyH.js +98 -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-D-_aVIkv.js +38 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DRwrazbG.js +1 -0
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-9w1hhP5f.js +127 -0
- package/dist/Input.vue_vue_type_script_setup_true_lang-DCVDjXc6.js +1 -0
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-BxrHntWT.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js → InputNumber.vue_vue_type_script_setup_true_lang-C9Yla-kw.js} +149 -149
- package/dist/Kbd/Kbd.d.ts +1 -1
- package/dist/Kbd/index.js +26 -26
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/Label/Label.d.ts +1 -1
- package/dist/Label/index.js +2 -2
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Label.vue_vue_type_style_index_0_lang-B5m20cLB.js +128 -0
- package/dist/Label.vue_vue_type_style_index_0_lang-teg6eTkO.js +1 -0
- package/dist/Link/Link.d.ts +1 -1
- package/dist/Link/index.js +40 -40
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/index.js +2 -2
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItemContent.d.ts +1 -1
- package/dist/MenuItem/index.js +2 -2
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-Bwl4xGwb.js +1 -0
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DsicR4mL.js +595 -0
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pagination/index.js +130 -130
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/type.d.ts +1 -1
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/index.js +2 -2
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/Progress/types.d.ts +1 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-B-OM1USr.js +1 -0
- package/dist/{Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js → Progress.vue_vue_type_style_index_0_lang-DPoChN9a.js} +166 -166
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- 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-CKst3QRj.js +105 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Cvo452s0.js +1 -0
- package/dist/ScrollContainer/Mask.d.ts +1 -1
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/ScrollContainer/index.js +2 -2
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-XfGedoBb.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-wNU6CesK.js +227 -0
- package/dist/Segmented/Segmented.d.ts +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CCAxhINA.js +169 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-DyOI710D.js +1 -0
- package/dist/Select/index.js +2 -2
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js → Select.vue_vue_type_style_index_0_lang-C2GqZ0-u.js} +272 -272
- package/dist/Select.vue_vue_type_style_index_0_lang-CZFrNbVt.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -1
- 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-D_Nl5CG7.js +31 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DnugoLzl.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/index.js +2 -2
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-BrFBNDlI.js +57 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-oMsTff2I.js +1 -0
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/index.js +2 -2
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-B7KhPt_X.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BCf2tJzR.js → Spinner.vue_vue_type_style_index_0_lang-C-Pajopx.js} +27 -27
- package/dist/Steps/Step.d.ts +1 -1
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/index.js +126 -126
- package/dist/Steps/index.umd.cjs +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/index.js +2 -2
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BmsIxVHQ.js +137 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-DGgteB6-.js +1 -0
- package/dist/Table/TBody.d.ts +1 -1
- package/dist/Table/TFoot.d.ts +1 -1
- package/dist/Table/THead.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Td.d.ts +1 -1
- package/dist/Table/Th.d.ts +1 -1
- package/dist/Table/Tr.d.ts +1 -1
- package/dist/Table/index.js +141 -141
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabList.d.ts +1 -1
- package/dist/Tabs/TabTrigger.d.ts +1 -1
- package/dist/Tabs/index.js +193 -193
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +1 -1
- package/dist/Textarea/index.js +53 -53
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/index.js +102 -102
- package/dist/Toast/index.umd.cjs +1 -1
- package/dist/Tree/Tree.model.d.ts +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Upload/index.js +375 -375
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +1 -1
- package/dist/index-B1i4l7x_.js +1 -0
- package/dist/index-BOecemV4.js +1 -0
- package/dist/index-CFgby7sR.js +1 -0
- package/dist/index-CVKJ--1_.js +281 -0
- package/dist/index-CZ5v-Cfi.js +1 -0
- package/dist/{index-BCPptNhu.js → index-EzEipSqD.js} +21 -21
- package/dist/index-PGo1VyBF.js +58 -0
- package/dist/{index-_lrD3ofV.js → index-WDp1-fAG.js} +239 -239
- package/dist/index.js +40 -40
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +41 -41
- package/dist/use/index.umd.cjs +1 -1
- package/package.json +2 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-CH_Oquxt.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-Br3Z0y8H.js +0 -201
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DldQzFne.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BVE5H-tP.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js +0 -58
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DQMQ2WbE.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js +0 -226
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-DdjridzV.js +0 -1
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-Djl15xzS.js +0 -159
- package/dist/Blanket.vue_vue_type_style_index_0_lang-BZDbPoxP.js +0 -22
- package/dist/Blanket.vue_vue_type_style_index_0_lang-CDrlnkqH.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js +0 -224
- package/dist/Chip.vue_vue_type_style_index_0_lang-BgTLPRMz.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-CmXECWtq.js +0 -144
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-oV_EmLx_.js +0 -171
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +0 -89
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-D3wrVsBd.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-CRS28Wia.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js +0 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-5tWE2LgD.js +0 -45
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-p8foP-Nc.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js +0 -59
- package/dist/Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BK_dgR8l.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-CQv-I6_G.js +0 -121
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js +0 -98
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js +0 -38
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js +0 -127
- package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +0 -1
- package/dist/Label.vue_vue_type_style_index_0_lang-6bIJ5i7z.js +0 -128
- package/dist/Label.vue_vue_type_style_index_0_lang-Gvoq3arA.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js +0 -595
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +0 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-D_g_XsJ4.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js +0 -105
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Br7-ZHr3.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CRjnv1ii.js +0 -227
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js +0 -169
- package/dist/Select.vue_vue_type_style_index_0_lang-DI_YhCCT.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DTdKfRum.js +0 -31
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-ahrcqk01.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-DOsf2SEN.js +0 -57
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-vZBJnVJj.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-C6vFiHl7.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js +0 -137
- package/dist/index--fAgg2DC.js +0 -281
- package/dist/index-CUuaEiq_.js +0 -1
- package/dist/index-CaXYyVxq.js +0 -1
- package/dist/index-ClFtJyYC.js +0 -58
- package/dist/index-DzG8mnap.js +0 -1
- package/dist/index-SHgIzWWT.js +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as y, useAttrs as b, computed as c, createBlock as C, openBlock as B, mergeProps as _, createSlots as $, renderList as k, withCtx as S, renderSlot as O, normalizeProps as h, guardReactiveProps as v } from "vue";
|
|
2
|
+
import { omit as P } from "es-toolkit";
|
|
3
|
+
import { _ as j } from "./BaseBadge.vue_vue_type_style_index_0_lang-Ca-g18u1.js";
|
|
4
|
+
import { getComponentOptions as w } from "@pantograph/utils";
|
|
5
|
+
import { B as e, a as t } from "./BaseBadge.model-CahZXsyM.js";
|
|
6
|
+
import { getCssCoreColor as o } from "@pantograph/tokens";
|
|
7
|
+
const N = /* @__PURE__ */ y({
|
|
8
|
+
...w("Badge", !1),
|
|
9
|
+
__name: "Badge",
|
|
10
|
+
props: {
|
|
11
|
+
class: { type: [Array, Object, String, Number, null, Boolean] },
|
|
12
|
+
text: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
flipOnDir: {},
|
|
15
|
+
customStroke: { type: Boolean },
|
|
16
|
+
size: {},
|
|
17
|
+
color: { default: "primary" }
|
|
18
|
+
},
|
|
19
|
+
setup(a) {
|
|
20
|
+
const r = a, i = b(), l = [...e, ...t], u = [...e, ...t], p = () => {
|
|
21
|
+
if (u.includes(r.color)) {
|
|
22
|
+
if (r.color === "gray-subtle") return o("gray-6");
|
|
23
|
+
if (r.color === "yellow") return o("grayscale-dark-0");
|
|
24
|
+
if (t.includes(r.color))
|
|
25
|
+
return o(`${r.color.replace("-subtle", "")}-5`);
|
|
26
|
+
if (e.includes(r.color)) return o("grayscale-light-0");
|
|
27
|
+
}
|
|
28
|
+
}, g = () => {
|
|
29
|
+
if (l.includes(r.color)) {
|
|
30
|
+
if (r.color === "gray-subtle") return o("gray-1");
|
|
31
|
+
if (t.includes(r.color))
|
|
32
|
+
return o(`${r.color.replace("-subtle", "")}-0`);
|
|
33
|
+
if (e.includes(r.color)) return o(`${r.color}-5`);
|
|
34
|
+
}
|
|
35
|
+
}, m = c(() => r.color && l.includes(r.color) ? {
|
|
36
|
+
bg: g(),
|
|
37
|
+
fg: p()
|
|
38
|
+
} : {
|
|
39
|
+
bg: o("primary-5"),
|
|
40
|
+
fg: o("primary-oncolor")
|
|
41
|
+
}), f = c(() => ({
|
|
42
|
+
...P(i, ["type"]),
|
|
43
|
+
...r,
|
|
44
|
+
...m.value
|
|
45
|
+
}));
|
|
46
|
+
return (s, x) => (B(), C(j, _(f.value, { type: "pill" }), $({ _: 2 }, [
|
|
47
|
+
k(Object.keys(s.$slots), (n) => ({
|
|
48
|
+
name: n,
|
|
49
|
+
fn: S((d) => [
|
|
50
|
+
O(s.$slots, n, h(v(d)))
|
|
51
|
+
])
|
|
52
|
+
}))
|
|
53
|
+
]), 1040));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
N as _
|
|
58
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BadgeColor, BadgeColorSubtle, BadgeSize, BadgeType } from './BaseBadge.model';
|
|
2
2
|
import { FlipOnDir } from '../../ConfigProvider';
|
|
3
|
-
import { ClassValue } from '
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
4
|
export interface BaseBadgeProps {
|
|
5
5
|
size?: BadgeSize;
|
|
6
6
|
class?: ClassValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrimitiveProps } from 'reka-ui';
|
|
2
2
|
import { BaseBadgeSlots } from '../BaseBadge/BaseBadge';
|
|
3
|
-
import { ClassValue } from '
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
4
|
import { ButtonColor, ButtonSize, ButtonType, ButtonVariant } from './BaseButton.model';
|
|
5
5
|
import { FlipOnDir } from '../../ConfigProvider';
|
|
6
6
|
import { BadgeSize } from '../BaseBadge/BaseBadge.model';
|
|
@@ -70,8 +70,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ba
|
|
|
70
70
|
}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{
|
|
71
71
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
|
-
color: ButtonColor;
|
|
74
73
|
type: ButtonType;
|
|
74
|
+
color: ButtonColor;
|
|
75
75
|
htmlType: "reset" | "submit" | "button";
|
|
76
76
|
disabled: boolean;
|
|
77
77
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getComponentOptions as L, getBemBlock as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { isEmptyElement as
|
|
5
|
-
import { b as v, c as
|
|
1
|
+
import { defineComponent as O, useSlots as D, computed as p, createBlock as I, openBlock as E, h as b } from "vue";
|
|
2
|
+
import { getComponentOptions as L, getBemBlock as j, generateVariantClassList as o, isEmptyLikeLodash as w, normCls as A } from "@pantograph/utils";
|
|
3
|
+
import { cva as F } from "class-variance-authority";
|
|
4
|
+
import { isEmptyElement as x } from "@pantograph/utils-vue";
|
|
5
|
+
import { b as v, c as G } from "./BaseBadge.model-CahZXsyM.js";
|
|
6
6
|
import "./Icon/index.js";
|
|
7
|
-
import { useConfig as
|
|
8
|
-
import { _ as
|
|
9
|
-
const R = /* @__PURE__ */
|
|
7
|
+
import { useConfig as M } from "./ConfigProvider/index.js";
|
|
8
|
+
import { _ as N } from "./Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js";
|
|
9
|
+
const R = /* @__PURE__ */ O({
|
|
10
10
|
...L("BaseBadge"),
|
|
11
11
|
__name: "BaseBadge",
|
|
12
12
|
props: {
|
|
13
13
|
size: { default: "md" },
|
|
14
|
-
class: {},
|
|
14
|
+
class: { type: [Array, Object, String, Number, null, Boolean] },
|
|
15
15
|
text: {},
|
|
16
16
|
bg: {},
|
|
17
17
|
fg: {},
|
|
@@ -22,15 +22,15 @@ const R = /* @__PURE__ */ D({
|
|
|
22
22
|
flipOnDir: {}
|
|
23
23
|
},
|
|
24
24
|
setup(B) {
|
|
25
|
-
const { getFlipOnDir:
|
|
25
|
+
const { getFlipOnDir: S } = M(), _ = S("flipOnDir"), n = j("badge"), e = B, h = F(n, {
|
|
26
26
|
variants: {
|
|
27
|
-
size: o(
|
|
28
|
-
type: o(v,
|
|
29
|
-
text: o("text",
|
|
30
|
-
icon: o("icon",
|
|
31
|
-
br: o("br",
|
|
27
|
+
size: o(G, n),
|
|
28
|
+
type: o(v, n),
|
|
29
|
+
text: o("text", n),
|
|
30
|
+
icon: o("icon", n),
|
|
31
|
+
br: o("br", n)
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), i = D(), s = p(() => v.includes(e.type) ? e.type : "pill"), m = p(() => {
|
|
34
34
|
let t = e.size ?? "md";
|
|
35
35
|
return t === "sm" && s.value !== "rect" ? s.value === "minify" ? t = "tiny" : s.value === "pill" && (t = "md") : s.value === "minify" && !["tiny", "tinier"].includes(t) ? t = "tiny" : s.value !== "minify" && ["tiny", "tinier"].includes(t) && (t = "md"), t;
|
|
36
36
|
}), z = p(() => {
|
|
@@ -48,24 +48,24 @@ const R = /* @__PURE__ */ D({
|
|
|
48
48
|
}), k = () => {
|
|
49
49
|
var y, g;
|
|
50
50
|
const t = [];
|
|
51
|
-
let
|
|
51
|
+
let r, c;
|
|
52
52
|
const a = e.type === "minify";
|
|
53
|
-
a || (
|
|
54
|
-
const f = !a && !
|
|
53
|
+
a || (r = (y = i.icon) == null ? void 0 : y.call(i, {}), c = (g = i.default) == null ? void 0 : g.call(i, {}));
|
|
54
|
+
const f = !a && !x(c), u = !a && !x(r), l = !!(e.text === 0 || !w(e.text) || f), d = !!(e.icon || u);
|
|
55
55
|
(e.type === "rect" && l ? !1 : d) && t.push(
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
b(
|
|
57
|
+
N,
|
|
58
58
|
{
|
|
59
59
|
icon: e.icon,
|
|
60
60
|
size: z.value,
|
|
61
|
-
flipOnDir:
|
|
61
|
+
flipOnDir: _.value,
|
|
62
62
|
customStroke: e.customStroke
|
|
63
63
|
},
|
|
64
64
|
u ? {
|
|
65
|
-
default: () =>
|
|
65
|
+
default: () => r
|
|
66
66
|
} : void 0
|
|
67
67
|
)
|
|
68
|
-
), l && (f ? t.push(
|
|
68
|
+
), l && (f ? t.push(c) : t.push(e.text));
|
|
69
69
|
const C = {
|
|
70
70
|
size: m.value,
|
|
71
71
|
type: s.value,
|
|
@@ -73,10 +73,10 @@ const R = /* @__PURE__ */ D({
|
|
|
73
73
|
icon: d,
|
|
74
74
|
br: !!e.br
|
|
75
75
|
};
|
|
76
|
-
return
|
|
76
|
+
return b(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
|
-
class:
|
|
79
|
+
class: A(h(C), e.class),
|
|
80
80
|
style: {
|
|
81
81
|
"--ptc-badge-fg": e.fg,
|
|
82
82
|
"--ptc-badge-bg": e.bg,
|
|
@@ -86,7 +86,7 @@ const R = /* @__PURE__ */ D({
|
|
|
86
86
|
t
|
|
87
87
|
);
|
|
88
88
|
};
|
|
89
|
-
return (t,
|
|
89
|
+
return (t, r) => (E(), I(k));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),s=require("@pantograph/utils"),q=require("class-variance-authority"),v=require("@pantograph/utils-vue"),p=require("./BaseBadge.model-DecqxaGN.js");require("./Icon/index.umd.cjs");const k=require("./ConfigProvider/index.umd.cjs"),L=require("./Icon.vue_vue_type_style_index_0_lang-D9YESScE.js"),V=n.defineComponent({...s.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{type:[Array,Object,String,Number,null,Boolean]},text:{},bg:{},fg:{},br:{},type:{default:"pill"},icon:{},customStroke:{type:Boolean},flipOnDir:{}},setup(B){const{getFlipOnDir:b}=k.useConfig(),x=b("flipOnDir"),i=s.getBemBlock("badge"),e=B,S=q.cva(i,{variants:{size:s.generateVariantClassList(p.BadgeSizes,i),type:s.generateVariantClassList(p.BadgeTypes,i),text:s.generateVariantClassList("text",i),icon:s.generateVariantClassList("icon",i),br:s.generateVariantClassList("br",i)}}),a=n.useSlots(),o=n.computed(()=>p.BadgeTypes.includes(e.type)?e.type:"pill"),m=n.computed(()=>{let t=e.size??"md";return t==="sm"&&o.value!=="rect"?o.value==="minify"?t="tiny":o.value==="pill"&&(t="md"):o.value==="minify"&&!["tiny","tinier"].includes(t)?t="tiny":o.value!=="minify"&&["tiny","tinier"].includes(t)&&(t="md"),t}),h=n.computed(()=>{switch(m.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),C=()=>{var y,_;const t=[];let r,c;const l=e.type==="minify";l||(r=(y=a.icon)==null?void 0:y.call(a,{}),c=(_=a.default)==null?void 0:_.call(a,{}));const f=!l&&!v.isEmptyElement(c),d=!l&&!v.isEmptyElement(r),u=!!(e.text===0||!s.isEmptyLikeLodash(e.text)||f),g=!!(e.icon||d);(e.type==="rect"&&u?!1:g)&&t.push(n.h(L._sfc_main,{icon:e.icon,size:h.value,flipOnDir:x.value,customStroke:e.customStroke},d?{default:()=>r}:void 0)),u&&(f?t.push(c):t.push(e.text));const z={size:m.value,type:o.value,text:u,icon:g,br:!!e.br};return n.h("div",{class:s.normCls(S(z),e.class),style:{"--ptc-badge-fg":e.fg,"--ptc-badge-bg":e.bg,"--ptc-badge-br":e.br}},t)};return(t,r)=>(n.openBlock(),n.createBlock(C))}});exports._sfc_main=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),y=require("./Icon.vue_vue_type_style_index_0_lang-D9YESScE.js"),E=require("./Spinner.vue_vue_type_style_index_0_lang-B7KhPt_X.js"),$=require("./Badge.vue_vue_type_script_setup_true_lang-CQFRqDV5.js"),A=require("reka-ui"),c=require("./index-BOecemV4.js"),G=require("./ConfigProvider/index.umd.cjs"),z=require("@pantograph/utils-vue"),a=require("@pantograph/utils"),j=require("class-variance-authority"),i=a.getBemBlock("button"),h=j.cva(i,{variants:{size:a.generateVariantClassList(c.ButtonSizes,i),type:a.generateVariantClassList(c.ButtonTypes,i),color:a.generateVariantClassList(c.ButtonColors,i),variant:a.generateVariantClassList(c.ButtonVariants,i),action:a.generateVariantClassList("action",i),active:a.generateVariantClassList("active",i),text:a.generateVariantClassList("text",i),preIcon:a.generateVariantClassList("preIcon",i),postIcon:a.generateVariantClassList("postIcon",i),loading:a.generateVariantClassList("loading",i),block:a.generateVariantClassList("block",i),noRing:a.generateVariantClassList("no-ring",i)}}),K=e.defineComponent({...a.getComponentOptions("BaseButton"),__name:"BaseButton",props:{as:{},class:{type:[Array,Object,String,Number,null,Boolean]},text:{},size:{},color:{default:"primary"},noRing:{type:Boolean},type:{default:"fill"},variant:{},loading:{type:Boolean},action:{type:Boolean},active:{type:Boolean},badgeText:{},badgeIcon:{},icon:{},preIcon:{},postIcon:{},customStroke:{type:Boolean},preIconCustomStroke:{type:Boolean},postIconCustomStroke:{type:Boolean},flipOnDir:{},preIconFlipOnDir:{},postIconFlipOnDir:{},badgeIconFlipOnDir:{},htmlType:{default:"button"},block:{type:Boolean},disabled:{type:Boolean,default:void 0},hover:{type:Boolean},href:{},target:{}},emits:["click"],setup(r,{expose:_,emit:V}){const t=r,{getFlipOnDir:p}=G.useConfig(),D=p("flipOnDir"),O=p("preIconFlipOnDir"),L=p("postIconFlipOnDir"),T=p("badgeIconFlipOnDir"),k=c.injectButtonGroupContext({}),d=e.computed(()=>{var o;return t.variant??((o=k.props)==null?void 0:o.variant)??"simple"}),s=e.computed(()=>["icon","float"].includes(d.value)||(n.icon||t.icon)&&!(t.text||n.default||t.preIcon||n.preIcon||t.postIcon||n.postIcon)),n=e.useSlots(),{getDisabled:m,getSize:v}=z.useFormInput({getSize:()=>{var o;return t.size??((o=k.props)==null?void 0:o.size)},defaults:{size:"md"},exports:["getDisabled","getSize"]}),q=e.computed(()=>{let o=c.ButtonTypes.includes(t.type)?t.type:"fill";const g=v.value??"md";let l=t.color&&c.ButtonColors.includes(t.color)?t.color:"primary",u=d.value&&c.ButtonVariants.includes(d.value)?d.value:"simple";return t.action?((u==="float"||s.value)&&(u="icon"),o==="fill"&&(o="outline"),l=void 0):u==="float"&&(o==="ghost"&&(o="fill"),["primary","neutral"].includes(l)||(l="primary")),{size:g,type:o,color:l,variant:u,action:!!t.action,active:!!t.active,loading:!!t.loading,block:!!t.block,noRing:!!t.noRing,text:!s.value&&!!(t.text||n.default),preIcon:!s.value&&!!(t.preIcon||n.preIcon),postIcon:!s.value&&!!(t.postIcon||n.postIcon)}}),B=e.computed(()=>{switch(v.value){case"lg":return"sm";case"sm":return"2xsm";default:return"xsm"}}),F=e.computed(()=>{switch(v.value){case"sm":return"3xsm";case"lg":return"xsm";case"md":default:return"2xsm"}}),b="2xsm",C=e.ref(0),S=e.computed(()=>t.as?t.as:t.href?"a":"button");e.watch(S,()=>{C.value++});const P=e.computed(()=>{const o={disabled:m.value};return t.href&&(o.href=t.href,o.target=t.target),t.htmlType&&(o.type=t.htmlType),t.hover&&(o["data-hover"]=""),o}),I=e.ref();_({focus(){var o;(o=I.value)==null||o.focus()},blur(){var o;(o=I.value)==null||o.blur()}});const w=V,R=o=>{if(t.loading||t.disabled){o.preventDefault(),o.stopPropagation();return}w("click",o)},N=()=>{var o,f,g;if(t.action&&t.active&&!s.value){const l=(o=n.badge)==null?void 0:o.call(n,{color:m.value?"gray":"primary",size:b});if(!z.isEmptyElement(l))return l;const u=(f=n.badgeText)==null?void 0:f.call(n,{}),x=(g=n.badgeIcon)==null?void 0:g.call(n,{});if(t.badgeText||u||t.badgeIcon||x)return e.h($._sfc_main,{text:t.badgeText,icon:t.badgeIcon,flipOnDir:T.value,color:m.value?"gray":"primary",size:b},{default:u?n.badgeText:void 0,icon:x?n.badgeIcon:void 0})}return null};return(o,f)=>(e.openBlock(),e.createBlock(e.unref(A.Primitive),e.mergeProps({as:S.value,key:String(C.value),class:e.unref(a.normCls)(e.unref(h)(q.value),t.class),ref_key:"buttonRef",ref:I},P.value,{onClick:R}),{default:e.withCtx(()=>[r.loading?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,class:e.normalizeClass(e.unref(a.getBemElement)(e.unref(i),"loading")),size:B.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(r.preIcon||n.preIcon)&&!s.value?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,flipOnDir:e.unref(O),icon:r.preIcon,size:B.value,customStroke:r.preIconCustomStroke},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"preIcon")]),_:3},8,["flipOnDir","icon","size","customStroke"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createBlock(y._sfc_main,{key:1,icon:r.icon,size:F.value,flipOnDir:e.unref(D),customStroke:r.customStroke},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"icon")]),_:3},8,["icon","size","flipOnDir","customStroke"])):e.renderSlot(o.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(r.text),1)]),e.createVNode(N),(r.postIcon||n.postIcon)&&!s.value?(e.openBlock(),e.createBlock(y._sfc_main,{key:3,flipOnDir:e.unref(L),customStroke:r.postIconCustomStroke,icon:r.postIcon,size:B.value},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"postIcon")]),_:3},8,["flipOnDir","customStroke","icon","size"])):e.createCommentVNode("",!0)],64))]),_:3},16,["as","class"]))}});exports._sfc_main=K;exports.buttonPrefix=i;exports.buttonVariantsClass=h;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { defineComponent as M, computed as u, useSlots as Q, ref as T, watch as U, createBlock as m, openBlock as p, unref as r, mergeProps as W, withCtx as I, createElementBlock as X, Fragment as Y, createCommentVNode as F, renderSlot as y, createVNode as Z, createTextVNode as _, toDisplayString as ee, normalizeClass as oe, h as te } from "vue";
|
|
2
|
+
import { _ as z } from "./Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js";
|
|
3
|
+
import { _ as ne } from "./Spinner.vue_vue_type_style_index_0_lang-C-Pajopx.js";
|
|
4
|
+
import { _ as ae } from "./Badge.vue_vue_type_script_setup_true_lang-D5HMKOHA.js";
|
|
5
|
+
import { Primitive as ie } from "reka-ui";
|
|
6
|
+
import { B as P, a as $, b as R, c as le, i as re } from "./index-PGo1VyBF.js";
|
|
7
|
+
import { useConfig as ce } from "./ConfigProvider/index.js";
|
|
8
|
+
import { useFormInput as se, isEmptyElement as ue } from "@pantograph/utils-vue";
|
|
9
|
+
import { getBemBlock as pe, generateVariantClassList as a, getComponentOptions as me, normCls as fe, getBemElement as de } from "@pantograph/utils";
|
|
10
|
+
import { cva as ge } from "class-variance-authority";
|
|
11
|
+
const n = pe("button"), ve = ge(n, {
|
|
12
|
+
variants: {
|
|
13
|
+
size: a(le, n),
|
|
14
|
+
type: a(R, n),
|
|
15
|
+
color: a($, n),
|
|
16
|
+
variant: a(P, n),
|
|
17
|
+
action: a("action", n),
|
|
18
|
+
active: a("active", n),
|
|
19
|
+
text: a("text", n),
|
|
20
|
+
preIcon: a("preIcon", n),
|
|
21
|
+
postIcon: a("postIcon", n),
|
|
22
|
+
loading: a("loading", n),
|
|
23
|
+
block: a("block", n),
|
|
24
|
+
noRing: a("no-ring", n)
|
|
25
|
+
}
|
|
26
|
+
}), Oe = /* @__PURE__ */ M({
|
|
27
|
+
...me("BaseButton"),
|
|
28
|
+
__name: "BaseButton",
|
|
29
|
+
props: {
|
|
30
|
+
as: {},
|
|
31
|
+
class: { type: [Array, Object, String, Number, null, Boolean] },
|
|
32
|
+
text: {},
|
|
33
|
+
size: {},
|
|
34
|
+
color: { default: "primary" },
|
|
35
|
+
noRing: { type: Boolean },
|
|
36
|
+
type: { default: "fill" },
|
|
37
|
+
variant: {},
|
|
38
|
+
loading: { type: Boolean },
|
|
39
|
+
action: { type: Boolean },
|
|
40
|
+
active: { type: Boolean },
|
|
41
|
+
badgeText: {},
|
|
42
|
+
badgeIcon: {},
|
|
43
|
+
icon: {},
|
|
44
|
+
preIcon: {},
|
|
45
|
+
postIcon: {},
|
|
46
|
+
customStroke: { type: Boolean },
|
|
47
|
+
preIconCustomStroke: { type: Boolean },
|
|
48
|
+
postIconCustomStroke: { type: Boolean },
|
|
49
|
+
flipOnDir: {},
|
|
50
|
+
preIconFlipOnDir: {},
|
|
51
|
+
postIconFlipOnDir: {},
|
|
52
|
+
badgeIconFlipOnDir: {},
|
|
53
|
+
htmlType: { default: "button" },
|
|
54
|
+
block: { type: Boolean },
|
|
55
|
+
disabled: { type: Boolean, default: void 0 },
|
|
56
|
+
hover: { type: Boolean },
|
|
57
|
+
href: {},
|
|
58
|
+
target: {}
|
|
59
|
+
},
|
|
60
|
+
emits: ["click"],
|
|
61
|
+
setup(i, { expose: V, emit: w }) {
|
|
62
|
+
const e = i, { getFlipOnDir: f } = ce(), E = f("flipOnDir"), N = f("preIconFlipOnDir"), j = f("postIconFlipOnDir"), A = f("badgeIconFlipOnDir"), x = re({}), d = u(() => {
|
|
63
|
+
var o;
|
|
64
|
+
return e.variant ?? ((o = x.props) == null ? void 0 : o.variant) ?? "simple";
|
|
65
|
+
}), l = u(
|
|
66
|
+
() => ["icon", "float"].includes(d.value) || (t.icon || e.icon) && !(e.text || t.default || e.preIcon || t.preIcon || e.postIcon || t.postIcon)
|
|
67
|
+
), t = Q(), { getDisabled: b, getSize: B } = se({
|
|
68
|
+
getSize: () => {
|
|
69
|
+
var o;
|
|
70
|
+
return e.size ?? ((o = x.props) == null ? void 0 : o.size);
|
|
71
|
+
},
|
|
72
|
+
defaults: { size: "md" },
|
|
73
|
+
exports: ["getDisabled", "getSize"]
|
|
74
|
+
}), G = u(() => {
|
|
75
|
+
let o = R.includes(e.type) ? e.type : "fill";
|
|
76
|
+
const v = B.value ?? "md";
|
|
77
|
+
let c = e.color && $.includes(e.color) ? e.color : "primary", s = d.value && P.includes(d.value) ? d.value : "simple";
|
|
78
|
+
return e.action ? ((s === "float" || l.value) && (s = "icon"), o === "fill" && (o = "outline"), c = void 0) : s === "float" && (o === "ghost" && (o = "fill"), ["primary", "neutral"].includes(c) || (c = "primary")), {
|
|
79
|
+
size: v,
|
|
80
|
+
type: o,
|
|
81
|
+
color: c,
|
|
82
|
+
variant: s,
|
|
83
|
+
action: !!e.action,
|
|
84
|
+
active: !!e.active,
|
|
85
|
+
loading: !!e.loading,
|
|
86
|
+
block: !!e.block,
|
|
87
|
+
noRing: !!e.noRing,
|
|
88
|
+
text: !l.value && !!(e.text || t.default),
|
|
89
|
+
preIcon: !l.value && !!(e.preIcon || t.preIcon),
|
|
90
|
+
postIcon: !l.value && !!(e.postIcon || t.postIcon)
|
|
91
|
+
};
|
|
92
|
+
}), k = u(() => {
|
|
93
|
+
switch (B.value) {
|
|
94
|
+
case "lg":
|
|
95
|
+
return "sm";
|
|
96
|
+
case "sm":
|
|
97
|
+
return "2xsm";
|
|
98
|
+
default:
|
|
99
|
+
return "xsm";
|
|
100
|
+
}
|
|
101
|
+
}), K = u(() => {
|
|
102
|
+
switch (B.value) {
|
|
103
|
+
case "sm":
|
|
104
|
+
return "3xsm";
|
|
105
|
+
case "lg":
|
|
106
|
+
return "xsm";
|
|
107
|
+
case "md":
|
|
108
|
+
default:
|
|
109
|
+
return "2xsm";
|
|
110
|
+
}
|
|
111
|
+
}), h = "2xsm", D = T(0), O = u(() => e.as ? e.as : e.href ? "a" : "button");
|
|
112
|
+
U(O, () => {
|
|
113
|
+
D.value++;
|
|
114
|
+
});
|
|
115
|
+
const L = u(() => {
|
|
116
|
+
const o = {
|
|
117
|
+
disabled: b.value
|
|
118
|
+
};
|
|
119
|
+
return e.href && (o.href = e.href, o.target = e.target), e.htmlType && (o.type = e.htmlType), e.hover && (o["data-hover"] = ""), o;
|
|
120
|
+
}), S = T();
|
|
121
|
+
V({
|
|
122
|
+
focus() {
|
|
123
|
+
var o;
|
|
124
|
+
(o = S.value) == null || o.focus();
|
|
125
|
+
},
|
|
126
|
+
blur() {
|
|
127
|
+
var o;
|
|
128
|
+
(o = S.value) == null || o.blur();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
const q = w, H = (o) => {
|
|
132
|
+
if (e.loading || e.disabled) {
|
|
133
|
+
o.preventDefault(), o.stopPropagation();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
q("click", o);
|
|
137
|
+
}, J = () => {
|
|
138
|
+
var o, g, v;
|
|
139
|
+
if (e.action && e.active && !l.value) {
|
|
140
|
+
const c = (o = t.badge) == null ? void 0 : o.call(t, {
|
|
141
|
+
color: b.value ? "gray" : "primary",
|
|
142
|
+
size: h
|
|
143
|
+
});
|
|
144
|
+
if (!ue(c)) return c;
|
|
145
|
+
const s = (g = t.badgeText) == null ? void 0 : g.call(t, {}), C = (v = t.badgeIcon) == null ? void 0 : v.call(t, {});
|
|
146
|
+
if (e.badgeText || s || e.badgeIcon || C)
|
|
147
|
+
return te(
|
|
148
|
+
ae,
|
|
149
|
+
{
|
|
150
|
+
text: e.badgeText,
|
|
151
|
+
icon: e.badgeIcon,
|
|
152
|
+
flipOnDir: A.value,
|
|
153
|
+
color: b.value ? "gray" : "primary",
|
|
154
|
+
size: h
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
default: s ? t.badgeText : void 0,
|
|
158
|
+
icon: C ? t.badgeIcon : void 0
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
return null;
|
|
163
|
+
};
|
|
164
|
+
return (o, g) => (p(), m(r(ie), W({
|
|
165
|
+
as: O.value,
|
|
166
|
+
key: String(D.value),
|
|
167
|
+
class: r(fe)(r(ve)(G.value), e.class),
|
|
168
|
+
ref_key: "buttonRef",
|
|
169
|
+
ref: S
|
|
170
|
+
}, L.value, { onClick: H }), {
|
|
171
|
+
default: I(() => [
|
|
172
|
+
i.loading ? (p(), m(ne, {
|
|
173
|
+
key: 1,
|
|
174
|
+
class: oe(r(de)(r(n), "loading")),
|
|
175
|
+
size: k.value
|
|
176
|
+
}, null, 8, ["class", "size"])) : (p(), X(Y, { key: 0 }, [
|
|
177
|
+
(i.preIcon || t.preIcon) && !l.value ? (p(), m(z, {
|
|
178
|
+
key: 0,
|
|
179
|
+
flipOnDir: r(N),
|
|
180
|
+
icon: i.preIcon,
|
|
181
|
+
size: k.value,
|
|
182
|
+
customStroke: i.preIconCustomStroke
|
|
183
|
+
}, {
|
|
184
|
+
default: I(() => [
|
|
185
|
+
y(o.$slots, "preIcon")
|
|
186
|
+
]),
|
|
187
|
+
_: 3
|
|
188
|
+
}, 8, ["flipOnDir", "icon", "size", "customStroke"])) : F("", !0),
|
|
189
|
+
l.value ? (p(), m(z, {
|
|
190
|
+
key: 1,
|
|
191
|
+
icon: i.icon,
|
|
192
|
+
size: K.value,
|
|
193
|
+
flipOnDir: r(E),
|
|
194
|
+
customStroke: i.customStroke
|
|
195
|
+
}, {
|
|
196
|
+
default: I(() => [
|
|
197
|
+
y(o.$slots, "icon")
|
|
198
|
+
]),
|
|
199
|
+
_: 3
|
|
200
|
+
}, 8, ["icon", "size", "flipOnDir", "customStroke"])) : y(o.$slots, "default", { key: 2 }, () => [
|
|
201
|
+
_(ee(i.text), 1)
|
|
202
|
+
]),
|
|
203
|
+
Z(J),
|
|
204
|
+
(i.postIcon || t.postIcon) && !l.value ? (p(), m(z, {
|
|
205
|
+
key: 3,
|
|
206
|
+
flipOnDir: r(j),
|
|
207
|
+
customStroke: i.postIconCustomStroke,
|
|
208
|
+
icon: i.postIcon,
|
|
209
|
+
size: k.value
|
|
210
|
+
}, {
|
|
211
|
+
default: I(() => [
|
|
212
|
+
y(o.$slots, "postIcon")
|
|
213
|
+
]),
|
|
214
|
+
_: 3
|
|
215
|
+
}, 8, ["flipOnDir", "customStroke", "icon", "size"])) : F("", !0)
|
|
216
|
+
], 64))
|
|
217
|
+
]),
|
|
218
|
+
_: 3
|
|
219
|
+
}, 16, ["as", "class"]));
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
export {
|
|
223
|
+
Oe as _,
|
|
224
|
+
ve as a,
|
|
225
|
+
n as b
|
|
226
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),z=require("class-variance-authority"),b=require("./Icon.vue_vue_type_style_index_0_lang-D9YESScE.js"),k=require("./Divider.vue_vue_type_style_index_0_lang-Heq87yk1.js"),V=require("@pantograph/utils-vue"),t=require("@pantograph/utils"),v=["sm","md","lg"],y=["error","warning","success"],l=t.getBemBlock("input"),h=n=>({input:n,focus:a=>{var i;return(i=n.value)==null?void 0:i.focus(a)},blur:()=>{var a;return(a=n.value)==null?void 0:a.blur()},select:()=>{var a;return(a=n.value)==null?void 0:a.select()},setSelectionRange:(a,i,d)=>{var c;return(c=n.value)==null?void 0:c.setSelectionRange(a,i,d)}}),E=e.defineComponent({...t.getComponentOptions("BaseInput"),__name:"BaseInput",props:{disabled:{type:Boolean,default:void 0},immediateFocus:{type:Boolean},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{type:[Array,Object,String,Number,null,Boolean]},clearIconCls:{type:[Array,Object,String,Number,null,Boolean]},dividerCls:{type:[Array,Object,String,Number,null,Boolean]},leadingCls:{type:[Array,Object,String,Number,null,Boolean]},class:{type:[Array,Object,String,Number,null,Boolean]},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},simple:{type:Boolean},size:{},status:{},hasValue:{type:Boolean},steps:{type:Boolean},contentFit:{type:Boolean}},emits:["clear","resize"],setup(n,{expose:f,emit:p}){const s=n,o=e.useSlots(),a=z.cva(l,{variants:{size:t.generateVariantClassList(v,l),status:t.generateVariantClassList(y,l),bordered:t.generateVariantClassList("bordered",l),simple:t.generateVariantClassList("simple",l),steps:t.generateVariantClassList("steps",l),contentFit:t.generateVariantClassList("content-fit",l)}}),i=p,d=e.computed(()=>{switch(s.size){case"sm":return"2xsm";default:return"xsm"}}),c=e.computed(()=>{switch(s.size){case"sm":return"2xsm";case"md":return"xsm";default:return"sm"}}),S=()=>{var C;const r=(C=o.leading)==null?void 0:C.call(o,{iconSize:c.value}),u=!V.isEmptyElement(r);return u||s.leading?e.h("div",{class:t.normCls(t.getBemElement(l,"leading"),s.leadingCls)},u?r:s.leading):null},m=e.ref(),g=e.computed(()=>s.contentFit&&!CSS.supports("field-sizing","content"));e.onMounted(()=>{e.watch(g,B,{immediate:!0})});const B=()=>{g.value&&m.value&&e.nextTick(()=>i("resize",m.value.getBoundingClientRect().width))};return f({adjustWidth:B}),(r,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t.normCls)(e.unref(a)({size:s.size,contentFit:s.contentFit,status:s.status==="success"&&!n.hasValue?void 0:s.status,bordered:n.bordered,simple:n.simple,steps:n.steps}),s.class))},[e.createVNode(S),g.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(l),"input"),e.unref(t.getBemElement)(e.unref(l),"input_value"))),ref_key:"widthRef",ref:m},[e.renderSlot(r.$slots,"value")],2)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default"),o.trailing||s.trailing||n.allowClear?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(l),"trailing"),n.trailingCls))},[!s.disabled&&n.allowClear&&n.hasValue?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b._sfc_main,{icon:n.clearIcon,size:d.value,onClick:u[0]||(u[0]=e.withModifiers(C=>i("clear"),["stop"])),class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(l),"clear_icon"),n.clearIconCls))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"clearIcon")]),_:3},8,["icon","size","class"]),o.trailing||s.trailing?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,type:"vertical",class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(l),"divider"),n.dividerCls))},null,8,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"trailing",{iconSize:c.value},()=>[e.createTextVNode(e.toDisplayString(n.trailing),1)])],2)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"extra",{iconSize:c.value})],2))}});exports.InputSizes=v;exports.InputStatuses=y;exports._sfc_main=E;exports.inputPrefix=l;exports.useInputExposes=h;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent as N, useSlots as $, computed as z, ref as F, onMounted as V, watch as j, nextTick as O, createElementBlock as v, openBlock as g, normalizeClass as p, unref as t, createVNode as I, createCommentVNode as y, renderSlot as f, Fragment as A, createBlock as E, withModifiers as L, withCtx as M, createTextVNode as R, toDisplayString as T, h as W } from "vue";
|
|
2
|
+
import { cva as D } from "class-variance-authority";
|
|
3
|
+
import { _ as P } from "./Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js";
|
|
4
|
+
import { _ as q } from "./Divider.vue_vue_type_style_index_0_lang-eXMD78c3.js";
|
|
5
|
+
import { isEmptyElement as G } from "@pantograph/utils-vue";
|
|
6
|
+
import { getBemBlock as H, getComponentOptions as J, generateVariantClassList as c, normCls as u, getBemElement as d } from "@pantograph/utils";
|
|
7
|
+
const K = ["sm", "md", "lg"], Q = ["error", "warning", "success"], n = H("input"), te = (e) => ({
|
|
8
|
+
input: e,
|
|
9
|
+
focus: (l) => {
|
|
10
|
+
var i;
|
|
11
|
+
return (i = e.value) == null ? void 0 : i.focus(l);
|
|
12
|
+
},
|
|
13
|
+
blur: () => {
|
|
14
|
+
var l;
|
|
15
|
+
return (l = e.value) == null ? void 0 : l.blur();
|
|
16
|
+
},
|
|
17
|
+
select: () => {
|
|
18
|
+
var l;
|
|
19
|
+
return (l = e.value) == null ? void 0 : l.select();
|
|
20
|
+
},
|
|
21
|
+
setSelectionRange: (l, i, C) => {
|
|
22
|
+
var r;
|
|
23
|
+
return (r = e.value) == null ? void 0 : r.setSelectionRange(l, i, C);
|
|
24
|
+
}
|
|
25
|
+
}), se = /* @__PURE__ */ N({
|
|
26
|
+
...J("BaseInput"),
|
|
27
|
+
__name: "BaseInput",
|
|
28
|
+
props: {
|
|
29
|
+
disabled: { type: Boolean, default: void 0 },
|
|
30
|
+
immediateFocus: { type: Boolean },
|
|
31
|
+
leading: {},
|
|
32
|
+
trailing: {},
|
|
33
|
+
clearIcon: { default: "tabler:circle-x" },
|
|
34
|
+
trailingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
35
|
+
clearIconCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
36
|
+
dividerCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
37
|
+
leadingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
38
|
+
class: { type: [Array, Object, String, Number, null, Boolean] },
|
|
39
|
+
allowClear: { type: Boolean },
|
|
40
|
+
bordered: { type: Boolean, default: !0 },
|
|
41
|
+
simple: { type: Boolean },
|
|
42
|
+
size: {},
|
|
43
|
+
status: {},
|
|
44
|
+
hasValue: { type: Boolean },
|
|
45
|
+
steps: { type: Boolean },
|
|
46
|
+
contentFit: { type: Boolean }
|
|
47
|
+
},
|
|
48
|
+
emits: ["clear", "resize"],
|
|
49
|
+
setup(e, { expose: h, emit: w }) {
|
|
50
|
+
const s = e, o = $(), l = D(n, {
|
|
51
|
+
variants: {
|
|
52
|
+
size: c(K, n),
|
|
53
|
+
status: c(Q, n),
|
|
54
|
+
bordered: c("bordered", n),
|
|
55
|
+
simple: c("simple", n),
|
|
56
|
+
steps: c("steps", n),
|
|
57
|
+
contentFit: c("content-fit", n)
|
|
58
|
+
}
|
|
59
|
+
}), i = w, C = z(() => {
|
|
60
|
+
switch (s.size) {
|
|
61
|
+
case "sm":
|
|
62
|
+
return "2xsm";
|
|
63
|
+
default:
|
|
64
|
+
return "xsm";
|
|
65
|
+
}
|
|
66
|
+
}), r = z(() => {
|
|
67
|
+
switch (s.size) {
|
|
68
|
+
case "sm":
|
|
69
|
+
return "2xsm";
|
|
70
|
+
case "md":
|
|
71
|
+
return "xsm";
|
|
72
|
+
default:
|
|
73
|
+
return "sm";
|
|
74
|
+
}
|
|
75
|
+
}), x = () => {
|
|
76
|
+
var b;
|
|
77
|
+
const a = (b = o.leading) == null ? void 0 : b.call(o, { iconSize: r.value }), m = !G(a);
|
|
78
|
+
return m || s.leading ? W(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
class: u(d(n, "leading"), s.leadingCls)
|
|
82
|
+
},
|
|
83
|
+
m ? a : s.leading
|
|
84
|
+
) : null;
|
|
85
|
+
}, B = F(), S = z(
|
|
86
|
+
() => s.contentFit && !CSS.supports("field-sizing", "content")
|
|
87
|
+
);
|
|
88
|
+
V(() => {
|
|
89
|
+
j(S, k, { immediate: !0 });
|
|
90
|
+
});
|
|
91
|
+
const k = () => {
|
|
92
|
+
S.value && B.value && O(() => i("resize", B.value.getBoundingClientRect().width));
|
|
93
|
+
};
|
|
94
|
+
return h({
|
|
95
|
+
adjustWidth: k
|
|
96
|
+
}), (a, m) => (g(), v("div", {
|
|
97
|
+
class: p(
|
|
98
|
+
t(u)(
|
|
99
|
+
t(l)({
|
|
100
|
+
size: s.size,
|
|
101
|
+
contentFit: s.contentFit,
|
|
102
|
+
status: s.status === "success" && !e.hasValue ? void 0 : s.status,
|
|
103
|
+
bordered: e.bordered,
|
|
104
|
+
simple: e.simple,
|
|
105
|
+
steps: e.steps
|
|
106
|
+
}),
|
|
107
|
+
s.class
|
|
108
|
+
)
|
|
109
|
+
)
|
|
110
|
+
}, [
|
|
111
|
+
I(x),
|
|
112
|
+
S.value ? (g(), v("span", {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: p(
|
|
115
|
+
t(u)(t(d)(t(n), "input"), t(d)(t(n), "input_value"))
|
|
116
|
+
),
|
|
117
|
+
ref_key: "widthRef",
|
|
118
|
+
ref: B
|
|
119
|
+
}, [
|
|
120
|
+
f(a.$slots, "value")
|
|
121
|
+
], 2)) : y("", !0),
|
|
122
|
+
f(a.$slots, "default"),
|
|
123
|
+
o.trailing || s.trailing || e.allowClear ? (g(), v("div", {
|
|
124
|
+
key: 1,
|
|
125
|
+
class: p(t(u)(t(d)(t(n), "trailing"), e.trailingCls))
|
|
126
|
+
}, [
|
|
127
|
+
!s.disabled && e.allowClear && e.hasValue ? (g(), v(A, { key: 0 }, [
|
|
128
|
+
I(P, {
|
|
129
|
+
icon: e.clearIcon,
|
|
130
|
+
size: C.value,
|
|
131
|
+
onClick: m[0] || (m[0] = L((b) => i("clear"), ["stop"])),
|
|
132
|
+
class: p(t(u)(t(d)(t(n), "clear_icon"), e.clearIconCls))
|
|
133
|
+
}, {
|
|
134
|
+
default: M(() => [
|
|
135
|
+
f(a.$slots, "clearIcon")
|
|
136
|
+
]),
|
|
137
|
+
_: 3
|
|
138
|
+
}, 8, ["icon", "size", "class"]),
|
|
139
|
+
o.trailing || s.trailing ? (g(), E(q, {
|
|
140
|
+
key: 0,
|
|
141
|
+
type: "vertical",
|
|
142
|
+
class: p(t(u)(t(d)(t(n), "divider"), e.dividerCls))
|
|
143
|
+
}, null, 8, ["class"])) : y("", !0)
|
|
144
|
+
], 64)) : y("", !0),
|
|
145
|
+
f(a.$slots, "trailing", { iconSize: r.value }, () => [
|
|
146
|
+
R(T(e.trailing), 1)
|
|
147
|
+
])
|
|
148
|
+
], 2)) : y("", !0),
|
|
149
|
+
f(a.$slots, "extra", { iconSize: r.value })
|
|
150
|
+
], 2));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
export {
|
|
154
|
+
K as I,
|
|
155
|
+
se as _,
|
|
156
|
+
Q as a,
|
|
157
|
+
n as i,
|
|
158
|
+
te as u
|
|
159
|
+
};
|
package/dist/Blanket/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Blanket.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Blanket.vue_vue_type_style_index_0_lang-Bygy0Fq3.js");exports.Blanket=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as l, createElementBlock as r, openBlock as a, normalizeStyle as s, normalizeClass as c, unref as n } from "vue";
|
|
2
|
+
import { getComponentOptions as m, getBemBlock as i, normCls as d } from "@pantograph/utils";
|
|
3
|
+
const p = ["data-screen"], x = /* @__PURE__ */ l({
|
|
4
|
+
...m("Blanket"),
|
|
5
|
+
__name: "Blanket",
|
|
6
|
+
props: {
|
|
7
|
+
screen: { type: Boolean, default: !0 },
|
|
8
|
+
zIndex: { default: 0 },
|
|
9
|
+
class: { type: [Array, Object, String, Number, null, Boolean] }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
const t = e, o = i("blanket");
|
|
13
|
+
return (u, f) => (a(), r("div", {
|
|
14
|
+
class: c(n(d)(n(o), t.class)),
|
|
15
|
+
style: s({ zIndex: e.zIndex }),
|
|
16
|
+
"data-screen": e.screen ? "" : void 0
|
|
17
|
+
}, null, 14, p));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
x as _
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),t=require("@pantograph/utils"),r=["data-screen"],c=e.defineComponent({...t.getComponentOptions("Blanket"),__name:"Blanket",props:{screen:{type:Boolean,default:!0},zIndex:{default:0},class:{type:[Array,Object,String,Number,null,Boolean]}},setup(n){const s=n,l=t.getBemBlock("blanket");return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t.normCls)(e.unref(l),s.class)),style:e.normalizeStyle({zIndex:n.zIndex}),"data-screen":n.screen?"":void 0},null,14,r))}});exports._sfc_main=c;
|