@pantograph/vue 0.25.5 → 0.25.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/ActionButton.d.ts +174 -11
- 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-uwPzOpXQ.js → ActionButton.vue_vue_type_script_setup_true_lang-BOiXNbKw.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DgRldvF-.js → ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js} +1 -1
- package/dist/Alert/Alert.d.ts +4 -3
- 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-CsM-N2Dn.js → Alert.vue_vue_type_style_index_0_lang-B1JrRGlL.js} +21 -19
- package/dist/Alert.vue_vue_type_style_index_0_lang-iIyhPLmR.js +1 -0
- package/dist/Avatar/Avatar.d.ts +4 -4
- 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-BU_5Uc1h.js → Avatar.vue_vue_type_style_index_0_lang-560JMJs8.js} +3 -3
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BmD6RFO6.js → Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js} +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/Badge.d.ts +2 -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 → Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-D4qWXPmE.js → Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js} +1 -1
- package/dist/Base/BaseBadge/BaseBadge.d.ts +3 -2
- package/dist/Base/BaseButton/BaseButton.d.ts +45 -7
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-iBj3bp4f.js → BaseBadge.vue_vue_type_style_index_0_lang-no7MMMcb.js} +21 -21
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-tjWWO1Eb.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C_rzn0QQ.js → BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C90xeF5w.js → BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js} +5 -5
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-D1-OgRQO.js → BaseInput.vue_vue_type_style_index_0_lang-BOCVi3J8.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-Bh5c8r40.js → BaseInput.vue_vue_type_style_index_0_lang-CZMdvNIt.js} +1 -1
- package/dist/Button/Button.d.ts +179 -16
- 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-DayZ7O-B.js → Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BEUgRSHQ.js → Button.vue_vue_type_script_setup_true_lang-iY6wC5I7.js} +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/Checkbox/Checkbox.d.ts +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-DIUFXgde.js → Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js} +2 -2
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-B7TCf8DD.js → Checkbox.vue_vue_type_style_index_0_lang-srZfoj7r.js} +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +3 -2
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-B4vliBhP.js → Chip.vue_vue_type_style_index_0_lang-BjBptRQ-.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-C-YVGRd5.js → Chip.vue_vue_type_style_index_0_lang-DZpyBQK1.js} +2 -2
- package/dist/ChipGroup/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Cb48sFjZ.js → ChipGroup.vue_vue_type_style_index_0_lang-CeTQpuIw.js} +2 -2
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Dz90pq2v.js → ChipGroup.vue_vue_type_style_index_0_lang-D3YTcBs3.js} +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +3 -1
- package/dist/ColorPicker/ColorPickerSpace.d.ts +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-Bbua4gDp.js → ColorPicker.vue_vue_type_style_index_0_lang-Bn5JW2Gt.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Cs_uP8_-.js → ColorPicker.vue_vue_type_style_index_0_lang-DL_ZJmhv.js} +27 -18
- package/dist/ColorSwatch/ColorSwatch.d.ts +3 -2
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BVj268xm.js → ColorSwatch-BMQgaieC.js} +1 -1
- package/dist/{ColorSwatch-BTd2qIvs.js → ColorSwatch-BmsX5hTJ.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-D9jCB_qS.js → ColorSwatch.vue_vue_type_style_index_0_lang-C4Kg1zF7.js} +2 -2
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DotrlbV2.js → ColorSwatch.vue_vue_type_style_index_0_lang-DcE8KBJ4.js} +1 -1
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -2
- 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-uGNt1Zw7.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcQU4Avw.js} +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CMUC9JP1.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-baZQlRfW.js} +7 -6
- package/dist/ColorTrigger/ColorTrigger.d.ts +3 -2
- 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 → ColorTrigger.vue_vue_type_style_index_0_lang-9NjMxcKG.js} +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CjRJLrjc.js → ColorTrigger.vue_vue_type_style_index_0_lang-D7z5WQlE.js} +3 -3
- package/dist/Combobox/Combobox.d.ts +16 -15
- package/dist/Combobox/ComboboxLabel.d.ts +3 -2
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +2 -2
- package/dist/Combobox.vue_vue_type_style_index_0_lang-B--dMsNn.js +1 -0
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-BIpRzCHA.js → Combobox.vue_vue_type_style_index_0_lang-CzVJFdEg.js} +443 -381
- package/dist/Comment/Comment.d.ts +1 -1
- package/dist/Comment/CommentActions.d.ts +384 -1
- package/dist/Comment/CommentEditor.d.ts +867 -81
- package/dist/Comment/CommentMention.d.ts +2 -1
- package/dist/Comment/CommentReactions.d.ts +193 -1
- package/dist/Comment/CommentTrigger.d.ts +3 -2
- package/dist/Comment/index.js +14 -14
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js → ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js} +10 -10
- package/dist/DataTable/DataTable.d.ts +106 -12
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/useSelection.d.ts +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-BIEqP-0I.js → DataTable.vue_vue_type_style_index_0_lang-a06ynWLy.js} +36 -30
- package/dist/Divider/Divider.d.ts +3 -2
- package/dist/DropZone/DropZone.d.ts +4 -3
- 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-B9y7TlwK.js → DropZone.vue_vue_type_style_index_0_lang-B2XNdFr7.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-EJIu65Kx.js → DropZone.vue_vue_type_style_index_0_lang-Dq0K__t6.js} +2 -2
- package/dist/Empty/Empty.d.ts +3 -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-BUUZkqKK.js → Empty.vue_vue_type_style_index_0_lang-BkLWzc14.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-CzxHjKoM.js → Empty.vue_vue_type_style_index_0_lang-C1kPtilP.js} +1 -1
- package/dist/FloatButton/FloatButton.d.ts +178 -15
- 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-BkkyOUA7.js → FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-09oykls8.js → FloatButton.vue_vue_type_script_setup_true_lang-sIUaExTM.js} +1 -1
- package/dist/Form/Form.d.ts +18 -18
- package/dist/Form/FormItem.d.ts +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/FormValidation.d.ts +7 -6
- package/dist/GOPicker/GOItemSkeleton.d.ts +1 -1
- package/dist/GOPicker/GOPicker.d.ts +45 -44
- 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-kynTp-m5.js → GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js} +17 -15
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-BE8x9dGA.js → GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js} +1 -1
- package/dist/GraphicalObject/GraphicalObject.d.ts +2 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZWcWAd8.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CpstWkLR.js} +2 -2
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-X3qLlz8e.js → GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js} +1 -1
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +1 -1
- 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-eUYKt1g8.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BXpVeN5_.js} +2 -2
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-HhLovMZS.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-i6Leg2rQ.js} +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js → Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js} +175 -172
- package/dist/{Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js → Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js} +3 -3
- package/dist/IconButton/IconButton.d.ts +179 -16
- 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-DGXtxJVO.js → IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-B2mwpDQo.js → IconButton.vue_vue_type_script_setup_true_lang-CudH1Czj.js} +1 -1
- package/dist/Image/Image.d.ts +3 -2
- 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 → Image.vue_vue_type_style_index_0_lang-D7buZGTj.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-_1Vqh4mv.js → Image.vue_vue_type_style_index_0_lang-D8BJOCro.js} +2 -2
- package/dist/IndentLevel/IndentLevel.d.ts +3 -2
- 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-DPL6yVwu.js → IndentLevel.vue_vue_type_style_index_0_lang-DkVpxqkS.js} +3 -3
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BNXXU--A.js → IndentLevel.vue_vue_type_style_index_0_lang-iaGGd8NQ.js} +1 -1
- package/dist/Indicator/Indicator.d.ts +2 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BAJid2ch.js → Indicator.vue_vue_type_script_setup_true_lang-BTt9LTh1.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BZQujvXX.js → Indicator.vue_vue_type_script_setup_true_lang-C6C6qnFI.js} +1 -1
- package/dist/Input/Input.d.ts +9 -6
- package/dist/Input/index.js +2 -2
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-BhpGixbX.js → Input.vue_vue_type_script_setup_true_lang-Dtkw6-JD.js} +10 -10
- package/dist/{Input.vue_vue_type_script_setup_true_lang-P-pBp4sf.js → Input.vue_vue_type_script_setup_true_lang-Dws8FarS.js} +1 -1
- package/dist/InputNumber/InputNumber.d.ts +16 -13
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DcGG4i1C.js → InputNumber.vue_vue_type_script_setup_true_lang-Cr4YLP4W.js} +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-yrowDfWL.js → InputNumber.vue_vue_type_script_setup_true_lang-mEje-O-q.js} +27 -27
- package/dist/Kbd/Kbd.d.ts +3 -2
- 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-q3jBcYir.js → Kbd.vue_vue_type_style_index_0_lang-BFlrS9Oh.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-XS49-yX4.js → Kbd.vue_vue_type_style_index_0_lang-VXCAjXze.js} +1 -1
- package/dist/Label/Label.d.ts +3 -2
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/Link.d.ts +3 -2
- 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-BRLBWpij.js +1 -0
- package/dist/{Link.vue_vue_type_style_index_0_lang-DAQr5LuP.js → Link.vue_vue_type_style_index_0_lang-DgvyW7Rs.js} +14 -13
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/MenuItemWrapper.d.ts +2 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +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 → MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js} +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-Tx1mw3fx.js → MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js} +13 -13
- package/dist/Pagination/Pagination.d.ts +1 -1
- 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 → Pagination.vue_vue_type_style_index_0_lang-6HV2JmdQ.js} +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-DdoGJbhR.js → Pagination.vue_vue_type_style_index_0_lang-FoV1-lO_.js} +7 -6
- package/dist/Popover/Popover.d.ts +122 -20
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-BgRvygIi.js → Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js} +2 -2
- package/dist/{Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js → Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js} +1 -1
- package/dist/Progress/Progress.d.ts +6 -5
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js → Progress.vue_vue_type_style_index_0_lang-BXhIqXDx.js} +24 -24
- package/dist/{Progress.vue_vue_type_style_index_0_lang-BECdYJmY.js → Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js} +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/RadioGroup/RadioGroupItem.d.ts +3 -3
- 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 → RadioGroup.vue_vue_type_script_setup_true_lang-D-9WHezS.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-Daq1nx9-.js → RadioGroup.vue_vue_type_script_setup_true_lang-NO2KpdR5.js} +1 -1
- package/dist/ScrollContainer/Mask.d.ts +1 -1
- package/dist/ScrollContainer/ScrollContainer.d.ts +184 -15
- 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-DqKhWsL2.js → ScrollContainer.vue_vue_type_style_index_0_lang-DKfgCbWJ.js} +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-Cp0bQf0N.js → ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js} +2 -2
- package/dist/Segmented/Segmented.d.ts +4 -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 → Segmented.vue_vue_type_style_index_0_lang-BKyJdc6h.js} +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-B1uEmVPJ.js → Segmented.vue_vue_type_style_index_0_lang-uZeKLoid.js} +2 -2
- package/dist/Select/Select.d.ts +8 -7
- package/dist/Select/SelectLabel.d.ts +3 -2
- package/dist/Select/SelectTrigger.d.ts +1 -1
- 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-DzWX4QRp.js +770 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-i_BSOFzK.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-QKWaOeSf.js → Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js} +2 -2
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-C7MfNmHi.js → Shortcut.vue_vue_type_style_index_0_lang-e8lB0y-L.js} +1 -1
- package/dist/Skeleton/Skeleton.d.ts +2 -2
- package/dist/Spinner/Spinner.d.ts +4 -3
- 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-y2U5MnVr.js → Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-ypYtsXl_.js → Spinner.vue_vue_type_style_index_0_lang-NYJmdFpB.js} +1 -1
- package/dist/SubMenu/SubMenu.d.ts +4 -2
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +5 -4
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-Dqy63Xsy.js → Switch.vue_vue_type_style_index_0_lang-B6Pt3aij.js} +2 -2
- package/dist/{Switch.vue_vue_type_style_index_0_lang-G67verEB.js → Switch.vue_vue_type_style_index_0_lang-BIe63Ak0.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-Bbxgbizj.js → THead.vue_vue_type_style_index_0_lang-CCUQ2E3U.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-Dg4UjN2s.js → THead.vue_vue_type_style_index_0_lang-DuCJdfy4.js} +1 -1
- package/dist/Table/TBody.d.ts +3 -2
- package/dist/Table/THead.d.ts +3 -2
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Td.d.ts +3 -2
- package/dist/Table/Th.d.ts +3 -2
- package/dist/Table/Tr.d.ts +3 -2
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +462 -14
- 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-Crls15aj.js → Textarea.vue_vue_type_style_index_0_lang-BqUWj9j2.js} +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-95EkbeEZ.js → Textarea.vue_vue_type_style_index_0_lang-CgC3wstw.js} +7 -7
- package/dist/Tooltip/Tooltip.d.ts +2 -1
- package/dist/Tree/Tree.d.ts +3 -2
- package/dist/Tree/TreeNode.d.ts +3 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-DitveB9N.js → Tree.vue_vue_type_style_index_0_lang-BiU1prIp.js} +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-CauWPkMW.js → Tree.vue_vue_type_style_index_0_lang-wxS0iVAQ.js} +6 -6
- package/dist/Upload/Upload.d.ts +5 -4
- package/dist/Upload/UploadListItem.d.ts +1 -1
- package/dist/Upload/UploadTrigger.d.ts +5 -2
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-B9HYX_QI.js → Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js} +6 -6
- package/dist/{Upload.vue_vue_type_style_index_0_lang-DhqA32eL.js → Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js} +1 -1
- package/dist/index.js +175 -174
- package/dist/index.umd.cjs +1 -1
- package/dist/{useInputDataStates-COzmxWTw.js → useInputDataStates-BNwXgt9l.js} +1 -1
- package/dist/{useInputDataStates-BWZ4Q3rt.js → useInputDataStates-CM2GJM3c.js} +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +10 -9
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/isEmpty.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +2 -2
- package/package.json +25 -33
- package/dist/Alert.vue_vue_type_style_index_0_lang-BWViURUx.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-MiT5JEP1.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DUhoDHJs.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-itDia0W9.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-zFv3zzLA.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-CarDXTu5.js +0 -712
- package/dist/Select.vue_vue_type_style_index_0_lang-ikZ5_KwB.js +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ComboboxOptionType, ComboboxProps, ComboboxSlots } from '../Combobox/index.js';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: Readonly<ComboboxSlots> & ComboboxSlots;
|
|
4
5
|
refs: {};
|
|
5
|
-
|
|
6
|
+
rootEl: any;
|
|
6
7
|
};
|
|
7
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
9
|
declare const __VLS_component: import('vue').DefineComponent<ComboboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -1,2 +1,194 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
reactionRef: ({
|
|
3
|
+
$: import('vue').ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: {
|
|
6
|
+
readonly size?: import('../exports.js').ButtonSize | undefined;
|
|
7
|
+
readonly color?: import('../exports.js').ButtonColor | undefined;
|
|
8
|
+
readonly class?: import('clsx').ClassValue;
|
|
9
|
+
readonly type?: import('../exports.js').ButtonType | undefined;
|
|
10
|
+
readonly flipOnDir?: import('../index.js').FlipOnDir | undefined;
|
|
11
|
+
readonly icon?: string | undefined;
|
|
12
|
+
readonly noRing?: boolean | undefined;
|
|
13
|
+
readonly loading?: boolean | undefined;
|
|
14
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
15
|
+
readonly block?: boolean | undefined;
|
|
16
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
17
|
+
$attrs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
$refs: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
} & {
|
|
23
|
+
buttonRef: ({
|
|
24
|
+
$: import('vue').ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: {
|
|
27
|
+
readonly class?: import('clsx').ClassValue;
|
|
28
|
+
readonly text?: string | number | undefined;
|
|
29
|
+
readonly size?: import('../exports.js').ButtonSize | undefined;
|
|
30
|
+
readonly color?: import('../exports.js').ButtonColor | undefined;
|
|
31
|
+
readonly noRing?: boolean | undefined;
|
|
32
|
+
readonly type?: import('../exports.js').ButtonType | undefined;
|
|
33
|
+
readonly variant?: import('../exports.js').ButtonVariant | undefined;
|
|
34
|
+
readonly loading?: boolean | undefined;
|
|
35
|
+
readonly action?: boolean | undefined;
|
|
36
|
+
readonly active?: boolean | undefined;
|
|
37
|
+
readonly badgeText?: string | undefined;
|
|
38
|
+
readonly badgeIcon?: string | undefined;
|
|
39
|
+
readonly icon?: string | undefined;
|
|
40
|
+
readonly preIcon?: string | undefined;
|
|
41
|
+
readonly postIcon?: string | undefined;
|
|
42
|
+
readonly flipOnDir?: import('../index.js').FlipOnDir | undefined;
|
|
43
|
+
readonly preIconFlipOnDir?: import('../index.js').FlipOnDir | undefined;
|
|
44
|
+
readonly postIconFlipOnDir?: import('../index.js').FlipOnDir | undefined;
|
|
45
|
+
readonly badgeIconFlipOnDir?: import('../index.js').FlipOnDir | undefined;
|
|
46
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
47
|
+
readonly block?: boolean | undefined;
|
|
48
|
+
readonly disabled?: boolean | undefined;
|
|
49
|
+
readonly href?: string | undefined;
|
|
50
|
+
readonly target?: string | undefined;
|
|
51
|
+
readonly onClick?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
53
|
+
$attrs: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
$refs: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
} & {
|
|
59
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
asChild: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
as: {
|
|
65
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
71
|
+
asChild: boolean;
|
|
72
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
73
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
74
|
+
P: {};
|
|
75
|
+
B: {};
|
|
76
|
+
D: {};
|
|
77
|
+
C: {};
|
|
78
|
+
M: {};
|
|
79
|
+
Defaults: {};
|
|
80
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
81
|
+
asChild: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
as: {
|
|
86
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
}>, {}, {}, {}, {
|
|
92
|
+
asChild: boolean;
|
|
93
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
94
|
+
}> | null;
|
|
95
|
+
};
|
|
96
|
+
$slots: Readonly<{
|
|
97
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
100
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
101
|
+
$host: Element | null;
|
|
102
|
+
$emit: (event: "click", ...args: any[]) => void;
|
|
103
|
+
$el: any;
|
|
104
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../exports.js').BaseButtonProps> & Readonly<{
|
|
105
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
focus(): void;
|
|
108
|
+
blur(): void;
|
|
109
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
110
|
+
click: (...args: any[]) => void;
|
|
111
|
+
}, string, {
|
|
112
|
+
color: import('../exports.js').ButtonColor;
|
|
113
|
+
type: import('../exports.js').ButtonType;
|
|
114
|
+
htmlType: "reset" | "submit" | "button";
|
|
115
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
116
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
117
|
+
created?: (() => void) | (() => void)[];
|
|
118
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
119
|
+
mounted?: (() => void) | (() => void)[];
|
|
120
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
121
|
+
updated?: (() => void) | (() => void)[];
|
|
122
|
+
activated?: (() => void) | (() => void)[];
|
|
123
|
+
deactivated?: (() => void) | (() => void)[];
|
|
124
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
125
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
126
|
+
destroyed?: (() => void) | (() => void)[];
|
|
127
|
+
unmounted?: (() => void) | (() => void)[];
|
|
128
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
129
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
130
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
131
|
+
};
|
|
132
|
+
$forceUpdate: () => void;
|
|
133
|
+
$nextTick: typeof import('vue').nextTick;
|
|
134
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
135
|
+
} & Readonly<{
|
|
136
|
+
color: import('../exports.js').ButtonColor;
|
|
137
|
+
type: import('../exports.js').ButtonType;
|
|
138
|
+
htmlType: "reset" | "submit" | "button";
|
|
139
|
+
}> & Omit<Readonly<import('../exports.js').BaseButtonProps> & Readonly<{
|
|
140
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
}>, "blur" | "focus" | ("color" | "type" | "htmlType")> & import('vue').ShallowUnwrapRef<{
|
|
142
|
+
focus(): void;
|
|
143
|
+
blur(): void;
|
|
144
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
145
|
+
$slots: Readonly<import('../exports.js').BaseButtonSlots> & import('../exports.js').BaseButtonSlots;
|
|
146
|
+
}) | null;
|
|
147
|
+
};
|
|
148
|
+
$slots: Readonly<{
|
|
149
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
150
|
+
}>;
|
|
151
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
152
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
153
|
+
$host: Element | null;
|
|
154
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
155
|
+
$el: any;
|
|
156
|
+
$options: import('vue').ComponentOptionsBase<Readonly<Partial<Pick<import('../exports.js').BaseButtonProps, "size" | "color" | "class" | "type" | "flipOnDir" | "icon" | "noRing" | "loading" | "htmlType" | "block">>> & Readonly<{}>, {
|
|
157
|
+
focus(): void;
|
|
158
|
+
blur(): void;
|
|
159
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
160
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
161
|
+
created?: (() => void) | (() => void)[];
|
|
162
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
163
|
+
mounted?: (() => void) | (() => void)[];
|
|
164
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
165
|
+
updated?: (() => void) | (() => void)[];
|
|
166
|
+
activated?: (() => void) | (() => void)[];
|
|
167
|
+
deactivated?: (() => void) | (() => void)[];
|
|
168
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
169
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
170
|
+
destroyed?: (() => void) | (() => void)[];
|
|
171
|
+
unmounted?: (() => void) | (() => void)[];
|
|
172
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
173
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
174
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
175
|
+
};
|
|
176
|
+
$forceUpdate: () => void;
|
|
177
|
+
$nextTick: typeof import('vue').nextTick;
|
|
178
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
179
|
+
} & Readonly<{}> & Omit<Readonly<Partial<Pick<import('../exports.js').BaseButtonProps, "size" | "color" | "class" | "type" | "flipOnDir" | "icon" | "noRing" | "loading" | "htmlType" | "block">>> & Readonly<{}>, "blur" | "focus"> & import('vue').ShallowUnwrapRef<{
|
|
180
|
+
focus(): void;
|
|
181
|
+
blur(): void;
|
|
182
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
183
|
+
$slots: Readonly<{
|
|
184
|
+
icon?: ((data?: object) => never) | undefined;
|
|
185
|
+
badgeText?: ((data?: object) => never) | undefined;
|
|
186
|
+
badgeIcon?: ((data?: object) => never) | undefined;
|
|
187
|
+
}> & {
|
|
188
|
+
icon?: ((data?: object) => never) | undefined;
|
|
189
|
+
badgeText?: ((data?: object) => never) | undefined;
|
|
190
|
+
badgeIcon?: ((data?: object) => never) | undefined;
|
|
191
|
+
};
|
|
192
|
+
}) | null;
|
|
193
|
+
}, any>;
|
|
2
194
|
export default _default;
|
|
@@ -18,9 +18,10 @@ export interface CommentTriggerEmits {
|
|
|
18
18
|
(event: 'add', value: MouseEvent | KeyboardEvent): void;
|
|
19
19
|
}
|
|
20
20
|
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
21
22
|
slots: Readonly<CommentTriggerSlots> & CommentTriggerSlots;
|
|
22
23
|
refs: {};
|
|
23
|
-
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
24
25
|
};
|
|
25
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
27
|
declare const __VLS_component: import('vue').DefineComponent<CommentTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -29,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<CommentTriggerProps
|
|
|
29
30
|
onAdd?: ((value: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
30
31
|
}>, {
|
|
31
32
|
text: string;
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
35
|
export default _default;
|
|
35
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/Comment/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as A, ref as B, createElementBlock as L, createCommentVNode as H, unref as n, openBlock as b, normalizeClass as O, createBlock as E, createVNode as g, Fragment as pe, renderList as K, withCtx as T, createTextVNode as ne, toDisplayString as Q, useSlots as W, createElementVNode as F, h as _, mergeProps as V, isRef as se, createSlots as X, renderSlot as U, normalizeProps as G, guardReactiveProps as N, computed as j, normalizeStyle as ce, onMounted as de, onBeforeUnmount as ue, withModifiers as oe } from "vue";
|
|
2
|
-
import { u as Y, k as $, e as J } from "../Icon.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { u as Y, k as $, e as J } from "../Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js";
|
|
3
3
|
import { g as z } from "../options-Bh1s18jm.js";
|
|
4
4
|
import { omit as me } from "es-toolkit";
|
|
5
|
-
import { _ as ae } from "../Avatar.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as fe } from "../Badge.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ae } from "../Avatar.vue_vue_type_style_index_0_lang-560JMJs8.js";
|
|
6
|
+
import { _ as fe } from "../Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js";
|
|
7
7
|
import { cva as he } from "class-variance-authority";
|
|
8
|
-
import { _ as ye } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as ye } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-CpstWkLR.js";
|
|
9
9
|
import { normCls as C, getBemElement as h, getBemBlock as Ce, generateVariantClassList as ge } from "@pantograph/utils";
|
|
10
|
-
import { _ as w } from "../IconButton.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as ve } from "../ActionButton.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as w } from "../IconButton.vue_vue_type_script_setup_true_lang-CudH1Czj.js";
|
|
11
|
+
import { _ as ve } from "../ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js";
|
|
12
12
|
import { createContext as _e } from "reka-ui";
|
|
13
13
|
import "@tanstack/vue-virtual";
|
|
14
|
-
import { _ as Be } from "../Popover.vue_vue_type_style_index_0_lang-
|
|
15
|
-
import { _ as be, a as te } from "../MenuItem.vue_vue_type_style_index_0_lang-
|
|
16
|
-
import { _ as Re } from "../GOPicker.vue_vue_type_style_index_0_lang-
|
|
17
|
-
import { _ as Se } from "../Combobox.vue_vue_type_style_index_0_lang-
|
|
14
|
+
import { _ as Be } from "../Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js";
|
|
15
|
+
import { _ as be, a as te } from "../MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js";
|
|
16
|
+
import { _ as Re } from "../GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js";
|
|
17
|
+
import { _ as Se } from "../Combobox.vue_vue_type_style_index_0_lang-CzVJFdEg.js";
|
|
18
18
|
import { _ as ke } from "../Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
|
|
19
|
-
import { U as Pe } from "../useInputDataStates-
|
|
20
|
-
import { _ as xe } from "../ScrollContainer.vue_vue_type_style_index_0_lang-
|
|
21
|
-
import { _ as Te, a as $e } from "../Upload.vue_vue_type_style_index_0_lang-
|
|
22
|
-
import { _ as Oe } from "../Shortcut.vue_vue_type_style_index_0_lang-
|
|
19
|
+
import { U as Pe } from "../useInputDataStates-BNwXgt9l.js";
|
|
20
|
+
import { _ as xe } from "../ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js";
|
|
21
|
+
import { _ as Te, a as $e } from "../Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js";
|
|
22
|
+
import { _ as Oe } from "../Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js";
|
|
23
23
|
const Ee = /* @__PURE__ */ A({
|
|
24
24
|
...z("CommentActions"),
|
|
25
25
|
__name: "CommentActions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("../Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js"),R=require("../options-CY2uxp5A.js"),I=require("es-toolkit"),M=require("../Avatar.vue_vue_type_style_index_0_lang-BmD6RFO6.js"),$=require("../Badge.vue_vue_type_script_setup_true_lang-BNoY52kq.js"),H=require("class-variance-authority"),L=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-X3qLlz8e.js"),r=require("@pantograph/utils"),P=require("../IconButton.vue_vue_type_script_setup_true_lang-DGXtxJVO.js"),j=require("../ActionButton.vue_vue_type_script_setup_true_lang-uwPzOpXQ.js"),U=require("reka-ui");require("@tanstack/vue-virtual");const F=require("../Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js"),O=require("../MenuItem.vue_vue_type_style_index_0_lang-DRgLTDF9.js"),G=require("../GOPicker.vue_vue_type_style_index_0_lang-BE8x9dGA.js"),K=require("../Combobox.vue_vue_type_style_index_0_lang-DUhoDHJs.js"),W=require("../Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js"),Q=require("../useInputDataStates-BWZ4Q3rt.js"),J=require("../ScrollContainer.vue_vue_type_style_index_0_lang-DqKhWsL2.js"),z=require("../Upload.vue_vue_type_style_index_0_lang-DhqA32eL.js"),X=require("../Shortcut.vue_vue_type_style_index_0_lang-C7MfNmHi.js"),Y=e.defineComponent({...R.getComponentOptions("CommentActions"),__name:"CommentActions",setup(f){const s=N(),n=e.ref(),t=e.ref(),u=()=>{s.emit("openActions",t.value)},l=()=>{s.emit("openReaction",n.value)},a=()=>{s.emit("reply")};return(p,o)=>e.unref(s).props.hasReaction||e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(g),"actions"),e.unref(s).props.actionsCls))},[e.unref(s).props.hasReply?(e.openBlock(),e.createBlock(P._sfc_main,{key:0,icon:"tabler:corner-up-left",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:n,flipOnDir:"rtl",onClick:a},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasReaction?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:n,onClick:l},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,icon:"tabler:dots-vertical",color:"neutral",type:"ghost",ref_key:"actionRef",ref:t,onClick:u},null,512)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),Z=e.defineComponent({...R.getComponentOptions("CommentReactions"),__name:"CommentReactions",setup(f){const s=N(),n=e.ref(),t=()=>{s.emit("openReaction",n.value)},u=l=>{l&&!l.active&&s.emit("reaction",l.emoji)};return(l,a)=>{var p;return e.unref(s).props.hasReaction&&((p=e.unref(s).props.reactions)!=null&&p.some(o=>o.count&&o.emoji))?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(g),"reactions"),e.unref(s).props.reactionsCls))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).props.reactions,o=>(e.openBlock(),e.createBlock(j._sfc_main,{key:o==null?void 0:o.emoji,active:o==null?void 0:o.active,onClick:y=>u(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o==null?void 0:o.emoji)+" "+e.toDisplayString(o==null?void 0:o.count),1)]),_:2},1032,["active","onClick"]))),128)),e.createVNode(P._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"outline",ref_key:"reactionRef",ref:n,onClick:t},null,512)],2)):e.createCommentVNode("",!0)}}}),g=r.getBemBlock("comment"),[N,D]=U.createContext("Comment"),ee=e.defineComponent({...R.getComponentOptions("Comment"),__name:"Comment",props:{class:{},headerCls:{},actionsCls:{},bodyCls:{},datetimeCls:{},contentCls:{},authorCls:{},repliesCls:{},headerContentCls:{},reactionsCls:{},repliesHeaderCls:{},repliesTitleCls:{},repliesContentCls:{},author:{},avatar:{},content:{},datetime:{},repliesCount:{},repliesTitle:{default:"Replies"},avatarProps:{},open:{type:Boolean,default:void 0},hasReaction:{type:Boolean,default:!0},hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},hasReply:{type:Boolean,default:!0},reactions:{}},emits:["update:open","openActions","reaction","reply","openReaction"],setup(f,{emit:s}){const n=f,t=e.useSlots(),u=s,l=h.useVModel(n,"open",u,{passive:n.open===void 0}),a=()=>{var d;let c;const C=(d=t.author)==null?void 0:d.call(t,{});return!h.isEmptyElement(C)?c=C:c=n.author,c?e.h("div",{class:r.normCls(r.getBemElement(g,"author"),n.authorCls)},c):null},p=()=>{var d;let c;const C=(d=t.datetime)==null?void 0:d.call(t,{});return!h.isEmptyElement(C)?c=C:c=n.datetime,c?e.h("div",{class:r.normCls(r.getBemElement(g,"datetime"),n.datetimeCls)},c):null},o=()=>{var d,v;const c=(d=t.header)==null?void 0:d.call(t,{}),C=!h.isEmptyElement(c);let m;if(C)m=c;else{m=[];const k=(v=t.avatar)==null?void 0:v.call(t,{});!h.isEmptyElement(k)?m.push(k):n.avatar&&m.push(e.h(M._sfc_main,{...n.avatarProps??{},src:n.avatar}));const b=a(),S=p();(b||S)&&m.push(e.h("div",{class:r.normCls(r.getBemElement(g,"header__content"),n.headerContentCls)},[b,S])),m.length||(m=void 0)}return m?(m.push(e.h(Y)),e.h("div",{class:r.normCls(r.getBemElement(g,"header"),n.headerCls)},m)):null},y=()=>{var m;const c=(m=t.content)==null?void 0:m.call(t,{}),C=!h.isEmptyElement(c);if(C||n.content)return e.h("div",{class:r.normCls(r.getBemElement(g,"content"),n.contentCls,"paragraph"),innerHTML:C?void 0:n.content},C?c:void 0)},_=r.getBemElement(g,"replies"),B=H.cva(_,{variants:{open:r.generateVariantClassList("open",_)}}),E=()=>{var v;const c=(v=t.replies)==null?void 0:v.call(t,{}),C=!h.isEmptyElement(c),m=()=>{var b,S,x;const k=(b=t.repliesHeader)==null?void 0:b.call(t,{open:!!l.value}),i=[];if(!h.isEmptyElement(k))i.push(k);else{i.push(e.h(L._sfc_main,{size:"xsm",bg:"transparent",br:"transparent"},{default:()=>e.h(h._sfc_main$2,{icon:"tabler:chevron-down",class:r.getBemElement(_,"icon"),size:"2xsm"})}));const T=(S=t.repliesCount)==null?void 0:S.call(t,{}),q=!h.isEmptyElement(T),w=(x=t.repliesTitle)==null?void 0:x.call(t,{}),A=!h.isEmptyElement(w);let V;A?V=w:V=n.repliesTitle,i.push(e.h("div",{class:r.normCls(r.getBemElement(_,"title"),n.repliesTitleCls)},V)),(q||n.repliesCount)&&i.push(e.h($._sfc_main,{color:"primary-subtle",text:n.repliesCount,size:"xsm"},{text:()=>T}))}return e.h("div",{class:r.normCls(r.getBemElement(_,"header"),n.repliesHeaderCls),onClick:()=>{l.value=!l.value}},i)},d=()=>{if(l.value)return[e.h("div",{class:r.normCls(r.getBemElement(_,"content"),n.repliesContentCls)},c),e.h("div",{class:r.getBemElement(_,"line")})]};return C?e.h("div",{class:r.normCls(B({open:!!l.value}),n.repliesCls)},[m(),d()]):null};return D({emit:u,props:n,slots:t}),(c,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(g),n.class))},[e.createVNode(o),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(g),"body"),n.bodyCls))},[e.createVNode(y),e.createVNode(Z),e.createVNode(E)],2)],2))}}),te=e.defineComponent({...R.getComponentOptions("CommentAction"),__name:"CommentAction",props:{hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},editText:{default:"Edit"},deleteText:{default:"Delete"},dir:{},class:{},containerCls:{},containerClass:{},containerProps:{},trigger:{},size:{},to:{},placement:{},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},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},disableOutsidePointerEvents:{type:Boolean}},emits:["edit","delete","update:open"],setup(f,{emit:s}){const n=f,t=s,u=()=>{t("edit"),a.value=!1},l=()=>{t("delete"),a.value=!1},a=h.useVModel(n,"open",t,{passive:n.open===void 0});return(p,o)=>(e.openBlock(),e.createBlock(e.unref(F._sfc_main),e.mergeProps(n,{open:e.unref(a),"onUpdate:open":o[0]||(o[0]=y=>e.isRef(a)?a.value=y:null),placement:"bottom-end",sideOffset:3,trigger:"click",openDelay:0}),{content:e.withCtx(()=>[e.createVNode(O._sfc_main,{style:{width:"116px"}},{default:e.withCtx(()=>[p.hasEdit?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"edit",title:p.editText,onClick:u},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(h._sfc_main$2,{icon:"tabler:edit",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0),p.hasDelete?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"delete",title:p.deleteText,danger:"",onClick:l},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(h._sfc_main$2,{icon:"tabler:trash",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1})]),_:1},16,["open"]))}}),oe=e.defineComponent({...R.getComponentOptions("CommentReaction"),__name:"CommentReaction",props:{reference:{},open:{type:Boolean,default:void 0},icons:{},emojis:{},group:{},modelValue:{},defaultValue:{},visibleTabs:{},noTrigger:{type:Boolean},noModel:{type:Boolean},hideClear:{type:Boolean},hideColor:{type:Boolean},hideGroup:{type:Boolean},hideIcons:{type:Boolean},hideEmojis:{type:Boolean},hideSearch:{type:Boolean},hideRandom:{type:Boolean},disabled:{type:Boolean},borderless:{type:Boolean},popoverProps:{},colorPopoverProps:{},fgColorSwatchGroupProps:{},bgColorSwatchGroupProps:{},brColorSwatchGroupProps:{},visibleColorPickers:{},contentCls:{},headerCls:{},groupCls:{},searchCls:{},colorsCls:{},emptyCls:{},gridCls:{},scrollContainerProps:{},size:{},id:{},resetColorsOnChangeType:{}},emits:["reaction","update:open"],setup(f,{emit:s}){const n=f,t=s,u=a=>{t("reaction",a.value),l.value=!1},l=h.useVModel(n,"open",t,{passive:n.open===void 0});return(a,p)=>(e.openBlock(),e.createBlock(G._sfc_main,e.mergeProps(n,{noTrigger:"",hideClear:"",hideGroup:"",hideIcons:"",hideRandom:"",group:"emoji",popoverProps:{...a.popoverProps??{},reference:a.reference},placement:"bottom-end",visibleColorPickers:[],noModel:"",onSelect:u,open:e.unref(l),"onUpdate:open":p[0]||(p[0]=o=>e.isRef(l)?l.value=o:null)}),null,16,["popoverProps","open"]))}}),ne=e.defineComponent({...R.getComponentOptions("CommentMention"),__name:"CommentMention",props:{size:{},status:{},multiple:{type:Boolean},noLastValueOnPlaceholder:{type:Boolean},showLabelValueOnHeaderSearch:{type:Boolean},zIndex:{},checkbox:{type:Boolean},tagRenderMode:{},getTagProps:{type:Function},tree:{type:Boolean},treeProps:{},contentFit:{type:Boolean},wrapped:{type:Boolean},sortSelectedItems:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},trailingIcon:{},selectedItemIconAsTrailingIcon:{type:Boolean},maxCount:{},to:{type:[String,Function]},placeholder:{},indicatorIcon:{},options:{},getDisabled:{},getLabel:{},getDescription:{},getValue:{},getNoCheckbox:{},getSingle:{},getClear:{},getGroupOptions:{},getGroupLabel:{},getIcon:{},placement:{},reversePlacementOnDir:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{},lazyLoading:{type:Boolean},bordered:{type:Boolean},clearOnChangeMultiple:{type:Boolean},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean},popupHeight:{},popupWidth:{},minWidth:{},headerSearch:{type:Boolean},search:{},noTrigger:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},modelValue:{},defaultValue:{},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},by:{type:[String,Function]},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},reference:{},forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},defer:{type:Boolean}},emits:["mention"],setup(f,{emit:s}){const n=f,t=s,u=e.useSlots(),l=(a,p,o)=>{t("mention",a,o)};return(a,p)=>(e.openBlock(),e.createBlock(K._sfc_main,e.mergeProps(n,{modelValue:"",onSelect:l,noTrigger:""}),e.createSlots({_:2},[e.renderList(Object.keys(u),o=>({name:o,fn:e.withCtx(y=>[e.renderSlot(a.$slots,o,e.normalizeProps(e.guardReactiveProps(y)))])}))]),1040))}}),re=e.defineComponent({...R.getComponentOptions("CommentEditor"),__name:"CommentEditor",props:{class:{},actionsCls:{},editorCls:{},footerCls:{},disabled:{type:Boolean},isEmpty:{type:Boolean},mentionsReference:{},uploadProps:{},maxHeight:{default:100}},emits:["openReaction","openMention","blur","focus","mention","submit"],setup(f,{emit:s}){const n=e.useSlots(),t=f,u=s,l=r.getBemElement(g,"editor"),a=e.ref(),p=()=>{u("openReaction",a.value)},o=e.ref(),y=()=>{u("openMention",o.value)},{rootBindings:_,inputBindings:B}=Q.UseInputDataStates({getDisabled:()=>t.disabled,emit:u}),E=()=>u("submit"),c=e.computed(()=>{if(Number(t.maxHeight)>0)return`${t.maxHeight}px`;if(typeof t.maxHeight=="string")return t.maxHeight}),C=e.ref(),m=d=>{var v;(v=C.value)!=null&&v.addFiles&&d.length&&C.value.addFiles(d)};return(d,v)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(r.normCls)(e.unref(l),t.class)},e.unref(_)),[e.createVNode(J._sfc_main,{overlay:!1,hasMask:!1,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(l),"editor"),"paragraph",t.editorCls)),style:e.normalizeStyle({maxHeight:c.value})},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",e.normalizeProps(e.guardReactiveProps(e.unref(B))))]),_:3},8,["class","style"]),e.createVNode(z._sfc_main,e.mergeProps({noTrigger:""},d.uploadProps,{ref_key:"uploadRef",ref:C}),e.createSlots({_:2},[e.renderList(Object.keys(e.unref(I.omit)(n,["default"])),k=>({name:k,fn:e.withCtx(i=>[e.renderSlot(d.$slots,k,e.normalizeProps(e.guardReactiveProps(i)))])}))]),1040),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(l),"footer"),t.footerCls))},[e.createVNode(W._sfc_main),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(l),"actions"),t.actionsCls))},[e.createVNode(P._sfc_main,{icon:"tabler:at",color:"neutral",type:"ghost",ref_key:"mentionRef",ref:o,onClick:y},null,512),e.createVNode(z._sfc_main$1,{accept:"image/*",multiple:"",onAddFiles:m},{default:e.withCtx(()=>[e.createVNode(P._sfc_main,{icon:"tabler:photo",color:"neutral",type:"ghost"})]),_:1}),e.createVNode(P._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:a,onClick:p},null,512)],2),e.createVNode(P._sfc_main,{disabled:d.isEmpty,icon:"tabler:arrow-up",onClick:E},null,8,["disabled"])],2)],16))}}),se=["tabindex","disabled"],le=e.defineComponent({...R.getComponentOptions("CommentTrigger"),__name:"CommentTrigger",props:{class:{},text:{default:"Add a Comment or type @ to Mention..."},src:{},withShortcut:{type:Boolean},ignoeShortcut:{type:Boolean},disabled:{type:Boolean},avatarProps:{},shortcutProps:{}},emits:["add"],setup(f,{emit:s}){const n=e.useSlots(),t=f,u=s,l=r.getBemElement(g,"trigger"),a=o=>{!t.ignoeShortcut&&o.code==="KeyC"&&o.altKey&&p(o)};e.onMounted(()=>{t.withShortcut&&addEventListener("keyup",a)}),e.onBeforeUnmount(()=>{t.withShortcut&&removeEventListener("keyup",a)}),t.withShortcut;const p=o=>u("add",o);return(o,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(l),t.class)),tabindex:o.disabled?-1:0,disabled:o.disabled?"":void 0,onPointerdown:e.withModifiers(p,["stop"]),onKeyup:e.withModifiers(p,["stop"])},[e.createVNode(M._sfc_main,e.mergeProps(o.avatarProps??{},{size:"sm",src:o.src}),e.createSlots({_:2},[e.renderList(Object.keys(n),_=>({name:_,fn:e.withCtx(B=>[e.renderSlot(o.$slots,_,e.normalizeProps(e.guardReactiveProps(B)))])}))]),1040,["src"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"text"))},[e.renderSlot(o.$slots,"text",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])],2),e.createVNode(X._sfc_main,e.mergeProps(o.shortcutProps??{},{items:[{text:"Alt"},{text:"C"}]}),null,16)],42,se))}}),ie=f=>{const s=e.ref(!1),n=e.ref(),t=e.ref(!1),u=(i,b=!1)=>{s.value=!0,t.value=b,n.value=i},l=e.ref(!1),a=e.ref(),p=i=>{l.value=!0,a.value=i},o=e.computed(()=>({open:s.value,reference:n.value,"onUpdate:open":i=>s.value=i,onReaction:i=>{var b,S;if(t.value)try{(b=f.addEmoji)==null||b.call(f,i)}catch(x){console.log("error on reaction ===>",x)}try{(S=f.onReaction)==null||S.call(f,i)}catch(x){console.log("error on reaction ===>",x)}}})),y=e.computed(()=>({open:l.value,reference:a.value,"onUpdate:open":i=>l.value=i})),_=e.ref(!1),B=e.ref(),E=e.ref(),c=e.ref(!1),C=e.computed(()=>({open:_.value,"onUpdate:open":i=>_.value=i,search:B.value,"onUpdate:search":i=>B.value=i,reference:E.value,headerSearch:c.value,onPointerDownOutside:d,onEscapeKeyDown:d})),m=i=>{i&&(E.value={getBoundingClientRect:i},_.value=!0,c.value=!1)},d=()=>{E.value=void 0,_.value=!1,B.value=void 0},v=i=>{B.value=i},k=e.computed(()=>({onOpenReaction:i=>u(i,!0),onOpenMention:i=>{i&&(E.value=i,_.value=!0,c.value=!0)}}));return{reactionBinding:o,actionBinding:y,editorBinding:k,mentionBinding:C,openActions:p,openReaction:u,openMentionInEditor:m,closeMentionInEditor:d,updateMentionQuery:v}};exports.Comment=ee;exports.CommentAction=te;exports.CommentEditor=re;exports.CommentMention=ne;exports.CommentReaction=oe;exports.CommentTrigger=le;exports.commentPrefix=g;exports.injectCommentContext=N;exports.provideCommentContext=D;exports.useComment=ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("../Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js"),R=require("../options-CY2uxp5A.js"),I=require("es-toolkit"),M=require("../Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js"),$=require("../Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js"),H=require("class-variance-authority"),L=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js"),r=require("@pantograph/utils"),P=require("../IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js"),j=require("../ActionButton.vue_vue_type_script_setup_true_lang-BOiXNbKw.js"),U=require("reka-ui");require("@tanstack/vue-virtual");const F=require("../Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js"),O=require("../MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js"),G=require("../GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js"),K=require("../Combobox.vue_vue_type_style_index_0_lang-B--dMsNn.js"),W=require("../Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js"),Q=require("../useInputDataStates-CM2GJM3c.js"),J=require("../ScrollContainer.vue_vue_type_style_index_0_lang-DKfgCbWJ.js"),z=require("../Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js"),X=require("../Shortcut.vue_vue_type_style_index_0_lang-e8lB0y-L.js"),Y=e.defineComponent({...R.getComponentOptions("CommentActions"),__name:"CommentActions",setup(f){const s=N(),n=e.ref(),t=e.ref(),u=()=>{s.emit("openActions",t.value)},l=()=>{s.emit("openReaction",n.value)},a=()=>{s.emit("reply")};return(p,o)=>e.unref(s).props.hasReaction||e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(g),"actions"),e.unref(s).props.actionsCls))},[e.unref(s).props.hasReply?(e.openBlock(),e.createBlock(P._sfc_main,{key:0,icon:"tabler:corner-up-left",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:n,flipOnDir:"rtl",onClick:a},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasReaction?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:n,onClick:l},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,icon:"tabler:dots-vertical",color:"neutral",type:"ghost",ref_key:"actionRef",ref:t,onClick:u},null,512)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),Z=e.defineComponent({...R.getComponentOptions("CommentReactions"),__name:"CommentReactions",setup(f){const s=N(),n=e.ref(),t=()=>{s.emit("openReaction",n.value)},u=l=>{l&&!l.active&&s.emit("reaction",l.emoji)};return(l,a)=>{var p;return e.unref(s).props.hasReaction&&((p=e.unref(s).props.reactions)!=null&&p.some(o=>o.count&&o.emoji))?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(g),"reactions"),e.unref(s).props.reactionsCls))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).props.reactions,o=>(e.openBlock(),e.createBlock(j._sfc_main,{key:o==null?void 0:o.emoji,active:o==null?void 0:o.active,onClick:y=>u(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o==null?void 0:o.emoji)+" "+e.toDisplayString(o==null?void 0:o.count),1)]),_:2},1032,["active","onClick"]))),128)),e.createVNode(P._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"outline",ref_key:"reactionRef",ref:n,onClick:t},null,512)],2)):e.createCommentVNode("",!0)}}}),g=r.getBemBlock("comment"),[N,D]=U.createContext("Comment"),ee=e.defineComponent({...R.getComponentOptions("Comment"),__name:"Comment",props:{class:{},headerCls:{},actionsCls:{},bodyCls:{},datetimeCls:{},contentCls:{},authorCls:{},repliesCls:{},headerContentCls:{},reactionsCls:{},repliesHeaderCls:{},repliesTitleCls:{},repliesContentCls:{},author:{},avatar:{},content:{},datetime:{},repliesCount:{},repliesTitle:{default:"Replies"},avatarProps:{},open:{type:Boolean,default:void 0},hasReaction:{type:Boolean,default:!0},hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},hasReply:{type:Boolean,default:!0},reactions:{}},emits:["update:open","openActions","reaction","reply","openReaction"],setup(f,{emit:s}){const n=f,t=e.useSlots(),u=s,l=h.useVModel(n,"open",u,{passive:n.open===void 0}),a=()=>{var d;let c;const C=(d=t.author)==null?void 0:d.call(t,{});return!h.isEmptyElement(C)?c=C:c=n.author,c?e.h("div",{class:r.normCls(r.getBemElement(g,"author"),n.authorCls)},c):null},p=()=>{var d;let c;const C=(d=t.datetime)==null?void 0:d.call(t,{});return!h.isEmptyElement(C)?c=C:c=n.datetime,c?e.h("div",{class:r.normCls(r.getBemElement(g,"datetime"),n.datetimeCls)},c):null},o=()=>{var d,v;const c=(d=t.header)==null?void 0:d.call(t,{}),C=!h.isEmptyElement(c);let m;if(C)m=c;else{m=[];const k=(v=t.avatar)==null?void 0:v.call(t,{});!h.isEmptyElement(k)?m.push(k):n.avatar&&m.push(e.h(M._sfc_main,{...n.avatarProps??{},src:n.avatar}));const b=a(),S=p();(b||S)&&m.push(e.h("div",{class:r.normCls(r.getBemElement(g,"header__content"),n.headerContentCls)},[b,S])),m.length||(m=void 0)}return m?(m.push(e.h(Y)),e.h("div",{class:r.normCls(r.getBemElement(g,"header"),n.headerCls)},m)):null},y=()=>{var m;const c=(m=t.content)==null?void 0:m.call(t,{}),C=!h.isEmptyElement(c);if(C||n.content)return e.h("div",{class:r.normCls(r.getBemElement(g,"content"),n.contentCls,"paragraph"),innerHTML:C?void 0:n.content},C?c:void 0)},_=r.getBemElement(g,"replies"),B=H.cva(_,{variants:{open:r.generateVariantClassList("open",_)}}),E=()=>{var v;const c=(v=t.replies)==null?void 0:v.call(t,{}),C=!h.isEmptyElement(c),m=()=>{var b,S,x;const k=(b=t.repliesHeader)==null?void 0:b.call(t,{open:!!l.value}),i=[];if(!h.isEmptyElement(k))i.push(k);else{i.push(e.h(L._sfc_main,{size:"xsm",bg:"transparent",br:"transparent"},{default:()=>e.h(h._sfc_main$2,{icon:"tabler:chevron-down",class:r.getBemElement(_,"icon"),size:"2xsm"})}));const T=(S=t.repliesCount)==null?void 0:S.call(t,{}),q=!h.isEmptyElement(T),w=(x=t.repliesTitle)==null?void 0:x.call(t,{}),A=!h.isEmptyElement(w);let V;A?V=w:V=n.repliesTitle,i.push(e.h("div",{class:r.normCls(r.getBemElement(_,"title"),n.repliesTitleCls)},V)),(q||n.repliesCount)&&i.push(e.h($._sfc_main,{color:"primary-subtle",text:n.repliesCount,size:"xsm"},{text:()=>T}))}return e.h("div",{class:r.normCls(r.getBemElement(_,"header"),n.repliesHeaderCls),onClick:()=>{l.value=!l.value}},i)},d=()=>{if(l.value)return[e.h("div",{class:r.normCls(r.getBemElement(_,"content"),n.repliesContentCls)},c),e.h("div",{class:r.getBemElement(_,"line")})]};return C?e.h("div",{class:r.normCls(B({open:!!l.value}),n.repliesCls)},[m(),d()]):null};return D({emit:u,props:n,slots:t}),(c,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(g),n.class))},[e.createVNode(o),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(g),"body"),n.bodyCls))},[e.createVNode(y),e.createVNode(Z),e.createVNode(E)],2)],2))}}),te=e.defineComponent({...R.getComponentOptions("CommentAction"),__name:"CommentAction",props:{hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},editText:{default:"Edit"},deleteText:{default:"Delete"},dir:{},class:{},containerCls:{},containerClass:{},containerProps:{},trigger:{},size:{},to:{},placement:{},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},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},disableOutsidePointerEvents:{type:Boolean}},emits:["edit","delete","update:open"],setup(f,{emit:s}){const n=f,t=s,u=()=>{t("edit"),a.value=!1},l=()=>{t("delete"),a.value=!1},a=h.useVModel(n,"open",t,{passive:n.open===void 0});return(p,o)=>(e.openBlock(),e.createBlock(e.unref(F._sfc_main),e.mergeProps(n,{open:e.unref(a),"onUpdate:open":o[0]||(o[0]=y=>e.isRef(a)?a.value=y:null),placement:"bottom-end",sideOffset:3,trigger:"click",openDelay:0}),{content:e.withCtx(()=>[e.createVNode(O._sfc_main,{style:{width:"116px"}},{default:e.withCtx(()=>[p.hasEdit?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"edit",title:p.editText,onClick:u},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(h._sfc_main$2,{icon:"tabler:edit",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0),p.hasDelete?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"delete",title:p.deleteText,danger:"",onClick:l},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(h._sfc_main$2,{icon:"tabler:trash",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1})]),_:1},16,["open"]))}}),oe=e.defineComponent({...R.getComponentOptions("CommentReaction"),__name:"CommentReaction",props:{reference:{},open:{type:Boolean,default:void 0},icons:{},emojis:{},group:{},modelValue:{},defaultValue:{},visibleTabs:{},noTrigger:{type:Boolean},noModel:{type:Boolean},hideClear:{type:Boolean},hideColor:{type:Boolean},hideGroup:{type:Boolean},hideIcons:{type:Boolean},hideEmojis:{type:Boolean},hideSearch:{type:Boolean},hideRandom:{type:Boolean},disabled:{type:Boolean},borderless:{type:Boolean},popoverProps:{},colorPopoverProps:{},fgColorSwatchGroupProps:{},bgColorSwatchGroupProps:{},brColorSwatchGroupProps:{},visibleColorPickers:{},contentCls:{},headerCls:{},groupCls:{},searchCls:{},colorsCls:{},emptyCls:{},gridCls:{},scrollContainerProps:{},size:{},id:{},resetColorsOnChangeType:{}},emits:["reaction","update:open"],setup(f,{emit:s}){const n=f,t=s,u=a=>{t("reaction",a.value),l.value=!1},l=h.useVModel(n,"open",t,{passive:n.open===void 0});return(a,p)=>(e.openBlock(),e.createBlock(G._sfc_main,e.mergeProps(n,{noTrigger:"",hideClear:"",hideGroup:"",hideIcons:"",hideRandom:"",group:"emoji",popoverProps:{...a.popoverProps??{},reference:a.reference},placement:"bottom-end",visibleColorPickers:[],noModel:"",onSelect:u,open:e.unref(l),"onUpdate:open":p[0]||(p[0]=o=>e.isRef(l)?l.value=o:null)}),null,16,["popoverProps","open"]))}}),ne=e.defineComponent({...R.getComponentOptions("CommentMention"),__name:"CommentMention",props:{size:{},status:{},multiple:{type:Boolean},noLastValueOnPlaceholder:{type:Boolean},showLabelValueOnHeaderSearch:{type:Boolean},zIndex:{},checkbox:{type:Boolean},tagRenderMode:{},getTagProps:{type:Function},tree:{type:Boolean},treeProps:{},contentFit:{type:Boolean},wrapped:{type:Boolean},sortSelectedItems:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},trailingIcon:{},selectedItemIconAsTrailingIcon:{type:Boolean},maxCount:{},to:{type:[String,Function]},placeholder:{},indicatorIcon:{},options:{},getDisabled:{},getLabel:{},getDescription:{},getValue:{},getNoCheckbox:{},getSingle:{},getClear:{},getGroupOptions:{},getGroupLabel:{},getIcon:{},placement:{},reversePlacementOnDir:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{},lazyLoading:{type:Boolean},bordered:{type:Boolean},clearOnChangeMultiple:{type:Boolean},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean},popupHeight:{},popupWidth:{},minWidth:{},headerSearch:{type:Boolean},search:{},noTrigger:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},modelValue:{},defaultValue:{},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},by:{type:[String,Function]},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},reference:{},forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},defer:{type:Boolean}},emits:["mention"],setup(f,{emit:s}){const n=f,t=s,u=e.useSlots(),l=(a,p,o)=>{t("mention",a,o)};return(a,p)=>(e.openBlock(),e.createBlock(K._sfc_main,e.mergeProps(n,{modelValue:"",onSelect:l,noTrigger:""}),e.createSlots({_:2},[e.renderList(Object.keys(u),o=>({name:o,fn:e.withCtx(y=>[e.renderSlot(a.$slots,o,e.normalizeProps(e.guardReactiveProps(y)))])}))]),1040))}}),re=e.defineComponent({...R.getComponentOptions("CommentEditor"),__name:"CommentEditor",props:{class:{},actionsCls:{},editorCls:{},footerCls:{},disabled:{type:Boolean},isEmpty:{type:Boolean},mentionsReference:{},uploadProps:{},maxHeight:{default:100}},emits:["openReaction","openMention","blur","focus","mention","submit"],setup(f,{emit:s}){const n=e.useSlots(),t=f,u=s,l=r.getBemElement(g,"editor"),a=e.ref(),p=()=>{u("openReaction",a.value)},o=e.ref(),y=()=>{u("openMention",o.value)},{rootBindings:_,inputBindings:B}=Q.UseInputDataStates({getDisabled:()=>t.disabled,emit:u}),E=()=>u("submit"),c=e.computed(()=>{if(Number(t.maxHeight)>0)return`${t.maxHeight}px`;if(typeof t.maxHeight=="string")return t.maxHeight}),C=e.ref(),m=d=>{var v;(v=C.value)!=null&&v.addFiles&&d.length&&C.value.addFiles(d)};return(d,v)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(r.normCls)(e.unref(l),t.class)},e.unref(_)),[e.createVNode(J._sfc_main,{overlay:!1,hasMask:!1,class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(l),"editor"),"paragraph",t.editorCls)),style:e.normalizeStyle({maxHeight:c.value})},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",e.normalizeProps(e.guardReactiveProps(e.unref(B))))]),_:3},8,["class","style"]),e.createVNode(z._sfc_main,e.mergeProps({noTrigger:""},d.uploadProps,{ref_key:"uploadRef",ref:C}),e.createSlots({_:2},[e.renderList(Object.keys(e.unref(I.omit)(n,["default"])),k=>({name:k,fn:e.withCtx(i=>[e.renderSlot(d.$slots,k,e.normalizeProps(e.guardReactiveProps(i)))])}))]),1040),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(l),"footer"),t.footerCls))},[e.createVNode(W._sfc_main),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(r.getBemElement)(e.unref(l),"actions"),t.actionsCls))},[e.createVNode(P._sfc_main,{icon:"tabler:at",color:"neutral",type:"ghost",ref_key:"mentionRef",ref:o,onClick:y},null,512),e.createVNode(z._sfc_main$1,{accept:"image/*",multiple:"",onAddFiles:m},{default:e.withCtx(()=>[e.createVNode(P._sfc_main,{icon:"tabler:photo",color:"neutral",type:"ghost"})]),_:1}),e.createVNode(P._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:a,onClick:p},null,512)],2),e.createVNode(P._sfc_main,{disabled:d.isEmpty,icon:"tabler:arrow-up",onClick:E},null,8,["disabled"])],2)],16))}}),se=["tabindex","disabled"],le=e.defineComponent({...R.getComponentOptions("CommentTrigger"),__name:"CommentTrigger",props:{class:{},text:{default:"Add a Comment or type @ to Mention..."},src:{},withShortcut:{type:Boolean},ignoeShortcut:{type:Boolean},disabled:{type:Boolean},avatarProps:{},shortcutProps:{}},emits:["add"],setup(f,{emit:s}){const n=e.useSlots(),t=f,u=s,l=r.getBemElement(g,"trigger"),a=o=>{!t.ignoeShortcut&&o.code==="KeyC"&&o.altKey&&p(o)};e.onMounted(()=>{t.withShortcut&&addEventListener("keyup",a)}),e.onBeforeUnmount(()=>{t.withShortcut&&removeEventListener("keyup",a)}),t.withShortcut;const p=o=>u("add",o);return(o,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r.normCls)(e.unref(l),t.class)),tabindex:o.disabled?-1:0,disabled:o.disabled?"":void 0,onPointerdown:e.withModifiers(p,["stop"]),onKeyup:e.withModifiers(p,["stop"])},[e.createVNode(M._sfc_main,e.mergeProps(o.avatarProps??{},{size:"sm",src:o.src}),e.createSlots({_:2},[e.renderList(Object.keys(n),_=>({name:_,fn:e.withCtx(B=>[e.renderSlot(o.$slots,_,e.normalizeProps(e.guardReactiveProps(B)))])}))]),1040,["src"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r.getBemElement)(e.unref(l),"text"))},[e.renderSlot(o.$slots,"text",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])],2),e.createVNode(X._sfc_main,e.mergeProps(o.shortcutProps??{},{items:[{text:"Alt"},{text:"C"}]}),null,16)],42,se))}}),ie=f=>{const s=e.ref(!1),n=e.ref(),t=e.ref(!1),u=(i,b=!1)=>{s.value=!0,t.value=b,n.value=i},l=e.ref(!1),a=e.ref(),p=i=>{l.value=!0,a.value=i},o=e.computed(()=>({open:s.value,reference:n.value,"onUpdate:open":i=>s.value=i,onReaction:i=>{var b,S;if(t.value)try{(b=f.addEmoji)==null||b.call(f,i)}catch(x){console.log("error on reaction ===>",x)}try{(S=f.onReaction)==null||S.call(f,i)}catch(x){console.log("error on reaction ===>",x)}}})),y=e.computed(()=>({open:l.value,reference:a.value,"onUpdate:open":i=>l.value=i})),_=e.ref(!1),B=e.ref(),E=e.ref(),c=e.ref(!1),C=e.computed(()=>({open:_.value,"onUpdate:open":i=>_.value=i,search:B.value,"onUpdate:search":i=>B.value=i,reference:E.value,headerSearch:c.value,onPointerDownOutside:d,onEscapeKeyDown:d})),m=i=>{i&&(E.value={getBoundingClientRect:i},_.value=!0,c.value=!1)},d=()=>{E.value=void 0,_.value=!1,B.value=void 0},v=i=>{B.value=i},k=e.computed(()=>({onOpenReaction:i=>u(i,!0),onOpenMention:i=>{i&&(E.value=i,_.value=!0,c.value=!0)}}));return{reactionBinding:o,actionBinding:y,editorBinding:k,mentionBinding:C,openActions:p,openReaction:u,openMentionInEditor:m,closeMentionInEditor:d,updateMentionQuery:v}};exports.Comment=ee;exports.CommentAction=te;exports.CommentEditor=re;exports.CommentMention=ne;exports.CommentReaction=oe;exports.CommentTrigger=le;exports.commentPrefix=g;exports.injectCommentContext=N;exports.provideCommentContext=D;exports.useComment=ie;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as i, _ as n, i as t, p as a, u as f } from "../ConfigProvider.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as i, _ as n, i as t, p as a, u as f } from "../ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js";
|
|
2
2
|
export {
|
|
3
3
|
i as ConfigProvider,
|
|
4
4
|
n as default,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as l, unref as a, ref as g,
|
|
1
|
+
import { computed as l, unref as a, ref as g, getCurrentInstance as _, defineComponent as y, useSlots as T, onMounted as b, watch as O, createBlock as w, openBlock as x, withCtx as E, renderSlot as S } from "vue";
|
|
2
2
|
import { createContext as F, ConfigProvider as A } from "reka-ui";
|
|
3
|
-
import { toggleDark as P, getThemeConfig as h,
|
|
3
|
+
import { toggleDark as P, getThemeConfig as h, defineTheme as m, init as j } from "@pantograph/tokens";
|
|
4
4
|
import { g as q } from "./options-Bh1s18jm.js";
|
|
5
5
|
import { isString as D, isFunction as B } from "es-toolkit";
|
|
6
6
|
import { useMutationObserver as k } from "@vueuse/core";
|
|
@@ -53,13 +53,13 @@ const v = (i) => {
|
|
|
53
53
|
changeTheme: m,
|
|
54
54
|
theme: l(() => h())
|
|
55
55
|
}, J = () => M(H), X = () => {
|
|
56
|
-
const i = J(), t =
|
|
56
|
+
const i = J(), t = _();
|
|
57
57
|
return { config: i, getFlipOnDir: (n) => l(
|
|
58
58
|
() => (t == null ? void 0 : t.props)[n] ?? i.flipOnDir.value
|
|
59
59
|
), getDir: (n) => l(
|
|
60
60
|
() => (n && B(n) ? n() : (t == null ? void 0 : t.props).dir) ?? i.dir.value
|
|
61
61
|
) };
|
|
62
|
-
}, Y = /* @__PURE__ */
|
|
62
|
+
}, Y = /* @__PURE__ */ y({
|
|
63
63
|
...q("ConfigProvider", !1),
|
|
64
64
|
__name: "ConfigProvider",
|
|
65
65
|
props: {
|
|
@@ -71,10 +71,10 @@ const v = (i) => {
|
|
|
71
71
|
},
|
|
72
72
|
setup(i) {
|
|
73
73
|
const t = i;
|
|
74
|
-
|
|
74
|
+
T();
|
|
75
75
|
const [r, c] = v(t.changeAbleDirectionElement), [n, e] = C(t.changeAbleDarkElement);
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
b(() => {
|
|
77
|
+
O(
|
|
78
78
|
() => t.theme,
|
|
79
79
|
() => {
|
|
80
80
|
var s, u;
|
|
@@ -101,9 +101,9 @@ const v = (i) => {
|
|
|
101
101
|
changeDirection: c,
|
|
102
102
|
changeTheme: f,
|
|
103
103
|
toggleDark: e
|
|
104
|
-
}), (s, u) => (
|
|
105
|
-
default:
|
|
106
|
-
|
|
104
|
+
}), (s, u) => (x(), w(a(A), { dir: a(r) }, {
|
|
105
|
+
default: E(() => [
|
|
106
|
+
S(s.$slots, "default", {
|
|
107
107
|
dir: a(r),
|
|
108
108
|
theme: o.value,
|
|
109
109
|
changeDirection: a(c),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TableColumn } from './DataTable.model.ts';
|
|
2
2
|
import { DataTableProps, DataTableSlots } from './types';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: Readonly<DataTableSlots> & DataTableSlots;
|
|
5
6
|
refs: {
|
|
6
7
|
body: ({
|
|
@@ -22,8 +23,8 @@ declare function __VLS_template(): {
|
|
|
22
23
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
23
24
|
$host: Element | null;
|
|
24
25
|
$emit: (event: string, ...args: any[]) => void;
|
|
25
|
-
$el:
|
|
26
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../Table'
|
|
26
|
+
$el: HTMLTableSectionElement;
|
|
27
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Table').TBodyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
27
28
|
beforeCreate?: (() => void) | (() => void)[];
|
|
28
29
|
created?: (() => void) | (() => void)[];
|
|
29
30
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -43,7 +44,7 @@ declare function __VLS_template(): {
|
|
|
43
44
|
$forceUpdate: () => void;
|
|
44
45
|
$nextTick: typeof import('vue').nextTick;
|
|
45
46
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
46
|
-
} & Readonly<{}> & Omit<Readonly<import('../Table'
|
|
47
|
+
} & Readonly<{}> & Omit<Readonly<import('../Table').TBodyProps> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
47
48
|
$slots: {
|
|
48
49
|
default?(_: {}): any;
|
|
49
50
|
};
|
|
@@ -53,7 +54,7 @@ declare function __VLS_template(): {
|
|
|
53
54
|
$data: {};
|
|
54
55
|
$props: {
|
|
55
56
|
readonly class?: import('clsx').ClassValue;
|
|
56
|
-
readonly size?: import('../Table'
|
|
57
|
+
readonly size?: import('../Table').TableSize | undefined;
|
|
57
58
|
readonly empty?: boolean | undefined;
|
|
58
59
|
readonly wrap?: boolean | undefined;
|
|
59
60
|
readonly lazyLoadObserver?: boolean | undefined;
|
|
@@ -71,8 +72,8 @@ declare function __VLS_template(): {
|
|
|
71
72
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
72
73
|
$host: Element | null;
|
|
73
74
|
$emit: (event: string, ...args: any[]) => void;
|
|
74
|
-
$el:
|
|
75
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../Table'
|
|
75
|
+
$el: HTMLTableCellElement;
|
|
76
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Table').TdProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
76
77
|
beforeCreate?: (() => void) | (() => void)[];
|
|
77
78
|
created?: (() => void) | (() => void)[];
|
|
78
79
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -92,19 +93,19 @@ declare function __VLS_template(): {
|
|
|
92
93
|
$forceUpdate: () => void;
|
|
93
94
|
$nextTick: typeof import('vue').nextTick;
|
|
94
95
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
95
|
-
} & Readonly<{}> & Omit<Readonly<import('../Table'
|
|
96
|
-
$slots: Readonly<import('../Table'
|
|
96
|
+
} & Readonly<{}> & Omit<Readonly<import('../Table').TdProps> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
97
|
+
$slots: Readonly<import('../Table').TdSlots> & import('../Table').TdSlots;
|
|
97
98
|
}) | null;
|
|
98
99
|
};
|
|
99
|
-
|
|
100
|
+
rootEl: HTMLDivElement;
|
|
100
101
|
};
|
|
101
102
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
102
103
|
declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
103
|
-
sort: (col: TableColumn, order: false | "desc" | "asc", sorting: import('./types'
|
|
104
|
+
sort: (col: TableColumn, order: false | "desc" | "asc", sorting: import('./types').SortItem[]) => any;
|
|
104
105
|
fetch: () => any;
|
|
105
106
|
rowClick: (row: object, event: Event) => any;
|
|
106
107
|
}, string, import('vue').PublicProps, Readonly<DataTableProps> & Readonly<{
|
|
107
|
-
onSort?: ((col: TableColumn, order: false | "desc" | "asc", sorting: import('./types'
|
|
108
|
+
onSort?: ((col: TableColumn, order: false | "desc" | "asc", sorting: import('./types').SortItem[]) => any) | undefined;
|
|
108
109
|
onFetch?: (() => any) | undefined;
|
|
109
110
|
onRowClick?: ((row: object, event: Event) => any) | undefined;
|
|
110
111
|
}>, {
|
|
@@ -113,7 +114,100 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
113
114
|
childrenColumnName: string;
|
|
114
115
|
batchActionsTitle: string;
|
|
115
116
|
tableLayout: "auto" | "fixed";
|
|
116
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
117
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
118
|
+
body: ({
|
|
119
|
+
$: import('vue').ComponentInternalInstance;
|
|
120
|
+
$data: {};
|
|
121
|
+
$props: {
|
|
122
|
+
readonly class?: import('clsx').ClassValue;
|
|
123
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
124
|
+
$attrs: {
|
|
125
|
+
[x: string]: unknown;
|
|
126
|
+
};
|
|
127
|
+
$refs: {
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
};
|
|
130
|
+
$slots: Readonly<{
|
|
131
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
134
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
135
|
+
$host: Element | null;
|
|
136
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
137
|
+
$el: HTMLTableSectionElement;
|
|
138
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Table').TBodyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
139
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
140
|
+
created?: (() => void) | (() => void)[];
|
|
141
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
142
|
+
mounted?: (() => void) | (() => void)[];
|
|
143
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
144
|
+
updated?: (() => void) | (() => void)[];
|
|
145
|
+
activated?: (() => void) | (() => void)[];
|
|
146
|
+
deactivated?: (() => void) | (() => void)[];
|
|
147
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
148
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
149
|
+
destroyed?: (() => void) | (() => void)[];
|
|
150
|
+
unmounted?: (() => void) | (() => void)[];
|
|
151
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
152
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
153
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
154
|
+
};
|
|
155
|
+
$forceUpdate: () => void;
|
|
156
|
+
$nextTick: typeof import('vue').nextTick;
|
|
157
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
158
|
+
} & Readonly<{}> & Omit<Readonly<import('../Table').TBodyProps> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
159
|
+
$slots: {
|
|
160
|
+
default?(_: {}): any;
|
|
161
|
+
};
|
|
162
|
+
}) | null;
|
|
163
|
+
target: ({
|
|
164
|
+
$: import('vue').ComponentInternalInstance;
|
|
165
|
+
$data: {};
|
|
166
|
+
$props: {
|
|
167
|
+
readonly class?: import('clsx').ClassValue;
|
|
168
|
+
readonly size?: import('../Table').TableSize | undefined;
|
|
169
|
+
readonly empty?: boolean | undefined;
|
|
170
|
+
readonly wrap?: boolean | undefined;
|
|
171
|
+
readonly lazyLoadObserver?: boolean | undefined;
|
|
172
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
173
|
+
$attrs: {
|
|
174
|
+
[x: string]: unknown;
|
|
175
|
+
};
|
|
176
|
+
$refs: {
|
|
177
|
+
[x: string]: unknown;
|
|
178
|
+
};
|
|
179
|
+
$slots: Readonly<{
|
|
180
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
183
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
184
|
+
$host: Element | null;
|
|
185
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
186
|
+
$el: HTMLTableCellElement;
|
|
187
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Table').TdProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
188
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
189
|
+
created?: (() => void) | (() => void)[];
|
|
190
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
191
|
+
mounted?: (() => void) | (() => void)[];
|
|
192
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
193
|
+
updated?: (() => void) | (() => void)[];
|
|
194
|
+
activated?: (() => void) | (() => void)[];
|
|
195
|
+
deactivated?: (() => void) | (() => void)[];
|
|
196
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
197
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
198
|
+
destroyed?: (() => void) | (() => void)[];
|
|
199
|
+
unmounted?: (() => void) | (() => void)[];
|
|
200
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
201
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
202
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
203
|
+
};
|
|
204
|
+
$forceUpdate: () => void;
|
|
205
|
+
$nextTick: typeof import('vue').nextTick;
|
|
206
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
207
|
+
} & Readonly<{}> & Omit<Readonly<import('../Table').TdProps> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
208
|
+
$slots: Readonly<import('../Table').TdSlots> & import('../Table').TdSlots;
|
|
209
|
+
}) | null;
|
|
210
|
+
}, HTMLDivElement>;
|
|
117
211
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
118
212
|
export default _default;
|
|
119
213
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/DataTable/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../DataTable.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js");exports.DataTable=e._sfc_main;exports.default=e._sfc_main;
|