@nextcloud/vue 8.2.0 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -2
- package/dist/Components/NcActionButton.cjs +4 -4
- package/dist/Components/NcActionButton.cjs.map +1 -1
- package/dist/Components/NcActionButton.mjs +9 -9
- package/dist/Components/NcActionButton.mjs.map +1 -1
- package/dist/Components/NcActionButtonGroup.cjs +13 -9
- package/dist/Components/NcActionButtonGroup.cjs.map +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +16 -11
- package/dist/Components/NcActionButtonGroup.mjs.map +1 -1
- package/dist/Components/NcActionInput.cjs +9 -8
- package/dist/Components/NcActionInput.cjs.map +1 -1
- package/dist/Components/NcActionInput.mjs +11 -10
- package/dist/Components/NcActionInput.mjs.map +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 +1 -1
- package/dist/Components/NcActionTextEditable.mjs +1 -1
- package/dist/Components/NcActions.cjs +40 -40
- package/dist/Components/NcActions.cjs.map +1 -1
- package/dist/Components/NcActions.mjs +37 -37
- package/dist/Components/NcActions.mjs.map +1 -1
- package/dist/Components/NcAppContent.cjs +15 -14
- package/dist/Components/NcAppContent.cjs.map +1 -1
- package/dist/Components/NcAppContent.mjs +35 -34
- package/dist/Components/NcAppContent.mjs.map +1 -1
- package/dist/Components/NcAppNavigation.cjs +14 -14
- package/dist/Components/NcAppNavigation.cjs.map +1 -1
- package/dist/Components/NcAppNavigation.mjs +20 -20
- package/dist/Components/NcAppNavigation.mjs.map +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +2 -2
- package/dist/Components/NcAppNavigationCaption.cjs.map +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +2 -2
- package/dist/Components/NcAppNavigationCaption.mjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +28 -24
- package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +66 -63
- package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +2 -2
- package/dist/Components/NcAppNavigationNewItem.mjs +2 -2
- package/dist/Components/NcAppNavigationSettings.cjs +7 -8
- package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +27 -29
- 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 +31 -30
- package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +30 -29
- package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
- package/dist/Components/NcAppSidebar.cjs +88 -45
- package/dist/Components/NcAppSidebar.cjs.map +1 -1
- package/dist/Components/NcAppSidebar.mjs +158 -112
- package/dist/Components/NcAppSidebar.mjs.map +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +4 -3
- package/dist/Components/NcBreadcrumb.cjs.map +1 -1
- package/dist/Components/NcBreadcrumb.mjs +6 -5
- package/dist/Components/NcBreadcrumb.mjs.map +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +26 -19
- package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +48 -41
- package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +48 -38
- package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +73 -63
- package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
- package/dist/Components/NcColorPicker.cjs +35 -12
- package/dist/Components/NcColorPicker.cjs.map +1 -1
- package/dist/Components/NcColorPicker.mjs +52 -29
- package/dist/Components/NcColorPicker.mjs.map +1 -1
- package/dist/Components/NcDashboardWidget.cjs +7 -6
- package/dist/Components/NcDashboardWidget.cjs.map +1 -1
- package/dist/Components/NcDashboardWidget.mjs +17 -16
- package/dist/Components/NcDashboardWidget.mjs.map +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTime.cjs +15 -13
- package/dist/Components/NcDateTime.cjs.map +1 -1
- package/dist/Components/NcDateTime.mjs +12 -11
- package/dist/Components/NcDateTime.mjs.map +1 -1
- package/dist/Components/NcDateTimePicker.cjs +24 -23
- package/dist/Components/NcDateTimePicker.cjs.map +1 -1
- package/dist/Components/NcDateTimePicker.mjs +36 -36
- package/dist/Components/NcDateTimePicker.mjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.cjs +3 -3
- package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +3 -3
- package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
- package/dist/Components/NcDialog.cjs +21 -20
- package/dist/Components/NcDialog.cjs.map +1 -1
- package/dist/Components/NcDialog.mjs +30 -28
- package/dist/Components/NcDialog.mjs.map +1 -1
- package/dist/Components/NcDialogButton.cjs +1 -1
- package/dist/Components/NcDialogButton.cjs.map +1 -1
- package/dist/Components/NcDialogButton.mjs +1 -1
- package/dist/Components/NcDialogButton.mjs.map +1 -1
- package/dist/Components/NcEmojiPicker.cjs +2 -1
- package/dist/Components/NcEmojiPicker.cjs.map +1 -1
- package/dist/Components/NcEmojiPicker.mjs +18 -17
- package/dist/Components/NcEmojiPicker.mjs.map +1 -1
- package/dist/Components/NcHeaderMenu.cjs +8 -8
- package/dist/Components/NcHeaderMenu.cjs.map +1 -1
- package/dist/Components/NcHeaderMenu.mjs +6 -6
- package/dist/Components/NcHeaderMenu.mjs.map +1 -1
- package/dist/Components/NcInputField.cjs +15 -4
- package/dist/Components/NcInputField.cjs.map +1 -1
- package/dist/Components/NcInputField.mjs +18 -7
- package/dist/Components/NcInputField.mjs.map +1 -1
- package/dist/Components/NcListItem.cjs +15 -10
- package/dist/Components/NcListItem.cjs.map +1 -1
- package/dist/Components/NcListItem.mjs +22 -17
- 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 +50 -46
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +66 -63
- package/dist/Components/NcModal.mjs.map +1 -1
- package/dist/Components/NcPasswordField.cjs +14 -12
- package/dist/Components/NcPasswordField.cjs.map +1 -1
- package/dist/Components/NcPasswordField.mjs +25 -23
- package/dist/Components/NcPasswordField.mjs.map +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +6 -4
- package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +24 -22
- package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
- package/dist/Components/NcRichContenteditable.cjs +113 -82
- package/dist/Components/NcRichContenteditable.cjs.map +1 -1
- package/dist/Components/NcRichContenteditable.mjs +89 -55
- 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 +22 -21
- package/dist/Components/NcSelect.cjs.map +1 -1
- package/dist/Components/NcSelect.mjs +28 -28
- package/dist/Components/NcSelect.mjs.map +1 -1
- package/dist/Components/NcSelectTags.cjs +4 -2
- package/dist/Components/NcSelectTags.cjs.map +1 -1
- package/dist/Components/NcSelectTags.mjs +46 -44
- package/dist/Components/NcSelectTags.mjs.map +1 -1
- package/dist/Components/NcSettingsInputText.cjs +5 -4
- package/dist/Components/NcSettingsInputText.cjs.map +1 -1
- package/dist/Components/NcSettingsInputText.mjs +15 -14
- package/dist/Components/NcSettingsInputText.mjs.map +1 -1
- package/dist/Components/NcSettingsSection.cjs +8 -6
- package/dist/Components/NcSettingsSection.cjs.map +1 -1
- package/dist/Components/NcSettingsSection.mjs +18 -17
- 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 +5 -5
- package/dist/Components/NcTextArea.cjs.map +1 -1
- package/dist/Components/NcTextArea.mjs +4 -4
- package/dist/Components/NcTextArea.mjs.map +1 -1
- package/dist/Components/NcTextField.cjs +4 -2
- package/dist/Components/NcTextField.cjs.map +1 -1
- package/dist/Components/NcTextField.mjs +19 -17
- package/dist/Components/NcTextField.mjs.map +1 -1
- package/dist/Components/NcTimezonePicker.cjs +10 -8
- package/dist/Components/NcTimezonePicker.cjs.map +1 -1
- package/dist/Components/NcTimezonePicker.mjs +35 -33
- package/dist/Components/NcTimezonePicker.mjs.map +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Composables/useIsMobile.cjs +13 -8
- package/dist/Composables/useIsMobile.cjs.map +1 -1
- package/dist/Composables/useIsMobile.mjs +15 -10
- package/dist/Composables/useIsMobile.mjs.map +1 -1
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.cjs.map +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/Functions/usernameToColor.mjs.map +1 -1
- package/dist/assets/{NcAppNavigationToggle-9e170630.css → NcAppNavigationToggle-48c375e8.css} +4 -2
- package/dist/assets/{NcSettingsSelectGroup-6ddb63a6.css → NcSettingsSelectGroup-a29e2156.css} +2 -2
- package/dist/assets/{index-a9d1ad5c.css → index-13720a46.css} +24 -24
- package/dist/assets/{index-93bc89ef.css → index-1a317434.css} +9 -12
- package/dist/assets/{index-a0532427.css → index-2a1ec06b.css} +42 -36
- package/dist/assets/{index-3d1ccc15.css → index-2d5cf6b2.css} +45 -45
- package/dist/assets/index-3b654875.css +144 -0
- package/dist/assets/{index-4437e6bf.css → index-5784183b.css} +8 -8
- package/dist/assets/{index-e9fce208.css → index-7868494b.css} +16 -16
- package/dist/assets/{index-db846386.css → index-7f77b8ae.css} +49 -45
- package/dist/assets/{index-dc612aa3.css → index-86454928.css} +15 -12
- package/dist/assets/{index-2d4de2fc.css → index-8b327013.css} +11 -3
- package/dist/assets/{index-30ca9574.css → index-97305c1f.css} +27 -40
- package/dist/assets/{index-73ded07b.css → index-a3c23731.css} +63 -63
- package/dist/assets/{index-5c74e333.css → index-a7fc7815.css} +16 -16
- package/dist/assets/{index-51c1f2a9.css → index-a9999048.css} +13 -20
- package/dist/assets/{index-3764a447.css → index-aacb7cf8.css} +16 -16
- package/dist/assets/{index-d1c0876d.css → index-b0bba2fc.css} +11 -11
- package/dist/assets/{index-b991895f.css → index-c20f9f7e.css} +15 -15
- package/dist/assets/{index-f8d6daf3.css → index-d8bc189c.css} +38 -41
- package/dist/assets/{index-ffa6d11c.css → index-dab51681.css} +64 -31
- package/dist/assets/{index-4e03d941.css → index-f24e102f.css} +49 -48
- package/dist/assets/{index-4611417f.css → index-f5162bbd.css} +7 -7
- package/dist/assets/{index-34dfc54e.css → index-f78bd735.css} +13 -13
- package/dist/assets/{index-edee3304.css → index-fe84a063.css} +6 -7
- package/dist/chunks/GenColors-5c054042.mjs +137 -0
- package/dist/chunks/GenColors-5c054042.mjs.map +1 -0
- package/dist/chunks/GenColors-7495e6f6.cjs +136 -0
- package/dist/chunks/GenColors-7495e6f6.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationToggle-2574bba5.mjs → NcAppNavigationToggle-0bc638a8.mjs} +27 -31
- package/dist/chunks/{NcAppNavigationToggle-2574bba5.mjs.map → NcAppNavigationToggle-0bc638a8.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-1301e882.cjs → NcAppNavigationToggle-6d192bea.cjs} +27 -30
- package/dist/chunks/{NcAppNavigationToggle-1301e882.cjs.map → NcAppNavigationToggle-6d192bea.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-a612e6a3.mjs → NcInputConfirmCancel-a08c5cb4.mjs} +14 -13
- package/dist/chunks/{NcInputConfirmCancel-a612e6a3.mjs.map → NcInputConfirmCancel-a08c5cb4.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-9906b563.cjs → NcInputConfirmCancel-b99898db.cjs} +8 -7
- package/dist/chunks/{NcInputConfirmCancel-9906b563.cjs.map → NcInputConfirmCancel-b99898db.cjs.map} +1 -1
- package/dist/chunks/{NcRichText-f5cfcd57.mjs → NcRichText-e4bf7767.mjs} +1 -1
- package/dist/chunks/{NcRichText-f5cfcd57.mjs.map → NcRichText-e4bf7767.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-9f77a9c6.cjs → NcRichText-f729896c.cjs} +1 -1
- package/dist/chunks/{NcRichText-9f77a9c6.cjs.map → NcRichText-f729896c.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-0f71fef4.cjs → NcSettingsSelectGroup-b065ffc8.cjs} +18 -17
- package/dist/chunks/NcSettingsSelectGroup-b065ffc8.cjs.map +1 -0
- package/dist/chunks/{NcSettingsSelectGroup-091c0306.mjs → NcSettingsSelectGroup-ecc8bc5a.mjs} +19 -19
- package/dist/chunks/NcSettingsSelectGroup-ecc8bc5a.mjs.map +1 -0
- package/dist/chunks/{ScopeComponent-df4b58b1.cjs → ScopeComponent-06c558d3.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-df4b58b1.cjs.map → ScopeComponent-06c558d3.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-3ea00dcd.mjs → ScopeComponent-b039a43c.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-3ea00dcd.mjs.map → ScopeComponent-b039a43c.mjs.map} +1 -1
- package/dist/chunks/_l10n-72c5e29e.cjs +62 -0
- package/dist/chunks/_l10n-72c5e29e.cjs.map +1 -0
- package/dist/chunks/_l10n-f5af5269.mjs +64 -0
- package/dist/chunks/_l10n-f5af5269.mjs.map +1 -0
- package/dist/chunks/{actionText-60ff01d1.mjs → actionText-123f26b0.mjs} +3 -3
- package/dist/chunks/{actionText-60ff01d1.mjs.map → actionText-123f26b0.mjs.map} +1 -1
- package/dist/chunks/{actionText-9582810f.cjs → actionText-e450809c.cjs} +5 -5
- package/dist/chunks/{actionText-9582810f.cjs.map → actionText-e450809c.cjs.map} +1 -1
- package/dist/chunks/{index-cea13a24.mjs → index-309426ff.mjs} +123 -77
- package/dist/chunks/index-309426ff.mjs.map +1 -0
- package/dist/chunks/{index-dc10fd2b.cjs → index-693e993c.cjs} +109 -64
- package/dist/chunks/index-693e993c.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-c2f33569.mjs → referencePickerModal-12935fb3.mjs} +175 -169
- package/dist/chunks/{referencePickerModal-c2f33569.mjs.map → referencePickerModal-12935fb3.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-aa5d3f47.cjs → referencePickerModal-12fa2ad0.cjs} +36 -30
- package/dist/chunks/{referencePickerModal-aa5d3f47.cjs.map → referencePickerModal-12fa2ad0.cjs.map} +1 -1
- package/dist/index.cjs +93 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +96 -95
- package/dist/index.mjs.map +1 -1
- package/dist/utils/UserStatus.d.ts +26 -0
- package/package.json +10 -4
- package/dist/assets/index-2e5e3b55.css +0 -151
- package/dist/chunks/GenColors-02173e2c.mjs +0 -56
- package/dist/chunks/GenColors-02173e2c.mjs.map +0 -1
- package/dist/chunks/GenColors-4314c256.cjs +0 -55
- package/dist/chunks/GenColors-4314c256.cjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-091c0306.mjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-0f71fef4.cjs.map +0 -1
- package/dist/chunks/index-cea13a24.mjs.map +0 -1
- package/dist/chunks/index-dc10fd2b.cjs.map +0 -1
- package/dist/chunks/l10n-a12cdbfa.cjs +0 -8
- package/dist/chunks/l10n-a12cdbfa.cjs.map +0 -1
- package/dist/chunks/l10n-c603e589.mjs +0 -10
- package/dist/chunks/l10n-c603e589.mjs.map +0 -1
- package/dist/chunks/l10n-e9ffbe5e.cjs +0 -29
- package/dist/chunks/l10n-e9ffbe5e.cjs.map +0 -1
- package/dist/chunks/l10n-ef44019c.mjs +0 -31
- package/dist/chunks/l10n-ef44019c.mjs.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "../assets/referencePickerModal-3a127978.css";
|
|
2
2
|
import { n as c } from "./_plugin-vue2_normalizer-71e2aa87.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { loadState as
|
|
6
|
-
import { imagePath as
|
|
7
|
-
import
|
|
8
|
-
import { N as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { D as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { emit as
|
|
16
|
-
import { A as
|
|
17
|
-
import { C as
|
|
18
|
-
import
|
|
3
|
+
import { r as _, h as E, a as n, i as I, j as P, k as O, l as B, m as M, f as V, n as W } from "./_l10n-f5af5269.mjs";
|
|
4
|
+
import m from "@nextcloud/axios";
|
|
5
|
+
import { loadState as w } from "@nextcloud/initial-state";
|
|
6
|
+
import { imagePath as q, generateOcsUrl as p } from "@nextcloud/router";
|
|
7
|
+
import f from "../Components/NcEmptyContent.mjs";
|
|
8
|
+
import { N as b } from "./index-20a9ace9.mjs";
|
|
9
|
+
import S from "../Components/NcSelect.mjs";
|
|
10
|
+
import T from "../Components/NcLoadingIcon.mjs";
|
|
11
|
+
import j from "../Components/NcTextField.mjs";
|
|
12
|
+
import { D as z } from "./DotsHorizontal-0ee7d901.mjs";
|
|
13
|
+
import D from "../Components/NcButton.mjs";
|
|
14
|
+
import A from "../Components/NcModal.mjs";
|
|
15
|
+
import { emit as F } from "@nextcloud/event-bus";
|
|
16
|
+
import { A as U } from "./ArrowLeft-3779ba88.mjs";
|
|
17
|
+
import { C as Q } from "./Close-271f72e2.mjs";
|
|
18
|
+
import G from "vue";
|
|
19
19
|
window._vue_richtext_widgets || (window._vue_richtext_widgets = {});
|
|
20
|
-
const
|
|
20
|
+
const H = (t) => !!window._vue_richtext_widgets[t], Z = (t, e, r = (s) => {
|
|
21
21
|
}) => {
|
|
22
22
|
if (window._vue_richtext_widgets[t]) {
|
|
23
23
|
console.error("Widget for id " + t + " already registered");
|
|
@@ -28,7 +28,7 @@ const T = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
|
|
|
28
28
|
callback: e,
|
|
29
29
|
onDestroy: r
|
|
30
30
|
};
|
|
31
|
-
},
|
|
31
|
+
}, J = (t, { richObjectType: e, richObject: r, accessible: s }) => {
|
|
32
32
|
if (e !== "open-graph") {
|
|
33
33
|
if (!window._vue_richtext_widgets[e]) {
|
|
34
34
|
console.error("Widget for rich object type " + e + " not registered");
|
|
@@ -36,11 +36,11 @@ const T = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
|
|
|
36
36
|
}
|
|
37
37
|
window._vue_richtext_widgets[e].callback(t, { richObjectType: e, richObject: r, accessible: s });
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, K = (t, e) => {
|
|
40
40
|
t !== "open-graph" && window._vue_richtext_widgets[t] && window._vue_richtext_widgets[t].onDestroy(e);
|
|
41
41
|
};
|
|
42
|
-
window._registerWidget =
|
|
43
|
-
const
|
|
42
|
+
window._registerWidget = Z;
|
|
43
|
+
const X = {
|
|
44
44
|
name: "NcReferenceWidget",
|
|
45
45
|
props: {
|
|
46
46
|
reference: {
|
|
@@ -55,7 +55,7 @@ const A = {
|
|
|
55
55
|
},
|
|
56
56
|
computed: {
|
|
57
57
|
hasCustomWidget() {
|
|
58
|
-
return
|
|
58
|
+
return H(this.reference.richObjectType);
|
|
59
59
|
},
|
|
60
60
|
noAccess() {
|
|
61
61
|
return this.reference && !this.reference.accessible;
|
|
@@ -82,33 +82,33 @@ const A = {
|
|
|
82
82
|
}), this.observer.observe(this.$el);
|
|
83
83
|
},
|
|
84
84
|
beforeDestroy() {
|
|
85
|
-
this.observer.disconnect(),
|
|
85
|
+
this.observer.disconnect(), K(this.reference.richObjectType, this.$el);
|
|
86
86
|
},
|
|
87
87
|
methods: {
|
|
88
88
|
renderWidget() {
|
|
89
89
|
var t;
|
|
90
90
|
this.$refs.customWidget && (this.$refs.customWidget.innerHTML = ""), ((t = this == null ? void 0 : this.reference) == null ? void 0 : t.richObjectType) !== "open-graph" && this.$nextTick(() => {
|
|
91
|
-
|
|
91
|
+
J(this.$refs.customWidget, this.reference);
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
var
|
|
96
|
+
var Y = function() {
|
|
97
97
|
var e = this, r = e._self._c;
|
|
98
98
|
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()]);
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
}, ee = [], te = /* @__PURE__ */ c(
|
|
100
|
+
X,
|
|
101
|
+
Y,
|
|
102
|
+
ee,
|
|
103
103
|
!1,
|
|
104
104
|
null,
|
|
105
105
|
"b1c5a80f",
|
|
106
106
|
null,
|
|
107
107
|
null
|
|
108
108
|
);
|
|
109
|
-
const
|
|
109
|
+
const re = te.exports;
|
|
110
110
|
window._vue_richtext_custom_picker_elements || (window._vue_richtext_custom_picker_elements = {});
|
|
111
|
-
class
|
|
111
|
+
class pt {
|
|
112
112
|
/**
|
|
113
113
|
* @param {HTMLElement} element The HTML element
|
|
114
114
|
* @param {object} object The object
|
|
@@ -117,11 +117,11 @@ class nt {
|
|
|
117
117
|
this.element = e, this.object = r;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
const h = (t) => !!window._vue_richtext_custom_picker_elements[t],
|
|
120
|
+
const h = (t) => !!window._vue_richtext_custom_picker_elements[t], se = (t) => {
|
|
121
121
|
var r;
|
|
122
122
|
const e = (r = window._vue_richtext_custom_picker_elements[t]) == null ? void 0 : r.size;
|
|
123
123
|
return ["small", "normal", "large", "full"].includes(e) ? e : null;
|
|
124
|
-
},
|
|
124
|
+
}, ie = (t, e, r = (i) => {
|
|
125
125
|
}, s = "large") => {
|
|
126
126
|
if (window._vue_richtext_custom_picker_elements[t]) {
|
|
127
127
|
console.error("Custom reference picker element for id " + t + " already registered");
|
|
@@ -133,17 +133,17 @@ const h = (t) => !!window._vue_richtext_custom_picker_elements[t], H = (t) => {
|
|
|
133
133
|
onDestroy: r,
|
|
134
134
|
size: s
|
|
135
135
|
};
|
|
136
|
-
},
|
|
136
|
+
}, ne = (t, { providerId: e, accessible: r }) => {
|
|
137
137
|
if (!window._vue_richtext_custom_picker_elements[e]) {
|
|
138
138
|
console.error("Custom reference picker element for reference provider ID " + e + " not registered");
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
return window._vue_richtext_custom_picker_elements[e].callback(t, { providerId: e, accessible: r });
|
|
142
|
-
},
|
|
142
|
+
}, oe = (t, e, r) => {
|
|
143
143
|
window._vue_richtext_custom_picker_elements[t] && window._vue_richtext_custom_picker_elements[t].onDestroy(e, r);
|
|
144
144
|
};
|
|
145
|
-
window._registerCustomPickerElement =
|
|
146
|
-
const
|
|
145
|
+
window._registerCustomPickerElement = ie;
|
|
146
|
+
const ce = {
|
|
147
147
|
name: "NcCustomPickerElement",
|
|
148
148
|
props: {
|
|
149
149
|
/**
|
|
@@ -168,12 +168,12 @@ const X = {
|
|
|
168
168
|
this.isRegistered && this.renderElement();
|
|
169
169
|
},
|
|
170
170
|
beforeDestroy() {
|
|
171
|
-
this.isRegistered &&
|
|
171
|
+
this.isRegistered && oe(this.provider.id, this.$el, this.renderResult);
|
|
172
172
|
},
|
|
173
173
|
methods: {
|
|
174
174
|
renderElement() {
|
|
175
175
|
this.$refs.domElement && (this.$refs.domElement.innerHTML = "");
|
|
176
|
-
const t =
|
|
176
|
+
const t = ne(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
|
|
177
177
|
Promise.resolve(t).then((e) => {
|
|
178
178
|
var r, s;
|
|
179
179
|
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) => {
|
|
@@ -189,71 +189,74 @@ const X = {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
var
|
|
192
|
+
var le = function() {
|
|
193
193
|
var e = this, r = e._self._c;
|
|
194
194
|
return r("div", { ref: "domElement" });
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
}, ae = [], ue = /* @__PURE__ */ c(
|
|
196
|
+
ce,
|
|
197
|
+
le,
|
|
198
|
+
ae,
|
|
199
199
|
!1,
|
|
200
200
|
null,
|
|
201
201
|
"cf695ff9",
|
|
202
202
|
null,
|
|
203
203
|
null
|
|
204
204
|
);
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
const de = ue.exports;
|
|
206
|
+
_(E);
|
|
207
|
+
const R = "any-link", x = {
|
|
208
|
+
id: R,
|
|
207
209
|
title: n("Any link"),
|
|
208
|
-
icon_url:
|
|
210
|
+
icon_url: q("core", "filetypes/link.svg")
|
|
209
211
|
};
|
|
210
|
-
window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers =
|
|
211
|
-
window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps =
|
|
212
|
-
function
|
|
213
|
-
return t ===
|
|
212
|
+
window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = w("core", "reference-provider-list", []));
|
|
213
|
+
window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = w("core", "reference-provider-timestamps", {}));
|
|
214
|
+
function he(t) {
|
|
215
|
+
return t === R ? x : $().find((e) => e.id === t);
|
|
214
216
|
}
|
|
215
|
-
function
|
|
217
|
+
function $() {
|
|
216
218
|
return window._vue_richtext_reference_providers.filter((t) => {
|
|
217
219
|
const e = !!t.search_providers_ids && t.search_providers_ids.length > 0 || h(t.id);
|
|
218
220
|
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;
|
|
219
221
|
});
|
|
220
222
|
}
|
|
221
|
-
function
|
|
223
|
+
function _e(t) {
|
|
222
224
|
const e = window._vue_richtext_reference_provider_timestamps;
|
|
223
225
|
return t.sort((r, s) => r.order === s.order ? 0 : r.order > s.order ? 1 : -1).sort((r, s) => {
|
|
224
226
|
const i = e[r.id], o = e[s.id];
|
|
225
227
|
return i === o ? 0 : o === void 0 ? -1 : i === void 0 ? 1 : i > o ? -1 : 1;
|
|
226
228
|
});
|
|
227
229
|
}
|
|
228
|
-
function
|
|
229
|
-
const r =
|
|
230
|
-
return (t === "" || u.length === 0) && u.push(
|
|
230
|
+
function pe(t, e = null) {
|
|
231
|
+
const r = $(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), l = _e(r).filter((a) => a.title.match(i)), u = e ? l.slice(0, e) : l;
|
|
232
|
+
return (t === "" || u.length === 0) && u.push(x), u;
|
|
231
233
|
}
|
|
232
|
-
function
|
|
234
|
+
function me(t) {
|
|
233
235
|
const e = Math.floor(Date.now() / 1e3), r = {
|
|
234
236
|
timestamp: e
|
|
235
|
-
}, s =
|
|
236
|
-
|
|
237
|
+
}, s = p("references/provider/{providerId}", { providerId: t });
|
|
238
|
+
m.put(s, r).then((i) => {
|
|
237
239
|
window._vue_richtext_reference_provider_timestamps[t] = e;
|
|
238
240
|
});
|
|
239
241
|
}
|
|
240
|
-
let
|
|
241
|
-
function
|
|
242
|
+
let k = 0;
|
|
243
|
+
function L(t, e) {
|
|
242
244
|
return function() {
|
|
243
245
|
const r = this, s = arguments;
|
|
244
|
-
clearTimeout(
|
|
246
|
+
clearTimeout(k), k = setTimeout(function() {
|
|
245
247
|
t.apply(r, s);
|
|
246
248
|
}, e || 0);
|
|
247
249
|
};
|
|
248
250
|
}
|
|
249
|
-
function
|
|
251
|
+
function v(t) {
|
|
250
252
|
try {
|
|
251
253
|
return !!new URL(t);
|
|
252
254
|
} catch {
|
|
253
255
|
return !1;
|
|
254
256
|
}
|
|
255
257
|
}
|
|
256
|
-
|
|
258
|
+
_(P, I);
|
|
259
|
+
const fe = {
|
|
257
260
|
name: "LinkVariantIcon",
|
|
258
261
|
emits: ["click"],
|
|
259
262
|
props: {
|
|
@@ -270,29 +273,29 @@ const ce = {
|
|
|
270
273
|
}
|
|
271
274
|
}
|
|
272
275
|
};
|
|
273
|
-
var
|
|
276
|
+
var ve = function() {
|
|
274
277
|
var e = this, r = e._self._c;
|
|
275
278
|
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) {
|
|
276
279
|
return e.$emit("click", s);
|
|
277
280
|
} } }, "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()])])]);
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
281
|
+
}, ge = [], ye = /* @__PURE__ */ c(
|
|
282
|
+
fe,
|
|
283
|
+
ve,
|
|
284
|
+
ge,
|
|
282
285
|
!1,
|
|
283
286
|
null,
|
|
284
287
|
null,
|
|
285
288
|
null,
|
|
286
289
|
null
|
|
287
290
|
);
|
|
288
|
-
const
|
|
289
|
-
const
|
|
291
|
+
const g = ye.exports;
|
|
292
|
+
const ke = {
|
|
290
293
|
name: "NcProviderList",
|
|
291
294
|
components: {
|
|
292
|
-
NcSelect:
|
|
293
|
-
NcHighlight:
|
|
294
|
-
NcEmptyContent:
|
|
295
|
-
LinkVariantIcon:
|
|
295
|
+
NcSelect: S,
|
|
296
|
+
NcHighlight: b,
|
|
297
|
+
NcEmptyContent: f,
|
|
298
|
+
LinkVariantIcon: g
|
|
296
299
|
},
|
|
297
300
|
emits: [
|
|
298
301
|
"select-provider",
|
|
@@ -309,11 +312,11 @@ const de = {
|
|
|
309
312
|
computed: {
|
|
310
313
|
options() {
|
|
311
314
|
const t = [];
|
|
312
|
-
return this.query !== "" &&
|
|
315
|
+
return this.query !== "" && v(this.query) && t.push({
|
|
313
316
|
id: this.query,
|
|
314
317
|
title: this.query,
|
|
315
318
|
isLink: !0
|
|
316
|
-
}), t.push(...
|
|
319
|
+
}), t.push(...pe(this.query)), t;
|
|
317
320
|
}
|
|
318
321
|
},
|
|
319
322
|
methods: {
|
|
@@ -331,7 +334,7 @@ const de = {
|
|
|
331
334
|
}
|
|
332
335
|
}
|
|
333
336
|
};
|
|
334
|
-
var
|
|
337
|
+
var Ce = function() {
|
|
335
338
|
var e = this, r = e._self._c;
|
|
336
339
|
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) {
|
|
337
340
|
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)];
|
|
@@ -340,25 +343,26 @@ var he = function() {
|
|
|
340
343
|
}, expression: "selectedProvider" } }), r("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
341
344
|
return [r("LinkVariantIcon")];
|
|
342
345
|
}, proxy: !0 }]) })], 1);
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
346
|
+
}, Pe = [], we = /* @__PURE__ */ c(
|
|
347
|
+
ke,
|
|
348
|
+
Ce,
|
|
349
|
+
Pe,
|
|
347
350
|
!1,
|
|
348
351
|
null,
|
|
349
352
|
"9d850ea5",
|
|
350
353
|
null,
|
|
351
354
|
null
|
|
352
355
|
);
|
|
353
|
-
const
|
|
354
|
-
|
|
356
|
+
const be = we.exports;
|
|
357
|
+
_(O);
|
|
358
|
+
const Se = {
|
|
355
359
|
name: "NcRawLinkInput",
|
|
356
360
|
components: {
|
|
357
|
-
LinkVariantIcon:
|
|
358
|
-
NcEmptyContent:
|
|
359
|
-
NcLoadingIcon:
|
|
360
|
-
NcReferenceWidget:
|
|
361
|
-
NcTextField:
|
|
361
|
+
LinkVariantIcon: g,
|
|
362
|
+
NcEmptyContent: f,
|
|
363
|
+
NcLoadingIcon: T,
|
|
364
|
+
NcReferenceWidget: re,
|
|
365
|
+
NcTextField: j
|
|
362
366
|
},
|
|
363
367
|
props: {
|
|
364
368
|
/**
|
|
@@ -383,7 +387,7 @@ const fe = {
|
|
|
383
387
|
},
|
|
384
388
|
computed: {
|
|
385
389
|
isLinkValid() {
|
|
386
|
-
return
|
|
390
|
+
return v(this.inputValue);
|
|
387
391
|
}
|
|
388
392
|
},
|
|
389
393
|
methods: {
|
|
@@ -399,12 +403,12 @@ const fe = {
|
|
|
399
403
|
this.inputValue = "", this.reference = null;
|
|
400
404
|
},
|
|
401
405
|
onInput() {
|
|
402
|
-
this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid &&
|
|
406
|
+
this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid && L(() => {
|
|
403
407
|
this.updateReference();
|
|
404
408
|
}, 500)();
|
|
405
409
|
},
|
|
406
410
|
updateReference() {
|
|
407
|
-
this.loading = !0, this.abortController = new AbortController(),
|
|
411
|
+
this.loading = !0, this.abortController = new AbortController(), m.get(p("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
|
|
408
412
|
signal: this.abortController.signal
|
|
409
413
|
}).then((t) => {
|
|
410
414
|
this.reference = t.data.ocs.data.references[this.inputValue];
|
|
@@ -416,7 +420,7 @@ const fe = {
|
|
|
416
420
|
}
|
|
417
421
|
}
|
|
418
422
|
};
|
|
419
|
-
var
|
|
423
|
+
var Re = function() {
|
|
420
424
|
var e = this, r = e._self._c;
|
|
421
425
|
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) {
|
|
422
426
|
e.inputValue = s;
|
|
@@ -425,21 +429,21 @@ var ve = function() {
|
|
|
425
429
|
} } }, [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() {
|
|
426
430
|
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
427
431
|
}, proxy: !0 }]) })], 1);
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
+
}, xe = [], $e = /* @__PURE__ */ c(
|
|
433
|
+
Se,
|
|
434
|
+
Re,
|
|
435
|
+
xe,
|
|
432
436
|
!1,
|
|
433
437
|
null,
|
|
434
438
|
"d0ba247a",
|
|
435
439
|
null,
|
|
436
440
|
null
|
|
437
441
|
);
|
|
438
|
-
const
|
|
439
|
-
const
|
|
442
|
+
const Le = $e.exports;
|
|
443
|
+
const Ne = {
|
|
440
444
|
name: "NcSearchResult",
|
|
441
445
|
components: {
|
|
442
|
-
NcHighlight:
|
|
446
|
+
NcHighlight: b
|
|
443
447
|
},
|
|
444
448
|
props: {
|
|
445
449
|
/**
|
|
@@ -459,28 +463,29 @@ const Ce = {
|
|
|
459
463
|
}
|
|
460
464
|
}
|
|
461
465
|
};
|
|
462
|
-
var
|
|
466
|
+
var Ee = function() {
|
|
463
467
|
var e = this, r = e._self._c;
|
|
464
468
|
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)])]);
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
+
}, Ie = [], Oe = /* @__PURE__ */ c(
|
|
470
|
+
Ne,
|
|
471
|
+
Ee,
|
|
472
|
+
Ie,
|
|
469
473
|
!1,
|
|
470
474
|
null,
|
|
471
475
|
"7a394a58",
|
|
472
476
|
null,
|
|
473
477
|
null
|
|
474
478
|
);
|
|
475
|
-
const
|
|
476
|
-
|
|
479
|
+
const Be = Oe.exports;
|
|
480
|
+
_(M, P, B);
|
|
481
|
+
const C = 5, Me = {
|
|
477
482
|
name: "NcSearch",
|
|
478
483
|
components: {
|
|
479
|
-
LinkVariantIcon:
|
|
480
|
-
DotsHorizontalIcon:
|
|
481
|
-
NcEmptyContent:
|
|
482
|
-
NcSelect:
|
|
483
|
-
NcSearchResult:
|
|
484
|
+
LinkVariantIcon: g,
|
|
485
|
+
DotsHorizontalIcon: z,
|
|
486
|
+
NcEmptyContent: f,
|
|
487
|
+
NcSelect: S,
|
|
488
|
+
NcSearchResult: Be
|
|
484
489
|
},
|
|
485
490
|
props: {
|
|
486
491
|
/**
|
|
@@ -525,7 +530,7 @@ const k = 5, Re = {
|
|
|
525
530
|
if (this.searchQuery === "")
|
|
526
531
|
return [];
|
|
527
532
|
const t = [];
|
|
528
|
-
return
|
|
533
|
+
return v(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
|
|
529
534
|
},
|
|
530
535
|
rawLinkEntry() {
|
|
531
536
|
return {
|
|
@@ -585,7 +590,7 @@ const k = 5, Re = {
|
|
|
585
590
|
this.abortController && this.abortController.abort();
|
|
586
591
|
},
|
|
587
592
|
onSearchInput(t, e) {
|
|
588
|
-
this.searchQuery = t,
|
|
593
|
+
this.searchQuery = t, L(() => {
|
|
589
594
|
this.updateSearch();
|
|
590
595
|
}, 500)();
|
|
591
596
|
},
|
|
@@ -613,8 +618,8 @@ const k = 5, Re = {
|
|
|
613
618
|
});
|
|
614
619
|
},
|
|
615
620
|
searchOneProvider(t, e = null) {
|
|
616
|
-
const r = e === null ?
|
|
617
|
-
return
|
|
621
|
+
const r = e === null ? p("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: C }) : p("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: C, cursor: e });
|
|
622
|
+
return m.get(r, {
|
|
618
623
|
signal: this.abortController.signal
|
|
619
624
|
}).then((s) => {
|
|
620
625
|
const i = s.data.ocs.data;
|
|
@@ -623,7 +628,7 @@ const k = 5, Re = {
|
|
|
623
628
|
}
|
|
624
629
|
}
|
|
625
630
|
};
|
|
626
|
-
var
|
|
631
|
+
var Ve = function() {
|
|
627
632
|
var e = this, r = e._self._c;
|
|
628
633
|
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) {
|
|
629
634
|
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()];
|
|
@@ -634,29 +639,29 @@ var xe = function() {
|
|
|
634
639
|
}, expression: "selectedResult" } }), e.showEmptyContent ? r("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
635
640
|
return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { alt: e.providerIconAlt, src: e.provider.icon_url } }) : r("LinkVariantIcon")];
|
|
636
641
|
}, proxy: !0 }], null, !1, 2922132592) }) : e._e()], 1);
|
|
637
|
-
},
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
642
|
+
}, We = [], qe = /* @__PURE__ */ c(
|
|
643
|
+
Me,
|
|
644
|
+
Ve,
|
|
645
|
+
We,
|
|
641
646
|
!1,
|
|
642
647
|
null,
|
|
643
648
|
"97d196f0",
|
|
644
649
|
null,
|
|
645
650
|
null
|
|
646
651
|
);
|
|
647
|
-
const
|
|
652
|
+
const Te = qe.exports;
|
|
648
653
|
const d = {
|
|
649
654
|
providerList: 1,
|
|
650
655
|
standardLinkInput: 2,
|
|
651
656
|
searchInput: 3,
|
|
652
657
|
customElement: 4
|
|
653
|
-
},
|
|
658
|
+
}, je = {
|
|
654
659
|
name: "NcReferencePicker",
|
|
655
660
|
components: {
|
|
656
|
-
NcCustomPickerElement:
|
|
657
|
-
NcProviderList:
|
|
658
|
-
NcRawLinkInput:
|
|
659
|
-
NcSearch:
|
|
661
|
+
NcCustomPickerElement: de,
|
|
662
|
+
NcProviderList: be,
|
|
663
|
+
NcRawLinkInput: Le,
|
|
664
|
+
NcSearch: Te
|
|
660
665
|
},
|
|
661
666
|
props: {
|
|
662
667
|
/**
|
|
@@ -741,7 +746,7 @@ const d = {
|
|
|
741
746
|
this.$emit("cancel");
|
|
742
747
|
},
|
|
743
748
|
submitLink(t) {
|
|
744
|
-
this.selectedProvider !== null &&
|
|
749
|
+
this.selectedProvider !== null && me(this.selectedProvider.id), this.$emit("submit", t), this.deselectProvider();
|
|
745
750
|
},
|
|
746
751
|
deselectProvider() {
|
|
747
752
|
this.selectedProvider = null, this.$emit("provider-selected", null), setTimeout(() => {
|
|
@@ -751,30 +756,31 @@ const d = {
|
|
|
751
756
|
}
|
|
752
757
|
}
|
|
753
758
|
};
|
|
754
|
-
var
|
|
759
|
+
var ze = function() {
|
|
755
760
|
var e = this, r = e._self._c;
|
|
756
761
|
return r("div", { staticClass: "reference-picker", style: e.pickerWrapperStyle, attrs: { tabindex: "-1" }, on: { keydown: function(s) {
|
|
757
762
|
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));
|
|
758
763
|
} } }, [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);
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
764
|
+
}, De = [], Ae = /* @__PURE__ */ c(
|
|
765
|
+
je,
|
|
766
|
+
ze,
|
|
767
|
+
De,
|
|
763
768
|
!1,
|
|
764
769
|
null,
|
|
765
770
|
"aa77d0d3",
|
|
766
771
|
null,
|
|
767
772
|
null
|
|
768
773
|
);
|
|
769
|
-
const
|
|
770
|
-
|
|
774
|
+
const Fe = Ae.exports;
|
|
775
|
+
_(W, V);
|
|
776
|
+
const Ue = {
|
|
771
777
|
name: "NcReferencePickerModal",
|
|
772
778
|
components: {
|
|
773
|
-
NcReferencePicker:
|
|
774
|
-
NcModal:
|
|
775
|
-
NcButton:
|
|
776
|
-
ArrowLeftIcon:
|
|
777
|
-
CloseIcon:
|
|
779
|
+
NcReferencePicker: Fe,
|
|
780
|
+
NcModal: A,
|
|
781
|
+
NcButton: D,
|
|
782
|
+
ArrowLeftIcon: U,
|
|
783
|
+
CloseIcon: Q
|
|
778
784
|
},
|
|
779
785
|
props: {
|
|
780
786
|
/**
|
|
@@ -822,7 +828,7 @@ const Ve = {
|
|
|
822
828
|
},
|
|
823
829
|
modalSize() {
|
|
824
830
|
var t;
|
|
825
|
-
return this.isProviderSelected && h(this.selectedProvider.id) ? (t =
|
|
831
|
+
return this.isProviderSelected && h(this.selectedProvider.id) ? (t = se(this.selectedProvider.id)) != null ? t : "large" : "normal";
|
|
826
832
|
},
|
|
827
833
|
showModalName() {
|
|
828
834
|
return !this.isProviderSelected || !h(this.selectedProvider.id);
|
|
@@ -834,7 +840,7 @@ const Ve = {
|
|
|
834
840
|
mounted() {
|
|
835
841
|
if (this.isInsideViewer) {
|
|
836
842
|
const t = this.$refs.modal_content;
|
|
837
|
-
|
|
843
|
+
F("viewer:trapElements:changed", t);
|
|
838
844
|
}
|
|
839
845
|
},
|
|
840
846
|
methods: {
|
|
@@ -852,30 +858,30 @@ const Ve = {
|
|
|
852
858
|
}
|
|
853
859
|
}
|
|
854
860
|
};
|
|
855
|
-
var
|
|
861
|
+
var Qe = function() {
|
|
856
862
|
var e = this, r = e._self._c;
|
|
857
863
|
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() {
|
|
858
864
|
return [r("ArrowLeftIcon")];
|
|
859
865
|
}, 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() {
|
|
860
866
|
return [r("CloseIcon")];
|
|
861
867
|
}, 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();
|
|
862
|
-
},
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
868
|
+
}, Ge = [], He = /* @__PURE__ */ c(
|
|
869
|
+
Ue,
|
|
870
|
+
Qe,
|
|
871
|
+
Ge,
|
|
866
872
|
!1,
|
|
867
873
|
null,
|
|
868
874
|
"3f1a4ac7",
|
|
869
875
|
null,
|
|
870
876
|
null
|
|
871
877
|
);
|
|
872
|
-
const
|
|
873
|
-
async function
|
|
878
|
+
const Ze = He.exports;
|
|
879
|
+
async function mt(t = null, e = void 0) {
|
|
874
880
|
return await new Promise((r, s) => {
|
|
875
|
-
var
|
|
881
|
+
var y;
|
|
876
882
|
const i = "referencePickerModal", o = document.createElement("div");
|
|
877
883
|
o.id = i, document.body.append(o);
|
|
878
|
-
const l = t === null ? null : (
|
|
884
|
+
const l = t === null ? null : (y = he(t)) != null ? y : null, u = G.extend(Ze), a = new u({
|
|
879
885
|
propsData: {
|
|
880
886
|
initialProvider: l,
|
|
881
887
|
isInsideViewer: e
|
|
@@ -883,27 +889,27 @@ async function ot(t = null, e = void 0) {
|
|
|
883
889
|
}).$mount(o);
|
|
884
890
|
a.$on("cancel", () => {
|
|
885
891
|
a.$destroy(), s(new Error("User cancellation"));
|
|
886
|
-
}), a.$on("submit", (
|
|
887
|
-
a.$destroy(), r(
|
|
892
|
+
}), a.$on("submit", (N) => {
|
|
893
|
+
a.$destroy(), r(N);
|
|
888
894
|
});
|
|
889
895
|
});
|
|
890
896
|
}
|
|
891
897
|
export {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
898
|
+
re as N,
|
|
899
|
+
Fe as a,
|
|
900
|
+
Ze as b,
|
|
901
|
+
Te as c,
|
|
902
|
+
J as d,
|
|
903
|
+
pt as e,
|
|
904
|
+
ie as f,
|
|
905
|
+
ne as g,
|
|
900
906
|
h,
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
907
|
+
H as i,
|
|
908
|
+
mt as j,
|
|
909
|
+
R as k,
|
|
910
|
+
he as l,
|
|
911
|
+
$ as m,
|
|
912
|
+
pe as n,
|
|
913
|
+
Z as r,
|
|
914
|
+
_e as s
|
|
909
915
|
};
|