@tilde-nlp/ngx-common 8.1.3 → 8.1.4
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/index.d.ts
CHANGED
|
@@ -2493,6 +2493,7 @@ declare enum AccessibilityContrasts {
|
|
|
2493
2493
|
declare class AccessibilityDialogComponent implements OnInit {
|
|
2494
2494
|
#private;
|
|
2495
2495
|
isTextMagnifierEnabled: boolean;
|
|
2496
|
+
isScreenMaskEnabled: boolean;
|
|
2496
2497
|
selectedFontSizeIndex: number;
|
|
2497
2498
|
currentContrast: AccessibilityContrasts;
|
|
2498
2499
|
readonly contrasts: AccessibilityContrasts[];
|
|
@@ -2500,6 +2501,8 @@ declare class AccessibilityDialogComponent implements OnInit {
|
|
|
2500
2501
|
changeContrast(contrast: AccessibilityContrasts): void;
|
|
2501
2502
|
changeFontSize(e: MatTabChangeEvent): void;
|
|
2502
2503
|
toggleTextMagnifier(): void;
|
|
2504
|
+
toggleScreenMask(): void;
|
|
2505
|
+
closeFocusBar(): void;
|
|
2503
2506
|
reset(): void;
|
|
2504
2507
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccessibilityDialogComponent, never>;
|
|
2505
2508
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccessibilityDialogComponent, "lib-accessibility-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -2516,11 +2519,16 @@ declare class AccessibilityService {
|
|
|
2516
2519
|
readonly fontSizeLocalStorageKey = "ACCESSIBILITY_FONT_SIZE_IX";
|
|
2517
2520
|
readonly contrastLocalStorageKey = "ACCESSIBILITY_CONTRAST";
|
|
2518
2521
|
readonly textMagnifierLocalStorageKey = "TEXT_MAGNIFIER";
|
|
2522
|
+
readonly screenMaskLocalStorageKey = "SCREEN_MASK";
|
|
2519
2523
|
sizeIncreaseSubject: Subject<boolean>;
|
|
2520
2524
|
contrastSubject: Subject<string>;
|
|
2525
|
+
toggleScreenMask(): void;
|
|
2526
|
+
closeFocusBar(): void;
|
|
2521
2527
|
toggleTextMagnifier(): void;
|
|
2522
2528
|
getSavedTextMagnifierStatus(): boolean;
|
|
2529
|
+
getSavedScreenMaskStatus(): boolean;
|
|
2523
2530
|
setSavedTextMagnifierStatus(): void;
|
|
2531
|
+
setSavedScreenMaskStatus(): void;
|
|
2524
2532
|
saveContrast(contrast: string): void;
|
|
2525
2533
|
getSavedContrast(): AccessibilityContrasts;
|
|
2526
2534
|
getSavedFontSize(): number;
|
package/package.json
CHANGED
|
@@ -17,3 +17,65 @@
|
|
|
17
17
|
max-width: 20vw;
|
|
18
18
|
scale: 2;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
.screen-mask {
|
|
22
|
+
position: fixed;
|
|
23
|
+
height: 100%;
|
|
24
|
+
width: 100%;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
z-index: 99999;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.screen-mask-overlay {
|
|
32
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
33
|
+
pointer-events: auto;
|
|
34
|
+
height: 100%;
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.screen-mask-focus-bar {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: end;
|
|
42
|
+
position: fixed;
|
|
43
|
+
height: 60px;
|
|
44
|
+
width: 100%;
|
|
45
|
+
background: transparent;
|
|
46
|
+
left: 0;
|
|
47
|
+
top: 0;
|
|
48
|
+
padding-right: 20px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.screen-mask-focus-bar button {
|
|
52
|
+
height: 40px;
|
|
53
|
+
width: 40px;
|
|
54
|
+
padding: 12px;
|
|
55
|
+
pointer-events: all;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
background-color: var(--base-95);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.screen-mask-bar {
|
|
67
|
+
align-items: center;
|
|
68
|
+
height: 100%;
|
|
69
|
+
position: absolute;
|
|
70
|
+
right: 10px;
|
|
71
|
+
z-index: 1;
|
|
72
|
+
display: flex;
|
|
73
|
+
background: transparent;
|
|
74
|
+
pointer-events: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.screen-mask-bar-btn {
|
|
78
|
+
display: flex !important;
|
|
79
|
+
align-items: center !important;
|
|
80
|
+
justify-content: center !important;
|
|
81
|
+
}
|