@pantograph/vue 0.27.4 → 0.27.6
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-D3TR9Ar1.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-B7a38s3f.js → ActionButton.vue_vue_type_script_setup_true_lang-D6GO-k30.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_script_setup_true_lang-DTnCnw4I.js → Alert.vue_vue_type_style_index_0_lang-Dy5qag1y.js} +15 -17
- package/dist/Alert.vue_vue_type_style_index_0_lang-qPl7g81O.js +1 -0
- package/dist/Avatar/Avatar.d.ts +1 -1
- 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-BV977bUz.js +1 -0
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-D6M8USW4.js → Avatar.vue_vue_type_style_index_0_lang-DPrsRMvX.js} +32 -34
- 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-BP3OmkDG.js +1 -0
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CaAe4Yuz.js → Badge.vue_vue_type_script_setup_true_lang-CjM2eHxl.js} +1 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cgdc_pvz.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_script_setup_true_lang-D-XjAZLL.js → BaseBadge.vue_vue_type_style_index_0_lang-DwkMDLPp.js} +18 -20
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CJ5cQhLc.js +1 -0
- package/dist/{BaseButton.vue_vue_type_script_setup_true_lang-C0M_v3YX.js → BaseButton.vue_vue_type_style_index_0_lang-D8UQiapO.js} +13 -15
- package/dist/{BaseInput.vue_vue_type_script_setup_true_lang-BIm-kBuJ.js → BaseInput.vue_vue_type_style_index_0_lang-C4NwIPPo.js} +40 -42
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-Tx73X2wE.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-BwYhOQBC.js → Button.vue_vue_type_script_setup_true_lang-Mnltc7z6.js} +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-jL1v7uqc.js +1 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_script_setup_true_lang-DVmFg39-.js → Checkbox.vue_vue_type_style_index_0_lang-DnfmdUgk.js} +58 -60
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-bWMji_p5.js +1 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-85COdIHv.js +1 -0
- package/dist/{Chip.vue_vue_type_script_setup_true_lang-B0_Xt99k.js → Chip.vue_vue_type_style_index_0_lang-BTkjNPpY.js} +45 -49
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-Dj4xxf8o.js → ColorPicker.vue_vue_type_style_index_0_lang-BdOoCdNS.js} +188 -190
- package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-qMOFhEXd.js → ColorPicker.vue_vue_type_style_index_0_lang-DKKyeshn.js} +3 -3
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch-Ble3U3gh.js +1 -0
- package/dist/ColorSwatch-CvO0aEqV.js +4 -0
- package/dist/{ColorSwatch.vue_vue_type_script_setup_true_lang-DfJGNFtX.js → ColorSwatch.vue_vue_type_style_index_0_lang-D1iZGTU1.js} +29 -31
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DV7_KzOo.js +1 -0
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_script_setup_true_lang-CKU8V4qd.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CVm2wACN.js} +27 -29
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DVHeRwbA.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_script_setup_true_lang-BkvtQ4zd.js → ColorTrigger.vue_vue_type_style_index_0_lang-BfBgZWIs.js} +23 -25
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-D1LOnBjA.js +1 -0
- package/dist/Combobox/context.d.ts +1 -0
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/{Combobox.vue_vue_type_script_setup_true_lang-DXwg6ANz.js → Combobox.vue_vue_type_style_index_0_lang-BA_I2GN7.js} +272 -261
- package/dist/Combobox.vue_vue_type_style_index_0_lang-C2gSuLRv.js +1 -0
- package/dist/Comment/CommentActions.d.ts +2 -2
- package/dist/Comment/CommentEditor.d.ts +4 -4
- package/dist/Comment/CommentReactions.d.ts +1 -1
- package/dist/Comment/index.js +99 -105
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-C1Y05q2y.js → DataTable.vue_vue_type_style_index_0_lang-Bk51mlZo.js} +35 -37
- package/dist/DataTable.vue_vue_type_style_index_0_lang-wedX7ZEP.js +1 -0
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js +36 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js +1 -0
- package/dist/DropZone/DropZone.d.ts +1 -1
- 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-D2U8rqTy.js +1 -0
- package/dist/{DropZone.vue_vue_type_script_setup_true_lang-AN1jpLJz.js → DropZone.vue_vue_type_style_index_0_lang-ZfmWjf5_.js} +33 -35
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_script_setup_true_lang-BCQOhz-A.js → Empty.vue_vue_type_style_index_0_lang-GEhjGuWp.js} +25 -27
- package/dist/Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.js +1 -0
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-D0b4JhQp.js → FloatButton.vue_vue_type_script_setup_true_lang-DH1hvvgb.js} +1 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Drvb_yGk.js +1 -0
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/{FormValidation.vue_vue_type_script_setup_true_lang-BVTTJmKI.js → FormValidation.vue_vue_type_style_index_0_lang-ByTzoA28.js} +3 -3
- package/dist/{FormValidation.vue_vue_type_script_setup_true_lang-BJnTmqoo.js → FormValidation.vue_vue_type_style_index_0_lang-DmI2Cicu.js} +309 -313
- 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-CteKvBMt.js +1 -0
- package/dist/{GOPicker.vue_vue_type_script_setup_true_lang-UNRfZ8eW.js → GOPicker.vue_vue_type_style_index_0_lang-LCobQHEi.js} +21 -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-C6SGYINj.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-C45pbuL2.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DsNpKZ1Q.js} +2 -2
- 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-DpUJtahs.js +1 -0
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-hijTVsAM.js +62 -0
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-BXomv-C2.js +1 -0
- package/dist/{HoverCard.vue_vue_type_script_setup_true_lang-CgDV1bGl.js → HoverCard.vue_vue_type_style_index_0_lang-CZjE-3yG.js} +15 -17
- 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-CMFYMG-2.js +1 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js +47 -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-Dk1TQJVA.js +1 -0
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DbWKTcZc.js → IconButton.vue_vue_type_script_setup_true_lang-ahPqU4HJ.js} +1 -1
- 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-6NV8jF6n.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-CLuipQtA.js +126 -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-0YtmWnET.js +1 -0
- package/dist/{IndentLevel.vue_vue_type_script_setup_true_lang-gsLH8xYH.js → IndentLevel.vue_vue_type_style_index_0_lang-DGxzy3Fe.js} +29 -31
- 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-DAMwZQWn.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DXj4SwTV.js → Indicator.vue_vue_type_script_setup_true_lang-rKOaH8eB.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-B6TZLtSK.js → Input.vue_vue_type_script_setup_true_lang-8xzs2Ugc.js} +1 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-C6YGbdin.js +1 -0
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CKg_NSdF.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-Dk-jieRY.js → InputNumber.vue_vue_type_script_setup_true_lang-CNWtwCOO.js} +2 -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-BCfWLm9R.js +1 -0
- package/dist/{Kbd.vue_vue_type_script_setup_true_lang-BjIP0HlW.js → Kbd.vue_vue_type_style_index_0_lang-D1FVFk72.js} +11 -13
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-NFunrvyw.js → Label.vue_vue_type_style_index_0_lang-DCjjITld.js} +26 -28
- package/dist/Label.vue_vue_type_style_index_0_lang-DwExesoL.js +1 -0
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-B1uxGXxI.js +1 -0
- package/dist/{Link.vue_vue_type_script_setup_true_lang-BISssWeB.js → Link.vue_vue_type_style_index_0_lang-brdTffbT.js} +18 -20
- 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_script_setup_true_lang-CC0ZX8mk.js → MenuItem.vue_vue_type_style_index_0_lang-3CVlU74B.js} +99 -104
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BbAMfSHF.js +1 -0
- 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-B0_VsOAZ.js +1 -0
- package/dist/{Pagination.vue_vue_type_script_setup_true_lang-BUlHheg6.js → Pagination.vue_vue_type_style_index_0_lang-CLsI3KAW.js} +54 -56
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-DhDzrGk6.js → Popover.vue_vue_type_style_index_0_lang-QNb3ngGr.js} +88 -90
- package/dist/Popover.vue_vue_type_style_index_0_lang-pl_b1loW.js +1 -0
- 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-B4GBo6sb.js +1 -0
- package/dist/{Progress.vue_vue_type_script_setup_true_lang-DDtJkd5S.js → Progress.vue_vue_type_style_index_0_lang-DtG1mmcQ.js} +34 -36
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Bpc9dmT5.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-wamsBRJy.js → RadioGroup.vue_vue_type_script_setup_true_lang-DwnLgUkZ.js} +27 -29
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/{ScrollContainer.vue_vue_type_script_setup_true_lang-FKw-Hnvi.js → ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js} +24 -26
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js +1 -0
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-HKjApQIO.js +1 -0
- package/dist/{Segmented.vue_vue_type_script_setup_true_lang-C3_Tl2yp.js → Segmented.vue_vue_type_style_index_0_lang-q28c-KjP.js} +16 -18
- 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-DK0gqVv1.js +1 -0
- package/dist/{Select.vue_vue_type_script_setup_true_lang-B_KHB5DB.js → Select.vue_vue_type_style_index_0_lang-DXCsSdMK.js} +66 -68
- 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-C-wsusvY.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-TFcjdHpb.js +1 -0
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-V3Y9sTi-.js → Skeleton.vue_vue_type_style_index_0_lang-BUizov_K.js} +16 -18
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js +1 -0
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_script_setup_true_lang-CMhmFqGC.js → Spinner.vue_vue_type_style_index_0_lang-COQRqpmY.js} +19 -21
- package/dist/Spinner.vue_vue_type_style_index_0_lang-k30PU_tO.js +1 -0
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_script_setup_true_lang-C-mChuJl.js → Switch.vue_vue_type_style_index_0_lang-6euiPiT-.js} +19 -21
- package/dist/Switch.vue_vue_type_style_index_0_lang-Cc1XCDc2.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-CnapuGqj.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-DaCjVYIl.js +198 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-B6GAPEdf.js +1 -0
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-MacLlpoI.js → TabContent.vue_vue_type_script_setup_true_lang-B6gNekgT.js} +37 -39
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/{Textarea.vue_vue_type_script_setup_true_lang-CvTs1oY9.js → Textarea.vue_vue_type_style_index_0_lang-CLhSsqGd.js} +41 -43
- package/dist/Textarea.vue_vue_type_style_index_0_lang-S0QXyiqu.js +1 -0
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_script_setup_true_lang-CjPUxT5q.js → Tree.vue_vue_type_style_index_0_lang-BpP1B-73.js} +36 -38
- package/dist/Tree.vue_vue_type_style_index_0_lang-CkWdHL4R.js +1 -0
- 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-DvL_F6Ye.js +1 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CwSlVjBi.js → Upload.vue_vue_type_style_index_0_lang-RRr-8pG3.js} +70 -72
- package/dist/index.js +50 -50
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +2 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-B95JGdI_.js +0 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-CJna3KsH.js +0 -1
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-Nn10rcGu.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJej9nkJ.js +0 -1
- package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-BKUITOpw.js +0 -1
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-Bo_ZJcOQ.js +0 -1
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-CpnBS-1D.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-CdtU8pJ8.js +0 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DdF-cXiP.js +0 -1
- package/dist/Chip.vue_vue_type_script_setup_true_lang-DerG27zp.js +0 -1
- package/dist/ColorSwatch-BrPkMitU.js +0 -4
- package/dist/ColorSwatch-By6c-JXm.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-BJY6PbEL.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-ovLnyiXB.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DBwNGwz7.js +0 -1
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-Cmor3uQM.js +0 -1
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-CnRD6Q68.js +0 -1
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BZRu0h3n.js +0 -38
- package/dist/Divider.vue_vue_type_script_setup_true_lang-D6Tc-M5M.js +0 -1
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-dVL4HZVW.js +0 -1
- package/dist/Empty.vue_vue_type_script_setup_true_lang-BbliP7AT.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BhhowIQi.js +0 -1
- package/dist/GOPicker.vue_vue_type_script_setup_true_lang-DsZCv1Eu.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CudIoHnp.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-Ciq5L_5z.js +0 -64
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-DlxMW3gN.js +0 -1
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-B6gl0uZH.js +0 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-Be6ayltH.js +0 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-DBiBHDqC.js +0 -49
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-mcs7CjOV.js +0 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-Bci9LkrG.js +0 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-C_MGypeV.js +0 -128
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-D1ySGf-Z.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-BDGaDDdg.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-C7eXK7Z1.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CyPMExCk.js +0 -1
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-CxCXfVcU.js +0 -1
- package/dist/Label.vue_vue_type_script_setup_true_lang-DOIcDmSu.js +0 -1
- package/dist/Link.vue_vue_type_script_setup_true_lang-BKdeGQtS.js +0 -1
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-FR-W6X_P.js +0 -1
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-DSzq-2Nd.js +0 -1
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DlS1RQhN.js +0 -1
- package/dist/Progress.vue_vue_type_script_setup_true_lang-DpTDjzYC.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DlbOsulw.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-CIXeFarD.js +0 -1
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-v__5oumm.js +0 -1
- package/dist/Select.vue_vue_type_script_setup_true_lang-DgqUr22B.js +0 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-B16kPcKe.js +0 -34
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-EJF2NtL_.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-ywJfG4ii.js +0 -1
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-DO3B4TxR.js +0 -1
- package/dist/Switch.vue_vue_type_script_setup_true_lang-jd0vNflL.js +0 -1
- package/dist/THead.vue_vue_type_script_setup_true_lang-DCBqDoCR.js +0 -1
- package/dist/THead.vue_vue_type_script_setup_true_lang-DEiGZvbY.js +0 -209
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-DmsuHY8J.js +0 -1
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DiPxIJB_.js +0 -1
- package/dist/Tree.vue_vue_type_script_setup_true_lang-CjdtoEEK.js +0 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-Di3zmtNn.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),_e=require("reka-ui"),x=require("es-toolkit"),c=require("@pantograph/utils-vue"),i=require("@pantograph/utils"),at=require("./Popover.vue_vue_type_style_index_0_lang-pl_b1loW.js"),we=require("class-variance-authority"),Ce=require("./Icon.vue_vue_type_style_index_0_lang-CMFYMG-2.js"),ye=require("./Avatar.vue_vue_type_style_index_0_lang-BV977bUz.js"),Me=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-C6SGYINj.js"),st=require("./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DpUJtahs.js"),Ie=require("./Chip.vue_vue_type_style_index_0_lang-85COdIHv.js"),it=require("./Input.vue_vue_type_script_setup_true_lang-C6YGbdin.js"),ut=require("@vueuse/core"),G=require("./isArray-Bin_5of_.js"),Ae=require("./MenuItem.vue_vue_type_style_index_0_lang-BbAMfSHF.js"),ct=require("./ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js"),pt=require("./Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.js"),ee=require("./Tree.vue_vue_type_style_index_0_lang-CkWdHL4R.js"),dt=require("./Checkbox.vue_vue_type_style_index_0_lang-bWMji_p5.js");require("@pantograph/tokens");const gt=require("./Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js"),mt=require("./Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js"),ft=require("./isNumber-DMOjxgl8.js");function vt(v){return Array.isArray(v)?v:Array.from(v)}function ht(v){return Number.isSafeInteger(v)&&v>=0}function yt(v){return v!=null&&typeof v!="function"&&ht(v.length)}function _t(v){return v[0]}function Le(v){if(yt(v))return _t(vt(v))}const[pe,De]=_e.createContext("Combobox"),O=i.getBemBlock("combobox"),Re=i.getBemModifier(O,"value-placeholder"),ze=i.getBemElement(O,"option"),be=["sm","md","lg"],Ke=["error","warning","success"],ke=e.defineComponent({...c.getComponentOptions("ComboboxInput"),__name:"ComboboxInput",props:{id:{},maxlength:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},readonly:{type:Boolean},modelValue:{},defaultValue:{},leading:{},trailing:{},clearIcon:{},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:void 0},simple:{type:Boolean},size:{},status:{},steps:{type:Boolean}},setup(v){const o=v,n=e.useSlots(),s=pe();ut.whenever(()=>s.openModel.value&&s.inputRef.value,s.focusOnInput),e.onBeforeUnmount(()=>{s.comboboxInputFocused.value=!1});const W=e.computed(()=>{const r=o.placeholder??s.props.placeholder??"";return(s.props.headerSearch?r:s.placeholder.value)??r}),z=r=>{var f,b;if(s.props.headerSearch||r.stopPropagation(),r.key==="Backspace"&&s.props.multiple&&G.isArray(s.model.value)&&c.isEmptyLikeLodash(s.searchModel.value))s.model.value=s.model.value.slice(0,-1);else if(!s.openModel.value)(r.key==="ArrowDown"||r.key==="Enter")&&(s.openModel.value=!0);else if(s.openModel.value)if(r.key==="Escape")s.openModel.value=!1;else if(r.key==="Tab"&&!s.props.headerSearch)s.openModel.value=!1;else if(["ArrowDown","ArrowUp"].includes(r.key)){const u=s.getItems();if(u.length){const K=u.findIndex(_=>s.highlightedOptionKey.value&&_.value&&_.value===s.highlightedOptionKey.value);if(r.key==="ArrowDown"){const _=u[K+1];s.highlightedOptionKey.value=(_==null?void 0:_.value)??s.highlightedOptionKey.value??u[0].value}else if(r.key==="ArrowUp"){const _=u[K-1];s.highlightedOptionKey.value=(_==null?void 0:_.value)??u[0].value}(b=(f=u.find(_=>s.highlightedOptionKey.value&&_.value&&_.value===s.highlightedOptionKey.value))==null?void 0:f.ref)==null||b.scrollIntoView()}}else r.key==="Enter"&&s.highlightedOptionKey.value&&s.selectOption(s.getOptionByValue(s.highlightedOptionKey.value),!0)},y=i.getBemElement(O,"input");return(r,f)=>(e.openBlock(),e.createBlock(e.unref(it._sfc_main),e.mergeProps({...e.unref(s).comboboxInputBinding.value,...o},{placeholder:W.value,onKeydown:z,ref:e.unref(s).inputRef,class:e.unref(i.normCls)(e.unref(y),{[e.unref(Re)]:e.unref(s).valuePlaceholder.value},o.class),modelValue:e.unref(s).searchModel.value,"onUpdate:modelValue":f[0]||(f[0]=b=>e.unref(s).searchModel.value=b)}),e.createSlots({_:2},[e.renderList(Object.keys(e.unref(x.omit)(n,["leading"])),b=>({name:b,fn:e.withCtx(u=>[e.renderSlot(r.$slots,b,e.normalizeProps(e.guardReactiveProps(u)))])})),e.unref(s).props.headerSearch?{name:"leading",fn:e.withCtx(b=>[e.renderSlot(r.$slots,"leading",e.normalizeProps(e.guardReactiveProps(b)),()=>[e.createVNode(e.unref(Ce._sfc_main),{size:b.iconSize,icon:"tabler:search",flipOnDir:"rtl"},null,8,["size"])])]),key:"0"}:{name:"leading",fn:e.withCtx(b=>[e.renderSlot(r.$slots,"leading",e.normalizeProps(e.guardReactiveProps(b)))]),key:"1"}]),1040,["placeholder","class","modelValue"]))}}),Ct=e.defineComponent({...c.getComponentOptions("ComboboxTrigger"),__name:"ComboboxTrigger",setup(v){const o=pe(),n=({value:p})=>{p&&G.isArray(o.model.value)&&!o.getDisabled.value&&(o.model.value=o.model.value.filter(m=>m!==p))},s=e.computed(()=>{switch(o.getSize.value){case"sm":return"2xsm";case"md":default:return"xsm"}}),W=e.computed(()=>{if(!o.props.multiple&&x.isString(o.model.value)&&!c.isEmptyLikeLodash(o.model.value))return o.getOptionByValue(o.model.value)}),z=(p=W.value)=>{if(o.props.selectedItemIconAsTrailingIcon&&(p!=null&&p._icon))return p._icon},y=e.computed(()=>z()),r=e.computed(()=>{if(!o.props.noTrailing)return o.props.trailingIcon}),f=e.computed(()=>{var C,h;const p=x.cloneDeep(o.model.value),m=G.isArray(o.model.value);return{modelValue:p,open:x.cloneDeep(o.openModel.value),option:m?void 0:o.getOptionByValue(o.model.value),options:m?(h=(C=o.model.value).map)==null?void 0:h.call(C,o.getOptionByValue).filter(Boolean):void 0}}),b=p=>({...f.value,option:o.getOptionByValue(p)}),u=i.getBemElement(O,"trigger"),K=we.cva(u,{variants:{size:i.generateVariantClassList(be,u),headerSearch:i.generateVariantClassList("header-search",u),status:i.generateVariantClassList(Ke,u),bordered:i.generateVariantClassList("bordered",u),multiple:i.generateVariantClassList("multiple",u),contentFit:i.generateVariantClassList("content-fit",u),wrapped:i.generateVariantClassList("wrapped",u),filled:i.generateVariantClassList("filled",u)}}),_=e.computed(()=>({type:"button",disabled:o.getDisabled.value,tabindex:o.getDisabled.value||!o.props.headerSearch?-1:0,"data-disabled":o.getDisabled.value?"":void 0,"aria-disabled":o.getDisabled.value??void 0,"aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":o.openModel.value,"data-state":o.openModel.value?"open":"closed",class:i.normCls(K({size:o.getSize.value,status:o.getStatus.value==="success"&&c.isEmptyLikeLodash(o.model.value)?void 0:o.getStatus.value,bordered:o.props.bordered,multiple:o.props.multiple,contentFit:o.props.contentFit,wrapped:o.props.wrapped,filled:!c.isEmptyLikeLodash(o.model.value),headerSearch:o.props.headerSearch}),o.props.triggerCls),...o.comboboxTriggerBinding.value})),A=(p,m=s.value)=>e.h(Ce._sfc_main,{icon:p,size:m}),U=()=>{var C,h;let p;const m=(h=(C=o.slots).triggerTrailing)==null?void 0:h.call(C,f.value);if(c.isEmptyElement(m)?r.value&&(p=A(r.value)):p=m,p)return e.h("div",{class:i.normCls(i.getBemElement(u,"trailing"),o.props.triggerTrailingCls)},p)},F=p=>{var C,h;const m=o.getOptionByValue(p)??{_key:p};return e.h(ye._sfc_main,{size:o.getTagSize.value,...m?((h=(C=o.props).getTagProps)==null?void 0:h.call(C,m))??{}:{}})},T=p=>{var C,h;const m=o.getOptionByValue(p)??{_key:p};return e.h(Me._sfc_main,{...m?((h=(C=o.props).getTagProps)==null?void 0:h.call(C,m))??{}:{},size:o.getTagSize.value})},te=()=>{var p,m;if(!o.props.multiple&&!G.isArray(o.model.value)&&o.model.value){let C;x.isString(o.model.value)&&!c.isEmptyLikeLodash(o.model.value)&&(C=o.model.value);const h=C?(m=(p=o.slots).optionLeading)==null?void 0:m.call(p,Ae.getMenuContentSlotProps(o.props.size,b(C))):null,q=!c.isEmptyElement(h);if(q||o.props.tagRenderMode&&["avatar","go"].includes(o.props.tagRenderMode)||y.value||o.props.leadingIcon){let k;if(q?k=h:o.props.tagRenderMode==="avatar"?k=F(o.model.value):o.props.tagRenderMode==="go"?k=T(o.model.value):y.value?k=A(y.value):o.props.leadingIcon&&(k=A(o.props.leadingIcon)),!c.isEmptyElement(k))return e.h("div",{class:i.normCls(i.getBemElement(u,"leading"),o.props.triggerLeadingCls)},k)}}},N=()=>{var X,oe;const p=(oe=(X=o.slots).trigger)==null?void 0:oe.call(X,f.value);if(!c.isEmptyElement(p))return e.h(_e.Slot,x.omit(_.value,["class"]),()=>p);const C=()=>{const E=[],Y=[i.getBemElement(u,"tags"),o.props.triggerContentCls,o.props.triggerContentValueCls],Z=(()=>{if(o.props.multiple&&G.isArray(o.model.value)){if(o.props.tagRenderMode==="avatar")return e.h(ye._sfc_main$1,{maxCount:o.props.maxCount,size:o.getTagSize.value,closeable:!o.getDisabled.value,noPopover:!0,noWrap:!o.props.wrapped,class:Y},()=>o.model.value.map(F));if(o.props.tagRenderMode==="go")return e.h(st._sfc_main,{maxCount:o.props.maxCount,size:o.getTagSize.value,closeable:!o.getDisabled.value,noPopover:!0,noWrap:!o.props.wrapped,class:Y},()=>o.model.value.map(T));if(o.props.tagRenderMode==="chip")return e.h(Ie._sfc_main$1,{maxCount:o.props.maxCount,size:o.getTagSize.value,color:"primary",closeable:!o.getDisabled.value,noPopover:!0,noWrap:!o.props.wrapped,class:Y,onClose:n},()=>o.model.value.map(J=>{var V,D;const ne=()=>o.getLabelByValue(J),le=({size:de})=>{const ae=z(o.getOptionByValue(J))??o.props.leadingIcon;return ae?A(ae,de):null},re=o.getOptionByValue(J);return e.h(Ie._sfc_main,{...re?((D=(V=o.props).getTagProps)==null?void 0:D.call(V,re))??{}:{},value:J,class:i.normCls(i.getBemElement(u,"tag"),o.props.tagCls),closeIconCls:i.getBemElement(u,"tag__close")},{text:ne,leading:le})}))}})();return Z&&E.push(Z),o.props.headerSearch?(!o.props.noValueOnPlaceholder||o.props.placeholder)&&E.push(e.h("div",{class:i.normCls(i.getBemElement(u,"content__value"),{[Re]:o.valuePlaceholder.value})},o.placeholder.value??o.props.placeholder)):E.push(e.h(ke,{noValueOnPlaceholder:o.props.noValueOnPlaceholder,searchIcon:!1,bordered:!1,simple:!0})),e.h("div",{class:i.getBemElement(u,"content")},E)},h=[],q=te();c.isEmptyElement(q)||h.push(q),h.push(C());const k=U();return c.isEmptyElement(k)||h.push(k),e.h("button",_.value,h)};return(p,m)=>(e.openBlock(),e.createBlock(N))}}),Te=e.defineComponent({...c.getComponentOptions("ComboboxOption"),__name:"ComboboxOption",props:{option:{}},setup(v){const o=v,n=pe(),s=e.computed(()=>n.isOptionSelected(o.option._key)),W=r=>{var u,K,_,A,U,F;const f=[];!n.props.tree&&n.props.multiple&&n.props.checkbox&&!o.option._noCheckbox&&f.push(e.h(dt._sfc_main,{modelValue:s.value,size:r.checkboxSize,disabled:o.option._disabled}));const b=(K=(u=n.slots).optionLeading)==null?void 0:K.call(u,{...r,option:o.option});return c.isEmptyElement(b)?n.props.tagRenderMode==="avatar"&&n.props.showTriggerTagOnOption?f.push(e.h(ye._sfc_main,{size:r.avatarSize,...((A=(_=n.props).getTagProps)==null?void 0:A.call(_,o.option))??{}})):n.props.tagRenderMode==="go"&&n.props.showTriggerTagOnOption?f.push(e.h(Me._sfc_main,{size:r.iconSize,...((F=(U=n.props).getTagProps)==null?void 0:F.call(U,o.option))??{}})):o.option._icon&&f.push(e.h(Ce._sfc_main,{icon:o.option._icon,size:n.getIconSize.value})):f.push(b),c.isEmptyElement(f)?null:f},z=e.useAttrs(),y=()=>{const r=n.props.tree?void 0:o.option._description,f=(x.isFunction(n.props.getMenuItemProps)?n.props.getMenuItemProps(o.option):n.props.getMenuItemProps)??{};return e.h(Ae._sfc_main$1,{class:i.getBemElement(O,"option"),unFocusable:!0,staticStyle:n.props.tree,description:r,title:o.option._label,key:o.option._key,selected:s.value,leadingCenter:!!r,size:n.getSize.value,disabled:n.props.tree?!1:o.option._disabled,onClick:()=>n.selectOption(o.option),slotProps:o,...f,...z},{leading:W,trailing:n.slots.optionTrailing,title:n.slots.optionTitle,description:n.slots.optionDescription})};return(r,f)=>(e.openBlock(),e.createBlock(y))}}),bt=e.defineComponent({...c.getComponentOptions("ComboboxLabel"),__name:"ComboboxLabel",props:{label:{}},setup(v){return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i.getBemElement)(e.unref(O),"label"))},e.toDisplayString(o.label),3))}}),kt=e.defineComponent({...c.getComponentOptions("Combobox"),__name:"Combobox",props:{modelValue:{},defaultValue:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},highlightOnHover:{type:Boolean},resetSearchTermOnBlur:{type:Boolean,default:!0},resetSearchTermOnSelect:{type:Boolean,default:!0},size:{default:"md"},status:{},noValueOnPlaceholder:{type:Boolean},zIndex:{},checkbox:{type:Boolean,default:!0},tagRenderMode:{default:"chip"},getTagProps:{},tree:{type:Boolean},treeProps:{},contentFit:{type:Boolean},wrapped:{type:Boolean},sortSelectedItems:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},trailingIcon:{default:"tabler:chevron-down"},selectedItemIconAsTrailingIcon:{type:Boolean,default:!0},maxCount:{},to:{},placeholder:{},indicatorIcon:{default:"tabler:check"},options:{},getDisabled:{},getLabel:{},getDescription:{},getValue:{},getNoCheckbox:{},getSingle:{},getClear:{},getOptions:{},getIcon:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{default:10},lazyLoading:{type:Boolean},bordered:{type:Boolean,default:!0},clearOnChangeMultiple:{type:Boolean,default:!0},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean,default:!0},popupHeight:{default:384},popupWidth:{},minWidth:{},search:{},filterOptions:{},expandedKeys:{},noTrigger:{type:Boolean},headerSearch:{type:Boolean},headerSearchInputProps:{},virtual:{type:Boolean},showTriggerTagOnOption:{type:Boolean},disableOutsidePointerEvents:{type:Boolean,default:!0},getMenuItemProps:{},placement:{default:"bottom-start"},containerProps:{},reversePlacementOnDir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},sideOffset:{default:4},alignOffset:{},reference:{},prioritizePosition:{type:Boolean,default:!1},avoidCollisions:{type:Boolean,default:void 0},dir:{}},emits:["update:modelValue","update:expandedKeys","update:search","fetch","search","select","update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(v,{emit:o}){const n=v,s=o,W=x.debounce(t=>{s("search",t)},500),z=c.useVModel(n,"search",s,{passive:n.search===void 0,onChange:W}),y=c.useVModel(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0,onChange(t){!t&&n.resetSearchTermOnBlur&&(z.value=void 0)}}),r=c.useVModel(n,"modelValue",s,{passive:n.modelValue===void 0,onChange:t=>{var l,a;y.value&&!n.multiple&&(y.value=!1),typeof V!==void 0&&(V!=null&&V.value)&&n.sortSelectedItems&&((a=(l=V==null?void 0:V.value)==null?void 0:l.measure)==null||a.call(l))}}),f=c.useVModel(n,"expandedKeys",s,{passive:n.expandedKeys===void 0}),b=x.debounce(t=>{f.value=t},500,{edges:["leading"]}),u=e.useSlots(),K=_e.useEmitAsProps(s),_=e.computed(()=>({...x.omit(K,["update:modelValue","update:search","select"]),...x.pick(n,["placement","reversePlacementOnDir","zIndex","to","sideOffset","alignOffset","reference","prioritizePosition","avoidCollisions","dir","size"])})),A=e.ref();c.useLazyLoading({target:A});const U=i.createOptionGetterFunc({key:"value",getter:n.getValue}),F={getDisabled:i.createOptionGetterFunc({key:"disabled",getter:n.getDisabled,noReturnOption:!0,defaultValue:!1}),getDescription:i.createOptionGetterFunc({key:"description",getter:n.getDescription,noReturnOption:!0}),getValue:U,getLabel:i.createOptionGetterFunc({key:"label",getter:n.getLabel,noReturnOption:!0,defaultValue:U}),getNoCheckbox:i.createOptionGetterFunc({key:"noCheckbox",getter:n.getNoCheckbox,noReturnOption:!0,defaultValue:!1}),getSingle:i.createOptionGetterFunc({key:"single",getter:n.getSingle,noReturnOption:!0,defaultValue:!1}),getClear:i.createOptionGetterFunc({key:"clear",getter:n.getClear,noReturnOption:!0,defaultValue:!1}),getOptions:i.createOptionGetterFunc({key:"options",getter:n.getOptions,noReturnOption:!0}),getIcon:i.createOptionGetterFunc({key:"icon",getter:n.getIcon,noReturnOption:!0})},T=(t,l)=>{var g;const a=`get${l[0].toUpperCase()+l.slice(1)}`;return(g=F[a])==null?void 0:g.call(F,t)},te=(t,l,a)=>!!(!n.tree&&!(l!=null&&l.length)&&(a!=null&&a.length)),N=e.computed(()=>ee.flattenBy_parentKeys({getValue:(t,l,a)=>{const g=T(t,"value");return c.isEmptyLikeLodash(g)&&te(t,l,a)?i.usePCId(ze):g},getDisabled:t=>T(t,"disabled"),arr:n.options??[],getChildren:(t,l)=>{if(!(l!=null&&l.length&&!n.tree))return T(t,"options")},getExtra:t=>{if(t){let l=T(t,"label");return c.isEmptyLikeLodash(l)||(l=String(l)),{_description:T(t,"description"),_label:l,_title:n.tree?l:void 0,_noCheckbox:T(t,"noCheckbox"),_single:T(t,"single"),_clear:T(t,"clear"),_icon:T(t,"icon")}}},allowNoValidKey:te})),p=(t,l=!1)=>t?N.value.filter(a=>{var g;if(l){const P=x.last(a._parentKeys??[]);return P&&P===t}return(g=a._parentKeys)==null?void 0:g.includes(t)}):[],m=t=>{var l;if((l=N.value)!=null&&l.length&&!c.isEmptyLikeLodash(t))return N.value.find(a=>a._key===t)},C=t=>{const l=m(t);return l&&(l._label||l._key)||t},h=t=>{const l=m(t);return l?l._single??!1:!1},q=t=>t===void 0?!1:Array.isArray(r.value)?!!(t&&r.value.includes(t)):r.value===t,k=e.computed(()=>{var g,P,se,ie;let t=[];const l=new Set,a=d=>{d!=null&&d._key&&!l.has(d._key)&&(t.push(x.cloneDeep(d)),l.add(d._key))};if(z.value?(N.value.forEach(d=>{var w,$;if(d._label&&d._label.toLowerCase().includes(z.value.toLowerCase())&&!l.has(d._key)){if(a(d),d._hasChildren&&p(d._key).forEach(a),(w=n.filterOptions)!=null&&w.strictNode)d._parentKeys&&d._parentKeys.forEach(I=>{if(!l.has(I)){const H=m(I);a(H)}});else if(($=d._parentKeys)!=null&&$.length){const I=Le(d._parentKeys);if(!c.isEmptyLikeLodash(I)){if(!l.has(I)){const j=m(I);a(j)}p(I).forEach(a)}}}}),t=t.sort((d,M)=>N.value.findIndex(w=>w._key===d._key)-N.value.findIndex(w=>w._key===M._key))):t=x.cloneDeep(N.value),n.sortSelectedItems&&!n.tree&&!c.isEmptyLikeLodash(r.value)){let d=x.cloneDeep(t);const M=d.filter(B=>q(B._key)),w=Symbol("root"),$=Symbol("rootGroup"),I={},H=(B,L,S=1)=>{const R=d.splice(B,S);d.splice(L,0,...R)},j=B=>B?d.findIndex(L=>L._key===B):-1,ue=B=>{const L=I[B],S=j(L==null?void 0:L.key);return L!=null&&L.length?S+L.length+1:S+1};M.forEach(B=>{var L;if((L=B._parentKeys)!=null&&L.length){const S=Le(B._parentKeys);let R=j(S);const Ve=Math.max(ue(w),ue($));if(R>Ve){const ce=p(S).length;H(R,Ve,ce+1)}if(I[$]={key:S,length:p(S).length},R=j(S),S&&R>-1){const ce=j(B._key);if(I[S]===void 0)H(ce,R+1);else{const rt=ue(S);H(ce,rt)}I[S]={length:void 0,key:B._key}}}else{const S=j(B._key),R=ue(w);S>R&&H(S,R),I[w]={key:B._key,length:B._hasChildren?p(B._key).length:void 0}}d=x.cloneDeep(d)}),t=d}if(n.tree)((g=n.filterOptions)==null?void 0:g.expandParent)==="collapse"?b([]):((P=n.filterOptions)==null?void 0:P.expandParent)==="expand"&&b(t.filter(d=>d._hasChildren).map(d=>d._key));else{let d=x.cloneDeep(t);for(let M=0;M<d.length-1;M++){const w=d[M],$=d[M+1];!$._divider&&($._hasChildren||(se=w._parentKeys)!=null&&se.length&&!((ie=$._parentKeys)!=null&&ie.length))&&(d.splice(M+1,0,{_key:i.usePCId(ze),_divider:!0}),M++)}t=d}return t}),{getDisabled:X,getStatus:oe,getSize:E}=c.useFormInput(),Y=e.computed(()=>{switch(E.value){case"sm":return"xsm";case"lg":return"md";case"md":default:return"sm"}}),xe=e.computed(()=>{switch(E.value){case"sm":return"2xsm";case"lg":return"sm";case"md":default:return"xsm"}}),Z=e.ref(),J={sm:4,md:6,lg:8},ne={sm:14,md:16},le={sm:32,md:50,lg:54},re=e.computed(()=>({get count(){return k.value.length},getScrollElement:()=>{var t;return(t=Z.value)==null?void 0:t.container.viewportElement},estimateSize:t=>{const l=k.value[t];if(!n.tree&&l){if(l._divider)return 1;if(l._label&&l._hasChildren)return 8+(ne[E.value]??ne.md);if(l._description)return le[E.value]??le.md}return ee.systemSizesMap[E.value]??ee.systemSizesMap.md},overscan:5,get gap(){return J[E.value]??0}}));let V,D;if(n.virtual){const{virtualizer:t,...l}=c.useVirtualScroll(re);V=t,D=l}const de=e.computed(()=>{var t;return n.virtual?(((t=V==null?void 0:V.value)==null?void 0:t.getVirtualItems())??[]).map(l=>k.value[l.index]):k.value}),ae=e.computed(()=>(D==null?void 0:D.containerStyles.value)??{}),{inputBindings:Fe,rootBindings:Ne,focused:qe}=c.useInputDataStates({getDisabled:()=>X.value}),Q=e.ref(),ge=()=>{var t;if(y.value&&Q.value&&document.activeElement!==((t=Q.value)==null?void 0:t.input)){Q.value.input.style.pointerEvents="auto";const l=setTimeout(()=>{var a,g;(g=(a=Q.value)==null?void 0:a.focus)==null||g.call(a),clearTimeout(l)},100);Q.value.input.style.pointerEvents=""}},Be=e.computed(()=>!n.noValueOnPlaceholder&&(G.isArray(r.value)?r.value.length===1&&!c.isEmptyLikeLodash(r.value[0]):!c.isEmptyLikeLodash(r.value))),$e=e.computed(()=>{if(Be.value){if(n.multiple&&G.isArray(r.value))return C(x.last(r.value));if(!n.multiple&&!G.isArray(r.value))return C(r.value)}}),{CollectionSlot:Ge,CollectionItem:Se,itemMap:We,getItems:Ue}=c.useCollection({isProvider:!0,key:O}),Oe=()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[],me=e.ref(),fe=t=>{me.value=t},Ee=t=>({"data-disabled":t._disabled?"":void 0,"data-highlighted":me.value===t._key?"":void 0}),ve=e.ref();De({props:n,emit:s,searchModel:z,openModel:y,model:r,slots:u,valuePlaceholder:Be,placeholder:$e,getOptionByValue:m,isOptionSelected:q,getLabelByValue:C,getSingleByValue:h,inputRef:Q,focusOnInput:ge,getDisabled:X,getStatus:oe,getSize:E,getTagSize:Y,getIconSize:xe,comboboxInputBinding:Fe,comboboxTriggerBinding:Ne,comboboxInputFocused:qe,selectOption:(t,l)=>{var a,g;if(l&&((a=ve.value)!=null&&a.onSelect)&&n.tree&&((g=ve.value)==null||g.onSelect(t,!q(t==null?void 0:t._key))),!(n.tree||!t||!t._key||t._disabled))if(n.multiple)if(t._clear)r.value=[],s("select",void 0,!1);else if(t._single)r.value=[t._key],s("select",t._key,!0,t);else{let P=G.isArray(r.value)?r.value:[];const se=P.includes(t._key);P.length===1&&h(P[0])&&t._key!==P[0]&&(P=[]),se?(r.value=P.filter(ie=>ie!==t._key),s("select",t._key,!0,t)):(r.value=[...P,t._key],s("select",t._key,!1,t))}else t._clear?(r.value=void 0,s("select",void 0,!1)):(r.value=t._key,s("select",t._key,!0,t))},itemMap:We,getItems:Ue,highlightedOptionKey:me}),e.watch(()=>[n.clearOnChangeMultiple,n.multiple],()=>{n.clearOnChangeMultiple&&(r.value=void 0)});const He=e.computed(()=>({defaultExpandAll:!0,showLine:!0,selectionBehavior:"replace",...n.treeProps??{},size:E.value,flattenData:!0,outerVirtualScroll:!0,selectable:!0,focusable:!1,multiple:n.multiple,checkable:n.multiple&&n.checkbox,virtual:V,syncCheckboxAndSelect:n.multiple,data:k.value,modelValue:Oe(),checkedKeys:Oe(),class:i.getBemElement(O,"tree")})),je=e.computed(()=>{const t=n.scrollContainerProps??{};return{...t,areaCls:[i.getBemElement(O,"scroll_area"),t==null?void 0:t.class,t==null?void 0:t.areaCls],wrapProps:{...(t==null?void 0:t.wrapProps)??{},style:(D==null?void 0:D.scrollWrapperStyles.value)??{}}}}),Pe=i.getBemElement(O,"popup"),Je=we.cva(Pe,{variants:{size:i.generateVariantClassList(be,Pe)}}),he=t=>{if(ft.isNumber(t))return`${t}px`;if(typeof t=="string")return t},Qe=e.computed(()=>he(n.popupWidth)),Xe=e.computed(()=>he(n.popupHeight)),Ye=e.computed(()=>he(n.minWidth)),Ze=()=>{var a,g;const t=(g=u.header)==null?void 0:g.call(u,{isEmpty:!((a=k.value)!=null&&a.length),search:z.value}),l=!c.isEmptyElement(t);if(l||n.headerSearch)return e.h("div",{class:i.getBemElement(O,"header")},l?t:e.h(ke,n.headerSearchInputProps||{}))},et=()=>{var a,g;const t=(g=u.footer)==null?void 0:g.call(u,{isEmpty:!((a=k.value)!=null&&a.length),search:z.value});if(!c.isEmptyElement(t))return e.h("div",{class:i.getBemElement(O,"footer")},t)},tt=()=>{var a;const t={type:E.value==="sm"?"simple":"advance",...x.omit(n.emptyProps??{},["class"]),class:i.normCls(i.getBemElement(O,"empty"),n.emptyCls)},l=(a=u.empty)==null?void 0:a.call(u,t);return c.isEmptyElement(l)?e.h(pt._sfc_main,t,{title:u.emptyTitle,description:u.emptyDescription,actions:u.emptyActions,image:u.emptyImage}):l},ot=()=>{var l;const t=(l=u.loading)==null?void 0:l.call(u,{});return c.isEmptyElement(t)?new Array(k.value.length?2:n.loadingRowCount).fill(1).map(()=>e.h(gt._sfc_main,{size:E.value,class:i.normCls(i.getBemElement(O,"skeleton"),n.skeletonCls),...x.omit(n.skeletonProps??{},["class"])})):t},nt=(t,l,a)=>{const g=t._clear;if(n.multiple){const P=t._single;g?r.value=[]:P?r.value=[t._key]:r.value=a}else g||!l?r.value=void 0:r.value=t._key;s("select",t._key,l,t)},lt=t=>{t.key==="ArrowDown"&&!y.value?y.value=!0:t.key==="Tab"&&y.value&&(y.value=!1)};return n.disableOutsidePointerEvents&&c.useDisableBodyPointerEvents(y),(t,l)=>(e.openBlock(),e.createBlock(e.unref(at._sfc_main),e.mergeProps({open:e.unref(y),"onUpdate:open":l[2]||(l[2]=a=>e.isRef(y)?y.value=a:null)},_.value,{containerProps:{...t.containerProps??{},onClick:ge},noPadding:!0,size:e.unref(E),containerStyle:{pointerEvents:"auto",display:e.unref(y)?void 0:"none",zIndex:t.zIndex,"--ptc-combobox-popup-width":t.samePopupWidth?void 0:Qe.value,"--ptc-combobox-popup-height":Xe.value,"--ptc-combobox-trigger-min-w":Ye.value},containerCls:e.unref(i.normCls)(e.unref(Je)(n),t.popupCls),onKeydown:lt}),e.createSlots({content:e.withCtx(()=>[e.createVNode(Ze),e.createVNode(e.unref(ct._sfc_main),e.mergeProps({ref_key:"scrollContainerRef",ref:Z},je.value),{default:e.withCtx(()=>[k.value.length||t.loading?(e.openBlock(),e.createBlock(e.unref(Ge),{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i.normCls)(e.unref(i.getBemElement)(e.unref(O),"options"),t.optionsCls)),style:e.normalizeStyle(t.virtual?ae.value:{}),onPointerleave:l[1]||(l[1]=a=>fe(void 0))},[t.tree?(e.openBlock(),e.createBlock(e.unref(ee._sfc_main),e.mergeProps({key:0,ref_key:"treeRef",ref:ve},He.value,{expandedKeys:e.unref(f),"onUpdate:expandedKeys":l[0]||(l[0]=a=>e.isRef(f)?f.value=a:null),onExpand:ge,onSelect:nt}),{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,g=>(e.openBlock(),e.createBlock(e.unref(Se),{key:g._key,value:g._key},{default:e.withCtx(()=>[e.createVNode(e.unref(ee._sfc_main$1),e.mergeProps({node:g},{ref_for:!0},Ee(g),{onPointermove:P=>fe(g._key)}),{default:e.withCtx(()=>[e.createVNode(Te,{option:g},null,8,["option"])]),_:2},1040,["node","onPointermove"])]),_:2},1032,["value"]))),128))]),_:1},16,["expandedKeys"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(de.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a._key},[a._divider?(e.openBlock(),e.createBlock(mt._sfc_main,{key:0})):a._label&&a._hasChildren?(e.openBlock(),e.createBlock(bt,{key:1,label:a._label},null,8,["label"])):a._hasChildren?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Se),{key:2,value:a._key},{default:e.withCtx(()=>[e.createVNode(Te,e.mergeProps({option:a},{ref_for:!0},Ee(a),{onPointermove:g=>fe(a._key)}),null,16,["option","onPointermove"])]),_:2},1032,["value"]))],64))),128)),t.loading?(e.openBlock(),e.createBlock(ot,{key:2})):e.createCommentVNode("",!0)],38)]),_:1})):(e.openBlock(),e.createBlock(tt,{key:1})),t.lazyLoading?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(i.getBemElement)(e.unref(O),"lazy_loading"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i.getBemElement)(e.unref(O),"lazy_loading_trigger")),ref_key:"target",ref:A},null,2)],2)):e.createCommentVNode("",!0)]),_:1},16),e.createVNode(et)]),_:2},[t.noTrigger?void 0:{name:"default",fn:e.withCtx(()=>[e.createVNode(Ct)]),key:"0"}]),1040,["open","containerProps","size","containerStyle","containerCls"]))}});exports.ComboboxSizes=be;exports.ComboboxStatuses=Ke;exports._sfc_main=kt;exports._sfc_main$1=ke;exports.injectComboboxContext=pe;exports.provideComboboxContext=De;
|
|
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
8
8
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
9
9
|
readonly type?: import('..').ButtonType | undefined;
|
|
10
10
|
readonly target?: string | undefined;
|
|
11
|
-
readonly icon?: string | undefined;
|
|
12
11
|
readonly size?: import('..').ButtonSize | undefined;
|
|
12
|
+
readonly icon?: string | undefined;
|
|
13
13
|
readonly noRing?: boolean | undefined;
|
|
14
14
|
readonly loading?: boolean | undefined;
|
|
15
15
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
@@ -206,8 +206,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
206
206
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
207
207
|
readonly type?: import('..').ButtonType | undefined;
|
|
208
208
|
readonly target?: string | undefined;
|
|
209
|
-
readonly icon?: string | undefined;
|
|
210
209
|
readonly size?: import('..').ButtonSize | undefined;
|
|
210
|
+
readonly icon?: string | undefined;
|
|
211
211
|
readonly noRing?: boolean | undefined;
|
|
212
212
|
readonly loading?: boolean | undefined;
|
|
213
213
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
@@ -182,8 +182,8 @@ declare function __VLS_template(): {
|
|
|
182
182
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
183
183
|
readonly type?: import('..').ButtonType | undefined;
|
|
184
184
|
readonly target?: string | undefined;
|
|
185
|
-
readonly icon?: string | undefined;
|
|
186
185
|
readonly size?: import('..').ButtonSize | undefined;
|
|
186
|
+
readonly icon?: string | undefined;
|
|
187
187
|
readonly noRing?: boolean | undefined;
|
|
188
188
|
readonly loading?: boolean | undefined;
|
|
189
189
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
@@ -380,8 +380,8 @@ declare function __VLS_template(): {
|
|
|
380
380
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
381
381
|
readonly type?: import('..').ButtonType | undefined;
|
|
382
382
|
readonly target?: string | undefined;
|
|
383
|
-
readonly icon?: string | undefined;
|
|
384
383
|
readonly size?: import('..').ButtonSize | undefined;
|
|
384
|
+
readonly icon?: string | undefined;
|
|
385
385
|
readonly noRing?: boolean | undefined;
|
|
386
386
|
readonly loading?: boolean | undefined;
|
|
387
387
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
@@ -754,8 +754,8 @@ declare const __VLS_component: import('vue').DefineComponent<CommentEditorProps,
|
|
|
754
754
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
755
755
|
readonly type?: import('..').ButtonType | undefined;
|
|
756
756
|
readonly target?: string | undefined;
|
|
757
|
-
readonly icon?: string | undefined;
|
|
758
757
|
readonly size?: import('..').ButtonSize | undefined;
|
|
758
|
+
readonly icon?: string | undefined;
|
|
759
759
|
readonly noRing?: boolean | undefined;
|
|
760
760
|
readonly loading?: boolean | undefined;
|
|
761
761
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
@@ -952,8 +952,8 @@ declare const __VLS_component: import('vue').DefineComponent<CommentEditorProps,
|
|
|
952
952
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
953
953
|
readonly type?: import('..').ButtonType | undefined;
|
|
954
954
|
readonly target?: string | undefined;
|
|
955
|
-
readonly icon?: string | undefined;
|
|
956
955
|
readonly size?: import('..').ButtonSize | undefined;
|
|
956
|
+
readonly icon?: string | undefined;
|
|
957
957
|
readonly noRing?: boolean | undefined;
|
|
958
958
|
readonly loading?: boolean | undefined;
|
|
959
959
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
8
8
|
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
9
9
|
readonly type?: import('..').ButtonType | undefined;
|
|
10
10
|
readonly target?: string | undefined;
|
|
11
|
-
readonly icon?: string | undefined;
|
|
12
11
|
readonly size?: import('..').ButtonSize | undefined;
|
|
12
|
+
readonly icon?: string | undefined;
|
|
13
13
|
readonly noRing?: boolean | undefined;
|
|
14
14
|
readonly loading?: boolean | undefined;
|
|
15
15
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
package/dist/Comment/index.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { defineComponent as A, ref as R, createElementBlock as F, createCommentVNode as I, unref as n, openBlock as P, normalizeClass as $, createBlock as E, withModifiers as H, createVNode as y, Fragment as
|
|
2
|
-
import { getComponentOptions as z,
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { normCls as C, getBemElement as m, getBemBlock as
|
|
9
|
-
import { _ as D } from "../IconButton.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as Oe } from "../
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
const De = /* @__PURE__ */ A({
|
|
1
|
+
import { defineComponent as A, ref as R, createElementBlock as F, createCommentVNode as I, unref as n, openBlock as P, normalizeClass as $, createBlock as E, withModifiers as H, createVNode as y, Fragment as pe, renderList as W, withCtx as T, createTextVNode as ne, toDisplayString as J, useSlots as Q, createElementVNode as K, h as b, mergeProps as V, isRef as se, createSlots as Y, renderSlot as U, normalizeProps as N, guardReactiveProps as G, computed as L, normalizeStyle as ce, onMounted as de, onBeforeUnmount as ue } from "vue";
|
|
2
|
+
import { getComponentOptions as z, useVModel as Z, isEmptyElement as O, useFormInput as me, useInputDataStates as fe } from "@pantograph/utils-vue";
|
|
3
|
+
import { _ as ie } from "../Avatar.vue_vue_type_style_index_0_lang-DPrsRMvX.js";
|
|
4
|
+
import { _ as he } from "../Badge.vue_vue_type_script_setup_true_lang-CjM2eHxl.js";
|
|
5
|
+
import { cva as Ce } from "class-variance-authority";
|
|
6
|
+
import { _ as ye } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-DsNpKZ1Q.js";
|
|
7
|
+
import { _ as X } from "../Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js";
|
|
8
|
+
import { normCls as C, getBemElement as m, getBemBlock as ge, generateVariantClassList as ve } from "@pantograph/utils";
|
|
9
|
+
import { _ as D } from "../IconButton.vue_vue_type_script_setup_true_lang-ahPqU4HJ.js";
|
|
10
|
+
import { _ as _e } from "../ActionButton.vue_vue_type_script_setup_true_lang-D6GO-k30.js";
|
|
11
|
+
import { createContext as Be } from "reka-ui";
|
|
12
|
+
import { _ as be } from "../Popover.vue_vue_type_style_index_0_lang-QNb3ngGr.js";
|
|
13
|
+
import { _ as Re, a as te } from "../MenuItem.vue_vue_type_style_index_0_lang-3CVlU74B.js";
|
|
14
|
+
import { _ as Pe } from "../GOPicker.vue_vue_type_style_index_0_lang-LCobQHEi.js";
|
|
15
|
+
import { _ as Se } from "../Combobox.vue_vue_type_style_index_0_lang-BA_I2GN7.js";
|
|
16
|
+
import { _ as ke } from "../Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js";
|
|
17
|
+
import { _ as xe } from "../ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js";
|
|
18
|
+
import { _ as Te, a as Oe } from "../Upload.vue_vue_type_style_index_0_lang-RRr-8pG3.js";
|
|
19
|
+
import { omit as $e } from "es-toolkit";
|
|
20
|
+
import { _ as Ee } from "../Shortcut.vue_vue_type_style_index_0_lang-C-wsusvY.js";
|
|
21
|
+
const Me = /* @__PURE__ */ A({
|
|
23
22
|
...z("CommentActions"),
|
|
24
23
|
__name: "CommentActions",
|
|
25
24
|
setup(u) {
|
|
26
|
-
const s =
|
|
25
|
+
const s = ae(), t = R(), e = R(), d = () => {
|
|
27
26
|
s.emit("openActions", e.value);
|
|
28
27
|
}, a = () => {
|
|
29
28
|
s.emit("openReaction", t.value);
|
|
@@ -68,11 +67,11 @@ const De = /* @__PURE__ */ A({
|
|
|
68
67
|
}, null, 512)) : I("", !0)
|
|
69
68
|
], 2)) : I("", !0);
|
|
70
69
|
}
|
|
71
|
-
}),
|
|
70
|
+
}), we = /* @__PURE__ */ A({
|
|
72
71
|
...z("CommentReactions"),
|
|
73
72
|
__name: "CommentReactions",
|
|
74
73
|
setup(u) {
|
|
75
|
-
const s =
|
|
74
|
+
const s = ae(), t = R(), e = () => {
|
|
76
75
|
s.emit("openReaction", t.value);
|
|
77
76
|
}, d = (a) => {
|
|
78
77
|
a && !a.active && s.emit("reaction", a.emoji);
|
|
@@ -83,13 +82,13 @@ const De = /* @__PURE__ */ A({
|
|
|
83
82
|
key: 0,
|
|
84
83
|
class: $(n(C)(n(m)(n(k), "reactions"), n(s).props.reactionsCls))
|
|
85
84
|
}, [
|
|
86
|
-
(P(!0), F(
|
|
85
|
+
(P(!0), F(pe, null, W(n(s).props.reactions, (o) => (P(), E(_e, {
|
|
87
86
|
key: o == null ? void 0 : o.emoji,
|
|
88
87
|
active: o == null ? void 0 : o.active,
|
|
89
88
|
onClick: (v) => d(o)
|
|
90
89
|
}, {
|
|
91
90
|
default: T(() => [
|
|
92
|
-
|
|
91
|
+
ne(J(o == null ? void 0 : o.emoji) + " " + J(o == null ? void 0 : o.count), 1)
|
|
93
92
|
]),
|
|
94
93
|
_: 2
|
|
95
94
|
}, 1032, ["active", "onClick"]))), 128)),
|
|
@@ -106,7 +105,7 @@ const De = /* @__PURE__ */ A({
|
|
|
106
105
|
], 2)) : I("", !0);
|
|
107
106
|
};
|
|
108
107
|
}
|
|
109
|
-
}), k =
|
|
108
|
+
}), k = ge("comment"), [ae, De] = Be("Comment"), to = /* @__PURE__ */ A({
|
|
110
109
|
...z("Comment"),
|
|
111
110
|
__name: "Comment",
|
|
112
111
|
props: {
|
|
@@ -139,8 +138,7 @@ const De = /* @__PURE__ */ A({
|
|
|
139
138
|
},
|
|
140
139
|
emits: ["update:open", "openActions", "reaction", "reply", "openReaction"],
|
|
141
140
|
setup(u, { emit: s }) {
|
|
142
|
-
|
|
143
|
-
const t = u, e = J(), d = s, a = oe(t, "open", d, {
|
|
141
|
+
const t = u, e = Q(), d = s, a = Z(t, "open", d, {
|
|
144
142
|
passive: t.open === void 0
|
|
145
143
|
}), l = () => {
|
|
146
144
|
var g;
|
|
@@ -172,7 +170,7 @@ const De = /* @__PURE__ */ A({
|
|
|
172
170
|
else {
|
|
173
171
|
c = [];
|
|
174
172
|
const B = (_ = e.avatar) == null ? void 0 : _.call(e, {});
|
|
175
|
-
!O(B) ? c.push(B) : t.avatar && c.push(b(
|
|
173
|
+
!O(B) ? c.push(B) : t.avatar && c.push(b(ie, { ...t.avatarProps ?? {}, src: t.avatar }));
|
|
176
174
|
const S = l(), w = p();
|
|
177
175
|
(S || w) && c.push(
|
|
178
176
|
b(
|
|
@@ -184,7 +182,7 @@ const De = /* @__PURE__ */ A({
|
|
|
184
182
|
)
|
|
185
183
|
), c.length || (c = void 0);
|
|
186
184
|
}
|
|
187
|
-
return c ? (c.push(b(
|
|
185
|
+
return c ? (c.push(b(Me)), b(
|
|
188
186
|
"div",
|
|
189
187
|
{ class: C(m(k, "header"), t.headerCls) },
|
|
190
188
|
c
|
|
@@ -201,9 +199,9 @@ const De = /* @__PURE__ */ A({
|
|
|
201
199
|
},
|
|
202
200
|
h ? r : void 0
|
|
203
201
|
);
|
|
204
|
-
}, f = m(k, "replies"), x =
|
|
202
|
+
}, f = m(k, "replies"), x = Ce(f, {
|
|
205
203
|
variants: {
|
|
206
|
-
open:
|
|
204
|
+
open: ve("open", f)
|
|
207
205
|
}
|
|
208
206
|
}), M = () => {
|
|
209
207
|
var _;
|
|
@@ -215,14 +213,14 @@ const De = /* @__PURE__ */ A({
|
|
|
215
213
|
else {
|
|
216
214
|
i.push(
|
|
217
215
|
b(
|
|
218
|
-
|
|
216
|
+
ye,
|
|
219
217
|
{
|
|
220
218
|
size: "xsm",
|
|
221
219
|
bg: "transparent",
|
|
222
220
|
br: "transparent"
|
|
223
221
|
},
|
|
224
222
|
{
|
|
225
|
-
default: () => b(
|
|
223
|
+
default: () => b(X, {
|
|
226
224
|
icon: "tabler:chevron-down",
|
|
227
225
|
class: m(f, "icon"),
|
|
228
226
|
size: "2xsm"
|
|
@@ -230,26 +228,26 @@ const De = /* @__PURE__ */ A({
|
|
|
230
228
|
}
|
|
231
229
|
)
|
|
232
230
|
);
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
|
|
231
|
+
const ee = (w = e.repliesCount) == null ? void 0 : w.call(e, {}), le = !O(ee), oe = (j = e.repliesTitle) == null ? void 0 : j.call(e, {}), re = !O(oe);
|
|
232
|
+
let q;
|
|
233
|
+
re ? q = oe : q = t.repliesTitle, i.push(
|
|
236
234
|
b(
|
|
237
235
|
"div",
|
|
238
236
|
{
|
|
239
237
|
class: C(m(f, "title"), t.repliesTitleCls)
|
|
240
238
|
},
|
|
241
|
-
|
|
239
|
+
q
|
|
242
240
|
)
|
|
243
|
-
), (
|
|
241
|
+
), (le || t.repliesCount) && i.push(
|
|
244
242
|
b(
|
|
245
|
-
|
|
243
|
+
he,
|
|
246
244
|
{
|
|
247
245
|
color: "primary-subtle",
|
|
248
246
|
text: t.repliesCount,
|
|
249
247
|
size: "xsm"
|
|
250
248
|
},
|
|
251
249
|
{
|
|
252
|
-
text: () =>
|
|
250
|
+
text: () => ee
|
|
253
251
|
}
|
|
254
252
|
)
|
|
255
253
|
);
|
|
@@ -292,7 +290,7 @@ const De = /* @__PURE__ */ A({
|
|
|
292
290
|
[c(), g()]
|
|
293
291
|
) : null;
|
|
294
292
|
};
|
|
295
|
-
return
|
|
293
|
+
return De({
|
|
296
294
|
emit: d,
|
|
297
295
|
props: t,
|
|
298
296
|
slots: e
|
|
@@ -300,16 +298,16 @@ const De = /* @__PURE__ */ A({
|
|
|
300
298
|
class: $(n(C)(n(k), t.class))
|
|
301
299
|
}, [
|
|
302
300
|
y(o),
|
|
303
|
-
|
|
301
|
+
K("div", {
|
|
304
302
|
class: $(n(C)(n(m)(n(k), "body"), t.bodyCls))
|
|
305
303
|
}, [
|
|
306
304
|
y(v),
|
|
307
|
-
y(
|
|
305
|
+
y(we),
|
|
308
306
|
y(M)
|
|
309
307
|
], 2)
|
|
310
308
|
], 2));
|
|
311
309
|
}
|
|
312
|
-
}),
|
|
310
|
+
}), no = /* @__PURE__ */ A({
|
|
313
311
|
...z("CommentAction"),
|
|
314
312
|
__name: "CommentAction",
|
|
315
313
|
props: {
|
|
@@ -355,45 +353,44 @@ const De = /* @__PURE__ */ A({
|
|
|
355
353
|
},
|
|
356
354
|
emits: ["edit", "delete", "update:open"],
|
|
357
355
|
setup(u, { emit: s }) {
|
|
358
|
-
K("comment", N);
|
|
359
356
|
const t = u, e = s, d = () => {
|
|
360
357
|
e("edit"), l.value = !1;
|
|
361
358
|
}, a = () => {
|
|
362
359
|
e("delete"), l.value = !1;
|
|
363
|
-
}, l =
|
|
360
|
+
}, l = Z(t, "open", e, {
|
|
364
361
|
passive: t.open === void 0
|
|
365
362
|
});
|
|
366
|
-
return (p, o) => (P(), E(n(
|
|
363
|
+
return (p, o) => (P(), E(n(be), V(t, {
|
|
367
364
|
open: n(l),
|
|
368
|
-
"onUpdate:open": o[0] || (o[0] = (v) =>
|
|
365
|
+
"onUpdate:open": o[0] || (o[0] = (v) => se(l) ? l.value = v : null),
|
|
369
366
|
placement: "bottom-end",
|
|
370
367
|
sideOffset: 3,
|
|
371
368
|
openDelay: 0
|
|
372
369
|
}), {
|
|
373
370
|
content: T(() => [
|
|
374
|
-
y(
|
|
371
|
+
y(Re, { style: { width: "114px" } }, {
|
|
375
372
|
default: T(() => [
|
|
376
|
-
p.hasEdit ? (P(), E(
|
|
373
|
+
p.hasEdit ? (P(), E(te, {
|
|
377
374
|
key: "edit",
|
|
378
375
|
title: p.editText,
|
|
379
376
|
onClick: d
|
|
380
377
|
}, {
|
|
381
378
|
leading: T(({ iconSize: v }) => [
|
|
382
|
-
y(
|
|
379
|
+
y(X, {
|
|
383
380
|
icon: "tabler:edit",
|
|
384
381
|
size: v
|
|
385
382
|
}, null, 8, ["size"])
|
|
386
383
|
]),
|
|
387
384
|
_: 1
|
|
388
385
|
}, 8, ["title"])) : I("", !0),
|
|
389
|
-
p.hasDelete ? (P(), E(
|
|
386
|
+
p.hasDelete ? (P(), E(te, {
|
|
390
387
|
key: "delete",
|
|
391
388
|
title: p.deleteText,
|
|
392
389
|
danger: "",
|
|
393
390
|
onClick: a
|
|
394
391
|
}, {
|
|
395
392
|
leading: T(({ iconSize: v }) => [
|
|
396
|
-
y(
|
|
393
|
+
y(X, {
|
|
397
394
|
icon: "tabler:trash",
|
|
398
395
|
size: v
|
|
399
396
|
}, null, 8, ["size"])
|
|
@@ -407,7 +404,7 @@ const De = /* @__PURE__ */ A({
|
|
|
407
404
|
_: 1
|
|
408
405
|
}, 16, ["open"]));
|
|
409
406
|
}
|
|
410
|
-
}),
|
|
407
|
+
}), so = /* @__PURE__ */ A({
|
|
411
408
|
...z("CommentReaction"),
|
|
412
409
|
__name: "CommentReaction",
|
|
413
410
|
props: {
|
|
@@ -450,13 +447,12 @@ const De = /* @__PURE__ */ A({
|
|
|
450
447
|
},
|
|
451
448
|
emits: ["reaction", "update:open"],
|
|
452
449
|
setup(u, { emit: s }) {
|
|
453
|
-
K("comment", N);
|
|
454
450
|
const t = u, e = s, d = (l) => {
|
|
455
451
|
e("reaction", l.value), a.value = !1;
|
|
456
|
-
}, a =
|
|
452
|
+
}, a = Z(t, "open", e, {
|
|
457
453
|
passive: t.open === void 0
|
|
458
454
|
});
|
|
459
|
-
return (l, p) => (P(), E(n(
|
|
455
|
+
return (l, p) => (P(), E(n(Pe), V(t, {
|
|
460
456
|
noTrigger: "",
|
|
461
457
|
hideClear: "",
|
|
462
458
|
hideGroup: "",
|
|
@@ -472,10 +468,10 @@ const De = /* @__PURE__ */ A({
|
|
|
472
468
|
noModel: "",
|
|
473
469
|
onSelect: d,
|
|
474
470
|
open: n(a),
|
|
475
|
-
"onUpdate:open": p[0] || (p[0] = (o) =>
|
|
471
|
+
"onUpdate:open": p[0] || (p[0] = (o) => se(a) ? a.value = o : null)
|
|
476
472
|
}), null, 16, ["popoverProps", "open"]));
|
|
477
473
|
}
|
|
478
|
-
}),
|
|
474
|
+
}), io = /* @__PURE__ */ A({
|
|
479
475
|
...z("CommentMention"),
|
|
480
476
|
__name: "CommentMention",
|
|
481
477
|
props: {
|
|
@@ -568,24 +564,24 @@ const De = /* @__PURE__ */ A({
|
|
|
568
564
|
},
|
|
569
565
|
emits: ["mention"],
|
|
570
566
|
setup(u, { emit: s }) {
|
|
571
|
-
const t = u, e = s, d =
|
|
567
|
+
const t = u, e = s, d = Q(), a = (l, p, o) => {
|
|
572
568
|
e("mention", l, o);
|
|
573
569
|
};
|
|
574
|
-
return (l, p) => (P(), E(n(
|
|
570
|
+
return (l, p) => (P(), E(n(Se), V(t, {
|
|
575
571
|
modelValue: "",
|
|
576
572
|
onSelect: a,
|
|
577
573
|
noTrigger: "",
|
|
578
574
|
popupWidth: 200
|
|
579
|
-
}),
|
|
580
|
-
|
|
575
|
+
}), Y({ _: 2 }, [
|
|
576
|
+
W(Object.keys(d), (o) => ({
|
|
581
577
|
name: o,
|
|
582
578
|
fn: T((v) => [
|
|
583
|
-
U(l.$slots, o,
|
|
579
|
+
U(l.$slots, o, N(G(v)))
|
|
584
580
|
])
|
|
585
581
|
}))
|
|
586
582
|
]), 1040));
|
|
587
583
|
}
|
|
588
|
-
}),
|
|
584
|
+
}), ao = /* @__PURE__ */ A({
|
|
589
585
|
...z("CommentEditor"),
|
|
590
586
|
__name: "CommentEditor",
|
|
591
587
|
props: {
|
|
@@ -601,12 +597,11 @@ const De = /* @__PURE__ */ A({
|
|
|
601
597
|
},
|
|
602
598
|
emits: ["openReaction", "openMention", "blur", "focus", "mention", "submit"],
|
|
603
599
|
setup(u, { emit: s }) {
|
|
604
|
-
|
|
605
|
-
const t = J(), e = u, d = s, a = m(k, "editor"), l = R(), p = () => {
|
|
600
|
+
const t = Q(), e = u, d = s, a = m(k, "editor"), l = R(), p = () => {
|
|
606
601
|
d("openReaction", l.value);
|
|
607
602
|
}, o = R(), v = () => {
|
|
608
603
|
d("openMention", o.value);
|
|
609
|
-
}, { getDisabled: f } =
|
|
604
|
+
}, { getDisabled: f } = me(), { rootBindings: x, inputBindings: M } = fe({
|
|
610
605
|
getDisabled: () => f.value,
|
|
611
606
|
emit: d
|
|
612
607
|
}), r = () => d("submit"), h = L(() => {
|
|
@@ -621,33 +616,33 @@ const De = /* @__PURE__ */ A({
|
|
|
621
616
|
return (_, B) => (P(), F("div", V({
|
|
622
617
|
class: n(C)(n(a), e.class)
|
|
623
618
|
}, n(x)), [
|
|
624
|
-
y(
|
|
619
|
+
y(xe, {
|
|
625
620
|
overlay: !1,
|
|
626
621
|
hasMask: !1,
|
|
627
622
|
class: $(n(C)(n(m)(n(a), "editor"), "paragraph", e.editorCls)),
|
|
628
|
-
style:
|
|
623
|
+
style: ce({ maxHeight: h.value })
|
|
629
624
|
}, {
|
|
630
625
|
default: T(() => [
|
|
631
|
-
U(_.$slots, "default",
|
|
626
|
+
U(_.$slots, "default", N(G(n(M))))
|
|
632
627
|
]),
|
|
633
628
|
_: 3
|
|
634
629
|
}, 8, ["class", "style"]),
|
|
635
|
-
y(
|
|
630
|
+
y(Te, V({ noTrigger: "" }, _.uploadProps, {
|
|
636
631
|
ref_key: "uploadRef",
|
|
637
632
|
ref: c
|
|
638
|
-
}),
|
|
639
|
-
|
|
633
|
+
}), Y({ _: 2 }, [
|
|
634
|
+
W(Object.keys(n($e)(t, ["default"])), (i) => ({
|
|
640
635
|
name: i,
|
|
641
636
|
fn: T((S) => [
|
|
642
|
-
U(_.$slots, i,
|
|
637
|
+
U(_.$slots, i, N(G(S)))
|
|
643
638
|
])
|
|
644
639
|
}))
|
|
645
640
|
]), 1040),
|
|
646
|
-
|
|
641
|
+
K("div", {
|
|
647
642
|
class: $(n(C)(n(m)(n(a), "footer"), e.footerCls))
|
|
648
643
|
}, [
|
|
649
|
-
y(
|
|
650
|
-
|
|
644
|
+
y(ke),
|
|
645
|
+
K("div", {
|
|
651
646
|
class: $(n(C)(n(m)(n(a), "actions"), e.actionsCls))
|
|
652
647
|
}, [
|
|
653
648
|
y(D, {
|
|
@@ -660,7 +655,7 @@ const De = /* @__PURE__ */ A({
|
|
|
660
655
|
}, ["stop"])),
|
|
661
656
|
onClick: v
|
|
662
657
|
}, null, 512),
|
|
663
|
-
y(
|
|
658
|
+
y(Oe, {
|
|
664
659
|
accept: "image/*",
|
|
665
660
|
multiple: "",
|
|
666
661
|
onAddFiles: g
|
|
@@ -693,7 +688,7 @@ const De = /* @__PURE__ */ A({
|
|
|
693
688
|
], 2)
|
|
694
689
|
], 16));
|
|
695
690
|
}
|
|
696
|
-
}),
|
|
691
|
+
}), Ae = ["tabindex", "disabled"], lo = /* @__PURE__ */ A({
|
|
697
692
|
...z("CommentTrigger"),
|
|
698
693
|
__name: "CommentTrigger",
|
|
699
694
|
props: {
|
|
@@ -708,13 +703,12 @@ const De = /* @__PURE__ */ A({
|
|
|
708
703
|
},
|
|
709
704
|
emits: ["add"],
|
|
710
705
|
setup(u, { emit: s }) {
|
|
711
|
-
|
|
712
|
-
const t = J(), e = u, d = s, a = m(k, "trigger"), l = (o) => {
|
|
706
|
+
const t = Q(), e = u, d = s, a = m(k, "trigger"), l = (o) => {
|
|
713
707
|
!e.ignoeShortcut && o.code === "KeyC" && o.altKey && p(o);
|
|
714
708
|
};
|
|
715
|
-
|
|
709
|
+
de(() => {
|
|
716
710
|
e.withShortcut && addEventListener("keyup", l);
|
|
717
|
-
}),
|
|
711
|
+
}), ue(() => {
|
|
718
712
|
e.withShortcut && removeEventListener("keyup", l);
|
|
719
713
|
}), e.withShortcut;
|
|
720
714
|
const p = (o) => d("add", o);
|
|
@@ -725,25 +719,25 @@ const De = /* @__PURE__ */ A({
|
|
|
725
719
|
onPointerdown: H(p, ["stop"]),
|
|
726
720
|
onKeyup: H(p, ["stop"])
|
|
727
721
|
}, [
|
|
728
|
-
y(
|
|
722
|
+
y(ie, V(o.avatarProps ?? {}, {
|
|
729
723
|
size: "sm",
|
|
730
724
|
src: o.src
|
|
731
|
-
}),
|
|
732
|
-
|
|
725
|
+
}), Y({ _: 2 }, [
|
|
726
|
+
W(Object.keys(t), (f) => ({
|
|
733
727
|
name: f,
|
|
734
728
|
fn: T((x) => [
|
|
735
|
-
U(o.$slots, f,
|
|
729
|
+
U(o.$slots, f, N(G(x)))
|
|
736
730
|
])
|
|
737
731
|
}))
|
|
738
732
|
]), 1040, ["src"]),
|
|
739
|
-
|
|
733
|
+
K("div", {
|
|
740
734
|
class: $(n(m)(n(a), "text"))
|
|
741
735
|
}, [
|
|
742
736
|
U(o.$slots, "text", {}, () => [
|
|
743
|
-
|
|
737
|
+
ne(J(o.text), 1)
|
|
744
738
|
])
|
|
745
739
|
], 2),
|
|
746
|
-
y(
|
|
740
|
+
y(Ee, V(o.shortcutProps ?? {}, { items: [
|
|
747
741
|
{
|
|
748
742
|
text: "Alt"
|
|
749
743
|
},
|
|
@@ -751,9 +745,9 @@ const De = /* @__PURE__ */ A({
|
|
|
751
745
|
text: "C"
|
|
752
746
|
}
|
|
753
747
|
] }), null, 16)
|
|
754
|
-
], 42,
|
|
748
|
+
], 42, Ae));
|
|
755
749
|
}
|
|
756
|
-
}),
|
|
750
|
+
}), ro = (u) => {
|
|
757
751
|
const s = R(!1), t = R(), e = R(!1), d = (i, S = !1) => {
|
|
758
752
|
s.value = !0, e.value = S, t.value = i;
|
|
759
753
|
}, a = R(!1), l = R(), p = (i) => {
|
|
@@ -814,14 +808,14 @@ const De = /* @__PURE__ */ A({
|
|
|
814
808
|
};
|
|
815
809
|
};
|
|
816
810
|
export {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
811
|
+
to as Comment,
|
|
812
|
+
no as CommentAction,
|
|
813
|
+
ao as CommentEditor,
|
|
814
|
+
io as CommentMention,
|
|
815
|
+
so as CommentReaction,
|
|
816
|
+
lo as CommentTrigger,
|
|
823
817
|
k as commentPrefix,
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
818
|
+
ae as injectCommentContext,
|
|
819
|
+
De as provideCommentContext,
|
|
820
|
+
ro as useComment
|
|
827
821
|
};
|