@eric-emg/symphiq-components 1.2.101 → 1.2.103
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 +26 -11
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +16 -13
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -24940,6 +24940,7 @@ class FloatingTocComponent {
|
|
|
24940
24940
|
this.sections = [];
|
|
24941
24941
|
this.viewMode = ViewModeEnum.LIGHT;
|
|
24942
24942
|
this.embedded = false;
|
|
24943
|
+
this.parentHeaderOffset = 0;
|
|
24943
24944
|
this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
|
|
24944
24945
|
this.isPinned = signal(false, ...(ngDevMode ? [{ debugName: "isPinned" }] : []));
|
|
24945
24946
|
this.activeSection = signal('', ...(ngDevMode ? [{ debugName: "activeSection" }] : []));
|
|
@@ -25081,12 +25082,17 @@ class FloatingTocComponent {
|
|
|
25081
25082
|
window.addEventListener('scroll', this.scrollListener, { passive: true });
|
|
25082
25083
|
}
|
|
25083
25084
|
calculateContainerOffset() {
|
|
25084
|
-
if (this.embedded
|
|
25085
|
-
|
|
25086
|
-
const
|
|
25087
|
-
|
|
25088
|
-
|
|
25089
|
-
|
|
25085
|
+
if (this.embedded) {
|
|
25086
|
+
// Hard-coded offset for parent app header
|
|
25087
|
+
const PARENT_HEADER_HEIGHT = 72;
|
|
25088
|
+
if (this.containerElement) {
|
|
25089
|
+
const rect = this.containerElement.getBoundingClientRect();
|
|
25090
|
+
const viewportOffset = Math.max(0, rect.top);
|
|
25091
|
+
this.containerTopOffset.set(viewportOffset + PARENT_HEADER_HEIGHT);
|
|
25092
|
+
}
|
|
25093
|
+
else {
|
|
25094
|
+
this.containerTopOffset.set(PARENT_HEADER_HEIGHT);
|
|
25095
|
+
}
|
|
25090
25096
|
}
|
|
25091
25097
|
else {
|
|
25092
25098
|
this.containerTopOffset.set(0);
|
|
@@ -25251,7 +25257,7 @@ class FloatingTocComponent {
|
|
|
25251
25257
|
`.trim();
|
|
25252
25258
|
}
|
|
25253
25259
|
static { this.ɵfac = function FloatingTocComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FloatingTocComponent)(); }; }
|
|
25254
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FloatingTocComponent, selectors: [["symphiq-floating-toc"]], inputs: { sections: "sections", viewMode: "viewMode", embedded: "embedded", containerElement: "containerElement" }, decls: 26, vars: 16, consts: [[3, "mouseenter", "mouseleave", "ngClass"], [3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-5", "h-5"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M4 6h16M4 12h16M4 18h16"], [1, "flex", "items-center", "justify-between", "mb-4", "pb-3", "border-b", 3, "ngClass"], [1, "flex", "items-center", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4"], ["type", "button", 3, "click", "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"], [1, "space-y-1", "overflow-y-auto", "max-h-[60vh]", "pr-2", 3, "ngClass"], [1, "space-y-0.5"], [1, "mt-4", "pt-3", "border-t", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M5 10l7-7m0 0l7 7m-7-7v18"], [1, "text-sm"], [1, "flex", "items-center", "gap-2", "flex-1", "min-w-0"], [1, "flex-shrink-0"], [1, "truncate", "text-sm", "font-medium"], [1, "ml-6", "space-y-0.5", "mt-1"], ["size", "w-4 h-4", 3, "icon", "ngClass"], ["type", "button", 3, "ngClass"], [1, "truncate", "text-xs"]], template: function FloatingTocComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25260
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FloatingTocComponent, selectors: [["symphiq-floating-toc"]], inputs: { sections: "sections", viewMode: "viewMode", embedded: "embedded", containerElement: "containerElement", scrollElement: "scrollElement", parentHeaderOffset: "parentHeaderOffset" }, decls: 26, vars: 16, consts: [[3, "mouseenter", "mouseleave", "ngClass"], [3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-5", "h-5"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M4 6h16M4 12h16M4 18h16"], [1, "flex", "items-center", "justify-between", "mb-4", "pb-3", "border-b", 3, "ngClass"], [1, "flex", "items-center", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4"], ["type", "button", 3, "click", "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"], [1, "space-y-1", "overflow-y-auto", "max-h-[60vh]", "pr-2", 3, "ngClass"], [1, "space-y-0.5"], [1, "mt-4", "pt-3", "border-t", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M5 10l7-7m0 0l7 7m-7-7v18"], [1, "text-sm"], [1, "flex", "items-center", "gap-2", "flex-1", "min-w-0"], [1, "flex-shrink-0"], [1, "truncate", "text-sm", "font-medium"], [1, "ml-6", "space-y-0.5", "mt-1"], ["size", "w-4 h-4", 3, "icon", "ngClass"], ["type", "button", 3, "ngClass"], [1, "truncate", "text-xs"]], template: function FloatingTocComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25255
25261
|
i0.ɵɵelementStart(0, "div", 0);
|
|
25256
25262
|
i0.ɵɵlistener("mouseenter", function FloatingTocComponent_Template_div_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function FloatingTocComponent_Template_div_mouseleave_0_listener() { return ctx.onMouseLeave(); });
|
|
25257
25263
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 1);
|
|
@@ -25436,6 +25442,10 @@ class FloatingTocComponent {
|
|
|
25436
25442
|
type: Input
|
|
25437
25443
|
}], containerElement: [{
|
|
25438
25444
|
type: Input
|
|
25445
|
+
}], scrollElement: [{
|
|
25446
|
+
type: Input
|
|
25447
|
+
}], parentHeaderOffset: [{
|
|
25448
|
+
type: Input
|
|
25439
25449
|
}] }); })();
|
|
25440
25450
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FloatingTocComponent, { className: "FloatingTocComponent", filePath: "lib/components/business-analysis-dashboard/floating-toc.component.ts", lineNumber: 125 }); })();
|
|
25441
25451
|
|
|
@@ -49485,7 +49495,7 @@ function SymphiqBusinessAnalysisDashboardComponent_Conditional_14_Template(rf, c
|
|
|
49485
49495
|
i0.ɵɵadvance(2);
|
|
49486
49496
|
i0.ɵɵproperty("sections", ctx_r1.sections())("viewMode", ctx_r1.viewMode)("embedded", ctx_r1.embedded);
|
|
49487
49497
|
i0.ɵɵadvance();
|
|
49488
|
-
i0.ɵɵproperty("sections", ctx_r1.sections())("viewMode", ctx_r1.viewMode)("embedded", ctx_r1.embedded)("containerElement", dashboardContainer_r9);
|
|
49498
|
+
i0.ɵɵproperty("sections", ctx_r1.sections())("viewMode", ctx_r1.viewMode)("embedded", ctx_r1.embedded)("containerElement", dashboardContainer_r9)("scrollElement", ctx_r1.scrollElement)("parentHeaderOffset", ctx_r1.parentHeaderOffset);
|
|
49489
49499
|
i0.ɵɵadvance();
|
|
49490
49500
|
i0.ɵɵproperty("viewMode", ctx_r1.viewMode)("embedded", ctx_r1.embedded);
|
|
49491
49501
|
} }
|
|
@@ -49517,6 +49527,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
49517
49527
|
this.embedded = false;
|
|
49518
49528
|
this.isLoading = false;
|
|
49519
49529
|
this.useSampleData = false;
|
|
49530
|
+
this.parentHeaderOffset = 0;
|
|
49520
49531
|
this.headerScrollService = inject(HeaderScrollService);
|
|
49521
49532
|
this.lookupService = inject(ProfileItemLookupService);
|
|
49522
49533
|
this.navigationService = inject(NavigationStateService);
|
|
@@ -49909,7 +49920,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
49909
49920
|
static { this.ɵfac = function SymphiqBusinessAnalysisDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqBusinessAnalysisDashboardComponent)(); }; }
|
|
49910
49921
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqBusinessAnalysisDashboardComponent, selectors: [["symphiq-business-analysis-dashboard"]], hostBindings: function SymphiqBusinessAnalysisDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
49911
49922
|
i0.ɵɵlistener("scroll", function SymphiqBusinessAnalysisDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onScroll($event); }, i0.ɵɵresolveWindow)("keydown", function SymphiqBusinessAnalysisDashboardComponent_keydown_HostBindingHandler($event) { return ctx.handleKeyDown($event); }, i0.ɵɵresolveDocument);
|
|
49912
|
-
} }, inputs: { requestedByUser: "requestedByUser", viewMode: "viewMode", embedded: "embedded", scrollEvent: "scrollEvent", scrollElement: "scrollElement", isLoading: "isLoading", useSampleData: "useSampleData", profile: "profile" }, decls: 19, vars: 19, consts: [["dashboardContainer", ""], [3, "ngClass"], [3, "class"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [1, "relative"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8", "space-y-8"], [3, "isLightMode"], [3, "searchChange", "resultSelected", "close", "isLightMode", "isOpen", "searchQuery", "results", "hasResults", "selectedIndex", "placeholder"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-4"], [1, "flex", "items-center", "justify-between"], [3, "toggle", "viewModeSelected", "currentViewMode", "viewMode"], [1, "transition-all", "duration-300", "ease-in-out", "overflow-hidden"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8"], [1, "flex", "items-center", "gap-2"], [3, "searchClick", "isLightMode"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [1, "flex", "items-center", "gap-4"], [1, "flex", "items-center", "gap-2", "text-sm", "flex-shrink-0"], [1, "transition-opacity", "duration-300", 3, "ngClass"], [3, "searchClick", "isLightMode", "minimized"], [3, "toggle", "viewModeSelected", "currentViewMode", "viewMode", "minimized"], [3, "getStarted", "dismiss", "businessName", "viewMode", "showCta"], [3, "currentStep", "completedSteps", "viewMode"], [3, "profile", "viewMode"], [3, "analyzeFunnel", "exploreMore", "viewMode"], [3, "sections", "viewMode", "embedded"], [3, "sections", "viewMode", "embedded", "containerElement"], [3, "viewMode", "embedded"], [3, "section", "viewMode", "forceExpanded"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8"], [3, "viewMode", "subsections"]], template: function SymphiqBusinessAnalysisDashboardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
49923
|
+
} }, inputs: { requestedByUser: "requestedByUser", viewMode: "viewMode", embedded: "embedded", scrollEvent: "scrollEvent", scrollElement: "scrollElement", isLoading: "isLoading", useSampleData: "useSampleData", profile: "profile", parentHeaderOffset: "parentHeaderOffset" }, decls: 19, vars: 19, consts: [["dashboardContainer", ""], [3, "ngClass"], [3, "class"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [1, "relative"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8", "space-y-8"], [3, "isLightMode"], [3, "searchChange", "resultSelected", "close", "isLightMode", "isOpen", "searchQuery", "results", "hasResults", "selectedIndex", "placeholder"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-4"], [1, "flex", "items-center", "justify-between"], [3, "toggle", "viewModeSelected", "currentViewMode", "viewMode"], [1, "transition-all", "duration-300", "ease-in-out", "overflow-hidden"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8"], [1, "flex", "items-center", "gap-2"], [3, "searchClick", "isLightMode"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [1, "flex", "items-center", "gap-4"], [1, "flex", "items-center", "gap-2", "text-sm", "flex-shrink-0"], [1, "transition-opacity", "duration-300", 3, "ngClass"], [3, "searchClick", "isLightMode", "minimized"], [3, "toggle", "viewModeSelected", "currentViewMode", "viewMode", "minimized"], [3, "getStarted", "dismiss", "businessName", "viewMode", "showCta"], [3, "currentStep", "completedSteps", "viewMode"], [3, "profile", "viewMode"], [3, "analyzeFunnel", "exploreMore", "viewMode"], [3, "sections", "viewMode", "embedded"], [3, "sections", "viewMode", "embedded", "containerElement", "scrollElement", "parentHeaderOffset"], [3, "viewMode", "embedded"], [3, "section", "viewMode", "forceExpanded"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8"], [3, "viewMode", "subsections"]], template: function SymphiqBusinessAnalysisDashboardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
49913
49924
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
49914
49925
|
i0.ɵɵelementStart(0, "div", 1, 0);
|
|
49915
49926
|
i0.ɵɵconditionalCreate(2, SymphiqBusinessAnalysisDashboardComponent_Conditional_2_Template, 2, 5, "div", 2);
|
|
@@ -49919,7 +49930,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
49919
49930
|
i0.ɵɵelementStart(9, "div", 3);
|
|
49920
49931
|
i0.ɵɵconditionalCreate(10, SymphiqBusinessAnalysisDashboardComponent_Conditional_10_Template, 9, 6, "header", 4)(11, SymphiqBusinessAnalysisDashboardComponent_Conditional_11_Template, 25, 45, "header", 4);
|
|
49921
49932
|
i0.ɵɵelementStart(12, "main", 5);
|
|
49922
|
-
i0.ɵɵconditionalCreate(13, SymphiqBusinessAnalysisDashboardComponent_Conditional_13_Template, 6, 11, "div", 6)(14, SymphiqBusinessAnalysisDashboardComponent_Conditional_14_Template, 5,
|
|
49933
|
+
i0.ɵɵconditionalCreate(13, SymphiqBusinessAnalysisDashboardComponent_Conditional_13_Template, 6, 11, "div", 6)(14, SymphiqBusinessAnalysisDashboardComponent_Conditional_14_Template, 5, 11);
|
|
49923
49934
|
i0.ɵɵelementEnd()();
|
|
49924
49935
|
i0.ɵɵconditionalCreate(15, SymphiqBusinessAnalysisDashboardComponent_Conditional_15_Template, 2, 2, "div", 1);
|
|
49925
49936
|
i0.ɵɵelement(16, "symphiq-tooltip-container")(17, "symphiq-business-analysis-modal", 7);
|
|
@@ -50155,6 +50166,8 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
50155
50166
|
[viewMode]="viewMode"
|
|
50156
50167
|
[embedded]="embedded"
|
|
50157
50168
|
[containerElement]="dashboardContainer"
|
|
50169
|
+
[scrollElement]="scrollElement"
|
|
50170
|
+
[parentHeaderOffset]="parentHeaderOffset"
|
|
50158
50171
|
/>
|
|
50159
50172
|
|
|
50160
50173
|
<symphiq-floating-back-button
|
|
@@ -50204,6 +50217,8 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
50204
50217
|
type: Input
|
|
50205
50218
|
}], profile: [{
|
|
50206
50219
|
type: Input
|
|
50220
|
+
}], parentHeaderOffset: [{
|
|
50221
|
+
type: Input
|
|
50207
50222
|
}], onScroll: [{
|
|
50208
50223
|
type: HostListener,
|
|
50209
50224
|
args: ['window:scroll', ['$event']]
|
|
@@ -50211,7 +50226,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
50211
50226
|
type: HostListener,
|
|
50212
50227
|
args: ['document:keydown', ['$event']]
|
|
50213
50228
|
}] }); })();
|
|
50214
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber:
|
|
50229
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber: 292 }); })();
|
|
50215
50230
|
|
|
50216
50231
|
class ScrollProgressBarComponent {
|
|
50217
50232
|
constructor() {
|