@eui/mobile-core 14.0.0-beta.4 → 14.0.0-beta.7
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/EuimAppComponent.html +1 -1
- package/docs/components/EuimMenuComponent.html +1 -1
- package/docs/dependencies.html +5 -7
- package/docs/js/search/search_index.js +2 -2
- package/esm2020/lib/components/atoms/euim-label/euim-label.component.mjs +19 -7
- package/esm2020/lib/components/euim-base.directive.mjs +103 -35
- package/esm2020/lib/components/euim-menu/euim-menu.component.mjs +17 -15
- package/esm2020/lib/components/layout/euim-app/euim-app.component.mjs +6 -4
- package/esm2020/lib/euim-all.module.mjs +2 -2
- package/fesm2015/eui-mobile-core.mjs +239 -156
- package/fesm2015/eui-mobile-core.mjs.map +1 -1
- package/fesm2020/eui-mobile-core.mjs +234 -151
- package/fesm2020/eui-mobile-core.mjs.map +1 -1
- package/package.json +3 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export * from '@eui/base';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Directive, HostBinding, Input, Component, ViewEncapsulation, NgModule, EventEmitter,
|
|
3
|
+
import { Injectable, Directive, HostBinding, Input, Component, ViewEncapsulation, NgModule, EventEmitter, Output, ChangeDetectionStrategy } from '@angular/core';
|
|
4
4
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
5
5
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i4 from '@angular/common';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
|
-
import * as i1 from '@ionic/angular';
|
|
8
|
+
import * as i1$1 from '@ionic/angular';
|
|
9
9
|
import { IonicModule } from '@ionic/angular';
|
|
10
|
-
import
|
|
11
|
-
import * as i5 from '@eui/ecl-core';
|
|
12
|
-
import { EclLanguageService, EclDefaultLanguageService, EclLanguageListComponentModule, EclLinkDirectiveModule, EclIconComponentModule } from '@eui/ecl-core';
|
|
13
|
-
import * as i2$1 from '@eui/core';
|
|
10
|
+
import * as i2 from '@eui/core';
|
|
14
11
|
import { UxEuLanguages } from '@eui/core';
|
|
15
|
-
import * as i1
|
|
12
|
+
import * as i1 from '@ngx-translate/core';
|
|
16
13
|
import { TranslateModule } from '@ngx-translate/core';
|
|
17
14
|
import { takeUntil, distinctUntilKeyChanged } from 'rxjs/operators';
|
|
15
|
+
import * as i5 from '@eui/ecl-core';
|
|
16
|
+
import { EclLanguageService, EclDefaultLanguageService, EclLanguageListComponentModule, EclLinkDirectiveModule, EclIconComponentModule } from '@eui/ecl-core';
|
|
17
|
+
import { RouterModule } from '@angular/router';
|
|
18
18
|
|
|
19
19
|
const initialState = {
|
|
20
20
|
isLanguageListVisible: false,
|
|
@@ -69,41 +69,109 @@ class EuimBaseDirective {
|
|
|
69
69
|
this._euiSize4XL = false;
|
|
70
70
|
}
|
|
71
71
|
// TYPECLASS
|
|
72
|
-
get euiPrimary() {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
set
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
get
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
set
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
get
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
set
|
|
72
|
+
get euiPrimary() {
|
|
73
|
+
return this._euiPrimary;
|
|
74
|
+
}
|
|
75
|
+
set euiPrimary(value) {
|
|
76
|
+
this._euiPrimary = coerceBooleanProperty(value);
|
|
77
|
+
}
|
|
78
|
+
get euiSecondary() {
|
|
79
|
+
return this._euiSecondary;
|
|
80
|
+
}
|
|
81
|
+
set euiSecondary(value) {
|
|
82
|
+
this._euiSecondary = coerceBooleanProperty(value);
|
|
83
|
+
}
|
|
84
|
+
get euiInfo() {
|
|
85
|
+
return this._euiInfo;
|
|
86
|
+
}
|
|
87
|
+
set euiInfo(value) {
|
|
88
|
+
this._euiInfo = coerceBooleanProperty(value);
|
|
89
|
+
}
|
|
90
|
+
get euiSuccess() {
|
|
91
|
+
return this._euiSuccess;
|
|
92
|
+
}
|
|
93
|
+
set euiSuccess(value) {
|
|
94
|
+
this._euiSuccess = coerceBooleanProperty(value);
|
|
95
|
+
}
|
|
96
|
+
get euiWarning() {
|
|
97
|
+
return this._euiWarning;
|
|
98
|
+
}
|
|
99
|
+
set euiWarning(value) {
|
|
100
|
+
this._euiWarning = coerceBooleanProperty(value);
|
|
101
|
+
}
|
|
102
|
+
get euiDanger() {
|
|
103
|
+
return this._euiDanger;
|
|
104
|
+
}
|
|
105
|
+
set euiDanger(value) {
|
|
106
|
+
this._euiDanger = coerceBooleanProperty(value);
|
|
107
|
+
}
|
|
108
|
+
get euiAccent() {
|
|
109
|
+
return this._euiAccent;
|
|
110
|
+
}
|
|
111
|
+
set euiAccent(value) {
|
|
112
|
+
this._euiAccent = coerceBooleanProperty(value);
|
|
113
|
+
}
|
|
114
|
+
get euiInverted() {
|
|
115
|
+
return this._euiInverted;
|
|
116
|
+
}
|
|
117
|
+
set euiInverted(value) {
|
|
118
|
+
this._euiInverted = coerceBooleanProperty(value);
|
|
119
|
+
}
|
|
88
120
|
// SIZES
|
|
89
|
-
get euiSize2XS() {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
set
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
get
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
set
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
get
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
set
|
|
105
|
-
|
|
106
|
-
|
|
121
|
+
get euiSize2XS() {
|
|
122
|
+
return this._euiSize2XS;
|
|
123
|
+
}
|
|
124
|
+
set euiSize2XS(value) {
|
|
125
|
+
this._euiSize2XS = coerceBooleanProperty(value);
|
|
126
|
+
}
|
|
127
|
+
get euiSizeXS() {
|
|
128
|
+
return this._euiSizeXS;
|
|
129
|
+
}
|
|
130
|
+
set euiSizeXS(value) {
|
|
131
|
+
this._euiSizeXS = coerceBooleanProperty(value);
|
|
132
|
+
}
|
|
133
|
+
get euiSizeS() {
|
|
134
|
+
return this._euiSizeS;
|
|
135
|
+
}
|
|
136
|
+
set euiSizeS(value) {
|
|
137
|
+
this._euiSizeS = coerceBooleanProperty(value);
|
|
138
|
+
}
|
|
139
|
+
get euiSizeM() {
|
|
140
|
+
return this._euiSizeM;
|
|
141
|
+
}
|
|
142
|
+
set euiSizeM(value) {
|
|
143
|
+
this._euiSizeM = coerceBooleanProperty(value);
|
|
144
|
+
}
|
|
145
|
+
get euiSizeL() {
|
|
146
|
+
return this._euiSizeL;
|
|
147
|
+
}
|
|
148
|
+
set euiSizeL(value) {
|
|
149
|
+
this._euiSizeL = coerceBooleanProperty(value);
|
|
150
|
+
}
|
|
151
|
+
get euiSizeXL() {
|
|
152
|
+
return this._euiSizeXL;
|
|
153
|
+
}
|
|
154
|
+
set euiSizeXL(value) {
|
|
155
|
+
this._euiSizeXL = coerceBooleanProperty(value);
|
|
156
|
+
}
|
|
157
|
+
get euiSize2XL() {
|
|
158
|
+
return this._euiSize2XL;
|
|
159
|
+
}
|
|
160
|
+
set euiSize2XL(value) {
|
|
161
|
+
this._euiSize2XL = coerceBooleanProperty(value);
|
|
162
|
+
}
|
|
163
|
+
get euiSize3XL() {
|
|
164
|
+
return this._euiSize3XL;
|
|
165
|
+
}
|
|
166
|
+
set euiSize3XL(value) {
|
|
167
|
+
this._euiSize3XL = coerceBooleanProperty(value);
|
|
168
|
+
}
|
|
169
|
+
get euiSize4XL() {
|
|
170
|
+
return this._euiSize4XL;
|
|
171
|
+
}
|
|
172
|
+
set euiSize4XL(value) {
|
|
173
|
+
this._euiSize4XL = coerceBooleanProperty(value);
|
|
174
|
+
}
|
|
107
175
|
getCssClasses(rootClass) {
|
|
108
176
|
return [
|
|
109
177
|
rootClass,
|
|
@@ -186,12 +254,24 @@ class EuimLabelComponent extends EuimBaseDirective {
|
|
|
186
254
|
this._euimLabelSubTitle = false;
|
|
187
255
|
this._euimLabelMeta = false;
|
|
188
256
|
}
|
|
189
|
-
get euimLabelTitle() {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
set
|
|
193
|
-
|
|
194
|
-
|
|
257
|
+
get euimLabelTitle() {
|
|
258
|
+
return this._euimLabelTitle;
|
|
259
|
+
}
|
|
260
|
+
set euimLabelTitle(value) {
|
|
261
|
+
this._euimLabelTitle = coerceBooleanProperty(value);
|
|
262
|
+
}
|
|
263
|
+
get euimLabelSubTitle() {
|
|
264
|
+
return this._euimLabelSubTitle;
|
|
265
|
+
}
|
|
266
|
+
set euimLabelSubTitle(value) {
|
|
267
|
+
this._euimLabelSubTitle = coerceBooleanProperty(value);
|
|
268
|
+
}
|
|
269
|
+
get euimLabelMeta() {
|
|
270
|
+
return this._euimLabelMeta;
|
|
271
|
+
}
|
|
272
|
+
set euimLabelMeta(value) {
|
|
273
|
+
this._euimLabelMeta = coerceBooleanProperty(value);
|
|
274
|
+
}
|
|
195
275
|
get cssClasses() {
|
|
196
276
|
return this.getCssClasses();
|
|
197
277
|
}
|
|
@@ -370,6 +450,80 @@ class EuimControlFeedbackModule {
|
|
|
370
450
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(EuimControlFeedbackModule, { declarations: [EuimControlFeedbackComponent], imports: [CommonModule,
|
|
371
451
|
IonicModule], exports: [EuimControlFeedbackComponent] }); })();
|
|
372
452
|
|
|
453
|
+
function EuimLanguageListComponent_ecl_language_list_item_2_Template(rf, ctx) { if (rf & 1) {
|
|
454
|
+
i0.ɵɵelement(0, "ecl-language-list-item", 2);
|
|
455
|
+
} if (rf & 2) {
|
|
456
|
+
const language_r1 = ctx.$implicit;
|
|
457
|
+
i0.ɵɵproperty("languageCode", language_r1.code)("languageLabel", language_r1.label);
|
|
458
|
+
} }
|
|
459
|
+
class EuimLanguageListComponent extends EuimBaseDirective {
|
|
460
|
+
constructor(cd, translateService, appShellService, appService) {
|
|
461
|
+
super();
|
|
462
|
+
this.cd = cd;
|
|
463
|
+
this.translateService = translateService;
|
|
464
|
+
this.appShellService = appShellService;
|
|
465
|
+
this.appService = appService;
|
|
466
|
+
this.languageSelected = new EventEmitter();
|
|
467
|
+
this.destroy$ = new Subject();
|
|
468
|
+
}
|
|
469
|
+
ngOnInit() {
|
|
470
|
+
this.appShellService.state$.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged('languages')).subscribe((state) => {
|
|
471
|
+
this.languages = (state.languages) ?
|
|
472
|
+
UxEuLanguages.getOrderedLanguages(state.languages) :
|
|
473
|
+
UxEuLanguages.getLanguages();
|
|
474
|
+
this.cd.detectChanges();
|
|
475
|
+
});
|
|
476
|
+
this.appShellService.state$.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged('activeLanguage')).subscribe((state) => {
|
|
477
|
+
this.selectedLanguage = {
|
|
478
|
+
code: state.activeLanguage,
|
|
479
|
+
label: this.getLanguageLabel(state.activeLanguage),
|
|
480
|
+
};
|
|
481
|
+
this.cd.detectChanges();
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
ngOnDestroy() {
|
|
485
|
+
this.destroy$.next(true);
|
|
486
|
+
this.destroy$.unsubscribe();
|
|
487
|
+
}
|
|
488
|
+
onLanguageSelected(evt) {
|
|
489
|
+
this.translateService.use(evt.language.code);
|
|
490
|
+
this.appService.isLanguageListVisible = false;
|
|
491
|
+
this.appShellService.setState({
|
|
492
|
+
...this.appShellService.state,
|
|
493
|
+
activeLanguage: evt.language.code,
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
onLanguageListClose() {
|
|
497
|
+
this.appService.isLanguageListVisible = false;
|
|
498
|
+
}
|
|
499
|
+
getLanguageLabel(languageCode) {
|
|
500
|
+
for (const language of this.languages) {
|
|
501
|
+
if (language.code === languageCode) {
|
|
502
|
+
return language.label;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
/** @nocollapse */ EuimLanguageListComponent.ɵfac = function EuimLanguageListComponent_Factory(t) { return new (t || EuimLanguageListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.TranslateService), i0.ɵɵdirectiveInject(i2.UxAppShellService), i0.ɵɵdirectiveInject(EuimAppService)); };
|
|
509
|
+
/** @nocollapse */ EuimLanguageListComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimLanguageListComponent, selectors: [["euim-language-list"]], outputs: { languageSelected: "languageSelected" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [[3, "selectedLanguageCode", "isOverlay", "isHidden", "languageSelected", "close"], [3, "languageCode", "languageLabel", 4, "ngFor", "ngForOf"], [3, "languageCode", "languageLabel"]], template: function EuimLanguageListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
510
|
+
i0.ɵɵelementStart(0, "ecl-language-list", 0);
|
|
511
|
+
i0.ɵɵlistener("languageSelected", function EuimLanguageListComponent_Template_ecl_language_list_languageSelected_0_listener($event) { return ctx.onLanguageSelected($event); })("close", function EuimLanguageListComponent_Template_ecl_language_list_close_0_listener() { return ctx.onLanguageListClose(); });
|
|
512
|
+
i0.ɵɵpipe(1, "async");
|
|
513
|
+
i0.ɵɵtemplate(2, EuimLanguageListComponent_ecl_language_list_item_2_Template, 1, 2, "ecl-language-list-item", 1);
|
|
514
|
+
i0.ɵɵelementEnd();
|
|
515
|
+
} if (rf & 2) {
|
|
516
|
+
i0.ɵɵproperty("selectedLanguageCode", ctx.selectedLanguage == null ? null : ctx.selectedLanguage.code)("isOverlay", true)("isHidden", !i0.ɵɵpipeBind1(1, 4, ctx.appService.state$).isLanguageListVisible);
|
|
517
|
+
i0.ɵɵadvance(2);
|
|
518
|
+
i0.ɵɵproperty("ngForOf", ctx.languages);
|
|
519
|
+
} }, dependencies: [i4.NgForOf, i5.EclLanguageListComponent, i5.EclLanguageListItemComponent, i4.AsyncPipe], encapsulation: 2 });
|
|
520
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimLanguageListComponent, [{
|
|
521
|
+
type: Component,
|
|
522
|
+
args: [{ selector: 'euim-language-list', template: "<ecl-language-list\n [selectedLanguageCode]=\"selectedLanguage?.code\"\n [isOverlay]=\"true\"\n [isHidden]=\"!(appService.state$ | async).isLanguageListVisible\"\n (languageSelected)=\"onLanguageSelected($event)\"\n (close)=\"onLanguageListClose()\">\n <ecl-language-list-item\n *ngFor=\"let language of languages\"\n [languageCode]=\"language.code\"\n [languageLabel]=\"language.label\">\n </ecl-language-list-item>\n</ecl-language-list>\n" }]
|
|
523
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.TranslateService }, { type: i2.UxAppShellService }, { type: EuimAppService }]; }, { languageSelected: [{
|
|
524
|
+
type: Output
|
|
525
|
+
}] }); })();
|
|
526
|
+
|
|
373
527
|
const _c0$i = ["*"];
|
|
374
528
|
class EuimAppComponent extends EuimBaseDirective {
|
|
375
529
|
constructor(asService) {
|
|
@@ -379,24 +533,25 @@ class EuimAppComponent extends EuimBaseDirective {
|
|
|
379
533
|
}
|
|
380
534
|
}
|
|
381
535
|
/** @nocollapse */ EuimAppComponent.ɵfac = function EuimAppComponent_Factory(t) { return new (t || EuimAppComponent)(i0.ɵɵdirectiveInject(EuimAppService)); };
|
|
382
|
-
/** @nocollapse */ EuimAppComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimAppComponent, selectors: [["euim-app"]], inputs: { ionMenuId: "ionMenuId" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$i, decls:
|
|
536
|
+
/** @nocollapse */ EuimAppComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimAppComponent, selectors: [["euim-app"]], inputs: { ionMenuId: "ionMenuId" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$i, decls: 4, vars: 1, consts: [[3, "id"]], template: function EuimAppComponent_Template(rf, ctx) { if (rf & 1) {
|
|
383
537
|
i0.ɵɵprojectionDef();
|
|
384
538
|
i0.ɵɵelementStart(0, "ion-app");
|
|
385
539
|
i0.ɵɵprojection(1);
|
|
386
540
|
i0.ɵɵelement(2, "ion-router-outlet", 0);
|
|
387
541
|
i0.ɵɵelementEnd();
|
|
542
|
+
i0.ɵɵelement(3, "euim-language-list");
|
|
388
543
|
} if (rf & 2) {
|
|
389
544
|
i0.ɵɵadvance(2);
|
|
390
545
|
i0.ɵɵpropertyInterpolate("id", ctx.ionMenuId);
|
|
391
|
-
} }, dependencies: [i1.IonApp, i1.IonRouterOutlet], encapsulation: 2 });
|
|
546
|
+
} }, dependencies: [i1$1.IonApp, i1$1.IonRouterOutlet, EuimLanguageListComponent], encapsulation: 2 });
|
|
392
547
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimAppComponent, [{
|
|
393
548
|
type: Component,
|
|
394
|
-
args: [{ selector: 'euim-app', template: "<ion-app>\n <ng-content></ng-content>\n <ion-router-outlet id=\"{{ionMenuId}}\"></ion-router-outlet>\n</ion-app>\n\n
|
|
549
|
+
args: [{ selector: 'euim-app', template: "<ion-app>\n <ng-content></ng-content>\n <ion-router-outlet id=\"{{ionMenuId}}\"></ion-router-outlet>\n</ion-app>\n\n<euim-language-list></euim-language-list>\n" }]
|
|
395
550
|
}], function () { return [{ type: EuimAppService }]; }, { ionMenuId: [{
|
|
396
551
|
type: Input
|
|
397
552
|
}] }); })();
|
|
398
553
|
|
|
399
|
-
function
|
|
554
|
+
function EuimMenuComponent_ng_container_1_ion_list_header_2_Template(rf, ctx) { if (rf & 1) {
|
|
400
555
|
i0.ɵɵelementStart(0, "ion-list-header");
|
|
401
556
|
i0.ɵɵtext(1);
|
|
402
557
|
i0.ɵɵelementEnd();
|
|
@@ -405,17 +560,17 @@ function EuimMenuComponent_ng_container_1_ion_list_header_1_Template(rf, ctx) {
|
|
|
405
560
|
i0.ɵɵadvance(1);
|
|
406
561
|
i0.ɵɵtextInterpolate1(" ", item_r1.subtitle, " ");
|
|
407
562
|
} }
|
|
408
|
-
function
|
|
409
|
-
i0.ɵɵelement(0, "ion-icon",
|
|
563
|
+
function EuimMenuComponent_ng_container_1_ion_item_3_ion_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
564
|
+
i0.ɵɵelement(0, "ion-icon", 6);
|
|
410
565
|
} if (rf & 2) {
|
|
411
566
|
const item_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
412
567
|
i0.ɵɵproperty("name", item_r1.icon)("color", item_r1.iconColor);
|
|
413
568
|
} }
|
|
414
|
-
function
|
|
569
|
+
function EuimMenuComponent_ng_container_1_ion_item_3_Template(rf, ctx) { if (rf & 1) {
|
|
415
570
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
416
|
-
i0.ɵɵelementStart(0, "ion-item",
|
|
417
|
-
i0.ɵɵlistener("click", function
|
|
418
|
-
i0.ɵɵtemplate(1,
|
|
571
|
+
i0.ɵɵelementStart(0, "ion-item", 4);
|
|
572
|
+
i0.ɵɵlistener("click", function EuimMenuComponent_ng_container_1_ion_item_3_Template_ion_item_click_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); const item_r1 = ctx_r9.$implicit; const i_r2 = ctx_r9.index; const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onItemClick($event, item_r1.url, i_r2, item_r1)); });
|
|
573
|
+
i0.ɵɵtemplate(1, EuimMenuComponent_ng_container_1_ion_item_3_ion_icon_1_Template, 1, 2, "ion-icon", 5);
|
|
419
574
|
i0.ɵɵelementStart(2, "ion-label");
|
|
420
575
|
i0.ɵɵtext(3);
|
|
421
576
|
i0.ɵɵelementEnd()();
|
|
@@ -429,12 +584,14 @@ function EuimMenuComponent_ng_container_1_ion_item_2_Template(rf, ctx) { if (rf
|
|
|
429
584
|
} }
|
|
430
585
|
function EuimMenuComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
431
586
|
i0.ɵɵelementContainerStart(0);
|
|
432
|
-
i0.ɵɵ
|
|
433
|
-
i0.ɵɵtemplate(2,
|
|
587
|
+
i0.ɵɵelementStart(1, "ion-menu-toggle", 1);
|
|
588
|
+
i0.ɵɵtemplate(2, EuimMenuComponent_ng_container_1_ion_list_header_2_Template, 2, 1, "ion-list-header", 2);
|
|
589
|
+
i0.ɵɵtemplate(3, EuimMenuComponent_ng_container_1_ion_item_3_Template, 4, 3, "ion-item", 3);
|
|
590
|
+
i0.ɵɵelementEnd();
|
|
434
591
|
i0.ɵɵelementContainerEnd();
|
|
435
592
|
} if (rf & 2) {
|
|
436
593
|
const item_r1 = ctx.$implicit;
|
|
437
|
-
i0.ɵɵadvance(
|
|
594
|
+
i0.ɵɵadvance(2);
|
|
438
595
|
i0.ɵɵproperty("ngIf", item_r1.subtitle);
|
|
439
596
|
i0.ɵɵadvance(1);
|
|
440
597
|
i0.ɵɵproperty("ngIf", item_r1.label);
|
|
@@ -457,19 +614,19 @@ class EuimMenuComponent extends EuimBaseDirective {
|
|
|
457
614
|
this.itemClick.emit(item);
|
|
458
615
|
}
|
|
459
616
|
}
|
|
460
|
-
/** @nocollapse */ EuimMenuComponent.ɵfac = function EuimMenuComponent_Factory(t) { return new (t || EuimMenuComponent)(i0.ɵɵdirectiveInject(i1.NavController)); };
|
|
461
|
-
/** @nocollapse */ EuimMenuComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimMenuComponent, selectors: [["euim-menu"]], inputs: { items: "items" }, outputs: { itemClick: "itemClick" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[4, "ngFor", "ngForOf"], [4, "ngIf"], ["button", "", "class", "euim-menu__ion-item", 3, "lines", "click", 4, "ngIf"], ["button", "", 1, "euim-menu__ion-item", 3, "lines", "click"], [3, "name", "color", 4, "ngIf"], [3, "name", "color"]], template: function EuimMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
617
|
+
/** @nocollapse */ EuimMenuComponent.ɵfac = function EuimMenuComponent_Factory(t) { return new (t || EuimMenuComponent)(i0.ɵɵdirectiveInject(i1$1.NavController)); };
|
|
618
|
+
/** @nocollapse */ EuimMenuComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimMenuComponent, selectors: [["euim-menu"]], inputs: { items: "items" }, outputs: { itemClick: "itemClick" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[4, "ngFor", "ngForOf"], ["auto-hide", "true"], [4, "ngIf"], ["button", "", "class", "euim-menu__ion-item", 3, "lines", "click", 4, "ngIf"], ["button", "", 1, "euim-menu__ion-item", 3, "lines", "click"], [3, "name", "color", 4, "ngIf"], [3, "name", "color"]], template: function EuimMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
462
619
|
i0.ɵɵelementStart(0, "ion-list");
|
|
463
|
-
i0.ɵɵtemplate(1, EuimMenuComponent_ng_container_1_Template,
|
|
620
|
+
i0.ɵɵtemplate(1, EuimMenuComponent_ng_container_1_Template, 4, 2, "ng-container", 0);
|
|
464
621
|
i0.ɵɵelementEnd();
|
|
465
622
|
} if (rf & 2) {
|
|
466
623
|
i0.ɵɵadvance(1);
|
|
467
624
|
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
468
|
-
} }, dependencies: [
|
|
625
|
+
} }, dependencies: [i4.NgForOf, i4.NgIf, i1$1.IonIcon, i1$1.IonItem, i1$1.IonLabel, i1$1.IonList, i1$1.IonListHeader, i1$1.IonMenuToggle], styles: [".euim-menu__ion-item{--padding-start: 0px;--inner-padding-start: var(--eui-base-spacing-xs)}.euim-menu__ion-item ion-icon{margin-left:var(--eui-base-spacing-xs)}.euim-menu__ion-item ion-label{margin-left:var(--eui-base-spacing-xs)}\n"], encapsulation: 2, changeDetection: 0 });
|
|
469
626
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimMenuComponent, [{
|
|
470
627
|
type: Component,
|
|
471
|
-
args: [{ selector: 'euim-menu', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ion-list >\n <ng-container *ngFor=\"let item of items; let i = index\">\n <ion-list-header *ngIf=\"item.subtitle\"> {{item.subtitle}} </ion-list-header>\n
|
|
472
|
-
}], function () { return [{ type: i1.NavController }]; }, { items: [{
|
|
628
|
+
args: [{ selector: 'euim-menu', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ion-list >\n <ng-container *ngFor=\"let item of items; let i = index\">\n <ion-menu-toggle auto-hide=\"true\">\n <ion-list-header *ngIf=\"item.subtitle\"> {{item.subtitle}} </ion-list-header>\n <ion-item *ngIf=\"item.label\" button class=\"euim-menu__ion-item\" [lines]=\"item.lines ? item.lines : 'none'\"\n (click)=\"onItemClick($event, (item.url), i, item)\">\n <ion-icon *ngIf=\"item.icon\"\n [name]=\"item.icon\"\n [color]=\"item.iconColor\"></ion-icon>\n <ion-label>{{item.label}}</ion-label>\n </ion-item>\n </ion-menu-toggle>\n </ng-container>\n</ion-list>\n", styles: [".euim-menu__ion-item{--padding-start: 0px;--inner-padding-start: var(--eui-base-spacing-xs)}.euim-menu__ion-item ion-icon{margin-left:var(--eui-base-spacing-xs)}.euim-menu__ion-item ion-label{margin-left:var(--eui-base-spacing-xs)}\n"] }]
|
|
629
|
+
}], function () { return [{ type: i1$1.NavController }]; }, { items: [{
|
|
473
630
|
type: Input
|
|
474
631
|
}], itemClick: [{
|
|
475
632
|
type: Output
|
|
@@ -532,7 +689,7 @@ class EuimAppSidebarComponent extends EuimBaseDirective {
|
|
|
532
689
|
} if (rf & 2) {
|
|
533
690
|
i0.ɵɵpropertyInterpolate("contentId", ctx.ionMenuId);
|
|
534
691
|
i0.ɵɵpropertyInterpolate("menuId", ctx.ionMenuId);
|
|
535
|
-
} }, dependencies: [i1.IonContent, i1.IonFooter, i1.IonMenu, i1.IonToolbar], encapsulation: 2 });
|
|
692
|
+
} }, dependencies: [i1$1.IonContent, i1$1.IonFooter, i1$1.IonMenu, i1$1.IonToolbar], encapsulation: 2 });
|
|
536
693
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimAppSidebarComponent, [{
|
|
537
694
|
type: Component,
|
|
538
695
|
args: [{ selector: 'euim-app-sidebar', template: "<ion-menu side=\"start\" contentId=\"{{ionMenuId}}\" menuId=\"{{ionMenuId}}\">\n <ion-toolbar>\n <ng-content select=\"euim-app-sidebar-header\"></ng-content>\n </ion-toolbar>\n <ion-content>\n <ng-content select=\"euim-app-sidebar-menu\"></ng-content>\n </ion-content>\n <ion-footer >\n <ng-content select=\"euim-app-sidebar-footer\"></ng-content>\n </ion-footer>\n</ion-menu>\n" }]
|
|
@@ -642,80 +799,6 @@ class EuimAppSidebarModule {
|
|
|
642
799
|
EuimAppSidebarFooterComponent,
|
|
643
800
|
EuimAppSidebarMenuComponent] }); })();
|
|
644
801
|
|
|
645
|
-
function EuimLanguageListComponent_ecl_language_list_item_2_Template(rf, ctx) { if (rf & 1) {
|
|
646
|
-
i0.ɵɵelement(0, "ecl-language-list-item", 2);
|
|
647
|
-
} if (rf & 2) {
|
|
648
|
-
const language_r1 = ctx.$implicit;
|
|
649
|
-
i0.ɵɵproperty("languageCode", language_r1.code)("languageLabel", language_r1.label);
|
|
650
|
-
} }
|
|
651
|
-
class EuimLanguageListComponent extends EuimBaseDirective {
|
|
652
|
-
constructor(cd, translateService, appShellService, appService) {
|
|
653
|
-
super();
|
|
654
|
-
this.cd = cd;
|
|
655
|
-
this.translateService = translateService;
|
|
656
|
-
this.appShellService = appShellService;
|
|
657
|
-
this.appService = appService;
|
|
658
|
-
this.languageSelected = new EventEmitter();
|
|
659
|
-
this.destroy$ = new Subject();
|
|
660
|
-
}
|
|
661
|
-
ngOnInit() {
|
|
662
|
-
this.appShellService.state$.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged('languages')).subscribe((state) => {
|
|
663
|
-
this.languages = (state.languages) ?
|
|
664
|
-
UxEuLanguages.getOrderedLanguages(state.languages) :
|
|
665
|
-
UxEuLanguages.getLanguages();
|
|
666
|
-
this.cd.detectChanges();
|
|
667
|
-
});
|
|
668
|
-
this.appShellService.state$.pipe(takeUntil(this.destroy$), distinctUntilKeyChanged('activeLanguage')).subscribe((state) => {
|
|
669
|
-
this.selectedLanguage = {
|
|
670
|
-
code: state.activeLanguage,
|
|
671
|
-
label: this.getLanguageLabel(state.activeLanguage),
|
|
672
|
-
};
|
|
673
|
-
this.cd.detectChanges();
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
ngOnDestroy() {
|
|
677
|
-
this.destroy$.next(true);
|
|
678
|
-
this.destroy$.unsubscribe();
|
|
679
|
-
}
|
|
680
|
-
onLanguageSelected(evt) {
|
|
681
|
-
this.translateService.use(evt.language.code);
|
|
682
|
-
this.appService.isLanguageListVisible = false;
|
|
683
|
-
this.appShellService.setState({
|
|
684
|
-
...this.appShellService.state,
|
|
685
|
-
activeLanguage: evt.language.code,
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
onLanguageListClose() {
|
|
689
|
-
this.appService.isLanguageListVisible = false;
|
|
690
|
-
}
|
|
691
|
-
getLanguageLabel(languageCode) {
|
|
692
|
-
for (const language of this.languages) {
|
|
693
|
-
if (language.code === languageCode) {
|
|
694
|
-
return language.label;
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
return;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
/** @nocollapse */ EuimLanguageListComponent.ɵfac = function EuimLanguageListComponent_Factory(t) { return new (t || EuimLanguageListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.TranslateService), i0.ɵɵdirectiveInject(i2$1.UxAppShellService), i0.ɵɵdirectiveInject(EuimAppService)); };
|
|
701
|
-
/** @nocollapse */ EuimLanguageListComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimLanguageListComponent, selectors: [["euim-language-list"]], outputs: { languageSelected: "languageSelected" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [[3, "selectedLanguageCode", "isOverlay", "isHidden", "languageSelected", "close"], [3, "languageCode", "languageLabel", 4, "ngFor", "ngForOf"], [3, "languageCode", "languageLabel"]], template: function EuimLanguageListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
702
|
-
i0.ɵɵelementStart(0, "ecl-language-list", 0);
|
|
703
|
-
i0.ɵɵlistener("languageSelected", function EuimLanguageListComponent_Template_ecl_language_list_languageSelected_0_listener($event) { return ctx.onLanguageSelected($event); })("close", function EuimLanguageListComponent_Template_ecl_language_list_close_0_listener() { return ctx.onLanguageListClose(); });
|
|
704
|
-
i0.ɵɵpipe(1, "async");
|
|
705
|
-
i0.ɵɵtemplate(2, EuimLanguageListComponent_ecl_language_list_item_2_Template, 1, 2, "ecl-language-list-item", 1);
|
|
706
|
-
i0.ɵɵelementEnd();
|
|
707
|
-
} if (rf & 2) {
|
|
708
|
-
i0.ɵɵproperty("selectedLanguageCode", ctx.selectedLanguage == null ? null : ctx.selectedLanguage.code)("isOverlay", true)("isHidden", !i0.ɵɵpipeBind1(1, 4, ctx.appService.state$).isLanguageListVisible);
|
|
709
|
-
i0.ɵɵadvance(2);
|
|
710
|
-
i0.ɵɵproperty("ngForOf", ctx.languages);
|
|
711
|
-
} }, dependencies: [i2.NgForOf, i5.EclLanguageListComponent, i5.EclLanguageListItemComponent, i2.AsyncPipe], encapsulation: 2 });
|
|
712
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimLanguageListComponent, [{
|
|
713
|
-
type: Component,
|
|
714
|
-
args: [{ selector: 'euim-language-list', template: "<ecl-language-list\n [selectedLanguageCode]=\"selectedLanguage?.code\"\n [isOverlay]=\"true\"\n [isHidden]=\"!(appService.state$ | async).isLanguageListVisible\"\n (languageSelected)=\"onLanguageSelected($event)\"\n (close)=\"onLanguageListClose()\">\n <ecl-language-list-item\n *ngFor=\"let language of languages\"\n [languageCode]=\"language.code\"\n [languageLabel]=\"language.label\">\n </ecl-language-list-item>\n</ecl-language-list>\n" }]
|
|
715
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.TranslateService }, { type: i2$1.UxAppShellService }, { type: EuimAppService }]; }, { languageSelected: [{
|
|
716
|
-
type: Output
|
|
717
|
-
}] }); })();
|
|
718
|
-
|
|
719
802
|
class EuimLanguageSelectorComponent extends EuimBaseDirective {
|
|
720
803
|
constructor(cd, translateService, appShellService, appService) {
|
|
721
804
|
super();
|
|
@@ -771,7 +854,7 @@ class EuimLanguageSelectorComponent extends EuimBaseDirective {
|
|
|
771
854
|
return super.getCssClasses('euim-language-selector');
|
|
772
855
|
}
|
|
773
856
|
}
|
|
774
|
-
/** @nocollapse */ EuimLanguageSelectorComponent.ɵfac = function EuimLanguageSelectorComponent_Factory(t) { return new (t || EuimLanguageSelectorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1
|
|
857
|
+
/** @nocollapse */ EuimLanguageSelectorComponent.ɵfac = function EuimLanguageSelectorComponent_Factory(t) { return new (t || EuimLanguageSelectorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.TranslateService), i0.ɵɵdirectiveInject(i2.UxAppShellService), i0.ɵɵdirectiveInject(EuimAppService)); };
|
|
775
858
|
/** @nocollapse */ EuimLanguageSelectorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: EuimLanguageSelectorComponent, selectors: [["euim-language-selector"]], hostVars: 2, hostBindings: function EuimLanguageSelectorComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
776
859
|
i0.ɵɵclassMap(ctx.cssClasses);
|
|
777
860
|
} }, inputs: { euimPrimary: "euimPrimary" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 7, consts: [[3, "click"], ["src", "data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\">\n <path\n d=\"M 21.00,0.00\n C 22.66,-0.00 24.00,1.34 24.00,3.00\n 24.00,3.00 24.00,17.00 24.00,17.00\n 24.00,18.66 22.66,20.00 21.00,20.00\n 21.00,20.00 3.00,20.00 3.00,20.00\n 1.34,20.00 0.00,18.66 0.00,17.00\n 0.00,17.00 0.00,3.00 0.00,3.00\n 0.00,1.34 1.34,0.00 3.00,0.00\n 3.00,0.00 21.00,0.00 21.00,0.00 Z\n M 9.66,12.34\n C 9.66,12.34 15.31,18.00 15.31,18.00\n 15.31,18.00 9.66,23.66 9.66,23.66\n 9.66,23.66 4.00,18.00 4.00,18.00\n 4.00,18.00 9.66,12.34 9.66,12.34 Z\" />\n </svg>", "slot", "icon-only"]], template: function EuimLanguageSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -788,11 +871,11 @@ class EuimLanguageSelectorComponent extends EuimBaseDirective {
|
|
|
788
871
|
i0.ɵɵclassMapInterpolate1("euim-language-selector__text ", ctx.euimPrimary ? "euim-language-selector__text--primary" : "", "");
|
|
789
872
|
i0.ɵɵadvance(1);
|
|
790
873
|
i0.ɵɵtextInterpolate1(" ", ctx.selectedLanguage == null ? null : ctx.selectedLanguage.code == null ? null : ctx.selectedLanguage.code.toUpperCase(), " ");
|
|
791
|
-
} }, dependencies: [i1.IonButton, i1.IonIcon], styles: [".euim-language-selector__text{font: 400 .75rem/1rem arial,sans-serif;font-style:normal;font-weight:700;margin-bottom:var(--eui-base-spacing-2xs);position:absolute;color:var(--eui-base-color-primary-100)}.euim-language-selector__text--primary,.euim-language-selector__icon{color:#fff}.euim-language-selector__icon--primary{color:var(--eui-base-color-primary-100)}\n"], encapsulation: 2 });
|
|
874
|
+
} }, dependencies: [i1$1.IonButton, i1$1.IonIcon], styles: [".euim-language-selector__text{font: 400 .75rem/1rem arial,sans-serif;font-style:normal;font-weight:700;margin-bottom:var(--eui-base-spacing-2xs);position:absolute;color:var(--eui-base-color-primary-100)}.euim-language-selector__text--primary,.euim-language-selector__icon{color:#fff}.euim-language-selector__icon--primary{color:var(--eui-base-color-primary-100)}\n"], encapsulation: 2 });
|
|
792
875
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimLanguageSelectorComponent, [{
|
|
793
876
|
type: Component,
|
|
794
877
|
args: [{ selector: 'euim-language-selector', encapsulation: ViewEncapsulation.None, template: "<ion-button (click)=\"onShowLanguageList($event)\">\n <ion-icon class=\"euim-language-selector__icon {{euimPrimary ? 'euim-language-selector__icon--primary' : ''}}\"\n src='data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\">\n <path\n d=\"M 21.00,0.00\n C 22.66,-0.00 24.00,1.34 24.00,3.00\n 24.00,3.00 24.00,17.00 24.00,17.00\n 24.00,18.66 22.66,20.00 21.00,20.00\n 21.00,20.00 3.00,20.00 3.00,20.00\n 1.34,20.00 0.00,18.66 0.00,17.00\n 0.00,17.00 0.00,3.00 0.00,3.00\n 0.00,1.34 1.34,0.00 3.00,0.00\n 3.00,0.00 21.00,0.00 21.00,0.00 Z\n M 9.66,12.34\n C 9.66,12.34 15.31,18.00 15.31,18.00\n 15.31,18.00 9.66,23.66 9.66,23.66\n 9.66,23.66 4.00,18.00 4.00,18.00\n 4.00,18.00 9.66,12.34 9.66,12.34 Z\" />\n </svg>'\n slot=\"icon-only\">\n </ion-icon>\n\n <span class=\"euim-language-selector__text {{euimPrimary ? 'euim-language-selector__text--primary' : ''}}\">\n {{ selectedLanguage?.code?.toUpperCase() }}\n </span>\n</ion-button>\n", styles: [".euim-language-selector__text{font: 400 .75rem/1rem arial,sans-serif;font-style:normal;font-weight:700;margin-bottom:var(--eui-base-spacing-2xs);position:absolute;color:var(--eui-base-color-primary-100)}.euim-language-selector__text--primary,.euim-language-selector__icon{color:#fff}.euim-language-selector__icon--primary{color:var(--eui-base-color-primary-100)}\n"] }]
|
|
795
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1
|
|
878
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.TranslateService }, { type: i2.UxAppShellService }, { type: EuimAppService }]; }, { euimPrimary: [{
|
|
796
879
|
type: Input
|
|
797
880
|
}], cssClasses: [{
|
|
798
881
|
type: HostBinding,
|
|
@@ -974,7 +1057,7 @@ class EuiMUserProfileActionComponent extends EuimBaseDirective {
|
|
|
974
1057
|
i0.ɵɵelementStart(0, "ion-buttons");
|
|
975
1058
|
i0.ɵɵprojection(1);
|
|
976
1059
|
i0.ɵɵelementEnd();
|
|
977
|
-
} }, dependencies: [i1.IonButtons], encapsulation: 2, changeDetection: 0 });
|
|
1060
|
+
} }, dependencies: [i1$1.IonButtons], encapsulation: 2, changeDetection: 0 });
|
|
978
1061
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuiMUserProfileActionComponent, [{
|
|
979
1062
|
type: Component,
|
|
980
1063
|
args: [{ selector: 'euim-user-profile-action', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-buttons>\n <ng-content></ng-content>\n</ion-buttons>\n\n" }]
|
|
@@ -1085,7 +1168,7 @@ class EuimToolbarComponent extends EuimBaseDirective {
|
|
|
1085
1168
|
i0.ɵɵproperty("ngIf", ctx.hasBackButton);
|
|
1086
1169
|
i0.ɵɵadvance(6);
|
|
1087
1170
|
i0.ɵɵproperty("ngIf", ctx.hasLanguageSelector);
|
|
1088
|
-
} }, dependencies: [
|
|
1171
|
+
} }, dependencies: [i4.NgIf, i1$1.IonBackButton, i1$1.IonButtons, i1$1.IonMenuButton, i1$1.IonTitle, i1$1.IonBackButtonDelegate, EuimLanguageSelectorComponent], styles: [".euim-toolbar{display:flex}\n"], encapsulation: 2 });
|
|
1089
1172
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimToolbarComponent, [{
|
|
1090
1173
|
type: Component,
|
|
1091
1174
|
args: [{ selector: 'euim-toolbar', encapsulation: ViewEncapsulation.None, template: "<ion-buttons slot=\"start\">\n <ion-menu-button *ngIf=\"hasSidebarTrigger\"></ion-menu-button>\n <ion-back-button *ngIf=\"hasBackButton\"\n defaultHref=\"{{backButtonDefaultHref}}\"\n (pointerdown)=\"onBackButtonClick($event)\"></ion-back-button>\n <ng-content></ng-content>\n</ion-buttons>\n<ion-title>\n <ng-content select=\"euim-toolbar-title\"></ng-content>\n</ion-title>\n<ion-buttons slot=\"primary\">\n <ng-content select=\"euim-toolbar-action-items\"></ng-content>\n <ng-container *ngIf=\"hasLanguageSelector\">\n <euim-language-selector></euim-language-selector>\n </ng-container>\n</ion-buttons>\n", styles: [".euim-toolbar{display:flex}\n"] }]
|
|
@@ -1299,7 +1382,7 @@ class EuimEmptyListPlaceholderComponent extends EuimBaseDirective {
|
|
|
1299
1382
|
const _r1 = i0.ɵɵreference(4);
|
|
1300
1383
|
i0.ɵɵadvance(2);
|
|
1301
1384
|
i0.ɵɵproperty("ngIf", !ctx.hasCustomContent(_r1));
|
|
1302
|
-
} }, dependencies: [
|
|
1385
|
+
} }, dependencies: [i4.NgIf, i1$1.IonCol, i1$1.IonGrid, i1$1.IonIcon, i1$1.IonRow, i1$1.IonSlide, i1.TranslatePipe], styles: [".euim-empty-list-placeholder__icon[_ngcontent-%COMP%]{color:var(--eui-base-color-grey-75);width:var(--eui-base-spacing-xl);height:var(--eui-base-spacing-xl);margin-bottom:var(--eui-base-spacing-2xs);padding-top:0;padding-bottom:0}.euim-empty-list-placeholder__message[_ngcontent-%COMP%]{font: 400 1rem/1.25rem arial,sans-serif;font-style:normal;font-weight:700;color:var(--eui-base-color-grey-75);padding-top:0;padding-bottom:0}.euim-empty-list-placeholder__description[_ngcontent-%COMP%]{font: 400 .875rem/1rem arial,sans-serif;color:var(--eui-base-color-grey-75);margin-top:var(--eui-base-spacing-2xs);padding-top:0;padding-bottom:0}"] });
|
|
1303
1386
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimEmptyListPlaceholderComponent, [{
|
|
1304
1387
|
type: Component,
|
|
1305
1388
|
args: [{ selector: 'euim-empty-list-placeholder', template: "<ion-slide>\n <h4 >\n <ion-grid *ngIf=\"!hasCustomContent(content)\">\n <ion-row *ngIf=\"icon\" >\n <ion-col class=\"euim-empty-list-placeholder__icon\">\n <ion-icon size=\"large\" [name]=\"icon\"></ion-icon>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col class=\"euim-empty-list-placeholder__message\">\n {{ message || 'euim.empty-list-placeholder.text' | translate }}\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col class=\"euim-empty-list-placeholder__description\">\n {{ description }}\n </ion-col>\n </ion-row>\n </ion-grid>\n\n <span #content><ng-content></ng-content></span>\n </h4>\n\n</ion-slide>\n", styles: [".euim-empty-list-placeholder__icon{color:var(--eui-base-color-grey-75);width:var(--eui-base-spacing-xl);height:var(--eui-base-spacing-xl);margin-bottom:var(--eui-base-spacing-2xs);padding-top:0;padding-bottom:0}.euim-empty-list-placeholder__message{font: 400 1rem/1.25rem arial,sans-serif;font-style:normal;font-weight:700;color:var(--eui-base-color-grey-75);padding-top:0;padding-bottom:0}.euim-empty-list-placeholder__description{font: 400 .875rem/1rem arial,sans-serif;color:var(--eui-base-color-grey-75);margin-top:var(--eui-base-spacing-2xs);padding-top:0;padding-bottom:0}\n"] }]
|
|
@@ -1440,7 +1523,7 @@ class EuimMessageComponent extends EuimBaseDirective {
|
|
|
1440
1523
|
} if (rf & 2) {
|
|
1441
1524
|
i0.ɵɵadvance(1);
|
|
1442
1525
|
i0.ɵɵproperty("name", ctx.icon);
|
|
1443
|
-
} }, dependencies: [i1.IonIcon], styles: [".euim-message{display:block;border-width:2px;border-style:solid;display:flex;padding:var(--eui-base-spacing-m)}.euim-message__wrappericon{width:var(--eui-base-spacing-l);height:var(--eui-base-spacing-l);padding:0;margin:0}.euim-message__icon{padding:0;margin:0;width:var(--eui-base-spacing-l);height:var(--eui-base-spacing-l)}.euim-message__wrapper{margin-left:var(--eui-base-spacing-xs)}.euim-message--danger{border-color:var(--eui-base-color-danger-100)}.euim-message--danger ion-icon{color:var(--eui-base-color-danger-100)}.euim-message--info{border-color:var(--eui-base-color-info-100)}.euim-message--info ion-icon{color:var(--eui-base-color-info-100)}.euim-message--success{border-color:var(--eui-base-color-success-100)}.euim-message--success ion-icon{color:var(--eui-base-color-success-100)}.euim-message--warning{border-color:var(--eui-base-color-warning-100)}.euim-message--warning ion-icon{color:var(--eui-base-color-warning-100)}.euim-message-title{display:flex;align-items:center;font: 400 1rem/1.25rem arial,sans-serif;font-style:normal;font-weight:700;padding:0;margin:0;margin-bottom:var(--eui-base-spacing-xs)}\n"], encapsulation: 2, changeDetection: 0 });
|
|
1526
|
+
} }, dependencies: [i1$1.IonIcon], styles: [".euim-message{display:block;border-width:2px;border-style:solid;display:flex;padding:var(--eui-base-spacing-m)}.euim-message__wrappericon{width:var(--eui-base-spacing-l);height:var(--eui-base-spacing-l);padding:0;margin:0}.euim-message__icon{padding:0;margin:0;width:var(--eui-base-spacing-l);height:var(--eui-base-spacing-l)}.euim-message__wrapper{margin-left:var(--eui-base-spacing-xs)}.euim-message--danger{border-color:var(--eui-base-color-danger-100)}.euim-message--danger ion-icon{color:var(--eui-base-color-danger-100)}.euim-message--info{border-color:var(--eui-base-color-info-100)}.euim-message--info ion-icon{color:var(--eui-base-color-info-100)}.euim-message--success{border-color:var(--eui-base-color-success-100)}.euim-message--success ion-icon{color:var(--eui-base-color-success-100)}.euim-message--warning{border-color:var(--eui-base-color-warning-100)}.euim-message--warning ion-icon{color:var(--eui-base-color-warning-100)}.euim-message-title{display:flex;align-items:center;font: 400 1rem/1.25rem arial,sans-serif;font-style:normal;font-weight:700;padding:0;margin:0;margin-bottom:var(--eui-base-spacing-xs)}\n"], encapsulation: 2, changeDetection: 0 });
|
|
1444
1527
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimMessageComponent, [{
|
|
1445
1528
|
type: Component,
|
|
1446
1529
|
args: [{ selector: 'euim-message', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"euim-message__wrappericon\">\n <ion-icon [name]=\"icon\" class=\"euim-message__icon\"></ion-icon>\n</div>\n<div class=\"euim-message__wrapper\">\n <ng-content select=\"euim-message-title\"></ng-content>\n <ng-content></ng-content>\n</div>\n", styles: [".euim-message{display:block;border-width:2px;border-style:solid;display:flex;padding:var(--eui-base-spacing-m)}.euim-message__wrappericon{width:var(--eui-base-spacing-l);height:var(--eui-base-spacing-l);padding:0;margin:0}.euim-message__icon{padding:0;margin:0;width:var(--eui-base-spacing-l);height:var(--eui-base-spacing-l)}.euim-message__wrapper{margin-left:var(--eui-base-spacing-xs)}.euim-message--danger{border-color:var(--eui-base-color-danger-100)}.euim-message--danger ion-icon{color:var(--eui-base-color-danger-100)}.euim-message--info{border-color:var(--eui-base-color-info-100)}.euim-message--info ion-icon{color:var(--eui-base-color-info-100)}.euim-message--success{border-color:var(--eui-base-color-success-100)}.euim-message--success ion-icon{color:var(--eui-base-color-success-100)}.euim-message--warning{border-color:var(--eui-base-color-warning-100)}.euim-message--warning ion-icon{color:var(--eui-base-color-warning-100)}.euim-message-title{display:flex;align-items:center;font: 400 1rem/1.25rem arial,sans-serif;font-style:normal;font-weight:700;padding:0;margin:0;margin-bottom:var(--eui-base-spacing-xs)}\n"] }]
|
|
@@ -1586,7 +1669,7 @@ class EuimStepperComponent extends EuimBaseDirective {
|
|
|
1586
1669
|
i0.ɵɵproperty("disabled", ctx.isNextDisabled);
|
|
1587
1670
|
i0.ɵɵadvance(2);
|
|
1588
1671
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 11, "euim.stepper.next"));
|
|
1589
|
-
} }, dependencies: [i1.IonButton, i1.IonCol, i1.IonFooter, i1.IonIcon, i1.IonLabel, i1.IonRow, i1.IonToolbar, i1
|
|
1672
|
+
} }, dependencies: [i1$1.IonButton, i1$1.IonCol, i1$1.IonFooter, i1$1.IonIcon, i1$1.IonLabel, i1$1.IonRow, i1$1.IonToolbar, i1.TranslatePipe], encapsulation: 2 });
|
|
1590
1673
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EuimStepperComponent, [{
|
|
1591
1674
|
type: Component,
|
|
1592
1675
|
args: [{ selector: 'euim-stepper', template: "<ion-footer>\n <ion-footer fill=\"clear\" >\n <ion-toolbar color=\"light\">\n <ion-row class=\"ion-align-items-center\">\n <ion-col class=\"ion-text-start\">\n <ion-button\n (click)=\"onPrevious($event)\"\n fill=\"clear\"\n size=\"small\"\n [disabled]=\"isPreviousDisabled\">\n <ion-icon name=\"chevron-back-outline\" slot=\"start\"></ion-icon>\n <ion-label>{{ 'euim.stepper.previous' | translate }}</ion-label>\n </ion-button>\n </ion-col>\n\n <ion-col class=\"ion-text-center\">\n <ion-label color=\"primary\">\n {{ currentStep }} {{ 'euim.stepper.of' | translate }} {{stepsCount }}\n </ion-label>\n </ion-col>\n\n <ion-col class=\"ion-text-end\">\n <ion-button\n (click)=\"onNext($event)\"\n fill=\"clear\"\n size=\"small\"\n [disabled]=\"isNextDisabled\">\n <ion-label>{{ 'euim.stepper.next' | translate }}</ion-label>\n <ion-icon slot=\"end\" name=\"chevron-forward-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-toolbar>\n </ion-footer>\n</ion-footer>\n" }]
|
|
@@ -1802,7 +1885,7 @@ class EuimAllModule {
|
|
|
1802
1885
|
}
|
|
1803
1886
|
/** @nocollapse */ EuimAllModule.ɵfac = function EuimAllModule_Factory(t) { return new (t || EuimAllModule)(); };
|
|
1804
1887
|
/** @nocollapse */ EuimAllModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: EuimAllModule });
|
|
1805
|
-
/** @nocollapse */ EuimAllModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({
|
|
1888
|
+
/** @nocollapse */ EuimAllModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [MODULES,
|
|
1806
1889
|
// Layout
|
|
1807
1890
|
EuimAppModule,
|
|
1808
1891
|
EuimAppSidebarModule,
|