@eric-emg/symphiq-components 1.2.256 → 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 +16 -3
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +10 -9
- 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';
|
|
@@ -60522,7 +60524,7 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template(rf,
|
|
|
60522
60524
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
60523
60525
|
i0.ɵɵelement(0, "symphiq-revenue-calculator-welcome-banner", 14);
|
|
60524
60526
|
i0.ɵɵelementStart(1, "div", 21)(2, "symphiq-initial-target-setting", 22);
|
|
60525
|
-
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)); });
|
|
60526
60528
|
i0.ɵɵelementEnd()();
|
|
60527
60529
|
} if (rf & 2) {
|
|
60528
60530
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -60556,6 +60558,7 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_26_Template(rf,
|
|
|
60556
60558
|
i0.ɵɵadvance(2);
|
|
60557
60559
|
i0.ɵɵproperty("ngClass", ctx_r0.placeholderTextClasses());
|
|
60558
60560
|
} }
|
|
60561
|
+
dayjs.extend(utc);
|
|
60559
60562
|
class SymphiqRevenueCalculatorDashboardComponent {
|
|
60560
60563
|
constructor() {
|
|
60561
60564
|
this.viewMode = input(ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
|
|
@@ -60699,6 +60702,16 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
60699
60702
|
? 'text-slate-600'
|
|
60700
60703
|
: 'text-slate-400';
|
|
60701
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
|
+
}
|
|
60702
60715
|
static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
|
|
60703
60716
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
60704
60717
|
i0.ɵɵlistener("scroll", function SymphiqRevenueCalculatorDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onWindowScroll($event); }, i0.ɵɵresolveWindow);
|
|
@@ -60907,7 +60920,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
60907
60920
|
[dataResults]="dataResults()"
|
|
60908
60921
|
[reverseCalculationResponse]="reverseCalculationResponse()"
|
|
60909
60922
|
[targets]="targets()"
|
|
60910
|
-
(targetsCreated)="
|
|
60923
|
+
(targetsCreated)="onTargetsCreated($event)"
|
|
60911
60924
|
(calculateRevenueRequest)="calculateRevenueRequest.emit($event)"
|
|
60912
60925
|
/>
|
|
60913
60926
|
</div>
|
|
@@ -60952,7 +60965,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
60952
60965
|
type: HostListener,
|
|
60953
60966
|
args: ['window:scroll', ['$event']]
|
|
60954
60967
|
}] }); })();
|
|
60955
|
-
(() => { (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 }); })();
|
|
60956
60969
|
|
|
60957
60970
|
function HierarchyDisplayComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
60958
60971
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 1);
|