@eric-emg/symphiq-components 1.2.254 → 1.2.257
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 +49 -6
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +26 -25
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ import { FormsModule, FormBuilder, Validators, ReactiveFormsModule } from '@angu
|
|
|
15
15
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
16
16
|
import { toObservable, toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
17
17
|
import { MarkdownComponent } from 'ngx-markdown';
|
|
18
|
+
import dayjs from 'dayjs';
|
|
19
|
+
import utc from 'dayjs/plugin/utc';
|
|
18
20
|
import { Root, color, Tooltip, Bullet, Circle, Legend, percent, LinearGradient, p100, p50 } from '@amcharts/amcharts5';
|
|
19
21
|
import { XYChart, CategoryAxis, AxisRendererX, ValueAxis, AxisRendererY, XYCursor, LineSeries, DateAxis, ColumnSeries } from '@amcharts/amcharts5/xy';
|
|
20
22
|
import am5themes_Animated from '@amcharts/amcharts5/themes/Animated';
|
|
@@ -57677,9 +57679,30 @@ function MetricReportModalComponent_Conditional_0_Conditional_70_Template(rf, ct
|
|
|
57677
57679
|
} }
|
|
57678
57680
|
function MetricReportModalComponent_Conditional_0_Conditional_71_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
57679
57681
|
i0.ɵɵelement(0, "symphiq-line-chart", 36);
|
|
57682
|
+
i0.ɵɵelementStart(1, "p", 58);
|
|
57683
|
+
i0.ɵɵtext(2);
|
|
57684
|
+
i0.ɵɵelementEnd();
|
|
57685
|
+
i0.ɵɵelementStart(3, "p", 59);
|
|
57686
|
+
i0.ɵɵtext(4);
|
|
57687
|
+
i0.ɵɵelementEnd();
|
|
57688
|
+
i0.ɵɵelementStart(5, "p", 59);
|
|
57689
|
+
i0.ɵɵtext(6);
|
|
57690
|
+
i0.ɵɵelementEnd();
|
|
57680
57691
|
} if (rf & 2) {
|
|
57681
57692
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
57682
57693
|
i0.ɵɵproperty("chart", ctx_r1.pacingChartData())("showAxisLabels", true)("viewMode", ctx_r1.viewMode())("currencySymbol", "$")("height", "500px");
|
|
57694
|
+
i0.ɵɵadvance();
|
|
57695
|
+
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
57696
|
+
i0.ɵɵadvance();
|
|
57697
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.chartLegendDescription(), " ");
|
|
57698
|
+
i0.ɵɵadvance();
|
|
57699
|
+
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
57700
|
+
i0.ɵɵadvance();
|
|
57701
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.chartDescriptionSentence1(), " ");
|
|
57702
|
+
i0.ɵɵadvance();
|
|
57703
|
+
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
57704
|
+
i0.ɵɵadvance();
|
|
57705
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.chartDescriptionSentence2(), " ");
|
|
57683
57706
|
} }
|
|
57684
57707
|
function MetricReportModalComponent_Conditional_0_Conditional_71_Template(rf, ctx) { if (rf & 1) {
|
|
57685
57708
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -57700,7 +57723,7 @@ function MetricReportModalComponent_Conditional_0_Conditional_71_Template(rf, ct
|
|
|
57700
57723
|
i0.ɵɵelementEnd()()();
|
|
57701
57724
|
i0.ɵɵnamespaceHTML();
|
|
57702
57725
|
i0.ɵɵelementStart(10, "div", 66);
|
|
57703
|
-
i0.ɵɵconditionalCreate(11, MetricReportModalComponent_Conditional_0_Conditional_71_Conditional_11_Template,
|
|
57726
|
+
i0.ɵɵconditionalCreate(11, MetricReportModalComponent_Conditional_0_Conditional_71_Conditional_11_Template, 7, 11);
|
|
57704
57727
|
i0.ɵɵelementEnd()()()();
|
|
57705
57728
|
} if (rf & 2) {
|
|
57706
57729
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -58843,6 +58866,15 @@ class MetricReportModalComponent {
|
|
|
58843
58866
|
[currencySymbol]="'$'"
|
|
58844
58867
|
[height]="'500px'"
|
|
58845
58868
|
/>
|
|
58869
|
+
<p [ngClass]="descriptionClasses()" class="text-sm leading-relaxed mt-4">
|
|
58870
|
+
{{ chartLegendDescription() }}
|
|
58871
|
+
</p>
|
|
58872
|
+
<p [ngClass]="descriptionClasses()" class="text-sm leading-relaxed mt-2">
|
|
58873
|
+
{{ chartDescriptionSentence1() }}
|
|
58874
|
+
</p>
|
|
58875
|
+
<p [ngClass]="descriptionClasses()" class="text-sm leading-relaxed mt-2">
|
|
58876
|
+
{{ chartDescriptionSentence2() }}
|
|
58877
|
+
</p>
|
|
58846
58878
|
}
|
|
58847
58879
|
</div>
|
|
58848
58880
|
</div>
|
|
@@ -58856,7 +58888,7 @@ class MetricReportModalComponent {
|
|
|
58856
58888
|
type: HostListener,
|
|
58857
58889
|
args: ['document:keydown.escape']
|
|
58858
58890
|
}] }); })();
|
|
58859
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MetricReportModalComponent, { className: "MetricReportModalComponent", filePath: "lib/components/revenue-calculator-dashboard/metric-report-modal.component.ts", lineNumber:
|
|
58891
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MetricReportModalComponent, { className: "MetricReportModalComponent", filePath: "lib/components/revenue-calculator-dashboard/metric-report-modal.component.ts", lineNumber: 483 }); })();
|
|
58860
58892
|
|
|
58861
58893
|
const _c0$q = ["absoluteInputRef"];
|
|
58862
58894
|
const _c1$b = ["percentageInputRef"];
|
|
@@ -59413,7 +59445,7 @@ class InitialTargetSettingComponent {
|
|
|
59413
59445
|
return 'Calculating...';
|
|
59414
59446
|
}
|
|
59415
59447
|
else if (state === 'results') {
|
|
59416
|
-
return '
|
|
59448
|
+
return 'Save Metric Targets';
|
|
59417
59449
|
}
|
|
59418
59450
|
else {
|
|
59419
59451
|
return 'Calculate Metric Targets';
|
|
@@ -60492,7 +60524,7 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template(rf,
|
|
|
60492
60524
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
60493
60525
|
i0.ɵɵelement(0, "symphiq-revenue-calculator-welcome-banner", 14);
|
|
60494
60526
|
i0.ɵɵelementStart(1, "div", 21)(2, "symphiq-initial-target-setting", 22);
|
|
60495
|
-
i0.ɵɵlistener("targetsCreated", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_targetsCreated_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.
|
|
60527
|
+
i0.ɵɵlistener("targetsCreated", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_targetsCreated_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onTargetsCreated($event)); })("calculateRevenueRequest", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_calculateRevenueRequest_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.calculateRevenueRequest.emit($event)); });
|
|
60496
60528
|
i0.ɵɵelementEnd()();
|
|
60497
60529
|
} if (rf & 2) {
|
|
60498
60530
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -60526,6 +60558,7 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_26_Template(rf,
|
|
|
60526
60558
|
i0.ɵɵadvance(2);
|
|
60527
60559
|
i0.ɵɵproperty("ngClass", ctx_r0.placeholderTextClasses());
|
|
60528
60560
|
} }
|
|
60561
|
+
dayjs.extend(utc);
|
|
60529
60562
|
class SymphiqRevenueCalculatorDashboardComponent {
|
|
60530
60563
|
constructor() {
|
|
60531
60564
|
this.viewMode = input(ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
|
|
@@ -60669,6 +60702,16 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
60669
60702
|
? 'text-slate-600'
|
|
60670
60703
|
: 'text-slate-400';
|
|
60671
60704
|
}
|
|
60705
|
+
onTargetsCreated(targets) {
|
|
60706
|
+
const startDate = dayjs().utc().startOf('year').toDate();
|
|
60707
|
+
const endDate = dayjs().utc().endOf('year').toDate();
|
|
60708
|
+
const targetsWithDates = targets.map(target => ({
|
|
60709
|
+
...target,
|
|
60710
|
+
startDate,
|
|
60711
|
+
endDate
|
|
60712
|
+
}));
|
|
60713
|
+
this.targetsCreated.emit(targetsWithDates);
|
|
60714
|
+
}
|
|
60672
60715
|
static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
|
|
60673
60716
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
60674
60717
|
i0.ɵɵlistener("scroll", function SymphiqRevenueCalculatorDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onWindowScroll($event); }, i0.ɵɵresolveWindow);
|
|
@@ -60877,7 +60920,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
60877
60920
|
[dataResults]="dataResults()"
|
|
60878
60921
|
[reverseCalculationResponse]="reverseCalculationResponse()"
|
|
60879
60922
|
[targets]="targets()"
|
|
60880
|
-
(targetsCreated)="
|
|
60923
|
+
(targetsCreated)="onTargetsCreated($event)"
|
|
60881
60924
|
(calculateRevenueRequest)="calculateRevenueRequest.emit($event)"
|
|
60882
60925
|
/>
|
|
60883
60926
|
</div>
|
|
@@ -60922,7 +60965,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
60922
60965
|
type: HostListener,
|
|
60923
60966
|
args: ['window:scroll', ['$event']]
|
|
60924
60967
|
}] }); })();
|
|
60925
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber:
|
|
60968
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber: 227 }); })();
|
|
60926
60969
|
|
|
60927
60970
|
function HierarchyDisplayComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
60928
60971
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 1);
|