@pantograph/vue 0.25.3 → 0.25.5
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-BIpRzCHA.js +889 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DUhoDHJs.js +1 -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,69 @@
|
|
|
1
|
+
export type ValueType = string | number | undefined | null;
|
|
2
|
+
export interface DecimalClass {
|
|
3
|
+
add: (value: ValueType) => DecimalClass;
|
|
4
|
+
isEmpty: () => boolean;
|
|
5
|
+
isNaN: () => boolean;
|
|
6
|
+
isInvalidate: () => boolean;
|
|
7
|
+
toNumber: () => number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Parse value as string. Will return empty string if `isInvalidate`.
|
|
10
|
+
* You can set `safe=false` to get origin string content.
|
|
11
|
+
*/
|
|
12
|
+
toString: () => string;
|
|
13
|
+
equals: (target: DecimalClass) => boolean;
|
|
14
|
+
lessEquals: (target: DecimalClass) => boolean;
|
|
15
|
+
negate: () => DecimalClass;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* We can remove this when IE not support anymore
|
|
19
|
+
*/
|
|
20
|
+
export declare class NumberDecimal implements DecimalClass {
|
|
21
|
+
origin: string;
|
|
22
|
+
number: number | undefined;
|
|
23
|
+
empty: boolean | undefined;
|
|
24
|
+
constructor(value: ValueType);
|
|
25
|
+
negate(): DecimalClass;
|
|
26
|
+
add(value: ValueType): DecimalClass;
|
|
27
|
+
isEmpty(): boolean;
|
|
28
|
+
isNaN(): boolean;
|
|
29
|
+
isInvalidate(): boolean;
|
|
30
|
+
equals(target: DecimalClass): boolean;
|
|
31
|
+
lessEquals(target: DecimalClass): boolean;
|
|
32
|
+
toNumber(): number | undefined;
|
|
33
|
+
toString(): string;
|
|
34
|
+
}
|
|
35
|
+
export declare class BigIntDecimal implements DecimalClass {
|
|
36
|
+
origin: string;
|
|
37
|
+
negative: boolean | undefined;
|
|
38
|
+
integer: bigint | undefined;
|
|
39
|
+
decimal: bigint | undefined;
|
|
40
|
+
/** BigInt will convert `0009` to `9`. We need record the len of decimal */
|
|
41
|
+
decimalLen: number | undefined;
|
|
42
|
+
empty: boolean | undefined;
|
|
43
|
+
nan: boolean | undefined;
|
|
44
|
+
constructor(value?: ValueType);
|
|
45
|
+
private getMark;
|
|
46
|
+
private getIntegerStr;
|
|
47
|
+
private getDecimalStr;
|
|
48
|
+
/**
|
|
49
|
+
* Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
|
|
50
|
+
* This is used for add function only.
|
|
51
|
+
*/
|
|
52
|
+
private alignDecimal;
|
|
53
|
+
negate(): DecimalClass;
|
|
54
|
+
add(value: ValueType): DecimalClass;
|
|
55
|
+
isEmpty(): boolean;
|
|
56
|
+
isNaN(): boolean;
|
|
57
|
+
isInvalidate(): boolean;
|
|
58
|
+
equals(target: DecimalClass): boolean;
|
|
59
|
+
lessEquals(target: DecimalClass): boolean;
|
|
60
|
+
toNumber(): number;
|
|
61
|
+
toString(): string;
|
|
62
|
+
}
|
|
63
|
+
export default function getMiniDecimal(value: ValueType): DecimalClass;
|
|
64
|
+
export declare const getDecimalIfValidate: (value: ValueType) => DecimalClass | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Align the logic of toFixed to around like 1.5 => 2.
|
|
67
|
+
* If set `cutOnly`, will just remove the over decimal part.
|
|
68
|
+
*/
|
|
69
|
+
export declare function toFixed(numStr: string, separatorStr: string, precision?: number, cutOnly?: boolean): string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format string number to readable number
|
|
3
|
+
*/
|
|
4
|
+
export declare function trimNumber(numStr: string): {
|
|
5
|
+
negative: boolean;
|
|
6
|
+
negativeStr: string;
|
|
7
|
+
trimStr: string;
|
|
8
|
+
integerStr: string;
|
|
9
|
+
decimalStr: string;
|
|
10
|
+
fullStr: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function isE(number?: string | number | null): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* [Legacy] Convert 1e-9 to 0.000000001.
|
|
15
|
+
* This may lose some precision if user really want 1e-9.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getNumberPrecision(number?: string | number): number;
|
|
18
|
+
/**
|
|
19
|
+
* Convert number (includes scientific notation) to -xxx.yyy format
|
|
20
|
+
*/
|
|
21
|
+
export declare function num2str(number?: number | null): string;
|
|
22
|
+
export declare function validateNumber(num: string | number): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function supportBigInt(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var fe=Object.defineProperty;var pe=(i,e,n)=>e in i?fe(i,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[e]=n;var f=(i,e,n)=>pe(i,typeof e!="symbol"?e+"":e,n);const r=require("vue"),_=require("@pantograph/utils"),$=require("./BaseInput.vue_vue_type_style_index_0_lang-D1-OgRQO.js"),ge=require("./options-CY2uxp5A.js"),ee=require("./useInputDataStates-BWZ4Q3rt.js"),N=require("es-toolkit"),C=require("./Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js");function R(){return typeof BigInt=="function"}function B(i){let e=i.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e=`0${e}`);const s=e||"0",l=s.split("."),o=l[0]||"0",p=l[1]||"0";o==="0"&&p==="0"&&(n=!1);const m=n?"-":"";return{negative:n,negativeStr:m,trimStr:s,integerStr:o,decimalStr:p,fullStr:`${m}${s}`}}function F(i){if(i==null)return!1;const e=String(i);return!Number.isNaN(Number(e))&&e.includes("e")}function w(i){const e=String(i);if(F(i)){let n=Number(e.slice(e.indexOf("e-")+2));const s=e.match(/\.(\d+)/);return s!=null&&s[1]&&(n+=s[1].length),n}return e.includes(".")&&T(e)?e.length-e.indexOf(".")-1:0}function P(i){if(i==null)return"";let e=String(i);if(F(i)){if(i>Number.MAX_SAFE_INTEGER)return String(R()?BigInt(i).toString():Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return String(R()?BigInt(i).toString():Number.MIN_SAFE_INTEGER);e=i.toFixed(w(e))}return B(e).fullStr}function T(i){return typeof i=="number"?!Number.isNaN(i):i?/^\s*-?\d+(\.\d+)?\s*$/.test(i)||/^\s*-?\d+\.\s*$/.test(i)||/^\s*-?\.\d+\s*$/.test(i):!1}function ne(i){return!i&&i!==0&&!Number.isNaN(i)||!String(i).trim()}class b{constructor(e){f(this,"origin","");f(this,"number");f(this,"empty");if(ne(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}negate(){return new b(this.empty?void 0:-this.toNumber())}add(e){if(this.isInvalidate())return new b(e);const n=Number(e);if(Number.isNaN(n))return this;const s=this.number+n;if(s>Number.MAX_SAFE_INTEGER)return new b(Number.MAX_SAFE_INTEGER);if(s<Number.MIN_SAFE_INTEGER)return new b(Number.MIN_SAFE_INTEGER);const l=Math.max(w(this.number),w(n));return new b(s.toFixed(l))}isEmpty(){return!!this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toNumber()===(e==null?void 0:e.toNumber())}lessEquals(e){const n=this.add(e.negate().toString()).toNumber();return n!==void 0&&n<=0}toNumber(){return this.number}toString(){return this.isInvalidate()?"":P(this.number)}}class E{constructor(e){f(this,"origin","");f(this,"negative");f(this,"integer");f(this,"decimal");f(this,"decimalLen");f(this,"empty");f(this,"nan");if(ne(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}let n=e;if(F(n)&&(n=Number(n)),n=typeof n=="string"?n:P(n),T(n)){const s=B(n);this.negative=s.negative;const l=s.trimStr.split(".");this.integer=BigInt(l[0]);const o=l[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){var e;return((e=this.integer)==null?void 0:e.toString())??""}getDecimalStr(){var e;return((e=this.decimal)==null?void 0:e.toString().padStart(this.decimalLen??0,"0"))??""}alignDecimal(e){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(n)}negate(){const e=new E(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new E(e);const n=new E(e);if(n.isInvalidate())return this;const s=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),l=this.alignDecimal(s),o=n.alignDecimal(s),p=(l+o).toString(),{negativeStr:m,trimStr:d}=B(p),S=`${m}${d.padStart(s+1,"0")}`;return new E(`${S.slice(0,-s)}.${S.slice(-s)}`)}isEmpty(){return!!this.empty}isNaN(){return!!this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(e==null?void 0:e.toString())}lessEquals(e){const n=this.add(e.negate().toString()).toNumber();return n!==void 0&&n<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return this.isInvalidate()?"":B(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr}}function v(i){return R()?new E(i):new b(i)}const te=i=>{const e=v(i);return e.isInvalidate()?void 0:e};function k(i,e,n,s=!1){if(i==="")return"";const{negativeStr:l,integerStr:o,decimalStr:p}=B(i),m=`${e}${p}`,d=`${l}${o}`;if(n&&n>=0){const S=Number(p[n]);if(S>=5&&!s){const x=v(i).add(`${l}0.${"0".repeat(n)}${10-S}`);return k(x.toString(),e,n,s)}return n===0?d:`${d}${e}${p.padEnd(n,"0").slice(0,n)}`}return m===".0"?d:`${d}${m}`}const ve=["aria-valuemin","aria-valuemax","value"],Se=["data-disabled"],he=["data-disabled"],Ne=r.defineComponent({...ge.getComponentOptions("Input",!1),__name:"InputNumber",props:{id:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},modelValue:{},min:{},max:{},step:{default:1},controls:{type:Boolean,default:!0},readonly:{type:Boolean},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},simple:{type:Boolean},size:{},status:{},steps:{type:Boolean}},emits:["update:modelValue","change","input","pressEnter","step","blur","focus","clear"],setup(i,{expose:e,emit:n}){const s=i,l=r.useSlots(),o=n,p=r.useAttrs(),m=_.getBemElement($.inputPrefix,"number_steps"),{getDisabled:d,getStatus:S,getSize:x}=ee.useFormInput({getSize:()=>s.size&&$.InputSizes.includes(s.size)?s.size:"md"}),D=r.ref(),c=r.shallowRef(v(s.modelValue)),h=r.shallowRef(""),y=r.computed(()=>te(s.max)),I=r.computed(()=>te(s.min)),G=r.computed(()=>d.value?!0:!I.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(I.value)),U=r.computed(()=>d.value?!0:!y.value||!c.value||c.value.isInvalidate()?!1:y.value.lessEquals(c.value)),ie=()=>{L(void 0),h.value="",o("clear")},L=t=>{q=!0,o("update:modelValue",t),o("change",t),r.nextTick(()=>q=!1)},X=t=>Math.max(w(t),w(s.step)),O=t=>{let a=typeof t=="number"?P(t):t;const u=X(a);return T(a)&&(!u||u>=0)&&(a=k(a,".",u)),a},W=t=>{h.value=O((t.isInvalidate(),t.toString()))},re=()=>{const t=s.modelValue;return c.value.isInvalidate()&&["string","number"].includes(typeof t)?Number.isNaN(t)?"":(t==null?void 0:t.toString())??"":O(c.value.toString())};h.value=re();const K=t=>{if(y.value&&!t.lessEquals(y.value))return y.value;if(I.value&&!I.value.lessEquals(t))return I.value},j=t=>{c.value=t,W(t)},se=t=>!K(t);let q=!1;const M=t=>{let a=t,u=se(a)||a.isEmpty();if(a.isEmpty()||(a=K(a)||a,u=!0),!s.readonly&&!s.disabled&&u){const g=a.toString(),z=X(g);return(!z||z>=0)&&(a=v(k(g,".",z))),a.equals(c.value)||(j(a),L(a.isEmpty()?void 0:a.toNumber())),a}return c.value};let A;const V=()=>{clearTimeout(A),A=void 0},H=t=>{var g;if(t&&U.value||!t&&G.value){V();return}let a=v(s.step);t||(a=a.negate());const u=(c.value||v(0)).add(a.toString());M(u),o("step",{offset:s.step??1,type:t?"up":"down"}),(g=D.value)==null||g.focus()},J=(t,a)=>{t.preventDefault();function u(){A=setTimeout(u,200),H(a)}u()};r.onBeforeUnmount(V);const Q=t=>String(t).replace(/[^\w.-]+/g,""),Y=()=>{const t=v(Q(h.value));let a=t;t.isNaN()?a=c.value:a=M(t),W(a)},ae=t=>{const a=t.target.value;h.value=a;const u=Q(a),g=v(u);g.isNaN()||M(g),o("input",t)},ue=t=>{const{key:a}=t;a==="Enter"&&(Y(),o("pressEnter",t)),["ArrowDown","ArrowUp"].includes(a)&&(H(a==="ArrowUp"),t.preventDefault())};r.watch(()=>s.modelValue,()=>{q||j(v(s.modelValue))});const{focused:oe,rootBindings:le,inputBindings:ce}=ee.UseInputDataStates({getDisabled:()=>d.value,emit:o,blurCallBack:Y});r.watch(()=>s.disabled,t=>{t&&(oe.value=!1)});const de=r.computed(()=>N.omitBy({...N.pick(s,["id","type","disabled","required","placeholder","step"]),...le.value,...s,disabled:d.value,status:S.value,size:x.value,hasValue:!C.isEmpty(h.value)},N.isUndefined)),me=r.computed(()=>N.omitBy({...N.pick(s,["id","type","disabled","required","placeholder","readonly"]),disabled:d.value,...N.omit(p,["value"]),...ce.value},N.isUndefined)),Z=r.computed(()=>{switch(x.value){case"sm":return 12;case"lg":return 16;default:return 14}});return e($.useInputExposes(D)),(t,a)=>(r.openBlock(),r.createBlock($._sfc_main,r.mergeProps(de.value,{onClear:ie,steps:s.controls}),r.createSlots({default:r.withCtx(()=>[r.createElementVNode("input",r.mergeProps({ref_key:"inputRef",ref:D},me.value,{class:r.unref(_.normCls)(r.unref(_.getBemElement)(r.unref($.inputPrefix),"input")),autocomplete:"off",role:"spinbutton","aria-valuemin":t.min,"aria-valuemax":t.max,value:h.value,onInput:ae,onKeydown:ue}),null,16,ve)]),_:2},[r.renderList(Object.keys(l),u=>({name:u,fn:r.withCtx(g=>[r.renderSlot(t.$slots,u,r.normalizeProps(r.guardReactiveProps(g)))])})),s.controls?{name:"extra",fn:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(r.unref(m)),onMouseup:V,onMouseleave:V},[r.createElementVNode("span",{role:"button",class:r.normalizeClass(r.unref(_.getBemElement)(r.unref(m),"up")),"data-disabled":U.value,onMousedown:a[0]||(a[0]=u=>J(u,!0))},[r.createVNode(C._sfc_main$2,{icon:"tabler:chevron-up",size:Z.value},null,8,["size"])],42,Se),r.createElementVNode("span",{role:"button",class:r.normalizeClass(r.unref(_.getBemElement)(r.unref(m),"down")),"data-disabled":G.value,onMousedown:a[1]||(a[1]=u=>J(u,!1))},[r.createVNode(C._sfc_main$2,{icon:"tabler:chevron-down",size:Z.value},null,8,["size"])],42,he)],34)]),key:"0"}:void 0]),1040,["steps"]))}});exports._sfc_main=Ne;
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
var Ie = Object.defineProperty;
|
|
2
|
+
var ye = (i, e, n) => e in i ? Ie(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n;
|
|
3
|
+
var m = (i, e, n) => ye(i, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { defineComponent as $e, useSlots as we, useAttrs as Be, ref as xe, shallowRef as te, computed as N, onBeforeUnmount as De, watch as ne, createBlock as _e, openBlock as Ve, mergeProps as ie, createSlots as Me, withCtx as C, createElementVNode as D, unref as v, renderList as Ae, renderSlot as Re, normalizeProps as ze, guardReactiveProps as Ce, normalizeClass as k, createVNode as re, nextTick as ke } from "vue";
|
|
5
|
+
import { getBemElement as _, normCls as qe } from "@pantograph/utils";
|
|
6
|
+
import { i as se, u as Fe, _ as Te, I as Pe } from "./BaseInput.vue_vue_type_style_index_0_lang-Bh5c8r40.js";
|
|
7
|
+
import { g as Ge } from "./options-Bh1s18jm.js";
|
|
8
|
+
import { u as Ue, U as Le } from "./useInputDataStates-COzmxWTw.js";
|
|
9
|
+
import { omitBy as ae, pick as oe, isUndefined as le, omit as Xe } from "es-toolkit";
|
|
10
|
+
import { l as Oe, e as ue } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
11
|
+
function q() {
|
|
12
|
+
return typeof BigInt == "function";
|
|
13
|
+
}
|
|
14
|
+
function $(i) {
|
|
15
|
+
let e = i.trim(), n = e.startsWith("-");
|
|
16
|
+
n && (e = e.slice(1)), e = e.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""), e.startsWith(".") && (e = `0${e}`);
|
|
17
|
+
const r = e || "0", l = r.split("."), o = l[0] || "0", f = l[1] || "0";
|
|
18
|
+
o === "0" && f === "0" && (n = !1);
|
|
19
|
+
const d = n ? "-" : "";
|
|
20
|
+
return {
|
|
21
|
+
negative: n,
|
|
22
|
+
negativeStr: d,
|
|
23
|
+
trimStr: r,
|
|
24
|
+
integerStr: o,
|
|
25
|
+
decimalStr: f,
|
|
26
|
+
fullStr: `${d}${r}`
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function T(i) {
|
|
30
|
+
if (i == null) return !1;
|
|
31
|
+
const e = String(i);
|
|
32
|
+
return !Number.isNaN(Number(e)) && e.includes("e");
|
|
33
|
+
}
|
|
34
|
+
function w(i) {
|
|
35
|
+
const e = String(i);
|
|
36
|
+
if (T(i)) {
|
|
37
|
+
let n = Number(e.slice(e.indexOf("e-") + 2));
|
|
38
|
+
const r = e.match(/\.(\d+)/);
|
|
39
|
+
return r != null && r[1] && (n += r[1].length), n;
|
|
40
|
+
}
|
|
41
|
+
return e.includes(".") && G(e) ? e.length - e.indexOf(".") - 1 : 0;
|
|
42
|
+
}
|
|
43
|
+
function P(i) {
|
|
44
|
+
if (i == null) return "";
|
|
45
|
+
let e = String(i);
|
|
46
|
+
if (T(i)) {
|
|
47
|
+
if (i > Number.MAX_SAFE_INTEGER)
|
|
48
|
+
return String(q() ? BigInt(i).toString() : Number.MAX_SAFE_INTEGER);
|
|
49
|
+
if (i < Number.MIN_SAFE_INTEGER)
|
|
50
|
+
return String(q() ? BigInt(i).toString() : Number.MIN_SAFE_INTEGER);
|
|
51
|
+
e = i.toFixed(w(e));
|
|
52
|
+
}
|
|
53
|
+
return $(e).fullStr;
|
|
54
|
+
}
|
|
55
|
+
function G(i) {
|
|
56
|
+
return typeof i == "number" ? !Number.isNaN(i) : i ? (
|
|
57
|
+
// Normal type: 11.28
|
|
58
|
+
/^\s*-?\d+(\.\d+)?\s*$/.test(i) || // Pre-number: 1.
|
|
59
|
+
/^\s*-?\d+\.\s*$/.test(i) || // Post-number: .1
|
|
60
|
+
/^\s*-?\.\d+\s*$/.test(i)
|
|
61
|
+
) : !1;
|
|
62
|
+
}
|
|
63
|
+
function de(i) {
|
|
64
|
+
return !i && i !== 0 && !Number.isNaN(i) || !String(i).trim();
|
|
65
|
+
}
|
|
66
|
+
class b {
|
|
67
|
+
constructor(e) {
|
|
68
|
+
m(this, "origin", "");
|
|
69
|
+
m(this, "number");
|
|
70
|
+
m(this, "empty");
|
|
71
|
+
if (de(e)) {
|
|
72
|
+
this.empty = !0;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.origin = String(e), this.number = Number(e);
|
|
76
|
+
}
|
|
77
|
+
negate() {
|
|
78
|
+
return new b(this.empty ? void 0 : -this.toNumber());
|
|
79
|
+
}
|
|
80
|
+
add(e) {
|
|
81
|
+
if (this.isInvalidate())
|
|
82
|
+
return new b(e);
|
|
83
|
+
const n = Number(e);
|
|
84
|
+
if (Number.isNaN(n))
|
|
85
|
+
return this;
|
|
86
|
+
const r = this.number + n;
|
|
87
|
+
if (r > Number.MAX_SAFE_INTEGER)
|
|
88
|
+
return new b(Number.MAX_SAFE_INTEGER);
|
|
89
|
+
if (r < Number.MIN_SAFE_INTEGER)
|
|
90
|
+
return new b(Number.MIN_SAFE_INTEGER);
|
|
91
|
+
const l = Math.max(w(this.number), w(n));
|
|
92
|
+
return new b(r.toFixed(l));
|
|
93
|
+
}
|
|
94
|
+
isEmpty() {
|
|
95
|
+
return !!this.empty;
|
|
96
|
+
}
|
|
97
|
+
isNaN() {
|
|
98
|
+
return Number.isNaN(this.number);
|
|
99
|
+
}
|
|
100
|
+
isInvalidate() {
|
|
101
|
+
return this.isEmpty() || this.isNaN();
|
|
102
|
+
}
|
|
103
|
+
equals(e) {
|
|
104
|
+
return this.toNumber() === (e == null ? void 0 : e.toNumber());
|
|
105
|
+
}
|
|
106
|
+
lessEquals(e) {
|
|
107
|
+
const n = this.add(e.negate().toString()).toNumber();
|
|
108
|
+
return n !== void 0 && n <= 0;
|
|
109
|
+
}
|
|
110
|
+
toNumber() {
|
|
111
|
+
return this.number;
|
|
112
|
+
}
|
|
113
|
+
toString() {
|
|
114
|
+
return this.isInvalidate() ? "" : P(this.number);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
class E {
|
|
118
|
+
constructor(e) {
|
|
119
|
+
m(this, "origin", "");
|
|
120
|
+
m(this, "negative");
|
|
121
|
+
m(this, "integer");
|
|
122
|
+
m(this, "decimal");
|
|
123
|
+
/** BigInt will convert `0009` to `9`. We need record the len of decimal */
|
|
124
|
+
m(this, "decimalLen");
|
|
125
|
+
m(this, "empty");
|
|
126
|
+
m(this, "nan");
|
|
127
|
+
if (de(e)) {
|
|
128
|
+
this.empty = !0;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (this.origin = String(e), e === "-" || Number.isNaN(e)) {
|
|
132
|
+
this.nan = !0;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
let n = e;
|
|
136
|
+
if (T(n) && (n = Number(n)), n = typeof n == "string" ? n : P(n), G(n)) {
|
|
137
|
+
const r = $(n);
|
|
138
|
+
this.negative = r.negative;
|
|
139
|
+
const l = r.trimStr.split(".");
|
|
140
|
+
this.integer = BigInt(l[0]);
|
|
141
|
+
const o = l[1] || "0";
|
|
142
|
+
this.decimal = BigInt(o), this.decimalLen = o.length;
|
|
143
|
+
} else
|
|
144
|
+
this.nan = !0;
|
|
145
|
+
}
|
|
146
|
+
getMark() {
|
|
147
|
+
return this.negative ? "-" : "";
|
|
148
|
+
}
|
|
149
|
+
getIntegerStr() {
|
|
150
|
+
var e;
|
|
151
|
+
return ((e = this.integer) == null ? void 0 : e.toString()) ?? "";
|
|
152
|
+
}
|
|
153
|
+
getDecimalStr() {
|
|
154
|
+
var e;
|
|
155
|
+
return ((e = this.decimal) == null ? void 0 : e.toString().padStart(this.decimalLen ?? 0, "0")) ?? "";
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
|
|
159
|
+
* This is used for add function only.
|
|
160
|
+
*/
|
|
161
|
+
alignDecimal(e) {
|
|
162
|
+
const n = `${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(
|
|
163
|
+
e,
|
|
164
|
+
"0"
|
|
165
|
+
)}`;
|
|
166
|
+
return BigInt(n);
|
|
167
|
+
}
|
|
168
|
+
negate() {
|
|
169
|
+
const e = new E(this.toString());
|
|
170
|
+
return e.negative = !e.negative, e;
|
|
171
|
+
}
|
|
172
|
+
add(e) {
|
|
173
|
+
if (this.isInvalidate())
|
|
174
|
+
return new E(e);
|
|
175
|
+
const n = new E(e);
|
|
176
|
+
if (n.isInvalidate())
|
|
177
|
+
return this;
|
|
178
|
+
const r = Math.max(this.getDecimalStr().length, n.getDecimalStr().length), l = this.alignDecimal(r), o = n.alignDecimal(r), f = (l + o).toString(), { negativeStr: d, trimStr: c } = $(f), S = `${d}${c.padStart(r + 1, "0")}`;
|
|
179
|
+
return new E(
|
|
180
|
+
`${S.slice(0, -r)}.${S.slice(-r)}`
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
isEmpty() {
|
|
184
|
+
return !!this.empty;
|
|
185
|
+
}
|
|
186
|
+
isNaN() {
|
|
187
|
+
return !!this.nan;
|
|
188
|
+
}
|
|
189
|
+
isInvalidate() {
|
|
190
|
+
return this.isEmpty() || this.isNaN();
|
|
191
|
+
}
|
|
192
|
+
equals(e) {
|
|
193
|
+
return this.toString() === (e == null ? void 0 : e.toString());
|
|
194
|
+
}
|
|
195
|
+
lessEquals(e) {
|
|
196
|
+
const n = this.add(e.negate().toString()).toNumber();
|
|
197
|
+
return n !== void 0 && n <= 0;
|
|
198
|
+
}
|
|
199
|
+
toNumber() {
|
|
200
|
+
return this.isNaN() ? NaN : Number(this.toString());
|
|
201
|
+
}
|
|
202
|
+
toString() {
|
|
203
|
+
return this.isInvalidate() ? "" : $(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function g(i) {
|
|
207
|
+
return q() ? new E(i) : new b(i);
|
|
208
|
+
}
|
|
209
|
+
const ce = (i) => {
|
|
210
|
+
const e = g(i);
|
|
211
|
+
return e.isInvalidate() ? void 0 : e;
|
|
212
|
+
};
|
|
213
|
+
function F(i, e, n, r = !1) {
|
|
214
|
+
if (i === "")
|
|
215
|
+
return "";
|
|
216
|
+
const { negativeStr: l, integerStr: o, decimalStr: f } = $(i), d = `${e}${f}`, c = `${l}${o}`;
|
|
217
|
+
if (n && n >= 0) {
|
|
218
|
+
const S = Number(f[n]);
|
|
219
|
+
if (S >= 5 && !r) {
|
|
220
|
+
const B = g(i).add(
|
|
221
|
+
`${l}0.${"0".repeat(n)}${10 - S}`
|
|
222
|
+
);
|
|
223
|
+
return F(B.toString(), e, n, r);
|
|
224
|
+
}
|
|
225
|
+
return n === 0 ? c : `${c}${e}${f.padEnd(n, "0").slice(0, n)}`;
|
|
226
|
+
}
|
|
227
|
+
return d === ".0" ? c : `${c}${d}`;
|
|
228
|
+
}
|
|
229
|
+
const We = ["aria-valuemin", "aria-valuemax", "value"], Ke = ["data-disabled"], je = ["data-disabled"], it = /* @__PURE__ */ $e({
|
|
230
|
+
...Ge("Input", !1),
|
|
231
|
+
__name: "InputNumber",
|
|
232
|
+
props: {
|
|
233
|
+
id: {},
|
|
234
|
+
type: {},
|
|
235
|
+
placeholder: {},
|
|
236
|
+
disabled: { type: Boolean, default: void 0 },
|
|
237
|
+
required: { type: Boolean },
|
|
238
|
+
modelValue: {},
|
|
239
|
+
min: {},
|
|
240
|
+
max: {},
|
|
241
|
+
step: { default: 1 },
|
|
242
|
+
controls: { type: Boolean, default: !0 },
|
|
243
|
+
readonly: { type: Boolean },
|
|
244
|
+
leading: {},
|
|
245
|
+
trailing: {},
|
|
246
|
+
clearIcon: { default: "tabler:circle-x" },
|
|
247
|
+
trailingCls: {},
|
|
248
|
+
clearIconCls: {},
|
|
249
|
+
dividerCls: {},
|
|
250
|
+
leadingCls: {},
|
|
251
|
+
class: {},
|
|
252
|
+
allowClear: { type: Boolean },
|
|
253
|
+
bordered: { type: Boolean, default: !0 },
|
|
254
|
+
simple: { type: Boolean },
|
|
255
|
+
size: {},
|
|
256
|
+
status: {},
|
|
257
|
+
steps: { type: Boolean }
|
|
258
|
+
},
|
|
259
|
+
emits: ["update:modelValue", "change", "input", "pressEnter", "step", "blur", "focus", "clear"],
|
|
260
|
+
setup(i, { expose: e, emit: n }) {
|
|
261
|
+
const r = i, l = we(), o = n, f = Be(), d = _(se, "number_steps"), { getDisabled: c, getStatus: S, getSize: B } = Ue({
|
|
262
|
+
getSize: () => r.size && Pe.includes(r.size) ? r.size : "md"
|
|
263
|
+
}), V = xe(), u = te(g(r.modelValue)), h = te(""), I = N(() => ce(r.max)), y = N(() => ce(r.min)), U = N(() => c.value ? !0 : !y.value || !u.value || u.value.isInvalidate() ? !1 : u.value.lessEquals(y.value)), L = N(() => c.value ? !0 : !I.value || !u.value || u.value.isInvalidate() ? !1 : I.value.lessEquals(u.value)), me = () => {
|
|
264
|
+
X(void 0), h.value = "", o("clear");
|
|
265
|
+
}, X = (t) => {
|
|
266
|
+
M = !0, o("update:modelValue", t), o("change", t), ke(() => M = !1);
|
|
267
|
+
}, O = (t) => Math.max(w(t), w(r.step)), W = (t) => {
|
|
268
|
+
let s = typeof t == "number" ? P(t) : t;
|
|
269
|
+
const a = O(s);
|
|
270
|
+
return G(s) && (!a || a >= 0) && (s = F(s, ".", a)), s;
|
|
271
|
+
}, K = (t) => {
|
|
272
|
+
h.value = W(
|
|
273
|
+
(t.isInvalidate(), t.toString())
|
|
274
|
+
);
|
|
275
|
+
}, fe = () => {
|
|
276
|
+
const t = r.modelValue;
|
|
277
|
+
return u.value.isInvalidate() && ["string", "number"].includes(typeof t) ? Number.isNaN(t) ? "" : (t == null ? void 0 : t.toString()) ?? "" : W(u.value.toString());
|
|
278
|
+
};
|
|
279
|
+
h.value = fe();
|
|
280
|
+
const j = (t) => {
|
|
281
|
+
if (I.value && !t.lessEquals(I.value))
|
|
282
|
+
return I.value;
|
|
283
|
+
if (y.value && !y.value.lessEquals(t))
|
|
284
|
+
return y.value;
|
|
285
|
+
}, H = (t) => {
|
|
286
|
+
u.value = t, K(t);
|
|
287
|
+
}, pe = (t) => !j(t);
|
|
288
|
+
let M = !1;
|
|
289
|
+
const A = (t) => {
|
|
290
|
+
let s = t, a = pe(s) || s.isEmpty();
|
|
291
|
+
if (s.isEmpty() || (s = j(s) || s, a = !0), !r.readonly && !r.disabled && a) {
|
|
292
|
+
const p = s.toString(), z = O(p);
|
|
293
|
+
return (!z || z >= 0) && (s = g(F(p, ".", z))), s.equals(u.value) || (H(s), X(s.isEmpty() ? void 0 : s.toNumber())), s;
|
|
294
|
+
}
|
|
295
|
+
return u.value;
|
|
296
|
+
};
|
|
297
|
+
let R;
|
|
298
|
+
const x = () => {
|
|
299
|
+
clearTimeout(R), R = void 0;
|
|
300
|
+
}, J = (t) => {
|
|
301
|
+
var p;
|
|
302
|
+
if (t && L.value || !t && U.value) {
|
|
303
|
+
x();
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
let s = g(r.step);
|
|
307
|
+
t || (s = s.negate());
|
|
308
|
+
const a = (u.value || g(0)).add(s.toString());
|
|
309
|
+
A(a), o("step", {
|
|
310
|
+
offset: r.step ?? 1,
|
|
311
|
+
type: t ? "up" : "down"
|
|
312
|
+
}), (p = V.value) == null || p.focus();
|
|
313
|
+
}, Q = (t, s) => {
|
|
314
|
+
t.preventDefault();
|
|
315
|
+
function a() {
|
|
316
|
+
R = setTimeout(a, 200), J(s);
|
|
317
|
+
}
|
|
318
|
+
a();
|
|
319
|
+
};
|
|
320
|
+
De(x);
|
|
321
|
+
const Y = (t) => String(t).replace(/[^\w.-]+/g, ""), Z = () => {
|
|
322
|
+
const t = g(Y(h.value));
|
|
323
|
+
let s = t;
|
|
324
|
+
t.isNaN() ? s = u.value : s = A(t), K(s);
|
|
325
|
+
}, ge = (t) => {
|
|
326
|
+
const s = t.target.value;
|
|
327
|
+
h.value = s;
|
|
328
|
+
const a = Y(s), p = g(a);
|
|
329
|
+
p.isNaN() || A(p), o("input", t);
|
|
330
|
+
}, ve = (t) => {
|
|
331
|
+
const { key: s } = t;
|
|
332
|
+
s === "Enter" && (Z(), o("pressEnter", t)), ["ArrowDown", "ArrowUp"].includes(s) && (J(s === "ArrowUp"), t.preventDefault());
|
|
333
|
+
};
|
|
334
|
+
ne(
|
|
335
|
+
() => r.modelValue,
|
|
336
|
+
() => {
|
|
337
|
+
M || H(g(r.modelValue));
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
const {
|
|
341
|
+
focused: Se,
|
|
342
|
+
rootBindings: he,
|
|
343
|
+
inputBindings: Ne
|
|
344
|
+
} = Le({
|
|
345
|
+
getDisabled: () => c.value,
|
|
346
|
+
emit: o,
|
|
347
|
+
blurCallBack: Z
|
|
348
|
+
});
|
|
349
|
+
ne(
|
|
350
|
+
() => r.disabled,
|
|
351
|
+
(t) => {
|
|
352
|
+
t && (Se.value = !1);
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
const be = N(
|
|
356
|
+
() => ae(
|
|
357
|
+
{
|
|
358
|
+
...oe(r, ["id", "type", "disabled", "required", "placeholder", "step"]),
|
|
359
|
+
...he.value,
|
|
360
|
+
...r,
|
|
361
|
+
disabled: c.value,
|
|
362
|
+
status: S.value,
|
|
363
|
+
size: B.value,
|
|
364
|
+
hasValue: !Oe(h.value)
|
|
365
|
+
},
|
|
366
|
+
le
|
|
367
|
+
)
|
|
368
|
+
), Ee = N(
|
|
369
|
+
() => ae(
|
|
370
|
+
{
|
|
371
|
+
...oe(r, ["id", "type", "disabled", "required", "placeholder", "readonly"]),
|
|
372
|
+
disabled: c.value,
|
|
373
|
+
...Xe(f, ["value"]),
|
|
374
|
+
...Ne.value
|
|
375
|
+
},
|
|
376
|
+
le
|
|
377
|
+
)
|
|
378
|
+
), ee = N(() => {
|
|
379
|
+
switch (B.value) {
|
|
380
|
+
case "sm":
|
|
381
|
+
return 12;
|
|
382
|
+
case "lg":
|
|
383
|
+
return 16;
|
|
384
|
+
default:
|
|
385
|
+
return 14;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
return e(Fe(V)), (t, s) => (Ve(), _e(Te, ie(be.value, {
|
|
389
|
+
onClear: me,
|
|
390
|
+
steps: r.controls
|
|
391
|
+
}), Me({
|
|
392
|
+
default: C(() => [
|
|
393
|
+
D("input", ie({
|
|
394
|
+
ref_key: "inputRef",
|
|
395
|
+
ref: V
|
|
396
|
+
}, Ee.value, {
|
|
397
|
+
class: v(qe)(v(_)(v(se), "input")),
|
|
398
|
+
autocomplete: "off",
|
|
399
|
+
role: "spinbutton",
|
|
400
|
+
"aria-valuemin": t.min,
|
|
401
|
+
"aria-valuemax": t.max,
|
|
402
|
+
value: h.value,
|
|
403
|
+
onInput: ge,
|
|
404
|
+
onKeydown: ve
|
|
405
|
+
}), null, 16, We)
|
|
406
|
+
]),
|
|
407
|
+
_: 2
|
|
408
|
+
}, [
|
|
409
|
+
Ae(Object.keys(l), (a) => ({
|
|
410
|
+
name: a,
|
|
411
|
+
fn: C((p) => [
|
|
412
|
+
Re(t.$slots, a, ze(Ce(p)))
|
|
413
|
+
])
|
|
414
|
+
})),
|
|
415
|
+
r.controls ? {
|
|
416
|
+
name: "extra",
|
|
417
|
+
fn: C(() => [
|
|
418
|
+
D("div", {
|
|
419
|
+
class: k(v(d)),
|
|
420
|
+
onMouseup: x,
|
|
421
|
+
onMouseleave: x
|
|
422
|
+
}, [
|
|
423
|
+
D("span", {
|
|
424
|
+
role: "button",
|
|
425
|
+
class: k(v(_)(v(d), "up")),
|
|
426
|
+
"data-disabled": L.value,
|
|
427
|
+
onMousedown: s[0] || (s[0] = (a) => Q(a, !0))
|
|
428
|
+
}, [
|
|
429
|
+
re(ue, {
|
|
430
|
+
icon: "tabler:chevron-up",
|
|
431
|
+
size: ee.value
|
|
432
|
+
}, null, 8, ["size"])
|
|
433
|
+
], 42, Ke),
|
|
434
|
+
D("span", {
|
|
435
|
+
role: "button",
|
|
436
|
+
class: k(v(_)(v(d), "down")),
|
|
437
|
+
"data-disabled": U.value,
|
|
438
|
+
onMousedown: s[1] || (s[1] = (a) => Q(a, !1))
|
|
439
|
+
}, [
|
|
440
|
+
re(ue, {
|
|
441
|
+
icon: "tabler:chevron-down",
|
|
442
|
+
size: ee.value
|
|
443
|
+
}, null, 8, ["size"])
|
|
444
|
+
], 42, je)
|
|
445
|
+
], 34)
|
|
446
|
+
]),
|
|
447
|
+
key: "0"
|
|
448
|
+
} : void 0
|
|
449
|
+
]), 1040, ["steps"]));
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
export {
|
|
453
|
+
it as _
|
|
454
|
+
};
|
package/dist/Kbd/index.js
CHANGED
package/dist/Kbd/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Kbd.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Kbd.vue_vue_type_style_index_0_lang-q3jBcYir.js");exports.Kbd=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, createElementBlock as i, openBlock as s, normalizeClass as r, unref as n, createBlock as f, renderSlot as a, createTextVNode as d, toDisplayString as y, withCtx as C } from "vue";
|
|
2
2
|
import { getBemBlock as k, generateVariantClassList as B, normCls as c, getBemElement as g } from "@pantograph/utils";
|
|
3
3
|
import { cva as u } from "class-variance-authority";
|
|
4
|
-
import {
|
|
4
|
+
import { e as v } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
5
5
|
import { g as O } from "./options-Bh1s18jm.js";
|
|
6
6
|
const E = /* @__PURE__ */ p({
|
|
7
7
|
...O("Kbd"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("@pantograph/utils"),i=require("class-variance-authority"),l=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),o=require("@pantograph/utils"),i=require("class-variance-authority"),l=require("./Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js"),a=require("./options-CY2uxp5A.js"),u=e.defineComponent({...a.getComponentOptions("Kbd"),__name:"Kbd",props:{iconOnly:{type:Boolean},class:{},containerCls:{},text:{default:void 0},icon:{}},setup(r){const t=r,s=o.getBemBlock("kbd"),c=i.cva(s,{variants:{iconOnly:o.generateVariantClassList("icon-only",s)}});return(n,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(c)({iconOnly:t.iconOnly}),t.class))},[n.iconOnly?(e.openBlock(),e.createBlock(l._sfc_main$2,{key:1,icon:n.icon,size:"2xsm"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"icon")]),_:3},8,["icon"])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(s),"container"),t.containerCls))},[e.renderSlot(n.$slots,"text",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2))],2))}});exports._sfc_main=u;
|
package/dist/Label/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f, L as s, f as l } from "../Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
f as Label,
|
|
4
|
+
s as LabelSizes,
|
|
5
|
+
l as default
|
|
6
6
|
};
|
package/dist/Label/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js");exports.Label=e._sfc_main$3;exports.LabelSizes=e.LabelSizes;exports.default=e._sfc_main$3;
|
package/dist/Link/index.js
CHANGED
package/dist/Link/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Link.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Link.vue_vue_type_style_index_0_lang-zFv3zzLA.js");exports.Link=e._sfc_main;exports.LinkStyles=e.LinkStyles;exports.default=e._sfc_main;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as x, useSlots as z, computed as c, useAttrs as L, createElementBlock as S, openBlock as s, normalizeClass as m, unref as t, createBlock as d, createCommentVNode as u, createElementVNode as b, withCtx as f, renderSlot as i, createTextVNode as E, toDisplayString as V } from "vue";
|
|
2
2
|
import { getBemBlock as $, generateVariantClassList as p, normCls as g, getBemElement as D } from "@pantograph/utils";
|
|
3
3
|
import { g as N } from "./options-Bh1s18jm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { l as w, e as k } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
5
5
|
import { cva as _ } from "class-variance-authority";
|
|
6
|
-
const
|
|
6
|
+
const A = ["body", "overline", "caption", "label", "title"], H = ["href"], G = /* @__PURE__ */ x({
|
|
7
7
|
...N("Link"),
|
|
8
8
|
__name: "Link",
|
|
9
9
|
props: {
|
|
@@ -19,7 +19,7 @@ const q = ["body", "overline", "caption", "label", "title"], A = ["href"], G = /
|
|
|
19
19
|
setup(C, { emit: I }) {
|
|
20
20
|
const l = C, r = z(), v = I, n = $("link"), h = _(n, {
|
|
21
21
|
variants: {
|
|
22
|
-
txs: p(
|
|
22
|
+
txs: p(A, n),
|
|
23
23
|
underline: p("underline", n)
|
|
24
24
|
}
|
|
25
25
|
}), a = c(() => {
|
|
@@ -36,7 +36,7 @@ const q = ["body", "overline", "caption", "label", "title"], A = ["href"], G = /
|
|
|
36
36
|
}
|
|
37
37
|
v("click", e);
|
|
38
38
|
};
|
|
39
|
-
return (e,
|
|
39
|
+
return (e, O) => (s(), S("a", {
|
|
40
40
|
class: m(t(g)(t(h)({ txs: e.txs, underline: e.underline }), l.class)),
|
|
41
41
|
href: B.value,
|
|
42
42
|
onClick: y
|
|
@@ -68,10 +68,10 @@ const q = ["body", "overline", "caption", "label", "title"], A = ["href"], G = /
|
|
|
68
68
|
]),
|
|
69
69
|
_: 3
|
|
70
70
|
}, 8, ["size", "icon"])) : u("", !0)
|
|
71
|
-
], 10,
|
|
71
|
+
], 10, H));
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
A as L,
|
|
76
76
|
G as _
|
|
77
77
|
};
|