@eui/core 18.0.0-rc.4 → 18.0.0-rc.40

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 (56) hide show
  1. package/docs/classes/CssUtils.html +59 -2
  2. package/docs/dependencies.html +3 -3
  3. package/docs/index.html +1 -1
  4. package/docs/injectables/CoreAppEffects.html +24 -5
  5. package/docs/injectables/EuiAppShellService.html +13 -1
  6. package/docs/injectables/EuiDynamicMenuService.html +2 -2
  7. package/docs/injectables/EuiThemeService.html +297 -96
  8. package/docs/injectables/LocalStorageService.html +12 -1
  9. package/docs/injectables/StoreService.html +12 -1
  10. package/docs/interfaces/IEuiTheme.html +387 -0
  11. package/docs/interfaces/ThemeState.html +309 -0
  12. package/docs/js/menu-wc.js +6 -0
  13. package/docs/js/menu-wc_es5.js +1 -1
  14. package/docs/js/search/search_index.js +2 -2
  15. package/docs/miscellaneous/enumerations.html +66 -6
  16. package/docs/miscellaneous/functions.html +284 -0
  17. package/docs/miscellaneous/variables.html +119 -31
  18. package/esm2022/index.mjs +3 -1
  19. package/esm2022/lib/helpers/css-utils.mjs +74 -60
  20. package/esm2022/lib/helpers/dom-helpers.mjs +3 -9
  21. package/esm2022/lib/services/dynamic-menu/dynamic-menu.service.mjs +2 -5
  22. package/esm2022/lib/services/eui-app-shell.service.mjs +20 -16
  23. package/esm2022/lib/services/eui-theme.service.mjs +186 -26
  24. package/esm2022/lib/services/locale/locale.service.mjs +2 -1
  25. package/esm2022/lib/services/storage/local-storage.service.mjs +36 -25
  26. package/esm2022/lib/services/store/effects/app.effects.mjs +19 -7
  27. package/esm2022/lib/services/store/reducers/meta.reducers.mjs +46 -32
  28. package/esm2022/lib/services/store/store.service.mjs +17 -9
  29. package/esm2022/lib/services/store/store.service.mock.mjs +3 -2
  30. package/fesm2022/eui-core.mjs +403 -194
  31. package/fesm2022/eui-core.mjs.map +1 -1
  32. package/index.d.ts +1 -0
  33. package/index.d.ts.map +1 -1
  34. package/lib/helpers/css-utils.d.ts +24 -18
  35. package/lib/helpers/css-utils.d.ts.map +1 -1
  36. package/lib/helpers/dom-helpers.d.ts +1 -1
  37. package/lib/helpers/dom-helpers.d.ts.map +1 -1
  38. package/lib/services/dynamic-menu/dynamic-menu.service.d.ts +5 -5
  39. package/lib/services/dynamic-menu/dynamic-menu.service.d.ts.map +1 -1
  40. package/lib/services/eui-app-shell.service.d.ts +3 -2
  41. package/lib/services/eui-app-shell.service.d.ts.map +1 -1
  42. package/lib/services/eui-theme.service.d.ts +41 -15
  43. package/lib/services/eui-theme.service.d.ts.map +1 -1
  44. package/lib/services/locale/locale.service.d.ts +1 -0
  45. package/lib/services/locale/locale.service.d.ts.map +1 -1
  46. package/lib/services/storage/local-storage.service.d.ts +3 -2
  47. package/lib/services/storage/local-storage.service.d.ts.map +1 -1
  48. package/lib/services/store/effects/app.effects.d.ts +2 -1
  49. package/lib/services/store/effects/app.effects.d.ts.map +1 -1
  50. package/lib/services/store/reducers/meta.reducers.d.ts +11 -1
  51. package/lib/services/store/reducers/meta.reducers.d.ts.map +1 -1
  52. package/lib/services/store/store.service.d.ts +3 -2
  53. package/lib/services/store/store.service.d.ts.map +1 -1
  54. package/lib/services/store/store.service.mock.d.ts +1 -0
  55. package/lib/services/store/store.service.mock.d.ts.map +1 -1
  56. package/package.json +4 -4
@@ -485,7 +485,38 @@
485
485
  </td>
486
486
  </tr>
487
487
 
