@pantograph/vue 0.28.2 → 0.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-B58mCIDb.js → ActionButton.vue_vue_type_script_setup_true_lang-BVHx9uru.js} +2 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-pYXkjWnG.js +1 -0
- 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-BA7GXism.js +1 -0
- package/dist/{Alert.vue_vue_type_style_index_0_lang-CDmiw-No.js → Alert.vue_vue_type_style_index_0_lang-BsCaX7eV.js} +17 -18
- 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-BKqLMGIV.js → Avatar.vue_vue_type_style_index_0_lang-B-Xr8CBm.js} +11 -11
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DMv8hlec.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-C1_SBsMO.js → Badge.vue_vue_type_script_setup_true_lang-D8HhPgXQ.js} +2 -2
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DVt1axIK.js +1 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-C_f3-aVP.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DKhEpesQ.js → BaseBadge.vue_vue_type_style_index_0_lang-DG6AxxJf.js} +9 -9
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CnEOAkBC.js +216 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DgsyiDzE.js +1 -0
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-BpBhsQhP.js → BaseInput.vue_vue_type_style_index_0_lang-B-uL43gK.js} +11 -11
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-kdLi78ax.js → BaseInput.vue_vue_type_style_index_0_lang-DTsfexlV.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DQ2-TroH.js → Button.vue_vue_type_script_setup_true_lang-C6-IQycz.js} +2 -2
- package/dist/Button.vue_vue_type_script_setup_true_lang-DMz26ym_.js +1 -0
- 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-B1xohKaV.js +1 -0
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-CJQAJRHk.js → ButtonGroup.vue_vue_type_script_setup_true_lang-Cdto0wL9.js} +14 -15
- 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-BOJNThUz.js → Checkbox.vue_vue_type_style_index_0_lang-BEA8tGnv.js} +4 -4
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BrNExnEV.js +1 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-ChpNdGGi.js → Chip.vue_vue_type_style_index_0_lang-1reMgqb4.js} +10 -10
- package/dist/{Chip.vue_vue_type_style_index_0_lang-By6XfEP4.js → Chip.vue_vue_type_style_index_0_lang-BatkTr0I.js} +1 -1
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B7dGfThP.js → ColorPicker.vue_vue_type_style_index_0_lang-BQwBgt70.js} +12 -12
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DIRCDxKf.js → ColorPicker.vue_vue_type_style_index_0_lang-D2D_-F5H.js} +3 -3
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch--yfIrKW6.js → ColorSwatch-DZ4tycqJ.js} +1 -1
- package/dist/{ColorSwatch-Bm4Di1MW.js → ColorSwatch-DefkU19x.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-Bx4uQ2xB.js → ColorSwatch.vue_vue_type_style_index_0_lang-BW8HmaCi.js} +13 -14
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-NuLHUep1.js +1 -0
- 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-CCsHoBii.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DhheFVnX.js} +12 -12
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DMJ78NIH.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-ea9pQ33v.js} +1 -1
- 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-Zpn_J-nN.js → ColorTrigger.vue_vue_type_style_index_0_lang-BNEun5Nl.js} +6 -6
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BcSPlAvH.js → ColorTrigger.vue_vue_type_style_index_0_lang-CTIWEszt.js} +1 -1
- package/dist/Combobox/context.d.ts +1 -2
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-Dz3b5KT0.js → Combobox.vue_vue_type_style_index_0_lang-BnSmhj-M.js} +78 -79
- package/dist/Combobox.vue_vue_type_style_index_0_lang-QCYYr4KS.js +1 -0
- package/dist/Comment/index.js +160 -160
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-CyGHtFPF.js +1 -0
- package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-C-xm8OzO.js → ConfigProvider.vue_vue_type_script_setup_true_lang-IVHvl51_.js} +38 -40
- package/dist/DataTable/DataTable.d.ts +16 -7
- package/dist/DataTable/components/DataTableColGroup.d.ts +5 -1
- package/dist/DataTable/components/DataTableHeader.d.ts +56 -1
- package/dist/DataTable/components/DataTableHeaderCell.d.ts +3 -2
- package/dist/DataTable/components/DataTableLazyLoading.d.ts +3 -0
- package/dist/DataTable/components/DataTableRow.d.ts +3 -0
- package/dist/DataTable/components/ThDragGhost.d.ts +24 -0
- package/dist/DataTable/index.js +6 -4
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types/column.d.ts +0 -1
- package/dist/DataTable/types/index.d.ts +40 -18
- package/dist/DataTable/utils/index.d.ts +1 -0
- package/dist/DataTable/utils/useCell.d.ts +8 -2
- package/dist/DataTable/utils/useCol.d.ts +22 -3
- package/dist/DataTable/utils/useColumnFixed.d.ts +3 -2
- package/dist/DataTable/utils/useColumnOrder.d.ts +31 -0
- package/dist/DataTable/utils/useColumnSize.d.ts +6 -5
- package/dist/DataTable/utils/useSelection.d.ts +5 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-CYyWE0VL.js +1 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DiDp1EaI.js +1936 -0
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-D3wrVsBd.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-GfWcHNix.js +35 -0
- 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-CTIzH7sl.js → DropZone.vue_vue_type_style_index_0_lang-CFW_9TI-.js} +9 -9
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-lzDvfWK_.js → DropZone.vue_vue_type_style_index_0_lang-CJ5eUOVh.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-CTH1BAo8.js → Empty.vue_vue_type_style_index_0_lang-CdQHeBeZ.js} +12 -13
- package/dist/Empty.vue_vue_type_style_index_0_lang-DweNvcXn.js +1 -0
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-B6FYZN67.js +1 -0
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-D14UFHEA.js → FloatButton.vue_vue_type_script_setup_true_lang-Q0YlpizG.js} +2 -2
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-C5jDMAlq.js +9 -0
- package/dist/{FormValidation.vue_vue_type_style_index_0_lang-C6xpTVji.js → FormValidation.vue_vue_type_style_index_0_lang-C_zrxekC.js} +663 -643
- 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-nrryxeQq.js → GOPicker.vue_vue_type_style_index_0_lang-B2bHfUMU.js} +18 -18
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-GG3UoK9I.js → GOPicker.vue_vue_type_style_index_0_lang-C78y_rPT.js} +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-8uMyWodQ.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CeT1O_S8.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BMxDhvcP.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-C0XMznFH.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C6J4QDpO.js} +6 -6
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DYSJUbYI.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CjToO9ic.js} +1 -1
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-B1Et8g3D.js +1 -0
- package/dist/{HoverCard.vue_vue_type_style_index_0_lang-DJYtpCcR.js → HoverCard.vue_vue_type_style_index_0_lang-DClce_lb.js} +13 -14
- 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-DPe3mUfh.js → Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js} +9 -9
- package/dist/Icon.vue_vue_type_style_index_0_lang-DQNF7GAr.js +1 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BmqsHwgy.js → IconButton.vue_vue_type_script_setup_true_lang-BjRYx43p.js} +2 -2
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CPe1EEDZ.js +1 -0
- 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-DHUqbvxK.js +1 -0
- package/dist/{Image.vue_vue_type_style_index_0_lang-X68u36AJ.js → Image.vue_vue_type_style_index_0_lang-rAqsQZX2.js} +30 -31
- 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-BiTIQXTR.js +1 -0
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BDFJAmdt.js → IndentLevel.vue_vue_type_style_index_0_lang-OdwSyisB.js} +24 -25
- 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-g2dBu5LK.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Bfm_0SXO.js → Indicator.vue_vue_type_script_setup_true_lang-qbXRbfSe.js} +2 -2
- 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-BoH5ri_1.js → Input.vue_vue_type_script_setup_true_lang-CJ-mNejn.js} +11 -11
- package/dist/{Input.vue_vue_type_script_setup_true_lang-C4UhM_1n.js → Input.vue_vue_type_script_setup_true_lang-DrNJ4wW-.js} +1 -1
- package/dist/InputNumber/InputNumber.d.ts +3 -3
- 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-COnnTWR0.js → InputNumber.vue_vue_type_script_setup_true_lang-DDBSoDn-.js} +117 -112
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DkEkef8C.js +1 -0
- 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--BbFRXDn.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-s-4_L5Wz.js +46 -0
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-nFFLusRD.js → Label.vue_vue_type_style_index_0_lang-BFm3rwJK.js} +22 -23
- package/dist/Label.vue_vue_type_style_index_0_lang-CXZtFMJt.js +1 -0
- 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-C9Cgyex5.js → Link.vue_vue_type_style_index_0_lang-Cm0Wcj-k.js} +13 -14
- package/dist/Link.vue_vue_type_style_index_0_lang-mE8WUPbK.js +1 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-BE56NdMb.js → MenuItem.vue_vue_type_style_index_0_lang-CDC9TAPs.js} +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-CW-70qfj.js → MenuItem.vue_vue_type_style_index_0_lang-Itm6g3rH.js} +7 -7
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-zo_9zmac.js → Pagination.vue_vue_type_style_index_0_lang-BsYyHOO8.js} +9 -9
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-CQ_E2g4L.js → Pagination.vue_vue_type_style_index_0_lang-DHvWS0QA.js} +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-CpPisJIC.js → Popover.vue_vue_type_style_index_0_lang-BZrEBBI1.js} +66 -65
- package/dist/Popover.vue_vue_type_style_index_0_lang-V6Aj9-qY.js +1 -0
- package/dist/Progress/index.js +1 -1
- 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-C2-senRO.js → Progress.vue_vue_type_style_index_0_lang-9eAYLmtJ.js} +31 -31
- package/dist/Progress.vue_vue_type_style_index_0_lang-DHysdRIJ.js +1 -0
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-Bpc9dmT5.js → RadioGroup.vue_vue_type_script_setup_true_lang-CaB3l3Qh.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-DwnLgUkZ.js → RadioGroup.vue_vue_type_script_setup_true_lang-dTuUkmBY.js} +2 -2
- 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-CzUFQ8vU.js → ScrollContainer.vue_vue_type_style_index_0_lang-CHAf6ZD-.js} +5 -6
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DDjSsSEk.js +1 -0
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-BT9qVATP.js → Segmented.vue_vue_type_style_index_0_lang-BHrbYl3U.js} +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-2GvPMHN9.js → Segmented.vue_vue_type_style_index_0_lang-DMAM-GcW.js} +10 -10
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-DnqLUNf5.js → Select.vue_vue_type_style_index_0_lang-CC6udKo8.js} +21 -21
- package/dist/{Select.vue_vue_type_style_index_0_lang-nm65VAKf.js → Select.vue_vue_type_style_index_0_lang-CToKzDBO.js} +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-BCI1fBC1.js +31 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-G0VfMmkm.js +1 -0
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-BUizov_K.js → Skeleton.vue_vue_type_style_index_0_lang-DOsf2SEN.js} +7 -8
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-vZBJnVJj.js +1 -0
- 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-DGAHQKaT.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-Cgo_qdud.js → Spinner.vue_vue_type_style_index_0_lang-DcW2bYrT.js} +15 -16
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- 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-CO6z_CP9.js → Switch.vue_vue_type_style_index_0_lang-6KGCYh5x.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-Dg7-38zx.js → Switch.vue_vue_type_style_index_0_lang-CaqBM1l0.js} +10 -10
- package/dist/TFoot.vue_vue_type_style_index_0_lang-BlzKy8f-.js +1 -0
- package/dist/{TFoot.vue_vue_type_style_index_0_lang-U5JbdZuv.js → TFoot.vue_vue_type_style_index_0_lang-CjyMQk21.js} +90 -82
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-C8Ms0E-d.js → TabContent.vue_vue_type_script_setup_true_lang-3CbQL3-9.js} +11 -11
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-BDgE6XJO.js → TabContent.vue_vue_type_script_setup_true_lang-C9wb6DWc.js} +1 -1
- package/dist/Table/Td.d.ts +3 -0
- package/dist/Table/Th.d.ts +2 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/Tabs.d.ts +1 -2
- package/dist/Tabs/index.js +1 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- 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-Ox5GgXqZ.js → Textarea.vue_vue_type_style_index_0_lang-CcBN3cHa.js} +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-BTRLsidO.js → Textarea.vue_vue_type_style_index_0_lang-Mb728qe4.js} +5 -5
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BCtOKxhe.js +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-EGhpYqca.js → Tree.vue_vue_type_style_index_0_lang-ps4oD1td.js} +97 -98
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-DQiIPST1.js → Upload.vue_vue_type_style_index_0_lang-Bw0-FFBA.js} +191 -191
- package/dist/Upload.vue_vue_type_style_index_0_lang-DrNvInJq.js +1 -0
- package/dist/{get-HKLqrvO9.js → get-DwC3C6S0.js} +0 -1
- package/dist/{get-BOaMZ4Zz.js → get-Zt0OZYlq.js} +1 -1
- package/dist/getTag-B-vgS5w-.js +6 -0
- package/dist/getTag-wz9ZngFj.js +1 -0
- package/dist/head-Bg_QoIT5.js +1 -0
- package/dist/{head-UxjF2DdW.js → head-E4xQy0iK.js} +2 -1
- package/dist/index.js +269 -268
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -6
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Dd2-pYUT.js +0 -1
- package/dist/Alert.vue_vue_type_style_index_0_lang-CAX3NQfW.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BY1eF6-d.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DWxSrLnd.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-jkvUvKs2.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D2WO6pVz.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-QDColA3Q.js +0 -218
- package/dist/Button.vue_vue_type_script_setup_true_lang-DVzErXxg.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-9R8RwIc-.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-9avqxpeP.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BdcJgZOU.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-Df2a52vJ.js +0 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-Dn5qxQ1y.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-C0rFGm6z.js +0 -1689
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DgqSk7Yr.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js +0 -36
- package/dist/Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-CjMpBxax.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CxxpozWM.js +0 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-DhMENZzr.js +0 -9
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-B1yA0-fJ.js +0 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-CQw5rAAp.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-Df7xWWKv.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-BHP9OGT0.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BR3SMJJL.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B2CJqjMa.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-lWlckYfr.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DtT9hjIh.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DorgZth-.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-z3D6rl2v.js +0 -47
- package/dist/Label.vue_vue_type_style_index_0_lang-BI6ldQ-j.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-CZKJpHXw.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DQJCWgtP.js +0 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-9gEnfMt3.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CanbeDed.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-gDNzK-gM.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-zXjU0WmT.js +0 -32
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxxeJ0kY.js +0 -1
- package/dist/TFoot.vue_vue_type_style_index_0_lang-_wYbaKgU.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-CzL-skk8.js +0 -1
- package/dist/Upload.vue_vue_type_style_index_0_lang-DIBLYxag.js +0 -1
- package/dist/head-MF68U5aK.js +0 -1
- package/dist/isSymbol-BaAMV3hm.js +0 -1
- package/dist/isSymbol-J4zJKWp4.js +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-pYXkjWnG.js");exports.ActionButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, useAttrs as l, computed as f, ref as m, createBlock as u, openBlock as d, mergeProps as b, createSlots as y, renderList as g, withCtx as B, renderSlot as _, normalizeProps as v, guardReactiveProps as I } from "vue";
|
|
2
2
|
import { omit as O } from "es-toolkit";
|
|
3
|
-
import { _ as h } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { getComponentOptions as k } from "@pantograph/utils
|
|
3
|
+
import { _ as h } from "./BaseButton.vue_vue_type_style_index_0_lang-CnEOAkBC.js";
|
|
4
|
+
import { getComponentOptions as k } from "@pantograph/utils";
|
|
5
5
|
const F = /* @__PURE__ */ c({
|
|
6
6
|
...k("ActionButton", !1),
|
|
7
7
|
__name: "ActionButton",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("es-toolkit"),u=require("./BaseButton.vue_vue_type_style_index_0_lang-DgsyiDzE.js"),_=require("@pantograph/utils"),f=e.defineComponent({..._.getComponentOptions("ActionButton",!1),__name:"ActionButton",props:{as:{},class:{},text:{},size:{},noRing:{type:Boolean},loading:{type:Boolean},active:{type:Boolean},badgeText:{},badgeIcon:{},icon:{},preIcon:{},postIcon:{},flipOnDir:{},preIconFlipOnDir:{},postIconFlipOnDir:{},badgeIconFlipOnDir:{},htmlType:{},block:{type:Boolean},disabled:{type:Boolean,default:void 0},hover:{type:Boolean},href:{},target:{},type:{},variant:{}},setup(r,{expose:s}){const i=r,a=e.useAttrs(),c=e.computed(()=>({...p.omit(a,["color","type","variant","action"]),...i})),o=e.ref();return s({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,d)=>(e.openBlock(),e.createBlock(u._sfc_main,e.mergeProps(c.value,{action:"",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(l=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(l)))])}))]),1040))}});exports._sfc_main=f;
|
package/dist/Alert/index.js
CHANGED
package/dist/Alert/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Alert.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Alert.vue_vue_type_style_index_0_lang-BA7GXism.js");exports.Alert=e._sfc_main;exports.AlertTypes=e.AlertTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("@pantograph/utils"),C=require("class-variance-authority"),g=require("./IconButton.vue_vue_type_script_setup_true_lang-CPe1EEDZ.js"),y=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-8uMyWodQ.js"),B=require("./Link.vue_vue_type_style_index_0_lang-mE8WUPbK.js"),i=["info","success","danger","warning","hint"],k=e.defineComponent({...n.getComponentOptions("Alert"),__name:"Alert",props:{type:{default:"hint"},closeable:{type:Boolean},class:{},icon:{},iconCls:{},bodyCls:{},closeableCls:{},fg:{},br:{},bg:{},title:{},titleCls:{},description:{},descriptionCls:{},link:{type:Boolean},linkProps:{}},emits:["close"],setup(c,{emit:u}){const r=c,m=u,t=n.getBemBlock("alert"),p=C.cva(t,{variants:{type:n.generateVariantClassList(i,t)}}),o=e.useSlots(),d={success:"tabler:circle-check",warning:"tabler:alert-triangle",danger:"tabler:circle-x",hint:"tabler:bulb",info:"tabler:info-circle"},s=e.computed(()=>r.icon??d[r.type]);return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(p)({type:l.type}),r.class)),style:e.normalizeStyle({"--ptc-alert-fg":l.fg,"--ptc-alert-bg":l.bg,"--ptc-alert-br":l.br})},[o.icon||s.value?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,size:"md",icon:s.value,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(t),"icon"),l.iconCls))},e.createSlots({_:2},[o.icon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"icon")]),key:"0"}:void 0]),1032,["icon","class"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(t),"body"),l.bodyCls))},[e.renderSlot(l.$slots,"default",{},()=>[l.title||o.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(t),"title"),l.titleCls,"paragraph"))},[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(l.title),1)])],2)):e.createCommentVNode("",!0),l.description||o.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(t),"description"),l.descriptionCls,"paragraph"))},[e.renderSlot(l.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(l.description),1)])],2)):e.createCommentVNode("",!0),l.link||o.link?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(t),"action"))},[e.renderSlot(l.$slots,"link",{},()=>[e.createVNode(e.unref(B._sfc_main),e.normalizeProps(e.guardReactiveProps(l.linkProps)),null,16)])],2)):e.createCommentVNode("",!0)])],2),r.closeable||o.closeable?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(t),"closeable"),l.closeableCls))},[e.renderSlot(l.$slots,"closeable",{},()=>[e.createVNode(g._sfc_main,{icon:"tabler:x",color:"neutral",type:"ghost",onClick:a[0]||(a[0]=f=>m("close",f))})])],2)):e.createCommentVNode("",!0)],6))}});exports.AlertTypes=i;exports._sfc_main=k;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent as h, useSlots as S, computed as V, createElementBlock as c, openBlock as n, normalizeStyle as z, normalizeClass as s, unref as o, createBlock as A, createCommentVNode as p, createElementVNode as N, createSlots as P, withCtx as w, renderSlot as i, createTextVNode as f, toDisplayString as y, createVNode as g, normalizeProps as E, guardReactiveProps as I } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { cva as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
...M("Alert"),
|
|
2
|
+
import { getComponentOptions as T, getBemBlock as D, generateVariantClassList as L, normCls as a, getBemElement as r } from "@pantograph/utils";
|
|
3
|
+
import { cva as M } from "class-variance-authority";
|
|
4
|
+
import { _ as O } from "./IconButton.vue_vue_type_script_setup_true_lang-BjRYx43p.js";
|
|
5
|
+
import { _ as R } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-BMxDhvcP.js";
|
|
6
|
+
import { _ as j } from "./Link.vue_vue_type_style_index_0_lang-Cm0Wcj-k.js";
|
|
7
|
+
const q = ["info", "success", "danger", "warning", "hint"], U = /* @__PURE__ */ h({
|
|
8
|
+
...T("Alert"),
|
|
10
9
|
__name: "Alert",
|
|
11
10
|
props: {
|
|
12
11
|
type: { default: "hint" },
|
|
@@ -28,9 +27,9 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
28
27
|
},
|
|
29
28
|
emits: ["close"],
|
|
30
29
|
setup(u, { emit: C }) {
|
|
31
|
-
const m = u, k = C, l =
|
|
30
|
+
const m = u, k = C, l = D("alert"), B = M(l, {
|
|
32
31
|
variants: {
|
|
33
|
-
type:
|
|
32
|
+
type: L(q, l)
|
|
34
33
|
// hasChild: generateVariantClassList('has-child', prefix),
|
|
35
34
|
}
|
|
36
35
|
}), t = S(), v = {
|
|
@@ -42,7 +41,7 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
42
41
|
}, d = V(() => m.icon ?? v[m.type]);
|
|
43
42
|
return (e, b) => (n(), c("div", {
|
|
44
43
|
class: s(
|
|
45
|
-
o(
|
|
44
|
+
o(a)(
|
|
46
45
|
o(B)({
|
|
47
46
|
type: e.type
|
|
48
47
|
}),
|
|
@@ -59,7 +58,7 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
59
58
|
key: 0,
|
|
60
59
|
size: "md",
|
|
61
60
|
icon: d.value,
|
|
62
|
-
class: s(o(
|
|
61
|
+
class: s(o(a)(o(r)(o(l), "icon"), e.iconCls))
|
|
63
62
|
}, P({ _: 2 }, [
|
|
64
63
|
t.icon ? {
|
|
65
64
|
name: "icon",
|
|
@@ -70,12 +69,12 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
70
69
|
} : void 0
|
|
71
70
|
]), 1032, ["icon", "class"])) : p("", !0),
|
|
72
71
|
N("div", {
|
|
73
|
-
class: s(o(
|
|
72
|
+
class: s(o(a)(o(r)(o(l), "body"), e.bodyCls))
|
|
74
73
|
}, [
|
|
75
74
|
i(e.$slots, "default", {}, () => [
|
|
76
75
|
e.title || t.title ? (n(), c("div", {
|
|
77
76
|
key: 0,
|
|
78
|
-
class: s(o(
|
|
77
|
+
class: s(o(a)(o(r)(o(l), "title"), e.titleCls, "paragraph"))
|
|
79
78
|
}, [
|
|
80
79
|
i(e.$slots, "title", {}, () => [
|
|
81
80
|
f(y(e.title), 1)
|
|
@@ -83,7 +82,7 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
83
82
|
], 2)) : p("", !0),
|
|
84
83
|
e.description || t.description ? (n(), c("div", {
|
|
85
84
|
key: 1,
|
|
86
|
-
class: s(o(
|
|
85
|
+
class: s(o(a)(o(r)(o(l), "description"), e.descriptionCls, "paragraph"))
|
|
87
86
|
}, [
|
|
88
87
|
i(e.$slots, "description", {}, () => [
|
|
89
88
|
f(y(e.description), 1)
|
|
@@ -91,7 +90,7 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
91
90
|
], 2)) : p("", !0),
|
|
92
91
|
e.link || t.link ? (n(), c("div", {
|
|
93
92
|
key: 2,
|
|
94
|
-
class: s(o(
|
|
93
|
+
class: s(o(r)(o(l), "action"))
|
|
95
94
|
}, [
|
|
96
95
|
i(e.$slots, "link", {}, () => [
|
|
97
96
|
g(o(j), E(I(e.linkProps)), null, 16)
|
|
@@ -101,7 +100,7 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
101
100
|
], 2),
|
|
102
101
|
m.closeable || t.closeable ? (n(), c("div", {
|
|
103
102
|
key: 1,
|
|
104
|
-
class: s(o(
|
|
103
|
+
class: s(o(a)(o(r)(o(l), "closeable"), e.closeableCls))
|
|
105
104
|
}, [
|
|
106
105
|
i(e.$slots, "closeable", {}, () => [
|
|
107
106
|
g(O, {
|
|
@@ -117,5 +116,5 @@ const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */
|
|
|
117
116
|
});
|
|
118
117
|
export {
|
|
119
118
|
q as A,
|
|
120
|
-
|
|
119
|
+
U as _
|
|
121
120
|
};
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t, c as r, b as e, A, a as v, _ as n } from "../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as t, c as r, b as e, A, a as v, _ as n } from "../Avatar.vue_vue_type_style_index_0_lang-B-Xr8CBm.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Avatar,
|
|
4
4
|
r as AvatarOnlineAlignments,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-DMv8hlec.js");exports.Avatar=e._sfc_main;exports.AvatarOnlineAlignments=e.AvatarOnlineAlignments;exports.AvatarShapes=e.AvatarShapes;exports.AvatarSizes=e.AvatarSizes;exports.AvatarStrokes=e.AvatarStrokes;exports.default=e._sfc_main;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as O, useSlots as F, computed as o, createElementBlock as y, openBlock as c, normalizeClass as v, unref as t, createVNode as I, h as x, createBlock as A, withCtx as B, createCommentVNode as _, Fragment as R, mergeProps as T, renderSlot as b, createTextVNode as $, toDisplayString as w } from "vue";
|
|
2
2
|
import { createContext as H, useEmitAsProps as J, AvatarRoot as K, AvatarImage as Q, AvatarFallback as U } from "reka-ui";
|
|
3
|
-
import {
|
|
4
|
-
import { cva as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as X } from "./HoverCard.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import "./Popover.vue_vue_type_style_index_0_lang-
|
|
8
|
-
import { _ as Y } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
9
|
-
import { _ as Z } from "./Indicator.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { getComponentOptions as j, getBemBlock as q, getBemElement as f, generateVariantClassList as d, normCls as P } from "@pantograph/utils";
|
|
4
|
+
import { cva as D } from "class-variance-authority";
|
|
5
|
+
import { flattenChildren as W } from "@pantograph/utils-vue";
|
|
6
|
+
import { _ as X } from "./HoverCard.vue_vue_type_style_index_0_lang-DClce_lb.js";
|
|
7
|
+
import "./Popover.vue_vue_type_style_index_0_lang-BZrEBBI1.js";
|
|
8
|
+
import { _ as Y } from "./Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js";
|
|
9
|
+
import { _ as Z } from "./Indicator.vue_vue_type_script_setup_true_lang-qbXRbfSe.js";
|
|
10
10
|
const [ee, te] = H("AvatarGroup"), pe = /* @__PURE__ */ O({
|
|
11
|
-
...
|
|
11
|
+
...j("AvatarGroup"),
|
|
12
12
|
__name: "AvatarGroup",
|
|
13
13
|
props: {
|
|
14
14
|
class: {},
|
|
@@ -20,7 +20,7 @@ const [ee, te] = H("AvatarGroup"), pe = /* @__PURE__ */ O({
|
|
|
20
20
|
noPopover: { type: Boolean }
|
|
21
21
|
},
|
|
22
22
|
setup(C) {
|
|
23
|
-
const a = C, g = F(), r = o(() => a.size), s = o(() => a.shape), S =
|
|
23
|
+
const a = C, g = F(), r = o(() => a.size), s = o(() => a.shape), S = q("avatar"), h = f(S, "group"), z = D(h, {
|
|
24
24
|
variants: {
|
|
25
25
|
gutter: d("gutter", h)
|
|
26
26
|
}
|
|
@@ -78,7 +78,7 @@ const [ee, te] = H("AvatarGroup"), pe = /* @__PURE__ */ O({
|
|
|
78
78
|
start: "online-start",
|
|
79
79
|
end: "online-end"
|
|
80
80
|
}, se = /* @__PURE__ */ O({
|
|
81
|
-
...
|
|
81
|
+
...j("Avatar"),
|
|
82
82
|
__name: "Avatar",
|
|
83
83
|
props: {
|
|
84
84
|
src: { default: "" },
|
|
@@ -100,7 +100,7 @@ const [ee, te] = H("AvatarGroup"), pe = /* @__PURE__ */ O({
|
|
|
100
100
|
},
|
|
101
101
|
emits: ["loadingStatusChange"],
|
|
102
102
|
setup(C, { emit: a }) {
|
|
103
|
-
const g = F(), r =
|
|
103
|
+
const g = F(), r = q("avatar"), s = C, h = J(a), z = D(r, {
|
|
104
104
|
variants: {
|
|
105
105
|
size: d(E, r),
|
|
106
106
|
stroke: d(G, r),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("reka-ui"),t=require("@pantograph/utils"),B=require("class-variance-authority"),E=require("@pantograph/utils-vue"),q=require("./HoverCard.vue_vue_type_style_index_0_lang-B1Et8g3D.js");require("./Popover.vue_vue_type_style_index_0_lang-V6Aj9-qY.js");const b=require("./Icon.vue_vue_type_style_index_0_lang-DQNF7GAr.js"),N=require("./Indicator.vue_vue_type_script_setup_true_lang-g2dBu5LK.js"),[x,y]=p.createContext("AvatarGroup"),G=e.defineComponent({...t.getComponentOptions("AvatarGroup"),__name:"AvatarGroup",props:{class:{},gutter:{type:Boolean},size:{},shape:{},popoverProps:{},maxCount:{},noPopover:{type:Boolean}},setup(f){const n=f,v=e.useSlots(),o=e.computed(()=>n.size),s=e.computed(()=>n.shape),g=t.getBemBlock("avatar"),d=t.getBemElement(g,"group"),C=B.cva(d,{variants:{gutter:t.generateVariantClassList("gutter",d)}});y({size:o,shape:s});const r=e.computed(()=>n.maxCount?Number(n.maxCount):0),c=e.computed(()=>C({gutter:n.gutter})),i=e.computed(()=>{switch(n.size){case"2xsm":case"xsm":case"sm":return"sm";case"lg":case"xlg":return"lg";default:return"md"}}),k=()=>{const l=E.flattenChildren(v.default?v.default():[]),m=()=>e.h(S,{text:`+${l.length-r.value}`});return r.value>=1&&l.length>r.value?[...l.filter((a,u)=>u<r.value),n.noPopover?m():e.h(q._sfc_main,{size:i.value,...n.popoverProps??{}},{default:m,content:()=>e.h("div",{class:t.normCls(c.value,n.class)},{default:()=>l.filter((a,u)=>u>=r.value)})})]:l};return(l,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t.normCls)(c.value,n.class))},[e.createVNode(k,{maxCount:l.maxCount},null,8,["maxCount"])],2))}}),_=["2xsm","xsm","sm","md","lg","xlg"],A=["gray","white"],h=["circle","square","rect"],z={start:"online-start",end:"online-end"},S=e.defineComponent({...t.getComponentOptions("Avatar"),__name:"Avatar",props:{src:{default:""},class:{},onlineColor:{default:"lime"},size:{default:"md"},stroke:{},shape:{default:"circle"},online:{type:Boolean},unExtendParent:{type:Boolean,default:!1},alt:{},fallback:{},text:{},icon:{default:"tabler:user"},onlineAlignment:{default:"start"},referrerPolicy:{},crossOrigin:{},delayMs:{}},emits:["loadingStatusChange"],setup(f,{emit:n}){const v=e.useSlots(),o=t.getBemBlock("avatar"),s=f,g=n,d=p.useEmitAsProps(g),C=B.cva(o,{variants:{size:t.generateVariantClassList(_,o),stroke:t.generateVariantClassList(A,o),shape:t.generateVariantClassList(h,o),onlineAlignment:t.generateVariantClassList(z,o)}}),r=s.unExtendParent?void 0:x({size:e.computed(()=>s.size),shape:e.computed(()=>s.shape)}),c=e.computed(()=>(r==null?void 0:r.size.value)??s.size),i=e.computed(()=>(r==null?void 0:r.shape.value)??s.shape),k=e.computed(()=>{const a=c.value&&_.includes(c.value)?c.value:"md",u=s.stroke&&A.includes(s.stroke)?s.stroke:"none",V=i.value&&h.includes(i.value)?i.value:"circle",P=z[s.onlineAlignment]?s.onlineAlignment:"start";return{size:a,stroke:u,shape:V,onlineAlignment:P}}),l=e.computed(()=>{switch(c.value){case"lg":case"xlg":return"tiny";default:return"tinier"}}),m=e.computed(()=>{switch(c.value){case"lg":case"xlg":return"sm";case"xsm":case"2xsm":return"3xsm";case"sm":case"md":default:return"xsm"}});return(a,u)=>(e.openBlock(),e.createBlock(e.unref(p.AvatarRoot),{as:"div",class:e.normalizeClass(e.unref(t.normCls)(e.unref(C)(k.value),s.class))},{default:e.withCtx(()=>[!v.default&&!a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.src?(e.openBlock(),e.createBlock(e.unref(p.AvatarImage),e.mergeProps({key:0},e.unref(d),{src:a.src,alt:a.alt,class:e.unref(t.getBemElement)(e.unref(o),"image")}),null,16,["src","alt","class"])):e.createCommentVNode("",!0),e.createVNode(e.unref(p.AvatarFallback),{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(o),"fallback"))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"fallback",{},()=>[a.fallback?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,icon:a.icon,size:m.value},null,8,["icon","size"])),e.createTextVNode(" "+e.toDisplayString(a.fallback),1)])]),_:3},8,["class"])],64)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(o),"image"))},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(a.text),1)])],2)),a.online?(e.openBlock(),e.createBlock(N._sfc_main,{key:2,color:a.onlineColor,size:l.value,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(o),"online"))},null,8,["color","size","class"])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});exports.AvatarOnlineAlignments=z;exports.AvatarShapes=h;exports.AvatarSizes=_;exports.AvatarStrokes=A;exports._sfc_main=S;exports._sfc_main$1=G;exports.injectAvatarGroupContext=x;exports.provideAvatarGroupContext=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-DMv8hlec.js");exports.AvatarGroup=t._sfc_main$1;exports.injectAvatarGroupContext=t.injectAvatarGroupContext;exports.provideAvatarGroupContext=t.provideAvatarGroupContext;
|
package/dist/Badge/index.js
CHANGED
package/dist/Badge/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-DVt1axIK.js");exports.Badge=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, useAttrs as b, computed as n, createBlock as C, openBlock as _, mergeProps as B, createSlots as $, renderList as k, withCtx as h, renderSlot as v, normalizeProps as O, guardReactiveProps as P } from "vue";
|
|
2
2
|
import { omit as S } from "es-toolkit";
|
|
3
|
-
import { _ as w } from "./BaseBadge.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { getComponentOptions as x } from "@pantograph/utils
|
|
3
|
+
import { _ as w } from "./BaseBadge.vue_vue_type_style_index_0_lang-DG6AxxJf.js";
|
|
4
|
+
import { getComponentOptions as x } from "@pantograph/utils";
|
|
5
5
|
import { b as e, c as t } from "./BaseBadge.model-DCiuNKoh.js";
|
|
6
6
|
import { getCssCoreColor as o } from "@pantograph/tokens";
|
|
7
7
|
const R = /* @__PURE__ */ y({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("vue"),f=require("es-toolkit"),B=require("./BaseBadge.vue_vue_type_style_index_0_lang-C_f3-aVP.js"),_=require("@pantograph/utils"),s=require("./BaseBadge.model-DecqxaGN.js"),r=require("@pantograph/tokens"),m=o.defineComponent({..._.getComponentOptions("Badge",!1),__name:"Badge",props:{class:{},text:{},icon:{},flipOnDir:{},size:{},color:{default:"primary"}},setup(n){const e=n,a=o.useAttrs(),t=[...s.BadgeColors,...s.BadgeColorsSubtle],i=[...s.BadgeColors,...s.BadgeColorsSubtle],u=()=>{if(i.includes(e.color)){if(e.color==="gray-subtle")return r.getCssCoreColor("gray-6");if(e.color==="yellow")return r.getCssCoreColor("grayscale-dark-0");if(s.BadgeColorsSubtle.includes(e.color))return r.getCssCoreColor(`${e.color.replace("-subtle","")}-5`);if(s.BadgeColors.includes(e.color))return r.getCssCoreColor("grayscale-light-0")}},g=()=>{if(t.includes(e.color)){if(e.color==="gray-subtle")return r.getCssCoreColor("gray-1");if(s.BadgeColorsSubtle.includes(e.color))return r.getCssCoreColor(`${e.color.replace("-subtle","")}-0`);if(s.BadgeColors.includes(e.color))return r.getCssCoreColor(`${e.color}-5`)}},C=o.computed(()=>e.color&&t.includes(e.color)?{bg:g(),fg:u()}:{bg:r.getCssCoreColor("primary-5"),fg:r.getCssCoreColor("primary-oncolor")}),d=o.computed(()=>({...f.omit(a,["type"]),...e,...C.value}));return(l,y)=>(o.openBlock(),o.createBlock(B._sfc_main,o.mergeProps(d.value,{type:"pill"}),o.createSlots({_:2},[o.renderList(Object.keys(l.$slots),c=>({name:c,fn:o.withCtx(p=>[o.renderSlot(l.$slots,c,o.normalizeProps(o.guardReactiveProps(p)))])}))]),1040))}});exports._sfc_main=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),n=require("@pantograph/utils"),q=require("class-variance-authority"),v=require("@pantograph/utils-vue"),o=require("./BaseBadge.model-DecqxaGN.js"),L=require("./Icon.vue_vue_type_style_index_0_lang-DQNF7GAr.js"),V=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-CyGHtFPF.js"),D=s.defineComponent({...n.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{},text:{},bg:{},fg:{},br:{},type:{default:"pill"},icon:{},flipOnDir:{}},setup(B){const{getFlipOnDir:x}=V.useConfig(),b=x("flipOnDir"),i=n.getBemBlock("badge"),e=B,h=q.cva(i,{variants:{size:n.generateVariantClassList(o.BadgeSizes,i),type:n.generateVariantClassList(o.BadgeTypes,i),text:n.generateVariantClassList("text",i),icon:n.generateVariantClassList("icon",i),br:n.generateVariantClassList("br",i)}}),a=s.useSlots(),c=s.computed(()=>o.BadgeTypes.includes(e.type)?e.type:"pill"),d=s.computed(()=>{let t=o.BadgeSizes.includes(e.size)?e.size:"md";return t==="sm"&&c.value!=="rect"?c.value==="minify"?t="tiny":c.value==="pill"&&(t="md"):c.value==="minify"&&!["tiny","tinier"].includes(t)?t="tiny":c.value!=="minify"&&["tiny","tinier"].includes(t)&&(t="md"),t}),C=s.computed(()=>{switch(d.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),z=()=>{var _,y;const t=[];let r,l;const u=e.type==="minify";u||(r=(_=a.icon)==null?void 0:_.call(a,{}),l=(y=a.default)==null?void 0:y.call(a,{}));const f=!u&&!v.isEmptyElement(l),m=!u&&!v.isEmptyElement(r),p=!!(e.text===0||!n.isEmptyLikeLodash(e.text)||f),g=!!(e.icon||m);(e.type==="rect"&&p?!1:g)&&t.push(s.h(L._sfc_main,{icon:e.icon,size:C.value,flipOnDir:b.value},m?{default:()=>r}:void 0)),p&&(f?t.push(l):t.push(e.text));const S={size:d.value,type:c.value,text:p,icon:g,br:!!e.br};return s.h("div",{class:n.normCls(h(S),e.class),style:{"--ptc-badge-fg":e.fg,"--ptc-badge-bg":e.bg,"--ptc-badge-br":e.br}},t)};return(t,r)=>(s.openBlock(),s.createBlock(z))}});exports._sfc_main=D;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as k, useSlots as I, computed as p, createBlock as E, openBlock as L, h as x } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { cva as
|
|
4
|
-
import {
|
|
2
|
+
import { getComponentOptions as w, getBemBlock as F, generateVariantClassList as o, isEmptyLikeLodash as G, normCls as M } from "@pantograph/utils";
|
|
3
|
+
import { cva as P } from "class-variance-authority";
|
|
4
|
+
import { isEmptyElement as v } from "@pantograph/utils-vue";
|
|
5
5
|
import { a as b, B } from "./BaseBadge.model-DCiuNKoh.js";
|
|
6
|
-
import { _ as T } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { u as V } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as T } from "./Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js";
|
|
7
|
+
import { u as V } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-IVHvl51_.js";
|
|
8
8
|
const Q = /* @__PURE__ */ k({
|
|
9
|
-
...
|
|
9
|
+
...w("BaseBadge"),
|
|
10
10
|
__name: "BaseBadge",
|
|
11
11
|
props: {
|
|
12
12
|
size: { default: "md" },
|
|
@@ -20,7 +20,7 @@ const Q = /* @__PURE__ */ k({
|
|
|
20
20
|
flipOnDir: {}
|
|
21
21
|
},
|
|
22
22
|
setup(_) {
|
|
23
|
-
const { getFlipOnDir: h } = V(), z = h("flipOnDir"), i =
|
|
23
|
+
const { getFlipOnDir: h } = V(), z = h("flipOnDir"), i = F("badge"), e = _, S = P(i, {
|
|
24
24
|
variants: {
|
|
25
25
|
size: o(B, i),
|
|
26
26
|
type: o(b, i),
|
|
@@ -49,7 +49,7 @@ const Q = /* @__PURE__ */ k({
|
|
|
49
49
|
let c, a;
|
|
50
50
|
const r = e.type === "minify";
|
|
51
51
|
r || (c = (y = n.icon) == null ? void 0 : y.call(n, {}), a = (g = n.default) == null ? void 0 : g.call(n, {}));
|
|
52
|
-
const m = !r && !v(a), u = !r && !v(c), l = !!(e.text === 0 || !
|
|
52
|
+
const m = !r && !v(a), u = !r && !v(c), l = !!(e.text === 0 || !G(e.text) || m), d = !!(e.icon || u);
|
|
53
53
|
(e.type === "rect" && l ? !1 : d) && t.push(
|
|
54
54
|
x(
|
|
55
55
|
T,
|
|
@@ -69,7 +69,7 @@ const Q = /* @__PURE__ */ k({
|
|
|
69
69
|
return x(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
|
-
class:
|
|
72
|
+
class: M(S(O), e.class),
|
|
73
73
|
style: {
|
|
74
74
|
"--ptc-badge-fg": e.fg,
|
|
75
75
|
"--ptc-badge-bg": e.bg,
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as M, computed as p, useSlots as Q, ref as C, watch as U, createBlock as f, openBlock as u, unref as l, mergeProps as W, withCtx as v, createElementBlock as X, Fragment as Y, createCommentVNode as _, renderSlot as I, createVNode as Z, createTextVNode as ee, toDisplayString as oe, normalizeClass as te, h as ne } from "vue";
|
|
2
|
+
import { _ as h } from "./Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js";
|
|
3
|
+
import { _ as ae } from "./Spinner.vue_vue_type_style_index_0_lang-DcW2bYrT.js";
|
|
4
|
+
import { _ as ie } from "./Badge.vue_vue_type_script_setup_true_lang-D8HhPgXQ.js";
|
|
5
|
+
import { Primitive as le } from "reka-ui";
|
|
6
|
+
import { B as T, b as F, a as P, c as $, i as re } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-Cdto0wL9.js";
|
|
7
|
+
import { u as se } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-IVHvl51_.js";
|
|
8
|
+
import { useFormInput as ce, isEmptyElement as pe } from "@pantograph/utils-vue";
|
|
9
|
+
import { getBemBlock as ue, generateVariantClassList as a, getComponentOptions as fe, normCls as de, getBemElement as me } from "@pantograph/utils";
|
|
10
|
+
import { cva as ge } from "class-variance-authority";
|
|
11
|
+
const n = ue("button"), ve = ge(n, {
|
|
12
|
+
variants: {
|
|
13
|
+
size: a($, n),
|
|
14
|
+
type: a(P, n),
|
|
15
|
+
color: a(F, n),
|
|
16
|
+
variant: a(T, 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
|
+
}), Se = /* @__PURE__ */ M({
|
|
27
|
+
...fe("BaseButton"),
|
|
28
|
+
__name: "BaseButton",
|
|
29
|
+
props: {
|
|
30
|
+
as: {},
|
|
31
|
+
class: {},
|
|
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
|
+
flipOnDir: {},
|
|
47
|
+
preIconFlipOnDir: {},
|
|
48
|
+
postIconFlipOnDir: {},
|
|
49
|
+
badgeIconFlipOnDir: {},
|
|
50
|
+
htmlType: { default: "button" },
|
|
51
|
+
block: { type: Boolean },
|
|
52
|
+
disabled: { type: Boolean, default: void 0 },
|
|
53
|
+
hover: { type: Boolean },
|
|
54
|
+
href: {},
|
|
55
|
+
target: {}
|
|
56
|
+
},
|
|
57
|
+
emits: ["click"],
|
|
58
|
+
setup(R, { expose: V, emit: w }) {
|
|
59
|
+
const o = R, { getFlipOnDir: d } = se(), E = d("flipOnDir"), N = d("preIconFlipOnDir"), G = d("postIconFlipOnDir"), j = d("badgeIconFlipOnDir"), k = re({}), m = p(() => {
|
|
60
|
+
var e;
|
|
61
|
+
return o.variant ?? ((e = k.props) == null ? void 0 : e.variant) ?? "simple";
|
|
62
|
+
}), i = p(
|
|
63
|
+
() => ["icon", "float"].includes(m.value) || (t.icon || o.icon) && !(o.text || t.default || o.preIcon || t.preIcon || o.postIcon || t.postIcon)
|
|
64
|
+
), t = Q(), { getDisabled: b, getSize: y } = ce({ getSize: () => {
|
|
65
|
+
var e;
|
|
66
|
+
return o.size ?? ((e = k.props) == null ? void 0 : e.size);
|
|
67
|
+
} }), A = p(() => {
|
|
68
|
+
let e = P.includes(o.type) ? o.type : "fill";
|
|
69
|
+
const r = y.value, g = r && $.includes(r) ? r : "md";
|
|
70
|
+
let s = o.color && F.includes(o.color) ? o.color : "primary", c = m.value && T.includes(m.value) ? m.value : "simple";
|
|
71
|
+
return o.action ? ((c === "float" || i.value) && (c = "icon"), e === "fill" && (e = "outline"), s = void 0) : c === "float" && (e === "ghost" && (e = "fill"), ["primary", "neutral"].includes(s) || (s = "primary")), {
|
|
72
|
+
size: g,
|
|
73
|
+
type: e,
|
|
74
|
+
color: s,
|
|
75
|
+
variant: c,
|
|
76
|
+
action: !!o.action,
|
|
77
|
+
active: !!o.active,
|
|
78
|
+
loading: !!o.loading,
|
|
79
|
+
block: !!o.block,
|
|
80
|
+
noRing: !!o.noRing,
|
|
81
|
+
text: !i.value && !!(o.text || t.default),
|
|
82
|
+
preIcon: !i.value && !!(o.preIcon || t.preIcon),
|
|
83
|
+
postIcon: !i.value && !!(o.postIcon || t.postIcon)
|
|
84
|
+
};
|
|
85
|
+
}), B = p(() => {
|
|
86
|
+
switch (y.value) {
|
|
87
|
+
case "lg":
|
|
88
|
+
return "sm";
|
|
89
|
+
case "sm":
|
|
90
|
+
return "2xsm";
|
|
91
|
+
default:
|
|
92
|
+
return "xsm";
|
|
93
|
+
}
|
|
94
|
+
}), K = p(() => {
|
|
95
|
+
switch (y.value) {
|
|
96
|
+
case "sm":
|
|
97
|
+
return "3xsm";
|
|
98
|
+
case "lg":
|
|
99
|
+
return "xsm";
|
|
100
|
+
case "md":
|
|
101
|
+
default:
|
|
102
|
+
return "2xsm";
|
|
103
|
+
}
|
|
104
|
+
}), D = "2xsm", x = C(0), O = p(() => o.as ? o.as : o.href ? "a" : "button");
|
|
105
|
+
U(O, () => {
|
|
106
|
+
x.value++;
|
|
107
|
+
});
|
|
108
|
+
const L = p(() => {
|
|
109
|
+
const e = {
|
|
110
|
+
disabled: b.value
|
|
111
|
+
};
|
|
112
|
+
return o.href && (e.href = o.href, e.target = o.target), o.htmlType && (e.type = o.htmlType), o.hover && (e["data-hover"] = ""), e;
|
|
113
|
+
}), z = C();
|
|
114
|
+
V({
|
|
115
|
+
focus() {
|
|
116
|
+
var e;
|
|
117
|
+
(e = z.value) == null || e.focus();
|
|
118
|
+
},
|
|
119
|
+
blur() {
|
|
120
|
+
var e;
|
|
121
|
+
(e = z.value) == null || e.blur();
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
const q = w, H = (e) => {
|
|
125
|
+
if (o.loading || o.disabled) {
|
|
126
|
+
e.preventDefault(), e.stopPropagation();
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
q("click", e);
|
|
130
|
+
}, J = () => {
|
|
131
|
+
var e, r, g;
|
|
132
|
+
if (o.action && o.active && !i.value) {
|
|
133
|
+
const s = (e = t.badge) == null ? void 0 : e.call(t, {
|
|
134
|
+
color: b.value ? "gray" : "primary",
|
|
135
|
+
size: D
|
|
136
|
+
});
|
|
137
|
+
if (!pe(s)) return s;
|
|
138
|
+
const c = (r = t.badgeText) == null ? void 0 : r.call(t, {}), S = (g = t.badgeIcon) == null ? void 0 : g.call(t, {});
|
|
139
|
+
if (o.badgeText || c || o.badgeIcon || S)
|
|
140
|
+
return ne(
|
|
141
|
+
ie,
|
|
142
|
+
{
|
|
143
|
+
text: o.badgeText,
|
|
144
|
+
icon: o.badgeIcon,
|
|
145
|
+
flipOnDir: j.value,
|
|
146
|
+
color: b.value ? "gray" : "primary",
|
|
147
|
+
size: D
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
default: c ? t.badgeText : void 0,
|
|
151
|
+
icon: S ? t.badgeIcon : void 0
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
return null;
|
|
156
|
+
};
|
|
157
|
+
return (e, r) => (u(), f(l(le), W({
|
|
158
|
+
as: O.value,
|
|
159
|
+
key: String(x.value),
|
|
160
|
+
class: l(de)(l(ve)(A.value), o.class),
|
|
161
|
+
ref_key: "buttonRef",
|
|
162
|
+
ref: z
|
|
163
|
+
}, L.value, { onClick: H }), {
|
|
164
|
+
default: v(() => [
|
|
165
|
+
e.loading ? (u(), f(ae, {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: te(l(me)(l(n), "loading")),
|
|
168
|
+
size: B.value
|
|
169
|
+
}, null, 8, ["class", "size"])) : (u(), X(Y, { key: 0 }, [
|
|
170
|
+
(e.preIcon || t.preIcon) && !i.value ? (u(), f(h, {
|
|
171
|
+
key: 0,
|
|
172
|
+
flipOnDir: l(N),
|
|
173
|
+
icon: e.preIcon,
|
|
174
|
+
size: B.value
|
|
175
|
+
}, {
|
|
176
|
+
default: v(() => [
|
|
177
|
+
I(e.$slots, "preIcon")
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 8, ["flipOnDir", "icon", "size"])) : _("", !0),
|
|
181
|
+
i.value ? (u(), f(h, {
|
|
182
|
+
key: 1,
|
|
183
|
+
icon: e.icon,
|
|
184
|
+
size: K.value,
|
|
185
|
+
flipOnDir: l(E)
|
|
186
|
+
}, {
|
|
187
|
+
default: v(() => [
|
|
188
|
+
I(e.$slots, "icon")
|
|
189
|
+
]),
|
|
190
|
+
_: 3
|
|
191
|
+
}, 8, ["icon", "size", "flipOnDir"])) : I(e.$slots, "default", { key: 2 }, () => [
|
|
192
|
+
ee(oe(e.text), 1)
|
|
193
|
+
]),
|
|
194
|
+
Z(J),
|
|
195
|
+
(e.postIcon || t.postIcon) && !i.value ? (u(), f(h, {
|
|
196
|
+
key: 3,
|
|
197
|
+
flipOnDir: l(G),
|
|
198
|
+
icon: e.postIcon,
|
|
199
|
+
size: B.value
|
|
200
|
+
}, {
|
|
201
|
+
default: v(() => [
|
|
202
|
+
I(e.$slots, "postIcon")
|
|
203
|
+
]),
|
|
204
|
+
_: 3
|
|
205
|
+
}, 8, ["flipOnDir", "icon", "size"])) : _("", !0)
|
|
206
|
+
], 64))
|
|
207
|
+
]),
|
|
208
|
+
_: 3
|
|
209
|
+
}, 16, ["as", "class"]));
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
export {
|
|
213
|
+
Se as _,
|
|
214
|
+
ve as a,
|
|
215
|
+
n as b
|
|
216
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./Icon.vue_vue_type_style_index_0_lang-DQNF7GAr.js"),N=require("./Spinner.vue_vue_type_style_index_0_lang-DGAHQKaT.js"),$=require("./Badge.vue_vue_type_script_setup_true_lang-DVt1axIK.js"),G=require("reka-ui"),r=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-B1xohKaV.js"),A=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-CyGHtFPF.js"),h=require("@pantograph/utils-vue"),a=require("@pantograph/utils"),j=require("class-variance-authority"),i=a.getBemBlock("button"),z=j.cva(i,{variants:{size:a.generateVariantClassList(r.ButtonSizes,i),type:a.generateVariantClassList(r.ButtonTypes,i),color:a.generateVariantClassList(r.ButtonColors,i),variant:a.generateVariantClassList(r.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:{},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:{},flipOnDir:{},preIconFlipOnDir:{},postIconFlipOnDir:{},badgeIconFlipOnDir:{},htmlType:{default:"button"},block:{type:Boolean},disabled:{type:Boolean,default:void 0},hover:{type:Boolean},href:{},target:{}},emits:["click"],setup(x,{expose:V,emit:D}){const n=x,{getFlipOnDir:p}=A.useConfig(),S=p("flipOnDir"),O=p("preIconFlipOnDir"),L=p("postIconFlipOnDir"),T=p("badgeIconFlipOnDir"),y=r.injectButtonGroupContext({}),d=e.computed(()=>{var t;return n.variant??((t=y.props)==null?void 0:t.variant)??"simple"}),s=e.computed(()=>["icon","float"].includes(d.value)||(o.icon||n.icon)&&!(n.text||o.default||n.preIcon||o.preIcon||n.postIcon||o.postIcon)),o=e.useSlots(),{getDisabled:g,getSize:v}=h.useFormInput({getSize:()=>{var t;return n.size??((t=y.props)==null?void 0:t.size)}}),q=e.computed(()=>{let t=r.ButtonTypes.includes(n.type)?n.type:"fill";const l=v.value,f=l&&r.ButtonSizes.includes(l)?l:"md";let c=n.color&&r.ButtonColors.includes(n.color)?n.color:"primary",u=d.value&&r.ButtonVariants.includes(d.value)?d.value:"simple";return n.action?((u==="float"||s.value)&&(u="icon"),t==="fill"&&(t="outline"),c=void 0):u==="float"&&(t==="ghost"&&(t="fill"),["primary","neutral"].includes(c)||(c="primary")),{size:f,type:t,color:c,variant:u,action:!!n.action,active:!!n.active,loading:!!n.loading,block:!!n.block,noRing:!!n.noRing,text:!s.value&&!!(n.text||o.default),preIcon:!s.value&&!!(n.preIcon||o.preIcon),postIcon:!s.value&&!!(n.postIcon||o.postIcon)}}),m=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"}}),I="2xsm",b=e.ref(0),k=e.computed(()=>n.as?n.as:n.href?"a":"button");e.watch(k,()=>{b.value++});const P=e.computed(()=>{const t={disabled:g.value};return n.href&&(t.href=n.href,t.target=n.target),n.htmlType&&(t.type=n.htmlType),n.hover&&(t["data-hover"]=""),t}),_=e.ref();V({focus(){var t;(t=_.value)==null||t.focus()},blur(){var t;(t=_.value)==null||t.blur()}});const w=D,R=t=>{if(n.loading||n.disabled){t.preventDefault(),t.stopPropagation();return}w("click",t)},E=()=>{var t,l,f;if(n.action&&n.active&&!s.value){const c=(t=o.badge)==null?void 0:t.call(o,{color:g.value?"gray":"primary",size:I});if(!h.isEmptyElement(c))return c;const u=(l=o.badgeText)==null?void 0:l.call(o,{}),C=(f=o.badgeIcon)==null?void 0:f.call(o,{});if(n.badgeText||u||n.badgeIcon||C)return e.h($._sfc_main,{text:n.badgeText,icon:n.badgeIcon,flipOnDir:T.value,color:g.value?"gray":"primary",size:I},{default:u?o.badgeText:void 0,icon:C?o.badgeIcon:void 0})}return null};return(t,l)=>(e.openBlock(),e.createBlock(e.unref(G.Primitive),e.mergeProps({as:k.value,key:String(b.value),class:e.unref(a.normCls)(e.unref(z)(q.value),n.class),ref_key:"buttonRef",ref:_},P.value,{onClick:R}),{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(N._sfc_main,{key:1,class:e.normalizeClass(e.unref(a.getBemElement)(e.unref(i),"loading")),size:m.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(t.preIcon||o.preIcon)&&!s.value?(e.openBlock(),e.createBlock(B._sfc_main,{key:0,flipOnDir:e.unref(O),icon:t.preIcon,size:m.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"preIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createBlock(B._sfc_main,{key:1,icon:t.icon,size:F.value,flipOnDir:e.unref(S)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size","flipOnDir"])):e.renderSlot(t.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),e.createVNode(E),(t.postIcon||o.postIcon)&&!s.value?(e.openBlock(),e.createBlock(B._sfc_main,{key:3,flipOnDir:e.unref(L),icon:t.postIcon,size:m.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"postIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0)],64))]),_:3},16,["as","class"]))}});exports._sfc_main=K;exports.buttonPrefix=i;exports.buttonVariantsClass=z;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as h, useSlots as k, computed as b, createElementBlock as z, openBlock as p, normalizeClass as g, unref as a, createVNode as I, renderSlot as v, createCommentVNode as B, Fragment as w, createBlock as V, withModifiers as $, withCtx as E, createTextVNode as L, toDisplayString as N, h as F } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as O } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l =
|
|
2
|
+
import { cva as D } from "class-variance-authority";
|
|
3
|
+
import { _ as M } from "./Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js";
|
|
4
|
+
import { _ as O } from "./Divider.vue_vue_type_style_index_0_lang-GfWcHNix.js";
|
|
5
|
+
import { isEmptyElement as P } from "@pantograph/utils-vue";
|
|
6
|
+
import { getBemBlock as T, getComponentOptions as j, generateVariantClassList as u, normCls as d, getBemElement as f } from "@pantograph/utils";
|
|
7
|
+
const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l = T("input"), W = (i) => ({
|
|
8
8
|
input: i,
|
|
9
9
|
focus: (t) => {
|
|
10
10
|
var o;
|
|
@@ -23,7 +23,7 @@ const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l = D("input"
|
|
|
23
23
|
return (m = i.value) == null ? void 0 : m.setSelectionRange(t, o, r);
|
|
24
24
|
}
|
|
25
25
|
}), X = /* @__PURE__ */ h({
|
|
26
|
-
...
|
|
26
|
+
...j("BaseInput"),
|
|
27
27
|
__name: "BaseInput",
|
|
28
28
|
props: {
|
|
29
29
|
disabled: { type: Boolean, default: void 0 },
|
|
@@ -46,7 +46,7 @@ const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l = D("input"
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["clear"],
|
|
48
48
|
setup(i, { emit: S }) {
|
|
49
|
-
const s = i, n = k(), y =
|
|
49
|
+
const s = i, n = k(), y = D(l, {
|
|
50
50
|
variants: {
|
|
51
51
|
size: u(q, l),
|
|
52
52
|
status: u(A, l),
|
|
@@ -72,7 +72,7 @@ const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l = D("input"
|
|
|
72
72
|
}
|
|
73
73
|
}), m = () => {
|
|
74
74
|
var C;
|
|
75
|
-
const e = (C = n.leading) == null ? void 0 : C.call(n, { iconSize: r.value }), c = !
|
|
75
|
+
const e = (C = n.leading) == null ? void 0 : C.call(n, { iconSize: r.value }), c = !P(e);
|
|
76
76
|
return c || s.leading ? F(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
@@ -102,7 +102,7 @@ const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l = D("input"
|
|
|
102
102
|
class: g(a(d)(a(f)(a(l), "trailing"), e.trailingCls))
|
|
103
103
|
}, [
|
|
104
104
|
!s.disabled && e.allowClear && e.hasValue ? (p(), z(w, { key: 0 }, [
|
|
105
|
-
I(
|
|
105
|
+
I(M, {
|
|
106
106
|
icon: e.clearIcon,
|
|
107
107
|
size: o.value,
|
|
108
108
|
onClick: c[0] || (c[0] = $((C) => t("clear"), ["stop"])),
|
|
@@ -113,7 +113,7 @@ const q = ["sm", "md", "lg"], A = ["error", "warning", "success"], l = D("input"
|
|
|
113
113
|
]),
|
|
114
114
|
_: 3
|
|
115
115
|
}, 8, ["icon", "size", "class"]),
|
|
116
|
-
n.trailing || s.trailing ? (p(), V(
|
|
116
|
+
n.trailing || s.trailing ? (p(), V(O, {
|
|
117
117
|
key: 0,
|
|
118
118
|
type: "vertical",
|
|
119
119
|
class: g(a(d)(a(f)(a(l), "divider"), e.dividerCls))
|