@eui/core 16.1.1 → 17.0.0-next.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/docs/classes/UpdateUserRightsAction.html +3 -3
- package/docs/dependencies.html +2 -2
- package/docs/injectables/CoreAppEffects.html +12 -10
- package/docs/injectables/{UxDynamicMenuService.html → EuiDynamicMenuService.html} +10 -10
- package/docs/injectables/EuiPermissionService.html +4 -4
- package/docs/injectables/{UxTimezoneService.html → EuiTimezoneService.html} +5 -5
- package/docs/injectables/UxAppShellService.html +123 -1207
- package/docs/interfaces/{TimeZone.html → EuiTimeZone.html} +3 -3
- package/docs/interfaces/UIState.html +8 -8
- package/docs/js/menu-wc.js +9 -9
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +705 -705
- package/esm2022/lib/services/dynamic-menu/dynamic-menu.service.mjs +66 -0
- package/esm2022/lib/services/errors/http-error-handler-callback-functions.mjs +5 -4
- package/esm2022/lib/services/eui-timezone.service.mjs +716 -0
- package/esm2022/lib/services/i18n/i18n.service.mjs +5 -5
- package/esm2022/lib/services/index.mjs +3 -3
- package/esm2022/lib/services/permission/permission.service.mjs +2 -2
- package/esm2022/lib/services/store/actions/user.actions.mjs +1 -1
- package/esm2022/lib/services/store/effects/app.effects.mjs +13 -3
- package/esm2022/lib/services/ux-app-shell.service.mjs +3 -149
- package/esm2022/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +26 -17
- package/fesm2022/eui-core.mjs +63 -189
- package/fesm2022/eui-core.mjs.map +1 -1
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts +15 -0
- package/lib/services/dynamic-menu/dynamic-menu.service.d.ts.map +1 -0
- package/lib/services/errors/http-error-handler-callback-functions.d.ts.map +1 -1
- package/lib/services/{ux-timezone.service.d.ts → eui-timezone.service.d.ts} +9 -9
- package/lib/services/eui-timezone.service.d.ts.map +1 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/permission/permission.service.d.ts +7 -7
- package/lib/services/permission/permission.service.d.ts.map +1 -1
- package/lib/services/store/actions/user.actions.d.ts +3 -3
- package/lib/services/store/actions/user.actions.d.ts.map +1 -1
- package/lib/services/store/effects/app.effects.d.ts.map +1 -1
- package/lib/services/ux-app-shell.service.d.ts +8 -31
- package/lib/services/ux-app-shell.service.d.ts.map +1 -1
- package/lib/services/ux-error-feedback/ux-error-feedback.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/esm2022/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +0 -66
- package/esm2022/lib/services/ux-timezone.service.mjs +0 -717
- package/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.d.ts +0 -15
- package/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.d.ts.map +0 -1
- package/lib/services/ux-timezone.service.d.ts.map +0 -1
|
@@ -181,6 +181,12 @@
|
|
|
181
181
|
<li>
|
|
182
182
|
<a href="#EUI_CONFIG_TOKEN" title="packages/eui/packages/core/src/lib/services/config/tokens.ts" ><b>EUI_CONFIG_TOKEN</b> (packages/.../tokens.ts)</a>
|
|
183
183
|
</li>
|
|
184
|
+
<li>
|
|
185
|
+
<a href="#EUI_COUNTRIES" title="packages/eui/packages/core/src/lib/services/eui-timezone.service.ts" ><b>EUI_COUNTRIES</b> (packages/.../eui-timezone.service.ts)</a>
|
|
186
|
+
</li>
|
|
187
|
+
<li>
|
|
188
|
+
<a href="#EUI_TIMEZONES" title="packages/eui/packages/core/src/lib/services/eui-timezone.service.ts" ><b>EUI_TIMEZONES</b> (packages/.../eui-timezone.service.ts)</a>
|
|
189
|
+
</li>
|
|
184
190
|
<li>
|
|
185
191
|
<a href="#euiCoreRootGuardClass" title="packages/eui/packages/core/src/lib/eui-core.module.ts" ><b>euiCoreRootGuardClass</b> (packages/.../eui-core.module.ts)</a>
|
|
186
192
|
</li>
|
|
@@ -343,15 +349,9 @@
|
|
|
343
349
|
<li>
|
|
344
350
|
<a href="#updateUserRights" title="packages/eui/packages/core/src/lib/services/store/reducers/user.reducers.ts" ><b>updateUserRights</b> (packages/.../user.reducers.ts)</a>
|
|
345
351
|
</li>
|
|
346
|
-
<li>
|
|
347
|
-
<a href="#UX_COUNTRIES" title="packages/eui/packages/core/src/lib/services/ux-timezone.service.ts" ><b>UX_COUNTRIES</b> (packages/.../ux-timezone.service.ts)</a>
|
|
348
|
-
</li>
|
|
349
352
|
<li>
|
|
350
353
|
<a href="#UX_ERROR_MAPPING_HANDLER_TOKEN" title="packages/eui/packages/core/src/lib/interceptors/ux-request-error-model.interceptor.ts" ><b>UX_ERROR_MAPPING_HANDLER_TOKEN</b> (packages/.../ux-request-error-model.interceptor.ts)</a>
|
|
351
354
|
</li>
|
|
352
|
-
<li>
|
|
353
|
-
<a href="#UX_TIMEZONES" title="packages/eui/packages/core/src/lib/services/ux-timezone.service.ts" ><b>UX_TIMEZONES</b> (packages/.../ux-timezone.service.ts)</a>
|
|
354
|
-
</li>
|
|
355
355
|
<li>
|
|
356
356
|
<a href="#validateEmail" title="packages/eui/packages/core/src/lib/helpers/form-helpers.ts" ><b>validateEmail</b> (packages/.../form-helpers.ts)</a>
|
|
357
357
|
</li>
|
|
@@ -2452,712 +2452,22 @@
|
|
|
2452
2452
|
</tbody>
|
|
2453
2453
|
</table>
|
|
2454
2454
|
</section>
|
|
2455
|
-
<h3>packages/eui/packages/core/src/lib/services/
|
|
2456
|
-
<section data-compodoc="block-properties">
|
|
2457
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2458
|
-
<tbody>
|
|
2459
|
-
<tr>
|
|
2460
|
-
<td class="col-md-4">
|
|
2461
|
-
<a name="euiInitApp"></a>
|
|
2462
|
-
<span class="name">
|
|
2463
|
-
<span ><b>euiInitApp</b></span>
|
|
2464
|
-
<a href="#euiInitApp"><span class="icon ion-ios-link"></span></a>
|
|
2465
|
-
</span>
|
|
2466
|
-
</td>
|
|
2467
|
-
</tr>
|
|
2468
|
-
<tr>
|
|
2469
|
-
<td class="col-md-4">
|
|
2470
|
-
<i>Default value : </i><code>(injector: Injector) => () =>
|
|
2471
|
-
new Promise((resolve) => {
|
|
2472
|
-
const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve(null));
|
|
2473
|
-
|
|
2474
|
-
locationInitialized.then(() => {
|
|
2475
|
-
const appConfig: EuiAppConfig = injector.get(CONFIG_TOKEN);
|
|
2476
|
-
// necessary config parameters
|
|
2477
|
-
let appVersion: string;
|
|
2478
|
-
if (appConfig && appConfig.versions && appConfig.versions.app) {
|
|
2479
|
-
appVersion = appConfig.versions.app;
|
|
2480
|
-
} else {
|
|
2481
|
-
appVersion = '0.0.0';
|
|
2482
|
-
}
|
|
2483
|
-
let storageType: BrowserStorageType;
|
|
2484
|
-
if (appConfig && appConfig.saveStateStorage) {
|
|
2485
|
-
storageType = appConfig.saveStateStorage;
|
|
2486
|
-
} else {
|
|
2487
|
-
storageType = BrowserStorageType.local;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
const storeService = injector.get(StoreService);
|
|
2491
|
-
storeService.init(appVersion, storageType);
|
|
2492
|
-
storeService.handleAutoSave();
|
|
2493
|
-
resolve(null);
|
|
2494
|
-
});
|
|
2495
|
-
})</code>
|
|
2496
|
-
</td>
|
|
2497
|
-
</tr>
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
</tbody>
|
|
2501
|
-
</table>
|
|
2502
|
-
</section>
|
|
2503
|
-
<h3>packages/eui/packages/core/src/lib/helpers/format-helpers.ts</h3>
|
|
2504
|
-
<section data-compodoc="block-properties">
|
|
2505
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2506
|
-
<tbody>
|
|
2507
|
-
<tr>
|
|
2508
|
-
<td class="col-md-4">
|
|
2509
|
-
<a name="formatNumber"></a>
|
|
2510
|
-
<span class="name">
|
|
2511
|
-
<span ><b>formatNumber</b></span>
|
|
2512
|
-
<a href="#formatNumber"><span class="icon ion-ios-link"></span></a>
|
|
2513
|
-
</span>
|
|
2514
|
-
</td>
|
|
2515
|
-
</tr>
|
|
2516
|
-
<tr>
|
|
2517
|
-
<td class="col-md-4">
|
|
2518
|
-
<i>Default value : </i><code>(
|
|
2519
|
-
value: number | string,
|
|
2520
|
-
fractionSize: number = 2,
|
|
2521
|
-
inDecimalSeparator: string = ',',
|
|
2522
|
-
inThousandSeparator: string = ''
|
|
2523
|
-
): string => {
|
|
2524
|
-
if (inDecimalSeparator || inThousandSeparator) {
|
|
2525
|
-
console.warn(
|
|
2526
|
-
'The inDecimalSeparator and inThousandSeparator are deprecated. They will be a ' +
|
|
2527
|
-
'BREAKING CHANGE for eUI 9 and be replaced by localization strategy.'
|
|
2528
|
-
);
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
let decimalSeparator = '';
|
|
2532
|
-
let thousandsSeparator = '';
|
|
2533
|
-
|
|
2534
|
-
if (value === null || value === undefined) {
|
|
2535
|
-
return null;
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
if (typeof value === 'string') {
|
|
2539
|
-
// get all non characters
|
|
2540
|
-
let nonChars: string[] = value.match(/[^0-9]+/g) || [];
|
|
2541
|
-
|
|
2542
|
-
// get all unique chars
|
|
2543
|
-
let uniqueChars = nonChars.reduce((acc, e) => acc.set(e, (acc.get(e) || 0) + 1), new Map());
|
|
2544
|
-
|
|
2545
|
-
// get separators
|
|
2546
|
-
let separators = Array.from<string>(uniqueChars.keys());
|
|
2547
|
-
|
|
2548
|
-
// sense where decimal separator and where thousand separator is
|
|
2549
|
-
if (separators.length > 1) {
|
|
2550
|
-
// left detected separator will be thousand and second will be decimal
|
|
2551
|
-
thousandsSeparator = separators[0];
|
|
2552
|
-
decimalSeparator = separators[1];
|
|
2553
|
-
} else if (separators.length > 0) {
|
|
2554
|
-
// in case there is only one separator you don't know exactly who this separator is.
|
|
2555
|
-
// in case there are more than two occurrences means we have a thousand otherwise we'll
|
|
2556
|
-
// agree by conventions that is decimal
|
|
2557
|
-
if (nonChars.length > 1) {
|
|
2558
|
-
return value
|
|
2559
|
-
.split(separators[0])
|
|
2560
|
-
.join('')
|
|
2561
|
-
.replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator);
|
|
2562
|
-
} else {
|
|
2563
|
-
return value.replace(separators[0], inDecimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator);
|
|
2564
|
-
}
|
|
2565
|
-
} else {
|
|
2566
|
-
// in case there are no separators then only format based on thousand one
|
|
2567
|
-
return value.replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator);
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
// do the replacement of separators and parseInt
|
|
2571
|
-
// Beware! Always replace thousand separator first and then decimal
|
|
2572
|
-
value = value.split(thousandsSeparator).join('').replace(decimalSeparator, '.');
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
decimalSeparator = inDecimalSeparator;
|
|
2576
|
-
thousandsSeparator = inThousandSeparator;
|
|
2577
|
-
|
|
2578
|
-
const maxFraction = '0'.repeat(fractionSize);
|
|
2579
|
-
|
|
2580
|
-
let [integer, fraction = maxFraction] = (value || '0').toString().split('.');
|
|
2581
|
-
fraction = fractionSize > 0 ? (fraction + maxFraction).substring(0, fractionSize) : '';
|
|
2582
|
-
|
|
2583
|
-
// this rule makes sense only in number in case fraction is all zero
|
|
2584
|
-
fraction = typeof value === 'number' && fraction === maxFraction ? '' : decimalSeparator + fraction;
|
|
2585
|
-
|
|
2586
|
-
return integer.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) + fraction;
|
|
2587
|
-
}</code>
|
|
2588
|
-
</td>
|
|
2589
|
-
</tr>
|
|
2590
|
-
|
|
2591
|
-
<tr>
|
|
2592
|
-
<td class="col-md-4">
|
|
2593
|
-
<div class="io-description"><p>Its job is to parse number and format it based on given input.</p>
|
|
2594
|
-
</div>
|
|
2595
|
-
</td>
|
|
2596
|
-
</tr>
|
|
2597
|
-
|
|
2598
|
-
</tbody>
|
|
2599
|
-
</table>
|
|
2600
|
-
<table class="table table-sm table-bordered">
|
|
2601
|
-
<tbody>
|
|
2602
|
-
<tr>
|
|
2603
|
-
<td class="col-md-4">
|
|
2604
|
-
<a name="uniqueId"></a>
|
|
2605
|
-
<span class="name">
|
|
2606
|
-
<span ><b>uniqueId</b></span>
|
|
2607
|
-
<a href="#uniqueId"><span class="icon ion-ios-link"></span></a>
|
|
2608
|
-
</span>
|
|
2609
|
-
</td>
|
|
2610
|
-
</tr>
|
|
2611
|
-
<tr>
|
|
2612
|
-
<td class="col-md-4">
|
|
2613
|
-
<i>Default value : </i><code>(): string => Math.random().toString(36).substr(2, 9)</code>
|
|
2614
|
-
</td>
|
|
2615
|
-
</tr>
|
|
2616
|
-
|
|
2617
|
-
<tr>
|
|
2618
|
-
<td class="col-md-4">
|
|
2619
|
-
<div class="io-description"><p>returns a random string with radix=36</p>
|
|
2620
|
-
</div>
|
|
2621
|
-
</td>
|
|
2622
|
-
</tr>
|
|
2623
|
-
|
|
2624
|
-
</tbody>
|
|
2625
|
-
</table>
|
|
2626
|
-
</section>
|
|
2627
|
-
<h3>packages/eui/packages/core/src/lib/helpers/form-helpers.ts</h3>
|
|
2455
|
+
<h3>packages/eui/packages/core/src/lib/services/eui-timezone.service.ts</h3>
|
|
2628
2456
|
<section data-compodoc="block-properties">
|
|
2629
2457
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
2630
2458
|
<tbody>
|
|
2631
2459
|
<tr>
|
|
2632
2460
|
<td class="col-md-4">
|
|
2633
|
-
<a name="
|
|
2461
|
+
<a name="EUI_COUNTRIES"></a>
|
|
2634
2462
|
<span class="name">
|
|
2635
|
-
<span ><b>
|
|
2636
|
-
<a href="#
|
|
2463
|
+
<span ><b>EUI_COUNTRIES</b></span>
|
|
2464
|
+
<a href="#EUI_COUNTRIES"><span class="icon ion-ios-link"></span></a>
|
|
2637
2465
|
</span>
|
|
2638
2466
|
</td>
|
|
2639
2467
|
</tr>
|
|
2640
2468
|
<tr>
|
|
2641
2469
|
<td class="col-md-4">
|
|
2642
|
-
<i>
|
|
2643
|
-
object = Object(object);
|
|
2644
|
-
Object.keys(object).forEach((key) => iteratee(object[key], key, object));
|
|
2645
|
-
}</code>
|
|
2646
|
-
</td>
|
|
2647
|
-
</tr>
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
</tbody>
|
|
2651
|
-
</table>
|
|
2652
|
-
<table class="table table-sm table-bordered">
|
|
2653
|
-
<tbody>
|
|
2654
|
-
<tr>
|
|
2655
|
-
<td class="col-md-4">
|
|
2656
|
-
<a name="markControlsTouched"></a>
|
|
2657
|
-
<span class="name">
|
|
2658
|
-
<span ><b>markControlsTouched</b></span>
|
|
2659
|
-
<a href="#markControlsTouched"><span class="icon ion-ios-link"></span></a>
|
|
2660
|
-
</span>
|
|
2661
|
-
</td>
|
|
2662
|
-
</tr>
|
|
2663
|
-
<tr>
|
|
2664
|
-
<td class="col-md-4">
|
|
2665
|
-
<i>Default value : </i><code>(group: FormGroup | FormArray): void => {
|
|
2666
|
-
Object.keys(group.controls).forEach((key: string) => {
|
|
2667
|
-
const abstractControl = group.controls[key];
|
|
2668
|
-
if (abstractControl instanceof FormGroup || abstractControl instanceof FormArray) {
|
|
2669
|
-
markControlsTouched(abstractControl);
|
|
2670
|
-
} else {
|
|
2671
|
-
abstractControl.markAsTouched();
|
|
2672
|
-
}
|
|
2673
|
-
});
|
|
2674
|
-
}</code>
|
|
2675
|
-
</td>
|
|
2676
|
-
</tr>
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
</tbody>
|
|
2680
|
-
</table>
|
|
2681
|
-
<table class="table table-sm table-bordered">
|
|
2682
|
-
<tbody>
|
|
2683
|
-
<tr>
|
|
2684
|
-
<td class="col-md-4">
|
|
2685
|
-
<a name="markFormGroupTouched"></a>
|
|
2686
|
-
<span class="name">
|
|
2687
|
-
<span ><b>markFormGroupTouched</b></span>
|
|
2688
|
-
<a href="#markFormGroupTouched"><span class="icon ion-ios-link"></span></a>
|
|
2689
|
-
</span>
|
|
2690
|
-
</td>
|
|
2691
|
-
</tr>
|
|
2692
|
-
<tr>
|
|
2693
|
-
<td class="col-md-4">
|
|
2694
|
-
<i>Default value : </i><code>(FormControls: { [key: string]: AbstractControl } | AbstractControl[]): void => {
|
|
2695
|
-
const markFormGroupTouchedRecursive = (controls: { [key: string]: AbstractControl } | AbstractControl[]): void => {
|
|
2696
|
-
forOwn(controls, (c) => {
|
|
2697
|
-
if (c instanceof FormGroup || c instanceof FormArray) {
|
|
2698
|
-
markFormGroupTouchedRecursive(c.controls);
|
|
2699
|
-
} else {
|
|
2700
|
-
c.markAsTouched();
|
|
2701
|
-
c.updateValueAndValidity();
|
|
2702
|
-
}
|
|
2703
|
-
});
|
|
2704
|
-
};
|
|
2705
|
-
markFormGroupTouchedRecursive(FormControls);
|
|
2706
|
-
}</code>
|
|
2707
|
-
</td>
|
|
2708
|
-
</tr>
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
</tbody>
|
|
2712
|
-
</table>
|
|
2713
|
-
<table class="table table-sm table-bordered">
|
|
2714
|
-
<tbody>
|
|
2715
|
-
<tr>
|
|
2716
|
-
<td class="col-md-4">
|
|
2717
|
-
<a name="validateEmail"></a>
|
|
2718
|
-
<span class="name">
|
|
2719
|
-
<span ><b>validateEmail</b></span>
|
|
2720
|
-
<a href="#validateEmail"><span class="icon ion-ios-link"></span></a>
|
|
2721
|
-
</span>
|
|
2722
|
-
</td>
|
|
2723
|
-
</tr>
|
|
2724
|
-
<tr>
|
|
2725
|
-
<td class="col-md-4">
|
|
2726
|
-
<i>Default value : </i><code>(c: FormControl) => {
|
|
2727
|
-
const EMAIL_REGEXP =
|
|
2728
|
-
// eslint-disable-next-line max-len, no-useless-escape
|
|
2729
|
-
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
2730
|
-
|
|
2731
|
-
const error = {
|
|
2732
|
-
validateEmail: {
|
|
2733
|
-
valid: false,
|
|
2734
|
-
},
|
|
2735
|
-
};
|
|
2736
|
-
return EMAIL_REGEXP.test(c.value) ? null : error;
|
|
2737
|
-
}</code>
|
|
2738
|
-
</td>
|
|
2739
|
-
</tr>
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
</tbody>
|
|
2743
|
-
</table>
|
|
2744
|
-
</section>
|
|
2745
|
-
<h3>packages/eui/packages/core/src/lib/mocks/store.mock.ts</h3>
|
|
2746
|
-
<section data-compodoc="block-properties">
|
|
2747
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2748
|
-
<tbody>
|
|
2749
|
-
<tr>
|
|
2750
|
-
<td class="col-md-4">
|
|
2751
|
-
<a name="globalState"></a>
|
|
2752
|
-
<span class="name">
|
|
2753
|
-
<span ><b>globalState</b></span>
|
|
2754
|
-
<a href="#globalState"><span class="icon ion-ios-link"></span></a>
|
|
2755
|
-
</span>
|
|
2756
|
-
</td>
|
|
2757
|
-
</tr>
|
|
2758
|
-
<tr>
|
|
2759
|
-
<td class="col-md-4">
|
|
2760
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
2761
|
-
|
|
2762
|
-
</td>
|
|
2763
|
-
</tr>
|
|
2764
|
-
<tr>
|
|
2765
|
-
<td class="col-md-4">
|
|
2766
|
-
<i>Default value : </i><code>{
|
|
2767
|
-
dashboard: {},
|
|
2768
|
-
preferences: {
|
|
2769
|
-
dashboard: {},
|
|
2770
|
-
},
|
|
2771
|
-
}</code>
|
|
2772
|
-
</td>
|
|
2773
|
-
</tr>
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
</tbody>
|
|
2777
|
-
</table>
|
|
2778
|
-
<table class="table table-sm table-bordered">
|
|
2779
|
-
<tbody>
|
|
2780
|
-
<tr>
|
|
2781
|
-
<td class="col-md-4">
|
|
2782
|
-
<a name="storeMockInjector"></a>
|
|
2783
|
-
<span class="name">
|
|
2784
|
-
<span ><b>storeMockInjector</b></span>
|
|
2785
|
-
<a href="#storeMockInjector"><span class="icon ion-ios-link"></span></a>
|
|
2786
|
-
</span>
|
|
2787
|
-
</td>
|
|
2788
|
-
</tr>
|
|
2789
|
-
<tr>
|
|
2790
|
-
<td class="col-md-4">
|
|
2791
|
-
<i>Default value : </i><code>(state) => {
|
|
2792
|
-
globalState = state;
|
|
2793
|
-
return StoreMock;
|
|
2794
|
-
}</code>
|
|
2795
|
-
</td>
|
|
2796
|
-
</tr>
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
</tbody>
|
|
2800
|
-
</table>
|
|
2801
|
-
</section>
|
|
2802
|
-
<h3>packages/eui/packages/core/src/lib/helpers/http-helpers.ts</h3>
|
|
2803
|
-
<section data-compodoc="block-properties">
|
|
2804
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2805
|
-
<tbody>
|
|
2806
|
-
<tr>
|
|
2807
|
-
<td class="col-md-4">
|
|
2808
|
-
<a name="handleError"></a>
|
|
2809
|
-
<span class="name">
|
|
2810
|
-
<span ><b>handleError</b></span>
|
|
2811
|
-
<a href="#handleError"><span class="icon ion-ios-link"></span></a>
|
|
2812
|
-
</span>
|
|
2813
|
-
</td>
|
|
2814
|
-
</tr>
|
|
2815
|
-
<tr>
|
|
2816
|
-
<td class="col-md-4">
|
|
2817
|
-
<i>Default value : </i><code>(error: any): Observable<never> => {
|
|
2818
|
-
let errMsg = error.message ? error.message : error.status ? `${error.status} - ${error.statusText}` : 'Server error';
|
|
2819
|
-
// console.error(errMsg);
|
|
2820
|
-
return throwError(errMsg);
|
|
2821
|
-
}</code>
|
|
2822
|
-
</td>
|
|
2823
|
-
</tr>
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
</tbody>
|
|
2827
|
-
</table>
|
|
2828
|
-
</section>
|
|
2829
|
-
<h3>packages/eui/packages/core/src/lib/services/ux-app-shell.service.ts</h3>
|
|
2830
|
-
<section data-compodoc="block-properties">
|
|
2831
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2832
|
-
<tbody>
|
|
2833
|
-
<tr>
|
|
2834
|
-
<td class="col-md-4">
|
|
2835
|
-
<a name="initialState"></a>
|
|
2836
|
-
<span class="name">
|
|
2837
|
-
<span ><b>initialState</b></span>
|
|
2838
|
-
<a href="#initialState"><span class="icon ion-ios-link"></span></a>
|
|
2839
|
-
</span>
|
|
2840
|
-
</td>
|
|
2841
|
-
</tr>
|
|
2842
|
-
<tr>
|
|
2843
|
-
<td class="col-md-4">
|
|
2844
|
-
<i>Type : </i> <code><a href="../interfaces/UIState.html" target="_self" >UIState</a></code>
|
|
2845
|
-
|
|
2846
|
-
</td>
|
|
2847
|
-
</tr>
|
|
2848
|
-
<tr>
|
|
2849
|
-
<td class="col-md-4">
|
|
2850
|
-
<i>Default value : </i><code>{
|
|
2851
|
-
appName: '',
|
|
2852
|
-
appShortName: '',
|
|
2853
|
-
appSubTitle: '',
|
|
2854
|
-
userInfos: null,
|
|
2855
|
-
userSubInfos: null,
|
|
2856
|
-
impersonatedUserInfos: null,
|
|
2857
|
-
isSidebarOpen: true,
|
|
2858
|
-
isSidebarHover: false,
|
|
2859
|
-
isSidebarActive: false,
|
|
2860
|
-
isSidebarInnerActive: false,
|
|
2861
|
-
isSidebarStateCloseWithIcons: false,
|
|
2862
|
-
isSidebarExpandOnHover: true,
|
|
2863
|
-
hasSidebar: false,
|
|
2864
|
-
hasHeader: false,
|
|
2865
|
-
hasBreadcrumb: false,
|
|
2866
|
-
hasHeaderLogo: false,
|
|
2867
|
-
hasHeaderEnvironment: false,
|
|
2868
|
-
hasToolbar: false,
|
|
2869
|
-
hasToolbarMenu: false,
|
|
2870
|
-
environmentValue: '',
|
|
2871
|
-
isSidebarHidden: false,
|
|
2872
|
-
hasTopMessage: false,
|
|
2873
|
-
windowWidth: 0,
|
|
2874
|
-
windowHeight: 0,
|
|
2875
|
-
mainContentHeight: 0,
|
|
2876
|
-
pageHeaderHeight: 0,
|
|
2877
|
-
wrapperClasses: '',
|
|
2878
|
-
breakpoint: '',
|
|
2879
|
-
breakpoints: {
|
|
2880
|
-
isMobile: false,
|
|
2881
|
-
isTablet: false,
|
|
2882
|
-
isLtDesktop: false,
|
|
2883
|
-
isDesktop: false,
|
|
2884
|
-
isXL: false,
|
|
2885
|
-
isXXL: false,
|
|
2886
|
-
},
|
|
2887
|
-
menuLinks: [],
|
|
2888
|
-
sidebarLinks: [],
|
|
2889
|
-
combinedLinks: [],
|
|
2890
|
-
isBlockDocumentActive: false,
|
|
2891
|
-
deviceInfo: null,
|
|
2892
|
-
activeLanguage: 'en',
|
|
2893
|
-
languages: UxEuLanguages.getLanguages(),
|
|
2894
|
-
appMetadata: null,
|
|
2895
|
-
hasModalActive: false,
|
|
2896
|
-
isDimmerActive: false,
|
|
2897
|
-
}</code>
|
|
2898
|
-
</td>
|
|
2899
|
-
</tr>
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
</tbody>
|
|
2903
|
-
</table>
|
|
2904
|
-
</section>
|
|
2905
|
-
<h3>packages/eui/packages/core/src/lib/helpers/utils.ts</h3>
|
|
2906
|
-
<section data-compodoc="block-properties">
|
|
2907
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2908
|
-
<tbody>
|
|
2909
|
-
<tr>
|
|
2910
|
-
<td class="col-md-4">
|
|
2911
|
-
<a name="isDefined"></a>
|
|
2912
|
-
<span class="name">
|
|
2913
|
-
<span ><b>isDefined</b></span>
|
|
2914
|
-
<a href="#isDefined"><span class="icon ion-ios-link"></span></a>
|
|
2915
|
-
</span>
|
|
2916
|
-
</td>
|
|
2917
|
-
</tr>
|
|
2918
|
-
<tr>
|
|
2919
|
-
<td class="col-md-4">
|
|
2920
|
-
<i>Default value : </i><code><T>(value: T | undefined | null): value is T => <T>value !== undefined && <T>value !== null</code>
|
|
2921
|
-
</td>
|
|
2922
|
-
</tr>
|
|
2923
|
-
|
|
2924
|
-
<tr>
|
|
2925
|
-
<td class="col-md-4">
|
|
2926
|
-
<div class="io-description"><p>check if a value is null or undefined. If it's not both returns true otherwise false</p>
|
|
2927
|
-
</div>
|
|
2928
|
-
</td>
|
|
2929
|
-
</tr>
|
|
2930
|
-
|
|
2931
|
-
</tbody>
|
|
2932
|
-
</table>
|
|
2933
|
-
</section>
|
|
2934
|
-
<h3>packages/eui/packages/core/src/lib/interceptors/add-lang-param.interceptor.ts</h3>
|
|
2935
|
-
<section data-compodoc="block-properties">
|
|
2936
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2937
|
-
<tbody>
|
|
2938
|
-
<tr>
|
|
2939
|
-
<td class="col-md-4">
|
|
2940
|
-
<a name="LANG_PARAM_KEY"></a>
|
|
2941
|
-
<span class="name">
|
|
2942
|
-
<span ><b>LANG_PARAM_KEY</b></span>
|
|
2943
|
-
<a href="#LANG_PARAM_KEY"><span class="icon ion-ios-link"></span></a>
|
|
2944
|
-
</span>
|
|
2945
|
-
</td>
|
|
2946
|
-
</tr>
|
|
2947
|
-
<tr>
|
|
2948
|
-
<td class="col-md-4">
|
|
2949
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
2950
|
-
|
|
2951
|
-
</td>
|
|
2952
|
-
</tr>
|
|
2953
|
-
<tr>
|
|
2954
|
-
<td class="col-md-4">
|
|
2955
|
-
<i>Default value : </i><code>'X-Lang-Param'</code>
|
|
2956
|
-
</td>
|
|
2957
|
-
</tr>
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
</tbody>
|
|
2961
|
-
</table>
|
|
2962
|
-
</section>
|
|
2963
|
-
<h3>packages/eui/packages/core/src/lib/services/storage/local-forage.service.ts</h3>
|
|
2964
|
-
<section data-compodoc="block-properties">
|
|
2965
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
2966
|
-
<tbody>
|
|
2967
|
-
<tr>
|
|
2968
|
-
<td class="col-md-4">
|
|
2969
|
-
<a name="LOCAL_FORAGE_SERVICE_CONFIG_TOKEN"></a>
|
|
2970
|
-
<span class="name">
|
|
2971
|
-
<span ><b>LOCAL_FORAGE_SERVICE_CONFIG_TOKEN</b></span>
|
|
2972
|
-
<a href="#LOCAL_FORAGE_SERVICE_CONFIG_TOKEN"><span class="icon ion-ios-link"></span></a>
|
|
2973
|
-
</span>
|
|
2974
|
-
</td>
|
|
2975
|
-
</tr>
|
|
2976
|
-
<tr>
|
|
2977
|
-
<td class="col-md-4">
|
|
2978
|
-
<i>Default value : </i><code>new InjectionToken<any>('LOCAL_FORAGE_SERVICE_CONFIG')</code>
|
|
2979
|
-
</td>
|
|
2980
|
-
</tr>
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
</tbody>
|
|
2984
|
-
</table>
|
|
2985
|
-
<table class="table table-sm table-bordered">
|
|
2986
|
-
<tbody>
|
|
2987
|
-
<tr>
|
|
2988
|
-
<td class="col-md-4">
|
|
2989
|
-
<a name="localForage"></a>
|
|
2990
|
-
<span class="name">
|
|
2991
|
-
<span ><b>localForage</b></span>
|
|
2992
|
-
<a href="#localForage"><span class="icon ion-ios-link"></span></a>
|
|
2993
|
-
</span>
|
|
2994
|
-
</td>
|
|
2995
|
-
</tr>
|
|
2996
|
-
<tr>
|
|
2997
|
-
<td class="col-md-4">
|
|
2998
|
-
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
2999
|
-
|
|
3000
|
-
</td>
|
|
3001
|
-
</tr>
|
|
3002
|
-
<tr>
|
|
3003
|
-
<td class="col-md-4">
|
|
3004
|
-
<i>Default value : </i><code>'defineDriver' in lf ? lf : lf['default']</code>
|
|
3005
|
-
</td>
|
|
3006
|
-
</tr>
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
</tbody>
|
|
3010
|
-
</table>
|
|
3011
|
-
</section>
|
|
3012
|
-
<h3>packages/eui/packages/core/src/lib/services/locale/locale.service.ts</h3>
|
|
3013
|
-
<section data-compodoc="block-properties">
|
|
3014
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
3015
|
-
<tbody>
|
|
3016
|
-
<tr>
|
|
3017
|
-
<td class="col-md-4">
|
|
3018
|
-
<a name="LOCALE_ID_MAPPER"></a>
|
|
3019
|
-
<span class="name">
|
|
3020
|
-
<span ><b>LOCALE_ID_MAPPER</b></span>
|
|
3021
|
-
<a href="#LOCALE_ID_MAPPER"><span class="icon ion-ios-link"></span></a>
|
|
3022
|
-
</span>
|
|
3023
|
-
</td>
|
|
3024
|
-
</tr>
|
|
3025
|
-
<tr>
|
|
3026
|
-
<td class="col-md-4">
|
|
3027
|
-
<i>Default value : </i><code>new InjectionToken<LocaleMapper>('localeIdMapper')</code>
|
|
3028
|
-
</td>
|
|
3029
|
-
</tr>
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
</tbody>
|
|
3033
|
-
</table>
|
|
3034
|
-
</section>
|
|
3035
|
-
<h3>packages/eui/packages/core/src/lib/services/app/factories/log.ts</h3>
|
|
3036
|
-
<section data-compodoc="block-properties">
|
|
3037
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
3038
|
-
<tbody>
|
|
3039
|
-
<tr>
|
|
3040
|
-
<td class="col-md-4">
|
|
3041
|
-
<a name="LOG_INSTANCES"></a>
|
|
3042
|
-
<span class="name">
|
|
3043
|
-
<span ><b>LOG_INSTANCES</b></span>
|
|
3044
|
-
<a href="#LOG_INSTANCES"><span class="icon ion-ios-link"></span></a>
|
|
3045
|
-
</span>
|
|
3046
|
-
</td>
|
|
3047
|
-
</tr>
|
|
3048
|
-
<tr>
|
|
3049
|
-
<td class="col-md-4">
|
|
3050
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
3051
|
-
|
|
3052
|
-
</td>
|
|
3053
|
-
</tr>
|
|
3054
|
-
<tr>
|
|
3055
|
-
<td class="col-md-4">
|
|
3056
|
-
<i>Default value : </i><code>{}</code>
|
|
3057
|
-
</td>
|
|
3058
|
-
</tr>
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
</tbody>
|
|
3062
|
-
</table>
|
|
3063
|
-
</section>
|
|
3064
|
-
<h3>packages/eui/packages/core/src/lib/services/log/log.module.ts</h3>
|
|
3065
|
-
<section data-compodoc="block-properties">
|
|
3066
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
3067
|
-
<tbody>
|
|
3068
|
-
<tr>
|
|
3069
|
-
<td class="col-md-4">
|
|
3070
|
-
<a name="LOG_MODULE_CONFIG_TOKEN"></a>
|
|
3071
|
-
<span class="name">
|
|
3072
|
-
<span ><b>LOG_MODULE_CONFIG_TOKEN</b></span>
|
|
3073
|
-
<a href="#LOG_MODULE_CONFIG_TOKEN"><span class="icon ion-ios-link"></span></a>
|
|
3074
|
-
</span>
|
|
3075
|
-
</td>
|
|
3076
|
-
</tr>
|
|
3077
|
-
<tr>
|
|
3078
|
-
<td class="col-md-4">
|
|
3079
|
-
<i>Default value : </i><code>new InjectionToken<LogConfig>('LOG_CONFIG')</code>
|
|
3080
|
-
</td>
|
|
3081
|
-
</tr>
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
</tbody>
|
|
3085
|
-
</table>
|
|
3086
|
-
</section>
|
|
3087
|
-
<h3>packages/eui/packages/core/src/lib/interceptors/openid/openid-connect.interceptor.ts</h3>
|
|
3088
|
-
<section data-compodoc="block-properties">
|
|
3089
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
3090
|
-
<tbody>
|
|
3091
|
-
<tr>
|
|
3092
|
-
<td class="col-md-4">
|
|
3093
|
-
<a name="OpenIdConnect"></a>
|
|
3094
|
-
<span class="name">
|
|
3095
|
-
<span ><b>OpenIdConnect</b></span>
|
|
3096
|
-
<a href="#OpenIdConnect"><span class="icon ion-ios-link"></span></a>
|
|
3097
|
-
</span>
|
|
3098
|
-
</td>
|
|
3099
|
-
</tr>
|
|
3100
|
-
<tr>
|
|
3101
|
-
<td class="col-md-4">
|
|
3102
|
-
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
3103
|
-
|
|
3104
|
-
</td>
|
|
3105
|
-
</tr>
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
</tbody>
|
|
3109
|
-
</table>
|
|
3110
|
-
</section>
|
|
3111
|
-
<h3>packages/eui/packages/core/src/lib/services/i18n/i18n.loader.ts</h3>
|
|
3112
|
-
<section data-compodoc="block-properties">
|
|
3113
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
3114
|
-
<tbody>
|
|
3115
|
-
<tr>
|
|
3116
|
-
<td class="col-md-4">
|
|
3117
|
-
<a name="translateConfig"></a>
|
|
3118
|
-
<span class="name">
|
|
3119
|
-
<span ><b>translateConfig</b></span>
|
|
3120
|
-
<a href="#translateConfig"><span class="icon ion-ios-link"></span></a>
|
|
3121
|
-
</span>
|
|
3122
|
-
</td>
|
|
3123
|
-
</tr>
|
|
3124
|
-
<tr>
|
|
3125
|
-
<td class="col-md-4">
|
|
3126
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
3127
|
-
|
|
3128
|
-
</td>
|
|
3129
|
-
</tr>
|
|
3130
|
-
<tr>
|
|
3131
|
-
<td class="col-md-4">
|
|
3132
|
-
<i>Default value : </i><code>{
|
|
3133
|
-
loader: {
|
|
3134
|
-
provide: TranslateLoader,
|
|
3135
|
-
useClass: I18nLoader,
|
|
3136
|
-
},
|
|
3137
|
-
}</code>
|
|
3138
|
-
</td>
|
|
3139
|
-
</tr>
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
</tbody>
|
|
3143
|
-
</table>
|
|
3144
|
-
</section>
|
|
3145
|
-
<h3>packages/eui/packages/core/src/lib/services/ux-timezone.service.ts</h3>
|
|
3146
|
-
<section data-compodoc="block-properties">
|
|
3147
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
3148
|
-
<tbody>
|
|
3149
|
-
<tr>
|
|
3150
|
-
<td class="col-md-4">
|
|
3151
|
-
<a name="UX_COUNTRIES"></a>
|
|
3152
|
-
<span class="name">
|
|
3153
|
-
<span ><b>UX_COUNTRIES</b></span>
|
|
3154
|
-
<a href="#UX_COUNTRIES"><span class="icon ion-ios-link"></span></a>
|
|
3155
|
-
</span>
|
|
3156
|
-
</td>
|
|
3157
|
-
</tr>
|
|
3158
|
-
<tr>
|
|
3159
|
-
<td class="col-md-4">
|
|
3160
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
2470
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
3161
2471
|
|
|
3162
2472
|
</td>
|
|
3163
2473
|
</tr>
|
|
@@ -3422,16 +2732,16 @@
|
|
|
3422
2732
|
<tbody>
|
|
3423
2733
|
<tr>
|
|
3424
2734
|
<td class="col-md-4">
|
|
3425
|
-
<a name="
|
|
2735
|
+
<a name="EUI_TIMEZONES"></a>
|
|
3426
2736
|
<span class="name">
|
|
3427
|
-
<span ><b>
|
|
3428
|
-
<a href="#
|
|
2737
|
+
<span ><b>EUI_TIMEZONES</b></span>
|
|
2738
|
+
<a href="#EUI_TIMEZONES"><span class="icon ion-ios-link"></span></a>
|
|
3429
2739
|
</span>
|
|
3430
2740
|
</td>
|
|
3431
2741
|
</tr>
|
|
3432
2742
|
<tr>
|
|
3433
2743
|
<td class="col-md-4">
|
|
3434
|
-
<i>Type : </i> <code><a href="../interfaces/
|
|
2744
|
+
<i>Type : </i> <code><a href="../interfaces/EuiTimeZone.html" target="_self" >EuiTimeZone[]</a></code>
|
|
3435
2745
|
|
|
3436
2746
|
</td>
|
|
3437
2747
|
</tr>
|
|
@@ -3875,6 +3185,696 @@
|
|
|
3875
3185
|
</tr>
|
|
3876
3186
|
|
|
3877
3187
|
|
|
3188
|
+
</tbody>
|
|
3189
|
+
</table>
|
|
3190
|
+
</section>
|
|
3191
|
+
<h3>packages/eui/packages/core/src/lib/services/app/eui-init-app.ts</h3>
|
|
3192
|
+
<section data-compodoc="block-properties">
|
|
3193
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3194
|
+
<tbody>
|
|
3195
|
+
<tr>
|
|
3196
|
+
<td class="col-md-4">
|
|
3197
|
+
<a name="euiInitApp"></a>
|
|
3198
|
+
<span class="name">
|
|
3199
|
+
<span ><b>euiInitApp</b></span>
|
|
3200
|
+
<a href="#euiInitApp"><span class="icon ion-ios-link"></span></a>
|
|
3201
|
+
</span>
|
|
3202
|
+
</td>
|
|
3203
|
+
</tr>
|
|
3204
|
+
<tr>
|
|
3205
|
+
<td class="col-md-4">
|
|
3206
|
+
<i>Default value : </i><code>(injector: Injector) => () =>
|
|
3207
|
+
new Promise((resolve) => {
|
|
3208
|
+
const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve(null));
|
|
3209
|
+
|
|
3210
|
+
locationInitialized.then(() => {
|
|
3211
|
+
const appConfig: EuiAppConfig = injector.get(CONFIG_TOKEN);
|
|
3212
|
+
// necessary config parameters
|
|
3213
|
+
let appVersion: string;
|
|
3214
|
+
if (appConfig && appConfig.versions && appConfig.versions.app) {
|
|
3215
|
+
appVersion = appConfig.versions.app;
|
|
3216
|
+
} else {
|
|
3217
|
+
appVersion = '0.0.0';
|
|
3218
|
+
}
|
|
3219
|
+
let storageType: BrowserStorageType;
|
|
3220
|
+
if (appConfig && appConfig.saveStateStorage) {
|
|
3221
|
+
storageType = appConfig.saveStateStorage;
|
|
3222
|
+
} else {
|
|
3223
|
+
storageType = BrowserStorageType.local;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
const storeService = injector.get(StoreService);
|
|
3227
|
+
storeService.init(appVersion, storageType);
|
|
3228
|
+
storeService.handleAutoSave();
|
|
3229
|
+
resolve(null);
|
|
3230
|
+
});
|
|
3231
|
+
})</code>
|
|
3232
|
+
</td>
|
|
3233
|
+
</tr>
|
|
3234
|
+
|
|
3235
|
+
|
|
3236
|
+
</tbody>
|
|
3237
|
+
</table>
|
|
3238
|
+
</section>
|
|
3239
|
+
<h3>packages/eui/packages/core/src/lib/helpers/format-helpers.ts</h3>
|
|
3240
|
+
<section data-compodoc="block-properties">
|
|
3241
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3242
|
+
<tbody>
|
|
3243
|
+
<tr>
|
|
3244
|
+
<td class="col-md-4">
|
|
3245
|
+
<a name="formatNumber"></a>
|
|
3246
|
+
<span class="name">
|
|
3247
|
+
<span ><b>formatNumber</b></span>
|
|
3248
|
+
<a href="#formatNumber"><span class="icon ion-ios-link"></span></a>
|
|
3249
|
+
</span>
|
|
3250
|
+
</td>
|
|
3251
|
+
</tr>
|
|
3252
|
+
<tr>
|
|
3253
|
+
<td class="col-md-4">
|
|
3254
|
+
<i>Default value : </i><code>(
|
|
3255
|
+
value: number | string,
|
|
3256
|
+
fractionSize: number = 2,
|
|
3257
|
+
inDecimalSeparator: string = ',',
|
|
3258
|
+
inThousandSeparator: string = ''
|
|
3259
|
+
): string => {
|
|
3260
|
+
if (inDecimalSeparator || inThousandSeparator) {
|
|
3261
|
+
console.warn(
|
|
3262
|
+
'The inDecimalSeparator and inThousandSeparator are deprecated. They will be a ' +
|
|
3263
|
+
'BREAKING CHANGE for eUI 9 and be replaced by localization strategy.'
|
|
3264
|
+
);
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
let decimalSeparator = '';
|
|
3268
|
+
let thousandsSeparator = '';
|
|
3269
|
+
|
|
3270
|
+
if (value === null || value === undefined) {
|
|
3271
|
+
return null;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
if (typeof value === 'string') {
|
|
3275
|
+
// get all non characters
|
|
3276
|
+
let nonChars: string[] = value.match(/[^0-9]+/g) || [];
|
|
3277
|
+
|
|
3278
|
+
// get all unique chars
|
|
3279
|
+
let uniqueChars = nonChars.reduce((acc, e) => acc.set(e, (acc.get(e) || 0) + 1), new Map());
|
|
3280
|
+
|
|
3281
|
+
// get separators
|
|
3282
|
+
let separators = Array.from<string>(uniqueChars.keys());
|
|
3283
|
+
|
|
3284
|
+
// sense where decimal separator and where thousand separator is
|
|
3285
|
+
if (separators.length > 1) {
|
|
3286
|
+
// left detected separator will be thousand and second will be decimal
|
|
3287
|
+
thousandsSeparator = separators[0];
|
|
3288
|
+
decimalSeparator = separators[1];
|
|
3289
|
+
} else if (separators.length > 0) {
|
|
3290
|
+
// in case there is only one separator you don't know exactly who this separator is.
|
|
3291
|
+
// in case there are more than two occurrences means we have a thousand otherwise we'll
|
|
3292
|
+
// agree by conventions that is decimal
|
|
3293
|
+
if (nonChars.length > 1) {
|
|
3294
|
+
return value
|
|
3295
|
+
.split(separators[0])
|
|
3296
|
+
.join('')
|
|
3297
|
+
.replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator);
|
|
3298
|
+
} else {
|
|
3299
|
+
return value.replace(separators[0], inDecimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator);
|
|
3300
|
+
}
|
|
3301
|
+
} else {
|
|
3302
|
+
// in case there are no separators then only format based on thousand one
|
|
3303
|
+
return value.replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator);
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
// do the replacement of separators and parseInt
|
|
3307
|
+
// Beware! Always replace thousand separator first and then decimal
|
|
3308
|
+
value = value.split(thousandsSeparator).join('').replace(decimalSeparator, '.');
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
decimalSeparator = inDecimalSeparator;
|
|
3312
|
+
thousandsSeparator = inThousandSeparator;
|
|
3313
|
+
|
|
3314
|
+
const maxFraction = '0'.repeat(fractionSize);
|
|
3315
|
+
|
|
3316
|
+
let [integer, fraction = maxFraction] = (value || '0').toString().split('.');
|
|
3317
|
+
fraction = fractionSize > 0 ? (fraction + maxFraction).substring(0, fractionSize) : '';
|
|
3318
|
+
|
|
3319
|
+
// this rule makes sense only in number in case fraction is all zero
|
|
3320
|
+
fraction = typeof value === 'number' && fraction === maxFraction ? '' : decimalSeparator + fraction;
|
|
3321
|
+
|
|
3322
|
+
return integer.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) + fraction;
|
|
3323
|
+
}</code>
|
|
3324
|
+
</td>
|
|
3325
|
+
</tr>
|
|
3326
|
+
|
|
3327
|
+
<tr>
|
|
3328
|
+
<td class="col-md-4">
|
|
3329
|
+
<div class="io-description"><p>Its job is to parse number and format it based on given input.</p>
|
|
3330
|
+
</div>
|
|
3331
|
+
</td>
|
|
3332
|
+
</tr>
|
|
3333
|
+
|
|
3334
|
+
</tbody>
|
|
3335
|
+
</table>
|
|
3336
|
+
<table class="table table-sm table-bordered">
|
|
3337
|
+
<tbody>
|
|
3338
|
+
<tr>
|
|
3339
|
+
<td class="col-md-4">
|
|
3340
|
+
<a name="uniqueId"></a>
|
|
3341
|
+
<span class="name">
|
|
3342
|
+
<span ><b>uniqueId</b></span>
|
|
3343
|
+
<a href="#uniqueId"><span class="icon ion-ios-link"></span></a>
|
|
3344
|
+
</span>
|
|
3345
|
+
</td>
|
|
3346
|
+
</tr>
|
|
3347
|
+
<tr>
|
|
3348
|
+
<td class="col-md-4">
|
|
3349
|
+
<i>Default value : </i><code>(): string => Math.random().toString(36).substr(2, 9)</code>
|
|
3350
|
+
</td>
|
|
3351
|
+
</tr>
|
|
3352
|
+
|
|
3353
|
+
<tr>
|
|
3354
|
+
<td class="col-md-4">
|
|
3355
|
+
<div class="io-description"><p>returns a random string with radix=36</p>
|
|
3356
|
+
</div>
|
|
3357
|
+
</td>
|
|
3358
|
+
</tr>
|
|
3359
|
+
|
|
3360
|
+
</tbody>
|
|
3361
|
+
</table>
|
|
3362
|
+
</section>
|
|
3363
|
+
<h3>packages/eui/packages/core/src/lib/helpers/form-helpers.ts</h3>
|
|
3364
|
+
<section data-compodoc="block-properties">
|
|
3365
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3366
|
+
<tbody>
|
|
3367
|
+
<tr>
|
|
3368
|
+
<td class="col-md-4">
|
|
3369
|
+
<a name="forOwn"></a>
|
|
3370
|
+
<span class="name">
|
|
3371
|
+
<span ><b>forOwn</b></span>
|
|
3372
|
+
<a href="#forOwn"><span class="icon ion-ios-link"></span></a>
|
|
3373
|
+
</span>
|
|
3374
|
+
</td>
|
|
3375
|
+
</tr>
|
|
3376
|
+
<tr>
|
|
3377
|
+
<td class="col-md-4">
|
|
3378
|
+
<i>Default value : </i><code>(object, iteratee) => {
|
|
3379
|
+
object = Object(object);
|
|
3380
|
+
Object.keys(object).forEach((key) => iteratee(object[key], key, object));
|
|
3381
|
+
}</code>
|
|
3382
|
+
</td>
|
|
3383
|
+
</tr>
|
|
3384
|
+
|
|
3385
|
+
|
|
3386
|
+
</tbody>
|
|
3387
|
+
</table>
|
|
3388
|
+
<table class="table table-sm table-bordered">
|
|
3389
|
+
<tbody>
|
|
3390
|
+
<tr>
|
|
3391
|
+
<td class="col-md-4">
|
|
3392
|
+
<a name="markControlsTouched"></a>
|
|
3393
|
+
<span class="name">
|
|
3394
|
+
<span ><b>markControlsTouched</b></span>
|
|
3395
|
+
<a href="#markControlsTouched"><span class="icon ion-ios-link"></span></a>
|
|
3396
|
+
</span>
|
|
3397
|
+
</td>
|
|
3398
|
+
</tr>
|
|
3399
|
+
<tr>
|
|
3400
|
+
<td class="col-md-4">
|
|
3401
|
+
<i>Default value : </i><code>(group: FormGroup | FormArray): void => {
|
|
3402
|
+
Object.keys(group.controls).forEach((key: string) => {
|
|
3403
|
+
const abstractControl = group.controls[key];
|
|
3404
|
+
if (abstractControl instanceof FormGroup || abstractControl instanceof FormArray) {
|
|
3405
|
+
markControlsTouched(abstractControl);
|
|
3406
|
+
} else {
|
|
3407
|
+
abstractControl.markAsTouched();
|
|
3408
|
+
}
|
|
3409
|
+
});
|
|
3410
|
+
}</code>
|
|
3411
|
+
</td>
|
|
3412
|
+
</tr>
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
</tbody>
|
|
3416
|
+
</table>
|
|
3417
|
+
<table class="table table-sm table-bordered">
|
|
3418
|
+
<tbody>
|
|
3419
|
+
<tr>
|
|
3420
|
+
<td class="col-md-4">
|
|
3421
|
+
<a name="markFormGroupTouched"></a>
|
|
3422
|
+
<span class="name">
|
|
3423
|
+
<span ><b>markFormGroupTouched</b></span>
|
|
3424
|
+
<a href="#markFormGroupTouched"><span class="icon ion-ios-link"></span></a>
|
|
3425
|
+
</span>
|
|
3426
|
+
</td>
|
|
3427
|
+
</tr>
|
|
3428
|
+
<tr>
|
|
3429
|
+
<td class="col-md-4">
|
|
3430
|
+
<i>Default value : </i><code>(FormControls: { [key: string]: AbstractControl } | AbstractControl[]): void => {
|
|
3431
|
+
const markFormGroupTouchedRecursive = (controls: { [key: string]: AbstractControl } | AbstractControl[]): void => {
|
|
3432
|
+
forOwn(controls, (c) => {
|
|
3433
|
+
if (c instanceof FormGroup || c instanceof FormArray) {
|
|
3434
|
+
markFormGroupTouchedRecursive(c.controls);
|
|
3435
|
+
} else {
|
|
3436
|
+
c.markAsTouched();
|
|
3437
|
+
c.updateValueAndValidity();
|
|
3438
|
+
}
|
|
3439
|
+
});
|
|
3440
|
+
};
|
|
3441
|
+
markFormGroupTouchedRecursive(FormControls);
|
|
3442
|
+
}</code>
|
|
3443
|
+
</td>
|
|
3444
|
+
</tr>
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
</tbody>
|
|
3448
|
+
</table>
|
|
3449
|
+
<table class="table table-sm table-bordered">
|
|
3450
|
+
<tbody>
|
|
3451
|
+
<tr>
|
|
3452
|
+
<td class="col-md-4">
|
|
3453
|
+
<a name="validateEmail"></a>
|
|
3454
|
+
<span class="name">
|
|
3455
|
+
<span ><b>validateEmail</b></span>
|
|
3456
|
+
<a href="#validateEmail"><span class="icon ion-ios-link"></span></a>
|
|
3457
|
+
</span>
|
|
3458
|
+
</td>
|
|
3459
|
+
</tr>
|
|
3460
|
+
<tr>
|
|
3461
|
+
<td class="col-md-4">
|
|
3462
|
+
<i>Default value : </i><code>(c: FormControl) => {
|
|
3463
|
+
const EMAIL_REGEXP =
|
|
3464
|
+
// eslint-disable-next-line max-len, no-useless-escape
|
|
3465
|
+
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
3466
|
+
|
|
3467
|
+
const error = {
|
|
3468
|
+
validateEmail: {
|
|
3469
|
+
valid: false,
|
|
3470
|
+
},
|
|
3471
|
+
};
|
|
3472
|
+
return EMAIL_REGEXP.test(c.value) ? null : error;
|
|
3473
|
+
}</code>
|
|
3474
|
+
</td>
|
|
3475
|
+
</tr>
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
</tbody>
|
|
3479
|
+
</table>
|
|
3480
|
+
</section>
|
|
3481
|
+
<h3>packages/eui/packages/core/src/lib/mocks/store.mock.ts</h3>
|
|
3482
|
+
<section data-compodoc="block-properties">
|
|
3483
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3484
|
+
<tbody>
|
|
3485
|
+
<tr>
|
|
3486
|
+
<td class="col-md-4">
|
|
3487
|
+
<a name="globalState"></a>
|
|
3488
|
+
<span class="name">
|
|
3489
|
+
<span ><b>globalState</b></span>
|
|
3490
|
+
<a href="#globalState"><span class="icon ion-ios-link"></span></a>
|
|
3491
|
+
</span>
|
|
3492
|
+
</td>
|
|
3493
|
+
</tr>
|
|
3494
|
+
<tr>
|
|
3495
|
+
<td class="col-md-4">
|
|
3496
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
3497
|
+
|
|
3498
|
+
</td>
|
|
3499
|
+
</tr>
|
|
3500
|
+
<tr>
|
|
3501
|
+
<td class="col-md-4">
|
|
3502
|
+
<i>Default value : </i><code>{
|
|
3503
|
+
dashboard: {},
|
|
3504
|
+
preferences: {
|
|
3505
|
+
dashboard: {},
|
|
3506
|
+
},
|
|
3507
|
+
}</code>
|
|
3508
|
+
</td>
|
|
3509
|
+
</tr>
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
</tbody>
|
|
3513
|
+
</table>
|
|
3514
|
+
<table class="table table-sm table-bordered">
|
|
3515
|
+
<tbody>
|
|
3516
|
+
<tr>
|
|
3517
|
+
<td class="col-md-4">
|
|
3518
|
+
<a name="storeMockInjector"></a>
|
|
3519
|
+
<span class="name">
|
|
3520
|
+
<span ><b>storeMockInjector</b></span>
|
|
3521
|
+
<a href="#storeMockInjector"><span class="icon ion-ios-link"></span></a>
|
|
3522
|
+
</span>
|
|
3523
|
+
</td>
|
|
3524
|
+
</tr>
|
|
3525
|
+
<tr>
|
|
3526
|
+
<td class="col-md-4">
|
|
3527
|
+
<i>Default value : </i><code>(state) => {
|
|
3528
|
+
globalState = state;
|
|
3529
|
+
return StoreMock;
|
|
3530
|
+
}</code>
|
|
3531
|
+
</td>
|
|
3532
|
+
</tr>
|
|
3533
|
+
|
|
3534
|
+
|
|
3535
|
+
</tbody>
|
|
3536
|
+
</table>
|
|
3537
|
+
</section>
|
|
3538
|
+
<h3>packages/eui/packages/core/src/lib/helpers/http-helpers.ts</h3>
|
|
3539
|
+
<section data-compodoc="block-properties">
|
|
3540
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3541
|
+
<tbody>
|
|
3542
|
+
<tr>
|
|
3543
|
+
<td class="col-md-4">
|
|
3544
|
+
<a name="handleError"></a>
|
|
3545
|
+
<span class="name">
|
|
3546
|
+
<span ><b>handleError</b></span>
|
|
3547
|
+
<a href="#handleError"><span class="icon ion-ios-link"></span></a>
|
|
3548
|
+
</span>
|
|
3549
|
+
</td>
|
|
3550
|
+
</tr>
|
|
3551
|
+
<tr>
|
|
3552
|
+
<td class="col-md-4">
|
|
3553
|
+
<i>Default value : </i><code>(error: any): Observable<never> => {
|
|
3554
|
+
let errMsg = error.message ? error.message : error.status ? `${error.status} - ${error.statusText}` : 'Server error';
|
|
3555
|
+
// console.error(errMsg);
|
|
3556
|
+
return throwError(errMsg);
|
|
3557
|
+
}</code>
|
|
3558
|
+
</td>
|
|
3559
|
+
</tr>
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
</tbody>
|
|
3563
|
+
</table>
|
|
3564
|
+
</section>
|
|
3565
|
+
<h3>packages/eui/packages/core/src/lib/services/ux-app-shell.service.ts</h3>
|
|
3566
|
+
<section data-compodoc="block-properties">
|
|
3567
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3568
|
+
<tbody>
|
|
3569
|
+
<tr>
|
|
3570
|
+
<td class="col-md-4">
|
|
3571
|
+
<a name="initialState"></a>
|
|
3572
|
+
<span class="name">
|
|
3573
|
+
<span ><b>initialState</b></span>
|
|
3574
|
+
<a href="#initialState"><span class="icon ion-ios-link"></span></a>
|
|
3575
|
+
</span>
|
|
3576
|
+
</td>
|
|
3577
|
+
</tr>
|
|
3578
|
+
<tr>
|
|
3579
|
+
<td class="col-md-4">
|
|
3580
|
+
<i>Type : </i> <code><a href="../interfaces/UIState.html" target="_self" >UIState</a></code>
|
|
3581
|
+
|
|
3582
|
+
</td>
|
|
3583
|
+
</tr>
|
|
3584
|
+
<tr>
|
|
3585
|
+
<td class="col-md-4">
|
|
3586
|
+
<i>Default value : </i><code>{
|
|
3587
|
+
appName: '',
|
|
3588
|
+
appShortName: '',
|
|
3589
|
+
appSubTitle: '',
|
|
3590
|
+
userInfos: null,
|
|
3591
|
+
userSubInfos: null,
|
|
3592
|
+
impersonatedUserInfos: null,
|
|
3593
|
+
isSidebarOpen: true,
|
|
3594
|
+
isSidebarHover: false,
|
|
3595
|
+
isSidebarActive: false,
|
|
3596
|
+
isSidebarInnerActive: false,
|
|
3597
|
+
isSidebarStateCloseWithIcons: false,
|
|
3598
|
+
isSidebarExpandOnHover: true,
|
|
3599
|
+
hasSidebar: false,
|
|
3600
|
+
hasHeader: false,
|
|
3601
|
+
hasBreadcrumb: false,
|
|
3602
|
+
hasHeaderLogo: false,
|
|
3603
|
+
hasHeaderEnvironment: false,
|
|
3604
|
+
hasToolbar: false,
|
|
3605
|
+
hasToolbarMenu: false,
|
|
3606
|
+
environmentValue: '',
|
|
3607
|
+
isSidebarHidden: false,
|
|
3608
|
+
hasTopMessage: false,
|
|
3609
|
+
windowWidth: 0,
|
|
3610
|
+
windowHeight: 0,
|
|
3611
|
+
mainContentHeight: 0,
|
|
3612
|
+
pageHeaderHeight: 0,
|
|
3613
|
+
wrapperClasses: '',
|
|
3614
|
+
breakpoint: '',
|
|
3615
|
+
breakpoints: {
|
|
3616
|
+
isMobile: false,
|
|
3617
|
+
isTablet: false,
|
|
3618
|
+
isLtDesktop: false,
|
|
3619
|
+
isDesktop: false,
|
|
3620
|
+
isXL: false,
|
|
3621
|
+
isXXL: false,
|
|
3622
|
+
},
|
|
3623
|
+
menuLinks: [],
|
|
3624
|
+
sidebarLinks: [],
|
|
3625
|
+
combinedLinks: [],
|
|
3626
|
+
isBlockDocumentActive: false,
|
|
3627
|
+
deviceInfo: null,
|
|
3628
|
+
activeLanguage: 'en',
|
|
3629
|
+
languages: EuiEuLanguages.getLanguages(),
|
|
3630
|
+
appMetadata: null,
|
|
3631
|
+
hasModalActive: false,
|
|
3632
|
+
isDimmerActive: false,
|
|
3633
|
+
}</code>
|
|
3634
|
+
</td>
|
|
3635
|
+
</tr>
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
</tbody>
|
|
3639
|
+
</table>
|
|
3640
|
+
</section>
|
|
3641
|
+
<h3>packages/eui/packages/core/src/lib/helpers/utils.ts</h3>
|
|
3642
|
+
<section data-compodoc="block-properties">
|
|
3643
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3644
|
+
<tbody>
|
|
3645
|
+
<tr>
|
|
3646
|
+
<td class="col-md-4">
|
|
3647
|
+
<a name="isDefined"></a>
|
|
3648
|
+
<span class="name">
|
|
3649
|
+
<span ><b>isDefined</b></span>
|
|
3650
|
+
<a href="#isDefined"><span class="icon ion-ios-link"></span></a>
|
|
3651
|
+
</span>
|
|
3652
|
+
</td>
|
|
3653
|
+
</tr>
|
|
3654
|
+
<tr>
|
|
3655
|
+
<td class="col-md-4">
|
|
3656
|
+
<i>Default value : </i><code><T>(value: T | undefined | null): value is T => <T>value !== undefined && <T>value !== null</code>
|
|
3657
|
+
</td>
|
|
3658
|
+
</tr>
|
|
3659
|
+
|
|
3660
|
+
<tr>
|
|
3661
|
+
<td class="col-md-4">
|
|
3662
|
+
<div class="io-description"><p>check if a value is null or undefined. If it's not both returns true otherwise false</p>
|
|
3663
|
+
</div>
|
|
3664
|
+
</td>
|
|
3665
|
+
</tr>
|
|
3666
|
+
|
|
3667
|
+
</tbody>
|
|
3668
|
+
</table>
|
|
3669
|
+
</section>
|
|
3670
|
+
<h3>packages/eui/packages/core/src/lib/interceptors/add-lang-param.interceptor.ts</h3>
|
|
3671
|
+
<section data-compodoc="block-properties">
|
|
3672
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3673
|
+
<tbody>
|
|
3674
|
+
<tr>
|
|
3675
|
+
<td class="col-md-4">
|
|
3676
|
+
<a name="LANG_PARAM_KEY"></a>
|
|
3677
|
+
<span class="name">
|
|
3678
|
+
<span ><b>LANG_PARAM_KEY</b></span>
|
|
3679
|
+
<a href="#LANG_PARAM_KEY"><span class="icon ion-ios-link"></span></a>
|
|
3680
|
+
</span>
|
|
3681
|
+
</td>
|
|
3682
|
+
</tr>
|
|
3683
|
+
<tr>
|
|
3684
|
+
<td class="col-md-4">
|
|
3685
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
3686
|
+
|
|
3687
|
+
</td>
|
|
3688
|
+
</tr>
|
|
3689
|
+
<tr>
|
|
3690
|
+
<td class="col-md-4">
|
|
3691
|
+
<i>Default value : </i><code>'X-Lang-Param'</code>
|
|
3692
|
+
</td>
|
|
3693
|
+
</tr>
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
</tbody>
|
|
3697
|
+
</table>
|
|
3698
|
+
</section>
|
|
3699
|
+
<h3>packages/eui/packages/core/src/lib/services/storage/local-forage.service.ts</h3>
|
|
3700
|
+
<section data-compodoc="block-properties">
|
|
3701
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3702
|
+
<tbody>
|
|
3703
|
+
<tr>
|
|
3704
|
+
<td class="col-md-4">
|
|
3705
|
+
<a name="LOCAL_FORAGE_SERVICE_CONFIG_TOKEN"></a>
|
|
3706
|
+
<span class="name">
|
|
3707
|
+
<span ><b>LOCAL_FORAGE_SERVICE_CONFIG_TOKEN</b></span>
|
|
3708
|
+
<a href="#LOCAL_FORAGE_SERVICE_CONFIG_TOKEN"><span class="icon ion-ios-link"></span></a>
|
|
3709
|
+
</span>
|
|
3710
|
+
</td>
|
|
3711
|
+
</tr>
|
|
3712
|
+
<tr>
|
|
3713
|
+
<td class="col-md-4">
|
|
3714
|
+
<i>Default value : </i><code>new InjectionToken<any>('LOCAL_FORAGE_SERVICE_CONFIG')</code>
|
|
3715
|
+
</td>
|
|
3716
|
+
</tr>
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
</tbody>
|
|
3720
|
+
</table>
|
|
3721
|
+
<table class="table table-sm table-bordered">
|
|
3722
|
+
<tbody>
|
|
3723
|
+
<tr>
|
|
3724
|
+
<td class="col-md-4">
|
|
3725
|
+
<a name="localForage"></a>
|
|
3726
|
+
<span class="name">
|
|
3727
|
+
<span ><b>localForage</b></span>
|
|
3728
|
+
<a href="#localForage"><span class="icon ion-ios-link"></span></a>
|
|
3729
|
+
</span>
|
|
3730
|
+
</td>
|
|
3731
|
+
</tr>
|
|
3732
|
+
<tr>
|
|
3733
|
+
<td class="col-md-4">
|
|
3734
|
+
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
3735
|
+
|
|
3736
|
+
</td>
|
|
3737
|
+
</tr>
|
|
3738
|
+
<tr>
|
|
3739
|
+
<td class="col-md-4">
|
|
3740
|
+
<i>Default value : </i><code>'defineDriver' in lf ? lf : lf['default']</code>
|
|
3741
|
+
</td>
|
|
3742
|
+
</tr>
|
|
3743
|
+
|
|
3744
|
+
|
|
3745
|
+
</tbody>
|
|
3746
|
+
</table>
|
|
3747
|
+
</section>
|
|
3748
|
+
<h3>packages/eui/packages/core/src/lib/services/locale/locale.service.ts</h3>
|
|
3749
|
+
<section data-compodoc="block-properties">
|
|
3750
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3751
|
+
<tbody>
|
|
3752
|
+
<tr>
|
|
3753
|
+
<td class="col-md-4">
|
|
3754
|
+
<a name="LOCALE_ID_MAPPER"></a>
|
|
3755
|
+
<span class="name">
|
|
3756
|
+
<span ><b>LOCALE_ID_MAPPER</b></span>
|
|
3757
|
+
<a href="#LOCALE_ID_MAPPER"><span class="icon ion-ios-link"></span></a>
|
|
3758
|
+
</span>
|
|
3759
|
+
</td>
|
|
3760
|
+
</tr>
|
|
3761
|
+
<tr>
|
|
3762
|
+
<td class="col-md-4">
|
|
3763
|
+
<i>Default value : </i><code>new InjectionToken<LocaleMapper>('localeIdMapper')</code>
|
|
3764
|
+
</td>
|
|
3765
|
+
</tr>
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
</tbody>
|
|
3769
|
+
</table>
|
|
3770
|
+
</section>
|
|
3771
|
+
<h3>packages/eui/packages/core/src/lib/services/app/factories/log.ts</h3>
|
|
3772
|
+
<section data-compodoc="block-properties">
|
|
3773
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3774
|
+
<tbody>
|
|
3775
|
+
<tr>
|
|
3776
|
+
<td class="col-md-4">
|
|
3777
|
+
<a name="LOG_INSTANCES"></a>
|
|
3778
|
+
<span class="name">
|
|
3779
|
+
<span ><b>LOG_INSTANCES</b></span>
|
|
3780
|
+
<a href="#LOG_INSTANCES"><span class="icon ion-ios-link"></span></a>
|
|
3781
|
+
</span>
|
|
3782
|
+
</td>
|
|
3783
|
+
</tr>
|
|
3784
|
+
<tr>
|
|
3785
|
+
<td class="col-md-4">
|
|
3786
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
3787
|
+
|
|
3788
|
+
</td>
|
|
3789
|
+
</tr>
|
|
3790
|
+
<tr>
|
|
3791
|
+
<td class="col-md-4">
|
|
3792
|
+
<i>Default value : </i><code>{}</code>
|
|
3793
|
+
</td>
|
|
3794
|
+
</tr>
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
</tbody>
|
|
3798
|
+
</table>
|
|
3799
|
+
</section>
|
|
3800
|
+
<h3>packages/eui/packages/core/src/lib/services/log/log.module.ts</h3>
|
|
3801
|
+
<section data-compodoc="block-properties">
|
|
3802
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3803
|
+
<tbody>
|
|
3804
|
+
<tr>
|
|
3805
|
+
<td class="col-md-4">
|
|
3806
|
+
<a name="LOG_MODULE_CONFIG_TOKEN"></a>
|
|
3807
|
+
<span class="name">
|
|
3808
|
+
<span ><b>LOG_MODULE_CONFIG_TOKEN</b></span>
|
|
3809
|
+
<a href="#LOG_MODULE_CONFIG_TOKEN"><span class="icon ion-ios-link"></span></a>
|
|
3810
|
+
</span>
|
|
3811
|
+
</td>
|
|
3812
|
+
</tr>
|
|
3813
|
+
<tr>
|
|
3814
|
+
<td class="col-md-4">
|
|
3815
|
+
<i>Default value : </i><code>new InjectionToken<LogConfig>('LOG_CONFIG')</code>
|
|
3816
|
+
</td>
|
|
3817
|
+
</tr>
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
</tbody>
|
|
3821
|
+
</table>
|
|
3822
|
+
</section>
|
|
3823
|
+
<h3>packages/eui/packages/core/src/lib/interceptors/openid/openid-connect.interceptor.ts</h3>
|
|
3824
|
+
<section data-compodoc="block-properties">
|
|
3825
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3826
|
+
<tbody>
|
|
3827
|
+
<tr>
|
|
3828
|
+
<td class="col-md-4">
|
|
3829
|
+
<a name="OpenIdConnect"></a>
|
|
3830
|
+
<span class="name">
|
|
3831
|
+
<span ><b>OpenIdConnect</b></span>
|
|
3832
|
+
<a href="#OpenIdConnect"><span class="icon ion-ios-link"></span></a>
|
|
3833
|
+
</span>
|
|
3834
|
+
</td>
|
|
3835
|
+
</tr>
|
|
3836
|
+
<tr>
|
|
3837
|
+
<td class="col-md-4">
|
|
3838
|
+
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
3839
|
+
|
|
3840
|
+
</td>
|
|
3841
|
+
</tr>
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
</tbody>
|
|
3845
|
+
</table>
|
|
3846
|
+
</section>
|
|
3847
|
+
<h3>packages/eui/packages/core/src/lib/services/i18n/i18n.loader.ts</h3>
|
|
3848
|
+
<section data-compodoc="block-properties">
|
|
3849
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
3850
|
+
<tbody>
|
|
3851
|
+
<tr>
|
|
3852
|
+
<td class="col-md-4">
|
|
3853
|
+
<a name="translateConfig"></a>
|
|
3854
|
+
<span class="name">
|
|
3855
|
+
<span ><b>translateConfig</b></span>
|
|
3856
|
+
<a href="#translateConfig"><span class="icon ion-ios-link"></span></a>
|
|
3857
|
+
</span>
|
|
3858
|
+
</td>
|
|
3859
|
+
</tr>
|
|
3860
|
+
<tr>
|
|
3861
|
+
<td class="col-md-4">
|
|
3862
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
3863
|
+
|
|
3864
|
+
</td>
|
|
3865
|
+
</tr>
|
|
3866
|
+
<tr>
|
|
3867
|
+
<td class="col-md-4">
|
|
3868
|
+
<i>Default value : </i><code>{
|
|
3869
|
+
loader: {
|
|
3870
|
+
provide: TranslateLoader,
|
|
3871
|
+
useClass: I18nLoader,
|
|
3872
|
+
},
|
|
3873
|
+
}</code>
|
|
3874
|
+
</td>
|
|
3875
|
+
</tr>
|
|
3876
|
+
|
|
3877
|
+
|
|
3878
3878
|
</tbody>
|
|
3879
3879
|
</table>
|
|
3880
3880
|
</section>
|