@tilde-nlp/ngx-common 8.1.97 → 8.1.98

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
@@ -2058,6 +2058,60 @@ declare enum ERROR_CODES {
2058
2058
  TIMEOUT = 504
2059
2059
  }
2060
2060
 
2061
+ interface DownloadFormat {
2062
+ extension: string;
2063
+ label?: string;
2064
+ }
2065
+
2066
+ /** A configurable checkbox rendered under the format selector. */
2067
+ interface DownloadOption {
2068
+ /** Key used in the returned options record. */
2069
+ key: string;
2070
+ /** Translation key for the checkbox label. */
2071
+ labelKey: string;
2072
+ /** Initial checked state. Defaults to `false`. */
2073
+ defaultValue?: boolean;
2074
+ /** Restricts the option to these extensions. When omitted, it applies to every format. */
2075
+ extensions?: string[];
2076
+ /** Optional description translation key rendered above the option. */
2077
+ descriptionKey?: string;
2078
+ }
2079
+
2080
+ interface DownloadDialogData<T extends DownloadFormat = DownloadFormat> {
2081
+ /** Formats the user can pick from. */
2082
+ formats: T[];
2083
+ /** Options rendered as checkboxes under the format selector. */
2084
+ options?: DownloadOption[];
2085
+ /** `localStorage` key used to remember the last selected extension. Defaults to `'last-downloaded-extension'`. */
2086
+ localStorageKey?: string;
2087
+ /** Title translation key. Defaults to `'DOWNLOAD_DIALOG.TITLE'`. */
2088
+ titleKey: string;
2089
+ titleParams?: Record<string, string | number>;
2090
+ subtitleKey?: string;
2091
+ }
2092
+
2093
+ declare class DownloadDialogComponent implements OnInit {
2094
+ #private;
2095
+ readonly data: DownloadDialogData;
2096
+ formats: DownloadFormat[];
2097
+ selected: DownloadFormat;
2098
+ optionValues: Record<string, boolean>;
2099
+ get titleKey(): string;
2100
+ get titleParams(): Record<string, string | number>;
2101
+ get subtitleKey(): string | null;
2102
+ get visibleOptions(): DownloadOption[];
2103
+ ngOnInit(): void;
2104
+ download(): void;
2105
+ static ɵfac: i0.ɵɵFactoryDeclaration<DownloadDialogComponent, never>;
2106
+ static ɵcmp: i0.ɵɵComponentDeclaration<DownloadDialogComponent, "lib-download-dialog", never, {}, {}, never, never, true, never>;
2107
+ }
2108
+
2109
+ /** Result returned when the dialog is closed via the download button. */
2110
+ interface DownloadExtensionResult {
2111
+ extension: string;
2112
+ options: Record<string, boolean>;
2113
+ }
2114
+
2061
2115
  interface Voice {
2062
2116
  voice: string;
2063
2117
  voiceName?: string;
@@ -2822,5 +2876,5 @@ declare class ResourceUnavailableComponent {
2822
2876
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceUnavailableComponent, "lib-resource-unavailable", never, {}, {}, never, never, true, never>;
2823
2877
  }
2824
2878
 
2825
- export { ALERT_CONFIGURATION_TOKEN, AccessibilityContrasts, AccessibilityDialogComponent, AccessibilityFontSizes, AccessibilityService, AccessibilityTextMagnifierService, AlertService, AnalyticsService, AuthHeadersHelper, COLLECTIONS_MENU, CUSTOM_TITLE_CONFIGURATION_TOKEN, ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CombinedCollection, CombinedCollectionTooltipKey, CompanyProductComponent, CompanyProductModule, Confirmation, ConfirmationModalComponent, ConfirmationModalModule, ConfirmationService, ConversionHelper, CookieConsentComponent, CustomPaginatorInernationalizationHelper, CustomTitleStrategyService, CustomTranslateLoader, CustomTranslateParseService, DEFAULT_ACCESSIBILITY_PREFERENCES, DEFAULT_COOKIE_CONSENT_PREFERENCES, DEFAULT_USER_CONFIG, DEFAULT_USER_CONFIG_IFRAME_URL, DEFAULT_USER_CONFIG_OPTIONS, DISABLE_EXPORT_ATTRIBUTE_NAME, DOMService, DateAgoModule, DateAgoPipe, DomainTranslatePipe, DragAndDropDirective, DragAndDropModule, ERROR_CODES, EngineTermApiService, EngineTermCollectionScope, EngineTermCollectionSource, EngineTermCollectionStatus, EngineTermCollectionSubStatus, ExpiresInPipe, 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, LOCALIZATION_CONFIGURATION_TOKEN, LanguageHelper, LanguageTranslateModule, LanguageTranslatePipe, LanguageTranslateService, MatButtonLoadingDirective, MatButtonLoadingModule, MatomoService, MissingTranslationHelper, MtCollectionStatus, MultiFunctionalTableComponent, MultiFunctionalTableModule, NewFeatureDialogWrapperComponent, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, NotificationService, OPEN_CLOSE_BTN_ICONS_TOKEN, ObjectLengthModule, ObjectLengthPipe, OpenCloseButtonComponent, OpenCloseButtonModule, OpenExtensionDialogComponent, Operations, PlausibleEventDirective, PlausibleHelper, PlausibleModule, ResolutionHelper, ResourceUnavailableComponent, SCREEN_SIZE, SaveFileHelper, SelectLanguageDialogComponent, SidebarComponent, SidebarService, SortAlphabeticallyModule, SortAlphabeticallyPipe, SortByNumberPipe, SortDomainsPipe, SortHelper, SortLanguageListPipe, SortTranslationsByPropertyModule, SortTranslationsByPropertyPipe, SortTranslationsModule, SortTranslationsPipe, StatusDisplayComponent, StatusDisplayModule, StatusPillComponent, SubscriptionComponent, SubscriptionPlan, SystemService, TerminologyApiService, TerminologyCollectionService, TerminologyComponent, TerminologyConfigService, TerminologyCreateCollectionComponent, TerminologyModule, TerminologyService, TextToSpeechComponent, TldLoaderComponent, TldLoaderModule, ToastComponent, ToastService, UILanguageService, USER_CONFIG_IFRAME_NAME, USER_CONFIG_IFRAME_TARGET_ORIGIN, USER_CONFIG_MESSAGE_REQUEST, USER_CONFIG_MESSAGE_SNAPSHOT, USER_CONFIG_MESSAGE_UPDATE, USER_CONFIG_OPTIONS, USER_CONFIG_STORAGE, USER_CONFIG_STORAGE_KEY, USER_CONFIG_VERSION, UserConfigStrategy, createMetadata, getFileSizeLabel, isUserConfigOptionsFactoryProvider, provideCustomTitleStrategy, provideLanguageService, provideUserConfig, userConfigStorageFactory };
2826
- export type { AccessibilityPreferences, ActiveData, AddEngineTermsRequestParams, Addon, AlertConfiguration, AuthSubscription, BatchConfig, Category, ChargebeeSettings, Column, ColumnConfig, ColumnSelectConfig, Config, ConfirmationBody, CookieConsentPreferences, CustomTitleStrategyConfiguration, DefaultCollectionOrderUpdate, DialogData, Domain, DomainList, EngineTermCollection, EngineTermCollectionAccess, EngineTermCollectionAccessScope, EngineTermCollectionAccessScopeUpdate, EngineTermCollectionAccessUpdate, EngineTermCollectionList, ExportConfig, ExtensionWithIcon, FileUploadError, FilterBarChangeEvent, FilterBarFilter, FilterBarFilterItem, FilterBarSettings, GlobalMessageAction, ITldTermCollection, ITldTermCollectionLanguages, InlineMessage, JwtToken, LLMConfiguration, LangListItem, LanguagePreference, LanguageServiceProviderConfig, LocalizationConfigFactoryProvider, LocalizationConfiguration, MatomoConfiguration, MobileScreenCustomPosition, MtCollection, MultiFunctionalTableConfig, NotificationMessage, NotificationWithOperation, OpenCloseBtnIcons, PaginatorConfig, PlausibleEvent, StatusDisplayConfig, StatusPillSize, StatusPillType, System, TerminologyConfig, TranslatedLanguage, UILanguagesConfiguration, UpdateEngineTermsRequestParams, UserConfig, UserConfigMetadata, UserConfigOptions, UserConfigOptionsFactoryProvider, UserConfigOptionsInput, UserConfigProviderConfig, UserConfigStorage, UserConfigUpdate, Vendor, Voice };
2879
+ export { ALERT_CONFIGURATION_TOKEN, AccessibilityContrasts, AccessibilityDialogComponent, AccessibilityFontSizes, AccessibilityService, AccessibilityTextMagnifierService, AlertService, AnalyticsService, AuthHeadersHelper, COLLECTIONS_MENU, CUSTOM_TITLE_CONFIGURATION_TOKEN, ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CombinedCollection, CombinedCollectionTooltipKey, CompanyProductComponent, CompanyProductModule, Confirmation, ConfirmationModalComponent, ConfirmationModalModule, ConfirmationService, ConversionHelper, CookieConsentComponent, CustomPaginatorInernationalizationHelper, CustomTitleStrategyService, CustomTranslateLoader, CustomTranslateParseService, DEFAULT_ACCESSIBILITY_PREFERENCES, DEFAULT_COOKIE_CONSENT_PREFERENCES, DEFAULT_USER_CONFIG, DEFAULT_USER_CONFIG_IFRAME_URL, DEFAULT_USER_CONFIG_OPTIONS, DISABLE_EXPORT_ATTRIBUTE_NAME, DOMService, DateAgoModule, DateAgoPipe, DomainTranslatePipe, DownloadDialogComponent, DragAndDropDirective, DragAndDropModule, ERROR_CODES, EngineTermApiService, EngineTermCollectionScope, EngineTermCollectionSource, EngineTermCollectionStatus, EngineTermCollectionSubStatus, ExpiresInPipe, 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, LOCALIZATION_CONFIGURATION_TOKEN, LanguageHelper, LanguageTranslateModule, LanguageTranslatePipe, LanguageTranslateService, MatButtonLoadingDirective, MatButtonLoadingModule, MatomoService, MissingTranslationHelper, MtCollectionStatus, MultiFunctionalTableComponent, MultiFunctionalTableModule, NewFeatureDialogWrapperComponent, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, NotificationService, OPEN_CLOSE_BTN_ICONS_TOKEN, ObjectLengthModule, ObjectLengthPipe, OpenCloseButtonComponent, OpenCloseButtonModule, OpenExtensionDialogComponent, Operations, PlausibleEventDirective, PlausibleHelper, PlausibleModule, ResolutionHelper, ResourceUnavailableComponent, SCREEN_SIZE, SaveFileHelper, SelectLanguageDialogComponent, SidebarComponent, SidebarService, SortAlphabeticallyModule, SortAlphabeticallyPipe, SortByNumberPipe, SortDomainsPipe, SortHelper, SortLanguageListPipe, SortTranslationsByPropertyModule, SortTranslationsByPropertyPipe, SortTranslationsModule, SortTranslationsPipe, StatusDisplayComponent, StatusDisplayModule, StatusPillComponent, SubscriptionComponent, SubscriptionPlan, SystemService, TerminologyApiService, TerminologyCollectionService, TerminologyComponent, TerminologyConfigService, TerminologyCreateCollectionComponent, TerminologyModule, TerminologyService, TextToSpeechComponent, TldLoaderComponent, TldLoaderModule, ToastComponent, ToastService, UILanguageService, USER_CONFIG_IFRAME_NAME, USER_CONFIG_IFRAME_TARGET_ORIGIN, USER_CONFIG_MESSAGE_REQUEST, USER_CONFIG_MESSAGE_SNAPSHOT, USER_CONFIG_MESSAGE_UPDATE, USER_CONFIG_OPTIONS, USER_CONFIG_STORAGE, USER_CONFIG_STORAGE_KEY, USER_CONFIG_VERSION, UserConfigStrategy, createMetadata, getFileSizeLabel, isUserConfigOptionsFactoryProvider, provideCustomTitleStrategy, provideLanguageService, provideUserConfig, userConfigStorageFactory };
2880
+ export type { AccessibilityPreferences, ActiveData, AddEngineTermsRequestParams, Addon, AlertConfiguration, AuthSubscription, BatchConfig, Category, ChargebeeSettings, Column, ColumnConfig, ColumnSelectConfig, Config, ConfirmationBody, CookieConsentPreferences, CustomTitleStrategyConfiguration, DefaultCollectionOrderUpdate, DialogData, Domain, DomainList, DownloadDialogData, DownloadExtensionResult, DownloadFormat, DownloadOption, EngineTermCollection, EngineTermCollectionAccess, EngineTermCollectionAccessScope, EngineTermCollectionAccessScopeUpdate, EngineTermCollectionAccessUpdate, EngineTermCollectionList, ExportConfig, ExtensionWithIcon, FileUploadError, FilterBarChangeEvent, FilterBarFilter, FilterBarFilterItem, FilterBarSettings, GlobalMessageAction, ITldTermCollection, ITldTermCollectionLanguages, InlineMessage, JwtToken, LLMConfiguration, LangListItem, LanguagePreference, LanguageServiceProviderConfig, LocalizationConfigFactoryProvider, LocalizationConfiguration, MatomoConfiguration, MobileScreenCustomPosition, MtCollection, MultiFunctionalTableConfig, NotificationMessage, NotificationWithOperation, OpenCloseBtnIcons, PaginatorConfig, PlausibleEvent, StatusDisplayConfig, StatusPillSize, StatusPillType, System, TerminologyConfig, TranslatedLanguage, UILanguagesConfiguration, UpdateEngineTermsRequestParams, UserConfig, UserConfigMetadata, UserConfigOptions, UserConfigOptionsFactoryProvider, UserConfigOptionsInput, UserConfigProviderConfig, UserConfigStorage, UserConfigUpdate, Vendor, Voice };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "8.1.97",
3
+ "version": "8.1.98",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",