@tilde-nlp/ngx-common 8.1.19 → 8.1.20
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.
|
@@ -9086,6 +9086,26 @@ const translations = {
|
|
|
9086
9086
|
},
|
|
9087
9087
|
};
|
|
9088
9088
|
|
|
9089
|
+
class AnalyticsService {
|
|
9090
|
+
constructor() {
|
|
9091
|
+
this.cookieConsentSubject = new Subject();
|
|
9092
|
+
}
|
|
9093
|
+
getCookieConsent() {
|
|
9094
|
+
return this.cookieConsentSubject.asObservable();
|
|
9095
|
+
}
|
|
9096
|
+
cookieConsentGiven(approved) {
|
|
9097
|
+
this.cookieConsentSubject.next(approved);
|
|
9098
|
+
}
|
|
9099
|
+
static { this.ɵfac = function AnalyticsService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AnalyticsService)(); }; }
|
|
9100
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AnalyticsService, factory: AnalyticsService.ɵfac, providedIn: 'root' }); }
|
|
9101
|
+
}
|
|
9102
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnalyticsService, [{
|
|
9103
|
+
type: Injectable,
|
|
9104
|
+
args: [{
|
|
9105
|
+
providedIn: 'root',
|
|
9106
|
+
}]
|
|
9107
|
+
}], null, null); })();
|
|
9108
|
+
|
|
9089
9109
|
function CookieConsentComponent_Conditional_0_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
9090
9110
|
i0.ɵɵelementStart(0, "mat-icon", 9);
|
|
9091
9111
|
i0.ɵɵtext(1);
|
|
@@ -9269,12 +9289,14 @@ function CookieConsentComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9269
9289
|
} }
|
|
9270
9290
|
class CookieConsentComponent {
|
|
9271
9291
|
constructor() {
|
|
9292
|
+
this.#analytics = inject(AnalyticsService);
|
|
9272
9293
|
this.#translate = inject(TranslateService);
|
|
9273
9294
|
this.isClosed = false;
|
|
9274
9295
|
this.isDetailsVisible = false;
|
|
9275
9296
|
this.#COOKIE_CONSENT_ACCEPTED_KEY = 'cookie-consent-accepted';
|
|
9276
9297
|
this.#COOKIE_CONSENT_DECLINED_KEY = 'cookie-consent-declined';
|
|
9277
9298
|
}
|
|
9299
|
+
#analytics;
|
|
9278
9300
|
#translate;
|
|
9279
9301
|
#COOKIE_CONSENT_ACCEPTED_KEY;
|
|
9280
9302
|
#COOKIE_CONSENT_DECLINED_KEY;
|
|
@@ -9296,10 +9318,7 @@ class CookieConsentComponent {
|
|
|
9296
9318
|
}
|
|
9297
9319
|
accept() {
|
|
9298
9320
|
this.isClosed = true;
|
|
9299
|
-
|
|
9300
|
-
window['_paq'].push(['setCookieConsentGiven']);
|
|
9301
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9302
|
-
window['_paq'].push(['rememberCookieConsentGiven']);
|
|
9321
|
+
this.#analytics.cookieConsentGiven(true);
|
|
9303
9322
|
localStorage.setItem(this.#COOKIE_CONSENT_ACCEPTED_KEY, 'true');
|
|
9304
9323
|
}
|
|
9305
9324
|
decline() {
|
|
@@ -9329,7 +9348,7 @@ class CookieConsentComponent {
|
|
|
9329
9348
|
}], privacyPolicyUrl: [{
|
|
9330
9349
|
type: Input
|
|
9331
9350
|
}] }); })();
|
|
9332
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CookieConsentComponent, { className: "CookieConsentComponent", filePath: "lib/analytics/cookie-consent/cookie-consent.component.ts", lineNumber:
|
|
9351
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CookieConsentComponent, { className: "CookieConsentComponent", filePath: "lib/analytics/cookie-consent/cookie-consent.component.ts", lineNumber: 15 }); })();
|
|
9333
9352
|
|
|
9334
9353
|
/*
|
|
9335
9354
|
* Public API Surface of ngx-common
|
|
@@ -9339,5 +9358,5 @@ class CookieConsentComponent {
|
|
|
9339
9358
|
* Generated bundle index. Do not edit.
|
|
9340
9359
|
*/
|
|
9341
9360
|
|
|
9342
|
-
export { ALERT_CONFIGURATION_TOKEN, AccessibilityContrasts, AccessibilityDialogComponent, AccessibilityFontSizes, AccessibilityService, AccessibilityTextMagnifierService, AlertService, AuthHeadersHelper, COLLECTIONS_MENU, CUSTOM_TITLE_CONFIGURATION_TOKEN, ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CombinedCollection, CombinedCollectionTooltipKey, CompanyProductComponent, CompanyProductModule, Confirmation, ConfirmationModalComponent, ConfirmationModalModule, ConfirmationService, ConversionHelper, CookieConsentComponent, CustomPaginatorInernationalizationHelper, CustomTitleStrategyService, CustomTranslateLoader, 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 };
|
|
9361
|
+
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, 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 };
|
|
9343
9362
|
//# sourceMappingURL=tilde-nlp-ngx-common.mjs.map
|