30
30
>
31
31
<PortalTarget name="modal-destination" multiple />
32
32
<template #aside="{ scrollLockID, breakpoint }">
33
- <NavigatorDataProvider
34
- :interface-language="interfaceLanguage"
35
- :technologyUrl="technology ? technology.url : ''"
36
- :api-changes-version="selectedAPIChangesVersion"
37
- ref="NavigatorDataProvider"
38
- >
39
- <template #default="slotProps">
40
- <div class="documentation-layout-aside">
41
- <QuickNavigationModal
42
- v-if="enableQuickNavigation"
43
- :children="slotProps.flatChildren"
44
- :showQuickNavigationModal.sync="showQuickNavigationModal"
45
- :technology="technology ? technology.title : ''"
46
- />
47
- <transition name="delay-hiding">
48
- <Navigator
49
- v-show="sidenavVisibleOnMobile || breakpoint === BreakpointName.large"
50
- :flatChildren="slotProps.flatChildren"
51
- :parent-topic-identifiers="parentTopicIdentifiers"
52
- :technology="slotProps.technology || technology"
53
- :is-fetching="slotProps.isFetching"
54
- :error-fetching="slotProps.errorFetching"
55
- :api-changes="slotProps.apiChanges"
56
- :references="references"
57
- :navigator-references="slotProps.references"
58
- :scrollLockID="scrollLockID"
59
- :render-filter-on-top="breakpoint !== BreakpointName.large"
60
- @close="handleToggleSidenav(breakpoint)"
61
- >
62
- <template v-if="enableQuickNavigation" #filter>
63
- <QuickNavigationButton @click.native="openQuickNavigationModal" />
64
- </template>
65
- <template #navigator-head="{ className }">
66
- <slot name="nav-title" :className="className" />
67
- </template>
68
- </Navigator>
69
- </transition>
70
- </div>
71
- </template>
72
- </NavigatorDataProvider>
33
+ <div class="documentation-layout-aside">
34
+ <QuickNavigationModal
35
+ v-if="enableQuickNavigation"
36
+ :children="indexNodes"
37
+ :showQuickNavigationModal.sync="showQuickNavigationModal"
38
+ :technology="technology ? technology.title : ''"
39
+ />
40
+ <transition name="delay-hiding">
41
+ <slot
42
+ name="navigator"
43
+ v-bind="{
44
+ scrollLockID,
45
+ breakpoint,
46
+ sidenavVisibleOnMobile,
47
+ handleToggleSidenav,
48
+ enableQuickNavigation,
49
+ openQuickNavigationModal,
50
+ }"
51
+ >
52
+ <Navigator
53
+ key="base-navigator"
54
+ v-show="sidenavVisibleOnMobile || breakpoint === BreakpointName.large"
55
+ v-bind="{ ...navigatorProps, technologyProps }"
56
+ :parent-topic-identifiers="parentTopicIdentifiers"
57
+ :references="references"
58
+ :scrollLockID="scrollLockID"
59
+ :render-filter-on-top="breakpoint !== BreakpointName.large"
60
+ @close="handleToggleSidenav(breakpoint)"
61
+ >
62
+ <template v-if="enableQuickNavigation" #filter>
63
+ <QuickNavigationButton @click.native="openQuickNavigationModal" />
64
+ </template>
65
+ <template #above-navigator-head>
66
+ <slot name="above-navigator-head"/>
67
+ </template>
68
+ <template #navigator-head="{ className }">
69
+ <slot name="nav-title" :className="className" />
70
+ </template>
71
+ </Navigator>
72
+ </slot>
73
+ </transition>
74
+ </div>
73
75
</template>
74
76
<slot name="content" />
75
77
</AdjustableSidebarWidth>
80
82
import { PortalTarget } from 'portal-vue';
81
83
import QuickNavigationButton from 'docc-render/components/Navigator/QuickNavigationButton.vue';
82
84
import QuickNavigationModal from 'docc-render/components/Navigator/QuickNavigationModal.vue';
83
- import AdjustableSidebarWidth from 'docc-render /components/AdjustableSidebarWidth.vue';
85
+ import AdjustableSidebarWidth from 'theme /components/AdjustableSidebarWidth.vue';
84
86
import Navigator from 'docc-render/components/Navigator.vue';
85
87
import onPageLoadScrollToFragment from 'docc-render/mixins/onPageLoadScrollToFragment';
86
88
import { BreakpointName } from 'docc-render/utils/breakpoints';
87
89
import { storage } from 'docc-render/utils/storage';
88
90
import { getSetting } from 'docc-render/utils/theme-settings';
89
91
90
- import NavigatorDataProvider from 'theme/components/Navigator/NavigatorDataProvider.vue ';
92
+ import indexDataGetter from 'theme/mixins/indexDataGetter ';
91
93
import DocumentationNav from 'theme/components/DocumentationTopic/DocumentationNav.vue';
92
94
93
95
const NAVIGATOR_HIDDEN_ON_LARGE_KEY = 'navigator-hidden-large';
@@ -98,13 +100,12 @@ export default {
98
100
components: {
99
101
Navigator,
100
102
AdjustableSidebarWidth,
101
- NavigatorDataProvider,
102
103
Nav: DocumentationNav,
103
104
QuickNavigationButton,
104
105
QuickNavigationModal,
105
106
PortalTarget,
106
107
},
107
- mixins: [onPageLoadScrollToFragment],
108
+ mixins: [onPageLoadScrollToFragment, indexDataGetter ],
108
109
props: {
109
110
enableNavigator: Boolean,
110
111
diffAvailability: {
0 commit comments