@datarailsshared/datarailsshared 1.4.295 → 1.4.304
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 +70 -64
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.304.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +24 -24
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +25 -25
- package/esm2015/lib/date-tags/forecast-tag/forecast-tag.component.js +16 -15
- package/esm2015/lib/date-tags/quarter-tag/quarter-tag.component.js +14 -8
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +8 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +3 -2
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.js +3 -3
- package/fesm2015/datarailsshared-datarailsshared.js +38 -24
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/date-tags/quarter-tag/quarter-tag.component.d.ts +4 -2
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +4 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.295.tgz +0 -0
|
@@ -425,18 +425,18 @@
|
|
|
425
425
|
_this.forecastValue = undefined;
|
|
426
426
|
_this.isDateEventHappened = false;
|
|
427
427
|
_this.forecastTags = [
|
|
428
|
-
{ value: 0, label: '0+12' },
|
|
429
|
-
{ value: 1, label: '1+11' },
|
|
430
|
-
{ value: 2, label: '2+10' },
|
|
431
|
-
{ value: 3, label: '3+9' },
|
|
432
|
-
{ value: 4, label: '4+8' },
|
|
433
|
-
{ value: 5, label: '5+7' },
|
|
434
|
-
{ value: 6, label: '6+6' },
|
|
435
|
-
{ value: 7, label: '7+5' },
|
|
436
|
-
{ value: 8, label: '8+4' },
|
|
437
|
-
{ value: 9, label: '9+3' },
|
|
438
|
-
{ value: 10, label: '10+2' },
|
|
439
|
-
{ value: 11, label: '11+1' }
|
|
428
|
+
{ value: 0, label: '0+12', disabled: false },
|
|
429
|
+
{ value: 1, label: '1+11', disabled: false },
|
|
430
|
+
{ value: 2, label: '2+10', disabled: false },
|
|
431
|
+
{ value: 3, label: '3+9', disabled: false },
|
|
432
|
+
{ value: 4, label: '4+8', disabled: false },
|
|
433
|
+
{ value: 5, label: '5+7', disabled: false },
|
|
434
|
+
{ value: 6, label: '6+6', disabled: false },
|
|
435
|
+
{ value: 7, label: '7+5', disabled: false },
|
|
436
|
+
{ value: 8, label: '8+4', disabled: false },
|
|
437
|
+
{ value: 9, label: '9+3', disabled: false },
|
|
438
|
+
{ value: 10, label: '10+2', disabled: false },
|
|
439
|
+
{ value: 11, label: '11+1', disabled: false }
|
|
440
440
|
];
|
|
441
441
|
_this.initDateValue = null;
|
|
442
442
|
return _this;
|
|
@@ -465,28 +465,15 @@
|
|
|
465
465
|
: moment$8.utc().unix();
|
|
466
466
|
};
|
|
467
467
|
ForecastTagComponent.prototype.updateLockedDate = function () {
|
|
468
|
-
var
|
|
468
|
+
var _this = this;
|
|
469
469
|
var year = moment$8.unix(this.dateObj.date).year();
|
|
470
|
-
|
|
471
|
-
forecastTag.disabled =
|
|
470
|
+
this.forecastTags = this.forecastTags.map(function (forecastTag) {
|
|
471
|
+
forecastTag.disabled = _this.lockedDate.some(function (timestamp) {
|
|
472
472
|
var locked = moment$8.unix(timestamp);
|
|
473
473
|
return locked.month() === forecastTag.value && +locked.year() === +year;
|
|
474
474
|
});
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
try {
|
|
478
|
-
for (var _c = __values(this.forecastTags), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
479
|
-
var forecastTag = _d.value;
|
|
480
|
-
_loop_1(forecastTag);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
484
|
-
finally {
|
|
485
|
-
try {
|
|
486
|
-
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
487
|
-
}
|
|
488
|
-
finally { if (e_1) throw e_1.error; }
|
|
489
|
-
}
|
|
475
|
+
return forecastTag;
|
|
476
|
+
});
|
|
490
477
|
};
|
|
491
478
|
ForecastTagComponent.prototype.initName = function () {
|
|
492
479
|
if (!this.name) {
|
|
@@ -696,14 +683,24 @@
|
|
|
696
683
|
enumerable: false,
|
|
697
684
|
configurable: true
|
|
698
685
|
});
|
|
686
|
+
QuarterTagComponent.prototype.ngOnChanges = function () {
|
|
687
|
+
this.initTags();
|
|
688
|
+
};
|
|
699
689
|
QuarterTagComponent.prototype.ngOnInit = function () {
|
|
700
|
-
var e_1, _a;
|
|
701
690
|
this.initName();
|
|
691
|
+
this.initTags();
|
|
692
|
+
};
|
|
693
|
+
QuarterTagComponent.prototype.initName = function () {
|
|
694
|
+
if (!this.name) {
|
|
695
|
+
this.name = 'Quarter';
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
QuarterTagComponent.prototype.initTags = function () {
|
|
699
|
+
var e_1, _a;
|
|
702
700
|
this.quarters = this.getQuarterOptions();
|
|
703
701
|
try {
|
|
704
702
|
for (var _b = __values(this.quarters), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
705
703
|
var quarter = _c.value;
|
|
706
|
-
quarter.disabled = false;
|
|
707
704
|
if (quarter.isSelected) {
|
|
708
705
|
this.selectedValue = quarter;
|
|
709
706
|
this.chosenTagHandler(quarter);
|
|
@@ -719,11 +716,6 @@
|
|
|
719
716
|
finally { if (e_1) throw e_1.error; }
|
|
720
717
|
}
|
|
721
718
|
};
|
|
722
|
-
QuarterTagComponent.prototype.initName = function () {
|
|
723
|
-
if (!this.name) {
|
|
724
|
-
this.name = 'Quarter';
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
719
|
QuarterTagComponent.prototype.chosenTagHandler = function (quarter) {
|
|
728
720
|
var resultDate = moment$6.unix(quarter.value);
|
|
729
721
|
var resultTag = {
|
|
@@ -758,6 +750,7 @@
|
|
|
758
750
|
value: tempValue / 1000,
|
|
759
751
|
label: this.getQuarterLabel(tempValue),
|
|
760
752
|
isSelected: (i === 0),
|
|
753
|
+
disabled: false,
|
|
761
754
|
});
|
|
762
755
|
}
|
|
763
756
|
return to_return;
|
|
@@ -774,7 +767,7 @@
|
|
|
774
767
|
var quarterDate = moment$6.unix(quarter.value);
|
|
775
768
|
return !this.lockedDate.some(function (timestamp) {
|
|
776
769
|
var lockDate = moment$6.unix(timestamp);
|
|
777
|
-
if (lockDate.year() === quarterDate.year() && lockDate.
|
|
770
|
+
if (lockDate.year() === quarterDate.year() && lockDate.quarter() === quarterDate.quarter()) {
|
|
778
771
|
quarter.disabled = true;
|
|
779
772
|
return true;
|
|
780
773
|
}
|
|
@@ -6244,8 +6237,8 @@
|
|
|
6244
6237
|
var currentTimeframeOption = this.timeframeOptions.filter(function (option) { return option.value === _this._calendar.currentView; })[0];
|
|
6245
6238
|
var fullPeriodLabel = currentTimeframeOption.periodLabel();
|
|
6246
6239
|
if (this._calendar.currentView === exports.CalendarView.FOR_DAYS) {
|
|
6247
|
-
this.periodMonthLabel = fullPeriodLabel.
|
|
6248
|
-
this.periodYearLabel = fullPeriodLabel.
|
|
6240
|
+
this.periodMonthLabel = fullPeriodLabel.match(/[a-zA-Z]+/g).toString();
|
|
6241
|
+
this.periodYearLabel = fullPeriodLabel.match(/[0-9]+/g).toString();
|
|
6249
6242
|
}
|
|
6250
6243
|
else {
|
|
6251
6244
|
this.periodMonthLabel = '';
|
|
@@ -6330,6 +6323,16 @@
|
|
|
6330
6323
|
var noop = function () {
|
|
6331
6324
|
};
|
|
6332
6325
|
var ɵ0$2 = noop;
|
|
6326
|
+
var CustomDateAdapter = /** @class */ (function (_super) {
|
|
6327
|
+
__extends(CustomDateAdapter, _super);
|
|
6328
|
+
function CustomDateAdapter() {
|
|
6329
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6330
|
+
}
|
|
6331
|
+
CustomDateAdapter.prototype.getFirstDayOfWeek = function () {
|
|
6332
|
+
return 1;
|
|
6333
|
+
};
|
|
6334
|
+
return CustomDateAdapter;
|
|
6335
|
+
}(materialMomentAdapter.MomentDateAdapter));
|
|
6333
6336
|
var DrDatePickerComponent = /** @class */ (function () {
|
|
6334
6337
|
function DrDatePickerComponent(cdr, dateAdapter, datePickerService) {
|
|
6335
6338
|
var _this = this;
|
|
@@ -6535,6 +6538,7 @@
|
|
|
6535
6538
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6536
6539
|
providers: [
|
|
6537
6540
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true },
|
|
6541
|
+
{ provide: core.DateAdapter, useClass: CustomDateAdapter },
|
|
6538
6542
|
DrDatePickerService
|
|
6539
6543
|
],
|
|
6540
6544
|
styles: ["@charset \"UTF-8\";: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 #9EA1AA;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #AEABAC;background:#F0F1F4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6D6E6F transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\ea13\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;position:absolute;display:flex;align-items:center;justify-content:center;pointer-events:none}:host i{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}: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:#aeabac;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}:host input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}::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:#F5F5F5}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#F5F5F5;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#F5F5F5;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333}::ng-deep .mat-calendar-table-header-divider{display:none}::ng-deep .mat-calendar-body-label{color:#fff;padding:0}\n"]
|
|
@@ -6739,6 +6743,7 @@
|
|
|
6739
6743
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6740
6744
|
providers: [
|
|
6741
6745
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },
|
|
6746
|
+
{ provide: core.DateAdapter, useClass: CustomDateAdapter },
|
|
6742
6747
|
{ provide: DrDatePickerService }
|
|
6743
6748
|
],
|
|
6744
6749
|
styles: ["@charset \"UTF-8\";: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 #9EA1AA;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #AEABAC;background:#F0F1F4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6D6E6F transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\ea13\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;position:absolute;display:flex;align-items:center;justify-content:center;pointer-events:none}:host i{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}: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:#aeabac;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}:host input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}::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:#F5F5F5}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#F5F5F5;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#F5F5F5;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333}::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"]
|
|
@@ -8169,34 +8174,35 @@
|
|
|
8169
8174
|
exports.YearTagComponent = YearTagComponent;
|
|
8170
8175
|
exports["ɵa"] = components$1;
|
|
8171
8176
|
exports["ɵb"] = POPUP_ANIMATION;
|
|
8172
|
-
exports["ɵba"] =
|
|
8173
|
-
exports["ɵbb"] =
|
|
8174
|
-
exports["ɵbc"] =
|
|
8175
|
-
exports["ɵbd"] =
|
|
8177
|
+
exports["ɵba"] = DrChatCustomMessageDirective;
|
|
8178
|
+
exports["ɵbb"] = DrScenarioConfigurationComponent;
|
|
8179
|
+
exports["ɵbc"] = DrScenarioTagConfigurationComponent;
|
|
8180
|
+
exports["ɵbd"] = DrBadgeStatusComponent;
|
|
8181
|
+
exports["ɵbe"] = TreeviewItemComponent;
|
|
8176
8182
|
exports["ɵc"] = DrChatCustomMessageService;
|
|
8177
8183
|
exports["ɵd"] = DrChatMessageComponent;
|
|
8178
8184
|
exports["ɵe"] = DrChatFormComponent;
|
|
8179
8185
|
exports["ɵf"] = DrChatSuggestionsComponent;
|
|
8180
|
-
exports["ɵg"] =
|
|
8181
|
-
exports["ɵh"] =
|
|
8182
|
-
exports["ɵi"] =
|
|
8183
|
-
exports["ɵj"] =
|
|
8184
|
-
exports["ɵk"] =
|
|
8185
|
-
exports["ɵl"] =
|
|
8186
|
-
exports["ɵm"] =
|
|
8187
|
-
exports["ɵn"] =
|
|
8188
|
-
exports["ɵo"] =
|
|
8189
|
-
exports["ɵp"] =
|
|
8190
|
-
exports["ɵq"] =
|
|
8191
|
-
exports["ɵr"] =
|
|
8192
|
-
exports["ɵs"] =
|
|
8193
|
-
exports["ɵt"] =
|
|
8194
|
-
exports["ɵu"] =
|
|
8195
|
-
exports["ɵv"] =
|
|
8196
|
-
exports["ɵw"] =
|
|
8197
|
-
exports["ɵx"] =
|
|
8198
|
-
exports["ɵy"] =
|
|
8199
|
-
exports["ɵz"] =
|
|
8186
|
+
exports["ɵg"] = CustomDateAdapter;
|
|
8187
|
+
exports["ɵh"] = DrDatePickerComponent;
|
|
8188
|
+
exports["ɵi"] = DrDatePickerService;
|
|
8189
|
+
exports["ɵj"] = DrDatePickerWithTimeframeComponent;
|
|
8190
|
+
exports["ɵk"] = DrDatePickerFormatDirective;
|
|
8191
|
+
exports["ɵl"] = DrDatePickerCustomHeaderComponent;
|
|
8192
|
+
exports["ɵm"] = DrShowTimeframePipe;
|
|
8193
|
+
exports["ɵn"] = DrSelectAddItemComponent;
|
|
8194
|
+
exports["ɵo"] = TooltipInfoComponent;
|
|
8195
|
+
exports["ɵp"] = TooltipInfoSimpleComponent;
|
|
8196
|
+
exports["ɵq"] = TooltipNoBodyComponent;
|
|
8197
|
+
exports["ɵr"] = TooltipProcessDefaultComponent;
|
|
8198
|
+
exports["ɵs"] = DrDynamicTagModule;
|
|
8199
|
+
exports["ɵt"] = DrDynamicTagComponent;
|
|
8200
|
+
exports["ɵu"] = StepperComponent;
|
|
8201
|
+
exports["ɵv"] = DialogWrapperComponent;
|
|
8202
|
+
exports["ɵw"] = DialogModalWrapperComponent;
|
|
8203
|
+
exports["ɵx"] = DrChatMessageTextComponent;
|
|
8204
|
+
exports["ɵy"] = DrChatMessageFileComponent;
|
|
8205
|
+
exports["ɵz"] = DrDotFlashingComponent;
|
|
8200
8206
|
|
|
8201
8207
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8202
8208
|
|