@nextcloud/vue 8.0.0-beta.9 → 8.0.1
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 +52 -2
- package/dist/Components/NcActionButton.cjs +23 -12
- package/dist/Components/NcActionButton.cjs.map +1 -1
- package/dist/Components/NcActionButton.mjs +21 -9
- package/dist/Components/NcActionButton.mjs.map +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActionLink.cjs +1 -1
- package/dist/Components/NcActionLink.mjs +1 -1
- package/dist/Components/NcActionRouter.cjs +1 -1
- package/dist/Components/NcActionRouter.mjs +1 -1
- package/dist/Components/NcActionText.cjs +1 -1
- package/dist/Components/NcActionText.mjs +1 -1
- package/dist/Components/NcActionTextEditable.cjs +10 -10
- package/dist/Components/NcActionTextEditable.cjs.map +1 -1
- package/dist/Components/NcActionTextEditable.mjs +1 -1
- package/dist/Components/NcActions.cjs +55 -52
- package/dist/Components/NcActions.cjs.map +1 -1
- package/dist/Components/NcActions.mjs +44 -41
- package/dist/Components/NcActions.mjs.map +1 -1
- package/dist/Components/NcAppContent.cjs +19 -20
- package/dist/Components/NcAppContent.cjs.map +1 -1
- package/dist/Components/NcAppContent.mjs +8 -8
- package/dist/Components/NcAppContent.mjs.map +1 -1
- package/dist/Components/NcAppNavigation.cjs +58 -27
- package/dist/Components/NcAppNavigation.cjs.map +1 -1
- package/dist/Components/NcAppNavigation.mjs +67 -34
- package/dist/Components/NcAppNavigation.mjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +166 -62
- package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +145 -43
- package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
- package/dist/Components/NcAppNavigationNew.cjs +6 -6
- package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
- package/dist/Components/NcAppNavigationNew.mjs +17 -17
- package/dist/Components/NcAppNavigationNew.mjs.map +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +7 -7
- package/dist/Components/NcAppNavigationNewItem.cjs.map +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +5 -5
- package/dist/Components/NcAppNavigationNewItem.mjs.map +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +46 -14
- package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +48 -16
- package/dist/Components/NcAppNavigationSettings.mjs.map +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +75 -54
- package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +79 -57
- package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
- package/dist/Components/NcAppSettingsSection.cjs +29 -10
- package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
- package/dist/Components/NcAppSettingsSection.mjs +29 -10
- package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
- package/dist/Components/NcAppSidebar.cjs +99 -33
- package/dist/Components/NcAppSidebar.cjs.map +1 -1
- package/dist/Components/NcAppSidebar.mjs +156 -92
- package/dist/Components/NcAppSidebar.mjs.map +1 -1
- package/dist/Components/NcAppSidebarTab.cjs +7 -7
- package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
- package/dist/Components/NcAppSidebarTab.mjs +6 -6
- package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +10 -10
- package/dist/Components/NcBreadcrumb.cjs.map +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +85 -53
- package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +91 -60
- package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
- package/dist/Components/NcButton.cjs +25 -25
- package/dist/Components/NcButton.cjs.map +1 -1
- package/dist/Components/NcButton.mjs +25 -25
- package/dist/Components/NcButton.mjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +305 -67
- package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +307 -75
- package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
- package/dist/Components/NcColorPicker.cjs +18 -18
- package/dist/Components/NcColorPicker.cjs.map +1 -1
- package/dist/Components/NcColorPicker.mjs +17 -17
- package/dist/Components/NcColorPicker.mjs.map +1 -1
- package/dist/Components/NcCounterBubble.cjs +6 -6
- package/dist/Components/NcCounterBubble.cjs.map +1 -1
- package/dist/Components/NcCounterBubble.mjs +2 -2
- package/dist/Components/NcCounterBubble.mjs.map +1 -1
- package/dist/Components/NcDashboardWidget.cjs +30 -30
- package/dist/Components/NcDashboardWidget.cjs.map +1 -1
- package/dist/Components/NcDashboardWidget.mjs +3 -3
- 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 +109 -44
- package/dist/Components/NcDateTimePicker.cjs.map +1 -1
- package/dist/Components/NcDateTimePicker.mjs +115 -52
- package/dist/Components/NcDateTimePicker.mjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +1 -1
- package/dist/Components/NcDialogButton.cjs +11 -11
- package/dist/Components/NcDialogButton.cjs.map +1 -1
- package/dist/Components/NcDialogButton.mjs +14 -14
- package/dist/Components/NcDialogButton.mjs.map +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcEmptyContent.cjs +14 -14
- package/dist/Components/NcEmptyContent.cjs.map +1 -1
- package/dist/Components/NcEmptyContent.mjs +7 -7
- package/dist/Components/NcEmptyContent.mjs.map +1 -1
- package/dist/Components/NcInputField.cjs +16 -16
- package/dist/Components/NcInputField.cjs.map +1 -1
- package/dist/Components/NcInputField.mjs +5 -5
- package/dist/Components/NcInputField.mjs.map +1 -1
- package/dist/Components/NcListItem.cjs +3 -3
- package/dist/Components/NcListItem.cjs.map +1 -1
- package/dist/Components/NcListItem.mjs +3 -3
- package/dist/Components/NcListItem.mjs.map +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +165 -68
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +129 -35
- package/dist/Components/NcModal.mjs.map +1 -1
- package/dist/Components/NcNoteCard.cjs +146 -18
- package/dist/Components/NcNoteCard.cjs.map +1 -1
- package/dist/Components/NcNoteCard.mjs +146 -21
- package/dist/Components/NcNoteCard.mjs.map +1 -1
- package/dist/Components/NcPasswordField.cjs +84 -20
- package/dist/Components/NcPasswordField.cjs.map +1 -1
- package/dist/Components/NcPasswordField.mjs +104 -42
- package/dist/Components/NcPasswordField.mjs.map +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +48 -31
- package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +31 -14
- package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
- package/dist/Components/NcRichContenteditable.cjs +22 -18
- package/dist/Components/NcRichContenteditable.cjs.map +1 -1
- package/dist/Components/NcRichContenteditable.mjs +32 -28
- package/dist/Components/NcRichContenteditable.mjs.map +1 -1
- package/dist/Components/NcRichText.cjs +1 -1
- package/dist/Components/NcRichText.mjs +3 -3
- package/dist/Components/NcSelect.cjs +80 -57
- package/dist/Components/NcSelect.cjs.map +1 -1
- package/dist/Components/NcSelect.mjs +75 -50
- package/dist/Components/NcSelect.mjs.map +1 -1
- package/dist/Components/NcSelectTags.cjs +2 -2
- package/dist/Components/NcSelectTags.cjs.map +1 -1
- package/dist/Components/NcSelectTags.mjs +4 -4
- package/dist/Components/NcSelectTags.mjs.map +1 -1
- package/dist/Components/NcSettingsInputText.cjs +1 -1
- package/dist/Components/NcSettingsInputText.mjs +1 -1
- package/dist/Components/NcSettingsSection.cjs +46 -14
- package/dist/Components/NcSettingsSection.cjs.map +1 -1
- package/dist/Components/NcSettingsSection.mjs +44 -12
- package/dist/Components/NcSettingsSection.mjs.map +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextArea.cjs +14 -14
- package/dist/Components/NcTextArea.cjs.map +1 -1
- package/dist/Components/NcTextArea.mjs +6 -6
- package/dist/Components/NcTextArea.mjs.map +1 -1
- package/dist/Components/NcTextField.cjs +51 -19
- package/dist/Components/NcTextField.cjs.map +1 -1
- package/dist/Components/NcTextField.mjs +59 -28
- package/dist/Components/NcTextField.mjs.map +1 -1
- package/dist/Components/NcTimezonePicker.cjs +32 -24
- package/dist/Components/NcTimezonePicker.cjs.map +1 -1
- package/dist/Components/NcTimezonePicker.mjs +36 -27
- package/dist/Components/NcTimezonePicker.mjs.map +1 -1
- package/dist/Components/NcUserBubble.cjs +24 -20
- package/dist/Components/NcUserBubble.cjs.map +1 -1
- package/dist/Components/NcUserBubble.mjs +25 -20
- package/dist/Components/NcUserBubble.mjs.map +1 -1
- package/dist/assets/{NcAppNavigationToggle-2cc5b864.css → NcAppNavigationToggle-9e170630.css} +3 -2
- package/dist/assets/{NcInputConfirmCancel-2ba60a52.css → NcInputConfirmCancel-45d1d76b.css} +7 -7
- package/dist/assets/{index-af72a30b.css → index-05760fea.css} +5 -1
- package/dist/assets/{index-30e099f7.css → index-0ac09203.css} +3 -3
- package/dist/assets/{index-eea65531.css → index-0e9b11c7.css} +20 -16
- package/dist/assets/{index-7813bab3.css → index-17673ea1.css} +7 -9
- package/dist/assets/{index-1151d229.css → index-1f25a3c0.css} +3 -3
- package/dist/assets/{index-9dcf6260.css → index-2e5e3b55.css} +30 -30
- package/dist/assets/{index-ed4adf1d.css → index-4271da53.css} +18 -17
- package/dist/assets/{index-abb90c97.css → index-4e03d941.css} +48 -48
- package/dist/assets/{index-4b75fe20.css → index-55600948.css} +11 -11
- package/dist/assets/{index-236620b0.css → index-6899d75b.css} +29 -29
- package/dist/assets/{index-5ee8a575.css → index-73ded07b.css} +63 -63
- package/dist/assets/{index-1beccc92.css → index-750c02cc.css} +28 -10
- package/dist/assets/{index-9e9587e1.css → index-77a548be.css} +4 -4
- package/dist/assets/{index-c5ae3bc4.css → index-7d211db9.css} +11 -11
- package/dist/assets/{index-8304db49.css → index-802d2118.css} +5 -1
- package/dist/assets/{index-a2d55f92.css → index-9176105d.css} +41 -41
- package/dist/assets/index-93bc89ef.css +197 -0
- package/dist/assets/{index-50b0766d.css → index-a0532427.css} +55 -70
- package/dist/assets/{index-e828b286.css → index-ab715d82.css} +4 -4
- package/dist/assets/{index-9e44e336.css → index-c221fe05.css} +9 -9
- package/dist/assets/{index-c6f0da2e.css → index-c239a2fc.css} +14 -8
- package/dist/assets/{index-73867d38.css → index-d3702c91.css} +5 -1
- package/dist/assets/{index-4a775ba1.css → index-d812ed9e.css} +43 -43
- package/dist/assets/{index-793eae6b.css → index-d9ae9479.css} +6 -6
- package/dist/assets/{index-f85aa003.css → index-db5a8b1c.css} +22 -10
- package/dist/assets/{index-574438d6.css → index-dea0aef3.css} +10 -10
- package/dist/assets/{index-0adc989c.css → index-ebbb7829.css} +9 -13
- package/dist/assets/{index-c06ad941.css → index-fbc0b606.css} +58 -42
- package/dist/chunks/AlertCircleOutline-7085c10f.cjs +35 -0
- package/dist/chunks/AlertCircleOutline-7085c10f.cjs.map +1 -0
- package/dist/chunks/AlertCircleOutline-b73838e0.mjs +37 -0
- package/dist/chunks/AlertCircleOutline-b73838e0.mjs.map +1 -0
- package/dist/chunks/ArrowLeft-2f9b9323.cjs +35 -0
- package/dist/chunks/ArrowLeft-2f9b9323.cjs.map +1 -0
- package/dist/chunks/ArrowLeft-3779ba88.mjs +37 -0
- package/dist/chunks/ArrowLeft-3779ba88.mjs.map +1 -0
- package/dist/chunks/ArrowRight-7315f6c1.cjs +35 -0
- package/dist/chunks/ArrowRight-7315f6c1.cjs.map +1 -0
- package/dist/chunks/ArrowRight-74a9fcb2.mjs +37 -0
- package/dist/chunks/ArrowRight-74a9fcb2.mjs.map +1 -0
- package/dist/chunks/Check-2ea0a88a.mjs +37 -0
- package/dist/chunks/Check-2ea0a88a.mjs.map +1 -0
- package/dist/chunks/Check-be8cd6af.cjs +35 -0
- package/dist/chunks/Check-be8cd6af.cjs.map +1 -0
- package/dist/chunks/ChevronDown-a72d365d.mjs +37 -0
- package/dist/chunks/ChevronDown-a72d365d.mjs.map +1 -0
- package/dist/chunks/ChevronDown-dc32e51d.cjs +35 -0
- package/dist/chunks/ChevronDown-dc32e51d.cjs.map +1 -0
- package/dist/chunks/ChevronRight-1a6a6cf2.mjs +37 -0
- package/dist/chunks/ChevronRight-1a6a6cf2.mjs.map +1 -0
- package/dist/chunks/ChevronRight-a4c1e0d3.cjs +35 -0
- package/dist/chunks/ChevronRight-a4c1e0d3.cjs.map +1 -0
- package/dist/chunks/Close-271f72e2.mjs +37 -0
- package/dist/chunks/Close-271f72e2.mjs.map +1 -0
- package/dist/chunks/Close-98cb6f12.cjs +35 -0
- package/dist/chunks/Close-98cb6f12.cjs.map +1 -0
- package/dist/chunks/DotsHorizontal-0ee7d901.mjs +37 -0
- package/dist/chunks/DotsHorizontal-0ee7d901.mjs.map +1 -0
- package/dist/chunks/DotsHorizontal-ac96129a.cjs +35 -0
- package/dist/chunks/DotsHorizontal-ac96129a.cjs.map +1 -0
- package/dist/chunks/NcAppNavigationToggle-60664a28.cjs +113 -0
- package/dist/chunks/NcAppNavigationToggle-60664a28.cjs.map +1 -0
- package/dist/chunks/NcAppNavigationToggle-82764816.mjs +118 -0
- package/dist/chunks/NcAppNavigationToggle-82764816.mjs.map +1 -0
- package/dist/chunks/NcInputConfirmCancel-262d455f.cjs +90 -0
- package/dist/chunks/{NcInputConfirmCancel-44052477.mjs.map → NcInputConfirmCancel-262d455f.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-44052477.mjs → NcInputConfirmCancel-906c7816.mjs} +11 -11
- package/dist/chunks/{NcInputConfirmCancel-6bea0fdc.cjs.map → NcInputConfirmCancel-906c7816.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-8fda53c8.mjs → NcRichText-1e8fd02d.mjs} +1 -1
- package/dist/chunks/{NcRichText-8fda53c8.mjs.map → NcRichText-1e8fd02d.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-332fe454.cjs → NcRichText-ae95c854.cjs} +1 -1
- package/dist/chunks/{NcRichText-332fe454.cjs.map → NcRichText-ae95c854.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-fdd3309c.mjs → NcSettingsSelectGroup-ae323579.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-fdd3309c.mjs.map → NcSettingsSelectGroup-ae323579.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-a5ff8c36.cjs → NcSettingsSelectGroup-e8f9f9fe.cjs} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-a5ff8c36.cjs.map → NcSettingsSelectGroup-e8f9f9fe.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-9519afcc.mjs → ScopeComponent-1ab1ebb9.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-9519afcc.mjs.map → ScopeComponent-1ab1ebb9.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-e060526a.cjs → ScopeComponent-50287dad.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-e060526a.cjs.map → ScopeComponent-50287dad.cjs.map} +1 -1
- package/dist/chunks/{index-032137a6.cjs → index-e06b96d3.cjs} +56 -47
- package/dist/chunks/index-e06b96d3.cjs.map +1 -0
- package/dist/chunks/{index-fb2ee22c.mjs → index-fbf943b3.mjs} +93 -84
- package/dist/chunks/index-fbf943b3.mjs.map +1 -0
- package/dist/chunks/{l10n-9aa6482d.mjs → l10n-9fc9974f.mjs} +1 -1
- package/dist/chunks/{l10n-9aa6482d.mjs.map → l10n-9fc9974f.mjs.map} +1 -1
- package/dist/chunks/{l10n-c7bd0ea6.cjs → l10n-ec2d3010.cjs} +1 -1
- package/dist/chunks/{l10n-c7bd0ea6.cjs.map → l10n-ec2d3010.cjs.map} +1 -1
- package/dist/chunks/l10n-f491109d.cjs +29 -0
- package/dist/chunks/l10n-f491109d.cjs.map +1 -0
- package/dist/chunks/l10n-f692947e.mjs +31 -0
- package/dist/chunks/l10n-f692947e.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-443a4c57.mjs → referencePickerModal-6bc8f6b9.mjs} +156 -124
- package/dist/chunks/referencePickerModal-6bc8f6b9.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-279a483d.cjs → referencePickerModal-e033bf2c.cjs} +144 -111
- package/dist/chunks/referencePickerModal-e033bf2c.cjs.map +1 -0
- package/dist/index.cjs +4 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +26 -30
- package/dist/index.mjs.map +1 -1
- package/dist/vendor.LICENSE.txt +5 -1
- package/package.json +3 -3
- package/dist/assets/index-d646553d.css +0 -41
- package/dist/chunks/NcAppNavigationToggle-841d3015.cjs +0 -49
- package/dist/chunks/NcAppNavigationToggle-841d3015.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationToggle-e358aa47.mjs +0 -55
- package/dist/chunks/NcAppNavigationToggle-e358aa47.mjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-6bea0fdc.cjs +0 -90
- package/dist/chunks/index-032137a6.cjs.map +0 -1
- package/dist/chunks/index-fb2ee22c.mjs.map +0 -1
- package/dist/chunks/l10n-05a09c66.mjs +0 -31
- package/dist/chunks/l10n-05a09c66.mjs.map +0 -1
- package/dist/chunks/l10n-b1d264c7.cjs +0 -29
- package/dist/chunks/l10n-b1d264c7.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-279a483d.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-443a4c57.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ue = require("../assets/referencePickerModal-3a127978.css");
|
|
2
|
-
const
|
|
2
|
+
const c = require("./_plugin-vue2_normalizer-7f9efb60.cjs"), n = require("./l10n-f491109d.cjs"), j = require("@nextcloud/axios"), w = require("@nextcloud/initial-state"), _ = require("@nextcloud/router"), p = require("../Components/NcEmptyContent.cjs"), b = require("./index-e894376a.cjs"), S = require("../Components/NcSelect.cjs"), A = require("../Components/NcLoadingIcon.cjs"), H = require("../Components/NcTextField.cjs"), U = require("./DotsHorizontal-ac96129a.cjs"), F = require("../Components/NcButton.cjs"), Q = require("../Components/NcModal.cjs"), G = require("@nextcloud/event-bus"), Z = require("./ArrowLeft-2f9b9323.cjs"), J = require("./Close-98cb6f12.cjs"), K = require("vue"), R = (t) => t && t.__esModule ? t : { default: t }, m = /* @__PURE__ */ R(j), X = /* @__PURE__ */ R(K);
|
|
3
3
|
window._vue_richtext_widgets || (window._vue_richtext_widgets = {});
|
|
4
|
-
const
|
|
4
|
+
const x = (t) => !!window._vue_richtext_widgets[t], N = (t, e, r = (s) => {
|
|
5
5
|
}) => {
|
|
6
6
|
if (window._vue_richtext_widgets[t]) {
|
|
7
7
|
console.error("Widget for id " + t + " already registered");
|
|
@@ -20,11 +20,11 @@ const N = (t) => !!window._vue_richtext_widgets[t], x = (t, e, r = (s) => {
|
|
|
20
20
|
}
|
|
21
21
|
window._vue_richtext_widgets[e].callback(t, { richObjectType: e, richObject: r, accessible: s });
|
|
22
22
|
}
|
|
23
|
-
},
|
|
23
|
+
}, Y = (t, e) => {
|
|
24
24
|
t !== "open-graph" && window._vue_richtext_widgets[t] && window._vue_richtext_widgets[t].onDestroy(e);
|
|
25
25
|
};
|
|
26
|
-
window._registerWidget =
|
|
27
|
-
const
|
|
26
|
+
window._registerWidget = N;
|
|
27
|
+
const ee = {
|
|
28
28
|
name: "NcReferenceWidget",
|
|
29
29
|
props: {
|
|
30
30
|
reference: {
|
|
@@ -39,7 +39,7 @@ const ie = {
|
|
|
39
39
|
},
|
|
40
40
|
computed: {
|
|
41
41
|
hasCustomWidget() {
|
|
42
|
-
return
|
|
42
|
+
return x(this.reference.richObjectType);
|
|
43
43
|
},
|
|
44
44
|
noAccess() {
|
|
45
45
|
return this.reference && !this.reference.accessible;
|
|
@@ -66,7 +66,7 @@ const ie = {
|
|
|
66
66
|
}), this.observer.observe(this.$el);
|
|
67
67
|
},
|
|
68
68
|
beforeDestroy() {
|
|
69
|
-
this.observer.disconnect(),
|
|
69
|
+
this.observer.disconnect(), Y(this.reference.richObjectType, this.$el);
|
|
70
70
|
},
|
|
71
71
|
methods: {
|
|
72
72
|
renderWidget() {
|
|
@@ -77,22 +77,22 @@ const ie = {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
var
|
|
80
|
+
var te = function() {
|
|
81
81
|
var e = this, r = e._self._c;
|
|
82
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
|
-
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
}, re = [], se = /* @__PURE__ */ c.normalizeComponent(
|
|
84
|
+
ee,
|
|
85
|
+
te,
|
|
86
|
+
re,
|
|
87
87
|
!1,
|
|
88
88
|
null,
|
|
89
89
|
"b1c5a80f",
|
|
90
90
|
null,
|
|
91
91
|
null
|
|
92
92
|
);
|
|
93
|
-
const $ =
|
|
93
|
+
const $ = se.exports;
|
|
94
94
|
window._vue_richtext_custom_picker_elements || (window._vue_richtext_custom_picker_elements = {});
|
|
95
|
-
class
|
|
95
|
+
class ie {
|
|
96
96
|
/**
|
|
97
97
|
* @param {HTMLElement} element The HTML element
|
|
98
98
|
* @param {object} object The object
|
|
@@ -101,7 +101,7 @@ class le {
|
|
|
101
101
|
this.element = e, this.object = r;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
const u = (t) => !!window._vue_richtext_custom_picker_elements[t],
|
|
104
|
+
const u = (t) => !!window._vue_richtext_custom_picker_elements[t], ne = (t) => {
|
|
105
105
|
var r;
|
|
106
106
|
const e = (r = window._vue_richtext_custom_picker_elements[t]) == null ? void 0 : r.size;
|
|
107
107
|
return ["small", "normal", "large", "full"].includes(e) ? e : null;
|
|
@@ -123,11 +123,11 @@ const u = (t) => !!window._vue_richtext_custom_picker_elements[t], ae = (t) => {
|
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
return window._vue_richtext_custom_picker_elements[e].callback(t, { providerId: e, accessible: r });
|
|
126
|
-
},
|
|
126
|
+
}, oe = (t, e, r) => {
|
|
127
127
|
window._vue_richtext_custom_picker_elements[t] && window._vue_richtext_custom_picker_elements[t].onDestroy(e, r);
|
|
128
128
|
};
|
|
129
129
|
window._registerCustomPickerElement = E;
|
|
130
|
-
const
|
|
130
|
+
const ce = {
|
|
131
131
|
name: "NcCustomPickerElement",
|
|
132
132
|
props: {
|
|
133
133
|
/**
|
|
@@ -152,7 +152,7 @@ const de = {
|
|
|
152
152
|
this.isRegistered && this.renderElement();
|
|
153
153
|
},
|
|
154
154
|
beforeDestroy() {
|
|
155
|
-
this.isRegistered &&
|
|
155
|
+
this.isRegistered && oe(this.provider.id, this.$el, this.renderResult);
|
|
156
156
|
},
|
|
157
157
|
methods: {
|
|
158
158
|
renderElement() {
|
|
@@ -173,30 +173,30 @@ const de = {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
-
var
|
|
176
|
+
var le = function() {
|
|
177
177
|
var e = this, r = e._self._c;
|
|
178
178
|
return r("div", { ref: "domElement" });
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
}, ae = [], ue = /* @__PURE__ */ c.normalizeComponent(
|
|
180
|
+
ce,
|
|
181
|
+
le,
|
|
182
|
+
ae,
|
|
183
183
|
!1,
|
|
184
184
|
null,
|
|
185
185
|
"cf695ff9",
|
|
186
186
|
null,
|
|
187
187
|
null
|
|
188
188
|
);
|
|
189
|
-
const
|
|
190
|
-
id:
|
|
189
|
+
const de = ue.exports, f = "any-link", O = {
|
|
190
|
+
id: f,
|
|
191
191
|
title: n.t("Any link"),
|
|
192
|
-
icon_url:
|
|
192
|
+
icon_url: _.imagePath("core", "filetypes/link.svg")
|
|
193
193
|
};
|
|
194
|
-
window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers =
|
|
195
|
-
window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps =
|
|
196
|
-
function
|
|
197
|
-
return t ===
|
|
194
|
+
window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = w.loadState("core", "reference-provider-list", []));
|
|
195
|
+
window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = w.loadState("core", "reference-provider-timestamps", {}));
|
|
196
|
+
function q(t) {
|
|
197
|
+
return t === f ? O : v().find((e) => e.id === t);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function v() {
|
|
200
200
|
return window._vue_richtext_reference_providers.filter((t) => {
|
|
201
201
|
const e = !!t.search_providers_ids && t.search_providers_ids.length > 0 || u(t.id);
|
|
202
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;
|
|
@@ -209,41 +209,74 @@ function B(t) {
|
|
|
209
209
|
return i === o ? 0 : o === void 0 ? -1 : i === void 0 ? 1 : i > o ? -1 : 1;
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const r =
|
|
214
|
-
return (t === "" ||
|
|
212
|
+
function M(t, e = null) {
|
|
213
|
+
const r = v(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), l = B(r).filter((a) => a.title.match(i)), d = e ? l.slice(0, e) : l;
|
|
214
|
+
return (t === "" || d.length === 0) && d.push(O), d;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function he(t) {
|
|
217
217
|
const e = Math.floor(Date.now() / 1e3), r = {
|
|
218
218
|
timestamp: e
|
|
219
|
-
}, s =
|
|
220
|
-
|
|
219
|
+
}, s = _.generateOcsUrl("references/provider/{providerId}", { providerId: t });
|
|
220
|
+
m.default.put(s, r).then((i) => {
|
|
221
221
|
window._vue_richtext_reference_provider_timestamps[t] = e;
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
let
|
|
225
|
-
function
|
|
224
|
+
let k = 0;
|
|
225
|
+
function W(t, e) {
|
|
226
226
|
return function() {
|
|
227
227
|
const r = this, s = arguments;
|
|
228
|
-
clearTimeout(
|
|
228
|
+
clearTimeout(k), k = setTimeout(function() {
|
|
229
229
|
t.apply(r, s);
|
|
230
230
|
}, e || 0);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function g(t) {
|
|
234
234
|
try {
|
|
235
235
|
return !!new URL(t);
|
|
236
236
|
} catch {
|
|
237
237
|
return !1;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
+
const _e = {
|
|
241
|
+
name: "LinkVariantIcon",
|
|
242
|
+
emits: ["click"],
|
|
243
|
+
props: {
|
|
244
|
+
title: {
|
|
245
|
+
type: String
|
|
246
|
+
},
|
|
247
|
+
fillColor: {
|
|
248
|
+
type: String,
|
|
249
|
+
default: "currentColor"
|
|
250
|
+
},
|
|
251
|
+
size: {
|
|
252
|
+
type: Number,
|
|
253
|
+
default: 24
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
var pe = function() {
|
|
258
|
+
var e = this, r = e._self._c;
|
|
259
|
+
return r("span", e._b({ staticClass: "material-design-icon link-variant-icon", attrs: { "aria-hidden": !e.title, "aria-label": e.title, role: "img" }, on: { click: function(s) {
|
|
260
|
+
return e.$emit("click", s);
|
|
261
|
+
} } }, "span", e.$attrs, !1), [r("svg", { staticClass: "material-design-icon__svg", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: "0 0 24 24" } }, [r("path", { attrs: { d: "M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z" } }, [e.title ? r("title", [e._v(e._s(e.title))]) : e._e()])])]);
|
|
262
|
+
}, me = [], fe = /* @__PURE__ */ c.normalizeComponent(
|
|
263
|
+
_e,
|
|
264
|
+
pe,
|
|
265
|
+
me,
|
|
266
|
+
!1,
|
|
267
|
+
null,
|
|
268
|
+
null,
|
|
269
|
+
null,
|
|
270
|
+
null
|
|
271
|
+
);
|
|
272
|
+
const y = fe.exports;
|
|
240
273
|
const ve = {
|
|
241
274
|
name: "NcProviderList",
|
|
242
275
|
components: {
|
|
243
|
-
NcSelect:
|
|
244
|
-
NcHighlight:
|
|
245
|
-
NcEmptyContent:
|
|
246
|
-
LinkVariantIcon:
|
|
276
|
+
NcSelect: S,
|
|
277
|
+
NcHighlight: b.NcHighlight,
|
|
278
|
+
NcEmptyContent: p,
|
|
279
|
+
LinkVariantIcon: y
|
|
247
280
|
},
|
|
248
281
|
emits: [
|
|
249
282
|
"select-provider",
|
|
@@ -260,11 +293,11 @@ const ve = {
|
|
|
260
293
|
computed: {
|
|
261
294
|
options() {
|
|
262
295
|
const t = [];
|
|
263
|
-
return this.query !== "" &&
|
|
296
|
+
return this.query !== "" && g(this.query) && t.push({
|
|
264
297
|
id: this.query,
|
|
265
298
|
title: this.query,
|
|
266
299
|
isLink: !0
|
|
267
|
-
}), t.push(...
|
|
300
|
+
}), t.push(...M(this.query)), t;
|
|
268
301
|
}
|
|
269
302
|
},
|
|
270
303
|
methods: {
|
|
@@ -291,7 +324,7 @@ var ge = function() {
|
|
|
291
324
|
}, expression: "selectedProvider" } }), r("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
292
325
|
return [r("LinkVariantIcon")];
|
|
293
326
|
}, proxy: !0 }]) })], 1);
|
|
294
|
-
}, ye = [],
|
|
327
|
+
}, ye = [], Ce = /* @__PURE__ */ c.normalizeComponent(
|
|
295
328
|
ve,
|
|
296
329
|
ge,
|
|
297
330
|
ye,
|
|
@@ -301,15 +334,15 @@ var ge = function() {
|
|
|
301
334
|
null,
|
|
302
335
|
null
|
|
303
336
|
);
|
|
304
|
-
const
|
|
305
|
-
const
|
|
337
|
+
const ke = Ce.exports;
|
|
338
|
+
const Pe = {
|
|
306
339
|
name: "NcRawLinkInput",
|
|
307
340
|
components: {
|
|
308
|
-
LinkVariantIcon:
|
|
309
|
-
NcEmptyContent:
|
|
310
|
-
NcLoadingIcon:
|
|
341
|
+
LinkVariantIcon: y,
|
|
342
|
+
NcEmptyContent: p,
|
|
343
|
+
NcLoadingIcon: A,
|
|
311
344
|
NcReferenceWidget: $,
|
|
312
|
-
NcTextField:
|
|
345
|
+
NcTextField: H
|
|
313
346
|
},
|
|
314
347
|
props: {
|
|
315
348
|
/**
|
|
@@ -334,7 +367,7 @@ const Ce = {
|
|
|
334
367
|
},
|
|
335
368
|
computed: {
|
|
336
369
|
isLinkValid() {
|
|
337
|
-
return
|
|
370
|
+
return g(this.inputValue);
|
|
338
371
|
}
|
|
339
372
|
},
|
|
340
373
|
methods: {
|
|
@@ -350,12 +383,12 @@ const Ce = {
|
|
|
350
383
|
this.inputValue = "", this.reference = null;
|
|
351
384
|
},
|
|
352
385
|
onInput() {
|
|
353
|
-
this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid &&
|
|
386
|
+
this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid && W(() => {
|
|
354
387
|
this.updateReference();
|
|
355
388
|
}, 500)();
|
|
356
389
|
},
|
|
357
390
|
updateReference() {
|
|
358
|
-
this.loading = !0, this.abortController = new AbortController(),
|
|
391
|
+
this.loading = !0, this.abortController = new AbortController(), m.default.get(_.generateOcsUrl("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
|
|
359
392
|
signal: this.abortController.signal
|
|
360
393
|
}).then((t) => {
|
|
361
394
|
this.reference = t.data.ocs.data.references[this.inputValue];
|
|
@@ -376,8 +409,8 @@ var we = function() {
|
|
|
376
409
|
} } }, [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
410
|
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
378
411
|
}, proxy: !0 }]) })], 1);
|
|
379
|
-
}, be = [], Se = /* @__PURE__ */
|
|
380
|
-
|
|
412
|
+
}, be = [], Se = /* @__PURE__ */ c.normalizeComponent(
|
|
413
|
+
Pe,
|
|
381
414
|
we,
|
|
382
415
|
be,
|
|
383
416
|
!1,
|
|
@@ -387,10 +420,10 @@ var we = function() {
|
|
|
387
420
|
null
|
|
388
421
|
);
|
|
389
422
|
const Re = Se.exports;
|
|
390
|
-
const
|
|
423
|
+
const xe = {
|
|
391
424
|
name: "NcSearchResult",
|
|
392
425
|
components: {
|
|
393
|
-
NcHighlight:
|
|
426
|
+
NcHighlight: b.NcHighlight
|
|
394
427
|
},
|
|
395
428
|
props: {
|
|
396
429
|
/**
|
|
@@ -410,12 +443,12 @@ const Ne = {
|
|
|
410
443
|
}
|
|
411
444
|
}
|
|
412
445
|
};
|
|
413
|
-
var
|
|
446
|
+
var Ne = function() {
|
|
414
447
|
var e = this, r = e._self._c;
|
|
415
448
|
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__ */
|
|
417
|
-
Ne,
|
|
449
|
+
}, Le = [], $e = /* @__PURE__ */ c.normalizeComponent(
|
|
418
450
|
xe,
|
|
451
|
+
Ne,
|
|
419
452
|
Le,
|
|
420
453
|
!1,
|
|
421
454
|
null,
|
|
@@ -424,13 +457,13 @@ var xe = function() {
|
|
|
424
457
|
null
|
|
425
458
|
);
|
|
426
459
|
const Ee = $e.exports;
|
|
427
|
-
const
|
|
460
|
+
const P = 5, Ie = {
|
|
428
461
|
name: "NcSearch",
|
|
429
462
|
components: {
|
|
430
|
-
LinkVariantIcon:
|
|
431
|
-
DotsHorizontalIcon:
|
|
432
|
-
NcEmptyContent:
|
|
433
|
-
NcSelect:
|
|
463
|
+
LinkVariantIcon: y,
|
|
464
|
+
DotsHorizontalIcon: U.DotsHorizontal,
|
|
465
|
+
NcEmptyContent: p,
|
|
466
|
+
NcSelect: S,
|
|
434
467
|
NcSearchResult: Ee
|
|
435
468
|
},
|
|
436
469
|
props: {
|
|
@@ -476,7 +509,7 @@ const w = 5, Ie = {
|
|
|
476
509
|
if (this.searchQuery === "")
|
|
477
510
|
return [];
|
|
478
511
|
const t = [];
|
|
479
|
-
return
|
|
512
|
+
return g(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
|
|
480
513
|
},
|
|
481
514
|
rawLinkEntry() {
|
|
482
515
|
return {
|
|
@@ -536,7 +569,7 @@ const w = 5, Ie = {
|
|
|
536
569
|
this.abortController && this.abortController.abort();
|
|
537
570
|
},
|
|
538
571
|
onSearchInput(t, e) {
|
|
539
|
-
this.searchQuery = t,
|
|
572
|
+
this.searchQuery = t, W(() => {
|
|
540
573
|
this.updateSearch();
|
|
541
574
|
}, 500)();
|
|
542
575
|
},
|
|
@@ -560,12 +593,12 @@ const w = 5, Ie = {
|
|
|
560
593
|
this.abortController = new AbortController(), this.searching = !0;
|
|
561
594
|
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
595
|
return Promise.allSettled(e).then((i) => {
|
|
563
|
-
!!i.find((
|
|
596
|
+
!!i.find((l) => l.status === "rejected" && (l.reason.name === "CanceledError" || l.reason.code === "ERR_CANCELED")) || (this.searching = !1, this.searchingMoreOf = null);
|
|
564
597
|
});
|
|
565
598
|
},
|
|
566
599
|
searchOneProvider(t, e = null) {
|
|
567
|
-
const r = e === null ?
|
|
568
|
-
return
|
|
600
|
+
const r = e === null ? _.generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: P }) : _.generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: P, cursor: e });
|
|
601
|
+
return m.default.get(r, {
|
|
569
602
|
signal: this.abortController.signal
|
|
570
603
|
}).then((s) => {
|
|
571
604
|
const i = s.data.ocs.data;
|
|
@@ -574,7 +607,7 @@ const w = 5, Ie = {
|
|
|
574
607
|
}
|
|
575
608
|
}
|
|
576
609
|
};
|
|
577
|
-
var
|
|
610
|
+
var Oe = function() {
|
|
578
611
|
var e = this, r = e._self._c;
|
|
579
612
|
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
613
|
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()];
|
|
@@ -585,29 +618,29 @@ var qe = function() {
|
|
|
585
618
|
}, expression: "selectedResult" } }), e.showEmptyContent ? r("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
586
619
|
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { alt: e.providerIconAlt, src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
587
620
|
}, proxy: !0 }], null, !1, 2922132592) }) : e._e()], 1);
|
|
588
|
-
},
|
|
621
|
+
}, qe = [], Be = /* @__PURE__ */ c.normalizeComponent(
|
|
589
622
|
Ie,
|
|
590
|
-
qe,
|
|
591
623
|
Oe,
|
|
624
|
+
qe,
|
|
592
625
|
!1,
|
|
593
626
|
null,
|
|
594
627
|
"97d196f0",
|
|
595
628
|
null,
|
|
596
629
|
null
|
|
597
630
|
);
|
|
598
|
-
const
|
|
599
|
-
const
|
|
631
|
+
const z = Be.exports;
|
|
632
|
+
const h = {
|
|
600
633
|
providerList: 1,
|
|
601
634
|
standardLinkInput: 2,
|
|
602
635
|
searchInput: 3,
|
|
603
636
|
customElement: 4
|
|
604
|
-
},
|
|
637
|
+
}, Me = {
|
|
605
638
|
name: "NcReferencePicker",
|
|
606
639
|
components: {
|
|
607
|
-
NcCustomPickerElement:
|
|
608
|
-
NcProviderList:
|
|
640
|
+
NcCustomPickerElement: de,
|
|
641
|
+
NcProviderList: ke,
|
|
609
642
|
NcRawLinkInput: Re,
|
|
610
|
-
NcSearch:
|
|
643
|
+
NcSearch: z
|
|
611
644
|
},
|
|
612
645
|
props: {
|
|
613
646
|
/**
|
|
@@ -644,13 +677,13 @@ const _ = {
|
|
|
644
677
|
],
|
|
645
678
|
data() {
|
|
646
679
|
return {
|
|
647
|
-
MODES:
|
|
680
|
+
MODES: h,
|
|
648
681
|
selectedProvider: this.initialProvider
|
|
649
682
|
};
|
|
650
683
|
},
|
|
651
684
|
computed: {
|
|
652
685
|
mode() {
|
|
653
|
-
return this.selectedProvider === null ?
|
|
686
|
+
return this.selectedProvider === null ? h.providerList : u(this.selectedProvider.id) ? h.customElement : this.selectedProvider.search_providers_ids ? h.searchInput : h.standardLinkInput;
|
|
654
687
|
},
|
|
655
688
|
pickerWrapperStyle() {
|
|
656
689
|
return {
|
|
@@ -692,7 +725,7 @@ const _ = {
|
|
|
692
725
|
this.$emit("cancel");
|
|
693
726
|
},
|
|
694
727
|
submitLink(t) {
|
|
695
|
-
this.selectedProvider !== null &&
|
|
728
|
+
this.selectedProvider !== null && he(this.selectedProvider.id), this.$emit("submit", t), this.deselectProvider();
|
|
696
729
|
},
|
|
697
730
|
deselectProvider() {
|
|
698
731
|
this.selectedProvider = null, this.$emit("provider-selected", null), setTimeout(() => {
|
|
@@ -702,30 +735,30 @@ const _ = {
|
|
|
702
735
|
}
|
|
703
736
|
}
|
|
704
737
|
};
|
|
705
|
-
var
|
|
738
|
+
var We = function() {
|
|
706
739
|
var e = this, r = e._self._c;
|
|
707
740
|
return r("div", { staticClass: "reference-picker", style: e.pickerWrapperStyle, attrs: { tabindex: "-1" }, on: { keydown: function(s) {
|
|
708
741
|
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
742
|
} } }, [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
|
-
},
|
|
711
|
-
We,
|
|
743
|
+
}, ze = [], Ve = /* @__PURE__ */ c.normalizeComponent(
|
|
712
744
|
Me,
|
|
713
|
-
|
|
745
|
+
We,
|
|
746
|
+
ze,
|
|
714
747
|
!1,
|
|
715
748
|
null,
|
|
716
749
|
"aa77d0d3",
|
|
717
750
|
null,
|
|
718
751
|
null
|
|
719
752
|
);
|
|
720
|
-
const
|
|
753
|
+
const V = Ve.exports;
|
|
721
754
|
const Te = {
|
|
722
755
|
name: "NcReferencePickerModal",
|
|
723
756
|
components: {
|
|
724
|
-
NcReferencePicker:
|
|
725
|
-
NcModal:
|
|
726
|
-
NcButton:
|
|
727
|
-
ArrowLeftIcon:
|
|
728
|
-
CloseIcon:
|
|
757
|
+
NcReferencePicker: V,
|
|
758
|
+
NcModal: Q,
|
|
759
|
+
NcButton: F,
|
|
760
|
+
ArrowLeftIcon: Z.ArrowLeft,
|
|
761
|
+
CloseIcon: J.Close
|
|
729
762
|
},
|
|
730
763
|
props: {
|
|
731
764
|
/**
|
|
@@ -773,7 +806,7 @@ const Te = {
|
|
|
773
806
|
},
|
|
774
807
|
modalSize() {
|
|
775
808
|
var t;
|
|
776
|
-
return this.isProviderSelected && u(this.selectedProvider.id) ? (t =
|
|
809
|
+
return this.isProviderSelected && u(this.selectedProvider.id) ? (t = ne(this.selectedProvider.id)) != null ? t : "large" : "normal";
|
|
777
810
|
},
|
|
778
811
|
showModalName() {
|
|
779
812
|
return !this.isProviderSelected || !u(this.selectedProvider.id);
|
|
@@ -785,7 +818,7 @@ const Te = {
|
|
|
785
818
|
mounted() {
|
|
786
819
|
if (this.isInsideViewer) {
|
|
787
820
|
const t = this.$refs.modal_content;
|
|
788
|
-
|
|
821
|
+
G.emit("viewer:trapElements:changed", t);
|
|
789
822
|
}
|
|
790
823
|
},
|
|
791
824
|
methods: {
|
|
@@ -810,7 +843,7 @@ var De = function() {
|
|
|
810
843
|
}, 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
844
|
return [r("CloseIcon")];
|
|
812
845
|
}, 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__ */
|
|
846
|
+
}, je = [], Ae = /* @__PURE__ */ c.normalizeComponent(
|
|
814
847
|
Te,
|
|
815
848
|
De,
|
|
816
849
|
je,
|
|
@@ -823,12 +856,12 @@ var De = function() {
|
|
|
823
856
|
const T = Ae.exports;
|
|
824
857
|
async function He(t = null, e = void 0) {
|
|
825
858
|
return await new Promise((r, s) => {
|
|
826
|
-
var
|
|
859
|
+
var C;
|
|
827
860
|
const i = "referencePickerModal", o = document.createElement("div");
|
|
828
861
|
o.id = i, document.body.append(o);
|
|
829
|
-
const
|
|
862
|
+
const l = t === null ? null : (C = q(t)) != null ? C : null, d = X.default.extend(T), a = new d({
|
|
830
863
|
propsData: {
|
|
831
|
-
initialProvider:
|
|
864
|
+
initialProvider: l,
|
|
832
865
|
isInsideViewer: e
|
|
833
866
|
}
|
|
834
867
|
}).$mount(o);
|
|
@@ -839,20 +872,20 @@ async function He(t = null, e = void 0) {
|
|
|
839
872
|
});
|
|
840
873
|
});
|
|
841
874
|
}
|
|
842
|
-
exports.NcCustomPickerRenderResult =
|
|
843
|
-
exports.NcReferencePicker =
|
|
875
|
+
exports.NcCustomPickerRenderResult = ie;
|
|
876
|
+
exports.NcReferencePicker = V;
|
|
844
877
|
exports.NcReferencePickerModal = T;
|
|
845
878
|
exports.NcReferenceWidget = $;
|
|
846
|
-
exports.NcSearch =
|
|
847
|
-
exports.anyLinkProviderId =
|
|
879
|
+
exports.NcSearch = z;
|
|
880
|
+
exports.anyLinkProviderId = f;
|
|
848
881
|
exports.getLinkWithPicker = He;
|
|
849
|
-
exports.getProvider =
|
|
850
|
-
exports.getProviders =
|
|
882
|
+
exports.getProvider = q;
|
|
883
|
+
exports.getProviders = v;
|
|
851
884
|
exports.isCustomPickerElementRegistered = u;
|
|
852
|
-
exports.isWidgetRegistered =
|
|
885
|
+
exports.isWidgetRegistered = x;
|
|
853
886
|
exports.registerCustomPickerElement = E;
|
|
854
|
-
exports.registerWidget =
|
|
887
|
+
exports.registerWidget = N;
|
|
855
888
|
exports.renderCustomPickerElement = I;
|
|
856
889
|
exports.renderWidget = L;
|
|
857
|
-
exports.searchProvider =
|
|
890
|
+
exports.searchProvider = M;
|
|
858
891
|
exports.sortProviders = B;
|