@tilde-nlp/ngx-common 8.1.2 → 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
|
@@ -2492,24 +2492,45 @@ declare enum AccessibilityContrasts {
|
|
|
2492
2492
|
|
|
2493
2493
|
declare class AccessibilityDialogComponent implements OnInit {
|
|
2494
2494
|
#private;
|
|
2495
|
+
isTextMagnifierEnabled: boolean;
|
|
2496
|
+
isScreenMaskEnabled: boolean;
|
|
2495
2497
|
selectedFontSizeIndex: number;
|
|
2496
|
-
currentContrast:
|
|
2498
|
+
currentContrast: AccessibilityContrasts;
|
|
2497
2499
|
readonly contrasts: AccessibilityContrasts[];
|
|
2498
2500
|
ngOnInit(): void;
|
|
2499
|
-
changeContrast(contrast:
|
|
2501
|
+
changeContrast(contrast: AccessibilityContrasts): void;
|
|
2500
2502
|
changeFontSize(e: MatTabChangeEvent): void;
|
|
2503
|
+
toggleTextMagnifier(): void;
|
|
2504
|
+
toggleScreenMask(): void;
|
|
2505
|
+
closeFocusBar(): void;
|
|
2501
2506
|
reset(): void;
|
|
2502
2507
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccessibilityDialogComponent, never>;
|
|
2503
2508
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccessibilityDialogComponent, "lib-accessibility-dialog", never, {}, {}, never, never, true, never>;
|
|
2504
2509
|
}
|
|
2505
2510
|
|
|
2511
|
+
declare enum AccessibilityFontSizes {
|
|
2512
|
+
BASE = "1rem",
|
|
2513
|
+
L = "1.25rem",
|
|
2514
|
+
XL = "1.5rem"
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2506
2517
|
declare class AccessibilityService {
|
|
2518
|
+
#private;
|
|
2507
2519
|
readonly fontSizeLocalStorageKey = "ACCESSIBILITY_FONT_SIZE_IX";
|
|
2508
2520
|
readonly contrastLocalStorageKey = "ACCESSIBILITY_CONTRAST";
|
|
2521
|
+
readonly textMagnifierLocalStorageKey = "TEXT_MAGNIFIER";
|
|
2522
|
+
readonly screenMaskLocalStorageKey = "SCREEN_MASK";
|
|
2509
2523
|
sizeIncreaseSubject: Subject<boolean>;
|
|
2510
2524
|
contrastSubject: Subject<string>;
|
|
2525
|
+
toggleScreenMask(): void;
|
|
2526
|
+
closeFocusBar(): void;
|
|
2527
|
+
toggleTextMagnifier(): void;
|
|
2528
|
+
getSavedTextMagnifierStatus(): boolean;
|
|
2529
|
+
getSavedScreenMaskStatus(): boolean;
|
|
2530
|
+
setSavedTextMagnifierStatus(): void;
|
|
2531
|
+
setSavedScreenMaskStatus(): void;
|
|
2511
2532
|
saveContrast(contrast: string): void;
|
|
2512
|
-
getSavedContrast():
|
|
2533
|
+
getSavedContrast(): AccessibilityContrasts;
|
|
2513
2534
|
getSavedFontSize(): number;
|
|
2514
2535
|
saveFontSize(ix: number): void;
|
|
2515
2536
|
setFontSize(fontSizeIx: number): void;
|
|
@@ -2518,11 +2539,17 @@ declare class AccessibilityService {
|
|
|
2518
2539
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccessibilityService>;
|
|
2519
2540
|
}
|
|
2520
2541
|
|
|
2521
|
-
declare
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2542
|
+
declare class AccessibilityTextMagnifierService {
|
|
2543
|
+
private magnifiedText;
|
|
2544
|
+
private mousemoveHandler;
|
|
2545
|
+
private mouseoverHandler;
|
|
2546
|
+
toggleTextMagnifier(isDisabled: boolean): void;
|
|
2547
|
+
private addMagnifier;
|
|
2548
|
+
private removeMagnifier;
|
|
2549
|
+
private getFirstTextContent;
|
|
2550
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessibilityTextMagnifierService, never>;
|
|
2551
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccessibilityTextMagnifierService>;
|
|
2525
2552
|
}
|
|
2526
2553
|
|
|
2527
|
-
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 };
|
|
2554
|
+
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 };
|
|
2528
2555
|
export type { ActiveData, AddEngineTermsRequestParams, Addon, AlertConfiguration, AuthSubscription, BatchConfig, Category, ChargebeeSettings, Column, ColumnConfig, ColumnSelectConfig, Config, ConfirmationBody, DefaultCollectionOrderUpdate, DialogData, Domain, DomainList, EngineTermCollection, EngineTermCollectionAccess, EngineTermCollectionAccessScope, EngineTermCollectionAccessScopeUpdate, EngineTermCollectionAccessUpdate, EngineTermCollectionList, ExportConfig, ExtensionWithIcon, FileUploadError, FilterBarChangeEvent, FilterBarFilter, FilterBarFilterItem, FilterBarSettings, GlobalMessageAction, ITldTermCollection, ITldTermCollectionLanguages, InlineMessage, JwtToken, LLMConfiguration, LangListItem, MobileScreenCustomPosition, MtCollection, MultiFunctionalTableConfig, NotificationMessage, NotificationWithOperation, OpenCloseBtnIcons, PaginatorConfig, PlausibleEvent, StatusDisplayConfig, System, TerminologyConfig, TranslatedLanguage, UpdateEngineTermsRequestParams, Vendor, Voice };
|
package/package.json
CHANGED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@import "./contrast-themes/black-white.scss";
|
|
2
|
+
@import "./contrast-themes/yellow-black.scss";
|
|
3
|
+
@import "./contrast-themes/black-yellow.scss";
|
|
4
|
+
|
|
5
|
+
.magnified-text {
|
|
6
|
+
position: absolute;
|
|
7
|
+
z-index: 9999 !important;
|
|
8
|
+
padding: 0 4px;
|
|
9
|
+
background-color: #000000bf;
|
|
10
|
+
color: #fff;
|
|
11
|
+
border-radius: 5px;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
user-select: none;
|
|
14
|
+
transition: opacity 0.3s;
|
|
15
|
+
display: none;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
max-width: 20vw;
|
|
18
|
+
scale: 2;
|
|
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
|
+
}
|