@nextcloud/vue 8.30.0 → 8.31.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 +31 -2
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +1 -1
- package/dist/Components/NcActionButtonGroup.cjs +1 -1
- package/dist/Components/NcActionButtonGroup.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 +5 -5
- package/dist/Components/NcActionLink.cjs.map +1 -1
- package/dist/Components/NcActionLink.mjs +5 -5
- package/dist/Components/NcActionLink.mjs.map +1 -1
- package/dist/Components/NcActionRadio.cjs +1 -1
- package/dist/Components/NcActionRadio.mjs +1 -1
- package/dist/Components/NcActionRouter.cjs +3 -4
- package/dist/Components/NcActionRouter.cjs.map +1 -1
- package/dist/Components/NcActionRouter.mjs +3 -4
- package/dist/Components/NcActionRouter.mjs.map +1 -1
- package/dist/Components/NcActionText.cjs +3 -3
- package/dist/Components/NcActionText.cjs.map +1 -1
- package/dist/Components/NcActionText.mjs +3 -3
- package/dist/Components/NcActionText.mjs.map +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/NcAppContentList.cjs +6 -0
- package/dist/Components/NcAppContentList.cjs.map +1 -1
- package/dist/Components/NcAppContentList.mjs +6 -0
- package/dist/Components/NcAppContentList.mjs.map +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/NcAppNavigationIconBullet.cjs +5 -2
- package/dist/Components/NcAppNavigationIconBullet.cjs.map +1 -1
- package/dist/Components/NcAppNavigationIconBullet.mjs +5 -2
- package/dist/Components/NcAppNavigationIconBullet.mjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationNew.cjs +2 -65
- package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
- package/dist/Components/NcAppNavigationNew.mjs +2 -65
- package/dist/Components/NcAppNavigationNew.mjs.map +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 +8 -2
- package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
- package/dist/Components/NcAppSettingsSection.mjs +8 -2
- package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAppSidebarHeader.cjs +1 -1
- package/dist/Components/NcAppSidebarHeader.mjs +1 -1
- package/dist/Components/NcAppSidebarTab.cjs +5 -2
- package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
- package/dist/Components/NcAppSidebarTab.mjs +5 -2
- package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
- package/dist/Components/NcAssistantButton.cjs +1 -1
- package/dist/Components/NcAssistantButton.mjs +1 -1
- 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 +2 -332
- package/dist/Components/NcButton.cjs.map +1 -1
- package/dist/Components/NcButton.mjs +2 -332
- package/dist/Components/NcButton.mjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcChip.cjs +14 -12
- package/dist/Components/NcChip.cjs.map +1 -1
- package/dist/Components/NcChip.mjs +14 -12
- package/dist/Components/NcChip.mjs.map +1 -1
- 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/NcCounterBubble.cjs +1 -1
- package/dist/Components/NcCounterBubble.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/NcDateTime.cjs +1 -1
- package/dist/Components/NcDateTime.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +46 -15
- package/dist/Components/NcDateTimePicker.cjs.map +1 -1
- package/dist/Components/NcDateTimePicker.mjs +46 -15
- package/dist/Components/NcDateTimePicker.mjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.cjs +8 -6
- package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +8 -6
- package/dist/Components/NcDateTimePickerNative.mjs.map +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/NcEllipsisedOption.cjs +3 -3
- package/dist/Components/NcEllipsisedOption.cjs.map +1 -1
- package/dist/Components/NcEllipsisedOption.mjs +3 -3
- package/dist/Components/NcEllipsisedOption.mjs.map +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcEmptyContent.cjs +4 -2
- package/dist/Components/NcEmptyContent.cjs.map +1 -1
- package/dist/Components/NcEmptyContent.mjs +4 -2
- package/dist/Components/NcEmptyContent.mjs.map +1 -1
- package/dist/Components/NcGuestContent.cjs +2 -2
- package/dist/Components/NcGuestContent.cjs.map +1 -1
- package/dist/Components/NcGuestContent.mjs +2 -2
- package/dist/Components/NcGuestContent.mjs.map +1 -1
- package/dist/Components/NcHeaderButton.cjs +2 -61
- package/dist/Components/NcHeaderButton.cjs.map +1 -1
- package/dist/Components/NcHeaderButton.mjs +2 -61
- package/dist/Components/NcHeaderButton.mjs.map +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcHighlight.cjs +1 -1
- package/dist/Components/NcHighlight.mjs +1 -1
- package/dist/Components/NcIconSvgWrapper.cjs +1 -1
- package/dist/Components/NcIconSvgWrapper.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcKbd.cjs +65 -0
- package/dist/Components/NcKbd.cjs.map +1 -0
- package/dist/Components/NcKbd.mjs +66 -0
- package/dist/Components/NcKbd.mjs.map +1 -0
- 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/NcLoadingIcon.cjs +2 -2
- package/dist/Components/NcLoadingIcon.cjs.map +1 -1
- package/dist/Components/NcLoadingIcon.mjs +2 -2
- package/dist/Components/NcLoadingIcon.mjs.map +1 -1
- package/dist/Components/NcModal.cjs +60 -46
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +59 -45
- package/dist/Components/NcModal.mjs.map +1 -1
- package/dist/Components/NcNoteCard.cjs +10 -10
- package/dist/Components/NcNoteCard.cjs.map +1 -1
- package/dist/Components/NcNoteCard.mjs +10 -10
- 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/NcProgressBar.cjs +1 -1
- package/dist/Components/NcProgressBar.mjs +1 -1
- package/dist/Components/NcRadioGroup.cjs +4 -0
- package/dist/Components/NcRadioGroup.cjs.map +1 -0
- package/dist/Components/NcRadioGroup.mjs +5 -0
- package/dist/Components/NcRadioGroup.mjs.map +1 -0
- package/dist/Components/NcRadioGroupButton.cjs +4 -0
- package/dist/Components/NcRadioGroupButton.cjs.map +1 -0
- package/dist/Components/NcRadioGroupButton.mjs +5 -0
- package/dist/Components/NcRadioGroupButton.mjs.map +1 -0
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +2 -2
- package/dist/Components/NcRichContenteditable.mjs +2 -2
- package/dist/Components/NcRichText.cjs +10 -10
- package/dist/Components/NcRichText.mjs +17 -17
- 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/NcSettingsInputText.cjs +1 -1
- package/dist/Components/NcSettingsInputText.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/Components/NcUserStatusIcon.cjs +1 -1
- package/dist/Components/NcUserStatusIcon.mjs +1 -1
- package/dist/Components/NcVNodes.cjs +1 -2
- package/dist/Components/NcVNodes.cjs.map +1 -1
- package/dist/Components/NcVNodes.mjs +1 -2
- package/dist/Components/NcVNodes.mjs.map +1 -1
- package/dist/Composables/useFormatDateTime.cjs +2 -4
- package/dist/Composables/useFormatDateTime.cjs.map +1 -1
- package/dist/Composables/useFormatDateTime.mjs +2 -4
- package/dist/Composables/useFormatDateTime.mjs.map +1 -1
- package/dist/Composables/useHotKey.cjs +2 -2
- package/dist/Composables/useHotKey.cjs.map +1 -1
- package/dist/Composables/useHotKey.mjs +1 -1
- package/dist/Composables/useHotKey.mjs.map +1 -1
- package/dist/Composables/useIsDarkTheme.cjs.map +1 -1
- package/dist/Composables/useIsDarkTheme.mjs.map +1 -1
- package/dist/Composables/useIsFullscreen.cjs.map +1 -1
- package/dist/Composables/useIsFullscreen.mjs.map +1 -1
- package/dist/Composables/useIsMobile.cjs.map +1 -1
- package/dist/Composables/useIsMobile.mjs.map +1 -1
- package/dist/Directives/Focus.cjs.map +1 -1
- package/dist/Directives/Focus.mjs.map +1 -1
- package/dist/Directives/Linkify.cjs +4 -6
- package/dist/Directives/Linkify.cjs.map +1 -1
- package/dist/Directives/Linkify.mjs +4 -5
- package/dist/Directives/Linkify.mjs.map +1 -1
- package/dist/Directives/Tooltip.cjs.map +1 -1
- package/dist/Directives/Tooltip.mjs.map +1 -1
- package/dist/Functions/a11y.cjs +2 -2
- package/dist/Functions/a11y.cjs.map +1 -1
- package/dist/Functions/a11y.mjs +2 -2
- package/dist/Functions/a11y.mjs.map +1 -1
- package/dist/Functions/contactsMenu.cjs.map +1 -1
- package/dist/Functions/contactsMenu.mjs.map +1 -1
- package/dist/Functions/dialog.cjs.map +1 -1
- package/dist/Functions/dialog.mjs.map +1 -1
- package/dist/Functions/isDarkTheme.cjs.map +1 -1
- package/dist/Functions/isDarkTheme.mjs.map +1 -1
- package/dist/Functions/preloadImage.cjs.map +1 -1
- package/dist/Functions/preloadImage.mjs.map +1 -1
- package/dist/Functions/reference.cjs +2 -2
- package/dist/Functions/reference.mjs +10 -10
- package/dist/Functions/registerReference.cjs +1 -1
- package/dist/Functions/registerReference.mjs +5 -5
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.cjs.map +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/Functions/usernameToColor.mjs.map +1 -1
- package/dist/Mixins/clickOutsideOptions.cjs.map +1 -1
- package/dist/Mixins/clickOutsideOptions.mjs.map +1 -1
- package/dist/Mixins/isFullscreen.cjs.map +1 -1
- package/dist/Mixins/isFullscreen.mjs.map +1 -1
- package/dist/Mixins/isMobile.cjs.map +1 -1
- package/dist/Mixins/isMobile.mjs.map +1 -1
- package/dist/Mixins/richEditor.cjs +1 -1
- package/dist/Mixins/richEditor.mjs +1 -1
- package/dist/assets/{NcActionButton-D8Lyueq3.css → NcActionButton-DwJihiLc.css} +18 -18
- package/dist/assets/{NcActionButtonGroup-oAqMyrzr.css → NcActionButtonGroup-CRXLyFpx.css} +8 -8
- package/dist/assets/{NcActionCheckbox-BlyPt7DF.css → NcActionCheckbox-DvdNISIs.css} +12 -12
- package/dist/assets/{NcActionInput-D79204Jr.css → NcActionInput-DXZaAilC.css} +67 -63
- package/dist/assets/{NcActionLink-CNMaob5P.css → NcActionLink-7Wp6P-Nk.css} +13 -13
- package/dist/assets/{NcActionRadio-CodyhP86.css → NcActionRadio-CLsR2Ore.css} +12 -12
- package/dist/assets/{NcActionRouter-zXuKLsvi.css → NcActionRouter-ByijfQtF.css} +16 -16
- package/dist/assets/{NcActionText-Rad4JSXq.css → NcActionText-CR_yvwWo.css} +18 -18
- package/dist/assets/{NcActionTextEditable-i1KSVe0J.css → NcActionTextEditable-CCWTiT5c.css} +71 -63
- package/dist/assets/{NcActions-Bjgv1Dku.css → NcActions-B4-9qwLn.css} +11 -11
- package/dist/assets/{NcAppContent-Bb5hgGi3.css → NcAppContent-DerHKU6P.css} +23 -23
- package/dist/assets/{NcAppNavigation-WhHdkLQF.css → NcAppNavigation-R4E_wTZ-.css} +12 -12
- package/dist/assets/{NcAppNavigationCaption-DU9PxTvu.css → NcAppNavigationCaption-C7GtQb_y.css} +7 -7
- package/dist/assets/{NcAppNavigationIconBullet-CeBYVy6t.css → NcAppNavigationIconBullet-DLQJkObX.css} +3 -3
- package/dist/assets/{NcAppNavigationItem-DKcGNjYx.css → NcAppNavigationItem-Kua1hP7u.css} +46 -40
- package/dist/assets/{NcAppNavigationNew-Dbo2rvXH.css → NcAppNavigationNew-D8_2ab9R.css} +3 -3
- package/dist/assets/{NcAppNavigationNewItem-CS2gLROV.css → NcAppNavigationNewItem-Cjbn5XkO.css} +44 -38
- package/dist/assets/{NcAppNavigationSearch-CD7kv7L_.css → NcAppNavigationSearch-o97SOfOb.css} +6 -6
- package/dist/assets/{NcAppNavigationSettings-_Qi3rUlw.css → NcAppNavigationSettings-1YRzh-xl.css} +11 -11
- package/dist/assets/{NcAppNavigationToggle-C5IMygw1.css → NcAppNavigationToggle-DgwbZOWc.css} +3 -3
- package/dist/assets/{NcAppSettingsDialog-kKMMsdb3.css → NcAppSettingsDialog-DiJpVNeb.css} +10 -10
- package/dist/assets/{NcAppSettingsSection-Bl2-D3_g.css → NcAppSettingsSection-IzrCzLDw.css} +3 -3
- package/dist/assets/{NcAppSidebar-u0G_qQMh.css → NcAppSidebar-CJYtNcF0.css} +58 -58
- package/dist/assets/{NcAppSidebarTab-Blv6UfuA.css → NcAppSidebarTab-IcebyGtN.css} +4 -4
- package/dist/assets/{NcAssistantIcon-BFNU0uqH.css → NcAssistantIcon-BoOnqVRr.css} +4 -4
- package/dist/assets/{NcAvatar-BqNcvkxP.css → NcAvatar-BdAXbXdR.css} +27 -28
- package/dist/assets/{NcBreadcrumb-DqaFt2qu.css → NcBreadcrumb-0xB19h6f.css} +15 -15
- package/dist/assets/{NcBreadcrumbs-CFRjXqRg.css → NcBreadcrumbs-DahxPGJY.css} +6 -6
- package/dist/assets/{NcButton-C_LOxojs.css → NcButton-D8AOCliw.css} +46 -46
- package/dist/assets/{NcCheckboxRadioSwitch-CC2zuvLL.css → NcCheckboxRadioSwitch-BcHKt-lf.css} +57 -49
- package/dist/assets/{NcChip-CF4Q149V.css → NcChip-Cc17FJEC.css} +9 -9
- package/dist/assets/{NcCollectionList-yjTCAR46.css → NcCollectionList-DInDhsAS.css} +42 -42
- package/dist/assets/{NcColorPicker-DBcVuSwg.css → NcColorPicker-CGI9ElwB.css} +28 -28
- package/dist/assets/{NcContent-DH4tX3N4.css → NcContent-BedDNXST.css} +10 -10
- package/dist/assets/{NcCounterBubble-CI-DxLjL.css → NcCounterBubble-sz81L2Mt.css} +7 -7
- package/dist/assets/{NcDashboardWidget-CrhZaGWD.css → NcDashboardWidget-DzJMoJ_B.css} +12 -12
- package/dist/assets/{NcDashboardWidgetItem-B8_6-_k8.css → NcDashboardWidgetItem-CAsF_ZMZ.css} +12 -12
- package/dist/assets/{NcDateTimePicker-Ce57VAyL.css → NcDateTimePicker-4Zw7r2r4.css} +18 -16
- package/dist/assets/{NcDateTimePickerNative-CYS2ORfo.css → NcDateTimePickerNative-ZqMiOh_m.css} +13 -13
- package/dist/assets/{NcDialog-X7BRqUGJ.css → NcDialog-COuFb47k.css} +15 -15
- package/dist/assets/{NcEllipsisedOption-DGr9_bIL.css → NcEllipsisedOption-DRkFZ9bI.css} +5 -5
- package/dist/assets/{NcEmojiPicker-BRSm8OUy.css → NcEmojiPicker-CrjOSMLF.css} +128 -124
- package/dist/assets/{NcEmptyContent-CHVEJoER.css → NcEmptyContent-xdTcF0yQ.css} +9 -9
- package/dist/assets/{NcGuestContent-ByAkjts7.css → NcGuestContent-BkegjnLL.css} +2 -2
- package/dist/assets/{NcHeaderButton-BRhv2o2J.css → NcHeaderButton-CeT-dsLr.css} +9 -9
- package/dist/assets/{NcHeaderMenu-Cjb3kKi1.css → NcHeaderMenu-BXb9npZp.css} +13 -13
- package/dist/assets/{NcIconSvgWrapper-DX_XWpAs.css → NcIconSvgWrapper-DJQ2Kuip.css} +7 -7
- package/dist/assets/{NcInputConfirmCancel-BanazdhC.css → NcInputConfirmCancel-CkhRZCfD.css} +5 -5
- package/dist/assets/{NcInputField-DAiNwtp_.css → NcInputField-BI3vWgSo.css} +42 -42
- package/dist/assets/NcKbd-BGW1_Jb7.css +36 -0
- package/dist/assets/{NcListItem-KrH47Efg.css → NcListItem-rxOwDYE-.css} +44 -44
- package/dist/assets/{NcListItemIcon-UmX9YoH3.css → NcListItemIcon-Co3jVZZ8.css} +13 -13
- package/dist/assets/{NcLoadingIcon-DbbToJVp.css → NcLoadingIcon-C7S2_wmi.css} +3 -3
- package/dist/assets/{NcMentionBubble-UsTMm5VD.css → NcMentionBubble-CaztX9Pv.css} +9 -9
- package/dist/assets/{NcModal-Cy3UOuI2.css → NcModal-BzkYPomo.css} +64 -62
- package/dist/assets/{NcNoteCard-ChweF_5Q.css → NcNoteCard-Dz5-u2BY.css} +12 -12
- package/dist/assets/{NcPasswordField-DVK8tuPi.css → NcPasswordField-mhXQk8aT.css} +2 -2
- package/dist/assets/{NcProgressBar-DTCznR-m.css → NcProgressBar-CU_ib_HL.css} +11 -11
- package/dist/assets/NcRadioGroup-CNgjqqiP.css +49 -0
- package/dist/assets/NcRadioGroupButton-B1hPj4B8.css +85 -0
- package/dist/assets/{NcRelatedResourcesPanel-DhStLIO2.css → NcRelatedResourcesPanel-d2OxhjiL.css} +65 -65
- package/dist/assets/{NcRichContenteditable-DZLSoy84.css → NcRichContenteditable-BoM95AVW.css} +20 -20
- package/dist/assets/{NcRichText-CWVHZl8s.css → NcRichText-BDx2fupZ.css} +89 -87
- package/dist/assets/{NcSelect-GdIw6cIy.css → NcSelect-B1pyRV6j.css} +3 -1
- package/dist/assets/NcSelectUsers-CfOSPgtz.css +4 -0
- package/dist/assets/{NcSettingsInputText-Bsp_6DjJ.css → NcSettingsInputText-18lfGViv.css} +5 -5
- package/dist/assets/{NcSettingsSection-uKqWTbhb.css → NcSettingsSection-D_qeKnRb.css} +8 -8
- package/dist/assets/{NcSettingsSelectGroup-tjJNoh16.css → NcSettingsSelectGroup-B9FlWQVH.css} +2 -2
- package/dist/assets/{NcTextArea-vxeIyeSg.css → NcTextArea-B6zS3CRN.css} +25 -25
- package/dist/assets/{NcUserBubble-BsTKRhKz.css → NcUserBubble-uIpJvFoQ.css} +8 -8
- package/dist/assets/{NcUserStatusIcon-Dc-aUzBe.css → NcUserStatusIcon-Bw8yMFMP.css} +4 -4
- package/dist/assets/{referencePickerModal-DrvqNTIf.css → referencePickerModal-CTpc6_U6.css} +60 -60
- package/dist/chunks/{GenColors-BjsCKF7S.cjs → GenColors-BVouTbTJ.cjs} +10 -3
- package/dist/chunks/GenColors-BVouTbTJ.cjs.map +1 -0
- package/dist/chunks/{GenColors-BrpkL3hT.mjs → GenColors-DIH749TS.mjs} +10 -3
- package/dist/chunks/GenColors-DIH749TS.mjs.map +1 -0
- package/dist/chunks/{GenRandomId-BQDud3d4.cjs → GenRandomId-D7iOvpZS.cjs} +3 -3
- package/dist/chunks/GenRandomId-D7iOvpZS.cjs.map +1 -0
- package/dist/chunks/{GenRandomId-CMooMQt0.mjs → GenRandomId-F5ebeBB_.mjs} +3 -3
- package/dist/chunks/GenRandomId-F5ebeBB_.mjs.map +1 -0
- package/dist/chunks/{NcActionButton-BhSk7AAp.cjs → NcActionButton-CFXzNoFT.cjs} +9 -7
- package/dist/chunks/NcActionButton-CFXzNoFT.cjs.map +1 -0
- package/dist/chunks/{NcActionButton-DC3oAI2L.mjs → NcActionButton-CVW8aRkE.mjs} +9 -7
- package/dist/chunks/NcActionButton-CVW8aRkE.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-hhh3GBSS.mjs → NcActionButtonGroup-BOr5Of3k.mjs} +5 -5
- package/dist/chunks/{NcActionButtonGroup-hhh3GBSS.mjs.map → NcActionButtonGroup-BOr5Of3k.mjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-Cr4OSmyb.cjs → NcActionButtonGroup-Bwuy2WZQ.cjs} +5 -5
- package/dist/chunks/{NcActionButtonGroup-Cr4OSmyb.cjs.map → NcActionButtonGroup-Bwuy2WZQ.cjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-DSMKeccY.mjs → NcActionCheckbox-C05ls65i.mjs} +9 -5
- package/dist/chunks/NcActionCheckbox-C05ls65i.mjs.map +1 -0
- package/dist/chunks/{NcActionCheckbox-JX-QaTD6.cjs → NcActionCheckbox-Dg_1Ovt0.cjs} +9 -5
- package/dist/chunks/NcActionCheckbox-Dg_1Ovt0.cjs.map +1 -0
- package/dist/chunks/{NcActionInput-B5ysJl2S.mjs → NcActionInput-CoG-fZq9.mjs} +16 -11
- package/dist/chunks/NcActionInput-CoG-fZq9.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-DdaafMi8.cjs → NcActionInput-iIJpNS_Q.cjs} +16 -11
- package/dist/chunks/NcActionInput-iIJpNS_Q.cjs.map +1 -0
- package/dist/chunks/{NcActionRadio-yAm71xxU.mjs → NcActionRadio-Bpbs2dPm.mjs} +9 -5
- package/dist/chunks/NcActionRadio-Bpbs2dPm.mjs.map +1 -0
- package/dist/chunks/{NcActionRadio-BUCQ6VxA.cjs → NcActionRadio-Dtrwffyh.cjs} +9 -5
- package/dist/chunks/NcActionRadio-Dtrwffyh.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-CTXGUIPM.cjs → NcActionTextEditable-BpahzGpr.cjs} +9 -7
- package/dist/chunks/NcActionTextEditable-BpahzGpr.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-CpxJ_LEa.mjs → NcActionTextEditable-DRwDJjPd.mjs} +9 -7
- package/dist/chunks/NcActionTextEditable-DRwDJjPd.mjs.map +1 -0
- package/dist/chunks/{NcActions-DRCkAU8h.cjs → NcActions-B7oXbiVt.cjs} +16 -12
- package/dist/chunks/NcActions-B7oXbiVt.cjs.map +1 -0
- package/dist/chunks/{NcActions-DdARGGZ_.mjs → NcActions-C832pWHO.mjs} +15 -11
- package/dist/chunks/NcActions-C832pWHO.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-BS7BiMG0.mjs → NcAppContent-C9NGJE6n.mjs} +15 -12
- package/dist/chunks/NcAppContent-C9NGJE6n.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-POt1Lj3W.cjs → NcAppContent-Djy38ou2.cjs} +16 -13
- package/dist/chunks/NcAppContent-Djy38ou2.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-BKxSUpcQ.cjs → NcAppNavigation-C0Oc0gQ6.cjs} +7 -7
- package/dist/chunks/NcAppNavigation-C0Oc0gQ6.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-BvEa92PC.mjs → NcAppNavigation-DjtmN3dS.mjs} +7 -7
- package/dist/chunks/NcAppNavigation-DjtmN3dS.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationCaption-O4l8dFkh.mjs → NcAppNavigationCaption-CsoHaLXg.mjs} +7 -4
- package/dist/chunks/{NcAppNavigationCaption-BpmzZDPj.cjs.map → NcAppNavigationCaption-CsoHaLXg.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BpmzZDPj.cjs → NcAppNavigationCaption-D4-hEmCi.cjs} +7 -4
- package/dist/chunks/{NcAppNavigationCaption-O4l8dFkh.mjs.map → NcAppNavigationCaption-D4-hEmCi.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-BFF0p136.mjs → NcAppNavigationItem-DvVYHshm.mjs} +77 -70
- package/dist/chunks/NcAppNavigationItem-DvVYHshm.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationItem-D1CEGuhm.cjs → NcAppNavigationItem-ZOXUMmX5.cjs} +77 -70
- package/dist/chunks/NcAppNavigationItem-ZOXUMmX5.cjs.map +1 -0
- package/dist/chunks/NcAppNavigationNew-AiFYSCW1.mjs +78 -0
- package/dist/chunks/NcAppNavigationNew-AiFYSCW1.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationNew-BqNIa8N9.cjs +77 -0
- package/dist/chunks/NcAppNavigationNew-BqNIa8N9.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNewItem-CTAoGkDy.cjs → NcAppNavigationNewItem-BuEkCd2H.cjs} +4 -4
- package/dist/chunks/NcAppNavigationNewItem-BuEkCd2H.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNewItem-D4fJeBl0.mjs → NcAppNavigationNewItem-CdlWkGU3.mjs} +4 -4
- package/dist/chunks/NcAppNavigationNewItem-CdlWkGU3.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationSearch-CaBrnpf9.cjs → NcAppNavigationSearch-BXjB3FEJ.cjs} +7 -7
- package/dist/chunks/NcAppNavigationSearch-BXjB3FEJ.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationSearch-B9OkdsuE.mjs → NcAppNavigationSearch-CsIzwF6F.mjs} +7 -7
- package/dist/chunks/NcAppNavigationSearch-CsIzwF6F.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationSettings-DV5ZnR2s.cjs → NcAppNavigationSettings-CkFZMLtH.cjs} +16 -10
- package/dist/chunks/NcAppNavigationSettings-CkFZMLtH.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationSettings-Do0e5oWy.mjs → NcAppNavigationSettings-Dq2O3kRz.mjs} +16 -10
- package/dist/chunks/NcAppNavigationSettings-Dq2O3kRz.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationToggle-DGppWo0q.cjs → NcAppNavigationToggle-C2vtZ3uV.cjs} +7 -7
- package/dist/chunks/NcAppNavigationToggle-C2vtZ3uV.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationToggle-VxL1CfJY.mjs → NcAppNavigationToggle-DlWpnYdz.mjs} +6 -6
- package/dist/chunks/NcAppNavigationToggle-DlWpnYdz.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-BwsIc_QT.mjs → NcAppSettingsDialog-DVFw09eD.mjs} +12 -10
- package/dist/chunks/NcAppSettingsDialog-DVFw09eD.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-BDo3la0P.cjs → NcAppSettingsDialog-DalEoC9H.cjs} +12 -10
- package/dist/chunks/NcAppSettingsDialog-DalEoC9H.cjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-AR-D7HSj.mjs → NcAppSidebar-Bda_fc-F.mjs} +141 -129
- package/dist/chunks/NcAppSidebar-Bda_fc-F.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-Cvyq-kN5.cjs → NcAppSidebar-Cx2ZxU4N.cjs} +142 -130
- package/dist/chunks/NcAppSidebar-Cx2ZxU4N.cjs.map +1 -0
- package/dist/chunks/{NcAppSidebarHeader-G2VD8Nfl.mjs → NcAppSidebarHeader-CBE4tNYb.mjs} +4 -3
- package/dist/chunks/NcAppSidebarHeader-CBE4tNYb.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebarHeader-BUXD8c9i.cjs → NcAppSidebarHeader-D-c_yxvx.cjs} +4 -3
- package/dist/chunks/NcAppSidebarHeader-D-c_yxvx.cjs.map +1 -0
- package/dist/chunks/{NcAssistantButton-Ck1NUjhl.mjs → NcAssistantButton-Dk28Wilk.mjs} +4 -4
- package/dist/chunks/{NcAssistantButton-Ck1NUjhl.mjs.map → NcAssistantButton-Dk28Wilk.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-gD3MKoYS.cjs → NcAssistantButton-zriu0Kiz.cjs} +5 -5
- package/dist/chunks/{NcAssistantButton-gD3MKoYS.cjs.map → NcAssistantButton-zriu0Kiz.cjs.map} +1 -1
- package/dist/chunks/{NcAssistantIcon-D_xelcY2.cjs → NcAssistantIcon-B-Udgta_.cjs} +9 -5
- package/dist/chunks/NcAssistantIcon-B-Udgta_.cjs.map +1 -0
- package/dist/chunks/{NcAssistantIcon-tjSguP9N.mjs → NcAssistantIcon-CtEF1hjA.mjs} +9 -5
- package/dist/chunks/NcAssistantIcon-CtEF1hjA.mjs.map +1 -0
- package/dist/chunks/{NcAvatar-BEIBwiA6.mjs → NcAvatar-CuYtFEdJ.mjs} +35 -28
- package/dist/chunks/NcAvatar-CuYtFEdJ.mjs.map +1 -0
- package/dist/chunks/{NcAvatar-DS1H-VrZ.cjs → NcAvatar-bd-5zXWN.cjs} +36 -29
- package/dist/chunks/NcAvatar-bd-5zXWN.cjs.map +1 -0
- package/dist/chunks/{NcBlurHash-CJ8retHx.cjs → NcBlurHash-CR0v4QBK.cjs} +2 -2
- package/dist/chunks/{NcBlurHash-CJ8retHx.cjs.map → NcBlurHash-CR0v4QBK.cjs.map} +1 -1
- package/dist/chunks/{NcBlurHash-do2wxY-0.mjs → NcBlurHash-DZmsBU0q.mjs} +2 -2
- package/dist/chunks/{NcBlurHash-do2wxY-0.mjs.map → NcBlurHash-DZmsBU0q.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-HtgcEJgs.cjs → NcBreadcrumb-ChxXdE2m.cjs} +19 -19
- package/dist/chunks/NcBreadcrumb-ChxXdE2m.cjs.map +1 -0
- package/dist/chunks/{NcBreadcrumb-BYYXWaif.mjs → NcBreadcrumb-D1106x4x.mjs} +18 -18
- package/dist/chunks/NcBreadcrumb-D1106x4x.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumbs-cj5ip2-X.mjs → NcBreadcrumbs-C9Zo0nca.mjs} +108 -106
- package/dist/chunks/NcBreadcrumbs-C9Zo0nca.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumbs-CQcnjGJO.cjs → NcBreadcrumbs-XAvQ1MIp.cjs} +109 -107
- package/dist/chunks/NcBreadcrumbs-XAvQ1MIp.cjs.map +1 -0
- package/dist/chunks/NcButton-CWPBzbcC.mjs +330 -0
- package/dist/chunks/NcButton-CWPBzbcC.mjs.map +1 -0
- package/dist/chunks/NcButton-DOsCAjiE.cjs +329 -0
- package/dist/chunks/NcButton-DOsCAjiE.cjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-DqdNvkCt.mjs → NcCheckboxRadioSwitch-CLnWsBwK.mjs} +105 -78
- package/dist/chunks/NcCheckboxRadioSwitch-CLnWsBwK.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-B-lXOnEF.cjs → NcCheckboxRadioSwitch-yVj7slxL.cjs} +105 -78
- package/dist/chunks/NcCheckboxRadioSwitch-yVj7slxL.cjs.map +1 -0
- package/dist/chunks/{NcCollectionList-CLv50tJ3.mjs → NcCollectionList-5_ghrfiE.mjs} +27 -21
- package/dist/chunks/NcCollectionList-5_ghrfiE.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-DXNSOjPG.cjs → NcCollectionList-DZh_7a3g.cjs} +27 -21
- package/dist/chunks/NcCollectionList-DZh_7a3g.cjs.map +1 -0
- package/dist/chunks/{NcColorPicker-52xaYx9k.mjs → NcColorPicker-Cae6XNoK.mjs} +13 -13
- package/dist/chunks/NcColorPicker-Cae6XNoK.mjs.map +1 -0
- package/dist/chunks/{NcColorPicker-CbiIpVlT.cjs → NcColorPicker-D-E2dT4Q.cjs} +14 -14
- package/dist/chunks/NcColorPicker-D-E2dT4Q.cjs.map +1 -0
- package/dist/chunks/{NcContent-BbmqoSY7.mjs → NcContent-CGBJ782F.mjs} +13 -9
- package/dist/chunks/{NcContent-DH7uH5Gv.cjs.map → NcContent-CGBJ782F.mjs.map} +1 -1
- package/dist/chunks/{NcContent-DH7uH5Gv.cjs → NcContent-I3cwZc0Z.cjs} +14 -10
- package/dist/chunks/{NcContent-BbmqoSY7.mjs.map → NcContent-I3cwZc0Z.cjs.map} +1 -1
- package/dist/chunks/{NcCounterBubble-BRrUO34D.cjs → NcCounterBubble-hyvazclA.cjs} +7 -3
- package/dist/chunks/NcCounterBubble-hyvazclA.cjs.map +1 -0
- package/dist/chunks/{NcCounterBubble-CDfRYl8B.mjs → NcCounterBubble-oxV8oMlX.mjs} +7 -3
- package/dist/chunks/NcCounterBubble-oxV8oMlX.mjs.map +1 -0
- package/dist/chunks/{NcDashboardWidget-DhJAJn-_.cjs → NcDashboardWidget-DKUU16oT.cjs} +8 -8
- package/dist/chunks/NcDashboardWidget-DKUU16oT.cjs.map +1 -0
- package/dist/chunks/{NcDashboardWidget-809lybR1.mjs → NcDashboardWidget-_Bi63nDZ.mjs} +8 -8
- package/dist/chunks/NcDashboardWidget-_Bi63nDZ.mjs.map +1 -0
- package/dist/chunks/{NcDashboardWidgetItem-CgO8qJUQ.cjs → NcDashboardWidgetItem-BhGOOhKF.cjs} +8 -7
- package/dist/chunks/NcDashboardWidgetItem-BhGOOhKF.cjs.map +1 -0
- package/dist/chunks/{NcDashboardWidgetItem-6JbU9gp1.mjs → NcDashboardWidgetItem-D4q57Lg_.mjs} +8 -7
- package/dist/chunks/NcDashboardWidgetItem-D4q57Lg_.mjs.map +1 -0
- package/dist/chunks/{NcDateTime-Cl-PZpLN.cjs → NcDateTime-DE-ltgw2.cjs} +2 -2
- package/dist/chunks/NcDateTime-DE-ltgw2.cjs.map +1 -0
- package/dist/chunks/{NcDateTime-kanSdMgW.mjs → NcDateTime-enXYuwj8.mjs} +2 -2
- package/dist/chunks/NcDateTime-enXYuwj8.mjs.map +1 -0
- package/dist/chunks/{NcDialog-ps0F3IQM.cjs → NcDialog-B2tW1DtP.cjs} +39 -31
- package/dist/chunks/NcDialog-B2tW1DtP.cjs.map +1 -0
- package/dist/chunks/{NcDialog-C1b3UtA7.mjs → NcDialog-Du-BeUCp.mjs} +39 -31
- package/dist/chunks/NcDialog-Du-BeUCp.mjs.map +1 -0
- package/dist/chunks/{NcDialogButton-CEdM0Qnr.cjs → NcDialogButton-BB84DliS.cjs} +9 -8
- package/dist/chunks/NcDialogButton-BB84DliS.cjs.map +1 -0
- package/dist/chunks/{NcDialogButton-Di9tU3e_.mjs → NcDialogButton-DtGSMhif.mjs} +8 -7
- package/dist/chunks/NcDialogButton-DtGSMhif.mjs.map +1 -0
- package/dist/chunks/{NcEmojiPicker-CyZg0bCF.mjs → NcEmojiPicker-B2SLfIBu.mjs} +19 -14
- package/dist/chunks/NcEmojiPicker-B2SLfIBu.mjs.map +1 -0
- package/dist/chunks/{NcEmojiPicker-CdH7bAGd.cjs → NcEmojiPicker-q_n1Rd8U.cjs} +20 -15
- package/dist/chunks/NcEmojiPicker-q_n1Rd8U.cjs.map +1 -0
- package/dist/chunks/NcHeaderButton-AKzxd51V.cjs +63 -0
- package/dist/chunks/NcHeaderButton-AKzxd51V.cjs.map +1 -0
- package/dist/chunks/NcHeaderButton-BORaK-yT.mjs +64 -0
- package/dist/chunks/NcHeaderButton-BORaK-yT.mjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-BWFubuox.cjs → NcHeaderMenu-CBP4SYca.cjs} +11 -10
- package/dist/chunks/NcHeaderMenu-CBP4SYca.cjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-Dq_Avv2T.mjs → NcHeaderMenu-CkD6cjnH.mjs} +10 -9
- package/dist/chunks/NcHeaderMenu-CkD6cjnH.mjs.map +1 -0
- package/dist/chunks/{NcIconSvgWrapper-Cb-cPj1R.mjs → NcIconSvgWrapper-BreCg8pX.mjs} +6 -5
- package/dist/chunks/NcIconSvgWrapper-BreCg8pX.mjs.map +1 -0
- package/dist/chunks/{NcIconSvgWrapper-CrnN5Sq5.cjs → NcIconSvgWrapper-D-aKMbf3.cjs} +7 -6
- package/dist/chunks/NcIconSvgWrapper-D-aKMbf3.cjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-DA740BJ-.mjs → NcInputConfirmCancel-21vM2JHp.mjs} +12 -6
- package/dist/chunks/NcInputConfirmCancel-21vM2JHp.mjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-Dz7-CkOl.cjs → NcInputConfirmCancel-BqZm3WBG.cjs} +13 -7
- package/dist/chunks/NcInputConfirmCancel-BqZm3WBG.cjs.map +1 -0
- package/dist/chunks/{NcInputField-cT3u4gMS.cjs → NcInputField-Dry3uU_8.cjs} +10 -7
- package/dist/chunks/NcInputField-Dry3uU_8.cjs.map +1 -0
- package/dist/chunks/{NcInputField-BNSfmQqu.mjs → NcInputField-kKgY_2GV.mjs} +9 -6
- package/dist/chunks/NcInputField-kKgY_2GV.mjs.map +1 -0
- package/dist/chunks/{NcListItem-CifyXFmv.mjs → NcListItem-B3ETbT9w.mjs} +9 -5
- package/dist/chunks/NcListItem-B3ETbT9w.mjs.map +1 -0
- package/dist/chunks/{NcListItem-Bx9qm5xC.cjs → NcListItem-D_-a7WR9.cjs} +9 -5
- package/dist/chunks/NcListItem-D_-a7WR9.cjs.map +1 -0
- package/dist/chunks/{NcListItemIcon-DMhlNuU9.cjs → NcListItemIcon-CYR8eKOU.cjs} +11 -10
- package/dist/chunks/NcListItemIcon-CYR8eKOU.cjs.map +1 -0
- package/dist/chunks/{NcListItemIcon-CZrilo88.mjs → NcListItemIcon-bQZej-L0.mjs} +11 -10
- package/dist/chunks/NcListItemIcon-bQZej-L0.mjs.map +1 -0
- package/dist/chunks/{NcPasswordField-DSdrAkZy.mjs → NcPasswordField-9LYKS0t_.mjs} +15 -12
- package/dist/chunks/NcPasswordField-9LYKS0t_.mjs.map +1 -0
- package/dist/chunks/{NcPasswordField-DcFBNVHn.cjs → NcPasswordField-DPGGwGEl.cjs} +15 -12
- package/dist/chunks/NcPasswordField-DPGGwGEl.cjs.map +1 -0
- package/dist/chunks/{NcPopover-DxTXnL3u.mjs → NcPopover-DMUA5d7U.mjs} +20 -6
- package/dist/chunks/NcPopover-DMUA5d7U.mjs.map +1 -0
- package/dist/chunks/{NcPopover-DjeDGPXc.cjs → NcPopover-DkX3Esbr.cjs} +20 -6
- package/dist/chunks/NcPopover-DkX3Esbr.cjs.map +1 -0
- package/dist/chunks/{NcProgressBar-CI_nOrPg.mjs → NcProgressBar-D7zYeXBH.mjs} +8 -4
- package/dist/chunks/NcProgressBar-D7zYeXBH.mjs.map +1 -0
- package/dist/chunks/{NcProgressBar-lh4Gtdfr.cjs → NcProgressBar-DvxA9bq5.cjs} +8 -4
- package/dist/chunks/NcProgressBar-DvxA9bq5.cjs.map +1 -0
- package/dist/chunks/NcRadioGroup-BZ-humrK.cjs +84 -0
- package/dist/chunks/NcRadioGroup-BZ-humrK.cjs.map +1 -0
- package/dist/chunks/NcRadioGroup-VKZJ0Vnh.mjs +83 -0
- package/dist/chunks/NcRadioGroup-VKZJ0Vnh.mjs.map +1 -0
- package/dist/chunks/NcRadioGroupButton-7UZaDiJ2.cjs +62 -0
- package/dist/chunks/NcRadioGroupButton-7UZaDiJ2.cjs.map +1 -0
- package/dist/chunks/NcRadioGroupButton-QLL4wM7A.mjs +63 -0
- package/dist/chunks/NcRadioGroupButton-QLL4wM7A.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-BR_ggojH.cjs → NcRelatedResourcesPanel-jHQ2bRko.cjs} +86 -82
- package/dist/chunks/NcRelatedResourcesPanel-jHQ2bRko.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-DyvwxDjI.mjs → NcRelatedResourcesPanel-jvOEQWWO.mjs} +85 -81
- package/dist/chunks/NcRelatedResourcesPanel-jvOEQWWO.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-DtkaJmwG.cjs → NcRichContenteditable-BILbjzSU.cjs} +51 -28
- package/dist/chunks/NcRichContenteditable-BILbjzSU.cjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-CMQnS1Wz.mjs → NcRichContenteditable-iQhj1-AH.mjs} +50 -27
- package/dist/chunks/NcRichContenteditable-iQhj1-AH.mjs.map +1 -0
- package/dist/chunks/{NcRichText-MMeidJmP.mjs → NcRichText-B7M7rNqC.mjs} +80 -81
- package/dist/chunks/NcRichText-B7M7rNqC.mjs.map +1 -0
- package/dist/chunks/{NcRichText-7B9lDtoo.cjs → NcRichText-DYcfsH5s.cjs} +85 -86
- package/dist/chunks/NcRichText-DYcfsH5s.cjs.map +1 -0
- package/dist/chunks/NcSavingIndicatorIcon-DFyB2KRK.cjs.map +1 -1
- package/dist/chunks/NcSavingIndicatorIcon-U7AIamCl.mjs.map +1 -1
- package/dist/chunks/{NcSelect-okD5YTJq.mjs → NcSelect-PvjbF3jF.mjs} +18 -13
- package/dist/chunks/NcSelect-PvjbF3jF.mjs.map +1 -0
- package/dist/chunks/{NcSelect-CrxryIo3.cjs → NcSelect-s3_u0qvy.cjs} +18 -13
- package/dist/chunks/NcSelect-s3_u0qvy.cjs.map +1 -0
- package/dist/chunks/{NcSelectTags-BPxmiMto.mjs → NcSelectTags-DYUCDZ_e.mjs} +19 -15
- package/dist/chunks/NcSelectTags-DYUCDZ_e.mjs.map +1 -0
- package/dist/chunks/{NcSelectTags-BZqBdSqC.cjs → NcSelectTags-e4Gjcx_7.cjs} +19 -15
- package/dist/chunks/NcSelectTags-e4Gjcx_7.cjs.map +1 -0
- package/dist/chunks/{NcSelectUsers-CshAjqE_.cjs → NcSelectUsers-Bmwhu14K.cjs} +9 -8
- package/dist/chunks/NcSelectUsers-Bmwhu14K.cjs.map +1 -0
- package/dist/chunks/{NcSelectUsers-DK3EtvnG.mjs → NcSelectUsers-CMF_h9c0.mjs} +9 -8
- package/dist/chunks/NcSelectUsers-CMF_h9c0.mjs.map +1 -0
- package/dist/chunks/{NcSettingsInputText-BKoaCiQU.mjs → NcSettingsInputText-BQVh24zT.mjs} +8 -6
- package/dist/chunks/NcSettingsInputText-BQVh24zT.mjs.map +1 -0
- package/dist/chunks/{NcSettingsInputText-D7eoCI2o.cjs → NcSettingsInputText-DWihH7ke.cjs} +8 -6
- package/dist/chunks/NcSettingsInputText-DWihH7ke.cjs.map +1 -0
- package/dist/chunks/{NcSettingsSection-Bmo90KQR.cjs → NcSettingsSection-Dgc7SEuu.cjs} +17 -5
- package/dist/chunks/NcSettingsSection-Dgc7SEuu.cjs.map +1 -0
- package/dist/chunks/{NcSettingsSection-fe_YIg-L.mjs → NcSettingsSection-evNvfEg2.mjs} +17 -5
- package/dist/chunks/NcSettingsSection-evNvfEg2.mjs.map +1 -0
- package/dist/chunks/{NcSettingsSelectGroup-CUUKv6lH.mjs → NcSettingsSelectGroup-C-YAk1f8.mjs} +19 -19
- package/dist/chunks/NcSettingsSelectGroup-C-YAk1f8.mjs.map +1 -0
- package/dist/chunks/{NcSettingsSelectGroup-Dd04CVAM.cjs → NcSettingsSelectGroup-X1pBwmAZ.cjs} +19 -19
- package/dist/chunks/NcSettingsSelectGroup-X1pBwmAZ.cjs.map +1 -0
- package/dist/chunks/{NcTextArea-BFLuhsEv.mjs → NcTextArea-DHmD6-6s.mjs} +8 -5
- package/dist/chunks/NcTextArea-DHmD6-6s.mjs.map +1 -0
- package/dist/chunks/{NcTextArea-B2hcap39.cjs → NcTextArea-DkVtHTpD.cjs} +8 -5
- package/dist/chunks/NcTextArea-DkVtHTpD.cjs.map +1 -0
- package/dist/chunks/{NcTextField-DDJqk3SI.cjs → NcTextField-Cp3tulze.cjs} +8 -8
- package/dist/chunks/NcTextField-Cp3tulze.cjs.map +1 -0
- package/dist/chunks/{NcTextField-eKuP0G6I.mjs → NcTextField-D_IMz2MR.mjs} +8 -8
- package/dist/chunks/NcTextField-D_IMz2MR.mjs.map +1 -0
- package/dist/chunks/NcThemeProvider-25ResoIv.mjs.map +1 -1
- package/dist/chunks/NcThemeProvider-BqGPTeWg.cjs.map +1 -1
- package/dist/chunks/{NcTimezonePicker-DV_arh0f.cjs → NcTimezonePicker-Co7jDP7N.cjs} +10 -8
- package/dist/chunks/NcTimezonePicker-Co7jDP7N.cjs.map +1 -0
- package/dist/chunks/{NcTimezonePicker-BbqblRd7.mjs → NcTimezonePicker-Cu1FrSIX.mjs} +10 -8
- package/dist/chunks/NcTimezonePicker-Cu1FrSIX.mjs.map +1 -0
- package/dist/chunks/{NcUserBubble-C7XtYsrf.mjs → NcUserBubble-Be2B8iJY.mjs} +9 -9
- package/dist/chunks/NcUserBubble-Be2B8iJY.mjs.map +1 -0
- package/dist/chunks/{NcUserBubble-DuyMsPzl.cjs → NcUserBubble-CdX6H9-M.cjs} +9 -9
- package/dist/chunks/NcUserBubble-CdX6H9-M.cjs.map +1 -0
- package/dist/chunks/{NcUserStatusIcon-DQr5EGWZ.mjs → NcUserStatusIcon-C83nB_8T.mjs} +16 -16
- package/dist/chunks/NcUserStatusIcon-C83nB_8T.mjs.map +1 -0
- package/dist/chunks/{NcUserStatusIcon-CKPJ27oi.cjs → NcUserStatusIcon-DhZabBIY.cjs} +16 -16
- package/dist/chunks/NcUserStatusIcon-DhZabBIY.cjs.map +1 -0
- package/dist/chunks/{ScopeComponent-B_NOkzpc.mjs → ScopeComponent-305QOaqN.mjs} +4 -4
- package/dist/chunks/ScopeComponent-305QOaqN.mjs.map +1 -0
- package/dist/chunks/{ScopeComponent-CbzbU6pi.cjs → ScopeComponent-9wtS_FpN.cjs} +4 -4
- package/dist/chunks/ScopeComponent-9wtS_FpN.cjs.map +1 -0
- package/dist/chunks/{_l10n-CW0YfIWk.mjs → _l10n-BEfeU7gr.mjs} +98 -100
- package/dist/chunks/_l10n-BEfeU7gr.mjs.map +1 -0
- package/dist/chunks/{_l10n-RKohWu5d.cjs → _l10n-DM-VRK9x.cjs} +54 -56
- package/dist/chunks/{_l10n-RKohWu5d.cjs.map → _l10n-DM-VRK9x.cjs.map} +1 -1
- package/dist/chunks/actionGlobal-DqVa7c7G.mjs.map +1 -1
- package/dist/chunks/actionGlobal-L0Ls8tPJ.cjs.map +1 -1
- package/dist/chunks/{actionText-fFcUPi2g.mjs → actionText-BMig9Egt.mjs} +5 -4
- package/dist/chunks/actionText-BMig9Egt.mjs.map +1 -0
- package/dist/chunks/{actionText-BcrK4uH1.cjs → actionText-D2-z0ud3.cjs} +5 -4
- package/dist/chunks/actionText-D2-z0ud3.cjs.map +1 -0
- package/dist/chunks/{autolink-BAgL31EZ.cjs → autolink-BPlRHRHR.cjs} +11 -10
- package/dist/chunks/autolink-BPlRHRHR.cjs.map +1 -0
- package/dist/chunks/{autolink-cbuFALXr.mjs → autolink-D2pIbi92.mjs} +11 -10
- package/dist/chunks/autolink-D2pIbi92.mjs.map +1 -0
- package/dist/chunks/constants-Bls5liKo.mjs.map +1 -1
- package/dist/chunks/constants-C_lA-vcp.cjs.map +1 -1
- package/dist/chunks/createElementId-DhjFt1I9.mjs +8 -0
- package/dist/chunks/createElementId-DhjFt1I9.mjs.map +1 -0
- package/dist/chunks/createElementId-lalylSCf.cjs +7 -0
- package/dist/chunks/createElementId-lalylSCf.cjs.map +1 -0
- package/dist/chunks/{customPickerElements-CH9vlHLd.mjs → customPickerElements-DLFtgReB.mjs} +6 -6
- package/dist/chunks/customPickerElements-DLFtgReB.mjs.map +1 -0
- package/dist/chunks/{customPickerElements-Q3Y7fgZ1.cjs → customPickerElements-GyIIOHiQ.cjs} +2 -2
- package/dist/chunks/customPickerElements-GyIIOHiQ.cjs.map +1 -0
- package/dist/chunks/emoji-BY_D0V5K.mjs.map +1 -1
- package/dist/chunks/emoji-VgSjNTd5.cjs.map +1 -1
- package/dist/chunks/focusTrap-DUTqW_IG.cjs.map +1 -1
- package/dist/chunks/focusTrap-HJQ4pqHV.mjs.map +1 -1
- package/dist/chunks/getAvatarUrl-Du9Y3cPO.cjs.map +1 -1
- package/dist/chunks/getAvatarUrl-IhLacDEr.mjs.map +1 -1
- package/dist/chunks/{index-AlIgEQXL.cjs → index-CgkN1xho.cjs} +7 -6
- package/dist/chunks/index-CgkN1xho.cjs.map +1 -0
- package/dist/chunks/{index-Bz6q9mZw.mjs → index-CxTT94_h.mjs} +3 -3
- package/dist/chunks/index-CxTT94_h.mjs.map +1 -0
- package/dist/chunks/{index-DIJxEozm.cjs → index-Dr9k4hIP.cjs} +3 -3
- package/dist/chunks/index-Dr9k4hIP.cjs.map +1 -0
- package/dist/chunks/{index-B8gPNa8c.mjs → index-TmAR7I2T.mjs} +7 -6
- package/dist/chunks/index-TmAR7I2T.mjs.map +1 -0
- package/dist/chunks/logger-3HuiEIF6.cjs.map +1 -1
- package/dist/chunks/logger-D3RVzcfQ.mjs.map +1 -1
- package/dist/chunks/platform-CC2ecGvV.mjs +5 -0
- package/dist/chunks/platform-CC2ecGvV.mjs.map +1 -0
- package/dist/chunks/platform-oKxQ1agV.cjs +4 -0
- package/dist/chunks/platform-oKxQ1agV.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-BINQW-pL.cjs → referencePickerModal-BcAnnsxZ.cjs} +78 -69
- package/dist/chunks/referencePickerModal-BcAnnsxZ.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-B2nPzrke.mjs → referencePickerModal-CN4C9eDc.mjs} +83 -74
- package/dist/chunks/referencePickerModal-CN4C9eDc.mjs.map +1 -0
- package/dist/chunks/useModelMigration-D5zhrNXr.cjs.map +1 -1
- package/dist/chunks/useModelMigration-EhAWvqDD.mjs.map +1 -1
- package/dist/chunks/useNcRadioGroup-DaZbEKbf.mjs +14 -0
- package/dist/chunks/useNcRadioGroup-DaZbEKbf.mjs.map +1 -0
- package/dist/chunks/useNcRadioGroup-Djvu7bo0.cjs +13 -0
- package/dist/chunks/useNcRadioGroup-Djvu7bo0.cjs.map +1 -0
- package/dist/chunks/{useTrapStackControl-yqM2SDEs.mjs → useTrapStackControl-BnLfCgGU.mjs} +2 -2
- package/dist/chunks/useTrapStackControl-BnLfCgGU.mjs.map +1 -0
- package/dist/chunks/{useTrapStackControl-CTZTSUOt.cjs → useTrapStackControl-XYABY64G.cjs} +2 -2
- package/dist/chunks/useTrapStackControl-XYABY64G.cjs.map +1 -0
- package/dist/components/NcCollectionList/service.d.ts +7 -0
- package/dist/components/NcKbd/index.d.ts +1 -0
- package/dist/components/NcRadioGroup/index.d.ts +5 -0
- package/dist/components/NcRadioGroup/useNcRadioGroup.d.ts +14 -0
- package/dist/components/NcRadioGroupButton/index.d.ts +5 -0
- package/dist/composables/actions/useActionText.d.ts +4 -1
- package/dist/composables/useFormatDateTime/index.d.ts +7 -5
- package/dist/composables/useIsDarkTheme/constants.d.ts +0 -1
- package/dist/composables/useIsDarkTheme/index.d.ts +2 -1
- package/dist/composables/useModelMigration.d.ts +5 -4
- package/dist/composables/useTrapStackControl.d.ts +1 -1
- package/dist/directives/Linkify/index.d.ts +3 -0
- package/dist/functions/a11y/index.d.ts +3 -3
- package/dist/functions/contactsMenu/index.d.ts +2 -2
- package/dist/functions/dialog/index.d.ts +1 -0
- package/dist/functions/emoji/emoji.d.ts +2 -2
- package/dist/functions/emoji/index.d.ts +1 -1
- package/dist/functions/isDarkTheme/index.d.ts +2 -1
- package/dist/functions/preloadImage/index.d.ts +1 -0
- package/dist/functions/reference/index.d.ts +3 -3
- package/dist/functions/reference/widgets.d.ts +1 -0
- package/dist/functions/registerReference/index.d.ts +2 -2
- package/dist/index.cjs +90 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +89 -82
- package/dist/index.mjs.map +1 -1
- package/dist/plugin.d.ts +1 -0
- package/dist/utils/UserStatus.d.ts +6 -1
- package/dist/utils/createElementId.d.ts +11 -0
- package/dist/utils/getAvatarUrl.d.ts +1 -0
- package/dist/utils/platform.d.ts +1 -0
- package/package.json +28 -24
- package/dist/assets/NcSelectUsers-BOwQNNMf.css +0 -4
- package/dist/chunks/GenColors-BjsCKF7S.cjs.map +0 -1
- package/dist/chunks/GenColors-BrpkL3hT.mjs.map +0 -1
- package/dist/chunks/GenRandomId-BQDud3d4.cjs.map +0 -1
- package/dist/chunks/GenRandomId-CMooMQt0.mjs.map +0 -1
- package/dist/chunks/NcActionButton-BhSk7AAp.cjs.map +0 -1
- package/dist/chunks/NcActionButton-DC3oAI2L.mjs.map +0 -1
- package/dist/chunks/NcActionCheckbox-DSMKeccY.mjs.map +0 -1
- package/dist/chunks/NcActionCheckbox-JX-QaTD6.cjs.map +0 -1
- package/dist/chunks/NcActionInput-B5ysJl2S.mjs.map +0 -1
- package/dist/chunks/NcActionInput-DdaafMi8.cjs.map +0 -1
- package/dist/chunks/NcActionRadio-BUCQ6VxA.cjs.map +0 -1
- package/dist/chunks/NcActionRadio-yAm71xxU.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-CTXGUIPM.cjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-CpxJ_LEa.mjs.map +0 -1
- package/dist/chunks/NcActions-DRCkAU8h.cjs.map +0 -1
- package/dist/chunks/NcActions-DdARGGZ_.mjs.map +0 -1
- package/dist/chunks/NcAppContent-BS7BiMG0.mjs.map +0 -1
- package/dist/chunks/NcAppContent-POt1Lj3W.cjs.map +0 -1
- package/dist/chunks/NcAppNavigation-BKxSUpcQ.cjs.map +0 -1
- package/dist/chunks/NcAppNavigation-BvEa92PC.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-BFF0p136.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-D1CEGuhm.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationNewItem-CTAoGkDy.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationNewItem-D4fJeBl0.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSearch-B9OkdsuE.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSearch-CaBrnpf9.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationSettings-DV5ZnR2s.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationSettings-Do0e5oWy.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationToggle-DGppWo0q.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationToggle-VxL1CfJY.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-BDo3la0P.cjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-BwsIc_QT.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-AR-D7HSj.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-Cvyq-kN5.cjs.map +0 -1
- package/dist/chunks/NcAppSidebarHeader-BUXD8c9i.cjs.map +0 -1
- package/dist/chunks/NcAppSidebarHeader-G2VD8Nfl.mjs.map +0 -1
- package/dist/chunks/NcAssistantIcon-D_xelcY2.cjs.map +0 -1
- package/dist/chunks/NcAssistantIcon-tjSguP9N.mjs.map +0 -1
- package/dist/chunks/NcAvatar-BEIBwiA6.mjs.map +0 -1
- package/dist/chunks/NcAvatar-DS1H-VrZ.cjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-BYYXWaif.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-HtgcEJgs.cjs.map +0 -1
- package/dist/chunks/NcBreadcrumbs-CQcnjGJO.cjs.map +0 -1
- package/dist/chunks/NcBreadcrumbs-cj5ip2-X.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-B-lXOnEF.cjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-DqdNvkCt.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-CLv50tJ3.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-DXNSOjPG.cjs.map +0 -1
- package/dist/chunks/NcColorPicker-52xaYx9k.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-CbiIpVlT.cjs.map +0 -1
- package/dist/chunks/NcCounterBubble-BRrUO34D.cjs.map +0 -1
- package/dist/chunks/NcCounterBubble-CDfRYl8B.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidget-809lybR1.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidget-DhJAJn-_.cjs.map +0 -1
- package/dist/chunks/NcDashboardWidgetItem-6JbU9gp1.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidgetItem-CgO8qJUQ.cjs.map +0 -1
- package/dist/chunks/NcDateTime-Cl-PZpLN.cjs.map +0 -1
- package/dist/chunks/NcDateTime-kanSdMgW.mjs.map +0 -1
- package/dist/chunks/NcDialog-C1b3UtA7.mjs.map +0 -1
- package/dist/chunks/NcDialog-ps0F3IQM.cjs.map +0 -1
- package/dist/chunks/NcDialogButton-CEdM0Qnr.cjs.map +0 -1
- package/dist/chunks/NcDialogButton-Di9tU3e_.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-CdH7bAGd.cjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-CyZg0bCF.mjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-BWFubuox.cjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-Dq_Avv2T.mjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-Cb-cPj1R.mjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-CrnN5Sq5.cjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-DA740BJ-.mjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-Dz7-CkOl.cjs.map +0 -1
- package/dist/chunks/NcInputField-BNSfmQqu.mjs.map +0 -1
- package/dist/chunks/NcInputField-cT3u4gMS.cjs.map +0 -1
- package/dist/chunks/NcListItem-Bx9qm5xC.cjs.map +0 -1
- package/dist/chunks/NcListItem-CifyXFmv.mjs.map +0 -1
- package/dist/chunks/NcListItemIcon-CZrilo88.mjs.map +0 -1
- package/dist/chunks/NcListItemIcon-DMhlNuU9.cjs.map +0 -1
- package/dist/chunks/NcPasswordField-DSdrAkZy.mjs.map +0 -1
- package/dist/chunks/NcPasswordField-DcFBNVHn.cjs.map +0 -1
- package/dist/chunks/NcPopover-DjeDGPXc.cjs.map +0 -1
- package/dist/chunks/NcPopover-DxTXnL3u.mjs.map +0 -1
- package/dist/chunks/NcProgressBar-CI_nOrPg.mjs.map +0 -1
- package/dist/chunks/NcProgressBar-lh4Gtdfr.cjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-BR_ggojH.cjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-DyvwxDjI.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-CMQnS1Wz.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-DtkaJmwG.cjs.map +0 -1
- package/dist/chunks/NcRichText-7B9lDtoo.cjs.map +0 -1
- package/dist/chunks/NcRichText-MMeidJmP.mjs.map +0 -1
- package/dist/chunks/NcSelect-CrxryIo3.cjs.map +0 -1
- package/dist/chunks/NcSelect-okD5YTJq.mjs.map +0 -1
- package/dist/chunks/NcSelectTags-BPxmiMto.mjs.map +0 -1
- package/dist/chunks/NcSelectTags-BZqBdSqC.cjs.map +0 -1
- package/dist/chunks/NcSelectUsers-CshAjqE_.cjs.map +0 -1
- package/dist/chunks/NcSelectUsers-DK3EtvnG.mjs.map +0 -1
- package/dist/chunks/NcSettingsInputText-BKoaCiQU.mjs.map +0 -1
- package/dist/chunks/NcSettingsInputText-D7eoCI2o.cjs.map +0 -1
- package/dist/chunks/NcSettingsSection-Bmo90KQR.cjs.map +0 -1
- package/dist/chunks/NcSettingsSection-fe_YIg-L.mjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-CUUKv6lH.mjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-Dd04CVAM.cjs.map +0 -1
- package/dist/chunks/NcTextArea-B2hcap39.cjs.map +0 -1
- package/dist/chunks/NcTextArea-BFLuhsEv.mjs.map +0 -1
- package/dist/chunks/NcTextField-DDJqk3SI.cjs.map +0 -1
- package/dist/chunks/NcTextField-eKuP0G6I.mjs.map +0 -1
- package/dist/chunks/NcTimezonePicker-BbqblRd7.mjs.map +0 -1
- package/dist/chunks/NcTimezonePicker-DV_arh0f.cjs.map +0 -1
- package/dist/chunks/NcUserBubble-C7XtYsrf.mjs.map +0 -1
- package/dist/chunks/NcUserBubble-DuyMsPzl.cjs.map +0 -1
- package/dist/chunks/NcUserStatusIcon-CKPJ27oi.cjs.map +0 -1
- package/dist/chunks/NcUserStatusIcon-DQr5EGWZ.mjs.map +0 -1
- package/dist/chunks/ScopeComponent-B_NOkzpc.mjs.map +0 -1
- package/dist/chunks/ScopeComponent-CbzbU6pi.cjs.map +0 -1
- package/dist/chunks/_l10n-CW0YfIWk.mjs.map +0 -1
- package/dist/chunks/actionText-BcrK4uH1.cjs.map +0 -1
- package/dist/chunks/actionText-fFcUPi2g.mjs.map +0 -1
- package/dist/chunks/autolink-BAgL31EZ.cjs.map +0 -1
- package/dist/chunks/autolink-cbuFALXr.mjs.map +0 -1
- package/dist/chunks/customPickerElements-CH9vlHLd.mjs.map +0 -1
- package/dist/chunks/customPickerElements-Q3Y7fgZ1.cjs.map +0 -1
- package/dist/chunks/index-AlIgEQXL.cjs.map +0 -1
- package/dist/chunks/index-B8gPNa8c.mjs.map +0 -1
- package/dist/chunks/index-Bz6q9mZw.mjs.map +0 -1
- package/dist/chunks/index-DIJxEozm.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-B2nPzrke.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-BINQW-pL.cjs.map +0 -1
- package/dist/chunks/useTrapStackControl-CTZTSUOt.cjs.map +0 -1
- package/dist/chunks/useTrapStackControl-yqM2SDEs.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_l10n-
|
|
1
|
+
{"version":3,"file":"_l10n-DM-VRK9x.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionGlobal-DqVa7c7G.mjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// An empty comment below is needed to prevent styleguidist from using SPDX header as a mixin=component description in docs\n/** */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"actionGlobal-DqVa7c7G.mjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// An empty comment below is needed to prevent styleguidist from using SPDX header as a mixin=component description in docs\n/** */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":[],"mappings":"AAOA,MAAA,oBAAe;AAAA,EACd,eAAe;AACd,SAAK,OAAO,KAAK,QAAO;AAAA,EACzB;AAAA,EAEA,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAO;AAAA,IACrB;AAAA,EACC;AAAA,EAEA,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC/C;AAAA,EACF;AAAA,EAEC,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,SAAS;AAAA,IACnE;AAAA,EACF;AACA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionGlobal-L0Ls8tPJ.cjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// An empty comment below is needed to prevent styleguidist from using SPDX header as a mixin=component description in docs\n/** */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":[],"mappings":";AAOA,
|
|
1
|
+
{"version":3,"file":"actionGlobal-L0Ls8tPJ.cjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// An empty comment below is needed to prevent styleguidist from using SPDX header as a mixin=component description in docs\n/** */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":[],"mappings":";AAOA,MAAA,oBAAe;AAAA,EACd,eAAe;AACd,SAAK,OAAO,KAAK,QAAO;AAAA,EACzB;AAAA,EAEA,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAO;AAAA,IACrB;AAAA,EACC;AAAA,EAEA,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC/C;AAAA,EACF;AAAA,EAEC,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,SAAS;AAAA,IACnE;AAAA,EACF;AACA;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ActionGlobalMixin } from "./actionGlobal-DqVa7c7G.mjs";
|
|
2
|
-
|
|
2
|
+
function GetParent(context, name) {
|
|
3
3
|
let parent = context.$parent;
|
|
4
4
|
while (parent) {
|
|
5
5
|
if (parent.$options.name === name) {
|
|
@@ -7,7 +7,7 @@ const GetParent = function(context, name) {
|
|
|
7
7
|
}
|
|
8
8
|
parent = parent.$parent;
|
|
9
9
|
}
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
const ActionTextMixin = {
|
|
12
12
|
mixins: [ActionGlobalMixin],
|
|
13
13
|
props: {
|
|
@@ -62,12 +62,13 @@ const ActionTextMixin = {
|
|
|
62
62
|
computed: {
|
|
63
63
|
/**
|
|
64
64
|
* Check if icon prop is an URL
|
|
65
|
+
*
|
|
65
66
|
* @return {boolean} Whether the icon prop is an URL
|
|
66
67
|
*/
|
|
67
68
|
isIconUrl() {
|
|
68
69
|
try {
|
|
69
70
|
return !!new URL(this.icon, this.icon.startsWith("/") ? window.location.origin : void 0);
|
|
70
|
-
} catch
|
|
71
|
+
} catch {
|
|
71
72
|
return false;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -87,4 +88,4 @@ const ActionTextMixin = {
|
|
|
87
88
|
export {
|
|
88
89
|
ActionTextMixin as A
|
|
89
90
|
};
|
|
90
|
-
//# sourceMappingURL=actionText-
|
|
91
|
+
//# sourceMappingURL=actionText-BMig9Egt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionText-BMig9Egt.mjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nfunction GetParent(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport GetParent from '../utils/GetParent.js'\nimport actionGlobal from './actionGlobal.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\t/**\n\t\t * Check if icon prop is an URL\n\t\t *\n\t\t * @return {boolean} Whether the icon prop is an URL\n\t\t */\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(this.icon, this.icon.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["actionGlobal"],"mappings":";AAYA,SAAS,UAAU,SAAS,MAAM;AACjC,MAAI,SAAS,QAAQ;AACrB,SAAO,QAAQ;AACd,QAAI,OAAO,SAAS,SAAS,MAAM;AAClC,aAAO;AAAA,IACR;AACA,aAAS,OAAO;AAAA,EACjB;AACD;ACZA,MAAA,kBAAe;AAAA,EACd,QAAQ,CAACA,iBAAY;AAAA,EACrB,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAME,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA,EACA;AAAA,EAEC,OAAO;AAAA,IACN;AAAA,EACF;AAAA,EAEC,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMT,YAAY;AACX,UAAI;AACH,eAAO,CAAC,CAAE,IAAI,IAAI,KAAK,MAAM,KAAK,KAAK,WAAW,GAAG,IAAI,OAAO,SAAS,SAAS,MAAS;AAAA,MAC5F,QAAQ;AACP,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACF;AAAA,EAEC,SAAS;AAAA,IACR,QAAQ,OAAO;AAMd,WAAK,MAAM,SAAS,KAAK;AAEzB,UAAI,KAAK,iBAAiB;AACzB,cAAM,SAAS,UAAU,MAAM,WAAW;AAC1C,YAAI,UAAU,OAAO,WAAW;AAC/B,iBAAO,UAAU,KAAK;AAAA,QACvB;AAAA,MACD;AAAA,IACD;AAAA,EACF;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const actionGlobal = require("./actionGlobal-L0Ls8tPJ.cjs");
|
|
3
|
-
|
|
3
|
+
function GetParent(context, name) {
|
|
4
4
|
let parent = context.$parent;
|
|
5
5
|
while (parent) {
|
|
6
6
|
if (parent.$options.name === name) {
|
|
@@ -8,7 +8,7 @@ const GetParent = function(context, name) {
|
|
|
8
8
|
}
|
|
9
9
|
parent = parent.$parent;
|
|
10
10
|
}
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
const ActionTextMixin = {
|
|
13
13
|
mixins: [actionGlobal.ActionGlobalMixin],
|
|
14
14
|
props: {
|
|
@@ -63,12 +63,13 @@ const ActionTextMixin = {
|
|
|
63
63
|
computed: {
|
|
64
64
|
/**
|
|
65
65
|
* Check if icon prop is an URL
|
|
66
|
+
*
|
|
66
67
|
* @return {boolean} Whether the icon prop is an URL
|
|
67
68
|
*/
|
|
68
69
|
isIconUrl() {
|
|
69
70
|
try {
|
|
70
71
|
return !!new URL(this.icon, this.icon.startsWith("/") ? window.location.origin : void 0);
|
|
71
|
-
} catch
|
|
72
|
+
} catch {
|
|
72
73
|
return false;
|
|
73
74
|
}
|
|
74
75
|
}
|
|
@@ -86,4 +87,4 @@ const ActionTextMixin = {
|
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
89
|
exports.ActionTextMixin = ActionTextMixin;
|
|
89
|
-
//# sourceMappingURL=actionText-
|
|
90
|
+
//# sourceMappingURL=actionText-D2-z0ud3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionText-D2-z0ud3.cjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nfunction GetParent(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport GetParent from '../utils/GetParent.js'\nimport actionGlobal from './actionGlobal.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\t/**\n\t\t * Check if icon prop is an URL\n\t\t *\n\t\t * @return {boolean} Whether the icon prop is an URL\n\t\t */\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(this.icon, this.icon.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["actionGlobal"],"mappings":";;AAYA,SAAS,UAAU,SAAS,MAAM;AACjC,MAAI,SAAS,QAAQ;AACrB,SAAO,QAAQ;AACd,QAAI,OAAO,SAAS,SAAS,MAAM;AAClC,aAAO;AAAA,IACR;AACA,aAAS,OAAO;AAAA,EACjB;AACD;ACZA,MAAA,kBAAe;AAAA,EACd,QAAQ,CAACA,aAAAA,iBAAY;AAAA,EACrB,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IAIE,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAME,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACZ;AAAA,EACA;AAAA,EAEC,OAAO;AAAA,IACN;AAAA,EACF;AAAA,EAEC,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMT,YAAY;AACX,UAAI;AACH,eAAO,CAAC,CAAE,IAAI,IAAI,KAAK,MAAM,KAAK,KAAK,WAAW,GAAG,IAAI,OAAO,SAAS,SAAS,MAAS;AAAA,MAC5F,QAAQ;AACP,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACF;AAAA,EAEC,SAAS;AAAA,IACR,QAAQ,OAAO;AAMd,WAAK,MAAM,SAAS,KAAK;AAEzB,UAAI,KAAK,iBAAiB;AACzB,cAAM,SAAS,UAAU,MAAM,WAAW;AAC1C,YAAI,UAAU,OAAO,WAAW;AAC/B,iBAAO,UAAU,KAAK;AAAA,QACvB;AAAA,MACD;AAAA,IACD;AAAA,EACF;AACA;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const unistUtilVisit = require("unist-util-visit");
|
|
3
|
-
const unistBuilder = require("unist-builder");
|
|
4
2
|
const router = require("@nextcloud/router");
|
|
3
|
+
const unistBuilder = require("unist-builder");
|
|
4
|
+
const unistUtilVisit = require("unist-util-visit");
|
|
5
|
+
const logger = require("./logger-3HuiEIF6.cjs");
|
|
5
6
|
const URL_PATTERN = /(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig;
|
|
6
7
|
const URL_PATTERN_AUTOLINK = /(\s|\(|^)((https?:\/\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/ig;
|
|
7
8
|
const NcLink = {
|
|
@@ -23,7 +24,7 @@ const NcLink = {
|
|
|
23
24
|
}, [this.href.trim()]);
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {
|
|
27
28
|
return function(tree) {
|
|
28
29
|
if (useExtendedMarkdown || !useMarkdown || !autolink) {
|
|
29
30
|
return;
|
|
@@ -42,8 +43,8 @@ const remarkAutolink = function({ autolink, useMarkdown, useExtendedMarkdown })
|
|
|
42
43
|
return [unistUtilVisit.SKIP, index + parsed.flat().length];
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
|
-
}
|
|
46
|
-
|
|
46
|
+
}
|
|
47
|
+
function parseUrl(text) {
|
|
47
48
|
let match = URL_PATTERN_AUTOLINK.exec(text);
|
|
48
49
|
const list = [];
|
|
49
50
|
let start = 0;
|
|
@@ -73,10 +74,10 @@ const parseUrl = (text) => {
|
|
|
73
74
|
if (text === joinedText) {
|
|
74
75
|
return list;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
logger.logger.error("Failed to reassemble the chunked text: " + text);
|
|
77
78
|
return text;
|
|
78
|
-
}
|
|
79
|
-
|
|
79
|
+
}
|
|
80
|
+
function getRoute(router$1, url) {
|
|
80
81
|
const removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str;
|
|
81
82
|
const removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str);
|
|
82
83
|
if (!router$1) {
|
|
@@ -101,9 +102,9 @@ const getRoute = (router$1, url) => {
|
|
|
101
102
|
return null;
|
|
102
103
|
}
|
|
103
104
|
return route.fullPath;
|
|
104
|
-
}
|
|
105
|
+
}
|
|
105
106
|
exports.URL_PATTERN = URL_PATTERN;
|
|
106
107
|
exports.getRoute = getRoute;
|
|
107
108
|
exports.parseUrl = parseUrl;
|
|
108
109
|
exports.remarkAutolink = remarkAutolink;
|
|
109
|
-
//# sourceMappingURL=autolink-
|
|
110
|
+
//# sourceMappingURL=autolink-BPlRHRHR.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autolink-BPlRHRHR.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, visit } from 'unist-util-visit'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nconst NcLink = {\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender(h) {\n\t\treturn h('a', {\n\t\t\tattrs: {\n\t\t\t\thref: this.href,\n\t\t\t\trel: 'noopener noreferrer',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tclass: 'rich-text--external-link',\n\t\t\t},\n\t\t}, [this.href.trim()])\n\t},\n}\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\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\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: NcLink, props: { href } })\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":["visit","u","SKIP","logger","router","getBaseUrl","getRootUrl"],"mappings":";;;;;AAUY,MAAC,cAAc;AAOpB,MAAM,uBAAuB;ACNpC,MAAM,SAAS;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACb;AAAA,EACA;AAAA,EACC,OAAO,GAAG;AACT,WAAO,EAAE,KAAK;AAAA,MACb,OAAO;AAAA,QACN,MAAM,KAAK;AAAA,QACX,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,MACX;AAAA,IACA,GAAK,CAAC,KAAK,KAAK,MAAM,CAAC;AAAA,EACtB;AACD;AAUO,SAAS,eAAe,EAAE,UAAU,aAAa,oBAAmB,GAAI;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UAAU;AACrD;AAAA,IACD;AAEAA,yBAAM,MAAM,CAAC,SAAS,KAAK,SAAS,QAAQ,CAAC,MAAM,OAAO,WAAW;AACpE,UAAI,SAAS,SAAS,KAAK,KAAK;AAChC,eAAS,OAAO,IAAI,CAAC,MAAM;AAC1B,YAAI,OAAO,MAAM,UAAU;AAC1B,iBAAOC,aAAAA,EAAE,QAAQ,CAAC;AAAA,QACnB;AAEA,eAAOA,aAAAA,EAAE,QAAQ;AAAA,UAChB,KAAK,EAAE,MAAM;AAAA,QAClB,GAAO,CAACA,aAAAA,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC;AAAA,MAC7B,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;AAElB,aAAO,SAAS,OAAO,OAAO,GAAG,GAAG,OAAO,KAAI,CAAE;AACjD,aAAO,CAACC,eAAAA,MAAM,QAAQ,OAAO,KAAI,EAAG,MAAM;AAAA,IAC3C,CAAC;AAAA,EACF;AACD;AAQO,SAAS,SAAS,MAAM;AAC9B,MAAI,QAAQ,qBAAqB,KAAK,IAAI;AAC1C,QAAM,OAAO,CAAA;AACb,MAAI,QAAQ;AACZ,SAAO,UAAU,MAAM;AACtB,QAAI,OAAO,MAAM,CAAC;AAClB,QAAI;AACJ,QAAI,aAAa,KAAK,UAAU,OAAO,MAAM,QAAQ,MAAM,CAAC,EAAE,MAAM;AACpE,QAAI,KAAK,CAAC,MAAM,KAAK;AACpB,oBAAc,KAAK,CAAC;AACpB,aAAO,KAAK,UAAU,CAAC,EAAE,KAAI;AAAA,IAC9B;AACA,UAAM,WAAW,KAAM,KAAK,SAAS,CAAC;AACtC,QAAI,aAAa,OAAO,aAAa,OAAO,aAAa,OAAQ,MAAM,CAAC,EAAE,CAAC,MAAM,OAAO,aAAa,KAAM;AAC1G,aAAO,KAAK,UAAU,GAAG,KAAK,SAAS,CAAC;AACxC,kBAAY;AAAA,IACb;AACA,SAAK,KAAK,UAAU;AACpB,SAAK,KAAK,EAAE,WAAW,QAAQ,OAAO,EAAE,OAAM,CAAE;AAChD,QAAI,WAAW;AACd,WAAK,KAAK,SAAS;AAAA,IACpB;AACA,YAAQ,MAAM,QAAQ,MAAM,CAAC,EAAE;AAC/B,YAAQ,qBAAqB,KAAK,IAAI;AAAA,EACvC;AACA,OAAK,KAAK,KAAK,UAAU,KAAK,CAAC;AAC/B,QAAM,aAAa,KAAK,IAAI,CAAC,SAAS,OAAO,SAAS,WAAW,OAAO,KAAK,MAAM,IAAI,EAAE,KAAK,EAAE;AAChG,MAAI,SAAS,YAAY;AACxB,WAAO;AAAA,EACR;AACAC,gBAAO,MAAM,4CAA4C,IAAI;AAC7D,SAAO;AACR;AAUO,SAAS,SAASC,UAAQ,KAAK;AAQrC,QAAM,eAAe,CAAC,KAAK,WAAW,IAAI,WAAW,MAAM,IAAI,IAAI,MAAM,OAAO,MAAM,IAAI;AAC1F,QAAM,iBAAiB,CAAC,QAAQ,aAAa,SAAS,OAAO,CAAC,KAAK,WAAW,aAAa,KAAK,MAAM,GAAG,GAAG;AAG5G,MAAI,CAACA,UAAQ;AACZ,WAAO;AAAA,EACR;AAEA,QAAM,gBAAgB,eAAe,KAAK,GAAG;AAG7C,QAAM,gBAAgB,wBAAwB,KAAK,GAAG;AACtD,MAAI,CAAC,iBAAiB,eAAe;AACpC,WAAO;AAAA,EACR;AAGA,MAAI,iBAAiB,CAAC,IAAI,WAAWC,OAAAA,WAAU,CAAE,GAAG;AACnD,WAAO;AAAA,EACR;AAEA,MAAI,CAAC,iBAAiB,CAAC,IAAI,WAAW,GAAG,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;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { visit, SKIP } from "unist-util-visit";
|
|
2
|
-
import { u } from "unist-builder";
|
|
3
1
|
import { getBaseUrl, getRootUrl } from "@nextcloud/router";
|
|
2
|
+
import { u } from "unist-builder";
|
|
3
|
+
import { visit, SKIP } from "unist-util-visit";
|
|
4
|
+
import { l as logger } from "./logger-D3RVzcfQ.mjs";
|
|
4
5
|
const URL_PATTERN = /(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig;
|
|
5
6
|
const URL_PATTERN_AUTOLINK = /(\s|\(|^)((https?:\/\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/ig;
|
|
6
7
|
const NcLink = {
|
|
@@ -22,7 +23,7 @@ const NcLink = {
|
|
|
22
23
|
}, [this.href.trim()]);
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {
|
|
26
27
|
return function(tree) {
|
|
27
28
|
if (useExtendedMarkdown || !useMarkdown || !autolink) {
|
|
28
29
|
return;
|
|
@@ -41,8 +42,8 @@ const remarkAutolink = function({ autolink, useMarkdown, useExtendedMarkdown })
|
|
|
41
42
|
return [SKIP, index + parsed.flat().length];
|
|
42
43
|
});
|
|
43
44
|
};
|
|
44
|
-
}
|
|
45
|
-
|
|
45
|
+
}
|
|
46
|
+
function parseUrl(text) {
|
|
46
47
|
let match = URL_PATTERN_AUTOLINK.exec(text);
|
|
47
48
|
const list = [];
|
|
48
49
|
let start = 0;
|
|
@@ -72,10 +73,10 @@ const parseUrl = (text) => {
|
|
|
72
73
|
if (text === joinedText) {
|
|
73
74
|
return list;
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
+
logger.error("Failed to reassemble the chunked text: " + text);
|
|
76
77
|
return text;
|
|
77
|
-
}
|
|
78
|
-
|
|
78
|
+
}
|
|
79
|
+
function getRoute(router, url) {
|
|
79
80
|
const removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str;
|
|
80
81
|
const removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str);
|
|
81
82
|
if (!router) {
|
|
@@ -100,11 +101,11 @@ const getRoute = (router, url) => {
|
|
|
100
101
|
return null;
|
|
101
102
|
}
|
|
102
103
|
return route.fullPath;
|
|
103
|
-
}
|
|
104
|
+
}
|
|
104
105
|
export {
|
|
105
106
|
URL_PATTERN as U,
|
|
106
107
|
getRoute as g,
|
|
107
108
|
parseUrl as p,
|
|
108
109
|
remarkAutolink as r
|
|
109
110
|
};
|
|
110
|
-
//# sourceMappingURL=autolink-
|
|
111
|
+
//# sourceMappingURL=autolink-D2pIbi92.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autolink-D2pIbi92.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, visit } from 'unist-util-visit'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nconst NcLink = {\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender(h) {\n\t\treturn h('a', {\n\t\t\tattrs: {\n\t\t\t\thref: this.href,\n\t\t\t\trel: 'noopener noreferrer',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tclass: 'rich-text--external-link',\n\t\t\t},\n\t\t}, [this.href.trim()])\n\t},\n}\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\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\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: NcLink, props: { href } })\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":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-Bls5liKo.mjs","sources":["../../src/composables/useIsDarkTheme/constants.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { ComputedRef, InjectionKey } from 'vue'\n\n/**\n * Enforced dark / light theme state\n *\n
|
|
1
|
+
{"version":3,"file":"constants-Bls5liKo.mjs","sources":["../../src/composables/useIsDarkTheme/constants.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { ComputedRef, InjectionKey } from 'vue'\n\n/**\n * Enforced dark / light theme state\n *\n */\nexport const INJECTION_KEY_THEME: InjectionKey<ComputedRef<'light' | 'dark' | ''> | undefined> = Symbol.for('nc:theme:enforced')\n"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAWO,MAAM,sBAAoF,OAAO,IAAI,mBAAmB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-C_lA-vcp.cjs","sources":["../../src/composables/useIsDarkTheme/constants.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { ComputedRef, InjectionKey } from 'vue'\n\n/**\n * Enforced dark / light theme state\n *\n
|
|
1
|
+
{"version":3,"file":"constants-C_lA-vcp.cjs","sources":["../../src/composables/useIsDarkTheme/constants.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { ComputedRef, InjectionKey } from 'vue'\n\n/**\n * Enforced dark / light theme state\n *\n */\nexport const INJECTION_KEY_THEME: InjectionKey<ComputedRef<'light' | 'dark' | ''> | undefined> = Symbol.for('nc:theme:enforced')\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAWO,MAAM,sBAAoF,OAAO,IAAI,mBAAmB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createElementId-DhjFt1I9.mjs","sources":["../../src/utils/createElementId.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// make sure the id is unique\nwindow._nc_vue_element_id = window._nc_vue_element_id ?? 0\n\n/**\n * Get the next element id for use with HTML / CSS\n *\n * We can not be sure that the app has a prefix setup,\n * so we can use `useId` from Vue - so we need to use our own implementation.\n */\nexport function createElementId(): string {\n\treturn `nc-vue-${window._nc_vue_element_id!++}`\n}\n"],"names":[],"mappings":"AAMA,OAAO,qBAAqB,OAAO,sBAAsB;AAQlD,SAAS,kBAA0B;AACzC,SAAO,UAAU,OAAO,oBAAqB;AAC9C;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createElementId-lalylSCf.cjs","sources":["../../src/utils/createElementId.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// make sure the id is unique\nwindow._nc_vue_element_id = window._nc_vue_element_id ?? 0\n\n/**\n * Get the next element id for use with HTML / CSS\n *\n * We can not be sure that the app has a prefix setup,\n * so we can use `useId` from Vue - so we need to use our own implementation.\n */\nexport function createElementId(): string {\n\treturn `nc-vue-${window._nc_vue_element_id!++}`\n}\n"],"names":[],"mappings":";AAMA,OAAO,qBAAqB,OAAO,sBAAsB;AAQlD,SAAS,kBAA0B;AACzC,SAAO,UAAU,OAAO,oBAAqB;AAC9C;;"}
|
|
@@ -27,7 +27,7 @@ function renderWidget(el, options) {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
if (!window._vue_richtext_widgets[richObjectType]) {
|
|
30
|
-
|
|
30
|
+
logger.error("Widget for rich object type " + richObjectType + " not registered");
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
window._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive });
|
|
@@ -104,15 +104,15 @@ function destroyCustomPickerElement(providerId, el, renderResult) {
|
|
|
104
104
|
export {
|
|
105
105
|
NcCustomPickerRenderResult as N,
|
|
106
106
|
renderWidget as a,
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
destroyCustomPickerElement as b,
|
|
108
|
+
isCustomPickerElementRegistered as c,
|
|
109
109
|
destroyWidget as d,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
registerCustomPickerElement as e,
|
|
111
|
+
renderCustomPickerElement as f,
|
|
112
112
|
getCustomPickerElementSize as g,
|
|
113
113
|
hasInteractiveView as h,
|
|
114
114
|
isWidgetRegistered as i,
|
|
115
115
|
hasFullWidth as j,
|
|
116
116
|
registerWidget as r
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=customPickerElements-
|
|
118
|
+
//# sourceMappingURL=customPickerElements-DLFtgReB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPickerElements-DLFtgReB.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\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\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\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 * 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":"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"}
|
|
@@ -28,7 +28,7 @@ function renderWidget(el, options) {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
if (!window._vue_richtext_widgets[richObjectType]) {
|
|
31
|
-
|
|
31
|
+
logger.logger.error("Widget for rich object type " + richObjectType + " not registered");
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
window._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive });
|
|
@@ -114,4 +114,4 @@ exports.registerCustomPickerElement = registerCustomPickerElement;
|
|
|
114
114
|
exports.registerWidget = registerWidget;
|
|
115
115
|
exports.renderCustomPickerElement = renderCustomPickerElement;
|
|
116
116
|
exports.renderWidget = renderWidget;
|
|
117
|
-
//# sourceMappingURL=customPickerElements-
|
|
117
|
+
//# sourceMappingURL=customPickerElements-GyIIOHiQ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPickerElements-GyIIOHiQ.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\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\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\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 * 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":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emoji-BY_D0V5K.mjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\
|
|
1
|
+
{"version":3,"file":"emoji-BY_D0V5K.mjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\nimport data from 'emoji-mart-vue-fast/data/all.json'\n\nconst storage = getBuilder('nextcloud-vue').persist(true).build()\n\n// Shared emoji index and skinTone for all emojiSearch function calls\n// Will be initialized on the first call\nlet emojiIndex\n\n/**\n * Skin tones supported by Unicode Emojis (Fitzpatrick scale)\n * The numeric values align with `emoji-mart-vue`\n */\nexport enum EmojiSkinTone {\n\tNeutral = 1,\n\tLight = 2,\n\tMediumLight = 3,\n\tMedium = 4,\n\tMediumDark = 5,\n\tDark = 6,\n}\n\n/**\n * Get the list of emojis by search filter or the list of frequently used emojis\n *\n * @param query Emoji search filter string; if no string or empty string is given, the list of frequently used emojis is returned\n * @param maxResults Maximum of returned emojis\n * @return list of found emojis in the same format as the emoji-mart-vue-fast's EmojiIndex\n */\nexport function emojiSearch(query: string, maxResults: number = 10): object[] {\n\t// If this is the first call of function - initialize EmojiIndex\n\tif (!emojiIndex) {\n\t\temojiIndex = new EmojiIndex(data)\n\t}\n\tconst currentSkinTone = getCurrentSkinTone()\n\n\tlet results\n\tif (query) {\n\t\tresults = emojiIndex.search(`:${query}`, maxResults)\n\t\tif (results.length < maxResults) {\n\t\t\tresults = results.concat(emojiIndex.search(query, maxResults - results.length))\n\t\t}\n\t} else {\n\t\tresults = frequently.get(maxResults).map((id: number) => emojiIndex.emoji(id)) || []\n\t}\n\n\treturn results.map((emoji) => emoji.getSkin(currentSkinTone))\n}\n\n/**\n * Add emoji to the list of recent emojis.\n * This list can be got from emojiSearch function and it is used in NcEmojiPicker.\n *\n * @param emojiData object with `id` property\n * @param emojiData.id the emoji ID from emoji index\n */\nexport function emojiAddRecent(emojiData: { id: string }): void {\n\tfrequently.add(emojiData)\n}\n\n/**\n * Get the current skin tone index used for emojis\n *\n * @return The skin tone\n */\nexport function getCurrentSkinTone(): EmojiSkinTone {\n\tconst skinTone = Number.parseInt(storage.getItem('NcEmojiPicker::currentSkinTone') ?? '1')\n\t// Clamp skinTone to valid ranges\n\treturn Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n}\n\n/**\n * Set the current active skin tone for emojis\n *\n * @param skinTone Skin tone\n */\nexport function setCurrentSkinTone(skinTone: EmojiSkinTone): void {\n\t// Clamp skinTone to valid ranges\n\tskinTone = Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n\tstorage.setItem('NcEmojiPicker::currentSkinTone', skinTone.toString())\n}\n"],"names":["EmojiSkinTone"],"mappings":";;;AASA,MAAM,UAAU,WAAW,eAAe,EAAE,QAAQ,IAAI,EAAE,MAAA;AAI1D,IAAI;AAMG,IAAK,kCAAAA,mBAAL;AACNA,iBAAAA,eAAA,aAAU,CAAA,IAAV;AACAA,iBAAAA,eAAA,WAAQ,CAAA,IAAR;AACAA,iBAAAA,eAAA,iBAAc,CAAA,IAAd;AACAA,iBAAAA,eAAA,YAAS,CAAA,IAAT;AACAA,iBAAAA,eAAA,gBAAa,CAAA,IAAb;AACAA,iBAAAA,eAAA,UAAO,CAAA,IAAP;AANW,SAAAA;AAAA,GAAA,iBAAA,CAAA,CAAA;AAgBL,SAAS,YAAY,OAAe,aAAqB,IAAc;AAE7E,MAAI,CAAC,YAAY;AAChB,iBAAa,IAAI,WAAW,IAAI;AAAA,EACjC;AACA,QAAM,kBAAkB,mBAAA;AAExB,MAAI;AACJ,MAAI,OAAO;AACV,cAAU,WAAW,OAAO,IAAI,KAAK,IAAI,UAAU;AACnD,QAAI,QAAQ,SAAS,YAAY;AAChC,gBAAU,QAAQ,OAAO,WAAW,OAAO,OAAO,aAAa,QAAQ,MAAM,CAAC;AAAA,IAC/E;AAAA,EACD,OAAO;AACN,cAAU,WAAW,IAAI,UAAU,EAAE,IAAI,CAAC,OAAe,WAAW,MAAM,EAAE,CAAC,KAAK,CAAA;AAAA,EACnF;AAEA,SAAO,QAAQ,IAAI,CAAC,UAAU,MAAM,QAAQ,eAAe,CAAC;AAC7D;AASO,SAAS,eAAe,WAAiC;AAC/D,aAAW,IAAI,SAAS;AACzB;AAOO,SAAS,qBAAoC;AACnD,QAAM,WAAW,OAAO,SAAS,QAAQ,QAAQ,gCAAgC,KAAK,GAAG;AAEzF,SAAO,KAAK;AAAA,IAAI,KAAK;AAAA,MAAI;AAAA,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA,EAAA;AAC5D;AAOO,SAAS,mBAAmB,UAA+B;AAEjE,aAAW,KAAK;AAAA,IAAI,KAAK;AAAA,MAAI;AAAA,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA,EAAA;AAC/D,UAAQ,QAAQ,kCAAkC,SAAS,SAAA,CAAU;AACtE;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emoji-VgSjNTd5.cjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\
|
|
1
|
+
{"version":3,"file":"emoji-VgSjNTd5.cjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\nimport data from 'emoji-mart-vue-fast/data/all.json'\n\nconst storage = getBuilder('nextcloud-vue').persist(true).build()\n\n// Shared emoji index and skinTone for all emojiSearch function calls\n// Will be initialized on the first call\nlet emojiIndex\n\n/**\n * Skin tones supported by Unicode Emojis (Fitzpatrick scale)\n * The numeric values align with `emoji-mart-vue`\n */\nexport enum EmojiSkinTone {\n\tNeutral = 1,\n\tLight = 2,\n\tMediumLight = 3,\n\tMedium = 4,\n\tMediumDark = 5,\n\tDark = 6,\n}\n\n/**\n * Get the list of emojis by search filter or the list of frequently used emojis\n *\n * @param query Emoji search filter string; if no string or empty string is given, the list of frequently used emojis is returned\n * @param maxResults Maximum of returned emojis\n * @return list of found emojis in the same format as the emoji-mart-vue-fast's EmojiIndex\n */\nexport function emojiSearch(query: string, maxResults: number = 10): object[] {\n\t// If this is the first call of function - initialize EmojiIndex\n\tif (!emojiIndex) {\n\t\temojiIndex = new EmojiIndex(data)\n\t}\n\tconst currentSkinTone = getCurrentSkinTone()\n\n\tlet results\n\tif (query) {\n\t\tresults = emojiIndex.search(`:${query}`, maxResults)\n\t\tif (results.length < maxResults) {\n\t\t\tresults = results.concat(emojiIndex.search(query, maxResults - results.length))\n\t\t}\n\t} else {\n\t\tresults = frequently.get(maxResults).map((id: number) => emojiIndex.emoji(id)) || []\n\t}\n\n\treturn results.map((emoji) => emoji.getSkin(currentSkinTone))\n}\n\n/**\n * Add emoji to the list of recent emojis.\n * This list can be got from emojiSearch function and it is used in NcEmojiPicker.\n *\n * @param emojiData object with `id` property\n * @param emojiData.id the emoji ID from emoji index\n */\nexport function emojiAddRecent(emojiData: { id: string }): void {\n\tfrequently.add(emojiData)\n}\n\n/**\n * Get the current skin tone index used for emojis\n *\n * @return The skin tone\n */\nexport function getCurrentSkinTone(): EmojiSkinTone {\n\tconst skinTone = Number.parseInt(storage.getItem('NcEmojiPicker::currentSkinTone') ?? '1')\n\t// Clamp skinTone to valid ranges\n\treturn Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n}\n\n/**\n * Set the current active skin tone for emojis\n *\n * @param skinTone Skin tone\n */\nexport function setCurrentSkinTone(skinTone: EmojiSkinTone): void {\n\t// Clamp skinTone to valid ranges\n\tskinTone = Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n\tstorage.setItem('NcEmojiPicker::currentSkinTone', skinTone.toString())\n}\n"],"names":["getBuilder","EmojiSkinTone","EmojiIndex","data","frequently"],"mappings":";;;;;;AASA,MAAM,UAAUA,eAAAA,WAAW,eAAe,EAAE,QAAQ,IAAI,EAAE,MAAA;AAI1D,IAAI;AAMG,IAAK,kCAAAC,mBAAL;AACNA,iBAAAA,eAAA,aAAU,CAAA,IAAV;AACAA,iBAAAA,eAAA,WAAQ,CAAA,IAAR;AACAA,iBAAAA,eAAA,iBAAc,CAAA,IAAd;AACAA,iBAAAA,eAAA,YAAS,CAAA,IAAT;AACAA,iBAAAA,eAAA,gBAAa,CAAA,IAAb;AACAA,iBAAAA,eAAA,UAAO,CAAA,IAAP;AANW,SAAAA;AAAA,GAAA,iBAAA,CAAA,CAAA;AAgBL,SAAS,YAAY,OAAe,aAAqB,IAAc;AAE7E,MAAI,CAAC,YAAY;AAChB,iBAAa,IAAIC,iBAAAA,WAAWC,qBAAI;AAAA,EACjC;AACA,QAAM,kBAAkB,mBAAA;AAExB,MAAI;AACJ,MAAI,OAAO;AACV,cAAU,WAAW,OAAO,IAAI,KAAK,IAAI,UAAU;AACnD,QAAI,QAAQ,SAAS,YAAY;AAChC,gBAAU,QAAQ,OAAO,WAAW,OAAO,OAAO,aAAa,QAAQ,MAAM,CAAC;AAAA,IAC/E;AAAA,EACD,OAAO;AACN,cAAUC,iBAAAA,WAAW,IAAI,UAAU,EAAE,IAAI,CAAC,OAAe,WAAW,MAAM,EAAE,CAAC,KAAK,CAAA;AAAA,EACnF;AAEA,SAAO,QAAQ,IAAI,CAAC,UAAU,MAAM,QAAQ,eAAe,CAAC;AAC7D;AASO,SAAS,eAAe,WAAiC;AAC/DA,mBAAAA,WAAW,IAAI,SAAS;AACzB;AAOO,SAAS,qBAAoC;AACnD,QAAM,WAAW,OAAO,SAAS,QAAQ,QAAQ,gCAAgC,KAAK,GAAG;AAEzF,SAAO,KAAK;AAAA,IAAI,KAAK;AAAA,MAAI;AAAA,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA,EAAA;AAC5D;AAOO,SAAS,mBAAmB,UAA+B;AAEjE,aAAW,KAAK;AAAA,IAAI,KAAK;AAAA,MAAI;AAAA,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA,EAAA;AAC/D,UAAQ,QAAQ,kCAAkC,SAAS,SAAA,CAAU;AACtE;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusTrap-DUTqW_IG.cjs","sources":["../../src/utils/focusTrap.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { FocusTrap } from 'focus-trap'\n\ndeclare global {\n\tinterface Window {\n\t\t_nc_focus_trap: FocusTrap[]\n\t}\n}\n\n/**\n * Get the default global focus trap stack\n */\nexport function getTrapStack() {\n\t// Create global stack if undefined\n\twindow._nc_focus_trap ??= []\n\n\treturn window._nc_focus_trap\n}\n\n/**\n * Create controller to pause/unpause the global focus trap stack.\n *\n * When some component manually implements its own focus-trap without using global focus-trap stack,\n * it also needs to pause the global stack to avoid conflict.\n *\n * Note: if global focus-trap stack was modified outside TrapStackController (likely due to user actions),\n * trap queue should be correctly handled by focus-trap itself.\n * It is no longer safe to unpause cached `pausedStack`, as it can disrupt the current focus trap state.\n * We assume that the focus-trap stack is self-regulated and ignore unpause.\n */\nexport function createTrapStackController() {\n\t/**\n\t * Stack of focus traps that were paused to unpause the exact stack later\n\t */\n\tlet pausedStack: FocusTrap[] = []\n\n\treturn {\n\t\t/**\n\t\t * Pause the current focus-trap stack\n\t\t */\n\t\tpause() {\n\t\t\tpausedStack = [...getTrapStack()]\n\t\t\tfor (const trap of pausedStack) {\n\t\t\t\ttrap.pause()\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Unpause the paused focus trap stack\n\t\t * If the actual stack is different from the paused one, ignore unpause.\n\t\t */\n\t\tunpause() {\n\t\t\tif (pausedStack.length === getTrapStack().length) {\n\t\t\t\tfor (const trap of pausedStack) {\n\t\t\t\t\ttrap.unpause()\n\t\t\t\t}\n\t\t\t}\n\t\t\tpausedStack = []\n\t\t},\n\t}\n}\n"],"names":[],"mappings":";AAgBO,SAAS,eAAe;AAE9B,SAAO,mBAAmB,
|
|
1
|
+
{"version":3,"file":"focusTrap-DUTqW_IG.cjs","sources":["../../src/utils/focusTrap.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { FocusTrap } from 'focus-trap'\n\ndeclare global {\n\tinterface Window {\n\t\t_nc_focus_trap: FocusTrap[]\n\t}\n}\n\n/**\n * Get the default global focus trap stack\n */\nexport function getTrapStack() {\n\t// Create global stack if undefined\n\twindow._nc_focus_trap ??= []\n\n\treturn window._nc_focus_trap\n}\n\n/**\n * Create controller to pause/unpause the global focus trap stack.\n *\n * When some component manually implements its own focus-trap without using global focus-trap stack,\n * it also needs to pause the global stack to avoid conflict.\n *\n * Note: if global focus-trap stack was modified outside TrapStackController (likely due to user actions),\n * trap queue should be correctly handled by focus-trap itself.\n * It is no longer safe to unpause cached `pausedStack`, as it can disrupt the current focus trap state.\n * We assume that the focus-trap stack is self-regulated and ignore unpause.\n */\nexport function createTrapStackController() {\n\t/**\n\t * Stack of focus traps that were paused to unpause the exact stack later\n\t */\n\tlet pausedStack: FocusTrap[] = []\n\n\treturn {\n\t\t/**\n\t\t * Pause the current focus-trap stack\n\t\t */\n\t\tpause() {\n\t\t\tpausedStack = [...getTrapStack()]\n\t\t\tfor (const trap of pausedStack) {\n\t\t\t\ttrap.pause()\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Unpause the paused focus trap stack\n\t\t * If the actual stack is different from the paused one, ignore unpause.\n\t\t */\n\t\tunpause() {\n\t\t\tif (pausedStack.length === getTrapStack().length) {\n\t\t\t\tfor (const trap of pausedStack) {\n\t\t\t\t\ttrap.unpause()\n\t\t\t\t}\n\t\t\t}\n\t\t\tpausedStack = []\n\t\t},\n\t}\n}\n"],"names":[],"mappings":";AAgBO,SAAS,eAAe;AAE9B,SAAO,mBAAmB,CAAA;AAE1B,SAAO,OAAO;AACf;AAaO,SAAS,4BAA4B;AAI3C,MAAI,cAA2B,CAAA;AAE/B,SAAO;AAAA;AAAA;AAAA;AAAA,IAIN,QAAQ;AACP,oBAAc,CAAC,GAAG,cAAc;AAChC,iBAAW,QAAQ,aAAa;AAC/B,aAAK,MAAA;AAAA,MACN;AAAA,IACD;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAU;AACT,UAAI,YAAY,WAAW,aAAA,EAAe,QAAQ;AACjD,mBAAW,QAAQ,aAAa;AAC/B,eAAK,QAAA;AAAA,QACN;AAAA,MACD;AACA,oBAAc,CAAA;AAAA,IACf;AAAA,EAAA;AAEF;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusTrap-HJQ4pqHV.mjs","sources":["../../src/utils/focusTrap.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { FocusTrap } from 'focus-trap'\n\ndeclare global {\n\tinterface Window {\n\t\t_nc_focus_trap: FocusTrap[]\n\t}\n}\n\n/**\n * Get the default global focus trap stack\n */\nexport function getTrapStack() {\n\t// Create global stack if undefined\n\twindow._nc_focus_trap ??= []\n\n\treturn window._nc_focus_trap\n}\n\n/**\n * Create controller to pause/unpause the global focus trap stack.\n *\n * When some component manually implements its own focus-trap without using global focus-trap stack,\n * it also needs to pause the global stack to avoid conflict.\n *\n * Note: if global focus-trap stack was modified outside TrapStackController (likely due to user actions),\n * trap queue should be correctly handled by focus-trap itself.\n * It is no longer safe to unpause cached `pausedStack`, as it can disrupt the current focus trap state.\n * We assume that the focus-trap stack is self-regulated and ignore unpause.\n */\nexport function createTrapStackController() {\n\t/**\n\t * Stack of focus traps that were paused to unpause the exact stack later\n\t */\n\tlet pausedStack: FocusTrap[] = []\n\n\treturn {\n\t\t/**\n\t\t * Pause the current focus-trap stack\n\t\t */\n\t\tpause() {\n\t\t\tpausedStack = [...getTrapStack()]\n\t\t\tfor (const trap of pausedStack) {\n\t\t\t\ttrap.pause()\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Unpause the paused focus trap stack\n\t\t * If the actual stack is different from the paused one, ignore unpause.\n\t\t */\n\t\tunpause() {\n\t\t\tif (pausedStack.length === getTrapStack().length) {\n\t\t\t\tfor (const trap of pausedStack) {\n\t\t\t\t\ttrap.unpause()\n\t\t\t\t}\n\t\t\t}\n\t\t\tpausedStack = []\n\t\t},\n\t}\n}\n"],"names":[],"mappings":"AAgBO,SAAS,eAAe;AAE9B,SAAO,mBAAmB,
|
|
1
|
+
{"version":3,"file":"focusTrap-HJQ4pqHV.mjs","sources":["../../src/utils/focusTrap.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { FocusTrap } from 'focus-trap'\n\ndeclare global {\n\tinterface Window {\n\t\t_nc_focus_trap: FocusTrap[]\n\t}\n}\n\n/**\n * Get the default global focus trap stack\n */\nexport function getTrapStack() {\n\t// Create global stack if undefined\n\twindow._nc_focus_trap ??= []\n\n\treturn window._nc_focus_trap\n}\n\n/**\n * Create controller to pause/unpause the global focus trap stack.\n *\n * When some component manually implements its own focus-trap without using global focus-trap stack,\n * it also needs to pause the global stack to avoid conflict.\n *\n * Note: if global focus-trap stack was modified outside TrapStackController (likely due to user actions),\n * trap queue should be correctly handled by focus-trap itself.\n * It is no longer safe to unpause cached `pausedStack`, as it can disrupt the current focus trap state.\n * We assume that the focus-trap stack is self-regulated and ignore unpause.\n */\nexport function createTrapStackController() {\n\t/**\n\t * Stack of focus traps that were paused to unpause the exact stack later\n\t */\n\tlet pausedStack: FocusTrap[] = []\n\n\treturn {\n\t\t/**\n\t\t * Pause the current focus-trap stack\n\t\t */\n\t\tpause() {\n\t\t\tpausedStack = [...getTrapStack()]\n\t\t\tfor (const trap of pausedStack) {\n\t\t\t\ttrap.pause()\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Unpause the paused focus trap stack\n\t\t * If the actual stack is different from the paused one, ignore unpause.\n\t\t */\n\t\tunpause() {\n\t\t\tif (pausedStack.length === getTrapStack().length) {\n\t\t\t\tfor (const trap of pausedStack) {\n\t\t\t\t\ttrap.unpause()\n\t\t\t\t}\n\t\t\t}\n\t\t\tpausedStack = []\n\t\t},\n\t}\n}\n"],"names":[],"mappings":"AAgBO,SAAS,eAAe;AAE9B,SAAO,mBAAmB,CAAA;AAE1B,SAAO,OAAO;AACf;AAaO,SAAS,4BAA4B;AAI3C,MAAI,cAA2B,CAAA;AAE/B,SAAO;AAAA;AAAA;AAAA;AAAA,IAIN,QAAQ;AACP,oBAAc,CAAC,GAAG,cAAc;AAChC,iBAAW,QAAQ,aAAa;AAC/B,aAAK,MAAA;AAAA,MACN;AAAA,IACD;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAU;AACT,UAAI,YAAY,WAAW,aAAA,EAAe,QAAQ;AACjD,mBAAW,QAAQ,aAAa;AAC/B,eAAK,QAAA;AAAA,QACN;AAAA,MACD;AACA,oBAAc,CAAA;AAAA,IACf;AAAA,EAAA;AAEF;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvatarUrl-Du9Y3cPO.cjs","sources":["../../src/utils/getAvatarUrl.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { generateUrl } from '@nextcloud/router'\nimport { checkIfDarkTheme } from '../functions/isDarkTheme/index.ts'\n\ninterface AvatarUrlOptions {\n\t/**\n\t * Should the dark theme variant be used.\n\t */\n\tisDarkTheme?: boolean\n\n\t/**\n\t * Is the user a guest user.\n\t */\n\tisGuest?: boolean\n\n\t/**\n\t * Size of the avatar.\n\t * @default 64\n\t */\n\tsize?: 64 | 512\n}\n\n/**\n * Get the avatar URL for a given user.\n *\n * @param user - The user id\n * @param options - Adjustments for the avatar format\n */\nexport function getAvatarUrl(user: string, options?: AvatarUrlOptions): string {\n\t// backend only supports 64 and 512px\n\t// so we only requrest the needed size for better caching of the request.\n\tconst size = (options?.size || 64) <= 64\n\t\t? 64\n\t\t: 512\n\n\tconst guestUrl = options?.isGuest\n\t\t? '/guest'\n\t\t: ''\n\tconst themeUrl = options?.isDarkTheme ?? checkIfDarkTheme(document.body)\n\t\t? '/dark'\n\t\t: ''\n\n\treturn generateUrl(`/avatar${guestUrl}/{user}/{size}${themeUrl}`, {\n\t\tuser,\n\t\tsize,\n\t})\n}\n"],"names":["checkIfDarkTheme","generateUrl"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getAvatarUrl-Du9Y3cPO.cjs","sources":["../../src/utils/getAvatarUrl.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { generateUrl } from '@nextcloud/router'\nimport { checkIfDarkTheme } from '../functions/isDarkTheme/index.ts'\n\ninterface AvatarUrlOptions {\n\t/**\n\t * Should the dark theme variant be used.\n\t */\n\tisDarkTheme?: boolean\n\n\t/**\n\t * Is the user a guest user.\n\t */\n\tisGuest?: boolean\n\n\t/**\n\t * Size of the avatar.\n\t *\n\t * @default 64\n\t */\n\tsize?: 64 | 512\n}\n\n/**\n * Get the avatar URL for a given user.\n *\n * @param user - The user id\n * @param options - Adjustments for the avatar format\n */\nexport function getAvatarUrl(user: string, options?: AvatarUrlOptions): string {\n\t// backend only supports 64 and 512px\n\t// so we only requrest the needed size for better caching of the request.\n\tconst size = (options?.size || 64) <= 64\n\t\t? 64\n\t\t: 512\n\n\tconst guestUrl = options?.isGuest\n\t\t? '/guest'\n\t\t: ''\n\tconst themeUrl = options?.isDarkTheme ?? checkIfDarkTheme(document.body)\n\t\t? '/dark'\n\t\t: ''\n\n\treturn generateUrl(`/avatar${guestUrl}/{user}/{size}${themeUrl}`, {\n\t\tuser,\n\t\tsize,\n\t})\n}\n"],"names":["checkIfDarkTheme","generateUrl"],"mappings":";;;AAiCO,SAAS,aAAa,MAAc,SAAoC;AAG9E,QAAM,QAAQ,SAAS,QAAQ,OAAO,KACnC,KACA;AAEH,QAAM,WAAW,SAAS,UACvB,WACA;AACH,QAAM,WAAW,SAAS,eAAeA,sBAAAA,iBAAiB,SAAS,IAAI,IACpE,UACA;AAEH,SAAOC,OAAAA,YAAY,UAAU,QAAQ,iBAAiB,QAAQ,IAAI;AAAA,IACjE;AAAA,IACA;AAAA,EAAA,CACA;AACF;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvatarUrl-IhLacDEr.mjs","sources":["../../src/utils/getAvatarUrl.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { generateUrl } from '@nextcloud/router'\nimport { checkIfDarkTheme } from '../functions/isDarkTheme/index.ts'\n\ninterface AvatarUrlOptions {\n\t/**\n\t * Should the dark theme variant be used.\n\t */\n\tisDarkTheme?: boolean\n\n\t/**\n\t * Is the user a guest user.\n\t */\n\tisGuest?: boolean\n\n\t/**\n\t * Size of the avatar.\n\t * @default 64\n\t */\n\tsize?: 64 | 512\n}\n\n/**\n * Get the avatar URL for a given user.\n *\n * @param user - The user id\n * @param options - Adjustments for the avatar format\n */\nexport function getAvatarUrl(user: string, options?: AvatarUrlOptions): string {\n\t// backend only supports 64 and 512px\n\t// so we only requrest the needed size for better caching of the request.\n\tconst size = (options?.size || 64) <= 64\n\t\t? 64\n\t\t: 512\n\n\tconst guestUrl = options?.isGuest\n\t\t? '/guest'\n\t\t: ''\n\tconst themeUrl = options?.isDarkTheme ?? checkIfDarkTheme(document.body)\n\t\t? '/dark'\n\t\t: ''\n\n\treturn generateUrl(`/avatar${guestUrl}/{user}/{size}${themeUrl}`, {\n\t\tuser,\n\t\tsize,\n\t})\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getAvatarUrl-IhLacDEr.mjs","sources":["../../src/utils/getAvatarUrl.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { generateUrl } from '@nextcloud/router'\nimport { checkIfDarkTheme } from '../functions/isDarkTheme/index.ts'\n\ninterface AvatarUrlOptions {\n\t/**\n\t * Should the dark theme variant be used.\n\t */\n\tisDarkTheme?: boolean\n\n\t/**\n\t * Is the user a guest user.\n\t */\n\tisGuest?: boolean\n\n\t/**\n\t * Size of the avatar.\n\t *\n\t * @default 64\n\t */\n\tsize?: 64 | 512\n}\n\n/**\n * Get the avatar URL for a given user.\n *\n * @param user - The user id\n * @param options - Adjustments for the avatar format\n */\nexport function getAvatarUrl(user: string, options?: AvatarUrlOptions): string {\n\t// backend only supports 64 and 512px\n\t// so we only requrest the needed size for better caching of the request.\n\tconst size = (options?.size || 64) <= 64\n\t\t? 64\n\t\t: 512\n\n\tconst guestUrl = options?.isGuest\n\t\t? '/guest'\n\t\t: ''\n\tconst themeUrl = options?.isDarkTheme ?? checkIfDarkTheme(document.body)\n\t\t? '/dark'\n\t\t: ''\n\n\treturn generateUrl(`/avatar${guestUrl}/{user}/{size}${themeUrl}`, {\n\t\tuser,\n\t\tsize,\n\t})\n}\n"],"names":[],"mappings":";;AAiCO,SAAS,aAAa,MAAc,SAAoC;AAG9E,QAAM,QAAQ,SAAS,QAAQ,OAAO,KACnC,KACA;AAEH,QAAM,WAAW,SAAS,UACvB,WACA;AACH,QAAM,WAAW,SAAS,eAAe,iBAAiB,SAAS,IAAI,IACpE,UACA;AAEH,SAAO,YAAY,UAAU,QAAQ,iBAAiB,QAAQ,IAAI;AAAA,IACjE;AAAA,IACA;AAAA,EAAA,CACA;AACF;"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
require('../assets/NcMentionBubble-
|
|
1
|
+
require('../assets/NcMentionBubble-CaztX9Pv.css');
|
|
2
2
|
"use strict";
|
|
3
|
+
const escapeHtml = require("escape-html");
|
|
4
|
+
const stripTags = require("striptags");
|
|
5
|
+
const Vue = require("vue");
|
|
3
6
|
const Composables_useIsDarkTheme = require("../Composables/useIsDarkTheme.cjs");
|
|
4
7
|
const getAvatarUrl = require("./getAvatarUrl-Du9Y3cPO.cjs");
|
|
5
8
|
;/* empty css */
|
|
6
9
|
const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
|
|
7
|
-
const escapeHtml = require("escape-html");
|
|
8
|
-
const stripTags = require("striptags");
|
|
9
|
-
const Vue = require("vue");
|
|
10
10
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
11
11
|
const escapeHtml__default = /* @__PURE__ */ _interopDefault(escapeHtml);
|
|
12
12
|
const stripTags__default = /* @__PURE__ */ _interopDefault(stripTags);
|
|
13
13
|
const Vue__default = /* @__PURE__ */ _interopDefault(Vue);
|
|
14
14
|
const _sfc_main = {
|
|
15
15
|
name: "NcMentionBubble",
|
|
16
|
+
/* eslint vue/require-prop-comment: warn -- TODO: Add a proper doc block about what this props do */
|
|
16
17
|
props: {
|
|
17
18
|
id: {
|
|
18
19
|
type: String,
|
|
@@ -81,7 +82,7 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
81
82
|
_sfc_staticRenderFns,
|
|
82
83
|
false,
|
|
83
84
|
null,
|
|
84
|
-
"
|
|
85
|
+
"07bfaab0"
|
|
85
86
|
);
|
|
86
87
|
const NcMentionBubble = __component__.exports;
|
|
87
88
|
const MENTION_START = /(?=[a-z0-9_\-@.'])\B/.source;
|
|
@@ -178,4 +179,4 @@ exports.NcMentionBubble = NcMentionBubble;
|
|
|
178
179
|
exports.USERID_REGEX = USERID_REGEX;
|
|
179
180
|
exports.USERID_REGEX_WITH_SPACE = USERID_REGEX_WITH_SPACE;
|
|
180
181
|
exports.richEditor = richEditor;
|
|
181
|
-
//# sourceMappingURL=index-
|
|
182
|
+
//# sourceMappingURL=index-CgkN1xho.cjs.map
|