@eric-emg/symphiq-components 1.2.484 → 1.2.486
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 +31 -18
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +6 -6
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2601,9 +2601,11 @@ function getMinFractionDigitsForSignificantFigures(value, minSigFigs) {
|
|
|
2601
2601
|
return Math.max(0, -magnitude + minSigFigs - 1);
|
|
2602
2602
|
}
|
|
2603
2603
|
function formatCurrency(value, currencySymbol = '$') {
|
|
2604
|
+
const absValue = Math.abs(value);
|
|
2605
|
+
const fractionDigits = absValue < 100 ? 2 : 0;
|
|
2604
2606
|
return `${currencySymbol}${value.toLocaleString('en-US', {
|
|
2605
|
-
minimumFractionDigits:
|
|
2606
|
-
maximumFractionDigits:
|
|
2607
|
+
minimumFractionDigits: fractionDigits,
|
|
2608
|
+
maximumFractionDigits: fractionDigits
|
|
2607
2609
|
})}`;
|
|
2608
2610
|
}
|
|
2609
2611
|
function formatPercentage(value, decimals = 1) {
|
|
@@ -67480,7 +67482,7 @@ class MarkAsReviewedFooterComponent {
|
|
|
67480
67482
|
this.markAsReviewedClick.emit();
|
|
67481
67483
|
}
|
|
67482
67484
|
static { this.ɵfac = function MarkAsReviewedFooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MarkAsReviewedFooterComponent)(); }; }
|
|
67483
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkAsReviewedFooterComponent, selectors: [["symphiq-mark-as-reviewed-footer"]], inputs: { viewMode: [1, "viewMode"], reviewStatus: [1, "reviewStatus"], isMarkingAsReviewed: [1, "isMarkingAsReviewed"] }, outputs: { markAsReviewedClick: "markAsReviewedClick" }, decls: 1, vars: 1, consts: [[1, "fixed", "bottom-0", "left-0", "right-0", "z-
|
|
67485
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkAsReviewedFooterComponent, selectors: [["symphiq-mark-as-reviewed-footer"]], inputs: { viewMode: [1, "viewMode"], reviewStatus: [1, "reviewStatus"], isMarkingAsReviewed: [1, "isMarkingAsReviewed"] }, outputs: { markAsReviewedClick: "markAsReviewedClick" }, decls: 1, vars: 1, consts: [[1, "fixed", "bottom-0", "left-0", "right-0", "z-[100]", "border-t", "backdrop-blur-lg", 3, "ngClass"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-4"], ["type", "button", 1, "w-full", "px-6", "py-4", "rounded-xl", "font-semibold", "text-lg", "transition-all", "duration-300", "flex", "items-center", "justify-center", "gap-3", "shadow-2xl", "group", 3, "click", "disabled", "ngClass"], ["fill", "none", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "animate-spin"], ["cx", "12", "cy", "12", "r", "10", "stroke", "currentColor", "stroke-width", "4", 1, "opacity-25"], ["fill", "currentColor", "d", "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z", 1, "opacity-75"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "transition-transform", "duration-200", "group-hover:translate-x-1"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 7l5 5m0 0l-5 5m5-5H6"]], template: function MarkAsReviewedFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
67484
67486
|
i0.ɵɵconditionalCreate(0, MarkAsReviewedFooterComponent_Conditional_0_Template, 5, 4, "div", 0);
|
|
67485
67487
|
} if (rf & 2) {
|
|
67486
67488
|
i0.ɵɵconditional(ctx.shouldShowFooter() ? 0 : -1);
|
|
@@ -67497,7 +67499,7 @@ class MarkAsReviewedFooterComponent {
|
|
|
67497
67499
|
@if (shouldShowFooter()) {
|
|
67498
67500
|
<div
|
|
67499
67501
|
[ngClass]="isLightMode() ? 'bg-white/95 border-slate-200' : 'bg-slate-900/95 border-slate-700/50'"
|
|
67500
|
-
class="fixed bottom-0 left-0 right-0 z-
|
|
67502
|
+
class="fixed bottom-0 left-0 right-0 z-[100] border-t backdrop-blur-lg"
|
|
67501
67503
|
>
|
|
67502
67504
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
|
|
67503
67505
|
<button
|
|
@@ -67717,6 +67719,16 @@ function SymphiqBusinessAnalysisDashboardComponent_Conditional_29_Template(rf, c
|
|
|
67717
67719
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
67718
67720
|
i0.ɵɵproperty("sections", ctx_r1.sections())("viewMode", ctx_r1.viewMode())("embedded", ctx_r1.embedded())("scrollElement", ctx_r1.scrollElement() ?? undefined);
|
|
67719
67721
|
} }
|
|
67722
|
+
function SymphiqBusinessAnalysisDashboardComponent_Conditional_35_Template(rf, ctx) { if (rf & 1) {
|
|
67723
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
67724
|
+
i0.ɵɵelementStart(0, "symphiq-mark-as-reviewed-footer", 40);
|
|
67725
|
+
i0.ɵɵlistener("markAsReviewedClick", function SymphiqBusinessAnalysisDashboardComponent_Conditional_35_Template_symphiq_mark_as_reviewed_footer_markAsReviewedClick_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleMarkAsReviewedClick()); });
|
|
67726
|
+
i0.ɵɵelementEnd();
|
|
67727
|
+
} if (rf & 2) {
|
|
67728
|
+
let tmp_2_0;
|
|
67729
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
67730
|
+
i0.ɵɵproperty("viewMode", ctx_r1.viewMode())("reviewStatus", (tmp_2_0 = ctx_r1.profile()) == null ? null : tmp_2_0.reviewStatus)("isMarkingAsReviewed", ctx_r1.isMarkingAsReviewed());
|
|
67731
|
+
} }
|
|
67720
67732
|
class SymphiqBusinessAnalysisDashboardComponent {
|
|
67721
67733
|
sectionHasContent(section) {
|
|
67722
67734
|
if (!section?.subsections || section.subsections.length === 0) {
|
|
@@ -67765,7 +67777,8 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
67765
67777
|
const profile = this.profile();
|
|
67766
67778
|
if (!profile)
|
|
67767
67779
|
return false;
|
|
67768
|
-
return profile.
|
|
67780
|
+
return profile.selfContentStatus === AiDynamicContentStatusEnum.GENERATED &&
|
|
67781
|
+
profile.reviewStatus === ProfileAnalysisReviewStatusEnum.NOT_REVIEWED;
|
|
67769
67782
|
}, ...(ngDevMode ? [{ debugName: "shouldShowReviewFooter" }] : []));
|
|
67770
67783
|
this.headerScrollService = inject(HeaderScrollService);
|
|
67771
67784
|
this.lookupService = inject(ProfileItemLookupService);
|
|
@@ -68241,7 +68254,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
68241
68254
|
static { this.ɵfac = function SymphiqBusinessAnalysisDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqBusinessAnalysisDashboardComponent)(); }; }
|
|
68242
68255
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqBusinessAnalysisDashboardComponent, selectors: [["symphiq-business-analysis-dashboard"]], hostBindings: function SymphiqBusinessAnalysisDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
68243
68256
|
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);
|
|
68244
|
-
} }, inputs: { embedded: [1, "embedded"], profile: [1, "profile"], parentHeaderOffset: [1, "parentHeaderOffset"], requestedByUser: [1, "requestedByUser"], viewMode: [1, "viewMode"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], isLoading: [1, "isLoading"], isOnboarded: [1, "isOnboarded"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], itemStatus: [1, "itemStatus"], isMarkingAsReviewed: [1, "isMarkingAsReviewed"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", markAsReviewedClick: "markAsReviewedClick" }, decls: 36, vars:
|
|
68257
|
+
} }, inputs: { embedded: [1, "embedded"], profile: [1, "profile"], parentHeaderOffset: [1, "parentHeaderOffset"], requestedByUser: [1, "requestedByUser"], viewMode: [1, "viewMode"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], isLoading: [1, "isLoading"], isOnboarded: [1, "isOnboarded"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], itemStatus: [1, "itemStatus"], isMarkingAsReviewed: [1, "isMarkingAsReviewed"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", markAsReviewedClick: "markAsReviewedClick" }, decls: 36, vars: 61, consts: [[3, "ngClass"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [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", "justify-between"], [1, "flex", "items-center", "gap-2"], [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, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[60vh]"], [3, "sections", "viewMode", "embedded", "scrollElement"], [3, "viewMode", "embedded"], [3, "viewInContextRequested", "isLightMode"], [3, "searchChange", "resultSelected", "close", "isLightMode", "isOpen", "searchQuery", "results", "hasResults", "selectedIndex", "placeholder"], [3, "close", "modeSelected", "isOpen", "currentMode", "viewMode", "isLoading"], [3, "viewMode", "reviewStatus", "isMarkingAsReviewed"], [3, "searchClick", "isLightMode"], ["type", "button", 1, "cursor-pointer", "flex", "items-center", "gap-2", "px-3", "py-1.5", "rounded-lg", "text-xs", "font-medium", "transition-all", "duration-200", "hover:scale-105", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M15 12a3 3 0 11-6 0 3 3 0 016 0z"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"], [1, "transition-opacity", "duration-300", 3, "ngClass"], [3, "searchClick", "isLightMode", "minimized"], ["type", "button", 1, "cursor-pointer", "flex", "items-center", "gap-2", "px-2", "py-1.5", "rounded-lg", "text-xs", "font-medium", "transition-all", "duration-200", "hover:scale-105", 3, "click", "ngClass"], ["size", "large", 3, "viewMode"], [3, "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [3, "viewMode", "itemStatus", "currentStatus", "confettiIntensity", "title", "subtitle"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "mb-8"], [3, "viewMode", "businessName", "isOnboarded"], [3, "viewMoreClick", "recommendations", "viewMode"], [3, "sections", "viewMode"], [3, "section", "viewMode", "forceExpanded"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8"], [3, "viewMode", "subsections"], [3, "markAsReviewedClick", "viewMode", "reviewStatus", "isMarkingAsReviewed"]], template: function SymphiqBusinessAnalysisDashboardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
68245
68258
|
i0.ɵɵelementStart(0, "div", 0)(1, "div");
|
|
68246
68259
|
i0.ɵɵelement(2, "div", 1);
|
|
68247
68260
|
i0.ɵɵelementEnd();
|
|
@@ -68278,15 +68291,13 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
68278
68291
|
i0.ɵɵelementStart(34, "symphiq-view-mode-switcher-modal", 19);
|
|
68279
68292
|
i0.ɵɵlistener("close", function SymphiqBusinessAnalysisDashboardComponent_Template_symphiq_view_mode_switcher_modal_close_34_listener() { return ctx.closeViewModeSwitcher(); })("modeSelected", function SymphiqBusinessAnalysisDashboardComponent_Template_symphiq_view_mode_switcher_modal_modeSelected_34_listener($event) { return ctx.handleDisplayModeChange($event); });
|
|
68280
68293
|
i0.ɵɵelementEnd();
|
|
68281
|
-
i0.ɵɵ
|
|
68282
|
-
i0.ɵɵ
|
|
68283
|
-
i0.ɵɵelementEnd()();
|
|
68294
|
+
i0.ɵɵconditionalCreate(35, SymphiqBusinessAnalysisDashboardComponent_Conditional_35_Template, 1, 3, "symphiq-mark-as-reviewed-footer", 20);
|
|
68295
|
+
i0.ɵɵelementEnd();
|
|
68284
68296
|
} if (rf & 2) {
|
|
68285
68297
|
let tmp_13_0;
|
|
68286
68298
|
let tmp_15_0;
|
|
68287
68299
|
let tmp_23_0;
|
|
68288
68300
|
let tmp_25_0;
|
|
68289
|
-
let tmp_45_0;
|
|
68290
68301
|
i0.ɵɵproperty("ngClass", ctx.getContainerClasses());
|
|
68291
68302
|
i0.ɵɵadvance();
|
|
68292
68303
|
i0.ɵɵclassMap(ctx.embedded() ? "sticky top-0 left-0 right-0 h-1 z-[60] bg-slate-200/30" : "fixed top-0 left-0 right-0 h-1 z-[60] bg-slate-200/30");
|
|
@@ -68338,7 +68349,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
68338
68349
|
i0.ɵɵadvance();
|
|
68339
68350
|
i0.ɵɵproperty("isOpen", ctx.isViewModeSwitcherOpen())("currentMode", ctx.displayMode())("viewMode", ctx.viewMode())("isLoading", ctx.isViewModeSwitching());
|
|
68340
68351
|
i0.ɵɵadvance();
|
|
68341
|
-
i0.ɵɵ
|
|
68352
|
+
i0.ɵɵconditional(ctx.shouldShowReviewFooter() ? 35 : -1);
|
|
68342
68353
|
} }, dependencies: [CommonModule, i1$1.NgClass, ProfileSectionComponent, SectionNavigationComponent, FloatingTocComponent, FloatingBackButtonComponent, TooltipContainerComponent, SectionDividerComponent, BusinessAnalysisModalComponent, SearchButtonComponent, SearchModalComponent, ViewModeSwitcherModalComponent, JourneyProgressIndicatorComponent, WelcomeBannerComponent, RecommendationsTiledGridComponent, CollapsibleSectionGroupComponent, ContentGenerationProgressWithConfettiComponent, IndeterminateSpinnerComponent, MarkAsReviewedFooterComponent], styles: ["[_nghost-%COMP%]{display:block}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_pulse-highlight{0%,to{transform:scale(1);box-shadow:0 0 #3b82f6b3}50%{transform:scale(1.02);box-shadow:0 0 20px 8px #3b82f64d}}[_nghost-%COMP%] .search-highlight-pulse{animation:_ngcontent-%COMP%_pulse-highlight 2s ease-in-out;border-color:#3b82f6!important}"], changeDetection: 0 }); }
|
|
68343
68354
|
}
|
|
68344
68355
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SymphiqBusinessAnalysisDashboardComponent, [{
|
|
@@ -68597,12 +68608,14 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
68597
68608
|
/>
|
|
68598
68609
|
|
|
68599
68610
|
<!-- Mark as Reviewed Sticky Footer -->
|
|
68600
|
-
|
|
68601
|
-
|
|
68602
|
-
|
|
68603
|
-
|
|
68604
|
-
|
|
68605
|
-
|
|
68611
|
+
@if (shouldShowReviewFooter()) {
|
|
68612
|
+
<symphiq-mark-as-reviewed-footer
|
|
68613
|
+
[viewMode]="viewMode()"
|
|
68614
|
+
[reviewStatus]="profile()?.reviewStatus"
|
|
68615
|
+
[isMarkingAsReviewed]="isMarkingAsReviewed()"
|
|
68616
|
+
(markAsReviewedClick)="handleMarkAsReviewedClick()"
|
|
68617
|
+
/>
|
|
68618
|
+
}
|
|
68606
68619
|
</div>
|
|
68607
68620
|
`, styles: [":host{display:block}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse-highlight{0%,to{transform:scale(1);box-shadow:0 0 #3b82f6b3}50%{transform:scale(1.02);box-shadow:0 0 20px 8px #3b82f64d}}:host ::ng-deep .search-highlight-pulse{animation:pulse-highlight 2s ease-in-out;border-color:#3b82f6!important}\n"] }]
|
|
68608
68621
|
}], () => [], { embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], profile: [{ type: i0.Input, args: [{ isSignal: true, alias: "profile", required: false }] }], parentHeaderOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentHeaderOffset", required: false }] }], requestedByUser: [{ type: i0.Input, args: [{ isSignal: true, alias: "requestedByUser", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], scrollEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollEvent", required: false }] }], scrollElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollElement", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], isOnboarded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOnboarded", required: false }] }], forDemo: [{ type: i0.Input, args: [{ isSignal: true, alias: "forDemo", required: false }] }], maxAccessibleStepId: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxAccessibleStepId", required: false }] }], itemStatus: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemStatus", required: false }] }], isMarkingAsReviewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "isMarkingAsReviewed", required: false }] }], stepClick: [{ type: i0.Output, args: ["stepClick"] }], nextStepClick: [{ type: i0.Output, args: ["nextStepClick"] }], markAsReviewedClick: [{ type: i0.Output, args: ["markAsReviewedClick"] }], onScroll: [{
|
|
@@ -68612,7 +68625,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
68612
68625
|
type: HostListener,
|
|
68613
68626
|
args: ['document:keydown', ['$event']]
|
|
68614
68627
|
}] }); })();
|
|
68615
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber:
|
|
68628
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber: 352 }); })();
|
|
68616
68629
|
|
|
68617
68630
|
function DashboardHeaderComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
68618
68631
|
i0.ɵɵelement(0, "div", 6);
|