@eui/components 18.0.0-next.25 → 18.0.0-next.26
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/components/EuiLanguageSelectorComponent.html +1 -1
- package/docs/components/EuiModalSelectorComponent.html +1 -5
- package/docs/dependencies.html +1 -1
- package/docs/js/menu-wc.js +33 -33
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +1 -2
- package/docs/modules/EuiAllModule.html +6 -0
- package/docs/modules/EuiAppModule.html +6 -0
- package/docs/modules/EuiLanguageSelectorModule.html +1 -1
- package/docs/modules/EuiLayoutModule.html +6 -0
- package/esm2022/eui-all/eui-all.module.mjs +9 -4
- package/esm2022/eui-language-selector/eui-components-eui-language-selector.mjs +5 -0
- package/esm2022/eui-language-selector/index.mjs +4 -0
- package/esm2022/{layout/eui-language-selector → eui-language-selector}/language-selector.component.mjs +1 -1
- package/esm2022/eui-language-selector/language-selector.module.mjs +23 -0
- package/esm2022/eui-language-selector/modal-selector/modal-selector.component.mjs +58 -0
- package/esm2022/layout/eui-app/eui-app-header/header.module.mjs +2 -2
- package/esm2022/layout/eui-app/eui-app-toolbar/toolbar.component.mjs +1 -1
- package/esm2022/layout/eui-app/eui-app-toolbar/toolbar.module.mjs +2 -2
- package/esm2022/layout/eui-app/eui-app.module.mjs +1 -6
- package/esm2022/layout/eui-header/header.component.mjs +1 -1
- package/esm2022/layout/eui-header/header.module.mjs +2 -2
- package/esm2022/layout/eui-layout.module.mjs +1 -6
- package/esm2022/layout/eui-toolbar/toolbar.component.mjs +2 -2
- package/esm2022/layout/eui-toolbar/toolbar.module.mjs +2 -2
- package/esm2022/layout/index.mjs +1 -2
- package/eui-all/eui-all.module.d.ts +2 -1
- package/eui-all/eui-all.module.d.ts.map +1 -1
- package/eui-language-selector/eui-components-eui-language-selector.d.ts.map +1 -0
- package/eui-language-selector/index.d.ts +4 -0
- package/eui-language-selector/index.d.ts.map +1 -0
- package/eui-language-selector/language-selector.component.d.ts.map +1 -0
- package/eui-language-selector/language-selector.module.d.ts.map +1 -0
- package/eui-language-selector/modal-selector/modal-selector.component.d.ts.map +1 -0
- package/eui-language-selector/package.json +3 -0
- package/fesm2022/eui-components-eui-language-selector.mjs +214 -0
- package/fesm2022/eui-components-eui-language-selector.mjs.map +7 -0
- package/fesm2022/eui-components-layout.mjs +914 -1126
- package/fesm2022/eui-components-layout.mjs.map +4 -4
- package/fesm2022/eui-components.mjs +9 -4
- package/fesm2022/eui-components.mjs.map +2 -2
- package/layout/eui-app/eui-app-header/header.module.d.ts +1 -1
- package/layout/eui-app/eui-app-toolbar/toolbar.module.d.ts +1 -1
- package/layout/eui-app/eui-app.module.d.ts +12 -13
- package/layout/eui-app/eui-app.module.d.ts.map +1 -1
- package/layout/eui-header/header.module.d.ts +1 -1
- package/layout/eui-layout.module.d.ts +4 -5
- package/layout/eui-layout.module.d.ts.map +1 -1
- package/layout/eui-toolbar/toolbar.component.d.ts +1 -1
- package/layout/eui-toolbar/toolbar.component.d.ts.map +1 -1
- package/layout/eui-toolbar/toolbar.module.d.ts +1 -1
- package/layout/index.d.ts +0 -1
- package/layout/index.d.ts.map +1 -1
- package/package.json +9 -3
- package/esm2022/layout/eui-language-selector/index.mjs +0 -3
- package/esm2022/layout/eui-language-selector/language-selector.module.mjs +0 -23
- package/esm2022/layout/eui-language-selector/modal-selector/modal-selector.component.mjs +0 -58
- package/layout/eui-language-selector/index.d.ts +0 -3
- package/layout/eui-language-selector/index.d.ts.map +0 -1
- package/layout/eui-language-selector/language-selector.component.d.ts.map +0 -1
- package/layout/eui-language-selector/language-selector.module.d.ts.map +0 -1
- package/layout/eui-language-selector/modal-selector/modal-selector.component.d.ts.map +0 -1
- /package/{layout/eui-language-selector → eui-language-selector}/language-selector.component.d.ts +0 -0
- /package/{layout/eui-language-selector → eui-language-selector}/language-selector.module.d.ts +0 -0
- /package/{layout/eui-language-selector → eui-language-selector}/modal-selector/modal-selector.component.d.ts +0 -0
@@ -9,7 +9,6 @@ import { EuiSidebarToggleModule } from './eui-sidebar-toggle/sidebar-toggle.modu
|
|
9
9
|
import { EuiToolbarModule } from './eui-toolbar/toolbar.module';
|
10
10
|
import { EuiFooterModule } from './eui-footer/footer.module';
|
11
11
|
import { EuiHeaderModule } from './eui-header/header.module';
|
12
|
-
import { EuiLanguageSelectorModule } from './eui-language-selector/language-selector.module';
|
13
12
|
import { EuiUserProfileModule } from './eui-user-profile/user-profile.module';
|
14
13
|
import { EuiSearchModule } from './eui-search/search.module';
|
15
14
|
import * as i0 from "@angular/core";
|
@@ -21,7 +20,6 @@ const MODULES = [
|
|
21
20
|
EuiHeaderModule,
|
22
21
|
EuiFooterModule,
|
23
22
|
EuiBreadcrumbModule,
|
24
|
-
EuiLanguageSelectorModule,
|
25
23
|
EuiSearchModule,
|
26
24
|
EuiUserProfileModule,
|
27
25
|
EuiSidebarToggleModule,
|
@@ -35,7 +33,6 @@ export class EuiLayoutModule {
|
|
35
33
|
EuiHeaderModule,
|
36
34
|
EuiFooterModule,
|
37
35
|
EuiBreadcrumbModule,
|
38
|
-
EuiLanguageSelectorModule,
|
39
36
|
EuiSearchModule,
|
40
37
|
EuiUserProfileModule,
|
41
38
|
EuiSidebarToggleModule], exports: [EuiAppModule,
|
@@ -45,7 +42,6 @@ export class EuiLayoutModule {
|
|
45
42
|
EuiHeaderModule,
|
46
43
|
EuiFooterModule,
|
47
44
|
EuiBreadcrumbModule,
|
48
|
-
EuiLanguageSelectorModule,
|
49
45
|
EuiSearchModule,
|
50
46
|
EuiUserProfileModule,
|
51
47
|
EuiSidebarToggleModule] }); }
|
@@ -56,7 +52,6 @@ export class EuiLayoutModule {
|
|
56
52
|
EuiHeaderModule,
|
57
53
|
EuiFooterModule,
|
58
54
|
EuiBreadcrumbModule,
|
59
|
-
EuiLanguageSelectorModule,
|
60
55
|
EuiSearchModule,
|
61
56
|
EuiUserProfileModule,
|
62
57
|
EuiSidebarToggleModule] }); }
|
@@ -69,4 +64,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3",
|
|
69
64
|
exports: [...MODULES],
|
70
65
|
}]
|
71
66
|
}] });
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXVpLWxheW91dC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9sYXlvdXQvZXVpLWxheW91dC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN4RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUN6RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQztBQUN0RixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxpREFBaUQsQ0FBQztBQUMzRixPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUNwRixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDN0QsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzdELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdDQ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xlTW9kdWxlIH0gZnJvbSAnLi9ldWktdXNlci1wcm9maWxlL3VzZXItcHJvZmlsZS5tb2R1bGUnO1xuaW1wb3J0IHsgRXVpU2VhcmNoTW9kdWxlIH0gZnJvbSAnLi9ldWktc2VhcmNoL3NlYXJjaC5tb2R1bGUnO1xuXG5jb25zdCBNT0RVTEVTID0gW1xuICAgIEV1aUFwcE1vZHVsZSxcblxuICAgIEV1aU5vdGlmaWNhdGlvbnNNb2R1bGUsXG4gICAgRXVpTm90aWZpY2F0aW9uc1YyTW9kdWxlLFxuICAgIEV1aVRvb2xiYXJNb2R1bGUsXG4gICAgRXVpSGVhZGVyTW9kdWxlLFxuICAgIEV1aUZvb3Rlck1vZHVsZSxcbiAgICBFdWlCcmVhZGNydW1iTW9kdWxlLFxuICAgIEV1aVNlYXJjaE1vZHVsZSxcbiAgICBFdWlVc2VyUHJvZmlsZU1vZHVsZSxcbiAgICBFdWlTaWRlYmFyVG9nZ2xlTW9kdWxlLFxuXTtcblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBSb3V0ZXJNb2R1bGUsIC4uLk1PRFVMRVNdLFxuICAgIGRlY2xhcmF0aW9uczogW10sXG4gICAgZXhwb3J0czogWy4uLk1PRFVMRVNdLFxufSlcbmV4cG9ydCBjbGFzcyBFdWlMYXlvdXRNb2R1bGUge31cbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Component, HostBinding, ViewEncapsulation, forwardRef, ContentChild } from '@angular/core';
|
2
|
-
import { EuiLanguageSelectorComponent } from '
|
2
|
+
import { EuiLanguageSelectorComponent } from '@eui/components/eui-language-selector';
|
3
3
|
import { EuiToolbarMenuComponent } from './toolbar-menu/toolbar-menu.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@eui/core";
|
@@ -28,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3",
|
|
28
28
|
type: ContentChild,
|
29
29
|
args: [forwardRef(() => EuiToolbarMenuComponent)]
|
30
30
|
}] } });
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9sYXlvdXQvZXVpLXRvb2xiYXIvdG9vbGJhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9sYXlvdXQvZXVpLXRvb2xiYXIvdG9vbGJhci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxpQkFBaUIsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3BHLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQ3JGLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHVDQUF1QyxDQUFDOzs7Ozs7O0FBU2hGLE1BQU0sT0FBTyxtQkFBbUI7SUFTNUIsWUFBbUIsU0FBNkI7UUFBN0IsY0FBUyxHQUFULFNBQVMsQ0FBb0I7UUFSMUIsV0FBTSxHQUFHLGFBQWEsQ0FBQztJQVFNLENBQUM7cUhBVDNDLG1CQUFtQjt5R0FBbkIsbUJBQW1CLDBLQUdHLDRCQUE0QiwrRkFHNUIsdUJBQXVCLGlEQ2pCMUQsNC9FQXVFQTs7a0dENURhLG1CQUFtQjtrQkFOL0IsU0FBUzsrQkFDSSxhQUFhLGlCQUdSLGlCQUFpQixDQUFDLElBQUk7dUZBR2YsTUFBTTtzQkFBM0IsV0FBVzt1QkFBQyxPQUFPO2dCQUdwQixtQkFBbUI7c0JBRGxCLFlBQVk7dUJBQUMsVUFBVSxDQUFDLE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dG9yPlxuICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJoYXNMYW5ndWFnZVNlbGVjdG9yXCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJldWktdG9vbGJhcl9fbGFuZ3VhZ2Utc2VsZWN0b3JcIj5cbiAgICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImV1aS1sYW5ndWFnZS1zZWxlY3RvclwiPjwvbmctY29udGVudD5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9uZy1jb250YWluZXI+XG48L25nLXRlbXBsYXRlPlxuIl19
|
@@ -4,7 +4,7 @@ import { RouterModule } from '@angular/router';
|
|
4
4
|
import { TranslateModule } from '@ngx-translate/core';
|
5
5
|
import { EuiIconModule } from '@eui/components/eui-icon';
|
6
6
|
import { EuiButtonModule } from '@eui/components/eui-button';
|
7
|
-
import { EuiLanguageSelectorModule } from '
|
7
|
+
import { EuiLanguageSelectorModule } from '@eui/components/eui-language-selector';
|
8
8
|
import { EuiToolbarComponent } from './toolbar.component';
|
9
9
|
import { EuiToolbarItemsComponent } from './toolbar-items/toolbar-items.component';
|
10
10
|
import { EuiToolbarItemComponent } from './toolbar-item/toolbar-item.component';
|
@@ -68,4 +68,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3",
|
|
68
68
|
exports: [...COMPONENTS],
|
69
69
|
}]
|
70
70
|
}] });
|
71
|
-
//# sourceMappingURL=data:application/json;base64,
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9sYXlvdXQvZXVpLXRvb2xiYXIvdG9vbGJhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9B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bnRlckNvbXBvbmVudCB9IGZyb20gJy4vdG9vbGJhci1jZW50ZXIvdG9vbGJhci1jZW50ZXIuY29tcG9uZW50JztcblxuY29uc3QgQ09NUE9ORU5UUyA9IFtcbiAgICBFdWlUb29sYmFyQ29tcG9uZW50LFxuICAgIEV1aVRvb2xiYXJJdGVtQ29tcG9uZW50LFxuICAgIEV1aVRvb2xiYXJJdGVtc0NvbXBvbmVudCxcbiAgICBFdWlUb29sYmFyTG9nb0NvbXBvbmVudCxcbiAgICBFdWlUb29sYmFyQXBwQ29tcG9uZW50LFxuICAgIEV1aVRvb2xiYXJFbnZpcm9ubWVudENvbXBvbmVudCxcbiAgICBFdWlUb29sYmFyTWVudUNvbXBvbmVudCxcbiAgICBFdWlUb29sYmFyQ2VudGVyQ29tcG9uZW50LFxuXTtcblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbXG4gICAgICAgIENvbW1vbk1vZHVsZSxcbiAgICAgICAgUm91dGVyTW9kdWxlLFxuICAgICAgICBFdWlJY29uTW9kdWxlLFxuICAgICAgICBFdWlCdXR0b25Nb2R1bGUsXG4gICAgICAgIEV1aUxhbmd1YWdlU2VsZWN0b3JNb2R1bGUsXG4gICAgICAgIFRyYW5zbGF0ZU1vZHVsZSxcbiAgICBdLFxuICAgIGRlY2xhcmF0aW9uczogWy4uLkNPTVBPTkVOVFNdLFxuICAgIGV4cG9ydHM6IFsuLi5DT01QT05FTlRTXSxcbn0pXG5leHBvcnQgY2xhc3MgRXVpVG9vbGJhck1vZHVsZSB7fVxuIl19
|
package/esm2022/layout/index.mjs
CHANGED
@@ -2,7 +2,6 @@ export * from './eui-app';
|
|
2
2
|
export * from './eui-breadcrumb';
|
3
3
|
export * from './eui-footer';
|
4
4
|
export * from './eui-header';
|
5
|
-
export * from './eui-language-selector';
|
6
5
|
export * from './eui-notifications';
|
7
6
|
export * from './eui-search';
|
8
7
|
export * from './eui-sidebar-toggle';
|
@@ -10,4 +9,4 @@ export * from './eui-toolbar';
|
|
10
9
|
export * from './eui-user-profile';
|
11
10
|
export * from './eui-layout.module';
|
12
11
|
export * from './eui-notifications-v2';
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9sYXlvdXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2V1aS1hcHAnO1xuZXhwb3J0ICogZnJvbSAnLi9ldWktYnJlYWRjcnVtYic7XG5leHBvcnQgKiBmcm9tICcuL2V1aS1mb290ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9ldWktaGVhZGVyJztcbmV4cG9ydCAqIGZyb20gJy4vZXVpLW5vdGlmaWNhdGlvbnMnO1xuZXhwb3J0ICogZnJvbSAnLi9ldWktc2VhcmNoJztcbmV4cG9ydCAqIGZyb20gJy4vZXVpLXNpZGViYXItdG9nZ2xlJztcbmV4cG9ydCAqIGZyb20gJy4vZXVpLXRvb2xiYXInO1xuZXhwb3J0ICogZnJvbSAnLi9ldWktdXNlci1wcm9maWxlJztcbmV4cG9ydCAqIGZyb20gJy4vZXVpLWxheW91dC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9ldWktbm90aWZpY2F0aW9ucy12Mic7XG4iXX0=
|
@@ -60,9 +60,10 @@ import * as i58 from "@eui/components/eui-progress-bar";
|
|
60
60
|
import * as i59 from "@eui/components/eui-tree-list";
|
61
61
|
import * as i60 from "@eui/components/eui-avatar";
|
62
62
|
import * as i61 from "@eui/components/eui-skeleton";
|
63
|
+
import * as i62 from "@eui/components/eui-language-selector";
|
63
64
|
export declare class EuiAllModule {
|
64
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiAllModule, never>;
|
65
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiAllModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.EuiTemplateDirectiveModule, typeof i4.EuiTooltipDirectiveModule, typeof i5.EuiInputNumberDirectiveModule, typeof i4.EuiMaxLengthDirectiveModule, typeof i4.EuiSmoothScrollDirectiveModule, typeof i4.EuiScrollHandlerDirectiveModule, typeof i4.EuiHasPermissionDirectiveModule, typeof i4.EuiResizableDirectiveModule, typeof i6.EuiLayoutModule, typeof i7.EuiPageModule, typeof i8.EuiOverlayModule, typeof i9.EuiDimmerModule, typeof i10.EuiBadgeModule, typeof i11.EuiIconModule, typeof i12.EuiLabelModule, typeof i13.EuiIconToggleModule, typeof i14.EuiAlertModule, typeof i15.EuiAutocompleteModule, typeof i16.EuiBlockDocumentModule, typeof i17.EuiBlockContentModule, typeof i18.EuiButtonModule, typeof i19.EuiButtonV2Module, typeof i20.EuiCardModule, typeof i21.EuiChipModule, typeof i22.EuiChipListModule, typeof i23.EuiDashboardButtonModule, typeof i24.EuiDashboardCardModule, typeof i25.EuiDatepickerModule, typeof i26.EuiDateRangeSelectorModule, typeof i27.EuiDropdownModule, typeof i28.EuiDialogModule, typeof i29.EuiGrowlModule, typeof i30.EuiSlideToggleModule, typeof i31.EuiTabsModule, typeof i32.EuiMenuModule, typeof i33.EuiMessageBoxModule, typeof i34.EuiListModule, typeof i35.EuiTableModule, typeof i36.EuiFileUploadModule, typeof i37.EuiPopoverModule, typeof i38.EuiFeedbackMessageModule, typeof i39.EuiTimepickerModule, typeof i40.EuiTreeModule, typeof i41.EuiInputCheckboxModule, typeof i42.EuiSelectModule, typeof i43.EuiInputRadioModule, typeof i44.EuiInputTextModule, typeof i45.EuiTextAreaModule, typeof i46.EuiInputGroupModule, typeof i47.EuiTruncatePipeModule, typeof i48.EuiFieldsetModule, typeof i49.EuiPaginatorModule, typeof i50.EuiButtonGroupModule, typeof i51.EuiProgressCircleModule, typeof i52.EuiDisableContentModule, typeof i53.EuiWizardModule, typeof i54.EuiTimelineModule, typeof i55.EuiTimebarModule, typeof i56.EuiDiscussionThreadModule, typeof i57.EuiSidebarMenuModule, typeof i58.EuiProgressBarModule, typeof i59.EuiTreeListModule, typeof i60.EuiAvatarModule, typeof i61.EuiSkeletonModule], [typeof i4.EuiTemplateDirectiveModule, typeof i4.EuiTooltipDirectiveModule, typeof i5.EuiInputNumberDirectiveModule, typeof i4.EuiMaxLengthDirectiveModule, typeof i4.EuiSmoothScrollDirectiveModule, typeof i4.EuiScrollHandlerDirectiveModule, typeof i4.EuiHasPermissionDirectiveModule, typeof i4.EuiResizableDirectiveModule, typeof i6.EuiLayoutModule, typeof i7.EuiPageModule, typeof i8.EuiOverlayModule, typeof i9.EuiDimmerModule, typeof i10.EuiBadgeModule, typeof i11.EuiIconModule, typeof i12.EuiLabelModule, typeof i13.EuiIconToggleModule, typeof i14.EuiAlertModule, typeof i15.EuiAutocompleteModule, typeof i16.EuiBlockDocumentModule, typeof i17.EuiBlockContentModule, typeof i18.EuiButtonModule, typeof i19.EuiButtonV2Module, typeof i20.EuiCardModule, typeof i21.EuiChipModule, typeof i22.EuiChipListModule, typeof i23.EuiDashboardButtonModule, typeof i24.EuiDashboardCardModule, typeof i25.EuiDatepickerModule, typeof i26.EuiDateRangeSelectorModule, typeof i27.EuiDropdownModule, typeof i28.EuiDialogModule, typeof i29.EuiGrowlModule, typeof i30.EuiSlideToggleModule, typeof i31.EuiTabsModule, typeof i32.EuiMenuModule, typeof i33.EuiMessageBoxModule, typeof i34.EuiListModule, typeof i35.EuiTableModule, typeof i36.EuiFileUploadModule, typeof i37.EuiPopoverModule, typeof i38.EuiFeedbackMessageModule, typeof i39.EuiTimepickerModule, typeof i40.EuiTreeModule, typeof i41.EuiInputCheckboxModule, typeof i42.EuiSelectModule, typeof i43.EuiInputRadioModule, typeof i44.EuiInputTextModule, typeof i45.EuiTextAreaModule, typeof i46.EuiInputGroupModule, typeof i47.EuiTruncatePipeModule, typeof i48.EuiFieldsetModule, typeof i49.EuiPaginatorModule, typeof i50.EuiButtonGroupModule, typeof i51.EuiProgressCircleModule, typeof i52.EuiDisableContentModule, typeof i53.EuiWizardModule, typeof i54.EuiTimelineModule, typeof i55.EuiTimebarModule, typeof i56.EuiDiscussionThreadModule, typeof i57.EuiSidebarMenuModule, typeof i58.EuiProgressBarModule, typeof i59.EuiTreeListModule, typeof i60.EuiAvatarModule, typeof i61.EuiSkeletonModule]>;
|
66
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiAllModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.EuiTemplateDirectiveModule, typeof i4.EuiTooltipDirectiveModule, typeof i5.EuiInputNumberDirectiveModule, typeof i4.EuiMaxLengthDirectiveModule, typeof i4.EuiSmoothScrollDirectiveModule, typeof i4.EuiScrollHandlerDirectiveModule, typeof i4.EuiHasPermissionDirectiveModule, typeof i4.EuiResizableDirectiveModule, typeof i6.EuiLayoutModule, typeof i7.EuiPageModule, typeof i8.EuiOverlayModule, typeof i9.EuiDimmerModule, typeof i10.EuiBadgeModule, typeof i11.EuiIconModule, typeof i12.EuiLabelModule, typeof i13.EuiIconToggleModule, typeof i14.EuiAlertModule, typeof i15.EuiAutocompleteModule, typeof i16.EuiBlockDocumentModule, typeof i17.EuiBlockContentModule, typeof i18.EuiButtonModule, typeof i19.EuiButtonV2Module, typeof i20.EuiCardModule, typeof i21.EuiChipModule, typeof i22.EuiChipListModule, typeof i23.EuiDashboardButtonModule, typeof i24.EuiDashboardCardModule, typeof i25.EuiDatepickerModule, typeof i26.EuiDateRangeSelectorModule, typeof i27.EuiDropdownModule, typeof i28.EuiDialogModule, typeof i29.EuiGrowlModule, typeof i30.EuiSlideToggleModule, typeof i31.EuiTabsModule, typeof i32.EuiMenuModule, typeof i33.EuiMessageBoxModule, typeof i34.EuiListModule, typeof i35.EuiTableModule, typeof i36.EuiFileUploadModule, typeof i37.EuiPopoverModule, typeof i38.EuiFeedbackMessageModule, typeof i39.EuiTimepickerModule, typeof i40.EuiTreeModule, typeof i41.EuiInputCheckboxModule, typeof i42.EuiSelectModule, typeof i43.EuiInputRadioModule, typeof i44.EuiInputTextModule, typeof i45.EuiTextAreaModule, typeof i46.EuiInputGroupModule, typeof i47.EuiTruncatePipeModule, typeof i48.EuiFieldsetModule, typeof i49.EuiPaginatorModule, typeof i50.EuiButtonGroupModule, typeof i51.EuiProgressCircleModule, typeof i52.EuiDisableContentModule, typeof i53.EuiWizardModule, typeof i54.EuiTimelineModule, typeof i55.EuiTimebarModule, typeof i56.EuiDiscussionThreadModule, typeof i57.EuiSidebarMenuModule, typeof i58.EuiProgressBarModule, typeof i59.EuiTreeListModule, typeof i60.EuiAvatarModule, typeof i61.EuiSkeletonModule, typeof i62.EuiLanguageSelectorModule], [typeof i4.EuiTemplateDirectiveModule, typeof i4.EuiTooltipDirectiveModule, typeof i5.EuiInputNumberDirectiveModule, typeof i4.EuiMaxLengthDirectiveModule, typeof i4.EuiSmoothScrollDirectiveModule, typeof i4.EuiScrollHandlerDirectiveModule, typeof i4.EuiHasPermissionDirectiveModule, typeof i4.EuiResizableDirectiveModule, typeof i6.EuiLayoutModule, typeof i7.EuiPageModule, typeof i8.EuiOverlayModule, typeof i9.EuiDimmerModule, typeof i10.EuiBadgeModule, typeof i11.EuiIconModule, typeof i12.EuiLabelModule, typeof i13.EuiIconToggleModule, typeof i14.EuiAlertModule, typeof i15.EuiAutocompleteModule, typeof i16.EuiBlockDocumentModule, typeof i17.EuiBlockContentModule, typeof i18.EuiButtonModule, typeof i19.EuiButtonV2Module, typeof i20.EuiCardModule, typeof i21.EuiChipModule, typeof i22.EuiChipListModule, typeof i23.EuiDashboardButtonModule, typeof i24.EuiDashboardCardModule, typeof i25.EuiDatepickerModule, typeof i26.EuiDateRangeSelectorModule, typeof i27.EuiDropdownModule, typeof i28.EuiDialogModule, typeof i29.EuiGrowlModule, typeof i30.EuiSlideToggleModule, typeof i31.EuiTabsModule, typeof i32.EuiMenuModule, typeof i33.EuiMessageBoxModule, typeof i34.EuiListModule, typeof i35.EuiTableModule, typeof i36.EuiFileUploadModule, typeof i37.EuiPopoverModule, typeof i38.EuiFeedbackMessageModule, typeof i39.EuiTimepickerModule, typeof i40.EuiTreeModule, typeof i41.EuiInputCheckboxModule, typeof i42.EuiSelectModule, typeof i43.EuiInputRadioModule, typeof i44.EuiInputTextModule, typeof i45.EuiTextAreaModule, typeof i46.EuiInputGroupModule, typeof i47.EuiTruncatePipeModule, typeof i48.EuiFieldsetModule, typeof i49.EuiPaginatorModule, typeof i50.EuiButtonGroupModule, typeof i51.EuiProgressCircleModule, typeof i52.EuiDisableContentModule, typeof i53.EuiWizardModule, typeof i54.EuiTimelineModule, typeof i55.EuiTimebarModule, typeof i56.EuiDiscussionThreadModule, typeof i57.EuiSidebarMenuModule, typeof i58.EuiProgressBarModule, typeof i59.EuiTreeListModule, typeof i60.EuiAvatarModule, typeof i61.EuiSkeletonModule, typeof i62.EuiLanguageSelectorModule]>;
|
66
67
|
static ɵinj: i0.ɵɵInjectorDeclaration<EuiAllModule>;
|
67
68
|
}
|
68
69
|
//# sourceMappingURL=eui-all.module.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-all.module.d.ts","sourceRoot":"","sources":["../../eui-all/eui-all.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"eui-all.module.d.ts","sourceRoot":"","sources":["../../eui-all/eui-all.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2JA,qBAIa,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"eui-components-eui-language-selector.d.ts","sourceRoot":"","sources":["../../eui-language-selector/eui-components-eui-language-selector.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../eui-language-selector/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4BAA4B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"language-selector.component.d.ts","sourceRoot":"","sources":["../../eui-language-selector/language-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,SAAS,EACT,MAAM,EACN,iBAAiB,EAGjB,YAAY,EAEf,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAkB,WAAW,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAmB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;;AAI/E,qBAMa,4BAA6B,SAAQ,aAAc,YAAW,MAAM,EAAE,SAAS;IAqBpF,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,gBAAgB;IACjB,eAAe,EAAE,kBAAkB;IAC1C,OAAO,CAAC,gBAAgB;IAvB5B,IACI,UAAU,IAAI,MAAM,CAMvB;IAED,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,gBAAgB,EAAE,WAAW,CAAC;IAEU,oBAAoB,UAAQ;IAC5B,iBAAiB,UAAS;IAExD,qBAAqB,qBAA4B;IAE3D,OAAO,CAAC,QAAQ,CAA4C;gBAGhD,EAAE,EAAE,iBAAiB,EACrB,gBAAgB,EAAE,gBAAgB,EACnC,eAAe,EAAE,kBAAkB,EAClC,gBAAgB,EAAE,gBAAgB;IAK9C;;OAEG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,QAAQ,IAAI,IAAI;IA0BhB,WAAW,IAAI,IAAI;IAKnB,iBAAiB,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAQ9C;;OAEG;IACH,IAAI,CAAC,UAAU,GAAE,MAAyE,GAAG,IAAI;IAkBjG,OAAO,IAAI,IAAI;IAIf;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW;yCAjH/C,4BAA4B;2CAA5B,4BAA4B;mDAqH4wuB,OAAQ;gDAAR,OAAQ;CAD5zuB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"language-selector.module.d.ts","sourceRoot":"","sources":["../../eui-language-selector/language-selector.module.ts"],"names":[],"mappings":";;;;;;;;AAWA,qBAKa,yBAAyB;yCAAzB,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"modal-selector.component.d.ts","sourceRoot":"","sources":["../../../eui-language-selector/modal-selector/modal-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,MAAM,EAAU,MAAM,eAAe,CAAC;AACtG,OAAO,EAAkB,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;;AAE9D,qBAMa,yBAA0B,YAAW,MAAM;IAOhD,OAAO,CAAC,gBAAgB;IAEjB,MAAM,EAAE;QACX,SAAS,EAAE,WAAW,EAAE,CAAC;QACzB,gBAAgB,EAAE,WAAW,CAAC;QAC9B,eAAe,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;KACpD;IAZE,YAAY,EAAE,WAAW,EAAE,EAAE,CAAM;IACnC,qBAAqB,EAAE,WAAW,EAAE,EAAE,CAAM;IAEnD,OAAO,CAAC,gBAAgB,CAAc;gBAG1B,gBAAgB,EAAE,gBAAgB,EAEnC,MAAM,EAAE;QACX,SAAS,EAAE,WAAW,EAAE,CAAC;QACzB,gBAAgB,EAAE,WAAW,CAAC;QAC9B,eAAe,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;KACpD;IAGL,QAAQ,IAAI,IAAI;IAKhB,cAAc,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI;IAc/C,OAAO,CAAC,mBAAmB;yCAnClB,yBAAyB;2CAAzB,yBAAyB;CAuDrC"}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
// modal-selector/modal-selector.component.mjs
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Inject } from "@angular/core";
|
3
|
+
import { EuiEuLanguages } from "@eui/base";
|
4
|
+
import { DIALOG_COMPONENT_CONFIG } from "@eui/components/eui-dialog";
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "@eui/components/eui-dialog";
|
7
|
+
import * as i2 from "@angular/common";
|
8
|
+
import * as i3 from "@eui/components/eui-button";
|
9
|
+
var EuiModalSelectorComponent = class _EuiModalSelectorComponent {
|
10
|
+
constructor(euiDialogService, config) {
|
11
|
+
this.euiDialogService = euiDialogService;
|
12
|
+
this.config = config;
|
13
|
+
this.languageRows = [];
|
14
|
+
this.additionaLanguageRows = [];
|
15
|
+
}
|
16
|
+
ngOnInit() {
|
17
|
+
this.languageRows = this.prepareLanguageRows(EuiEuLanguages.filterEULanguages(this.config.languages));
|
18
|
+
this.additionaLanguageRows = this.prepareLanguageRows(EuiEuLanguages.filterNonEULanguages(this.config.languages));
|
19
|
+
}
|
20
|
+
selectLanguage(languageCode) {
|
21
|
+
if (this.selectedLanguage?.code !== languageCode.code) {
|
22
|
+
for (const language of this.config.languages) {
|
23
|
+
if (language.code === languageCode.code) {
|
24
|
+
this.selectedLanguage = language;
|
25
|
+
break;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
this.config.languageChanged(languageCode);
|
30
|
+
this.euiDialogService.closeDialog();
|
31
|
+
}
|
32
|
+
prepareLanguageRows(languages) {
|
33
|
+
const rows = [];
|
34
|
+
let row = [];
|
35
|
+
for (let i = 0; i < languages.length; i++) {
|
36
|
+
if (i % 4 === 0) {
|
37
|
+
if (row.length > 0) {
|
38
|
+
rows.push(row);
|
39
|
+
row = [];
|
40
|
+
}
|
41
|
+
}
|
42
|
+
row.push(languages[i]);
|
43
|
+
}
|
44
|
+
if (row.length > 0) {
|
45
|
+
rows.push(row);
|
46
|
+
}
|
47
|
+
return rows;
|
48
|
+
}
|
49
|
+
static {
|
50
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: _EuiModalSelectorComponent, deps: [{ token: i1.EuiDialogService }, { token: DIALOG_COMPONENT_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
51
|
+
}
|
52
|
+
static {
|
53
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.3", type: _EuiModalSelectorComponent, selector: "eui-modal-selector", ngImport: i0, template: '<h4 *ngIf="additionaLanguageRows?.length > 0">EU official languages</h4>\n<div id="eu_languages" *ngFor="let row of languageRows" class="row">\n <div *ngFor="let language of row" class="col-md-6 mb-2">\n <button\n type="button"\n e2eAttr="eui-language-selector-item_{{ language.code }}"\n euiButton\n euiBlockButton\n [euiSecondary]="language.code !== config.selectedLanguage.code"\n [euiPrimary]="language.code === config.selectedLanguage.code"\n (click)="selectLanguage(language)">\n {{ language.label }} ({{ language.code }})\n </button>\n </div>\n</div>\n<ng-container *ngIf="additionaLanguageRows?.length > 0">\n <br />\n <h4>Non-EU Languages</h4>\n <div id="extra_languages" *ngFor="let row of additionaLanguageRows" class="row">\n <div *ngFor="let language of row" class="col-md-6 mb-2">\n <button\n type="button"\n e2eAttr="eui-language-selector-item_{{ language.code }}"\n euiButton\n euiBlockButton\n [euiSecondary]="language.code !== config.selectedLanguage.code"\n [euiPrimary]="language.code === config.selectedLanguage.code"\n (click)="selectLanguage(language)">\n {{ language.label }} ({{ language.code }})\n </button>\n </div>\n </div>\n</ng-container>\n', dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "isLoading", "euiIconButton", "euiLineWrap"], outputs: ["buttonClick"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
54
|
+
}
|
55
|
+
};
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: EuiModalSelectorComponent, decorators: [{
|
57
|
+
type: Component,
|
58
|
+
args: [{ selector: "eui-modal-selector", changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, template: '<h4 *ngIf="additionaLanguageRows?.length > 0">EU official languages</h4>\n<div id="eu_languages" *ngFor="let row of languageRows" class="row">\n <div *ngFor="let language of row" class="col-md-6 mb-2">\n <button\n type="button"\n e2eAttr="eui-language-selector-item_{{ language.code }}"\n euiButton\n euiBlockButton\n [euiSecondary]="language.code !== config.selectedLanguage.code"\n [euiPrimary]="language.code === config.selectedLanguage.code"\n (click)="selectLanguage(language)">\n {{ language.label }} ({{ language.code }})\n </button>\n </div>\n</div>\n<ng-container *ngIf="additionaLanguageRows?.length > 0">\n <br />\n <h4>Non-EU Languages</h4>\n <div id="extra_languages" *ngFor="let row of additionaLanguageRows" class="row">\n <div *ngFor="let language of row" class="col-md-6 mb-2">\n <button\n type="button"\n e2eAttr="eui-language-selector-item_{{ language.code }}"\n euiButton\n euiBlockButton\n [euiSecondary]="language.code !== config.selectedLanguage.code"\n [euiPrimary]="language.code === config.selectedLanguage.code"\n (click)="selectLanguage(language)">\n {{ language.label }} ({{ language.code }})\n </button>\n </div>\n </div>\n</ng-container>\n' }]
|
59
|
+
}], ctorParameters: () => [{ type: i1.EuiDialogService }, { type: void 0, decorators: [{
|
60
|
+
type: Inject,
|
61
|
+
args: [DIALOG_COMPONENT_CONFIG]
|
62
|
+
}] }] });
|
63
|
+
|
64
|
+
// language-selector.component.mjs
|
65
|
+
import { Component as Component2, ViewEncapsulation as ViewEncapsulation3, HostBinding, Input, Output, EventEmitter, booleanAttribute } from "@angular/core";
|
66
|
+
import { distinctUntilKeyChanged, map, takeUntil } from "rxjs/operators";
|
67
|
+
import { Subject } from "rxjs";
|
68
|
+
import { BaseDirective } from "@eui/components/shared";
|
69
|
+
import { EuiEuLanguages as EuiEuLanguages2 } from "@eui/base";
|
70
|
+
import { EuiDialogConfig } from "@eui/components/eui-dialog";
|
71
|
+
import * as i02 from "@angular/core";
|
72
|
+
import * as i12 from "@eui/components/eui-dialog";
|
73
|
+
import * as i22 from "@eui/core";
|
74
|
+
import * as i32 from "@ngx-translate/core";
|
75
|
+
import * as i4 from "@angular/common";
|
76
|
+
import * as i5 from "@eui/components/eui-dropdown";
|
77
|
+
import * as i6 from "@eui/components/eui-icon";
|
78
|
+
var EuiLanguageSelectorComponent = class _EuiLanguageSelectorComponent extends BaseDirective {
|
79
|
+
get cssClasses() {
|
80
|
+
return [
|
81
|
+
super.getCssClasses("eui-language-selector"),
|
82
|
+
this.languages?.length <= 1 ? "eui-language-selector--empty" : "",
|
83
|
+
this.isToolbarSelector ? "eui-language-selector--toolbar-selector" : ""
|
84
|
+
].join(" ").trim();
|
85
|
+
}
|
86
|
+
constructor(cd, euiDialogService, appShellService, translateService) {
|
87
|
+
super();
|
88
|
+
this.cd = cd;
|
89
|
+
this.euiDialogService = euiDialogService;
|
90
|
+
this.appShellService = appShellService;
|
91
|
+
this.translateService = translateService;
|
92
|
+
this.hasLanguageSelection = true;
|
93
|
+
this.isToolbarSelector = false;
|
94
|
+
this.languageSelectorClick = new EventEmitter();
|
95
|
+
this.destroy$ = new Subject();
|
96
|
+
}
|
97
|
+
/**
|
98
|
+
* returns true if there are at least one and max four languages.
|
99
|
+
*/
|
100
|
+
get isShowDropDown() {
|
101
|
+
return this.languages?.length > 1 && this.languages?.length < 4;
|
102
|
+
}
|
103
|
+
/**
|
104
|
+
* returns true if there are at least five languages.
|
105
|
+
*/
|
106
|
+
get isShowModal() {
|
107
|
+
return this.languages?.length >= 4;
|
108
|
+
}
|
109
|
+
ngOnInit() {
|
110
|
+
this.appShellService.state$.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged("languages"), map((state) => state.languages)).subscribe((languages) => {
|
111
|
+
this.languages = languages ? EuiEuLanguages2.getOrderedLanguages(languages) : EuiEuLanguages2.getLanguages();
|
112
|
+
this.cd.detectChanges();
|
113
|
+
});
|
114
|
+
this.appShellService.state$.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged("activeLanguage"), map((state) => state.activeLanguage)).subscribe((activeLanguage) => {
|
115
|
+
this.selectedLanguage = this.getLanguage(activeLanguage);
|
116
|
+
this.cd.detectChanges();
|
117
|
+
});
|
118
|
+
}
|
119
|
+
ngOnDestroy() {
|
120
|
+
this.destroy$.next(true);
|
121
|
+
this.destroy$.unsubscribe();
|
122
|
+
}
|
123
|
+
onLanguageChanged(language) {
|
124
|
+
this.appShellService.setState({
|
125
|
+
...this.appShellService.state,
|
126
|
+
activeLanguage: language.code
|
127
|
+
});
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* Opens the modal that renders the UxLanguage array with modal actions bindings to this Component
|
131
|
+
*/
|
132
|
+
open(titleLabel = this.translateService.instant("eui.languageSelector.modalTitle")) {
|
133
|
+
this.euiDialogService.openDialog(new EuiDialogConfig({
|
134
|
+
title: titleLabel,
|
135
|
+
hasFooter: false,
|
136
|
+
hasClosedOnClickOutside: true,
|
137
|
+
bodyComponent: {
|
138
|
+
component: EuiModalSelectorComponent,
|
139
|
+
config: {
|
140
|
+
languages: this.languages,
|
141
|
+
selectedLanguage: this.selectedLanguage,
|
142
|
+
languageChanged: (language) => this.onLanguageChanged(language)
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}));
|
146
|
+
}
|
147
|
+
onClick() {
|
148
|
+
this.languageSelectorClick.emit();
|
149
|
+
}
|
150
|
+
/**
|
151
|
+
* returns the UxLanguage Object from a given language code
|
152
|
+
*
|
153
|
+
* @param languageCode two char language code
|
154
|
+
* @protected
|
155
|
+
*/
|
156
|
+
getLanguage(languageCode) {
|
157
|
+
return this.languages.find((lang) => lang.code === languageCode);
|
158
|
+
}
|
159
|
+
static {
|
160
|
+
this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: _EuiLanguageSelectorComponent, deps: [{ token: i02.ChangeDetectorRef }, { token: i12.EuiDialogService }, { token: i22.EuiAppShellService }, { token: i32.TranslateService }], target: i02.ɵɵFactoryTarget.Component });
|
161
|
+
}
|
162
|
+
static {
|
163
|
+
this.ɵcmp = i02.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.0-next.3", type: _EuiLanguageSelectorComponent, selector: "eui-language-selector", inputs: { hasLanguageSelection: ["hasLanguageSelection", "hasLanguageSelection", booleanAttribute], isToolbarSelector: ["isToolbarSelector", "isToolbarSelector", booleanAttribute] }, outputs: { languageSelectorClick: "languageSelectorClick" }, host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i02, template: '<ng-container *ngIf="!hasLanguageSelection">\n <button class="eui-language-selector-button" (click)="onClick()">\n <eui-icon-svg icon="eui-ecl-language" size="l" fillColor="white"></eui-icon-svg>\n <span class="eui-language-selector-button__language-code">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n</ng-container>\n\n<ng-container *ngIf="isShowDropDown && hasLanguageSelection">\n <eui-dropdown>\n <button class="eui-language-selector-button">\n <eui-icon-svg icon="eui-ecl-language" size="l" fillColor="white"></eui-icon-svg>\n <span class="eui-language-selector-button__language-code">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n <eui-dropdown-content>\n <div class="eui-language-selector-menu">\n <div\n *ngFor="let language of languages"\n euiDropdownItem\n attr.data-e2e="eui-language-selector-item_{{ language.code }}"\n class="eui-language-selector-menu-language-item"\n (click)="onLanguageChanged(language)">\n {{ language.label }} ({{ language.code }})\n </div>\n </div>\n </eui-dropdown-content>\n </eui-dropdown>\n</ng-container>\n\n<ng-container *ngIf="isShowModal && hasLanguageSelection">\n <button class="eui-language-selector-button" (click)="open()">\n <eui-icon-svg icon="eui-ecl-language" size="l" fillColor="white"></eui-icon-svg>\n <span class="eui-language-selector-button__language-code">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n</ng-container>\n', styles: ['.eui-language-selector{align-items:center;cursor:pointer;display:inline-flex;position:relative;margin-left:var(--eui-base-spacing-m);margin-top:var(--eui-base-spacing-xs)}.eui-language-selector .eui-icon-svg>svg{color:var(--eui-base-color-primary-100);fill:var(--eui-base-color-primary-100)}.eui-language-selector-button{justify-content:center;position:relative;align-items:center;display:flex;width:100%;padding:0;border:none;background:transparent;cursor:pointer}.eui-language-selector-button:focus:not([readonly]){outline:2px solid var(--eui-ctx-color-focus)!important;outline-offset:0!important;transition:none!important}.eui-language-selector-button:focus-visible:not([readonly]){outline:2px solid var(--eui-ctx-color-focus-visible)!important;outline-offset:0!important;transition:none!important}.eui-language-selector-button [tabindex="0"]:focus:not([readonly]){outline:2px solid var(--eui-ctx-color-focus-visible)!important;outline-offset:0!important;transition:none!important}.eui-language-selector-button__language-code{align-items:center;bottom:50%;display:flex;color:var(--eui-base-color-white);position:absolute;text-transform:uppercase;top:35%;font:normal normal 400 .875rem/1.5rem var(--eui-base-font-family);font-weight:700}.eui-language-selector-menu-language-item{padding:var(--eui-base-spacing-m);border-bottom:1px solid var(--eui-base-color-grey-10);text-align:center;cursor:pointer}.eui-language-selector-menu-language-item:hover{background:var(--eui-base-color-grey-5)}.mat-menu-panel{min-width:8rem!important}.niko-test{margin:0}.eui-language-selector--empty{display:none}.eui-language-selector--primary .eui-language-selector-button__language-code{color:var(--eui-base-color-white)}.eui-language-selector--toolbar-selector{margin-right:var(--eui-base-spacing-m);margin-left:0;margin-bottom:var(--eui-base-spacing-2xs)}.eui-language-selector--toolbar-selector .eui-icon-svg>svg{color:var(--eui-base-color-white);fill:var(--eui-base-color-white)}.eui-language-selector--toolbar-selector .eui-language-selector-button__language-code{color:var(--eui-base-color-black)}\n'], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.EuiDropdownComponent, selector: "eui-dropdown", inputs: ["e2eAttr", "tabIndex", "width", "position", "isBlock", "isDropDownRightAligned", "isClosedOnClickInside", "hasClosedOnClickInside", "isLabelUpdatedFromSelectedItem", "isExpandOnHover", "hasTabNavigation", "isRightClickEnabled"] }, { kind: "component", type: i5.EuiDropdownItemComponent, selector: "eui-dropdown-item, [euiDropdownItem]", inputs: ["subDropdown", "isActive"] }, { kind: "directive", type: i5.EuiDropdownContentDirective, selector: "eui-dropdown-content" }, { kind: "component", type: i6.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "transform", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], encapsulation: i02.ViewEncapsulation.None });
|
164
|
+
}
|
165
|
+
};
|
166
|
+
i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: EuiLanguageSelectorComponent, decorators: [{
|
167
|
+
type: Component2,
|
168
|
+
args: [{ selector: "eui-language-selector", encapsulation: ViewEncapsulation3.None, template: '<ng-container *ngIf="!hasLanguageSelection">\n <button class="eui-language-selector-button" (click)="onClick()">\n <eui-icon-svg icon="eui-ecl-language" size="l" fillColor="white"></eui-icon-svg>\n <span class="eui-language-selector-button__language-code">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n</ng-container>\n\n<ng-container *ngIf="isShowDropDown && hasLanguageSelection">\n <eui-dropdown>\n <button class="eui-language-selector-button">\n <eui-icon-svg icon="eui-ecl-language" size="l" fillColor="white"></eui-icon-svg>\n <span class="eui-language-selector-button__language-code">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n <eui-dropdown-content>\n <div class="eui-language-selector-menu">\n <div\n *ngFor="let language of languages"\n euiDropdownItem\n attr.data-e2e="eui-language-selector-item_{{ language.code }}"\n class="eui-language-selector-menu-language-item"\n (click)="onLanguageChanged(language)">\n {{ language.label }} ({{ language.code }})\n </div>\n </div>\n </eui-dropdown-content>\n </eui-dropdown>\n</ng-container>\n\n<ng-container *ngIf="isShowModal && hasLanguageSelection">\n <button class="eui-language-selector-button" (click)="open()">\n <eui-icon-svg icon="eui-ecl-language" size="l" fillColor="white"></eui-icon-svg>\n <span class="eui-language-selector-button__language-code">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n</ng-container>\n', styles: ['.eui-language-selector{align-items:center;cursor:pointer;display:inline-flex;position:relative;margin-left:var(--eui-base-spacing-m);margin-top:var(--eui-base-spacing-xs)}.eui-language-selector .eui-icon-svg>svg{color:var(--eui-base-color-primary-100);fill:var(--eui-base-color-primary-100)}.eui-language-selector-button{justify-content:center;position:relative;align-items:center;display:flex;width:100%;padding:0;border:none;background:transparent;cursor:pointer}.eui-language-selector-button:focus:not([readonly]){outline:2px solid var(--eui-ctx-color-focus)!important;outline-offset:0!important;transition:none!important}.eui-language-selector-button:focus-visible:not([readonly]){outline:2px solid var(--eui-ctx-color-focus-visible)!important;outline-offset:0!important;transition:none!important}.eui-language-selector-button [tabindex="0"]:focus:not([readonly]){outline:2px solid var(--eui-ctx-color-focus-visible)!important;outline-offset:0!important;transition:none!important}.eui-language-selector-button__language-code{align-items:center;bottom:50%;display:flex;color:var(--eui-base-color-white);position:absolute;text-transform:uppercase;top:35%;font:normal normal 400 .875rem/1.5rem var(--eui-base-font-family);font-weight:700}.eui-language-selector-menu-language-item{padding:var(--eui-base-spacing-m);border-bottom:1px solid var(--eui-base-color-grey-10);text-align:center;cursor:pointer}.eui-language-selector-menu-language-item:hover{background:var(--eui-base-color-grey-5)}.mat-menu-panel{min-width:8rem!important}.niko-test{margin:0}.eui-language-selector--empty{display:none}.eui-language-selector--primary .eui-language-selector-button__language-code{color:var(--eui-base-color-white)}.eui-language-selector--toolbar-selector{margin-right:var(--eui-base-spacing-m);margin-left:0;margin-bottom:var(--eui-base-spacing-2xs)}.eui-language-selector--toolbar-selector .eui-icon-svg>svg{color:var(--eui-base-color-white);fill:var(--eui-base-color-white)}.eui-language-selector--toolbar-selector .eui-language-selector-button__language-code{color:var(--eui-base-color-black)}\n'] }]
|
169
|
+
}], ctorParameters: () => [{ type: i02.ChangeDetectorRef }, { type: i12.EuiDialogService }, { type: i22.EuiAppShellService }, { type: i32.TranslateService }], propDecorators: { cssClasses: [{
|
170
|
+
type: HostBinding,
|
171
|
+
args: ["class"]
|
172
|
+
}], hasLanguageSelection: [{
|
173
|
+
type: Input,
|
174
|
+
args: [{ transform: booleanAttribute }]
|
175
|
+
}], isToolbarSelector: [{
|
176
|
+
type: Input,
|
177
|
+
args: [{ transform: booleanAttribute }]
|
178
|
+
}], languageSelectorClick: [{
|
179
|
+
type: Output
|
180
|
+
}] } });
|
181
|
+
|
182
|
+
// language-selector.module.mjs
|
183
|
+
import { CommonModule } from "@angular/common";
|
184
|
+
import { NgModule } from "@angular/core";
|
185
|
+
import { EuiButtonModule } from "@eui/components/eui-button";
|
186
|
+
import { EuiDropdownModule } from "@eui/components/eui-dropdown";
|
187
|
+
import { EuiDialogModule } from "@eui/components/eui-dialog";
|
188
|
+
import { EuiIconModule } from "@eui/components/eui-icon";
|
189
|
+
import * as i03 from "@angular/core";
|
190
|
+
var EuiLanguageSelectorModule = class _EuiLanguageSelectorModule {
|
191
|
+
static {
|
192
|
+
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: _EuiLanguageSelectorModule, deps: [], target: i03.ɵɵFactoryTarget.NgModule });
|
193
|
+
}
|
194
|
+
static {
|
195
|
+
this.ɵmod = i03.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i03, type: _EuiLanguageSelectorModule, declarations: [EuiLanguageSelectorComponent, EuiModalSelectorComponent], imports: [CommonModule, EuiDropdownModule, EuiButtonModule, EuiDialogModule, EuiIconModule], exports: [EuiLanguageSelectorComponent] });
|
196
|
+
}
|
197
|
+
static {
|
198
|
+
this.ɵinj = i03.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: _EuiLanguageSelectorModule, imports: [CommonModule, EuiDropdownModule, EuiButtonModule, EuiDialogModule, EuiIconModule] });
|
199
|
+
}
|
200
|
+
};
|
201
|
+
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i03, type: EuiLanguageSelectorModule, decorators: [{
|
202
|
+
type: NgModule,
|
203
|
+
args: [{
|
204
|
+
imports: [CommonModule, EuiDropdownModule, EuiButtonModule, EuiDialogModule, EuiIconModule],
|
205
|
+
exports: [EuiLanguageSelectorComponent],
|
206
|
+
declarations: [EuiLanguageSelectorComponent, EuiModalSelectorComponent]
|
207
|
+
}]
|
208
|
+
}] });
|
209
|
+
export {
|
210
|
+
EuiLanguageSelectorComponent,
|
211
|
+
EuiLanguageSelectorModule,
|
212
|
+
EuiModalSelectorComponent
|
213
|
+
};
|
214
|
+
//# sourceMappingURL=eui-components-eui-language-selector.mjs.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../eui-language-selector/modal-selector/modal-selector.component.ts", "../../eui-language-selector/modal-selector/modal-selector.component.html", "../../eui-language-selector/language-selector.component.ts", "../../eui-language-selector/language-selector.component.html", "../../eui-language-selector/language-selector.module.ts"],
|
4
|
+
"sourcesContent": ["import { Component, ViewEncapsulation, ChangeDetectionStrategy, OnInit, Inject } from '@angular/core';\nimport { EuiEuLanguages, EuiLanguage } from '@eui/base';\n\nimport { DIALOG_COMPONENT_CONFIG } from '@eui/components/eui-dialog';\nimport { EuiDialogService } from '@eui/components/eui-dialog';\n\n@Component({\n selector: 'eui-modal-selector',\n templateUrl: './modal-selector.component.html',\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiModalSelectorComponent implements OnInit {\n public languageRows: EuiLanguage[][] = [];\n public additionaLanguageRows: EuiLanguage[][] = [];\n\n private selectedLanguage: EuiLanguage;\n\n constructor(\n private euiDialogService: EuiDialogService,\n @Inject(DIALOG_COMPONENT_CONFIG)\n public config: {\n languages: EuiLanguage[];\n selectedLanguage: EuiLanguage;\n languageChanged: (language: EuiLanguage) => void;\n },\n ) {}\n\n ngOnInit(): void {\n this.languageRows = this.prepareLanguageRows(EuiEuLanguages.filterEULanguages(this.config.languages));\n this.additionaLanguageRows = this.prepareLanguageRows(EuiEuLanguages.filterNonEULanguages(this.config.languages));\n }\n\n selectLanguage(languageCode: EuiLanguage): void {\n if (this.selectedLanguage?.code !== languageCode.code) {\n for (const language of this.config.languages) {\n if (language.code === languageCode.code) {\n this.selectedLanguage = language;\n break;\n }\n }\n }\n\n this.config.languageChanged(languageCode);\n this.euiDialogService.closeDialog();\n }\n\n private prepareLanguageRows(languages: EuiLanguage[]): EuiLanguage[][] {\n const rows: EuiLanguage[][] = [];\n let row: EuiLanguage[] = [];\n\n for (let i = 0; i < languages.length; i++) {\n if (i % 4 === 0) {\n if (row.length > 0) {\n rows.push(row);\n row = [];\n }\n }\n row.push(languages[i]);\n }\n\n if (row.length > 0) {\n rows.push(row);\n }\n\n return rows;\n }\n}\n", "<h4 *ngIf=\"additionaLanguageRows?.length > 0\">EU official languages</h4>\n<div id=\"eu_languages\" *ngFor=\"let row of languageRows\" class=\"row\">\n <div *ngFor=\"let language of row\" class=\"col-md-6 mb-2\">\n <button\n type=\"button\"\n e2eAttr=\"eui-language-selector-item_{{ language.code }}\"\n euiButton\n euiBlockButton\n [euiSecondary]=\"language.code !== config.selectedLanguage.code\"\n [euiPrimary]=\"language.code === config.selectedLanguage.code\"\n (click)=\"selectLanguage(language)\">\n {{ language.label }} ({{ language.code }})\n </button>\n </div>\n</div>\n<ng-container *ngIf=\"additionaLanguageRows?.length > 0\">\n <br />\n <h4>Non-EU Languages</h4>\n <div id=\"extra_languages\" *ngFor=\"let row of additionaLanguageRows\" class=\"row\">\n <div *ngFor=\"let language of row\" class=\"col-md-6 mb-2\">\n <button\n type=\"button\"\n e2eAttr=\"eui-language-selector-item_{{ language.code }}\"\n euiButton\n euiBlockButton\n [euiSecondary]=\"language.code !== config.selectedLanguage.code\"\n [euiPrimary]=\"language.code === config.selectedLanguage.code\"\n (click)=\"selectLanguage(language)\">\n {{ language.label }} ({{ language.code }})\n </button>\n </div>\n </div>\n</ng-container>\n", "import {\n Component,\n ViewEncapsulation,\n HostBinding,\n OnDestroy,\n OnInit,\n ChangeDetectorRef,\n Input,\n Output,\n EventEmitter,\n booleanAttribute,\n} from '@angular/core';\nimport { distinctUntilKeyChanged, map, takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { TranslateService } from '@ngx-translate/core';\n\nimport { BaseDirective } from '@eui/components/shared';\nimport { EuiEuLanguages, EuiLanguage } from '@eui/base';\nimport { EuiAppShellService } from '@eui/core';\nimport { EuiDialogConfig, EuiDialogService } from '@eui/components/eui-dialog';\n\nimport { EuiModalSelectorComponent } from './modal-selector/modal-selector.component';\n\n@Component({\n selector: 'eui-language-selector',\n templateUrl: './language-selector.component.html',\n styleUrls: ['./_styles/_index.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiLanguageSelectorComponent extends BaseDirective implements OnInit, OnDestroy {\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('eui-language-selector'),\n this.languages?.length <= 1 ? 'eui-language-selector--empty' : '',\n this.isToolbarSelector ? 'eui-language-selector--toolbar-selector' : '',\n ].join(' ').trim();\n }\n\n languages: EuiLanguage[];\n selectedLanguage: EuiLanguage;\n\n @Input({ transform: booleanAttribute }) hasLanguageSelection = true;\n @Input({ transform: booleanAttribute }) isToolbarSelector = false;\n\n @Output() languageSelectorClick = new EventEmitter<null>();\n\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n private cd: ChangeDetectorRef,\n private euiDialogService: EuiDialogService,\n public appShellService: EuiAppShellService,\n private translateService: TranslateService,\n ) {\n super();\n }\n\n /**\n * returns true if there are at least one and max four languages.\n */\n get isShowDropDown(): boolean {\n return this.languages?.length > 1 && this.languages?.length < 4;\n }\n\n /**\n * returns true if there are at least five languages.\n */\n get isShowModal(): boolean {\n return this.languages?.length >= 4;\n }\n\n ngOnInit(): void {\n // update languages array based on AppShell State 'language' changes\n this.appShellService.state$\n .pipe(\n takeUntil(this.destroy$),\n distinctUntilKeyChanged('languages'),\n map((state) => state.languages),\n )\n .subscribe((languages) => {\n this.languages = languages ? EuiEuLanguages.getOrderedLanguages(languages) : EuiEuLanguages.getLanguages();\n this.cd.detectChanges();\n });\n\n // update activeLanguage array based on AppShell State 'language' changes\n this.appShellService.state$\n .pipe(\n takeUntil(this.destroy$),\n distinctUntilKeyChanged('activeLanguage'),\n map((state) => state.activeLanguage),\n )\n .subscribe((activeLanguage) => {\n this.selectedLanguage = this.getLanguage(activeLanguage);\n this.cd.detectChanges();\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n onLanguageChanged(language: EuiLanguage): void {\n // Update the AppShellService state\n this.appShellService.setState({\n ...this.appShellService.state,\n activeLanguage: language.code,\n });\n }\n\n /**\n * Opens the modal that renders the UxLanguage array with modal actions bindings to this Component\n */\n open(titleLabel: string = this.translateService.instant('eui.languageSelector.modalTitle')): void {\n this.euiDialogService.openDialog(\n new EuiDialogConfig({\n title: titleLabel,\n hasFooter: false,\n hasClosedOnClickOutside: true,\n bodyComponent: {\n component: EuiModalSelectorComponent,\n config: {\n languages: this.languages,\n selectedLanguage: this.selectedLanguage,\n languageChanged: (language: EuiLanguage) => this.onLanguageChanged(language),\n },\n },\n }),\n );\n }\n\n onClick(): void {\n this.languageSelectorClick.emit();\n }\n\n /**\n * returns the UxLanguage Object from a given language code\n *\n * @param languageCode two char language code\n * @protected\n */\n protected getLanguage(languageCode: string): EuiLanguage {\n return this.languages.find((lang) => lang.code === languageCode);\n }\n}\n", "<ng-container *ngIf=\"!hasLanguageSelection\">\n <button class=\"eui-language-selector-button\" (click)=\"onClick()\">\n <eui-icon-svg icon=\"eui-ecl-language\" size=\"l\" fillColor=\"white\"></eui-icon-svg>\n <span class=\"eui-language-selector-button__language-code\">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n</ng-container>\n\n<ng-container *ngIf=\"isShowDropDown && hasLanguageSelection\">\n <eui-dropdown>\n <button class=\"eui-language-selector-button\">\n <eui-icon-svg icon=\"eui-ecl-language\" size=\"l\" fillColor=\"white\"></eui-icon-svg>\n <span class=\"eui-language-selector-button__language-code\">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n <eui-dropdown-content>\n <div class=\"eui-language-selector-menu\">\n <div\n *ngFor=\"let language of languages\"\n euiDropdownItem\n attr.data-e2e=\"eui-language-selector-item_{{ language.code }}\"\n class=\"eui-language-selector-menu-language-item\"\n (click)=\"onLanguageChanged(language)\">\n {{ language.label }} ({{ language.code }})\n </div>\n </div>\n </eui-dropdown-content>\n </eui-dropdown>\n</ng-container>\n\n<ng-container *ngIf=\"isShowModal && hasLanguageSelection\">\n <button class=\"eui-language-selector-button\" (click)=\"open()\">\n <eui-icon-svg icon=\"eui-ecl-language\" size=\"l\" fillColor=\"white\"></eui-icon-svg>\n <span class=\"eui-language-selector-button__language-code\">\n {{ (appShellService.state$ | async).activeLanguage }}\n </span>\n </button>\n</ng-container>\n", "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { EuiButtonModule } from '@eui/components/eui-button';\nimport { EuiDropdownModule } from '@eui/components/eui-dropdown';\nimport { EuiDialogModule } from '@eui/components/eui-dialog';\nimport { EuiIconModule } from '@eui/components/eui-icon';\n\nimport { EuiLanguageSelectorComponent } from './language-selector.component';\nimport { EuiModalSelectorComponent } from './modal-selector/modal-selector.component';\n\n@NgModule({\n imports: [CommonModule, EuiDropdownModule, EuiButtonModule, EuiDialogModule, EuiIconModule],\n exports: [EuiLanguageSelectorComponent],\n declarations: [EuiLanguageSelectorComponent, EuiModalSelectorComponent],\n})\nexport class EuiLanguageSelectorModule {}\n"],
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW,mBAAmB,yBAAiC,cAAc;AACtF,SAAS,sBAAmC;AAE5C,SAAS,+BAA+B;;;;;AASlC,IAAO,4BAAP,MAAO,2BAAyB;EAMlC,YACY,kBAED,QAIN;AANO,SAAA,mBAAA;AAED,SAAA,SAAA;AARJ,SAAA,eAAgC,CAAA;AAChC,SAAA,wBAA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