@nextcloud/vue 8.39.0 → 8.40.0
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 +19 -0
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +1 -1
- package/dist/Components/NcActionCheckbox.cjs +1 -1
- package/dist/Components/NcActionCheckbox.mjs +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActionLink.cjs +1 -1
- package/dist/Components/NcActionLink.mjs +1 -1
- package/dist/Components/NcActionRadio.cjs +1 -1
- package/dist/Components/NcActionRadio.mjs +1 -1
- package/dist/Components/NcActionRouter.cjs +1 -1
- package/dist/Components/NcActionRouter.mjs +1 -1
- package/dist/Components/NcActionText.cjs +1 -1
- package/dist/Components/NcActionText.mjs +1 -1
- package/dist/Components/NcActionTextEditable.cjs +1 -1
- package/dist/Components/NcActionTextEditable.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppContent.cjs +1 -1
- package/dist/Components/NcAppContent.mjs +1 -1
- package/dist/Components/NcAppNavigation.cjs +1 -1
- package/dist/Components/NcAppNavigation.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationNew.cjs +1 -1
- package/dist/Components/NcAppNavigationNew.mjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSearch.cjs +1 -1
- package/dist/Components/NcAppNavigationSearch.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +1 -1
- package/dist/Components/NcAppSettingsSection.cjs +1 -1
- package/dist/Components/NcAppSettingsSection.mjs +1 -1
- package/dist/Components/NcAppSettingsSectionShortcuts.cjs +1 -1
- package/dist/Components/NcAppSettingsSectionShortcuts.mjs +1 -1
- package/dist/Components/NcAppSettingsShortcutsSection.cjs +1 -1
- package/dist/Components/NcAppSettingsShortcutsSection.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAssistantButton.cjs +1 -1
- package/dist/Components/NcAssistantButton.mjs +1 -1
- package/dist/Components/NcAssistantContent.cjs +4 -4
- package/dist/Components/NcAssistantContent.mjs +4 -4
- package/dist/Components/NcAssistantIcon.cjs +1 -1
- package/dist/Components/NcAssistantIcon.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBlurHash.cjs +1 -1
- package/dist/Components/NcBlurHash.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcButton.cjs +1 -1
- package/dist/Components/NcButton.mjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcChip.cjs +2 -2
- package/dist/Components/NcChip.mjs +2 -2
- package/dist/Components/NcCollectionList.cjs +1 -1
- package/dist/Components/NcCollectionList.mjs +1 -1
- package/dist/Components/NcColorPicker.cjs +1 -1
- package/dist/Components/NcColorPicker.mjs +1 -1
- package/dist/Components/NcContent.cjs +1 -1
- package/dist/Components/NcContent.mjs +1 -1
- package/dist/Components/NcDashboardWidget.cjs +1 -1
- package/dist/Components/NcDashboardWidget.mjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +4 -4
- package/dist/Components/NcDateTimePicker.mjs +4 -4
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +1 -1
- package/dist/Components/NcDialog.cjs +1 -1
- package/dist/Components/NcDialog.mjs +1 -1
- package/dist/Components/NcDialogButton.cjs +1 -1
- package/dist/Components/NcDialogButton.mjs +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcEmptyContent.cjs +2 -2
- package/dist/Components/NcEmptyContent.cjs.map +1 -1
- package/dist/Components/NcEmptyContent.mjs +2 -2
- package/dist/Components/NcEmptyContent.mjs.map +1 -1
- package/dist/Components/NcFilePicker.cjs +1 -1
- package/dist/Components/NcFilePicker.mjs +1 -1
- package/dist/Components/NcFormBox.cjs +1 -1
- package/dist/Components/NcFormBox.mjs +1 -1
- package/dist/Components/NcFormBoxButton.cjs +1 -1
- package/dist/Components/NcFormBoxButton.mjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.cjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.mjs +1 -1
- package/dist/Components/NcFormBoxSwitch.cjs +1 -1
- package/dist/Components/NcFormBoxSwitch.mjs +1 -1
- package/dist/Components/NcFormGroup.cjs +1 -1
- package/dist/Components/NcFormGroup.mjs +1 -1
- package/dist/Components/NcGuestContent.cjs +3 -9
- package/dist/Components/NcGuestContent.cjs.map +1 -1
- package/dist/Components/NcGuestContent.mjs +3 -9
- package/dist/Components/NcGuestContent.mjs.map +1 -1
- package/dist/Components/NcHeaderButton.cjs +1 -1
- package/dist/Components/NcHeaderButton.mjs +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcHotkey.cjs +1 -1
- package/dist/Components/NcHotkey.mjs +1 -1
- package/dist/Components/NcHotkeyList.cjs +1 -1
- package/dist/Components/NcHotkeyList.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcKbd.cjs +1 -1
- package/dist/Components/NcKbd.mjs +1 -1
- package/dist/Components/NcListItem.cjs +1 -1
- package/dist/Components/NcListItem.mjs +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +3 -3
- package/dist/Components/NcModal.mjs +3 -3
- package/dist/Components/NcNoteCard.cjs +2 -2
- package/dist/Components/NcNoteCard.cjs.map +1 -1
- package/dist/Components/NcNoteCard.mjs +2 -2
- package/dist/Components/NcNoteCard.mjs.map +1 -1
- package/dist/Components/NcPasswordField.cjs +1 -1
- package/dist/Components/NcPasswordField.mjs +1 -1
- package/dist/Components/NcPopover.cjs +1 -1
- package/dist/Components/NcPopover.mjs +1 -1
- package/dist/Components/NcRadioGroup.cjs +1 -1
- package/dist/Components/NcRadioGroup.mjs +1 -1
- package/dist/Components/NcRadioGroupButton.cjs +1 -1
- package/dist/Components/NcRadioGroupButton.mjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +1 -1
- package/dist/Components/NcRichContenteditable.mjs +1 -1
- package/dist/Components/NcRichText.cjs +3 -3
- package/dist/Components/NcRichText.mjs +4 -4
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSelectUsers.cjs +1 -1
- package/dist/Components/NcSelectUsers.mjs +1 -1
- package/dist/Components/NcSettingsSection.cjs +1 -1
- package/dist/Components/NcSettingsSection.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextArea.cjs +1 -1
- package/dist/Components/NcTextArea.mjs +1 -1
- package/dist/Components/NcTextField.cjs +1 -1
- package/dist/Components/NcTextField.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Functions/reference.cjs +2 -2
- package/dist/Functions/reference.mjs +2 -2
- package/dist/Functions/registerReference.cjs +1 -1
- package/dist/Functions/registerReference.mjs +1 -1
- package/dist/assets/{NcActionButton-CjKx3679.css → NcActionButton-CwGeOQFe.css} +3 -2
- package/dist/assets/{NcActionCheckbox-CzUElysW.css → NcActionCheckbox-DG9SyAAy.css} +3 -2
- package/dist/assets/{NcActionInput-CPu4Btyq.css → NcActionInput-ESkvZDNh.css} +66 -66
- package/dist/assets/{NcActionLink-Bt-73iBm.css → NcActionLink-CB74Y-9f.css} +3 -2
- package/dist/assets/{NcActionRadio-CROsOVZe.css → NcActionRadio-4a1cWuYb.css} +3 -2
- package/dist/assets/{NcActionRouter-Bpv5Ywxq.css → NcActionRouter-CyyaRzft.css} +3 -2
- package/dist/assets/{NcActionText-IMOkntPi.css → NcActionText-BMO_HKvg.css} +3 -2
- package/dist/assets/{NcActionTextEditable-AuLw5QVP.css → NcActionTextEditable-DPpx-OUr.css} +66 -66
- package/dist/assets/{NcAppContent-CKJUs-ZZ.css → NcAppContent-DyFYmhvX.css} +20 -20
- package/dist/assets/{NcAppNavigation-DfsSMVgo.css → NcAppNavigation-B-X0bAXx.css} +14 -16
- package/dist/assets/{NcAppNavigationCaption-C7GtQb_y.css → NcAppNavigationCaption-NX44RnkW.css} +8 -8
- package/dist/assets/{NcAppNavigationItem-CksjxOVP.css → NcAppNavigationItem-D4T7UQqz.css} +8 -7
- package/dist/assets/{NcAppNavigationNewItem-Dn_iz3og.css → NcAppNavigationNewItem-CtObIA-e.css} +4 -3
- package/dist/assets/{NcAppNavigationSettings-2Wh1E3Hq.css → NcAppNavigationSettings-DGkLlCyq.css} +11 -11
- package/dist/assets/{NcAppSettingsDialog-DRyLeR3T.css → NcAppSettingsDialog-Bi5b1VZg.css} +34 -34
- package/dist/assets/{NcAppSettingsSection-Yg4NYCih.css → NcAppSettingsSection-DU9FOAnJ.css} +7 -7
- package/dist/assets/{NcAppSettingsShortcutsSection-C_DMnyUy.css → NcAppSettingsShortcutsSection-zIKJEvmV.css} +3 -3
- package/dist/assets/{NcAppSidebar-B1bkEVQA.css → NcAppSidebar-DPorFaqk.css} +73 -73
- package/dist/assets/{NcAssistantButton-BNEXluSq.css → NcAssistantButton-CaIHaboe.css} +9 -9
- package/dist/assets/{NcAssistantContent-DrswfkY-.css → NcAssistantContent-D6ZguiGh.css} +3 -3
- package/dist/assets/{NcAssistantIcon-CdtR1Psu.css → NcAssistantIcon-Cmlid9NS.css} +4 -4
- package/dist/assets/{NcAvatar-CK9ipsjF.css → NcAvatar-Dc_YuZk2.css} +25 -25
- package/dist/assets/{NcBlurHash-CT92vFpc.css → NcBlurHash-BW1TQ16k.css} +2 -2
- package/dist/assets/{NcBreadcrumb-0xB19h6f.css → NcBreadcrumb-DyXnSA6l.css} +16 -16
- package/dist/assets/{NcButton-o3s2D3Dl.css → NcButton-C-bkSL_r.css} +49 -49
- package/dist/assets/{NcCheckboxRadioSwitch-BojbloxL.css → NcCheckboxRadioSwitch-DhXG73Zr.css} +53 -51
- package/dist/assets/{NcColorPicker-CCqpXoam.css → NcColorPicker-DjmfbD2K.css} +32 -32
- package/dist/assets/{NcContent-URJTZQq1.css → NcContent-rDfulBCh.css} +12 -13
- package/dist/assets/{NcDateTimePicker-DknygOcQ.css → NcDateTimePicker-DuZR5gqu.css} +8 -8
- package/dist/assets/{NcEmptyContent-CUFc_Dds.css → NcEmptyContent-DAR2ze6H.css} +10 -10
- package/dist/assets/{NcFilePicker-BokX813z.css → NcFilePicker-D_SA_uGV.css} +1 -1
- package/dist/assets/{NcFormBox-9NY7pxez.css → NcFormBox-yb5gffYX.css} +11 -11
- package/dist/assets/{NcFormBoxButton-BlS280R1.css → NcFormBoxButton-BnSImmUm.css} +2 -2
- package/dist/assets/{NcFormBoxItem-BdFKDYqL.css → NcFormBoxItem-DiaYRoDl.css} +17 -13
- package/dist/assets/{NcFormBoxSwitch-CXtmxIfB.css → NcFormBoxSwitch-CDDwfQx6.css} +2 -2
- package/dist/assets/{NcFormGroup-uKT9TTrz.css → NcFormGroup-ChUa97BY.css} +8 -8
- package/dist/assets/{NcGuestContent-BkegjnLL.css → NcGuestContent-27hnc8yQ.css} +3 -3
- package/dist/assets/{NcHotkey-9k8cxWO5.css → NcHotkey-B-GNBJym.css} +8 -8
- package/dist/assets/{NcHotkeyList-CNWXE5jg.css → NcHotkeyList-D7NVZF42.css} +3 -3
- package/dist/assets/{NcIconToggleSwitch-sDZkWAmc.css → NcIconToggleSwitch-Df8M_g5F.css} +4 -4
- package/dist/assets/{NcInputConfirmCancel-Brp9ZfY5.css → NcInputConfirmCancel-DRZviUxz.css} +8 -8
- package/dist/assets/{NcInputField-Cc-l-KGd.css → NcInputField-KvlF4emB.css} +46 -46
- package/dist/assets/{NcKbd-8TOrFNAw.css → NcKbd-BQUEINsB.css} +3 -3
- package/dist/assets/{NcListItem-DP1egljH.css → NcListItem-3a4Lafwa.css} +47 -47
- package/dist/assets/{NcNoteCard-CwNXZ4vV.css → NcNoteCard-C4SocW9G.css} +13 -13
- package/dist/assets/{NcPopover-CJgeCuwk.css → NcPopover-CVOTdP6j.css} +13 -13
- package/dist/assets/{NcRadioGroup-Dss0ok3g.css → NcRadioGroup-DQde-Yd1.css} +2 -2
- package/dist/assets/{NcRadioGroupButton-CMOW3Q4J.css → NcRadioGroupButton-Dwpy1m0F.css} +14 -14
- package/dist/assets/{NcRelatedResourcesPanel-CTpqdDL9.css → NcRelatedResourcesPanel-D5DxWJPc.css} +30 -30
- package/dist/assets/{NcRichContenteditable-DwS6PNCv.css → NcRichContenteditable-Dwd67_kU.css} +29 -29
- package/dist/assets/{NcRichText-Cp_5tfBy.css → NcRichText-D0xtzoWq.css} +91 -91
- package/dist/assets/{NcSettingsSection-D_qeKnRb.css → NcSettingsSection-Fyy2lFk_.css} +9 -9
- package/dist/assets/{NcTextArea-BtG5_qHD.css → NcTextArea-BMPUvHVL.css} +28 -28
- package/dist/assets/{autolink-KPdaBewQ.css → autolink-CR5N0xNQ.css} +3 -3
- package/dist/assets/{referencePickerModal-CGtNx7ew.css → referencePickerModal-C4Pr02xT.css} +53 -18
- package/dist/chunks/{NcActionButton-CiYel4_C.cjs → NcActionButton-B1jvJWjl.cjs} +2 -2
- package/dist/chunks/{NcActionButton-CiYel4_C.cjs.map → NcActionButton-B1jvJWjl.cjs.map} +1 -1
- package/dist/chunks/{NcActionButton-K4jUGMlW.mjs → NcActionButton-D7uypboC.mjs} +2 -2
- package/dist/chunks/{NcActionButton-K4jUGMlW.mjs.map → NcActionButton-D7uypboC.mjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-BGCUJhg_.cjs → NcActionCheckbox-B3vUOSeb.cjs} +2 -2
- package/dist/chunks/{NcActionCheckbox-BGCUJhg_.cjs.map → NcActionCheckbox-B3vUOSeb.cjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-23CmleUh.mjs → NcActionCheckbox-Cbg5yktN.mjs} +2 -2
- package/dist/chunks/{NcActionCheckbox-23CmleUh.mjs.map → NcActionCheckbox-Cbg5yktN.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-CcA3XFGe.cjs → NcActionInput-DITmqZz5.cjs} +5 -5
- package/dist/chunks/{NcActionInput-CcA3XFGe.cjs.map → NcActionInput-DITmqZz5.cjs.map} +1 -1
- package/dist/chunks/{NcActionInput-BoKGVBu8.mjs → NcActionInput-Xepxb1Nk.mjs} +5 -5
- package/dist/chunks/{NcActionInput-BoKGVBu8.mjs.map → NcActionInput-Xepxb1Nk.mjs.map} +1 -1
- package/dist/chunks/{NcActionRadio-Dd3CsuiD.mjs → NcActionRadio-B2bgbBHw.mjs} +2 -2
- package/dist/chunks/{NcActionRadio-Dd3CsuiD.mjs.map → NcActionRadio-B2bgbBHw.mjs.map} +1 -1
- package/dist/chunks/{NcActionRadio-DbkRiTHX.cjs → NcActionRadio-BJSZBI9N.cjs} +2 -2
- package/dist/chunks/{NcActionRadio-DbkRiTHX.cjs.map → NcActionRadio-BJSZBI9N.cjs.map} +1 -1
- package/dist/chunks/{NcActionTextEditable-YqvZGY07.mjs → NcActionTextEditable-BykT5Byh.mjs} +3 -3
- package/dist/chunks/{NcActionTextEditable-BqJ5wONY.cjs.map → NcActionTextEditable-BykT5Byh.mjs.map} +1 -1
- package/dist/chunks/{NcActionTextEditable-BqJ5wONY.cjs → NcActionTextEditable-D4nvhJff.cjs} +3 -3
- package/dist/chunks/{NcActionTextEditable-YqvZGY07.mjs.map → NcActionTextEditable-D4nvhJff.cjs.map} +1 -1
- package/dist/chunks/{NcActions-D51W1X9v.cjs → NcActions-DYWuXM9w.cjs} +3 -3
- package/dist/chunks/{NcActions-D51W1X9v.cjs.map → NcActions-DYWuXM9w.cjs.map} +1 -1
- package/dist/chunks/{NcActions-DbPerbGE.mjs → NcActions-JnumflF4.mjs} +3 -3
- package/dist/chunks/{NcActions-DbPerbGE.mjs.map → NcActions-JnumflF4.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-0hbQMH35.cjs → NcAppContent-BDqXhfww.cjs} +4 -4
- package/dist/chunks/{NcAppContent-0hbQMH35.cjs.map → NcAppContent-BDqXhfww.cjs.map} +1 -1
- package/dist/chunks/{NcAppContent-DAN0qPID.mjs → NcAppContent-BScPRxTJ.mjs} +4 -4
- package/dist/chunks/{NcAppContent-DAN0qPID.mjs.map → NcAppContent-BScPRxTJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-DGufDPoi.mjs → NcAppNavigation-C4iIEWY3.mjs} +4 -4
- package/dist/chunks/{NcAppNavigation-DGufDPoi.mjs.map → NcAppNavigation-C4iIEWY3.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-DB3HqxPL.cjs → NcAppNavigation-qz271rGf.cjs} +4 -4
- package/dist/chunks/{NcAppNavigation-DB3HqxPL.cjs.map → NcAppNavigation-qz271rGf.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BZwuqQcm.mjs → NcAppNavigationCaption-BJnvmftc.mjs} +4 -4
- package/dist/chunks/{NcAppNavigationCaption-WVnxSeIf.cjs.map → NcAppNavigationCaption-BJnvmftc.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-WVnxSeIf.cjs → NcAppNavigationCaption-CYN9-_R2.cjs} +4 -4
- package/dist/chunks/{NcAppNavigationCaption-BZwuqQcm.mjs.map → NcAppNavigationCaption-CYN9-_R2.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-CgYgq_nb.mjs → NcAppNavigationItem-DRaKry-f.mjs} +10 -10
- package/dist/chunks/{NcAppNavigationItem-CgYgq_nb.mjs.map → NcAppNavigationItem-DRaKry-f.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-0zDqIuUZ.cjs → NcAppNavigationItem-qRteEY0G.cjs} +10 -10
- package/dist/chunks/{NcAppNavigationItem-0zDqIuUZ.cjs.map → NcAppNavigationItem-qRteEY0G.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-DRdPwKOi.cjs → NcAppNavigationNew-BAuYV_06.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-DRdPwKOi.cjs.map → NcAppNavigationNew-BAuYV_06.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-BUVnumWS.mjs → NcAppNavigationNew-BOfIdgIu.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-BUVnumWS.mjs.map → NcAppNavigationNew-BOfIdgIu.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-SR744REn.cjs → NcAppNavigationNewItem-B-29d1We.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-SR744REn.cjs.map → NcAppNavigationNewItem-B-29d1We.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-Nz2HecTz.mjs → NcAppNavigationNewItem-KbbB-8vX.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-Nz2HecTz.mjs.map → NcAppNavigationNewItem-KbbB-8vX.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CzhlljAU.mjs → NcAppNavigationSearch-CI_e6Rva.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-CzhlljAU.mjs.map → NcAppNavigationSearch-CI_e6Rva.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-Czcwiin4.cjs → NcAppNavigationSearch-Du8eBuvW.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-Czcwiin4.cjs.map → NcAppNavigationSearch-Du8eBuvW.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-BaO-G72x.mjs → NcAppNavigationSettings-BN3w-BCp.mjs} +4 -4
- package/dist/chunks/{NcAppNavigationSettings-BaO-G72x.mjs.map → NcAppNavigationSettings-BN3w-BCp.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-CotFe5aD.cjs → NcAppNavigationSettings-C2Txc8sh.cjs} +4 -4
- package/dist/chunks/{NcAppNavigationSettings-CotFe5aD.cjs.map → NcAppNavigationSettings-C2Txc8sh.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CkDMk16T.cjs → NcAppNavigationToggle-B7K9pxVq.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-CkDMk16T.cjs.map → NcAppNavigationToggle-B7K9pxVq.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CXX1MFrf.mjs → NcAppNavigationToggle-CZqz-wC8.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-CXX1MFrf.mjs.map → NcAppNavigationToggle-CZqz-wC8.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-MxrFh-Ln.mjs → NcAppSettingsDialog-C7Oywy1u.mjs} +7 -7
- package/dist/chunks/NcAppSettingsDialog-C7Oywy1u.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-Fa5DTfig.cjs → NcAppSettingsDialog-DhHJQute.cjs} +7 -7
- package/dist/chunks/NcAppSettingsDialog-DhHJQute.cjs.map +1 -0
- package/dist/chunks/{NcAppSettingsSection-BjQllLEA.mjs → NcAppSettingsSection-CsGyNFSh.mjs} +3 -3
- package/dist/chunks/{NcAppSettingsSection-BjQllLEA.mjs.map → NcAppSettingsSection-CsGyNFSh.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsSection-CDLQ-AjK.cjs → NcAppSettingsSection-De6vkXOF.cjs} +3 -3
- package/dist/chunks/{NcAppSettingsSection-CDLQ-AjK.cjs.map → NcAppSettingsSection-De6vkXOF.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsShortcutsSection-DgGU8-cF.cjs → NcAppSettingsShortcutsSection-CLKzAASc.cjs} +5 -5
- package/dist/chunks/NcAppSettingsShortcutsSection-CLKzAASc.cjs.map +1 -0
- package/dist/chunks/{NcAppSettingsShortcutsSection-DblUBaWP.mjs → NcAppSettingsShortcutsSection-D3ylJW58.mjs} +5 -5
- package/dist/chunks/NcAppSettingsShortcutsSection-D3ylJW58.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-B7GuNZ4C.mjs → NcAppSidebar-CEo2tgBa.mjs} +7 -7
- package/dist/chunks/{NcAppSidebar-B7GuNZ4C.mjs.map → NcAppSidebar-CEo2tgBa.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-DXEl0_ou.cjs → NcAppSidebar-DJ8JImth.cjs} +7 -7
- package/dist/chunks/{NcAppSidebar-DXEl0_ou.cjs.map → NcAppSidebar-DJ8JImth.cjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-B7BLAkwW.mjs → NcAssistantButton-CHiZT-vH.mjs} +11 -11
- package/dist/chunks/{NcAssistantButton-B7BLAkwW.mjs.map → NcAssistantButton-CHiZT-vH.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-XS3UdAKm.cjs → NcAssistantButton-CPlpv0Sl.cjs} +11 -11
- package/dist/chunks/{NcAssistantButton-XS3UdAKm.cjs.map → NcAssistantButton-CPlpv0Sl.cjs.map} +1 -1
- package/dist/chunks/{NcAssistantIcon-CD5mu9O1.cjs → NcAssistantIcon-CS-KbVIN.cjs} +6 -6
- package/dist/chunks/{NcAssistantIcon-CD5mu9O1.cjs.map → NcAssistantIcon-CS-KbVIN.cjs.map} +1 -1
- package/dist/chunks/{NcAssistantIcon-DCx6AaSW.mjs → NcAssistantIcon-mcLe7umL.mjs} +6 -6
- package/dist/chunks/{NcAssistantIcon-DCx6AaSW.mjs.map → NcAssistantIcon-mcLe7umL.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-DkAX4nqq.mjs → NcAvatar-BBqomFJ3.mjs} +7 -7
- package/dist/chunks/{NcAvatar-DkAX4nqq.mjs.map → NcAvatar-BBqomFJ3.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-D09ZAgeJ.cjs → NcAvatar-BFWbPSke.cjs} +7 -7
- package/dist/chunks/{NcAvatar-D09ZAgeJ.cjs.map → NcAvatar-BFWbPSke.cjs.map} +1 -1
- package/dist/chunks/{NcBlurHash-KSj0HXbX.mjs → NcBlurHash-CP2UBH-9.mjs} +4 -4
- package/dist/chunks/{NcBlurHash-KSj0HXbX.mjs.map → NcBlurHash-CP2UBH-9.mjs.map} +1 -1
- package/dist/chunks/{NcBlurHash-D0wcwBet.cjs → NcBlurHash-DEa3MZG5.cjs} +4 -4
- package/dist/chunks/{NcBlurHash-D0wcwBet.cjs.map → NcBlurHash-DEa3MZG5.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-D8xA3KcG.mjs → NcBreadcrumb-BN1Qrbjc.mjs} +5 -5
- package/dist/chunks/{NcBreadcrumb-14OmaYrH.cjs.map → NcBreadcrumb-BN1Qrbjc.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-14OmaYrH.cjs → NcBreadcrumb-D81qHmqH.cjs} +5 -5
- package/dist/chunks/{NcBreadcrumb-D8xA3KcG.mjs.map → NcBreadcrumb-D81qHmqH.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CZt3UuyO.cjs → NcBreadcrumbs-DxnTSsvR.cjs} +4 -4
- package/dist/chunks/{NcBreadcrumbs-CZt3UuyO.cjs.map → NcBreadcrumbs-DxnTSsvR.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CesoXxTs.mjs → NcBreadcrumbs-OySgLqXi.mjs} +4 -4
- package/dist/chunks/{NcBreadcrumbs-CesoXxTs.mjs.map → NcBreadcrumbs-OySgLqXi.mjs.map} +1 -1
- package/dist/chunks/{NcButton-ByTFUhwJ.cjs → NcButton-B3UxfMyE.cjs} +3 -3
- package/dist/chunks/NcButton-B3UxfMyE.cjs.map +1 -0
- package/dist/chunks/{NcButton-CCWEL9Ci.mjs → NcButton-D6Swkr1k.mjs} +3 -3
- package/dist/chunks/NcButton-D6Swkr1k.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-BQeglWXd.cjs → NcCheckboxRadioSwitch-BonPjuho.cjs} +7 -7
- package/dist/chunks/NcCheckboxRadioSwitch-BonPjuho.cjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-D4IV4zWy.mjs → NcCheckboxRadioSwitch-Ddl_QlRN.mjs} +7 -7
- package/dist/chunks/NcCheckboxRadioSwitch-Ddl_QlRN.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-2jk5XCm8.cjs → NcCollectionList-BXSYaf2B.cjs} +6 -6
- package/dist/chunks/NcCollectionList-BXSYaf2B.cjs.map +1 -0
- package/dist/chunks/{NcCollectionList-DOAZ13vO.mjs → NcCollectionList-q7zkDwqG.mjs} +6 -6
- package/dist/chunks/NcCollectionList-q7zkDwqG.mjs.map +1 -0
- package/dist/chunks/{NcColorPicker-BTiAa5mm.cjs → NcColorPicker-CO85TDOK.cjs} +5 -5
- package/dist/chunks/{NcColorPicker-BTiAa5mm.cjs.map → NcColorPicker-CO85TDOK.cjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-SlazeVcI.mjs → NcColorPicker-DlAxFoRr.mjs} +5 -5
- package/dist/chunks/{NcColorPicker-SlazeVcI.mjs.map → NcColorPicker-DlAxFoRr.mjs.map} +1 -1
- package/dist/chunks/{NcContent-BuTh0ZPb.mjs → NcContent-BgMXU5Dv.mjs} +4 -4
- package/dist/chunks/{NcContent-BuTh0ZPb.mjs.map → NcContent-BgMXU5Dv.mjs.map} +1 -1
- package/dist/chunks/{NcContent-BB-v-amq.cjs → NcContent-D5FcB_7G.cjs} +4 -4
- package/dist/chunks/{NcContent-BB-v-amq.cjs.map → NcContent-D5FcB_7G.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-dMwnFBzc.cjs → NcDashboardWidget-DnR3x-B1.cjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-dMwnFBzc.cjs.map → NcDashboardWidget-DnR3x-B1.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-CO1z9VUN.mjs → NcDashboardWidget-oyS__D-B.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-CO1z9VUN.mjs.map → NcDashboardWidget-oyS__D-B.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-9tQgaPXS.cjs → NcDashboardWidgetItem-NxvhaIPP.cjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-9tQgaPXS.cjs.map → NcDashboardWidgetItem-NxvhaIPP.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-2VgB9qj2.mjs → NcDashboardWidgetItem-uYQMYeJS.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-2VgB9qj2.mjs.map → NcDashboardWidgetItem-uYQMYeJS.mjs.map} +1 -1
- package/dist/chunks/NcDateTime-DE-ltgw2.cjs.map +1 -1
- package/dist/chunks/NcDateTime-enXYuwj8.mjs.map +1 -1
- package/dist/chunks/{NcDialog-DZ7xq7XA.mjs → NcDialog-DmRqcm3W.mjs} +2 -2
- package/dist/chunks/{NcDialog-DZ7xq7XA.mjs.map → NcDialog-DmRqcm3W.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-Qak1QTrv.cjs → NcDialog-W8ujIWJd.cjs} +2 -2
- package/dist/chunks/{NcDialog-Qak1QTrv.cjs.map → NcDialog-W8ujIWJd.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-KNF3Co74.mjs → NcDialogButton-Bqjj-wmb.mjs} +2 -2
- package/dist/chunks/{NcDialogButton-KNF3Co74.mjs.map → NcDialogButton-Bqjj-wmb.mjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-BoetK2zm.cjs → NcDialogButton-C8RbaSqF.cjs} +2 -2
- package/dist/chunks/{NcDialogButton-BoetK2zm.cjs.map → NcDialogButton-C8RbaSqF.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-2KIJVstd.cjs → NcEmojiPicker-7aElsqCQ.cjs} +5 -5
- package/dist/chunks/{NcEmojiPicker-2KIJVstd.cjs.map → NcEmojiPicker-7aElsqCQ.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-DNxcceCn.mjs → NcEmojiPicker-ClkGGFdW.mjs} +5 -5
- package/dist/chunks/{NcEmojiPicker-DNxcceCn.mjs.map → NcEmojiPicker-ClkGGFdW.mjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-Ck9o-ia3.mjs → NcFilePicker-B57HJpaE.mjs} +5 -5
- package/dist/chunks/{NcFilePicker-Ck9o-ia3.mjs.map → NcFilePicker-B57HJpaE.mjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-BL6iajt2.cjs → NcFilePicker-DaUHiwFm.cjs} +5 -5
- package/dist/chunks/{NcFilePicker-BL6iajt2.cjs.map → NcFilePicker-DaUHiwFm.cjs.map} +1 -1
- package/dist/chunks/{NcFormBox-DtoCXLMx.mjs → NcFormBox-Bd7m8ffs.mjs} +7 -7
- package/dist/chunks/{NcFormBox-DtoCXLMx.mjs.map → NcFormBox-Bd7m8ffs.mjs.map} +1 -1
- package/dist/chunks/{NcFormBox-DRGVpFeZ.cjs → NcFormBox-LJwAiXyR.cjs} +7 -7
- package/dist/chunks/{NcFormBox-DRGVpFeZ.cjs.map → NcFormBox-LJwAiXyR.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxButton-ozVuTgCZ.cjs → NcFormBoxButton-BDI6Q7WA.cjs} +5 -5
- package/dist/chunks/{NcFormBoxButton-ozVuTgCZ.cjs.map → NcFormBoxButton-BDI6Q7WA.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxButton-CFWCJ0-X.mjs → NcFormBoxButton-CRL7kucw.mjs} +5 -5
- package/dist/chunks/{NcFormBoxButton-CFWCJ0-X.mjs.map → NcFormBoxButton-CRL7kucw.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-Da8RuDH1.mjs → NcFormBoxCopyButton-BOENrJAS.mjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-Da8RuDH1.mjs.map → NcFormBoxCopyButton-BOENrJAS.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-BS9aM994.cjs → NcFormBoxCopyButton-Bk121Oc2.cjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-BS9aM994.cjs.map → NcFormBoxCopyButton-Bk121Oc2.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxItem-Bz-P0lVG.mjs → NcFormBoxItem-DasY7_rJ.mjs} +11 -11
- package/dist/chunks/{NcFormBoxItem-Bz-P0lVG.mjs.map → NcFormBoxItem-DasY7_rJ.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxItem-3lI7Bu3S.cjs → NcFormBoxItem-Dmcja_Xa.cjs} +11 -11
- package/dist/chunks/{NcFormBoxItem-3lI7Bu3S.cjs.map → NcFormBoxItem-Dmcja_Xa.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxSwitch-7R8iAj1R.cjs → NcFormBoxSwitch-CEO4FLdd.cjs} +6 -6
- package/dist/chunks/NcFormBoxSwitch-CEO4FLdd.cjs.map +1 -0
- package/dist/chunks/{NcFormBoxSwitch-DaaMuPnk.mjs → NcFormBoxSwitch-bdRBjKGq.mjs} +6 -6
- package/dist/chunks/NcFormBoxSwitch-bdRBjKGq.mjs.map +1 -0
- package/dist/chunks/{NcFormGroup-DblLoFMf.mjs → NcFormGroup-tW-MwPUj.mjs} +9 -9
- package/dist/chunks/{NcFormGroup-DblLoFMf.mjs.map → NcFormGroup-tW-MwPUj.mjs.map} +1 -1
- package/dist/chunks/{NcFormGroup-AxkxubKD.cjs → NcFormGroup-wzUs2kfP.cjs} +9 -9
- package/dist/chunks/{NcFormGroup-AxkxubKD.cjs.map → NcFormGroup-wzUs2kfP.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-GtIbBhEd.mjs → NcHeaderButton-MEyDJghO.mjs} +2 -2
- package/dist/chunks/{NcHeaderButton-GtIbBhEd.mjs.map → NcHeaderButton-MEyDJghO.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-BndVfb3e.cjs → NcHeaderButton-SRHcPWsp.cjs} +2 -2
- package/dist/chunks/{NcHeaderButton-BndVfb3e.cjs.map → NcHeaderButton-SRHcPWsp.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-DUQ4pqU-.cjs → NcHeaderMenu-C-K0LFEH.cjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-DUQ4pqU-.cjs.map → NcHeaderMenu-C-K0LFEH.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-elBE_Ukl.mjs → NcHeaderMenu-jHItu4LV.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-elBE_Ukl.mjs.map → NcHeaderMenu-jHItu4LV.mjs.map} +1 -1
- package/dist/chunks/{NcHotkey-vKyDZ2a7.cjs → NcHotkey-CLFZr-9x.cjs} +7 -7
- package/dist/chunks/{NcHotkey-vKyDZ2a7.cjs.map → NcHotkey-CLFZr-9x.cjs.map} +1 -1
- package/dist/chunks/{NcHotkey-CLLtt9LG.mjs → NcHotkey-CpgacYSd.mjs} +7 -7
- package/dist/chunks/{NcHotkey-CLLtt9LG.mjs.map → NcHotkey-CpgacYSd.mjs.map} +1 -1
- package/dist/chunks/{NcHotkeyList-Co7MBL5U.mjs → NcHotkeyList-BYFbKo6_.mjs} +4 -4
- package/dist/chunks/NcHotkeyList-BYFbKo6_.mjs.map +1 -0
- package/dist/chunks/{NcHotkeyList-DhFQdopw.cjs → NcHotkeyList-C_w3SAG_.cjs} +4 -4
- package/dist/chunks/NcHotkeyList-C_w3SAG_.cjs.map +1 -0
- package/dist/chunks/{NcIconToggleSwitch-LTgdIBoC.cjs → NcIconToggleSwitch-Boo2ulI6.cjs} +4 -4
- package/dist/chunks/{NcIconToggleSwitch-LTgdIBoC.cjs.map → NcIconToggleSwitch-Boo2ulI6.cjs.map} +1 -1
- package/dist/chunks/{NcIconToggleSwitch-0NTw7i-t.mjs → NcIconToggleSwitch-DCTeQGv5.mjs} +4 -4
- package/dist/chunks/{NcIconToggleSwitch-0NTw7i-t.mjs.map → NcIconToggleSwitch-DCTeQGv5.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-CEZVhgJR.cjs → NcInputConfirmCancel-CcPcB-bZ.cjs} +7 -7
- package/dist/chunks/{NcInputConfirmCancel-CEZVhgJR.cjs.map → NcInputConfirmCancel-CcPcB-bZ.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-CwuZqsuC.mjs → NcInputConfirmCancel-zqo4ijEJ.mjs} +7 -7
- package/dist/chunks/{NcInputConfirmCancel-CwuZqsuC.mjs.map → NcInputConfirmCancel-zqo4ijEJ.mjs.map} +1 -1
- package/dist/chunks/{NcInputField-i4Z8nb4b.mjs → NcInputField-BrzZ8Bne.mjs} +4 -4
- package/dist/chunks/{NcInputField-i4Z8nb4b.mjs.map → NcInputField-BrzZ8Bne.mjs.map} +1 -1
- package/dist/chunks/{NcInputField-Brpn446B.cjs → NcInputField-DPby7_cZ.cjs} +4 -4
- package/dist/chunks/{NcInputField-Brpn446B.cjs.map → NcInputField-DPby7_cZ.cjs.map} +1 -1
- package/dist/chunks/{NcKbd-GB8FuSAU.mjs → NcKbd-CXJA9sCj.mjs} +4 -4
- package/dist/chunks/{NcKbd-GB8FuSAU.mjs.map → NcKbd-CXJA9sCj.mjs.map} +1 -1
- package/dist/chunks/{NcKbd-DbjnDaJH.cjs → NcKbd-uMv3QPhD.cjs} +4 -4
- package/dist/chunks/{NcKbd-DbjnDaJH.cjs.map → NcKbd-uMv3QPhD.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-C-e9iA9w.cjs → NcListItem-BjV4Jjw0.cjs} +4 -4
- package/dist/chunks/{NcListItem-CaosvdEe.mjs.map → NcListItem-BjV4Jjw0.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-CaosvdEe.mjs → NcListItem-Ciok4H4t.mjs} +4 -4
- package/dist/chunks/{NcListItem-C-e9iA9w.cjs.map → NcListItem-Ciok4H4t.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-DCKYv8Jr.mjs → NcListItemIcon-DdkIQyoP.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-DCKYv8Jr.mjs.map → NcListItemIcon-DdkIQyoP.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-BQ0f65Vg.cjs → NcListItemIcon-DukIl2hl.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-BQ0f65Vg.cjs.map → NcListItemIcon-DukIl2hl.cjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-PQt7wMbW.cjs → NcPasswordField-9QeCVkJe.cjs} +2 -2
- package/dist/chunks/{NcPasswordField-PQt7wMbW.cjs.map → NcPasswordField-9QeCVkJe.cjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-D4OFjLza.mjs → NcPasswordField-CSeFP0Uz.mjs} +2 -2
- package/dist/chunks/{NcPasswordField-D4OFjLza.mjs.map → NcPasswordField-CSeFP0Uz.mjs.map} +1 -1
- package/dist/chunks/{NcPopover-Ujf9nIvN.cjs → NcPopover-BIGPurEP.cjs} +4 -4
- package/dist/chunks/{NcPopover-Ujf9nIvN.cjs.map → NcPopover-BIGPurEP.cjs.map} +1 -1
- package/dist/chunks/{NcPopover-UAg26Qdd.mjs → NcPopover-BzTp7LfM.mjs} +4 -4
- package/dist/chunks/{NcPopover-UAg26Qdd.mjs.map → NcPopover-BzTp7LfM.mjs.map} +1 -1
- package/dist/chunks/{NcRadioGroup-CsPmwGlc.cjs → NcRadioGroup-BbMUIkWl.cjs} +6 -6
- package/dist/chunks/{NcRadioGroup-CsPmwGlc.cjs.map → NcRadioGroup-BbMUIkWl.cjs.map} +1 -1
- package/dist/chunks/{NcRadioGroup-BbBX9X2J.mjs → NcRadioGroup-D4kc6Jjr.mjs} +6 -6
- package/dist/chunks/{NcRadioGroup-BbBX9X2J.mjs.map → NcRadioGroup-D4kc6Jjr.mjs.map} +1 -1
- package/dist/chunks/{NcRadioGroupButton-6skMHhr7.cjs → NcRadioGroupButton-7ImC11aP.cjs} +8 -8
- package/dist/chunks/{NcRadioGroupButton-6skMHhr7.cjs.map → NcRadioGroupButton-7ImC11aP.cjs.map} +1 -1
- package/dist/chunks/{NcRadioGroupButton-BkxlxjIA.mjs → NcRadioGroupButton-B8a5TW2l.mjs} +8 -8
- package/dist/chunks/{NcRadioGroupButton-BkxlxjIA.mjs.map → NcRadioGroupButton-B8a5TW2l.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-l1AlGr83.cjs → NcRelatedResourcesPanel-C7r-tIz-.cjs} +7 -7
- package/dist/chunks/NcRelatedResourcesPanel-C7r-tIz-.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-I2ZOB3cx.mjs → NcRelatedResourcesPanel-CFp3GPty.mjs} +7 -7
- package/dist/chunks/NcRelatedResourcesPanel-CFp3GPty.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-8ZA_LArB.mjs → NcRichContenteditable-CG7oWfBl.mjs} +20 -20
- package/dist/chunks/NcRichContenteditable-CG7oWfBl.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-DZjIiOKo.cjs → NcRichContenteditable-DbhcrLP_.cjs} +20 -20
- package/dist/chunks/NcRichContenteditable-DbhcrLP_.cjs.map +1 -0
- package/dist/chunks/{NcRichText-ByLPwUvM.mjs → NcRichText-C3Nj11Wy.mjs} +8 -8
- package/dist/chunks/{NcRichText-ByLPwUvM.mjs.map → NcRichText-C3Nj11Wy.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-pqvg5l27.cjs → NcRichText-b0ZZCvrD.cjs} +8 -8
- package/dist/chunks/{NcRichText-pqvg5l27.cjs.map → NcRichText-b0ZZCvrD.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-BCcSawYf.cjs → NcSelect-BYRnqQaI.cjs} +2 -2
- package/dist/chunks/{NcSelect-BCcSawYf.cjs.map → NcSelect-BYRnqQaI.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-CHc1QupB.mjs → NcSelect-DrKzKPZL.mjs} +2 -2
- package/dist/chunks/{NcSelect-CHc1QupB.mjs.map → NcSelect-DrKzKPZL.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-uU_mHbSm.cjs → NcSelectTags-CL8AQw8J.cjs} +2 -2
- package/dist/chunks/{NcSelectTags-uU_mHbSm.cjs.map → NcSelectTags-CL8AQw8J.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-Bokig7ar.mjs → NcSelectTags-D8pmnLor.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-Bokig7ar.mjs.map → NcSelectTags-D8pmnLor.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-BB9ZIHeB.cjs → NcSelectUsers-CAl1o2gA.cjs} +3 -3
- package/dist/chunks/{NcSelectUsers-BB9ZIHeB.cjs.map → NcSelectUsers-CAl1o2gA.cjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-B4w9UC_d.mjs → NcSelectUsers-z2bZafO2.mjs} +3 -3
- package/dist/chunks/{NcSelectUsers-B4w9UC_d.mjs.map → NcSelectUsers-z2bZafO2.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-BrIKMh-B.cjs → NcSettingsSection-BfZ8I3zb.cjs} +3 -3
- package/dist/chunks/{NcSettingsSection-BrIKMh-B.cjs.map → NcSettingsSection-BfZ8I3zb.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-Dz_b9rcq.mjs → NcSettingsSection-DV-x6Ag7.mjs} +3 -3
- package/dist/chunks/{NcSettingsSection-Dz_b9rcq.mjs.map → NcSettingsSection-DV-x6Ag7.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BdXf7ytX.mjs → NcSettingsSelectGroup-CFvLzGNf.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-BdXf7ytX.mjs.map → NcSettingsSelectGroup-CFvLzGNf.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BtNFBX1V.cjs → NcSettingsSelectGroup-CmotAYwP.cjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-BtNFBX1V.cjs.map → NcSettingsSelectGroup-CmotAYwP.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-B9Vn3rQC.cjs → NcTextArea-BUH-0gIq.cjs} +3 -3
- package/dist/chunks/{NcTextArea-B9Vn3rQC.cjs.map → NcTextArea-BUH-0gIq.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-DPJWqlJb.mjs → NcTextArea-C82D8CSK.mjs} +3 -3
- package/dist/chunks/{NcTextArea-DPJWqlJb.mjs.map → NcTextArea-C82D8CSK.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-B92lM77I.cjs → NcTextField-2tiCeGZw.cjs} +2 -2
- package/dist/chunks/{NcTextField-B92lM77I.cjs.map → NcTextField-2tiCeGZw.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-Czr9S6YO.mjs → NcTextField-BPhf3E7g.mjs} +2 -2
- package/dist/chunks/{NcTextField-Czr9S6YO.mjs.map → NcTextField-BPhf3E7g.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-D2e7hW-Z.cjs → NcTimezonePicker-BSGxeYwn.cjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-D2e7hW-Z.cjs.map → NcTimezonePicker-BSGxeYwn.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-n9kr9A4o.mjs → NcTimezonePicker-D4xfdT9T.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-n9kr9A4o.mjs.map → NcTimezonePicker-D4xfdT9T.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-CNQJUk2l.cjs → NcUserBubble-BJf2sPSm.cjs} +3 -3
- package/dist/chunks/{NcUserBubble-CNQJUk2l.cjs.map → NcUserBubble-BJf2sPSm.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-BGfZAi4c.mjs → NcUserBubble-CuCNjhc8.mjs} +3 -3
- package/dist/chunks/{NcUserBubble-BGfZAi4c.mjs.map → NcUserBubble-CuCNjhc8.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-BLaRYUFv.cjs → ScopeComponent-4M4zyHnT.cjs} +2 -2
- package/dist/chunks/{ScopeComponent-BLaRYUFv.cjs.map → ScopeComponent-4M4zyHnT.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-77Az-4PS.mjs → ScopeComponent-xx9Z3w0D.mjs} +2 -2
- package/dist/chunks/{ScopeComponent-77Az-4PS.mjs.map → ScopeComponent-xx9Z3w0D.mjs.map} +1 -1
- package/dist/chunks/{autolink-CeB9uxD9.mjs → autolink-C8BYVvdd.mjs} +5 -5
- package/dist/chunks/{autolink-CeB9uxD9.mjs.map → autolink-C8BYVvdd.mjs.map} +1 -1
- package/dist/chunks/{autolink-VQMuzjxl.cjs → autolink-CMWUgEzj.cjs} +5 -5
- package/dist/chunks/{autolink-VQMuzjxl.cjs.map → autolink-CMWUgEzj.cjs.map} +1 -1
- package/dist/chunks/{customPickerElements-DLFtgReB.mjs → customPickerElements-BGmuXU7x.mjs} +7 -2
- package/dist/chunks/customPickerElements-BGmuXU7x.mjs.map +1 -0
- package/dist/chunks/{customPickerElements-GyIIOHiQ.cjs → customPickerElements-CPxrR1_N.cjs} +6 -1
- package/dist/chunks/customPickerElements-CPxrR1_N.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-BGYbZYrX.cjs → referencePickerModal-Cqd084NY.cjs} +111 -15
- package/dist/chunks/referencePickerModal-Cqd084NY.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-B69WouiU.mjs → referencePickerModal-DnsOMAHk.mjs} +111 -15
- package/dist/chunks/referencePickerModal-DnsOMAHk.mjs.map +1 -0
- package/dist/functions/reference/index.d.ts +6 -3
- package/dist/functions/reference/widgets.d.ts +11 -1
- package/dist/index.cjs +66 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +67 -66
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/dist/chunks/NcAppSettingsDialog-Fa5DTfig.cjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-MxrFh-Ln.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsShortcutsSection-DblUBaWP.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsShortcutsSection-DgGU8-cF.cjs.map +0 -1
- package/dist/chunks/NcButton-ByTFUhwJ.cjs.map +0 -1
- package/dist/chunks/NcButton-CCWEL9Ci.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-BQeglWXd.cjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-D4IV4zWy.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-2jk5XCm8.cjs.map +0 -1
- package/dist/chunks/NcCollectionList-DOAZ13vO.mjs.map +0 -1
- package/dist/chunks/NcFormBoxSwitch-7R8iAj1R.cjs.map +0 -1
- package/dist/chunks/NcFormBoxSwitch-DaaMuPnk.mjs.map +0 -1
- package/dist/chunks/NcHotkeyList-Co7MBL5U.mjs.map +0 -1
- package/dist/chunks/NcHotkeyList-DhFQdopw.cjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-I2ZOB3cx.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-l1AlGr83.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-8ZA_LArB.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-DZjIiOKo.cjs.map +0 -1
- package/dist/chunks/customPickerElements-DLFtgReB.mjs.map +0 -1
- package/dist/chunks/customPickerElements-GyIIOHiQ.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-B69WouiU.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-BGYbZYrX.cjs.map +0 -1
|
@@ -6,8 +6,8 @@ function ScopeComponent(Component) {
|
|
|
6
6
|
Component.mounted = [Component.mounted];
|
|
7
7
|
}
|
|
8
8
|
Component.mounted.push(function() {
|
|
9
|
-
this.$el.setAttribute(`data-v-${"
|
|
9
|
+
this.$el.setAttribute(`data-v-${"e7118ae"}`, "");
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
exports.ScopeComponent = ScopeComponent;
|
|
13
|
-
//# sourceMappingURL=ScopeComponent-
|
|
13
|
+
//# sourceMappingURL=ScopeComponent-4M4zyHnT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScopeComponent-
|
|
1
|
+
{"version":3,"file":"ScopeComponent-4M4zyHnT.cjs","sources":["../../src/utils/ScopeComponent.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Manually apply mixing to add data-v-SCOPE attribute on a component's root\n *\n * @param {import('vue').Component} Component - Vue component\n */\nfunction ScopeComponent(Component) {\n\t// Init mounted vue if none\n\tif (!Component.mounted) {\n\t\tComponent.mounted = []\n\t} else if (!Array.isArray(Component.mounted)) {\n\t\tComponent.mounted = [Component.mounted]\n\t}\n\n\t// Inject root scoping function\n\tComponent.mounted.push(function() {\n\t\tthis.$el.setAttribute(`data-v-${SCOPE_VERSION}`, '')\n\t})\n}\n\nexport default ScopeComponent\n"],"names":[],"mappings":";AAUA,SAAS,eAAe,WAAW;AAElC,MAAI,CAAC,UAAU,SAAS;AACvB,cAAU,UAAU,CAAA;AAAA,EACrB,WAAW,CAAC,MAAM,QAAQ,UAAU,OAAO,GAAG;AAC7C,cAAU,UAAU,CAAC,UAAU,OAAO;AAAA,EACvC;AAGA,YAAU,QAAQ,KAAK,WAAW;AACjC,SAAK,IAAI,aAAa,UAAU,SAAa,IAAI,EAAE;AAAA,EACpD,CAAC;AACF;;"}
|
|
@@ -5,10 +5,10 @@ function ScopeComponent(Component) {
|
|
|
5
5
|
Component.mounted = [Component.mounted];
|
|
6
6
|
}
|
|
7
7
|
Component.mounted.push(function() {
|
|
8
|
-
this.$el.setAttribute(`data-v-${"
|
|
8
|
+
this.$el.setAttribute(`data-v-${"e7118ae"}`, "");
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
ScopeComponent as S
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=ScopeComponent-
|
|
14
|
+
//# sourceMappingURL=ScopeComponent-xx9Z3w0D.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScopeComponent-
|
|
1
|
+
{"version":3,"file":"ScopeComponent-xx9Z3w0D.mjs","sources":["../../src/utils/ScopeComponent.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Manually apply mixing to add data-v-SCOPE attribute on a component's root\n *\n * @param {import('vue').Component} Component - Vue component\n */\nfunction ScopeComponent(Component) {\n\t// Init mounted vue if none\n\tif (!Component.mounted) {\n\t\tComponent.mounted = []\n\t} else if (!Array.isArray(Component.mounted)) {\n\t\tComponent.mounted = [Component.mounted]\n\t}\n\n\t// Inject root scoping function\n\tComponent.mounted.push(function() {\n\t\tthis.$el.setAttribute(`data-v-${SCOPE_VERSION}`, '')\n\t})\n}\n\nexport default ScopeComponent\n"],"names":[],"mappings":"AAUA,SAAS,eAAe,WAAW;AAElC,MAAI,CAAC,UAAU,SAAS;AACvB,cAAU,UAAU,CAAA;AAAA,EACrB,WAAW,CAAC,MAAM,QAAQ,UAAU,OAAO,GAAG;AAC7C,cAAU,UAAU,CAAC,UAAU,OAAO;AAAA,EACvC;AAGA,YAAU,QAAQ,KAAK,WAAW;AACjC,SAAK,IAAI,aAAa,UAAU,SAAa,IAAI,EAAE;AAAA,EACpD,CAAC;AACF;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/autolink-
|
|
1
|
+
import '../assets/autolink-CR5N0xNQ.css';
|
|
2
2
|
import { getBaseUrl, getRootUrl } from "@nextcloud/router";
|
|
3
3
|
import { u } from "unist-builder";
|
|
4
4
|
import { visitParents, SKIP } from "unist-util-visit-parents";
|
|
@@ -16,10 +16,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
return { __sfc: true };
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const externalLink = "
|
|
20
|
-
const externalLink_decorated = "
|
|
19
|
+
const externalLink = "_externalLink_-OQw-";
|
|
20
|
+
const externalLink_decorated = "_externalLink_decorated_LMmLc";
|
|
21
21
|
const style0 = {
|
|
22
|
-
"material-design-icon": "_material-design-
|
|
22
|
+
"material-design-icon": "_material-design-icon_Y0Z8V",
|
|
23
23
|
externalLink,
|
|
24
24
|
externalLink_decorated
|
|
25
25
|
};
|
|
@@ -143,4 +143,4 @@ export {
|
|
|
143
143
|
parseUrl as p,
|
|
144
144
|
remarkAutolink as r
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=autolink-
|
|
146
|
+
//# sourceMappingURL=autolink-C8BYVvdd.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autolink-
|
|
1
|
+
{"version":3,"file":"autolink-C8BYVvdd.mjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visitParents } from 'unist-util-visit-parents'\nimport NcRichTextExternalLink from './NcRichTextExternalLink.vue'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\n/**\n * Remark plugin for autolink parsing\n *\n * @param {object} root0 - Options\n * @param {boolean} root0.autolink - Whether to enable autolink parsing\n * @param {boolean} root0.useMarkdown - Whether markdown is being used\n * @param {boolean} root0.useExtendedMarkdown - Whether extended markdown is being used\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisitParents(tree, (node) => node.type === 'text', (node, ancestors) => {\n\t\t\t// Do not autolink text already inside a link node\n\t\t\tif (ancestors.some((ancestor) => ancestor.type === 'link' || ancestor.type === 'linkReference')) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst parent = ancestors.at(-1)\n\t\t\tconst index = parent.children.indexOf(node) ?? 0\n\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\n/**\n * Parse URLs in text and create link components\n *\n * @param {string} text - Text to parse\n * @return {Array<string | { component: typeof NcLink, props: { href: string } }>} Array of text parts - plain text and description of the link component to use\n */\nexport function parseUrl(text) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcRichTextExternalLink, props: { href: href.trim(), decorateExternal: true } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param {import('vue-router').default} router - VueRouter instance of the router link\n * @param {string} url - absolute URL to parse\n * @return {string|null} a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router, url) {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath).route\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUY,MAAC,cAAc;AAOpB,MAAM,uBAAuB;ACG7B,SAAS,eAAe,EAAE,UAAU,aAAa,oBAAmB,GAAI;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UAAU;AACrD;AAAA,IACD;AAEA,iBAAa,MAAM,CAAC,SAAS,KAAK,SAAS,QAAQ,CAAC,MAAM,cAAc;AAEvE,UAAI,UAAU,KAAK,CAAC,aAAa,SAAS,SAAS,UAAU,SAAS,SAAS,eAAe,GAAG;AAChG;AAAA,MACD;AAEA,YAAM,SAAS,UAAU,GAAG,EAAE;AAC9B,YAAM,QAAQ,OAAO,SAAS,QAAQ,IAAI,KAAK;AAE/C,UAAI,SAAS,SAAS,KAAK,KAAK;AAChC,eAAS,OAAO,IAAI,CAAC,MAAM;AAC1B,YAAI,OAAO,MAAM,UAAU;AAC1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ud/router");
|
|
4
4
|
const unistBuilder = require("unist-builder");
|
|
@@ -17,10 +17,10 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
17
17
|
return { __sfc: true };
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const externalLink = "
|
|
21
|
-
const externalLink_decorated = "
|
|
20
|
+
const externalLink = "_externalLink_-OQw-";
|
|
21
|
+
const externalLink_decorated = "_externalLink_decorated_LMmLc";
|
|
22
22
|
const style0 = {
|
|
23
|
-
"material-design-icon": "_material-design-
|
|
23
|
+
"material-design-icon": "_material-design-icon_Y0Z8V",
|
|
24
24
|
externalLink,
|
|
25
25
|
externalLink_decorated
|
|
26
26
|
};
|
|
@@ -142,4 +142,4 @@ exports.URL_PATTERN = URL_PATTERN;
|
|
|
142
142
|
exports.getRoute = getRoute;
|
|
143
143
|
exports.parseUrl = parseUrl;
|
|
144
144
|
exports.remarkAutolink = remarkAutolink;
|
|
145
|
-
//# sourceMappingURL=autolink-
|
|
145
|
+
//# sourceMappingURL=autolink-CMWUgEzj.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autolink-
|
|
1
|
+
{"version":3,"file":"autolink-CMWUgEzj.cjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visitParents } from 'unist-util-visit-parents'\nimport NcRichTextExternalLink from './NcRichTextExternalLink.vue'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\n/**\n * Remark plugin for autolink parsing\n *\n * @param {object} root0 - Options\n * @param {boolean} root0.autolink - Whether to enable autolink parsing\n * @param {boolean} root0.useMarkdown - Whether markdown is being used\n * @param {boolean} root0.useExtendedMarkdown - Whether extended markdown is being used\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisitParents(tree, (node) => node.type === 'text', (node, ancestors) => {\n\t\t\t// Do not autolink text already inside a link node\n\t\t\tif (ancestors.some((ancestor) => ancestor.type === 'link' || ancestor.type === 'linkReference')) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst parent = ancestors.at(-1)\n\t\t\tconst index = parent.children.indexOf(node) ?? 0\n\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\n/**\n * Parse URLs in text and create link components\n *\n * @param {string} text - Text to parse\n * @return {Array<string | { component: typeof NcLink, props: { href: string } }>} Array of text parts - plain text and description of the link component to use\n */\nexport function parseUrl(text) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcRichTextExternalLink, props: { href: href.trim(), decorateExternal: true } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param {import('vue-router').default} router - VueRouter instance of the router link\n * @param {string} url - absolute URL to parse\n * @return {string|null} a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router, url) {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath).route\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":["visitParents","u","SKIP","logger","router","getBaseUrl","getRootUrl"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUY,MAAC,cAAc;AAOpB,MAAM,uBAAuB;ACG7B,SAAS,eAAe,EAAE,UAAU,aAAa,oBAAmB,GAAI;AAC9E,SAAO,SA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,GAAG;AAM3C,WAAO;AAAA,EACR;AAGA,QAAM,cAAc,gBAAgB,eAAe,KAAKA,OAAAA,WAAU,GAAI,YAAY,IAAI;AAGtF,QAAM,qBAAqB,eAAeD,SAAO,QAAQ,MAAME,OAAAA,WAAU,GAAI,YAAY;AAGzF,QAAM,sBAAsB,eAAe,aAAa,kBAAkB,KAAK;AAG/E,QAAM,QAAQF,SAAO,QAAQ,mBAAmB,EAAE;AAElD,MAAI,CAAC,MAAM,QAAQ,QAAQ;AAC1B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM;AACd;;;;;;"}
|
|
@@ -8,6 +8,7 @@ function registerWidget(id, callback, onDestroy = () => {
|
|
|
8
8
|
const propsWithDefaults = {
|
|
9
9
|
hasInteractiveView: true,
|
|
10
10
|
fullWidth: false,
|
|
11
|
+
isResizable: false,
|
|
11
12
|
...props
|
|
12
13
|
};
|
|
13
14
|
if (window._vue_richtext_widgets[id]) {
|
|
@@ -50,6 +51,9 @@ function hasInteractiveView(id) {
|
|
|
50
51
|
function hasFullWidth(id) {
|
|
51
52
|
return !!window._vue_richtext_widgets[id]?.fullWidth;
|
|
52
53
|
}
|
|
54
|
+
function isResizable(id) {
|
|
55
|
+
return !!window._vue_richtext_widgets[id]?.isResizable;
|
|
56
|
+
}
|
|
53
57
|
window._vue_richtext_custom_picker_elements ??= {};
|
|
54
58
|
window._registerCustomPickerElement ??= registerCustomPickerElement;
|
|
55
59
|
class NcCustomPickerRenderResult {
|
|
@@ -112,7 +116,8 @@ export {
|
|
|
112
116
|
getCustomPickerElementSize as g,
|
|
113
117
|
hasInteractiveView as h,
|
|
114
118
|
isWidgetRegistered as i,
|
|
115
|
-
|
|
119
|
+
isResizable as j,
|
|
120
|
+
hasFullWidth as k,
|
|
116
121
|
registerWidget as r
|
|
117
122
|
};
|
|
118
|
-
//# sourceMappingURL=customPickerElements-
|
|
123
|
+
//# sourceMappingURL=customPickerElements-BGmuXU7x.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPickerElements-BGmuXU7x.mjs","sources":["../../src/functions/reference/widgets.ts","../../src/functions/reference/customPickerElements.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../../utils/logger.ts'\n\nexport interface ReferenceWidgetRenderProperties {\n\trichObjectType: string\n\trichObject: object\n\taccessible: boolean\n\tinteractive: boolean\n}\n\ntype ReferenceWidgetRenderCallback = (el: HTMLElement, properties: ReferenceWidgetRenderProperties) => void\ntype ReferenceWidgetDestroyCallback = (el: HTMLElement) => void\n\nexport interface ReferenceWidgetProps {\n\tid: string\n\thasInteractiveView: boolean\n\tfullWidth: boolean\n\tisResizable: boolean\n\tcallback: ReferenceWidgetRenderCallback\n\tonDestroy: ReferenceWidgetDestroyCallback\n}\n\nwindow._vue_richtext_widgets ??= {}\nwindow._registerWidget ??= (id: string, callback: ReferenceWidgetRenderCallback, onDestroy: ReferenceWidgetDestroyCallback, props: Partial<ReferenceWidgetProps>) => {\n\tregisterWidget(id, callback, onDestroy, props)\n}\n\n/**\n * Register a new reference widget\n *\n * @param id - Id tof the widget\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param props - Widget props (all optional)\n * @param props.hasInteractiveView - Whether the widget exposes an interactive view (default: true)\n * @param props.fullWidth - Whether the widget renders at full container width (default: false)\n * @param props.isResizable - Whether the user can drag-resize the widget height (default: false)\n */\nexport function registerWidget(\n\tid: string,\n\tcallback: ReferenceWidgetRenderCallback,\n\tonDestroy: ReferenceWidgetDestroyCallback = () => {},\n\tprops?: Partial<ReferenceWidgetProps>,\n) {\n\tconst propsWithDefaults = {\n\t\thasInteractiveView: true,\n\t\tfullWidth: false,\n\t\tisResizable: false,\n\t\t...props,\n\t}\n\n\tif (window._vue_richtext_widgets[id]) {\n\t\tlogger.error(`[ReferencePicker]: Widget for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\t...propsWithDefaults,\n\t}\n}\n\n/**\n * Render a reference widget to a given HTML element.\n *\n * @param el - The element to render widget to\n * @param options - render options\n */\nexport function renderWidget(el: HTMLElement, options: ReferenceWidgetRenderProperties) {\n\tconst { richObjectType, richObject, accessible, interactive } = options\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\tlogger.error('Widget for rich object type ' + richObjectType + ' not registered')\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive })\n}\n\n/**\n * Call the cleanup callback of the reference widget for given object type.\n *\n * @param richObjectType - The object type\n * @param el - The element\n */\nexport function destroyWidget(richObjectType: string, el: HTMLElement) {\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].onDestroy(el)\n}\n\n/**\n * Check if a widget with the give id is registered.\n *\n * @param id - Id of the widget\n */\nexport function isWidgetRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]\n}\n\n/**\n * Check if the given widget has an interactive view.\n *\n * @param id - Id of the widget\n */\nexport function hasInteractiveView(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.hasInteractiveView\n}\n\n/**\n * Check if the widget supports full width.\n *\n * @param id - Id of the widget\n */\nexport function hasFullWidth(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.fullWidth\n}\n\n/**\n * Check if the widget is resizable.\n *\n * @param id - Id of the widget\n */\nexport function isResizable(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.isResizable\n}\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../../utils/logger.ts'\n\nwindow._vue_richtext_custom_picker_elements ??= {}\nwindow._registerCustomPickerElement ??= registerCustomPickerElement\n\n/**\n * Representation of the render callback result\n * It contains a dom element and an object (Vue instance or other fancy things)\n */\nexport class NcCustomPickerRenderResult {\n\tpublic element: HTMLElement\n\tpublic object: object\n\n\t/**\n\t * @param element - The HTML element\n\t * @param object - The object\n\t */\n\tconstructor(element: HTMLElement, object: object) {\n\t\tthis.element = element\n\t\tthis.object = object\n\t}\n}\n\ninterface CustomPickerElementProps {\n\tproviderId: number\n\taccessible: boolean\n}\n\ntype CustomPickerElementRegistrationCallback = (el: HTMLElement, options: CustomPickerElementProps) => void\ntype CustomPickerElementDestroyCallback = (el: HTMLElement, result: NcCustomPickerRenderResult) => void\n\nexport interface CustomPickerElement {\n\tid: string\n\tsize: 'small' | 'normal' | 'large' | 'full'\n\n\tcallback: CustomPickerElementRegistrationCallback\n\tonDestroy: CustomPickerElementDestroyCallback\n}\n\n/**\n * @param id - Id of the element to check\n */\nexport function isCustomPickerElementRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_custom_picker_elements[id]\n}\n\n/**\n * @param id - Id of the element to get\n */\nexport function getCustomPickerElementSize(id: string): 'small' | 'normal' | 'large' | 'full' | null {\n\tconst size = window._vue_richtext_custom_picker_elements[id]?.size\n\tif (['small', 'normal', 'large', 'full'].includes(size)) {\n\t\treturn size\n\t}\n\treturn null\n}\n\n/**\n * @param id - Id of element to register\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param size - Size of the element\n */\nexport function registerCustomPickerElement(\n\tid: string,\n\tcallback: CustomPickerElementRegistrationCallback,\n\tonDestroy: CustomPickerElementDestroyCallback = () => {},\n\tsize: CustomPickerElement['size'] = 'large',\n) {\n\tif (window._vue_richtext_custom_picker_elements[id]) {\n\t\tlogger.error(`Custom reference picker element for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\tsize,\n\t}\n}\n\n/**\n * @param el - element to render to\n * @param options - Element options\n */\nexport function renderCustomPickerElement(el: HTMLElement, options: CustomPickerElementProps) {\n\tconst { providerId, accessible } = options\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\tlogger.error(`Custom reference picker element for reference provider ID ${providerId} not registered`)\n\t\treturn\n\t}\n\n\treturn window._vue_richtext_custom_picker_elements[providerId]\n\t\t.callback(el, { providerId, accessible })\n}\n\n/**\n * @param providerId - Provider id of element to destroy\n * @param el - The element to destroy element from\n * @param renderResult - The render result\n */\nexport function destroyCustomPickerElement(providerId: string, el: HTMLElement, renderResult: NcCustomPickerRenderResult) {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[providerId]\n\t\t.onDestroy(el, renderResult)\n}\n"],"names":[],"mappings":";AA0BA,OAAO,0BAA0B,CAAA;AACjC,OAAO,oBAAoB,CAAC,IAAY,UAAyC,WAA2C,UAAyC;AACpK,iBAAe,IAAI,UAAU,WAAW,KAAK;AAC9C;AAaO,SAAS,eACf,IACA,UACA,YAA4C,MAAM;AAAC,GACnD,OACC;AACD,QAAM,oBAAoB;AAAA,IACzB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,aAAa;AAAA,IACb,GAAG;AAAA,EAAA;AAGJ,MAAI,OAAO,sBAAsB,EAAE,GAAG;AACrC,WAAO,MAAM,oCAAoC,EAAE,qBAAqB;AACxE;AAAA,EACD;AAEA,SAAO,sBAAsB,EAAE,IAAI;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA;AAEL;AAQO,SAAS,aAAa,IAAiB,SAA0C;AACvF,QAAM,EAAE,gBAAgB,YAAY,YAAY,gBAAgB;AAChE,MAAI,mBAAmB,cAAc;AACpC;AAAA,EACD;AAEA,MAAI,CAAC,OAAO,sBAAsB,cAAc,GAAG;AAClD,WAAO,MAAM,iC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AE,qBAAqB;AAC9E;AAAA,EACD;AAEA,SAAO,qCAAqC,EAAE,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF;AAMO,SAAS,0BAA0B,IAAiB,SAAmC;AAC7F,QAAM,EAAE,YAAY,WAAA,IAAe;AACnC,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D,WAAO,MAAM,6DAA6D,UAAU,iBAAiB;AACrG;AAAA,EACD;AAEA,SAAO,OAAO,qCAAqC,UAAU,EAC3D,SAAS,IAAI,EAAE,YAAY,YAAY;AAC1C;AAOO,SAAS,2BAA2B,YAAoB,IAAiB,cAA0C;AACzH,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D;AAAA,EACD;AAEA,SAAO,qCAAqC,UAAU,EACpD,UAAU,IAAI,YAAY;AAC7B;"}
|
|
@@ -9,6 +9,7 @@ function registerWidget(id, callback, onDestroy = () => {
|
|
|
9
9
|
const propsWithDefaults = {
|
|
10
10
|
hasInteractiveView: true,
|
|
11
11
|
fullWidth: false,
|
|
12
|
+
isResizable: false,
|
|
12
13
|
...props
|
|
13
14
|
};
|
|
14
15
|
if (window._vue_richtext_widgets[id]) {
|
|
@@ -51,6 +52,9 @@ function hasInteractiveView(id) {
|
|
|
51
52
|
function hasFullWidth(id) {
|
|
52
53
|
return !!window._vue_richtext_widgets[id]?.fullWidth;
|
|
53
54
|
}
|
|
55
|
+
function isResizable(id) {
|
|
56
|
+
return !!window._vue_richtext_widgets[id]?.isResizable;
|
|
57
|
+
}
|
|
54
58
|
window._vue_richtext_custom_picker_elements ??= {};
|
|
55
59
|
window._registerCustomPickerElement ??= registerCustomPickerElement;
|
|
56
60
|
class NcCustomPickerRenderResult {
|
|
@@ -109,9 +113,10 @@ exports.getCustomPickerElementSize = getCustomPickerElementSize;
|
|
|
109
113
|
exports.hasFullWidth = hasFullWidth;
|
|
110
114
|
exports.hasInteractiveView = hasInteractiveView;
|
|
111
115
|
exports.isCustomPickerElementRegistered = isCustomPickerElementRegistered;
|
|
116
|
+
exports.isResizable = isResizable;
|
|
112
117
|
exports.isWidgetRegistered = isWidgetRegistered;
|
|
113
118
|
exports.registerCustomPickerElement = registerCustomPickerElement;
|
|
114
119
|
exports.registerWidget = registerWidget;
|
|
115
120
|
exports.renderCustomPickerElement = renderCustomPickerElement;
|
|
116
121
|
exports.renderWidget = renderWidget;
|
|
117
|
-
//# sourceMappingURL=customPickerElements-
|
|
122
|
+
//# sourceMappingURL=customPickerElements-CPxrR1_N.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPickerElements-CPxrR1_N.cjs","sources":["../../src/functions/reference/widgets.ts","../../src/functions/reference/customPickerElements.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../../utils/logger.ts'\n\nexport interface ReferenceWidgetRenderProperties {\n\trichObjectType: string\n\trichObject: object\n\taccessible: boolean\n\tinteractive: boolean\n}\n\ntype ReferenceWidgetRenderCallback = (el: HTMLElement, properties: ReferenceWidgetRenderProperties) => void\ntype ReferenceWidgetDestroyCallback = (el: HTMLElement) => void\n\nexport interface ReferenceWidgetProps {\n\tid: string\n\thasInteractiveView: boolean\n\tfullWidth: boolean\n\tisResizable: boolean\n\tcallback: ReferenceWidgetRenderCallback\n\tonDestroy: ReferenceWidgetDestroyCallback\n}\n\nwindow._vue_richtext_widgets ??= {}\nwindow._registerWidget ??= (id: string, callback: ReferenceWidgetRenderCallback, onDestroy: ReferenceWidgetDestroyCallback, props: Partial<ReferenceWidgetProps>) => {\n\tregisterWidget(id, callback, onDestroy, props)\n}\n\n/**\n * Register a new reference widget\n *\n * @param id - Id tof the widget\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param props - Widget props (all optional)\n * @param props.hasInteractiveView - Whether the widget exposes an interactive view (default: true)\n * @param props.fullWidth - Whether the widget renders at full container width (default: false)\n * @param props.isResizable - Whether the user can drag-resize the widget height (default: false)\n */\nexport function registerWidget(\n\tid: string,\n\tcallback: ReferenceWidgetRenderCallback,\n\tonDestroy: ReferenceWidgetDestroyCallback = () => {},\n\tprops?: Partial<ReferenceWidgetProps>,\n) {\n\tconst propsWithDefaults = {\n\t\thasInteractiveView: true,\n\t\tfullWidth: false,\n\t\tisResizable: false,\n\t\t...props,\n\t}\n\n\tif (window._vue_richtext_widgets[id]) {\n\t\tlogger.error(`[ReferencePicker]: Widget for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\t...propsWithDefaults,\n\t}\n}\n\n/**\n * Render a reference widget to a given HTML element.\n *\n * @param el - The element to render widget to\n * @param options - render options\n */\nexport function renderWidget(el: HTMLElement, options: ReferenceWidgetRenderProperties) {\n\tconst { richObjectType, richObject, accessible, interactive } = options\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\tlogger.error('Widget for rich object type ' + richObjectType + ' not registered')\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive })\n}\n\n/**\n * Call the cleanup callback of the reference widget for given object type.\n *\n * @param richObjectType - The object type\n * @param el - The element\n */\nexport function destroyWidget(richObjectType: string, el: HTMLElement) {\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].onDestroy(el)\n}\n\n/**\n * Check if a widget with the give id is registered.\n *\n * @param id - Id of the widget\n */\nexport function isWidgetRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]\n}\n\n/**\n * Check if the given widget has an interactive view.\n *\n * @param id - Id of the widget\n */\nexport function hasInteractiveView(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.hasInteractiveView\n}\n\n/**\n * Check if the widget supports full width.\n *\n * @param id - Id of the widget\n */\nexport function hasFullWidth(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.fullWidth\n}\n\n/**\n * Check if the widget is resizable.\n *\n * @param id - Id of the widget\n */\nexport function isResizable(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.isResizable\n}\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../../utils/logger.ts'\n\nwindow._vue_richtext_custom_picker_elements ??= {}\nwindow._registerCustomPickerElement ??= registerCustomPickerElement\n\n/**\n * Representation of the render callback result\n * It contains a dom element and an object (Vue instance or other fancy things)\n */\nexport class NcCustomPickerRenderResult {\n\tpublic element: HTMLElement\n\tpublic object: object\n\n\t/**\n\t * @param element - The HTML element\n\t * @param object - The object\n\t */\n\tconstructor(element: HTMLElement, object: object) {\n\t\tthis.element = element\n\t\tthis.object = object\n\t}\n}\n\ninterface CustomPickerElementProps {\n\tproviderId: number\n\taccessible: boolean\n}\n\ntype CustomPickerElementRegistrationCallback = (el: HTMLElement, options: CustomPickerElementProps) => void\ntype CustomPickerElementDestroyCallback = (el: HTMLElement, result: NcCustomPickerRenderResult) => void\n\nexport interface CustomPickerElement {\n\tid: string\n\tsize: 'small' | 'normal' | 'large' | 'full'\n\n\tcallback: CustomPickerElementRegistrationCallback\n\tonDestroy: CustomPickerElementDestroyCallback\n}\n\n/**\n * @param id - Id of the element to check\n */\nexport function isCustomPickerElementRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_custom_picker_elements[id]\n}\n\n/**\n * @param id - Id of the element to get\n */\nexport function getCustomPickerElementSize(id: string): 'small' | 'normal' | 'large' | 'full' | null {\n\tconst size = window._vue_richtext_custom_picker_elements[id]?.size\n\tif (['small', 'normal', 'large', 'full'].includes(size)) {\n\t\treturn size\n\t}\n\treturn null\n}\n\n/**\n * @param id - Id of element to register\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param size - Size of the element\n */\nexport function registerCustomPickerElement(\n\tid: string,\n\tcallback: CustomPickerElementRegistrationCallback,\n\tonDestroy: CustomPickerElementDestroyCallback = () => {},\n\tsize: CustomPickerElement['size'] = 'large',\n) {\n\tif (window._vue_richtext_custom_picker_elements[id]) {\n\t\tlogger.error(`Custom reference picker element for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\tsize,\n\t}\n}\n\n/**\n * @param el - element to render to\n * @param options - Element options\n */\nexport function renderCustomPickerElement(el: HTMLElement, options: CustomPickerElementProps) {\n\tconst { providerId, accessible } = options\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\tlogger.error(`Custom reference picker element for reference provider ID ${providerId} not registered`)\n\t\treturn\n\t}\n\n\treturn window._vue_richtext_custom_picker_elements[providerId]\n\t\t.callback(el, { providerId, accessible })\n}\n\n/**\n * @param providerId - Provider id of element to destroy\n * @param el - The element to destroy element from\n * @param renderResult - The render result\n */\nexport function destroyCustomPickerElement(providerId: string, el: HTMLElement, renderResult: NcCustomPickerRenderResult) {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[providerId]\n\t\t.onDestroy(el, renderResult)\n}\n"],"names":["logger"],"mappings":";;AA0BA,OAAO,0BAA0B,CAAA;AACjC,OAAO,oBAAoB,CAAC,IAAY,UAAyC,WAA2C,UAAyC;AACpK,iBAAe,IAAI,UAAU,WAAW,KAAK;AAC9C;AAaO,SAAS,eACf,IACA,UACA,YAA4C,MAAM;AAAC,GACnD,OACC;AACD,QAAM,oBAAoB;AAAA,IACzB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,aAAa;AAAA,IACb,GAAG;AAAA,EAAA;AAGJ,MA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ACD;AAqBO,SAAS,gCAAgC,IAAqB;AACpE,SAAO,CAAC,CAAC,OAAO,qCAAqC,EAAE;AACxD;AAKO,SAAS,2BAA2B,IAA0D;AACpG,QAAM,OAAO,OAAO,qCAAqC,EAAE,GAAG;AAC9D,MAAI,CAAC,SAAS,UAAU,SAAS,MAAM,EAAE,SAAS,IAAI,GAAG;AACxD,WAAO;AAAA,EACR;AACA,SAAO;AACR;AAQO,SAAS,4BACf,IACA,UACA,YAAgD,MAAM;AAAC,GACvD,OAAoC,SACnC;AACD,MAAI,OAAO,qCAAqC,EAAE,GAAG;AACpDA,WAAAA,OAAO,MAAM,0CAA0C,EAAE,qBAAqB;AAC9E;AAAA,EACD;AAEA,SAAO,qCAAqC,EAAE,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF;AAMO,SAAS,0BAA0B,IAAiB,SAAmC;AAC7F,QAAM,EAAE,YAAY,WAAA,IAAe;AACnC,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7DA,WAAAA,OAAO,MAAM,6DAA6D,UAAU,iBAAiB;AACrG;AAAA,EACD;AAEA,SAAO,OAAO,qCAAqC,UAAU,EAC3D,SAAS,IAAI,EAAE,YAAY,YAAY;AAC1C;AAOO,SAAS,2BAA2B,YAAoB,IAAiB,cAA0C;AACzH,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D;AAAA,EACD;AAEA,SAAO,qCAAqC,UAAU,EACpD,UAAU,IAAI,YAAY;AAC7B;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
require('../assets/referencePickerModal-
|
|
1
|
+
require('../assets/referencePickerModal-C4Pr02xT.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const eventBus = require("@nextcloud/event-bus");
|
|
5
5
|
const ArrowLeft = require("./ArrowLeft-BP7yfzCQ.cjs");
|
|
6
6
|
const Close = require("./Close-CqmXxEKi.cjs");
|
|
7
|
-
const customPickerElements = require("./customPickerElements-
|
|
7
|
+
const customPickerElements = require("./customPickerElements-CPxrR1_N.cjs");
|
|
8
8
|
const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
|
|
9
9
|
const axios = require("@nextcloud/axios");
|
|
10
10
|
const initialState = require("@nextcloud/initial-state");
|
|
@@ -13,20 +13,22 @@ const _l10n = require("./_l10n-skrZri3h.cjs");
|
|
|
13
13
|
const logger = require("./logger-3HuiEIF6.cjs");
|
|
14
14
|
const Components_NcEmptyContent = require("../Components/NcEmptyContent.cjs");
|
|
15
15
|
const Components_NcHighlight = require("./index-Dr9k4hIP.cjs");
|
|
16
|
-
const NcSelect = require("./NcSelect-
|
|
16
|
+
const NcSelect = require("./NcSelect-BYRnqQaI.cjs");
|
|
17
17
|
const core = require("@vueuse/core");
|
|
18
18
|
const vueRouter = require("vue-router");
|
|
19
|
-
const NcButton = require("./NcButton-
|
|
20
|
-
const
|
|
19
|
+
const NcButton = require("./NcButton-B3UxfMyE.cjs");
|
|
20
|
+
const createElementId = require("./createElementId-lalylSCf.cjs");
|
|
21
|
+
const autolink = require("./autolink-CMWUgEzj.cjs");
|
|
21
22
|
const Components_NcLoadingIcon = require("../Components/NcLoadingIcon.cjs");
|
|
22
|
-
const NcTextField = require("./NcTextField-
|
|
23
|
-
const NcActions = require("./NcActions-
|
|
23
|
+
const NcTextField = require("./NcTextField-2tiCeGZw.cjs");
|
|
24
|
+
const NcActions = require("./NcActions-DYWuXM9w.cjs");
|
|
24
25
|
const Components_NcModal = require("../Components/NcModal.cjs");
|
|
25
26
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
26
27
|
const Vue__default = /* @__PURE__ */ _interopDefault(Vue);
|
|
27
28
|
const axios__default = /* @__PURE__ */ _interopDefault(axios);
|
|
28
29
|
_l10n.register(_l10n.t23);
|
|
29
30
|
const IDLE_TIMEOUT = 3 * 60 * 1e3;
|
|
31
|
+
const RESIZE_KEYBOARD_STEP = 10;
|
|
30
32
|
const _sfc_main$8 = {
|
|
31
33
|
name: "NcReferenceWidget",
|
|
32
34
|
components: {
|
|
@@ -49,9 +51,12 @@ const _sfc_main$8 = {
|
|
|
49
51
|
}
|
|
50
52
|
},
|
|
51
53
|
setup() {
|
|
54
|
+
const widgetId = `nc-reference-widget-${createElementId.createElementId()}`;
|
|
52
55
|
const isVisible = Vue.ref(false);
|
|
53
56
|
const widgetRoot = Vue.ref();
|
|
57
|
+
const customWidget = Vue.ref();
|
|
54
58
|
const { width } = core.useElementSize(widgetRoot);
|
|
59
|
+
const { height: customWidgetHeight } = core.useElementSize(customWidget);
|
|
55
60
|
core.useIntersectionObserver(widgetRoot, ([entry]) => {
|
|
56
61
|
Vue.nextTick(() => {
|
|
57
62
|
isVisible.value = entry.isIntersecting;
|
|
@@ -60,14 +65,24 @@ const _sfc_main$8 = {
|
|
|
60
65
|
return {
|
|
61
66
|
width,
|
|
62
67
|
isVisible,
|
|
63
|
-
widgetRoot
|
|
68
|
+
widgetRoot,
|
|
69
|
+
customWidget,
|
|
70
|
+
customWidgetHeight,
|
|
71
|
+
widgetId,
|
|
72
|
+
RESIZE_KEYBOARD_STEP
|
|
64
73
|
};
|
|
65
74
|
},
|
|
66
75
|
data() {
|
|
67
76
|
return {
|
|
68
77
|
showInteractive: false,
|
|
69
78
|
rendered: false,
|
|
70
|
-
idleTimeout: null
|
|
79
|
+
idleTimeout: null,
|
|
80
|
+
isResizing: false,
|
|
81
|
+
resizedHeight: null,
|
|
82
|
+
resizeStartY: 0,
|
|
83
|
+
resizeStartHeight: 0,
|
|
84
|
+
resizeMinHeight: 100,
|
|
85
|
+
resizeMaxHeight: window.innerHeight - 120
|
|
71
86
|
};
|
|
72
87
|
},
|
|
73
88
|
computed: {
|
|
@@ -77,9 +92,21 @@ const _sfc_main$8 = {
|
|
|
77
92
|
hasFullWidth() {
|
|
78
93
|
return customPickerElements.hasFullWidth(this.reference.richObjectType);
|
|
79
94
|
},
|
|
95
|
+
isResizable() {
|
|
96
|
+
return customPickerElements.isResizable(this.reference.richObjectType);
|
|
97
|
+
},
|
|
80
98
|
hasCustomWidget() {
|
|
81
99
|
return customPickerElements.isWidgetRegistered(this.reference.richObjectType);
|
|
82
100
|
},
|
|
101
|
+
customWidgetStyle() {
|
|
102
|
+
if (!this.resizedHeight) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return { height: `${this.resizedHeight}px !important` };
|
|
106
|
+
},
|
|
107
|
+
ariaValueNow() {
|
|
108
|
+
return Math.round(this.resizedHeight ?? this.customWidgetHeight);
|
|
109
|
+
},
|
|
83
110
|
hasInteractiveView() {
|
|
84
111
|
return customPickerElements.isWidgetRegistered(this.reference.richObjectType) && customPickerElements.hasInteractiveView(this.reference.richObjectType);
|
|
85
112
|
},
|
|
@@ -148,6 +175,11 @@ const _sfc_main$8 = {
|
|
|
148
175
|
}
|
|
149
176
|
},
|
|
150
177
|
beforeDestroy() {
|
|
178
|
+
if (this.idleTimeout) {
|
|
179
|
+
clearTimeout(this.idleTimeout);
|
|
180
|
+
this.idleTimout = null;
|
|
181
|
+
}
|
|
182
|
+
this.stopResize();
|
|
151
183
|
this.destroyWidget();
|
|
152
184
|
},
|
|
153
185
|
methods: {
|
|
@@ -157,16 +189,16 @@ const _sfc_main$8 = {
|
|
|
157
189
|
this.renderWidget();
|
|
158
190
|
},
|
|
159
191
|
renderWidget() {
|
|
160
|
-
if (!this.$refs.
|
|
192
|
+
if (!this.$refs.customWidgetContent) {
|
|
161
193
|
return;
|
|
162
194
|
}
|
|
163
195
|
if (this?.reference?.richObjectType === "open-graph") {
|
|
164
196
|
return;
|
|
165
197
|
}
|
|
166
|
-
this.$refs.
|
|
198
|
+
this.$refs.customWidgetContent.innerHTML = "";
|
|
167
199
|
const widget = document.createElement("div");
|
|
168
200
|
widget.style = "width: 100%;";
|
|
169
|
-
this.$refs.
|
|
201
|
+
this.$refs.customWidgetContent.appendChild(widget);
|
|
170
202
|
this.$nextTick(() => {
|
|
171
203
|
customPickerElements.renderWidget(widget, {
|
|
172
204
|
...this.reference,
|
|
@@ -180,12 +212,76 @@ const _sfc_main$8 = {
|
|
|
180
212
|
customPickerElements.destroyWidget(this.reference.richObjectType, this.$el);
|
|
181
213
|
this.rendered = false;
|
|
182
214
|
}
|
|
215
|
+
},
|
|
216
|
+
initResizeLimits() {
|
|
217
|
+
const widgetEl = this.$refs.customWidgetContent?.firstElementChild;
|
|
218
|
+
if (widgetEl) {
|
|
219
|
+
const computedStyle = window.getComputedStyle(widgetEl);
|
|
220
|
+
const parsedMin = parseFloat(computedStyle.minHeight);
|
|
221
|
+
const parsedMax = parseFloat(computedStyle.maxHeight);
|
|
222
|
+
this.resizeMinHeight = parsedMin > 0 ? parsedMin : 100;
|
|
223
|
+
this.resizeMaxHeight = Number.isFinite(parsedMax) && parsedMax > 0 ? parsedMax : window.innerHeight - 120;
|
|
224
|
+
} else {
|
|
225
|
+
this.resizeMinHeight = 100;
|
|
226
|
+
this.resizeMaxHeight = window.innerHeight - 120;
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
startResize(event) {
|
|
230
|
+
if (!this.isResizable || !this.$refs.customWidget) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
this.initResizeLimits();
|
|
234
|
+
this.isResizing = true;
|
|
235
|
+
this.resizeStartY = event.clientY;
|
|
236
|
+
this.resizeStartHeight = this.$refs.customWidget.getBoundingClientRect().height;
|
|
237
|
+
window.addEventListener("pointermove", this.onResize);
|
|
238
|
+
window.addEventListener("pointerup", this.stopResize);
|
|
239
|
+
},
|
|
240
|
+
onResizeKeydown(delta) {
|
|
241
|
+
if (!this.isResizable || !this.$refs.customWidget) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
this.initResizeLimits();
|
|
245
|
+
const currentHeight = this.resizedHeight ?? this.resizeStartHeight;
|
|
246
|
+
const next = currentHeight + delta;
|
|
247
|
+
this.resizedHeight = Math.min(this.resizeMaxHeight, Math.max(this.resizeMinHeight, next));
|
|
248
|
+
},
|
|
249
|
+
onResize(event) {
|
|
250
|
+
if (!this.isResizing || !this.$refs.customWidget) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const deltaY = event.clientY - this.resizeStartY;
|
|
254
|
+
this.resizedHeight = Math.min(this.resizeMaxHeight, Math.max(this.resizeMinHeight, this.resizeStartHeight + deltaY));
|
|
255
|
+
},
|
|
256
|
+
stopResize() {
|
|
257
|
+
if (!this.isResizing) {
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
this.isResizing = false;
|
|
261
|
+
window.removeEventListener("pointermove", this.onResize);
|
|
262
|
+
window.removeEventListener("pointerup", this.stopResize);
|
|
183
263
|
}
|
|
184
264
|
}
|
|
185
265
|
};
|
|
186
266
|
var _sfc_render$8 = function render() {
|
|
187
267
|
var _vm = this, _c = _vm._self._c;
|
|
188
|
-
return _c("div", { ref: "widgetRoot", class: { "toggle-interactive": _vm.hasInteractiveView && !_vm.isInteractive } }, [_vm.reference && _vm.hasCustomWidget ? _c("div", { ref: "customWidget", staticClass: "widget-custom", class: {
|
|
268
|
+
return _c("div", { ref: "widgetRoot", class: { "toggle-interactive": _vm.hasInteractiveView && !_vm.isInteractive } }, [_vm.reference && _vm.hasCustomWidget ? _c("div", { ref: "customWidget", staticClass: "widget-custom", class: {
|
|
269
|
+
"full-width": _vm.hasFullWidth
|
|
270
|
+
}, style: _vm.customWidgetStyle, attrs: { "id": _vm.widgetId } }, [_c("div", { ref: "customWidgetContent", staticClass: "widget-custom__content" }), _vm.isResizable ? _c("div", { staticClass: "widget-custom__resize-handle", attrs: { "role": "slider", "tabindex": "0", "aria-orientation": "vertical", "aria-label": _vm.t("Widget height"), "aria-valuenow": _vm.ariaValueNow, "aria-valuemin": _vm.resizeMinHeight, "aria-valuemax": _vm.resizeMaxHeight, "aria-controls": _vm.widgetId }, on: { "pointerdown": function($event) {
|
|
271
|
+
$event.stopPropagation();
|
|
272
|
+
$event.preventDefault();
|
|
273
|
+
return _vm.startResize.apply(null, arguments);
|
|
274
|
+
}, "keydown": [function($event) {
|
|
275
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) return null;
|
|
276
|
+
$event.stopPropagation();
|
|
277
|
+
$event.preventDefault();
|
|
278
|
+
return _vm.onResizeKeydown(-_vm.RESIZE_KEYBOARD_STEP);
|
|
279
|
+
}, function($event) {
|
|
280
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) return null;
|
|
281
|
+
$event.stopPropagation();
|
|
282
|
+
$event.preventDefault();
|
|
283
|
+
return _vm.onResizeKeydown(_vm.RESIZE_KEYBOARD_STEP);
|
|
284
|
+
}] } }) : _vm._e()]) : !_vm.noAccess && _vm.reference && _vm.reference.openGraphObject && !_vm.hasCustomWidget ? _c(_vm.referenceWidgetLinkComponent, _vm._b({ tag: "component", staticClass: "widget-default", attrs: { "rel": "noopener noreferrer" } }, "component", _vm.referenceWidgetLinkProps, false), [_vm.reference.openGraphObject.thumb ? _c("img", { staticClass: "widget-default--image", attrs: { "src": _vm.reference.openGraphObject.thumb } }) : _vm._e(), _c("div", { staticClass: "widget-default--details" }, [_c("p", { staticClass: "widget-default--name" }, [_vm._v(" " + _vm._s(_vm.reference.openGraphObject.name) + " ")]), _c("p", { staticClass: "widget-default--description", style: _vm.descriptionStyle }, [_vm._v(" " + _vm._s(_vm.reference.openGraphObject.description) + " ")]), _c("p", { staticClass: "widget-default--link" }, [_vm._v(" " + _vm._s(_vm.compactLink) + " ")])])]) : _vm._e(), _vm.interactiveOptIn && _vm.hasInteractiveView && !_vm.isInteractive ? _c("NcButton", { staticClass: "toggle-interactive--button", on: { "click": _vm.enableInteractive } }, [_vm._v(" " + _vm._s(_vm.t("Enable interactive view")) + " ")]) : _vm._e()], 1);
|
|
189
285
|
};
|
|
190
286
|
var _sfc_staticRenderFns$8 = [];
|
|
191
287
|
var __component__$8 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
@@ -194,7 +290,7 @@ var __component__$8 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
194
290
|
_sfc_staticRenderFns$8,
|
|
195
291
|
false,
|
|
196
292
|
null,
|
|
197
|
-
"
|
|
293
|
+
"96e3ab0e"
|
|
198
294
|
);
|
|
199
295
|
const NcReferenceWidget = __component__$8.exports;
|
|
200
296
|
const _sfc_main$7 = {
|
|
@@ -1085,4 +1181,4 @@ exports.getProvider = getProvider;
|
|
|
1085
1181
|
exports.getProviders = getProviders;
|
|
1086
1182
|
exports.searchProvider = searchProvider;
|
|
1087
1183
|
exports.sortProviders = sortProviders;
|
|
1088
|
-
//# sourceMappingURL=referencePickerModal-
|
|
1184
|
+
//# sourceMappingURL=referencePickerModal-Cqd084NY.cjs.map
|