@eric-emg/symphiq-components 1.2.308 → 1.2.310
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/fesm2022/symphiq-components.mjs +55 -10
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -53821,7 +53821,7 @@ function SymphiqConnectGaDashboardComponent_Conditional_22_Template(rf, ctx) { i
|
|
|
53821
53821
|
i0.ɵɵconditionalCreate(13, SymphiqConnectGaDashboardComponent_Conditional_22_Conditional_13_Template, 1, 0)(14, SymphiqConnectGaDashboardComponent_Conditional_22_Conditional_14_Template, 1, 0);
|
|
53822
53822
|
i0.ɵɵelementEnd();
|
|
53823
53823
|
i0.ɵɵelementStart(15, "div", 29)(16, "button", 30);
|
|
53824
|
-
i0.ɵɵlistener("click", function SymphiqConnectGaDashboardComponent_Conditional_22_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.
|
|
53824
|
+
i0.ɵɵlistener("click", function SymphiqConnectGaDashboardComponent_Conditional_22_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onGoogleButtonClick()); });
|
|
53825
53825
|
i0.ɵɵelement(17, "div", 31);
|
|
53826
53826
|
i0.ɵɵelementStart(18, "div", 32)(19, "div", 33);
|
|
53827
53827
|
i0.ɵɵnamespaceSVG();
|
|
@@ -54215,8 +54215,10 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54215
54215
|
this.isExpanded = signal(false, ...(ngDevMode ? [{ debugName: "isExpanded" }] : []));
|
|
54216
54216
|
this.isEditingProperty = signal(false, ...(ngDevMode ? [{ debugName: "isEditingProperty" }] : []));
|
|
54217
54217
|
this.isReconnecting = signal(false, ...(ngDevMode ? [{ debugName: "isReconnecting" }] : []));
|
|
54218
|
+
this.internalConnecting = signal(false, ...(ngDevMode ? [{ debugName: "internalConnecting" }] : []));
|
|
54218
54219
|
this.currentEditingPropertyId = signal(undefined, ...(ngDevMode ? [{ debugName: "currentEditingPropertyId" }] : []));
|
|
54219
54220
|
this.currentSelectingPropertyId = signal(undefined, ...(ngDevMode ? [{ debugName: "currentSelectingPropertyId" }] : []));
|
|
54221
|
+
this.isConnecting = computed(() => this.isConnectingToGoogle() || this.internalConnecting(), ...(ngDevMode ? [{ debugName: "isConnecting" }] : []));
|
|
54220
54222
|
this.sortedGaProperties = computed(() => {
|
|
54221
54223
|
const properties = this.gaProperties();
|
|
54222
54224
|
if (!properties)
|
|
@@ -54306,6 +54308,18 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54306
54308
|
}
|
|
54307
54309
|
}
|
|
54308
54310
|
}, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
|
|
54311
|
+
this.previousPropertiesLength = 0;
|
|
54312
|
+
this.propertiesReceivedEffect = effect(() => {
|
|
54313
|
+
const properties = this.gaProperties();
|
|
54314
|
+
const currentLength = properties?.length ?? 0;
|
|
54315
|
+
console.log('[ConnectGA] propertiesReceivedEffect - currentLength:', currentLength, 'previousLength:', this.previousPropertiesLength, 'internalConnecting:', this.internalConnecting());
|
|
54316
|
+
if (this.internalConnecting() && currentLength > 0 && currentLength !== this.previousPropertiesLength) {
|
|
54317
|
+
console.log('[ConnectGA] resetting internalConnecting and isReconnecting to false');
|
|
54318
|
+
this.internalConnecting.set(false);
|
|
54319
|
+
this.isReconnecting.set(false);
|
|
54320
|
+
}
|
|
54321
|
+
this.previousPropertiesLength = currentLength;
|
|
54322
|
+
}, ...(ngDevMode ? [{ debugName: "propertiesReceivedEffect", allowSignalWrites: true }] : [{ allowSignalWrites: true }]));
|
|
54309
54323
|
this.scrollProgress = computed(() => this.headerScrollService.scrollProgress(), ...(ngDevMode ? [{ debugName: "scrollProgress" }] : []));
|
|
54310
54324
|
this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
|
|
54311
54325
|
}
|
|
@@ -54369,13 +54383,44 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54369
54383
|
}
|
|
54370
54384
|
}
|
|
54371
54385
|
reconnectWithDifferentAccount() {
|
|
54386
|
+
console.log('[ConnectGA] reconnectWithDifferentAccount called');
|
|
54372
54387
|
this.isReconnecting.set(true);
|
|
54388
|
+
const element = this.scrollElement();
|
|
54389
|
+
console.log('[ConnectGA] scrollElement:', element);
|
|
54390
|
+
if (element) {
|
|
54391
|
+
element.scrollTo({ top: 0, behavior: 'smooth' });
|
|
54392
|
+
console.log('[ConnectGA] scrolled via scrollElement');
|
|
54393
|
+
}
|
|
54394
|
+
else {
|
|
54395
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
54396
|
+
console.log('[ConnectGA] scrolled via window');
|
|
54397
|
+
}
|
|
54373
54398
|
}
|
|
54374
54399
|
cancelReconnectMode() {
|
|
54400
|
+
console.log('[ConnectGA] cancelReconnectMode called');
|
|
54375
54401
|
this.isReconnecting.set(false);
|
|
54376
54402
|
}
|
|
54403
|
+
onGoogleButtonClick() {
|
|
54404
|
+
console.log('[ConnectGA] onGoogleButtonClick called');
|
|
54405
|
+
console.log('[ConnectGA] setting internalConnecting to true');
|
|
54406
|
+
this.internalConnecting.set(true);
|
|
54407
|
+
console.log('[ConnectGA] internalConnecting value:', this.internalConnecting());
|
|
54408
|
+
console.log('[ConnectGA] isConnecting value:', this.isConnecting());
|
|
54409
|
+
this.googleButtonClick.emit();
|
|
54410
|
+
}
|
|
54377
54411
|
useDifferentGoogleAccount() {
|
|
54412
|
+
console.log('[ConnectGA] useDifferentGoogleAccount called');
|
|
54378
54413
|
this.isReconnecting.set(true);
|
|
54414
|
+
const element = this.scrollElement();
|
|
54415
|
+
console.log('[ConnectGA] scrollElement:', element);
|
|
54416
|
+
if (element) {
|
|
54417
|
+
element.scrollTo({ top: 0, behavior: 'smooth' });
|
|
54418
|
+
console.log('[ConnectGA] scrolled via scrollElement');
|
|
54419
|
+
}
|
|
54420
|
+
else {
|
|
54421
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
54422
|
+
console.log('[ConnectGA] scrolled via window');
|
|
54423
|
+
}
|
|
54379
54424
|
}
|
|
54380
54425
|
getContainerClasses() {
|
|
54381
54426
|
return this.isLightMode()
|
|
@@ -54625,13 +54670,13 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54625
54670
|
i0.ɵɵadvance(2);
|
|
54626
54671
|
i0.ɵɵproperty("viewMode", ctx.viewMode())("currentStepId", ctx.JourneyStepIdEnum.CONNECT_GA4)("showNextStepAction", ctx.showNextStepAction())("forDemo", ctx.forDemo())("maxAccessibleStepId", ctx.maxAccessibleStepId());
|
|
54627
54672
|
i0.ɵɵadvance(3);
|
|
54628
|
-
i0.ɵɵconditional(ctx.
|
|
54673
|
+
i0.ɵɵconditional(ctx.isConnecting() ? 21 : -1);
|
|
54629
54674
|
i0.ɵɵadvance();
|
|
54630
|
-
i0.ɵɵconditional(ctx.isConnectState() && !ctx.
|
|
54675
|
+
i0.ɵɵconditional(ctx.isConnectState() && !ctx.isConnecting() ? 22 : -1);
|
|
54631
54676
|
i0.ɵɵadvance();
|
|
54632
|
-
i0.ɵɵconditional(ctx.isSelectionState() && !ctx.
|
|
54677
|
+
i0.ɵɵconditional(ctx.isSelectionState() && !ctx.isConnecting() ? 23 : -1);
|
|
54633
54678
|
i0.ɵɵadvance();
|
|
54634
|
-
i0.ɵɵconditional(ctx.isSelectedState() && !ctx.
|
|
54679
|
+
i0.ɵɵconditional(ctx.isSelectedState() && !ctx.isConnecting() ? 24 : -1);
|
|
54635
54680
|
i0.ɵɵadvance();
|
|
54636
54681
|
i0.ɵɵconditional(ctx.showSubmitButton() ? 25 : -1);
|
|
54637
54682
|
} }, dependencies: [CommonModule, i1$1.NgClass, JourneyProgressIndicatorComponent, IndeterminateSpinnerComponent], styles: ["[_nghost-%COMP%]{display:block}.animated-bubbles[_ngcontent-%COMP%]{overflow:hidden}.animated-bubbles[_ngcontent-%COMP%]:before, .animated-bubbles[_ngcontent-%COMP%]:after{content:\"\";position:absolute;border-radius:50%;animation:_ngcontent-%COMP%_float 20s infinite ease-in-out;opacity:.05}.animated-bubbles[_ngcontent-%COMP%]:before{width:600px;height:600px;background:radial-gradient(circle,#3b82f6 0%,transparent 70%);top:-300px;left:-300px;animation-delay:-5s}.animated-bubbles[_ngcontent-%COMP%]:after{width:800px;height:800px;background:radial-gradient(circle,#06b6d4 0%,transparent 70%);bottom:-400px;right:-400px;animation-delay:-10s}.animated-bubbles.light-mode[_ngcontent-%COMP%]:before, .animated-bubbles.light-mode[_ngcontent-%COMP%]:after{opacity:.03}@keyframes _ngcontent-%COMP%_float{0%,to{transform:translate(0) scale(1)}33%{transform:translate(50px,-50px) scale(1.1)}66%{transform:translate(-30px,30px) scale(.9)}}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-appearance:none;background-color:#fff;background-image:none;border:1px solid #747775;-webkit-border-radius:4px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#1f1f1f;cursor:pointer;font-family:Roboto,arial,sans-serif;font-size:14px;height:40px;letter-spacing:.25px;outline:none;overflow:hidden;padding:0 12px;position:relative;text-align:center;-webkit-transition:background-color .218s,border-color .218s,box-shadow .218s;transition:background-color .218s,border-color .218s,box-shadow .218s;vertical-align:middle;white-space:nowrap;width:auto;max-width:400px;min-width:min-content}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-icon[_ngcontent-%COMP%]{height:20px;margin-right:12px;min-width:20px;width:20px}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-content-wrapper[_ngcontent-%COMP%]{-webkit-align-items:center;align-items:center;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;justify-content:space-between;position:relative;width:100%}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-contents[_ngcontent-%COMP%]{-webkit-flex-grow:1;flex-grow:1;font-family:Roboto,arial,sans-serif;font-weight:500;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-state[_ngcontent-%COMP%]{-webkit-transition:opacity .218s;transition:opacity .218s;inset:0;opacity:0;position:absolute}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled{cursor:default;background-color:#ffffff61;border-color:#1f1f1f1f}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled .gsi-material-button-contents[_ngcontent-%COMP%]{opacity:38%}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled .gsi-material-button-icon[_ngcontent-%COMP%]{opacity:38%}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):active .gsi-material-button-state[_ngcontent-%COMP%], .light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):focus .gsi-material-button-state[_ngcontent-%COMP%]{background-color:#303030;opacity:12%}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):hover{-webkit-box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);box-shadow:0 1px 2px #3c40434d,0 1px 3px 1px #3c404326}.light[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):hover .gsi-material-button-state[_ngcontent-%COMP%]{background-color:#303030;opacity:8%}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-appearance:none;background-color:#131314;background-image:none;border:1px solid #747775;-webkit-border-radius:4px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#e3e3e3;cursor:pointer;font-family:Roboto,arial,sans-serif;font-size:14px;height:40px;letter-spacing:.25px;outline:none;overflow:hidden;padding:0 12px;position:relative;text-align:center;-webkit-transition:background-color .218s,border-color .218s,box-shadow .218s;transition:background-color .218s,border-color .218s,box-shadow .218s;vertical-align:middle;white-space:nowrap;width:auto;max-width:400px;min-width:min-content;border-color:#8e918f}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-icon[_ngcontent-%COMP%]{height:20px;margin-right:12px;min-width:20px;width:20px}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-content-wrapper[_ngcontent-%COMP%]{-webkit-align-items:center;align-items:center;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;justify-content:space-between;position:relative;width:100%}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-contents[_ngcontent-%COMP%]{-webkit-flex-grow:1;flex-grow:1;font-family:Roboto,arial,sans-serif;font-weight:500;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%] .gsi-material-button-state[_ngcontent-%COMP%]{-webkit-transition:opacity .218s;transition:opacity .218s;inset:0;opacity:0;position:absolute}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled{cursor:default;background-color:#13131461;border-color:#8e918f1f}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled .gsi-material-button-state[_ngcontent-%COMP%]{background-color:#e3e3e31f}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled .gsi-material-button-contents[_ngcontent-%COMP%]{opacity:38%}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:disabled .gsi-material-button-icon[_ngcontent-%COMP%]{opacity:38%}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):active .gsi-material-button-state[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):focus .gsi-material-button-state[_ngcontent-%COMP%]{background-color:#fff;opacity:12%}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):hover{-webkit-box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);box-shadow:0 1px 2px #3c40434d,0 1px 3px 1px #3c404326}.dark[_nghost-%COMP%] .gsi-material-button[_ngcontent-%COMP%]:not(:disabled):hover .gsi-material-button-state[_ngcontent-%COMP%]{background-color:#fff;opacity:8%}"], changeDetection: 0 }); }
|
|
@@ -54707,7 +54752,7 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54707
54752
|
<main class="relative pb-32">
|
|
54708
54753
|
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
54709
54754
|
<!-- Connecting to Google State -->
|
|
54710
|
-
@if (
|
|
54755
|
+
@if (isConnecting()) {
|
|
54711
54756
|
<div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
|
|
54712
54757
|
<div [ngClass]="contentClasses()" class="px-8 py-16">
|
|
54713
54758
|
<div class="flex flex-col items-center justify-center text-center">
|
|
@@ -54727,7 +54772,7 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54727
54772
|
}
|
|
54728
54773
|
|
|
54729
54774
|
<!-- Connect to Google State -->
|
|
54730
|
-
@if (isConnectState() && !
|
|
54775
|
+
@if (isConnectState() && !isConnecting()) {
|
|
54731
54776
|
<div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
|
|
54732
54777
|
<div [ngClass]="contentClasses()" class="px-8 py-8">
|
|
54733
54778
|
<div class="flex items-start gap-6">
|
|
@@ -54767,7 +54812,7 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54767
54812
|
</p>
|
|
54768
54813
|
|
|
54769
54814
|
<div class="mb-6">
|
|
54770
|
-
<button type="button" class="gsi-material-button" (click)="
|
|
54815
|
+
<button type="button" class="gsi-material-button" (click)="onGoogleButtonClick()">
|
|
54771
54816
|
<div class="gsi-material-button-state"></div>
|
|
54772
54817
|
<div class="gsi-material-button-content-wrapper">
|
|
54773
54818
|
<div class="gsi-material-button-icon">
|
|
@@ -54823,7 +54868,7 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54823
54868
|
}
|
|
54824
54869
|
|
|
54825
54870
|
<!-- Property Selection State -->
|
|
54826
|
-
@if (isSelectionState() && !
|
|
54871
|
+
@if (isSelectionState() && !isConnecting()) {
|
|
54827
54872
|
<div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
|
|
54828
54873
|
<div [ngClass]="contentClasses()" class="px-8 py-8">
|
|
54829
54874
|
<div class="flex items-start gap-6">
|
|
@@ -54931,7 +54976,7 @@ class SymphiqConnectGaDashboardComponent {
|
|
|
54931
54976
|
}
|
|
54932
54977
|
|
|
54933
54978
|
<!-- Selected Property State -->
|
|
54934
|
-
@if (isSelectedState() && !
|
|
54979
|
+
@if (isSelectedState() && !isConnecting()) {
|
|
54935
54980
|
<div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
|
|
54936
54981
|
<div [ngClass]="contentClasses()" class="px-8 py-8">
|
|
54937
54982
|
<div class="flex items-start gap-6">
|