@datarailsshared/datarailsshared 1.4.155-rocket → 1.4.157
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/bundles/datarailsshared-datarailsshared.umd.js +125 -502
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.157.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +0 -2
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +1 -3
- package/esm2015/lib/date-tags/day-tag/day-tag.component.js +8 -3
- package/esm2015/lib/date-tags/month-tag/month-tag.component.js +8 -3
- package/esm2015/lib/date-tags/year-tag/year-tag.component.js +8 -3
- package/esm2015/lib/dr-details-list/dr-details-list.component.js +65 -0
- package/esm2015/lib/dr-details-list/dr-details-list.module.js +16 -0
- package/esm2015/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.js +3 -3
- package/esm2015/lib/dr-dialog/dialog.module.js +4 -2
- package/esm2015/lib/dr-dialog/interfaces/dialog-data.js +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +3 -3
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +2 -5
- package/esm2015/lib/dr-inputs/dr-inputs.module.js +2 -3
- package/esm2015/lib/dr-inputs/dr-toggle-button/dr-toggle-button.component.js +3 -8
- package/esm2015/lib/dr-tags/dr-tag.component.js +5 -17
- package/esm2015/lib/models/serverTags.js +1 -13
- package/esm2015/public-api.js +3 -6
- package/fesm2015/datarailsshared-datarailsshared.js +111 -465
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-details-list/dr-details-list.component.d.ts +12 -0
- package/lib/dr-details-list/dr-details-list.module.d.ts +2 -0
- package/lib/dr-dialog/interfaces/dialog-data.d.ts +8 -0
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +12 -11
- package/lib/dr-inputs/dr-toggle-button/dr-toggle-button.component.d.ts +0 -3
- package/lib/dr-tags/dr-tag.component.d.ts +3 -7
- package/lib/models/serverTags.d.ts +1 -15
- package/package.json +1 -1
- package/public-api.d.ts +3 -5
- package/datarailsshared-datarailsshared-1.4.155-rocket.tgz +0 -0
- package/esm2015/lib/dr-inputs/dr-toggle-button/toggle-button-theme.js +0 -6
- package/esm2015/lib/dr-scenario/components/dr-scenario-configuration/dr-scenario-configuration.component.js +0 -87
- package/esm2015/lib/dr-scenario/components/dr-scenario-tag-configuration/dr-scenario-tag-configuration.component.js +0 -74
- package/esm2015/lib/dr-scenario/consts/scenario-tags-config.js +0 -73
- package/esm2015/lib/dr-scenario/dr-scenario.module.js +0 -28
- package/esm2015/lib/dr-scenario/interfaces/scenario.js +0 -8
- package/esm2015/lib/dr-scenario/services/scenario.service.js +0 -160
- package/lib/dr-inputs/dr-toggle-button/toggle-button-theme.d.ts +0 -4
- package/lib/dr-scenario/components/dr-scenario-configuration/dr-scenario-configuration.component.d.ts +0 -25
- package/lib/dr-scenario/components/dr-scenario-tag-configuration/dr-scenario-tag-configuration.component.d.ts +0 -26
- package/lib/dr-scenario/consts/scenario-tags-config.d.ts +0 -24
- package/lib/dr-scenario/dr-scenario.module.d.ts +0 -2
- package/lib/dr-scenario/interfaces/scenario.d.ts +0 -43
- package/lib/dr-scenario/services/scenario.service.d.ts +0 -21
|
@@ -3,7 +3,7 @@ import { EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding,
|
|
|
3
3
|
import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
4
4
|
import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
|
5
5
|
import * as _ from 'lodash';
|
|
6
|
-
import { find, map, merge, forEach,
|
|
6
|
+
import { some, find, map, merge, forEach, reduce, isObject, isNil, isNumber } from 'lodash';
|
|
7
7
|
import { NG_VALUE_ACCESSOR, FormGroupDirective, FormGroup, FormControl, NgModel, NgControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
8
|
import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
|
|
9
9
|
import { Subject, from, merge as merge$1, fromEvent, noop as noop$1, BehaviorSubject } from 'rxjs';
|
|
@@ -265,8 +265,13 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
265
265
|
return this.date ? !this.dateFilter(moment$7.unix(this.date).utc()) : false;
|
|
266
266
|
}
|
|
267
267
|
initDate() {
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
if (this.defaultValue) {
|
|
269
|
+
this.date = this.defaultValue;
|
|
270
|
+
this.dateObj.date = this.date;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
this.dateObj.date = moment$7().unix();
|
|
274
|
+
}
|
|
270
275
|
}
|
|
271
276
|
initName() {
|
|
272
277
|
if (!this.name) {
|
|
@@ -522,8 +527,13 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
522
527
|
return this.date ? !this.dateFilter(moment$4.unix(this.date).utc()) : false;
|
|
523
528
|
}
|
|
524
529
|
initDate() {
|
|
525
|
-
|
|
526
|
-
|
|
530
|
+
if (this.defaultValue) {
|
|
531
|
+
this.date = this.defaultValue;
|
|
532
|
+
this.dateObj.date = this.date;
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
this.dateObj.date = moment$4().unix();
|
|
536
|
+
}
|
|
527
537
|
}
|
|
528
538
|
initName() {
|
|
529
539
|
if (!this.name) {
|
|
@@ -579,48 +589,29 @@ var TagTypes;
|
|
|
579
589
|
TagTypes["LIST"] = "LIST";
|
|
580
590
|
TagTypes["DATE"] = "DATE";
|
|
581
591
|
})(TagTypes || (TagTypes = {}));
|
|
582
|
-
var TagsConfigSubType;
|
|
583
|
-
(function (TagsConfigSubType) {
|
|
584
|
-
TagsConfigSubType["YEAR"] = "year";
|
|
585
|
-
TagsConfigSubType["PLAN"] = "plan";
|
|
586
|
-
TagsConfigSubType["BUDGET_CYCLE"] = "budget cycle";
|
|
587
|
-
TagsConfigSubType["MONTH"] = "month";
|
|
588
|
-
TagsConfigSubType["WEEK"] = "week";
|
|
589
|
-
TagsConfigSubType["DAY"] = "day";
|
|
590
|
-
TagsConfigSubType["FORECAST_NEW"] = "forecast_new";
|
|
591
|
-
TagsConfigSubType["QUARTER"] = "quarter";
|
|
592
|
-
TagsConfigSubType["FILE_STATUS"] = "file_status";
|
|
593
|
-
})(TagsConfigSubType || (TagsConfigSubType = {}));
|
|
594
592
|
|
|
595
593
|
class DrTagComponent {
|
|
596
594
|
constructor() {
|
|
597
595
|
this.lockedDate = [];
|
|
598
596
|
this.dynamicTagValues = {};
|
|
597
|
+
this.connectedTags = [];
|
|
599
598
|
this.tagChange = new EventEmitter(); // Not emit value for dynamic tag
|
|
600
599
|
this.dynamicTagChange = new EventEmitter();
|
|
601
600
|
this.dynamicTagAdd = new EventEmitter();
|
|
602
601
|
this.currentTagConnectedToDynamic = false;
|
|
603
602
|
this.tagTypes = TagTypes;
|
|
604
603
|
this.connectedTagsValues = [];
|
|
605
|
-
this._connectedTags = [];
|
|
606
604
|
this.selectedTag = {
|
|
607
605
|
id: 0,
|
|
608
606
|
value: undefined,
|
|
609
607
|
name: ''
|
|
610
608
|
};
|
|
611
609
|
}
|
|
612
|
-
set connectedTags(tags) {
|
|
613
|
-
this._connectedTags = tags || [];
|
|
614
|
-
}
|
|
615
|
-
get connectedTags() {
|
|
616
|
-
return this._connectedTags;
|
|
617
|
-
}
|
|
618
|
-
ngOnChanges() {
|
|
619
|
-
this.calculateDynamicTag();
|
|
620
|
-
}
|
|
621
610
|
ngOnInit() {
|
|
622
611
|
var _a, _b;
|
|
623
|
-
this.
|
|
612
|
+
this.currentTagDynamic = this.tagConfig.options.is_custom;
|
|
613
|
+
this.currentTagConnectedToDynamic = some(this.tagsConfig, (tagConfig) => tagConfig.options.is_custom
|
|
614
|
+
&& ['year'].includes(this.tagConfig.options.sub_type));
|
|
624
615
|
this.dateTag = {
|
|
625
616
|
type: this.tagConfig.type,
|
|
626
617
|
sub_type: this.tagConfig.options.sub_type,
|
|
@@ -734,11 +725,6 @@ class DrTagComponent {
|
|
|
734
725
|
}
|
|
735
726
|
});
|
|
736
727
|
}
|
|
737
|
-
calculateDynamicTag() {
|
|
738
|
-
this.currentTagDynamic = this.tagConfig.options.is_custom;
|
|
739
|
-
this.currentTagConnectedToDynamic = some(this.tagsConfig, (tagConfig) => tagConfig.options.is_custom
|
|
740
|
-
&& ['year'].includes(this.tagConfig.options.sub_type));
|
|
741
|
-
}
|
|
742
728
|
}
|
|
743
729
|
DrTagComponent.decorators = [
|
|
744
730
|
{ type: Component, args: [{
|
|
@@ -824,8 +810,13 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
824
810
|
return this.date ? !this.dateFilter(moment$3.unix(this.date).utc()) : false;
|
|
825
811
|
}
|
|
826
812
|
initDate() {
|
|
827
|
-
|
|
828
|
-
|
|
813
|
+
if (this.defaultValue) {
|
|
814
|
+
this.date = this.defaultValue;
|
|
815
|
+
this.dateObj.date = this.date;
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
this.dateObj.date = moment$3().unix();
|
|
819
|
+
}
|
|
829
820
|
}
|
|
830
821
|
initName() {
|
|
831
822
|
if (!this.name) {
|
|
@@ -1940,20 +1931,12 @@ DrToggleComponent.propDecorators = {
|
|
|
1940
1931
|
elementClass: [{ type: HostBinding, args: ['class',] }]
|
|
1941
1932
|
};
|
|
1942
1933
|
|
|
1943
|
-
var ToggleButtonTheme;
|
|
1944
|
-
(function (ToggleButtonTheme) {
|
|
1945
|
-
ToggleButtonTheme["DEFAULT"] = "default";
|
|
1946
|
-
ToggleButtonTheme["DOTTED"] = "dotted";
|
|
1947
|
-
})(ToggleButtonTheme || (ToggleButtonTheme = {}));
|
|
1948
|
-
|
|
1949
1934
|
class DrToggleButtonComponent {
|
|
1950
1935
|
constructor(cdr) {
|
|
1951
1936
|
this.cdr = cdr;
|
|
1952
1937
|
this._disabled = false;
|
|
1953
1938
|
this.bindLabel = null;
|
|
1954
1939
|
this.bindValue = null;
|
|
1955
|
-
this.bindHidden = null;
|
|
1956
|
-
this.theme = ToggleButtonTheme.DEFAULT;
|
|
1957
1940
|
this.onChange = () => {
|
|
1958
1941
|
};
|
|
1959
1942
|
this.onTouched = () => {
|
|
@@ -1985,12 +1968,12 @@ class DrToggleButtonComponent {
|
|
|
1985
1968
|
DrToggleButtonComponent.decorators = [
|
|
1986
1969
|
{ type: Component, args: [{
|
|
1987
1970
|
selector: 'dr-toggle-button',
|
|
1988
|
-
template: "<div class=\"toggle-container\"
|
|
1971
|
+
template: "<div class=\"toggle-container\" [class.disabled]=\"_disabled\">\n <div\n *ngFor=\"let item of items\"\n (click)=\"setValue(item)\"\n [class.selected]=\"item[bindValue] === selectedValue || item === selectedValue\"\n [class.disabled]=\"item.disabled\"\n class=\"toggle-container__item\"\n >\n {{ item[bindLabel] || item.name || item }}\n </div>\n</div>\n",
|
|
1989
1972
|
providers: [
|
|
1990
1973
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DrToggleButtonComponent), multi: true }
|
|
1991
1974
|
],
|
|
1992
1975
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1993
|
-
styles: [".toggle-container{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px}.toggle-container.disabled{pointer-events:none}.toggle-container__item{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c}.toggle-container__item.selected{background:#f2f2fb
|
|
1976
|
+
styles: [".toggle-container{display:flex;flex-wrap:nowrap;background:#f6f7f8;border:1px solid #c3c4ce;box-sizing:border-box;border-radius:20px;height:28px}.toggle-container.disabled{pointer-events:none}.toggle-container__item{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c}.toggle-container__item.selected{font-weight:400;background:#f2f2fb;border:1px solid #7f7fdd;color:#25258c}.toggle-container__item.disabled{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}\n"]
|
|
1994
1977
|
},] }
|
|
1995
1978
|
];
|
|
1996
1979
|
DrToggleButtonComponent.ctorParameters = () => [
|
|
@@ -2000,8 +1983,6 @@ DrToggleButtonComponent.propDecorators = {
|
|
|
2000
1983
|
items: [{ type: Input }],
|
|
2001
1984
|
bindLabel: [{ type: Input }],
|
|
2002
1985
|
bindValue: [{ type: Input }],
|
|
2003
|
-
bindHidden: [{ type: Input }],
|
|
2004
|
-
theme: [{ type: Input }],
|
|
2005
1986
|
selectedValue: [{ type: Input }],
|
|
2006
1987
|
disabled: [{ type: Input }]
|
|
2007
1988
|
};
|
|
@@ -3345,8 +3326,8 @@ class DialogWrapperComponent {
|
|
|
3345
3326
|
DialogWrapperComponent.decorators = [
|
|
3346
3327
|
{ type: Component, args: [{
|
|
3347
3328
|
selector: 'dr-dialog-wrapper',
|
|
3348
|
-
template: "<div class=\"dialog-wrapper\"\n [class.dialog-wrapper--confirmation-no-title]=\"dialogData.theme?.isConfirmation && !dialogData.title\">\n <i class=\"dr-icon-exit\" data-test=\"close_btn\" (click)=\"closeDialog()\" *ngIf=\"!dialogData?.hideCloseBtn\"></i>\n\n <div header class=\"dialog-wrapper__header\" *ngIf=\"dialogData.title\">\n <h1 class=\"dialog-wrapper__header__title\" data-test=\"dialogTitle\">{{ dialogData.title }}</h1>\n <h1 class=\"dialog-wrapper__header__subtitle\" data-test=\"dialogSubtitle\"\n *ngIf=\"dialogData.subtitle\">{{ dialogData.subtitle }}</h1>\n </div>\n <div class=\"dialog-wrapper__content\"\n [class.dialog-wrapper__content--no-padding]=\"dialogData.theme?.contentNoPadding\"\n [ngClass]=\"{ 'flex-position': dialogData.contentIcon?.class && !childComponent }\">\n <span *ngIf=\"dialogData.contentIcon?.class\" class=\"dialog-wrapper__content__icon\">\n <i [ngClass]=\"dialogData.contentIcon.class\" [style.color]=\"dialogData.contentIcon?.color || 'inherit'\"></i>\n </span>\n <span [innerHTML]=\"dialogData.content\"></span>\n <span #content class=\"dialog-wrapper__content__anchor\"> </span>\n </div>\n <div footer class=\"dialog-wrapper__footer\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <div class=\"dialog-wrapper__footer__buttons\">\n <span *ngIf=\"dialogData.customButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.customButton.isDisabled && dialogData.tooltips?.customDisabled\">\n <dr-button (click)=\"onDecline()\"\n [theme]=\"'secondary'\"\n [isLoading]=\"isLoading\"\n data-test=\"declineBtn\"\n [disabled]=\"dialogData.customButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.custom\">{{ dialogData.customButton.label }}</dr-button>\n </span>\n <span *ngIf=\"dialogData.cancelButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.cancelButton.isDisabled && dialogData.tooltips?.cancelDisabled\">\n <dr-button (click)=\"closeDialog()\"\n [theme]=\"'secondary'\"\n data-test=\"closeBtn\"\n [disabled]=\"dialogData.cancelButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.cancel\">{{ dialogData.cancelButton.label }}</dr-button>\n </span>\n <span *ngIf=\"dialogData.acceptButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.acceptButton.isDisabled && dialogData.tooltips?.acceptDisabled\">\n <dr-button (click)=\"onAcceptDialog()\"\n [theme]=\"dialogData.acceptButton?.theme || 'primary'\"\n [isLoading]=\"isLoading\"\n data-test=\"acceptBtn\"\n [disabled]=\"dialogData.acceptButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.accept\">{{ dialogData.acceptButton.label }}</dr-button>\n </span>\n </div>\n </div>\n</div>\n",
|
|
3349
|
-
styles: [":host.small-modal{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal,.medium-modal-max-height:host{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.medium-small-modal{min-height:188px;max-height:345px;min-width:460px;max-width:460px}:host.medium-modal-max-height{max-height:85vh}:host.large-modal{min-width:750px;max-width:750px}:host.medium-large-modal{min-width:669px;max-width:669px}:host.xl-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:1100px}:host.xl-custom-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:100%}::ng-deep .dialog-wrapper{display:flex;justify-content:space-between;flex-direction:column;position:relative}::ng-deep .dialog-wrapper>.dr-icon-exit{z-index:1;position:absolute;right:32px;top:20px;color:#51566f;cursor:pointer}::ng-deep .dialog-wrapper__header{display:flex;flex-direction:column;padding:8px 52px 8px 32px;border-bottom:1px solid #e5e6ea}::ng-deep .dialog-wrapper__header__title{color:#151b3f;position:static;font-weight:600;font-size:18px;line-height:24px}::ng-deep .dialog-wrapper__header__subtitle{font-size:14px;line-height:20px;margin:0}::ng-deep .dialog-wrapper--confirmation-no-title{padding-top:16px;height:100%}::ng-deep .dialog-wrapper__content{overflow-y:inherit;font-size:14px;font-weight:400;line-height:22px;padding:24px 32px 32px}::ng-deep .dialog-wrapper__content__anchor{display:none}::ng-deep .dialog-wrapper__content--no-padding{padding:0}::ng-deep .dialog-wrapper__content__icon{margin-right:10px;top:5px;position:relative}::ng-deep .dialog-wrapper__content.flex-position{display:flex}::ng-deep .dialog-wrapper__footer{border-top:1px solid #e5e6ea}::ng-deep .dialog-wrapper__footer__buttons{display:flex;justify-content:flex-end;padding:11px 32px}::ng-deep .dialog-wrapper__footer__buttons>dr-button:nth-child(n+2){margin-left:12px}::ng-deep .dialog-wrapper__footer__button-wrapper:nth-child(n+2){margin-left:12px}\n"]
|
|
3329
|
+
template: "<div class=\"dialog-wrapper\"\n [class.dialog-wrapper--confirmation-no-title]=\"dialogData.theme?.isConfirmation && !dialogData.title\">\n <i class=\"dr-icon-exit\" data-test=\"close_btn\" (click)=\"closeDialog()\" *ngIf=\"!dialogData?.hideCloseBtn\"></i>\n\n <div header class=\"dialog-wrapper__header\" *ngIf=\"dialogData.title\">\n <h1 class=\"dialog-wrapper__header__title\" data-test=\"dialogTitle\">{{ dialogData.title }}</h1>\n <h1 class=\"dialog-wrapper__header__subtitle\" data-test=\"dialogSubtitle\"\n *ngIf=\"dialogData.subtitle\">{{ dialogData.subtitle }}</h1>\n </div>\n <div class=\"dialog-wrapper__content\"\n [class.dialog-wrapper__content--no-padding]=\"dialogData.theme?.contentNoPadding\"\n [ngClass]=\"{ 'flex-position': dialogData.contentIcon?.class && !childComponent }\">\n <span *ngIf=\"dialogData.contentIcon?.class\" class=\"dialog-wrapper__content__icon\">\n <i [ngClass]=\"dialogData.contentIcon.class\" [style.color]=\"dialogData.contentIcon?.color || 'inherit'\"></i>\n </span>\n <span [innerHTML]=\"dialogData.content\"></span>\n <span #content class=\"dialog-wrapper__content__anchor\"> </span>\n </div>\n <dr-details-list *ngIf=\"dialogData.details\"\n [title]=\"dialogData.details.title\"\n [items]=\"dialogData.details.items\">\n </dr-details-list>\n <div footer class=\"dialog-wrapper__footer\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <div class=\"dialog-wrapper__footer__buttons\">\n <span *ngIf=\"dialogData.customButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.customButton.isDisabled && dialogData.tooltips?.customDisabled\">\n <dr-button (click)=\"onDecline()\"\n [theme]=\"'secondary'\"\n [isLoading]=\"isLoading\"\n data-test=\"declineBtn\"\n [disabled]=\"dialogData.customButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.custom\">{{ dialogData.customButton.label }}</dr-button>\n </span>\n <span *ngIf=\"dialogData.cancelButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.cancelButton.isDisabled && dialogData.tooltips?.cancelDisabled\">\n <dr-button (click)=\"closeDialog()\"\n [theme]=\"'secondary'\"\n data-test=\"closeBtn\"\n [disabled]=\"dialogData.cancelButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.cancel\">{{ dialogData.cancelButton.label }}</dr-button>\n </span>\n <span *ngIf=\"dialogData.acceptButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.acceptButton.isDisabled && dialogData.tooltips?.acceptDisabled\">\n <dr-button (click)=\"onAcceptDialog()\"\n [theme]=\"dialogData.acceptButton?.theme || 'primary'\"\n [isLoading]=\"isLoading\"\n data-test=\"acceptBtn\"\n [disabled]=\"dialogData.acceptButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.accept\">{{ dialogData.acceptButton.label }}</dr-button>\n </span>\n </div>\n </div>\n</div>\n",
|
|
3330
|
+
styles: [":host.small-modal{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal,.medium-modal-max-height:host{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.medium-small-modal{min-height:188px;max-height:345px;min-width:460px;max-width:460px}:host.medium-modal-max-height{max-height:85vh}:host.large-modal{min-width:750px;max-width:750px}:host.medium-large-modal{min-width:669px;max-width:669px}:host.xl-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:1100px}:host.xl-custom-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:100%}::ng-deep .dialog-wrapper{display:flex;justify-content:space-between;flex-direction:column;position:relative}::ng-deep .dialog-wrapper>.dr-icon-exit{z-index:1;position:absolute;right:32px;top:20px;color:#51566f;cursor:pointer}::ng-deep .dialog-wrapper__header{display:flex;flex-direction:column;padding:8px 52px 8px 32px;border-bottom:1px solid #e5e6ea}::ng-deep .dialog-wrapper__header__title{color:#151b3f;position:static;font-weight:600;font-size:18px;line-height:24px}::ng-deep .dialog-wrapper__header__subtitle{font-size:14px;line-height:20px;margin:0}::ng-deep .dialog-wrapper--confirmation-no-title{padding-top:16px;height:100%}::ng-deep .dialog-wrapper__content{overflow-y:inherit;font-size:14px;font-weight:400;line-height:22px;padding:24px 32px 32px}::ng-deep .dialog-wrapper__content__anchor{display:none}::ng-deep .dialog-wrapper__content--no-padding{padding:0}::ng-deep .dialog-wrapper__content__icon{margin-right:10px;top:5px;position:relative}::ng-deep .dialog-wrapper__content.flex-position{display:flex}::ng-deep .dialog-wrapper dr-details-list{margin-top:-24px;padding:0 32px 32px}::ng-deep .dialog-wrapper__footer{border-top:1px solid #e5e6ea}::ng-deep .dialog-wrapper__footer__buttons{display:flex;justify-content:flex-end;padding:11px 32px}::ng-deep .dialog-wrapper__footer__buttons>dr-button:nth-child(n+2){margin-left:12px}::ng-deep .dialog-wrapper__footer__button-wrapper:nth-child(n+2){margin-left:12px}\n"]
|
|
3350
3331
|
},] }
|
|
3351
3332
|
];
|
|
3352
3333
|
DialogWrapperComponent.ctorParameters = () => [
|
|
@@ -3518,6 +3499,67 @@ DialogService.ctorParameters = () => [
|
|
|
3518
3499
|
{ type: MatDialog }
|
|
3519
3500
|
];
|
|
3520
3501
|
|
|
3502
|
+
class DrDetailsListComponent {
|
|
3503
|
+
constructor() {
|
|
3504
|
+
this.destroy$ = new Subject();
|
|
3505
|
+
this.list = [];
|
|
3506
|
+
this.title = 'Show details';
|
|
3507
|
+
this.collapse = true;
|
|
3508
|
+
}
|
|
3509
|
+
set items(val) {
|
|
3510
|
+
if (!val) {
|
|
3511
|
+
return;
|
|
3512
|
+
}
|
|
3513
|
+
if (Array.isArray(val)) {
|
|
3514
|
+
this.list = val;
|
|
3515
|
+
}
|
|
3516
|
+
else {
|
|
3517
|
+
val.pipe(takeUntil(this.destroy$)).subscribe((res) => {
|
|
3518
|
+
this.list = res;
|
|
3519
|
+
});
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
;
|
|
3523
|
+
get state() {
|
|
3524
|
+
if (this.collapse) {
|
|
3525
|
+
return 'collapsed';
|
|
3526
|
+
}
|
|
3527
|
+
return 'expanded';
|
|
3528
|
+
}
|
|
3529
|
+
ngOnDestroy() {
|
|
3530
|
+
this.destroy$.next();
|
|
3531
|
+
this.destroy$.complete();
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
DrDetailsListComponent.decorators = [
|
|
3535
|
+
{ type: Component, args: [{
|
|
3536
|
+
selector: 'dr-details-list',
|
|
3537
|
+
template: "<div class=\"details\">\n <div class=\"details__header\" (click)=\"collapse = !collapse\">\n <i [class.dr-icon-arrow-right]=\"collapse\"\n [class.dr-icon-arrow-down]=\"!collapse\">\n </i>\n {{ title }}\n </div>\n <ul class=\"details__list\" [@expansionIndicatorList]=\"{ value: state }\">\n <li *ngFor=\"let item of list\">{{ item }}</li>\n </ul>\n</div>\n",
|
|
3538
|
+
animations: [
|
|
3539
|
+
trigger('expansionIndicatorList', [
|
|
3540
|
+
state('collapsed', style({
|
|
3541
|
+
overflow: 'hidden',
|
|
3542
|
+
visibility: 'hidden',
|
|
3543
|
+
height: 0,
|
|
3544
|
+
})),
|
|
3545
|
+
state('expanded', style({
|
|
3546
|
+
overflow: 'hidden',
|
|
3547
|
+
visibility: 'visible',
|
|
3548
|
+
})),
|
|
3549
|
+
transition('collapsed => expanded', animate('100ms ease-in')),
|
|
3550
|
+
transition('expanded => collapsed', animate('100ms ease-out')),
|
|
3551
|
+
]),
|
|
3552
|
+
],
|
|
3553
|
+
styles: [":host{font-family:Poppins,sans-serif;font-size:14px;line-height:22px;color:#6d6e6f;font-weight:400}:host .details{display:flex;flex-direction:column}:host .details__header{display:flex;align-items:center;cursor:pointer}:host .details__header i{margin-right:4px}:host .details__list{display:flex;flex-direction:column;padding-left:28px;margin:8px 0}:host .details__list li{list-style-type:disc}\n"]
|
|
3554
|
+
},] }
|
|
3555
|
+
];
|
|
3556
|
+
DrDetailsListComponent.ctorParameters = () => [];
|
|
3557
|
+
DrDetailsListComponent.propDecorators = {
|
|
3558
|
+
title: [{ type: Input }],
|
|
3559
|
+
items: [{ type: Input }],
|
|
3560
|
+
collapse: [{ type: Input }]
|
|
3561
|
+
};
|
|
3562
|
+
|
|
3521
3563
|
var TooltipPosition;
|
|
3522
3564
|
(function (TooltipPosition) {
|
|
3523
3565
|
TooltipPosition["TOP"] = "top";
|
|
@@ -3534,14 +3576,6 @@ var TooltipPosition;
|
|
|
3534
3576
|
TooltipPosition["LEFT_BOTTOM"] = "left-bottom";
|
|
3535
3577
|
})(TooltipPosition || (TooltipPosition = {}));
|
|
3536
3578
|
|
|
3537
|
-
var Scenario;
|
|
3538
|
-
(function (Scenario) {
|
|
3539
|
-
Scenario["ACTUALS"] = "Actuals";
|
|
3540
|
-
Scenario["FORECAST"] = "Forecast";
|
|
3541
|
-
Scenario["BUDGET"] = "Budget";
|
|
3542
|
-
Scenario["NONE"] = "None";
|
|
3543
|
-
})(Scenario || (Scenario = {}));
|
|
3544
|
-
|
|
3545
3579
|
class DrModelDebounceChangeDirective {
|
|
3546
3580
|
constructor(ngModel) {
|
|
3547
3581
|
this.ngModel = ngModel;
|
|
@@ -3604,232 +3638,6 @@ class ChatMessage {
|
|
|
3604
3638
|
}
|
|
3605
3639
|
}
|
|
3606
3640
|
|
|
3607
|
-
const allDateTags = {
|
|
3608
|
-
[TagsConfigSubType.YEAR]: {
|
|
3609
|
-
name: 'Date',
|
|
3610
|
-
toggle: false,
|
|
3611
|
-
},
|
|
3612
|
-
[TagsConfigSubType.QUARTER]: {
|
|
3613
|
-
name: 'Date',
|
|
3614
|
-
toggle: false,
|
|
3615
|
-
},
|
|
3616
|
-
[TagsConfigSubType.MONTH]: {
|
|
3617
|
-
name: 'Date',
|
|
3618
|
-
toggle: false,
|
|
3619
|
-
},
|
|
3620
|
-
[TagsConfigSubType.DAY]: {
|
|
3621
|
-
name: 'Date',
|
|
3622
|
-
toggle: false,
|
|
3623
|
-
},
|
|
3624
|
-
[TagsConfigSubType.WEEK]: {
|
|
3625
|
-
name: 'Date',
|
|
3626
|
-
toggle: false,
|
|
3627
|
-
}
|
|
3628
|
-
};
|
|
3629
|
-
function getScenarioTagDataConfig(isMultipleDimension) {
|
|
3630
|
-
return {
|
|
3631
|
-
[Scenario.ACTUALS]: Object.assign(Object.assign({}, allDateTags), { [TagsConfigSubType.MONTH]: {
|
|
3632
|
-
name: 'Date',
|
|
3633
|
-
toggle: true,
|
|
3634
|
-
}, [TagsConfigSubType.FILE_STATUS]: {
|
|
3635
|
-
toggle: false,
|
|
3636
|
-
} }),
|
|
3637
|
-
[Scenario.BUDGET]: {
|
|
3638
|
-
[TagsConfigSubType.BUDGET_CYCLE]: {
|
|
3639
|
-
toggle: true,
|
|
3640
|
-
acceptableDateTags: [TagsConfigSubType.YEAR],
|
|
3641
|
-
hidden: !isMultipleDimension,
|
|
3642
|
-
},
|
|
3643
|
-
[TagsConfigSubType.PLAN]: {
|
|
3644
|
-
toggle: false,
|
|
3645
|
-
turnOffDateTags: true,
|
|
3646
|
-
hidden: isMultipleDimension,
|
|
3647
|
-
},
|
|
3648
|
-
[TagsConfigSubType.YEAR]: {
|
|
3649
|
-
name: 'Date',
|
|
3650
|
-
toggle: true,
|
|
3651
|
-
},
|
|
3652
|
-
[TagsConfigSubType.QUARTER]: {
|
|
3653
|
-
name: 'Date',
|
|
3654
|
-
toggle: false,
|
|
3655
|
-
},
|
|
3656
|
-
[TagsConfigSubType.FILE_STATUS]: {
|
|
3657
|
-
toggle: false,
|
|
3658
|
-
},
|
|
3659
|
-
},
|
|
3660
|
-
[Scenario.FORECAST]: {
|
|
3661
|
-
[TagsConfigSubType.FORECAST_NEW]: {
|
|
3662
|
-
toggle: true,
|
|
3663
|
-
name: 'Date',
|
|
3664
|
-
},
|
|
3665
|
-
[TagsConfigSubType.FILE_STATUS]: {
|
|
3666
|
-
toggle: false,
|
|
3667
|
-
},
|
|
3668
|
-
},
|
|
3669
|
-
[Scenario.NONE]: Object.assign(Object.assign({}, allDateTags), { [TagsConfigSubType.MONTH]: {
|
|
3670
|
-
name: 'Date',
|
|
3671
|
-
toggle: true,
|
|
3672
|
-
}, [TagsConfigSubType.FILE_STATUS]: {
|
|
3673
|
-
toggle: true,
|
|
3674
|
-
} }),
|
|
3675
|
-
};
|
|
3676
|
-
}
|
|
3677
|
-
|
|
3678
|
-
class ScenarioService {
|
|
3679
|
-
constructor() {
|
|
3680
|
-
this.DEFAULT_FORECAST_DATE_TAG = 'Month';
|
|
3681
|
-
}
|
|
3682
|
-
get scenarios() {
|
|
3683
|
-
return orderBy(Object.values(Scenario), (scenario) => scenario === Scenario.NONE ? 1 : 0);
|
|
3684
|
-
}
|
|
3685
|
-
get areExistingTagsConfig() {
|
|
3686
|
-
return !!this.currentTagsConfig;
|
|
3687
|
-
}
|
|
3688
|
-
initScenarioTags(scenario, wholeTagsConfig, currentTagsConfig, isMultipleDimension = true) {
|
|
3689
|
-
if (!(wholeTagsConfig === null || wholeTagsConfig === void 0 ? void 0 : wholeTagsConfig.length) || !scenario)
|
|
3690
|
-
return;
|
|
3691
|
-
this.wholeTagsConfig = wholeTagsConfig;
|
|
3692
|
-
this.currentTagsConfig = currentTagsConfig;
|
|
3693
|
-
this.isMultipleDimension = isMultipleDimension;
|
|
3694
|
-
}
|
|
3695
|
-
getTagsConfigByScenarioTags(scenarioTags, tagsConfig) {
|
|
3696
|
-
const scenarioTagsConfig = filter$1(tagsConfig, (tagConfig) => some(scenarioTags, (scenarioTag) => scenarioTag.toggle && scenarioTag.selectedTagSubType === tagConfig.options.sub_type));
|
|
3697
|
-
return this.sortScenarioTags(scenarioTagsConfig);
|
|
3698
|
-
}
|
|
3699
|
-
getScenarioTagsByScenario(scenario) {
|
|
3700
|
-
const scenarioTagsConfig = this.getScenarioTagsConfig(scenario, this.wholeTagsConfig);
|
|
3701
|
-
const scenarioTagsUi = [];
|
|
3702
|
-
forEach(scenarioTagsConfig, (scenarioTag) => {
|
|
3703
|
-
const isDateTag = scenarioTag.type === TagTypes.DATE;
|
|
3704
|
-
const dateTag = isDateTag && find(scenarioTagsUi, { type: TagTypes.DATE });
|
|
3705
|
-
const tag = dateTag || this.prepareScenarioTag(scenarioTagsConfig, scenarioTag, scenario, isDateTag);
|
|
3706
|
-
if (isDateTag) {
|
|
3707
|
-
this.updateScenarioDateTag(tag, scenarioTag);
|
|
3708
|
-
}
|
|
3709
|
-
if (dateTag)
|
|
3710
|
-
return;
|
|
3711
|
-
scenarioTagsUi.push(tag);
|
|
3712
|
-
});
|
|
3713
|
-
if (this.areExistingTagsConfig) {
|
|
3714
|
-
this.initExistingTagsConfig(scenario, scenarioTagsUi);
|
|
3715
|
-
}
|
|
3716
|
-
const isTagNotSupportingDates = some(scenarioTagsUi, { turnOffDateTags: true, toggle: true });
|
|
3717
|
-
if (isTagNotSupportingDates) {
|
|
3718
|
-
this.turnOffDateTag(scenarioTagsUi);
|
|
3719
|
-
}
|
|
3720
|
-
const tagWithSpecificDateTags = find(scenarioTagsUi, (tag) => { var _a; return tag.toggle && !!((_a = tag.acceptableDateTags) === null || _a === void 0 ? void 0 : _a.length); });
|
|
3721
|
-
if (tagWithSpecificDateTags) {
|
|
3722
|
-
this.hideNotAvailableTags(tagWithSpecificDateTags, scenarioTagsUi);
|
|
3723
|
-
}
|
|
3724
|
-
return this.sortScenarioTags(scenarioTagsUi);
|
|
3725
|
-
}
|
|
3726
|
-
sortScenarioTags(scenarioTagsUi) {
|
|
3727
|
-
return orderBy(scenarioTagsUi, [
|
|
3728
|
-
(tag) => (tag.type === TagTypes.DATE ? 0 : 1),
|
|
3729
|
-
(tag) => (tag.name === 'File Status')
|
|
3730
|
-
]);
|
|
3731
|
-
}
|
|
3732
|
-
initExistingTagsConfig(scenario, scenarioTagsUi) {
|
|
3733
|
-
forEach(this.currentTagsConfig, (tagConfig) => {
|
|
3734
|
-
var _a, _b;
|
|
3735
|
-
const tagSubType = (_a = tagConfig === null || tagConfig === void 0 ? void 0 : tagConfig.options) === null || _a === void 0 ? void 0 : _a.sub_type;
|
|
3736
|
-
const scenarioTagDataConfig = getScenarioTagDataConfig(this.isMultipleDimension);
|
|
3737
|
-
if (!((_b = scenarioTagDataConfig === null || scenarioTagDataConfig === void 0 ? void 0 : scenarioTagDataConfig[scenario]) === null || _b === void 0 ? void 0 : _b[tagSubType]))
|
|
3738
|
-
return;
|
|
3739
|
-
const scenarioTagUi = tagConfig.type === TagTypes.DATE
|
|
3740
|
-
? find(scenarioTagsUi, { type: tagConfig.type })
|
|
3741
|
-
: find(scenarioTagsUi, { selectedTagSubType: tagSubType });
|
|
3742
|
-
scenarioTagUi.toggle = true;
|
|
3743
|
-
scenarioTagUi.selectedTagSubType = tagSubType;
|
|
3744
|
-
});
|
|
3745
|
-
}
|
|
3746
|
-
prepareScenarioTag(scenarioTagsConfig, scenarioTag, scenario, isDateTag) {
|
|
3747
|
-
const toggleStatus = isDateTag
|
|
3748
|
-
? some(scenarioTagsConfig, (tag) => tag.type === TagTypes.DATE && tag.scenarioData.toggle)
|
|
3749
|
-
: scenarioTag.scenarioData.toggle;
|
|
3750
|
-
const selectedTagSubType = isDateTag
|
|
3751
|
-
? this.getScenarioSelectedDateTag(scenario, scenarioTagsConfig)
|
|
3752
|
-
: scenarioTag.options.sub_type;
|
|
3753
|
-
const tag = {
|
|
3754
|
-
toggle: this.areExistingTagsConfig ? false : toggleStatus,
|
|
3755
|
-
name: scenarioTag.scenarioData.name || scenarioTag.name,
|
|
3756
|
-
description: scenarioTag.scenarioData.description || scenarioTag.description,
|
|
3757
|
-
type: scenarioTag.type,
|
|
3758
|
-
selectedTagSubType,
|
|
3759
|
-
};
|
|
3760
|
-
if (scenarioTag.scenarioData.turnOffDateTags) {
|
|
3761
|
-
tag.turnOffDateTags = scenarioTag.scenarioData.turnOffDateTags;
|
|
3762
|
-
}
|
|
3763
|
-
if (scenarioTag.scenarioData.acceptableDateTags) {
|
|
3764
|
-
tag.acceptableDateTags = scenarioTag.scenarioData.acceptableDateTags;
|
|
3765
|
-
}
|
|
3766
|
-
return tag;
|
|
3767
|
-
}
|
|
3768
|
-
updateScenarioDateTag(dateTag, scenarioTag) {
|
|
3769
|
-
if (!dateTag.subTags) {
|
|
3770
|
-
dateTag.subTags = [];
|
|
3771
|
-
}
|
|
3772
|
-
const tagSubType = scenarioTag.options.sub_type;
|
|
3773
|
-
dateTag.subTags.push({
|
|
3774
|
-
subType: tagSubType,
|
|
3775
|
-
name: tagSubType === TagsConfigSubType.FORECAST_NEW ? this.DEFAULT_FORECAST_DATE_TAG : scenarioTag.name,
|
|
3776
|
-
});
|
|
3777
|
-
}
|
|
3778
|
-
turnOffDateTag(scenarioTags) {
|
|
3779
|
-
const dateTag = find(scenarioTags, { type: TagTypes.DATE });
|
|
3780
|
-
if (!dateTag)
|
|
3781
|
-
return;
|
|
3782
|
-
dateTag.toggle = false;
|
|
3783
|
-
}
|
|
3784
|
-
hideNotAvailableTags(tagWithSpecificDateTags, scenarioTags) {
|
|
3785
|
-
var _a;
|
|
3786
|
-
const subTags = (_a = find(scenarioTags, { type: TagTypes.DATE })) === null || _a === void 0 ? void 0 : _a.subTags;
|
|
3787
|
-
if (!subTags.length)
|
|
3788
|
-
return;
|
|
3789
|
-
forEach(scenarioTags, (tag) => {
|
|
3790
|
-
var _a;
|
|
3791
|
-
if (!((_a = tag.acceptableDateTags) === null || _a === void 0 ? void 0 : _a.length))
|
|
3792
|
-
return;
|
|
3793
|
-
if (tag !== tagWithSpecificDateTags) {
|
|
3794
|
-
tag.toggle = false;
|
|
3795
|
-
}
|
|
3796
|
-
});
|
|
3797
|
-
forEach(subTags, (subTag) => {
|
|
3798
|
-
subTag.hidden = !tagWithSpecificDateTags.acceptableDateTags.includes(subTag.subType);
|
|
3799
|
-
});
|
|
3800
|
-
}
|
|
3801
|
-
getScenarioSelectedDateTag(scenario, dateTags) {
|
|
3802
|
-
var _a, _b;
|
|
3803
|
-
const monthSubType = (_b = (_a = find(dateTags, (tag) => tag.options.sub_type === TagsConfigSubType.MONTH)) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.sub_type;
|
|
3804
|
-
const scenarioSelectedDateTag = {
|
|
3805
|
-
[Scenario.ACTUALS]: () => monthSubType,
|
|
3806
|
-
[Scenario.BUDGET]: () => { var _a, _b; return (_b = (_a = find(dateTags, (tag) => tag.options.sub_type === TagsConfigSubType.YEAR)) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.sub_type; },
|
|
3807
|
-
[Scenario.FORECAST]: () => { var _a, _b; return (_b = (_a = find(dateTags, (tag) => tag.options.sub_type === TagsConfigSubType.FORECAST_NEW)) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.sub_type; },
|
|
3808
|
-
[Scenario.NONE]: () => monthSubType,
|
|
3809
|
-
};
|
|
3810
|
-
if (!scenarioSelectedDateTag[scenario])
|
|
3811
|
-
return;
|
|
3812
|
-
return scenarioSelectedDateTag[scenario]();
|
|
3813
|
-
}
|
|
3814
|
-
getScenarioTagsConfig(scenario, tagsConfig) {
|
|
3815
|
-
return reduce(tagsConfig, (acc, tagConfig) => {
|
|
3816
|
-
var _a, _b;
|
|
3817
|
-
const tagSubType = (_a = tagConfig === null || tagConfig === void 0 ? void 0 : tagConfig.options) === null || _a === void 0 ? void 0 : _a.sub_type;
|
|
3818
|
-
const scenarioTagDataConfig = getScenarioTagDataConfig(this.isMultipleDimension);
|
|
3819
|
-
const scenarioTagConfig = (_b = scenarioTagDataConfig === null || scenarioTagDataConfig === void 0 ? void 0 : scenarioTagDataConfig[scenario]) === null || _b === void 0 ? void 0 : _b[tagSubType];
|
|
3820
|
-
if (!scenarioTagConfig || scenarioTagConfig.hidden)
|
|
3821
|
-
return acc;
|
|
3822
|
-
const clonedTagConfig = cloneDeep(tagConfig);
|
|
3823
|
-
const scenarioTag = Object.assign(Object.assign({}, clonedTagConfig), { scenarioData: scenarioTagConfig });
|
|
3824
|
-
acc.push(scenarioTag);
|
|
3825
|
-
return acc;
|
|
3826
|
-
}, []);
|
|
3827
|
-
}
|
|
3828
|
-
}
|
|
3829
|
-
ScenarioService.decorators = [
|
|
3830
|
-
{ type: Injectable }
|
|
3831
|
-
];
|
|
3832
|
-
|
|
3833
3641
|
class DrSharedUtils {
|
|
3834
3642
|
/**
|
|
3835
3643
|
* Get timeframe (day, year, month, quarter) based on passed format
|
|
@@ -3875,7 +3683,6 @@ class DrSharedUtils {
|
|
|
3875
3683
|
}
|
|
3876
3684
|
}
|
|
3877
3685
|
|
|
3878
|
-
// @ts-ignore
|
|
3879
3686
|
const moment$2 = require('moment');
|
|
3880
3687
|
class DrDatePickerService {
|
|
3881
3688
|
constructor() {
|
|
@@ -4060,9 +3867,8 @@ class DrDatePickerService {
|
|
|
4060
3867
|
}
|
|
4061
3868
|
}
|
|
4062
3869
|
}
|
|
4063
|
-
DrDatePickerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DrDatePickerService_Factory() { return new DrDatePickerService(); }, token: DrDatePickerService, providedIn: "root" });
|
|
4064
3870
|
DrDatePickerService.decorators = [
|
|
4065
|
-
{ type: Injectable
|
|
3871
|
+
{ type: Injectable }
|
|
4066
3872
|
];
|
|
4067
3873
|
|
|
4068
3874
|
const moment$1 = require('moment');
|
|
@@ -4584,13 +4390,13 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4584
4390
|
DrDatePickerWithTimeframeComponent.decorators = [
|
|
4585
4391
|
{ type: Component, args: [{
|
|
4586
4392
|
selector: 'dr-date-picker-with-timeframe',
|
|
4587
|
-
template: "<dr-button [disabled]=\"isPrevDateDisabled\" theme=\"icon\" icon=\"dr-icon-arrow-left\" (click)=\"pagingClicked(false)\"></dr-button>\n<div class=\"dr-datepicker-input-container\">\n <i *ngIf=\"isDashboardDatepicker\" class=\"dr-icon-date\"></i>\n
|
|
4393
|
+
template: "<dr-button [disabled]=\"isPrevDateDisabled\" *ngIf=\"!disabled\" theme=\"icon\" icon=\"dr-icon-arrow-left\" (click)=\"pagingClicked(false)\"></dr-button>\n<div class=\"dr-datepicker-input-container\">\n <i *ngIf=\"isDashboardDatepicker\" class=\"dr-icon-date\"></i>\n\n <div class=\"dr-datepicker-input-container__formatted-value-display\" (click)=\"datepickerInput.click()\">\n <span *ngIf=\"presetTagSelected && datePickerService.isUsingDateTagPresets\"> {{ presetTagSelected }} </span>\n <span>{{ presetTagSelected && datePickerService.isUsingDateTagPresets ? '(' + displayedFormattedValue + ')' : displayedFormattedValue }}</span>\n </div>\n <input\n #datepickerInput\n [(ngModel)]=\"value\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\"\n />\n</div>\n<dr-button [disabled]=\"isNextDateDisabled\" *ngIf=\"!disabled\" theme=\"icon\" icon=\"dr-icon-arrow-right\" (click)=\"pagingClicked(true)\"></dr-button>\n<mat-datepicker #datePicker\n class=\"dr-timeframe-datepicker\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH)\"\n [panelClass]=\"datePickerService.isUsingDateTagPresets ? 'date-picker-preset-tag' : 'dr-timeframe-datepicker'\"\n >\n</mat-datepicker>\n",
|
|
4588
4394
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4589
4395
|
providers: [
|
|
4590
4396
|
{ provide: NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },
|
|
4591
4397
|
{ provide: DrDatePickerService }
|
|
4592
4398
|
],
|
|
4593
|
-
styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:\"Poppins\",sans-serif;background-color:#fff;border:1px solid #c3c4ce;border-radius:6px;color:#85889c;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#e5e6ea}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host:after,:host:before{position:absolute;display:flex;border-color:#999999 transparent transparent;color:#999}:host:after{content:\"\";height:0;width:0;border-style:solid;border-width:5px 5px 2.5px;right:11px;top:13px}:host i{position:absolute;color:#999;left:8px;top:3px}:host input{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}:host input.when-quarter{position:absolute;visibility:hidden}:host input:disabled{border:none;color:#85889c;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}::ng-deep .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600}::ng-deep .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-button-focus-overlay{background:#f3f7ff}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f3f7ff;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#f3f7ff;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#19181a}::ng-deep .mat-calendar-table-header-divider{display:none}::ng-deep .mat-calendar-body-label{color:#fff;padding:0}:host{border:none;display:flex;align-items:center}:host.dr-date-picker-on-dashboard{width:-moz-fit-content;width:fit-content;justify-content:space-between}:host.dr-date-picker-on-dashboard mat-datepicker{position:absolute}:host.dr-date-picker-on-dashboard:after{visibility:hidden}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:-10px}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container__formatted-value-display{font-weight:600;width:auto;margin-left:5px}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container .dr-icon-date{display:block;position:relative;top:0;margin-right:8px;color:#4e566c}:host .dr-datepicker-input-container input{visibility:hidden;position:absolute;width:100%}:host .dr-datepicker-input-container__formatted-value-display{width:90px;height:22px;padding-left:0;text-align:center;line-height:22px;color:#0c142b;-webkit-text-decoration-line:underline;text-decoration-line:underline}:host .dr-datepicker-input-container__formatted-value-display:hover{background-color:#f2f2fb;border-radius:5px;cursor:pointer;-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#4646ce}::ng-deep .date-picker-preset-tag{width:386px!important}::ng-deep .date-picker-preset-tag .mat-calendar-content{padding-left:32px!important;padding-right:32px!important}\n"]
|
|
4399
|
+
styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:\"Poppins\",sans-serif;background-color:#fff;border:1px solid #c3c4ce;border-radius:6px;color:#85889c;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#e5e6ea}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host:after,:host:before{position:absolute;display:flex;border-color:#999999 transparent transparent;color:#999}:host:after{content:\"\";height:0;width:0;border-style:solid;border-width:5px 5px 2.5px;right:11px;top:13px}:host i{position:absolute;color:#999;left:8px;top:3px}:host input{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}:host input.when-quarter{position:absolute;visibility:hidden}:host input:disabled{border:none;color:#85889c;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}::ng-deep .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600}::ng-deep .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-button-focus-overlay{background:#f3f7ff}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f3f7ff;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#f3f7ff;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#19181a}::ng-deep .mat-calendar-table-header-divider{display:none}::ng-deep .mat-calendar-body-label{color:#fff;padding:0}:host{border:none;display:flex;align-items:center}:host.disabled{background:transparent;color:inherit}:host.disabled.dr-date-picker-on-dashboard .dr-datepicker-input-container__formatted-value-display{text-decoration:none;color:#6d6e6f;font-weight:normal}:host.dr-date-picker-on-dashboard{width:-moz-fit-content;width:fit-content;justify-content:space-between}:host.dr-date-picker-on-dashboard mat-datepicker{position:absolute}:host.dr-date-picker-on-dashboard:after{visibility:hidden}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:-10px}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container__formatted-value-display{font-weight:600;width:auto;margin-left:5px}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container .dr-icon-date{display:block;position:relative;top:0;margin-right:8px;color:#4e566c}:host .dr-datepicker-input-container input{visibility:hidden;position:absolute;width:100%}:host .dr-datepicker-input-container__formatted-value-display{width:90px;height:22px;padding-left:0;text-align:center;line-height:22px;color:#0c142b;-webkit-text-decoration-line:underline;text-decoration-line:underline}:host .dr-datepicker-input-container__formatted-value-display:hover{background-color:#f2f2fb;border-radius:5px;cursor:pointer;-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#4646ce}::ng-deep .date-picker-preset-tag{width:386px!important}::ng-deep .date-picker-preset-tag .mat-calendar-content{padding-left:32px!important;padding-right:32px!important}\n"]
|
|
4594
4400
|
},] }
|
|
4595
4401
|
];
|
|
4596
4402
|
DrDatePickerWithTimeframeComponent.ctorParameters = () => [
|
|
@@ -4886,8 +4692,7 @@ DrInputsModule.decorators = [
|
|
|
4886
4692
|
MatDatepickerModule,
|
|
4887
4693
|
MatTooltipModule,
|
|
4888
4694
|
DrTooltipModule
|
|
4889
|
-
]
|
|
4890
|
-
entryComponents: [DrDatePickerCustomHeaderComponent]
|
|
4695
|
+
]
|
|
4891
4696
|
},] }
|
|
4892
4697
|
];
|
|
4893
4698
|
|
|
@@ -5284,6 +5089,19 @@ DrStepperModule.decorators = [
|
|
|
5284
5089
|
},] }
|
|
5285
5090
|
];
|
|
5286
5091
|
|
|
5092
|
+
class DrDetailsListModule {
|
|
5093
|
+
}
|
|
5094
|
+
DrDetailsListModule.decorators = [
|
|
5095
|
+
{ type: NgModule, args: [{
|
|
5096
|
+
imports: [
|
|
5097
|
+
CommonModule,
|
|
5098
|
+
],
|
|
5099
|
+
exports: [DrDetailsListComponent],
|
|
5100
|
+
providers: [],
|
|
5101
|
+
declarations: [DrDetailsListComponent],
|
|
5102
|
+
},] }
|
|
5103
|
+
];
|
|
5104
|
+
|
|
5287
5105
|
const ɵ0$1 = {}, ɵ1 = {};
|
|
5288
5106
|
class DrDialogModule {
|
|
5289
5107
|
}
|
|
@@ -5295,7 +5113,8 @@ DrDialogModule.decorators = [
|
|
|
5295
5113
|
MatDialogModule,
|
|
5296
5114
|
DrInputsModule,
|
|
5297
5115
|
ReactiveFormsModule,
|
|
5298
|
-
DrTooltipModule
|
|
5116
|
+
DrTooltipModule,
|
|
5117
|
+
DrDetailsListModule
|
|
5299
5118
|
],
|
|
5300
5119
|
exports: [DialogWrapperComponent, DialogModalWrapperComponent],
|
|
5301
5120
|
providers: [
|
|
@@ -5830,184 +5649,11 @@ DrChatModule.decorators = [
|
|
|
5830
5649
|
},] }
|
|
5831
5650
|
];
|
|
5832
5651
|
|
|
5833
|
-
class DrScenarioConfigurationComponent {
|
|
5834
|
-
constructor(scenarioService) {
|
|
5835
|
-
this.scenarioService = scenarioService;
|
|
5836
|
-
this.toggleButtonTheme = ToggleButtonTheme;
|
|
5837
|
-
this._scenarioTags = [];
|
|
5838
|
-
this.wholeTagsConfig = [];
|
|
5839
|
-
this.selectedScenario = Scenario.ACTUALS;
|
|
5840
|
-
this.scenarioDataChanged = new EventEmitter();
|
|
5841
|
-
}
|
|
5842
|
-
get scenarioTags() {
|
|
5843
|
-
return this._scenarioTags;
|
|
5844
|
-
}
|
|
5845
|
-
set scenarioTags(tags) {
|
|
5846
|
-
this._scenarioTags = tags;
|
|
5847
|
-
this.tagNotSupportingDates = find(tags, { turnOffDateTags: true });
|
|
5848
|
-
}
|
|
5849
|
-
ngOnInit() {
|
|
5850
|
-
this.scenarios = this.scenarioService.scenarios;
|
|
5851
|
-
this.scenarioService.initScenarioTags(this.selectedScenario, this.wholeTagsConfig, this.currentTagsConfig);
|
|
5852
|
-
this.scenarioTags = this.scenarioService.getScenarioTagsByScenario(this.selectedScenario);
|
|
5853
|
-
}
|
|
5854
|
-
onScenarioChange(scenario) {
|
|
5855
|
-
this.scenarioTags = this.scenarioService.getScenarioTagsByScenario(scenario);
|
|
5856
|
-
this.onScenarioDataChange();
|
|
5857
|
-
}
|
|
5858
|
-
onScenarioTagToggle(tag) {
|
|
5859
|
-
this.tagNotSupportingDatesHandler(tag);
|
|
5860
|
-
this.tagAcceptableDateHandler(tag);
|
|
5861
|
-
this.onScenarioDataChange();
|
|
5862
|
-
}
|
|
5863
|
-
onScenarioDataChange() {
|
|
5864
|
-
this.scenarioDataChanged.emit({
|
|
5865
|
-
scenario: this.selectedScenario,
|
|
5866
|
-
tagsConfig: this.scenarioService.getTagsConfigByScenarioTags(this.scenarioTags, this.wholeTagsConfig),
|
|
5867
|
-
});
|
|
5868
|
-
}
|
|
5869
|
-
tagNotSupportingDatesHandler(tag) {
|
|
5870
|
-
if (!this.tagNotSupportingDates || !tag.toggle)
|
|
5871
|
-
return;
|
|
5872
|
-
if (tag.type === TagTypes.DATE) {
|
|
5873
|
-
this.tagNotSupportingDates.toggle = false;
|
|
5874
|
-
}
|
|
5875
|
-
if (tag === this.tagNotSupportingDates) {
|
|
5876
|
-
const dateTag = find(this.scenarioTags, { type: TagTypes.DATE });
|
|
5877
|
-
if (dateTag) {
|
|
5878
|
-
dateTag.toggle = false;
|
|
5879
|
-
}
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5882
|
-
tagAcceptableDateHandler(tag) {
|
|
5883
|
-
var _a;
|
|
5884
|
-
if (!((_a = tag.acceptableDateTags) === null || _a === void 0 ? void 0 : _a.length))
|
|
5885
|
-
return;
|
|
5886
|
-
const dateTag = find(this.scenarioTags, { type: TagTypes.DATE });
|
|
5887
|
-
if (!dateTag)
|
|
5888
|
-
return;
|
|
5889
|
-
dateTag.subTags = map(dateTag.subTags, (subTag) => {
|
|
5890
|
-
subTag.hidden = tag.toggle && !includes(tag.acceptableDateTags, subTag.subType);
|
|
5891
|
-
return subTag;
|
|
5892
|
-
});
|
|
5893
|
-
dateTag.selectedTagSubType = tag.acceptableDateTags[0];
|
|
5894
|
-
}
|
|
5895
|
-
}
|
|
5896
|
-
DrScenarioConfigurationComponent.decorators = [
|
|
5897
|
-
{ type: Component, args: [{
|
|
5898
|
-
selector: 'dr-scenario-configuration',
|
|
5899
|
-
template: "<div class=\"scenario\">\n <div class=\"scenario__list\">\n <p class=\"scenario__title scenario__title-list\">Scenario</p>\n <dr-select [(ngModel)]=\"selectedScenario\"\n placeholder=\"select\"\n [items]=\"scenarios\"\n (ngModelChange)=\"onScenarioChange($event)\"></dr-select>\n </div>\n <div class=\"scenario__tags\">\n <p class=\"scenario__title--extra scenario__tags__title\">Tags</p>\n <div class=\"scenario__tag\" *ngFor=\"let tag of scenarioTags\">\n <div class=\"scenario__tag__header\">\n <p class=\"scenario__title\">{{ tag.name }}</p>\n <dr-toggle [(ngModel)]=\"tag.toggle\"\n (ngModelChange)=\"onScenarioTagToggle(tag)\"></dr-toggle>\n </div>\n <div class=\"scenario__tag__description\">\n <p class=\"scenario__text\">{{ tag.description }}</p>\n </div>\n <div *ngIf=\"tag.toggle\" class=\"scenario__tag__body\">\n <div *ngIf=\"tag.subTags?.length\" class=\"scenario__sub-tag\">\n <dr-toggle-button [(ngModel)]=\"tag.selectedTagSubType\"\n bindHidden=\"hidden\"\n bindLabel=\"name\"\n bindValue=\"subType\"\n [items]=\"tag.subTags\"\n [theme]=\"toggleButtonTheme.DOTTED\"\n (ngModelChange)=\"onScenarioDataChange()\"></dr-toggle-button>\n </div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
5900
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5901
|
-
styles: [".scenario__text,.scenario__title,.scenario__title--extra{padding:0;margin:0;color:#0c142b;font-weight:400;font-size:14px;line-height:22px}.scenario__title{font-weight:600}.scenario__title--extra{font-weight:700}.scenario__tags{margin-top:24px}.scenario__tags__title{margin-bottom:16px}.scenario__title-list{margin-bottom:4px}.scenario__tag{margin-bottom:24px;padding-top:16px;border-top:1px solid #dfe0e3}.scenario__tag__description{margin-top:5px}.scenario__tag__header{display:flex;justify-content:space-between}.scenario__sub-tag{margin-top:8px}:host::ng-deep .toggle-container__item{padding:2px 8px!important}\n"]
|
|
5902
|
-
},] }
|
|
5903
|
-
];
|
|
5904
|
-
DrScenarioConfigurationComponent.ctorParameters = () => [
|
|
5905
|
-
{ type: ScenarioService }
|
|
5906
|
-
];
|
|
5907
|
-
DrScenarioConfigurationComponent.propDecorators = {
|
|
5908
|
-
currentTagsConfig: [{ type: Input }],
|
|
5909
|
-
wholeTagsConfig: [{ type: Input }],
|
|
5910
|
-
selectedScenario: [{ type: Input }],
|
|
5911
|
-
scenarioDataChanged: [{ type: Output }]
|
|
5912
|
-
};
|
|
5913
|
-
|
|
5914
|
-
class DrScenarioTagConfigurationComponent {
|
|
5915
|
-
constructor() {
|
|
5916
|
-
this.connectedTags = {};
|
|
5917
|
-
this.dynamicTagValues = {};
|
|
5918
|
-
this.lockedDates = [];
|
|
5919
|
-
this.scenarioTagDataChanged = new EventEmitter();
|
|
5920
|
-
this.currentTagsMap = {};
|
|
5921
|
-
this._currentTags = [];
|
|
5922
|
-
this.dynamicTagsToSave = [];
|
|
5923
|
-
this.tagsToSave = [];
|
|
5924
|
-
}
|
|
5925
|
-
set currentTags(tags) {
|
|
5926
|
-
this._currentTags = tags;
|
|
5927
|
-
this.currentTagsMap = reduce(tags, (acc, curr) => {
|
|
5928
|
-
var _a;
|
|
5929
|
-
const tagId = (_a = find(this.tagsConfig, { name: curr.name })) === null || _a === void 0 ? void 0 : _a.id;
|
|
5930
|
-
if (isNaN(tagId))
|
|
5931
|
-
return acc;
|
|
5932
|
-
acc[tagId] = curr;
|
|
5933
|
-
return acc;
|
|
5934
|
-
}, {});
|
|
5935
|
-
}
|
|
5936
|
-
get currentTags() {
|
|
5937
|
-
return this._currentTags;
|
|
5938
|
-
}
|
|
5939
|
-
ngOnChanges(simpleChanges) {
|
|
5940
|
-
this.currentTags = this.currentTags;
|
|
5941
|
-
}
|
|
5942
|
-
onTagChange($event) {
|
|
5943
|
-
const savedTag = find(this.tagsToSave, { id: $event.id });
|
|
5944
|
-
if (savedTag) {
|
|
5945
|
-
merge(savedTag, $event);
|
|
5946
|
-
}
|
|
5947
|
-
else {
|
|
5948
|
-
this.tagsToSave.push($event);
|
|
5949
|
-
}
|
|
5950
|
-
this.onScenarioTagDataChanged();
|
|
5951
|
-
}
|
|
5952
|
-
onDynamicTagsChange($event) {
|
|
5953
|
-
this.dynamicTagsToSave = $event;
|
|
5954
|
-
this.onScenarioTagDataChanged();
|
|
5955
|
-
}
|
|
5956
|
-
onScenarioTagDataChanged() {
|
|
5957
|
-
const tags = [...this.dynamicTagsToSave, ...this.tagsToSave];
|
|
5958
|
-
this.scenarioTagDataChanged.emit({
|
|
5959
|
-
scenario: this.scenario,
|
|
5960
|
-
tagsConfig: this.tagsConfig,
|
|
5961
|
-
tags,
|
|
5962
|
-
});
|
|
5963
|
-
}
|
|
5964
|
-
}
|
|
5965
|
-
DrScenarioTagConfigurationComponent.decorators = [
|
|
5966
|
-
{ type: Component, args: [{
|
|
5967
|
-
selector: 'dr-scenario-tag-configuration',
|
|
5968
|
-
template: "<div class=\"scenario-tag-configuration\"\n *ngFor=\"let tagConfig of tagsConfig\">\n <dr-tag [tagConfig]=\"tagConfig\"\n [selectedTag]=\"currentTagsMap[tagConfig.id]\"\n [lockedDate]=\"lockedDates\"\n [fiscalYearStartsFrom]=\"fiscalYearStartsFrom\"\n [fiscalYearBack]=\"fiscalYearBack\"\n [tagsConfig]=\"tagsConfig\"\n [dynamicTagValues]=\"dynamicTagValues\"\n [connectedTags]=\"connectedTags[tagConfig.id]\"\n [isDynamicTagAddEnabled]=\"isDynamicAddEnabled\"\n (tagChange)=\"onTagChange($event)\"\n (dynamicTagChange)=\"onDynamicTagsChange($event)\"></dr-tag>\n</div>\n",
|
|
5969
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5970
|
-
styles: [".scenario-tag-configuration{margin-bottom:24px}.scenario-tag-configuration:last-child{margin-bottom:0}:host::ng-deep .tag__label,:host::ng-deep .dynamic-tag__label{font-weight:600!important}\n"]
|
|
5971
|
-
},] }
|
|
5972
|
-
];
|
|
5973
|
-
DrScenarioTagConfigurationComponent.propDecorators = {
|
|
5974
|
-
tagsConfig: [{ type: Input }],
|
|
5975
|
-
currentTags: [{ type: Input }],
|
|
5976
|
-
scenario: [{ type: Input }],
|
|
5977
|
-
connectedTags: [{ type: Input }],
|
|
5978
|
-
dynamicTagValues: [{ type: Input }],
|
|
5979
|
-
lockedDates: [{ type: Input }],
|
|
5980
|
-
fiscalYearStartsFrom: [{ type: Input }],
|
|
5981
|
-
fiscalYearBack: [{ type: Input }],
|
|
5982
|
-
isDynamicAddEnabled: [{ type: Input }],
|
|
5983
|
-
scenarioTagDataChanged: [{ type: Output }]
|
|
5984
|
-
};
|
|
5985
|
-
|
|
5986
|
-
const COMPONENTS = [
|
|
5987
|
-
DrScenarioConfigurationComponent,
|
|
5988
|
-
DrScenarioTagConfigurationComponent,
|
|
5989
|
-
];
|
|
5990
|
-
class DrScenarioModule {
|
|
5991
|
-
}
|
|
5992
|
-
DrScenarioModule.decorators = [
|
|
5993
|
-
{ type: NgModule, args: [{
|
|
5994
|
-
declarations: [...COMPONENTS],
|
|
5995
|
-
providers: [ScenarioService],
|
|
5996
|
-
imports: [
|
|
5997
|
-
CommonModule,
|
|
5998
|
-
DrInputsModule,
|
|
5999
|
-
FormsModule,
|
|
6000
|
-
DrTagModule
|
|
6001
|
-
],
|
|
6002
|
-
exports: [...COMPONENTS],
|
|
6003
|
-
},] }
|
|
6004
|
-
];
|
|
6005
|
-
|
|
6006
5652
|
/* components */
|
|
6007
5653
|
|
|
6008
5654
|
/**
|
|
6009
5655
|
* Generated bundle index. Do not edit.
|
|
6010
5656
|
*/
|
|
6011
5657
|
|
|
6012
|
-
export { AnyTagComponent, CHAT_MESSAGE_TYPE, CalendarView, ChatMessage, ChatRole, CheckboxComponent, CustomDateFormat, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DialogService, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrButtonComponent, DrChatModule, DrDialogModule, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrErrorComponent, DrErrorModule, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService,
|
|
5658
|
+
export { AnyTagComponent, CHAT_MESSAGE_TYPE, CalendarView, ChatMessage, ChatRole, CheckboxComponent, CustomDateFormat, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DialogService, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrButtonComponent, DrChatModule, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrErrorComponent, DrErrorModule, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrSelectComponent, DrSharedUtils, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, IMAGE_TYPES, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, SpinnerSize, SpinnerType, TagTypes, TimeframeOption, TooltipComponent, TooltipPosition, WeekTagComponent, YearTagComponent, components$2 as ɵa, POPUP_ANIMATION as ɵb, DrDatePickerComponent as ɵc, DrDatePickerService as ɵd, DrDatePickerWithTimeframeComponent as ɵe, DrDatePickerFormatDirective as ɵf, DrDatePickerCustomHeaderComponent as ɵg, DrShowTimeframePipe as ɵh, DrSelectAddItemComponent as ɵi, TooltipInfoComponent as ɵj, TooltipInfoSimpleComponent as ɵk, TooltipNoBodyComponent as ɵl, TooltipProcessDefaultComponent as ɵm, DrDynamicTagModule as ɵn, DrDynamicTagComponent as ɵo, StepperComponent as ɵp, DialogWrapperComponent as ɵq, DialogModalWrapperComponent as ɵr, DrChatComponent as ɵs, DrChatCustomMessageService as ɵt, DrChatMessageComponent as ɵu, DrChatFormComponent as ɵv, DrChatSuggestionsComponent as ɵw, DrChatMessageTextComponent as ɵx, DrChatMessageFileComponent as ɵy, DrChatCustomMessageDirective as ɵz };
|
|
6013
5659
|
//# sourceMappingURL=datarailsshared-datarailsshared.js.map
|