@pantograph/vue 0.25.3 → 0.25.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-DBkXAjTl.js → ActionButton.vue_vue_type_script_setup_true_lang-DgRldvF-.js} +3 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-uwPzOpXQ.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-Cq-qsJt9.js → Alert.vue_vue_type_style_index_0_lang-BWViURUx.js} +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-t5KBNR2O.js → Alert.vue_vue_type_style_index_0_lang-CsM-N2Dn.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BgD1ygnv.js → Avatar.vue_vue_type_style_index_0_lang-BU_5Uc1h.js} +12 -13
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BmD6RFO6.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-BNoY52kq.js +1 -0
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Cj_qLGab.js → Badge.vue_vue_type_script_setup_true_lang-D4qWXPmE.js} +11 -11
- package/dist/Base/BaseInput/BaseInput.d.ts +61 -0
- package/dist/Base/BaseInput/BaseInput.model.d.ts +4 -0
- package/dist/{BaseBadge.model-CahZXsyM.js → BaseBadge.model-D4ZfMIfM.js} +2 -2
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-MiT5JEP1.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Dk4czjh8.js → BaseBadge.vue_vue_type_style_index_0_lang-iBj3bp4f.js} +16 -17
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BaXVOcYh.js → BaseButton.vue_vue_type_style_index_0_lang-C90xeF5w.js} +9 -9
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-C_rzn0QQ.js +1 -0
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-Bh5c8r40.js +133 -0
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-D1-OgRQO.js +1 -0
- 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-BgHFlmkg.js → Button.vue_vue_type_script_setup_true_lang-BEUgRSHQ.js} +13 -13
- package/dist/Button.vue_vue_type_script_setup_true_lang-DayZ7O-B.js +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-BflgAkUi.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js} +3 -3
- 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-B7TCf8DD.js +1 -0
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-AH6hpVLK.js → Checkbox.vue_vue_type_style_index_0_lang-DIUFXgde.js} +66 -66
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-B4vliBhP.js +1 -0
- package/dist/{Chip.vue_vue_type_style_index_0_lang-B8BunJEO.js → Chip.vue_vue_type_style_index_0_lang-C-YVGRd5.js} +7 -7
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-YPrXCjP8.js → ChipGroup.vue_vue_type_style_index_0_lang-Cb48sFjZ.js} +3 -3
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-vXOtvFCA.js → ChipGroup.vue_vue_type_style_index_0_lang-Dz90pq2v.js} +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-RKbw-kXI.js → ColorPicker.vue_vue_type_style_index_0_lang-Bbua4gDp.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CVMzIHWW.js → ColorPicker.vue_vue_type_style_index_0_lang-Cs_uP8_-.js} +7 -5
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-Cg9gjo7T.js → ColorSwatch-BTd2qIvs.js} +1 -1
- package/dist/{ColorSwatch-WoFuVYS7.js → ColorSwatch-BVj268xm.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-MMo80_Zm.js → ColorSwatch.vue_vue_type_style_index_0_lang-D9jCB_qS.js} +5 -6
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DotrlbV2.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-DPd_kewe.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CMUC9JP1.js} +21 -20
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-uGNt1Zw7.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BphrM3jX.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CpumcGKV.js → ColorTrigger.vue_vue_type_style_index_0_lang-CjRJLrjc.js} +13 -13
- package/dist/Combobox/Combobox.d.ts +2 -1
- package/dist/Combobox/ComboboxOption.d.ts +1 -1
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +2 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-BSCxn_dP.js +1 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-C1ceC-d6.js +889 -0
- package/dist/Comment/CommentEditor.d.ts +1 -1
- package/dist/Comment/index.js +44 -42
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/ConfigProvider.d.ts +53 -0
- package/dist/ConfigProvider/index.d.ts +1 -50
- package/dist/ConfigProvider/index.js +6 -10
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js +1 -0
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js +124 -0
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types.d.ts +1 -1
- package/dist/DataTable/useCell.d.ts +2 -2
- package/dist/DataTable/useColumnWrap.d.ts +1 -1
- package/dist/DataTable/useSelection.d.ts +1 -1
- package/dist/DataTable/useSort.d.ts +2 -2
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-Dtr04Y-v.js → DataTable.vue_vue_type_style_index_0_lang-BIEqP-0I.js} +253 -257
- package/dist/DataTable.vue_vue_type_style_index_0_lang-itDia0W9.js +1 -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-DN-rlB8g.js → DropZone.vue_vue_type_style_index_0_lang-B9y7TlwK.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-Cx_2fzcd.js → DropZone.vue_vue_type_style_index_0_lang-EJIu65Kx.js} +2 -2
- 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-CLG9v3ny.js → Empty.vue_vue_type_style_index_0_lang-BUUZkqKK.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-Hb-71AW8.js → Empty.vue_vue_type_style_index_0_lang-CzxHjKoM.js} +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-Cug29gXO.js → FloatButton.vue_vue_type_script_setup_true_lang-09oykls8.js} +11 -3
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BkkyOUA7.js +1 -0
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/GOPicker/GOPicker.model.d.ts +1 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-BE8x9dGA.js +1 -0
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-DFuk8Yxv.js → GOPicker.vue_vue_type_style_index_0_lang-kynTp-m5.js} +28 -23
- 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-D6efb688.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BZWcWAd8.js} +6 -6
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-X3qLlz8e.js +1 -0
- 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-DAXoXPPu.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-HhLovMZS.js} +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DtfNCdZu.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-eUYKt1g8.js} +8 -8
- package/dist/Icon/index.d.ts +1 -4
- package/dist/Icon/index.js +4 -14
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js +9 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js +2905 -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-DIVceNgM.js → IconButton.vue_vue_type_script_setup_true_lang-B2mwpDQo.js} +11 -3
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DGXtxJVO.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-Dxp0n_0A.js +1 -0
- package/dist/{Image.vue_vue_type_style_index_0_lang-S9KjdezV.js → Image.vue_vue_type_style_index_0_lang-_1Vqh4mv.js} +8 -7
- package/dist/IndentLevel/IndentLevel.d.ts +2 -0
- 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-BNXXU--A.js +1 -0
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-CkNqK_Vg.js → IndentLevel.vue_vue_type_style_index_0_lang-DPL6yVwu.js} +30 -27
- 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-BAJid2ch.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Ca5Des7U.js → Indicator.vue_vue_type_script_setup_true_lang-BZQujvXX.js} +4 -4
- package/dist/Input/Input.d.ts +17 -35
- package/dist/Input/index.d.ts +1 -1
- package/dist/Input/index.js +5 -4
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-BhpGixbX.js +111 -0
- package/dist/Input.vue_vue_type_script_setup_true_lang-P-pBp4sf.js +1 -0
- package/dist/InputNumber/InputNumber.d.ts +79 -0
- package/dist/InputNumber/index.d.ts +2 -0
- package/dist/InputNumber/index.js +8 -0
- package/dist/InputNumber/index.umd.cjs +1 -0
- package/dist/InputNumber/utils/MiniDecimal.d.ts +69 -0
- package/dist/InputNumber/utils/numberUtil.d.ts +22 -0
- package/dist/InputNumber/utils/supportUtil.d.ts +1 -0
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DcGG4i1C.js +1 -0
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-yrowDfWL.js +454 -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-Cm0Zvomv.js → Kbd.vue_vue_type_style_index_0_lang-XS49-yX4.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-CUGyyeHh.js → Kbd.vue_vue_type_style_index_0_lang-q3jBcYir.js} +1 -1
- package/dist/Label/index.js +4 -4
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-bdywEZns.js → Link.vue_vue_type_style_index_0_lang-DAQr5LuP.js} +6 -6
- package/dist/{Link.vue_vue_type_style_index_0_lang-BfC3SwbG.js → Link.vue_vue_type_style_index_0_lang-zFv3zzLA.js} +1 -1
- package/dist/Menu/Menu.d.ts +2 -2
- 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-DRgLTDF9.js +1 -0
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-D-_-Iv3Y.js → MenuItem.vue_vue_type_style_index_0_lang-Tx1mw3fx.js} +80 -81
- 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-BJSH2nV1.js +1 -0
- package/dist/Pagination.vue_vue_type_style_index_0_lang-DdoGJbhR.js +234 -0
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/utils.d.ts +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-BgRvygIi.js +254 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js +1 -0
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/Progress/types.d.ts +2 -0
- package/dist/Progress.vue_vue_type_style_index_0_lang-BECdYJmY.js +1 -0
- package/dist/{Progress.vue_vue_type_style_index_0_lang-Bm1S1Pxq.js → Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js} +75 -72
- 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-D8f-sgna.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-BLN5fJDu.js → RadioGroup.vue_vue_type_script_setup_true_lang-Daq1nx9-.js} +4 -4
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -0
- 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-D8IR7pw-.js → ScrollContainer.vue_vue_type_style_index_0_lang-Cp0bQf0N.js} +63 -60
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DqKhWsL2.js +1 -0
- package/dist/Segmented/Segmented.d.ts +6 -3
- 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-3JqUJ0d7.js +1 -0
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-ZsksAX8A.js → Segmented.vue_vue_type_style_index_0_lang-B1uEmVPJ.js} +50 -46
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/SelectTrigger.d.ts +2 -2
- 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-CxO4fB4g.js → Select.vue_vue_type_style_index_0_lang-CarDXTu5.js} +87 -88
- package/dist/Select.vue_vue_type_style_index_0_lang-ikZ5_KwB.js +1 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-maaUKoPJ.js → Shortcut.vue_vue_type_style_index_0_lang-C7MfNmHi.js} +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DiJX8oyf.js → Shortcut.vue_vue_type_style_index_0_lang-QKWaOeSf.js} +6 -6
- 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-D9QAUh3y.js → Spinner.vue_vue_type_style_index_0_lang-y2U5MnVr.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-CRuHKobG.js → Spinner.vue_vue_type_style_index_0_lang-ypYtsXl_.js} +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 +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BKZRF7si.js → Switch.vue_vue_type_style_index_0_lang-Dqy63Xsy.js} +6 -7
- package/dist/Switch.vue_vue_type_style_index_0_lang-G67verEB.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-Bbxgbizj.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-D-NEZbDq.js → THead.vue_vue_type_style_index_0_lang-Dg4UjN2s.js} +14 -13
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +1 -0
- 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-DhnwRKGl.js → Textarea.vue_vue_type_style_index_0_lang-95EkbeEZ.js} +37 -35
- package/dist/Textarea.vue_vue_type_style_index_0_lang-Crls15aj.js +1 -0
- package/dist/Tree/Tree.d.ts +8 -13
- package/dist/Tree/Tree.model.d.ts +67 -37
- package/dist/Tree/TreeNode.d.ts +4 -92
- package/dist/Tree/TreePlaceholder.d.ts +9 -0
- package/dist/Tree/index.d.ts +2 -1
- package/dist/Tree/index.js +6 -5
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +18 -11
- package/dist/Tree.vue_vue_type_style_index_0_lang-CauWPkMW.js +737 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-DitveB9N.js +1 -0
- package/dist/Upload/Upload.d.ts +1 -1
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +1 -0
- package/dist/{Upload.vue_vue_type_style_index_0_lang-B4BO8f6l.js → Upload.vue_vue_type_style_index_0_lang-B9HYX_QI.js} +359 -351
- package/dist/Upload.vue_vue_type_style_index_0_lang-DhqA32eL.js +1 -0
- package/dist/exports.d.ts +4 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +242 -255
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/types/index.d.ts +12 -2
- package/dist/useInputDataStates-BWZ4Q3rt.js +1 -0
- package/dist/useInputDataStates-COzmxWTw.js +52 -0
- package/dist/utils/index.js +4 -4
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/sortPlaceholder.d.ts +6 -0
- package/package.json +12 -8
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-CMAU4Jot.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D_26B5fC.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DLIYFnk7.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-D6KaVBcQ.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CEI8TTwc.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-DQeV7jFJ.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D_UcZD7p.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-BLjUJgbj.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-j3uScCo0.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CGF7Y4Y3.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Cz3225rF.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-BXq6IyEH.js +0 -986
- package/dist/Combobox.vue_vue_type_style_index_0_lang-CSz_lsmn.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-Ca0ss2zM.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C5NrO5Nn.js +0 -1
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-1_sYgaR8.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CX1uOlz9.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js +0 -9
- package/dist/Icon.vue_vue_type_style_index_0_lang-D105BnRd.js +0 -3690
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-NJ4SCX2H.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-B43Rg3w7.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-H35lJDqV.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DaUZMDk0.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-DEQgofJ1.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-DbW60HOk.js +0 -160
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-fYybuhKO.js +0 -1
- package/dist/Pagination.vue_vue_type_style_index_0_lang-CJuRPdrW.js +0 -224
- package/dist/Pagination.vue_vue_type_style_index_0_lang-CPREYXnR.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-qJ0psPTx.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-yKeicrWx.js +0 -251
- package/dist/Progress.vue_vue_type_style_index_0_lang-WHi3Gv1W.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CQ_nySHu.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BLFtmUwR.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-BvBq13y7.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-Dk38gPKw.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-gKEdPPxG.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-D0RuVLmr.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-0wTOqfhB.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-D97fT1Cb.js +0 -6
- package/dist/Tree.vue_vue_type_style_index_0_lang-Des-7-p4.js +0 -1773
- package/dist/Upload.vue_vue_type_style_index_0_lang-BjSXnPzK.js +0 -1
- package/dist/index-BTuMaS--.js +0 -188
- package/dist/index-BmcHqJPl.js +0 -1
- package/dist/sortBy-DaKVLXDw.js +0 -98
- package/dist/sortBy-NRZqvtuE.js +0 -1
- package/dist/uniq-DA_VCwGV.js +0 -1
- package/dist/uniq-yfmxvZGr.js +0 -55
- package/dist/useInputDataStates-B78OFI-A.js +0 -56
- package/dist/useInputDataStates-CXaVG_o2.js +0 -1
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { defineComponent as X, computed as g, ref as Y, createElementBlock as c, openBlock as s, normalizeClass as r, unref as e, createElementVNode as f, createBlock as x, createCommentVNode as z, withCtx as E, createTextVNode as L, toDisplayString as h, Fragment as _, isRef as O, renderList as Z, mergeProps as ee, createVNode as te, renderSlot as ae, normalizeProps as ne, guardReactiveProps as ie, nextTick as oe } from "vue";
|
|
2
|
+
import { r as se, u as R, e as le, o as re } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
3
|
+
import "@tanstack/vue-virtual";
|
|
4
|
+
import { cva as ue } from "class-variance-authority";
|
|
5
|
+
import { _ as pe } from "./Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
|
|
6
|
+
import { _ as de } from "./Segmented.vue_vue_type_style_index_0_lang-B1uEmVPJ.js";
|
|
7
|
+
import { _ as ce } from "./InputNumber.vue_vue_type_script_setup_true_lang-yrowDfWL.js";
|
|
8
|
+
import { _ as D } from "./BaseButton.vue_vue_type_style_index_0_lang-C90xeF5w.js";
|
|
9
|
+
import { g as me } from "./options-Bh1s18jm.js";
|
|
10
|
+
import "es-toolkit";
|
|
11
|
+
import { getBemBlock as ge, getBemElement as u, generateVariantClassList as F, normCls as p } from "@pantograph/utils";
|
|
12
|
+
function ve(l) {
|
|
13
|
+
return Array.isArray(l) ? l : Array.from(l);
|
|
14
|
+
}
|
|
15
|
+
function fe(l) {
|
|
16
|
+
return l[0];
|
|
17
|
+
}
|
|
18
|
+
function he(l) {
|
|
19
|
+
if (se(l))
|
|
20
|
+
return fe(ve(l));
|
|
21
|
+
}
|
|
22
|
+
const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__PURE__ */ X({
|
|
23
|
+
...me("Pagination"),
|
|
24
|
+
__name: "Pagination",
|
|
25
|
+
props: {
|
|
26
|
+
page: {},
|
|
27
|
+
total: { default: 0 },
|
|
28
|
+
showInput: { type: Boolean },
|
|
29
|
+
iconButton: { type: Boolean },
|
|
30
|
+
simple: { type: Boolean },
|
|
31
|
+
hidePerv: { type: Boolean },
|
|
32
|
+
hideNext: { type: Boolean },
|
|
33
|
+
hideSize: { type: Boolean },
|
|
34
|
+
hideTotal: { type: Boolean },
|
|
35
|
+
resetPageOnChangeSize: { type: Boolean },
|
|
36
|
+
sizes: {},
|
|
37
|
+
pageSize: {},
|
|
38
|
+
pervText: { default: "Previous" },
|
|
39
|
+
nextText: { default: "Next" },
|
|
40
|
+
pageText: { default: "Page" },
|
|
41
|
+
justify: { default: "between" },
|
|
42
|
+
class: {},
|
|
43
|
+
sizeCls: {},
|
|
44
|
+
paginationCls: {},
|
|
45
|
+
totalCls: {},
|
|
46
|
+
itemCls: {},
|
|
47
|
+
paginationTextCls: {},
|
|
48
|
+
paginationCurrentCls: {},
|
|
49
|
+
paginationCountCls: {}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:pageSize", "update:page"],
|
|
52
|
+
setup(l, { emit: j }) {
|
|
53
|
+
const i = l, $ = j, d = ge("pagination"), C = u(d, "pagination"), U = ue(d, {
|
|
54
|
+
variants: {
|
|
55
|
+
justify: F(Ce, d),
|
|
56
|
+
simple: F("simple", d)
|
|
57
|
+
}
|
|
58
|
+
}), w = g(() => i.sizes ?? [10, 25, 50, 100]), o = R(i, "page", $, {
|
|
59
|
+
passive: i.page === void 0,
|
|
60
|
+
defaultValue: 1
|
|
61
|
+
}), b = R(
|
|
62
|
+
i,
|
|
63
|
+
"pageSize",
|
|
64
|
+
$,
|
|
65
|
+
{
|
|
66
|
+
passive: i.pageSize === void 0,
|
|
67
|
+
defaultValue: i.pageSize ?? he(w.value),
|
|
68
|
+
onChange() {
|
|
69
|
+
i.resetPageOnChangeSize && (o.value = 1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
), k = g(() => Math.min(Math.max(o.value ?? 1, 0), m.value)), J = g(() => i.total ?? 0), V = g(() => b.value ?? 0), m = g(() => Math.max(1, Math.ceil(J.value / V.value))), q = g(() => {
|
|
73
|
+
const a = i.total ?? 0, t = k.value, n = a && t ? (t - 1) * V.value + 1 : 0;
|
|
74
|
+
return {
|
|
75
|
+
start: n,
|
|
76
|
+
end: Math.min(n + V.value - 1, a),
|
|
77
|
+
total: i.total,
|
|
78
|
+
page: t,
|
|
79
|
+
pageCount: m.value
|
|
80
|
+
};
|
|
81
|
+
}), B = "ellipsis", I = (a, t) => {
|
|
82
|
+
const n = t - a + 1;
|
|
83
|
+
return Array.from({ length: n }, (y, v) => v + a);
|
|
84
|
+
}, S = (a) => a.map((t) => typeof t == "number" ? { type: "page", value: t } : { type: "ellipsis" }), G = g(() => {
|
|
85
|
+
const t = m.value, n = 2, y = Math.max(k.value - n, 1), v = Math.min(k.value + n, t), M = Math.min(2 * n + 5, m.value) - 2, T = (
|
|
86
|
+
// default condition
|
|
87
|
+
y > 3 && // if the current page is towards the end of the list
|
|
88
|
+
Math.abs(t - M - 1 + 1) > 2 && // if the current page is towards the middle of the list
|
|
89
|
+
Math.abs(y - 1) > 2
|
|
90
|
+
), N = (
|
|
91
|
+
// default condition
|
|
92
|
+
v < t - 2 && // if the current page is towards the start of the list
|
|
93
|
+
Math.abs(t - M) > 2 && // if the current page is towards the middle of the list
|
|
94
|
+
Math.abs(t - v) > 2
|
|
95
|
+
);
|
|
96
|
+
if (!T && N) {
|
|
97
|
+
const P = I(1, M);
|
|
98
|
+
return S([...P, B, t]);
|
|
99
|
+
}
|
|
100
|
+
if (T && !N) {
|
|
101
|
+
const P = I(t - M + 1, t);
|
|
102
|
+
return S([1, B, ...P]);
|
|
103
|
+
}
|
|
104
|
+
if (T && N) {
|
|
105
|
+
const P = I(y, v);
|
|
106
|
+
return S([1, B, ...P, B, t]);
|
|
107
|
+
}
|
|
108
|
+
return S(I(1, t));
|
|
109
|
+
}), H = () => {
|
|
110
|
+
o.value = (o.value ?? 2) - 1;
|
|
111
|
+
}, K = () => {
|
|
112
|
+
o.value = (o.value ?? 0) + 1;
|
|
113
|
+
}, Q = (a) => {
|
|
114
|
+
re(a.value) && (o.value = a.value, oe(() => {
|
|
115
|
+
var t, n;
|
|
116
|
+
return (n = (t = A.value) == null ? void 0 : t.focus) == null ? void 0 : n.call(t);
|
|
117
|
+
}));
|
|
118
|
+
}, A = Y(), W = (a) => {
|
|
119
|
+
const t = a.value === k.value;
|
|
120
|
+
return {
|
|
121
|
+
"data-selected": t,
|
|
122
|
+
ref: (n) => {
|
|
123
|
+
n && t && (A.value = n);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
return (a, t) => (s(), c("div", {
|
|
128
|
+
class: r(e(p)(e(U)(i), i.class))
|
|
129
|
+
}, [
|
|
130
|
+
f("div", {
|
|
131
|
+
class: r(e(p)(e(C), i.paginationCls))
|
|
132
|
+
}, [
|
|
133
|
+
a.hidePerv ? z("", !0) : (s(), x(D, {
|
|
134
|
+
key: 0,
|
|
135
|
+
size: "sm",
|
|
136
|
+
type: "ghost",
|
|
137
|
+
variant: i.iconButton ? "icon" : "simple",
|
|
138
|
+
preIcon: "tabler:chevron-left",
|
|
139
|
+
icon: "tabler:chevron-left",
|
|
140
|
+
preIconFlipOnDir: "rtl",
|
|
141
|
+
disabled: !!(e(o) && e(o) <= 1),
|
|
142
|
+
onClick: H
|
|
143
|
+
}, {
|
|
144
|
+
default: E(() => [
|
|
145
|
+
L(h(a.pervText), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["variant", "disabled"])),
|
|
149
|
+
a.simple ? (s(), c(_, { key: 1 }, [
|
|
150
|
+
f("div", {
|
|
151
|
+
class: r(e(p)(e(u)(e(C), "text"), i.paginationTextCls))
|
|
152
|
+
}, h(a.pageText), 3),
|
|
153
|
+
a.showInput ? (s(), x(ce, {
|
|
154
|
+
key: 0,
|
|
155
|
+
modelValue: e(o),
|
|
156
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => O(o) ? o.value = n : null),
|
|
157
|
+
size: "sm",
|
|
158
|
+
min: 1,
|
|
159
|
+
controls: !1,
|
|
160
|
+
max: m.value,
|
|
161
|
+
class: r(e(p)(e(u)(e(C), "current"), i.paginationCurrentCls))
|
|
162
|
+
}, null, 8, ["modelValue", "max", "class"])) : (s(), c("div", {
|
|
163
|
+
key: 1,
|
|
164
|
+
class: r(e(p)(e(u)(e(C), "current"), i.paginationCurrentCls))
|
|
165
|
+
}, h(e(o)), 3)),
|
|
166
|
+
f("div", {
|
|
167
|
+
class: r(e(p)(e(u)(e(C), "count"), i.paginationCountCls))
|
|
168
|
+
}, [
|
|
169
|
+
t[2] || (t[2] = f("div", null, "/", -1)),
|
|
170
|
+
f("div", null, h(m.value), 1)
|
|
171
|
+
], 2)
|
|
172
|
+
], 64)) : (s(!0), c(_, { key: 2 }, Z(G.value, (n, y) => (s(), c(_, {
|
|
173
|
+
key: n.value ?? n.type
|
|
174
|
+
}, [
|
|
175
|
+
n.type === "page" ? (s(), c("button", ee({
|
|
176
|
+
key: 0,
|
|
177
|
+
onClick: (v) => Q(n),
|
|
178
|
+
class: e(p)(e(u)(e(d), "item"), a.itemCls)
|
|
179
|
+
}, { ref_for: !0 }, W(n)), h(n.value), 17, ye)) : (s(), c("div", {
|
|
180
|
+
key: 1,
|
|
181
|
+
class: r(e(p)(e(u)(e(d), "item"), a.itemCls))
|
|
182
|
+
}, [
|
|
183
|
+
te(le, {
|
|
184
|
+
size: "12px",
|
|
185
|
+
icon: "tabler:dots"
|
|
186
|
+
})
|
|
187
|
+
], 2))
|
|
188
|
+
], 64))), 128)),
|
|
189
|
+
a.hideNext ? z("", !0) : (s(), x(D, {
|
|
190
|
+
key: 3,
|
|
191
|
+
size: "sm",
|
|
192
|
+
type: "ghost",
|
|
193
|
+
variant: i.iconButton ? "icon" : "simple",
|
|
194
|
+
postIcon: "tabler:chevron-right",
|
|
195
|
+
icon: "tabler:chevron-right",
|
|
196
|
+
postIconFlipOnDir: "rtl",
|
|
197
|
+
disabled: !!(e(o) && e(o) >= m.value),
|
|
198
|
+
onClick: K
|
|
199
|
+
}, {
|
|
200
|
+
default: E(() => [
|
|
201
|
+
L(h(a.nextText), 1)
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["variant", "disabled"]))
|
|
205
|
+
], 2),
|
|
206
|
+
f("div", {
|
|
207
|
+
class: r(e(p)(e(u)(e(d), "pageSize"), i.sizeCls))
|
|
208
|
+
}, [
|
|
209
|
+
a.hideSize ? z("", !0) : (s(), x(de, {
|
|
210
|
+
key: 0,
|
|
211
|
+
options: w.value,
|
|
212
|
+
size: "sm",
|
|
213
|
+
modelValue: e(b),
|
|
214
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => O(b) ? b.value = n : null)
|
|
215
|
+
}, null, 8, ["options", "modelValue"])),
|
|
216
|
+
!a.hideTotal && !a.hideSize ? (s(), x(pe, {
|
|
217
|
+
key: 1,
|
|
218
|
+
type: "vertical",
|
|
219
|
+
class: r(e(u)(e(d), "divider"))
|
|
220
|
+
}, null, 8, ["class"])) : z("", !0),
|
|
221
|
+
a.hideTotal ? z("", !0) : (s(), c("div", {
|
|
222
|
+
key: 2,
|
|
223
|
+
class: r(e(p)(e(u)(e(d), "total"), i.totalCls))
|
|
224
|
+
}, [
|
|
225
|
+
ae(a.$slots, "total", ne(ie(q.value)))
|
|
226
|
+
], 2))
|
|
227
|
+
], 2)
|
|
228
|
+
], 2));
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
export {
|
|
232
|
+
Ce as P,
|
|
233
|
+
_e as _
|
|
234
|
+
};
|
package/dist/Popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Popover.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js");exports.Popover=e._sfc_main;exports.PopoverPlacements=e.PopoverPlacements;exports.PopoverSizes=e.PopoverSizes;exports.default=e._sfc_main;
|
package/dist/Popover/utils.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const getPopoverPortalProps: ({ triggerRef, props: _props }: {
|
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
forceMount: boolean;
|
|
13
13
|
}>;
|
|
14
|
-
declare const popoverContainerPropsKeys: readonly ["prioritizePosition", "placement", "sideOffset", "alignOffset", "sticky", "collisionBoundary", "avoidCollisions", "collisionPadding", "forceMount", "disableUpdateOnLayoutShift", "hideWhenDetached", "positionStrategy", "reference", "updatePositionStrategy", "autoFocusInside", "containerProps"];
|
|
14
|
+
declare const popoverContainerPropsKeys: readonly ["prioritizePosition", "placement", "sideOffset", "alignOffset", "sticky", "collisionBoundary", "avoidCollisions", "collisionPadding", "forceMount", "disableUpdateOnLayoutShift", "hideWhenDetached", "positionStrategy", "reference", "updatePositionStrategy", "autoFocusInside", "containerProps", "disableOutsidePointerEvents"];
|
|
15
15
|
type PopoverContainerPropsName = Partial<Record<(typeof popoverContainerPropsKeys)[number], string>>;
|
|
16
16
|
export declare const getPopoverContentProps: <T extends Record<string, any>>({ props: _props, flip, _dir, controlAutoFocus, extraPropNames, emitsAsProps, }: {
|
|
17
17
|
props?: object;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { computed as M, getCurrentInstance as Q, unref as l, defineComponent as ue, useSlots as fe, shallowRef as me, onMounted as V, ref as q, watch as ge, createBlock as z, openBlock as E, resolveDynamicComponent as w, mergeProps as j, withCtx as A, renderSlot as x, normalizeProps as Pe, guardReactiveProps as ve, withDirectives as ye, vShow as he } from "vue";
|
|
2
|
+
import { getBemBlock as Oe, getBemElement as G, generateVariantClassList as Ce, normCls as J } from "@pantograph/utils";
|
|
3
|
+
import { cva as be } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as De, HoverCardRoot as Se, PopoverRoot as Be, HoverCardTrigger as Ne, PopoverTrigger as Fe, HoverCardPortal as ze, PopoverPortal as Ee, HoverCardContent as we, PopoverContent as Ae } from "reka-ui";
|
|
5
|
+
import { g as Me } from "./options-Bh1s18jm.js";
|
|
6
|
+
import { u as Ie } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js";
|
|
7
|
+
import { omitBy as ke, isUndefined as Le, omit as Ue, pick as K } from "es-toolkit";
|
|
8
|
+
import { q as t, h as $e, j as Re, g as We } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
9
|
+
const He = ["sm", "md", "lg"], eo = [
|
|
10
|
+
"top",
|
|
11
|
+
"top-start",
|
|
12
|
+
"top-end",
|
|
13
|
+
"bottom",
|
|
14
|
+
"bottom-start",
|
|
15
|
+
"bottom-end",
|
|
16
|
+
"right",
|
|
17
|
+
"right-start",
|
|
18
|
+
"right-end",
|
|
19
|
+
"left",
|
|
20
|
+
"left-start",
|
|
21
|
+
"left-end"
|
|
22
|
+
], je = ["to", "disabled", "forceMount"], n = Object.fromEntries(je.map((a) => [a, a])), Ke = ({ triggerRef: a, props: P }, D = n) => M(() => {
|
|
23
|
+
var p, O, C, u, b;
|
|
24
|
+
const {
|
|
25
|
+
to: v = n.to,
|
|
26
|
+
forceMount: r = n.forceMount,
|
|
27
|
+
disabled: y = n.disabled
|
|
28
|
+
} = D, f = Q(), s = P ?? (f == null ? void 0 : f.props) ?? {}, e = t(s, v), m = t(s, y), g = t(s, r);
|
|
29
|
+
let h = ((p = l(e)) == null ? void 0 : p.$el) ?? l(e);
|
|
30
|
+
if (e instanceof Function) {
|
|
31
|
+
const S = ((C = (O = a.value) == null ? void 0 : O.$el) == null ? void 0 : C.nodeName) !== "#text" ? (u = a.value) == null ? void 0 : u.$el : (b = a.value) == null ? void 0 : b.$el.nextSibling;
|
|
32
|
+
h = e(S);
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
to: h,
|
|
36
|
+
disabled: m,
|
|
37
|
+
forceMount: g
|
|
38
|
+
};
|
|
39
|
+
}), Te = [
|
|
40
|
+
"prioritizePosition",
|
|
41
|
+
"placement",
|
|
42
|
+
"sideOffset",
|
|
43
|
+
"alignOffset",
|
|
44
|
+
"sticky",
|
|
45
|
+
"collisionBoundary",
|
|
46
|
+
"avoidCollisions",
|
|
47
|
+
"collisionPadding",
|
|
48
|
+
"forceMount",
|
|
49
|
+
"disableUpdateOnLayoutShift",
|
|
50
|
+
"hideWhenDetached",
|
|
51
|
+
"positionStrategy",
|
|
52
|
+
"reference",
|
|
53
|
+
"updatePositionStrategy",
|
|
54
|
+
"autoFocusInside",
|
|
55
|
+
"containerProps",
|
|
56
|
+
"disableOutsidePointerEvents"
|
|
57
|
+
], _e = Object.fromEntries(Te.map((a) => [a, a])), Ve = ({
|
|
58
|
+
props: a,
|
|
59
|
+
flip: P,
|
|
60
|
+
_dir: D,
|
|
61
|
+
controlAutoFocus: v,
|
|
62
|
+
extraPropNames: r,
|
|
63
|
+
emitsAsProps: y
|
|
64
|
+
}, f = _e) => M(() => {
|
|
65
|
+
var _;
|
|
66
|
+
const s = Q(), e = a ?? (s == null ? void 0 : s.props) ?? {}, {
|
|
67
|
+
prioritizePosition: m = n.prioritizePosition,
|
|
68
|
+
placement: g = n.placement,
|
|
69
|
+
sideOffset: h = n.sideOffset,
|
|
70
|
+
alignOffset: p = n.alignOffset,
|
|
71
|
+
sticky: O = n.sticky,
|
|
72
|
+
collisionBoundary: C = n.collisionBoundary,
|
|
73
|
+
avoidCollisions: u = n.avoidCollisions,
|
|
74
|
+
collisionPadding: b = n.collisionPadding,
|
|
75
|
+
forceMount: S = n.forceMount,
|
|
76
|
+
disableUpdateOnLayoutShift: I = n.disableUpdateOnLayoutShift,
|
|
77
|
+
disableOutsidePointerEvents: k = n.disableOutsidePointerEvents,
|
|
78
|
+
hideWhenDetached: L = n.hideWhenDetached,
|
|
79
|
+
positionStrategy: U = n.positionStrategy,
|
|
80
|
+
reference: $ = n.reference,
|
|
81
|
+
updatePositionStrategy: R = n.updatePositionStrategy,
|
|
82
|
+
autoFocusInside: W = n.autoFocusInside,
|
|
83
|
+
containerProps: B = n.containerProps
|
|
84
|
+
} = f, o = t(e, m), i = t(e, g), c = t(e, h), X = t(e, p), Y = t(e, O), Z = t(e, C), ee = t(e, u), oe = t(e, b), te = t(e, S), ne = t(e, I), se = t(e, k), ie = t(e, L), re = t(e, U), ae = t(e, $), le = t(e, R), T = t(e, W), ce = t(e, B);
|
|
85
|
+
let [
|
|
86
|
+
F = "bottom",
|
|
87
|
+
de = "center"
|
|
88
|
+
] = ((_ = i == null ? void 0 : i.split) == null ? void 0 : _.call(i, "-")) || ["bottom", "center"];
|
|
89
|
+
P.value && D.value && D.value === P.value && (F = {
|
|
90
|
+
right: "left",
|
|
91
|
+
left: "right"
|
|
92
|
+
}[F] ?? F);
|
|
93
|
+
const H = {};
|
|
94
|
+
v && (H.onCloseAutoFocus = (d) => {
|
|
95
|
+
var N;
|
|
96
|
+
T || d.preventDefault(), (N = s == null ? void 0 : s.emit) == null || N.call(s, "closeAutoFocus", d);
|
|
97
|
+
}, H.onOpenAutoFocus = (d) => {
|
|
98
|
+
var N;
|
|
99
|
+
T || d.preventDefault(), (N = s == null ? void 0 : s.emit) == null || N.call(s, "openAutoFocus", d);
|
|
100
|
+
});
|
|
101
|
+
const pe = ke(
|
|
102
|
+
Object.fromEntries(
|
|
103
|
+
(Array.isArray(r) ? r : []).map((d) => [d, t(e, d)])
|
|
104
|
+
),
|
|
105
|
+
Le
|
|
106
|
+
);
|
|
107
|
+
return {
|
|
108
|
+
...K(y, [
|
|
109
|
+
"onEscapeKeyDown",
|
|
110
|
+
"onFocusOutside",
|
|
111
|
+
"onInteractOutside",
|
|
112
|
+
"onPointerDownOutside"
|
|
113
|
+
]),
|
|
114
|
+
...Ue(ce ?? {}, ["class"]),
|
|
115
|
+
...pe,
|
|
116
|
+
sticky: Y,
|
|
117
|
+
prioritizePosition: o,
|
|
118
|
+
side: F,
|
|
119
|
+
align: de,
|
|
120
|
+
sideOffset: c,
|
|
121
|
+
alignOffset: X,
|
|
122
|
+
collisionBoundary: Z,
|
|
123
|
+
avoidCollisions: ee,
|
|
124
|
+
collisionPadding: oe,
|
|
125
|
+
forceMount: te,
|
|
126
|
+
disableUpdateOnLayoutShift: ne,
|
|
127
|
+
disableOutsidePointerEvents: se,
|
|
128
|
+
hideWhenDetached: ie,
|
|
129
|
+
positionStrategy: re,
|
|
130
|
+
reference: ae,
|
|
131
|
+
updatePositionStrategy: le,
|
|
132
|
+
...H
|
|
133
|
+
};
|
|
134
|
+
}), oo = /* @__PURE__ */ ue({
|
|
135
|
+
...Me("Popover", !1),
|
|
136
|
+
__name: "Popover",
|
|
137
|
+
props: {
|
|
138
|
+
dir: {},
|
|
139
|
+
class: {},
|
|
140
|
+
containerCls: {},
|
|
141
|
+
containerClass: {},
|
|
142
|
+
containerProps: {},
|
|
143
|
+
trigger: { default: "hover" },
|
|
144
|
+
size: { default: "md" },
|
|
145
|
+
to: {},
|
|
146
|
+
placement: { default: "bottom" },
|
|
147
|
+
reversePlacementOnDir: {},
|
|
148
|
+
autoFocusInside: { type: Boolean },
|
|
149
|
+
zIndex: {},
|
|
150
|
+
useReferenceAttribute: { type: Boolean },
|
|
151
|
+
defaultOpen: { type: Boolean },
|
|
152
|
+
open: { type: Boolean, default: void 0 },
|
|
153
|
+
openDelay: {},
|
|
154
|
+
closeDelay: {},
|
|
155
|
+
disabled: { type: Boolean },
|
|
156
|
+
defer: { type: Boolean },
|
|
157
|
+
forceMount: { type: Boolean },
|
|
158
|
+
sideOffset: {},
|
|
159
|
+
alignOffset: {},
|
|
160
|
+
avoidCollisions: { type: Boolean, default: !0 },
|
|
161
|
+
collisionBoundary: {},
|
|
162
|
+
collisionPadding: {},
|
|
163
|
+
arrowPadding: {},
|
|
164
|
+
sticky: { default: "always" },
|
|
165
|
+
hideWhenDetached: { type: Boolean },
|
|
166
|
+
positionStrategy: {},
|
|
167
|
+
updatePositionStrategy: { default: "optimized" },
|
|
168
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
169
|
+
prioritizePosition: { type: Boolean, default: !0 },
|
|
170
|
+
reference: {},
|
|
171
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
172
|
+
},
|
|
173
|
+
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
174
|
+
setup(a, { emit: P }) {
|
|
175
|
+
const v = De(P), r = a, y = Oe("popover"), f = G(y, "trigger"), s = G(y, "content"), e = be(s, {
|
|
176
|
+
variants: {
|
|
177
|
+
size: Ce(He, s)
|
|
178
|
+
}
|
|
179
|
+
}), m = fe(), g = me(!0);
|
|
180
|
+
V(() => {
|
|
181
|
+
var c;
|
|
182
|
+
const o = $e((c = m.default) == null ? void 0 : c.call(m, {})) ?? null, i = o.length === 1 ? o[0] : o;
|
|
183
|
+
g.value = i && Re(i) && !We(i);
|
|
184
|
+
});
|
|
185
|
+
const h = M(() => ({
|
|
186
|
+
...K(r, ["open", "defaultOpen"]),
|
|
187
|
+
...K(v, ["onUpdate:open"])
|
|
188
|
+
})), p = q(), O = Ke({ triggerRef: p }), C = M(() => r.trigger === "hover" ? Se : Be), u = r.trigger === "hover", b = u ? Ne : Fe, S = u ? ze : Ee, I = u ? we : Ae, { getFlipOnDir: k, getDir: L } = Ie(), U = k("reversePlacementOnDir"), $ = L(), R = Ve({
|
|
189
|
+
emitsAsProps: v,
|
|
190
|
+
flip: U,
|
|
191
|
+
_dir: $,
|
|
192
|
+
controlAutoFocus: !0
|
|
193
|
+
}), W = (o) => {
|
|
194
|
+
r.trigger === "hover" && o.stopPropagation();
|
|
195
|
+
}, B = q(r.reference);
|
|
196
|
+
return r.useReferenceAttribute && !r.reference ? V(() => {
|
|
197
|
+
var o, i, c;
|
|
198
|
+
B.value = (c = (i = (o = p.value) == null ? void 0 : o.$el) == null ? void 0 : i.closest) == null ? void 0 : c.call(i, "[data-popover-reference]");
|
|
199
|
+
}) : ge(
|
|
200
|
+
() => r.reference,
|
|
201
|
+
(o) => {
|
|
202
|
+
B.value = o;
|
|
203
|
+
}
|
|
204
|
+
), (o, i) => (E(), z(w(C.value), j(h.value, {
|
|
205
|
+
openDelay: o.openDelay,
|
|
206
|
+
closeDelay: o.closeDelay,
|
|
207
|
+
key: g.value
|
|
208
|
+
}), {
|
|
209
|
+
default: A(({ open: c }) => [
|
|
210
|
+
(E(), z(w(l(b)), j({
|
|
211
|
+
as: "span",
|
|
212
|
+
class: l(J)(l(f), r.class),
|
|
213
|
+
onPointerdown: W
|
|
214
|
+
}, o.$attrs, {
|
|
215
|
+
dir: o.dir,
|
|
216
|
+
asChild: g.value,
|
|
217
|
+
ref_key: "triggerRef",
|
|
218
|
+
ref: p
|
|
219
|
+
}), {
|
|
220
|
+
default: A(() => [
|
|
221
|
+
x(o.$slots, "default")
|
|
222
|
+
]),
|
|
223
|
+
_: 3
|
|
224
|
+
}, 16, ["class", "dir", "asChild"])),
|
|
225
|
+
(E(), z(w(l(S)), Pe(ve(l(O))), {
|
|
226
|
+
default: A(() => [
|
|
227
|
+
ye((E(), z(w(l(I)), j({
|
|
228
|
+
style: { zIndex: o.zIndex }
|
|
229
|
+
}, l(R), {
|
|
230
|
+
class: l(J)(l(e)({ size: o.size }), o.containerClass, o.containerCls),
|
|
231
|
+
reference: B.value
|
|
232
|
+
}), {
|
|
233
|
+
default: A(() => [
|
|
234
|
+
x(o.$slots, "content")
|
|
235
|
+
]),
|
|
236
|
+
_: 2
|
|
237
|
+
}, 1040, ["style", "class", "reference"])), [
|
|
238
|
+
[he, c]
|
|
239
|
+
])
|
|
240
|
+
]),
|
|
241
|
+
_: 2
|
|
242
|
+
}, 1040))
|
|
243
|
+
]),
|
|
244
|
+
_: 3
|
|
245
|
+
}, 16, ["openDelay", "closeDelay"]));
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
export {
|
|
249
|
+
He as P,
|
|
250
|
+
oo as _,
|
|
251
|
+
eo as a,
|
|
252
|
+
Ve as b,
|
|
253
|
+
Ke as g
|
|
254
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),S=require("@pantograph/utils"),re=require("class-variance-authority"),d=require("reka-ui"),ie=require("./options-CY2uxp5A.js"),ae=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),N=require("es-toolkit"),t=require("./Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js"),W=["sm","md","lg"],le=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],ce=["to","disabled","forceMount"],s=Object.fromEntries(ce.map(l=>[l,l])),H=({triggerRef:l,props:v},y=s)=>e.computed(()=>{var u,B,b,f,D;const{to:h=s.to,forceMount:a=s.forceMount,disabled:C=s.disabled}=y,g=e.getCurrentInstance(),r=v??(g==null?void 0:g.props)??{},o=t.get(r,h),m=t.get(r,C),P=t.get(r,a);let O=((u=e.unref(o))==null?void 0:u.$el)??e.unref(o);if(o instanceof Function){const k=((b=(B=l.value)==null?void 0:B.$el)==null?void 0:b.nodeName)!=="#text"?(f=l.value)==null?void 0:f.$el:(D=l.value)==null?void 0:D.$el.nextSibling;O=o(k)}return{to:O,disabled:m,forceMount:P}}),pe=["prioritizePosition","placement","sideOffset","alignOffset","sticky","collisionBoundary","avoidCollisions","collisionPadding","forceMount","disableUpdateOnLayoutShift","hideWhenDetached","positionStrategy","reference","updatePositionStrategy","autoFocusInside","containerProps","disableOutsidePointerEvents"],de=Object.fromEntries(pe.map(l=>[l,l])),T=({props:l,flip:v,_dir:y,controlAutoFocus:h,extraPropNames:a,emitsAsProps:C},g=de)=>e.computed(()=>{var R;const r=e.getCurrentInstance(),o=l??(r==null?void 0:r.props)??{},{prioritizePosition:m=s.prioritizePosition,placement:P=s.placement,sideOffset:O=s.sideOffset,alignOffset:u=s.alignOffset,sticky:B=s.sticky,collisionBoundary:b=s.collisionBoundary,avoidCollisions:f=s.avoidCollisions,collisionPadding:D=s.collisionPadding,forceMount:k=s.forceMount,disableUpdateOnLayoutShift:w=s.disableUpdateOnLayoutShift,disableOutsidePointerEvents:E=s.disableOutsidePointerEvents,hideWhenDetached:A=s.hideWhenDetached,positionStrategy:I=s.positionStrategy,reference:M=s.reference,updatePositionStrategy:U=s.updatePositionStrategy,autoFocusInside:q=s.autoFocusInside,containerProps:_=s.containerProps}=g,n=t.get(o,m),i=t.get(o,P),c=t.get(o,O),x=t.get(o,u),K=t.get(o,B),j=t.get(o,b),V=t.get(o,f),G=t.get(o,D),J=t.get(o,k),Q=t.get(o,w),X=t.get(o,E),Y=t.get(o,A),Z=t.get(o,I),ee=t.get(o,M),oe=t.get(o,U),$=t.get(o,q),te=t.get(o,_);let[F="bottom",ne="center"]=((R=i==null?void 0:i.split)==null?void 0:R.call(i,"-"))||["bottom","center"];v.value&&y.value&&y.value===v.value&&(F={right:"left",left:"right"}[F]??F);const L={};h&&(L.onCloseAutoFocus=p=>{var z;$||p.preventDefault(),(z=r==null?void 0:r.emit)==null||z.call(r,"closeAutoFocus",p)},L.onOpenAutoFocus=p=>{var z;$||p.preventDefault(),(z=r==null?void 0:r.emit)==null||z.call(r,"openAutoFocus",p)});const se=N.omitBy(Object.fromEntries((Array.isArray(a)?a:[]).map(p=>[p,t.get(o,p)])),N.isUndefined);return{...N.pick(C,["onEscapeKeyDown","onFocusOutside","onInteractOutside","onPointerDownOutside"]),...N.omit(te??{},["class"]),...se,sticky:K,prioritizePosition:n,side:F,align:ne,sideOffset:c,alignOffset:x,collisionBoundary:j,avoidCollisions:V,collisionPadding:G,forceMount:J,disableUpdateOnLayoutShift:Q,disableOutsidePointerEvents:X,hideWhenDetached:Y,positionStrategy:Z,reference:ee,updatePositionStrategy:oe,...L}}),ue=e.defineComponent({...ie.getComponentOptions("Popover",!1),__name:"Popover",props:{dir:{},class:{},containerCls:{},containerClass:{},containerProps:{},trigger:{default:"hover"},size:{default:"md"},to:{},placement:{default:"bottom"},reversePlacementOnDir:{},autoFocusInside:{type:Boolean},zIndex:{},useReferenceAttribute:{type:Boolean},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},openDelay:{},closeDelay:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{default:"always"},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{default:"optimized"},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean,default:!0},reference:{},disableOutsidePointerEvents:{type:Boolean}},emits:["update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(l,{emit:v}){const y=v,h=d.useEmitAsProps(y),a=l,C=S.getBemBlock("popover"),g=S.getBemElement(C,"trigger"),r=S.getBemElement(C,"content"),o=re.cva(r,{variants:{size:S.generateVariantClassList(W,r)}}),m=e.useSlots(),P=e.shallowRef(!0);e.onMounted(()=>{var c;const n=t.filterEmpty((c=m.default)==null?void 0:c.call(m,{}))??null,i=n.length===1?n[0]:n;P.value=i&&t.isValidElement(i)&&!t.isFragment(i)});const O=e.computed(()=>({...N.pick(a,["open","defaultOpen"]),...N.pick(h,["onUpdate:open"])})),u=e.ref(),B=H({triggerRef:u}),b=e.computed(()=>a.trigger==="hover"?d.HoverCardRoot:d.PopoverRoot),f=a.trigger==="hover",D=f?d.HoverCardTrigger:d.PopoverTrigger,k=f?d.HoverCardPortal:d.PopoverPortal,w=f?d.HoverCardContent:d.PopoverContent,{getFlipOnDir:E,getDir:A}=ae.useConfig(),I=E("reversePlacementOnDir"),M=A(),U=T({emitsAsProps:h,flip:I,_dir:M,controlAutoFocus:!0}),q=n=>{a.trigger==="hover"&&n.stopPropagation()},_=e.ref(a.reference);return a.useReferenceAttribute&&!a.reference?e.onMounted(()=>{var n,i,c;_.value=(c=(i=(n=u.value)==null?void 0:n.$el)==null?void 0:i.closest)==null?void 0:c.call(i,"[data-popover-reference]")}):e.watch(()=>a.reference,n=>{_.value=n}),(n,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.value),e.mergeProps(O.value,{openDelay:n.openDelay,closeDelay:n.closeDelay,key:P.value}),{default:e.withCtx(({open:c})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D)),e.mergeProps({as:"span",class:e.unref(S.normCls)(e.unref(g),a.class),onPointerdown:q},n.$attrs,{dir:n.dir,asChild:P.value,ref_key:"triggerRef",ref:u}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["class","dir","asChild"])),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k)),e.normalizeProps(e.guardReactiveProps(e.unref(B))),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w)),e.mergeProps({style:{zIndex:n.zIndex}},e.unref(U),{class:e.unref(S.normCls)(e.unref(o)({size:n.size}),n.containerClass,n.containerCls),reference:_.value}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"content")]),_:2},1040,["style","class","reference"])),[[e.vShow,c]])]),_:2},1040))]),_:3},16,["openDelay","closeDelay"]))}});exports.PopoverPlacements=le;exports.PopoverSizes=W;exports._sfc_main=ue;exports.getPopoverContentProps=T;exports.getPopoverPortalProps=H;
|
package/dist/Progress/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, P as o, a, e as g, f as P, g as i, _ as t, i as p, c as f, d as x, b as l, p as C } from "../Progress.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as e, P as o, a, e as g, f as P, g as i, _ as t, i as p, c as f, d as x, b as l, p as C } from "../Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Progress,
|
|
4
4
|
o as ProgressBoldColors,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Progress.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Progress.vue_vue_type_style_index_0_lang-BECdYJmY.js");exports.Progress=e._sfc_main;exports.ProgressBoldColors=e.ProgressBoldColors;exports.ProgressColors=e.ProgressColors;exports.ProgressSizes=e.ProgressSizes;exports.ProgressStatuses=e.ProgressStatuses;exports.ProgressTypes=e.ProgressTypes;exports.default=e._sfc_main;exports.injectProgressContext=e.injectProgressContext;exports.progressCirclePrefix=e.progressCirclePrefix;exports.progressLinePrefix=e.progressLinePrefix;exports.progressPrefix=e.progressPrefix;exports.provideProgressContext=e.provideProgressContext;
|
package/dist/Progress/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ProgressColor, ProgressSize, ProgressStatus, ProgressType } from './Pro
|
|
|
2
2
|
import { Direction } from '../ConfigProvider/index.js';
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
4
|
import { ProgressCirclePathProps } from './ProgressCirclePath';
|
|
5
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
5
6
|
export interface ProgressStep {
|
|
6
7
|
percent?: number | string;
|
|
7
8
|
title?: string;
|
|
@@ -32,6 +33,7 @@ export interface ProgressProps extends ProgressCirclePathProps {
|
|
|
32
33
|
label?: string;
|
|
33
34
|
validationMessage?: string;
|
|
34
35
|
helperText?: string;
|
|
36
|
+
helperTextCls?: ClassValue;
|
|
35
37
|
notRounded?: boolean;
|
|
36
38
|
duration?: number;
|
|
37
39
|
dir?: Direction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("@pantograph/utils"),V=require("class-variance-authority"),M=require("./BaseBadge.model-DecqxaGN.js"),q=require("reka-ui"),y=require("./options-CY2uxp5A.js"),D=require("es-toolkit"),h=require("./Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js"),U=require("./Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js"),J=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),B=["red","orange","yellow","lime","green","sky","blue","pink","violet","gray","amber","teal","cyan","ocean","amethyst","fuchsia","mallard"],K=[...B,"primary",...M.BadgeColorsSubtle],v=o.getBemBlock("progress"),L=o.getBemElement(v,"circle"),S=o.getBemElement(v,"line"),O=["2xsm","xsm","sm","md","lg"],F=["progress","warning","error","success"],H=["circle","line"],[P,W]=q.createContext("progress"),Q=["d","stroke-width","stroke-linecap","stroke"],X=["from","to","dur"],I=e.defineComponent({...y.getComponentOptions("ProgressCirclePath"),__name:"ProgressCirclePath",props:{strokeLinecap:{default:"round"},trail:{type:Boolean},indeterminate:{type:Boolean},percent:{},delay:{default:0},strokeWidth:{default:2.4},circleRadius:{default:16},color:{}},setup(k){const t=k,p=o.getBemElement(L,"path"),l=V.cva(p,{variants:{trail:o.generateVariantClassList("trail",p),indeterminate:o.generateVariantClassList("indeterminate",p)}}),s=P(),c=e.ref(0);e.watch(()=>[t.trail,t.percent],()=>{const r=s.getPercent(t.percent);if(!t.trail&&r!==void 0){const n=setTimeout(()=>{c.value=r,clearTimeout(n)},t.delay)}},{immediate:!0});const a=e.computed(()=>t.circleRadius-t.strokeWidth/2),_=e.computed(()=>{const r=t.circleRadius*2-t.strokeWidth;return`M ${t.circleRadius},${t.circleRadius} m 0,-${a.value} a ${a.value},${a.value} 0 1 1 0,${r} a ${a.value},${a.value} 0 1 1 0,-${r}`}),g=e.computed(()=>{const r=2*Math.PI*a.value,n=c.value/100;return{"stroke-dasharray":t.trail?void 0:r,"stroke-dashoffset":t.trail?void 0:r*(1-n),"--ptc-progress-animation-duration":s.duration.value}});return(r,n)=>(e.openBlock(),e.createBlock(e.unref(q.Primitive),{as:"g","as-child":!r.indeterminate,key:String(r.indeterminate)},{default:e.withCtx(()=>[e.createElementVNode("path",{d:_.value,"stroke-width":r.strokeWidth,fill:"none",style:e.normalizeStyle(g.value),"stroke-linecap":r.strokeLinecap,class:e.normalizeClass(e.unref(l)({trail:r.trail,indeterminate:r.indeterminate})),stroke:r.color??"currentColor"},null,14,Q),r.indeterminate?(e.openBlock(),e.createElementBlock("animateTransform",{key:0,attributeName:"transform",type:"rotate",from:`0 ${t.circleRadius} ${t.circleRadius}`,to:`360 ${t.circleRadius} ${t.circleRadius}`,dur:`${e.unref(s).duration.value||700}s`,repeatCount:"indefinite"},null,8,X)):e.createCommentVNode("",!0)]),_:1},8,["as-child"]))}}),A=e.defineComponent({...y.getComponentOptions("ProgressLabel"),__name:"ProgressLabel",setup(k){const t=P(),p=()=>{var c,a;const l=(a=(c=t.slots).label)==null?void 0:a.call(c,{}),s=!h.isEmptyElement(l);return s||t.props.label?e.h("div",{class:o.getBemElement(v,"label")},s?l:t.props.label):null};return(l,s)=>(e.openBlock(),e.createBlock(p))}}),R=e.defineComponent({...y.getComponentOptions("ProgressHelperText"),__name:"ProgressHelperText",setup(k){const t=P(),p=()=>{var c,a;const l=(a=(c=t.slots).helperText)==null?void 0:a.call(c,{}),s=!h.isEmptyElement(l);return s||t.props.helperText?e.h("div",{class:o.normCls(o.getBemElement(v,"helper_text"),t.props.helperTextCls)},s?l:t.props.helperText):null};return(l,s)=>(e.openBlock(),e.createBlock(p))}}),G=e.defineComponent({...y.getComponentOptions("ProgressLegend"),__name:"ProgressLegend",setup(k){const t=P(),p=o.getBemElement(v,"legend"),l=o.getBemElement(p,"item"),s=n=>e.h("div",{class:o.getBemElement(l,"indicator"),style:{background:t.getColor(n.color)}}),c=n=>e.h("div",{class:o.getBemElement(l,"title")},n.title),a=n=>e.h("div",{class:o.normCls(o.getBemElement(l,"percent"),"en")},`(${n._percent}%)`),_=n=>e.h("div",{class:l},[s(n),c(n),a(n)]),g=()=>{var n;return(n=t.getSteps.value)==null?void 0:n.map(u=>{var d,f;const i=(f=(d=t.slots).legendItem)==null?void 0:f.call(d,u);return h.isEmptyElement(i)?_(u):i})},r=()=>{var i,d,f;const n=(d=(i=t.slots).legend)==null?void 0:d.call(i,{}),u=!h.isEmptyElement(n);return u||t.props.legend&&((f=t.getSteps.value)!=null&&f.length)?e.h("div",{class:p},u?n:g()):null};return(n,u)=>(e.openBlock(),e.createBlock(r))}}),Y={viewBox:"0 0 32 32"},Z=e.defineComponent({...y.getComponentOptions("ProgressCircle"),__name:"ProgressCircle",setup(k){const t=P(),p=e.computed(()=>{switch(t.props.size){case"2xsm":case"xsm":return"3xsm";case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}}),l=V.cva(L,{variants:{size:o.generateVariantClassList(O,L)}}),s=()=>{var g,r;const a=(r=(g=t.slots).icon)==null?void 0:r.call(g,{}),_=!h.isEmptyElement(a);if(t.statusIcon.value||_){let n=a;return _||(n=e.h(h._sfc_main$2,{icon:t.statusIcon.value,size:p.value})),e.h("div",{class:o.getBemElement(L,"content")},n)}return null},c=e.computed(()=>D.sortBy(t.getSteps.value??[],["percent"]).reverse());return(a,_)=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)(e.unref(t).props))},[(e.openBlock(),e.createElementBlock("svg",Y,[e.unref(t).props.indeterminate?(e.openBlock(),e.createBlock(I,{key:1,indeterminate:"","stroke-linecap":"round",percent:75})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(I,{"stroke-linecap":e.unref(t).props.strokeLinecap,trail:""},null,8,["stroke-linecap"]),(g=e.unref(t).getSteps.value)!=null&&g.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,r=>(e.openBlock(),e.createBlock(I,{key:r.step_id,"stroke-linecap":e.unref(t).props.strokeLinecap,color:e.unref(t).getColor(r.color),percent:r.percent},null,8,["stroke-linecap","color","percent"]))),128)):(e.openBlock(),e.createBlock(I,{key:1,"stroke-linecap":e.unref(t).props.strokeLinecap,color:e.unref(t).props.status?void 0:e.unref(t).getColor(e.unref(t).props.color),percent:e.unref(t).percentProp.value},null,8,["stroke-linecap","color","percent"]))],64))])),e.createVNode(s)],2),e.createVNode(A),e.createVNode(R),e.createVNode(G)],64)}}}),ee=e.defineComponent({...y.getComponentOptions("ProgressValidationMessage"),__name:"ProgressValidationMessage",setup(k){const t=P(),p=()=>{var l,s;if(t.props.status){const c=(s=(l=t.slots).validationMessage)==null?void 0:s.call(l,{});if(!h.isEmptyElement(c)||t.props.validationMessage)return e.h(h._sfc_main$4,{status:t.props.status,message:t.props.validationMessage},{message:c})}return null};return(l,s)=>(e.openBlock(),e.createBlock(p))}}),te=e.defineComponent({...y.getComponentOptions("ProgressLine"),__name:"ProgressLine",setup(k){const t=P(),p=o.getBemElement(S,"value"),l=V.cva(S,{variants:{notRounded:o.generateVariantClassList("not-rounded",S),indeterminate:o.generateVariantClassList("indeterminate",S)}}),s=e.ref(0);e.watch(()=>[t.percentProp.value,t.props.indeterminate],()=>{const r=setTimeout(()=>{var n;t.props.indeterminate?s.value=void 0:!t.percentProp.value&&((n=t.getSteps.value)!=null&&n.length)?s.value=100:s.value=t.percentProp.value??0,clearTimeout(r)},t.props.delay??0)},{immediate:!0});const c=()=>{var r;if(!t.props.indeterminate){if(t.props.status)return"currentColor";if(!((r=t.getSteps.value)!=null&&r.length))return t.getColor(t.props.color)}},a=e.computed(()=>({width:s.value?`${s.value}%`:void 0,background:c(),"--ptc-progress-animation-duration":t.duration.value})),_=()=>{if(t.slots.label||t.props.label){const r=e.h(A),n=e.h(R,{renderIfHasLabel:!0});return e.h("div",{class:o.getBemElement(v,"line_content")},[r,n])}return null},g=()=>{if(t.props.status||t.props.indeterminate){const r=e.h(R),n=e.h(ee),u=[],i=h.isEmpty(t.slots.label||t.props.label)&&(t.slots.helperText||t.props.helperText);if(i&&u.push(r),(t.slots.validationMessage||t.props.validationMessage)&&!t.props.indeterminate&&t.statusIcon.value&&(i&&u.push(e.h(U._sfc_main,{type:"vertical",class:o.getBemElement(v,"divider")})),u.push(n)),u.length)return e.h("div",{class:o.getBemElement(v,"line_validation_box")},u)}else return e.h(G);return null};return(r,n)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(_),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)({notRounded:e.unref(t).props.notRounded,indeterminate:e.unref(t).props.indeterminate}))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)),style:e.normalizeStyle(a.value)},[(u=e.unref(t).getSteps.value)!=null&&u.length&&!e.unref(t).props.indeterminate?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t).getSteps.value,i=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(p),"step")),key:i.step_id,style:e.normalizeStyle({background:e.unref(t).getColor(i.color),width:`${i.percent??0}%`})},null,6))),128)):e.createCommentVNode("",!0)],6)],2),e.createVNode(g)],64)}}}),re=["dir"],ne=e.defineComponent({...y.getComponentOptions("Progress"),__name:"Progress",props:{steps:{},type:{default:"line"},legend:{type:Boolean},indeterminate:{type:Boolean},noAnimate:{type:Boolean},size:{default:"md"},status:{},label:{},validationMessage:{},helperText:{},helperTextCls:{},notRounded:{type:Boolean},duration:{default:700},dir:{},strokeLinecap:{default:"round"},trail:{type:Boolean},percent:{},delay:{},strokeWidth:{},circleRadius:{},color:{default:"primary"}},setup(k){const t=k,p=e.useSlots(),l=M.getBadgeColor,s=(i,d=!0)=>{const f=Number(i);if(!(isNaN(f)||d&&(f>100||f<0)))return f},c=e.computed(()=>s(t.percent)??0),a=e.computed(()=>{var i;if((i=t.steps)!=null&&i.length&&!t.status){const d=t.steps.map(m=>({...m,step_id:o.usePCId(v)}));let f=0;const T=d.reduce((m,C)=>{const E=s(C.percent);E===void 0&&f++;const $=d.findIndex(x=>x.step_id===C.step_id);return $!==-1&&(d[$].percent=E),m+(E||0)},0);if(c.value>100||c.value<0||T>100||T<0)throw"Invalid percentage";let b=0;const N=d.map(m=>B.findIndex(C=>C===m.color)).sort(),j=Array.from({length:B.length},(m,C)=>C).filter(m=>!N.includes(m));let w=-1;return d.map(m=>{const C=(100-T)/f,E=(x=!0)=>m.percent===void 0?t.type==="circle"&&x?(b+=C,b*((c.value||100)/100)):C:t.type==="circle"&&x?(b+=m.percent,b):m.percent,$=()=>{const x=l(m.color);if(!x){if(B.length!==N.length){const z=j.shift();if(h.isNumber(z))return N.push(z),B[z]}return w++,B[w%B.length]}return x};return{...m,percent:E(),_percent:E(!1),color:$()}})}}),_=V.cva(v,{variants:{status:o.generateVariantClassList(F,v),type:o.generateVariantClassList(H,v)}}),g=e.computed(()=>t.noAnimate?0:(s(t.duration,!1)||0)/1e3),{getDir:r}=J.useConfig(),n=r(),u=e.computed(()=>{switch(t.status){case"success":return t.type==="circle"?"tabler:check":"tabler:circle-check";case"warning":return t.type==="circle"?"tabler:exclamation-mark":"tabler:exclamation-circle";case"error":return t.type==="circle"?"tabler:x":"tabler:circle-x"}});return W({props:t,getColor:l,getSteps:a,percentProp:c,getPercent:s,duration:g,slots:p,statusIcon:u}),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(_)(t)),dir:e.unref(n)},[i.type==="circle"?(e.openBlock(),e.createBlock(Z,{key:0})):(e.openBlock(),e.createBlock(te,{key:1}))],10,re))}});exports.ProgressBoldColors=B;exports.ProgressColors=K;exports.ProgressSizes=O;exports.ProgressStatuses=F;exports.ProgressTypes=H;exports._sfc_main=ne;exports.injectProgressContext=P;exports.progressCirclePrefix=L;exports.progressLinePrefix=S;exports.progressPrefix=v;exports.provideProgressContext=W;
|