488
+ <tr>
489
+ <td class="col-md-4">
490
+ <div class="io-description"><p>Get the value of a CSS variable. Using getComputedStyle to get the value of the CSS variable (Browser Specific API)</p>
491
+ </div>
492
+ </td>
493
+ </tr>
488
494
 
495
+ <tr>
496
+ <td class="col-md-4">
497
+ <div class="io-description">
498
+ <b>Parameters :</b>
499
+ <table class="params">
500
+ <thead>
501
+ <tr>
502
+ <td>Name</td>
503
+ </tr>
504
+ </thead>
505
+ <tbody>
506
+ <tr>
507
+ <td>inputProperty</td>
508
+ </tr>
509
+ <tr>
510
+ <td>document</td>
511
+ </tr>
512
+ <tr>
513
+ <td>platform</td>
514
+ </tr>
515
+ </tbody>
516
+ </table>
517
+ </div>
518
+ </td>
519
+ </tr>
489
520
  </tbody>
490
521
  </table>
491
522
  <table class="table table-sm table-bordered">
@@ -620,7 +651,7 @@
620
651
  <tr>
621
652
  <td class="col-md-4">
622
653
  <span class="modifier-icon icon ion-ios-reset"></span>
623
- <code>setAppViewportCssVars()</code>
654
+ <code>setAppViewportCssVars(platform)</code>
624
655
  </td>
625
656
  </tr>
626
657
 
@@ -629,7 +660,7 @@
629
660
 
630
661
  <tr>
631
662
  <td class="col-md-4">
632
- <div class="io-description"><p>Gets the viewport height and width and multiple it by 1% to get a value for a vh/vw unit
663
+ <div class="io-description"><p>Gets the viewport height and width and multiply it by 1% to get a value for a vh/vw unit
633
664
  Sets the value in the --eui-app-vh custom property to the root of the document
634
665
  Sets the value in the --eui-app-vw custom property to the root of the document
635
666
  Example for 100% height: calc(var(--eui-app-vh, 1vh) * 100);
@@ -637,10 +668,36 @@ Example for 50% height: calc(var(--eui-app-vh, 1vh) * 50);
637
668
  Example for 50% width: calc(var(--eui-app-vw, 1vw) * 50);</p>
638
669
  </div>
639
670
 
671
+ <div class="io-description">
672
+ <b>Parameters :</b>
673
+
674
+ <table class="params">
675
+ <thead>
676
+ <tr>
677
+ <td>Name</td>
678
+ <td>Optional</td>
679
+ </tr>
680
+ </thead>
681
+ <tbody>
682
+ <tr>
683
+ <td>platform</td>
684
+
685
+ <td>
686
+ No
687
+ </td>
688
+
689
+
690
+ </tr>
691
+ </tbody>
692
+ </table>
693
+ </div>
640
694
  <div class="io-description">
641
695
  <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
642
696
 
643
697
  </div>
698
+ <div class="io-description">
699
+
700
+ </div>
644
701
  </td>
645
702
  </tr>
646
703
  </tbody>
@@ -130,9 +130,9 @@
130
130
  <li>
131
131
  <b>@angular/material-moment-adapter</b> : 18.0.0</li>
132
132
  <li>
133
- <b>@angular-devkit/build-angular</b> : 18.0.0</li>
133
+ <b>@angular-devkit/build-angular</b> : 18.0.1</li>
134
134
  <li>
135
- <b>@angular/cli</b> : 18.0.0</li>
135
+ <b>@angular/cli</b> : 18.0.1</li>
136
136
  <li>
137
137
  <b>ng-packagr</b> : 18.0.0</li>
138
138
  <li>
@@ -284,7 +284,7 @@
284
284
  <li>
285
285
  <b>@stackblitz/sdk</b> : 1.10.0</li>
286
286
  <li>
287
- <b>@eui/ecl</b> : 18.0.0-rc.3</li>
287
+ <b>@eui/ecl</b> : 18.0.0-rc.39</li>
288
288
  <li>
289
289
  <b>@eui/tools</b> : ^6.0.0</li>
290
290
  </ul>
package/docs/index.html CHANGED
@@ -134,7 +134,7 @@
134
134
  <div class="card text-center">
135
135
  <div class="card-block">
136
136
  <h4 class="card-title"><span class="icon ion-md-information-circle-outline"></span></h4>
137
- <p class="card-text">9 Interfaces</p>
137
+ <p class="card-text">11 Interfaces</p>
138
138
  </div>
