@eui/eds 21.3.4-snapshot-1783677674979

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.
Files changed (144) hide show
  1. package/docs/classes/EdsChipModel.html +606 -0
  2. package/docs/classes/EuiChipTooltip.html +425 -0
  3. package/docs/components/EdsBadge.html +810 -0
  4. package/docs/components/EdsButton.html +793 -0
  5. package/docs/components/EdsChip.html +911 -0
  6. package/docs/components/EdsIcon.html +675 -0
  7. package/docs/components/EdsIconImage.html +604 -0
  8. package/docs/directives/EuiBaseColorVariantsDirective.html +1165 -0
  9. package/docs/directives/EuiBaseSizeVariantsDirective.html +1402 -0
  10. package/docs/fonts/ionicons.eot +0 -0
  11. package/docs/fonts/ionicons.svg +2090 -0
  12. package/docs/fonts/ionicons.ttf +0 -0
  13. package/docs/fonts/ionicons.woff +0 -0
  14. package/docs/fonts/ionicons.woff2 +0 -0
  15. package/docs/fonts/roboto-v15-latin-300.eot +0 -0
  16. package/docs/fonts/roboto-v15-latin-300.svg +314 -0
  17. package/docs/fonts/roboto-v15-latin-300.ttf +0 -0
  18. package/docs/fonts/roboto-v15-latin-300.woff +0 -0
  19. package/docs/fonts/roboto-v15-latin-300.woff2 +0 -0
  20. package/docs/fonts/roboto-v15-latin-700.eot +0 -0
  21. package/docs/fonts/roboto-v15-latin-700.svg +310 -0
  22. package/docs/fonts/roboto-v15-latin-700.ttf +0 -0
  23. package/docs/fonts/roboto-v15-latin-700.woff +0 -0
  24. package/docs/fonts/roboto-v15-latin-700.woff2 +0 -0
  25. package/docs/fonts/roboto-v15-latin-italic.eot +0 -0
  26. package/docs/fonts/roboto-v15-latin-italic.svg +323 -0
  27. package/docs/fonts/roboto-v15-latin-italic.ttf +0 -0
  28. package/docs/fonts/roboto-v15-latin-italic.woff +0 -0
  29. package/docs/fonts/roboto-v15-latin-italic.woff2 +0 -0
  30. package/docs/fonts/roboto-v15-latin-regular.eot +0 -0
  31. package/docs/fonts/roboto-v15-latin-regular.svg +308 -0
  32. package/docs/fonts/roboto-v15-latin-regular.ttf +0 -0
  33. package/docs/fonts/roboto-v15-latin-regular.woff +0 -0
  34. package/docs/fonts/roboto-v15-latin-regular.woff2 +0 -0
  35. package/docs/images/compodoc-vectorise-inverted.png +0 -0
  36. package/docs/images/compodoc-vectorise-inverted.svg +201 -0
  37. package/docs/images/compodoc-vectorise.png +0 -0
  38. package/docs/images/compodoc-vectorise.svg +201 -0
  39. package/docs/images/favicon.ico +0 -0
  40. package/docs/index.html +2264 -0
  41. package/docs/js/compodoc.js +14 -0
  42. package/docs/js/lazy-load-graphs.js +44 -0
  43. package/docs/js/libs/EventDispatcher.js +5 -0
  44. package/docs/js/libs/bootstrap-native.js +2 -0
  45. package/docs/js/libs/clipboard.min.js +7 -0
  46. package/docs/js/libs/custom-elements-es5-adapter.js +15 -0
  47. package/docs/js/libs/custom-elements.min.js +38 -0
  48. package/docs/js/libs/d3.v3.min.js +2 -0
  49. package/docs/js/libs/deep-iterator.js +2 -0
  50. package/docs/js/libs/es6-shim.min.js +12 -0
  51. package/docs/js/libs/htmlparser.js +23 -0
  52. package/docs/js/libs/innersvg.js +9 -0
  53. package/docs/js/libs/jszip.min.js +13 -0
  54. package/docs/js/libs/lit-html.js +1 -0
  55. package/docs/js/libs/prism.js +46 -0
  56. package/docs/js/libs/promise.min.js +6 -0
  57. package/docs/js/libs/svg-pan-zoom.min.js +3 -0
  58. package/docs/js/libs/tablesort.min.js +6 -0
  59. package/docs/js/libs/tablesort.number.min.js +6 -0
  60. package/docs/js/libs/vis-network.min.js +78 -0
  61. package/docs/js/libs/zepto.min.js +2 -0
  62. package/docs/js/menu-wc.js +119 -0
  63. package/docs/js/menu-wc_es5.js +40 -0
  64. package/docs/js/menu.js +269 -0
  65. package/docs/js/routes/routes_index.js +1 -0
  66. package/docs/js/routes.js +308 -0
  67. package/docs/js/search/lunr.min.js +6 -0
  68. package/docs/js/search/search-lunr.js +65 -0
  69. package/docs/js/search/search.js +273 -0
  70. package/docs/js/search/search_index.js +4 -0
  71. package/docs/js/sourceCode.js +58 -0
  72. package/docs/js/svg-pan-zoom.controls.js +53 -0
  73. package/docs/js/tabs.js +21 -0
  74. package/docs/js/tree.js +147 -0
  75. package/docs/json/EdsBadge.md +28 -0
  76. package/docs/json/EdsButton.md +31 -0
  77. package/docs/json/EdsChip.md +30 -0
  78. package/docs/json/EdsIcon.md +32 -0
  79. package/docs/json/EdsIconImage.md +13 -0
  80. package/docs/json/EuiBaseColorVariantsDirective.md +20 -0
  81. package/docs/json/EuiBaseSizeVariantsDirective.md +23 -0
  82. package/docs/json/HbsRenderService.md +6 -0
  83. package/docs/json/TemplateEditorService.md +6 -0
  84. package/docs/json/TemplatePlaygroundComponent.md +8 -0
  85. package/docs/json/ZipExportService.md +6 -0
  86. package/docs/json/documentation.json +5209 -0
  87. package/docs/miscellaneous/variables.html +415 -0
  88. package/docs/modules.html +201 -0
  89. package/docs/overview.html +236 -0
  90. package/docs/routes.html +204 -0
  91. package/docs/styles/bootstrap-card.css +219 -0
  92. package/docs/styles/bootstrap.min.css +6 -0
  93. package/docs/styles/compodoc.css +1124 -0
  94. package/docs/styles/dark.css +121 -0
  95. package/docs/styles/ionicons.min.css +11 -0
  96. package/docs/styles/laravel.css +113 -0
  97. package/docs/styles/material.css +131 -0
  98. package/docs/styles/original.css +51 -0
  99. package/docs/styles/postmark.css +238 -0
  100. package/docs/styles/prism.css +301 -0
  101. package/docs/styles/readthedocs.css +117 -0
  102. package/docs/styles/reset.css +129 -0
  103. package/docs/styles/stripe.css +106 -0
  104. package/docs/styles/style.css +7 -0
  105. package/docs/styles/tablesort.css +33 -0
  106. package/docs/styles/vagrant.css +130 -0
  107. package/docs/template-playground/default-templates.json +192 -0
  108. package/docs/template-playground/hbs-render.service.ts +212 -0
  109. package/docs/template-playground/main.ts +9 -0
  110. package/docs/template-playground/template-editor.service.ts +173 -0
  111. package/docs/template-playground/template-playground.component.ts +614 -0
  112. package/docs/template-playground/template-playground.module.ts +29 -0
  113. package/docs/template-playground/zip-export.service.ts +86 -0
  114. package/docs/template-playground-app/app.js +1389 -0
  115. package/docs/template-playground-app/index.html +462 -0
  116. package/fesm2022/eui-eds-eds-badge.mjs +175 -0
  117. package/fesm2022/eui-eds-eds-badge.mjs.map +1 -0
  118. package/fesm2022/eui-eds-eds-button.mjs +169 -0
  119. package/fesm2022/eui-eds-eds-button.mjs.map +1 -0
  120. package/fesm2022/eui-eds-eds-chip.mjs +196 -0
  121. package/fesm2022/eui-eds-eds-chip.mjs.map +1 -0
  122. package/fesm2022/eui-eds-eds-icon-image.mjs +65 -0
  123. package/fesm2022/eui-eds-eds-icon-image.mjs.map +1 -0
  124. package/fesm2022/eui-eds-eds-icon.mjs +136 -0
  125. package/fesm2022/eui-eds-eds-icon.mjs.map +1 -0
  126. package/fesm2022/eui-eds-shared.mjs +322 -0
  127. package/fesm2022/eui-eds-shared.mjs.map +1 -0
  128. package/fesm2022/eui-eds.mjs +6 -0
  129. package/fesm2022/eui-eds.mjs.map +1 -0
  130. package/package.json +72 -0
  131. package/types/eui-eds-eds-badge.d.ts +74 -0
  132. package/types/eui-eds-eds-badge.d.ts.map +1 -0
  133. package/types/eui-eds-eds-button.d.ts +75 -0
  134. package/types/eui-eds-eds-button.d.ts.map +1 -0
  135. package/types/eui-eds-eds-chip.d.ts +105 -0
  136. package/types/eui-eds-eds-chip.d.ts.map +1 -0
  137. package/types/eui-eds-eds-icon-image.d.ts +34 -0
  138. package/types/eui-eds-eds-icon-image.d.ts.map +1 -0
  139. package/types/eui-eds-eds-icon.d.ts +50 -0
  140. package/types/eui-eds-eds-icon.d.ts.map +1 -0
  141. package/types/eui-eds-shared.d.ts +86 -0
  142. package/types/eui-eds-shared.d.ts.map +1 -0
  143. package/types/eui-eds.d.ts +3 -0
  144. package/types/eui-eds.d.ts.map +1 -0
