@nextcloud/vue 8.3.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 +44 -3
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +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 +37 -37
- package/dist/Components/NcActions.cjs.map +1 -1
- package/dist/Components/NcActions.mjs +19 -19
- 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 +1 -1
- package/dist/Components/NcAppNavigation.mjs +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 +19 -18
- package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +22 -21
- 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 +44 -34
- package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +72 -62
- package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
- package/dist/Components/NcColorPicker.cjs +34 -11
- package/dist/Components/NcColorPicker.cjs.map +1 -1
- package/dist/Components/NcColorPicker.mjs +48 -25
- 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 +18 -17
- package/dist/Components/NcDialog.cjs.map +1 -1
- package/dist/Components/NcDialog.mjs +26 -24
- package/dist/Components/NcDialog.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/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-2bc73ee8.css → NcAppNavigationToggle-48c375e8.css} +4 -2
- package/dist/assets/{NcSettingsSelectGroup-6ddb63a6.css → NcSettingsSelectGroup-a29e2156.css} +2 -2
- package/dist/assets/{index-7157aefa.css → index-13720a46.css} +24 -24
- package/dist/assets/{index-93bc89ef.css → index-1a317434.css} +9 -12
- package/dist/assets/{index-3d1ccc15.css → index-2d5cf6b2.css} +45 -45
- package/dist/assets/index-3b654875.css +144 -0
- package/dist/assets/{index-e6a91529.css → index-7f77b8ae.css} +36 -36
- package/dist/assets/{index-9941f384.css → index-86454928.css} +13 -13
- 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-50dc154e.css → index-a7fc7815.css} +16 -16
- package/dist/assets/{index-810b8984.css → index-a9999048.css} +11 -11
- package/dist/assets/{index-3764a447.css → index-aacb7cf8.css} +16 -16
- package/dist/assets/{index-b0a8a48c.css → index-b0bba2fc.css} +11 -11
- package/dist/assets/{index-b991895f.css → index-c20f9f7e.css} +15 -15
- package/dist/assets/{index-5e4bf286.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-f72cef5d.css → index-fe84a063.css} +5 -5
- 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-f5591773.mjs → NcAppNavigationToggle-0bc638a8.mjs} +27 -26
- package/dist/chunks/{NcAppNavigationToggle-6a975868.cjs.map → NcAppNavigationToggle-0bc638a8.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-6a975868.cjs → NcAppNavigationToggle-6d192bea.cjs} +17 -15
- package/dist/chunks/{NcAppNavigationToggle-f5591773.mjs.map → NcAppNavigationToggle-6d192bea.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-7837eb4d.mjs → NcInputConfirmCancel-a08c5cb4.mjs} +14 -13
- package/dist/chunks/{NcInputConfirmCancel-7837eb4d.mjs.map → NcInputConfirmCancel-a08c5cb4.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-790f5902.cjs → NcInputConfirmCancel-b99898db.cjs} +8 -7
- package/dist/chunks/{NcInputConfirmCancel-790f5902.cjs.map → NcInputConfirmCancel-b99898db.cjs.map} +1 -1
- package/dist/chunks/{NcRichText-0db09c78.mjs → NcRichText-e4bf7767.mjs} +1 -1
- package/dist/chunks/{NcRichText-0db09c78.mjs.map → NcRichText-e4bf7767.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-0dd96aac.cjs → NcRichText-f729896c.cjs} +1 -1
- package/dist/chunks/{NcRichText-0dd96aac.cjs.map → NcRichText-f729896c.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-532ba813.cjs → NcSettingsSelectGroup-b065ffc8.cjs} +18 -17
- package/dist/chunks/NcSettingsSelectGroup-b065ffc8.cjs.map +1 -0
- package/dist/chunks/{NcSettingsSelectGroup-cdd84895.mjs → NcSettingsSelectGroup-ecc8bc5a.mjs} +19 -19
- package/dist/chunks/NcSettingsSelectGroup-ecc8bc5a.mjs.map +1 -0
- package/dist/chunks/{ScopeComponent-92144d97.cjs → ScopeComponent-06c558d3.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-92144d97.cjs.map → ScopeComponent-06c558d3.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-ac5265f5.mjs → ScopeComponent-b039a43c.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-ac5265f5.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-efb07851.mjs → index-309426ff.mjs} +123 -77
- package/dist/chunks/index-309426ff.mjs.map +1 -0
- package/dist/chunks/{index-32c8b581.cjs → index-693e993c.cjs} +109 -64
- package/dist/chunks/index-693e993c.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-ded8273d.mjs → referencePickerModal-12935fb3.mjs} +175 -169
- package/dist/chunks/{referencePickerModal-ded8273d.mjs.map → referencePickerModal-12935fb3.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-90dac0d0.cjs → referencePickerModal-12fa2ad0.cjs} +36 -30
- package/dist/chunks/{referencePickerModal-90dac0d0.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-12ec1caa.mjs +0 -56
- package/dist/chunks/GenColors-12ec1caa.mjs.map +0 -1
- package/dist/chunks/GenColors-a8d54566.cjs +0 -55
- package/dist/chunks/GenColors-a8d54566.cjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-532ba813.cjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-cdd84895.mjs.map +0 -1
- package/dist/chunks/index-32c8b581.cjs.map +0 -1
- package/dist/chunks/index-efb07851.mjs.map +0 -1
- package/dist/chunks/l10n-070da9ad.cjs +0 -29
- package/dist/chunks/l10n-070da9ad.cjs.map +0 -1
- package/dist/chunks/l10n-1b905a9a.mjs +0 -31
- package/dist/chunks/l10n-1b905a9a.mjs.map +0 -1
- package/dist/chunks/l10n-38626490.cjs +0 -8
- package/dist/chunks/l10n-38626490.cjs.map +0 -1
- package/dist/chunks/l10n-6cfc1200.mjs +0 -10
- package/dist/chunks/l10n-6cfc1200.mjs.map +0 -1
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import "../assets/index-
|
|
1
|
+
import "../assets/index-2d5cf6b2.css";
|
|
2
2
|
import n from "./NcVNodes.mjs";
|
|
3
|
-
import
|
|
3
|
+
import o from "./NcCheckboxRadioSwitch.mjs";
|
|
4
4
|
import { n as s } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
|
|
5
|
-
import
|
|
5
|
+
import l from "./NcActions.mjs";
|
|
6
6
|
import c from "./NcLoadingIcon.mjs";
|
|
7
7
|
import u from "./NcButton.mjs";
|
|
8
8
|
import d from "./NcEmptyContent.mjs";
|
|
9
9
|
import { directive as p } from "../Directives/Focus.mjs";
|
|
10
10
|
import { directive as f } from "../Directives/Linkify.mjs";
|
|
11
11
|
import "../Directives/Tooltip.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
12
|
+
import { useIsSmallMobile as m } from "../Composables/useIsMobile.mjs";
|
|
13
|
+
import { g as b } from "../chunks/focusTrap-5d0f71d4.mjs";
|
|
14
|
+
import { r as h, L as _, a as r } from "../chunks/_l10n-f5af5269.mjs";
|
|
15
|
+
import { A as y } from "../chunks/ArrowRight-74a9fcb2.mjs";
|
|
16
|
+
import { C as g } from "../chunks/Close-271f72e2.mjs";
|
|
17
|
+
import { vOnClickOutside as k } from "@vueuse/components";
|
|
18
|
+
import { createFocusTrap as v } from "focus-trap";
|
|
19
|
+
import { VTooltip as T } from "floating-vue";
|
|
20
|
+
const C = {
|
|
18
21
|
name: "NcAppSidebarTabs",
|
|
19
22
|
components: {
|
|
20
|
-
NcCheckboxRadioSwitch:
|
|
23
|
+
NcCheckboxRadioSwitch: o,
|
|
21
24
|
NcVNodes: n
|
|
22
25
|
},
|
|
23
26
|
provide() {
|
|
@@ -132,7 +135,7 @@ const y = {
|
|
|
132
135
|
* @param {object} tab child tab passed to slot
|
|
133
136
|
*/
|
|
134
137
|
registerTab(i) {
|
|
135
|
-
this.tabs.push(i), this.tabs.sort((
|
|
138
|
+
this.tabs.push(i), this.tabs.sort((e, a) => e.order === a.order ? OC.Util.naturalSortCompare(e.name, a.name) : e.order - a.order), this.updateActive();
|
|
136
139
|
},
|
|
137
140
|
/**
|
|
138
141
|
* Unregister child tab from the tabs
|
|
@@ -140,45 +143,47 @@ const y = {
|
|
|
140
143
|
* @param {string} id tab's id
|
|
141
144
|
*/
|
|
142
145
|
unregisterTab(i) {
|
|
143
|
-
const
|
|
144
|
-
|
|
146
|
+
const e = this.tabs.findIndex((a) => a.id === i);
|
|
147
|
+
e !== -1 && this.tabs.splice(e, 1), this.activeTab === i && this.updateActive();
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
150
|
};
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
return a("div", { staticClass: "app-sidebar-tabs" }, [
|
|
151
|
-
return !
|
|
152
|
-
}, function(
|
|
153
|
-
return !
|
|
154
|
-
}, function(
|
|
155
|
-
return !
|
|
156
|
-
}, function(
|
|
157
|
-
return !
|
|
158
|
-
}, function(
|
|
159
|
-
return !
|
|
160
|
-
}, function(
|
|
161
|
-
return !
|
|
162
|
-
}, function(
|
|
163
|
-
return !
|
|
164
|
-
}] } },
|
|
165
|
-
return a("NcCheckboxRadioSwitch", { key:
|
|
166
|
-
return
|
|
167
|
-
} }, scopedSlots:
|
|
168
|
-
return [a("NcVNodes", { attrs: { vnodes:
|
|
169
|
-
}, proxy: !0 }], null, !0) }, [a("span", { staticClass: "app-sidebar-tabs__tab-caption" }, [
|
|
170
|
-
}), 1) :
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
151
|
+
var S = function() {
|
|
152
|
+
var e = this, a = e._self._c;
|
|
153
|
+
return a("div", { staticClass: "app-sidebar-tabs" }, [e.hasMultipleTabs ? a("div", { staticClass: "app-sidebar-tabs__nav", attrs: { role: "tablist" }, on: { keydown: [function(t) {
|
|
154
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "left", 37, t.key, ["Left", "ArrowLeft"]) || "button" in t && t.button !== 0 || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusPreviousTab.apply(null, arguments));
|
|
155
|
+
}, function(t) {
|
|
156
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "right", 39, t.key, ["Right", "ArrowRight"]) || "button" in t && t.button !== 2 || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusNextTab.apply(null, arguments));
|
|
157
|
+
}, function(t) {
|
|
158
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusActiveTabContent.apply(null, arguments));
|
|
159
|
+
}, function(t) {
|
|
160
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "home", void 0, t.key, void 0) || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusFirstTab.apply(null, arguments));
|
|
161
|
+
}, function(t) {
|
|
162
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "end", void 0, t.key, void 0) || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusLastTab.apply(null, arguments));
|
|
163
|
+
}, function(t) {
|
|
164
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "page-up", void 0, t.key, void 0) || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusFirstTab.apply(null, arguments));
|
|
165
|
+
}, function(t) {
|
|
166
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "page-down", void 0, t.key, void 0) || t.ctrlKey || t.shiftKey || t.altKey || t.metaKey ? null : (t.preventDefault(), t.stopPropagation(), e.focusLastTab.apply(null, arguments));
|
|
167
|
+
}] } }, e._l(e.tabs, function(t) {
|
|
168
|
+
return a("NcCheckboxRadioSwitch", { key: t.id, staticClass: "app-sidebar-tabs__tab", class: { active: t.id === e.activeTab }, attrs: { "aria-controls": `tab-${t.id}`, "aria-selected": String(e.activeTab === t.id), "button-variant": !0, checked: e.activeTab === t.id, "wrapper-id": `tab-button-${t.id}`, tabindex: e.activeTab === t.id ? 0 : -1, "button-variant-grouped": "horizontal", role: "tab", type: "button" }, on: { "update:checked": function(U) {
|
|
169
|
+
return e.setActive(t.id);
|
|
170
|
+
} }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
171
|
+
return [a("NcVNodes", { attrs: { vnodes: t.renderIcon() } }, [a("span", { staticClass: "app-sidebar-tabs__tab-icon", class: t.icon })])];
|
|
172
|
+
}, proxy: !0 }], null, !0) }, [a("span", { staticClass: "app-sidebar-tabs__tab-caption" }, [e._v(" " + e._s(t.name) + " ")])]);
|
|
173
|
+
}), 1) : e._e(), a("div", { staticClass: "app-sidebar-tabs__content", class: { "app-sidebar-tabs__content--multiple": e.hasMultipleTabs } }, [e._t("default")], 2)]);
|
|
174
|
+
}, x = [], N = /* @__PURE__ */ s(
|
|
175
|
+
C,
|
|
176
|
+
S,
|
|
177
|
+
x,
|
|
175
178
|
!1,
|
|
176
179
|
null,
|
|
177
180
|
"2ae00fba",
|
|
178
181
|
null,
|
|
179
182
|
null
|
|
180
183
|
);
|
|
181
|
-
const
|
|
184
|
+
const L = N.exports;
|
|
185
|
+
h(_);
|
|
186
|
+
const A = {
|
|
182
187
|
name: "StarIcon",
|
|
183
188
|
emits: ["click"],
|
|
184
189
|
props: {
|
|
@@ -195,22 +200,22 @@ const T = v.exports, C = {
|
|
|
195
200
|
}
|
|
196
201
|
}
|
|
197
202
|
};
|
|
198
|
-
var
|
|
199
|
-
var
|
|
200
|
-
return a("span",
|
|
201
|
-
return
|
|
202
|
-
} } }, "span",
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
var w = function() {
|
|
204
|
+
var e = this, a = e._self._c;
|
|
205
|
+
return a("span", e._b({ staticClass: "material-design-icon star-icon", attrs: { "aria-hidden": !e.title, "aria-label": e.title, role: "img" }, on: { click: function(t) {
|
|
206
|
+
return e.$emit("click", t);
|
|
207
|
+
} } }, "span", e.$attrs, !1), [a("svg", { staticClass: "material-design-icon__svg", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: "0 0 24 24" } }, [a("path", { attrs: { d: "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z" } }, [e.title ? a("title", [e._v(e._s(e.title))]) : e._e()])])]);
|
|
208
|
+
}, K = [], E = /* @__PURE__ */ s(
|
|
209
|
+
A,
|
|
210
|
+
w,
|
|
211
|
+
K,
|
|
207
212
|
!1,
|
|
208
213
|
null,
|
|
209
214
|
null,
|
|
210
215
|
null,
|
|
211
216
|
null
|
|
212
217
|
);
|
|
213
|
-
const
|
|
218
|
+
const F = E.exports, B = {
|
|
214
219
|
name: "StarOutlineIcon",
|
|
215
220
|
emits: ["click"],
|
|
216
221
|
props: {
|
|
@@ -227,40 +232,40 @@ const L = N.exports, A = {
|
|
|
227
232
|
}
|
|
228
233
|
}
|
|
229
234
|
};
|
|
230
|
-
var
|
|
231
|
-
var
|
|
232
|
-
return a("span",
|
|
233
|
-
return
|
|
234
|
-
} } }, "span",
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
var I = function() {
|
|
236
|
+
var e = this, a = e._self._c;
|
|
237
|
+
return a("span", e._b({ staticClass: "material-design-icon star-outline-icon", attrs: { "aria-hidden": !e.title, "aria-label": e.title, role: "img" }, on: { click: function(t) {
|
|
238
|
+
return e.$emit("click", t);
|
|
239
|
+
} } }, "span", e.$attrs, !1), [a("svg", { staticClass: "material-design-icon__svg", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: "0 0 24 24" } }, [a("path", { attrs: { d: "M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z" } }, [e.title ? a("title", [e._v(e._s(e.title))]) : e._e()])])]);
|
|
240
|
+
}, O = [], D = /* @__PURE__ */ s(
|
|
241
|
+
B,
|
|
242
|
+
I,
|
|
243
|
+
O,
|
|
239
244
|
!1,
|
|
240
245
|
null,
|
|
241
246
|
null,
|
|
242
247
|
null,
|
|
243
248
|
null
|
|
244
249
|
);
|
|
245
|
-
const
|
|
246
|
-
const
|
|
250
|
+
const M = D.exports;
|
|
251
|
+
const P = {
|
|
247
252
|
name: "NcAppSidebar",
|
|
248
253
|
components: {
|
|
249
|
-
NcActions:
|
|
250
|
-
NcAppSidebarTabs:
|
|
251
|
-
ArrowRight:
|
|
254
|
+
NcActions: l,
|
|
255
|
+
NcAppSidebarTabs: L,
|
|
256
|
+
ArrowRight: y,
|
|
252
257
|
NcButton: u,
|
|
253
258
|
NcLoadingIcon: c,
|
|
254
259
|
NcEmptyContent: d,
|
|
255
|
-
Close:
|
|
256
|
-
Star:
|
|
257
|
-
StarOutline:
|
|
260
|
+
Close: g,
|
|
261
|
+
Star: F,
|
|
262
|
+
StarOutline: M
|
|
258
263
|
},
|
|
259
264
|
directives: {
|
|
260
265
|
focus: p,
|
|
261
266
|
linkify: f,
|
|
262
|
-
ClickOutside:
|
|
263
|
-
Tooltip:
|
|
267
|
+
ClickOutside: k,
|
|
268
|
+
Tooltip: T
|
|
264
269
|
},
|
|
265
270
|
props: {
|
|
266
271
|
active: {
|
|
@@ -377,12 +382,18 @@ const B = {
|
|
|
377
382
|
"submit-name",
|
|
378
383
|
"dismiss-editing"
|
|
379
384
|
],
|
|
385
|
+
setup() {
|
|
386
|
+
return {
|
|
387
|
+
isMobile: m()
|
|
388
|
+
};
|
|
389
|
+
},
|
|
380
390
|
data() {
|
|
381
391
|
return {
|
|
382
392
|
changeNameTranslated: r("Change name"),
|
|
383
393
|
closeTranslated: r("Close sidebar"),
|
|
384
394
|
favoriteTranslated: r("Favorite"),
|
|
385
|
-
isStarred: this.starred
|
|
395
|
+
isStarred: this.starred,
|
|
396
|
+
focusTrap: null
|
|
386
397
|
};
|
|
387
398
|
},
|
|
388
399
|
computed: {
|
|
@@ -399,12 +410,43 @@ const B = {
|
|
|
399
410
|
watch: {
|
|
400
411
|
starred() {
|
|
401
412
|
this.isStarred = this.starred;
|
|
413
|
+
},
|
|
414
|
+
isMobile() {
|
|
415
|
+
this.toggleFocusTrap();
|
|
402
416
|
}
|
|
403
417
|
},
|
|
418
|
+
mounted() {
|
|
419
|
+
this.toggleFocusTrap();
|
|
420
|
+
},
|
|
404
421
|
beforeDestroy() {
|
|
405
|
-
|
|
422
|
+
var i;
|
|
423
|
+
this.$emit("closed"), (i = this.focusTrap) == null || i.deactivate();
|
|
406
424
|
},
|
|
407
425
|
methods: {
|
|
426
|
+
initFocusTrap() {
|
|
427
|
+
var i;
|
|
428
|
+
this.focusTrap || (this.focusTrap = v([
|
|
429
|
+
// The sidebar itself
|
|
430
|
+
this.$refs.sidebar,
|
|
431
|
+
// Nextcloud Server header navigarion
|
|
432
|
+
document.querySelector("#header"),
|
|
433
|
+
// The app navigation toggle. Navigation can be opened above the sidebar
|
|
434
|
+
// Take the parent element, because the focus-trap requires a container with elements, not the element itself
|
|
435
|
+
(i = document.querySelector('[aria-controls="app-navigation-vue"]')) == null ? void 0 : i.parentElement
|
|
436
|
+
], {
|
|
437
|
+
allowOutsideClick: !0,
|
|
438
|
+
fallbackFocus: this.$refs.closeButton,
|
|
439
|
+
trapStack: b(),
|
|
440
|
+
escapeDeactivates: !1
|
|
441
|
+
}));
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* Activate focus trap if it is currently needed, otherwise deactivate
|
|
445
|
+
*/
|
|
446
|
+
toggleFocusTrap() {
|
|
447
|
+
var i;
|
|
448
|
+
this.isMobile ? (this.initFocusTrap(), this.focusTrap.activate()) : (i = this.focusTrap) == null || i.deactivate();
|
|
449
|
+
},
|
|
408
450
|
onBeforeEnter(i) {
|
|
409
451
|
this.$emit("opening", i);
|
|
410
452
|
},
|
|
@@ -470,54 +512,58 @@ const B = {
|
|
|
470
512
|
}
|
|
471
513
|
}
|
|
472
514
|
};
|
|
473
|
-
var
|
|
474
|
-
var
|
|
475
|
-
return a("transition", { attrs: { appear: "", name: "slide-right" }, on: { "before-enter":
|
|
476
|
-
"
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
515
|
+
var z = function() {
|
|
516
|
+
var e = this, a = e._self._c;
|
|
517
|
+
return a("transition", { attrs: { appear: "", name: "slide-right" }, on: { "before-enter": e.onBeforeEnter, "after-enter": e.onAfterEnter, "before-leave": e.onBeforeLeave, "after-leave": e.onAfterLeave } }, [a("aside", { ref: "sidebar", staticClass: "app-sidebar", attrs: { id: "app-sidebar-vue" }, on: { keydown: function(t) {
|
|
518
|
+
if (!t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]))
|
|
519
|
+
return null;
|
|
520
|
+
t.stopPropagation(), e.isMobile && e.closeSidebar();
|
|
521
|
+
} } }, [a("header", { staticClass: "app-sidebar-header", class: {
|
|
522
|
+
"app-sidebar-header--with-figure": e.hasFigure,
|
|
523
|
+
"app-sidebar-header--compact": e.compact
|
|
524
|
+
} }, [a("div", { staticClass: "app-sidebar-header__info" }, [e.hasFigure && !e.empty ? a("div", { staticClass: "app-sidebar-header__figure", class: {
|
|
525
|
+
"app-sidebar-header__figure--with-action": e.hasFigureClickListener
|
|
480
526
|
}, style: {
|
|
481
|
-
backgroundImage: `url(${
|
|
482
|
-
}, attrs: { tabindex: "0" }, on: { click:
|
|
483
|
-
return !
|
|
484
|
-
} } }, [
|
|
485
|
-
"app-sidebar-header__desc--with-tertiary-action":
|
|
486
|
-
"app-sidebar-header__desc--editable":
|
|
487
|
-
"app-sidebar-header__desc--with-subname--editable":
|
|
488
|
-
"app-sidebar-header__desc--without-actions": !
|
|
489
|
-
} }, [
|
|
490
|
-
return [
|
|
491
|
-
return
|
|
492
|
-
} }, scopedSlots:
|
|
493
|
-
return [
|
|
494
|
-
}, proxy: !0 }], null, !1, 2575459756) }) :
|
|
495
|
-
})], 2) :
|
|
496
|
-
return
|
|
497
|
-
} } }, [
|
|
498
|
-
return
|
|
499
|
-
} } }, [a("input", { directives: [{ name: "focus", rawName: "v-focus" }], ref: "nameInput", staticClass: "app-sidebar-header__mainname-input", attrs: { type: "text", placeholder:
|
|
500
|
-
return !
|
|
501
|
-
}, input:
|
|
527
|
+
backgroundImage: `url(${e.background})`
|
|
528
|
+
}, attrs: { tabindex: "0" }, on: { click: e.onFigureClick, keydown: function(t) {
|
|
529
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onFigureClick.apply(null, arguments);
|
|
530
|
+
} } }, [e._t("header")], 2) : e._e(), e.empty ? e._e() : a("div", { staticClass: "app-sidebar-header__desc", class: {
|
|
531
|
+
"app-sidebar-header__desc--with-tertiary-action": e.canStar || e.$slots["tertiary-actions"],
|
|
532
|
+
"app-sidebar-header__desc--editable": e.nameEditable && !e.subname,
|
|
533
|
+
"app-sidebar-header__desc--with-subname--editable": e.nameEditable && e.subname,
|
|
534
|
+
"app-sidebar-header__desc--without-actions": !e.$slots["secondary-actions"]
|
|
535
|
+
} }, [e.canStar || e.$slots["tertiary-actions"] ? a("div", { staticClass: "app-sidebar-header__tertiary-actions" }, [e._t("tertiary-actions", function() {
|
|
536
|
+
return [e.canStar ? a("NcButton", { staticClass: "app-sidebar-header__star", attrs: { "aria-label": e.favoriteTranslated, pressed: e.isStarred, type: "secondary" }, on: { click: function(t) {
|
|
537
|
+
return t.preventDefault(), e.toggleStarred.apply(null, arguments);
|
|
538
|
+
} }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
539
|
+
return [e.starLoading ? a("NcLoadingIcon") : e.isStarred ? a("Star", { attrs: { size: 20 } }) : a("StarOutline", { attrs: { size: 20 } })];
|
|
540
|
+
}, proxy: !0 }], null, !1, 2575459756) }) : e._e()];
|
|
541
|
+
})], 2) : e._e(), a("div", { staticClass: "app-sidebar-header__name-container" }, [a("div", { staticClass: "app-sidebar-header__mainname-container" }, [a("h2", { directives: [{ name: "show", rawName: "v-show", value: !e.nameEditable, expression: "!nameEditable" }, { name: "linkify", rawName: "v-linkify", value: { text: e.name, linkify: e.linkifyName }, expression: "{text: name, linkify: linkifyName}" }], staticClass: "app-sidebar-header__mainname", attrs: { "aria-label": e.title, title: e.title, tabindex: e.nameEditable ? 0 : void 0 }, on: { click: function(t) {
|
|
542
|
+
return t.target !== t.currentTarget ? null : e.editName.apply(null, arguments);
|
|
543
|
+
} } }, [e._v(" " + e._s(e.name) + " ")]), e.nameEditable ? [a("form", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: () => e.onSubmitName(), expression: "() => onSubmitName()" }], staticClass: "app-sidebar-header__mainname-form", on: { submit: function(t) {
|
|
544
|
+
return t.preventDefault(), e.onSubmitName.apply(null, arguments);
|
|
545
|
+
} } }, [a("input", { directives: [{ name: "focus", rawName: "v-focus" }], ref: "nameInput", staticClass: "app-sidebar-header__mainname-input", attrs: { type: "text", placeholder: e.namePlaceholder }, domProps: { value: e.name }, on: { keydown: function(t) {
|
|
546
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(), e.onDismissEditing.apply(null, arguments));
|
|
547
|
+
}, input: e.onNameInput } }), a("NcButton", { attrs: { type: "tertiary-no-background", "aria-label": e.changeNameTranslated, "native-type": "submit" }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
502
548
|
return [a("ArrowRight", { attrs: { size: 20 } })];
|
|
503
|
-
}, proxy: !0 }], null, !1, 1252225425) })], 1)] :
|
|
504
|
-
return
|
|
505
|
-
} }, scopedSlots:
|
|
549
|
+
}, proxy: !0 }], null, !1, 1252225425) })], 1)] : e._e(), e.$slots["secondary-actions"] ? a("NcActions", { staticClass: "app-sidebar-header__menu", attrs: { "force-menu": e.forceMenu } }, [e._t("secondary-actions")], 2) : e._e()], 2), e.subname.trim() !== "" ? a("p", { staticClass: "app-sidebar-header__subname", attrs: { "aria-label": e.subtitle, title: e.subtitle } }, [e._v(" " + e._s(e.subname) + " ")]) : e._e()])])]), a("NcButton", { ref: "closeButton", staticClass: "app-sidebar__close", attrs: { title: e.closeTranslated, "aria-label": e.closeTranslated, type: "tertiary" }, on: { click: function(t) {
|
|
550
|
+
return t.preventDefault(), e.closeSidebar.apply(null, arguments);
|
|
551
|
+
} }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
506
552
|
return [a("Close", { attrs: { size: 20 } })];
|
|
507
|
-
}, proxy: !0 }]) }),
|
|
553
|
+
}, proxy: !0 }]) }), e.$slots.description && !e.empty ? a("div", { staticClass: "app-sidebar-header__description" }, [e._t("description")], 2) : e._e()], 1), a("NcAppSidebarTabs", { directives: [{ name: "show", rawName: "v-show", value: !e.loading, expression: "!loading" }], ref: "tabs", attrs: { active: e.active }, on: { "update:active": e.onUpdateActive } }, [e._t("default")], 2), e.loading ? a("NcEmptyContent", { scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
508
554
|
return [a("NcLoadingIcon", { attrs: { size: 64 } })];
|
|
509
|
-
}, proxy: !0 }], null, !1, 826850984) }) :
|
|
510
|
-
},
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
555
|
+
}, proxy: !0 }], null, !1, 826850984) }) : e._e()], 1)]);
|
|
556
|
+
}, R = [], q = /* @__PURE__ */ s(
|
|
557
|
+
P,
|
|
558
|
+
z,
|
|
559
|
+
R,
|
|
514
560
|
!1,
|
|
515
561
|
null,
|
|
516
|
-
"
|
|
562
|
+
"15882bc7",
|
|
517
563
|
null,
|
|
518
564
|
null
|
|
519
565
|
);
|
|
520
|
-
const
|
|
566
|
+
const le = q.exports;
|
|
521
567
|
export {
|
|
522
|
-
|
|
568
|
+
le as default
|
|
523
569
|
};
|