@tilde-nlp/ngx-common 8.1.2 → 8.1.3
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.
|
@@ -8519,12 +8519,108 @@ var AccessibilityContrasts;
|
|
|
8519
8519
|
AccessibilityContrasts["BLACK_YELLOW"] = "black-yellow";
|
|
8520
8520
|
})(AccessibilityContrasts || (AccessibilityContrasts = {}));
|
|
8521
8521
|
|
|
8522
|
+
class AccessibilityTextMagnifierService {
|
|
8523
|
+
constructor() {
|
|
8524
|
+
this.magnifiedText = null;
|
|
8525
|
+
this.mousemoveHandler = null;
|
|
8526
|
+
this.mouseoverHandler = null;
|
|
8527
|
+
}
|
|
8528
|
+
toggleTextMagnifier(isDisabled) {
|
|
8529
|
+
if (isDisabled) {
|
|
8530
|
+
this.addMagnifier();
|
|
8531
|
+
}
|
|
8532
|
+
else {
|
|
8533
|
+
this.removeMagnifier();
|
|
8534
|
+
}
|
|
8535
|
+
}
|
|
8536
|
+
addMagnifier() {
|
|
8537
|
+
this.magnifiedText = document.createElement('div');
|
|
8538
|
+
this.magnifiedText.classList.add('magnified-text');
|
|
8539
|
+
document.body.appendChild(this.magnifiedText);
|
|
8540
|
+
let positionTop;
|
|
8541
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8542
|
+
this.mouseoverHandler = (event) => {
|
|
8543
|
+
if (event.target && event.target.nodeType === Node.ELEMENT_NODE) {
|
|
8544
|
+
const textContent = this.getFirstTextContent(event.target);
|
|
8545
|
+
if (!textContent.length) {
|
|
8546
|
+
this.magnifiedText.style.display = 'none';
|
|
8547
|
+
return;
|
|
8548
|
+
}
|
|
8549
|
+
this.magnifiedText.style.display = 'block';
|
|
8550
|
+
this.magnifiedText.textContent = textContent;
|
|
8551
|
+
positionTop = event.pageY - this.magnifiedText.clientHeight - 25 > 0 ? event.pageY - this.magnifiedText.clientHeight - 25 : 0;
|
|
8552
|
+
this.magnifiedText.style.left = `${event.pageX - 35}px`;
|
|
8553
|
+
this.magnifiedText.style.top = `${positionTop}px`;
|
|
8554
|
+
}
|
|
8555
|
+
};
|
|
8556
|
+
document.addEventListener('mouseover', this.mouseoverHandler);
|
|
8557
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8558
|
+
this.mousemoveHandler = (event) => {
|
|
8559
|
+
if (this.magnifiedText) {
|
|
8560
|
+
this.magnifiedText.style.left = `${event.pageX - 35}px`;
|
|
8561
|
+
this.magnifiedText.style.top = `${positionTop}px`;
|
|
8562
|
+
}
|
|
8563
|
+
};
|
|
8564
|
+
document.addEventListener('mousemove', this.mousemoveHandler);
|
|
8565
|
+
}
|
|
8566
|
+
removeMagnifier() {
|
|
8567
|
+
if (this.magnifiedText) {
|
|
8568
|
+
document.body.removeChild(this.magnifiedText);
|
|
8569
|
+
this.magnifiedText = null;
|
|
8570
|
+
}
|
|
8571
|
+
if (this.mouseoverHandler) {
|
|
8572
|
+
document.removeEventListener('mouseover', this.mouseoverHandler);
|
|
8573
|
+
this.mouseoverHandler = null;
|
|
8574
|
+
}
|
|
8575
|
+
if (this.mousemoveHandler) {
|
|
8576
|
+
document.removeEventListener('mousemove', this.mousemoveHandler);
|
|
8577
|
+
this.mousemoveHandler = null;
|
|
8578
|
+
}
|
|
8579
|
+
}
|
|
8580
|
+
getFirstTextContent(element) {
|
|
8581
|
+
let textContent = '';
|
|
8582
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8583
|
+
for (const child of element.childNodes) {
|
|
8584
|
+
if (child.nodeType === Node.TEXT_NODE) {
|
|
8585
|
+
textContent = child.textContent || '';
|
|
8586
|
+
break;
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
return textContent;
|
|
8590
|
+
}
|
|
8591
|
+
static { this.ɵfac = function AccessibilityTextMagnifierService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccessibilityTextMagnifierService)(); }; }
|
|
8592
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AccessibilityTextMagnifierService, factory: AccessibilityTextMagnifierService.ɵfac, providedIn: 'root' }); }
|
|
8593
|
+
}
|
|
8594
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccessibilityTextMagnifierService, [{
|
|
8595
|
+
type: Injectable,
|
|
8596
|
+
args: [{
|
|
8597
|
+
providedIn: 'root',
|
|
8598
|
+
}]
|
|
8599
|
+
}], null, null); })();
|
|
8600
|
+
|
|
8522
8601
|
class AccessibilityService {
|
|
8523
8602
|
constructor() {
|
|
8524
8603
|
this.fontSizeLocalStorageKey = 'ACCESSIBILITY_FONT_SIZE_IX';
|
|
8525
8604
|
this.contrastLocalStorageKey = 'ACCESSIBILITY_CONTRAST';
|
|
8605
|
+
this.textMagnifierLocalStorageKey = 'TEXT_MAGNIFIER';
|
|
8526
8606
|
this.sizeIncreaseSubject = new Subject();
|
|
8527
8607
|
this.contrastSubject = new Subject();
|
|
8608
|
+
this.#textMagnifier = inject(AccessibilityTextMagnifierService);
|
|
8609
|
+
}
|
|
8610
|
+
#textMagnifier;
|
|
8611
|
+
toggleTextMagnifier() {
|
|
8612
|
+
const currnetStatus = this.getSavedTextMagnifierStatus();
|
|
8613
|
+
const oppositeStatus = JSON.stringify(!currnetStatus);
|
|
8614
|
+
this.#textMagnifier.toggleTextMagnifier(!currnetStatus);
|
|
8615
|
+
localStorage.setItem(this.textMagnifierLocalStorageKey, oppositeStatus);
|
|
8616
|
+
}
|
|
8617
|
+
getSavedTextMagnifierStatus() {
|
|
8618
|
+
const savedTextMagnifierStatus = JSON.parse(localStorage.getItem(this.textMagnifierLocalStorageKey) ?? 'false');
|
|
8619
|
+
return savedTextMagnifierStatus;
|
|
8620
|
+
}
|
|
8621
|
+
setSavedTextMagnifierStatus() {
|
|
8622
|
+
const currnetStatus = this.getSavedTextMagnifierStatus();
|
|
8623
|
+
this.#textMagnifier.toggleTextMagnifier(currnetStatus);
|
|
8528
8624
|
}
|
|
8529
8625
|
saveContrast(contrast) {
|
|
8530
8626
|
localStorage.setItem(this.contrastLocalStorageKey, contrast);
|
|
@@ -8566,9 +8662,9 @@ class AccessibilityService {
|
|
|
8566
8662
|
|
|
8567
8663
|
function AccessibilityDialogComponent_For_18_Template(rf, ctx) { if (rf & 1) {
|
|
8568
8664
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
8569
|
-
i0.ɵɵelementStart(0, "button",
|
|
8665
|
+
i0.ɵɵelementStart(0, "button", 13);
|
|
8570
8666
|
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)); });
|
|
8571
|
-
i0.ɵɵelementStart(1, "mat-icon",
|
|
8667
|
+
i0.ɵɵelementStart(1, "mat-icon", 14);
|
|
8572
8668
|
i0.ɵɵtext(2, "visibility");
|
|
8573
8669
|
i0.ɵɵelementEnd()();
|
|
8574
8670
|
} if (rf & 2) {
|
|
@@ -8579,7 +8675,7 @@ function AccessibilityDialogComponent_For_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
8579
8675
|
} }
|
|
8580
8676
|
class AccessibilityDialogComponent {
|
|
8581
8677
|
constructor() {
|
|
8582
|
-
this.currentContrast =
|
|
8678
|
+
this.currentContrast = AccessibilityContrasts.BASE;
|
|
8583
8679
|
this.#accessibility = inject(AccessibilityService);
|
|
8584
8680
|
this.contrasts = Object.values(AccessibilityContrasts);
|
|
8585
8681
|
}
|
|
@@ -8587,6 +8683,7 @@ class AccessibilityDialogComponent {
|
|
|
8587
8683
|
ngOnInit() {
|
|
8588
8684
|
this.selectedFontSizeIndex = this.#accessibility.getSavedFontSize();
|
|
8589
8685
|
this.currentContrast = this.#accessibility.getSavedContrast();
|
|
8686
|
+
this.isTextMagnifierEnabled = this.#accessibility.getSavedTextMagnifierStatus();
|
|
8590
8687
|
}
|
|
8591
8688
|
changeContrast(contrast) {
|
|
8592
8689
|
this.currentContrast = contrast;
|
|
@@ -8598,14 +8695,18 @@ class AccessibilityDialogComponent {
|
|
|
8598
8695
|
this.#accessibility.saveFontSize(this.selectedFontSizeIndex);
|
|
8599
8696
|
this.#accessibility.setFontSize(this.selectedFontSizeIndex);
|
|
8600
8697
|
}
|
|
8698
|
+
toggleTextMagnifier() {
|
|
8699
|
+
this.#accessibility.toggleTextMagnifier();
|
|
8700
|
+
this.isTextMagnifierEnabled = this.#accessibility.getSavedTextMagnifierStatus();
|
|
8701
|
+
}
|
|
8601
8702
|
reset() {
|
|
8602
|
-
this.changeContrast(
|
|
8703
|
+
this.changeContrast(AccessibilityContrasts.BASE);
|
|
8603
8704
|
this.selectedFontSizeIndex = 0;
|
|
8604
8705
|
this.#accessibility.saveFontSize(this.selectedFontSizeIndex);
|
|
8605
8706
|
this.#accessibility.setFontSize(this.selectedFontSizeIndex);
|
|
8606
8707
|
}
|
|
8607
8708
|
static { this.ɵfac = function AccessibilityDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccessibilityDialogComponent)(); }; }
|
|
8608
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccessibilityDialogComponent, selectors: [["lib-accessibility-dialog"]], decls:
|
|
8709
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccessibilityDialogComponent, selectors: [["lib-accessibility-dialog"]], decls: 33, vars: 27, 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-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) {
|
|
8609
8710
|
i0.ɵɵelementStart(0, "h1", 0);
|
|
8610
8711
|
i0.ɵɵtext(1);
|
|
8611
8712
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -8624,21 +8725,30 @@ class AccessibilityDialogComponent {
|
|
|
8624
8725
|
i0.ɵɵelementEnd();
|
|
8625
8726
|
i0.ɵɵelementStart(16, "div", 7);
|
|
8626
8727
|
i0.ɵɵrepeaterCreate(17, AccessibilityDialogComponent_For_18_Template, 3, 4, "button", 8, i0.ɵɵrepeaterTrackByIdentity);
|
|
8627
|
-
i0.ɵɵelementEnd()()
|
|
8628
|
-
i0.ɵɵelementStart(19, "div", 9)(20, "
|
|
8629
|
-
i0.ɵɵlistener("click", function AccessibilityDialogComponent_Template_button_click_20_listener() { return ctx.reset(); });
|
|
8728
|
+
i0.ɵɵelementEnd()();
|
|
8729
|
+
i0.ɵɵelementStart(19, "div", 9)(20, "p", 3);
|
|
8630
8730
|
i0.ɵɵtext(21);
|
|
8631
8731
|
i0.ɵɵpipe(22, "translate");
|
|
8632
8732
|
i0.ɵɵelementEnd();
|
|
8633
|
-
i0.ɵɵelementStart(23, "button",
|
|
8733
|
+
i0.ɵɵelementStart(23, "button", 10);
|
|
8734
|
+
i0.ɵɵlistener("click", function AccessibilityDialogComponent_Template_button_click_23_listener() { return ctx.toggleTextMagnifier(); });
|
|
8634
8735
|
i0.ɵɵtext(24);
|
|
8635
8736
|
i0.ɵɵpipe(25, "translate");
|
|
8737
|
+
i0.ɵɵelementEnd()()();
|
|
8738
|
+
i0.ɵɵelementStart(26, "div", 11)(27, "button", 10);
|
|
8739
|
+
i0.ɵɵlistener("click", function AccessibilityDialogComponent_Template_button_click_27_listener() { return ctx.reset(); });
|
|
8740
|
+
i0.ɵɵtext(28);
|
|
8741
|
+
i0.ɵɵpipe(29, "translate");
|
|
8742
|
+
i0.ɵɵelementEnd();
|
|
8743
|
+
i0.ɵɵelementStart(30, "button", 12);
|
|
8744
|
+
i0.ɵɵtext(31);
|
|
8745
|
+
i0.ɵɵpipe(32, "translate");
|
|
8636
8746
|
i0.ɵɵelementEnd()();
|
|
8637
8747
|
} if (rf & 2) {
|
|
8638
8748
|
i0.ɵɵadvance();
|
|
8639
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,
|
|
8749
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 13, "ACCESSIBILITY.TITLE"));
|
|
8640
8750
|
i0.ɵɵadvance(5);
|
|
8641
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
8751
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 15, "ACCESSIBILITY.FONT_SIZE_LABEL"), " ");
|
|
8642
8752
|
i0.ɵɵadvance(2);
|
|
8643
8753
|
i0.ɵɵproperty("selectedIndex", ctx.selectedFontSizeIndex);
|
|
8644
8754
|
i0.ɵɵadvance();
|
|
@@ -8648,18 +8758,24 @@ class AccessibilityDialogComponent {
|
|
|
8648
8758
|
i0.ɵɵadvance();
|
|
8649
8759
|
i0.ɵɵproperty("label", "200%");
|
|
8650
8760
|
i0.ɵɵadvance(3);
|
|
8651
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15,
|
|
8761
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 17, "ACCESSIBILITY.CONTRAST_LABEL"), " ");
|
|
8652
8762
|
i0.ɵɵadvance(3);
|
|
8653
8763
|
i0.ɵɵrepeater(ctx.contrasts);
|
|
8654
8764
|
i0.ɵɵadvance(4);
|
|
8655
|
-
i0.ɵɵ
|
|
8765
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(22, 19, "ACCESSIBILITY.VISUAL_TOOLS_LABEL"), " ");
|
|
8766
|
+
i0.ɵɵadvance(2);
|
|
8767
|
+
i0.ɵɵclassProp("active", ctx.isTextMagnifierEnabled);
|
|
8768
|
+
i0.ɵɵadvance();
|
|
8769
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 21, "ACCESSIBILITY.TEXT_MAGNIFIER"), " ");
|
|
8770
|
+
i0.ɵɵadvance(4);
|
|
8771
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(29, 23, "ACCESSIBILITY.RESET"));
|
|
8656
8772
|
i0.ɵɵadvance(3);
|
|
8657
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
8658
|
-
} }, 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)}[_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}"] }); }
|
|
8773
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 25, "ACCESSIBILITY.CLOSE"));
|
|
8774
|
+
} }, 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))}"] }); }
|
|
8659
8775
|
}
|
|
8660
8776
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccessibilityDialogComponent, [{
|
|
8661
8777
|
type: Component,
|
|
8662
|
-
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\t<button (click)=\"changeContrast(contrast)\" [class]=\"contrast\" [class.active]=\"contrast === currentContrast\" class=\"contrast-option\">\r\n\t\t\t\t\t<mat-icon class=\"material-icons-outlined\">visibility</mat-icon>\r\n\t\t\t\t</button>\r\n\t\t\t}\r\n\t\t</div>\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)}: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}\n"] }]
|
|
8778
|
+
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\t<button (click)=\"changeContrast(contrast)\" [class]=\"contrast\" [class.active]=\"contrast === currentContrast\" class=\"contrast-option\">\r\n\t\t\t\t\t<mat-icon class=\"material-icons-outlined\">visibility</mat-icon>\r\n\t\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>\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"] }]
|
|
8663
8779
|
}], null, null); })();
|
|
8664
8780
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccessibilityDialogComponent, { className: "AccessibilityDialogComponent", filePath: "lib/accessibility/accessibility-dialog.component.ts", lineNumber: 16 }); })();
|
|
8665
8781
|
|
|
@@ -8671,5 +8787,5 @@ class AccessibilityDialogComponent {
|
|
|
8671
8787
|
* Generated bundle index. Do not edit.
|
|
8672
8788
|
*/
|
|
8673
8789
|
|
|
8674
|
-
export { ALERT_CONFIGURATION_TOKEN, AccessibilityContrasts, AccessibilityDialogComponent, AccessibilityFontSizes, AccessibilityService, AlertService, AuthHeadersHelper, COLLECTIONS_MENU, ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CombinedCollection, CombinedCollectionTooltipKey, CompanyProductComponent, CompanyProductModule, Confirmation, ConfirmationModalComponent, ConfirmationModalModule, ConfirmationService, ConversionHelper, CustomPaginatorInernationalizationHelper, CustomTitleStrategyService, DISABLE_EXPORT_ATTRIBUTE_NAME, DOMService, DateAgoModule, DateAgoPipe, DomainTranslatePipe, DragAndDropDirective, DragAndDropModule, ERROR_CODES, EngineTermApiService, EngineTermCollectionScope, EngineTermCollectionSource, EngineTermCollectionStatus, EngineTermCollectionSubStatus, ExportFormat, ExtensionDialogComponent, ExtensionDialogModule, ExtensionDialogService, FILE_SIZE_UNIT, FileCategories, FileExtensionHelper, FileExtensions, FileSizeLabelPipe, FileTypeIcons, FileTypes, FileUploadComponent, FileUploadErrorTypeEnum, FileUploadModule, FilterBarComponent, FilterBarModule, FilterWithHighlightModule, FilterWithHighlightPipe, FooterComponent, FooterModule, GlobalMessageComponent, HashHelper, HtmlElementParseHelper, HtmlHelper, IconService, InlineMessageComponent, InlineMessageIconPosition, InlineMessageModule, InlineMessageType, LAST_USED_SYSTEM_LOCAL_STORAGE_KEY, LLMActions, LLMComponent, LLMModule, LLM_CONFIGURATION_TOKEN, LanguageTranslateModule, LanguageTranslatePipe, LanguageTranslateService, MatButtonLoadingDirective, MatButtonLoadingModule, MissingTranslationHandlerService, MissingTranslationHelper, MtCollectionStatus, MultiFunctionalTableComponent, MultiFunctionalTableModule, NewFeatureDialogWrapperComponent, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, NotificationService, OPEN_CLOSE_BTN_ICONS_TOKEN, ObjectLengthModule, ObjectLengthPipe, OpenCloseButtonComponent, OpenCloseButtonModule, OpenExtensionDialogComponent, Operations, PlausibleEventDirective, PlausibleHelper, PlausibleModule, ResolutionHelper, SCREEN_SIZE, SaveFileHelper, SelectLanguageDialogComponent, SidebarComponent, SidebarService, SortAlphabeticallyModule, SortAlphabeticallyPipe, SortByNumberPipe, SortDomainsPipe, SortHelper, SortLanguageListPipe, SortTranslationsByPropertyModule, SortTranslationsByPropertyPipe, SortTranslationsModule, SortTranslationsPipe, StatusDisplayComponent, StatusDisplayModule, SubscriptionComponent, SubscriptionPlan, SystemService, TerminologyApiService, TerminologyCollectionService, TerminologyComponent, TerminologyConfigService, TerminologyCreateCollectionComponent, TerminologyModule, TerminologyService, TextToSpeechComponent, TldLoaderComponent, TldLoaderModule, ToastComponent, ToastService, getFileSizeLabel, provideCustomTitleStrategy };
|
|
8790
|
+
export { ALERT_CONFIGURATION_TOKEN, AccessibilityContrasts, AccessibilityDialogComponent, AccessibilityFontSizes, AccessibilityService, AccessibilityTextMagnifierService, AlertService, AuthHeadersHelper, COLLECTIONS_MENU, ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CombinedCollection, CombinedCollectionTooltipKey, CompanyProductComponent, CompanyProductModule, Confirmation, ConfirmationModalComponent, ConfirmationModalModule, ConfirmationService, ConversionHelper, CustomPaginatorInernationalizationHelper, CustomTitleStrategyService, DISABLE_EXPORT_ATTRIBUTE_NAME, DOMService, DateAgoModule, DateAgoPipe, DomainTranslatePipe, DragAndDropDirective, DragAndDropModule, ERROR_CODES, EngineTermApiService, EngineTermCollectionScope, EngineTermCollectionSource, EngineTermCollectionStatus, EngineTermCollectionSubStatus, ExportFormat, ExtensionDialogComponent, ExtensionDialogModule, ExtensionDialogService, FILE_SIZE_UNIT, FileCategories, FileExtensionHelper, FileExtensions, FileSizeLabelPipe, FileTypeIcons, FileTypes, FileUploadComponent, FileUploadErrorTypeEnum, FileUploadModule, FilterBarComponent, FilterBarModule, FilterWithHighlightModule, FilterWithHighlightPipe, FooterComponent, FooterModule, GlobalMessageComponent, HashHelper, HtmlElementParseHelper, HtmlHelper, IconService, InlineMessageComponent, InlineMessageIconPosition, InlineMessageModule, InlineMessageType, LAST_USED_SYSTEM_LOCAL_STORAGE_KEY, LLMActions, LLMComponent, LLMModule, LLM_CONFIGURATION_TOKEN, LanguageTranslateModule, LanguageTranslatePipe, LanguageTranslateService, MatButtonLoadingDirective, MatButtonLoadingModule, MissingTranslationHandlerService, MissingTranslationHelper, MtCollectionStatus, MultiFunctionalTableComponent, MultiFunctionalTableModule, NewFeatureDialogWrapperComponent, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, NotificationService, OPEN_CLOSE_BTN_ICONS_TOKEN, ObjectLengthModule, ObjectLengthPipe, OpenCloseButtonComponent, OpenCloseButtonModule, OpenExtensionDialogComponent, Operations, PlausibleEventDirective, PlausibleHelper, PlausibleModule, ResolutionHelper, SCREEN_SIZE, SaveFileHelper, SelectLanguageDialogComponent, SidebarComponent, SidebarService, SortAlphabeticallyModule, SortAlphabeticallyPipe, SortByNumberPipe, SortDomainsPipe, SortHelper, SortLanguageListPipe, SortTranslationsByPropertyModule, SortTranslationsByPropertyPipe, SortTranslationsModule, SortTranslationsPipe, StatusDisplayComponent, StatusDisplayModule, SubscriptionComponent, SubscriptionPlan, SystemService, TerminologyApiService, TerminologyCollectionService, TerminologyComponent, TerminologyConfigService, TerminologyCreateCollectionComponent, TerminologyModule, TerminologyService, TextToSpeechComponent, TldLoaderComponent, TldLoaderModule, ToastComponent, ToastService, getFileSizeLabel, provideCustomTitleStrategy };
|
|
8675
8791
|
//# sourceMappingURL=tilde-nlp-ngx-common.mjs.map
|