@eui/core 23.0.0-alpha.2 → 23.0.0-alpha.4
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 +61 -0
- package/docs/architecture.html +223 -0
- package/docs/changelog.html +126 -2
- package/docs/classes/ActivatedRouteAction.html +70 -20
- package/docs/classes/AddApiQueueItemAction.html +70 -20
- package/docs/classes/AddAppLoadedConfigModulesAction.html +70 -20
- package/docs/classes/ApiQueueServiceMock.html +77 -20
- package/docs/classes/AsyncStorageService.html +86 -20
- package/docs/classes/AsyncStorageServiceMock.html +73 -17
- package/docs/classes/CssUtils.html +74 -20
- package/docs/classes/EmptyApiQueueAction.html +67 -17
- package/docs/classes/ErrorSubClass.html +68 -16
- package/docs/classes/EuiAppShellServiceMock.html +58 -20
- package/docs/classes/EuiCoreRootGuardClass.html +39 -8
- package/docs/classes/EuiError.html +69 -17
- package/docs/classes/I18nResourceImpl.html +50 -17
- package/docs/classes/InitStoreAction.html +70 -20
- package/docs/classes/LogServiceMock.html +67 -17
- package/docs/classes/RemoveApiQueueItemAction.html +67 -17
- package/docs/classes/StorageService.html +83 -19
- package/docs/classes/StorageServiceMock.html +70 -17
- package/docs/classes/TranslateServiceMock.html +90 -35
- package/docs/classes/UpdateAppConnectionAction.html +67 -17
- package/docs/classes/UpdateAppStatusAction.html +67 -17
- package/docs/classes/UpdateAppVersionAction.html +67 -17
- package/docs/classes/UpdateCurrentModuleAction.html +67 -17
- package/docs/classes/UpdateI18nStateAction.html +67 -17
- package/docs/classes/UpdateLocaleStateAction.html +67 -17
- package/docs/classes/UpdateNotificationsListAction.html +67 -17
- package/docs/classes/UpdateUserDashboardAction.html +67 -17
- package/docs/classes/UpdateUserDetailsAction.html +67 -17
- package/docs/classes/UpdateUserPreferencesAction.html +67 -17
- package/docs/classes/UpdateUserRightsAction.html +67 -17
- package/docs/classes/UpdateUserStateAction.html +67 -17
- package/docs/dependencies.html +38 -4
- package/docs/directives/TranslateMockDirective.html +72 -19
- package/docs/index.html +26 -2
- package/docs/injectables/ApiQueueService.html +97 -20
- package/docs/injectables/EuiAppShellService.html +147 -68
- package/docs/injectables/EuiDynamicComponentService.html +51 -18
- package/docs/injectables/EuiDynamicMenuService.html +67 -20
- package/docs/injectables/EuiGrowlService.html +85 -21
- package/docs/injectables/EuiLoaderService.html +65 -17
- package/docs/injectables/EuiPermissionService.html +95 -20
- package/docs/injectables/EuiThemeService.html +89 -34
- package/docs/injectables/EuiTimezoneService.html +51 -16
- package/docs/injectables/GlobalErrorHandler.html +79 -17
- package/docs/injectables/I18nLoader.html +53 -17
- package/docs/injectables/I18nService.html +101 -23
- package/docs/injectables/I18nServiceMock.html +96 -34
- package/docs/injectables/LocalForageService.html +81 -21
- package/docs/injectables/LocalStorageService.html +78 -21
- package/docs/injectables/LocaleService.html +124 -41
- package/docs/injectables/LocaleServiceMock.html +72 -18
- package/docs/injectables/LogService.html +68 -17
- package/docs/injectables/SessionStorageService.html +78 -21
- package/docs/injectables/StoreService.html +91 -22
- package/docs/injectables/StoreServiceMock.html +72 -17
- package/docs/injectables/UserService.html +97 -23
- package/docs/injectables/UserServiceMock.html +81 -23
- package/docs/interceptors/AddLangParamInterceptor.html +49 -18
- package/docs/interceptors/CachePreventionInterceptor.html +48 -17
- package/docs/interceptors/CorsSecurityInterceptor.html +48 -17
- package/docs/interceptors/CsrfPreventionInterceptor.html +48 -17
- package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +48 -17
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +48 -17
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +48 -17
- package/docs/interfaces/Action.html +158 -60
- package/docs/interfaces/ActionReducer.html +84 -55
- package/docs/interfaces/ComponentInfo.html +151 -123
- package/docs/interfaces/Dependency.html +278 -250
- package/docs/interfaces/Edit-1.html +151 -123
- package/docs/interfaces/Edit-2.html +151 -123
- package/docs/interfaces/Edit.html +151 -123
- package/docs/interfaces/EuiComponentEntry.html +230 -202
- package/docs/interfaces/EuiTimeZone.html +121 -93
- package/docs/interfaces/IEuiTheme.html +181 -153
- package/docs/interfaces/ImportToAdd.html +164 -136
- package/docs/interfaces/ImportsArrayInfo.html +121 -93
- package/docs/interfaces/Library.html +169 -137
- package/docs/interfaces/LoadedResources.html +164 -136
- package/docs/interfaces/LoadedResourcesError.html +121 -93
- package/docs/interfaces/MemoizedSelector.html +187 -138
- package/docs/interfaces/MemoizedSelectorWithProps.html +188 -139
- package/docs/interfaces/MigrateAllSchema.html +228 -200
- package/docs/interfaces/MigrationResult.html +151 -123
- package/docs/interfaces/ModuleLoadEvent.html +164 -136
- package/docs/interfaces/ModuleMapping.html +121 -93
- package/docs/interfaces/NgModuleInfo.html +151 -123
- package/docs/interfaces/Policy.html +164 -136
- package/docs/interfaces/ResourceError.html +170 -142
- package/docs/interfaces/Schema-1.html +140 -112
- package/docs/interfaces/Schema-10.html +140 -112
- package/docs/interfaces/Schema-11.html +140 -112
- package/docs/interfaces/Schema-12.html +140 -112
- package/docs/interfaces/Schema-13.html +140 -112
- package/docs/interfaces/Schema-14.html +140 -112
- package/docs/interfaces/Schema-15.html +140 -112
- package/docs/interfaces/Schema-16.html +140 -112
- package/docs/interfaces/Schema-17.html +140 -112
- package/docs/interfaces/Schema-18.html +140 -112
- package/docs/interfaces/Schema-19.html +140 -112
- package/docs/interfaces/Schema-2.html +141 -113
- package/docs/interfaces/Schema-20.html +140 -112
- package/docs/interfaces/Schema-3.html +180 -152
- package/docs/interfaces/Schema-4.html +140 -112
- package/docs/interfaces/Schema-5.html +140 -112
- package/docs/interfaces/Schema-6.html +140 -112
- package/docs/interfaces/Schema-7.html +140 -112
- package/docs/interfaces/Schema-8.html +140 -112
- package/docs/interfaces/Schema-9.html +140 -112
- package/docs/interfaces/Schema.html +184 -156
- package/docs/interfaces/SelectorEntry.html +230 -202
- package/docs/interfaces/TextChange.html +151 -123
- package/docs/interfaces/ThemeState.html +121 -93
- package/docs/interfaces/TranslationKeys.html +41 -11
- package/docs/interfaces/UIState.html +1669 -1641
- package/docs/interfaces/body.html +181 -153
- package/docs/js/architecture-graph.js +288 -0
- package/docs/js/libs/bootstrap-native.js +4 -2
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +2 -2
- package/docs/js/libs/vis-network.min.js +7 -7
- package/docs/js/menu-wc.js +47 -14
- package/docs/js/routes.js +138 -37
- 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/EuiPermissionService.md +1 -0
- package/docs/json/LocaleService.md +1 -0
- package/docs/json/documentation.json +6691 -1067
- package/docs/license.html +26 -2
- package/docs/llms.txt +2282 -0
- package/docs/miscellaneous/enumerations.html +34 -10
- package/docs/miscellaneous/functions.html +550 -394
- package/docs/miscellaneous/typealiases.html +59 -27
- package/docs/miscellaneous/variables.html +196 -175
- package/docs/modules/CoreModule.html +34 -9
- package/docs/modules/I18nModule.html +34 -9
- package/docs/modules/LogModule.html +34 -9
- package/docs/modules/TranslateMockModule.html +60 -13
- package/docs/modules.html +26 -2
- package/docs/overview.html +27 -3
- package/docs/pipes/TranslateMockPipe.html +87 -9
- package/docs/properties.html +27 -3
- package/docs/routes.html +26 -2
- package/docs/styles/compodoc.css +365 -44
- package/docs/styles/dark.css +16 -0
- package/docs/template-playground/hbs-render.service.ts +6 -1
- package/fesm2022/eui-core.mjs +26 -27
- package/fesm2022/eui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/eui-core.d.ts +9 -11
- package/types/eui-core.d.ts.map +1 -1
- package/docs/js/menu-wc_es5.js +0 -40
package/docs/js/tabs.js
CHANGED
|
@@ -1,21 +1,104 @@
|
|
|
1
1
|
document.addEventListener('DOMContentLoaded', function() {
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var tabContainers = document.getElementsByClassName('nav-tabs');
|
|
3
|
+
var tabLinks = [];
|
|
4
|
+
var tabAliasMap = {
|
|
5
|
+
'template': 'templateData',
|
|
6
|
+
'dom-tree': 'tree'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function updateAddress(e) {
|
|
10
|
+
if (history.pushState && e.target.dataset.link) {
|
|
11
|
+
history.pushState(null, null, '#' + e.target.dataset.link);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function findTabLinkByDataLink(dataLink) {
|
|
16
|
+
for (var i = 0; i < tabLinks.length; i++) {
|
|
17
|
+
if (tabLinks[i].dataset.link === dataLink) {
|
|
18
|
+
return tabLinks[i];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getClosestTabPane(element) {
|
|
25
|
+
if (!element) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (element.closest) {
|
|
29
|
+
return element.closest('.tab-pane');
|
|
30
|
+
}
|
|
31
|
+
var node = element;
|
|
32
|
+
while (node) {
|
|
33
|
+
if (node.classList && node.classList.contains('tab-pane')) {
|
|
34
|
+
return node;
|
|
6
35
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
36
|
+
node = node.parentElement;
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function findAnchorTarget(hashValue) {
|
|
42
|
+
if (!hashValue) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var targetById = document.getElementById(hashValue);
|
|
47
|
+
if (targetById) {
|
|
48
|
+
return targetById;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var targetsByName = document.getElementsByName(hashValue);
|
|
52
|
+
if (targetsByName && targetsByName.length > 0) {
|
|
53
|
+
return targetsByName[0];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function activateTabFromHash() {
|
|
60
|
+
if (location.hash === '') {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var currentHash = decodeURIComponent(location.hash.substr(1));
|
|
65
|
+
if (!currentHash) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var resolvedHash = tabAliasMap[currentHash] || currentHash;
|
|
70
|
+
var directMatch = findTabLinkByDataLink(resolvedHash);
|
|
71
|
+
if (directMatch) {
|
|
72
|
+
directMatch.click();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (currentHash.indexOf('source.') === 0) {
|
|
77
|
+
var sourceTabLink = findTabLinkByDataLink('source');
|
|
78
|
+
if (sourceTabLink) {
|
|
79
|
+
sourceTabLink.click();
|
|
80
|
+
return;
|
|
18
81
|
}
|
|
19
82
|
}
|
|
83
|
+
|
|
84
|
+
var targetAnchor = findAnchorTarget(currentHash);
|
|
85
|
+
var tabPane = getClosestTabPane(targetAnchor);
|
|
86
|
+
if (!tabPane || !tabPane.id) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var tabLink = findTabLinkByDataLink(tabPane.id);
|
|
91
|
+
if (tabLink) {
|
|
92
|
+
tabLink.click();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (tabContainers.length > 0) {
|
|
97
|
+
tabLinks = tabContainers[0].querySelectorAll('a[data-link]');
|
|
98
|
+
for (var i = 0; i < tabLinks.length; i++) {
|
|
99
|
+
tabLinks[i].addEventListener('click', updateAddress);
|
|
100
|
+
}
|
|
101
|
+
activateTabFromHash();
|
|
102
|
+
window.addEventListener('hashchange', activateTabFromHash, false);
|
|
20
103
|
}
|
|
21
104
|
});
|
package/docs/js/tree.js
CHANGED
|
@@ -58,10 +58,18 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
58
58
|
type
|
|
59
59
|
} of it) {
|
|
60
60
|
if (type === 'NonIterableObject' && typeof key !== 'undefined' && value.type === 'tag') {
|
|
61
|
+
var parentId = parentNode && parentNode._parent ? parentNode._parent._id : null,
|
|
62
|
+
parentLevel = parentNode && parentNode._parent && typeof parentNode._parent._level === 'number'
|
|
63
|
+
? parentNode._parent._level
|
|
64
|
+
: 0,
|
|
65
|
+
nodeLevel = parentLevel + 1;
|
|
66
|
+
value._level = nodeLevel;
|
|
67
|
+
|
|
61
68
|
var newNode = {
|
|
62
69
|
id: value._id,
|
|
63
70
|
label: value.name,
|
|
64
|
-
type: value.type
|
|
71
|
+
type: value.type,
|
|
72
|
+
level: nodeLevel
|
|
65
73
|
};
|
|
66
74
|
for(var i = 0; i < COMPONENTS.length; i++) {
|
|
67
75
|
if (COMPONENTS[i].selector === value.name) {
|
|
@@ -88,17 +96,29 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
newNodes.push(newNode);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
if (parentId !== null && typeof parentId !== 'undefined') {
|
|
100
|
+
newEdges.push({
|
|
101
|
+
from: parentId,
|
|
102
|
+
to: value._id
|
|
103
|
+
});
|
|
104
|
+
}
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
|
|
99
108
|
newNodes.shift();
|
|
100
109
|
|
|
110
|
+
var stripHtml = function(value) {
|
|
111
|
+
return String(value || '').replace(/<[^>]*>/g, '');
|
|
112
|
+
},
|
|
113
|
+
longestLabelLength = newNodes.reduce(function(max, node) {
|
|
114
|
+
var labelLength = stripHtml(node.label).length;
|
|
115
|
+
return Math.max(max, labelLength);
|
|
116
|
+
}, 0),
|
|
117
|
+
uniformNodeWidth = Math.max(40, Math.ceil(longestLabelLength * 8 + 28));
|
|
118
|
+
|
|
101
119
|
var container = document.getElementById('tree-container'),
|
|
120
|
+
isDarkMode = document.body && document.body.classList.contains('dark'),
|
|
121
|
+
treeFontColor = isDarkMode ? '#f0f0f0' : '#2d2d2d',
|
|
102
122
|
data = {
|
|
103
123
|
nodes: newNodes,
|
|
104
124
|
edges: newEdges
|
|
@@ -107,12 +127,29 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
107
127
|
layout: {
|
|
108
128
|
hierarchical: {
|
|
109
129
|
sortMethod: 'directed',
|
|
130
|
+
shakeTowards: 'roots',
|
|
131
|
+
levelSeparation: 130,
|
|
110
132
|
enabled: true
|
|
111
133
|
}
|
|
112
134
|
},
|
|
135
|
+
edges: {
|
|
136
|
+
smooth: {
|
|
137
|
+
enabled: true,
|
|
138
|
+
type: 'cubicBezier',
|
|
139
|
+
forceDirection: 'vertical',
|
|
140
|
+
roundness: 0.45
|
|
141
|
+
}
|
|
142
|
+
},
|
|
113
143
|
nodes: {
|
|
114
144
|
shape: 'ellipse',
|
|
115
|
-
fixed: true
|
|
145
|
+
fixed: true,
|
|
146
|
+
font: {
|
|
147
|
+
color: treeFontColor
|
|
148
|
+
},
|
|
149
|
+
widthConstraint: {
|
|
150
|
+
minimum: uniformNodeWidth,
|
|
151
|
+
maximum: uniformNodeWidth
|
|
152
|
+
}
|
|
116
153
|
}
|
|
117
154
|
},
|
|
118
155
|
|
|
@@ -9,6 +9,7 @@ This class extends `EuiService` and is responsible for handling user rights and
|
|
|
9
9
|
It provides methods to initialize the service with user rights, check specific rights and permissions,
|
|
10
10
|
and subscribe to changes in the user rights state.
|
|
11
11
|
|
|
12
|
+
{EuiService<EuiUserRight[]>}
|
|
12
13
|
See EuiService
|
|
13
14
|
|
|
14
15
|
```html
|