@eui/base 23.0.0-alpha.1 → 23.0.0-alpha.3
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/docs/architecture.html +223 -0
- package/docs/changelog.html +773 -2
- package/docs/classes/ConsoleAppender.html +78 -27
- package/docs/classes/EuiEuLanguages.html +55 -16
- package/docs/classes/EuiLazyService.html +90 -26
- package/docs/classes/EuiPagination.html +69 -16
- package/docs/classes/EuiService.html +103 -28
- package/docs/classes/LogAppender.html +52 -20
- package/docs/classes/Logger.html +100 -30
- package/docs/classes/LoggerMock.html +142 -30
- package/docs/classes/UrlAppender.html +80 -24
- package/docs/classes/UxBadgeLegacy.html +47 -16
- package/docs/classes/UxClearErrorFeedbackEvent.html +47 -16
- package/docs/classes/UxErrorGroupOnClickEvent.html +47 -16
- package/docs/classes/UxErrorOutput.html +91 -24
- package/docs/classes/UxLinkLegacy.html +105 -31
- package/docs/classes/UxPublishErrorFeedbackEvent.html +49 -16
- package/docs/classes/UxValidationErrorClass.html +77 -18
- package/docs/dependencies.html +38 -4
- package/docs/index.html +26 -2
- package/docs/interfaces/ApiQueue.html +41 -11
- package/docs/interfaces/ApiQueueItem.html +209 -181
- package/docs/interfaces/AppState.html +312 -284
- package/docs/interfaces/ConnectionStatus.html +134 -93
- package/docs/interfaces/ConsoleAppenderConfig.html +206 -104
- package/docs/interfaces/ConsoleAppenderTypeConfig.html +253 -53
- package/docs/interfaces/CoreState.html +272 -244
- package/docs/interfaces/EnvDynamicConfig.html +218 -190
- package/docs/interfaces/EuiAppHandlersConfig.html +229 -201
- package/docs/interfaces/EuiAppJsonConfig.html +171 -143
- package/docs/interfaces/EuiAuthConfig.html +184 -156
- package/docs/interfaces/EuiConfig.html +131 -103
- package/docs/interfaces/EuiEnvConfig.html +180 -152
- package/docs/interfaces/EuiGlobalConfig.html +140 -112
- package/docs/interfaces/EuiGrowlMessage.html +408 -380
- package/docs/interfaces/EuiLanguage.html +169 -141
- package/docs/interfaces/EuiMenuItem.html +1708 -1653
- package/docs/interfaces/EuiPaginationConfig.html +228 -200
- package/docs/interfaces/EuiServiceModel.html +109 -67
- package/docs/interfaces/EuiServiceStatus.html +138 -108
- package/docs/interfaces/EuiStoreServiceModel.html +64 -36
- package/docs/interfaces/EuiUserRight.html +127 -99
- package/docs/interfaces/GlobalConfig.html +268 -240
- package/docs/interfaces/HttpErrorHandlerConfig.html +96 -68
- package/docs/interfaces/HttpErrorRouteConfig.html +136 -108
- package/docs/interfaces/I18nConfig.html +164 -91
- package/docs/interfaces/I18nLoaderConfig.html +199 -152
- package/docs/interfaces/I18nResource.html +176 -148
- package/docs/interfaces/I18nServiceConfig.html +141 -113
- package/docs/interfaces/I18nState.html +91 -63
- package/docs/interfaces/LoadedConfigModules.html +137 -107
- package/docs/interfaces/LocaleServiceConfig.html +102 -74
- package/docs/interfaces/LocaleState.html +96 -68
- package/docs/interfaces/LogAppenderConfig.html +123 -70
- package/docs/interfaces/LogAppenderTypeConfig.html +159 -61
- package/docs/interfaces/LogConfig.html +196 -149
- package/docs/interfaces/LogEvent.html +246 -199
- package/docs/interfaces/LogPosition.html +151 -123
- package/docs/interfaces/ModuleConfig.html +236 -12
- package/docs/interfaces/ModulesConfig.html +41 -11
- package/docs/interfaces/NotificationsState.html +98 -70
- package/docs/interfaces/UrlAppenderConfig.html +200 -98
- package/docs/interfaces/UrlAppenderTypeConfig.html +247 -53
- package/docs/interfaces/UrlLogEvent.html +368 -96
- package/docs/interfaces/UserConfig.html +97 -69
- package/docs/interfaces/UserDetails.html +237 -190
- package/docs/interfaces/UserPreferences.html +141 -113
- package/docs/interfaces/UserState.html +326 -279
- package/docs/interfaces/UxErrorFeedback.html +373 -235
- package/docs/interfaces/UxErrorFollowMap.html +41 -11
- package/docs/interfaces/UxErrorInfo.html +201 -151
- package/docs/interfaces/UxErrorMessage.html +149 -102
- package/docs/interfaces/UxFormValidationError.html +91 -63
- package/docs/interfaces/UxHttpErrorInfo.html +112 -65
- package/docs/interfaces/UxHttpErrorResponse.html +108 -61
- package/docs/interfaces/UxModalLegacy.html +164 -136
- package/docs/interfaces/UxValidationErrorAttribute.html +121 -93
- package/docs/interfaces/UxValidationErrorFeedback.html +126 -98
- package/docs/interfaces/UxValidationErrorI18nMessage.html +127 -99
- package/docs/interfaces/VersionsConfig.html +96 -68
- package/docs/interfaces/XHRConfig.html +346 -318
- 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 +30 -23
- 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/documentation.json +3314 -573
- package/docs/license.html +26 -2
- package/docs/llms.txt +1084 -0
- package/docs/miscellaneous/enumerations.html +30 -6
- package/docs/miscellaneous/functions.html +138 -27
- package/docs/miscellaneous/typealiases.html +62 -29
- package/docs/miscellaneous/variables.html +77 -53
- package/docs/modules.html +26 -2
- package/docs/overview.html +26 -2
- 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-base.mjs +1 -0
- package/fesm2022/eui-base.mjs.map +1 -1
- package/package.json +6 -5
- package/types/eui-base.d.ts +1 -0
- package/types/eui-base.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
|
|