@eric-emg/symphiq-components 1.2.307 → 1.2.309

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.
@@ -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.googleButtonClick.emit()); });
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)
@@ -54236,7 +54238,8 @@ class SymphiqConnectGaDashboardComponent {
54236
54238
  const properties = this.gaProperties();
54237
54239
  const selectedId = this.selectedGaPropertyId();
54238
54240
  const isEditing = this.isEditingProperty();
54239
- return properties && properties.length > 0 && (!selectedId || isEditing);
54241
+ const reconnecting = this.isReconnecting();
54242
+ return properties && properties.length > 0 && (!selectedId || isEditing) && !reconnecting;
54240
54243
  }, ...(ngDevMode ? [{ debugName: "isSelectionState" }] : []));
54241
54244
  this.isSelectedState = computed(() => {
54242
54245
  const properties = this.gaProperties();
@@ -54305,6 +54308,12 @@ class SymphiqConnectGaDashboardComponent {
54305
54308
  }
54306
54309
  }
54307
54310
  }, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
54311
+ this.propertiesReceivedEffect = effect(() => {
54312
+ const properties = this.gaProperties();
54313
+ if (properties && properties.length > 0) {
54314
+ this.internalConnecting.set(false);
54315
+ }
54316
+ }, ...(ngDevMode ? [{ debugName: "propertiesReceivedEffect" }] : []));
54308
54317
  this.scrollProgress = computed(() => this.headerScrollService.scrollProgress(), ...(ngDevMode ? [{ debugName: "scrollProgress" }] : []));
54309
54318
  this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
54310
54319
  }
@@ -54373,8 +54382,19 @@ class SymphiqConnectGaDashboardComponent {
54373
54382
  cancelReconnectMode() {
54374
54383
  this.isReconnecting.set(false);
54375
54384
  }
54385
+ onGoogleButtonClick() {
54386
+ this.internalConnecting.set(true);
54387
+ this.googleButtonClick.emit();
54388
+ }
54376
54389
  useDifferentGoogleAccount() {
54377
54390
  this.isReconnecting.set(true);
54391
+ const element = this.scrollElement();
54392
+ if (element) {
54393
+ element.scrollTo({ top: 0, behavior: 'smooth' });
54394
+ }
54395
+ else {
54396
+ window.scrollTo({ top: 0, behavior: 'smooth' });
54397
+ }
54378
54398
  }
54379
54399
  getContainerClasses() {
54380
54400
  return this.isLightMode()
@@ -54624,13 +54644,13 @@ class SymphiqConnectGaDashboardComponent {
54624
54644
  i0.ɵɵadvance(2);
54625
54645
  i0.ɵɵproperty("viewMode", ctx.viewMode())("currentStepId", ctx.JourneyStepIdEnum.CONNECT_GA4)("showNextStepAction", ctx.showNextStepAction())("forDemo", ctx.forDemo())("maxAccessibleStepId", ctx.maxAccessibleStepId());
54626
54646
  i0.ɵɵadvance(3);
54627
- i0.ɵɵconditional(ctx.isConnectingToGoogle() ? 21 : -1);
54647
+ i0.ɵɵconditional(ctx.isConnecting() ? 21 : -1);
54628
54648
  i0.ɵɵadvance();
54629
- i0.ɵɵconditional(ctx.isConnectState() && !ctx.isConnectingToGoogle() ? 22 : -1);
54649
+ i0.ɵɵconditional(ctx.isConnectState() && !ctx.isConnecting() ? 22 : -1);
54630
54650
  i0.ɵɵadvance();
54631
- i0.ɵɵconditional(ctx.isSelectionState() && !ctx.isConnectingToGoogle() ? 23 : -1);
54651
+ i0.ɵɵconditional(ctx.isSelectionState() && !ctx.isConnecting() ? 23 : -1);
54632
54652
  i0.ɵɵadvance();
54633
- i0.ɵɵconditional(ctx.isSelectedState() && !ctx.isConnectingToGoogle() ? 24 : -1);
54653
+ i0.ɵɵconditional(ctx.isSelectedState() && !ctx.isConnecting() ? 24 : -1);
54634
54654
  i0.ɵɵadvance();
54635
54655
  i0.ɵɵconditional(ctx.showSubmitButton() ? 25 : -1);
54636
54656
  } }, 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 }); }
@@ -54706,7 +54726,7 @@ class SymphiqConnectGaDashboardComponent {
54706
54726
  <main class="relative pb-32">
54707
54727
  <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
54708
54728
  <!-- Connecting to Google State -->
54709
- @if (isConnectingToGoogle()) {
54729
+ @if (isConnecting()) {
54710
54730
  <div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
54711
54731
  <div [ngClass]="contentClasses()" class="px-8 py-16">
54712
54732
  <div class="flex flex-col items-center justify-center text-center">
@@ -54726,7 +54746,7 @@ class SymphiqConnectGaDashboardComponent {
54726
54746
  }
54727
54747
 
54728
54748
  <!-- Connect to Google State -->
54729
- @if (isConnectState() && !isConnectingToGoogle()) {
54749
+ @if (isConnectState() && !isConnecting()) {
54730
54750
  <div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
54731
54751
  <div [ngClass]="contentClasses()" class="px-8 py-8">
54732
54752
  <div class="flex items-start gap-6">
@@ -54766,7 +54786,7 @@ class SymphiqConnectGaDashboardComponent {
54766
54786
  </p>
54767
54787
 
54768
54788
  <div class="mb-6">
54769
- <button type="button" class="gsi-material-button" (click)="googleButtonClick.emit()">
54789
+ <button type="button" class="gsi-material-button" (click)="onGoogleButtonClick()">
54770
54790
  <div class="gsi-material-button-state"></div>
54771
54791
  <div class="gsi-material-button-content-wrapper">
54772
54792
  <div class="gsi-material-button-icon">
@@ -54822,7 +54842,7 @@ class SymphiqConnectGaDashboardComponent {
54822
54842
  }
54823
54843
 
54824
54844
  <!-- Property Selection State -->
54825
- @if (isSelectionState() && !isConnectingToGoogle()) {
54845
+ @if (isSelectionState() && !isConnecting()) {
54826
54846
  <div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
54827
54847
  <div [ngClass]="contentClasses()" class="px-8 py-8">
54828
54848
  <div class="flex items-start gap-6">
@@ -54930,7 +54950,7 @@ class SymphiqConnectGaDashboardComponent {
54930
54950
  }
54931
54951
 
54932
54952
  <!-- Selected Property State -->
54933
- @if (isSelectedState() && !isConnectingToGoogle()) {
54953
+ @if (isSelectedState() && !isConnecting()) {
54934
54954
  <div [ngClass]="containerClasses()" class="rounded-2xl border shadow-lg overflow-hidden mb-8">
54935
54955
  <div [ngClass]="contentClasses()" class="px-8 py-8">
54936
54956
  <div class="flex items-start gap-6">