@tilde-nlp/ngx-common 8.1.18 → 8.1.19
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.
|
@@ -9282,7 +9282,7 @@ class CookieConsentComponent {
|
|
|
9282
9282
|
const script = document.createElement('script');
|
|
9283
9283
|
script.async = true;
|
|
9284
9284
|
script.defer = true;
|
|
9285
|
-
script.innerHTML = this.script
|
|
9285
|
+
script.innerHTML = this.script;
|
|
9286
9286
|
document.body.appendChild(script);
|
|
9287
9287
|
if (this.isCookieConsentConfigured()) {
|
|
9288
9288
|
this.isClosed = true;
|
|
@@ -9297,7 +9297,9 @@ class CookieConsentComponent {
|
|
|
9297
9297
|
accept() {
|
|
9298
9298
|
this.isClosed = true;
|
|
9299
9299
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9300
|
-
window['
|
|
9300
|
+
window['_paq'].push(['setCookieConsentGiven']);
|
|
9301
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9302
|
+
window['_paq'].push(['rememberCookieConsentGiven']);
|
|
9301
9303
|
localStorage.setItem(this.#COOKIE_CONSENT_ACCEPTED_KEY, 'true');
|
|
9302
9304
|
}
|
|
9303
9305
|
decline() {
|
|
@@ -9313,7 +9315,7 @@ class CookieConsentComponent {
|
|
|
9313
9315
|
return isAccepted || isDeclined;
|
|
9314
9316
|
}
|
|
9315
9317
|
static { this.ɵfac = function CookieConsentComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CookieConsentComponent)(); }; }
|
|
9316
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CookieConsentComponent, selectors: [["lib-cookie-consent"]], inputs: { script: "script",
|
|
9318
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CookieConsentComponent, selectors: [["lib-cookie-consent"]], inputs: { script: "script", privacyPolicyUrl: "privacyPolicyUrl" }, decls: 1, vars: 1, consts: [[1, "cookie-consent-container"], [1, "cookie-consent-content"], [1, "cookie-consent-description", 3, "innerHTML"], [1, "cookie-consent-actions"], ["mat-flat-button", "", 3, "click"], ["mat-stroked-button", "", 3, "click"], [1, "cookie-consent-info"], [1, "cookie-consent-info--privacy", 3, "href"], [1, "cookie-consent-info--details", 3, "click"], [1, "spin"], [1, "cookie-consent--details"]], template: function CookieConsentComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9317
9319
|
i0.ɵɵconditionalCreate(0, CookieConsentComponent_Conditional_0_Template, 90, 79, "section", 0);
|
|
9318
9320
|
} if (rf & 2) {
|
|
9319
9321
|
i0.ɵɵconditional(!ctx.isClosed ? 0 : -1);
|
|
@@ -9324,8 +9326,6 @@ class CookieConsentComponent {
|
|
|
9324
9326
|
args: [{ selector: 'lib-cookie-consent', imports: [TranslateModule, MatButtonModule, MatIconModule, MatCheckboxModule], template: "@if (!isClosed) {\r\n<section class=\"cookie-consent-container\">\r\n\t<div class=\"cookie-consent-content\">\r\n\t\t<div class=\"cookie-consent-description\" [innerHTML]=\"'COOKIE_CONSENT.DESCRIPTION' | translate\"></div>\r\n\r\n\t\t<div class=\"cookie-consent-actions\">\r\n\t\t\t<button mat-flat-button (click)=\"accept()\">{{ \"COOKIE_CONSENT.ACCEPT\" | translate }}</button>\r\n\t\t\t<button mat-stroked-button (click)=\"decline()\">{{ \"COOKIE_CONSENT.DECLINE\" | translate }}</button>\r\n\t\t</div>\r\n\r\n\t\t<div class=\"cookie-consent-info\">\r\n\t\t\t<a [href]=\"privacyPolicyUrl\" class=\"cookie-consent-info--privacy\">{{ \"COOKIE_CONSENT.PRIVACY\" | translate }}</a>\r\n\t\t\t|\r\n\t\t\t<button class=\"cookie-consent-info--details\" (click)=\"toggleDetails()\">\r\n\t\t\t\t{{ \"COOKIE_CONSENT.DETAILS\" | translate }}\r\n\r\n\t\t\t\t@if (isDetailsVisible) {\r\n\t\t\t\t<mat-icon class=\"spin\">{{ \"keyboard_arrow_down\" }}</mat-icon>\r\n\t\t\t\t} @else {\r\n\t\t\t\t<mat-icon class=\"spin\">{{ \"keyboard_arrow_up\" }}</mat-icon>\r\n\t\t\t\t}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class=\"cookie-consent--details\" [class.cookie-consent--details-hidden]=\"!isDetailsVisible\">\r\n\t\t<table>\r\n\t\t\t<thead>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th>{{ \"COOKIE_CONSENT.MORE_INFORMATION.NAME\" | translate }}</th>\r\n\t\t\t\t\t<th>{{ \"COOKIE_CONSENT.MORE_INFORMATION.PURPOSE\" | translate }}</th>\r\n\t\t\t\t\t<th>{{ \"COOKIE_CONSENT.MORE_INFORMATION.CATEGORY\" | translate }}</th>\r\n\t\t\t\t\t<th>{{ \"COOKIE_CONSENT.MORE_INFORMATION.DURATION\" | translate }}</th>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\t\t\t<tbody>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.ALLOW_COOKIES\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.ALLOW_COOKIES_PURPOSE\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.FUNCTIONAL_COOKIES\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.ONE_YEAR\" | translate }}</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.CULTURE\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.CULTURE_PURPOSE\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.FUNCTIONAL_COOKIES\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.ONE_MONTH\" | translate }}</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.PK_ID\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.PK_ID_PURPOSE\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.ANALYTICAL_COOKIES\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.THIRTEEN_MONTHS\" | translate }}</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.PK_SES\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.PK_SES_PURPOSE\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.SESSION_COOKIES\" | translate }}</td>\r\n\t\t\t\t\t<td>{{ \"COOKIE_CONSENT.MORE_INFORMATION.THIRTY_MINUTES\" | translate }}</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</tbody>\r\n\t\t</table>\r\n\t</div>\r\n</section>\r\n\r\n}\r\n", styles: [".spin{animation:spinArrow .3s forwards}@keyframes spinArrow{to{transform:rotate(180deg)}}button{min-width:170px}tr{border-bottom:1px solid var(--base-65)}.cookie-consent-container{position:fixed;bottom:0;width:100%;background-color:var(--base-100);box-shadow:0 -2px 5px #0000001a;padding:25px;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center}.cookie-consent-content{max-width:800px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}.cookie-consent-description{color:var(--base-30)}.cookie-consent-actions{display:flex;gap:10px}.cookie-consent-info{display:flex;gap:16px;font-weight:700;font-size:14px}.cookie-consent-info--privacy,.cookie-consent-info--details{color:var(--base-30)!important}.cookie-consent-info--details{display:flex;align-items:center;gap:10px}table{margin-top:20px;color:var(--base-30)}th,td{padding:10px 20px}th{text-align:start}.cookie-consent--details{max-height:245px;transition:max-height .2s ease-in}.cookie-consent--details-hidden{max-height:0;transition:max-height .2s ease-out;overflow:hidden}@media (max-width: 600px){.cookie-consent-container{padding:15px}.cookie-consent-content{gap:15px}.cookie-consent-actions{flex-direction:column;width:100%}button{width:100%}.cookie-consent--details{max-width:100vw;overflow:auto}.cookie-consent-info--details{gap:0}.cookie-consent-info--details mat-icon{display:none}th,td{padding:2px 4px}}.cookie-consent-configuration-description{color:var(--base-40)}mat-checkbox{width:100%;text-align:start}\n"] }]
|
|
9325
9327
|
}], null, { script: [{
|
|
9326
9328
|
type: Input
|
|
9327
|
-
}], scriptSrc: [{
|
|
9328
|
-
type: Input
|
|
9329
9329
|
}], privacyPolicyUrl: [{
|
|
9330
9330
|
type: Input
|
|
9331
9331
|
}] }); })();
|