@@ -0,0 +1,273 @@
1
+ (function (compodoc) {
2
+ var usePushState = typeof history.pushState !== 'undefined',
3
+ // DOM Elements
4
+ $body = document.querySelector('body'),
5
+ $searchResults,
6
+ $searchInput,
7
+ $searchList,
8
+ $searchTitle,
9
+ $searchResultsCount,
10
+ $searchQuery,
11
+ $mainContainer,
12
+ $xsMenu;
13
+
14
+ // Throttle search
15
+ function throttle(fn, wait) {
16
+ var timeout;
17
+
18
+ return function () {
19
+ var ctx = this,
20
+ args = arguments;
21
+ if (!timeout) {
22
+ timeout = setTimeout(function () {
23
+ timeout = undefined;
24
+ fn.apply(ctx, args);
25
+ }, wait);
26
+ }
27
+ };
28
+ }
29
+
30
+ function displayResults(res) {
31
+ var noResults = res.count == 0;
32
+ var groups = {};
33
+ if (noResults) {
34
+ $searchResults.classList.add('no-results');
35
+ } else {
36
+ $searchResults.classList.remove('no-results');
37
+ }
38
+
39
+ // Clear old results
40
+ $searchList.innerText = '';
41
+
42
+ // Display title for research
43
+ $searchResultsCount.innerText = res.count;
44
+ $searchQuery.innerText = res.query;
45
+
46
+ // Group result by context
47
+ res.results.forEach(function (res) {
48
+ var context = res.title.split(' - ')[0];
49
+ if (typeof groups[context] === 'undefined') {
50
+ groups[context] = {
51
+ results: [res]
52
+ };
53
+ } else {
54
+ groups[context].results.push(res);
55
+ }
56
+ });
57
+
58
+ var sortedGroups = Object.keys(groups).sort();
59
+
60
+ for (var i = 0; i < sortedGroups.length; i++) {
61
+ var property = sortedGroups[i];
62
+
63
+ var $li = document.createElement('li');
64
+ $li.classList.add('search-results-group');
65
+ var finalPropertyLabel = '';
66
+ var propertyLabels = property.split('-');
67
+
68
+ if (
69
+ propertyLabels.length === 2 &&
70
+ propertyLabels[0] !== 'miscellaneous' &&
71
+ propertyLabels[0] !== 'additional'
72
+ ) {
73
+ finalPropertyLabel =
74
+ propertyLabels[0].charAt(0).toUpperCase() +
75
+ propertyLabels[0].substring(1) +
76
+ ' - ' +
77
+ propertyLabels[1].charAt(0).toUpperCase() +
78
+ propertyLabels[1].substring(1) +
79
+ ' (' +
80
+ groups[property].results.length +
81
+ ')';
82
+ } else if (propertyLabels[0] === 'additional') {
83
+ finalPropertyLabel =
84
+ 'Additional pages' + ' (' + groups[property].results.length + ')';
85
+ } else {
86
+ finalPropertyLabel =
87
+ propertyLabels[0].charAt(0).toUpperCase() +
88
+ propertyLabels[0].substring(1) +
89
+ ' (' +
90
+ groups[property].results.length +
91
+ ')';
92
+ }
93
+ var $groupTitle = document.createElement('h3');
94
+ $groupTitle.innerText = finalPropertyLabel;
95
+ $li.appendChild($groupTitle);
96
+
97
+ var $ulResults = document.createElement('ul');
98
+ $ulResults.classList.add('search-results-list');
99
+
100
+ groups[property].results.forEach(function (res) {
101
+ var link = '';
102
+ var $liResult = document.createElement('li');
103
+ $liResult.classList.add('search-results-item');
104
+ switch (COMPODOC_CURRENT_PAGE_DEPTH) {
105
+ case 0:
106
+ link = './';
107
+ break;
108
+ case 1:
109
+ case 2:
110
+ case 3:
111
+ case 4:
112
+ case 5:
113
+ link = '../'.repeat(COMPODOC_CURRENT_PAGE_DEPTH);
114
+ break;
115
+ }
116
+ var finalResLabel =
117
+ res.title.split(' - ')[1].charAt(0).toUpperCase() +
118
+ res.title.split(' - ')[1].substring(1);
119
+ var $link = document.createElement('a');
120
+ $link.innerText = finalResLabel;
121
+ $link.href = link + res.url;
122
+ $liResult.appendChild($link);
123
+ $ulResults.appendChild($liResult);
124
+ });
125
+ $li.appendChild($ulResults);
126
+
127
+ $searchList.appendChild($li);
128
+ }
129
+ }
130
+
131
+ function launchSearch(q) {
132
+ $body.classList.add('with-search');
133
+
134
+ if ($xsMenu.style.display === 'block') {
135
+ $mainContainer.style.height = 'calc(100% - 100px)';
136
+ $mainContainer.style.marginTop = '100px';
137
+ }
138
+
139
+ throttle(
140
+ compodoc.search.query(q, 0, MAX_SEARCH_RESULTS).then(function (results) {
141
+ displayResults(results);
142
+ }),
143
+ 1000
144
+ );
145
+ }
146
+
147
+ function closeSearch() {
148
+ $body.classList.remove('with-search');
149
+ if ($xsMenu.style.display === 'block') {
150
+ $mainContainer.style.height = 'calc(100% - 50px)';
151
+ }
152
+ }
153
+
154
+ function bindMenuButton() {
155
+ document.getElementById('btn-menu').addEventListener('click', function () {
156
+ if ($xsMenu.style.display === 'none') {
157
+ $body.classList.remove('with-search');
158
+ $mainContainer.style.height = 'calc(100% - 50px)';
159
+ }
160
+ $searchInputs.forEach((item, index) => {
161
+ item.value = '';
162
+ });
163
+ });
164
+ }
165
+
166
+ function bindSearch() {
167
+ // Bind DOM
168
+ $searchInputs = document.querySelectorAll('#book-search-input input');
169
+
170
+ $searchResults = document.querySelector('.search-results');
171
+ $searchList = $searchResults.querySelector('.search-results-list');
172
+ $searchTitle = $searchResults.querySelector('.search-results-title');
173
+ $searchResultsCount = $searchTitle.querySelector('.search-results-count');
174
+ $searchQuery = $searchTitle.querySelector('.search-query');
175
+ $mainContainer = document.querySelector('.container-fluid');
176
+ $xsMenu = document.querySelector('.xs-menu');
177
+
178
+ // Launch query based on input content
179
+ function handleUpdate(item) {
180
+ var q = item.value;
181
+
182
+ if (q.length == 0) {
183
+ closeSearch();
184
+ window.location.href = window.location.href.replace(window.location.search, '');
185
+ } else {
186
+ launchSearch(q);
187
+ }
188
+ }
189
+
190
+ // Detect true content change in search input
191
+ var propertyChangeUnbound = false;
192
+
193
+ $searchInputs.forEach((item, index) => {
194
+ // HTML5 (IE9 & others)
195
+ item.addEventListener('input', function (e) {
196
+ handleUpdate(this);
197
+ });
198
+ // Workaround for IE < 9
199
+ item.addEventListener('propertychange', function (e) {
200
+ if (e.originalEvent.propertyName == 'value') {
201
+ handleUpdate(this);
202
+ }
203
+ });
204
+ // Push to history on blur
205
+ item.addEventListener('blur', function (e) {
206
+ // Update history state
207
+ if (usePushState) {
208
+ var uri = updateQueryString('q', this.value);
209
+ if (this.value !== '') {
210
+ history.pushState({ path: uri }, null, uri);
211
+ }
212
+ }
213
+ });
214
+ });
215
+ }
216
+
217
+ function launchSearchFromQueryString() {
218
+ var q = getParameterByName('q');
219
+ if (q && q.length > 0) {
220
+ // Update search inputs
221
+ $searchInputs.forEach((item, index) => {
222
+ item.value = q;
223
+ });
224
+ // Launch search
225
+ launchSearch(q);
226
+ }
227
+ }
228
+
229
+ compodoc.addEventListener(compodoc.EVENTS.SEARCH_READY, function (event) {
230
+ bindSearch();
231
+
232
+ bindMenuButton();
233
+
234
+ launchSearchFromQueryString();
235
+ });
236
+
237
+ function getParameterByName(name) {
238
+ var url = window.location.href;
239
+ name = name.replace(/[\[\]]/g, '\\$&');
240
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)', 'i'),
241
+ results = regex.exec(url);
242
+ if (!results) return null;
243
+ if (!results[2]) return '';
244
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
245
+ }
246
+
247
+ function updateQueryString(key, value) {
248
+ value = encodeURIComponent(value);
249
+
250
+ var url = window.location.href;
251
+ var re = new RegExp('([?&])' + key + '=.*?(&|#|$)(.*)', 'gi'),
252
+ hash;
253
+
254
+ if (re.test(url)) {
255
+ if (typeof value !== 'undefined' && value !== null)
256
+ return url.replace(re, '$1' + key + '=' + value + '$2$3');
257
+ else {
258
+ hash = url.split('#');
259
+ url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, '');
260
+ if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += '#' + hash[1];
261
+ return url;
262
+ }
263
+ } else {
264
+ if (typeof value !== 'undefined' && value !== null) {
265
+ var separator = url.indexOf('?') !== -1 ? '&' : '?';
266
+ hash = url.split('#');
267
+ url = hash[0] + separator + key + '=' + value;
268
+ if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += '#' + hash[1];
269
+ return url;
270
+ } else return url;
271
+ }
272
+ }
273
+ })(compodoc);