139
139
  </div>
140
140
  </div>
@@ -155,7 +155,7 @@
155
155
  <tbody>
156
156
  <tr>
157
157
  <td class="col-md-4">
158
- <code>constructor(actions: Actions, showConnectionStatus: <a href="../undefineds/Status.html" target="_self">boolean | ConnectionStatus</a>, translateService: TranslateService, asService: <a href="../injectables/EuiGrowlService.html" target="_self">EuiGrowlService</a>)</code>
158
+ <code>constructor(actions: Actions, showConnectionStatus: <a href="../undefineds/Status.html" target="_self">boolean | ConnectionStatus</a>, translateService: TranslateService, asService: <a href="../injectables/EuiGrowlService.html" target="_self">EuiGrowlService</a>, platformId)</code>
159
159
  </td>
160
160
  </tr>
161
161
 
@@ -220,6 +220,17 @@
220
220
  </td>
221
221
 
222
222
  </tr>
223
+ <tr>
224
+ <td>platformId</td>
225
+
226
+ <td>
227
+ </td>
228
+
229
+ <td>
230
+ No
231
+ </td>
232
+
233
+ </tr>
223
234
  </tbody>
224
235
  </table>
225
236
  </div>
@@ -290,10 +301,18 @@
290
301
  </tr>
291
302
  <tr>
292
303
  <td class="col-md-4">
293
- <i>Default value : </i><code>createEffect(() &#x3D;&gt;
294
- merge(fromEvent(window, &#x27;online&#x27;).pipe(mapTo(true)), fromEvent(window, &#x27;offline&#x27;).pipe(mapTo(false))).pipe(
295
- map((connected) &#x3D;&gt; new UpdateAppConnectionAction(connected)),
296
- ),
304
+ <i>Default value : </i><code>createEffect(() &#x3D;&gt; {
305
+ if(isPlatformBrowser(this.platformId)) {
306
+ return merge(
307
+ fromEvent(window, &#x27;online&#x27;).pipe(mapTo(true)),
308
+ fromEvent(window, &#x27;offline&#x27;).pipe(mapTo(false)),
309
+ ).pipe(
310
+ map((connected) &#x3D;&gt; new UpdateAppConnectionAction(connected)),
311
+ )
312
+ } else {
313
+ return of(new UpdateAppConnectionAction(false))
314
+ }
315
+ },
297
316
  )</code>
298
317
  </td>
299
318
  </tr>
@@ -269,7 +269,7 @@
269
269
  <tbody>
270
270
  <tr>
271
271
  <td class="col-md-4">
272
- <code>constructor(config: GlobalConfig, http: HttpClient, platformId: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank">object</a>, router: Router, storeService: <a href="../injectables/StoreService.html" target="_self">StoreService</a>, i18nService: <a href="../injectables/I18nService.html" target="_self">I18nService</a>)</code>
272
+ <code>constructor(config: GlobalConfig, http: HttpClient, platformId: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank">object</a>, document: Document, router: Router, storeService: <a href="../injectables/StoreService.html" target="_self">StoreService</a>, i18nService: <a href="../injectables/I18nService.html" target="_self">I18nService</a>)</code>
273
273
  </td>
274
274
  </tr>
275
275
 
@@ -321,6 +321,18 @@
321
321
  No
322
322
  </td>
323
323
 
324
+ </tr>
325
+ <tr>
326
+ <td>document</td>
327
+
328
+ <td>
329
+ <code>Document</code>
330
+ </td>
331
+
332
+ <td>
333
+ No
334
+ </td>
335
+
324
336
  </tr>
325
337
  <tr>
326
338
  <td>router</td>
@@ -306,7 +306,7 @@
306
306
  <td class="col-md-4">
307
307
 
308
308
  <div class="io-description">
309
- <b>Returns : </b> <code>LINK[]</code>
309
+ <b>Returns : </b> <code>EuiMenuItem[]</code>
310
310
 
311
311
  </div>
312
312
  </td>
@@ -332,7 +332,7 @@
332
332
  </tr>
333
333
  <tr>
334
334
  <td class="col-md-4">
335
- <i>Type : </i> <code>Array&lt;LINK&gt;</code>
335
+ <i>Type : </i> <code>Array&lt;EuiMenuItem&gt;</code>
336
336
 
337
337
  </td>
338
338
  </tr>