@tilde-nlp/ngx-common 8.1.10 → 8.1.12
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/fesm2022/tilde-nlp-ngx-common.mjs +53 -19
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/package.json +1 -1
- package/styles/components/dialogs.scss +41 -28
- package/styles/strapi/strapi-base.scss +7 -7
- package/styles/variables/font-size.variables.scss +3 -3
- package/web-components/styles.css +1 -1
|
@@ -3328,7 +3328,7 @@ class FileUploadModule {
|
|
|
3328
3328
|
const _c0$a = ["filterWrapper"];
|
|
3329
3329
|
const _c1$4 = ["optionSearchInput"];
|
|
3330
3330
|
const _c2$2 = a0 => ({ default: a0 });
|
|
3331
|
-
const _forTrack0$
|
|
3331
|
+
const _forTrack0$2 = ($index, $item) => $item.fieldName;
|
|
3332
3332
|
const _forTrack1 = ($index, $item) => $item.key;
|
|
3333
3333
|
const _forTrack2 = ($index, $item) => $item.value;
|
|
3334
3334
|
function FilterBarComponent_div_0_For_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -3476,7 +3476,7 @@ function FilterBarComponent_div_0_ng_container_6_Template(rf, ctx) { if (rf & 1)
|
|
|
3476
3476
|
function FilterBarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
3477
3477
|
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7, 0);
|
|
3478
3478
|
i0.ɵɵelementContainerStart(3, 8);
|
|
3479
|
-
i0.ɵɵrepeaterCreate(4, FilterBarComponent_div_0_For_5_Template, 12, 12, "button", 9, _forTrack0$
|
|
3479
|
+
i0.ɵɵrepeaterCreate(4, FilterBarComponent_div_0_For_5_Template, 12, 12, "button", 9, _forTrack0$2);
|
|
3480
3480
|
i0.ɵɵelementContainerEnd();
|
|
3481
3481
|
i0.ɵɵelementEnd();
|
|
3482
3482
|
i0.ɵɵtemplate(6, FilterBarComponent_div_0_ng_container_6_Template, 8, 0, "ng-container", 10);
|
|
@@ -7821,7 +7821,7 @@ class ToastService {
|
|
|
7821
7821
|
}]
|
|
7822
7822
|
}], null, null); })();
|
|
7823
7823
|
|
|
7824
|
-
const _forTrack0 = ($index, $item) => $item.id;
|
|
7824
|
+
const _forTrack0$1 = ($index, $item) => $item.id;
|
|
7825
7825
|
function ToastComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
7826
7826
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
7827
7827
|
i0.ɵɵelementStart(0, "div", 1)(1, "span");
|
|
@@ -7855,7 +7855,7 @@ class ToastComponent {
|
|
|
7855
7855
|
static { this.ɵfac = function ToastComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastComponent)(); }; }
|
|
7856
7856
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastComponent, selectors: [["lib-toast"]], decls: 3, vars: 0, consts: [[1, "toast-container"], [1, "toast"], ["mat-icon-button", "", 3, "click"]], template: function ToastComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7857
7857
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7858
|
-
i0.ɵɵrepeaterCreate(1, ToastComponent_For_2_Template, 7, 4, "div", 1, _forTrack0);
|
|
7858
|
+
i0.ɵɵrepeaterCreate(1, ToastComponent_For_2_Template, 7, 4, "div", 1, _forTrack0$1);
|
|
7859
7859
|
i0.ɵɵelementEnd();
|
|
7860
7860
|
} if (rf & 2) {
|
|
7861
7861
|
i0.ɵɵadvance();
|
|
@@ -8777,11 +8777,12 @@ class AccessibilityService {
|
|
|
8777
8777
|
}]
|
|
8778
8778
|
}], null, null); })();
|
|
8779
8779
|
|
|
8780
|
+
const _forTrack0 = ($index, $item) => $item.text;
|
|
8780
8781
|
function AccessibilityDialogComponent_For_18_Template(rf, ctx) { if (rf & 1) {
|
|
8781
8782
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
8782
|
-
i0.ɵɵelementStart(0, "button",
|
|
8783
|
+
i0.ɵɵelementStart(0, "button", 17);
|
|
8783
8784
|
i0.ɵɵlistener("click", function AccessibilityDialogComponent_For_18_Template_button_click_0_listener() { const contrast_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.changeContrast(contrast_r2)); });
|
|
8784
|
-
i0.ɵɵelementStart(1, "mat-icon",
|
|
8785
|
+
i0.ɵɵelementStart(1, "mat-icon", 18);
|
|
8785
8786
|
i0.ɵɵtext(2, "visibility");
|
|
8786
8787
|
i0.ɵɵelementEnd()();
|
|
8787
8788
|
} if (rf & 2) {
|
|
@@ -8790,11 +8791,38 @@ function AccessibilityDialogComponent_For_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
8790
8791
|
i0.ɵɵclassMap(contrast_r2);
|
|
8791
8792
|
i0.ɵɵclassProp("active", contrast_r2 === ctx_r2.currentContrast);
|
|
8792
8793
|
} }
|
|
8794
|
+
function AccessibilityDialogComponent_For_32_Template(rf, ctx) { if (rf & 1) {
|
|
8795
|
+
i0.ɵɵelementStart(0, "a", 14);
|
|
8796
|
+
i0.ɵɵtext(1);
|
|
8797
|
+
i0.ɵɵpipe(2, "translate");
|
|
8798
|
+
i0.ɵɵelementStart(3, "mat-icon");
|
|
8799
|
+
i0.ɵɵtext(4, "arrow_forward_ios");
|
|
8800
|
+
i0.ɵɵelementEnd()();
|
|
8801
|
+
} if (rf & 2) {
|
|
8802
|
+
const feature_r4 = ctx.$implicit;
|
|
8803
|
+
i0.ɵɵproperty("href", feature_r4.link, i0.ɵɵsanitizeUrl);
|
|
8804
|
+
i0.ɵɵadvance();
|
|
8805
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, feature_r4.text), " ");
|
|
8806
|
+
} }
|
|
8793
8807
|
class AccessibilityDialogComponent {
|
|
8794
8808
|
constructor() {
|
|
8795
8809
|
this.currentContrast = AccessibilityContrasts.BASE;
|
|
8796
8810
|
this.#accessibility = inject(AccessibilityService);
|
|
8797
8811
|
this.contrasts = Object.values(AccessibilityContrasts);
|
|
8812
|
+
this.featureSources = [
|
|
8813
|
+
{
|
|
8814
|
+
text: 'ACCESSIBILITY.EASY_TO_READ',
|
|
8815
|
+
link: '/easy-read',
|
|
8816
|
+
},
|
|
8817
|
+
{
|
|
8818
|
+
text: 'ACCESSIBILITY.OTHER_SETTINGS',
|
|
8819
|
+
link: '/accessibility-features',
|
|
8820
|
+
},
|
|
8821
|
+
{
|
|
8822
|
+
text: 'ACCESSIBILITY.NOTIFICATION',
|
|
8823
|
+
link: '/accessibility-statement',
|
|
8824
|
+
}
|
|
8825
|
+
];
|
|
8798
8826
|
}
|
|
8799
8827
|
#accessibility;
|
|
8800
8828
|
ngOnInit() {
|
|
@@ -8837,7 +8865,7 @@ class AccessibilityDialogComponent {
|
|
|
8837
8865
|
this.#accessibility.setFontSize(this.selectedFontSizeIndex);
|
|
8838
8866
|
}
|
|
8839
8867
|
static { this.ɵfac = function AccessibilityDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccessibilityDialogComponent)(); }; }
|
|
8840
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccessibilityDialogComponent, selectors: [["lib-accessibility-dialog"]], decls:
|
|
8868
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccessibilityDialogComponent, selectors: [["lib-accessibility-dialog"]], decls: 40, vars: 32, consts: [["mat-dialog-title", "", 1, "text-2-xl"], ["mat-dialog-content", ""], [1, "font-size-wrapper"], [1, "settings-title"], ["animationDuration", "0ms", 3, "selectedTabChange", "selectedIndex"], [3, "label"], [1, "contrast-wrapper"], [1, "contrast-option-wrapper"], [1, "contrast-option", 3, "class", "active"], [1, "visual-tools-wrapper"], ["mat-stroked-button", "", 3, "click"], ["mat-stroked-button", "", 1, "screen-mask-btn", 3, "click"], [1, "divider"], [1, "feature-links-wrapper"], [1, "feature-link", 3, "href"], ["mat-dialog-actions", ""], ["mat-flat-button", "", "mat-dialog-close", ""], [1, "contrast-option", 3, "click"], [1, "material-icons-outlined"]], template: function AccessibilityDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8841
8869
|
i0.ɵɵelementStart(0, "h1", 0);
|
|
8842
8870
|
i0.ɵɵtext(1);
|
|
8843
8871
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -8870,15 +8898,19 @@ class AccessibilityDialogComponent {
|
|
|
8870
8898
|
i0.ɵɵlistener("click", function AccessibilityDialogComponent_Template_button_click_26_listener() { return ctx.toggleScreenMask(); });
|
|
8871
8899
|
i0.ɵɵtext(27);
|
|
8872
8900
|
i0.ɵɵpipe(28, "translate");
|
|
8873
|
-
i0.ɵɵelementEnd()()
|
|
8874
|
-
i0.ɵɵ
|
|
8875
|
-
i0.ɵɵ
|
|
8876
|
-
i0.ɵɵ
|
|
8877
|
-
i0.ɵɵ
|
|
8901
|
+
i0.ɵɵelementEnd()();
|
|
8902
|
+
i0.ɵɵelement(29, "div", 12);
|
|
8903
|
+
i0.ɵɵelementStart(30, "div", 13);
|
|
8904
|
+
i0.ɵɵrepeaterCreate(31, AccessibilityDialogComponent_For_32_Template, 5, 4, "a", 14, _forTrack0);
|
|
8905
|
+
i0.ɵɵelementEnd()();
|
|
8906
|
+
i0.ɵɵelementStart(33, "div", 15)(34, "button", 10);
|
|
8907
|
+
i0.ɵɵlistener("click", function AccessibilityDialogComponent_Template_button_click_34_listener() { return ctx.reset(); });
|
|
8908
|
+
i0.ɵɵtext(35);
|
|
8909
|
+
i0.ɵɵpipe(36, "translate");
|
|
8878
8910
|
i0.ɵɵelementEnd();
|
|
8879
|
-
i0.ɵɵelementStart(
|
|
8880
|
-
i0.ɵɵtext(
|
|
8881
|
-
i0.ɵɵpipe(
|
|
8911
|
+
i0.ɵɵelementStart(37, "button", 16);
|
|
8912
|
+
i0.ɵɵtext(38);
|
|
8913
|
+
i0.ɵɵpipe(39, "translate");
|
|
8882
8914
|
i0.ɵɵelementEnd()();
|
|
8883
8915
|
} if (rf & 2) {
|
|
8884
8916
|
i0.ɵɵadvance();
|
|
@@ -8908,14 +8940,16 @@ class AccessibilityDialogComponent {
|
|
|
8908
8940
|
i0.ɵɵadvance();
|
|
8909
8941
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 26, "ACCESSIBILITY.SCREEN_MASK"), " ");
|
|
8910
8942
|
i0.ɵɵadvance(4);
|
|
8911
|
-
i0.ɵɵ
|
|
8943
|
+
i0.ɵɵrepeater(ctx.featureSources);
|
|
8944
|
+
i0.ɵɵadvance(4);
|
|
8945
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(36, 28, "ACCESSIBILITY.RESET"));
|
|
8912
8946
|
i0.ɵɵadvance(3);
|
|
8913
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
8914
|
-
} }, dependencies: [MatDialogModule, i1$4.MatDialogClose, i1$4.MatDialogTitle, i1$4.MatDialogActions, i1$4.MatDialogContent, TranslateModule, MatButtonModule, i2$1.MatButton, MatTabsModule, i3$1.MatTab, i3$1.MatTabGroup, MatIconModule, i1.MatIcon, i1$1.TranslatePipe], styles: [".settings-title[_ngcontent-%COMP%]{color:var(--base-30);font-weight:600;font-size:.8125rem;margin-bottom:12px}.contrast-wrapper[_ngcontent-%COMP%]{margin-top:24px}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%]{display:flex;gap:12px}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:8px 24px;color:#000!important;background-color:#fff!important;border-radius:8px;width:100%;border:2px solid transparent}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.black-white[_ngcontent-%COMP%]{background-color:#000!important;color:#fff!important}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.yellow-black[_ngcontent-%COMP%]{background-color:#f9f150!important;color:#000!important}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.black-yellow[_ngcontent-%COMP%]{background-color:#000!important;color:#f9f150!important}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.active[_ngcontent-%COMP%]{border:2px solid;border-color:var(--base-0)}.visual-tools-wrapper[_ngcontent-%COMP%]{margin-top:24px}.visual-tools-wrapper[_ngcontent-%COMP%] .screen-mask-btn[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%] .mdc-tab--active{background-color:var(--mat-sys-primary-container)!important}[_nghost-%COMP%] .mdc-tab--active .mdc-tab__text-label{color:var(--primary-accent)!important}[_nghost-%COMP%] .mat-mdc-tab{width:50px;border:1px solid var(--base-70)}[_nghost-%COMP%] .mat-mdc-tab:first-child{border-bottom-left-radius:16px;border-top-left-radius:16px}[_nghost-%COMP%] .mat-mdc-tab:last-child{border-bottom-right-radius:16px;border-top-right-radius:16px}[_nghost-%COMP%] .mdc-tab-indicator__content--underline{display:none}[_nghost-%COMP%] .mat-mdc-tab-label-container{border-bottom-width:0!important}[_nghost-%COMP%] .active .mdc-button__ripple{background-color:var(--primary-accent)!important;opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}"] }); }
|
|
8947
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(39, 30, "ACCESSIBILITY.CLOSE"));
|
|
8948
|
+
} }, dependencies: [MatDialogModule, i1$4.MatDialogClose, i1$4.MatDialogTitle, i1$4.MatDialogActions, i1$4.MatDialogContent, TranslateModule, MatButtonModule, i2$1.MatButton, MatTabsModule, i3$1.MatTab, i3$1.MatTabGroup, MatIconModule, i1.MatIcon, i1$1.TranslatePipe], styles: [".settings-title[_ngcontent-%COMP%]{color:var(--base-30);font-weight:600;font-size:.8125rem;margin-bottom:12px}.contrast-wrapper[_ngcontent-%COMP%]{margin-top:24px}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%]{display:flex;gap:12px}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:8px 24px;color:#000!important;background-color:#fff!important;border-radius:8px;width:100%;border:2px solid transparent}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.black-white[_ngcontent-%COMP%]{background-color:#000!important;color:#fff!important}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.yellow-black[_ngcontent-%COMP%]{background-color:#f9f150!important;color:#000!important}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.black-yellow[_ngcontent-%COMP%]{background-color:#000!important;color:#f9f150!important}.contrast-wrapper[_ngcontent-%COMP%] .contrast-option-wrapper[_ngcontent-%COMP%] .contrast-option.active[_ngcontent-%COMP%]{border:2px solid;border-color:var(--base-0)}.visual-tools-wrapper[_ngcontent-%COMP%]{margin-top:24px}.visual-tools-wrapper[_ngcontent-%COMP%] .screen-mask-btn[_ngcontent-%COMP%]{margin-left:8px}.divider[_ngcontent-%COMP%]{margin:24px 0;border:1px solid var(--base-70)}.feature-links-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.feature-link[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--base-40)}.feature-link[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{scale:.75}[_nghost-%COMP%] .mdc-tab--active{background-color:var(--mat-sys-primary-container)!important}[_nghost-%COMP%] .mdc-tab--active .mdc-tab__text-label{color:var(--primary-accent)!important}[_nghost-%COMP%] .mat-mdc-tab{width:50px;border:1px solid var(--base-70)}[_nghost-%COMP%] .mat-mdc-tab:first-child{border-bottom-left-radius:16px;border-top-left-radius:16px}[_nghost-%COMP%] .mat-mdc-tab:last-child{border-bottom-right-radius:16px;border-top-right-radius:16px}[_nghost-%COMP%] .mdc-tab-indicator__content--underline{display:none}[_nghost-%COMP%] .mat-mdc-tab-label-container{border-bottom-width:0!important}[_nghost-%COMP%] .active .mdc-button__ripple{background-color:var(--primary-accent)!important;opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}"] }); }
|
|
8915
8949
|
}
|
|
8916
8950
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccessibilityDialogComponent, [{
|
|
8917
8951
|
type: Component,
|
|
8918
|
-
args: [{ selector: 'lib-accessibility-dialog', imports: [MatDialogModule, TranslateModule, MatButtonModule, MatTabsModule, MatIconModule], template: "<h1 mat-dialog-title class=\"text-2-xl\">{{ \"ACCESSIBILITY.TITLE\" | translate }}</h1>\r\n\r\n<div mat-dialog-content>\r\n\t<div class=\"font-size-wrapper\">\r\n\t\t<p class=\"settings-title\">\r\n\t\t\t{{ \"ACCESSIBILITY.FONT_SIZE_LABEL\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<mat-tab-group [selectedIndex]=\"selectedFontSizeIndex\" (selectedTabChange)=\"changeFontSize($event)\" animationDuration=\"0ms\">\r\n\t\t\t<mat-tab [label]=\"'100%'\"></mat-tab>\r\n\t\t\t<mat-tab [label]=\"'150%'\"></mat-tab>\r\n\t\t\t<mat-tab [label]=\"'200%'\"></mat-tab>\r\n\t\t</mat-tab-group>\r\n\t</div>\r\n\r\n\t<div class=\"contrast-wrapper\">\r\n\t\t<p class=\"settings-title\">\r\n\t\t\t{{ \"ACCESSIBILITY.CONTRAST_LABEL\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<div class=\"contrast-option-wrapper\">\r\n\t\t\t@for (contrast of contrasts; track contrast) {\r\n\t\t\t<button (click)=\"changeContrast(contrast)\" [class]=\"contrast\" [class.active]=\"contrast === currentContrast\" class=\"contrast-option\">\r\n\t\t\t\t<mat-icon class=\"material-icons-outlined\">visibility</mat-icon>\r\n\t\t\t</button>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class=\"visual-tools-wrapper\">\r\n\t\t<p class=\"settings-title\">\r\n\t\t\t{{ \"ACCESSIBILITY.VISUAL_TOOLS_LABEL\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<button mat-stroked-button [class.active]=\"isTextMagnifierEnabled\" (click)=\"toggleTextMagnifier()\">\r\n\t\t\t{{ \"ACCESSIBILITY.TEXT_MAGNIFIER\" | translate }}\r\n\t\t</button>\r\n\r\n\t\t<button class=\"screen-mask-btn\" mat-stroked-button [class.active]=\"isScreenMaskEnabled\" (click)=\"toggleScreenMask()\">\r\n\t\t\t{{ \"ACCESSIBILITY.SCREEN_MASK\" | translate }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n\r\n<div mat-dialog-actions>\r\n\t<button mat-stroked-button (click)=\"reset()\">{{ \"ACCESSIBILITY.RESET\" | translate }}</button>\r\n\t<button mat-flat-button mat-dialog-close>{{ \"ACCESSIBILITY.CLOSE\" | translate }}</button>\r\n</div>\r\n", styles: [".settings-title{color:var(--base-30);font-weight:600;font-size:.8125rem;margin-bottom:12px}.contrast-wrapper{margin-top:24px}.contrast-wrapper .contrast-option-wrapper{display:flex;gap:12px}.contrast-wrapper .contrast-option-wrapper .contrast-option{display:flex;justify-content:center;align-items:center;padding:8px 24px;color:#000!important;background-color:#fff!important;border-radius:8px;width:100%;border:2px solid transparent}.contrast-wrapper .contrast-option-wrapper .contrast-option.black-white{background-color:#000!important;color:#fff!important}.contrast-wrapper .contrast-option-wrapper .contrast-option.yellow-black{background-color:#f9f150!important;color:#000!important}.contrast-wrapper .contrast-option-wrapper .contrast-option.black-yellow{background-color:#000!important;color:#f9f150!important}.contrast-wrapper .contrast-option-wrapper .contrast-option.active{border:2px solid;border-color:var(--base-0)}.visual-tools-wrapper{margin-top:24px}.visual-tools-wrapper .screen-mask-btn{margin-left:8px}:host ::ng-deep .mdc-tab--active{background-color:var(--mat-sys-primary-container)!important}:host ::ng-deep .mdc-tab--active .mdc-tab__text-label{color:var(--primary-accent)!important}:host ::ng-deep .mat-mdc-tab{width:50px;border:1px solid var(--base-70)}:host ::ng-deep .mat-mdc-tab:first-child{border-bottom-left-radius:16px;border-top-left-radius:16px}:host ::ng-deep .mat-mdc-tab:last-child{border-bottom-right-radius:16px;border-top-right-radius:16px}:host ::ng-deep .mdc-tab-indicator__content--underline{display:none}:host ::ng-deep .mat-mdc-tab-label-container{border-bottom-width:0!important}:host ::ng-deep .active .mdc-button__ripple{background-color:var(--primary-accent)!important;opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}\n"] }]
|
|
8952
|
+
args: [{ selector: 'lib-accessibility-dialog', imports: [MatDialogModule, TranslateModule, MatButtonModule, MatTabsModule, MatIconModule], template: "<h1 mat-dialog-title class=\"text-2-xl\">{{ \"ACCESSIBILITY.TITLE\" | translate }}</h1>\r\n\r\n<div mat-dialog-content>\r\n\t<div class=\"font-size-wrapper\">\r\n\t\t<p class=\"settings-title\">\r\n\t\t\t{{ \"ACCESSIBILITY.FONT_SIZE_LABEL\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<mat-tab-group [selectedIndex]=\"selectedFontSizeIndex\" (selectedTabChange)=\"changeFontSize($event)\" animationDuration=\"0ms\">\r\n\t\t\t<mat-tab [label]=\"'100%'\"></mat-tab>\r\n\t\t\t<mat-tab [label]=\"'150%'\"></mat-tab>\r\n\t\t\t<mat-tab [label]=\"'200%'\"></mat-tab>\r\n\t\t</mat-tab-group>\r\n\t</div>\r\n\r\n\t<div class=\"contrast-wrapper\">\r\n\t\t<p class=\"settings-title\">\r\n\t\t\t{{ \"ACCESSIBILITY.CONTRAST_LABEL\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<div class=\"contrast-option-wrapper\">\r\n\t\t\t@for (contrast of contrasts; track contrast) {\r\n\t\t\t<button (click)=\"changeContrast(contrast)\" [class]=\"contrast\" [class.active]=\"contrast === currentContrast\" class=\"contrast-option\">\r\n\t\t\t\t<mat-icon class=\"material-icons-outlined\">visibility</mat-icon>\r\n\t\t\t</button>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class=\"visual-tools-wrapper\">\r\n\t\t<p class=\"settings-title\">\r\n\t\t\t{{ \"ACCESSIBILITY.VISUAL_TOOLS_LABEL\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<button mat-stroked-button [class.active]=\"isTextMagnifierEnabled\" (click)=\"toggleTextMagnifier()\">\r\n\t\t\t{{ \"ACCESSIBILITY.TEXT_MAGNIFIER\" | translate }}\r\n\t\t</button>\r\n\r\n\t\t<button class=\"screen-mask-btn\" mat-stroked-button [class.active]=\"isScreenMaskEnabled\" (click)=\"toggleScreenMask()\">\r\n\t\t\t{{ \"ACCESSIBILITY.SCREEN_MASK\" | translate }}\r\n\t\t</button>\r\n\t</div>\r\n\r\n\t<div class=\"divider\"></div>\r\n\r\n\t<div class=\"feature-links-wrapper\">\r\n\t\t@for (feature of featureSources; track feature.text) {\r\n\t\t\t<a [href]=\"feature.link\" class=\"feature-link\">\r\n\t\t\t\t{{ feature.text | translate }} \r\n\t\t\t\t<mat-icon>arrow_forward_ios</mat-icon>\r\n\t\t\t</a>\r\n\t\t}\r\n\t</div>\r\n</div>\r\n\r\n<div mat-dialog-actions>\r\n\t<button mat-stroked-button (click)=\"reset()\">{{ \"ACCESSIBILITY.RESET\" | translate }}</button>\r\n\t<button mat-flat-button mat-dialog-close>{{ \"ACCESSIBILITY.CLOSE\" | translate }}</button>\r\n</div>\r\n", styles: [".settings-title{color:var(--base-30);font-weight:600;font-size:.8125rem;margin-bottom:12px}.contrast-wrapper{margin-top:24px}.contrast-wrapper .contrast-option-wrapper{display:flex;gap:12px}.contrast-wrapper .contrast-option-wrapper .contrast-option{display:flex;justify-content:center;align-items:center;padding:8px 24px;color:#000!important;background-color:#fff!important;border-radius:8px;width:100%;border:2px solid transparent}.contrast-wrapper .contrast-option-wrapper .contrast-option.black-white{background-color:#000!important;color:#fff!important}.contrast-wrapper .contrast-option-wrapper .contrast-option.yellow-black{background-color:#f9f150!important;color:#000!important}.contrast-wrapper .contrast-option-wrapper .contrast-option.black-yellow{background-color:#000!important;color:#f9f150!important}.contrast-wrapper .contrast-option-wrapper .contrast-option.active{border:2px solid;border-color:var(--base-0)}.visual-tools-wrapper{margin-top:24px}.visual-tools-wrapper .screen-mask-btn{margin-left:8px}.divider{margin:24px 0;border:1px solid var(--base-70)}.feature-links-wrapper{display:flex;flex-direction:column;gap:12px}.feature-link{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--base-40)}.feature-link mat-icon{scale:.75}:host ::ng-deep .mdc-tab--active{background-color:var(--mat-sys-primary-container)!important}:host ::ng-deep .mdc-tab--active .mdc-tab__text-label{color:var(--primary-accent)!important}:host ::ng-deep .mat-mdc-tab{width:50px;border:1px solid var(--base-70)}:host ::ng-deep .mat-mdc-tab:first-child{border-bottom-left-radius:16px;border-top-left-radius:16px}:host ::ng-deep .mat-mdc-tab:last-child{border-bottom-right-radius:16px;border-top-right-radius:16px}:host ::ng-deep .mdc-tab-indicator__content--underline{display:none}:host ::ng-deep .mat-mdc-tab-label-container{border-bottom-width:0!important}:host ::ng-deep .active .mdc-button__ripple{background-color:var(--primary-accent)!important;opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}\n"] }]
|
|
8919
8953
|
}], null, null); })();
|
|
8920
8954
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccessibilityDialogComponent, { className: "AccessibilityDialogComponent", filePath: "lib/accessibility/accessibility-dialog.component.ts", lineNumber: 16 }); })();
|
|
8921
8955
|
|