@datarailsshared/datarailsshared 1.4.156-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 +139 -516
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.157.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +13 -14
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +14 -15
- 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/dr-tags/dr-tag.module.js +2 -2
- package/esm2015/lib/models/serverTags.js +1 -13
- package/esm2015/public-api.js +3 -7
- package/fesm2015/datarailsshared-datarailsshared.js +112 -466
- 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 -6
- package/datarailsshared-datarailsshared-1.4.156-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
|
@@ -612,8 +612,13 @@
|
|
|
612
612
|
configurable: true
|
|
613
613
|
});
|
|
614
614
|
MonthTagComponent.prototype.initDate = function () {
|
|
615
|
-
|
|
616
|
-
|
|
615
|
+
if (this.defaultValue) {
|
|
616
|
+
this.date = this.defaultValue;
|
|
617
|
+
this.dateObj.date = this.date;
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
this.dateObj.date = moment$7().unix();
|
|
621
|
+
}
|
|
617
622
|
};
|
|
618
623
|
MonthTagComponent.prototype.initName = function () {
|
|
619
624
|
if (!this.name) {
|
|
@@ -902,8 +907,13 @@
|
|
|
902
907
|
configurable: true
|
|
903
908
|
});
|
|
904
909
|
YearTagComponent.prototype.initDate = function () {
|
|
905
|
-
|
|
906
|
-
|
|
910
|
+
if (this.defaultValue) {
|
|
911
|
+
this.date = this.defaultValue;
|
|
912
|
+
this.dateObj.date = this.date;
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
this.dateObj.date = moment$4().unix();
|
|
916
|
+
}
|
|
907
917
|
};
|
|
908
918
|
YearTagComponent.prototype.initName = function () {
|
|
909
919
|
if (!this.name) {
|
|
@@ -960,52 +970,30 @@
|
|
|
960
970
|
TagTypes["LIST"] = "LIST";
|
|
961
971
|
TagTypes["DATE"] = "DATE";
|
|
962
972
|
})(exports.TagTypes || (exports.TagTypes = {}));
|
|
963
|
-
var TagsConfigSubType;
|
|
964
|
-
(function (TagsConfigSubType) {
|
|
965
|
-
TagsConfigSubType["YEAR"] = "year";
|
|
966
|
-
TagsConfigSubType["PLAN"] = "plan";
|
|
967
|
-
TagsConfigSubType["BUDGET_CYCLE"] = "budget cycle";
|
|
968
|
-
TagsConfigSubType["MONTH"] = "month";
|
|
969
|
-
TagsConfigSubType["WEEK"] = "week";
|
|
970
|
-
TagsConfigSubType["DAY"] = "day";
|
|
971
|
-
TagsConfigSubType["FORECAST_NEW"] = "forecast_new";
|
|
972
|
-
TagsConfigSubType["QUARTER"] = "quarter";
|
|
973
|
-
TagsConfigSubType["FILE_STATUS"] = "file_status";
|
|
974
|
-
})(TagsConfigSubType || (TagsConfigSubType = {}));
|
|
975
973
|
|
|
976
974
|
var DrTagComponent = /** @class */ (function () {
|
|
977
975
|
function DrTagComponent() {
|
|
978
976
|
this.lockedDate = [];
|
|
979
977
|
this.dynamicTagValues = {};
|
|
978
|
+
this.connectedTags = [];
|
|
980
979
|
this.tagChange = new i0.EventEmitter(); // Not emit value for dynamic tag
|
|
981
980
|
this.dynamicTagChange = new i0.EventEmitter();
|
|
982
981
|
this.dynamicTagAdd = new i0.EventEmitter();
|
|
983
982
|
this.currentTagConnectedToDynamic = false;
|
|
984
983
|
this.tagTypes = exports.TagTypes;
|
|
985
984
|
this.connectedTagsValues = [];
|
|
986
|
-
this._connectedTags = [];
|
|
987
985
|
this.selectedTag = {
|
|
988
986
|
id: 0,
|
|
989
987
|
value: undefined,
|
|
990
988
|
name: ''
|
|
991
989
|
};
|
|
992
990
|
}
|
|
993
|
-
Object.defineProperty(DrTagComponent.prototype, "connectedTags", {
|
|
994
|
-
get: function () {
|
|
995
|
-
return this._connectedTags;
|
|
996
|
-
},
|
|
997
|
-
set: function (tags) {
|
|
998
|
-
this._connectedTags = tags || [];
|
|
999
|
-
},
|
|
1000
|
-
enumerable: false,
|
|
1001
|
-
configurable: true
|
|
1002
|
-
});
|
|
1003
|
-
DrTagComponent.prototype.ngOnChanges = function () {
|
|
1004
|
-
this.calculateDynamicTag();
|
|
1005
|
-
};
|
|
1006
991
|
DrTagComponent.prototype.ngOnInit = function () {
|
|
992
|
+
var _this = this;
|
|
1007
993
|
var _a, _b;
|
|
1008
|
-
this.
|
|
994
|
+
this.currentTagDynamic = this.tagConfig.options.is_custom;
|
|
995
|
+
this.currentTagConnectedToDynamic = _.some(this.tagsConfig, function (tagConfig) { return tagConfig.options.is_custom
|
|
996
|
+
&& ['year'].includes(_this.tagConfig.options.sub_type); });
|
|
1009
997
|
this.dateTag = {
|
|
1010
998
|
type: this.tagConfig.type,
|
|
1011
999
|
sub_type: this.tagConfig.options.sub_type,
|
|
@@ -1120,12 +1108,6 @@
|
|
|
1120
1108
|
}
|
|
1121
1109
|
});
|
|
1122
1110
|
};
|
|
1123
|
-
DrTagComponent.prototype.calculateDynamicTag = function () {
|
|
1124
|
-
var _this = this;
|
|
1125
|
-
this.currentTagDynamic = this.tagConfig.options.is_custom;
|
|
1126
|
-
this.currentTagConnectedToDynamic = _.some(this.tagsConfig, function (tagConfig) { return tagConfig.options.is_custom
|
|
1127
|
-
&& ['year'].includes(_this.tagConfig.options.sub_type); });
|
|
1128
|
-
};
|
|
1129
1111
|
return DrTagComponent;
|
|
1130
1112
|
}());
|
|
1131
1113
|
DrTagComponent.decorators = [
|
|
@@ -1219,8 +1201,13 @@
|
|
|
1219
1201
|
configurable: true
|
|
1220
1202
|
});
|
|
1221
1203
|
DayTagComponent.prototype.initDate = function () {
|
|
1222
|
-
|
|
1223
|
-
|
|
1204
|
+
if (this.defaultValue) {
|
|
1205
|
+
this.date = this.defaultValue;
|
|
1206
|
+
this.dateObj.date = this.date;
|
|
1207
|
+
}
|
|
1208
|
+
else {
|
|
1209
|
+
this.dateObj.date = moment$3().unix();
|
|
1210
|
+
}
|
|
1224
1211
|
};
|
|
1225
1212
|
DayTagComponent.prototype.initName = function () {
|
|
1226
1213
|
if (!this.name) {
|
|
@@ -2456,20 +2443,12 @@
|
|
|
2456
2443
|
elementClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
2457
2444
|
};
|
|
2458
2445
|
|
|
2459
|
-
exports.ToggleButtonTheme = void 0;
|
|
2460
|
-
(function (ToggleButtonTheme) {
|
|
2461
|
-
ToggleButtonTheme["DEFAULT"] = "default";
|
|
2462
|
-
ToggleButtonTheme["DOTTED"] = "dotted";
|
|
2463
|
-
})(exports.ToggleButtonTheme || (exports.ToggleButtonTheme = {}));
|
|
2464
|
-
|
|
2465
2446
|
var DrToggleButtonComponent = /** @class */ (function () {
|
|
2466
2447
|
function DrToggleButtonComponent(cdr) {
|
|
2467
2448
|
this.cdr = cdr;
|
|
2468
2449
|
this._disabled = false;
|
|
2469
2450
|
this.bindLabel = null;
|
|
2470
2451
|
this.bindValue = null;
|
|
2471
|
-
this.bindHidden = null;
|
|
2472
|
-
this.theme = exports.ToggleButtonTheme.DEFAULT;
|
|
2473
2452
|
this.onChange = function () {
|
|
2474
2453
|
};
|
|
2475
2454
|
this.onTouched = function () {
|
|
@@ -2506,12 +2485,12 @@
|
|
|
2506
2485
|
DrToggleButtonComponent.decorators = [
|
|
2507
2486
|
{ type: i0.Component, args: [{
|
|
2508
2487
|
selector: 'dr-toggle-button',
|
|
2509
|
-
template: "<div class=\"toggle-container\"
|
|
2488
|
+
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",
|
|
2510
2489
|
providers: [
|
|
2511
2490
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: i0.forwardRef(function () { return DrToggleButtonComponent; }), multi: true }
|
|
2512
2491
|
],
|
|
2513
2492
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2514
|
-
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
|
|
2493
|
+
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"]
|
|
2515
2494
|
},] }
|
|
2516
2495
|
];
|
|
2517
2496
|
DrToggleButtonComponent.ctorParameters = function () { return [
|
|
@@ -2521,8 +2500,6 @@
|
|
|
2521
2500
|
items: [{ type: i0.Input }],
|
|
2522
2501
|
bindLabel: [{ type: i0.Input }],
|
|
2523
2502
|
bindValue: [{ type: i0.Input }],
|
|
2524
|
-
bindHidden: [{ type: i0.Input }],
|
|
2525
|
-
theme: [{ type: i0.Input }],
|
|
2526
2503
|
selectedValue: [{ type: i0.Input }],
|
|
2527
2504
|
disabled: [{ type: i0.Input }]
|
|
2528
2505
|
};
|
|
@@ -3960,8 +3937,8 @@
|
|
|
3960
3937
|
DialogWrapperComponent.decorators = [
|
|
3961
3938
|
{ type: i0.Component, args: [{
|
|
3962
3939
|
selector: 'dr-dialog-wrapper',
|
|
3963
|
-
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",
|
|
3964
|
-
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"]
|
|
3940
|
+
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",
|
|
3941
|
+
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"]
|
|
3965
3942
|
},] }
|
|
3966
3943
|
];
|
|
3967
3944
|
DialogWrapperComponent.ctorParameters = function () { return [
|
|
@@ -4136,6 +4113,77 @@
|
|
|
4136
4113
|
{ type: i1$1.MatDialog }
|
|
4137
4114
|
]; };
|
|
4138
4115
|
|
|
4116
|
+
var DrDetailsListComponent = /** @class */ (function () {
|
|
4117
|
+
function DrDetailsListComponent() {
|
|
4118
|
+
this.destroy$ = new rxjs.Subject();
|
|
4119
|
+
this.list = [];
|
|
4120
|
+
this.title = 'Show details';
|
|
4121
|
+
this.collapse = true;
|
|
4122
|
+
}
|
|
4123
|
+
Object.defineProperty(DrDetailsListComponent.prototype, "items", {
|
|
4124
|
+
set: function (val) {
|
|
4125
|
+
var _this = this;
|
|
4126
|
+
if (!val) {
|
|
4127
|
+
return;
|
|
4128
|
+
}
|
|
4129
|
+
if (Array.isArray(val)) {
|
|
4130
|
+
this.list = val;
|
|
4131
|
+
}
|
|
4132
|
+
else {
|
|
4133
|
+
val.pipe(operators.takeUntil(this.destroy$)).subscribe(function (res) {
|
|
4134
|
+
_this.list = res;
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
},
|
|
4138
|
+
enumerable: false,
|
|
4139
|
+
configurable: true
|
|
4140
|
+
});
|
|
4141
|
+
;
|
|
4142
|
+
Object.defineProperty(DrDetailsListComponent.prototype, "state", {
|
|
4143
|
+
get: function () {
|
|
4144
|
+
if (this.collapse) {
|
|
4145
|
+
return 'collapsed';
|
|
4146
|
+
}
|
|
4147
|
+
return 'expanded';
|
|
4148
|
+
},
|
|
4149
|
+
enumerable: false,
|
|
4150
|
+
configurable: true
|
|
4151
|
+
});
|
|
4152
|
+
DrDetailsListComponent.prototype.ngOnDestroy = function () {
|
|
4153
|
+
this.destroy$.next();
|
|
4154
|
+
this.destroy$.complete();
|
|
4155
|
+
};
|
|
4156
|
+
return DrDetailsListComponent;
|
|
4157
|
+
}());
|
|
4158
|
+
DrDetailsListComponent.decorators = [
|
|
4159
|
+
{ type: i0.Component, args: [{
|
|
4160
|
+
selector: 'dr-details-list',
|
|
4161
|
+
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",
|
|
4162
|
+
animations: [
|
|
4163
|
+
animations.trigger('expansionIndicatorList', [
|
|
4164
|
+
animations.state('collapsed', animations.style({
|
|
4165
|
+
overflow: 'hidden',
|
|
4166
|
+
visibility: 'hidden',
|
|
4167
|
+
height: 0,
|
|
4168
|
+
})),
|
|
4169
|
+
animations.state('expanded', animations.style({
|
|
4170
|
+
overflow: 'hidden',
|
|
4171
|
+
visibility: 'visible',
|
|
4172
|
+
})),
|
|
4173
|
+
animations.transition('collapsed => expanded', animations.animate('100ms ease-in')),
|
|
4174
|
+
animations.transition('expanded => collapsed', animations.animate('100ms ease-out')),
|
|
4175
|
+
]),
|
|
4176
|
+
],
|
|
4177
|
+
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"]
|
|
4178
|
+
},] }
|
|
4179
|
+
];
|
|
4180
|
+
DrDetailsListComponent.ctorParameters = function () { return []; };
|
|
4181
|
+
DrDetailsListComponent.propDecorators = {
|
|
4182
|
+
title: [{ type: i0.Input }],
|
|
4183
|
+
items: [{ type: i0.Input }],
|
|
4184
|
+
collapse: [{ type: i0.Input }]
|
|
4185
|
+
};
|
|
4186
|
+
|
|
4139
4187
|
exports.TooltipPosition = void 0;
|
|
4140
4188
|
(function (TooltipPosition) {
|
|
4141
4189
|
TooltipPosition["TOP"] = "top";
|
|
@@ -4152,14 +4200,6 @@
|
|
|
4152
4200
|
TooltipPosition["LEFT_BOTTOM"] = "left-bottom";
|
|
4153
4201
|
})(exports.TooltipPosition || (exports.TooltipPosition = {}));
|
|
4154
4202
|
|
|
4155
|
-
exports.Scenario = void 0;
|
|
4156
|
-
(function (Scenario) {
|
|
4157
|
-
Scenario["ACTUALS"] = "Actuals";
|
|
4158
|
-
Scenario["FORECAST"] = "Forecast";
|
|
4159
|
-
Scenario["BUDGET"] = "Budget";
|
|
4160
|
-
Scenario["NONE"] = "None";
|
|
4161
|
-
})(exports.Scenario || (exports.Scenario = {}));
|
|
4162
|
-
|
|
4163
4203
|
var DrModelDebounceChangeDirective = /** @class */ (function () {
|
|
4164
4204
|
function DrModelDebounceChangeDirective(ngModel) {
|
|
4165
4205
|
this.ngModel = ngModel;
|
|
@@ -4225,248 +4265,6 @@
|
|
|
4225
4265
|
return ChatMessage;
|
|
4226
4266
|
}());
|
|
4227
4267
|
|
|
4228
|
-
var _a;
|
|
4229
|
-
var allDateTags = (_a = {},
|
|
4230
|
-
_a[TagsConfigSubType.YEAR] = {
|
|
4231
|
-
name: 'Date',
|
|
4232
|
-
toggle: false,
|
|
4233
|
-
},
|
|
4234
|
-
_a[TagsConfigSubType.QUARTER] = {
|
|
4235
|
-
name: 'Date',
|
|
4236
|
-
toggle: false,
|
|
4237
|
-
},
|
|
4238
|
-
_a[TagsConfigSubType.MONTH] = {
|
|
4239
|
-
name: 'Date',
|
|
4240
|
-
toggle: false,
|
|
4241
|
-
},
|
|
4242
|
-
_a[TagsConfigSubType.DAY] = {
|
|
4243
|
-
name: 'Date',
|
|
4244
|
-
toggle: false,
|
|
4245
|
-
},
|
|
4246
|
-
_a[TagsConfigSubType.WEEK] = {
|
|
4247
|
-
name: 'Date',
|
|
4248
|
-
toggle: false,
|
|
4249
|
-
},
|
|
4250
|
-
_a);
|
|
4251
|
-
function getScenarioTagDataConfig(isMultipleDimension) {
|
|
4252
|
-
var _a, _b, _c, _d, _e;
|
|
4253
|
-
return _a = {},
|
|
4254
|
-
_a[exports.Scenario.ACTUALS] = Object.assign(Object.assign({}, allDateTags), (_b = {}, _b[TagsConfigSubType.MONTH] = {
|
|
4255
|
-
name: 'Date',
|
|
4256
|
-
toggle: true,
|
|
4257
|
-
}, _b[TagsConfigSubType.FILE_STATUS] = {
|
|
4258
|
-
toggle: false,
|
|
4259
|
-
}, _b)),
|
|
4260
|
-
_a[exports.Scenario.BUDGET] = (_c = {},
|
|
4261
|
-
_c[TagsConfigSubType.BUDGET_CYCLE] = {
|
|
4262
|
-
toggle: true,
|
|
4263
|
-
acceptableDateTags: [TagsConfigSubType.YEAR],
|
|
4264
|
-
hidden: !isMultipleDimension,
|
|
4265
|
-
},
|
|
4266
|
-
_c[TagsConfigSubType.PLAN] = {
|
|
4267
|
-
toggle: false,
|
|
4268
|
-
turnOffDateTags: true,
|
|
4269
|
-
hidden: isMultipleDimension,
|
|
4270
|
-
},
|
|
4271
|
-
_c[TagsConfigSubType.YEAR] = {
|
|
4272
|
-
name: 'Date',
|
|
4273
|
-
toggle: true,
|
|
4274
|
-
},
|
|
4275
|
-
_c[TagsConfigSubType.QUARTER] = {
|
|
4276
|
-
name: 'Date',
|
|
4277
|
-
toggle: false,
|
|
4278
|
-
},
|
|
4279
|
-
_c[TagsConfigSubType.FILE_STATUS] = {
|
|
4280
|
-
toggle: false,
|
|
4281
|
-
},
|
|
4282
|
-
_c),
|
|
4283
|
-
_a[exports.Scenario.FORECAST] = (_d = {},
|
|
4284
|
-
_d[TagsConfigSubType.FORECAST_NEW] = {
|
|
4285
|
-
toggle: true,
|
|
4286
|
-
name: 'Date',
|
|
4287
|
-
},
|
|
4288
|
-
_d[TagsConfigSubType.FILE_STATUS] = {
|
|
4289
|
-
toggle: false,
|
|
4290
|
-
},
|
|
4291
|
-
_d),
|
|
4292
|
-
_a[exports.Scenario.NONE] = Object.assign(Object.assign({}, allDateTags), (_e = {}, _e[TagsConfigSubType.MONTH] = {
|
|
4293
|
-
name: 'Date',
|
|
4294
|
-
toggle: true,
|
|
4295
|
-
}, _e[TagsConfigSubType.FILE_STATUS] = {
|
|
4296
|
-
toggle: true,
|
|
4297
|
-
}, _e)),
|
|
4298
|
-
_a;
|
|
4299
|
-
}
|
|
4300
|
-
|
|
4301
|
-
var ScenarioService = /** @class */ (function () {
|
|
4302
|
-
function ScenarioService() {
|
|
4303
|
-
this.DEFAULT_FORECAST_DATE_TAG = 'Month';
|
|
4304
|
-
}
|
|
4305
|
-
Object.defineProperty(ScenarioService.prototype, "scenarios", {
|
|
4306
|
-
get: function () {
|
|
4307
|
-
return _.orderBy(Object.values(exports.Scenario), function (scenario) { return scenario === exports.Scenario.NONE ? 1 : 0; });
|
|
4308
|
-
},
|
|
4309
|
-
enumerable: false,
|
|
4310
|
-
configurable: true
|
|
4311
|
-
});
|
|
4312
|
-
Object.defineProperty(ScenarioService.prototype, "areExistingTagsConfig", {
|
|
4313
|
-
get: function () {
|
|
4314
|
-
return !!this.currentTagsConfig;
|
|
4315
|
-
},
|
|
4316
|
-
enumerable: false,
|
|
4317
|
-
configurable: true
|
|
4318
|
-
});
|
|
4319
|
-
ScenarioService.prototype.initScenarioTags = function (scenario, wholeTagsConfig, currentTagsConfig, isMultipleDimension) {
|
|
4320
|
-
if (isMultipleDimension === void 0) { isMultipleDimension = true; }
|
|
4321
|
-
if (!(wholeTagsConfig === null || wholeTagsConfig === void 0 ? void 0 : wholeTagsConfig.length) || !scenario)
|
|
4322
|
-
return;
|
|
4323
|
-
this.wholeTagsConfig = wholeTagsConfig;
|
|
4324
|
-
this.currentTagsConfig = currentTagsConfig;
|
|
4325
|
-
this.isMultipleDimension = isMultipleDimension;
|
|
4326
|
-
};
|
|
4327
|
-
ScenarioService.prototype.getTagsConfigByScenarioTags = function (scenarioTags, tagsConfig) {
|
|
4328
|
-
var scenarioTagsConfig = _.filter(tagsConfig, function (tagConfig) { return _.some(scenarioTags, function (scenarioTag) { return scenarioTag.toggle && scenarioTag.selectedTagSubType === tagConfig.options.sub_type; }); });
|
|
4329
|
-
return this.sortScenarioTags(scenarioTagsConfig);
|
|
4330
|
-
};
|
|
4331
|
-
ScenarioService.prototype.getScenarioTagsByScenario = function (scenario) {
|
|
4332
|
-
var _this = this;
|
|
4333
|
-
var scenarioTagsConfig = this.getScenarioTagsConfig(scenario, this.wholeTagsConfig);
|
|
4334
|
-
var scenarioTagsUi = [];
|
|
4335
|
-
_.forEach(scenarioTagsConfig, function (scenarioTag) {
|
|
4336
|
-
var isDateTag = scenarioTag.type === exports.TagTypes.DATE;
|
|
4337
|
-
var dateTag = isDateTag && _.find(scenarioTagsUi, { type: exports.TagTypes.DATE });
|
|
4338
|
-
var tag = dateTag || _this.prepareScenarioTag(scenarioTagsConfig, scenarioTag, scenario, isDateTag);
|
|
4339
|
-
if (isDateTag) {
|
|
4340
|
-
_this.updateScenarioDateTag(tag, scenarioTag);
|
|
4341
|
-
}
|
|
4342
|
-
if (dateTag)
|
|
4343
|
-
return;
|
|
4344
|
-
scenarioTagsUi.push(tag);
|
|
4345
|
-
});
|
|
4346
|
-
if (this.areExistingTagsConfig) {
|
|
4347
|
-
this.initExistingTagsConfig(scenario, scenarioTagsUi);
|
|
4348
|
-
}
|
|
4349
|
-
var isTagNotSupportingDates = _.some(scenarioTagsUi, { turnOffDateTags: true, toggle: true });
|
|
4350
|
-
if (isTagNotSupportingDates) {
|
|
4351
|
-
this.turnOffDateTag(scenarioTagsUi);
|
|
4352
|
-
}
|
|
4353
|
-
var tagWithSpecificDateTags = _.find(scenarioTagsUi, function (tag) { var _a; return tag.toggle && !!((_a = tag.acceptableDateTags) === null || _a === void 0 ? void 0 : _a.length); });
|
|
4354
|
-
if (tagWithSpecificDateTags) {
|
|
4355
|
-
this.hideNotAvailableTags(tagWithSpecificDateTags, scenarioTagsUi);
|
|
4356
|
-
}
|
|
4357
|
-
return this.sortScenarioTags(scenarioTagsUi);
|
|
4358
|
-
};
|
|
4359
|
-
ScenarioService.prototype.sortScenarioTags = function (scenarioTagsUi) {
|
|
4360
|
-
return _.orderBy(scenarioTagsUi, [
|
|
4361
|
-
function (tag) { return (tag.type === exports.TagTypes.DATE ? 0 : 1); },
|
|
4362
|
-
function (tag) { return (tag.name === 'File Status'); }
|
|
4363
|
-
]);
|
|
4364
|
-
};
|
|
4365
|
-
ScenarioService.prototype.initExistingTagsConfig = function (scenario, scenarioTagsUi) {
|
|
4366
|
-
var _this = this;
|
|
4367
|
-
_.forEach(this.currentTagsConfig, function (tagConfig) {
|
|
4368
|
-
var _a, _b;
|
|
4369
|
-
var tagSubType = (_a = tagConfig === null || tagConfig === void 0 ? void 0 : tagConfig.options) === null || _a === void 0 ? void 0 : _a.sub_type;
|
|
4370
|
-
var scenarioTagDataConfig = getScenarioTagDataConfig(_this.isMultipleDimension);
|
|
4371
|
-
if (!((_b = scenarioTagDataConfig === null || scenarioTagDataConfig === void 0 ? void 0 : scenarioTagDataConfig[scenario]) === null || _b === void 0 ? void 0 : _b[tagSubType]))
|
|
4372
|
-
return;
|
|
4373
|
-
var scenarioTagUi = tagConfig.type === exports.TagTypes.DATE
|
|
4374
|
-
? _.find(scenarioTagsUi, { type: tagConfig.type })
|
|
4375
|
-
: _.find(scenarioTagsUi, { selectedTagSubType: tagSubType });
|
|
4376
|
-
scenarioTagUi.toggle = true;
|
|
4377
|
-
scenarioTagUi.selectedTagSubType = tagSubType;
|
|
4378
|
-
});
|
|
4379
|
-
};
|
|
4380
|
-
ScenarioService.prototype.prepareScenarioTag = function (scenarioTagsConfig, scenarioTag, scenario, isDateTag) {
|
|
4381
|
-
var toggleStatus = isDateTag
|
|
4382
|
-
? _.some(scenarioTagsConfig, function (tag) { return tag.type === exports.TagTypes.DATE && tag.scenarioData.toggle; })
|
|
4383
|
-
: scenarioTag.scenarioData.toggle;
|
|
4384
|
-
var selectedTagSubType = isDateTag
|
|
4385
|
-
? this.getScenarioSelectedDateTag(scenario, scenarioTagsConfig)
|
|
4386
|
-
: scenarioTag.options.sub_type;
|
|
4387
|
-
var tag = {
|
|
4388
|
-
toggle: this.areExistingTagsConfig ? false : toggleStatus,
|
|
4389
|
-
name: scenarioTag.scenarioData.name || scenarioTag.name,
|
|
4390
|
-
description: scenarioTag.scenarioData.description || scenarioTag.description,
|
|
4391
|
-
type: scenarioTag.type,
|
|
4392
|
-
selectedTagSubType: selectedTagSubType,
|
|
4393
|
-
};
|
|
4394
|
-
if (scenarioTag.scenarioData.turnOffDateTags) {
|
|
4395
|
-
tag.turnOffDateTags = scenarioTag.scenarioData.turnOffDateTags;
|
|
4396
|
-
}
|
|
4397
|
-
if (scenarioTag.scenarioData.acceptableDateTags) {
|
|
4398
|
-
tag.acceptableDateTags = scenarioTag.scenarioData.acceptableDateTags;
|
|
4399
|
-
}
|
|
4400
|
-
return tag;
|
|
4401
|
-
};
|
|
4402
|
-
ScenarioService.prototype.updateScenarioDateTag = function (dateTag, scenarioTag) {
|
|
4403
|
-
if (!dateTag.subTags) {
|
|
4404
|
-
dateTag.subTags = [];
|
|
4405
|
-
}
|
|
4406
|
-
var tagSubType = scenarioTag.options.sub_type;
|
|
4407
|
-
dateTag.subTags.push({
|
|
4408
|
-
subType: tagSubType,
|
|
4409
|
-
name: tagSubType === TagsConfigSubType.FORECAST_NEW ? this.DEFAULT_FORECAST_DATE_TAG : scenarioTag.name,
|
|
4410
|
-
});
|
|
4411
|
-
};
|
|
4412
|
-
ScenarioService.prototype.turnOffDateTag = function (scenarioTags) {
|
|
4413
|
-
var dateTag = _.find(scenarioTags, { type: exports.TagTypes.DATE });
|
|
4414
|
-
if (!dateTag)
|
|
4415
|
-
return;
|
|
4416
|
-
dateTag.toggle = false;
|
|
4417
|
-
};
|
|
4418
|
-
ScenarioService.prototype.hideNotAvailableTags = function (tagWithSpecificDateTags, scenarioTags) {
|
|
4419
|
-
var _a;
|
|
4420
|
-
var subTags = (_a = _.find(scenarioTags, { type: exports.TagTypes.DATE })) === null || _a === void 0 ? void 0 : _a.subTags;
|
|
4421
|
-
if (!subTags.length)
|
|
4422
|
-
return;
|
|
4423
|
-
_.forEach(scenarioTags, function (tag) {
|
|
4424
|
-
var _a;
|
|
4425
|
-
if (!((_a = tag.acceptableDateTags) === null || _a === void 0 ? void 0 : _a.length))
|
|
4426
|
-
return;
|
|
4427
|
-
if (tag !== tagWithSpecificDateTags) {
|
|
4428
|
-
tag.toggle = false;
|
|
4429
|
-
}
|
|
4430
|
-
});
|
|
4431
|
-
_.forEach(subTags, function (subTag) {
|
|
4432
|
-
subTag.hidden = !tagWithSpecificDateTags.acceptableDateTags.includes(subTag.subType);
|
|
4433
|
-
});
|
|
4434
|
-
};
|
|
4435
|
-
ScenarioService.prototype.getScenarioSelectedDateTag = function (scenario, dateTags) {
|
|
4436
|
-
var _c;
|
|
4437
|
-
var _a, _b;
|
|
4438
|
-
var monthSubType = (_b = (_a = _.find(dateTags, function (tag) { return tag.options.sub_type === TagsConfigSubType.MONTH; })) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.sub_type;
|
|
4439
|
-
var scenarioSelectedDateTag = (_c = {},
|
|
4440
|
-
_c[exports.Scenario.ACTUALS] = function () { return monthSubType; },
|
|
4441
|
-
_c[exports.Scenario.BUDGET] = function () { var _a, _b; return (_b = (_a = _.find(dateTags, function (tag) { return tag.options.sub_type === TagsConfigSubType.YEAR; })) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.sub_type; },
|
|
4442
|
-
_c[exports.Scenario.FORECAST] = function () { var _a, _b; return (_b = (_a = _.find(dateTags, function (tag) { return tag.options.sub_type === TagsConfigSubType.FORECAST_NEW; })) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.sub_type; },
|
|
4443
|
-
_c[exports.Scenario.NONE] = function () { return monthSubType; },
|
|
4444
|
-
_c);
|
|
4445
|
-
if (!scenarioSelectedDateTag[scenario])
|
|
4446
|
-
return;
|
|
4447
|
-
return scenarioSelectedDateTag[scenario]();
|
|
4448
|
-
};
|
|
4449
|
-
ScenarioService.prototype.getScenarioTagsConfig = function (scenario, tagsConfig) {
|
|
4450
|
-
var _this = this;
|
|
4451
|
-
return _.reduce(tagsConfig, function (acc, tagConfig) {
|
|
4452
|
-
var _a, _b;
|
|
4453
|
-
var tagSubType = (_a = tagConfig === null || tagConfig === void 0 ? void 0 : tagConfig.options) === null || _a === void 0 ? void 0 : _a.sub_type;
|
|
4454
|
-
var scenarioTagDataConfig = getScenarioTagDataConfig(_this.isMultipleDimension);
|
|
4455
|
-
var scenarioTagConfig = (_b = scenarioTagDataConfig === null || scenarioTagDataConfig === void 0 ? void 0 : scenarioTagDataConfig[scenario]) === null || _b === void 0 ? void 0 : _b[tagSubType];
|
|
4456
|
-
if (!scenarioTagConfig || scenarioTagConfig.hidden)
|
|
4457
|
-
return acc;
|
|
4458
|
-
var clonedTagConfig = _.cloneDeep(tagConfig);
|
|
4459
|
-
var scenarioTag = Object.assign(Object.assign({}, clonedTagConfig), { scenarioData: scenarioTagConfig });
|
|
4460
|
-
acc.push(scenarioTag);
|
|
4461
|
-
return acc;
|
|
4462
|
-
}, []);
|
|
4463
|
-
};
|
|
4464
|
-
return ScenarioService;
|
|
4465
|
-
}());
|
|
4466
|
-
ScenarioService.decorators = [
|
|
4467
|
-
{ type: i0.Injectable }
|
|
4468
|
-
];
|
|
4469
|
-
|
|
4470
4268
|
var DrSharedUtils = /** @class */ (function () {
|
|
4471
4269
|
function DrSharedUtils() {
|
|
4472
4270
|
}
|
|
@@ -4515,7 +4313,6 @@
|
|
|
4515
4313
|
return DrSharedUtils;
|
|
4516
4314
|
}());
|
|
4517
4315
|
|
|
4518
|
-
// @ts-ignore
|
|
4519
4316
|
var moment$2 = require('moment');
|
|
4520
4317
|
var DrDatePickerService = /** @class */ (function () {
|
|
4521
4318
|
function DrDatePickerService() {
|
|
@@ -4702,9 +4499,8 @@
|
|
|
4702
4499
|
};
|
|
4703
4500
|
return DrDatePickerService;
|
|
4704
4501
|
}());
|
|
4705
|
-
DrDatePickerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DrDatePickerService_Factory() { return new DrDatePickerService(); }, token: DrDatePickerService, providedIn: "root" });
|
|
4706
4502
|
DrDatePickerService.decorators = [
|
|
4707
|
-
{ type: i0.Injectable
|
|
4503
|
+
{ type: i0.Injectable }
|
|
4708
4504
|
];
|
|
4709
4505
|
|
|
4710
4506
|
var moment$1 = require('moment');
|
|
@@ -5292,13 +5088,13 @@
|
|
|
5292
5088
|
DrDatePickerWithTimeframeComponent.decorators = [
|
|
5293
5089
|
{ type: i0.Component, args: [{
|
|
5294
5090
|
selector: 'dr-date-picker-with-timeframe',
|
|
5295
|
-
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
|
|
5091
|
+
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",
|
|
5296
5092
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5297
5093
|
providers: [
|
|
5298
5094
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },
|
|
5299
5095
|
{ provide: DrDatePickerService }
|
|
5300
5096
|
],
|
|
5301
|
-
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"]
|
|
5097
|
+
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"]
|
|
5302
5098
|
},] }
|
|
5303
5099
|
];
|
|
5304
5100
|
DrDatePickerWithTimeframeComponent.ctorParameters = function () { return [
|
|
@@ -5600,8 +5396,7 @@
|
|
|
5600
5396
|
datepicker.MatDatepickerModule,
|
|
5601
5397
|
tooltip.MatTooltipModule,
|
|
5602
5398
|
DrTooltipModule
|
|
5603
|
-
]
|
|
5604
|
-
entryComponents: [DrDatePickerCustomHeaderComponent]
|
|
5399
|
+
]
|
|
5605
5400
|
},] }
|
|
5606
5401
|
];
|
|
5607
5402
|
|
|
@@ -5788,7 +5583,7 @@
|
|
|
5788
5583
|
ListTagModule,
|
|
5789
5584
|
DrDynamicTagModule
|
|
5790
5585
|
],
|
|
5791
|
-
exports: [DrTagComponent
|
|
5586
|
+
exports: [DrTagComponent],
|
|
5792
5587
|
providers: [],
|
|
5793
5588
|
declarations: [
|
|
5794
5589
|
DrTagComponent
|
|
@@ -6043,6 +5838,22 @@
|
|
|
6043
5838
|
},] }
|
|
6044
5839
|
];
|
|
6045
5840
|
|
|
5841
|
+
var DrDetailsListModule = /** @class */ (function () {
|
|
5842
|
+
function DrDetailsListModule() {
|
|
5843
|
+
}
|
|
5844
|
+
return DrDetailsListModule;
|
|
5845
|
+
}());
|
|
5846
|
+
DrDetailsListModule.decorators = [
|
|
5847
|
+
{ type: i0.NgModule, args: [{
|
|
5848
|
+
imports: [
|
|
5849
|
+
common.CommonModule,
|
|
5850
|
+
],
|
|
5851
|
+
exports: [DrDetailsListComponent],
|
|
5852
|
+
providers: [],
|
|
5853
|
+
declarations: [DrDetailsListComponent],
|
|
5854
|
+
},] }
|
|
5855
|
+
];
|
|
5856
|
+
|
|
6046
5857
|
var ɵ0$1 = {}, ɵ1 = {};
|
|
6047
5858
|
var DrDialogModule = /** @class */ (function () {
|
|
6048
5859
|
function DrDialogModule() {
|
|
@@ -6057,7 +5868,8 @@
|
|
|
6057
5868
|
i1$1.MatDialogModule,
|
|
6058
5869
|
DrInputsModule,
|
|
6059
5870
|
forms.ReactiveFormsModule,
|
|
6060
|
-
DrTooltipModule
|
|
5871
|
+
DrTooltipModule,
|
|
5872
|
+
DrDetailsListModule
|
|
6061
5873
|
],
|
|
6062
5874
|
exports: [DialogWrapperComponent, DialogModalWrapperComponent],
|
|
6063
5875
|
providers: [
|
|
@@ -6666,193 +6478,6 @@
|
|
|
6666
6478
|
},] }
|
|
6667
6479
|
];
|
|
6668
6480
|
|
|
6669
|
-
var DrScenarioConfigurationComponent = /** @class */ (function () {
|
|
6670
|
-
function DrScenarioConfigurationComponent(scenarioService) {
|
|
6671
|
-
this.scenarioService = scenarioService;
|
|
6672
|
-
this.toggleButtonTheme = exports.ToggleButtonTheme;
|
|
6673
|
-
this._scenarioTags = [];
|
|
6674
|
-
this.wholeTagsConfig = [];
|
|
6675
|
-
this.selectedScenario = exports.Scenario.ACTUALS;
|
|
6676
|
-
this.scenarioDataChanged = new i0.EventEmitter();
|
|
6677
|
-
}
|
|
6678
|
-
Object.defineProperty(DrScenarioConfigurationComponent.prototype, "scenarioTags", {
|
|
6679
|
-
get: function () {
|
|
6680
|
-
return this._scenarioTags;
|
|
6681
|
-
},
|
|
6682
|
-
set: function (tags) {
|
|
6683
|
-
this._scenarioTags = tags;
|
|
6684
|
-
this.tagNotSupportingDates = _.find(tags, { turnOffDateTags: true });
|
|
6685
|
-
},
|
|
6686
|
-
enumerable: false,
|
|
6687
|
-
configurable: true
|
|
6688
|
-
});
|
|
6689
|
-
DrScenarioConfigurationComponent.prototype.ngOnInit = function () {
|
|
6690
|
-
this.scenarios = this.scenarioService.scenarios;
|
|
6691
|
-
this.scenarioService.initScenarioTags(this.selectedScenario, this.wholeTagsConfig, this.currentTagsConfig);
|
|
6692
|
-
this.scenarioTags = this.scenarioService.getScenarioTagsByScenario(this.selectedScenario);
|
|
6693
|
-
};
|
|
6694
|
-
DrScenarioConfigurationComponent.prototype.onScenarioChange = function (scenario) {
|
|
6695
|
-
this.scenarioTags = this.scenarioService.getScenarioTagsByScenario(scenario);
|
|
6696
|
-
this.onScenarioDataChange();
|
|
6697
|
-
};
|
|
6698
|
-
DrScenarioConfigurationComponent.prototype.onScenarioTagToggle = function (tag) {
|
|
6699
|
-
this.tagNotSupportingDatesHandler(tag);
|
|
6700
|
-
this.tagAcceptableDateHandler(tag);
|
|
6701
|
-
this.onScenarioDataChange();
|
|
6702
|
-
};
|
|
6703
|
-
DrScenarioConfigurationComponent.prototype.onScenarioDataChange = function () {
|
|
6704
|
-
this.scenarioDataChanged.emit({
|
|
6705
|
-
scenario: this.selectedScenario,
|
|
6706
|
-
tagsConfig: this.scenarioService.getTagsConfigByScenarioTags(this.scenarioTags, this.wholeTagsConfig),
|
|
6707
|
-
});
|
|
6708
|
-
};
|
|
6709
|
-
DrScenarioConfigurationComponent.prototype.tagNotSupportingDatesHandler = function (tag) {
|
|
6710
|
-
if (!this.tagNotSupportingDates || !tag.toggle)
|
|
6711
|
-
return;
|
|
6712
|
-
if (tag.type === exports.TagTypes.DATE) {
|
|
6713
|
-
this.tagNotSupportingDates.toggle = false;
|
|
6714
|
-
}
|
|
6715
|
-
if (tag === this.tagNotSupportingDates) {
|
|
6716
|
-
var dateTag = _.find(this.scenarioTags, { type: exports.TagTypes.DATE });
|
|
6717
|
-
if (dateTag) {
|
|
6718
|
-
dateTag.toggle = false;
|
|
6719
|
-
}
|
|
6720
|
-
}
|
|
6721
|
-
};
|
|
6722
|
-
DrScenarioConfigurationComponent.prototype.tagAcceptableDateHandler = function (tag) {
|
|
6723
|
-
var _a;
|
|
6724
|
-
if (!((_a = tag.acceptableDateTags) === null || _a === void 0 ? void 0 : _a.length))
|
|
6725
|
-
return;
|
|
6726
|
-
var dateTag = _.find(this.scenarioTags, { type: exports.TagTypes.DATE });
|
|
6727
|
-
if (!dateTag)
|
|
6728
|
-
return;
|
|
6729
|
-
dateTag.subTags = _.map(dateTag.subTags, function (subTag) {
|
|
6730
|
-
subTag.hidden = tag.toggle && !_.includes(tag.acceptableDateTags, subTag.subType);
|
|
6731
|
-
return subTag;
|
|
6732
|
-
});
|
|
6733
|
-
dateTag.selectedTagSubType = tag.acceptableDateTags[0];
|
|
6734
|
-
};
|
|
6735
|
-
return DrScenarioConfigurationComponent;
|
|
6736
|
-
}());
|
|
6737
|
-
DrScenarioConfigurationComponent.decorators = [
|
|
6738
|
-
{ type: i0.Component, args: [{
|
|
6739
|
-
selector: 'dr-scenario-configuration',
|
|
6740
|
-
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",
|
|
6741
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6742
|
-
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"]
|
|
6743
|
-
},] }
|
|
6744
|
-
];
|
|
6745
|
-
DrScenarioConfigurationComponent.ctorParameters = function () { return [
|
|
6746
|
-
{ type: ScenarioService }
|
|
6747
|
-
]; };
|
|
6748
|
-
DrScenarioConfigurationComponent.propDecorators = {
|
|
6749
|
-
currentTagsConfig: [{ type: i0.Input }],
|
|
6750
|
-
wholeTagsConfig: [{ type: i0.Input }],
|
|
6751
|
-
selectedScenario: [{ type: i0.Input }],
|
|
6752
|
-
scenarioDataChanged: [{ type: i0.Output }]
|
|
6753
|
-
};
|
|
6754
|
-
|
|
6755
|
-
var DrScenarioTagConfigurationComponent = /** @class */ (function () {
|
|
6756
|
-
function DrScenarioTagConfigurationComponent() {
|
|
6757
|
-
this.connectedTags = {};
|
|
6758
|
-
this.dynamicTagValues = {};
|
|
6759
|
-
this.lockedDates = [];
|
|
6760
|
-
this.scenarioTagDataChanged = new i0.EventEmitter();
|
|
6761
|
-
this.currentTagsMap = {};
|
|
6762
|
-
this._currentTags = [];
|
|
6763
|
-
this.dynamicTagsToSave = [];
|
|
6764
|
-
this.tagsToSave = [];
|
|
6765
|
-
}
|
|
6766
|
-
Object.defineProperty(DrScenarioTagConfigurationComponent.prototype, "currentTags", {
|
|
6767
|
-
get: function () {
|
|
6768
|
-
return this._currentTags;
|
|
6769
|
-
},
|
|
6770
|
-
set: function (tags) {
|
|
6771
|
-
var _this = this;
|
|
6772
|
-
this._currentTags = tags;
|
|
6773
|
-
this.currentTagsMap = _.reduce(tags, function (acc, curr) {
|
|
6774
|
-
var _a;
|
|
6775
|
-
var tagId = (_a = _.find(_this.tagsConfig, { name: curr.name })) === null || _a === void 0 ? void 0 : _a.id;
|
|
6776
|
-
if (isNaN(tagId))
|
|
6777
|
-
return acc;
|
|
6778
|
-
acc[tagId] = curr;
|
|
6779
|
-
return acc;
|
|
6780
|
-
}, {});
|
|
6781
|
-
},
|
|
6782
|
-
enumerable: false,
|
|
6783
|
-
configurable: true
|
|
6784
|
-
});
|
|
6785
|
-
DrScenarioTagConfigurationComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
6786
|
-
this.currentTags = this.currentTags;
|
|
6787
|
-
};
|
|
6788
|
-
DrScenarioTagConfigurationComponent.prototype.onTagChange = function ($event) {
|
|
6789
|
-
var savedTag = _.find(this.tagsToSave, { id: $event.id });
|
|
6790
|
-
if (savedTag) {
|
|
6791
|
-
_.merge(savedTag, $event);
|
|
6792
|
-
}
|
|
6793
|
-
else {
|
|
6794
|
-
this.tagsToSave.push($event);
|
|
6795
|
-
}
|
|
6796
|
-
this.onScenarioTagDataChanged();
|
|
6797
|
-
};
|
|
6798
|
-
DrScenarioTagConfigurationComponent.prototype.onDynamicTagsChange = function ($event) {
|
|
6799
|
-
this.dynamicTagsToSave = $event;
|
|
6800
|
-
this.onScenarioTagDataChanged();
|
|
6801
|
-
};
|
|
6802
|
-
DrScenarioTagConfigurationComponent.prototype.onScenarioTagDataChanged = function () {
|
|
6803
|
-
var tags = __spreadArray(__spreadArray([], __read(this.dynamicTagsToSave)), __read(this.tagsToSave));
|
|
6804
|
-
this.scenarioTagDataChanged.emit({
|
|
6805
|
-
scenario: this.scenario,
|
|
6806
|
-
tagsConfig: this.tagsConfig,
|
|
6807
|
-
tags: tags,
|
|
6808
|
-
});
|
|
6809
|
-
};
|
|
6810
|
-
return DrScenarioTagConfigurationComponent;
|
|
6811
|
-
}());
|
|
6812
|
-
DrScenarioTagConfigurationComponent.decorators = [
|
|
6813
|
-
{ type: i0.Component, args: [{
|
|
6814
|
-
selector: 'dr-scenario-tag-configuration',
|
|
6815
|
-
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",
|
|
6816
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6817
|
-
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"]
|
|
6818
|
-
},] }
|
|
6819
|
-
];
|
|
6820
|
-
DrScenarioTagConfigurationComponent.propDecorators = {
|
|
6821
|
-
tagsConfig: [{ type: i0.Input }],
|
|
6822
|
-
currentTags: [{ type: i0.Input }],
|
|
6823
|
-
scenario: [{ type: i0.Input }],
|
|
6824
|
-
connectedTags: [{ type: i0.Input }],
|
|
6825
|
-
dynamicTagValues: [{ type: i0.Input }],
|
|
6826
|
-
lockedDates: [{ type: i0.Input }],
|
|
6827
|
-
fiscalYearStartsFrom: [{ type: i0.Input }],
|
|
6828
|
-
fiscalYearBack: [{ type: i0.Input }],
|
|
6829
|
-
isDynamicAddEnabled: [{ type: i0.Input }],
|
|
6830
|
-
scenarioTagDataChanged: [{ type: i0.Output }]
|
|
6831
|
-
};
|
|
6832
|
-
|
|
6833
|
-
var COMPONENTS = [
|
|
6834
|
-
DrScenarioConfigurationComponent,
|
|
6835
|
-
DrScenarioTagConfigurationComponent,
|
|
6836
|
-
];
|
|
6837
|
-
var DrScenarioModule = /** @class */ (function () {
|
|
6838
|
-
function DrScenarioModule() {
|
|
6839
|
-
}
|
|
6840
|
-
return DrScenarioModule;
|
|
6841
|
-
}());
|
|
6842
|
-
DrScenarioModule.decorators = [
|
|
6843
|
-
{ type: i0.NgModule, args: [{
|
|
6844
|
-
declarations: __spreadArray([], __read(COMPONENTS)),
|
|
6845
|
-
providers: [ScenarioService],
|
|
6846
|
-
imports: [
|
|
6847
|
-
common.CommonModule,
|
|
6848
|
-
DrInputsModule,
|
|
6849
|
-
forms.FormsModule,
|
|
6850
|
-
DrTagModule
|
|
6851
|
-
],
|
|
6852
|
-
exports: __spreadArray([], __read(COMPONENTS)),
|
|
6853
|
-
},] }
|
|
6854
|
-
];
|
|
6855
|
-
|
|
6856
6481
|
/* components */
|
|
6857
6482
|
|
|
6858
6483
|
/**
|
|
@@ -6877,6 +6502,8 @@
|
|
|
6877
6502
|
exports.DrAvatarPipe = DrAvatarPipe;
|
|
6878
6503
|
exports.DrButtonComponent = DrButtonComponent;
|
|
6879
6504
|
exports.DrChatModule = DrChatModule;
|
|
6505
|
+
exports.DrDetailsListComponent = DrDetailsListComponent;
|
|
6506
|
+
exports.DrDetailsListModule = DrDetailsListModule;
|
|
6880
6507
|
exports.DrDialogModule = DrDialogModule;
|
|
6881
6508
|
exports.DrDropdownComponent = DrDropdownComponent;
|
|
6882
6509
|
exports.DrDropdownDirective = DrDropdownDirective;
|
|
@@ -6884,7 +6511,6 @@
|
|
|
6884
6511
|
exports.DrDropdownModule = DrDropdownModule;
|
|
6885
6512
|
exports.DrDropdownPositionDirective = DrDropdownPositionDirective;
|
|
6886
6513
|
exports.DrDropdownService = DrDropdownService;
|
|
6887
|
-
exports.DrDynamicTagModule = DrDynamicTagModule;
|
|
6888
6514
|
exports.DrErrorComponent = DrErrorComponent;
|
|
6889
6515
|
exports.DrErrorModule = DrErrorModule;
|
|
6890
6516
|
exports.DrInputComponent = DrInputComponent;
|
|
@@ -6899,7 +6525,6 @@
|
|
|
6899
6525
|
exports.DrPopoverModule = DrPopoverModule;
|
|
6900
6526
|
exports.DrPopoverRef = DrPopoverRef;
|
|
6901
6527
|
exports.DrPopoverService = DrPopoverService;
|
|
6902
|
-
exports.DrScenarioModule = DrScenarioModule;
|
|
6903
6528
|
exports.DrSelectComponent = DrSelectComponent;
|
|
6904
6529
|
exports.DrSharedUtils = DrSharedUtils;
|
|
6905
6530
|
exports.DrSpinnerComponent = DrSpinnerComponent;
|
|
@@ -6923,13 +6548,11 @@
|
|
|
6923
6548
|
exports.QuarterTagComponent = QuarterTagComponent;
|
|
6924
6549
|
exports.RadioButtonComponent = RadioButtonComponent;
|
|
6925
6550
|
exports.RadioGroupComponent = RadioGroupComponent;
|
|
6926
|
-
exports.ScenarioService = ScenarioService;
|
|
6927
6551
|
exports.TooltipComponent = TooltipComponent;
|
|
6928
6552
|
exports.WeekTagComponent = WeekTagComponent;
|
|
6929
6553
|
exports.YearTagComponent = YearTagComponent;
|
|
6930
6554
|
exports["ɵa"] = components$2;
|
|
6931
6555
|
exports["ɵb"] = POPUP_ANIMATION;
|
|
6932
|
-
exports["ɵba"] = DrScenarioTagConfigurationComponent;
|
|
6933
6556
|
exports["ɵc"] = DrDatePickerComponent;
|
|
6934
6557
|
exports["ɵd"] = DrDatePickerService;
|
|
6935
6558
|
exports["ɵe"] = DrDatePickerWithTimeframeComponent;
|
|
@@ -6941,19 +6564,19 @@
|
|
|
6941
6564
|
exports["ɵk"] = TooltipInfoSimpleComponent;
|
|
6942
6565
|
exports["ɵl"] = TooltipNoBodyComponent;
|
|
6943
6566
|
exports["ɵm"] = TooltipProcessDefaultComponent;
|
|
6944
|
-
exports["ɵn"] =
|
|
6945
|
-
exports["ɵo"] =
|
|
6946
|
-
exports["ɵp"] =
|
|
6947
|
-
exports["ɵq"] =
|
|
6948
|
-
exports["ɵr"] =
|
|
6949
|
-
exports["ɵs"] =
|
|
6950
|
-
exports["ɵt"] =
|
|
6951
|
-
exports["ɵu"] =
|
|
6952
|
-
exports["ɵv"] =
|
|
6953
|
-
exports["ɵw"] =
|
|
6954
|
-
exports["ɵx"] =
|
|
6955
|
-
exports["ɵy"] =
|
|
6956
|
-
exports["ɵz"] =
|
|
6567
|
+
exports["ɵn"] = DrDynamicTagModule;
|
|
6568
|
+
exports["ɵo"] = DrDynamicTagComponent;
|
|
6569
|
+
exports["ɵp"] = StepperComponent;
|
|
6570
|
+
exports["ɵq"] = DialogWrapperComponent;
|
|
6571
|
+
exports["ɵr"] = DialogModalWrapperComponent;
|
|
6572
|
+
exports["ɵs"] = DrChatComponent;
|
|
6573
|
+
exports["ɵt"] = DrChatCustomMessageService;
|
|
6574
|
+
exports["ɵu"] = DrChatMessageComponent;
|
|
6575
|
+
exports["ɵv"] = DrChatFormComponent;
|
|
6576
|
+
exports["ɵw"] = DrChatSuggestionsComponent;
|
|
6577
|
+
exports["ɵx"] = DrChatMessageTextComponent;
|
|
6578
|
+
exports["ɵy"] = DrChatMessageFileComponent;
|
|
6579
|
+
exports["ɵz"] = DrChatCustomMessageDirective;
|
|
6957
6580
|
|
|
6958
6581
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6959
6582
|
|