@posiwise/shared-components 0.0.180 → 0.0.181
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.
|
@@ -1213,8 +1213,7 @@ class PwCookieBannerComponent {
|
|
|
1213
1213
|
this.document = document;
|
|
1214
1214
|
this.title = 'We value your privacy';
|
|
1215
1215
|
this.message = 'We use cookies to keep this site reliable, remember your preferences, and improve your experience.';
|
|
1216
|
-
this.acceptLabel = '
|
|
1217
|
-
this.dismissLabel = 'Not now';
|
|
1216
|
+
this.acceptLabel = 'Got it';
|
|
1218
1217
|
this.privacyLinkLabel = 'Privacy policy';
|
|
1219
1218
|
this.privacyLinkUrl = null;
|
|
1220
1219
|
this.tosId = null;
|
|
@@ -1240,9 +1239,6 @@ class PwCookieBannerComponent {
|
|
|
1240
1239
|
this.setConsentCookie();
|
|
1241
1240
|
this.animateOut();
|
|
1242
1241
|
}
|
|
1243
|
-
dismiss() {
|
|
1244
|
-
this.animateOut();
|
|
1245
|
-
}
|
|
1246
1242
|
animateOut() {
|
|
1247
1243
|
this.leaving = true;
|
|
1248
1244
|
setTimeout(() => {
|
|
@@ -1269,11 +1265,11 @@ class PwCookieBannerComponent {
|
|
|
1269
1265
|
this.document.cookie = parts.join('; ');
|
|
1270
1266
|
}
|
|
1271
1267
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PwCookieBannerComponent, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1272
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: PwCookieBannerComponent, isStandalone: true, selector: "pw-cookie-banner", inputs: { title: "title", message: "message", acceptLabel: "acceptLabel",
|
|
1268
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: PwCookieBannerComponent, isStandalone: true, selector: "pw-cookie-banner", inputs: { title: "title", message: "message", acceptLabel: "acceptLabel", privacyLinkLabel: "privacyLinkLabel", privacyLinkUrl: "privacyLinkUrl", tosId: "tosId", privacyFallbackUrl: "privacyFallbackUrl", cookieKey: "cookieKey", cookieTtlDays: "cookieTtlDays" }, host: { properties: { "attr.role": "this.role", "attr.aria-label": "this.ariaLabel" } }, ngImport: i0, template: "@if (visible) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-banner__accept\"\n (click)=\"accept()\">\n {{ acceptLabel }}\n </button>\n </div>\n </div>\n}\n", styles: [":host{position:fixed;bottom:24px;left:24px;z-index:10010;pointer-events:none}@media(max-width:575px){:host{bottom:12px;left:12px;right:12px}}.pw-cookie-banner{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\";gap:12px 14px;width:380px;max-width:calc(100vw - 48px);padding:18px 18px 16px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;box-shadow:0 12px 40px #0f172a1a,0 2px 8px #0f172a0d;color:#3d4654;animation:pw-cookie-enter .22s cubic-bezier(.16,1,.3,1) both}@media(max-width:575px){.pw-cookie-banner{width:auto;max-width:none;padding:16px;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\"}}.pw-cookie-banner--leaving{animation:pw-cookie-leave .2s ease-in both}.pw-cookie-banner__icon{grid-area:icon;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f7f8fa;color:var(--first, #1769e1);font-size:18px;flex-shrink:0}.pw-cookie-banner__body{grid-area:body;min-width:0}.pw-cookie-banner__title{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#1a1d21;letter-spacing:-.005em}.pw-cookie-banner__message{margin:0;font-size:13px;line-height:1.55;color:#5a6473}.pw-cookie-banner__link{color:var(--first, #1769e1);text-decoration:none;font-weight:500;white-space:nowrap;margin-left:4px}.pw-cookie-banner__link:hover,.pw-cookie-banner__link:focus-visible{text-decoration:underline;text-underline-offset:2px}.pw-cookie-banner__actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:4px}.pw-cookie-banner__dismiss{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#5a6473;background:transparent;padding:9px 12px;border-radius:8px;transition:color .16s ease-out,background .16s ease-out}.pw-cookie-banner__dismiss:hover{color:#1a1d21;background:#f7f8fa}.pw-cookie-banner__dismiss:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__dismiss:active{transform:translateY(1px)}.pw-cookie-banner__accept{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#fff;background:var(--first, #1769e1);padding:9px 18px;border-radius:8px;transition:background .16s ease-out,transform .12s ease-out,box-shadow .16s ease-out}.pw-cookie-banner__accept:hover{background:color-mix(in srgb,var(--first, #1769e1) 88%,#000);box-shadow:0 4px 12px #0f172a1f}.pw-cookie-banner__accept:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__accept:active{transform:translateY(1px)}@keyframes pw-cookie-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pw-cookie-leave{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.pw-cookie-banner,.pw-cookie-banner--leaving{animation:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
1273
1269
|
}
|
|
1274
1270
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PwCookieBannerComponent, decorators: [{
|
|
1275
1271
|
type: Component,
|
|
1276
|
-
args: [{ selector: 'pw-cookie-banner', standalone: true, imports: [CommonModule], template: "@if (visible) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-
|
|
1272
|
+
args: [{ selector: 'pw-cookie-banner', standalone: true, imports: [CommonModule], template: "@if (visible) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-banner__accept\"\n (click)=\"accept()\">\n {{ acceptLabel }}\n </button>\n </div>\n </div>\n}\n", styles: [":host{position:fixed;bottom:24px;left:24px;z-index:10010;pointer-events:none}@media(max-width:575px){:host{bottom:12px;left:12px;right:12px}}.pw-cookie-banner{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\";gap:12px 14px;width:380px;max-width:calc(100vw - 48px);padding:18px 18px 16px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;box-shadow:0 12px 40px #0f172a1a,0 2px 8px #0f172a0d;color:#3d4654;animation:pw-cookie-enter .22s cubic-bezier(.16,1,.3,1) both}@media(max-width:575px){.pw-cookie-banner{width:auto;max-width:none;padding:16px;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\"}}.pw-cookie-banner--leaving{animation:pw-cookie-leave .2s ease-in both}.pw-cookie-banner__icon{grid-area:icon;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f7f8fa;color:var(--first, #1769e1);font-size:18px;flex-shrink:0}.pw-cookie-banner__body{grid-area:body;min-width:0}.pw-cookie-banner__title{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#1a1d21;letter-spacing:-.005em}.pw-cookie-banner__message{margin:0;font-size:13px;line-height:1.55;color:#5a6473}.pw-cookie-banner__link{color:var(--first, #1769e1);text-decoration:none;font-weight:500;white-space:nowrap;margin-left:4px}.pw-cookie-banner__link:hover,.pw-cookie-banner__link:focus-visible{text-decoration:underline;text-underline-offset:2px}.pw-cookie-banner__actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:4px}.pw-cookie-banner__dismiss{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#5a6473;background:transparent;padding:9px 12px;border-radius:8px;transition:color .16s ease-out,background .16s ease-out}.pw-cookie-banner__dismiss:hover{color:#1a1d21;background:#f7f8fa}.pw-cookie-banner__dismiss:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__dismiss:active{transform:translateY(1px)}.pw-cookie-banner__accept{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#fff;background:var(--first, #1769e1);padding:9px 18px;border-radius:8px;transition:background .16s ease-out,transform .12s ease-out,box-shadow .16s ease-out}.pw-cookie-banner__accept:hover{background:color-mix(in srgb,var(--first, #1769e1) 88%,#000);box-shadow:0 4px 12px #0f172a1f}.pw-cookie-banner__accept:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__accept:active{transform:translateY(1px)}@keyframes pw-cookie-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pw-cookie-leave{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.pw-cookie-banner,.pw-cookie-banner--leaving{animation:none}}\n"] }]
|
|
1277
1273
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
1278
1274
|
type: Inject,
|
|
1279
1275
|
args: [DOCUMENT]
|
|
@@ -1283,8 +1279,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
|
|
|
1283
1279
|
type: Input
|
|
1284
1280
|
}], acceptLabel: [{
|
|
1285
1281
|
type: Input
|
|
1286
|
-
}], dismissLabel: [{
|
|
1287
|
-
type: Input
|
|
1288
1282
|
}], privacyLinkLabel: [{
|
|
1289
1283
|
type: Input
|
|
1290
1284
|
}], privacyLinkUrl: [{
|