@nextcloud/vue 9.10.0 → 9.11.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 +13 -0
- package/dist/assets/NcActionInput.css +66 -66
- package/dist/assets/NcActions.css +12 -12
- package/dist/assets/NcAppNavigationItem.css +9 -3
- package/dist/assets/NcAppNavigationNewItem.css +9 -3
- package/dist/assets/NcAppNavigationSettings.css +6 -6
- package/dist/assets/NcAppSettingsDialog.css +3 -3
- package/dist/assets/NcAppSettingsShortcutsSection.css +1 -1
- package/dist/assets/NcAppSidebar.css +130 -76
- package/dist/assets/NcAppSidebarTab.css +4 -4
- package/dist/assets/NcAssistantButton.css +9 -9
- package/dist/assets/NcAssistantContent.css +3 -3
- package/dist/assets/NcAssistantIcon.css +4 -4
- package/dist/assets/NcBlurHash.css +2 -2
- package/dist/assets/NcFilePicker.css +1 -1
- package/dist/assets/NcFormBox.css +11 -11
- package/dist/assets/NcFormBoxButton.css +2 -2
- package/dist/assets/NcFormBoxItem.css +15 -15
- package/dist/assets/NcFormBoxSwitch.css +2 -2
- package/dist/assets/NcFormGroup.css +7 -7
- package/dist/assets/NcHotkey.css +8 -8
- package/dist/assets/NcHotkeyList.css +2 -2
- package/dist/assets/NcIconToggleSwitch.css +4 -4
- package/dist/assets/NcKbd.css +3 -3
- package/dist/assets/NcPopover.css +16 -16
- package/dist/assets/NcRadioGroup.css +2 -2
- package/dist/assets/NcRadioGroupButton.css +14 -14
- package/dist/assets/NcRichContenteditable.css +17 -17
- package/dist/assets/NcSelect.css +25 -0
- package/dist/assets/autolink.css +3 -3
- package/dist/chunks/NcActionInput.mjs +2 -2
- package/dist/chunks/NcActionInput.mjs.map +1 -1
- package/dist/chunks/NcActions.mjs +2 -2
- package/dist/chunks/NcActions.mjs.map +1 -1
- package/dist/chunks/NcAppNavigationSettings.mjs +6 -6
- package/dist/chunks/NcAppSettingsDialog.mjs +3 -3
- package/dist/chunks/NcAppSettingsShortcutsSection.mjs +1 -1
- package/dist/chunks/NcAppSidebar.mjs +162 -28
- package/dist/chunks/NcAppSidebar.mjs.map +1 -1
- package/dist/chunks/NcAppSidebarTab.mjs +12 -5
- package/dist/chunks/NcAppSidebarTab.mjs.map +1 -1
- package/dist/chunks/NcAssistantButton.mjs +7 -7
- package/dist/chunks/NcAssistantContent.mjs +3 -3
- package/dist/chunks/NcAssistantIcon.mjs +4 -4
- package/dist/chunks/NcBlurHash.mjs +2 -2
- package/dist/chunks/NcFilePicker.mjs +1 -1
- package/dist/chunks/NcFormBox.mjs +5 -5
- package/dist/chunks/NcFormBoxButton.mjs +2 -2
- package/dist/chunks/NcFormBoxItem.mjs +8 -8
- package/dist/chunks/NcFormBoxSwitch.mjs +2 -2
- package/dist/chunks/NcFormGroup.mjs +7 -7
- package/dist/chunks/NcHotkey.mjs +4 -4
- package/dist/chunks/NcHotkeyList.mjs +2 -2
- package/dist/chunks/NcIconToggleSwitch.mjs +2 -2
- package/dist/chunks/NcKbd.mjs +2 -2
- package/dist/chunks/NcPopover.mjs +2 -2
- package/dist/chunks/NcRadioGroup.mjs +2 -2
- package/dist/chunks/NcRadioGroupButton.mjs +6 -6
- package/dist/chunks/NcRichContenteditable.mjs +10 -10
- package/dist/chunks/NcSelect.mjs +74 -5
- package/dist/chunks/NcSelect.mjs.map +1 -1
- package/dist/chunks/_l10n.mjs +3 -3
- package/dist/chunks/autolink.mjs +3 -3
- package/dist/components/NcActionInput/NcActionInput.vue.d.ts +35 -7
- package/dist/components/NcActions/NcActions.vue.d.ts +1 -1
- package/dist/components/NcAppNavigationCaption/NcAppNavigationCaption.vue.d.ts +1 -1
- package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +1 -1
- package/dist/components/NcAppSidebar/NcAppSidebar.vue.d.ts +20 -1
- package/dist/components/NcAppSidebar/NcAppSidebarTabs.vue.d.ts +43 -0
- package/dist/components/NcAppSidebar/NcAppSidebarTabsButton.vue.d.ts +5 -0
- package/dist/components/NcAppSidebarTab/NcAppSidebarTab.vue.d.ts +14 -4
- package/dist/components/NcAvatar/NcAvatar.vue.d.ts +1 -1
- package/dist/components/NcBreadcrumb/NcBreadcrumb.vue.d.ts +1 -1
- package/dist/components/NcBreadcrumbs/NcBreadcrumbs.vue.d.ts +2 -2
- package/dist/components/NcCollectionList/NcCollectionList.vue.d.ts +33 -5
- package/dist/components/NcCollectionList/NcCollectionListItem.vue.d.ts +2 -2
- package/dist/components/NcDashboardWidget/NcDashboardWidget.vue.d.ts +3 -3
- package/dist/components/NcDashboardWidgetItem/NcDashboardWidgetItem.vue.d.ts +2 -2
- package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +5 -5
- package/dist/components/NcListItem/NcListItem.vue.d.ts +1 -1
- package/dist/components/NcListItemIcon/NcListItemIcon.vue.d.ts +1 -1
- package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +30 -2
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePicker.vue.d.ts +60 -4
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePickerModal.vue.d.ts +60 -4
- package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +30 -2
- package/dist/components/NcSelect/NcSelect.vue.d.ts +39 -2
- package/dist/components/NcSelectTags/NcSelectTags.vue.d.ts +30 -2
- package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +30 -2
- package/package.json +3 -3
|
@@ -21,10 +21,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
const appSettingsDialogVersion = "
|
|
25
|
-
const appSettingsDialogVersion__legacy = "
|
|
24
|
+
const appSettingsDialogVersion = "_appSettingsDialogVersion_e4tNO";
|
|
25
|
+
const appSettingsDialogVersion__legacy = "_appSettingsDialogVersion__legacy_AeUZg";
|
|
26
26
|
const style0 = {
|
|
27
|
-
"material-design-icon": "_material-design-
|
|
27
|
+
"material-design-icon": "_material-design-icon_MFxpL",
|
|
28
28
|
appSettingsDialogVersion,
|
|
29
29
|
appSettingsDialogVersion__legacy
|
|
30
30
|
};
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const appSettingsSectionShortcuts = "
|
|
27
|
+
const appSettingsSectionShortcuts = "_appSettingsSectionShortcuts_Flb3s";
|
|
28
28
|
const style0 = {
|
|
29
29
|
appSettingsSectionShortcuts
|
|
30
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/NcAppSidebar.css';
|
|
2
2
|
import { vOnClickOutside } from "@vueuse/components";
|
|
3
3
|
import { createFocusTrap } from "focus-trap";
|
|
4
|
-
import { openBlock, createElementBlock, mergeProps, createElementVNode, toDisplayString, createCommentVNode, defineComponent, useModel, normalizeClass, unref, createVNode, withCtx, mergeModels, resolveComponent, withKeys, withModifiers, Fragment, renderList, createBlock, renderSlot, resolveDirective, Transition, withDirectives, Teleport,
|
|
4
|
+
import { openBlock, createElementBlock, mergeProps, createElementVNode, toDisplayString, createCommentVNode, defineComponent, useModel, ref, normalizeClass, unref, createVNode, withCtx, mergeModels, resolveComponent, withKeys, withModifiers, normalizeStyle, Fragment, renderList, createBlock, renderSlot, resolveDirective, Transition, withDirectives, Teleport, vShow, createTextVNode, warn, provide } from "vue";
|
|
5
5
|
import { I as IconArrowRight } from "./ArrowRight.mjs";
|
|
6
6
|
import { I as IconClose } from "./Close.mjs";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.mjs";
|
|
@@ -153,7 +153,8 @@ const _hoisted_1$2 = ["aria-selected", "tabindex"];
|
|
|
153
153
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
154
154
|
__name: "NcAppSidebarTabsButton",
|
|
155
155
|
props: /* @__PURE__ */ mergeModels({
|
|
156
|
-
tab: {}
|
|
156
|
+
tab: {},
|
|
157
|
+
animatedHighlight: { type: Boolean }
|
|
157
158
|
}, {
|
|
158
159
|
"selected": { type: Boolean, ...{ required: true } },
|
|
159
160
|
"selectedModifiers": {}
|
|
@@ -161,31 +162,59 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
161
162
|
emits: ["update:selected"],
|
|
162
163
|
setup(__props) {
|
|
163
164
|
const selected = useModel(__props, "selected");
|
|
165
|
+
const popping = ref(false);
|
|
166
|
+
function onClick() {
|
|
167
|
+
selected.value = true;
|
|
168
|
+
popping.value = false;
|
|
169
|
+
requestAnimationFrame(() => {
|
|
170
|
+
popping.value = true;
|
|
171
|
+
});
|
|
172
|
+
}
|
|
164
173
|
return (_ctx, _cache) => {
|
|
165
174
|
return openBlock(), createElementBlock("button", {
|
|
166
175
|
class: normalizeClass(["button-vue", [_ctx.$style.sidebarTabsButton, {
|
|
167
176
|
[_ctx.$style.sidebarTabsButton_selected]: selected.value,
|
|
168
|
-
[_ctx.$style.sidebarTabsButton_legacy]: unref(isLegacy34)
|
|
177
|
+
[_ctx.$style.sidebarTabsButton_legacy]: unref(isLegacy34),
|
|
178
|
+
[_ctx.$style.sidebarTabsButton_animatedHighlight]: __props.animatedHighlight
|
|
169
179
|
}]]),
|
|
170
180
|
role: "tab",
|
|
171
181
|
"aria-selected": selected.value,
|
|
172
182
|
tabindex: selected.value ? 0 : -1,
|
|
173
|
-
onClick
|
|
183
|
+
onClick
|
|
174
184
|
}, [
|
|
175
185
|
createElementVNode("span", {
|
|
176
|
-
class: normalizeClass(_ctx.$style.sidebarTabsButton__icon)
|
|
186
|
+
class: normalizeClass([_ctx.$style.sidebarTabsButton__icon, { [_ctx.$style.sidebarTabsButton__icon_pop]: popping.value }]),
|
|
187
|
+
onAnimationend: _cache[0] || (_cache[0] = ($event) => popping.value = false)
|
|
177
188
|
}, [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
createElementVNode("span", {
|
|
190
|
+
class: normalizeClass([_ctx.$style.sidebarTabsButton__iconLayer, { [_ctx.$style.sidebarTabsButton__iconLayer_hidden]: selected.value }])
|
|
191
|
+
}, [
|
|
192
|
+
createVNode(_sfc_main$6, {
|
|
193
|
+
vnodes: __props.tab.renderIcon(false)
|
|
194
|
+
}, {
|
|
195
|
+
default: withCtx(() => [
|
|
196
|
+
createElementVNode("span", {
|
|
197
|
+
class: normalizeClass([_ctx.$style.sidebarTabsButton__legacyIcon, __props.tab.icon])
|
|
198
|
+
}, null, 2)
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["vnodes"])
|
|
202
|
+
], 2),
|
|
203
|
+
createElementVNode("span", {
|
|
204
|
+
class: normalizeClass([_ctx.$style.sidebarTabsButton__iconLayer, { [_ctx.$style.sidebarTabsButton__iconLayer_hidden]: !selected.value }])
|
|
205
|
+
}, [
|
|
206
|
+
createVNode(_sfc_main$6, {
|
|
207
|
+
vnodes: __props.tab.renderIcon(true)
|
|
208
|
+
}, {
|
|
209
|
+
default: withCtx(() => [
|
|
210
|
+
createElementVNode("span", {
|
|
211
|
+
class: normalizeClass([_ctx.$style.sidebarTabsButton__legacyIcon, __props.tab.icon])
|
|
212
|
+
}, null, 2)
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 8, ["vnodes"])
|
|
216
|
+
], 2)
|
|
217
|
+
], 34),
|
|
189
218
|
createElementVNode("span", {
|
|
190
219
|
class: normalizeClass(_ctx.$style.sidebarTabsButton__name)
|
|
191
220
|
}, toDisplayString(__props.tab.name), 3)
|
|
@@ -193,19 +222,28 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
193
222
|
};
|
|
194
223
|
}
|
|
195
224
|
});
|
|
196
|
-
const sidebarTabsButton = "
|
|
197
|
-
const sidebarTabsButton_legacy = "
|
|
198
|
-
const sidebarTabsButton_selected = "
|
|
199
|
-
const
|
|
200
|
-
const
|
|
201
|
-
const
|
|
225
|
+
const sidebarTabsButton = "_sidebarTabsButton_q3kBA";
|
|
226
|
+
const sidebarTabsButton_legacy = "_sidebarTabsButton_legacy_KQ4d1";
|
|
227
|
+
const sidebarTabsButton_selected = "_sidebarTabsButton_selected_Pjayf";
|
|
228
|
+
const sidebarTabsButton_animatedHighlight = "_sidebarTabsButton_animatedHighlight_uvp-0";
|
|
229
|
+
const sidebarTabsButton__name = "_sidebarTabsButton__name_rlQsL";
|
|
230
|
+
const sidebarTabsButton__icon = "_sidebarTabsButton__icon_QzZg4";
|
|
231
|
+
const sidebarTabsButton__iconLayer = "_sidebarTabsButton__iconLayer_ZkZan";
|
|
232
|
+
const sidebarTabsButton__iconLayer_hidden = "_sidebarTabsButton__iconLayer_hidden_c7Cpv";
|
|
233
|
+
const sidebarTabsButton__icon_pop = "_sidebarTabsButton__icon_pop_IA0By";
|
|
234
|
+
const sidebarTabsButton__legacyIcon = "_sidebarTabsButton__legacyIcon_QhcNW";
|
|
202
235
|
const style0 = {
|
|
203
|
-
"material-design-icon": "_material-design-
|
|
236
|
+
"material-design-icon": "_material-design-icon_GQ9O0",
|
|
204
237
|
sidebarTabsButton,
|
|
205
238
|
sidebarTabsButton_legacy,
|
|
206
239
|
sidebarTabsButton_selected,
|
|
240
|
+
sidebarTabsButton_animatedHighlight,
|
|
207
241
|
sidebarTabsButton__name,
|
|
208
242
|
sidebarTabsButton__icon,
|
|
243
|
+
sidebarTabsButton__iconLayer,
|
|
244
|
+
sidebarTabsButton__iconLayer_hidden,
|
|
245
|
+
sidebarTabsButton__icon_pop,
|
|
246
|
+
"sidebar-tab-icon-pop": "_sidebar-tab-icon-pop_mqaHb",
|
|
209
247
|
sidebarTabsButton__legacyIcon
|
|
210
248
|
};
|
|
211
249
|
const cssModules = {
|
|
@@ -254,7 +292,20 @@ const _sfc_main$1 = {
|
|
|
254
292
|
* Local active (open) tab's ID. It allows to use component without v-model:active
|
|
255
293
|
*/
|
|
256
294
|
activeTab: props.active,
|
|
257
|
-
isLegacy34
|
|
295
|
+
isLegacy34,
|
|
296
|
+
/** Whether the sliding highlight runs (JS mounted, non-legacy design) */
|
|
297
|
+
highlightEnabled: false,
|
|
298
|
+
/** Whether the highlight is currently shown */
|
|
299
|
+
highlightVisible: false,
|
|
300
|
+
/** Whether position changes should transition (slide) or snap */
|
|
301
|
+
highlightAnimated: false,
|
|
302
|
+
/** Whether the highlight sits on the active tab (turns transparent) */
|
|
303
|
+
highlightOverActive: false,
|
|
304
|
+
/** Highlight geometry inside the tablist, in pixels */
|
|
305
|
+
highlightLeft: 0,
|
|
306
|
+
highlightTop: 0,
|
|
307
|
+
highlightWidth: 0,
|
|
308
|
+
highlightHeight: 0
|
|
258
309
|
};
|
|
259
310
|
},
|
|
260
311
|
computed: {
|
|
@@ -271,6 +322,13 @@ const _sfc_main$1 = {
|
|
|
271
322
|
},
|
|
272
323
|
currentTabIndex() {
|
|
273
324
|
return this.tabs.findIndex((tab) => tab.id === this.activeTab);
|
|
325
|
+
},
|
|
326
|
+
highlightStyle() {
|
|
327
|
+
return {
|
|
328
|
+
transform: `translate(${this.highlightLeft}px, ${this.highlightTop}px)`,
|
|
329
|
+
width: `${this.highlightWidth}px`,
|
|
330
|
+
height: `${this.highlightHeight}px`
|
|
331
|
+
};
|
|
274
332
|
}
|
|
275
333
|
},
|
|
276
334
|
watch: {
|
|
@@ -285,6 +343,10 @@ const _sfc_main$1 = {
|
|
|
285
343
|
}
|
|
286
344
|
}
|
|
287
345
|
},
|
|
346
|
+
mounted() {
|
|
347
|
+
this.highlightedButton = null;
|
|
348
|
+
this.highlightEnabled = !this.isLegacy34;
|
|
349
|
+
},
|
|
288
350
|
methods: {
|
|
289
351
|
/**
|
|
290
352
|
* Set the current active tab
|
|
@@ -378,6 +440,62 @@ const _sfc_main$1 = {
|
|
|
378
440
|
if (this.activeTab === id) {
|
|
379
441
|
this.updateActive();
|
|
380
442
|
}
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Move the sliding highlight onto a tab button. It slides there if
|
|
446
|
+
* already visible, otherwise it snaps into place so it does not slide in
|
|
447
|
+
* from a previously hovered tab. Over the active tab it turns transparent
|
|
448
|
+
* so the active tab keeps its own static background.
|
|
449
|
+
*
|
|
450
|
+
* @param {HTMLElement} button the tab button element to cover
|
|
451
|
+
*/
|
|
452
|
+
showHighlightOn(button) {
|
|
453
|
+
const buttonRect = button.getBoundingClientRect();
|
|
454
|
+
const navRect = this.$refs.nav.getBoundingClientRect();
|
|
455
|
+
const wasVisible = this.highlightVisible;
|
|
456
|
+
this.highlightAnimated = wasVisible;
|
|
457
|
+
this.highlightOverActive = button.getAttribute("aria-selected") === "true";
|
|
458
|
+
this.highlightLeft = buttonRect.left - navRect.left;
|
|
459
|
+
this.highlightTop = buttonRect.top - navRect.top;
|
|
460
|
+
this.highlightWidth = buttonRect.width;
|
|
461
|
+
this.highlightHeight = buttonRect.height;
|
|
462
|
+
if (!wasVisible) {
|
|
463
|
+
this.highlightVisible = true;
|
|
464
|
+
this.$nextTick(() => requestAnimationFrame(() => {
|
|
465
|
+
this.highlightAnimated = true;
|
|
466
|
+
}));
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
/** Hide the sliding highlight */
|
|
470
|
+
hideHighlight() {
|
|
471
|
+
this.highlightVisible = false;
|
|
472
|
+
this.highlightedButton = null;
|
|
473
|
+
},
|
|
474
|
+
/**
|
|
475
|
+
* Move the highlight to the tab button under the pointer or focus
|
|
476
|
+
*
|
|
477
|
+
* @param {Event} event the pointer or focus event
|
|
478
|
+
*/
|
|
479
|
+
handleHighlight(event) {
|
|
480
|
+
if (!this.highlightEnabled) {
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
const button = event.target?.closest?.(".app-sidebar-tabs__tab");
|
|
484
|
+
if (!button || button === this.highlightedButton || !this.$refs.nav.contains(button)) {
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
this.highlightedButton = button;
|
|
488
|
+
this.showHighlightOn(button);
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
* Hide the highlight once focus leaves the tablist entirely
|
|
492
|
+
*
|
|
493
|
+
* @param {FocusEvent} event the focusout event
|
|
494
|
+
*/
|
|
495
|
+
onHighlightFocusOut(event) {
|
|
496
|
+
if (this.highlightEnabled && !this.$refs.nav.contains(event.relatedTarget)) {
|
|
497
|
+
this.hideHighlight();
|
|
498
|
+
}
|
|
381
499
|
}
|
|
382
500
|
}
|
|
383
501
|
};
|
|
@@ -387,6 +505,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
387
505
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
388
506
|
$options.hasMultipleTabs || $options.showForSingleTab ? (openBlock(), createElementBlock("div", {
|
|
389
507
|
key: 0,
|
|
508
|
+
ref: "nav",
|
|
390
509
|
role: "tablist",
|
|
391
510
|
class: normalizeClass(["app-sidebar-tabs__nav", { "app-sidebar-tabs__nav--legacy": $data.isLegacy34 }]),
|
|
392
511
|
onKeydown: [
|
|
@@ -397,8 +516,22 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
397
516
|
_cache[4] || (_cache[4] = withKeys(withModifiers((...args) => $options.focusLastTab && $options.focusLastTab(...args), ["exact", "prevent", "stop"]), ["end"])),
|
|
398
517
|
_cache[5] || (_cache[5] = withKeys(withModifiers((...args) => $options.focusFirstTab && $options.focusFirstTab(...args), ["exact", "prevent", "stop"]), ["page-up"])),
|
|
399
518
|
_cache[6] || (_cache[6] = withKeys(withModifiers((...args) => $options.focusLastTab && $options.focusLastTab(...args), ["exact", "prevent", "stop"]), ["page-down"]))
|
|
400
|
-
]
|
|
519
|
+
],
|
|
520
|
+
onPointerover: _cache[7] || (_cache[7] = (...args) => $options.handleHighlight && $options.handleHighlight(...args)),
|
|
521
|
+
onPointerleave: _cache[8] || (_cache[8] = (...args) => $options.hideHighlight && $options.hideHighlight(...args)),
|
|
522
|
+
onFocusin: _cache[9] || (_cache[9] = (...args) => $options.handleHighlight && $options.handleHighlight(...args)),
|
|
523
|
+
onFocusout: _cache[10] || (_cache[10] = (...args) => $options.onHighlightFocusOut && $options.onHighlightFocusOut(...args))
|
|
401
524
|
}, [
|
|
525
|
+
$data.highlightEnabled ? (openBlock(), createElementBlock("div", {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: normalizeClass(["app-sidebar-tabs__highlight", {
|
|
528
|
+
"app-sidebar-tabs__highlight--visible": $data.highlightVisible,
|
|
529
|
+
"app-sidebar-tabs__highlight--animated": $data.highlightAnimated,
|
|
530
|
+
"app-sidebar-tabs__highlight--over-active": $data.highlightOverActive
|
|
531
|
+
}]),
|
|
532
|
+
style: normalizeStyle($options.highlightStyle),
|
|
533
|
+
"aria-hidden": "true"
|
|
534
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
402
535
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.tabs, (tab) => {
|
|
403
536
|
return openBlock(), createBlock(_component_NcAppSidebarTabsButton, {
|
|
404
537
|
id: `tab-button-${tab.id}`,
|
|
@@ -406,9 +539,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
406
539
|
class: "app-sidebar-tabs__tab",
|
|
407
540
|
"aria-controls": `tab-${tab.id}`,
|
|
408
541
|
selected: $data.activeTab === tab.id,
|
|
542
|
+
animatedHighlight: $data.highlightEnabled,
|
|
409
543
|
tab,
|
|
410
544
|
"onUpdate:selected": ($event) => $options.setActive(tab.id)
|
|
411
|
-
}, null, 8, ["id", "aria-controls", "selected", "tab", "onUpdate:selected"]);
|
|
545
|
+
}, null, 8, ["id", "aria-controls", "selected", "animatedHighlight", "tab", "onUpdate:selected"]);
|
|
412
546
|
}), 128))
|
|
413
547
|
], 34)) : createCommentVNode("", true),
|
|
414
548
|
createElementVNode("div", {
|
|
@@ -418,7 +552,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
418
552
|
], 2)
|
|
419
553
|
]);
|
|
420
554
|
}
|
|
421
|
-
const NcAppSidebarTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
555
|
+
const NcAppSidebarTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-74190d2a"]]);
|
|
422
556
|
register(t16);
|
|
423
557
|
const _sfc_main = {
|
|
424
558
|
name: "NcAppSidebar",
|
|
@@ -1044,7 +1178,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1044
1178
|
_: 3
|
|
1045
1179
|
}, 8, ["onAfterEnter", "onAfterLeave"]);
|
|
1046
1180
|
}
|
|
1047
|
-
const NcAppSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
1181
|
+
const NcAppSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c2c6820b"]]);
|
|
1048
1182
|
export {
|
|
1049
1183
|
NcAppSidebar as N
|
|
1050
1184
|
};
|