@eui/mobile-core 20.0.2 → 22.0.0-alpha.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 +14 -0
- package/docs/architecture.html +223 -0
- package/docs/changelog.html +69 -4
- package/docs/components/EuiMUserProfileActionComponent.html +80 -130
- package/docs/components/EuiMUserProfileAvatarComponent.html +74 -129
- package/docs/components/EuiMUserProfileInfosComponent.html +117 -117
- package/docs/components/EuiMUserProfileInfosItemComponent.html +74 -129
- package/docs/components/EuimAboutComponent.html +108 -28
- package/docs/components/EuimAboutContentLoadingComponent.html +107 -33
- package/docs/components/EuimAlertMessageComponent.html +161 -90
- package/docs/components/EuimAppComponent.html +105 -27
- package/docs/components/EuimAvatarBadgeComponent.html +120 -72
- package/docs/components/EuimAvatarComponent.html +123 -121
- package/docs/components/EuimAvatarIconComponent.html +74 -129
- package/docs/components/EuimAvatarIconSubComponent.html +123 -121
- package/docs/components/EuimAvatarImageComponent.html +91 -121
- package/docs/components/EuimAvatarTextComponent.html +115 -117
- package/docs/components/EuimBadgeComponent.html +121 -43
- package/docs/components/EuimCardComponent.html +123 -71
- package/docs/components/EuimCardListComponent.html +118 -118
- package/docs/components/EuimChangelogComponent.html +131 -128
- package/docs/components/EuimChipSelectorComponent.html +257 -184
- package/docs/components/EuimDataSummaryColComponent.html +92 -25
- package/docs/components/EuimDataSummaryComponent.html +127 -44
- package/docs/components/EuimEmptyListPlaceholderComponent.html +176 -156
- package/docs/components/EuimHeaderDetailsComponent.html +130 -49
- package/docs/components/EuimHelpSupportComponent.html +159 -130
- package/docs/components/EuimHelperTextComponent.html +161 -66
- package/docs/components/EuimLabelComponent.html +134 -53
- package/docs/components/EuimLanguageListComponent.html +185 -31
- package/docs/components/EuimLanguageSelectorComponent.html +156 -54
- package/docs/components/EuimMediaHeaderComponent.html +137 -52
- package/docs/components/EuimMessageComponent.html +130 -47
- package/docs/components/EuimMessageTitleComponent.html +92 -25
- package/docs/components/EuimMultiselectComponent.html +160 -131
- package/docs/components/EuimMultiselectFilterComponent.html +103 -123
- package/docs/components/EuimMultiselectInfoComponent.html +91 -125
- package/docs/components/EuimMultiselectListComponent.html +85 -122
- package/docs/components/EuimMultiselectToolbarComponent.html +126 -134
- package/docs/components/EuimNotificationItemComponent.html +121 -43
- package/docs/components/EuimOpenSourceLicencesComponent.html +127 -137
- package/docs/components/EuimPdfViewerComponent.html +214 -141
- package/docs/components/EuimScrollerXComponent.html +78 -130
- package/docs/components/EuimSidebarComponent.html +125 -114
- package/docs/components/EuimSidebarContentComponent.html +151 -124
- package/docs/components/EuimSkeletonListComponent.html +127 -42
- package/docs/components/EuimSkeletonListItemComponent.html +159 -56
- package/docs/components/EuimSlideInfoScreenComponent.html +74 -129
- package/docs/components/EuimSliderInfoScreenComponent.html +247 -174
- package/docs/components/EuimSpinnerComponent.html +131 -119
- package/docs/components/EuimSpinnerDescriptionComponent.html +74 -129
- package/docs/components/EuimSpinnerMessageComponent.html +74 -129
- package/docs/components/EuimToolbarActionItemsComponent.html +74 -129
- package/docs/components/EuimToolbarComponent.html +150 -140
- package/docs/components/EuimToolbarDatepickerComponent.html +291 -114
- package/docs/components/EuimToolbarQrcodeComponent.html +100 -32
- package/docs/components/EuimToolbarTitleComponent.html +121 -43
- package/docs/components/EuimUserProfileComponent.html +117 -117
- package/docs/dependencies.html +56 -4
- package/docs/directives/BaseStatesDirective.html +175 -62
- package/docs/directives/EuimAlignCenterDirective.html +92 -23
- package/docs/directives/EuimAlignTopDirective.html +92 -23
- package/docs/directives/EuimAvatarMainIconDirective.html +73 -23
- package/docs/directives/EuimAvatarSubIconDirective.html +73 -23
- package/docs/directives/EuimCardImageDirective.html +86 -118
- package/docs/directives/EuimChipSelectorItemDirective.html +104 -108
- package/docs/directives/EuimDataSummaryColLabelDirective.html +121 -41
- package/docs/directives/EuimDataSummaryColValueDirective.html +117 -41
- package/docs/directives/EuimDividerDirective.html +118 -42
- package/docs/directives/EuimEmptyListPlaceholderIconDirective.html +92 -23
- package/docs/directives/EuimEmptyListPlaceholderSubtitleDirective.html +92 -23
- package/docs/directives/EuimEmptyListPlaceholderTitleDirective.html +92 -23
- package/docs/directives/EuimFooterTransparentDirective.html +92 -23
- package/docs/directives/EuimHeaderDetailsIconDirective.html +66 -126
- package/docs/directives/EuimHeaderDetailsMetaDirective.html +66 -126
- package/docs/directives/EuimHeaderDetailsTitleDirective.html +66 -126
- package/docs/directives/EuimListHeaderDirective.html +118 -42
- package/docs/directives/EuimListItemNoPaddingsDirective.html +92 -23
- package/docs/directives/EuimMediaHeaderCustomContentDirective.html +95 -23
- package/docs/directives/EuimMediaHeaderImageDirective.html +92 -23
- package/docs/directives/EuimMediaHeaderSubTitleDirective.html +92 -23
- package/docs/directives/EuimMediaHeaderTitleDirective.html +66 -126
- package/docs/directives/EuimMinWidthDirective.html +105 -29
- package/docs/directives/EuimMultiselectAllDirective.html +138 -101
- package/docs/directives/EuimMultiselectSelectFieldDirective.html +102 -127
- package/docs/directives/EuimReadOnlyFormDirective.html +66 -126
- package/docs/directives/EuimReadOnlyFormLabelDirective.html +92 -23
- package/docs/directives/EuimReadOnlyFormValueDirective.html +66 -126
- package/docs/directives/EuimSidebarFooterNoBordersDirective.html +92 -23
- package/docs/directives/EuimSkeletonTextAvatarDirective.html +92 -23
- package/docs/directives/EuimSliderInfoScreenContentDirective.html +112 -114
- package/docs/directives/EuimSliderInfoScreenSubTitleDirective.html +66 -126
- package/docs/directives/EuimSliderInfoScreenTitleDirective.html +66 -126
- package/docs/directives/EuimToolbarDatepickerDatetimeDirective.html +122 -43
- package/docs/directives/EuimToolbarTransparentDirective.html +140 -54
- package/docs/index.html +54 -2
- package/docs/injectables/EuimAppService.html +102 -38
- package/docs/interfaces/ActionBtnsIconsNames.html +169 -123
- package/docs/interfaces/ActionBtnsNames.html +169 -123
- package/docs/interfaces/FilteredData.html +138 -92
- package/docs/interfaces/HelpAndSupportItem.html +145 -99
- package/docs/interfaces/Item.html +504 -458
- package/docs/interfaces/MenuItem.html +408 -362
- package/docs/interfaces/UIState.html +109 -63
- package/docs/js/architecture-graph.js +288 -0
- package/docs/js/libs/bootstrap-native.js +4 -2
- package/docs/js/libs/jszip.min.js +13 -0
- package/docs/js/libs/svg-pan-zoom.min.js +3 -3
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +3 -3
- package/docs/js/libs/vis-network.min.js +78 -0
- package/docs/js/menu-wc.js +25 -13
- package/docs/js/routes/routes_index.js +1 -0
- package/docs/js/routes.js +142 -34
- package/docs/js/search/search.js +62 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/js/tabs.js +98 -15
- package/docs/js/tree.js +44 -7
- package/docs/json/EuimAlertMessageComponent.md +1 -1
- package/docs/json/EuimAvatarImageComponent.md +1 -1
- package/docs/json/EuimCardListComponent.md +1 -1
- package/docs/json/EuimChangelogComponent.md +1 -1
- package/docs/json/EuimChipSelectorComponent.md +4 -4
- package/docs/json/EuimHeaderDetailsComponent.md +1 -1
- package/docs/json/EuimHelperTextComponent.md +1 -0
- package/docs/json/EuimMultiselectComponent.md +1 -1
- package/docs/json/EuimMultiselectToolbarComponent.md +2 -2
- package/docs/json/EuimOpenSourceLicencesComponent.md +2 -2
- package/docs/json/EuimPdfViewerComponent.md +0 -1
- package/docs/json/EuimSidebarContentComponent.md +3 -4
- package/docs/json/EuimSliderInfoScreenComponent.md +3 -3
- package/docs/json/EuimToolbarComponent.md +1 -1
- package/docs/json/EuimToolbarDatepickerComponent.md +5 -4
- package/docs/json/EuimToolbarQrcodeComponent.md +1 -1
- package/docs/json/HbsRenderService.md +6 -0
- package/docs/json/TemplateEditorService.md +6 -0
- package/docs/json/TemplatePlaygroundComponent.md +8 -0
- package/docs/json/ZipExportService.md +6 -0
- package/docs/json/documentation.json +6868 -3891
- package/docs/license.html +46 -4
- package/docs/llms.txt +1527 -0
- package/docs/miscellaneous/typealiases.html +53 -8
- package/docs/miscellaneous/variables.html +320 -36
- package/docs/modules/EuimAboutModule.html +87 -10
- package/docs/modules/EuimAlertMessageModule.html +75 -10
- package/docs/modules/EuimAllModule.html +190 -9
- package/docs/modules/EuimAppModule.html +75 -10
- package/docs/modules/EuimAvatarModule.html +99 -10
- package/docs/modules/EuimBadgeModule.html +75 -10
- package/docs/modules/EuimCardListModule.html +75 -10
- package/docs/modules/EuimCardModule.html +78 -10
- package/docs/modules/EuimChipSelectorComponentModule.html +74 -10
- package/docs/modules/EuimDataSummaryModule.html +84 -10
- package/docs/modules/EuimDividerModule.html +75 -10
- package/docs/modules/EuimEmptyListPlaceholderModule.html +90 -10
- package/docs/modules/EuimHeaderDetailsModule.html +84 -10
- package/docs/modules/EuimLabelModule.html +87 -10
- package/docs/modules/EuimLanguageSelectorModule.html +81 -10
- package/docs/modules/EuimListHeaderModule.html +75 -10
- package/docs/modules/EuimMediaHeaderModule.html +87 -10
- package/docs/modules/EuimMessageModule.html +78 -10
- package/docs/modules/EuimMultiselectModule.html +93 -10
- package/docs/modules/EuimNotificationItemModule.html +75 -10
- package/docs/modules/EuimPdfViewerModule.html +75 -10
- package/docs/modules/EuimScrollerXComponentModule.html +75 -10
- package/docs/modules/EuimSidebarModule.html +78 -10
- package/docs/modules/EuimSkeletonListItemModule.html +75 -10
- package/docs/modules/EuimSkeletonListModule.html +75 -10
- package/docs/modules/EuimSkeletonTextAvatarModule.html +75 -10
- package/docs/modules/EuimSliderInfoScreenModule.html +87 -10
- package/docs/modules/EuimSpinnerComponentModule.html +81 -10
- package/docs/modules/EuimToolbarComponentModule.html +81 -10
- package/docs/modules/EuimToolbarDatepickerModule.html +75 -10
- package/docs/modules/EuimToolbarQrcodeModule.html +75 -10
- package/docs/modules/EuimUserProfileModule.html +87 -10
- package/docs/modules.html +44 -2
- package/docs/properties.html +45 -3
- package/docs/routes.html +228 -0
- package/docs/styles/compodoc.css +365 -44
- package/docs/styles/dark.css +16 -0
- package/docs/template-playground/default-templates.json +192 -0
- package/docs/template-playground/hbs-render.service.ts +217 -0
- package/docs/template-playground/main.ts +9 -0
- package/docs/template-playground/template-editor.service.ts +173 -0
- package/docs/template-playground/template-playground.component.ts +614 -0
- package/docs/template-playground/template-playground.module.ts +29 -0
- package/docs/template-playground/zip-export.service.ts +86 -0
- package/docs/template-playground-app/app.js +1389 -0
- package/docs/template-playground-app/index.html +462 -0
- package/fesm2022/eui-mobile-core.mjs +870 -1214
- package/fesm2022/eui-mobile-core.mjs.map +1 -1
- package/package.json +12 -11
- package/{index.d.ts → types/eui-mobile-core.d.ts} +143 -215
- package/types/eui-mobile-core.d.ts.map +1 -0
- package/docs/js/libs/vis.min.js +0 -47
- package/docs/js/menu-wc_es5.js +0 -40
package/docs/js/menu-wc.js
CHANGED
|
@@ -19,15 +19,23 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
19
19
|
</li>
|
|
20
20
|
|
|
21
21
|
<li class="divider"></li>
|
|
22
|
-
${ isNormalMode ? `<div id="book-search-input" role="search"
|
|
22
|
+
${ isNormalMode ? `<div id="book-search-input" role="search">
|
|
23
|
+
<input type="text" placeholder="Type to search">
|
|
24
|
+
<button type="button"
|
|
25
|
+
class="search-input-clear"
|
|
26
|
+
aria-label="Clear search"
|
|
27
|
+
data-search-input-clear>×</button>
|
|
28
|
+
</div>
|
|
29
|
+
` : '' }
|
|
23
30
|
<li class="chapter">
|
|
24
31
|
<a data-type="chapter-link" href="index.html"><span class="icon ion-ios-home"></span>Getting started</a>
|
|
25
32
|
<ul class="links">
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
<li class="link">
|
|
34
|
+
<a href="index.html" data-type="chapter-link">
|
|
35
|
+
<span class="icon ion-ios-keypad"></span>Overview
|
|
36
|
+
</a>
|
|
37
|
+
</li>
|
|
38
|
+
|
|
31
39
|
<li class="link">
|
|
32
40
|
<a href="changelog.html" data-type="chapter-link">
|
|
33
41
|
<span class="icon ion-ios-paper"></span>CHANGELOG
|
|
@@ -43,6 +51,7 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
43
51
|
<span class="icon ion-ios-apps"></span>Properties
|
|
44
52
|
</a>
|
|
45
53
|
</li>
|
|
54
|
+
|
|
46
55
|
</ul>
|
|
47
56
|
</li>
|
|
48
57
|
<li class="chapter modules">
|
|
@@ -59,13 +68,13 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
59
68
|
<a href="modules/EuimAboutModule.html" data-type="entity-link" class="deprecated-name">EuimAboutModule</a>
|
|
60
69
|
<li class="chapter inner">
|
|
61
70
|
<div class="simple menu-toggler" data-bs-toggle="collapse" ${ isNormalMode ?
|
|
62
|
-
'data-bs-target="#components-links-module-EuimAboutModule-
|
|
71
|
+
'data-bs-target="#components-links-module-EuimAboutModule-e549eda796d29eb893d705b09af578fd5d529da57401d5c9525694f9dc23942b01fff10f794419dfacd3a309c3f9728674fe116a2434c2c80768b8f121b64a6e"' : 'data-bs-target="#xs-components-links-module-EuimAboutModule-e549eda796d29eb893d705b09af578fd5d529da57401d5c9525694f9dc23942b01fff10f794419dfacd3a309c3f9728674fe116a2434c2c80768b8f121b64a6e"' }>
|
|
63
72
|
<span class="icon ion-md-cog"></span>
|
|
64
73
|
<span>Components</span>
|
|
65
74
|
<span class="icon ion-ios-arrow-down"></span>
|
|
66
75
|
</div>
|
|
67
|
-
<ul class="links collapse" ${ isNormalMode ? 'id="components-links-module-EuimAboutModule-
|
|
68
|
-
'id="xs-components-links-module-EuimAboutModule-
|
|
76
|
+
<ul class="links collapse" ${ isNormalMode ? 'id="components-links-module-EuimAboutModule-e549eda796d29eb893d705b09af578fd5d529da57401d5c9525694f9dc23942b01fff10f794419dfacd3a309c3f9728674fe116a2434c2c80768b8f121b64a6e"' :
|
|
77
|
+
'id="xs-components-links-module-EuimAboutModule-e549eda796d29eb893d705b09af578fd5d529da57401d5c9525694f9dc23942b01fff10f794419dfacd3a309c3f9728674fe116a2434c2c80768b8f121b64a6e"' }>
|
|
69
78
|
<li class="link">
|
|
70
79
|
<a href="components/EuimAboutComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimAboutComponent</a>
|
|
71
80
|
</li>
|
|
@@ -185,9 +194,6 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
185
194
|
<li class="link">
|
|
186
195
|
<a href="components/EuimChipSelectorComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimChipSelectorComponent</a>
|
|
187
196
|
</li>
|
|
188
|
-
<li class="link">
|
|
189
|
-
<a href="components/EuimHelperTextComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimHelperTextComponent</a>
|
|
190
|
-
</li>
|
|
191
197
|
<li class="link">
|
|
192
198
|
<a href="components/EuimScrollerXComponent.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimScrollerXComponent</a>
|
|
193
199
|
</li>
|
|
@@ -214,6 +220,9 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
214
220
|
<li class="link">
|
|
215
221
|
<a href="directives/EuimAlignTopDirective.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimAlignTopDirective</a>
|
|
216
222
|
</li>
|
|
223
|
+
<li class="link">
|
|
224
|
+
<a href="directives/EuimFooterTransparentDirective.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimFooterTransparentDirective</a>
|
|
225
|
+
</li>
|
|
217
226
|
<li class="link">
|
|
218
227
|
<a href="directives/EuimListItemNoPaddingsDirective.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >EuimListItemNoPaddingsDirective</a>
|
|
219
228
|
</li>
|
|
@@ -1300,9 +1309,12 @@ customElements.define('compodoc-menu', class extends HTMLElement {
|
|
|
1300
1309
|
</li>
|
|
1301
1310
|
</ul>
|
|
1302
1311
|
</li>
|
|
1312
|
+
<li class="chapter">
|
|
1313
|
+
<a data-type="chapter-link" href="routes.html"><span class="icon ion-ios-git-branch"></span>Routes</a>
|
|
1314
|
+
</li>
|
|
1303
1315
|
</ul>
|
|
1304
1316
|
</nav>
|
|
1305
1317
|
`);
|
|
1306
1318
|
this.innerHTML = tp.strings;
|
|
1307
1319
|
}
|
|
1308
|
-
});
|
|
1320
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ROUTES_INDEX = {"name":"<root>","kind":"module","children":[{"name":"EuimAboutModule","kind":"module","filename":"packages/core/src/lib/components/euim-about/euim-about.module.ts"}]}
|
package/docs/js/routes.js
CHANGED
|
@@ -15,6 +15,65 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
15
15
|
return lazyModuleName;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
function foundLazyComponentWithPath(path) {
|
|
19
|
+
var split = path.split('#'),
|
|
20
|
+
lazyComponentName = split[1];
|
|
21
|
+
return lazyComponentName;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function safeHref(href) {
|
|
25
|
+
return String(href || '').replace(/"/g, '"');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function resolveNodeHref(d) {
|
|
29
|
+
if (!d) {
|
|
30
|
+
return '';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (d.href) {
|
|
34
|
+
return d.href;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (d.component && d.component !== 'default') {
|
|
38
|
+
return './components/' + d.component + '.html';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (d.module && d.module !== 'default') {
|
|
42
|
+
return './modules/' + d.module + '.html';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (d.loadComponent) {
|
|
46
|
+
var lazyComponent = foundLazyComponentWithPath(d.loadComponent);
|
|
47
|
+
if (lazyComponent && lazyComponent !== 'default') {
|
|
48
|
+
return './components/' + lazyComponent + '.html';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (d.loadChildren) {
|
|
53
|
+
var lazyModule = foundLazyModuleWithPath(d.loadChildren);
|
|
54
|
+
if (lazyModule && lazyModule !== 'default') {
|
|
55
|
+
return './modules/' + lazyModule + '.html';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return '';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function wrapLabelWithLink(label, href) {
|
|
63
|
+
if (!href) {
|
|
64
|
+
return label;
|
|
65
|
+
}
|
|
66
|
+
return '<a href="' + safeHref(href) + '" target="_top">' + label + '</a>';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function withLeadingSlash(routeValue) {
|
|
70
|
+
var value = String(routeValue || '');
|
|
71
|
+
if (value.length === 0) {
|
|
72
|
+
return '/';
|
|
73
|
+
}
|
|
74
|
+
return value.charAt(0) === '/' ? value : '/' + value;
|
|
75
|
+
}
|
|
76
|
+
|
|
18
77
|
function getBB(selection) {
|
|
19
78
|
selection.each(function (d) {
|
|
20
79
|
d.bbox = this.getBBox();
|
|
@@ -26,16 +85,32 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
26
85
|
var tree = ROUTES_INDEX;
|
|
27
86
|
|
|
28
87
|
function cleanStringChildren(obj) {
|
|
88
|
+
if (!obj || typeof obj !== 'object') {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
29
91
|
for (var property in obj) {
|
|
30
|
-
if (
|
|
31
|
-
if (property === 'children'
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
92
|
+
if (Object.prototype.hasOwnProperty.call(obj, property)) {
|
|
93
|
+
if (property === 'children') {
|
|
94
|
+
if (typeof obj[property] === 'string') {
|
|
95
|
+
obj[property] = [];
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (Array.isArray(obj[property])) {
|
|
100
|
+
for (var i = obj[property].length - 1; i >= 0; i--) {
|
|
101
|
+
if (
|
|
102
|
+
typeof obj[property][i] !== 'object' ||
|
|
103
|
+
obj[property][i] === null
|
|
104
|
+
) {
|
|
105
|
+
obj[property].splice(i, 1);
|
|
106
|
+
}
|
|
35
107
|
}
|
|
108
|
+
} else if (obj[property] && typeof obj[property] === 'object') {
|
|
109
|
+
obj[property] = [];
|
|
36
110
|
}
|
|
37
111
|
}
|
|
38
|
-
|
|
112
|
+
|
|
113
|
+
if (obj[property] && typeof obj[property] === 'object') {
|
|
39
114
|
cleanStringChildren(obj[property]);
|
|
40
115
|
}
|
|
41
116
|
}
|
|
@@ -84,6 +159,17 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
84
159
|
dy: 0
|
|
85
160
|
});
|
|
86
161
|
|
|
162
|
+
infos_group
|
|
163
|
+
.style('cursor', function (d) {
|
|
164
|
+
return resolveNodeHref(d) ? 'pointer' : null;
|
|
165
|
+
})
|
|
166
|
+
.on('click', function (d) {
|
|
167
|
+
var href = resolveNodeHref(d);
|
|
168
|
+
if (href) {
|
|
169
|
+
window.location.href = href;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
|
|
87
173
|
//Node icon
|
|
88
174
|
infos_group
|
|
89
175
|
.append('text')
|
|
@@ -118,49 +204,66 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
118
204
|
// if kind === module name + module
|
|
119
205
|
// if kind === component component + path
|
|
120
206
|
var _name = '';
|
|
207
|
+
var nodeHref = resolveNodeHref(d);
|
|
121
208
|
if (d.kind === 'module') {
|
|
122
209
|
if (d.module) {
|
|
123
210
|
_name +=
|
|
124
|
-
'<tspan x="0" dy="1.4em"
|
|
125
|
-
d.module +
|
|
126
|
-
'
|
|
127
|
-
d.module +
|
|
128
|
-
'</a></tspan>';
|
|
211
|
+
'<tspan x="0" dy="1.4em">' +
|
|
212
|
+
wrapLabelWithLink(d.module, nodeHref || './modules/' + d.module + '.html') +
|
|
213
|
+
'</tspan>';
|
|
129
214
|
if (d.name) {
|
|
130
215
|
_name += '<tspan x="0" dy="1.4em">' + d.name + '</tspan>';
|
|
131
216
|
}
|
|
132
217
|
} else {
|
|
133
|
-
_name +=
|
|
218
|
+
_name +=
|
|
219
|
+
'<tspan x="0" dy="1.4em">' +
|
|
220
|
+
wrapLabelWithLink(htmlEntities(d.name), nodeHref) +
|
|
221
|
+
'</tspan>';
|
|
134
222
|
}
|
|
135
223
|
} else if (d.kind === 'component') {
|
|
136
|
-
_name += '<tspan x="0" dy="1.4em">' + d.path + '</tspan>';
|
|
137
224
|
_name +=
|
|
138
|
-
'<tspan x="0" dy="1.4em"
|
|
139
|
-
d.
|
|
140
|
-
'
|
|
141
|
-
|
|
142
|
-
|
|
225
|
+
'<tspan x="0" dy="1.4em">' +
|
|
226
|
+
wrapLabelWithLink(d.path || d.name, nodeHref) +
|
|
227
|
+
'</tspan>';
|
|
228
|
+
if (d.component) {
|
|
229
|
+
_name +=
|
|
230
|
+
'<tspan x="0" dy="1.4em">' +
|
|
231
|
+
wrapLabelWithLink(d.component, nodeHref) +
|
|
232
|
+
'</tspan>';
|
|
233
|
+
} else if (d.name && d.name.includes('Component')) {
|
|
234
|
+
_name += '<tspan x="0" dy="1.4em">' + wrapLabelWithLink(d.name, nodeHref) + '</tspan>';
|
|
235
|
+
}
|
|
143
236
|
if (d.outlet) {
|
|
144
237
|
_name += '<tspan x="0" dy="1.4em"><outlet> : ' + d.outlet + '</tspan>';
|
|
145
238
|
}
|
|
146
239
|
} else {
|
|
147
|
-
|
|
240
|
+
if (d.kind === 'route-redirect') {
|
|
241
|
+
var fromPath = d.path === '' ? "''" : withLeadingSlash(d.path || '');
|
|
242
|
+
var redirectTo = withLeadingSlash(d.redirectTo || d.name);
|
|
243
|
+
_name += '<tspan x="0" dy="1.4em">' + fromPath + ' → ' + redirectTo + '</tspan>';
|
|
244
|
+
if (d.pathMatch) {
|
|
245
|
+
_name += '<tspan x="0" dy="1.4em">pathMatch: ' + d.pathMatch + '</tspan>';
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
_name +=
|
|
249
|
+
'<tspan x="0" dy="1.4em">' +
|
|
250
|
+
wrapLabelWithLink(withLeadingSlash(d.path || d.name), nodeHref) +
|
|
251
|
+
'</tspan>';
|
|
252
|
+
}
|
|
148
253
|
if (d.component) {
|
|
149
254
|
_name +=
|
|
150
|
-
'<tspan x="0" dy="1.4em"
|
|
151
|
-
d.component +
|
|
152
|
-
'
|
|
153
|
-
d.component +
|
|
154
|
-
'</a></tspan>';
|
|
255
|
+
'<tspan x="0" dy="1.4em">' +
|
|
256
|
+
wrapLabelWithLink(d.component, nodeHref) +
|
|
257
|
+
'</tspan>';
|
|
155
258
|
}
|
|
156
259
|
if (d.loadChildren) {
|
|
157
260
|
var moduleName = foundLazyModuleWithPath(d.loadChildren);
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
261
|
+
if (moduleName && moduleName !== 'default') {
|
|
262
|
+
_name +=
|
|
263
|
+
'<tspan x="0" dy="1.4em">' +
|
|
264
|
+
wrapLabelWithLink(moduleName, './modules/' + moduleName + '.html') +
|
|
265
|
+
'</tspan>';
|
|
266
|
+
}
|
|
164
267
|
}
|
|
165
268
|
if (d.canActivate) {
|
|
166
269
|
_name += '<tspan x="0" dy="1.4em">✓ canActivate</tspan>';
|
|
@@ -174,10 +277,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
174
277
|
if (d.canLoad) {
|
|
175
278
|
_name += '<tspan x="0" dy="1.4em">→ canLoad</tspan>';
|
|
176
279
|
}
|
|
177
|
-
if (d.redirectTo) {
|
|
280
|
+
if (d.kind !== 'route-redirect' && d.redirectTo) {
|
|
178
281
|
_name += '<tspan x="0" dy="1.4em">→ ' + d.redirectTo + '</tspan>';
|
|
179
282
|
}
|
|
180
|
-
if (d.pathMatch) {
|
|
283
|
+
if (d.kind !== 'route-redirect' && d.pathMatch) {
|
|
181
284
|
_name += '<tspan x="0" dy="1.4em">> ' + d.pathMatch + '</tspan>';
|
|
182
285
|
}
|
|
183
286
|
if (d.outlet) {
|
|
@@ -259,11 +362,16 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
259
362
|
|
|
260
363
|
var area_ave = area_sum / nodes.length;
|
|
261
364
|
var scale = 80 / Math.sqrt(area_ave);
|
|
365
|
+
var depthHorizontalSpacing = 40;
|
|
262
366
|
|
|
263
367
|
function svg_x(node_y) {
|
|
264
368
|
return node_y - ymin;
|
|
265
369
|
}
|
|
266
370
|
|
|
371
|
+
function projected_x(node) {
|
|
372
|
+
return svg_x(node.y) + (node.depth || 0) * depthHorizontalSpacing;
|
|
373
|
+
}
|
|
374
|
+
|
|
267
375
|
function svg_y(node_x) {
|
|
268
376
|
return (node_x - xmin) * scale;
|
|
269
377
|
}
|
|
@@ -272,11 +380,11 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
272
380
|
var nodebox_vertical_margin = Math.min(y_size_min * scale, 3);
|
|
273
381
|
|
|
274
382
|
node.attr('transform', function (d) {
|
|
275
|
-
return 'translate(' +
|
|
383
|
+
return 'translate(' + projected_x(d) + ',' + svg_y(d.x) + ')';
|
|
276
384
|
});
|
|
277
385
|
|
|
278
386
|
var diagonal = d3.svg.diagonal().projection(function (d) {
|
|
279
|
-
return [
|
|
387
|
+
return [projected_x(d), svg_y(d.x)];
|
|
280
388
|
});
|
|
281
389
|
|
|
282
390
|
var links = engine.links(nodes);
|
package/docs/js/search/search.js
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
$searchTitle,
|
|
9
9
|
$searchResultsCount,
|
|
10
10
|
$searchQuery,
|
|
11
|
+
$searchInputs,
|
|
12
|
+
$searchClearButtons,
|
|
11
13
|
$mainContainer,
|
|
12
14
|
$xsMenu;
|
|
13
15
|
|
|
@@ -160,12 +162,44 @@
|
|
|
160
162
|
$searchInputs.forEach((item, index) => {
|
|
161
163
|
item.value = '';
|
|
162
164
|
});
|
|
165
|
+
syncSearchClearButtons();
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function getSearchInputContainer(element) {
|
|
170
|
+
var current = element;
|
|
171
|
+
while (current && current !== document) {
|
|
172
|
+
if (current.id === 'book-search-input') {
|
|
173
|
+
return current;
|
|
174
|
+
}
|
|
175
|
+
current = current.parentNode;
|
|
176
|
+
}
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function syncSearchClearButtons() {
|
|
181
|
+
if (!$searchInputs || !$searchClearButtons) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
var hasValue = false;
|
|
186
|
+
$searchInputs.forEach((input) => {
|
|
187
|
+
if (input.value && input.value.length > 0) {
|
|
188
|
+
hasValue = true;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
$searchClearButtons.forEach((button) => {
|
|
193
|
+
button.classList.toggle('is-visible', hasValue);
|
|
163
194
|
});
|
|
164
195
|
}
|
|
165
196
|
|
|
166
197
|
function bindSearch() {
|
|
167
198
|
// Bind DOM
|
|
168
199
|
$searchInputs = document.querySelectorAll('#book-search-input input');
|
|
200
|
+
$searchClearButtons = document.querySelectorAll(
|
|
201
|
+
'#book-search-input [data-search-input-clear]'
|
|
202
|
+
);
|
|
169
203
|
|
|
170
204
|
$searchResults = document.querySelector('.search-results');
|
|
171
205
|
$searchList = $searchResults.querySelector('.search-results-list');
|
|
@@ -194,11 +228,13 @@
|
|
|
194
228
|
// HTML5 (IE9 & others)
|
|
195
229
|
item.addEventListener('input', function (e) {
|
|
196
230
|
handleUpdate(this);
|
|
231
|
+
syncSearchClearButtons();
|
|
197
232
|
});
|
|
198
233
|
// Workaround for IE < 9
|
|
199
234
|
item.addEventListener('propertychange', function (e) {
|
|
200
235
|
if (e.originalEvent.propertyName == 'value') {
|
|
201
236
|
handleUpdate(this);
|
|
237
|
+
syncSearchClearButtons();
|
|
202
238
|
}
|
|
203
239
|
});
|
|
204
240
|
// Push to history on blur
|
|
@@ -212,6 +248,31 @@
|
|
|
212
248
|
}
|
|
213
249
|
});
|
|
214
250
|
});
|
|
251
|
+
|
|
252
|
+
$searchClearButtons.forEach((button) => {
|
|
253
|
+
button.addEventListener('click', function (e) {
|
|
254
|
+
e.preventDefault();
|
|
255
|
+
|
|
256
|
+
var container = getSearchInputContainer(this);
|
|
257
|
+
var containerInput = container ? container.querySelector('input') : null;
|
|
258
|
+
var nextValue = '';
|
|
259
|
+
|
|
260
|
+
$searchInputs.forEach((input) => {
|
|
261
|
+
input.value = nextValue;
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
if (containerInput) {
|
|
265
|
+
handleUpdate(containerInput);
|
|
266
|
+
containerInput.focus();
|
|
267
|
+
} else if ($searchInputs.length > 0) {
|
|
268
|
+
handleUpdate($searchInputs[0]);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
syncSearchClearButtons();
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
syncSearchClearButtons();
|
|
215
276
|
}
|
|
216
277
|
|
|
217
278
|
function launchSearchFromQueryString() {
|
|
@@ -221,6 +282,7 @@
|
|
|
221
282
|
$searchInputs.forEach((item, index) => {
|
|
222
283
|
item.value = q;
|
|
223
284
|
});
|
|
285
|
+
syncSearchClearButtons();
|
|
224
286
|
// Launch search
|
|
225
287
|
launchSearch(q);
|
|
226
288
|
}
|