@rxap/layout 22.0.0-dev.0 → 22.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +72 -5
- package/compodoc/components/AppsButtonComponent.html +174 -40
- package/compodoc/components/BaseLayoutComponent.html +115 -23
- package/compodoc/components/DefaultHeaderComponent.html +205 -36
- package/compodoc/components/FooterComponent.html +142 -27
- package/compodoc/components/HeaderComponent.html +165 -61
- package/compodoc/components/LayoutComponent.html +194 -44
- package/compodoc/components/MinimalLayoutComponent.html +120 -26
- package/compodoc/components/NavigationComponent.html +220 -133
- package/compodoc/components/NavigationItemComponent.html +248 -115
- package/compodoc/components/NavigationProgressBarComponent.html +121 -25
- package/compodoc/components/ReleaseInfoComponent.html +149 -32
- package/compodoc/components/SettingsButtonComponent.html +220 -62
- package/compodoc/components/SidenavComponent.html +222 -56
- package/compodoc/components/SidenavToggleButtonComponent.html +117 -27
- package/compodoc/components/UserProfileIconComponent.html +155 -66
- package/compodoc/dependencies.html +152 -49
- package/compodoc/directives/FooterDirective.html +74 -20
- package/compodoc/directives/HeaderDirective.html +74 -20
- package/compodoc/directives/SidenavFooterDirective.html +91 -19
- package/compodoc/directives/SidenavHeaderDirective.html +72 -19
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/DefaultHeaderService.html +91 -25
- package/compodoc/injectables/ExternalAppsService.html +123 -21
- package/compodoc/injectables/FooterService.html +91 -25
- package/compodoc/injectables/HeaderService.html +91 -25
- package/compodoc/injectables/LayoutService.html +91 -21
- package/compodoc/injectables/LogoService.html +103 -17
- package/compodoc/injectables/NavigationService.html +84 -24
- package/compodoc/interfaces/NavigationDividerItem.html +155 -100
- package/compodoc/interfaces/NavigationInsertItem.html +114 -64
- package/compodoc/interfaces/NavigationItem.html +305 -216
- package/compodoc/interfaces/NavigationStatus.html +80 -35
- package/compodoc/interfaces/ReleaseInfoModule.html +197 -137
- package/compodoc/interfaces/SettingsMenuItem.html +197 -137
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +26 -13
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +523 -0
- package/compodoc/miscellaneous/functions.html +90 -41
- package/compodoc/miscellaneous/typealiases.html +55 -12
- package/compodoc/miscellaneous/variables.html +163 -20
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +1672 -1215
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/AppsButtonComponent.html +110 -8
- package/docs/html/classes/BaseLayoutComponent.html +56 -2
- package/docs/html/classes/DefaultHeaderComponent.html +112 -10
- package/docs/html/classes/DefaultHeaderService.html +128 -13
- package/docs/html/classes/ExternalAppsService.html +240 -19
- package/docs/html/classes/FooterComponent.html +82 -5
- package/docs/html/classes/FooterDirective.html +95 -6
- package/docs/html/classes/FooterService.html +128 -13
- package/docs/html/classes/HeaderComponent.html +88 -6
- package/docs/html/classes/HeaderDirective.html +95 -6
- package/docs/html/classes/HeaderService.html +128 -13
- package/docs/html/classes/LayoutComponent.html +88 -6
- package/docs/html/classes/LayoutService.html +174 -16
- package/docs/html/classes/LogoService.html +88 -6
- package/docs/html/classes/MinimalLayoutComponent.html +56 -2
- package/docs/html/classes/NavigationComponent.html +156 -12
- package/docs/html/classes/NavigationItemComponent.html +172 -14
- package/docs/html/classes/NavigationProgressBarComponent.html +76 -4
- package/docs/html/classes/NavigationService.html +197 -12
- package/docs/html/classes/ReleaseInfoComponent.html +100 -6
- package/docs/html/classes/SettingsButtonComponent.html +242 -19
- package/docs/html/classes/SidenavComponent.html +190 -19
- package/docs/html/classes/SidenavFooterDirective.html +70 -3
- package/docs/html/classes/SidenavHeaderDirective.html +70 -3
- package/docs/html/classes/SidenavToggleButtonComponent.html +94 -5
- package/docs/html/classes/UserProfileIconComponent.html +106 -7
- package/docs/html/functions/IsNavigationDividerItem.html +42 -1
- package/docs/html/functions/IsNavigationInsertItem.html +42 -1
- package/docs/html/functions/IsNavigationItem.html +42 -1
- package/docs/html/functions/provideExternalApps.html +42 -1
- package/docs/html/functions/provideLayout.html +42 -1
- package/docs/html/functions/withDefaultHeaderComponent.html +38 -1
- package/docs/html/functions/withDefaultHeaderItems.html +42 -1
- package/docs/html/functions/withFooterComponents.html +42 -1
- package/docs/html/functions/withHeaderComponents.html +42 -1
- package/docs/html/functions/withNavigationConfig.html +42 -1
- package/docs/html/functions/withNavigationInserts.html +42 -1
- package/docs/html/functions/withReleaseInfoModules.html +42 -1
- package/docs/html/functions/withSettingsMenuItems.html +42 -1
- package/docs/html/functions/withUserProfileDataSource.html +43 -1
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +92 -18
- package/docs/html/interfaces/NavigationDividerItem.html +61 -3
- package/docs/html/interfaces/NavigationInsertItem.html +55 -2
- package/docs/html/interfaces/NavigationItem.html +94 -6
- package/docs/html/interfaces/NavigationStatus.html +63 -2
- package/docs/html/interfaces/ReleaseInfoModule.html +67 -4
- package/docs/html/interfaces/SettingsMenuItem.html +67 -4
- package/docs/html/modules.html +52 -1
- package/docs/html/types/DefaultHeaderItemComponent.html +33 -1
- package/docs/html/types/ExternalApp.html +33 -1
- package/docs/html/types/ExtractUsernameFromProfileFn.html +49 -1
- package/docs/html/types/Navigation.html +33 -1
- package/docs/html/types/NavigationWithInserts.html +33 -1
- package/docs/html/types/SettingsMenuItemComponent.html +33 -1
- package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +33 -1
- package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +33 -1
- package/docs/html/variables/RXAP_EXTERNAL_APP.html +33 -1
- package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +33 -1
- package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +33 -1
- package/docs/html/variables/RXAP_HEADER_COMPONENT.html +33 -1
- package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +33 -1
- package/docs/html/variables/RXAP_LOGO_CONFIG.html +33 -1
- package/docs/html/variables/RXAP_LOGO_CONFIG_DEFAULTS.html +33 -1
- package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +33 -1
- package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +33 -1
- package/docs/html/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.html +33 -1
- package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +33 -1
- package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +33 -1
- package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +33 -1
- package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +33 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AppsButtonComponent.md +11 -11
- package/docs/markdown/classes/BaseLayoutComponent.md +5 -5
- package/docs/markdown/classes/DefaultHeaderComponent.md +13 -13
- package/docs/markdown/classes/DefaultHeaderService.md +9 -9
- package/docs/markdown/classes/ExternalAppsService.md +29 -29
- package/docs/markdown/classes/FooterComponent.md +8 -8
- package/docs/markdown/classes/FooterDirective.md +7 -7
- package/docs/markdown/classes/FooterService.md +9 -9
- package/docs/markdown/classes/HeaderComponent.md +9 -9
- package/docs/markdown/classes/HeaderDirective.md +7 -7
- package/docs/markdown/classes/HeaderService.md +9 -9
- package/docs/markdown/classes/LayoutComponent.md +9 -9
- package/docs/markdown/classes/LayoutService.md +21 -21
- package/docs/markdown/classes/LogoService.md +9 -9
- package/docs/markdown/classes/MinimalLayoutComponent.md +5 -5
- package/docs/markdown/classes/NavigationComponent.md +19 -19
- package/docs/markdown/classes/NavigationItemComponent.md +21 -21
- package/docs/markdown/classes/NavigationProgressBarComponent.md +7 -7
- package/docs/markdown/classes/NavigationService.md +26 -26
- package/docs/markdown/classes/ReleaseInfoComponent.md +9 -9
- package/docs/markdown/classes/SettingsButtonComponent.md +24 -24
- package/docs/markdown/classes/SidenavComponent.md +24 -24
- package/docs/markdown/classes/SidenavFooterDirective.md +6 -6
- package/docs/markdown/classes/SidenavHeaderDirective.md +6 -6
- package/docs/markdown/classes/SidenavToggleButtonComponent.md +8 -8
- package/docs/markdown/classes/UserProfileIconComponent.md +11 -11
- package/docs/markdown/functions/IsNavigationDividerItem.md +2 -2
- package/docs/markdown/functions/IsNavigationInsertItem.md +2 -2
- package/docs/markdown/functions/IsNavigationItem.md +2 -2
- package/docs/markdown/functions/provideExternalApps.md +2 -2
- package/docs/markdown/functions/provideLayout.md +2 -2
- package/docs/markdown/functions/withDefaultHeaderComponent.md +2 -2
- package/docs/markdown/functions/withDefaultHeaderItems.md +3 -3
- package/docs/markdown/functions/withFooterComponents.md +2 -2
- package/docs/markdown/functions/withHeaderComponents.md +2 -2
- package/docs/markdown/functions/withNavigationConfig.md +3 -3
- package/docs/markdown/functions/withNavigationInserts.md +2 -2
- package/docs/markdown/functions/withReleaseInfoModules.md +2 -2
- package/docs/markdown/functions/withSettingsMenuItems.md +3 -3
- package/docs/markdown/functions/withUserProfileDataSource.md +4 -4
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/NavigationDividerItem.md +5 -5
- package/docs/markdown/interfaces/NavigationInsertItem.md +3 -3
- package/docs/markdown/interfaces/NavigationItem.md +14 -12
- package/docs/markdown/interfaces/NavigationStatus.md +3 -3
- package/docs/markdown/interfaces/ReleaseInfoModule.md +6 -6
- package/docs/markdown/interfaces/SettingsMenuItem.md +7 -7
- package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +3 -3
- package/docs/markdown/type-aliases/ExternalApp.md +3 -3
- package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +7 -5
- package/docs/markdown/type-aliases/Navigation.md +3 -3
- package/docs/markdown/type-aliases/NavigationWithInserts.md +3 -3
- package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +3 -3
- package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +2 -2
- package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +3 -3
- package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +2 -2
- package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +2 -2
- package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +2 -2
- package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +2 -2
- package/docs/markdown/variables/RXAP_LOGO_CONFIG_DEFAULTS.md +2 -2
- package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +3 -3
- package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +2 -2
- package/docs/markdown/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +2 -2
- package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +2 -2
- package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +2 -2
- package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +3 -3
- package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +2 -2
- package/docs/wiki/Class.AppsButtonComponent.md +10 -10
- package/docs/wiki/Class.BaseLayoutComponent.md +4 -4
- package/docs/wiki/Class.DefaultHeaderComponent.md +12 -12
- package/docs/wiki/Class.DefaultHeaderService.md +8 -8
- package/docs/wiki/Class.ExternalAppsService.md +28 -28
- package/docs/wiki/Class.FooterComponent.md +7 -7
- package/docs/wiki/Class.FooterDirective.md +6 -6
- package/docs/wiki/Class.FooterService.md +8 -8
- package/docs/wiki/Class.HeaderComponent.md +8 -8
- package/docs/wiki/Class.HeaderDirective.md +6 -6
- package/docs/wiki/Class.HeaderService.md +8 -8
- package/docs/wiki/Class.LayoutComponent.md +8 -8
- package/docs/wiki/Class.LayoutService.md +20 -20
- package/docs/wiki/Class.LogoService.md +8 -8
- package/docs/wiki/Class.MinimalLayoutComponent.md +4 -4
- package/docs/wiki/Class.NavigationComponent.md +18 -18
- package/docs/wiki/Class.NavigationItemComponent.md +20 -20
- package/docs/wiki/Class.NavigationProgressBarComponent.md +6 -6
- package/docs/wiki/Class.NavigationService.md +25 -25
- package/docs/wiki/Class.ReleaseInfoComponent.md +8 -8
- package/docs/wiki/Class.SettingsButtonComponent.md +23 -23
- package/docs/wiki/Class.SidenavComponent.md +23 -23
- package/docs/wiki/Class.SidenavFooterDirective.md +5 -5
- package/docs/wiki/Class.SidenavHeaderDirective.md +5 -5
- package/docs/wiki/Class.SidenavToggleButtonComponent.md +7 -7
- package/docs/wiki/Class.UserProfileIconComponent.md +10 -10
- package/docs/wiki/Function.IsNavigationDividerItem.md +1 -1
- package/docs/wiki/Function.IsNavigationInsertItem.md +1 -1
- package/docs/wiki/Function.IsNavigationItem.md +1 -1
- package/docs/wiki/Function.provideExternalApps.md +1 -1
- package/docs/wiki/Function.provideLayout.md +1 -1
- package/docs/wiki/Function.withDefaultHeaderComponent.md +1 -1
- package/docs/wiki/Function.withDefaultHeaderItems.md +2 -2
- package/docs/wiki/Function.withFooterComponents.md +1 -1
- package/docs/wiki/Function.withHeaderComponents.md +1 -1
- package/docs/wiki/Function.withNavigationConfig.md +2 -2
- package/docs/wiki/Function.withNavigationInserts.md +1 -1
- package/docs/wiki/Function.withReleaseInfoModules.md +1 -1
- package/docs/wiki/Function.withSettingsMenuItems.md +2 -2
- package/docs/wiki/Function.withUserProfileDataSource.md +3 -3
- package/docs/wiki/Interface.NavigationDividerItem.md +4 -4
- package/docs/wiki/Interface.NavigationInsertItem.md +2 -2
- package/docs/wiki/Interface.NavigationItem.md +13 -11
- package/docs/wiki/Interface.NavigationStatus.md +2 -2
- package/docs/wiki/Interface.ReleaseInfoModule.md +5 -5
- package/docs/wiki/Interface.SettingsMenuItem.md +6 -6
- package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +2 -2
- package/docs/wiki/TypeAlias.ExternalApp.md +2 -2
- package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +6 -4
- package/docs/wiki/TypeAlias.Navigation.md +2 -2
- package/docs/wiki/TypeAlias.NavigationWithInserts.md +2 -2
- package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +2 -2
- package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +1 -1
- package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +2 -2
- package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +1 -1
- package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +1 -1
- package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +1 -1
- package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +1 -1
- package/docs/wiki/Variable.RXAP_LOGO_CONFIG_DEFAULTS.md +1 -1
- package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +2 -2
- package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +1 -1
- package/docs/wiki/Variable.RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +1 -1
- package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +1 -1
- package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +1 -1
- package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +2 -2
- package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-layout.mjs +19 -17
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/package.json +35 -35
- package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/add-user-theme-provider-to-layout-providers.spec.ts +9 -0
- package/src/migrations/18.0.0/add-with-user-profile-provider/add-with-user-profile-provider.spec.ts +9 -0
- package/src/test-setup.ts +4 -17
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -89,11 +110,20 @@
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
<ol class="breadcrumb">
|
|
93
118
|
<li class="breadcrumb-item">Injectables</li>
|
|
94
119
|
<li class="breadcrumb-item" >NavigationService</li>
|
|
95
120
|
</ol>
|
|
96
121
|
|
|
122
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
123
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
124
|
+
<code>src/lib/navigation.service.ts</code>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
97
127
|
<ul class="nav nav-tabs" role="tablist">
|
|
98
128
|
<li class="nav-item">
|
|
99
129
|
<a href="#info"
|
|
@@ -101,6 +131,12 @@
|
|
|
101
131
|
class="nav-link active"
|
|
102
132
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
103
133
|
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a href="#api"
|
|
136
|
+
class="nav-link"
|
|
137
|
+
|
|
138
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
139
|
+
</li>
|
|
104
140
|
<li class="nav-item">
|
|
105
141
|
<a href="#source"
|
|
106
142
|
class="nav-link"
|
|
@@ -111,30 +147,26 @@
|
|
|
111
147
|
|
|
112
148
|
<div class="tab-content">
|
|
113
149
|
<div class="tab-pane fade active in" id="info">
|
|
114
|
-
<p class="comment">
|
|
115
|
-
<h3>File</h3>
|
|
116
|
-
</p>
|
|
117
|
-
<p class="comment">
|
|
118
|
-
<code>src/lib/navigation.service.ts</code>
|
|
119
|
-
</p>
|
|
120
150
|
|
|
121
151
|
|
|
122
152
|
|
|
123
153
|
|
|
124
154
|
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div class="tab-pane fade " id="api">
|
|
125
158
|
<section data-compodoc="block-index">
|
|
126
159
|
<h3 id="index">Index</h3>
|
|
127
|
-
|
|
128
|
-
|
|
160
|
+
<table class="table table-sm table-bordered index-table">
|
|
161
|
+
<tbody>
|
|
129
162
|
<tr>
|
|
130
|
-
<td class="col-md-
|
|
163
|
+
<td class="col-md-3">
|
|
131
164
|
<h6><b>Properties</b></h6>
|
|
132
165
|
</td>
|
|
133
|
-
|
|
134
|
-
<tr>
|
|
135
|
-
<td class="col-md-4">
|
|
166
|
+
<td class="col-md-9">
|
|
136
167
|
<ul class="index-list">
|
|
137
168
|
<li>
|
|
169
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
138
170
|
<span class="modifier">Public</span>
|
|
139
171
|
<span class="modifier">Readonly</span>
|
|
140
172
|
<a href="#config$" >config$</a>
|
|
@@ -142,49 +174,57 @@
|
|
|
142
174
|
</ul>
|
|
143
175
|
</td>
|
|
144
176
|
</tr>
|
|
177
|
+
</tbody>
|
|
178
|
+
</table>
|
|
145
179
|
|
|
180
|
+
<table class="table table-sm table-bordered index-table">
|
|
181
|
+
<tbody>
|
|
146
182
|
<tr>
|
|
147
|
-
<td class="col-md-
|
|
183
|
+
<td class="col-md-3">
|
|
148
184
|
<h6><b>Methods</b></h6>
|
|
149
185
|
</td>
|
|
150
|
-
|
|
151
|
-
<tr>
|
|
152
|
-
<td class="col-md-4">
|
|
186
|
+
<td class="col-md-9">
|
|
153
187
|
<ul class="index-list">
|
|
154
188
|
<li>
|
|
189
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
155
190
|
<span class="modifier">Public</span>
|
|
156
191
|
<a href="#add" >add</a>
|
|
157
192
|
</li>
|
|
158
193
|
<li>
|
|
194
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
159
195
|
<span class="modifier">Public</span>
|
|
160
196
|
<a href="#get" >get</a>
|
|
161
197
|
</li>
|
|
162
198
|
<li>
|
|
199
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
163
200
|
<span class="modifier">Public</span>
|
|
164
201
|
<a href="#has" >has</a>
|
|
165
202
|
</li>
|
|
166
203
|
<li>
|
|
204
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
167
205
|
<span class="modifier">Public</span>
|
|
168
206
|
<a href="#insert" class="deprecated-name">insert</a>
|
|
169
207
|
</li>
|
|
170
208
|
<li>
|
|
209
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
171
210
|
<span class="modifier">Public</span>
|
|
172
211
|
<a href="#remove" >remove</a>
|
|
173
212
|
</li>
|
|
174
213
|
<li>
|
|
214
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
175
215
|
<span class="modifier">Public</span>
|
|
176
216
|
<a href="#updateNavigation" >updateNavigation</a>
|
|
177
217
|
</li>
|
|
178
218
|
</ul>
|
|
179
219
|
</td>
|
|
180
220
|
</tr>
|
|
221
|
+
</tbody>
|
|
222
|
+
</table>
|
|
181
223
|
|
|
182
224
|
|
|
183
225
|
|
|
184
226
|
|
|
185
227
|
|
|
186
|
-
</tbody>
|
|
187
|
-
</table>
|
|
188
228
|
</section>
|
|
189
229
|
|
|
190
230
|
<section data-compodoc="block-constructor">
|
|
@@ -226,7 +266,7 @@
|
|
|
226
266
|
<tr>
|
|
227
267
|
<td class="col-md-4">
|
|
228
268
|
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
229
|
-
<code>add(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, value: <a href="../
|
|
269
|
+
<code>add(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, value: <a href="../miscellaneous/typealiases.html#NavigationWithInserts" target="_self">NavigationWithInserts</a>, update: unknown)</code>
|
|
230
270
|
</td>
|
|
231
271
|
</tr>
|
|
232
272
|
|
|
@@ -286,6 +326,7 @@
|
|
|
286
326
|
<tr>
|
|
287
327
|
<td>update</td>
|
|
288
328
|
<td>
|
|
329
|
+
<code>unknown</code>
|
|
289
330
|
</td>
|
|
290
331
|
|
|
291
332
|
<td>
|
|
@@ -469,7 +510,7 @@
|
|
|
469
510
|
<tr>
|
|
470
511
|
<td class="col-md-4">
|
|
471
512
|
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
472
|
-
<code>insert(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, value: <a href="../
|
|
513
|
+
<code>insert(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, value: <a href="../miscellaneous/typealiases.html#NavigationWithInserts" target="_self">NavigationWithInserts</a>, update: unknown)</code>
|
|
473
514
|
</td>
|
|
474
515
|
</tr>
|
|
475
516
|
|
|
@@ -529,6 +570,7 @@
|
|
|
529
570
|
<tr>
|
|
530
571
|
<td>update</td>
|
|
531
572
|
<td>
|
|
573
|
+
<code>unknown</code>
|
|
532
574
|
</td>
|
|
533
575
|
|
|
534
576
|
<td>
|
|
@@ -569,7 +611,7 @@
|
|
|
569
611
|
<tr>
|
|
570
612
|
<td class="col-md-4">
|
|
571
613
|
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
572
|
-
<code>remove(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, update)</code>
|
|
614
|
+
<code>remove(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, update: unknown)</code>
|
|
573
615
|
</td>
|
|
574
616
|
</tr>
|
|
575
617
|
|
|
@@ -615,6 +657,7 @@
|
|
|
615
657
|
<tr>
|
|
616
658
|
<td>update</td>
|
|
617
659
|
<td>
|
|
660
|
+
<code>unknown</code>
|
|
618
661
|
</td>
|
|
619
662
|
|
|
620
663
|
<td>
|
|
@@ -680,6 +723,7 @@
|
|
|
680
723
|
</tbody>
|
|
681
724
|
</table>
|
|
682
725
|
</section>
|
|
726
|
+
|
|
683
727
|
<section data-compodoc="block-properties">
|
|
684
728
|
|
|
685
729
|
<h3 id="inputs">
|
|
@@ -987,6 +1031,24 @@ export class NavigationService {
|
|
|
987
1031
|
|
|
988
1032
|
<script>
|
|
989
1033
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
1034
|
+
var updateDarkModeSwitchOffset = function () {
|
|
1035
|
+
var content = document.querySelector('.content');
|
|
1036
|
+
var scrollbarWidth = 0;
|
|
1037
|
+
|
|
1038
|
+
if (content) {
|
|
1039
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
document.documentElement.style.setProperty(
|
|
1043
|
+
'--content-scrollbar-width',
|
|
1044
|
+
scrollbarWidth + 'px'
|
|
1045
|
+
);
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
updateDarkModeSwitchOffset();
|
|
1049
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
1050
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
1051
|
+
|
|
990
1052
|
checkToggle(darkModeState);
|
|
991
1053
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
992
1054
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -1002,14 +1064,12 @@ export class NavigationService {
|
|
|
1002
1064
|
<script src="../js/libs/lit-html.js"></script>
|
|
1003
1065
|
|
|
1004
1066
|
<script src="../js/menu-wc.js" defer></script>
|
|
1005
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
1006
1067
|
|
|
1007
1068
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
1008
1069
|
|
|
1009
1070
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
1010
1071
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
1011
1072
|
<script src="../js/libs/promise.min.js"></script>
|
|
1012
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
1013
1073
|
|
|
1014
1074
|
<script src="../js/compodoc.js"></script>
|
|
1015
1075
|
|
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -94,6 +115,10 @@
|
|
|
94
115
|
|
|
95
116
|
|
|
96
117
|
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
97
122
|
<ol class="breadcrumb">
|
|
98
123
|
<li class="breadcrumb-item">Interfaces</li>
|
|
99
124
|
<li class="breadcrumb-item"
|
|
@@ -101,6 +126,11 @@
|
|
|
101
126
|
NavigationDividerItem</li>
|
|
102
127
|
</ol>
|
|
103
128
|
|
|
129
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
130
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
131
|
+
<code>src/lib/navigation/navigation-item.ts</code>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
104
134
|
<ul class="nav nav-tabs" role="tablist">
|
|
105
135
|
<li class="nav-item">
|
|
106
136
|
<a href="#info"
|
|
@@ -108,6 +138,12 @@
|
|
|
108
138
|
class="nav-link active"
|
|
109
139
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
110
140
|
</li>
|
|
141
|
+
<li class="nav-item">
|
|
142
|
+
<a href="#api"
|
|
143
|
+
class="nav-link"
|
|
144
|
+
|
|
145
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
146
|
+
</li>
|
|
111
147
|
<li class="nav-item">
|
|
112
148
|
<a href="#source"
|
|
113
149
|
class="nav-link"
|
|
@@ -118,125 +154,128 @@
|
|
|
118
154
|
|
|
119
155
|
<div class="tab-content">
|
|
120
156
|
<div class="tab-pane fade active in" id="info">
|
|
121
|
-
<p class="comment">
|
|
122
|
-
<h3>File</h3>
|
|
123
|
-
</p>
|
|
124
|
-
<p class="comment">
|
|
125
|
-
<code>src/lib/navigation/navigation-item.ts</code>
|
|
126
|
-
</p>
|
|
127
|
-
|
|
128
157
|
|
|
129
158
|
|
|
130
159
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div class="tab-pane fade " id="api"><section data-compodoc="block-index">
|
|
163
|
+
<h3 id="index">Index</h3>
|
|
164
|
+
<table class="table table-sm table-bordered index-table">
|
|
165
|
+
<tbody>
|
|
166
|
+
<tr>
|
|
167
|
+
<td class="col-md-3">
|
|
168
|
+
<h6><b>Properties</b></h6>
|
|
169
|
+
</td>
|
|
170
|
+
<td class="col-md-9">
|
|
171
|
+
<ul class="index-list">
|
|
172
|
+
<li>
|
|
173
|
+
<a href="#divider" class="reference-link ">
|
|
174
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">divider</span>
|
|
175
|
+
</a>
|
|
176
|
+
</li>
|
|
177
|
+
<li>
|
|
178
|
+
<span class="modifier">Optional</span>
|
|
179
|
+
<a href="#title" class="reference-link ">
|
|
180
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">title</span>
|
|
181
|
+
</a>
|
|
182
|
+
</li>
|
|
183
|
+
</ul>
|
|
184
|
+
</td>
|
|
185
|
+
</tr>
|
|
186
|
+
</tbody>
|
|
187
|
+
</table>
|
|
188
|
+
</section>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<section data-compodoc="block-properties">
|
|
193
|
+
<h3 id="inputs">Properties</h3>
|
|
194
|
+
<table class="table table-sm table-bordered">
|
|
134
195
|
<tbody>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</li>
|
|
149
|
-
<li>
|
|
150
|
-
<span class="modifier">Optional</span>
|
|
151
|
-
<a href="#title"
|
|
152
|
-
>
|
|
153
|
-
title
|
|
154
|
-
</a>
|
|
155
|
-
</li>
|
|
156
|
-
</ul>
|
|
157
|
-
</td>
|
|
158
|
-
</tr>
|
|
159
|
-
</tbody>
|
|
160
|
-
</table>
|
|
161
|
-
</section>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
<section data-compodoc="block-properties">
|
|
166
|
-
<h3 id="inputs">Properties</h3>
|
|
167
|
-
<table class="table table-sm table-bordered">
|
|
168
|
-
<tbody>
|
|
169
|
-
<tr>
|
|
170
|
-
<td class="col-md-4">
|
|
171
|
-
<a name="divider"></a>
|
|
172
|
-
<span class="name "><b>divider</b>
|
|
173
|
-
<a href="#divider">
|
|
174
|
-
<span class="icon ion-ios-link"></span>
|
|
175
|
-
</a>
|
|
176
|
-
</span>
|
|
177
|
-
</td>
|
|
178
|
-
</tr>
|
|
179
|
-
<tr>
|
|
180
|
-
<td class="col-md-4">
|
|
181
|
-
<code>divider: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
196
|
+
<tr>
|
|
197
|
+
<td class="col-md-4">
|
|
198
|
+
<a name="divider"></a>
|
|
199
|
+
<span class="name "><b>divider</b>
|
|
200
|
+
<a href="#divider">
|
|
201
|
+
<span class="icon ion-ios-link"></span>
|
|
202
|
+
</a>
|
|
203
|
+
</span>
|
|
204
|
+
</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td class="col-md-4">
|
|
208
|
+
<code>divider: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
182
209
|
</code>
|
|
183
|
-
|
|
184
|
-
|
|
210
|
+
</td>
|
|
211
|
+
</tr>
|
|
212
|
+
|
|
185
213
|
|
|
214
|
+
<tr>
|
|
215
|
+
<td class="col-md-4">
|
|
216
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
186
217
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
218
|
+
</td>
|
|
219
|
+
</tr>
|
|
190
220
|
|
|
191
|
-
</td>
|
|
192
|
-
</tr>
|
|
193
221
|
|
|
194
222
|
|
|
195
223
|
|
|
196
224
|
|
|
225
|
+
<tr>
|
|
226
|
+
<td class="col-md-4">
|
|
227
|
+
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/lib/navigation/navigation-item.ts:18</a></div>
|
|
228
|
+
</td>
|
|
229
|
+
</tr>
|
|
197
230
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
231
|
+
</tbody>
|
|
232
|
+
</table>
|
|
233
|
+
<table class="table table-sm table-bordered">
|
|
234
|
+
<tbody>
|
|
235
|
+
<tr>
|
|
236
|
+
<td class="col-md-4">
|
|
237
|
+
<a name="title"></a>
|
|
238
|
+
<span class="name "><b>title</b>
|
|
239
|
+
<a href="#title">
|
|
240
|
+
<span class="icon ion-ios-link"></span>
|
|
241
|
+
</a>
|
|
242
|
+
</span>
|
|
243
|
+
</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<td class="col-md-4">
|
|
247
|
+
<code>title: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
215
248
|
</code>
|
|
216
|
-
|
|
217
|
-
|
|
249
|
+
</td>
|
|
250
|
+
</tr>
|
|
218
251
|
|
|
219
252
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
253
|
+
<tr>
|
|
254
|
+
<td class="col-md-4">
|
|
255
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
223
256
|
|
|
224
|
-
|
|
225
|
-
|
|
257
|
+
</td>
|
|
258
|
+
</tr>
|
|
226
259
|
|
|
227
|
-
<tr>
|
|
228
|
-
<td class="col-md-4">
|
|
229
|
-
<i>Optional</i>
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
260
|
|
|
261
|
+
<tr>
|
|
262
|
+
<td class="col-md-4">
|
|
263
|
+
<i>Optional</i>
|
|
264
|
+
</td>
|
|
265
|
+
</tr>
|
|
233
266
|
|
|
234
267
|
|
|
235
268
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
269
|
+
<tr>
|
|
270
|
+
<td class="col-md-4">
|
|
271
|
+
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/navigation/navigation-item.ts:19</a></div>
|
|
272
|
+
</td>
|
|
273
|
+
</tr>
|
|
274
|
+
|
|
275
|
+
</tbody>
|
|
276
|
+
</table>
|
|
277
|
+
</section>
|
|
278
|
+
</div>
|
|
240
279
|
|
|
241
280
|
|
|
242
281
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
@@ -343,6 +382,24 @@ export function IsNavigationItem(item: any): item is NavigationItem {
|
|
|
343
382
|
|
|
344
383
|
<script>
|
|
345
384
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
385
|
+
var updateDarkModeSwitchOffset = function () {
|
|
386
|
+
var content = document.querySelector('.content');
|
|
387
|
+
var scrollbarWidth = 0;
|
|
388
|
+
|
|
389
|
+
if (content) {
|
|
390
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
document.documentElement.style.setProperty(
|
|
394
|
+
'--content-scrollbar-width',
|
|
395
|
+
scrollbarWidth + 'px'
|
|
396
|
+
);
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
updateDarkModeSwitchOffset();
|
|
400
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
401
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
402
|
+
|
|
346
403
|
checkToggle(darkModeState);
|
|
347
404
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
348
405
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -358,14 +415,12 @@ export function IsNavigationItem(item: any): item is NavigationItem {
|
|
|
358
415
|
<script src="../js/libs/lit-html.js"></script>
|
|
359
416
|
|
|
360
417
|
<script src="../js/menu-wc.js" defer></script>
|
|
361
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
362
418
|
|
|
363
419
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
364
420
|
|
|
365
421
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
366
422
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
367
423
|
<script src="../js/libs/promise.min.js"></script>
|
|
368
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
369
424
|
|
|
370
425
|
<script src="../js/compodoc.js"></script>
|
|
371
426
|
|