@nextcloud/vue 9.0.0-alpha.5 → 9.0.0-alpha.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/CHANGELOG.md +421 -12
- package/README.md +59 -71
- package/dist/assets/NcActionButton-CVjVxm7I.css +108 -0
- package/dist/assets/NcActionCaption-BNDtcWJ7.css +32 -0
- package/dist/assets/NcActionCheckbox-CnTyr-NN.css +80 -0
- package/dist/assets/NcActionInput-D19t1QsM.css +226 -0
- package/dist/assets/NcActionLink-DA3ebr8W.css +94 -0
- package/dist/assets/NcActionRadio-C7Kqlz6k.css +79 -0
- package/dist/assets/NcActionRouter-BtJqkgqu.css +105 -0
- package/dist/assets/NcActionText-FHEPUweO.css +109 -0
- package/dist/assets/NcActionTextEditable-DzNRmwkV.css +244 -0
- package/dist/assets/NcActions-BepWTc-7.css +80 -0
- package/dist/assets/NcAppContent-BZ3rplmb.css +124 -0
- package/dist/assets/NcAppNavigation-_K9H-MtG.css +108 -0
- package/dist/assets/NcAppNavigationCaption-B6mZd0E3.css +49 -0
- package/dist/assets/NcAppNavigationIconBullet-CeBYVy6t.css +30 -0
- package/dist/assets/NcAppNavigationItem-PKTHyQue.css +215 -0
- package/dist/assets/NcAppNavigationList-CLLHyHIn.css +28 -0
- package/dist/assets/NcAppNavigationNewItem-rCrG0Uuo.css +198 -0
- package/dist/assets/NcAppNavigationSearch-Bsr4esEc.css +41 -0
- package/dist/assets/NcAppNavigationSettings-BDc6Mtek.css +29 -0
- package/dist/assets/NcAppNavigationToggle-By3_rHPL.css +27 -0
- package/dist/assets/NcAppSettingsDialog-c8Xj_A-1.css +72 -0
- package/dist/assets/NcAppSettingsSection-DnDcGk1v.css +30 -0
- package/dist/assets/NcAppSidebar-g99AGRiQ.css +364 -0
- package/dist/assets/NcAvatar-Bg20-FW4.css +132 -0
- package/dist/assets/NcBlurHash-7aGtE-_T.css +8 -0
- package/dist/assets/NcBreadcrumb-r0TATv9A.css +68 -0
- package/dist/assets/NcBreadcrumbs-Bbd8rdwH.css +37 -0
- package/dist/assets/NcButton-C50FLvfa.css +210 -0
- package/dist/assets/NcCheckboxRadioSwitch-jfJIoM4m.css +199 -0
- package/dist/assets/NcChip-BWWUudAH.css +65 -0
- package/dist/assets/NcCollectionList-COXbQt16.css +221 -0
- package/dist/assets/NcColorPicker-3h8DrL_S.css +171 -0
- package/dist/assets/NcContent-BgziefsK.css +79 -0
- package/dist/assets/NcCounterBubble-DWgyYB0d.css +53 -0
- package/dist/assets/NcDashboardWidget-Cdxxd7ei.css +73 -0
- package/dist/assets/NcDashboardWidgetItem-B8_6-_k8.css +85 -0
- package/dist/assets/NcDateTimePicker-CRb2xZzf.css +918 -0
- package/dist/assets/NcDateTimePickerNative-pbWtBuzt.css +60 -0
- package/dist/assets/NcDialog-DL7A_udP.css +131 -0
- package/dist/assets/NcEllipsisedOption-DGr9_bIL.css +34 -0
- package/dist/assets/NcEmojiPicker-Bfk2pnZE.css +576 -0
- package/dist/assets/NcHeaderButton-cVjCMSVn.css +50 -0
- package/dist/assets/NcHeaderMenu-QJK2rMK3.css +84 -0
- package/dist/assets/NcInputField-CRvNH5sg.css +169 -0
- package/dist/assets/NcListItem-BEfZK5UK.css +186 -0
- package/dist/assets/NcListItemIcon-E21VFJqd.css +72 -0
- package/dist/assets/NcMentionBubble-BL05HUeF.css +72 -0
- package/dist/assets/NcNoteCard-C6xb7vi0.css +55 -0
- package/dist/assets/NcPasswordField-Bl9fhgy-.css +21 -0
- package/dist/assets/NcPopover-ChETNAVH.css +110 -0
- package/dist/assets/NcRelatedResourcesPanel-Chjd8iT7.css +158 -0
- package/dist/assets/NcRichContenteditable-BwHgQWPX.css +271 -0
- package/dist/assets/NcRichText-fo4QE8--.css +326 -0
- package/dist/assets/NcSelect-GdIw6cIy.css +199 -0
- package/dist/assets/NcSettingsSection-Dyrgo_fF.css +53 -0
- package/dist/assets/NcTextArea-BfSGN55r.css +112 -0
- package/dist/assets/NcUserBubble-tSs2XTDQ.css +48 -0
- package/dist/assets/index-BRaTLqzR.css +284 -0
- package/dist/assets/referencePickerModal-Cy43S4js.css +413 -0
- package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs +48 -0
- package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs.map +1 -0
- package/dist/chunks/ArrowLeft-CanHG70H.mjs +48 -0
- package/dist/chunks/ArrowLeft-CanHG70H.mjs.map +1 -0
- package/dist/chunks/ArrowRight-DQT24Cb-.mjs +48 -0
- package/dist/chunks/ArrowRight-DQT24Cb-.mjs.map +1 -0
- package/dist/chunks/Check-5i4xKnkl.mjs +48 -0
- package/dist/chunks/Check-5i4xKnkl.mjs.map +1 -0
- package/dist/chunks/ChevronDown-FiGpp0KT.mjs +48 -0
- package/dist/chunks/ChevronDown-FiGpp0KT.mjs.map +1 -0
- package/dist/chunks/ChevronLeft-FfC-tiIS.mjs +48 -0
- package/dist/chunks/ChevronLeft-FfC-tiIS.mjs.map +1 -0
- package/dist/chunks/ChevronRight-LvtA5_hq.mjs +48 -0
- package/dist/chunks/ChevronRight-LvtA5_hq.mjs.map +1 -0
- package/dist/chunks/ChevronUp-DPXFp1ss.mjs +48 -0
- package/dist/chunks/ChevronUp-DPXFp1ss.mjs.map +1 -0
- package/dist/chunks/Close-idsVwGrC.mjs +48 -0
- package/dist/chunks/Close-idsVwGrC.mjs.map +1 -0
- package/dist/chunks/DotsHorizontal-AMVAlTNH.mjs +48 -0
- package/dist/chunks/DotsHorizontal-AMVAlTNH.mjs.map +1 -0
- package/dist/chunks/GenColors-G1ZRJcz5.mjs +133 -0
- package/dist/chunks/GenColors-G1ZRJcz5.mjs.map +1 -0
- package/dist/chunks/GenRandomId-CMooMQt0.mjs.map +1 -1
- package/dist/chunks/NcActionButton-DBFJTCO5.mjs +234 -0
- package/dist/chunks/NcActionButton-DBFJTCO5.mjs.map +1 -0
- package/dist/chunks/NcActionButtonGroup-nwHeJeV7.mjs +58 -0
- package/dist/chunks/NcActionButtonGroup-nwHeJeV7.mjs.map +1 -0
- package/dist/chunks/NcActionCaption-DmOKI_Kc.mjs +32 -0
- package/dist/chunks/NcActionCaption-DmOKI_Kc.mjs.map +1 -0
- package/dist/chunks/NcActionCheckbox-yPCmA5vr.mjs +125 -0
- package/dist/chunks/NcActionCheckbox-yPCmA5vr.mjs.map +1 -0
- package/dist/chunks/NcActionInput-DTzVHmHn.mjs +358 -0
- package/dist/chunks/NcActionInput-DTzVHmHn.mjs.map +1 -0
- package/dist/chunks/NcActionLink-CG3cKif-.mjs +120 -0
- package/dist/chunks/NcActionLink-CG3cKif-.mjs.map +1 -0
- package/dist/chunks/NcActionRadio-BWPi0DII.mjs +134 -0
- package/dist/chunks/NcActionRadio-BWPi0DII.mjs.map +1 -0
- package/dist/chunks/NcActionRouter-C7VSuJLq.mjs +81 -0
- package/dist/chunks/NcActionRouter-C7VSuJLq.mjs.map +1 -0
- package/dist/chunks/NcActionSeparator-Doekl1NX.mjs +17 -0
- package/dist/chunks/NcActionSeparator-Doekl1NX.mjs.map +1 -0
- package/dist/chunks/NcActionText-ByD1mFXe.mjs +63 -0
- package/dist/chunks/NcActionText-ByD1mFXe.mjs.map +1 -0
- package/dist/chunks/NcActionTextEditable-DLKA6lfe.mjs +145 -0
- package/dist/chunks/NcActionTextEditable-DLKA6lfe.mjs.map +1 -0
- package/dist/chunks/NcActions-DxTtucKk.mjs +725 -0
- package/dist/chunks/NcActions-DxTtucKk.mjs.map +1 -0
- package/dist/chunks/NcAppContent-Cu9zhNK3.mjs +364 -0
- package/dist/chunks/NcAppContent-Cu9zhNK3.mjs.map +1 -0
- package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs +15 -0
- package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs.map +1 -0
- package/dist/chunks/NcAppContentList-DnLY_sWw.mjs +26 -0
- package/dist/chunks/NcAppContentList-DnLY_sWw.mjs.map +1 -0
- package/dist/chunks/NcAppNavigation-BxUvXgeG.mjs +166 -0
- package/dist/chunks/NcAppNavigation-BxUvXgeG.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationCaption-S_2Jmwqr.mjs +97 -0
- package/dist/chunks/NcAppNavigationCaption-S_2Jmwqr.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationIconBullet-B1kc4u65.mjs +43 -0
- package/dist/chunks/NcAppNavigationIconBullet-B1kc4u65.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationItem-C7bIZuo2.mjs +623 -0
- package/dist/chunks/NcAppNavigationItem-C7bIZuo2.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationList-DX_Yo23V.mjs +16 -0
- package/dist/chunks/NcAppNavigationList-DX_Yo23V.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationNew-BO-Llutk.mjs +57 -0
- package/dist/chunks/NcAppNavigationNew-BO-Llutk.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationNewItem-D7CYmmOm.mjs +120 -0
- package/dist/chunks/NcAppNavigationNewItem-D7CYmmOm.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationSearch-DLbzvkkq.mjs +104 -0
- package/dist/chunks/NcAppNavigationSearch-DLbzvkkq.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationSettings-vM8ajNNK.mjs +131 -0
- package/dist/chunks/NcAppNavigationSettings-vM8ajNNK.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs +14 -0
- package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationToggle-DBtf139E.mjs +158 -0
- package/dist/chunks/NcAppNavigationToggle-DBtf139E.mjs.map +1 -0
- package/dist/chunks/NcAppSettingsDialog-CdFUuydh.mjs +254 -0
- package/dist/chunks/NcAppSettingsDialog-CdFUuydh.mjs.map +1 -0
- package/dist/chunks/NcAppSettingsSection-CssmXyZ0.mjs +63 -0
- package/dist/chunks/NcAppSettingsSection-CssmXyZ0.mjs.map +1 -0
- package/dist/chunks/NcAppSidebar-Dav-iGv2.mjs +978 -0
- package/dist/chunks/NcAppSidebar-Dav-iGv2.mjs.map +1 -0
- package/dist/chunks/NcAppSidebarTab-DG51ajic.mjs +92 -0
- package/dist/chunks/NcAppSidebarTab-DG51ajic.mjs.map +1 -0
- package/dist/chunks/NcAvatar-A1YnlIoN.mjs +654 -0
- package/dist/chunks/NcAvatar-A1YnlIoN.mjs.map +1 -0
- package/dist/chunks/NcBlurHash-BiFktE2N.mjs +98 -0
- package/dist/chunks/NcBlurHash-BiFktE2N.mjs.map +1 -0
- package/dist/chunks/NcBreadcrumb-D5cRcQg5.mjs +243 -0
- package/dist/chunks/NcBreadcrumb-D5cRcQg5.mjs.map +1 -0
- package/dist/chunks/NcBreadcrumbs-CnWT9rE5.mjs +458 -0
- package/dist/chunks/NcBreadcrumbs-CnWT9rE5.mjs.map +1 -0
- package/dist/chunks/NcButton-QmfEsvXC.mjs +298 -0
- package/dist/chunks/NcButton-QmfEsvXC.mjs.map +1 -0
- package/dist/chunks/NcCheckboxRadioSwitch-Ctdu7_UC.mjs +800 -0
- package/dist/chunks/NcCheckboxRadioSwitch-Ctdu7_UC.mjs.map +1 -0
- package/dist/chunks/NcChip-BnD-EmBn.mjs +134 -0
- package/dist/chunks/NcChip-BnD-EmBn.mjs.map +1 -0
- package/dist/chunks/NcCollectionList-9YfN6xAi.mjs +585 -0
- package/dist/chunks/NcCollectionList-9YfN6xAi.mjs.map +1 -0
- package/dist/chunks/NcColorPicker-DQqAv2wB.mjs +274 -0
- package/dist/chunks/NcColorPicker-DQqAv2wB.mjs.map +1 -0
- package/dist/chunks/NcContent-CsDFFKvH.mjs +130 -0
- package/dist/chunks/NcContent-CsDFFKvH.mjs.map +1 -0
- package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs +77 -0
- package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs.map +1 -0
- package/dist/chunks/NcDashboardWidget-ROT13m5A.mjs +184 -0
- package/dist/chunks/NcDashboardWidget-ROT13m5A.mjs.map +1 -0
- package/dist/chunks/NcDashboardWidgetItem-DoYOYxck.mjs +197 -0
- package/dist/chunks/NcDashboardWidgetItem-DoYOYxck.mjs.map +1 -0
- package/dist/chunks/NcDateTime-D3snW0sN.mjs +65 -0
- package/dist/chunks/NcDateTime-D3snW0sN.mjs.map +1 -0
- package/dist/chunks/NcDateTimePicker-DUPn2UCM.mjs +377 -0
- package/dist/chunks/NcDateTimePicker-DUPn2UCM.mjs.map +1 -0
- package/dist/chunks/NcDateTimePickerNative-Dbc6pBXk.mjs +202 -0
- package/dist/chunks/NcDateTimePickerNative-Dbc6pBXk.mjs.map +1 -0
- package/dist/chunks/NcDialog-B81mllwn.mjs +318 -0
- package/dist/chunks/NcDialog-B81mllwn.mjs.map +1 -0
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DgWqkSL7.mjs +120 -0
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DgWqkSL7.mjs.map +1 -0
- package/dist/chunks/NcEllipsisedOption-D4OggsNq.mjs +105 -0
- package/dist/chunks/NcEllipsisedOption-D4OggsNq.mjs.map +1 -0
- package/dist/chunks/NcEmojiPicker-DKGBXunS.mjs +396 -0
- package/dist/chunks/NcEmojiPicker-DKGBXunS.mjs.map +1 -0
- package/dist/chunks/NcEmptyContent-D-wBvEi4.mjs +67 -0
- package/dist/chunks/NcEmptyContent-D-wBvEi4.mjs.map +1 -0
- package/dist/chunks/NcGuestContent-iQpV7mLC.mjs +22 -0
- package/dist/chunks/NcGuestContent-iQpV7mLC.mjs.map +1 -0
- package/dist/chunks/NcHeaderButton-Cq62USyt.mjs +48 -0
- package/dist/chunks/NcHeaderButton-Cq62USyt.mjs.map +1 -0
- package/dist/chunks/NcHeaderMenu-BRiroRYT.mjs +142 -0
- package/dist/chunks/NcHeaderMenu-BRiroRYT.mjs.map +1 -0
- package/dist/chunks/NcHighlight-BHtRIzqk.mjs.map +1 -1
- package/dist/chunks/NcIconSvgWrapper-BYTrkA66.mjs +106 -0
- package/dist/chunks/NcIconSvgWrapper-BYTrkA66.mjs.map +1 -0
- package/dist/chunks/NcInputConfirmCancel-xnrPAGac.mjs +116 -0
- package/dist/chunks/NcInputConfirmCancel-xnrPAGac.mjs.map +1 -0
- package/dist/chunks/NcInputField-CzC820tG.mjs +305 -0
- package/dist/chunks/NcInputField-CzC820tG.mjs.map +1 -0
- package/dist/chunks/NcListItem-DFLsabmR.mjs +381 -0
- package/dist/chunks/NcListItem-DFLsabmR.mjs.map +1 -0
- package/dist/chunks/NcListItemIcon-BK9GBjoD.mjs +206 -0
- package/dist/chunks/NcListItemIcon-BK9GBjoD.mjs.map +1 -0
- package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs +78 -0
- package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs.map +1 -0
- package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_6c8d0da9_lang-DYJMHclV.mjs +12 -0
- package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_6c8d0da9_lang-DYJMHclV.mjs.map +1 -0
- package/dist/chunks/NcNoteCard-XoSOund1.mjs +275 -0
- package/dist/chunks/NcNoteCard-XoSOund1.mjs.map +1 -0
- package/dist/chunks/NcPasswordField-BLHAdm-k.mjs +297 -0
- package/dist/chunks/NcPasswordField-BLHAdm-k.mjs.map +1 -0
- package/dist/chunks/NcPopover-D4D97Y3j.mjs +258 -0
- package/dist/chunks/NcPopover-D4D97Y3j.mjs.map +1 -0
- package/dist/chunks/NcProgressBar-Bx8bMkd4.mjs +147 -0
- package/dist/chunks/NcProgressBar-Bx8bMkd4.mjs.map +1 -0
- package/dist/chunks/NcRelatedResourcesPanel-DsuNT9hM.mjs +551 -0
- package/dist/chunks/NcRelatedResourcesPanel-DsuNT9hM.mjs.map +1 -0
- package/dist/chunks/NcRichContenteditable-BkSojqgy.mjs +740 -0
- package/dist/chunks/NcRichContenteditable-BkSojqgy.mjs.map +1 -0
- package/dist/chunks/NcRichText-Cn583bql.mjs +414 -0
- package/dist/chunks/NcRichText-Cn583bql.mjs.map +1 -0
- package/dist/chunks/NcSavingIndicatorIcon-icWy8J5x.mjs +79 -0
- package/dist/chunks/NcSavingIndicatorIcon-icWy8J5x.mjs.map +1 -0
- package/dist/chunks/NcSelect-B61ik8an.mjs +577 -0
- package/dist/chunks/NcSelect-B61ik8an.mjs.map +1 -0
- package/dist/chunks/NcSelectTags-Dx3nG6jx.mjs +302 -0
- package/dist/chunks/NcSelectTags-Dx3nG6jx.mjs.map +1 -0
- package/dist/chunks/NcSettingsInputText-B5FrLCL9.mjs +122 -0
- package/dist/chunks/NcSettingsInputText-B5FrLCL9.mjs.map +1 -0
- package/dist/chunks/NcSettingsSection-CAdn6gS9.mjs +115 -0
- package/dist/chunks/NcSettingsSection-CAdn6gS9.mjs.map +1 -0
- package/dist/chunks/NcSettingsSelectGroup-CKIbxms2.mjs +226 -0
- package/dist/chunks/NcSettingsSelectGroup-CKIbxms2.mjs.map +1 -0
- package/dist/chunks/NcTextArea-C-PMlEbl.mjs +216 -0
- package/dist/chunks/NcTextArea-C-PMlEbl.mjs.map +1 -0
- package/dist/chunks/NcTextField-CNV42Zey.mjs +173 -0
- package/dist/chunks/NcTextField-CNV42Zey.mjs.map +1 -0
- package/dist/chunks/NcTimezonePicker-tZmX1Qp4.mjs +187 -0
- package/dist/chunks/NcTimezonePicker-tZmX1Qp4.mjs.map +1 -0
- package/dist/chunks/NcUserBubble-MfDc1YR2.mjs +227 -0
- package/dist/chunks/NcUserBubble-MfDc1YR2.mjs.map +1 -0
- package/dist/chunks/NcUserStatusIcon-vtnkNASH.mjs +136 -0
- package/dist/chunks/NcUserStatusIcon-vtnkNASH.mjs.map +1 -0
- package/dist/chunks/ScopeComponent-DgRMJomt.mjs +14 -0
- package/dist/chunks/ScopeComponent-DgRMJomt.mjs.map +1 -0
- package/dist/chunks/_l10n-BEP_UzXI.mjs +133 -0
- package/dist/chunks/_l10n-BEP_UzXI.mjs.map +1 -0
- package/dist/chunks/actionGlobal-BZFdtdJL.mjs.map +1 -1
- package/dist/chunks/actionText-aI0owku1.mjs.map +1 -1
- package/dist/chunks/autolink-CKPk5rzg.mjs.map +1 -1
- package/dist/chunks/emoji-BY_D0V5K.mjs +64 -0
- package/dist/chunks/emoji-BY_D0V5K.mjs.map +1 -0
- package/dist/chunks/focusTrap-DmkaYJTC.mjs +31 -0
- package/dist/chunks/focusTrap-DmkaYJTC.mjs.map +1 -0
- package/dist/chunks/index-BF8joS9W.mjs +116 -0
- package/dist/chunks/index-BF8joS9W.mjs.map +1 -0
- package/dist/chunks/index-wLgC9ACl.mjs +183 -0
- package/dist/chunks/index-wLgC9ACl.mjs.map +1 -0
- package/dist/chunks/logger-D3RVzcfQ.mjs +5 -0
- package/dist/chunks/logger-D3RVzcfQ.mjs.map +1 -0
- package/dist/chunks/referencePickerModal-CzI44bxD.mjs +1362 -0
- package/dist/chunks/referencePickerModal-CzI44bxD.mjs.map +1 -0
- package/dist/chunks/rtl-v0UOPAM7.mjs +5 -0
- package/dist/chunks/rtl-v0UOPAM7.mjs.map +1 -0
- package/dist/chunks/useFormatDateTime-Cvc8YJRE.mjs +86 -0
- package/dist/chunks/useFormatDateTime-Cvc8YJRE.mjs.map +1 -0
- package/dist/chunks/useTrapStackControl-b3A_383w.mjs +22 -0
- package/dist/chunks/useTrapStackControl-b3A_383w.mjs.map +1 -0
- package/dist/chunks/usernameToColor-B_Q_sS3j.mjs +26 -0
- package/dist/chunks/usernameToColor-B_Q_sS3j.mjs.map +1 -0
- package/dist/components/NcActionButton/NcActionButton.vue.d.ts +16 -10
- package/dist/components/NcActionButton/index.mjs +4 -0
- package/dist/components/NcActionButton/index.mjs.map +1 -0
- package/dist/components/NcActionButtonGroup/NcActionButtonGroup.vue.d.ts +5 -5
- package/dist/components/NcActionButtonGroup/index.mjs +4 -0
- package/dist/components/NcActionButtonGroup/index.mjs.map +1 -0
- package/dist/components/NcActionCaption/NcActionCaption.vue.d.ts +3 -3
- package/dist/components/NcActionCaption/index.mjs +4 -0
- package/dist/components/NcActionCaption/index.mjs.map +1 -0
- package/dist/components/NcActionCheckbox/NcActionCheckbox.vue.d.ts +7 -7
- package/dist/components/NcActionCheckbox/index.mjs +4 -0
- package/dist/components/NcActionCheckbox/index.mjs.map +1 -0
- package/dist/components/NcActionInput/index.mjs +4 -0
- package/dist/components/NcActionInput/index.mjs.map +1 -0
- package/dist/components/NcActionLink/index.mjs +4 -0
- package/dist/components/NcActionLink/index.mjs.map +1 -0
- package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +16 -14
- package/dist/components/NcActionRadio/index.mjs +4 -0
- package/dist/components/NcActionRadio/index.mjs.map +1 -0
- package/dist/components/NcActionRouter/NcActionRouter.vue.d.ts +4 -4
- package/dist/components/NcActionRouter/index.mjs +4 -0
- package/dist/components/NcActionRouter/index.mjs.map +1 -0
- package/dist/components/NcActionSeparator/NcActionSeparator.vue.d.ts +1 -1
- package/dist/components/NcActionSeparator/index.mjs +4 -0
- package/dist/components/NcActionSeparator/index.mjs.map +1 -0
- package/dist/components/NcActionText/NcActionText.vue.d.ts +1 -1
- package/dist/components/NcActionText/index.mjs +4 -0
- package/dist/components/NcActionText/index.mjs.map +1 -0
- package/dist/components/NcActionTextEditable/NcActionTextEditable.vue.d.ts +11 -6
- package/dist/components/NcActionTextEditable/index.mjs +4 -0
- package/dist/components/NcActionTextEditable/index.mjs.map +1 -0
- package/dist/components/NcActions/NcActions.vue.d.ts +168 -32
- package/dist/components/NcActions/index.mjs +4 -0
- package/dist/components/NcActions/index.mjs.map +1 -0
- package/dist/components/NcAppContent/index.mjs +4 -0
- package/dist/components/NcAppContent/index.mjs.map +1 -0
- package/dist/components/NcAppContentDetails/NcAppContentDetails.vue.d.ts +1 -1
- package/dist/components/NcAppContentDetails/index.mjs +4 -0
- package/dist/components/NcAppContentDetails/index.mjs.map +1 -0
- package/dist/components/NcAppContentList/NcAppContentList.vue.d.ts +4 -4
- package/dist/components/NcAppContentList/index.mjs +4 -0
- package/dist/components/NcAppContentList/index.mjs.map +1 -0
- package/dist/components/NcAppNavigation/NcAppNavigation.vue.d.ts +165 -6
- package/dist/components/NcAppNavigation/index.mjs +4 -0
- package/dist/components/NcAppNavigation/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationCaption/NcAppNavigationCaption.vue.d.ts +370 -5
- package/dist/components/NcAppNavigationCaption/index.mjs +4 -0
- package/dist/components/NcAppNavigationCaption/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationIconBullet/NcAppNavigationIconBullet.vue.d.ts +5 -5
- package/dist/components/NcAppNavigationIconBullet/index.mjs +4 -0
- package/dist/components/NcAppNavigationIconBullet/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationItem/NcAppNavigationIconCollapsible.vue.d.ts +145 -5
- package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +904 -18
- package/dist/components/NcAppNavigationItem/NcInputConfirmCancel.vue.d.ts +147 -7
- package/dist/components/NcAppNavigationItem/index.mjs +4 -0
- package/dist/components/NcAppNavigationItem/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationList/NcAppNavigationList.vue.d.ts +1 -1
- package/dist/components/NcAppNavigationList/index.mjs +4 -0
- package/dist/components/NcAppNavigationList/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationNew/NcAppNavigationNew.vue.d.ts +144 -6
- package/dist/components/NcAppNavigationNew/index.mjs +4 -0
- package/dist/components/NcAppNavigationNew/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue.d.ts +228 -5
- package/dist/components/NcAppNavigationNewItem/index.mjs +4 -0
- package/dist/components/NcAppNavigationNewItem/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationSearch/NcAppNavigationSearch.vue.d.ts +388 -0
- package/dist/components/NcAppNavigationSearch/index.d.ts +5 -0
- package/dist/components/NcAppNavigationSearch/index.mjs +4 -0
- package/dist/components/NcAppNavigationSearch/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationSettings/NcAppNavigationSettings.vue.d.ts +45 -33
- package/dist/components/NcAppNavigationSettings/index.mjs +4 -0
- package/dist/components/NcAppNavigationSettings/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationSpacer/NcAppNavigationSpacer.vue.d.ts +1 -1
- package/dist/components/NcAppNavigationSpacer/index.mjs +4 -0
- package/dist/components/NcAppNavigationSpacer/index.mjs.map +1 -0
- package/dist/components/NcAppNavigationToggle/NcAppNavigationToggle.vue.d.ts +144 -4
- package/dist/components/NcAppNavigationToggle/index.mjs +5 -0
- package/dist/components/NcAppNavigationToggle/index.mjs.map +1 -0
- package/dist/components/NcAppSettingsDialog/index.mjs +4 -0
- package/dist/components/NcAppSettingsDialog/index.mjs.map +1 -0
- package/dist/components/NcAppSettingsSection/NcAppSettingsSection.vue.d.ts +3 -3
- package/dist/components/NcAppSettingsSection/index.mjs +4 -0
- package/dist/components/NcAppSettingsSection/index.mjs.map +1 -0
- package/dist/components/NcAppSidebar/NcAppSidebarTabs.vue.d.ts +26 -6
- package/dist/components/NcAppSidebar/index.mjs +4 -0
- package/dist/components/NcAppSidebar/index.mjs.map +1 -0
- package/dist/components/NcAppSidebarTab/NcAppSidebarTab.vue.d.ts +5 -5
- package/dist/components/NcAppSidebarTab/index.mjs +4 -0
- package/dist/components/NcAppSidebarTab/index.mjs.map +1 -0
- package/dist/components/NcAvatar/index.mjs +4 -0
- package/dist/components/NcAvatar/index.mjs.map +1 -0
- package/dist/components/NcBlurHash/NcBlurHash.vue.d.ts +31 -0
- package/dist/components/NcBlurHash/index.d.ts +5 -0
- package/dist/components/NcBlurHash/index.mjs +4 -0
- package/dist/components/NcBlurHash/index.mjs.map +1 -0
- package/dist/components/NcBreadcrumb/NcBreadcrumb.vue.d.ts +513 -14
- package/dist/components/NcBreadcrumb/index.mjs +4 -0
- package/dist/components/NcBreadcrumb/index.mjs.map +1 -0
- package/dist/components/NcBreadcrumbs/NcBreadcrumbs.vue.d.ts +1171 -5
- package/dist/components/NcBreadcrumbs/index.mjs +4 -0
- package/dist/components/NcBreadcrumbs/index.mjs.map +1 -0
- package/dist/components/NcButton/NcButton.vue.d.ts +23 -7
- package/dist/components/NcButton/index.mjs +7 -0
- package/dist/components/NcButton/index.mjs.map +1 -0
- package/dist/components/NcButton/types.d.ts +1 -1
- package/dist/components/NcCheckboxRadioSwitch/index.mjs +4 -0
- package/dist/components/NcCheckboxRadioSwitch/index.mjs.map +1 -0
- package/dist/components/NcChip/NcChip.vue.d.ts +31 -19
- package/dist/components/NcChip/index.mjs +4 -0
- package/dist/components/NcChip/index.mjs.map +1 -0
- package/dist/components/NcCollectionList/index.mjs +4 -0
- package/dist/components/NcCollectionList/index.mjs.map +1 -0
- package/dist/components/NcCollectionList/useCollections.d.ts +1 -1
- package/dist/components/NcColorPicker/index.mjs +4 -0
- package/dist/components/NcColorPicker/index.mjs.map +1 -0
- package/dist/components/NcContent/NcContent.vue.d.ts +208 -5
- package/dist/components/NcContent/index.mjs +4 -0
- package/dist/components/NcContent/index.mjs.map +1 -0
- package/dist/components/NcCounterBubble/NcCounterBubble.vue.d.ts +38 -5
- package/dist/components/NcCounterBubble/index.mjs +4 -0
- package/dist/components/NcCounterBubble/index.mjs.map +1 -0
- package/dist/components/NcDashboardWidget/index.mjs +4 -0
- package/dist/components/NcDashboardWidget/index.mjs.map +1 -0
- package/dist/components/NcDashboardWidgetItem/index.mjs +4 -0
- package/dist/components/NcDashboardWidgetItem/index.mjs.map +1 -0
- package/dist/components/NcDateTime/index.mjs +4 -0
- package/dist/components/NcDateTime/index.mjs.map +1 -0
- package/dist/components/NcDateTimePicker/index.mjs +4 -0
- package/dist/components/NcDateTimePicker/index.mjs.map +1 -0
- package/dist/components/NcDateTimePickerNative/index.mjs +4 -0
- package/dist/components/NcDateTimePickerNative/index.mjs.map +1 -0
- package/dist/components/NcDialog/NcDialog.vue.d.ts +199 -42
- package/dist/components/NcDialog/index.mjs +4 -0
- package/dist/components/NcDialog/index.mjs.map +1 -0
- package/dist/components/NcDialogButton/NcDialogButton.vue.d.ts +61 -17
- package/dist/components/NcDialogButton/index.mjs +4 -0
- package/dist/components/NcDialogButton/index.mjs.map +1 -0
- package/dist/components/NcEllipsisedOption/NcEllipsisedOption.vue.d.ts +43 -8
- package/dist/components/NcEllipsisedOption/index.mjs +4 -0
- package/dist/components/NcEllipsisedOption/index.mjs.map +1 -0
- package/dist/components/NcEmojiPicker/NcEmojiPicker.vue.d.ts +463 -7
- package/dist/components/NcEmojiPicker/index.mjs +4 -0
- package/dist/components/NcEmojiPicker/index.mjs.map +1 -0
- package/dist/components/NcEmptyContent/NcEmptyContent.vue.d.ts +4 -4
- package/dist/components/NcEmptyContent/index.mjs +4 -0
- package/dist/components/NcEmptyContent/index.mjs.map +1 -0
- package/dist/components/NcGuestContent/NcGuestContent.vue.d.ts +1 -1
- package/dist/components/NcGuestContent/index.mjs +4 -0
- package/dist/components/NcGuestContent/index.mjs.map +1 -0
- package/dist/components/NcHeaderButton/NcHeaderButton.vue.d.ts +38 -0
- package/dist/components/NcHeaderButton/index.d.ts +5 -0
- package/dist/components/NcHeaderButton/index.mjs +4 -0
- package/dist/components/NcHeaderButton/index.mjs.map +1 -0
- package/dist/components/NcHeaderMenu/NcHeaderMenu.vue.d.ts +217 -121
- package/dist/components/NcHeaderMenu/index.mjs +4 -0
- package/dist/components/NcHeaderMenu/index.mjs.map +1 -0
- package/dist/components/NcHighlight/NcHighlight.vue.d.ts +4 -4
- package/dist/components/NcHighlight/index.mjs +4 -0
- package/dist/components/NcHighlight/index.mjs.map +1 -0
- package/dist/components/NcIconSvgWrapper/NcIconSvgWrapper.vue.d.ts +8 -8
- package/dist/components/NcIconSvgWrapper/index.mjs +4 -0
- package/dist/components/NcIconSvgWrapper/index.mjs.map +1 -0
- package/dist/components/NcInputField/NcInputField.vue.d.ts +155 -15
- package/dist/components/NcInputField/index.mjs +4 -0
- package/dist/components/NcInputField/index.mjs.map +1 -0
- package/dist/components/NcListItem/NcListItem.vue.d.ts +461 -15
- package/dist/components/NcListItem/index.mjs +4 -0
- package/dist/components/NcListItem/index.mjs.map +1 -0
- package/dist/components/NcListItemIcon/index.mjs +4 -0
- package/dist/components/NcListItemIcon/index.mjs.map +1 -0
- package/dist/components/NcLoadingIcon/NcLoadingIcon.vue.d.ts +4 -4
- package/dist/components/NcLoadingIcon/index.mjs +4 -0
- package/dist/components/NcLoadingIcon/index.mjs.map +1 -0
- package/dist/components/NcModal/index.mjs +775 -0
- package/dist/components/NcModal/index.mjs.map +1 -0
- package/dist/components/NcNoteCard/NcNoteCard.vue.d.ts +40 -7
- package/dist/components/NcNoteCard/index.mjs +4 -0
- package/dist/components/NcNoteCard/index.mjs.map +1 -0
- package/dist/components/NcPasswordField/index.mjs +4 -0
- package/dist/components/NcPasswordField/index.mjs.map +1 -0
- package/dist/components/NcPopover/NcPopover.vue.d.ts +2 -0
- package/dist/components/NcPopover/NcPopoverTriggerProvider.vue.d.ts +12 -6
- package/dist/components/NcPopover/index.mjs +4 -0
- package/dist/components/NcPopover/index.mjs.map +1 -0
- package/dist/components/NcProgressBar/index.mjs +4 -0
- package/dist/components/NcProgressBar/index.mjs.map +1 -0
- package/dist/components/NcRelatedResourcesPanel/NcRelatedResourcesPanel.vue.d.ts +420 -9
- package/dist/components/NcRelatedResourcesPanel/NcResource.vue.d.ts +141 -3
- package/dist/components/NcRelatedResourcesPanel/NcTeamResources.vue.d.ts +208 -4
- package/dist/components/NcRelatedResourcesPanel/index.mjs +4 -0
- package/dist/components/NcRelatedResourcesPanel/index.mjs.map +1 -0
- package/dist/components/NcRichContenteditable/NcAutoCompleteResult.vue.d.ts +13 -11
- package/dist/components/NcRichContenteditable/NcMentionBubble.vue.d.ts +80 -1
- package/dist/components/NcRichContenteditable/index.mjs +7 -0
- package/dist/components/NcRichContenteditable/index.mjs.map +1 -0
- package/dist/components/NcRichText/NcReferenceList.vue.d.ts +220 -10
- package/dist/components/NcRichText/NcReferencePicker/NcCustomPickerElement.vue.d.ts +6 -6
- package/dist/components/NcRichText/NcReferencePicker/NcRawLinkInput.vue.d.ts +574 -4
- package/dist/components/NcRichText/NcReferencePicker/NcSearchResult.vue.d.ts +38 -3
- package/dist/components/NcRichText/NcReferencePicker/utils.d.ts +1 -1
- package/dist/components/NcRichText/NcReferenceWidget.vue.d.ts +145 -7
- package/dist/components/NcRichText/NcRichText.vue.d.ts +310 -53
- package/dist/components/NcRichText/autolink.d.ts +0 -1
- package/dist/components/NcRichText/index.mjs +26 -0
- package/dist/components/NcRichText/index.mjs.map +1 -0
- package/dist/components/NcRichText/remarkUnescape.d.ts +1 -0
- package/dist/components/NcSavingIndicatorIcon/NcSavingIndicatorIcon.vue.d.ts +6 -6
- package/dist/components/NcSavingIndicatorIcon/index.mjs +4 -0
- package/dist/components/NcSavingIndicatorIcon/index.mjs.map +1 -0
- package/dist/components/NcSelect/index.mjs +4 -0
- package/dist/components/NcSelect/index.mjs.map +1 -0
- package/dist/components/NcSelectTags/index.mjs +4 -0
- package/dist/components/NcSelectTags/index.mjs.map +1 -0
- package/dist/components/NcSettingsInputText/NcSettingsInputText.vue.d.ts +6 -6
- package/dist/components/NcSettingsInputText/index.mjs +4 -0
- package/dist/components/NcSettingsInputText/index.mjs.map +1 -0
- package/dist/components/NcSettingsSection/NcSettingsSection.vue.d.ts +6 -4
- package/dist/components/NcSettingsSection/index.mjs +4 -0
- package/dist/components/NcSettingsSection/index.mjs.map +1 -0
- package/dist/components/NcSettingsSelectGroup/index.mjs +5 -0
- package/dist/components/NcSettingsSelectGroup/index.mjs.map +1 -0
- package/dist/components/NcTextArea/NcTextArea.vue.d.ts +12 -9
- package/dist/components/NcTextArea/index.mjs +4 -0
- package/dist/components/NcTextArea/index.mjs.map +1 -0
- package/dist/components/NcTextField/NcTextField.vue.d.ts +295 -2
- package/dist/components/NcTextField/index.mjs +4 -0
- package/dist/components/NcTextField/index.mjs.map +1 -0
- package/dist/components/NcTimezonePicker/index.mjs +4 -0
- package/dist/components/NcTimezonePicker/index.mjs.map +1 -0
- package/dist/components/NcUserBubble/NcUserBubbleDiv.vue.d.ts +1 -1
- package/dist/components/NcUserBubble/index.mjs +4 -0
- package/dist/components/NcUserBubble/index.mjs.map +1 -0
- package/dist/components/NcUserStatusIcon/index.mjs +4 -0
- package/dist/components/NcUserStatusIcon/index.mjs.map +1 -0
- package/dist/components/NcVNodes/NcVNodes.vue.d.ts +7 -7
- package/dist/components/NcVNodes/index.mjs.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/useFormatDateTime.d.ts +49 -21
- package/dist/composables/useHotKey/index.d.ts +35 -0
- package/dist/composables/useHotKey/index.mjs +71 -0
- package/dist/composables/useHotKey/index.mjs.map +1 -0
- package/dist/composables/useIsDarkTheme/index.d.ts +15 -0
- package/dist/composables/useIsDarkTheme/index.mjs +18 -0
- package/dist/composables/useIsDarkTheme/index.mjs.map +1 -0
- package/dist/composables/useIsFullscreen/index.mjs.map +1 -0
- package/dist/composables/useIsMobile/index.d.ts +1 -1
- package/dist/composables/useIsMobile/index.mjs.map +1 -0
- package/dist/composables/useTrapStackControl.d.ts +12 -0
- package/dist/directives/Focus/index.mjs.map +1 -0
- package/dist/directives/Linkify/index.mjs +20 -0
- package/dist/directives/Linkify/index.mjs.map +1 -0
- package/dist/directives/Tooltip/index.mjs +11 -0
- package/dist/directives/Tooltip/index.mjs.map +1 -0
- package/dist/functions/a11y/index.mjs.map +1 -0
- package/dist/functions/dialog/index.d.ts +17 -0
- package/dist/functions/dialog/index.mjs +23 -0
- package/dist/functions/dialog/index.mjs.map +1 -0
- package/dist/functions/emoji/emoji.d.ts +21 -8
- package/dist/functions/emoji/index.mjs +8 -0
- package/dist/functions/emoji/index.mjs.map +1 -0
- package/dist/functions/index.d.ts +7 -0
- package/dist/functions/isDarkTheme/index.d.ts +17 -0
- package/dist/functions/isDarkTheme/index.mjs +12 -0
- package/dist/functions/isDarkTheme/index.mjs.map +1 -0
- package/dist/functions/preloadImage/index.d.ts +9 -0
- package/dist/functions/preloadImage/index.mjs +16 -0
- package/dist/functions/preloadImage/index.mjs.map +1 -0
- package/dist/functions/reference/index.d.ts +0 -1
- package/dist/functions/reference/index.mjs +18 -0
- package/dist/functions/reference/index.mjs.map +1 -0
- package/dist/functions/reference/widgets.d.ts +1 -1
- package/dist/functions/registerReference/index.mjs +13 -0
- package/dist/functions/registerReference/index.mjs.map +1 -0
- package/dist/functions/usernameToColor/index.mjs +4 -0
- package/dist/functions/usernameToColor/index.mjs.map +1 -0
- package/dist/functions/usernameToColor/usernameToColor.d.ts +7 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +192 -277
- package/dist/index.mjs.map +1 -1
- package/dist/mixins/index.d.ts +0 -1
- package/dist/mixins/richEditor/index.mjs +9 -0
- package/dist/mixins/richEditor/index.mjs.map +1 -0
- package/dist/utils/GenColors.d.ts +2 -2
- package/dist/utils/VueTypes.d.ts +0 -1
- package/dist/utils/focusTrap.d.ts +26 -1
- package/dist/utils/isSlotPopulated.d.ts +0 -1
- package/dist/utils/rtl.d.ts +5 -0
- package/dist/vendor.LICENSE.txt +1 -1
- package/package.json +89 -81
- package/dist/Components/NcActionButton.mjs +0 -4
- package/dist/Components/NcActionButton.mjs.map +0 -1
- package/dist/Components/NcActionButtonGroup.mjs +0 -4
- package/dist/Components/NcActionButtonGroup.mjs.map +0 -1
- package/dist/Components/NcActionCaption.mjs +0 -4
- package/dist/Components/NcActionCaption.mjs.map +0 -1
- package/dist/Components/NcActionCheckbox.mjs +0 -4
- package/dist/Components/NcActionCheckbox.mjs.map +0 -1
- package/dist/Components/NcActionInput.mjs +0 -4
- package/dist/Components/NcActionInput.mjs.map +0 -1
- package/dist/Components/NcActionLink.mjs +0 -4
- package/dist/Components/NcActionLink.mjs.map +0 -1
- package/dist/Components/NcActionRadio.mjs +0 -4
- package/dist/Components/NcActionRadio.mjs.map +0 -1
- package/dist/Components/NcActionRouter.mjs +0 -4
- package/dist/Components/NcActionRouter.mjs.map +0 -1
- package/dist/Components/NcActionSeparator.mjs +0 -4
- package/dist/Components/NcActionSeparator.mjs.map +0 -1
- package/dist/Components/NcActionText.mjs +0 -4
- package/dist/Components/NcActionText.mjs.map +0 -1
- package/dist/Components/NcActionTextEditable.mjs +0 -4
- package/dist/Components/NcActionTextEditable.mjs.map +0 -1
- package/dist/Components/NcActions.mjs +0 -4
- package/dist/Components/NcActions.mjs.map +0 -1
- package/dist/Components/NcAppContent.mjs +0 -4
- package/dist/Components/NcAppContent.mjs.map +0 -1
- package/dist/Components/NcAppContentDetails.mjs +0 -4
- package/dist/Components/NcAppContentDetails.mjs.map +0 -1
- package/dist/Components/NcAppContentList.mjs +0 -4
- package/dist/Components/NcAppContentList.mjs.map +0 -1
- package/dist/Components/NcAppNavigation.mjs +0 -4
- package/dist/Components/NcAppNavigation.mjs.map +0 -1
- package/dist/Components/NcAppNavigationCaption.mjs +0 -4
- package/dist/Components/NcAppNavigationCaption.mjs.map +0 -1
- package/dist/Components/NcAppNavigationIconBullet.mjs +0 -4
- package/dist/Components/NcAppNavigationIconBullet.mjs.map +0 -1
- package/dist/Components/NcAppNavigationItem.mjs +0 -4
- package/dist/Components/NcAppNavigationItem.mjs.map +0 -1
- package/dist/Components/NcAppNavigationList.mjs +0 -4
- package/dist/Components/NcAppNavigationList.mjs.map +0 -1
- package/dist/Components/NcAppNavigationNew.mjs +0 -4
- package/dist/Components/NcAppNavigationNew.mjs.map +0 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +0 -4
- package/dist/Components/NcAppNavigationNewItem.mjs.map +0 -1
- package/dist/Components/NcAppNavigationSettings.mjs +0 -4
- package/dist/Components/NcAppNavigationSettings.mjs.map +0 -1
- package/dist/Components/NcAppNavigationSpacer.mjs +0 -4
- package/dist/Components/NcAppNavigationSpacer.mjs.map +0 -1
- package/dist/Components/NcAppNavigationToggle.mjs +0 -5
- package/dist/Components/NcAppNavigationToggle.mjs.map +0 -1
- package/dist/Components/NcAppSettingsDialog.mjs +0 -4
- package/dist/Components/NcAppSettingsDialog.mjs.map +0 -1
- package/dist/Components/NcAppSettingsSection.mjs +0 -4
- package/dist/Components/NcAppSettingsSection.mjs.map +0 -1
- package/dist/Components/NcAppSidebar.mjs +0 -4
- package/dist/Components/NcAppSidebar.mjs.map +0 -1
- package/dist/Components/NcAppSidebarTab.mjs +0 -4
- package/dist/Components/NcAppSidebarTab.mjs.map +0 -1
- package/dist/Components/NcAvatar.mjs +0 -4
- package/dist/Components/NcAvatar.mjs.map +0 -1
- package/dist/Components/NcBreadcrumb.mjs +0 -4
- package/dist/Components/NcBreadcrumb.mjs.map +0 -1
- package/dist/Components/NcBreadcrumbs.mjs +0 -4
- package/dist/Components/NcBreadcrumbs.mjs.map +0 -1
- package/dist/Components/NcButton.mjs +0 -7
- package/dist/Components/NcButton.mjs.map +0 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +0 -4
- package/dist/Components/NcCheckboxRadioSwitch.mjs.map +0 -1
- package/dist/Components/NcChip.mjs +0 -4
- package/dist/Components/NcChip.mjs.map +0 -1
- package/dist/Components/NcCollectionList.mjs +0 -4
- package/dist/Components/NcCollectionList.mjs.map +0 -1
- package/dist/Components/NcColorPicker.mjs +0 -4
- package/dist/Components/NcColorPicker.mjs.map +0 -1
- package/dist/Components/NcContent.mjs +0 -4
- package/dist/Components/NcContent.mjs.map +0 -1
- package/dist/Components/NcCounterBubble.mjs +0 -4
- package/dist/Components/NcCounterBubble.mjs.map +0 -1
- package/dist/Components/NcDashboardWidget.mjs +0 -4
- package/dist/Components/NcDashboardWidget.mjs.map +0 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +0 -4
- package/dist/Components/NcDashboardWidgetItem.mjs.map +0 -1
- package/dist/Components/NcDateTime.mjs +0 -4
- package/dist/Components/NcDateTime.mjs.map +0 -1
- package/dist/Components/NcDateTimePicker.mjs +0 -4
- package/dist/Components/NcDateTimePicker.mjs.map +0 -1
- package/dist/Components/NcDateTimePickerNative.mjs +0 -4
- package/dist/Components/NcDateTimePickerNative.mjs.map +0 -1
- package/dist/Components/NcDialog.mjs +0 -4
- package/dist/Components/NcDialog.mjs.map +0 -1
- package/dist/Components/NcDialogButton.mjs +0 -4
- package/dist/Components/NcDialogButton.mjs.map +0 -1
- package/dist/Components/NcEllipsisedOption.mjs +0 -4
- package/dist/Components/NcEllipsisedOption.mjs.map +0 -1
- package/dist/Components/NcEmojiPicker.mjs +0 -4
- package/dist/Components/NcEmojiPicker.mjs.map +0 -1
- package/dist/Components/NcEmptyContent.mjs +0 -4
- package/dist/Components/NcEmptyContent.mjs.map +0 -1
- package/dist/Components/NcGuestContent.mjs +0 -4
- package/dist/Components/NcGuestContent.mjs.map +0 -1
- package/dist/Components/NcHeaderMenu.mjs +0 -4
- package/dist/Components/NcHeaderMenu.mjs.map +0 -1
- package/dist/Components/NcHighlight.mjs +0 -4
- package/dist/Components/NcHighlight.mjs.map +0 -1
- package/dist/Components/NcIconSvgWrapper.mjs +0 -4
- package/dist/Components/NcIconSvgWrapper.mjs.map +0 -1
- package/dist/Components/NcInputField.mjs +0 -4
- package/dist/Components/NcInputField.mjs.map +0 -1
- package/dist/Components/NcListItem.mjs +0 -4
- package/dist/Components/NcListItem.mjs.map +0 -1
- package/dist/Components/NcListItemIcon.mjs +0 -4
- package/dist/Components/NcListItemIcon.mjs.map +0 -1
- package/dist/Components/NcLoadingIcon.mjs +0 -4
- package/dist/Components/NcLoadingIcon.mjs.map +0 -1
- package/dist/Components/NcModal.mjs +0 -800
- package/dist/Components/NcModal.mjs.map +0 -1
- package/dist/Components/NcNoteCard.mjs +0 -4
- package/dist/Components/NcNoteCard.mjs.map +0 -1
- package/dist/Components/NcPasswordField.mjs +0 -4
- package/dist/Components/NcPasswordField.mjs.map +0 -1
- package/dist/Components/NcPopover.mjs +0 -4
- package/dist/Components/NcPopover.mjs.map +0 -1
- package/dist/Components/NcProgressBar.mjs +0 -4
- package/dist/Components/NcProgressBar.mjs.map +0 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +0 -4
- package/dist/Components/NcRelatedResourcesPanel.mjs.map +0 -1
- package/dist/Components/NcRichContenteditable.mjs +0 -7
- package/dist/Components/NcRichContenteditable.mjs.map +0 -1
- package/dist/Components/NcRichText.mjs +0 -26
- package/dist/Components/NcRichText.mjs.map +0 -1
- package/dist/Components/NcSavingIndicatorIcon.mjs +0 -4
- package/dist/Components/NcSavingIndicatorIcon.mjs.map +0 -1
- package/dist/Components/NcSelect.mjs +0 -4
- package/dist/Components/NcSelect.mjs.map +0 -1
- package/dist/Components/NcSelectTags.mjs +0 -4
- package/dist/Components/NcSelectTags.mjs.map +0 -1
- package/dist/Components/NcSettingsInputText.mjs +0 -4
- package/dist/Components/NcSettingsInputText.mjs.map +0 -1
- package/dist/Components/NcSettingsSection.mjs +0 -4
- package/dist/Components/NcSettingsSection.mjs.map +0 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +0 -5
- package/dist/Components/NcSettingsSelectGroup.mjs.map +0 -1
- package/dist/Components/NcTextArea.mjs +0 -4
- package/dist/Components/NcTextArea.mjs.map +0 -1
- package/dist/Components/NcTextField.mjs +0 -4
- package/dist/Components/NcTextField.mjs.map +0 -1
- package/dist/Components/NcTimezonePicker.mjs +0 -4
- package/dist/Components/NcTimezonePicker.mjs.map +0 -1
- package/dist/Components/NcUserBubble.mjs +0 -4
- package/dist/Components/NcUserBubble.mjs.map +0 -1
- package/dist/Components/NcUserStatusIcon.mjs +0 -4
- package/dist/Components/NcUserStatusIcon.mjs.map +0 -1
- package/dist/Components/NcVNodes.mjs.map +0 -1
- package/dist/Composables/useIsFullscreen.mjs.map +0 -1
- package/dist/Composables/useIsMobile.mjs.map +0 -1
- package/dist/Directives/Focus.mjs.map +0 -1
- package/dist/Directives/Linkify.mjs +0 -10
- package/dist/Directives/Linkify.mjs.map +0 -1
- package/dist/Directives/Tooltip.mjs +0 -11
- package/dist/Directives/Tooltip.mjs.map +0 -1
- package/dist/Functions/a11y.mjs.map +0 -1
- package/dist/Functions/emoji.mjs +0 -8
- package/dist/Functions/emoji.mjs.map +0 -1
- package/dist/Functions/reference.mjs +0 -18
- package/dist/Functions/reference.mjs.map +0 -1
- package/dist/Functions/registerReference.mjs +0 -13
- package/dist/Functions/registerReference.mjs.map +0 -1
- package/dist/Functions/usernameToColor.mjs +0 -4
- package/dist/Functions/usernameToColor.mjs.map +0 -1
- package/dist/Mixins/clickOutsideOptions.mjs +0 -21
- package/dist/Mixins/clickOutsideOptions.mjs.map +0 -1
- package/dist/Mixins/richEditor.mjs +0 -10
- package/dist/Mixins/richEditor.mjs.map +0 -1
- package/dist/assets/NcActionButton-tvMk0Dz-.css +0 -107
- package/dist/assets/NcActionCaption-D-VXTPLI.css +0 -32
- package/dist/assets/NcActionCheckbox-DzmNTqwC.css +0 -78
- package/dist/assets/NcActionInput-4qR5N5lV.css +0 -222
- package/dist/assets/NcActionLink-Djp7wPGg.css +0 -92
- package/dist/assets/NcActionRadio-ZRQheAZT.css +0 -78
- package/dist/assets/NcActionRouter-B0l-dISs.css +0 -103
- package/dist/assets/NcActionText-Ip9hRt85.css +0 -107
- package/dist/assets/NcActionTextEditable-1JPkW_4o.css +0 -238
- package/dist/assets/NcActions-pRTZ3RyK.css +0 -83
- package/dist/assets/NcAppContent-CK9aL637.css +0 -125
- package/dist/assets/NcAppNavigation-BjnW8PQn.css +0 -103
- package/dist/assets/NcAppNavigationCaption-CWeMjjhD.css +0 -48
- package/dist/assets/NcAppNavigationIconBullet-EfIZU7x-.css +0 -30
- package/dist/assets/NcAppNavigationItem-wQ3n8jc-.css +0 -211
- package/dist/assets/NcAppNavigationList-BIbyyT7b.css +0 -29
- package/dist/assets/NcAppNavigationNewItem-CO3GnR26.css +0 -194
- package/dist/assets/NcAppNavigationSettings-TYqL_3Eu.css +0 -79
- package/dist/assets/NcAppNavigationToggle-CNPQvWtG.css +0 -27
- package/dist/assets/NcAppSettingsDialog-ksK-DMgk.css +0 -74
- package/dist/assets/NcAppSettingsSection-C_QldGnW.css +0 -30
- package/dist/assets/NcAppSidebar-B7CgUHLX.css +0 -361
- package/dist/assets/NcAvatar-BnHiRwVr.css +0 -129
- package/dist/assets/NcBreadcrumb-CJ7KeSKQ.css +0 -68
- package/dist/assets/NcBreadcrumbs-C05lySw_.css +0 -37
- package/dist/assets/NcButton-B62D9Gft.css +0 -210
- package/dist/assets/NcCheckboxRadioSwitch-ChIIElUW.css +0 -196
- package/dist/assets/NcChip-Cho4h_Kr.css +0 -61
- package/dist/assets/NcCollectionList-BT2L4guq.css +0 -221
- package/dist/assets/NcColorPicker-vEZb9dRS.css +0 -122
- package/dist/assets/NcContent-DljiVMLl.css +0 -80
- package/dist/assets/NcCounterBubble-DT16e2bg.css +0 -53
- package/dist/assets/NcDashboardWidget-CvGZT_xf.css +0 -73
- package/dist/assets/NcDashboardWidgetItem-JCtQhwhS.css +0 -85
- package/dist/assets/NcDateTimePicker-DHWLpzCH.css +0 -851
- package/dist/assets/NcDateTimePickerNative-DLch-JRA.css +0 -47
- package/dist/assets/NcDialog-DXX2MKxJ.css +0 -132
- package/dist/assets/NcEllipsisedOption-DZK2vWD1.css +0 -34
- package/dist/assets/NcEmojiPicker-C18M6LHu.css +0 -553
- package/dist/assets/NcHeaderMenu-Cb5YSERm.css +0 -77
- package/dist/assets/NcInputField-CZnSCalG.css +0 -164
- package/dist/assets/NcListItem-Cs-R5Xpu.css +0 -156
- package/dist/assets/NcListItemIcon-C2zhDUEr.css +0 -64
- package/dist/assets/NcMentionBubble-C6t8od-_.css +0 -73
- package/dist/assets/NcModal-Cr_CG7O3.css +0 -285
- package/dist/assets/NcNoteCard-BLPU1den.css +0 -50
- package/dist/assets/NcPopover-BDlL00qZ.css +0 -96
- package/dist/assets/NcRelatedResourcesPanel-C56aj2M3.css +0 -158
- package/dist/assets/NcRichContenteditable-Cf8PvtvB.css +0 -258
- package/dist/assets/NcRichText-yXgN8zvG.css +0 -217
- package/dist/assets/NcSelect-9AZOhTlS.css +0 -184
- package/dist/assets/NcSettingsSection-CFKAEs4p.css +0 -52
- package/dist/assets/NcTextArea-BjB_qSH0.css +0 -112
- package/dist/assets/NcUserBubble-CIfQjmmP.css +0 -48
- package/dist/assets/referencePickerModal-G4uFPuyg.css +0 -413
- package/dist/chunks/AlertCircleOutline-DWBCJkLM.mjs +0 -48
- package/dist/chunks/AlertCircleOutline-DWBCJkLM.mjs.map +0 -1
- package/dist/chunks/ArrowLeft-CxK9DnMo.mjs +0 -48
- package/dist/chunks/ArrowLeft-CxK9DnMo.mjs.map +0 -1
- package/dist/chunks/ArrowRight-Cg6xGDcS.mjs +0 -48
- package/dist/chunks/ArrowRight-Cg6xGDcS.mjs.map +0 -1
- package/dist/chunks/Check-_j2mQvkT.mjs +0 -48
- package/dist/chunks/Check-_j2mQvkT.mjs.map +0 -1
- package/dist/chunks/ChevronDown-De_Zvlgu.mjs +0 -48
- package/dist/chunks/ChevronDown-De_Zvlgu.mjs.map +0 -1
- package/dist/chunks/ChevronRight-C33SNIxR.mjs +0 -48
- package/dist/chunks/ChevronRight-C33SNIxR.mjs.map +0 -1
- package/dist/chunks/ChevronUp-b4LkDSk-.mjs +0 -48
- package/dist/chunks/ChevronUp-b4LkDSk-.mjs.map +0 -1
- package/dist/chunks/Close-pmiXntgw.mjs +0 -48
- package/dist/chunks/Close-pmiXntgw.mjs.map +0 -1
- package/dist/chunks/DotsHorizontal-CCNSfNOk.mjs +0 -48
- package/dist/chunks/DotsHorizontal-CCNSfNOk.mjs.map +0 -1
- package/dist/chunks/GenColors-AKX06ocD.mjs +0 -133
- package/dist/chunks/GenColors-AKX06ocD.mjs.map +0 -1
- package/dist/chunks/Linkify-BtgR-dXX.mjs +0 -14
- package/dist/chunks/Linkify-BtgR-dXX.mjs.map +0 -1
- package/dist/chunks/NcActionButton-Bqkgltcz.mjs +0 -223
- package/dist/chunks/NcActionButton-Bqkgltcz.mjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-QSxR0BLf.mjs +0 -58
- package/dist/chunks/NcActionButtonGroup-QSxR0BLf.mjs.map +0 -1
- package/dist/chunks/NcActionCaption-Cb_uvgZc.mjs +0 -32
- package/dist/chunks/NcActionCaption-Cb_uvgZc.mjs.map +0 -1
- package/dist/chunks/NcActionCheckbox-A6JNjini.mjs +0 -125
- package/dist/chunks/NcActionCheckbox-A6JNjini.mjs.map +0 -1
- package/dist/chunks/NcActionInput-DY8dxchc.mjs +0 -358
- package/dist/chunks/NcActionInput-DY8dxchc.mjs.map +0 -1
- package/dist/chunks/NcActionLink-C0mINC5i.mjs +0 -122
- package/dist/chunks/NcActionLink-C0mINC5i.mjs.map +0 -1
- package/dist/chunks/NcActionRadio-BqAyH2zq.mjs +0 -128
- package/dist/chunks/NcActionRadio-BqAyH2zq.mjs.map +0 -1
- package/dist/chunks/NcActionRouter-Dr-j-IUI.mjs +0 -83
- package/dist/chunks/NcActionRouter-Dr-j-IUI.mjs.map +0 -1
- package/dist/chunks/NcActionSeparator-DKFXmIJ5.mjs +0 -17
- package/dist/chunks/NcActionSeparator-DKFXmIJ5.mjs.map +0 -1
- package/dist/chunks/NcActionText-C5ZPI56c.mjs +0 -65
- package/dist/chunks/NcActionText-C5ZPI56c.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-CLXTDGjr.mjs +0 -130
- package/dist/chunks/NcActionTextEditable-CLXTDGjr.mjs.map +0 -1
- package/dist/chunks/NcActions-DqMOvrbN.mjs +0 -733
- package/dist/chunks/NcActions-DqMOvrbN.mjs.map +0 -1
- package/dist/chunks/NcAppContent-xtfi9kNO.mjs +0 -350
- package/dist/chunks/NcAppContent-xtfi9kNO.mjs.map +0 -1
- package/dist/chunks/NcAppContentDetails-Ch6NJvAl.mjs +0 -15
- package/dist/chunks/NcAppContentDetails-Ch6NJvAl.mjs.map +0 -1
- package/dist/chunks/NcAppContentList-DGwk3AvB.mjs +0 -26
- package/dist/chunks/NcAppContentList-DGwk3AvB.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-C9Ku9eb2.mjs +0 -162
- package/dist/chunks/NcAppNavigation-C9Ku9eb2.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationCaption-BysnsczC.mjs +0 -97
- package/dist/chunks/NcAppNavigationCaption-BysnsczC.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationIconBullet-DuqQFciH.mjs +0 -43
- package/dist/chunks/NcAppNavigationIconBullet-DuqQFciH.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem--znMc-4G.mjs +0 -624
- package/dist/chunks/NcAppNavigationItem--znMc-4G.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationList-DCmrqe9N.mjs +0 -16
- package/dist/chunks/NcAppNavigationList-DCmrqe9N.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationNew-xPVyvfza.mjs +0 -57
- package/dist/chunks/NcAppNavigationNew-xPVyvfza.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationNewItem-DS1hIl6W.mjs +0 -120
- package/dist/chunks/NcAppNavigationNewItem-DS1hIl6W.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSettings-CekHqqk0.mjs +0 -142
- package/dist/chunks/NcAppNavigationSettings-CekHqqk0.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSpacer-BQFYpMbq.mjs +0 -14
- package/dist/chunks/NcAppNavigationSpacer-BQFYpMbq.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationToggle-DfX9dazn.mjs +0 -158
- package/dist/chunks/NcAppNavigationToggle-DfX9dazn.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-ChTLtlsE.mjs +0 -254
- package/dist/chunks/NcAppSettingsDialog-ChTLtlsE.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsSection-CJff2xNR.mjs +0 -63
- package/dist/chunks/NcAppSettingsSection-CJff2xNR.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-C9frc6kG.mjs +0 -980
- package/dist/chunks/NcAppSidebar-C9frc6kG.mjs.map +0 -1
- package/dist/chunks/NcAppSidebarTab-zBqyKIgn.mjs +0 -92
- package/dist/chunks/NcAppSidebarTab-zBqyKIgn.mjs.map +0 -1
- package/dist/chunks/NcAvatar-BjooMt8H.mjs +0 -658
- package/dist/chunks/NcAvatar-BjooMt8H.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-Btbcn1IT.mjs +0 -243
- package/dist/chunks/NcBreadcrumb-Btbcn1IT.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumbs-BFR0zNov.mjs +0 -458
- package/dist/chunks/NcBreadcrumbs-BFR0zNov.mjs.map +0 -1
- package/dist/chunks/NcButton-Bhuckhtj.mjs +0 -292
- package/dist/chunks/NcButton-Bhuckhtj.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-fsQs5UG3.mjs +0 -808
- package/dist/chunks/NcCheckboxRadioSwitch-fsQs5UG3.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_266d05fb_lang-8iSIJ9Oz.mjs +0 -3
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_266d05fb_lang-8iSIJ9Oz.mjs.map +0 -1
- package/dist/chunks/NcChip-Z436j_vb.mjs +0 -143
- package/dist/chunks/NcChip-Z436j_vb.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-B8r2GWp5.mjs +0 -589
- package/dist/chunks/NcCollectionList-B8r2GWp5.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-ChOP5UKN.mjs +0 -273
- package/dist/chunks/NcColorPicker-ChOP5UKN.mjs.map +0 -1
- package/dist/chunks/NcContent-BTRh5byh.mjs +0 -130
- package/dist/chunks/NcContent-BTRh5byh.mjs.map +0 -1
- package/dist/chunks/NcCounterBubble-B0Sk58x_.mjs +0 -44
- package/dist/chunks/NcCounterBubble-B0Sk58x_.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidget-CyEJLxAR.mjs +0 -186
- package/dist/chunks/NcDashboardWidget-CyEJLxAR.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidgetItem-DfP6DwdF.mjs +0 -197
- package/dist/chunks/NcDashboardWidgetItem-DfP6DwdF.mjs.map +0 -1
- package/dist/chunks/NcDateTime-DX34z7Lo.mjs +0 -147
- package/dist/chunks/NcDateTime-DX34z7Lo.mjs.map +0 -1
- package/dist/chunks/NcDateTimePicker-D9gDwRl4.mjs +0 -377
- package/dist/chunks/NcDateTimePicker-D9gDwRl4.mjs.map +0 -1
- package/dist/chunks/NcDateTimePickerNative-d04KsMAl.mjs +0 -200
- package/dist/chunks/NcDateTimePickerNative-d04KsMAl.mjs.map +0 -1
- package/dist/chunks/NcDialog-D5IAHMrC.mjs +0 -277
- package/dist/chunks/NcDialog-D5IAHMrC.mjs.map +0 -1
- package/dist/chunks/NcDialogButton-BkFODtad.mjs +0 -90
- package/dist/chunks/NcDialogButton-BkFODtad.mjs.map +0 -1
- package/dist/chunks/NcEllipsisedOption-CufdpPBu.mjs +0 -104
- package/dist/chunks/NcEllipsisedOption-CufdpPBu.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-Dtc8dnSp.mjs +0 -380
- package/dist/chunks/NcEmojiPicker-Dtc8dnSp.mjs.map +0 -1
- package/dist/chunks/NcEmptyContent-BoGB3vFC.mjs +0 -67
- package/dist/chunks/NcEmptyContent-BoGB3vFC.mjs.map +0 -1
- package/dist/chunks/NcGuestContent-DVqg5Bq4.mjs +0 -22
- package/dist/chunks/NcGuestContent-DVqg5Bq4.mjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-CKynqFZZ.mjs +0 -260
- package/dist/chunks/NcHeaderMenu-CKynqFZZ.mjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-DbL6OP85.mjs +0 -106
- package/dist/chunks/NcIconSvgWrapper-DbL6OP85.mjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-DkOh9UP_.mjs +0 -116
- package/dist/chunks/NcInputConfirmCancel-DkOh9UP_.mjs.map +0 -1
- package/dist/chunks/NcInputField-hpiI0X9L.mjs +0 -308
- package/dist/chunks/NcInputField-hpiI0X9L.mjs.map +0 -1
- package/dist/chunks/NcListItem-DX-yKrou.mjs +0 -359
- package/dist/chunks/NcListItem-DX-yKrou.mjs.map +0 -1
- package/dist/chunks/NcListItemIcon-Bgd2w_Ug.mjs +0 -207
- package/dist/chunks/NcListItemIcon-Bgd2w_Ug.mjs.map +0 -1
- package/dist/chunks/NcLoadingIcon-DREmHXr2.mjs +0 -78
- package/dist/chunks/NcLoadingIcon-DREmHXr2.mjs.map +0 -1
- package/dist/chunks/NcNoteCard-CQgzjr2r.mjs +0 -252
- package/dist/chunks/NcNoteCard-CQgzjr2r.mjs.map +0 -1
- package/dist/chunks/NcPasswordField-Vfr9wcwj.mjs +0 -286
- package/dist/chunks/NcPasswordField-Vfr9wcwj.mjs.map +0 -1
- package/dist/chunks/NcPopover-BXfbq-Vs.mjs +0 -259
- package/dist/chunks/NcPopover-BXfbq-Vs.mjs.map +0 -1
- package/dist/chunks/NcProgressBar-C2r8oqsv.mjs +0 -147
- package/dist/chunks/NcProgressBar-C2r8oqsv.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-DXQ9WHF5.mjs +0 -546
- package/dist/chunks/NcRelatedResourcesPanel-DXQ9WHF5.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-Bf9Kg4hl.mjs +0 -807
- package/dist/chunks/NcRichContenteditable-Bf9Kg4hl.mjs.map +0 -1
- package/dist/chunks/NcRichText-COi8Ex6O.mjs +0 -405
- package/dist/chunks/NcRichText-COi8Ex6O.mjs.map +0 -1
- package/dist/chunks/NcSavingIndicatorIcon-BiGAtlKQ.mjs +0 -79
- package/dist/chunks/NcSavingIndicatorIcon-BiGAtlKQ.mjs.map +0 -1
- package/dist/chunks/NcSelect-uOkQ9CdB.mjs +0 -565
- package/dist/chunks/NcSelect-uOkQ9CdB.mjs.map +0 -1
- package/dist/chunks/NcSelectTags-1hIEJsvj.mjs +0 -302
- package/dist/chunks/NcSelectTags-1hIEJsvj.mjs.map +0 -1
- package/dist/chunks/NcSettingsInputText-DO40BQ3B.mjs +0 -122
- package/dist/chunks/NcSettingsInputText-DO40BQ3B.mjs.map +0 -1
- package/dist/chunks/NcSettingsSection-BDI1fNYG.mjs +0 -115
- package/dist/chunks/NcSettingsSection-BDI1fNYG.mjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-OQVMB2G-.mjs +0 -226
- package/dist/chunks/NcSettingsSelectGroup-OQVMB2G-.mjs.map +0 -1
- package/dist/chunks/NcTextArea-qvR02aYz.mjs +0 -217
- package/dist/chunks/NcTextArea-qvR02aYz.mjs.map +0 -1
- package/dist/chunks/NcTextField-DctsarIL.mjs +0 -173
- package/dist/chunks/NcTextField-DctsarIL.mjs.map +0 -1
- package/dist/chunks/NcTimezonePicker-CGW5Q2gI.mjs +0 -187
- package/dist/chunks/NcTimezonePicker-CGW5Q2gI.mjs.map +0 -1
- package/dist/chunks/NcUserBubble-CsVyJK3C.mjs +0 -212
- package/dist/chunks/NcUserBubble-CsVyJK3C.mjs.map +0 -1
- package/dist/chunks/NcUserStatusIcon-CLYI768S.mjs +0 -135
- package/dist/chunks/NcUserStatusIcon-CLYI768S.mjs.map +0 -1
- package/dist/chunks/ScopeComponent-59SnWk9S.mjs +0 -14
- package/dist/chunks/ScopeComponent-59SnWk9S.mjs.map +0 -1
- package/dist/chunks/_l10n-6dsjYig_.mjs +0 -126
- package/dist/chunks/_l10n-6dsjYig_.mjs.map +0 -1
- package/dist/chunks/emoji-Ba55f8iV.mjs +0 -64
- package/dist/chunks/emoji-Ba55f8iV.mjs.map +0 -1
- package/dist/chunks/focusTrap-Cecv_gjR.mjs +0 -7
- package/dist/chunks/focusTrap-Cecv_gjR.mjs.map +0 -1
- package/dist/chunks/getAvatarUrl-DxvUjKMi.mjs +0 -11
- package/dist/chunks/getAvatarUrl-DxvUjKMi.mjs.map +0 -1
- package/dist/chunks/index-CtoB4eIp.mjs +0 -116
- package/dist/chunks/index-CtoB4eIp.mjs.map +0 -1
- package/dist/chunks/index-CyNq54HS.mjs +0 -187
- package/dist/chunks/index-CyNq54HS.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-BwzqUWFA.mjs +0 -1360
- package/dist/chunks/referencePickerModal-BwzqUWFA.mjs.map +0 -1
- package/dist/chunks/usernameToColor-CEyHwgy-.mjs +0 -26
- package/dist/chunks/usernameToColor-CEyHwgy-.mjs.map +0 -1
- package/dist/components/NcActionInput/NcActionInput.vue.d.ts +0 -271
- package/dist/components/NcAppContent/NcAppContent.vue.d.ts +0 -194
- package/dist/components/NcAppContent/NcAppDetailsToggle.vue.d.ts +0 -8
- package/dist/components/NcAppSidebar/NcAppSidebar.vue.d.ts +0 -393
- package/dist/components/NcAvatar/NcAvatar.vue.d.ts +0 -467
- package/dist/components/NcCollectionList/NcCollectionList.vue.d.ts +0 -126
- package/dist/components/NcCollectionList/NcCollectionListItem.vue.d.ts +0 -50
- package/dist/components/NcDashboardWidget/NcDashboardWidget.vue.d.ts +0 -142
- package/dist/components/NcDashboardWidgetItem/NcDashboardWidgetItem.vue.d.ts +0 -170
- package/dist/components/NcListItemIcon/NcListItemIcon.vue.d.ts +0 -207
- package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +0 -361
- package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +0 -16
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePicker.vue.d.ts +0 -84
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePickerModal.vue.d.ts +0 -72
- package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +0 -69
- package/dist/components/NcSelect/NcSelect.vue.d.ts +0 -15
- package/dist/components/NcSelectTags/NcSelectTags.vue.d.ts +0 -23
- package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +0 -144
- package/dist/components/NcTimezonePicker/NcTimezonePicker.vue.d.ts +0 -78
- package/dist/components/NcUserBubble/NcUserBubble.vue.d.ts +0 -180
- package/dist/mixins/clickOutsideOptions/index.d.ts +0 -15
- package/dist/plugin.d.ts +0 -17
- /package/dist/assets/{NcActionButtonGroup-CQxLn2fv.css → NcActionButtonGroup-BND4GQdv.css} +0 -0
- /package/dist/assets/{NcActionSeparator-CEbb5P6P.css → NcActionSeparator-Ct2RnclR.css} +0 -0
- /package/dist/assets/{NcAppNavigationNew-R0QcGqvG.css → NcAppNavigationNew-L_VNZNL4.css} +0 -0
- /package/dist/assets/{NcAppNavigationSpacer-DiE3sVy0.css → NcAppNavigationSpacer-BJj8CIpA.css} +0 -0
- /package/dist/assets/{NcAppSidebarTab-Cp0hG2NU.css → NcAppSidebarTab-BFy7uyWe.css} +0 -0
- /package/dist/assets/{NcEmptyContent-C-nruaFh.css → NcEmptyContent-DZSuQ2yE.css} +0 -0
- /package/dist/assets/{NcGuestContent-Dh5z5Dgm.css → NcGuestContent-C9lbC3vg.css} +0 -0
- /package/dist/assets/{NcIconSvgWrapper-CtTf2c7f.css → NcIconSvgWrapper-DQFhmjCC.css} +0 -0
- /package/dist/assets/{NcInputConfirmCancel-DBjIHKvN.css → NcInputConfirmCancel-D46m8Alt.css} +0 -0
- /package/dist/assets/{NcLoadingIcon-BSONDy7x.css → NcLoadingIcon-x1d284UU.css} +0 -0
- /package/dist/assets/{NcProgressBar-BsqdCn-x.css → NcProgressBar--z-WqmX4.css} +0 -0
- /package/dist/assets/{NcSettingsInputText-C3j73xA0.css → NcSettingsInputText-BTOyFeAK.css} +0 -0
- /package/dist/assets/{NcSettingsSelectGroup-CGfaysRv.css → NcSettingsSelectGroup-DhyosmOr.css} +0 -0
- /package/dist/assets/{NcUserStatusIcon-FLA1tQpD.css → NcUserStatusIcon-Du-BEPk_.css} +0 -0
- /package/dist/assets/{Tooltip-4CSl8xev.css → index-DQ4Plm4r.css} +0 -0
- /package/dist/{Components/NcVNodes.mjs → components/NcVNodes/index.mjs} +0 -0
- /package/dist/{Composables/useIsFullscreen.mjs → composables/useIsFullscreen/index.mjs} +0 -0
- /package/dist/{Composables/useIsMobile.mjs → composables/useIsMobile/index.mjs} +0 -0
- /package/dist/{Directives/Focus.mjs → directives/Focus/index.mjs} +0 -0
- /package/dist/{Functions/a11y.mjs → functions/a11y/index.mjs} +0 -0
|
@@ -1,1360 +0,0 @@
|
|
|
1
|
-
import '../assets/referencePickerModal-G4uFPuyg.css';
|
|
2
|
-
import { e as hasFullWidth, i as isWidgetRegistered, h as hasInteractiveView, a as renderWidget, f as destroyWidget, d as isCustomPickerElementRegistered, g as destroyCustomPickerElement, c as renderCustomPickerElement, j as getCustomPickerElementSize } from "./index-CtoB4eIp.mjs";
|
|
3
|
-
import { ref, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, mergeProps, withCtx, createCommentVNode, createElementVNode, toDisplayString, normalizeStyle, createTextVNode, createVNode, withKeys, withModifiers, createApp } from "vue";
|
|
4
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
5
|
-
import { r as register, R as t21, a as t, S as t8, T as t40, U as t36, V as t22, w as t38, W as t29, F as t17, X as t12 } from "./_l10n-6dsjYig_.mjs";
|
|
6
|
-
import axios from "@nextcloud/axios";
|
|
7
|
-
import { loadState } from "@nextcloud/initial-state";
|
|
8
|
-
import { imagePath, generateOcsUrl } from "@nextcloud/router";
|
|
9
|
-
import { N as NcEmptyContent } from "./NcEmptyContent-BoGB3vFC.mjs";
|
|
10
|
-
import { _ as _sfc_main$9 } from "./NcHighlight-BHtRIzqk.mjs";
|
|
11
|
-
import { N as NcSelect } from "./NcSelect-uOkQ9CdB.mjs";
|
|
12
|
-
import { useElementSize, useIntersectionObserver } from "@vueuse/core";
|
|
13
|
-
import { RouterLink } from "vue-router";
|
|
14
|
-
import { g as getRoute } from "./autolink-CKPk5rzg.mjs";
|
|
15
|
-
import { N as NcButton } from "./NcButton-Bhuckhtj.mjs";
|
|
16
|
-
import { N as NcLoadingIcon } from "./NcLoadingIcon-DREmHXr2.mjs";
|
|
17
|
-
import { N as NcTextField } from "./NcTextField-DctsarIL.mjs";
|
|
18
|
-
import { D as DotsHorizontal } from "./DotsHorizontal-CCNSfNOk.mjs";
|
|
19
|
-
import NcModal from "../Components/NcModal.mjs";
|
|
20
|
-
import { emit } from "@nextcloud/event-bus";
|
|
21
|
-
import { A as ArrowLeft } from "./ArrowLeft-CxK9DnMo.mjs";
|
|
22
|
-
import { C as Close } from "./Close-pmiXntgw.mjs";
|
|
23
|
-
register(t21);
|
|
24
|
-
const IDLE_TIMEOUT = 3 * 60 * 1e3;
|
|
25
|
-
const _sfc_main$8 = {
|
|
26
|
-
name: "NcReferenceWidget",
|
|
27
|
-
components: {
|
|
28
|
-
NcButton
|
|
29
|
-
},
|
|
30
|
-
props: {
|
|
31
|
-
reference: {
|
|
32
|
-
type: Object,
|
|
33
|
-
required: true
|
|
34
|
-
},
|
|
35
|
-
interactive: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: true
|
|
38
|
-
},
|
|
39
|
-
interactiveOptIn: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
setup() {
|
|
45
|
-
const isVisible = ref(false);
|
|
46
|
-
const widgetRoot = ref();
|
|
47
|
-
const { width } = useElementSize(widgetRoot);
|
|
48
|
-
useIntersectionObserver(widgetRoot, ([entry]) => {
|
|
49
|
-
nextTick(() => {
|
|
50
|
-
isVisible.value = entry.isIntersecting;
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
return {
|
|
54
|
-
width,
|
|
55
|
-
isVisible,
|
|
56
|
-
widgetRoot
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
data() {
|
|
60
|
-
return {
|
|
61
|
-
showInteractive: false,
|
|
62
|
-
rendered: false,
|
|
63
|
-
idleTimeout: null
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
computed: {
|
|
67
|
-
isInteractive() {
|
|
68
|
-
return !this.interactiveOptIn && this.interactive || this.showInteractive;
|
|
69
|
-
},
|
|
70
|
-
hasFullWidth() {
|
|
71
|
-
return hasFullWidth(this.reference.richObjectType);
|
|
72
|
-
},
|
|
73
|
-
hasCustomWidget() {
|
|
74
|
-
return isWidgetRegistered(this.reference.richObjectType);
|
|
75
|
-
},
|
|
76
|
-
hasInteractiveView() {
|
|
77
|
-
return isWidgetRegistered(this.reference.richObjectType) && hasInteractiveView(this.reference.richObjectType);
|
|
78
|
-
},
|
|
79
|
-
noAccess() {
|
|
80
|
-
return this.reference && !this.reference.accessible;
|
|
81
|
-
},
|
|
82
|
-
descriptionStyle() {
|
|
83
|
-
if (this.numberOfLines === 0) {
|
|
84
|
-
return {
|
|
85
|
-
display: "none"
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
const lineClamp = this.numberOfLines;
|
|
89
|
-
return {
|
|
90
|
-
lineClamp,
|
|
91
|
-
webkitLineClamp: lineClamp
|
|
92
|
-
};
|
|
93
|
-
},
|
|
94
|
-
numberOfLines() {
|
|
95
|
-
const lineCountOffsets = [450, 550, 650, Infinity];
|
|
96
|
-
return lineCountOffsets.findIndex((max) => this.width < max);
|
|
97
|
-
},
|
|
98
|
-
compactLink() {
|
|
99
|
-
const link = this.reference.openGraphObject.link;
|
|
100
|
-
if (!link) {
|
|
101
|
-
return "";
|
|
102
|
-
}
|
|
103
|
-
if (link.startsWith("https://")) {
|
|
104
|
-
return link.substring(8);
|
|
105
|
-
}
|
|
106
|
-
if (link.startsWith("http://")) {
|
|
107
|
-
return link.substring(7);
|
|
108
|
-
}
|
|
109
|
-
return link;
|
|
110
|
-
},
|
|
111
|
-
route() {
|
|
112
|
-
return getRoute(this.$router, this.reference.openGraphObject.link);
|
|
113
|
-
},
|
|
114
|
-
referenceWidgetLinkComponent() {
|
|
115
|
-
return this.route ? RouterLink : "a";
|
|
116
|
-
},
|
|
117
|
-
referenceWidgetLinkProps() {
|
|
118
|
-
return this.route ? { to: this.route } : { href: this.reference.openGraphObject.link, target: "_blank" };
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
watch: {
|
|
122
|
-
isVisible: {
|
|
123
|
-
handler(val) {
|
|
124
|
-
if (!val) {
|
|
125
|
-
this.idleTimeout = setTimeout(() => {
|
|
126
|
-
if (!this.isVisible) {
|
|
127
|
-
this.destroyWidget();
|
|
128
|
-
}
|
|
129
|
-
}, IDLE_TIMEOUT);
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
if (this.idleTimeout) {
|
|
133
|
-
clearTimeout(this.idleTimeout);
|
|
134
|
-
this.idleTimeout = null;
|
|
135
|
-
}
|
|
136
|
-
if (!this.rendered) {
|
|
137
|
-
this.renderWidget();
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
immediate: true
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
beforeUnmount() {
|
|
144
|
-
this.destroyWidget();
|
|
145
|
-
},
|
|
146
|
-
methods: {
|
|
147
|
-
t,
|
|
148
|
-
enableInteractive() {
|
|
149
|
-
this.showInteractive = true;
|
|
150
|
-
this.renderWidget();
|
|
151
|
-
},
|
|
152
|
-
renderWidget() {
|
|
153
|
-
if (!this.$refs.customWidget) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (this?.reference?.richObjectType === "open-graph") {
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
this.$refs.customWidget.innerHTML = "";
|
|
160
|
-
const widget = document.createElement("div");
|
|
161
|
-
this.$refs.customWidget.appendChild(widget);
|
|
162
|
-
this.$nextTick(() => {
|
|
163
|
-
renderWidget(widget, {
|
|
164
|
-
...this.reference,
|
|
165
|
-
interactive: this.isInteractive
|
|
166
|
-
});
|
|
167
|
-
this.rendered = true;
|
|
168
|
-
});
|
|
169
|
-
},
|
|
170
|
-
destroyWidget() {
|
|
171
|
-
if (this.rendered) {
|
|
172
|
-
destroyWidget(this.reference.richObjectType, this.$el);
|
|
173
|
-
this.rendered = false;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
const _hoisted_1$8 = ["src"];
|
|
179
|
-
const _hoisted_2$6 = { class: "widget-default--details" };
|
|
180
|
-
const _hoisted_3$5 = { class: "widget-default--name" };
|
|
181
|
-
const _hoisted_4$4 = { class: "widget-default--link" };
|
|
182
|
-
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
183
|
-
const _component_NcButton = resolveComponent("NcButton");
|
|
184
|
-
return openBlock(), createElementBlock("div", {
|
|
185
|
-
ref: "widgetRoot",
|
|
186
|
-
class: normalizeClass({ "toggle-interactive": $options.hasInteractiveView && !$options.isInteractive })
|
|
187
|
-
}, [
|
|
188
|
-
$props.reference && $options.hasCustomWidget ? (openBlock(), createElementBlock("div", {
|
|
189
|
-
key: 0,
|
|
190
|
-
ref: "customWidget",
|
|
191
|
-
class: normalizeClass(["widget-custom", { "full-width": $options.hasFullWidth }])
|
|
192
|
-
}, null, 2)) : !$options.noAccess && $props.reference && $props.reference.openGraphObject && !$options.hasCustomWidget ? (openBlock(), createBlock(resolveDynamicComponent($options.referenceWidgetLinkComponent), mergeProps({ key: 1 }, $options.referenceWidgetLinkProps, {
|
|
193
|
-
rel: "noopener noreferrer",
|
|
194
|
-
class: "widget-default"
|
|
195
|
-
}), {
|
|
196
|
-
default: withCtx(() => [
|
|
197
|
-
$props.reference.openGraphObject.thumb ? (openBlock(), createElementBlock("img", {
|
|
198
|
-
key: 0,
|
|
199
|
-
class: "widget-default--image",
|
|
200
|
-
src: $props.reference.openGraphObject.thumb
|
|
201
|
-
}, null, 8, _hoisted_1$8)) : createCommentVNode("", true),
|
|
202
|
-
createElementVNode("div", _hoisted_2$6, [
|
|
203
|
-
createElementVNode("p", _hoisted_3$5, toDisplayString($props.reference.openGraphObject.name), 1),
|
|
204
|
-
createElementVNode("p", {
|
|
205
|
-
class: "widget-default--description",
|
|
206
|
-
style: normalizeStyle($options.descriptionStyle)
|
|
207
|
-
}, toDisplayString($props.reference.openGraphObject.description), 5),
|
|
208
|
-
createElementVNode("p", _hoisted_4$4, toDisplayString($options.compactLink), 1)
|
|
209
|
-
])
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
}, 16)) : createCommentVNode("", true),
|
|
213
|
-
$props.interactiveOptIn && $options.hasInteractiveView && !$options.isInteractive ? (openBlock(), createBlock(_component_NcButton, {
|
|
214
|
-
key: 2,
|
|
215
|
-
class: "toggle-interactive--button",
|
|
216
|
-
onClick: $options.enableInteractive
|
|
217
|
-
}, {
|
|
218
|
-
default: withCtx(() => [
|
|
219
|
-
createTextVNode(toDisplayString($options.t("Enable interactive view")), 1)
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
223
|
-
], 2);
|
|
224
|
-
}
|
|
225
|
-
const NcReferenceWidget = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-ae5e68cb"]]);
|
|
226
|
-
const _sfc_main$7 = {
|
|
227
|
-
name: "NcCustomPickerElement",
|
|
228
|
-
props: {
|
|
229
|
-
/**
|
|
230
|
-
* The reference provider
|
|
231
|
-
*/
|
|
232
|
-
provider: {
|
|
233
|
-
type: Object,
|
|
234
|
-
required: true
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
emits: [
|
|
238
|
-
"cancel",
|
|
239
|
-
"submit"
|
|
240
|
-
],
|
|
241
|
-
data() {
|
|
242
|
-
return {
|
|
243
|
-
isRegistered: isCustomPickerElementRegistered(this.provider.id),
|
|
244
|
-
renderResult: null
|
|
245
|
-
};
|
|
246
|
-
},
|
|
247
|
-
mounted() {
|
|
248
|
-
if (this.isRegistered) {
|
|
249
|
-
this.renderElement();
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
beforeUnmount() {
|
|
253
|
-
if (this.isRegistered) {
|
|
254
|
-
destroyCustomPickerElement(this.provider.id, this.$el, this.renderResult);
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
methods: {
|
|
258
|
-
renderElement() {
|
|
259
|
-
if (this.$refs.domElement) {
|
|
260
|
-
this.$refs.domElement.innerHTML = "";
|
|
261
|
-
}
|
|
262
|
-
const renderFunctionResult = renderCustomPickerElement(this.$refs.domElement, { providerId: this.provider.id, accessible: false });
|
|
263
|
-
Promise.resolve(renderFunctionResult).then((result) => {
|
|
264
|
-
this.renderResult = result;
|
|
265
|
-
if (this.renderResult.object?._isVue && this.renderResult.object?.$on) {
|
|
266
|
-
this.renderResult.object.$on("submit", this.onSubmit);
|
|
267
|
-
this.renderResult.object.$on("cancel", this.onCancel);
|
|
268
|
-
}
|
|
269
|
-
this.renderResult.element.addEventListener("submit", (e) => {
|
|
270
|
-
this.onSubmit(e.detail);
|
|
271
|
-
});
|
|
272
|
-
this.renderResult.element.addEventListener("cancel", this.onCancel);
|
|
273
|
-
});
|
|
274
|
-
},
|
|
275
|
-
onSubmit(value) {
|
|
276
|
-
this.$emit("submit", value);
|
|
277
|
-
},
|
|
278
|
-
onCancel() {
|
|
279
|
-
this.$emit("cancel");
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
const _hoisted_1$7 = { ref: "domElement" };
|
|
284
|
-
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
285
|
-
return openBlock(), createElementBlock("div", _hoisted_1$7, null, 512);
|
|
286
|
-
}
|
|
287
|
-
const NcCustomPickerElement = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-314bfb3a"]]);
|
|
288
|
-
register(t8);
|
|
289
|
-
const anyLinkProviderId = "any-link";
|
|
290
|
-
const anyLinkProvider = {
|
|
291
|
-
id: anyLinkProviderId,
|
|
292
|
-
title: t("Any link"),
|
|
293
|
-
icon_url: imagePath("core", "filetypes/link.svg")
|
|
294
|
-
};
|
|
295
|
-
if (!window._vue_richtext_reference_providers) {
|
|
296
|
-
window._vue_richtext_reference_providers = loadState("core", "reference-provider-list", []);
|
|
297
|
-
}
|
|
298
|
-
if (!window._vue_richtext_reference_provider_timestamps) {
|
|
299
|
-
window._vue_richtext_reference_provider_timestamps = loadState("core", "reference-provider-timestamps", {});
|
|
300
|
-
}
|
|
301
|
-
function getProvider(providerId) {
|
|
302
|
-
if (providerId === anyLinkProviderId) {
|
|
303
|
-
return anyLinkProvider;
|
|
304
|
-
}
|
|
305
|
-
return getProviders().find((p) => p.id === providerId);
|
|
306
|
-
}
|
|
307
|
-
function getProviders() {
|
|
308
|
-
return window._vue_richtext_reference_providers.filter((p) => {
|
|
309
|
-
const keep = !!p.search_providers_ids && p.search_providers_ids.length > 0 || isCustomPickerElementRegistered(p.id);
|
|
310
|
-
if (!keep) {
|
|
311
|
-
console.debug("[smart picker]", p.id, "reference provider is discoverable but does not have any related search provider or custom picker component registered");
|
|
312
|
-
}
|
|
313
|
-
return keep;
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
function sortProviders(providerList) {
|
|
317
|
-
const timestamps = window._vue_richtext_reference_provider_timestamps;
|
|
318
|
-
return providerList.sort((a, b) => {
|
|
319
|
-
return a.order === b.order ? 0 : a.order > b.order ? 1 : -1;
|
|
320
|
-
}).sort((a, b) => {
|
|
321
|
-
const ta = timestamps[a.id];
|
|
322
|
-
const tb = timestamps[b.id];
|
|
323
|
-
return ta === tb ? 0 : tb === void 0 ? -1 : ta === void 0 ? 1 : ta > tb ? -1 : 1;
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
function searchProvider(query, limit = null) {
|
|
327
|
-
const providers = getProviders();
|
|
328
|
-
const escapedQuery = query.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
329
|
-
const regexp = new RegExp(escapedQuery, "i");
|
|
330
|
-
const sortedProviders = sortProviders(providers);
|
|
331
|
-
const filteredSortedProviders = sortedProviders.filter((p) => {
|
|
332
|
-
return p.title.match(regexp);
|
|
333
|
-
});
|
|
334
|
-
const searchResult = limit ? filteredSortedProviders.slice(0, limit) : filteredSortedProviders;
|
|
335
|
-
if (query === "" || searchResult.length === 0) {
|
|
336
|
-
searchResult.push(anyLinkProvider);
|
|
337
|
-
}
|
|
338
|
-
return searchResult;
|
|
339
|
-
}
|
|
340
|
-
function touchProvider(providerId) {
|
|
341
|
-
const timestamp = Math.floor(Date.now() / 1e3);
|
|
342
|
-
const params = {
|
|
343
|
-
timestamp
|
|
344
|
-
};
|
|
345
|
-
const url = generateOcsUrl("references/provider/{providerId}", { providerId });
|
|
346
|
-
axios.put(url, params).then((response) => {
|
|
347
|
-
window._vue_richtext_reference_provider_timestamps[providerId] = timestamp;
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
let mytimer = 0;
|
|
351
|
-
function delay(callback, ms) {
|
|
352
|
-
return function() {
|
|
353
|
-
const context = this;
|
|
354
|
-
const args = arguments;
|
|
355
|
-
clearTimeout(mytimer);
|
|
356
|
-
mytimer = setTimeout(function() {
|
|
357
|
-
callback.apply(context, args);
|
|
358
|
-
}, ms);
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
function isUrl(str) {
|
|
362
|
-
try {
|
|
363
|
-
return Boolean(new URL(str));
|
|
364
|
-
} catch (error) {
|
|
365
|
-
return false;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
register(t36, t40);
|
|
369
|
-
const _sfc_main$6 = {
|
|
370
|
-
name: "LinkVariantIcon",
|
|
371
|
-
emits: ["click"],
|
|
372
|
-
props: {
|
|
373
|
-
title: {
|
|
374
|
-
type: String
|
|
375
|
-
},
|
|
376
|
-
fillColor: {
|
|
377
|
-
type: String,
|
|
378
|
-
default: "currentColor"
|
|
379
|
-
},
|
|
380
|
-
size: {
|
|
381
|
-
type: Number,
|
|
382
|
-
default: 24
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
const _hoisted_1$6 = ["aria-hidden", "aria-label"];
|
|
387
|
-
const _hoisted_2$5 = ["fill", "width", "height"];
|
|
388
|
-
const _hoisted_3$4 = { d: "M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z" };
|
|
389
|
-
const _hoisted_4$3 = { key: 0 };
|
|
390
|
-
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
391
|
-
return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
|
|
392
|
-
"aria-hidden": $props.title ? null : true,
|
|
393
|
-
"aria-label": $props.title,
|
|
394
|
-
class: "material-design-icon link-variant-icon",
|
|
395
|
-
role: "img",
|
|
396
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
397
|
-
}), [
|
|
398
|
-
(openBlock(), createElementBlock("svg", {
|
|
399
|
-
fill: $props.fillColor,
|
|
400
|
-
class: "material-design-icon__svg",
|
|
401
|
-
width: $props.size,
|
|
402
|
-
height: $props.size,
|
|
403
|
-
viewBox: "0 0 24 24"
|
|
404
|
-
}, [
|
|
405
|
-
createElementVNode("path", _hoisted_3$4, [
|
|
406
|
-
$props.title ? (openBlock(), createElementBlock("title", _hoisted_4$3, toDisplayString($props.title), 1)) : createCommentVNode("", true)
|
|
407
|
-
])
|
|
408
|
-
], 8, _hoisted_2$5))
|
|
409
|
-
], 16, _hoisted_1$6);
|
|
410
|
-
}
|
|
411
|
-
const LinkVariantIcon = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
412
|
-
const _sfc_main$5 = {
|
|
413
|
-
name: "NcProviderList",
|
|
414
|
-
components: {
|
|
415
|
-
NcSelect,
|
|
416
|
-
NcHighlight: _sfc_main$9,
|
|
417
|
-
NcEmptyContent,
|
|
418
|
-
LinkVariantIcon
|
|
419
|
-
},
|
|
420
|
-
emits: [
|
|
421
|
-
"select-provider",
|
|
422
|
-
"submit"
|
|
423
|
-
],
|
|
424
|
-
data() {
|
|
425
|
-
return {
|
|
426
|
-
selectedProvider: null,
|
|
427
|
-
query: "",
|
|
428
|
-
multiselectPlaceholder: t("Select provider"),
|
|
429
|
-
providerIconAlt: t("Provider icon")
|
|
430
|
-
};
|
|
431
|
-
},
|
|
432
|
-
computed: {
|
|
433
|
-
options() {
|
|
434
|
-
const result = [];
|
|
435
|
-
if (this.query !== "" && isUrl(this.query)) {
|
|
436
|
-
result.push({
|
|
437
|
-
id: this.query,
|
|
438
|
-
title: this.query,
|
|
439
|
-
isLink: true
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
result.push(...searchProvider(this.query));
|
|
443
|
-
return result;
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
methods: {
|
|
447
|
-
focus() {
|
|
448
|
-
setTimeout(() => {
|
|
449
|
-
this.$refs["provider-select"]?.$el?.querySelector("#provider-select-input")?.focus();
|
|
450
|
-
}, 300);
|
|
451
|
-
},
|
|
452
|
-
onProviderSelected(p) {
|
|
453
|
-
if (p !== null) {
|
|
454
|
-
if (p.isLink) {
|
|
455
|
-
this.$emit("submit", p.title);
|
|
456
|
-
} else {
|
|
457
|
-
this.$emit("select-provider", p);
|
|
458
|
-
}
|
|
459
|
-
this.selectedProvider = null;
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
onSearch(query) {
|
|
463
|
-
this.query = query;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
const _hoisted_1$5 = { class: "provider-list" };
|
|
468
|
-
const _hoisted_2$4 = {
|
|
469
|
-
key: 0,
|
|
470
|
-
class: "provider"
|
|
471
|
-
};
|
|
472
|
-
const _hoisted_3$3 = {
|
|
473
|
-
key: 1,
|
|
474
|
-
class: "provider"
|
|
475
|
-
};
|
|
476
|
-
const _hoisted_4$2 = ["src", "alt"];
|
|
477
|
-
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
478
|
-
const _component_LinkVariantIcon = resolveComponent("LinkVariantIcon");
|
|
479
|
-
const _component_NcHighlight = resolveComponent("NcHighlight");
|
|
480
|
-
const _component_NcSelect = resolveComponent("NcSelect");
|
|
481
|
-
const _component_NcEmptyContent = resolveComponent("NcEmptyContent");
|
|
482
|
-
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
483
|
-
createVNode(_component_NcSelect, {
|
|
484
|
-
ref: "provider-select",
|
|
485
|
-
modelValue: $data.selectedProvider,
|
|
486
|
-
"onUpdate:modelValue": [
|
|
487
|
-
_cache[0] || (_cache[0] = ($event) => $data.selectedProvider = $event),
|
|
488
|
-
$options.onProviderSelected
|
|
489
|
-
],
|
|
490
|
-
class: "provider-list--select",
|
|
491
|
-
"input-id": "provider-select-input",
|
|
492
|
-
label: "title",
|
|
493
|
-
placeholder: $data.multiselectPlaceholder,
|
|
494
|
-
options: $options.options,
|
|
495
|
-
"append-to-body": false,
|
|
496
|
-
"clear-search-on-select": true,
|
|
497
|
-
"clear-search-on-blur": () => false,
|
|
498
|
-
filterable: false,
|
|
499
|
-
onSearch: $options.onSearch
|
|
500
|
-
}, {
|
|
501
|
-
option: withCtx((option) => [
|
|
502
|
-
option.isLink ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
503
|
-
createVNode(_component_LinkVariantIcon, {
|
|
504
|
-
class: "link-icon",
|
|
505
|
-
size: 20
|
|
506
|
-
}),
|
|
507
|
-
createElementVNode("span", null, toDisplayString(option.title), 1)
|
|
508
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
509
|
-
createElementVNode("img", {
|
|
510
|
-
class: "provider-icon",
|
|
511
|
-
src: option.icon_url,
|
|
512
|
-
alt: $data.providerIconAlt
|
|
513
|
-
}, null, 8, _hoisted_4$2),
|
|
514
|
-
createVNode(_component_NcHighlight, {
|
|
515
|
-
class: "option-text",
|
|
516
|
-
search: $data.query,
|
|
517
|
-
text: option.title
|
|
518
|
-
}, null, 8, ["search", "text"])
|
|
519
|
-
]))
|
|
520
|
-
]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 8, ["modelValue", "placeholder", "options", "onSearch", "onUpdate:modelValue"]),
|
|
523
|
-
createVNode(_component_NcEmptyContent, { class: "provider-list--empty-content" }, {
|
|
524
|
-
icon: withCtx(() => [
|
|
525
|
-
createVNode(_component_LinkVariantIcon)
|
|
526
|
-
]),
|
|
527
|
-
_: 1
|
|
528
|
-
})
|
|
529
|
-
]);
|
|
530
|
-
}
|
|
531
|
-
const NcProviderList = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-d05c354b"]]);
|
|
532
|
-
register(t22);
|
|
533
|
-
const _sfc_main$4 = {
|
|
534
|
-
name: "NcRawLinkInput",
|
|
535
|
-
components: {
|
|
536
|
-
LinkVariantIcon,
|
|
537
|
-
NcEmptyContent,
|
|
538
|
-
NcLoadingIcon,
|
|
539
|
-
NcReferenceWidget,
|
|
540
|
-
NcTextField
|
|
541
|
-
},
|
|
542
|
-
props: {
|
|
543
|
-
/**
|
|
544
|
-
* The reference provider
|
|
545
|
-
*/
|
|
546
|
-
provider: {
|
|
547
|
-
type: Object,
|
|
548
|
-
required: true
|
|
549
|
-
}
|
|
550
|
-
},
|
|
551
|
-
emits: [
|
|
552
|
-
"submit"
|
|
553
|
-
],
|
|
554
|
-
data() {
|
|
555
|
-
return {
|
|
556
|
-
inputValue: "",
|
|
557
|
-
loading: false,
|
|
558
|
-
reference: null,
|
|
559
|
-
abortController: null,
|
|
560
|
-
inputPlaceholder: t("Enter link")
|
|
561
|
-
};
|
|
562
|
-
},
|
|
563
|
-
computed: {
|
|
564
|
-
isLinkValid() {
|
|
565
|
-
return isUrl(this.inputValue);
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
methods: {
|
|
569
|
-
focus() {
|
|
570
|
-
this.$refs["url-input"].$el.getElementsByTagName("input")[0]?.focus();
|
|
571
|
-
},
|
|
572
|
-
onSubmit(e) {
|
|
573
|
-
const value = e.target.value;
|
|
574
|
-
if (this.isLinkValid) {
|
|
575
|
-
this.$emit("submit", value);
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
onClear() {
|
|
579
|
-
this.inputValue = "";
|
|
580
|
-
this.reference = null;
|
|
581
|
-
},
|
|
582
|
-
onInput() {
|
|
583
|
-
this.reference = null;
|
|
584
|
-
if (this.abortController) {
|
|
585
|
-
this.abortController.abort();
|
|
586
|
-
}
|
|
587
|
-
if (this.isLinkValid) {
|
|
588
|
-
delay(() => {
|
|
589
|
-
this.updateReference();
|
|
590
|
-
}, 500)();
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
updateReference() {
|
|
594
|
-
this.loading = true;
|
|
595
|
-
this.abortController = new AbortController();
|
|
596
|
-
axios.get(generateOcsUrl("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
|
|
597
|
-
signal: this.abortController.signal
|
|
598
|
-
}).then((response) => {
|
|
599
|
-
this.reference = response.data.ocs.data.references[this.inputValue];
|
|
600
|
-
}).catch((error) => {
|
|
601
|
-
console.error(error);
|
|
602
|
-
}).then(() => {
|
|
603
|
-
this.loading = false;
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
const _hoisted_1$4 = { class: "raw-link" };
|
|
609
|
-
const _hoisted_2$3 = { class: "input-wrapper" };
|
|
610
|
-
const _hoisted_3$2 = ["src"];
|
|
611
|
-
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
612
|
-
const _component_NcLoadingIcon = resolveComponent("NcLoadingIcon");
|
|
613
|
-
const _component_LinkVariantIcon = resolveComponent("LinkVariantIcon");
|
|
614
|
-
const _component_NcTextField = resolveComponent("NcTextField");
|
|
615
|
-
const _component_NcReferenceWidget = resolveComponent("NcReferenceWidget");
|
|
616
|
-
const _component_NcEmptyContent = resolveComponent("NcEmptyContent");
|
|
617
|
-
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
618
|
-
createElementVNode("div", _hoisted_2$3, [
|
|
619
|
-
createVNode(_component_NcTextField, {
|
|
620
|
-
ref: "url-input",
|
|
621
|
-
modelValue: $data.inputValue,
|
|
622
|
-
"onUpdate:modelValue": [
|
|
623
|
-
_cache[0] || (_cache[0] = ($event) => $data.inputValue = $event),
|
|
624
|
-
$options.onInput
|
|
625
|
-
],
|
|
626
|
-
"show-trailing-button": $data.inputValue !== "",
|
|
627
|
-
label: $data.inputPlaceholder,
|
|
628
|
-
onTrailingButtonClick: $options.onClear,
|
|
629
|
-
onKeyup: withKeys($options.onSubmit, ["enter"])
|
|
630
|
-
}, {
|
|
631
|
-
default: withCtx(() => [
|
|
632
|
-
$data.loading ? (openBlock(), createBlock(_component_NcLoadingIcon, {
|
|
633
|
-
key: 0,
|
|
634
|
-
size: 16
|
|
635
|
-
})) : (openBlock(), createBlock(_component_LinkVariantIcon, {
|
|
636
|
-
key: 1,
|
|
637
|
-
size: 16
|
|
638
|
-
}))
|
|
639
|
-
]),
|
|
640
|
-
_: 1
|
|
641
|
-
}, 8, ["modelValue", "show-trailing-button", "label", "onTrailingButtonClick", "onUpdate:modelValue", "onKeyup"])
|
|
642
|
-
]),
|
|
643
|
-
$data.reference !== null ? (openBlock(), createBlock(_component_NcReferenceWidget, {
|
|
644
|
-
key: 0,
|
|
645
|
-
class: "reference-widget",
|
|
646
|
-
reference: $data.reference
|
|
647
|
-
}, null, 8, ["reference"])) : (openBlock(), createBlock(_component_NcEmptyContent, {
|
|
648
|
-
key: 1,
|
|
649
|
-
class: "raw-link--empty-content"
|
|
650
|
-
}, {
|
|
651
|
-
icon: withCtx(() => [
|
|
652
|
-
$props.provider.icon_url ? (openBlock(), createElementBlock("img", {
|
|
653
|
-
key: 0,
|
|
654
|
-
class: "provider-icon",
|
|
655
|
-
src: $props.provider.icon_url
|
|
656
|
-
}, null, 8, _hoisted_3$2)) : (openBlock(), createBlock(_component_LinkVariantIcon, { key: 1 }))
|
|
657
|
-
]),
|
|
658
|
-
_: 1
|
|
659
|
-
}))
|
|
660
|
-
]);
|
|
661
|
-
}
|
|
662
|
-
const NcRawLinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-b84f647b"]]);
|
|
663
|
-
const _sfc_main$3 = {
|
|
664
|
-
name: "NcSearchResult",
|
|
665
|
-
components: {
|
|
666
|
-
NcHighlight: _sfc_main$9
|
|
667
|
-
},
|
|
668
|
-
props: {
|
|
669
|
-
/**
|
|
670
|
-
* Unified search result entry
|
|
671
|
-
*/
|
|
672
|
-
entry: {
|
|
673
|
-
type: Object,
|
|
674
|
-
required: true
|
|
675
|
-
},
|
|
676
|
-
/**
|
|
677
|
-
* The query that led to getting this result
|
|
678
|
-
* Used to highlight the entry text
|
|
679
|
-
*/
|
|
680
|
-
query: {
|
|
681
|
-
type: String,
|
|
682
|
-
required: true
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
const _hoisted_1$3 = { class: "result" };
|
|
687
|
-
const _hoisted_2$2 = ["src"];
|
|
688
|
-
const _hoisted_3$1 = { class: "result--content" };
|
|
689
|
-
const _hoisted_4$1 = { class: "result--content--name" };
|
|
690
|
-
const _hoisted_5$1 = { class: "result--content--subline" };
|
|
691
|
-
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
692
|
-
const _component_NcHighlight = resolveComponent("NcHighlight");
|
|
693
|
-
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
694
|
-
$props.entry.icon ? (openBlock(), createElementBlock("div", {
|
|
695
|
-
key: 0,
|
|
696
|
-
class: normalizeClass([{ [$props.entry.icon]: true, rounded: $props.entry.rounded }, "result--icon-class"])
|
|
697
|
-
}, null, 2)) : (openBlock(), createElementBlock("img", {
|
|
698
|
-
key: 1,
|
|
699
|
-
class: normalizeClass(["result--image", { rounded: $props.entry.rounded }]),
|
|
700
|
-
src: $props.entry.thumbnailUrl
|
|
701
|
-
}, null, 10, _hoisted_2$2)),
|
|
702
|
-
createElementVNode("div", _hoisted_3$1, [
|
|
703
|
-
createElementVNode("span", _hoisted_4$1, [
|
|
704
|
-
createVNode(_component_NcHighlight, {
|
|
705
|
-
search: $props.query,
|
|
706
|
-
text: $props.entry.title
|
|
707
|
-
}, null, 8, ["search", "text"])
|
|
708
|
-
]),
|
|
709
|
-
createElementVNode("span", _hoisted_5$1, [
|
|
710
|
-
createVNode(_component_NcHighlight, {
|
|
711
|
-
search: $props.query,
|
|
712
|
-
text: $props.entry.subline
|
|
713
|
-
}, null, 8, ["search", "text"])
|
|
714
|
-
])
|
|
715
|
-
])
|
|
716
|
-
]);
|
|
717
|
-
}
|
|
718
|
-
const NcSearchResult = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-2ae26ab4"]]);
|
|
719
|
-
register(t29, t36, t38);
|
|
720
|
-
const LIMIT = 5;
|
|
721
|
-
const _sfc_main$2 = {
|
|
722
|
-
name: "NcSearch",
|
|
723
|
-
components: {
|
|
724
|
-
LinkVariantIcon,
|
|
725
|
-
DotsHorizontalIcon: DotsHorizontal,
|
|
726
|
-
NcEmptyContent,
|
|
727
|
-
NcSelect,
|
|
728
|
-
NcSearchResult
|
|
729
|
-
},
|
|
730
|
-
props: {
|
|
731
|
-
/**
|
|
732
|
-
* The selected reference provider
|
|
733
|
-
*/
|
|
734
|
-
provider: {
|
|
735
|
-
type: Object,
|
|
736
|
-
required: true
|
|
737
|
-
},
|
|
738
|
-
showEmptyContent: {
|
|
739
|
-
type: Boolean,
|
|
740
|
-
default: true
|
|
741
|
-
},
|
|
742
|
-
searchPlaceholder: {
|
|
743
|
-
type: String,
|
|
744
|
-
default: null
|
|
745
|
-
}
|
|
746
|
-
},
|
|
747
|
-
emits: [
|
|
748
|
-
"submit"
|
|
749
|
-
],
|
|
750
|
-
data() {
|
|
751
|
-
return {
|
|
752
|
-
searchQuery: "",
|
|
753
|
-
selectedResult: null,
|
|
754
|
-
resultsBySearchProvider: {},
|
|
755
|
-
searching: false,
|
|
756
|
-
searchingMoreOf: null,
|
|
757
|
-
abortController: null,
|
|
758
|
-
noOptionsText: t("Start typing to search"),
|
|
759
|
-
providerIconAlt: t("Provider icon")
|
|
760
|
-
};
|
|
761
|
-
},
|
|
762
|
-
computed: {
|
|
763
|
-
mySearchPlaceholder() {
|
|
764
|
-
return this.searchPlaceholder || t("Search");
|
|
765
|
-
},
|
|
766
|
-
searchProviderIds() {
|
|
767
|
-
return this.provider.search_providers_ids;
|
|
768
|
-
},
|
|
769
|
-
options() {
|
|
770
|
-
if (this.searchQuery === "") {
|
|
771
|
-
return [];
|
|
772
|
-
}
|
|
773
|
-
const options = [];
|
|
774
|
-
if (isUrl(this.searchQuery)) {
|
|
775
|
-
options.push(this.rawLinkEntry);
|
|
776
|
-
}
|
|
777
|
-
options.push(...this.formattedSearchResults);
|
|
778
|
-
return options;
|
|
779
|
-
},
|
|
780
|
-
rawLinkEntry() {
|
|
781
|
-
return {
|
|
782
|
-
id: "rawLinkEntry",
|
|
783
|
-
resourceUrl: this.searchQuery,
|
|
784
|
-
isRawLink: true
|
|
785
|
-
};
|
|
786
|
-
},
|
|
787
|
-
formattedSearchResults() {
|
|
788
|
-
const results = [];
|
|
789
|
-
this.searchProviderIds.forEach((pid) => {
|
|
790
|
-
if (this.resultsBySearchProvider[pid].entries.length > 0) {
|
|
791
|
-
if (this.searchProviderIds.length > 1 || this.resultsBySearchProvider[pid].entries.length > 1) {
|
|
792
|
-
results.push({
|
|
793
|
-
id: "groupTitle-" + pid,
|
|
794
|
-
name: this.resultsBySearchProvider[pid].name,
|
|
795
|
-
isCustomGroupTitle: true,
|
|
796
|
-
providerId: pid
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
const providerEntriesWithId = this.resultsBySearchProvider[pid].entries.map((entry, index) => {
|
|
800
|
-
return {
|
|
801
|
-
id: "provider-" + pid + "-entry-" + index,
|
|
802
|
-
...entry
|
|
803
|
-
};
|
|
804
|
-
});
|
|
805
|
-
results.push(...providerEntriesWithId);
|
|
806
|
-
if (this.resultsBySearchProvider[pid].isPaginated) {
|
|
807
|
-
results.push({
|
|
808
|
-
id: "moreOf-" + pid,
|
|
809
|
-
name: this.resultsBySearchProvider[pid].name,
|
|
810
|
-
isMore: true,
|
|
811
|
-
providerId: pid,
|
|
812
|
-
isLoading: this.searchingMoreOf === pid
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
});
|
|
817
|
-
return results;
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
mounted() {
|
|
821
|
-
this.resetResults();
|
|
822
|
-
},
|
|
823
|
-
beforeUnmount() {
|
|
824
|
-
this.cancelSearchRequests();
|
|
825
|
-
},
|
|
826
|
-
methods: {
|
|
827
|
-
t,
|
|
828
|
-
resetResults() {
|
|
829
|
-
const resultsBySearchProvider = {};
|
|
830
|
-
this.searchProviderIds.forEach((pid) => {
|
|
831
|
-
resultsBySearchProvider[pid] = {
|
|
832
|
-
entries: []
|
|
833
|
-
};
|
|
834
|
-
});
|
|
835
|
-
this.resultsBySearchProvider = resultsBySearchProvider;
|
|
836
|
-
},
|
|
837
|
-
focus() {
|
|
838
|
-
setTimeout(() => {
|
|
839
|
-
this.$refs["search-select"]?.$el?.querySelector("#search-select-input")?.focus();
|
|
840
|
-
}, 300);
|
|
841
|
-
},
|
|
842
|
-
cancelSearchRequests() {
|
|
843
|
-
if (this.abortController) {
|
|
844
|
-
this.abortController.abort();
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
onSearchInput(query) {
|
|
848
|
-
this.searchQuery = query;
|
|
849
|
-
delay(() => {
|
|
850
|
-
this.updateSearch();
|
|
851
|
-
}, 500)();
|
|
852
|
-
},
|
|
853
|
-
onSelectResultSelected(item) {
|
|
854
|
-
if (item !== null) {
|
|
855
|
-
if (item.resourceUrl) {
|
|
856
|
-
this.cancelSearchRequests();
|
|
857
|
-
this.$emit("submit", item.resourceUrl);
|
|
858
|
-
} else if (item.isMore) {
|
|
859
|
-
this.searchMoreOf(item.providerId).then(() => {
|
|
860
|
-
this.selectedResult = null;
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
},
|
|
865
|
-
searchMoreOf(searchProviderId) {
|
|
866
|
-
this.searchingMoreOf = searchProviderId;
|
|
867
|
-
this.cancelSearchRequests();
|
|
868
|
-
return this.searchProviders(searchProviderId);
|
|
869
|
-
},
|
|
870
|
-
updateSearch() {
|
|
871
|
-
this.cancelSearchRequests();
|
|
872
|
-
this.resetResults();
|
|
873
|
-
if (this.searchQuery === "") {
|
|
874
|
-
this.searching = false;
|
|
875
|
-
return;
|
|
876
|
-
}
|
|
877
|
-
return this.searchProviders();
|
|
878
|
-
},
|
|
879
|
-
searchProviders(searchProviderId = null) {
|
|
880
|
-
this.abortController = new AbortController();
|
|
881
|
-
this.searching = true;
|
|
882
|
-
const searchPromises = searchProviderId === null ? [...this.searchProviderIds].map((pid) => {
|
|
883
|
-
return this.searchOneProvider(pid);
|
|
884
|
-
}) : [this.searchOneProvider(searchProviderId, this.resultsBySearchProvider[searchProviderId]?.cursor ?? null)];
|
|
885
|
-
return Promise.allSettled(searchPromises).then((promises) => {
|
|
886
|
-
const isOneCanceled = !!promises.find((p) => {
|
|
887
|
-
return p.status === "rejected" && (p.reason.name === "CanceledError" || p.reason.code === "ERR_CANCELED");
|
|
888
|
-
});
|
|
889
|
-
if (!isOneCanceled) {
|
|
890
|
-
this.searching = false;
|
|
891
|
-
this.searchingMoreOf = null;
|
|
892
|
-
}
|
|
893
|
-
});
|
|
894
|
-
},
|
|
895
|
-
searchOneProvider(providerId, cursor = null) {
|
|
896
|
-
const url = cursor === null ? generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId, term: this.searchQuery, limit: LIMIT }) : generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId, term: this.searchQuery, limit: LIMIT, cursor });
|
|
897
|
-
return axios.get(url, {
|
|
898
|
-
signal: this.abortController.signal
|
|
899
|
-
}).then((response) => {
|
|
900
|
-
const data = response.data.ocs.data;
|
|
901
|
-
this.resultsBySearchProvider[providerId].name = data.name;
|
|
902
|
-
this.resultsBySearchProvider[providerId].cursor = data.cursor;
|
|
903
|
-
this.resultsBySearchProvider[providerId].isPaginated = data.isPaginated;
|
|
904
|
-
this.resultsBySearchProvider[providerId].entries.push(...data.entries);
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
const _hoisted_1$2 = {
|
|
910
|
-
key: 0,
|
|
911
|
-
class: "custom-option"
|
|
912
|
-
};
|
|
913
|
-
const _hoisted_2$1 = { class: "option-text" };
|
|
914
|
-
const _hoisted_3 = {
|
|
915
|
-
key: 2,
|
|
916
|
-
class: "custom-option group-name"
|
|
917
|
-
};
|
|
918
|
-
const _hoisted_4 = ["src"];
|
|
919
|
-
const _hoisted_5 = { class: "option-text" };
|
|
920
|
-
const _hoisted_6 = {
|
|
921
|
-
key: 3,
|
|
922
|
-
class: /* @__PURE__ */ normalizeClass({ "custom-option": true })
|
|
923
|
-
};
|
|
924
|
-
const _hoisted_7 = {
|
|
925
|
-
key: 0,
|
|
926
|
-
class: "option-simple-icon icon-loading-small"
|
|
927
|
-
};
|
|
928
|
-
const _hoisted_8 = { class: "option-text" };
|
|
929
|
-
const _hoisted_9 = ["alt", "src"];
|
|
930
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
931
|
-
const _component_LinkVariantIcon = resolveComponent("LinkVariantIcon");
|
|
932
|
-
const _component_NcSearchResult = resolveComponent("NcSearchResult");
|
|
933
|
-
const _component_DotsHorizontalIcon = resolveComponent("DotsHorizontalIcon");
|
|
934
|
-
const _component_NcSelect = resolveComponent("NcSelect");
|
|
935
|
-
const _component_NcEmptyContent = resolveComponent("NcEmptyContent");
|
|
936
|
-
return openBlock(), createElementBlock("div", {
|
|
937
|
-
class: normalizeClass(["smart-picker-search", { "with-empty-content": $props.showEmptyContent }])
|
|
938
|
-
}, [
|
|
939
|
-
createVNode(_component_NcSelect, {
|
|
940
|
-
ref: "search-select",
|
|
941
|
-
modelValue: $data.selectedResult,
|
|
942
|
-
"onUpdate:modelValue": [
|
|
943
|
-
_cache[0] || (_cache[0] = ($event) => $data.selectedResult = $event),
|
|
944
|
-
$options.onSelectResultSelected
|
|
945
|
-
],
|
|
946
|
-
class: "smart-picker-search--select",
|
|
947
|
-
"input-id": "search-select-input",
|
|
948
|
-
label: "name",
|
|
949
|
-
placeholder: $options.mySearchPlaceholder,
|
|
950
|
-
options: $options.options,
|
|
951
|
-
"append-to-body": false,
|
|
952
|
-
"close-on-select": false,
|
|
953
|
-
"clear-search-on-select": false,
|
|
954
|
-
"clear-search-on-blur": () => false,
|
|
955
|
-
"reset-focus-on-options-change": false,
|
|
956
|
-
filterable: false,
|
|
957
|
-
autoscroll: true,
|
|
958
|
-
"reset-on-options-change": false,
|
|
959
|
-
loading: $data.searching,
|
|
960
|
-
onSearch: $options.onSearchInput
|
|
961
|
-
}, {
|
|
962
|
-
option: withCtx((option) => [
|
|
963
|
-
option.isRawLink ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
964
|
-
createVNode(_component_LinkVariantIcon, {
|
|
965
|
-
class: "option-simple-icon",
|
|
966
|
-
size: 20
|
|
967
|
-
}),
|
|
968
|
-
createElementVNode("span", _hoisted_2$1, toDisplayString($options.t("Raw link {options}", { options: option.resourceUrl })), 1)
|
|
969
|
-
])) : option.resourceUrl ? (openBlock(), createBlock(_component_NcSearchResult, {
|
|
970
|
-
key: 1,
|
|
971
|
-
class: "search-result",
|
|
972
|
-
entry: option,
|
|
973
|
-
query: $data.searchQuery
|
|
974
|
-
}, null, 8, ["entry", "query"])) : option.isCustomGroupTitle ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
975
|
-
$props.provider.icon_url ? (openBlock(), createElementBlock("img", {
|
|
976
|
-
key: 0,
|
|
977
|
-
class: "provider-icon group-name-icon",
|
|
978
|
-
src: $props.provider.icon_url
|
|
979
|
-
}, null, 8, _hoisted_4)) : createCommentVNode("", true),
|
|
980
|
-
createElementVNode("span", _hoisted_5, [
|
|
981
|
-
createElementVNode("strong", null, toDisplayString(option.name), 1)
|
|
982
|
-
])
|
|
983
|
-
])) : option.isMore ? (openBlock(), createElementBlock("span", _hoisted_6, [
|
|
984
|
-
option.isLoading ? (openBlock(), createElementBlock("span", _hoisted_7)) : (openBlock(), createBlock(_component_DotsHorizontalIcon, {
|
|
985
|
-
key: 1,
|
|
986
|
-
class: "option-simple-icon",
|
|
987
|
-
size: 20
|
|
988
|
-
})),
|
|
989
|
-
createElementVNode("span", _hoisted_8, toDisplayString($options.t('Load more "{options}"', { options: option.name })), 1)
|
|
990
|
-
])) : createCommentVNode("", true)
|
|
991
|
-
]),
|
|
992
|
-
"no-options": withCtx(() => [
|
|
993
|
-
createTextVNode(toDisplayString($data.noOptionsText), 1)
|
|
994
|
-
]),
|
|
995
|
-
_: 1
|
|
996
|
-
}, 8, ["modelValue", "placeholder", "options", "loading", "onSearch", "onUpdate:modelValue"]),
|
|
997
|
-
$props.showEmptyContent ? (openBlock(), createBlock(_component_NcEmptyContent, {
|
|
998
|
-
key: 0,
|
|
999
|
-
class: "smart-picker-search--empty-content"
|
|
1000
|
-
}, {
|
|
1001
|
-
icon: withCtx(() => [
|
|
1002
|
-
$props.provider.icon_url ? (openBlock(), createElementBlock("img", {
|
|
1003
|
-
key: 0,
|
|
1004
|
-
class: "provider-icon",
|
|
1005
|
-
alt: $data.providerIconAlt,
|
|
1006
|
-
src: $props.provider.icon_url
|
|
1007
|
-
}, null, 8, _hoisted_9)) : (openBlock(), createBlock(_component_LinkVariantIcon, { key: 1 }))
|
|
1008
|
-
]),
|
|
1009
|
-
_: 1
|
|
1010
|
-
})) : createCommentVNode("", true)
|
|
1011
|
-
], 2);
|
|
1012
|
-
}
|
|
1013
|
-
const NcSearch = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-f6cdb836"]]);
|
|
1014
|
-
const MODES = {
|
|
1015
|
-
providerList: 1,
|
|
1016
|
-
standardLinkInput: 2,
|
|
1017
|
-
searchInput: 3,
|
|
1018
|
-
customElement: 4
|
|
1019
|
-
};
|
|
1020
|
-
const _sfc_main$1 = {
|
|
1021
|
-
name: "NcReferencePicker",
|
|
1022
|
-
components: {
|
|
1023
|
-
NcCustomPickerElement,
|
|
1024
|
-
NcProviderList,
|
|
1025
|
-
NcRawLinkInput,
|
|
1026
|
-
NcSearch
|
|
1027
|
-
},
|
|
1028
|
-
props: {
|
|
1029
|
-
/**
|
|
1030
|
-
* Provider to select on creation
|
|
1031
|
-
* Default: null. Show the provider list
|
|
1032
|
-
*/
|
|
1033
|
-
initialProvider: {
|
|
1034
|
-
type: Object,
|
|
1035
|
-
default: () => null
|
|
1036
|
-
},
|
|
1037
|
-
/**
|
|
1038
|
-
* Optional width in pixels
|
|
1039
|
-
* Default: 100%
|
|
1040
|
-
*/
|
|
1041
|
-
width: {
|
|
1042
|
-
type: Number,
|
|
1043
|
-
default: null
|
|
1044
|
-
},
|
|
1045
|
-
/**
|
|
1046
|
-
* Focus on the provider list select input on creation
|
|
1047
|
-
* Default: true
|
|
1048
|
-
*/
|
|
1049
|
-
focusOnCreate: {
|
|
1050
|
-
type: Boolean,
|
|
1051
|
-
default: true
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
emits: [
|
|
1055
|
-
"cancel",
|
|
1056
|
-
"cancel-raw-link",
|
|
1057
|
-
"cancel-search",
|
|
1058
|
-
"provider-selected",
|
|
1059
|
-
"submit"
|
|
1060
|
-
],
|
|
1061
|
-
data() {
|
|
1062
|
-
return {
|
|
1063
|
-
MODES,
|
|
1064
|
-
selectedProvider: this.initialProvider
|
|
1065
|
-
};
|
|
1066
|
-
},
|
|
1067
|
-
computed: {
|
|
1068
|
-
mode() {
|
|
1069
|
-
return this.selectedProvider === null ? MODES.providerList : isCustomPickerElementRegistered(this.selectedProvider.id) ? MODES.customElement : this.selectedProvider.search_providers_ids ? MODES.searchInput : MODES.standardLinkInput;
|
|
1070
|
-
},
|
|
1071
|
-
pickerWrapperStyle() {
|
|
1072
|
-
return {
|
|
1073
|
-
width: this.width ? this.width + "px" : void 0
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
mounted() {
|
|
1078
|
-
if (this.focusOnCreate) {
|
|
1079
|
-
if (this.initialProvider) {
|
|
1080
|
-
setTimeout(() => {
|
|
1081
|
-
this.$refs["url-input"]?.focus();
|
|
1082
|
-
}, 300);
|
|
1083
|
-
} else {
|
|
1084
|
-
this.$nextTick(() => {
|
|
1085
|
-
this.$refs["provider-list"]?.focus();
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
},
|
|
1090
|
-
methods: {
|
|
1091
|
-
onEscapePressed() {
|
|
1092
|
-
if (this.selectedProvider !== null) {
|
|
1093
|
-
this.deselectProvider();
|
|
1094
|
-
} else {
|
|
1095
|
-
this.cancelProviderSelection();
|
|
1096
|
-
}
|
|
1097
|
-
},
|
|
1098
|
-
onProviderSelected(provider) {
|
|
1099
|
-
this.selectedProvider = provider;
|
|
1100
|
-
this.$emit("provider-selected", provider);
|
|
1101
|
-
this.$nextTick(() => {
|
|
1102
|
-
this.$refs["url-input"]?.focus();
|
|
1103
|
-
});
|
|
1104
|
-
},
|
|
1105
|
-
cancelCustomElement() {
|
|
1106
|
-
this.deselectProvider();
|
|
1107
|
-
},
|
|
1108
|
-
cancelSearch() {
|
|
1109
|
-
this.$emit("cancel-search", this.selectedProvider?.title);
|
|
1110
|
-
this.deselectProvider();
|
|
1111
|
-
},
|
|
1112
|
-
cancelRawLinkInput() {
|
|
1113
|
-
this.$emit("cancel-raw-link", this.selectedProvider?.title);
|
|
1114
|
-
this.deselectProvider();
|
|
1115
|
-
},
|
|
1116
|
-
cancelProviderSelection() {
|
|
1117
|
-
this.$emit("cancel");
|
|
1118
|
-
},
|
|
1119
|
-
submitLink(link) {
|
|
1120
|
-
if (this.selectedProvider !== null) {
|
|
1121
|
-
touchProvider(this.selectedProvider.id);
|
|
1122
|
-
}
|
|
1123
|
-
this.$emit("submit", link);
|
|
1124
|
-
this.deselectProvider();
|
|
1125
|
-
},
|
|
1126
|
-
deselectProvider() {
|
|
1127
|
-
this.selectedProvider = null;
|
|
1128
|
-
this.$emit("provider-selected", null);
|
|
1129
|
-
setTimeout(() => {
|
|
1130
|
-
this.$refs["provider-list"]?.focus();
|
|
1131
|
-
}, 300);
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
const _hoisted_1$1 = {
|
|
1136
|
-
key: 3,
|
|
1137
|
-
class: "custom-element-wrapper"
|
|
1138
|
-
};
|
|
1139
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1140
|
-
const _component_NcProviderList = resolveComponent("NcProviderList");
|
|
1141
|
-
const _component_NcRawLinkInput = resolveComponent("NcRawLinkInput");
|
|
1142
|
-
const _component_NcSearch = resolveComponent("NcSearch");
|
|
1143
|
-
const _component_NcCustomPickerElement = resolveComponent("NcCustomPickerElement");
|
|
1144
|
-
return openBlock(), createElementBlock("div", {
|
|
1145
|
-
class: "reference-picker",
|
|
1146
|
-
style: normalizeStyle($options.pickerWrapperStyle),
|
|
1147
|
-
tabindex: "-1",
|
|
1148
|
-
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers((...args) => $options.onEscapePressed && $options.onEscapePressed(...args), ["stop", "prevent"]), ["esc"]))
|
|
1149
|
-
}, [
|
|
1150
|
-
$options.mode === $data.MODES.providerList ? (openBlock(), createBlock(_component_NcProviderList, {
|
|
1151
|
-
key: 0,
|
|
1152
|
-
ref: "provider-list",
|
|
1153
|
-
onSelectProvider: $options.onProviderSelected,
|
|
1154
|
-
onSubmit: $options.submitLink,
|
|
1155
|
-
onCancel: $options.cancelProviderSelection
|
|
1156
|
-
}, null, 8, ["onSelectProvider", "onSubmit", "onCancel"])) : $options.mode === $data.MODES.standardLinkInput ? (openBlock(), createBlock(_component_NcRawLinkInput, {
|
|
1157
|
-
key: 1,
|
|
1158
|
-
ref: "url-input",
|
|
1159
|
-
provider: $data.selectedProvider,
|
|
1160
|
-
onSubmit: $options.submitLink,
|
|
1161
|
-
onCancel: $options.cancelRawLinkInput
|
|
1162
|
-
}, null, 8, ["provider", "onSubmit", "onCancel"])) : $options.mode === $data.MODES.searchInput ? (openBlock(), createBlock(_component_NcSearch, {
|
|
1163
|
-
key: 2,
|
|
1164
|
-
ref: "url-input",
|
|
1165
|
-
provider: $data.selectedProvider,
|
|
1166
|
-
onCancel: $options.cancelSearch,
|
|
1167
|
-
onSubmit: $options.submitLink
|
|
1168
|
-
}, null, 8, ["provider", "onCancel", "onSubmit"])) : $options.mode === $data.MODES.customElement ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1169
|
-
createVNode(_component_NcCustomPickerElement, {
|
|
1170
|
-
provider: $data.selectedProvider,
|
|
1171
|
-
onSubmit: $options.submitLink,
|
|
1172
|
-
onCancel: $options.cancelCustomElement
|
|
1173
|
-
}, null, 8, ["provider", "onSubmit", "onCancel"])
|
|
1174
|
-
])) : createCommentVNode("", true)
|
|
1175
|
-
], 36);
|
|
1176
|
-
}
|
|
1177
|
-
const NcReferencePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-f3f0de17"]]);
|
|
1178
|
-
register(t12, t17);
|
|
1179
|
-
const _sfc_main = {
|
|
1180
|
-
name: "NcReferencePickerModal",
|
|
1181
|
-
components: {
|
|
1182
|
-
NcReferencePicker,
|
|
1183
|
-
NcModal,
|
|
1184
|
-
NcButton,
|
|
1185
|
-
ArrowLeftIcon: ArrowLeft,
|
|
1186
|
-
CloseIcon: Close
|
|
1187
|
-
},
|
|
1188
|
-
props: {
|
|
1189
|
-
/**
|
|
1190
|
-
* Provider to select on creation
|
|
1191
|
-
* Show the provider list if no initial one is provided
|
|
1192
|
-
*/
|
|
1193
|
-
initialProvider: {
|
|
1194
|
-
type: Object,
|
|
1195
|
-
default: () => null
|
|
1196
|
-
},
|
|
1197
|
-
/**
|
|
1198
|
-
* Focus on the input item on create
|
|
1199
|
-
*/
|
|
1200
|
-
focusOnCreate: {
|
|
1201
|
-
type: Boolean,
|
|
1202
|
-
default: true
|
|
1203
|
-
},
|
|
1204
|
-
/**
|
|
1205
|
-
* If true, add the modal content to the Viewer trap elements via the event-bus
|
|
1206
|
-
*/
|
|
1207
|
-
isInsideViewer: {
|
|
1208
|
-
type: Boolean,
|
|
1209
|
-
default: false
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
emits: [
|
|
1213
|
-
"cancel",
|
|
1214
|
-
"submit"
|
|
1215
|
-
],
|
|
1216
|
-
data() {
|
|
1217
|
-
return {
|
|
1218
|
-
show: true,
|
|
1219
|
-
selectedProvider: this.initialProvider,
|
|
1220
|
-
backButtonTitle: t("Back to provider selection"),
|
|
1221
|
-
closeButtonTitle: t("Close"),
|
|
1222
|
-
closeButtonLabel: t("Close Smart Picker")
|
|
1223
|
-
};
|
|
1224
|
-
},
|
|
1225
|
-
computed: {
|
|
1226
|
-
isProviderSelected() {
|
|
1227
|
-
return this.selectedProvider !== null;
|
|
1228
|
-
},
|
|
1229
|
-
showBackButton() {
|
|
1230
|
-
return this.initialProvider === null && this.isProviderSelected;
|
|
1231
|
-
},
|
|
1232
|
-
modalSize() {
|
|
1233
|
-
return this.isProviderSelected && isCustomPickerElementRegistered(this.selectedProvider.id) ? getCustomPickerElementSize(this.selectedProvider.id) ?? "large" : "normal";
|
|
1234
|
-
},
|
|
1235
|
-
showModalName() {
|
|
1236
|
-
return !this.isProviderSelected || !isCustomPickerElementRegistered(this.selectedProvider.id);
|
|
1237
|
-
},
|
|
1238
|
-
modalName() {
|
|
1239
|
-
return this.isProviderSelected ? this.selectedProvider.title : t("Smart Picker");
|
|
1240
|
-
}
|
|
1241
|
-
},
|
|
1242
|
-
mounted() {
|
|
1243
|
-
if (this.isInsideViewer) {
|
|
1244
|
-
const elem = this.$refs.modal_content;
|
|
1245
|
-
emit("viewer:trapElements:changed", elem);
|
|
1246
|
-
}
|
|
1247
|
-
},
|
|
1248
|
-
methods: {
|
|
1249
|
-
onCancel() {
|
|
1250
|
-
this.show = false;
|
|
1251
|
-
this.$emit("cancel");
|
|
1252
|
-
},
|
|
1253
|
-
onSubmit(value) {
|
|
1254
|
-
this.show = false;
|
|
1255
|
-
this.$emit("submit", value);
|
|
1256
|
-
},
|
|
1257
|
-
onProviderSelect(provider) {
|
|
1258
|
-
this.selectedProvider = provider;
|
|
1259
|
-
if (provider === null && this.initialProvider !== null) {
|
|
1260
|
-
this.onCancel();
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
onBackClicked() {
|
|
1264
|
-
this.$refs.referencePicker.deselectProvider();
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
const _hoisted_1 = {
|
|
1269
|
-
ref: "modal_content",
|
|
1270
|
-
class: "reference-picker-modal--content"
|
|
1271
|
-
};
|
|
1272
|
-
const _hoisted_2 = { key: 1 };
|
|
1273
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1274
|
-
const _component_ArrowLeftIcon = resolveComponent("ArrowLeftIcon");
|
|
1275
|
-
const _component_NcButton = resolveComponent("NcButton");
|
|
1276
|
-
const _component_CloseIcon = resolveComponent("CloseIcon");
|
|
1277
|
-
const _component_NcReferencePicker = resolveComponent("NcReferencePicker");
|
|
1278
|
-
const _component_NcModal = resolveComponent("NcModal");
|
|
1279
|
-
return $data.show ? (openBlock(), createBlock(_component_NcModal, {
|
|
1280
|
-
key: 0,
|
|
1281
|
-
size: $options.modalSize,
|
|
1282
|
-
"can-close": false,
|
|
1283
|
-
class: "reference-picker-modal",
|
|
1284
|
-
onClose: $options.onCancel
|
|
1285
|
-
}, {
|
|
1286
|
-
default: withCtx(() => [
|
|
1287
|
-
createElementVNode("div", _hoisted_1, [
|
|
1288
|
-
$options.showBackButton ? (openBlock(), createBlock(_component_NcButton, {
|
|
1289
|
-
key: 0,
|
|
1290
|
-
"aria-label": $data.backButtonTitle,
|
|
1291
|
-
title: $data.backButtonTitle,
|
|
1292
|
-
class: "back-button",
|
|
1293
|
-
onClick: $options.onBackClicked
|
|
1294
|
-
}, {
|
|
1295
|
-
icon: withCtx(() => [
|
|
1296
|
-
createVNode(_component_ArrowLeftIcon)
|
|
1297
|
-
]),
|
|
1298
|
-
_: 1
|
|
1299
|
-
}, 8, ["aria-label", "title", "onClick"])) : createCommentVNode("", true),
|
|
1300
|
-
createVNode(_component_NcButton, {
|
|
1301
|
-
"aria-label": $data.closeButtonLabel,
|
|
1302
|
-
title: $data.closeButtonTitle,
|
|
1303
|
-
type: "tertiary",
|
|
1304
|
-
class: "close-button",
|
|
1305
|
-
onClick: $options.onCancel
|
|
1306
|
-
}, {
|
|
1307
|
-
icon: withCtx(() => [
|
|
1308
|
-
createVNode(_component_CloseIcon)
|
|
1309
|
-
]),
|
|
1310
|
-
_: 1
|
|
1311
|
-
}, 8, ["aria-label", "title", "onClick"]),
|
|
1312
|
-
$options.showModalName ? (openBlock(), createElementBlock("h2", _hoisted_2, toDisplayString($options.modalName), 1)) : createCommentVNode("", true),
|
|
1313
|
-
createVNode(_component_NcReferencePicker, {
|
|
1314
|
-
ref: "referencePicker",
|
|
1315
|
-
"initial-provider": $props.initialProvider,
|
|
1316
|
-
"focus-on-create": $props.focusOnCreate,
|
|
1317
|
-
onProviderSelected: $options.onProviderSelect,
|
|
1318
|
-
onSubmit: $options.onSubmit,
|
|
1319
|
-
onCancel: $options.onCancel
|
|
1320
|
-
}, null, 8, ["initial-provider", "focus-on-create", "onProviderSelected", "onSubmit", "onCancel"])
|
|
1321
|
-
], 512)
|
|
1322
|
-
]),
|
|
1323
|
-
_: 1
|
|
1324
|
-
}, 8, ["size", "onClose"])) : createCommentVNode("", true);
|
|
1325
|
-
}
|
|
1326
|
-
const NcReferencePickerModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-53729c60"]]);
|
|
1327
|
-
async function getLinkWithPicker(providerId = null, isInsideViewer = void 0) {
|
|
1328
|
-
return await new Promise((resolve, reject) => {
|
|
1329
|
-
const modalId = "referencePickerModal";
|
|
1330
|
-
const modalElement = document.createElement("div");
|
|
1331
|
-
modalElement.id = modalId;
|
|
1332
|
-
document.body.append(modalElement);
|
|
1333
|
-
const initialProvider = providerId === null ? null : getProvider(providerId) ?? null;
|
|
1334
|
-
const view = createApp(NcReferencePickerModal, {
|
|
1335
|
-
initialProvider,
|
|
1336
|
-
isInsideViewer,
|
|
1337
|
-
onCancel() {
|
|
1338
|
-
view.unmount();
|
|
1339
|
-
reject(new Error("User cancellation"));
|
|
1340
|
-
},
|
|
1341
|
-
onSubmit(link) {
|
|
1342
|
-
view.unmount();
|
|
1343
|
-
resolve(link);
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
view.mount(modalElement);
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
export {
|
|
1350
|
-
NcReferenceWidget as N,
|
|
1351
|
-
anyLinkProviderId as a,
|
|
1352
|
-
getProvider as b,
|
|
1353
|
-
getProviders as c,
|
|
1354
|
-
searchProvider as d,
|
|
1355
|
-
NcReferencePicker as e,
|
|
1356
|
-
NcReferencePickerModal as f,
|
|
1357
|
-
getLinkWithPicker as g,
|
|
1358
|
-
NcSearch as h,
|
|
1359
|
-
sortProviders as s
|
|
1360
|
-
};
|