@eui/components 19.1.1-snapshot-1740402097133 → 19.1.1-snapshot-1741071838252
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/EuiDisableContentComponent.html +167 -191
- package/docs/components/EuiEditorComponent.html +1 -1
- package/docs/components/EuiLanguageSelectorComponent.html +1 -5
- package/docs/components/EuiPageColumnComponent.html +0 -10
- package/docs/components/EuiPopoverComponent.html +1 -1
- package/docs/components/EuiWizardComponent.html +1 -1
- package/docs/dependencies.html +5 -3
- package/docs/js/menu-wc.js +7 -4
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/modules/EuiDisableContentModule.html +22 -4
- package/eui-disable-content/eui-disable-content.component.d.ts +80 -13
- package/eui-disable-content/eui-disable-content.component.d.ts.map +1 -1
- package/eui-language-selector/language-selector.component.d.ts +4 -2
- package/eui-language-selector/language-selector.component.d.ts.map +1 -1
- package/eui-page/components/eui-page-column/eui-page-column.component.d.ts.map +1 -1
- package/eui-popover/eui-popover.component.d.ts.map +1 -1
- package/eui-wizard/eui-wizard.component.d.ts +1 -0
- package/eui-wizard/eui-wizard.component.d.ts.map +1 -1
- package/externals/quill/quill-editor.component.d.ts.map +1 -1
- package/fesm2022/eui-components-eui-disable-content.mjs +109 -35
- package/fesm2022/eui-components-eui-disable-content.mjs.map +1 -1
- package/fesm2022/eui-components-eui-language-selector.mjs +14 -3
- package/fesm2022/eui-components-eui-language-selector.mjs.map +1 -1
- package/fesm2022/eui-components-eui-page.mjs +3 -4
- package/fesm2022/eui-components-eui-page.mjs.map +1 -1
- package/fesm2022/eui-components-eui-popover.mjs +3 -3
- package/fesm2022/eui-components-eui-popover.mjs.map +1 -1
- package/fesm2022/eui-components-eui-slide-toggle.mjs +2 -2
- package/fesm2022/eui-components-eui-slide-toggle.mjs.map +1 -1
- package/fesm2022/eui-components-eui-wizard.mjs +5 -4
- package/fesm2022/eui-components-eui-wizard.mjs.map +1 -1
- package/fesm2022/eui-components-externals-eui-editor.mjs +2 -2
- package/fesm2022/eui-components-externals-eui-editor.mjs.map +1 -1
- package/fesm2022/eui-components-externals-quill.mjs +2 -2
- package/fesm2022/eui-components-externals-quill.mjs.map +1 -1
- package/package.json +3 -3
@@ -87,7 +87,9 @@
|
|
87
87
|
|
88
88
|
<ol class="breadcrumb">
|
89
89
|
<li class="breadcrumb-item">Modules</li>
|
90
|
-
<li class="breadcrumb-item"
|
90
|
+
<li class="breadcrumb-item"
|
91
|
+
class="breadcrumb-item deprecated-name"
|
92
|
+
>EuiDisableContentModule</li>
|
91
93
|
</ol>
|
92
94
|
|
93
95
|
|
@@ -111,17 +113,33 @@
|
|
111
113
|
</p>
|
112
114
|
|
113
115
|
|
116
|
+
<p class="comment">
|
117
|
+
<h3 class="deprecated">Deprecated</h3>
|
118
|
+
</p>
|
119
|
+
<p class="comment">
|
120
|
+
[object Object],[object Object],[object Object]
|
121
|
+
</p>
|
114
122
|
|
123
|
+
<p class="comment">
|
124
|
+
<h3>Description</h3>
|
125
|
+
</p>
|
126
|
+
<p class="comment">
|
127
|
+
<p>Module that declares and exports the EuiDisableContentComponent</p>
|
128
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-html">import { EuiDisableContentModule } from '@eui/components/eui-disable-content';
|
129
|
+
imports: [EuiDisableContentModule],
|
130
|
+
})</code></pre></div>
|
131
|
+
</p>
|
115
132
|
|
116
133
|
|
117
134
|
<div class="container-fluid module">
|
118
135
|
<div class="row">
|
119
136
|
<div class="col-sm-3">
|
120
|
-
<h3>
|
121
|
-
title="Official documentation about module
|
137
|
+
<h3>Imports<a href="https://angular.io/api/core/NgModule#imports" target="_blank" rel="noopener noreferrer"
|
138
|
+
title="Official documentation about module imports"><span
|
139
|
+
class="icon ion-ios-information-circle-outline"></a></h3>
|
122
140
|
<ul class="list-group">
|
123
141
|
<li class="list-group-item">
|
124
|
-
<a href="../
|
142
|
+
<a href="../modules/EuiDisableContentComponent.html">EuiDisableContentComponent</a>
|
125
143
|
</li>
|
126
144
|
</ul>
|
127
145
|
</div>
|
@@ -1,29 +1,96 @@
|
|
1
|
-
import {
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
3
|
-
import { EuiGrowlService } from '@eui/core';
|
1
|
+
import { OnChanges, SimpleChange, SimpleChanges } from '@angular/core';
|
4
2
|
import * as i0 from "@angular/core";
|
5
3
|
import * as i1 from "@angular/common";
|
4
|
+
/**
|
5
|
+
* @description
|
6
|
+
* Component that provides functionality to disable content and show a visual overlay.
|
7
|
+
* When disabled, it adds a semi-transparent overlay and handles focus management.
|
8
|
+
*
|
9
|
+
* @example
|
10
|
+
* <eui-disable-content [isDisabled]="true" disabledText="Content is disabled">
|
11
|
+
* <div>Content to be disabled</div>
|
12
|
+
* </eui-disable-content>
|
13
|
+
*/
|
6
14
|
export declare class EuiDisableContentComponent implements OnChanges {
|
15
|
+
/**
|
16
|
+
* Text to display in an eui-growl (type info) notification when clicking
|
17
|
+
* the disabled content.
|
18
|
+
*/
|
19
|
+
disabledText: import("@angular/core").InputSignal<string>;
|
20
|
+
/**
|
21
|
+
* Controls whether the content is disabled. If disabled, a semi-transparent
|
22
|
+
* overlay with spinner is shown.
|
23
|
+
*/
|
24
|
+
isDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
25
|
+
/** Stores the last active element before disabling */
|
26
|
+
private lastActiveElement;
|
27
|
+
/** Reference to the component's element */
|
7
28
|
private elRef;
|
29
|
+
/** Service for displaying growl notifications */
|
8
30
|
private growlService;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
constructor(
|
31
|
+
/** Renderer for DOM manipulations */
|
32
|
+
private renderer;
|
33
|
+
/**
|
34
|
+
* Initializes the component and sets up an effect to handle disabled state changes
|
35
|
+
*/
|
36
|
+
constructor();
|
37
|
+
/**
|
38
|
+
* Handles changes to component inputs
|
39
|
+
* @param changes Object containing changed properties
|
40
|
+
*/
|
15
41
|
ngOnChanges(changes: SimpleChanges): void;
|
16
|
-
|
42
|
+
/**
|
43
|
+
* Checks if the component is about to enter a blocked state
|
44
|
+
* @param change The change object to evaluate
|
45
|
+
* @returns True if the component is transitioning to blocked state
|
46
|
+
* @deprecated It will become private in the next major version.
|
47
|
+
* @internal
|
48
|
+
*/
|
49
|
+
isAboutToBlock(change: SimpleChange): boolean;
|
50
|
+
/**
|
51
|
+
* Stores the currently active element before disabling
|
52
|
+
* @param activeElement The element to deactivate
|
53
|
+
* @deprecated It will become private in the next major version.
|
54
|
+
* @internal
|
55
|
+
*/
|
17
56
|
desactivateElement(activeElement: HTMLElement): void;
|
57
|
+
/**
|
58
|
+
* Reactivates the last active element
|
59
|
+
* @deprecated It will become private in the next major version.
|
60
|
+
* @internal
|
61
|
+
*/
|
18
62
|
reactivateElement(): void;
|
63
|
+
/**
|
64
|
+
* Gets the currently focused element within the component
|
65
|
+
* @returns The focused HTML element or null
|
66
|
+
* @deprecated It will become private in the next major version.
|
67
|
+
* @internal
|
68
|
+
*/
|
19
69
|
getActiveElement(): HTMLElement;
|
20
|
-
|
70
|
+
/**
|
71
|
+
* Handles click events on the disabled content
|
72
|
+
* Shows a growl notification if content is disabled and has disabled text
|
73
|
+
* @deprecated It will become private in the next major version.
|
74
|
+
* @internal
|
75
|
+
*/
|
76
|
+
protected onClick(): void;
|
21
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiDisableContentComponent, never>;
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiDisableContentComponent, "eui-disable-content", never, { "disabledText": { "alias": "disabledText"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, ["*"],
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiDisableContentComponent, "eui-disable-content", never, { "disabledText": { "alias": "disabledText"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
23
79
|
}
|
80
|
+
/**
|
81
|
+
* Module that declares and exports the EuiDisableContentComponent
|
82
|
+
*
|
83
|
+
* @example
|
84
|
+
* import { EuiDisableContentModule } from '@eui/components/eui-disable-content';
|
85
|
+
* @NgModule({
|
86
|
+
* imports: [EuiDisableContentModule],
|
87
|
+
* })
|
88
|
+
*
|
89
|
+
* @deprecated Use the {@link EuiDisableContentComponent} directly instead of this module.
|
90
|
+
*/
|
24
91
|
export declare class EuiDisableContentModule {
|
25
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiDisableContentModule, never>;
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiDisableContentModule,
|
93
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiDisableContentModule, never, [typeof i1.CommonModule, typeof EuiDisableContentComponent], [typeof EuiDisableContentComponent]>;
|
27
94
|
static ɵinj: i0.ɵɵInjectorDeclaration<EuiDisableContentModule>;
|
28
95
|
}
|
29
96
|
//# sourceMappingURL=eui-disable-content.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-disable-content.component.d.ts","sourceRoot":"","sources":["../../eui-disable-content/eui-disable-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"eui-disable-content.component.d.ts","sourceRoot":"","sources":["../../eui-disable-content/eui-disable-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,EASH,SAAS,EAET,YAAY,EACZ,aAAa,EAEhB,MAAM,eAAe,CAAC;;;AAIvB;;;;;;;;;GASG;AACH,qBAMa,0BAA2B,YAAW,SAAS;IACxD;;;OAGG;IACH,YAAY,8CAAa;IAEzB;;;OAGG;IACH,UAAU,qEAAgD;IAE1D,sDAAsD;IACtD,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,2CAA2C;IAC3C,OAAO,CAAC,KAAK,CAAkC;IAC/C,iDAAiD;IACjD,OAAO,CAAC,YAAY,CAA4C;IAChE,qCAAqC;IACrC,OAAO,CAAC,QAAQ,CAAgC;IAEhD;;OAEG;;IAYH;;;OAGG;IACH,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAczC;;;;;;OAMG;IACH,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAI7C;;;;;OAKG;IACH,kBAAkB,CAAC,aAAa,EAAE,WAAW,GAAG,IAAI;IAQpD;;;;OAIG;IACH,iBAAiB,IAAI,IAAI;IAMzB;;;;;OAKG;IACH,gBAAgB,IAAI,WAAW;IAI/B;;;;;OAKG;IAEH,SAAS,CAAC,OAAO,IAAI,IAAI;yCA3GhB,0BAA0B;2CAA1B,0BAA0B;CAgHtC;AAED;;;;;;;;;;GAUG;AACH,qBAIa,uBAAuB;yCAAvB,uBAAuB;0CAAvB,uBAAuB,yCAjIvB,0BAA0B,WAA1B,0BAA0B;0CAiI1B,uBAAuB;CAAG"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { OnDestroy, OnInit, ChangeDetectorRef, EventEmitter, ElementRef, AfterViewInit } from '@angular/core';
|
1
|
+
import { OnDestroy, OnInit, ChangeDetectorRef, EventEmitter, ElementRef, AfterViewInit, SimpleChanges, OnChanges } from '@angular/core';
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
3
3
|
import { EuiLanguage } from '@eui/core';
|
4
4
|
import { EuiAppShellService } from '@eui/core';
|
5
5
|
import { EuiDialogService } from '@eui/components/eui-dialog';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
export declare class EuiLanguageSelectorComponent implements OnInit, AfterViewInit, OnDestroy {
|
7
|
+
export declare class EuiLanguageSelectorComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {
|
8
8
|
private cd;
|
9
9
|
private euiDialogService;
|
10
10
|
appShellService: EuiAppShellService;
|
@@ -19,6 +19,7 @@ export declare class EuiLanguageSelectorComponent implements OnInit, AfterViewIn
|
|
19
19
|
ariaLabel: string;
|
20
20
|
languageSelectorClick: EventEmitter<null>;
|
21
21
|
private destroy$;
|
22
|
+
private isAriaLabelChanged;
|
22
23
|
constructor(cd: ChangeDetectorRef, euiDialogService: EuiDialogService, appShellService: EuiAppShellService, translateService: TranslateService, elRef: ElementRef);
|
23
24
|
/**
|
24
25
|
* returns true if there are at least one and max four languages.
|
@@ -28,6 +29,7 @@ export declare class EuiLanguageSelectorComponent implements OnInit, AfterViewIn
|
|
28
29
|
* returns true if there are at least five languages.
|
29
30
|
*/
|
30
31
|
get isShowModal(): boolean;
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
31
33
|
ngOnInit(): void;
|
32
34
|
ngAfterViewInit(): void;
|
33
35
|
ngOnDestroy(): void;
|
@@ -1 +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,EAEZ,UAAU,EACV,aAAa,
|
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,EAEZ,UAAU,EACV,aAAa,EACb,aAAa,EACb,SAAS,EACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,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,qBAOa,4BAA6B,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS;IA0BxF,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,gBAAgB;IACjB,eAAe,EAAE,kBAAkB;IAC1C,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,KAAK;IA7BjB,IACI,UAAU,IAAI,MAAM,CAQvB;IAED,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,gBAAgB,EAAE,WAAW,CAAC;IAEU,oBAAoB,UAAQ;IAC5B,iBAAiB,UAAS;IAC1B,UAAU,UAAS;IACtC,SAAS,EAAE,MAAM,CAAC;IAE7B,qBAAqB,qBAA4B;IAE3D,OAAO,CAAC,QAAQ,CAA4C;IAC5D,OAAO,CAAC,kBAAkB,CAAS;gBAGvB,EAAE,EAAE,iBAAiB,EACrB,gBAAgB,EAAE,gBAAgB,EACnC,eAAe,EAAE,kBAAkB,EAClC,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,UAAU;IAG7B;;OAEG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAOzC,QAAQ,IAAI,IAAI;IA6BhB,eAAe,IAAI,IAAI;IAevB,WAAW,IAAI,IAAI;IAKnB,iBAAiB,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAQ9C;;OAEG;IACH,MAAM,CAAC,UAAU,GAAE,MAAyE,GAAG,IAAI;IAkBnG,OAAO,IAAI,IAAI;IAIf;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW;yCA9I/C,4BAA4B;2CAA5B,4BAA4B;mDAkJ6vqC,OAAQ;gDAAR,OAAQ;yCAAR,OAAQ;CAD7yqC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-page-column.component.d.ts","sourceRoot":"","sources":["../../../../eui-page/components/eui-page-column/eui-page-column.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,MAAM,EAIN,SAAS,EACT,YAAY,EAKZ,SAAS,EAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;;AAM7D,qBA+Ba,sBAAuB,YAAW,MAAM,EAAE,SAAS;IAiEjD,SAAS,EAAE,kBAAkB;IACpC,SAAS,CAAC,mBAAmB,EAAE,mBAAmB;IAjEtD,IACI,UAAU,IAAI,MAAM,CAYvB;IAEQ,KAAK,MAAC;IACN,QAAQ,MAAC;IACT,uBAAuB,EAAE,MAAM,CAAQ;IACvC,eAAe,
|
1
|
+
{"version":3,"file":"eui-page-column.component.d.ts","sourceRoot":"","sources":["../../../../eui-page/components/eui-page-column/eui-page-column.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,MAAM,EAIN,SAAS,EACT,YAAY,EAKZ,SAAS,EAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;;AAM7D,qBA+Ba,sBAAuB,YAAW,MAAM,EAAE,SAAS;IAiEjD,SAAS,EAAE,kBAAkB;IACpC,SAAS,CAAC,mBAAmB,EAAE,mBAAmB;IAjEtD,IACI,UAAU,IAAI,MAAM,CAYvB;IAEQ,KAAK,MAAC;IACN,QAAQ,MAAC;IACT,uBAAuB,EAAE,MAAM,CAAQ;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAEK,aAAa,UAAS;IACtB,WAAW,UAAS;IACpB,kBAAkB,UAAS;IAC3B,aAAa,UAAS;IACtB,oBAAoB,UAAS;IAC7B,cAAc,UAAS;IACvB,uBAAuB,UAAS;IAChC,4BAA4B,UAAS;IACrC,mBAAmB,UAAS;IAE1D,QAAQ,oBAAsB;IAC9B,cAAc,oBAAsB;IAC9C,QAAQ,UAAS;IAEjB,oBAAoB,U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a,GAAG,IAAI;IAM5C,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,iBAAiB;yCA7KhB,mBAAmB;2CAAnB,mBAAmB;0CA2LiulC,OAAQ;6CAAR,OAAQ;4CAAR,OAAQ;CADxwlC"}
|
@@ -19,6 +19,7 @@ export declare class EuiWizardComponent implements AfterContentInit, OnChanges {
|
|
19
19
|
ngOnChanges(changes: SimpleChanges): void;
|
20
20
|
onSelectStep(step: EuiWizardStep, index: number): void;
|
21
21
|
onKeyDown(event: KeyboardEvent): void;
|
22
|
+
/** @deprecated This will be removed in next version of eUI */
|
22
23
|
protected trackByFn(index: number, item: EuiWizardStep): string;
|
23
24
|
protected selectPreviousStep(): void;
|
24
25
|
protected selectNextStep(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-wizard.component.d.ts","sourceRoot":"","sources":["../../eui-wizard/eui-wizard.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAIhB,UAAU,EACV,YAAY,EAEZ,SAAS,EAET,SAAS,EACT,aAAa,EAGhB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;;AAGzD,qBASa,kBAAmB,YAAW,gBAAgB,EAAE,SAAS;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAM;IACjC,QAAQ,SAAK;IACb,OAAO,SAAgB;IACtB,UAAU,EAAE,YAAY,CAAC,aAAa,CAAC,CAAsB;IAE9B,aAAa,EAAE,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAC5D,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAElE,aAAa,EAAE,MAAM,CAAc;IACnC,OAAO,EAAE,MAAM,CAAC;IAEwB,eAAe,UAAS;IACxB,eAAe,UAAS;IACxB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;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;yCA7crB,oBAAoB;2CAApB,oBAAoB;
|
1
|
+
{"version":3,"file":"quill-editor.component.d.ts","sourceRoot":"","sources":["../../../externals/quill/quill-editor.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAEH,WAAW,EAEX,YAAY,EACf,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACH,aAAa,EAGb,UAAU,EACV,YAAY,EAIZ,MAAM,EACN,SAAS,EACT,SAAS,EAGT,SAAS,EAET,aAAa,EAEhB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAoC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAInG,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;AAUjD,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,GAAG,EAAE,CAAC;CACpB;AAOD,qBAmBa,oBAAqB,YAAW,aAAa,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;IAiDzG,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,YAAY;IACF,OAAO,CAAC,GAAG;IAER,OAAO,CAAC,UAAU;IACvC,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,IAAI;IACgB,OAAO,CAAC,MAAM;IAC1C,OAAO,CAAC,MAAM;IAxDlB,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,EAAE,WAAW,GAAG,SAAS,CAAC;IACpC,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,CAAC,MAAM,UAAS;IAEhB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7C,KAAK,CAAC,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E,SAAS,EACnB,IAAI,EAAE,MAAM,EACgB,MAAM,EAAE,WAAW,EAC/C,MAAM,EAAE,aAAa;IAIjC,aAAa,CAAC,WAAW,CAAC,EAAE,GAAG;IAE/B,cAAc;IAGd,WAAW,gBAAiB,GAAG,iBAAiB,WAAW,KAAG,MAAM,GAAG,GAAG,CAqBxE;IAGF,WAAW,gBAAiB,GAAG,SAAS,GAAG,KAAG,GAAG,CAgB/C;IAEF,eAAe,IAAI,IAAI;IA0JvB,sBAAsB,UAAW,KAAK,GAAG,IAAI,YAAY,KAAK,GAAG,IAAI,UAAU,MAAM,KAAG,IAAI,CAyB1F;IAEF,iBAAiB,UAAW,GAAG,YAAY,GAAG,UAAU,MAAM,KAAG,IAAI,CA+BnE;IAEF,WAAW,IAAI,IAAI;IAOnB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAmCzC,UAAU,CAAC,YAAY,EAAE,GAAG,GAAG,IAAI;IAiBnC,gBAAgB,CAAC,UAAU,GAAE,OAAuB,GAAG,IAAI;IAgB3D,gBAAgB,CAAC,EAAE,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,GAAG,IAAI;IAIrD,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAIvC,QAAQ,IAAI,GAAG;IAiDf;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;yCA7crB,oBAAoB;2CAApB,oBAAoB;uCAmegztB,OAAQ;uCAAR,OAAQ;uCAAR,OAAQ;qCAAR,OAAQ;iDAAR,OAAQ;CADx1tB"}
|
@@ -1,36 +1,84 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { input, booleanAttribute, inject, ElementRef, Renderer2, effect, HostListener, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
|
-
import {
|
5
|
-
import * as i1 from '@eui/core';
|
4
|
+
import { EuiGrowlService } from '@eui/core';
|
6
5
|
|
6
|
+
/**
|
7
|
+
* @description
|
8
|
+
* Component that provides functionality to disable content and show a visual overlay.
|
9
|
+
* When disabled, it adds a semi-transparent overlay and handles focus management.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* <eui-disable-content [isDisabled]="true" disabledText="Content is disabled">
|
13
|
+
* <div>Content to be disabled</div>
|
14
|
+
* </eui-disable-content>
|
15
|
+
*/
|
7
16
|
class EuiDisableContentComponent {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
this.
|
17
|
-
|
17
|
+
/**
|
18
|
+
* Initializes the component and sets up an effect to handle disabled state changes
|
19
|
+
*/
|
20
|
+
constructor() {
|
21
|
+
/**
|
22
|
+
* Text to display in an eui-growl (type info) notification when clicking
|
23
|
+
* the disabled content.
|
24
|
+
*/
|
25
|
+
this.disabledText = input('');
|
26
|
+
/**
|
27
|
+
* Controls whether the content is disabled. If disabled, a semi-transparent
|
28
|
+
* overlay with spinner is shown.
|
29
|
+
*/
|
30
|
+
this.isDisabled = input(null, { transform: booleanAttribute });
|
31
|
+
/** Stores the last active element before disabling */
|
18
32
|
this.lastActiveElement = null;
|
33
|
+
/** Reference to the component's element */
|
34
|
+
this.elRef = inject(ElementRef);
|
35
|
+
/** Service for displaying growl notifications */
|
36
|
+
this.growlService = inject(EuiGrowlService);
|
37
|
+
/** Renderer for DOM manipulations */
|
38
|
+
this.renderer = inject(Renderer2);
|
39
|
+
effect(() => {
|
40
|
+
const disabled = this.isDisabled();
|
41
|
+
if (disabled) {
|
42
|
+
this.renderer.addClass(this.elRef.nativeElement, 'eui-disable-content--disabled');
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
this.renderer.removeClass(this.elRef.nativeElement, 'eui-disable-content--disabled');
|
46
|
+
}
|
47
|
+
});
|
19
48
|
}
|
49
|
+
/**
|
50
|
+
* Handles changes to component inputs
|
51
|
+
* @param changes Object containing changed properties
|
52
|
+
*/
|
20
53
|
ngOnChanges(changes) {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
54
|
+
if (changes['isDisabled']) {
|
55
|
+
const change = changes['isDisabled'];
|
56
|
+
const isBlocking = change.currentValue && !change.previousValue;
|
57
|
+
if (isBlocking) {
|
58
|
+
const activeElement = this.getActiveElement();
|
59
|
+
this.desactivateElement(activeElement);
|
60
|
+
}
|
61
|
+
else {
|
62
|
+
this.reactivateElement();
|
63
|
+
}
|
28
64
|
}
|
29
65
|
}
|
30
|
-
|
31
|
-
|
32
|
-
|
66
|
+
/**
|
67
|
+
* Checks if the component is about to enter a blocked state
|
68
|
+
* @param change The change object to evaluate
|
69
|
+
* @returns True if the component is transitioning to blocked state
|
70
|
+
* @deprecated It will become private in the next major version.
|
71
|
+
* @internal
|
72
|
+
*/
|
73
|
+
isAboutToBlock(change) {
|
74
|
+
return change && change.currentValue && !change.previousValue;
|
33
75
|
}
|
76
|
+
/**
|
77
|
+
* Stores the currently active element before disabling
|
78
|
+
* @param activeElement The element to deactivate
|
79
|
+
* @deprecated It will become private in the next major version.
|
80
|
+
* @internal
|
81
|
+
*/
|
34
82
|
desactivateElement(activeElement) {
|
35
83
|
if (activeElement) {
|
36
84
|
this.lastActiveElement = activeElement;
|
@@ -39,41 +87,67 @@ class EuiDisableContentComponent {
|
|
39
87
|
this.lastActiveElement = null;
|
40
88
|
}
|
41
89
|
}
|
90
|
+
/**
|
91
|
+
* Reactivates the last active element
|
92
|
+
* @deprecated It will become private in the next major version.
|
93
|
+
* @internal
|
94
|
+
*/
|
42
95
|
reactivateElement() {
|
43
96
|
if (this.lastActiveElement) {
|
44
97
|
// TODO CHECK
|
45
98
|
}
|
46
99
|
}
|
100
|
+
/**
|
101
|
+
* Gets the currently focused element within the component
|
102
|
+
* @returns The focused HTML element or null
|
103
|
+
* @deprecated It will become private in the next major version.
|
104
|
+
* @internal
|
105
|
+
*/
|
47
106
|
getActiveElement() {
|
48
107
|
return this.elRef.nativeElement.querySelector(':focus');
|
49
108
|
}
|
109
|
+
/**
|
110
|
+
* Handles click events on the disabled content
|
111
|
+
* Shows a growl notification if content is disabled and has disabled text
|
112
|
+
* @deprecated It will become private in the next major version.
|
113
|
+
* @internal
|
114
|
+
*/
|
50
115
|
onClick() {
|
51
|
-
if (this.isDisabled && this.disabledText) {
|
52
|
-
this.growlService.growlInfo(this.disabledText);
|
116
|
+
if (this.isDisabled() && this.disabledText()) {
|
117
|
+
this.growlService.growlInfo(this.disabledText());
|
53
118
|
}
|
54
119
|
}
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentComponent, deps: [
|
56
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
121
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.7", type: EuiDisableContentComponent, isStandalone: true, selector: "eui-disable-content", inputs: { disabledText: { classPropertyName: "disabledText", publicName: "disabledText", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [".eui-19 .eui-disable-content--disabled{position:relative;z-index:var(--eui-zi-overlay)}.eui-19 .eui-disable-content--disabled:before{content:\"\";display:block;height:80px;left:50%;margin:-40px 0 0 -40px;position:absolute;top:50%;width:80px;z-index:10000}.eui-19 .eui-disable-content--disabled:after{background-color:#ffffff40;content:\"\";height:100%;left:0;position:absolute;top:0;width:100%;z-index:100000}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
57
122
|
}
|
58
123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentComponent, decorators: [{
|
59
124
|
type: Component,
|
60
|
-
args: [{ selector: 'eui-disable-content', encapsulation: ViewEncapsulation.None,
|
61
|
-
}], ctorParameters: () => [
|
62
|
-
type:
|
63
|
-
|
64
|
-
type: Input
|
125
|
+
args: [{ selector: 'eui-disable-content', encapsulation: ViewEncapsulation.None, template: "<ng-content></ng-content>\n", styles: [".eui-19 .eui-disable-content--disabled{position:relative;z-index:var(--eui-zi-overlay)}.eui-19 .eui-disable-content--disabled:before{content:\"\";display:block;height:80px;left:50%;margin:-40px 0 0 -40px;position:absolute;top:50%;width:80px;z-index:10000}.eui-19 .eui-disable-content--disabled:after{background-color:#ffffff40;content:\"\";height:100%;left:0;position:absolute;top:0;width:100%;z-index:100000}\n"] }]
|
126
|
+
}], ctorParameters: () => [], propDecorators: { onClick: [{
|
127
|
+
type: HostListener,
|
128
|
+
args: ['click']
|
65
129
|
}] } });
|
130
|
+
/**
|
131
|
+
* Module that declares and exports the EuiDisableContentComponent
|
132
|
+
*
|
133
|
+
* @example
|
134
|
+
* import { EuiDisableContentModule } from '@eui/components/eui-disable-content';
|
135
|
+
* @NgModule({
|
136
|
+
* imports: [EuiDisableContentModule],
|
137
|
+
* })
|
138
|
+
*
|
139
|
+
* @deprecated Use the {@link EuiDisableContentComponent} directly instead of this module.
|
140
|
+
*/
|
66
141
|
class EuiDisableContentModule {
|
67
142
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
68
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentModule,
|
143
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentModule, imports: [CommonModule, EuiDisableContentComponent], exports: [EuiDisableContentComponent] }); }
|
69
144
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentModule, imports: [CommonModule] }); }
|
70
145
|
}
|
71
146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiDisableContentModule, decorators: [{
|
72
147
|
type: NgModule,
|
73
148
|
args: [{
|
74
|
-
imports: [CommonModule],
|
149
|
+
imports: [CommonModule, EuiDisableContentComponent],
|
75
150
|
exports: [EuiDisableContentComponent],
|
76
|
-
declarations: [EuiDisableContentComponent],
|
77
151
|
}]
|
78
152
|
}] });
|
79
153
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-components-eui-disable-content.mjs","sources":["../../eui-disable-content/eui-disable-content.component.ts","../../eui-disable-content/eui-disable-content.component.html","../../eui-disable-content/eui-components-eui-disable-content.ts"],"sourcesContent":["import {
|
1
|
+
{"version":3,"file":"eui-components-eui-disable-content.mjs","sources":["../../eui-disable-content/eui-disable-content.component.ts","../../eui-disable-content/eui-disable-content.component.html","../../eui-disable-content/eui-components-eui-disable-content.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n effect,\n ElementRef,\n HostListener,\n inject,\n input,\n NgModule,\n OnChanges,\n Renderer2,\n SimpleChange,\n SimpleChanges,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EuiGrowlService } from '@eui/core';\n\n/**\n * @description\n * Component that provides functionality to disable content and show a visual overlay.\n * When disabled, it adds a semi-transparent overlay and handles focus management.\n *\n * @example\n * <eui-disable-content [isDisabled]=\"true\" disabledText=\"Content is disabled\">\n * <div>Content to be disabled</div>\n * </eui-disable-content>\n */\n@Component({\n selector: 'eui-disable-content',\n templateUrl: './eui-disable-content.component.html',\n styleUrls: ['./eui-disable-content.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiDisableContentComponent implements OnChanges {\n /**\n * Text to display in an eui-growl (type info) notification when clicking\n * the disabled content.\n */\n disabledText = input('');\n\n /**\n * Controls whether the content is disabled. If disabled, a semi-transparent\n * overlay with spinner is shown.\n */\n isDisabled = input(null, { transform: booleanAttribute });\n\n /** Stores the last active element before disabling */\n private lastActiveElement: HTMLElement = null;\n /** Reference to the component's element */\n private elRef: ElementRef = inject(ElementRef);\n /** Service for displaying growl notifications */\n private growlService: EuiGrowlService = inject(EuiGrowlService);\n /** Renderer for DOM manipulations */\n private renderer: Renderer2 = inject(Renderer2);\n\n /**\n * Initializes the component and sets up an effect to handle disabled state changes\n */\n constructor() {\n effect(() => {\n const disabled = this.isDisabled();\n if(disabled) {\n this.renderer.addClass(this.elRef.nativeElement, 'eui-disable-content--disabled');\n } else {\n this.renderer.removeClass(this.elRef.nativeElement, 'eui-disable-content--disabled');\n }\n });\n }\n\n /**\n * Handles changes to component inputs\n * @param changes Object containing changed properties\n */\n ngOnChanges(changes: SimpleChanges): void {\n if(changes['isDisabled']) {\n const change: SimpleChange = changes['isDisabled'];\n const isBlocking = change.currentValue && !change.previousValue;\n\n if (isBlocking) {\n const activeElement = this.getActiveElement();\n this.desactivateElement(activeElement);\n } else {\n this.reactivateElement();\n }\n }\n }\n\n /**\n * Checks if the component is about to enter a blocked state\n * @param change The change object to evaluate\n * @returns True if the component is transitioning to blocked state\n * @deprecated It will become private in the next major version.\n * @internal\n */\n isAboutToBlock(change: SimpleChange): boolean {\n return change && change.currentValue && !change.previousValue;\n }\n\n /**\n * Stores the currently active element before disabling\n * @param activeElement The element to deactivate\n * @deprecated It will become private in the next major version.\n * @internal\n */\n desactivateElement(activeElement: HTMLElement): void {\n if (activeElement) {\n this.lastActiveElement = activeElement;\n } else {\n this.lastActiveElement = null;\n }\n }\n\n /**\n * Reactivates the last active element\n * @deprecated It will become private in the next major version.\n * @internal\n */\n reactivateElement(): void {\n if (this.lastActiveElement) {\n // TODO CHECK\n }\n }\n\n /**\n * Gets the currently focused element within the component\n * @returns The focused HTML element or null\n * @deprecated It will become private in the next major version.\n * @internal\n */\n getActiveElement(): HTMLElement {\n return this.elRef.nativeElement.querySelector(':focus');\n }\n\n /**\n * Handles click events on the disabled content\n * Shows a growl notification if content is disabled and has disabled text\n * @deprecated It will become private in the next major version.\n * @internal\n */\n @HostListener('click')\n protected onClick(): void {\n if (this.isDisabled() && this.disabledText()) {\n this.growlService.growlInfo(this.disabledText());\n }\n }\n}\n\n/**\n * Module that declares and exports the EuiDisableContentComponent\n *\n * @example\n * import { EuiDisableContentModule } from '@eui/components/eui-disable-content';\n * @NgModule({\n * imports: [EuiDisableContentModule],\n * })\n *\n * @deprecated Use the {@link EuiDisableContentComponent} directly instead of this module.\n */\n@NgModule({\n imports: [CommonModule, EuiDisableContentComponent],\n exports: [EuiDisableContentComponent],\n})\nexport class EuiDisableContentModule {}\n","<ng-content></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAkBA;;;;;;;;;AASG;MAOU,0BAA0B,CAAA;AAsBnC;;AAEG;AACH,IAAA,WAAA,GAAA;AAxBA;;;AAGG;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,EAAE,CAAC;AAExB;;;AAGG;QACH,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;;QAGjD,IAAiB,CAAA,iBAAA,GAAgB,IAAI;;AAErC,QAAA,IAAA,CAAA,KAAK,GAAe,MAAM,CAAC,UAAU,CAAC;;AAEtC,QAAA,IAAA,CAAA,YAAY,GAAoB,MAAM,CAAC,eAAe,CAAC;;AAEvD,QAAA,IAAA,CAAA,QAAQ,GAAc,MAAM,CAAC,SAAS,CAAC;QAM3C,MAAM,CAAC,MAAK;AACR,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE;YAClC,IAAG,QAAQ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EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAHtB,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAGb,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,CAAC;oBACnD,OAAO,EAAE,CAAC,0BAA0B,CAAC;AACxC,iBAAA;;;AElKD;;AAEG;;;;"}
|
@@ -73,7 +73,9 @@ class EuiLanguageSelectorComponent {
|
|
73
73
|
'eui-language-selector',
|
74
74
|
this.languages?.length <= 1 ? 'eui-language-selector--empty' : '',
|
75
75
|
this.isToolbarSelector ? 'eui-language-selector--toolbar-selector' : '',
|
76
|
-
]
|
76
|
+
]
|
77
|
+
.join(' ')
|
78
|
+
.trim();
|
77
79
|
}
|
78
80
|
constructor(cd, euiDialogService, appShellService, translateService, elRef) {
|
79
81
|
this.cd = cd;
|
@@ -84,9 +86,9 @@ class EuiLanguageSelectorComponent {
|
|
84
86
|
this.hasLanguageSelection = true;
|
85
87
|
this.isToolbarSelector = false;
|
86
88
|
this.euiPrimary = false;
|
87
|
-
this.ariaLabel = 'Change Language';
|
88
89
|
this.languageSelectorClick = new EventEmitter();
|
89
90
|
this.destroy$ = new Subject();
|
91
|
+
this.isAriaLabelChanged = false;
|
90
92
|
}
|
91
93
|
/**
|
92
94
|
* returns true if there are at least one and max four languages.
|
@@ -100,6 +102,12 @@ class EuiLanguageSelectorComponent {
|
|
100
102
|
get isShowModal() {
|
101
103
|
return this.languages?.length >= 4;
|
102
104
|
}
|
105
|
+
ngOnChanges(changes) {
|
106
|
+
if (changes && changes['ariaLabel']) {
|
107
|
+
this.isAriaLabelChanged = true;
|
108
|
+
this.ariaLabel = changes['ariaLabel'].currentValue;
|
109
|
+
}
|
110
|
+
}
|
103
111
|
ngOnInit() {
|
104
112
|
// update languages array based on AppShell State 'language' changes
|
105
113
|
this.appShellService.state$
|
@@ -113,6 +121,9 @@ class EuiLanguageSelectorComponent {
|
|
113
121
|
.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged('activeLanguage'), map((state) => state.activeLanguage))
|
114
122
|
.subscribe((activeLanguage) => {
|
115
123
|
this.selectedLanguage = this.getLanguage(activeLanguage);
|
124
|
+
if (!this.isAriaLabelChanged) {
|
125
|
+
this.ariaLabel = `Change Language - Current Language: ${this.selectedLanguage.label}`;
|
126
|
+
}
|
116
127
|
this.cd.detectChanges();
|
117
128
|
});
|
118
129
|
}
|
@@ -172,7 +183,7 @@ class EuiLanguageSelectorComponent {
|
|
172
183
|
return this.languages.find((lang) => lang.code === languageCode);
|
173
184
|
}
|
174
185
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiLanguageSelectorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.EuiDialogService }, { token: i2.EuiAppShellService }, { token: i3$1.TranslateService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
175
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: EuiLanguageSelectorComponent, isStandalone: false, selector: "eui-language-selector", inputs: { hasLanguageSelection: ["hasLanguageSelection", "hasLanguageSelection", booleanAttribute], isToolbarSelector: ["isToolbarSelector", "isToolbarSelector", booleanAttribute], euiPrimary: ["euiPrimary", "euiPrimary", booleanAttribute], ariaLabel: ["aria-label", "ariaLabel"] }, outputs: { languageSelectorClick: "languageSelectorClick" }, host: { properties: { "class": "this.cssClasses" } }, ngImport: i0, template: "@if (!hasLanguageSelection) {\n <button class=\"eui-language-selector__button\"\n euiButton [euiBasicButton]=\"!isToolbarSelector\"\n [euiBranding]=\"isToolbarSelector\"\n (click)=\"onClick()\"\n [attr.aria-label]=\"ariaLabel\">\n <ng-template *ngTemplateOutlet=\"languageSelectorIcon\"></ng-template>\n <span class=\"eui-language-selector__code\">{{ (appShellService.state$ | async).activeLanguage }}</span>\n </button>\n\n} @else if (hasLanguageSelection && isShowDropDown) {\n <eui-dropdown>\n <button class=\"eui-language-selector__button\"\n [attr.aria-label]=\"ariaLabel\"\n euiButton [euiBasicButton]=\"!isToolbarSelector\"\n [euiBranding]=\"isToolbarSelector\">\n <ng-template *ngTemplateOutlet=\"languageSelectorIcon\"></ng-template>\n <span class=\"eui-language-selector__code\">{{ (appShellService.state$ | async).activeLanguage }}</span>\n </button>\n\n <eui-dropdown-content>\n <div class=\"eui-language-selector-menu\">\n <button\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 </button>\n </div>\n </eui-dropdown-content>\n </eui-dropdown>\n\n} @else if (hasLanguageSelection && isShowModal) {\n <button class=\"eui-language-selector__button\"\n euiButton euiBasicButton\n [euiPrimary]=\"isToolbarSelector\"\n (click)=\"onOpen()\"\n [attr.aria-label]=\"ariaLabel\">\n <ng-template *ngTemplateOutlet=\"languageSelectorIcon\"></ng-template>\n <span class=\"eui-language-selector__code\">{{ (appShellService.state$ | async).activeLanguage }}</span>\n </button>\n}\n\n<ng-template #languageSelectorIcon>\n <eui-icon-svg icon=\"eui-ecl-global\"></eui-icon-svg>\n</ng-template>\n", styles: [".eui-19 .eui-language-selector{align-items:center;cursor:pointer;display:flex;position:relative}.eui-19 .eui-language-selector__button{padding-left:var(--eui-s-s);padding-right:var(--eui-s-s)}.eui-19 .eui-language-selector__code{text-transform:uppercase}.eui-19 .eui-language-selector-menu-language-item{padding:var(--eui-s-m);border-bottom:1px solid var(--eui-c-neutral-bg-light);text-align:center;cursor:pointer}.eui-19 .eui-language-selector-menu-language-item:hover{background:var(--eui-c-neutral-bg-light)}.eui-19 .eui-language-selector--empty{display:none}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.EuiDropdownComponent, selector: "eui-dropdown", inputs: ["e2eAttr", "tabIndex", "width", "position", "subDropdownPosition", "isBlock", "isDropDownRightAligned", "hasClosedOnClickInside", "isLabelUpdatedFromSelectedItem", "isExpandOnHover", "hasTabNavigation", "isRightClickEnabled", "euiDisabled"], outputs: ["expand"] }, { kind: "component", type: i5.EuiDropdownItemComponent, selector: "eui-dropdown-item, [euiDropdownItem]", inputs: ["subDropdown", "isActive", "isFocus"] }, { kind: "directive", type: i5.EuiDropdownContentDirective, selector: "eui-dropdown-content" }, { kind: "component", type: i3.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i7.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
186
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: EuiLanguageSelectorComponent, isStandalone: false, selector: "eui-language-selector", inputs: { hasLanguageSelection: ["hasLanguageSelection", "hasLanguageSelection", booleanAttribute], isToolbarSelector: ["isToolbarSelector", "isToolbarSelector", booleanAttribute], euiPrimary: ["euiPrimary", "euiPrimary", booleanAttribute], ariaLabel: ["aria-label", "ariaLabel"] }, outputs: { languageSelectorClick: "languageSelectorClick" }, host: { properties: { "class": "this.cssClasses" } }, usesOnChanges: true, ngImport: i0, template: "@if (!hasLanguageSelection) {\n <button class=\"eui-language-selector__button\"\n euiButton [euiBasicButton]=\"!isToolbarSelector\"\n [euiBranding]=\"isToolbarSelector\"\n (click)=\"onClick()\"\n [attr.aria-label]=\"ariaLabel\">\n <ng-template *ngTemplateOutlet=\"languageSelectorIcon\"></ng-template>\n <span class=\"eui-language-selector__code\">{{ (appShellService.state$ | async).activeLanguage }}</span>\n </button>\n\n} @else if (hasLanguageSelection && isShowDropDown) {\n <eui-dropdown>\n <button class=\"eui-language-selector__button\"\n [attr.aria-label]=\"ariaLabel\"\n euiButton [euiBasicButton]=\"!isToolbarSelector\"\n [euiBranding]=\"isToolbarSelector\">\n <ng-template *ngTemplateOutlet=\"languageSelectorIcon\"></ng-template>\n <span class=\"eui-language-selector__code\">{{ (appShellService.state$ | async).activeLanguage }}</span>\n </button>\n\n <eui-dropdown-content>\n <div class=\"eui-language-selector-menu\">\n <button\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 </button>\n </div>\n </eui-dropdown-content>\n </eui-dropdown>\n\n} @else if (hasLanguageSelection && isShowModal) {\n <button class=\"eui-language-selector__button\"\n euiButton euiBasicButton\n [euiPrimary]=\"isToolbarSelector\"\n (click)=\"onOpen()\"\n [attr.aria-label]=\"ariaLabel\">\n <ng-template *ngTemplateOutlet=\"languageSelectorIcon\"></ng-template>\n <span class=\"eui-language-selector__code\">{{ (appShellService.state$ | async).activeLanguage }}</span>\n </button>\n}\n\n<ng-template #languageSelectorIcon>\n <eui-icon-svg icon=\"eui-ecl-global\"></eui-icon-svg>\n</ng-template>\n", styles: [".eui-19 .eui-language-selector{align-items:center;cursor:pointer;display:flex;position:relative}.eui-19 .eui-language-selector__button{padding-left:var(--eui-s-s);padding-right:var(--eui-s-s)}.eui-19 .eui-language-selector__code{text-transform:uppercase}.eui-19 .eui-language-selector-menu-language-item{padding:var(--eui-s-m);border-bottom:1px solid var(--eui-c-neutral-bg-light);text-align:center;cursor:pointer}.eui-19 .eui-language-selector-menu-language-item:hover{background:var(--eui-c-neutral-bg-light)}.eui-19 .eui-language-selector--empty{display:none}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.EuiDropdownComponent, selector: "eui-dropdown", inputs: ["e2eAttr", "tabIndex", "width", "position", "subDropdownPosition", "isBlock", "isDropDownRightAligned", "hasClosedOnClickInside", "isLabelUpdatedFromSelectedItem", "isExpandOnHover", "hasTabNavigation", "isRightClickEnabled", "euiDisabled"], outputs: ["expand"] }, { kind: "component", type: i5.EuiDropdownItemComponent, selector: "eui-dropdown-item, [euiDropdownItem]", inputs: ["subDropdown", "isActive", "isFocus"] }, { kind: "directive", type: i5.EuiDropdownContentDirective, selector: "eui-dropdown-content" }, { kind: "component", type: i3.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i7.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
176
187
|
}
|
177
188
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiLanguageSelectorComponent, decorators: [{
|
178
189
|
type: Component,
|