@nextcloud/vue 8.0.0-beta.6 → 8.0.0-beta.8
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 +17 -0
- package/dist/Components/NcActionButton.cjs +49 -1
- package/dist/Components/NcActionButton.cjs.map +1 -1
- package/dist/Components/NcActionButton.mjs +48 -12
- package/dist/Components/NcActionButton.mjs.map +1 -1
- package/dist/Components/NcActionButtonGroup.cjs +30 -1
- package/dist/Components/NcActionButtonGroup.cjs.map +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +30 -9
- package/dist/Components/NcActionButtonGroup.mjs.map +1 -1
- package/dist/Components/NcActionCaption.cjs +29 -1
- package/dist/Components/NcActionCaption.cjs.map +1 -1
- package/dist/Components/NcActionCaption.mjs +29 -9
- package/dist/Components/NcActionCaption.mjs.map +1 -1
- package/dist/Components/NcActionCheckbox.cjs +78 -1
- package/dist/Components/NcActionCheckbox.cjs.map +1 -1
- package/dist/Components/NcActionCheckbox.mjs +80 -19
- package/dist/Components/NcActionCheckbox.mjs.map +1 -1
- package/dist/Components/NcActionInput.cjs +226 -1
- package/dist/Components/NcActionInput.cjs.map +1 -1
- package/dist/Components/NcActionInput.mjs +227 -68
- package/dist/Components/NcActionInput.mjs.map +1 -1
- package/dist/Components/NcActionLink.cjs +69 -1
- package/dist/Components/NcActionLink.cjs.map +1 -1
- package/dist/Components/NcActionLink.mjs +65 -13
- package/dist/Components/NcActionLink.mjs.map +1 -1
- package/dist/Components/NcActionRadio.cjs +85 -1
- package/dist/Components/NcActionRadio.cjs.map +1 -1
- package/dist/Components/NcActionRadio.mjs +87 -19
- package/dist/Components/NcActionRadio.mjs.map +1 -1
- package/dist/Components/NcActionRouter.cjs +42 -1
- package/dist/Components/NcActionRouter.cjs.map +1 -1
- package/dist/Components/NcActionRouter.mjs +41 -12
- package/dist/Components/NcActionRouter.mjs.map +1 -1
- package/dist/Components/NcActionSeparator.cjs +20 -1
- package/dist/Components/NcActionSeparator.cjs.map +1 -1
- package/dist/Components/NcActionSeparator.mjs +20 -9
- package/dist/Components/NcActionSeparator.mjs.map +1 -1
- package/dist/Components/NcActionText.cjs +23 -1
- package/dist/Components/NcActionText.cjs.map +1 -1
- package/dist/Components/NcActionText.mjs +20 -8
- package/dist/Components/NcActionText.mjs.map +1 -1
- package/dist/Components/NcActionTextEditable.cjs +81 -1
- package/dist/Components/NcActionTextEditable.cjs.map +1 -1
- package/dist/Components/NcActionTextEditable.mjs +79 -22
- package/dist/Components/NcActionTextEditable.mjs.map +1 -1
- package/dist/Components/NcActions.cjs +455 -1
- package/dist/Components/NcActions.cjs.map +1 -1
- package/dist/Components/NcActions.mjs +459 -100
- package/dist/Components/NcActions.mjs.map +1 -1
- package/dist/Components/NcAppContent.cjs +218 -1
- package/dist/Components/NcAppContent.cjs.map +1 -1
- package/dist/Components/NcAppContent.mjs +220 -66
- package/dist/Components/NcAppContent.mjs.map +1 -1
- package/dist/Components/NcAppContentDetails.cjs +19 -1
- package/dist/Components/NcAppContentDetails.cjs.map +1 -1
- package/dist/Components/NcAppContentDetails.mjs +18 -7
- package/dist/Components/NcAppContentDetails.mjs.map +1 -1
- package/dist/Components/NcAppContentList.cjs +29 -1
- package/dist/Components/NcAppContentList.cjs.map +1 -1
- package/dist/Components/NcAppContentList.mjs +29 -8
- package/dist/Components/NcAppContentList.mjs.map +1 -1
- package/dist/Components/NcAppNavigation.cjs +66 -1
- package/dist/Components/NcAppNavigation.cjs.map +1 -1
- package/dist/Components/NcAppNavigation.mjs +67 -28
- package/dist/Components/NcAppNavigation.mjs.map +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +44 -1
- package/dist/Components/NcAppNavigationCaption.cjs.map +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +40 -9
- package/dist/Components/NcAppNavigationCaption.mjs.map +1 -1
- package/dist/Components/NcAppNavigationIconBullet.cjs +40 -1
- package/dist/Components/NcAppNavigationIconBullet.cjs.map +1 -1
- package/dist/Components/NcAppNavigationIconBullet.mjs +40 -15
- package/dist/Components/NcAppNavigationIconBullet.mjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +386 -1
- package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +382 -81
- package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
- package/dist/Components/NcAppNavigationNew.cjs +50 -1
- package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
- package/dist/Components/NcAppNavigationNew.mjs +51 -14
- package/dist/Components/NcAppNavigationNew.mjs.map +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +87 -1
- package/dist/Components/NcAppNavigationNewItem.cjs.map +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +83 -17
- package/dist/Components/NcAppNavigationNewItem.mjs.map +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +69 -1
- package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +60 -21
- package/dist/Components/NcAppNavigationSettings.mjs.map +1 -1
- package/dist/Components/NcAppNavigationSpacer.cjs +20 -1
- package/dist/Components/NcAppNavigationSpacer.cjs.map +1 -1
- package/dist/Components/NcAppNavigationSpacer.mjs +20 -9
- package/dist/Components/NcAppNavigationSpacer.mjs.map +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +25 -1
- package/dist/Components/NcAppNavigationToggle.cjs.map +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +21 -1
- package/dist/Components/NcAppNavigationToggle.mjs.map +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +207 -1
- package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +209 -48
- package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
- package/dist/Components/NcAppSettingsSection.cjs +39 -1
- package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
- package/dist/Components/NcAppSettingsSection.mjs +39 -13
- package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
- package/dist/Components/NcAppSidebar.cjs +443 -1
- package/dist/Components/NcAppSidebar.cjs.map +1 -1
- package/dist/Components/NcAppSidebar.mjs +409 -92
- package/dist/Components/NcAppSidebar.mjs.map +1 -1
- package/dist/Components/NcAppSidebarTab.cjs +83 -1
- package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
- package/dist/Components/NcAppSidebarTab.mjs +83 -20
- package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
- package/dist/Components/NcAvatar.cjs +3 -1
- package/dist/Components/NcAvatar.cjs.map +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +175 -1
- package/dist/Components/NcBreadcrumb.cjs.map +1 -1
- package/dist/Components/NcBreadcrumb.mjs +175 -35
- package/dist/Components/NcBreadcrumb.mjs.map +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +372 -1
- package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +373 -142
- package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
- package/dist/Components/NcButton.cjs +226 -1
- package/dist/Components/NcButton.cjs.map +1 -1
- package/dist/Components/NcButton.mjs +226 -24
- package/dist/Components/NcButton.mjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +237 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +243 -57
- package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
- package/dist/Components/NcColorPicker.cjs +118 -1
- package/dist/Components/NcColorPicker.cjs.map +1 -1
- package/dist/Components/NcColorPicker.mjs +124 -46
- package/dist/Components/NcColorPicker.mjs.map +1 -1
- package/dist/Components/NcContent.cjs +25 -1
- package/dist/Components/NcContent.cjs.map +1 -1
- package/dist/Components/NcContent.mjs +24 -8
- package/dist/Components/NcContent.mjs.map +1 -1
- package/dist/Components/NcCounterBubble.cjs +47 -1
- package/dist/Components/NcCounterBubble.cjs.map +1 -1
- package/dist/Components/NcCounterBubble.mjs +46 -12
- package/dist/Components/NcCounterBubble.mjs.map +1 -1
- package/dist/Components/NcDashboardWidget.cjs +133 -1
- package/dist/Components/NcDashboardWidget.cjs.map +1 -1
- package/dist/Components/NcDashboardWidget.mjs +128 -39
- package/dist/Components/NcDashboardWidget.mjs.map +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +138 -1
- package/dist/Components/NcDashboardWidgetItem.cjs.map +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +129 -22
- package/dist/Components/NcDashboardWidgetItem.mjs.map +1 -1
- package/dist/Components/NcDateTime.cjs +125 -0
- package/dist/Components/{NcDatetime.mjs.map → NcDateTime.cjs.map} +1 -1
- package/dist/Components/NcDateTime.mjs +129 -0
- package/dist/Components/{NcDatetime.cjs.map → NcDateTime.mjs.map} +1 -1
- package/dist/Components/NcDateTimePicker.cjs +217 -0
- package/dist/Components/NcDateTimePicker.cjs.map +1 -0
- package/dist/Components/NcDateTimePicker.mjs +228 -0
- package/dist/Components/NcDateTimePicker.mjs.map +1 -0
- package/dist/Components/NcDateTimePickerNative.cjs +199 -1
- package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +195 -58
- package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
- package/dist/Components/NcEllipsisedOption.cjs +74 -1
- package/dist/Components/NcEllipsisedOption.cjs.map +1 -1
- package/dist/Components/NcEllipsisedOption.mjs +73 -20
- package/dist/Components/NcEllipsisedOption.mjs.map +1 -1
- package/dist/Components/NcEmojiPicker.cjs +175 -1
- package/dist/Components/NcEmojiPicker.cjs.map +1 -1
- package/dist/Components/NcEmojiPicker.mjs +173 -53
- package/dist/Components/NcEmojiPicker.mjs.map +1 -1
- package/dist/Components/NcEmptyContent.cjs +54 -1
- package/dist/Components/NcEmptyContent.cjs.map +1 -1
- package/dist/Components/NcEmptyContent.mjs +46 -10
- package/dist/Components/NcEmptyContent.mjs.map +1 -1
- package/dist/Components/NcGuestContent.cjs +26 -1
- package/dist/Components/NcGuestContent.cjs.map +1 -1
- package/dist/Components/NcGuestContent.mjs +24 -11
- package/dist/Components/NcGuestContent.mjs.map +1 -1
- package/dist/Components/NcHeaderMenu.cjs +167 -1
- package/dist/Components/NcHeaderMenu.cjs.map +1 -1
- package/dist/Components/NcHeaderMenu.mjs +161 -49
- package/dist/Components/NcHeaderMenu.mjs.map +1 -1
- package/dist/Components/NcHighlight.cjs +3 -1
- package/dist/Components/NcHighlight.cjs.map +1 -1
- package/dist/Components/NcHighlight.mjs +1 -1
- package/dist/Components/NcIconSvgWrapper.cjs +44 -1
- package/dist/Components/NcIconSvgWrapper.cjs.map +1 -1
- package/dist/Components/NcIconSvgWrapper.mjs +45 -15
- package/dist/Components/NcIconSvgWrapper.mjs.map +1 -1
- package/dist/Components/NcInputField.cjs +210 -1
- package/dist/Components/NcInputField.cjs.map +1 -1
- package/dist/Components/NcInputField.mjs +211 -38
- package/dist/Components/NcInputField.mjs.map +1 -1
- package/dist/Components/NcListItem.cjs +237 -1
- package/dist/Components/NcListItem.cjs.map +1 -1
- package/dist/Components/NcListItem.mjs +233 -57
- package/dist/Components/NcListItem.mjs.map +1 -1
- package/dist/Components/NcListItemIcon.cjs +150 -1
- package/dist/Components/NcListItemIcon.cjs.map +1 -1
- package/dist/Components/NcListItemIcon.mjs +142 -26
- package/dist/Components/NcListItemIcon.mjs.map +1 -1
- package/dist/Components/NcLoadingIcon.cjs +54 -1
- package/dist/Components/NcLoadingIcon.cjs.map +1 -1
- package/dist/Components/NcLoadingIcon.mjs +54 -14
- package/dist/Components/NcLoadingIcon.mjs.map +1 -1
- package/dist/Components/NcModal.cjs +405 -1
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +401 -103
- package/dist/Components/NcModal.mjs.map +1 -1
- package/dist/Components/NcNoteCard.cjs +71 -1
- package/dist/Components/NcNoteCard.cjs.map +1 -1
- package/dist/Components/NcNoteCard.mjs +71 -37
- package/dist/Components/NcNoteCard.mjs.map +1 -1
- package/dist/Components/NcPasswordField.cjs +152 -1
- package/dist/Components/NcPasswordField.cjs.map +1 -1
- package/dist/Components/NcPasswordField.mjs +157 -53
- package/dist/Components/NcPasswordField.mjs.map +1 -1
- package/dist/Components/NcPopover.cjs +125 -1
- package/dist/Components/NcPopover.cjs.map +1 -1
- package/dist/Components/NcPopover.mjs +124 -41
- package/dist/Components/NcPopover.mjs.map +1 -1
- package/dist/Components/NcProgressBar.cjs +57 -1
- package/dist/Components/NcProgressBar.cjs.map +1 -1
- package/dist/Components/NcProgressBar.mjs +57 -15
- package/dist/Components/NcProgressBar.mjs.map +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +168 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +166 -60
- package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
- package/dist/Components/NcRichContenteditable.cjs +478 -1
- package/dist/Components/NcRichContenteditable.cjs.map +1 -1
- package/dist/Components/NcRichContenteditable.mjs +447 -127
- package/dist/Components/NcRichContenteditable.mjs.map +1 -1
- package/dist/Components/NcRichText.cjs +44 -1
- package/dist/Components/NcRichText.cjs.map +1 -1
- package/dist/Components/NcRichText.mjs +25 -4
- package/dist/Components/NcRichText.mjs.map +1 -1
- package/dist/Components/NcSavingIndicatorIcon.cjs +59 -1
- package/dist/Components/NcSavingIndicatorIcon.cjs.map +1 -1
- package/dist/Components/NcSavingIndicatorIcon.mjs +56 -9
- package/dist/Components/NcSavingIndicatorIcon.mjs.map +1 -1
- package/dist/Components/NcSelect.cjs +406 -1
- package/dist/Components/NcSelect.cjs.map +1 -1
- package/dist/Components/NcSelect.mjs +402 -49
- package/dist/Components/NcSelect.mjs.map +1 -1
- package/dist/Components/NcSelectTags.cjs +251 -2
- package/dist/Components/NcSelectTags.cjs.map +1 -1
- package/dist/Components/NcSelectTags.mjs +236 -73
- package/dist/Components/NcSelectTags.mjs.map +1 -1
- package/dist/Components/NcSettingsInputText.cjs +90 -1
- package/dist/Components/NcSettingsInputText.cjs.map +1 -1
- package/dist/Components/NcSettingsInputText.mjs +88 -19
- package/dist/Components/NcSettingsInputText.mjs.map +1 -1
- package/dist/Components/NcSettingsSection.cjs +62 -1
- package/dist/Components/NcSettingsSection.cjs.map +1 -1
- package/dist/Components/NcSettingsSection.mjs +62 -15
- package/dist/Components/NcSettingsSection.mjs.map +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +26 -1
- package/dist/Components/NcSettingsSelectGroup.cjs.map +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +24 -53
- package/dist/Components/NcSettingsSelectGroup.mjs.map +1 -1
- package/dist/Components/NcTextField.cjs +74 -1
- package/dist/Components/NcTextField.cjs.map +1 -1
- package/dist/Components/NcTextField.mjs +77 -21
- package/dist/Components/NcTextField.mjs.map +1 -1
- package/dist/Components/NcTimezonePicker.cjs +4387 -614
- package/dist/Components/NcTimezonePicker.cjs.map +1 -1
- package/dist/Components/NcTimezonePicker.mjs +4372 -663
- package/dist/Components/NcTimezonePicker.mjs.map +1 -1
- package/dist/Components/NcUserBubble.cjs +189 -1
- package/dist/Components/NcUserBubble.cjs.map +1 -1
- package/dist/Components/NcUserBubble.mjs +190 -47
- package/dist/Components/NcUserBubble.mjs.map +1 -1
- package/dist/Components/NcVNodes.cjs +35 -1
- package/dist/Components/NcVNodes.cjs.map +1 -1
- package/dist/Components/NcVNodes.mjs +35 -8
- package/dist/Components/NcVNodes.mjs.map +1 -1
- package/dist/Directives/Focus.cjs +30 -1
- package/dist/Directives/Focus.cjs.map +1 -1
- package/dist/Directives/Focus.mjs +28 -5
- package/dist/Directives/Focus.mjs.map +1 -1
- package/dist/Directives/Linkify.cjs +8 -1
- package/dist/Directives/Linkify.cjs.map +1 -1
- package/dist/Directives/Linkify.mjs +6 -6
- package/dist/Directives/Linkify.mjs.map +1 -1
- package/dist/Directives/Tooltip.cjs +37 -1
- package/dist/Directives/Tooltip.cjs.map +1 -1
- package/dist/Directives/Tooltip.mjs +29 -4
- package/dist/Directives/Tooltip.mjs.map +1 -1
- package/dist/Functions/emoji.cjs +36 -1
- package/dist/Functions/emoji.cjs.map +1 -1
- package/dist/Functions/emoji.mjs +32 -11
- package/dist/Functions/emoji.mjs.map +1 -1
- package/dist/Functions/usernameToColor.cjs +39 -1
- package/dist/Functions/usernameToColor.cjs.map +1 -1
- package/dist/Functions/usernameToColor.mjs +32 -11
- package/dist/Functions/usernameToColor.mjs.map +1 -1
- package/dist/Mixins/clickOutsideOptions.cjs +40 -1
- package/dist/Mixins/clickOutsideOptions.cjs.map +1 -1
- package/dist/Mixins/clickOutsideOptions.mjs +39 -4
- package/dist/Mixins/clickOutsideOptions.mjs.map +1 -1
- package/dist/Mixins/isFullscreen.cjs +44 -1
- package/dist/Mixins/isFullscreen.cjs.map +1 -1
- package/dist/Mixins/isFullscreen.mjs +42 -11
- package/dist/Mixins/isFullscreen.mjs.map +1 -1
- package/dist/Mixins/isMobile.cjs +87 -1
- package/dist/Mixins/isMobile.cjs.map +1 -1
- package/dist/Mixins/isMobile.mjs +86 -11
- package/dist/Mixins/isMobile.mjs.map +1 -1
- package/dist/Mixins/richEditor.cjs +10 -1
- package/dist/Mixins/richEditor.cjs.map +1 -1
- package/dist/Mixins/richEditor.mjs +2 -2
- package/dist/assets/{index28.css → NcAppNavigationToggle-2cc5b864.css} +16 -2
- package/dist/assets/NcInputConfirmCancel-2ba60a52.css +51 -0
- package/dist/assets/NcMentionBubble-6e887c5f.css +81 -0
- package/dist/assets/{index46.css → NcSettingsSelectGroup-0d38d76b.css} +15 -2
- package/dist/assets/index-01e5adf4.css +79 -0
- package/dist/assets/index-03ec5f40.css +60 -0
- package/dist/assets/{index.css → index-0557f12a.css} +26 -2
- package/dist/assets/index-0ab8e182.css +128 -0
- package/dist/assets/index-0adc989c.css +96 -0
- package/dist/assets/index-1151d229.css +41 -0
- package/dist/assets/index-165fce0e.css +82 -0
- package/dist/assets/index-194e9415.css +163 -0
- package/dist/assets/index-1beccc92.css +140 -0
- package/dist/assets/index-1cf8eeb4.css +97 -0
- package/dist/assets/index-23e64bbb.css +59 -0
- package/dist/assets/{index50.css → index-24f6c355.css} +67 -3
- package/dist/assets/index-294382c8.css +879 -0
- package/dist/assets/index-2a8e4ca1.css +540 -0
- package/dist/assets/index-2d4de2fc.css +38 -0
- package/dist/assets/{index2.css → index-30e099f7.css} +17 -2
- package/dist/assets/{NcInputConfirmCancel.css → index-33da80f0.css} +32 -2
- package/dist/assets/index-34dfc54e.css +88 -0
- package/dist/assets/index-3764a447.css +99 -0
- package/dist/assets/index-376d2dec.css +243 -0
- package/dist/assets/{index17.css → index-441b6552.css} +25 -2
- package/dist/assets/index-4a775ba1.css +204 -0
- package/dist/assets/index-4ebacc78.css +107 -0
- package/dist/assets/index-4ef32afd.css +128 -0
- package/dist/assets/{index47.css → index-5072b6ee.css} +77 -3
- package/dist/assets/index-50b0766d.css +202 -0
- package/dist/assets/index-5eff69c7.css +149 -0
- package/dist/assets/index-5fa0ac5a.css +46 -0
- package/dist/assets/index-61b63a8f.css +57 -0
- package/dist/assets/index-6405cd50.css +76 -0
- package/dist/assets/index-6416f636.css +83 -0
- package/dist/assets/index-6c47e88a.css +46 -0
- package/dist/assets/index-76a58945.css +68 -0
- package/dist/assets/index-76dd9f11.css +5 -0
- package/dist/assets/index-7768d5e5.css +148 -0
- package/dist/assets/index-7813bab3.css +66 -0
- package/dist/assets/index-793eae6b.css +234 -0
- package/dist/assets/index-8aa4712e.css +51 -0
- package/dist/assets/{index27.css → index-8f52a20f.css} +16 -2
- package/dist/assets/index-9354264c.css +80 -0
- package/dist/assets/index-93ad846c.css +259 -0
- package/dist/assets/index-a2b51bce.css +47 -0
- package/dist/assets/index-a2d55f92.css +204 -0
- package/dist/assets/{index13.css → index-a9e4fe04.css} +27 -2
- package/dist/assets/{NcAppNavigationToggle.css → index-b8f13a1f.css} +13 -2
- package/dist/assets/index-b991895f.css +87 -0
- package/dist/assets/{index48.css → index-baf8711a.css} +67 -3
- package/dist/assets/index-becfbea7.css +128 -0
- package/dist/assets/index-c6f0da2e.css +69 -0
- package/dist/assets/index-c7905a53.css +44 -0
- package/dist/assets/index-d211cae8.css +93 -0
- package/dist/assets/{index22.css → index-d646553d.css} +22 -2
- package/dist/assets/index-de0326c7.css +304 -0
- package/dist/assets/index-ed4adf1d.css +115 -0
- package/dist/assets/index-edee3304.css +52 -0
- package/dist/assets/index-fbdeb5ab.css +303 -0
- package/dist/assets/index-fc61f2d8.css +41 -0
- package/dist/assets/index-fec4bb7b.css +132 -0
- package/dist/assets/referencePickerModal-0acecb5e.css +482 -0
- package/dist/chunks/GenColors-38246c38.mjs +46 -0
- package/dist/chunks/{GenColors-8097de04.cjs.map → GenColors-38246c38.mjs.map} +1 -1
- package/dist/chunks/GenColors-eedcc70a.cjs +45 -0
- package/dist/chunks/{GenColors-85cb6194.mjs.map → GenColors-eedcc70a.cjs.map} +1 -1
- package/dist/{assets/index29.css → chunks/GenRandomId-c214d235.cjs} +8 -5
- package/dist/chunks/{GenRandomId-67df40eb.cjs.map → GenRandomId-c214d235.cjs.map} +1 -1
- package/dist/chunks/GenRandomId-cb9ccebe.mjs +25 -0
- package/dist/chunks/{GenRandomId-1e1b509a.mjs.map → GenRandomId-cb9ccebe.mjs.map} +1 -1
- package/dist/chunks/Linkify-39f20c9a.mjs +33 -0
- package/dist/chunks/{Linkify-a0faf443.mjs.map → Linkify-39f20c9a.mjs.map} +1 -1
- package/dist/chunks/Linkify-40cdd635.cjs +32 -0
- package/dist/chunks/{Linkify-a4db36a9.cjs.map → Linkify-40cdd635.cjs.map} +1 -1
- package/dist/chunks/NcAppNavigationToggle-960658a0.cjs +49 -0
- package/dist/chunks/NcAppNavigationToggle-960658a0.cjs.map +1 -0
- package/dist/chunks/NcAppNavigationToggle-d868f651.mjs +55 -0
- package/dist/chunks/NcAppNavigationToggle-d868f651.mjs.map +1 -0
- package/dist/chunks/NcInputConfirmCancel-0c4bee9a.cjs +83 -0
- package/dist/chunks/NcInputConfirmCancel-0c4bee9a.cjs.map +1 -0
- package/dist/chunks/NcInputConfirmCancel-f881168d.mjs +89 -0
- package/dist/chunks/NcInputConfirmCancel-f881168d.mjs.map +1 -0
- package/dist/chunks/NcRichText-1c3d2654.mjs +302 -0
- package/dist/chunks/{NcRichText-13b09624.mjs.map → NcRichText-1c3d2654.mjs.map} +1 -1
- package/dist/chunks/NcRichText-d385dc10.cjs +289 -0
- package/dist/chunks/{NcRichText-1e8854a1.cjs.map → NcRichText-d385dc10.cjs.map} +1 -1
- package/dist/chunks/NcSettingsSelectGroup-0f4a0f94.mjs +192 -0
- package/dist/chunks/NcSettingsSelectGroup-0f4a0f94.mjs.map +1 -0
- package/dist/chunks/NcSettingsSelectGroup-47d9c113.cjs +183 -0
- package/dist/chunks/NcSettingsSelectGroup-47d9c113.cjs.map +1 -0
- package/dist/chunks/ScopeComponent-1c75ec38.cjs +28 -0
- package/dist/chunks/{ScopeComponent-f6122f5a.cjs.map → ScopeComponent-1c75ec38.cjs.map} +1 -1
- package/dist/chunks/ScopeComponent-97a014a1.mjs +29 -0
- package/dist/chunks/{ScopeComponent-dbcd0e07.mjs.map → ScopeComponent-97a014a1.mjs.map} +1 -1
- package/dist/chunks/_plugin-vue2_normalizer-71e2aa87.mjs +32 -0
- package/dist/chunks/_plugin-vue2_normalizer-71e2aa87.mjs.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer-7f9efb60.cjs +31 -0
- package/dist/chunks/_plugin-vue2_normalizer-7f9efb60.cjs.map +1 -0
- package/dist/chunks/actionGlobal-8c1c28c9.mjs +50 -0
- package/dist/chunks/{actionGlobal-cda46023.mjs.map → actionGlobal-8c1c28c9.mjs.map} +1 -1
- package/dist/chunks/actionGlobal-9e29e11b.cjs +49 -0
- package/dist/chunks/{actionGlobal-ec7003e8.cjs.map → actionGlobal-9e29e11b.cjs.map} +1 -1
- package/dist/chunks/actionText-9f5c55bd.mjs +121 -0
- package/dist/chunks/{actionText-6c35d3fc.mjs.map → actionText-9f5c55bd.mjs.map} +1 -1
- package/dist/chunks/actionText-b0bd6eb7.cjs +120 -0
- package/dist/chunks/{actionText-bef01778.cjs.map → actionText-b0bd6eb7.cjs.map} +1 -1
- package/dist/chunks/focusTrap-14985831.cjs +26 -0
- package/dist/chunks/{focusTrap-173aba65.mjs.map → focusTrap-14985831.cjs.map} +1 -1
- package/dist/chunks/focusTrap-5d0f71d4.mjs +27 -0
- package/dist/chunks/{focusTrap-139520e2.cjs.map → focusTrap-5d0f71d4.mjs.map} +1 -1
- package/dist/chunks/index-20a9ace9.mjs +149 -0
- package/dist/chunks/{index-cd3f1f8f.mjs.map → index-20a9ace9.mjs.map} +1 -1
- package/dist/chunks/index-2a5b8ace.cjs +434 -0
- package/dist/chunks/index-2a5b8ace.cjs.map +1 -0
- package/dist/chunks/index-4398f925.cjs +149 -0
- package/dist/chunks/{index-c4cd0463.cjs.map → index-4398f925.cjs.map} +1 -1
- package/dist/chunks/index-5f2a5f57.mjs +155 -0
- package/dist/chunks/{index-9c621303.mjs.map → index-5f2a5f57.mjs.map} +1 -1
- package/dist/chunks/index-6c221fa0.mjs +447 -0
- package/dist/chunks/index-6c221fa0.mjs.map +1 -0
- package/dist/chunks/index-e894376a.cjs +148 -0
- package/dist/chunks/{index-df3f51c6.cjs.map → index-e894376a.cjs.map} +1 -1
- package/dist/chunks/l10n-27a75c40.mjs +31 -0
- package/dist/chunks/l10n-27a75c40.mjs.map +1 -0
- package/dist/chunks/l10n-4326316a.cjs +8 -0
- package/dist/chunks/l10n-4326316a.cjs.map +1 -0
- package/dist/chunks/l10n-903083c4.cjs +29 -0
- package/dist/chunks/l10n-903083c4.cjs.map +1 -0
- package/dist/chunks/l10n-c5f5f001.mjs +10 -0
- package/dist/chunks/l10n-c5f5f001.mjs.map +1 -0
- package/dist/chunks/logger-3612e664.mjs +25 -0
- package/dist/chunks/{logger-01af1a78.cjs.map → logger-3612e664.mjs.map} +1 -1
- package/dist/chunks/logger-4998b668.cjs +24 -0
- package/dist/chunks/{logger-ccc7ee65.mjs.map → logger-4998b668.cjs.map} +1 -1
- package/dist/chunks/referencePickerModal-0fde503d.mjs +877 -0
- package/dist/chunks/referencePickerModal-0fde503d.mjs.map +1 -0
- package/dist/chunks/referencePickerModal-9b4ff88d.cjs +858 -0
- package/dist/chunks/referencePickerModal-9b4ff88d.cjs.map +1 -0
- package/dist/index.cjs +251 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +286 -140
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/Components/NcDatetime.cjs +0 -1
- package/dist/Components/NcDatetime.mjs +0 -44
- package/dist/Components/NcDatetimePicker.cjs +0 -1
- package/dist/Components/NcDatetimePicker.cjs.map +0 -1
- package/dist/Components/NcDatetimePicker.mjs +0 -69
- package/dist/Components/NcDatetimePicker.mjs.map +0 -1
- package/dist/assets/NcMentionBubble.css +0 -21
- package/dist/assets/index10.css +0 -21
- package/dist/assets/index11.css +0 -21
- package/dist/assets/index12.css +0 -21
- package/dist/assets/index14.css +0 -21
- package/dist/assets/index15.css +0 -21
- package/dist/assets/index16.css +0 -21
- package/dist/assets/index18.css +0 -21
- package/dist/assets/index19.css +0 -21
- package/dist/assets/index20.css +0 -21
- package/dist/assets/index21.css +0 -21
- package/dist/assets/index23.css +0 -21
- package/dist/assets/index24.css +0 -1
- package/dist/assets/index25.css +0 -21
- package/dist/assets/index26.css +0 -21
- package/dist/assets/index3.css +0 -21
- package/dist/assets/index30.css +0 -21
- package/dist/assets/index31.css +0 -21
- package/dist/assets/index32.css +0 -21
- package/dist/assets/index33.css +0 -21
- package/dist/assets/index34.css +0 -21
- package/dist/assets/index35.css +0 -21
- package/dist/assets/index36.css +0 -21
- package/dist/assets/index37.css +0 -21
- package/dist/assets/index38.css +0 -21
- package/dist/assets/index39.css +0 -21
- package/dist/assets/index4.css +0 -21
- package/dist/assets/index40.css +0 -21
- package/dist/assets/index41.css +0 -21
- package/dist/assets/index42.css +0 -21
- package/dist/assets/index43.css +0 -42
- package/dist/assets/index44.css +0 -21
- package/dist/assets/index45.css +0 -42
- package/dist/assets/index49.css +0 -42
- package/dist/assets/index5.css +0 -21
- package/dist/assets/index51.css +0 -21
- package/dist/assets/index52.css +0 -21
- package/dist/assets/index53.css +0 -42
- package/dist/assets/index54.css +0 -21
- package/dist/assets/index55.css +0 -21
- package/dist/assets/index56.css +0 -21
- package/dist/assets/index57.css +0 -21
- package/dist/assets/index58.css +0 -42
- package/dist/assets/index6.css +0 -21
- package/dist/assets/index7.css +0 -21
- package/dist/assets/index8.css +0 -21
- package/dist/assets/index9.css +0 -21
- package/dist/assets/referencePickerModal.css +0 -21
- package/dist/chunks/GenColors-8097de04.cjs +0 -1
- package/dist/chunks/GenColors-85cb6194.mjs +0 -25
- package/dist/chunks/GenRandomId-1e1b509a.mjs +0 -4
- package/dist/chunks/GenRandomId-67df40eb.cjs +0 -1
- package/dist/chunks/IsMobileState-151fc57d.cjs +0 -1
- package/dist/chunks/IsMobileState-151fc57d.cjs.map +0 -1
- package/dist/chunks/IsMobileState-e1fe5f58.mjs +0 -15
- package/dist/chunks/IsMobileState-e1fe5f58.mjs.map +0 -1
- package/dist/chunks/Linkify-a0faf443.mjs +0 -5
- package/dist/chunks/Linkify-a4db36a9.cjs +0 -1
- package/dist/chunks/NcAppNavigationToggle-5aa396d7.mjs +0 -23
- package/dist/chunks/NcAppNavigationToggle-5aa396d7.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationToggle-c566f66e.cjs +0 -1
- package/dist/chunks/NcAppNavigationToggle-c566f66e.cjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-77c2b04f.cjs +0 -1
- package/dist/chunks/NcInputConfirmCancel-77c2b04f.cjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-c440e1b1.mjs +0 -43
- package/dist/chunks/NcInputConfirmCancel-c440e1b1.mjs.map +0 -1
- package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_357e6d0e_lang-b35c2f97.cjs.map +0 -1
- package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_357e6d0e_lang-b99cdc21.mjs.map +0 -1
- package/dist/chunks/NcRichText-13b09624.mjs +0 -123
- package/dist/chunks/NcRichText-1e8854a1.cjs +0 -1
- package/dist/chunks/ScopeComponent-dbcd0e07.mjs +0 -8
- package/dist/chunks/ScopeComponent-f6122f5a.cjs +0 -1
- package/dist/chunks/_plugin-vue2_normalizer-5b4c43a4.mjs +0 -24
- package/dist/chunks/_plugin-vue2_normalizer-5b4c43a4.mjs.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer-764a4c12.cjs +0 -1
- package/dist/chunks/_plugin-vue2_normalizer-764a4c12.cjs.map +0 -1
- package/dist/chunks/actionGlobal-cda46023.mjs +0 -15
- package/dist/chunks/actionGlobal-ec7003e8.cjs +0 -1
- package/dist/chunks/actionText-6c35d3fc.mjs +0 -23
- package/dist/chunks/actionText-bef01778.cjs +0 -1
- package/dist/chunks/focusTrap-139520e2.cjs +0 -1
- package/dist/chunks/focusTrap-173aba65.mjs +0 -6
- package/dist/chunks/index-12fa9b26.cjs +0 -1
- package/dist/chunks/index-12fa9b26.cjs.map +0 -1
- package/dist/chunks/index-7aa3fc24.mjs +0 -171
- package/dist/chunks/index-7aa3fc24.mjs.map +0 -1
- package/dist/chunks/index-9c621303.mjs +0 -46
- package/dist/chunks/index-c4cd0463.cjs +0 -3
- package/dist/chunks/index-cd3f1f8f.mjs +0 -43
- package/dist/chunks/index-df3f51c6.cjs +0 -1
- package/dist/chunks/l10n-05baf7da.mjs +0 -5
- package/dist/chunks/l10n-05baf7da.mjs.map +0 -1
- package/dist/chunks/l10n-46d0c1c0.cjs +0 -1
- package/dist/chunks/l10n-46d0c1c0.cjs.map +0 -1
- package/dist/chunks/l10n-9a5a6afc.mjs +0 -18
- package/dist/chunks/l10n-9a5a6afc.mjs.map +0 -1
- package/dist/chunks/l10n-dacb6440.cjs +0 -1
- package/dist/chunks/l10n-dacb6440.cjs.map +0 -1
- package/dist/chunks/logger-01af1a78.cjs +0 -1
- package/dist/chunks/logger-ccc7ee65.mjs +0 -5
- package/dist/chunks/referencePickerModal-2b16b319.mjs +0 -428
- package/dist/chunks/referencePickerModal-2b16b319.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-44160fb3.cjs +0 -1
- package/dist/chunks/referencePickerModal-44160fb3.cjs.map +0 -1
|
@@ -0,0 +1,858 @@
|
|
|
1
|
+
var Ue = require("../assets/referencePickerModal-0acecb5e.css");
|
|
2
|
+
const l = require("./_plugin-vue2_normalizer-7f9efb60.cjs"), n = require("./l10n-903083c4.cjs"), j = require("@nextcloud/axios"), b = require("@nextcloud/initial-state"), p = require("@nextcloud/router"), m = require("../Components/NcEmptyContent.cjs"), S = require("./index-e894376a.cjs"), R = require("../Components/NcSelect.cjs"), A = require("vue-material-design-icons/LinkVariant.vue"), H = require("../Components/NcLoadingIcon.cjs"), U = require("../Components/NcTextField.cjs"), F = require("vue-material-design-icons/DotsHorizontal.vue"), Q = require("../Components/NcButton.cjs"), G = require("../Components/NcModal.cjs"), J = require("@nextcloud/event-bus"), K = require("vue-material-design-icons/ArrowLeft.vue"), X = require("vue-material-design-icons/Close.vue"), Y = require("vue"), d = (t) => t && t.__esModule ? t : { default: t }, f = /* @__PURE__ */ d(j), v = /* @__PURE__ */ d(A), Z = /* @__PURE__ */ d(F), ee = /* @__PURE__ */ d(K), te = /* @__PURE__ */ d(X), re = /* @__PURE__ */ d(Y);
|
|
3
|
+
window._vue_richtext_widgets || (window._vue_richtext_widgets = {});
|
|
4
|
+
const N = (t) => !!window._vue_richtext_widgets[t], x = (t, e, r = (s) => {
|
|
5
|
+
}) => {
|
|
6
|
+
if (window._vue_richtext_widgets[t]) {
|
|
7
|
+
console.error("Widget for id " + t + " already registered");
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
window._vue_richtext_widgets[t] = {
|
|
11
|
+
id: t,
|
|
12
|
+
callback: e,
|
|
13
|
+
onDestroy: r
|
|
14
|
+
};
|
|
15
|
+
}, L = (t, { richObjectType: e, richObject: r, accessible: s }) => {
|
|
16
|
+
if (e !== "open-graph") {
|
|
17
|
+
if (!window._vue_richtext_widgets[e]) {
|
|
18
|
+
console.error("Widget for rich object type " + e + " not registered");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
window._vue_richtext_widgets[e].callback(t, { richObjectType: e, richObject: r, accessible: s });
|
|
22
|
+
}
|
|
23
|
+
}, se = (t, e) => {
|
|
24
|
+
t !== "open-graph" && window._vue_richtext_widgets[t] && window._vue_richtext_widgets[t].onDestroy(e);
|
|
25
|
+
};
|
|
26
|
+
window._registerWidget = x;
|
|
27
|
+
const ie = {
|
|
28
|
+
name: "NcReferenceWidget",
|
|
29
|
+
props: {
|
|
30
|
+
reference: {
|
|
31
|
+
type: Object,
|
|
32
|
+
required: !0
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
compact: 3
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
hasCustomWidget() {
|
|
42
|
+
return N(this.reference.richObjectType);
|
|
43
|
+
},
|
|
44
|
+
noAccess() {
|
|
45
|
+
return this.reference && !this.reference.accessible;
|
|
46
|
+
},
|
|
47
|
+
descriptionStyle() {
|
|
48
|
+
if (this.compact === 0)
|
|
49
|
+
return {
|
|
50
|
+
display: "none"
|
|
51
|
+
};
|
|
52
|
+
const t = this.compact < 4 ? this.compact : 3;
|
|
53
|
+
return {
|
|
54
|
+
lineClamp: t,
|
|
55
|
+
webkitLineClamp: t
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
compactLink() {
|
|
59
|
+
const t = this.reference.openGraphObject.link;
|
|
60
|
+
return t ? t.startsWith("https://") ? t.substring(8) : t.startsWith("http://") ? t.substring(7) : t : "";
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
mounted() {
|
|
64
|
+
this.renderWidget(), this.observer = new ResizeObserver((t) => {
|
|
65
|
+
t[0].contentRect.width < 450 ? this.compact = 0 : t[0].contentRect.width < 550 ? this.compact = 1 : t[0].contentRect.width < 650 ? this.compact = 2 : this.compact = 3;
|
|
66
|
+
}), this.observer.observe(this.$el);
|
|
67
|
+
},
|
|
68
|
+
beforeDestroy() {
|
|
69
|
+
this.observer.disconnect(), se(this.reference.richObjectType, this.$el);
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
renderWidget() {
|
|
73
|
+
var t;
|
|
74
|
+
this.$refs.customWidget && (this.$refs.customWidget.innerHTML = ""), ((t = this == null ? void 0 : this.reference) == null ? void 0 : t.richObjectType) !== "open-graph" && this.$nextTick(() => {
|
|
75
|
+
L(this.$refs.customWidget, this.reference);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var ne = function() {
|
|
81
|
+
var e = this, r = e._self._c;
|
|
82
|
+
return r("div", [e.reference && e.hasCustomWidget ? r("div", { staticClass: "widget-custom" }, [r("div", { ref: "customWidget" })]) : !e.noAccess && e.reference && e.reference.openGraphObject && !e.hasCustomWidget ? r("a", { staticClass: "widget-default", attrs: { href: e.reference.openGraphObject.link, rel: "noopener noreferrer", target: "_blank" } }, [e.reference.openGraphObject.thumb ? r("img", { staticClass: "widget-default--image", attrs: { src: e.reference.openGraphObject.thumb } }) : e._e(), r("div", { staticClass: "widget-default--details" }, [r("p", { staticClass: "widget-default--name" }, [e._v(e._s(e.reference.openGraphObject.name))]), r("p", { staticClass: "widget-default--description", style: e.descriptionStyle }, [e._v(e._s(e.reference.openGraphObject.description))]), r("p", { staticClass: "widget-default--link" }, [e._v(e._s(e.compactLink))])])]) : e._e()]);
|
|
83
|
+
}, oe = [], ce = /* @__PURE__ */ l.normalizeComponent(
|
|
84
|
+
ie,
|
|
85
|
+
ne,
|
|
86
|
+
oe,
|
|
87
|
+
!1,
|
|
88
|
+
null,
|
|
89
|
+
"b1c5a80f",
|
|
90
|
+
null,
|
|
91
|
+
null
|
|
92
|
+
);
|
|
93
|
+
const $ = ce.exports;
|
|
94
|
+
window._vue_richtext_custom_picker_elements || (window._vue_richtext_custom_picker_elements = {});
|
|
95
|
+
class le {
|
|
96
|
+
/**
|
|
97
|
+
* @param {HTMLElement} element The HTML element
|
|
98
|
+
* @param {object} object The object
|
|
99
|
+
*/
|
|
100
|
+
constructor(e, r) {
|
|
101
|
+
this.element = e, this.object = r;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const u = (t) => !!window._vue_richtext_custom_picker_elements[t], ae = (t) => {
|
|
105
|
+
var r;
|
|
106
|
+
const e = (r = window._vue_richtext_custom_picker_elements[t]) == null ? void 0 : r.size;
|
|
107
|
+
return ["small", "normal", "large", "full"].includes(e) ? e : null;
|
|
108
|
+
}, E = (t, e, r = (i) => {
|
|
109
|
+
}, s = "large") => {
|
|
110
|
+
if (window._vue_richtext_custom_picker_elements[t]) {
|
|
111
|
+
console.error("Custom reference picker element for id " + t + " already registered");
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
window._vue_richtext_custom_picker_elements[t] = {
|
|
115
|
+
id: t,
|
|
116
|
+
callback: e,
|
|
117
|
+
onDestroy: r,
|
|
118
|
+
size: s
|
|
119
|
+
};
|
|
120
|
+
}, I = (t, { providerId: e, accessible: r }) => {
|
|
121
|
+
if (!window._vue_richtext_custom_picker_elements[e]) {
|
|
122
|
+
console.error("Custom reference picker element for reference provider ID " + e + " not registered");
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
return window._vue_richtext_custom_picker_elements[e].callback(t, { providerId: e, accessible: r });
|
|
126
|
+
}, ue = (t, e, r) => {
|
|
127
|
+
window._vue_richtext_custom_picker_elements[t] && window._vue_richtext_custom_picker_elements[t].onDestroy(e, r);
|
|
128
|
+
};
|
|
129
|
+
window._registerCustomPickerElement = E;
|
|
130
|
+
const de = {
|
|
131
|
+
name: "NcCustomPickerElement",
|
|
132
|
+
props: {
|
|
133
|
+
/**
|
|
134
|
+
* The reference provider
|
|
135
|
+
*/
|
|
136
|
+
provider: {
|
|
137
|
+
type: Object,
|
|
138
|
+
required: !0
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
emits: [
|
|
142
|
+
"cancel",
|
|
143
|
+
"submit"
|
|
144
|
+
],
|
|
145
|
+
data() {
|
|
146
|
+
return {
|
|
147
|
+
isRegistered: u(this.provider.id),
|
|
148
|
+
renderResult: null
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
mounted() {
|
|
152
|
+
this.isRegistered && this.renderElement();
|
|
153
|
+
},
|
|
154
|
+
beforeDestroy() {
|
|
155
|
+
this.isRegistered && ue(this.provider.id, this.$el, this.renderResult);
|
|
156
|
+
},
|
|
157
|
+
methods: {
|
|
158
|
+
renderElement() {
|
|
159
|
+
this.$refs.domElement && (this.$refs.domElement.innerHTML = "");
|
|
160
|
+
const t = I(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
|
|
161
|
+
Promise.resolve(t).then((e) => {
|
|
162
|
+
var r, s;
|
|
163
|
+
this.renderResult = e, (r = this.renderResult.object) != null && r._isVue && ((s = this.renderResult.object) != null && s.$on) && (this.renderResult.object.$on("submit", this.onSubmit), this.renderResult.object.$on("cancel", this.onCancel)), this.renderResult.element.addEventListener("submit", (i) => {
|
|
164
|
+
this.onSubmit(i.detail);
|
|
165
|
+
}), this.renderResult.element.addEventListener("cancel", this.onCancel);
|
|
166
|
+
});
|
|
167
|
+
},
|
|
168
|
+
onSubmit(t) {
|
|
169
|
+
this.$emit("submit", t);
|
|
170
|
+
},
|
|
171
|
+
onCancel() {
|
|
172
|
+
this.$emit("cancel");
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
var he = function() {
|
|
177
|
+
var e = this, r = e._self._c;
|
|
178
|
+
return r("div", { ref: "domElement" });
|
|
179
|
+
}, _e = [], pe = /* @__PURE__ */ l.normalizeComponent(
|
|
180
|
+
de,
|
|
181
|
+
he,
|
|
182
|
+
_e,
|
|
183
|
+
!1,
|
|
184
|
+
null,
|
|
185
|
+
"cf695ff9",
|
|
186
|
+
null,
|
|
187
|
+
null
|
|
188
|
+
);
|
|
189
|
+
const me = pe.exports, g = "any-link", q = {
|
|
190
|
+
id: g,
|
|
191
|
+
title: n.t("Any link"),
|
|
192
|
+
icon_url: p.imagePath("core", "filetypes/link.svg")
|
|
193
|
+
};
|
|
194
|
+
window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = b.loadState("core", "reference-provider-list", []));
|
|
195
|
+
window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = b.loadState("core", "reference-provider-timestamps", {}));
|
|
196
|
+
function O(t) {
|
|
197
|
+
return t === g ? q : y().find((e) => e.id === t);
|
|
198
|
+
}
|
|
199
|
+
function y() {
|
|
200
|
+
return window._vue_richtext_reference_providers.filter((t) => {
|
|
201
|
+
const e = !!t.search_providers_ids && t.search_providers_ids.length > 0 || u(t.id);
|
|
202
|
+
return e || console.debug("[smart picker]", t.id, "reference provider is discoverable but does not have any related search provider or custom picker component registered"), e;
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
function B(t) {
|
|
206
|
+
const e = window._vue_richtext_reference_provider_timestamps;
|
|
207
|
+
return t.sort((r, s) => r.order === s.order ? 0 : r.order > s.order ? 1 : -1).sort((r, s) => {
|
|
208
|
+
const i = e[r.id], o = e[s.id];
|
|
209
|
+
return i === o ? 0 : o === void 0 ? -1 : i === void 0 ? 1 : i > o ? -1 : 1;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function W(t, e = null) {
|
|
213
|
+
const r = y(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), c = B(r).filter((a) => a.title.match(i)), h = e ? c.slice(0, e) : c;
|
|
214
|
+
return (t === "" || h.length === 0) && h.push(q), h;
|
|
215
|
+
}
|
|
216
|
+
function fe(t) {
|
|
217
|
+
const e = Math.floor(Date.now() / 1e3), r = {
|
|
218
|
+
timestamp: e
|
|
219
|
+
}, s = p.generateOcsUrl("references/provider/{providerId}", { providerId: t });
|
|
220
|
+
f.default.put(s, r).then((i) => {
|
|
221
|
+
window._vue_richtext_reference_provider_timestamps[t] = e;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
let C = 0;
|
|
225
|
+
function M(t, e) {
|
|
226
|
+
return function() {
|
|
227
|
+
const r = this, s = arguments;
|
|
228
|
+
clearTimeout(C), C = setTimeout(function() {
|
|
229
|
+
t.apply(r, s);
|
|
230
|
+
}, e || 0);
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function k(t) {
|
|
234
|
+
try {
|
|
235
|
+
return !!new URL(t);
|
|
236
|
+
} catch {
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
const ve = {
|
|
241
|
+
name: "NcProviderList",
|
|
242
|
+
components: {
|
|
243
|
+
NcSelect: R,
|
|
244
|
+
NcHighlight: S.NcHighlight,
|
|
245
|
+
NcEmptyContent: m,
|
|
246
|
+
LinkVariantIcon: v.default
|
|
247
|
+
},
|
|
248
|
+
emits: [
|
|
249
|
+
"select-provider",
|
|
250
|
+
"submit"
|
|
251
|
+
],
|
|
252
|
+
data() {
|
|
253
|
+
return {
|
|
254
|
+
selectedProvider: null,
|
|
255
|
+
query: "",
|
|
256
|
+
multiselectPlaceholder: n.t("Select provider"),
|
|
257
|
+
providerIconAlt: n.t("Provider icon")
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
computed: {
|
|
261
|
+
options() {
|
|
262
|
+
const t = [];
|
|
263
|
+
return this.query !== "" && k(this.query) && t.push({
|
|
264
|
+
id: this.query,
|
|
265
|
+
title: this.query,
|
|
266
|
+
isLink: !0
|
|
267
|
+
}), t.push(...W(this.query)), t;
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
methods: {
|
|
271
|
+
focus() {
|
|
272
|
+
setTimeout(() => {
|
|
273
|
+
var t, e, r;
|
|
274
|
+
(r = (e = (t = this.$refs["provider-select"]) == null ? void 0 : t.$el) == null ? void 0 : e.querySelector("#provider-select-input")) == null || r.focus();
|
|
275
|
+
}, 300);
|
|
276
|
+
},
|
|
277
|
+
onProviderSelected(t) {
|
|
278
|
+
t !== null && (t.isLink ? this.$emit("submit", t.title) : this.$emit("select-provider", t), this.selectedProvider = null);
|
|
279
|
+
},
|
|
280
|
+
onSearch(t, e) {
|
|
281
|
+
this.query = t;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
var ge = function() {
|
|
286
|
+
var e = this, r = e._self._c;
|
|
287
|
+
return r("div", { staticClass: "provider-list" }, [r("NcSelect", { ref: "provider-select", staticClass: "provider-list--select", attrs: { "input-id": "provider-select-input", label: "title", placeholder: e.multiselectPlaceholder, options: e.options, "append-to-body": !1, "clear-search-on-select": !0, "clear-search-on-blur": () => !1, filterable: !1 }, on: { search: e.onSearch, input: e.onProviderSelected }, scopedSlots: e._u([{ key: "option", fn: function(s) {
|
|
288
|
+
return [s.isLink ? r("div", { staticClass: "provider" }, [r("LinkVariantIcon", { staticClass: "link-icon", attrs: { size: 20 } }), r("span", [e._v(e._s(s.title))])], 1) : r("div", { staticClass: "provider" }, [r("img", { staticClass: "provider-icon", attrs: { src: s.icon_url, alt: e.providerIconAlt } }), r("NcHighlight", { staticClass: "option-text", attrs: { search: e.query, text: s.title } })], 1)];
|
|
289
|
+
} }]), model: { value: e.selectedProvider, callback: function(s) {
|
|
290
|
+
e.selectedProvider = s;
|
|
291
|
+
}, expression: "selectedProvider" } }), r("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
292
|
+
return [r("LinkVariantIcon")];
|
|
293
|
+
}, proxy: !0 }]) })], 1);
|
|
294
|
+
}, ye = [], ke = /* @__PURE__ */ l.normalizeComponent(
|
|
295
|
+
ve,
|
|
296
|
+
ge,
|
|
297
|
+
ye,
|
|
298
|
+
!1,
|
|
299
|
+
null,
|
|
300
|
+
"9d850ea5",
|
|
301
|
+
null,
|
|
302
|
+
null
|
|
303
|
+
);
|
|
304
|
+
const Pe = ke.exports;
|
|
305
|
+
const Ce = {
|
|
306
|
+
name: "NcRawLinkInput",
|
|
307
|
+
components: {
|
|
308
|
+
LinkVariantIcon: v.default,
|
|
309
|
+
NcEmptyContent: m,
|
|
310
|
+
NcLoadingIcon: H,
|
|
311
|
+
NcReferenceWidget: $,
|
|
312
|
+
NcTextField: U
|
|
313
|
+
},
|
|
314
|
+
props: {
|
|
315
|
+
/**
|
|
316
|
+
* The reference provider
|
|
317
|
+
*/
|
|
318
|
+
provider: {
|
|
319
|
+
type: Object,
|
|
320
|
+
required: !0
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
emits: [
|
|
324
|
+
"submit"
|
|
325
|
+
],
|
|
326
|
+
data() {
|
|
327
|
+
return {
|
|
328
|
+
inputValue: "",
|
|
329
|
+
loading: !1,
|
|
330
|
+
reference: null,
|
|
331
|
+
abortController: null,
|
|
332
|
+
inputPlaceholder: n.t("Enter link")
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
computed: {
|
|
336
|
+
isLinkValid() {
|
|
337
|
+
return k(this.inputValue);
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
methods: {
|
|
341
|
+
focus() {
|
|
342
|
+
var t;
|
|
343
|
+
(t = this.$refs["url-input"].$el.getElementsByTagName("input")[0]) == null || t.focus();
|
|
344
|
+
},
|
|
345
|
+
onSubmit(t) {
|
|
346
|
+
const e = t.target.value;
|
|
347
|
+
this.isLinkValid && this.$emit("submit", e);
|
|
348
|
+
},
|
|
349
|
+
onClear() {
|
|
350
|
+
this.inputValue = "", this.reference = null;
|
|
351
|
+
},
|
|
352
|
+
onInput() {
|
|
353
|
+
this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid && M(() => {
|
|
354
|
+
this.updateReference();
|
|
355
|
+
}, 500)();
|
|
356
|
+
},
|
|
357
|
+
updateReference() {
|
|
358
|
+
this.loading = !0, this.abortController = new AbortController(), f.default.get(p.generateOcsUrl("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
|
|
359
|
+
signal: this.abortController.signal
|
|
360
|
+
}).then((t) => {
|
|
361
|
+
this.reference = t.data.ocs.data.references[this.inputValue];
|
|
362
|
+
}).catch((t) => {
|
|
363
|
+
console.error(t);
|
|
364
|
+
}).then(() => {
|
|
365
|
+
this.loading = !1;
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
var we = function() {
|
|
371
|
+
var e = this, r = e._self._c;
|
|
372
|
+
return r("div", { staticClass: "raw-link" }, [r("div", { staticClass: "input-wrapper" }, [r("NcTextField", { ref: "url-input", attrs: { value: e.inputValue, "show-trailing-button": e.inputValue !== "", label: e.inputPlaceholder }, on: { "update:value": [function(s) {
|
|
373
|
+
e.inputValue = s;
|
|
374
|
+
}, e.onInput], "trailing-button-click": e.onClear }, nativeOn: { keyup: function(s) {
|
|
375
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.onSubmit.apply(null, arguments);
|
|
376
|
+
} } }, [e.loading ? r("NcLoadingIcon", { attrs: { size: 16 } }) : r("LinkVariantIcon", { attrs: { size: 16 } })], 1)], 1), e.reference !== null ? r("NcReferenceWidget", { staticClass: "reference-widget", attrs: { reference: e.reference } }) : r("NcEmptyContent", { staticClass: "raw-link--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
377
|
+
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
378
|
+
}, proxy: !0 }]) })], 1);
|
|
379
|
+
}, be = [], Se = /* @__PURE__ */ l.normalizeComponent(
|
|
380
|
+
Ce,
|
|
381
|
+
we,
|
|
382
|
+
be,
|
|
383
|
+
!1,
|
|
384
|
+
null,
|
|
385
|
+
"d0ba247a",
|
|
386
|
+
null,
|
|
387
|
+
null
|
|
388
|
+
);
|
|
389
|
+
const Re = Se.exports;
|
|
390
|
+
const Ne = {
|
|
391
|
+
name: "NcSearchResult",
|
|
392
|
+
components: {
|
|
393
|
+
NcHighlight: S.NcHighlight
|
|
394
|
+
},
|
|
395
|
+
props: {
|
|
396
|
+
/**
|
|
397
|
+
* Unified search result entry
|
|
398
|
+
*/
|
|
399
|
+
entry: {
|
|
400
|
+
type: Object,
|
|
401
|
+
required: !0
|
|
402
|
+
},
|
|
403
|
+
/**
|
|
404
|
+
* The query that led to getting this result
|
|
405
|
+
* Used to highlight the entry text
|
|
406
|
+
*/
|
|
407
|
+
query: {
|
|
408
|
+
type: String,
|
|
409
|
+
required: !0
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
var xe = function() {
|
|
414
|
+
var e = this, r = e._self._c;
|
|
415
|
+
return r("div", { staticClass: "result" }, [e.entry.icon ? r("div", { staticClass: "result--icon-class", class: { [e.entry.icon]: !0, rounded: e.entry.rounded } }) : r("img", { staticClass: "result--image", class: { rounded: e.entry.rounded }, attrs: { src: e.entry.thumbnailUrl } }), r("div", { staticClass: "result--content" }, [r("span", { staticClass: "result--content--name" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.title } })], 1), r("span", { staticClass: "result--content--subline" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.subline } })], 1)])]);
|
|
416
|
+
}, Le = [], $e = /* @__PURE__ */ l.normalizeComponent(
|
|
417
|
+
Ne,
|
|
418
|
+
xe,
|
|
419
|
+
Le,
|
|
420
|
+
!1,
|
|
421
|
+
null,
|
|
422
|
+
"7a394a58",
|
|
423
|
+
null,
|
|
424
|
+
null
|
|
425
|
+
);
|
|
426
|
+
const Ee = $e.exports;
|
|
427
|
+
const w = 5, Ie = {
|
|
428
|
+
name: "NcSearch",
|
|
429
|
+
components: {
|
|
430
|
+
LinkVariantIcon: v.default,
|
|
431
|
+
DotsHorizontalIcon: Z.default,
|
|
432
|
+
NcEmptyContent: m,
|
|
433
|
+
NcSelect: R,
|
|
434
|
+
NcSearchResult: Ee
|
|
435
|
+
},
|
|
436
|
+
props: {
|
|
437
|
+
/**
|
|
438
|
+
* The selected reference provider
|
|
439
|
+
*/
|
|
440
|
+
provider: {
|
|
441
|
+
type: Object,
|
|
442
|
+
required: !0
|
|
443
|
+
},
|
|
444
|
+
showEmptyContent: {
|
|
445
|
+
type: Boolean,
|
|
446
|
+
default: !0
|
|
447
|
+
},
|
|
448
|
+
searchPlaceholder: {
|
|
449
|
+
type: String,
|
|
450
|
+
default: null
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
emits: [
|
|
454
|
+
"submit"
|
|
455
|
+
],
|
|
456
|
+
data() {
|
|
457
|
+
return {
|
|
458
|
+
searchQuery: "",
|
|
459
|
+
selectedResult: null,
|
|
460
|
+
resultsBySearchProvider: {},
|
|
461
|
+
searching: !1,
|
|
462
|
+
searchingMoreOf: null,
|
|
463
|
+
abortController: null,
|
|
464
|
+
noOptionsText: n.t("Start typing to search"),
|
|
465
|
+
providerIconAlt: n.t("Provider icon")
|
|
466
|
+
};
|
|
467
|
+
},
|
|
468
|
+
computed: {
|
|
469
|
+
mySearchPlaceholder() {
|
|
470
|
+
return this.searchPlaceholder || n.t("Search");
|
|
471
|
+
},
|
|
472
|
+
searchProviderIds() {
|
|
473
|
+
return this.provider.search_providers_ids;
|
|
474
|
+
},
|
|
475
|
+
options() {
|
|
476
|
+
if (this.searchQuery === "")
|
|
477
|
+
return [];
|
|
478
|
+
const t = [];
|
|
479
|
+
return k(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
|
|
480
|
+
},
|
|
481
|
+
rawLinkEntry() {
|
|
482
|
+
return {
|
|
483
|
+
id: "rawLinkEntry",
|
|
484
|
+
resourceUrl: this.searchQuery,
|
|
485
|
+
isRawLink: !0
|
|
486
|
+
};
|
|
487
|
+
},
|
|
488
|
+
formattedSearchResults() {
|
|
489
|
+
const t = [];
|
|
490
|
+
return this.searchProviderIds.forEach((e) => {
|
|
491
|
+
if (this.resultsBySearchProvider[e].entries.length > 0) {
|
|
492
|
+
(this.searchProviderIds.length > 1 || this.resultsBySearchProvider[e].entries.length > 1) && t.push({
|
|
493
|
+
id: "groupTitle-" + e,
|
|
494
|
+
name: this.resultsBySearchProvider[e].name,
|
|
495
|
+
isCustomGroupTitle: !0,
|
|
496
|
+
providerId: e
|
|
497
|
+
});
|
|
498
|
+
const r = this.resultsBySearchProvider[e].entries.map((s, i) => ({
|
|
499
|
+
id: "provider-" + e + "-entry-" + i,
|
|
500
|
+
...s
|
|
501
|
+
}));
|
|
502
|
+
t.push(...r), this.resultsBySearchProvider[e].isPaginated && t.push({
|
|
503
|
+
id: "moreOf-" + e,
|
|
504
|
+
name: this.resultsBySearchProvider[e].name,
|
|
505
|
+
isMore: !0,
|
|
506
|
+
providerId: e,
|
|
507
|
+
isLoading: this.searchingMoreOf === e
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}), t;
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
mounted() {
|
|
514
|
+
this.resetResults();
|
|
515
|
+
},
|
|
516
|
+
beforeDestroy() {
|
|
517
|
+
this.cancelSearchRequests();
|
|
518
|
+
},
|
|
519
|
+
methods: {
|
|
520
|
+
t: n.t,
|
|
521
|
+
resetResults() {
|
|
522
|
+
const t = {};
|
|
523
|
+
this.searchProviderIds.forEach((e) => {
|
|
524
|
+
t[e] = {
|
|
525
|
+
entries: []
|
|
526
|
+
};
|
|
527
|
+
}), this.resultsBySearchProvider = t;
|
|
528
|
+
},
|
|
529
|
+
focus() {
|
|
530
|
+
setTimeout(() => {
|
|
531
|
+
var t, e, r;
|
|
532
|
+
(r = (e = (t = this.$refs["search-select"]) == null ? void 0 : t.$el) == null ? void 0 : e.querySelector("#search-select-input")) == null || r.focus();
|
|
533
|
+
}, 300);
|
|
534
|
+
},
|
|
535
|
+
cancelSearchRequests() {
|
|
536
|
+
this.abortController && this.abortController.abort();
|
|
537
|
+
},
|
|
538
|
+
onSearchInput(t, e) {
|
|
539
|
+
this.searchQuery = t, M(() => {
|
|
540
|
+
this.updateSearch();
|
|
541
|
+
}, 500)();
|
|
542
|
+
},
|
|
543
|
+
onSelectResultSelected(t) {
|
|
544
|
+
t !== null && (t.resourceUrl ? (this.cancelSearchRequests(), this.$emit("submit", t.resourceUrl)) : t.isMore && this.searchMoreOf(t.providerId).then(() => {
|
|
545
|
+
this.selectedResult = null;
|
|
546
|
+
}));
|
|
547
|
+
},
|
|
548
|
+
searchMoreOf(t) {
|
|
549
|
+
return this.searchingMoreOf = t, this.cancelSearchRequests(), this.searchProviders(t);
|
|
550
|
+
},
|
|
551
|
+
updateSearch() {
|
|
552
|
+
if (this.cancelSearchRequests(), this.resetResults(), this.searchQuery === "") {
|
|
553
|
+
this.searching = !1;
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
return this.searchProviders();
|
|
557
|
+
},
|
|
558
|
+
searchProviders(t = null) {
|
|
559
|
+
var r, s;
|
|
560
|
+
this.abortController = new AbortController(), this.searching = !0;
|
|
561
|
+
const e = t === null ? [...this.searchProviderIds].map((i) => this.searchOneProvider(i)) : [this.searchOneProvider(t, (s = (r = this.resultsBySearchProvider[t]) == null ? void 0 : r.cursor) != null ? s : null)];
|
|
562
|
+
return Promise.allSettled(e).then((i) => {
|
|
563
|
+
!!i.find((c) => c.status === "rejected" && (c.reason.name === "CanceledError" || c.reason.code === "ERR_CANCELED")) || (this.searching = !1, this.searchingMoreOf = null);
|
|
564
|
+
});
|
|
565
|
+
},
|
|
566
|
+
searchOneProvider(t, e = null) {
|
|
567
|
+
const r = e === null ? p.generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: w }) : p.generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: w, cursor: e });
|
|
568
|
+
return f.default.get(r, {
|
|
569
|
+
signal: this.abortController.signal
|
|
570
|
+
}).then((s) => {
|
|
571
|
+
const i = s.data.ocs.data;
|
|
572
|
+
this.resultsBySearchProvider[t].name = i.name, this.resultsBySearchProvider[t].cursor = i.cursor, this.resultsBySearchProvider[t].isPaginated = i.isPaginated, this.resultsBySearchProvider[t].entries.push(...i.entries);
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
var qe = function() {
|
|
578
|
+
var e = this, r = e._self._c;
|
|
579
|
+
return r("div", { staticClass: "smart-picker-search", class: { "with-empty-content": e.showEmptyContent } }, [r("NcSelect", { ref: "search-select", staticClass: "smart-picker-search--select", attrs: { "input-id": "search-select-input", label: "name", placeholder: e.mySearchPlaceholder, options: e.options, "append-to-body": !1, "close-on-select": !1, "clear-search-on-select": !1, "clear-search-on-blur": () => !1, "reset-focus-on-options-change": !1, filterable: !1, autoscroll: !0, "reset-on-options-change": !1, loading: e.searching }, on: { search: e.onSearchInput, input: e.onSelectResultSelected }, scopedSlots: e._u([{ key: "option", fn: function(s) {
|
|
580
|
+
return [s.isRawLink ? r("div", { staticClass: "custom-option" }, [r("LinkVariantIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t("Raw link {options}", { options: s.resourceUrl })) + " ")])], 1) : s.resourceUrl ? r("NcSearchResult", { staticClass: "search-result", attrs: { entry: s, query: e.searchQuery } }) : s.isCustomGroupTitle ? r("span", { staticClass: "custom-option group-name" }, [e.provider.icon_url ? r("img", { staticClass: "provider-icon group-name-icon", attrs: { src: e.provider.icon_url } }) : e._e(), r("span", { staticClass: "option-text" }, [r("strong", [e._v(e._s(s.name))])])]) : s.isMore ? r("span", { class: { "custom-option": !0 } }, [s.isLoading ? r("span", { staticClass: "option-simple-icon icon-loading-small" }) : r("DotsHorizontalIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t('Load more "{options}"', { options: s.name })) + " ")])], 1) : e._e()];
|
|
581
|
+
} }, { key: "no-options", fn: function() {
|
|
582
|
+
return [e._v(" " + e._s(e.noOptionsText) + " ")];
|
|
583
|
+
}, proxy: !0 }]), model: { value: e.selectedResult, callback: function(s) {
|
|
584
|
+
e.selectedResult = s;
|
|
585
|
+
}, expression: "selectedResult" } }), e.showEmptyContent ? r("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
586
|
+
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { alt: e.providerIconAlt, src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
587
|
+
}, proxy: !0 }], null, !1, 2922132592) }) : e._e()], 1);
|
|
588
|
+
}, Oe = [], Be = /* @__PURE__ */ l.normalizeComponent(
|
|
589
|
+
Ie,
|
|
590
|
+
qe,
|
|
591
|
+
Oe,
|
|
592
|
+
!1,
|
|
593
|
+
null,
|
|
594
|
+
"97d196f0",
|
|
595
|
+
null,
|
|
596
|
+
null
|
|
597
|
+
);
|
|
598
|
+
const V = Be.exports;
|
|
599
|
+
const _ = {
|
|
600
|
+
providerList: 1,
|
|
601
|
+
standardLinkInput: 2,
|
|
602
|
+
searchInput: 3,
|
|
603
|
+
customElement: 4
|
|
604
|
+
}, We = {
|
|
605
|
+
name: "NcReferencePicker",
|
|
606
|
+
components: {
|
|
607
|
+
NcCustomPickerElement: me,
|
|
608
|
+
NcProviderList: Pe,
|
|
609
|
+
NcRawLinkInput: Re,
|
|
610
|
+
NcSearch: V
|
|
611
|
+
},
|
|
612
|
+
props: {
|
|
613
|
+
/**
|
|
614
|
+
* Provider to select on creation
|
|
615
|
+
* Default: null. Show the provider list
|
|
616
|
+
*/
|
|
617
|
+
initialProvider: {
|
|
618
|
+
type: Object,
|
|
619
|
+
default: () => null
|
|
620
|
+
},
|
|
621
|
+
/**
|
|
622
|
+
* Optional width in pixels
|
|
623
|
+
* Default: 100%
|
|
624
|
+
*/
|
|
625
|
+
width: {
|
|
626
|
+
type: Number,
|
|
627
|
+
default: null
|
|
628
|
+
},
|
|
629
|
+
/**
|
|
630
|
+
* Focus on the provider list select input on creation
|
|
631
|
+
* Default: true
|
|
632
|
+
*/
|
|
633
|
+
focusOnCreate: {
|
|
634
|
+
type: Boolean,
|
|
635
|
+
default: !0
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
emits: [
|
|
639
|
+
"cancel",
|
|
640
|
+
"cancel-raw-link",
|
|
641
|
+
"cancel-search",
|
|
642
|
+
"provider-selected",
|
|
643
|
+
"submit"
|
|
644
|
+
],
|
|
645
|
+
data() {
|
|
646
|
+
return {
|
|
647
|
+
MODES: _,
|
|
648
|
+
selectedProvider: this.initialProvider
|
|
649
|
+
};
|
|
650
|
+
},
|
|
651
|
+
computed: {
|
|
652
|
+
mode() {
|
|
653
|
+
return this.selectedProvider === null ? _.providerList : u(this.selectedProvider.id) ? _.customElement : this.selectedProvider.search_providers_ids ? _.searchInput : _.standardLinkInput;
|
|
654
|
+
},
|
|
655
|
+
pickerWrapperStyle() {
|
|
656
|
+
return {
|
|
657
|
+
width: this.width ? this.width + "px" : void 0
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
mounted() {
|
|
662
|
+
this.focusOnCreate && (this.initialProvider ? setTimeout(() => {
|
|
663
|
+
var t;
|
|
664
|
+
(t = this.$refs["url-input"]) == null || t.focus();
|
|
665
|
+
}, 300) : this.$nextTick(() => {
|
|
666
|
+
var t;
|
|
667
|
+
(t = this.$refs["provider-list"]) == null || t.focus();
|
|
668
|
+
}));
|
|
669
|
+
},
|
|
670
|
+
methods: {
|
|
671
|
+
onEscapePressed() {
|
|
672
|
+
this.selectedProvider !== null ? this.deselectProvider() : this.cancelProviderSelection();
|
|
673
|
+
},
|
|
674
|
+
onProviderSelected(t) {
|
|
675
|
+
this.selectedProvider = t, this.$emit("provider-selected", t), this.$nextTick(() => {
|
|
676
|
+
var e;
|
|
677
|
+
(e = this.$refs["url-input"]) == null || e.focus();
|
|
678
|
+
});
|
|
679
|
+
},
|
|
680
|
+
cancelCustomElement() {
|
|
681
|
+
this.deselectProvider();
|
|
682
|
+
},
|
|
683
|
+
cancelSearch() {
|
|
684
|
+
var t;
|
|
685
|
+
this.$emit("cancel-search", (t = this.selectedProvider) == null ? void 0 : t.title), this.deselectProvider();
|
|
686
|
+
},
|
|
687
|
+
cancelRawLinkInput() {
|
|
688
|
+
var t;
|
|
689
|
+
this.$emit("cancel-raw-link", (t = this.selectedProvider) == null ? void 0 : t.title), this.deselectProvider();
|
|
690
|
+
},
|
|
691
|
+
cancelProviderSelection() {
|
|
692
|
+
this.$emit("cancel");
|
|
693
|
+
},
|
|
694
|
+
submitLink(t) {
|
|
695
|
+
this.selectedProvider !== null && fe(this.selectedProvider.id), this.$emit("submit", t), this.deselectProvider();
|
|
696
|
+
},
|
|
697
|
+
deselectProvider() {
|
|
698
|
+
this.selectedProvider = null, this.$emit("provider-selected", null), setTimeout(() => {
|
|
699
|
+
var t;
|
|
700
|
+
(t = this.$refs["provider-list"]) == null || t.focus();
|
|
701
|
+
}, 300);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
var Me = function() {
|
|
706
|
+
var e = this, r = e._self._c;
|
|
707
|
+
return r("div", { staticClass: "reference-picker", style: e.pickerWrapperStyle, attrs: { tabindex: "-1" }, on: { keydown: function(s) {
|
|
708
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : (s.stopPropagation(), s.preventDefault(), e.onEscapePressed.apply(null, arguments));
|
|
709
|
+
} } }, [e.mode === e.MODES.providerList ? r("NcProviderList", { ref: "provider-list", on: { "select-provider": e.onProviderSelected, submit: e.submitLink, cancel: e.cancelProviderSelection } }) : e.mode === e.MODES.standardLinkInput ? r("NcRawLinkInput", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelRawLinkInput } }) : e.mode === e.MODES.searchInput ? r("NcSearch", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { cancel: e.cancelSearch, submit: e.submitLink } }) : e.mode === e.MODES.customElement ? r("div", { staticClass: "custom-element-wrapper" }, [r("NcCustomPickerElement", { attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelCustomElement } })], 1) : e._e()], 1);
|
|
710
|
+
}, Ve = [], ze = /* @__PURE__ */ l.normalizeComponent(
|
|
711
|
+
We,
|
|
712
|
+
Me,
|
|
713
|
+
Ve,
|
|
714
|
+
!1,
|
|
715
|
+
null,
|
|
716
|
+
"aa77d0d3",
|
|
717
|
+
null,
|
|
718
|
+
null
|
|
719
|
+
);
|
|
720
|
+
const z = ze.exports;
|
|
721
|
+
const Te = {
|
|
722
|
+
name: "NcReferencePickerModal",
|
|
723
|
+
components: {
|
|
724
|
+
NcReferencePicker: z,
|
|
725
|
+
NcModal: G,
|
|
726
|
+
NcButton: Q,
|
|
727
|
+
ArrowLeftIcon: ee.default,
|
|
728
|
+
CloseIcon: te.default
|
|
729
|
+
},
|
|
730
|
+
props: {
|
|
731
|
+
/**
|
|
732
|
+
* Provider to select on creation
|
|
733
|
+
* Show the provider list if no initial one is provided
|
|
734
|
+
*/
|
|
735
|
+
initialProvider: {
|
|
736
|
+
type: Object,
|
|
737
|
+
default: () => null
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
* Focus on the input item on create
|
|
741
|
+
*/
|
|
742
|
+
focusOnCreate: {
|
|
743
|
+
type: Boolean,
|
|
744
|
+
default: !0
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
* If true, add the modal content to the Viewer trap elements via the event-bus
|
|
748
|
+
*/
|
|
749
|
+
isInsideViewer: {
|
|
750
|
+
type: Boolean,
|
|
751
|
+
default: !1
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
emits: [
|
|
755
|
+
"cancel",
|
|
756
|
+
"submit"
|
|
757
|
+
],
|
|
758
|
+
data() {
|
|
759
|
+
return {
|
|
760
|
+
show: !0,
|
|
761
|
+
selectedProvider: this.initialProvider,
|
|
762
|
+
backButtonTitle: n.t("Back to provider selection"),
|
|
763
|
+
closeButtonTitle: n.t("Close"),
|
|
764
|
+
closeButtonLabel: n.t("Close Smart Picker")
|
|
765
|
+
};
|
|
766
|
+
},
|
|
767
|
+
computed: {
|
|
768
|
+
isProviderSelected() {
|
|
769
|
+
return this.selectedProvider !== null;
|
|
770
|
+
},
|
|
771
|
+
showBackButton() {
|
|
772
|
+
return this.initialProvider === null && this.isProviderSelected;
|
|
773
|
+
},
|
|
774
|
+
modalSize() {
|
|
775
|
+
var t;
|
|
776
|
+
return this.isProviderSelected && u(this.selectedProvider.id) ? (t = ae(this.selectedProvider.id)) != null ? t : "large" : "normal";
|
|
777
|
+
},
|
|
778
|
+
showModalName() {
|
|
779
|
+
return !this.isProviderSelected || !u(this.selectedProvider.id);
|
|
780
|
+
},
|
|
781
|
+
modalName() {
|
|
782
|
+
return this.isProviderSelected ? this.selectedProvider.title : n.t("Smart Picker");
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
mounted() {
|
|
786
|
+
if (this.isInsideViewer) {
|
|
787
|
+
const t = this.$refs.modal_content;
|
|
788
|
+
J.emit("viewer:trapElements:changed", t);
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
methods: {
|
|
792
|
+
onCancel() {
|
|
793
|
+
this.show = !1, this.$emit("cancel");
|
|
794
|
+
},
|
|
795
|
+
onSubmit(t) {
|
|
796
|
+
this.show = !1, this.$emit("submit", t);
|
|
797
|
+
},
|
|
798
|
+
onProviderSelect(t) {
|
|
799
|
+
this.selectedProvider = t, t === null && this.initialProvider !== null && this.onCancel();
|
|
800
|
+
},
|
|
801
|
+
onBackClicked() {
|
|
802
|
+
this.$refs.referencePicker.deselectProvider();
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
var De = function() {
|
|
807
|
+
var e = this, r = e._self._c;
|
|
808
|
+
return e.show ? r("NcModal", { staticClass: "reference-picker-modal", attrs: { size: e.modalSize, "can-close": !1 }, on: { close: e.onCancel } }, [r("div", { ref: "modal_content", staticClass: "reference-picker-modal--content" }, [e.showBackButton ? r("NcButton", { staticClass: "back-button", attrs: { "aria-label": e.backButtonTitle, title: e.backButtonTitle }, on: { click: e.onBackClicked }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
809
|
+
return [r("ArrowLeftIcon")];
|
|
810
|
+
}, proxy: !0 }], null, !1, 3001860362) }) : e._e(), r("NcButton", { staticClass: "close-button", attrs: { "aria-label": e.closeButtonLabel, title: e.closeButtonTitle, type: "tertiary" }, on: { click: e.onCancel }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
811
|
+
return [r("CloseIcon")];
|
|
812
|
+
}, proxy: !0 }], null, !1, 2491825086) }), e.showModalName ? r("h2", [e._v(" " + e._s(e.modalName) + " ")]) : e._e(), r("NcReferencePicker", { ref: "referencePicker", attrs: { "initial-provider": e.initialProvider, "focus-on-create": e.focusOnCreate }, on: { "provider-selected": e.onProviderSelect, submit: e.onSubmit, cancel: e.onCancel } })], 1)]) : e._e();
|
|
813
|
+
}, je = [], Ae = /* @__PURE__ */ l.normalizeComponent(
|
|
814
|
+
Te,
|
|
815
|
+
De,
|
|
816
|
+
je,
|
|
817
|
+
!1,
|
|
818
|
+
null,
|
|
819
|
+
"3f1a4ac7",
|
|
820
|
+
null,
|
|
821
|
+
null
|
|
822
|
+
);
|
|
823
|
+
const T = Ae.exports;
|
|
824
|
+
async function He(t = null, e = void 0) {
|
|
825
|
+
return await new Promise((r, s) => {
|
|
826
|
+
var P;
|
|
827
|
+
const i = "referencePickerModal", o = document.createElement("div");
|
|
828
|
+
o.id = i, document.body.append(o);
|
|
829
|
+
const c = t === null ? null : (P = O(t)) != null ? P : null, h = re.default.extend(T), a = new h({
|
|
830
|
+
propsData: {
|
|
831
|
+
initialProvider: c,
|
|
832
|
+
isInsideViewer: e
|
|
833
|
+
}
|
|
834
|
+
}).$mount(o);
|
|
835
|
+
a.$on("cancel", () => {
|
|
836
|
+
a.$destroy(), s(new Error("User cancellation"));
|
|
837
|
+
}), a.$on("submit", (D) => {
|
|
838
|
+
a.$destroy(), r(D);
|
|
839
|
+
});
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
exports.NcCustomPickerRenderResult = le;
|
|
843
|
+
exports.NcReferencePicker = z;
|
|
844
|
+
exports.NcReferencePickerModal = T;
|
|
845
|
+
exports.NcReferenceWidget = $;
|
|
846
|
+
exports.NcSearch = V;
|
|
847
|
+
exports.anyLinkProviderId = g;
|
|
848
|
+
exports.getLinkWithPicker = He;
|
|
849
|
+
exports.getProvider = O;
|
|
850
|
+
exports.getProviders = y;
|
|
851
|
+
exports.isCustomPickerElementRegistered = u;
|
|
852
|
+
exports.isWidgetRegistered = N;
|
|
853
|
+
exports.registerCustomPickerElement = E;
|
|
854
|
+
exports.registerWidget = x;
|
|
855
|
+
exports.renderCustomPickerElement = I;
|
|
856
|
+
exports.renderWidget = L;
|
|
857
|
+
exports.searchProvider = W;
|
|
858
|
+
exports.sortProviders = B;
|