@datarailsshared/datarailsshared 1.4.530 → 1.4.552
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 +87 -85
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.552.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/date-tags/forecast-tag/forecast-tag.component.js +5 -2
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +2 -2
- package/esm2015/lib/dr-inputs/dr-select/dr-select.component.js +1 -1
- package/fesm2015/datarailsshared-datarailsshared.js +78 -76
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/date-tags/forecast-tag/forecast-tag.component.d.ts +2 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.530.tgz +0 -0
|
@@ -416,6 +416,88 @@
|
|
|
416
416
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
exports.DateFromats = void 0;
|
|
420
|
+
(function (DateFromats) {
|
|
421
|
+
DateFromats["MAT_DEFAULT_DATE_FORMAT"] = "MM/DD/yyyy";
|
|
422
|
+
DateFromats["DATE_INPUT_FORMAT"] = "YYYY/MM/DD";
|
|
423
|
+
DateFromats["YEAR_FORMAT"] = "yyyy";
|
|
424
|
+
DateFromats["MONTH_YEAR_FORMAT"] = "MM/yyyy";
|
|
425
|
+
DateFromats["QUARTER_FORMAT"] = "Q/yyyy";
|
|
426
|
+
DateFromats["WEEK_FORMAT"] = "w/yyyy";
|
|
427
|
+
})(exports.DateFromats || (exports.DateFromats = {}));
|
|
428
|
+
var CustomDateFormat = /** @class */ (function () {
|
|
429
|
+
function CustomDateFormat() {
|
|
430
|
+
this._parse = {
|
|
431
|
+
dateInput: exports.DateFromats.DATE_INPUT_FORMAT,
|
|
432
|
+
};
|
|
433
|
+
this._display = {
|
|
434
|
+
dateInput: exports.DateFromats.DATE_INPUT_FORMAT,
|
|
435
|
+
monthYearLabel: 'MMM YYYY',
|
|
436
|
+
dateA11yLabel: 'LL',
|
|
437
|
+
monthYearA11yLabel: 'MMM YYYY',
|
|
438
|
+
quarterYearLabel: 'Q/YYYY',
|
|
439
|
+
yearLabel: 'YYYY'
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
Object.defineProperty(CustomDateFormat.prototype, "parse", {
|
|
443
|
+
get: function () {
|
|
444
|
+
return this._parse;
|
|
445
|
+
},
|
|
446
|
+
set: function (parse) {
|
|
447
|
+
this._parse = Object.assign({}, this._parse, parse);
|
|
448
|
+
},
|
|
449
|
+
enumerable: false,
|
|
450
|
+
configurable: true
|
|
451
|
+
});
|
|
452
|
+
Object.defineProperty(CustomDateFormat.prototype, "display", {
|
|
453
|
+
get: function () {
|
|
454
|
+
return this._display;
|
|
455
|
+
},
|
|
456
|
+
set: function (display) {
|
|
457
|
+
this._display = Object.assign({}, this._display, display);
|
|
458
|
+
},
|
|
459
|
+
enumerable: false,
|
|
460
|
+
configurable: true
|
|
461
|
+
});
|
|
462
|
+
CustomDateFormat.prototype.updateDateFormat = function (parse, display) {
|
|
463
|
+
this.parse = parse;
|
|
464
|
+
if (!display) {
|
|
465
|
+
display = parse;
|
|
466
|
+
}
|
|
467
|
+
this.display = display;
|
|
468
|
+
};
|
|
469
|
+
return CustomDateFormat;
|
|
470
|
+
}());
|
|
471
|
+
exports.DatePickerPeriodPosition = void 0;
|
|
472
|
+
(function (DatePickerPeriodPosition) {
|
|
473
|
+
DatePickerPeriodPosition[DatePickerPeriodPosition["END_OF_PERIOD"] = 0] = "END_OF_PERIOD";
|
|
474
|
+
DatePickerPeriodPosition[DatePickerPeriodPosition["MIDDLE_OF_PERIOD"] = 1] = "MIDDLE_OF_PERIOD";
|
|
475
|
+
DatePickerPeriodPosition[DatePickerPeriodPosition["START_OF_PERIOD"] = 2] = "START_OF_PERIOD";
|
|
476
|
+
DatePickerPeriodPosition[DatePickerPeriodPosition["DEFAULT"] = 3] = "DEFAULT";
|
|
477
|
+
})(exports.DatePickerPeriodPosition || (exports.DatePickerPeriodPosition = {}));
|
|
478
|
+
exports.TimeframeOption = void 0;
|
|
479
|
+
(function (TimeframeOption) {
|
|
480
|
+
TimeframeOption["DAY"] = "day";
|
|
481
|
+
TimeframeOption["MONTH"] = "month";
|
|
482
|
+
TimeframeOption["QUARTER"] = "quarter";
|
|
483
|
+
TimeframeOption["WEEK"] = "week";
|
|
484
|
+
TimeframeOption["YEAR"] = "year";
|
|
485
|
+
})(exports.TimeframeOption || (exports.TimeframeOption = {}));
|
|
486
|
+
exports.CalendarView = void 0;
|
|
487
|
+
(function (CalendarView) {
|
|
488
|
+
CalendarView["FOR_DAYS"] = "month";
|
|
489
|
+
CalendarView["FOR_MONTHS"] = "year";
|
|
490
|
+
CalendarView["FOR_QUARTERS"] = "none";
|
|
491
|
+
CalendarView["FOR_YEARS"] = "multi-year";
|
|
492
|
+
})(exports.CalendarView || (exports.CalendarView = {}));
|
|
493
|
+
exports.DateTags = void 0;
|
|
494
|
+
(function (DateTags) {
|
|
495
|
+
DateTags["TODAY"] = "today";
|
|
496
|
+
DateTags["YESTERDAY"] = "yesterday";
|
|
497
|
+
DateTags["THIS_MONTH"] = "this_month";
|
|
498
|
+
DateTags["PREV_MONTH"] = "prev_month";
|
|
499
|
+
})(exports.DateTags || (exports.DateTags = {}));
|
|
500
|
+
|
|
419
501
|
/* BEFORE MERGE INTO MASTER YOU MUST CONSULT WITH ARTEM LAZIUK !!!*/
|
|
420
502
|
// @ts-ignore
|
|
421
503
|
var moment$9 = require('moment');
|
|
@@ -424,6 +506,7 @@
|
|
|
424
506
|
__extends(ForecastTagComponent, _super);
|
|
425
507
|
function ForecastTagComponent() {
|
|
426
508
|
var _this = _super.call(this) || this;
|
|
509
|
+
_this.datePickerPeriodPosition = exports.DatePickerPeriodPosition;
|
|
427
510
|
_this.lockedDate = [];
|
|
428
511
|
_this.tagAdditionalSettings = {};
|
|
429
512
|
_this.forecastValue = undefined;
|
|
@@ -457,6 +540,7 @@
|
|
|
457
540
|
this.forecastValue = this.getFiscalMonthFromDate(dateVal, fiscal_year_starts_from) - 1;
|
|
458
541
|
this.forecastYear = moment$9
|
|
459
542
|
.utc(this.firstDayMonthOfYear + "/" + this.firstDayMonthOfYear + "/" + this.getFiscalYearFromDate(dateVal, fiscal_year_starts_from, this.fiscalYearBack), FORECAST_DEFAULT_DATE_FORMAT)
|
|
543
|
+
.set('hours', 12)
|
|
460
544
|
.unix();
|
|
461
545
|
this.updateLockedDate();
|
|
462
546
|
if (!this.initDateValue) {
|
|
@@ -557,7 +641,7 @@
|
|
|
557
641
|
}(AnyTagComponent));
|
|
558
642
|
ForecastTagComponent.decorators = [
|
|
559
643
|
{ type: i0.Component, args: [{
|
|
560
|
-
template: "<ng-container *ngIf=\"!tagAdditionalSettings?.showSplitInputs; else splitInputsTpl\">\n <div class=\"forecast-tag__container\">\n <div class=\"forecast-tag__forecast\">\n <p class=\"tag__label\">Forecast</p>\n <dr-select\n placeholder=\"Select\"\n [(ngModel)]=\"forecastValue\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [disabled]=\"disabled\"\n [items]=\"forecastTags\"\n (ngModelChange)=\"changeTagInputHandler()\"></dr-select>\n </div>\n <div class=\"forecast-tag__year\">\n <p class=\"tag__label\">Year</p>\n <dr-date-picker\n format=\"year\"\n [(ngModel)]=\"forecastYear\"\n [datepickerFilter]=\"dateFilter.bind(this)\"\n [disabled]=\"disabled\"\n (ngModelChange)=\"changeYearInputHandler()\"></dr-date-picker>\n </div>\n </div>\n</ng-container>\n\n<ng-template #splitInputsTpl>\n <div class=\"forecast-tag__split-container\">\n <p class=\"tag__label\">Period</p>\n <div class=\"forecast-tag__split-dropdowns\">\n <dr-date-picker\n format=\"year\"\n [(ngModel)]=\"forecastYear\"\n [datepickerFilter]=\"dateFilter.bind(this)\"\n [disabled]=\"disabled\"\n class=\"no-right-border-radius no-right-border\"\n (ngModelChange)=\"changeYearInputHandler()\"></dr-date-picker>\n <dr-select\n placeholder=\"Select\"\n [(ngModel)]=\"forecastValue\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [disabled]=\"disabled\"\n [items]=\"forecastTags\"\n no-left-border-radius\n (ngModelChange)=\"changeTagInputHandler()\"></dr-select>\n </div>\n </div>\n</ng-template>\n",
|
|
644
|
+
template: "<ng-container *ngIf=\"!tagAdditionalSettings?.showSplitInputs; else splitInputsTpl\">\n <div class=\"forecast-tag__container\">\n <div class=\"forecast-tag__forecast\">\n <p class=\"tag__label\">Forecast</p>\n <dr-select\n placeholder=\"Select\"\n [(ngModel)]=\"forecastValue\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [disabled]=\"disabled\"\n [items]=\"forecastTags\"\n (ngModelChange)=\"changeTagInputHandler()\"></dr-select>\n </div>\n <div class=\"forecast-tag__year\">\n <p class=\"tag__label\">Year</p>\n <dr-date-picker\n format=\"year\"\n [(ngModel)]=\"forecastYear\"\n [datepickerFilter]=\"dateFilter.bind(this)\"\n [periodPosition]=\"datePickerPeriodPosition.MIDDLE_OF_PERIOD\"\n [disabled]=\"disabled\"\n (ngModelChange)=\"changeYearInputHandler()\"></dr-date-picker>\n </div>\n </div>\n</ng-container>\n\n<ng-template #splitInputsTpl>\n <div class=\"forecast-tag__split-container\">\n <p class=\"tag__label\">Period</p>\n <div class=\"forecast-tag__split-dropdowns\">\n <dr-date-picker\n format=\"year\"\n [(ngModel)]=\"forecastYear\"\n [datepickerFilter]=\"dateFilter.bind(this)\"\n [disabled]=\"disabled\"\n class=\"no-right-border-radius no-right-border\"\n (ngModelChange)=\"changeYearInputHandler()\"></dr-date-picker>\n <dr-select\n placeholder=\"Select\"\n [(ngModel)]=\"forecastValue\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [disabled]=\"disabled\"\n [items]=\"forecastTags\"\n no-left-border-radius\n (ngModelChange)=\"changeTagInputHandler()\"></dr-select>\n </div>\n </div>\n</ng-template>\n",
|
|
561
645
|
selector: 'forecast-tag',
|
|
562
646
|
providers: [
|
|
563
647
|
{
|
|
@@ -1994,7 +2078,7 @@
|
|
|
1994
2078
|
useExisting: DrSelectComponent,
|
|
1995
2079
|
multi: true
|
|
1996
2080
|
}],
|
|
1997
|
-
styles: ["@charset \"UTF-8\";:host{width:100%;height:32px}:host.textView::ng-deep{width:auto}:host.textView::ng-deep ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#0b5af9}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow{border:none;width:auto;height:auto;display:flex;-webkit-text-decoration-line:none;text-decoration-line:none;top:0}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow:before{font-family:DataRails!important;content:\"\\ea15\";font-size:24px;color:#333}:host.no-left-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}:host.no-right-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}:host.no-right-border ::ng-deep ng-select.ng-select .ng-select-container{border-right:none!important}:host.no-left-border ::ng-deep ng-select.ng-select .ng-select-container{border-left:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px;border:1px solid #9EA1AA;box-shadow:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container:hover{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container:focus-within{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#333;font-size:14px;font-weight:400}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{margin-right:7px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border:none;width:auto;height:auto;display:flex;-webkit-text-decoration-line:none;text-decoration-line:none;top:0}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow:before{font-family:DataRails!important;content:\"\\ea15\";font-size:24px;color:#6d6e6f}:host ::ng-deep ng-select.ng-select.ng-select-opened .ng-select-container{border-radius:6px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#333;height:24px;padding:2px 16px;font-size:12px;margin:2px 4px 2px 0;background:#F0F1F4;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0!important;width:20px;display:flex;align-items:center;color:transparent;margin-left:4px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:before{font-family:DataRails!important;content:\"\\
|
|
2081
|
+
styles: ["@charset \"UTF-8\";:host{width:100%;height:32px}:host.textView::ng-deep{width:auto}:host.textView::ng-deep ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#0b5af9}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow{border:none;width:auto;height:auto;display:flex;-webkit-text-decoration-line:none;text-decoration-line:none;top:0}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow:before{font-family:DataRails!important;content:\"\\ea15\";font-size:24px;color:#333}:host.no-left-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}:host.no-right-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}:host.no-right-border ::ng-deep ng-select.ng-select .ng-select-container{border-right:none!important}:host.no-left-border ::ng-deep ng-select.ng-select .ng-select-container{border-left:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px;border:1px solid #9EA1AA;box-shadow:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container:hover{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container:focus-within{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#333;font-size:14px;font-weight:400}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{margin-right:7px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border:none;width:auto;height:auto;display:flex;-webkit-text-decoration-line:none;text-decoration-line:none;top:0}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow:before{font-family:DataRails!important;content:\"\\ea15\";font-size:24px;color:#6d6e6f}:host ::ng-deep ng-select.ng-select.ng-select-opened .ng-select-container{border-radius:6px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#333;height:24px;padding:2px 16px;font-size:12px;margin:2px 4px 2px 0;background:#F0F1F4;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0!important;width:20px;display:flex;align-items:center;color:transparent;margin-left:4px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:before{font-family:DataRails!important;content:\"\\ea64\";font-size:20px;color:#333}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon,:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#F0F1F4!important;border:1px solid #AEABAC!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow:before{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#bf1d30}:host.ng-invalid.ng-touched::ng-deep ng-select.ng-select .ng-select-container{border-color:#bf1d30}:host .dr-select__loading{position:relative;height:32px;width:24px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select{border:1px solid #DFE0E3;border-radius:4px!important;margin:8px 0;box-shadow:0 4px 8px 1px #00000040;background-color:#fff;overflow:hidden;padding:8px 0}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px;background:#FFFFFF}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#F5F5F5}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#EAEAFF;color:#333}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:normal!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option-disabled{cursor:default}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option-disabled[role=group]{font-size:14px;line-height:22px;color:#aeabac;cursor:default}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option-disabled[role=group]:not(:first-of-type){border-top:1px solid #DFE0E3}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option-disabled[role=group]:hover{background:#FFFFFF}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper{color:#333}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:97%;word-break:break-word;color:#6d6e6f;font-weight:400;font-size:12px;line-height:20px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#6d6e6f}\n"]
|
|
1998
2082
|
},] }
|
|
1999
2083
|
];
|
|
2000
2084
|
DrSelectComponent.ctorParameters = function () { return [
|
|
@@ -2134,88 +2218,6 @@
|
|
|
2134
2218
|
},] }
|
|
2135
2219
|
];
|
|
2136
2220
|
|
|
2137
|
-
exports.DateFromats = void 0;
|
|
2138
|
-
(function (DateFromats) {
|
|
2139
|
-
DateFromats["MAT_DEFAULT_DATE_FORMAT"] = "MM/DD/yyyy";
|
|
2140
|
-
DateFromats["DATE_INPUT_FORMAT"] = "YYYY/MM/DD";
|
|
2141
|
-
DateFromats["YEAR_FORMAT"] = "yyyy";
|
|
2142
|
-
DateFromats["MONTH_YEAR_FORMAT"] = "MM/yyyy";
|
|
2143
|
-
DateFromats["QUARTER_FORMAT"] = "Q/yyyy";
|
|
2144
|
-
DateFromats["WEEK_FORMAT"] = "w/yyyy";
|
|
2145
|
-
})(exports.DateFromats || (exports.DateFromats = {}));
|
|
2146
|
-
var CustomDateFormat = /** @class */ (function () {
|
|
2147
|
-
function CustomDateFormat() {
|
|
2148
|
-
this._parse = {
|
|
2149
|
-
dateInput: exports.DateFromats.DATE_INPUT_FORMAT,
|
|
2150
|
-
};
|
|
2151
|
-
this._display = {
|
|
2152
|
-
dateInput: exports.DateFromats.DATE_INPUT_FORMAT,
|
|
2153
|
-
monthYearLabel: 'MMM YYYY',
|
|
2154
|
-
dateA11yLabel: 'LL',
|
|
2155
|
-
monthYearA11yLabel: 'MMM YYYY',
|
|
2156
|
-
quarterYearLabel: 'Q/YYYY',
|
|
2157
|
-
yearLabel: 'YYYY'
|
|
2158
|
-
};
|
|
2159
|
-
}
|
|
2160
|
-
Object.defineProperty(CustomDateFormat.prototype, "parse", {
|
|
2161
|
-
get: function () {
|
|
2162
|
-
return this._parse;
|
|
2163
|
-
},
|
|
2164
|
-
set: function (parse) {
|
|
2165
|
-
this._parse = Object.assign({}, this._parse, parse);
|
|
2166
|
-
},
|
|
2167
|
-
enumerable: false,
|
|
2168
|
-
configurable: true
|
|
2169
|
-
});
|
|
2170
|
-
Object.defineProperty(CustomDateFormat.prototype, "display", {
|
|
2171
|
-
get: function () {
|
|
2172
|
-
return this._display;
|
|
2173
|
-
},
|
|
2174
|
-
set: function (display) {
|
|
2175
|
-
this._display = Object.assign({}, this._display, display);
|
|
2176
|
-
},
|
|
2177
|
-
enumerable: false,
|
|
2178
|
-
configurable: true
|
|
2179
|
-
});
|
|
2180
|
-
CustomDateFormat.prototype.updateDateFormat = function (parse, display) {
|
|
2181
|
-
this.parse = parse;
|
|
2182
|
-
if (!display) {
|
|
2183
|
-
display = parse;
|
|
2184
|
-
}
|
|
2185
|
-
this.display = display;
|
|
2186
|
-
};
|
|
2187
|
-
return CustomDateFormat;
|
|
2188
|
-
}());
|
|
2189
|
-
exports.DatePickerPeriodPosition = void 0;
|
|
2190
|
-
(function (DatePickerPeriodPosition) {
|
|
2191
|
-
DatePickerPeriodPosition[DatePickerPeriodPosition["END_OF_PERIOD"] = 0] = "END_OF_PERIOD";
|
|
2192
|
-
DatePickerPeriodPosition[DatePickerPeriodPosition["MIDDLE_OF_PERIOD"] = 1] = "MIDDLE_OF_PERIOD";
|
|
2193
|
-
DatePickerPeriodPosition[DatePickerPeriodPosition["START_OF_PERIOD"] = 2] = "START_OF_PERIOD";
|
|
2194
|
-
DatePickerPeriodPosition[DatePickerPeriodPosition["DEFAULT"] = 3] = "DEFAULT";
|
|
2195
|
-
})(exports.DatePickerPeriodPosition || (exports.DatePickerPeriodPosition = {}));
|
|
2196
|
-
exports.TimeframeOption = void 0;
|
|
2197
|
-
(function (TimeframeOption) {
|
|
2198
|
-
TimeframeOption["DAY"] = "day";
|
|
2199
|
-
TimeframeOption["MONTH"] = "month";
|
|
2200
|
-
TimeframeOption["QUARTER"] = "quarter";
|
|
2201
|
-
TimeframeOption["WEEK"] = "week";
|
|
2202
|
-
TimeframeOption["YEAR"] = "year";
|
|
2203
|
-
})(exports.TimeframeOption || (exports.TimeframeOption = {}));
|
|
2204
|
-
exports.CalendarView = void 0;
|
|
2205
|
-
(function (CalendarView) {
|
|
2206
|
-
CalendarView["FOR_DAYS"] = "month";
|
|
2207
|
-
CalendarView["FOR_MONTHS"] = "year";
|
|
2208
|
-
CalendarView["FOR_QUARTERS"] = "none";
|
|
2209
|
-
CalendarView["FOR_YEARS"] = "multi-year";
|
|
2210
|
-
})(exports.CalendarView || (exports.CalendarView = {}));
|
|
2211
|
-
exports.DateTags = void 0;
|
|
2212
|
-
(function (DateTags) {
|
|
2213
|
-
DateTags["TODAY"] = "today";
|
|
2214
|
-
DateTags["YESTERDAY"] = "yesterday";
|
|
2215
|
-
DateTags["THIS_MONTH"] = "this_month";
|
|
2216
|
-
DateTags["PREV_MONTH"] = "prev_month";
|
|
2217
|
-
})(exports.DateTags || (exports.DateTags = {}));
|
|
2218
|
-
|
|
2219
2221
|
var POPUP_POSITIONS = {
|
|
2220
2222
|
top: {
|
|
2221
2223
|
originX: 'center',
|
|
@@ -6611,7 +6613,7 @@
|
|
|
6611
6613
|
* We need keep local timestamp for Electron Application
|
|
6612
6614
|
* Issue in electron: when we select date, date select with -1 (if we're choosing 2023, output will be 2022)
|
|
6613
6615
|
*/
|
|
6614
|
-
var convertedValue = document.is_electron ? moment$1.unix(value) : moment$1.unix(value).utc();
|
|
6616
|
+
var convertedValue = document.is_electron ? moment$1.unix(value).utc() : moment$1.unix(value).utc();
|
|
6615
6617
|
this.innerValue = value ? convertedValue : value;
|
|
6616
6618
|
if (this.innerValue) {
|
|
6617
6619
|
this.tryToNormalaizeTimeframe();
|