@datarailsshared/datarailsshared 1.4.68-dragons → 1.4.69
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 +4 -10
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.69.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +5 -10
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.js +2 -3
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +1 -1
- package/fesm2015/datarailsshared-datarailsshared.js +4 -10
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +1 -1
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +2 -3
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.68-dragons.tgz +0 -0
|
@@ -2875,7 +2875,7 @@
|
|
|
2875
2875
|
selector: 'dr-dropdown',
|
|
2876
2876
|
template: "<div #menuContainer\n (mouseleave)=\"onMouseLeave()\"\n (mouseenter)=\"onMouseEnter()\"\n (clickOutside)=\"onClickedOutside()\"\n [drDropdownPosition]=\"option\"\n #dropdownPosition=\"dropdownPosition\"\n [position]=\"position\"\n [class]=\"containerClass\"\n class=\"dr-dropdown\">\n <div class=\"dr-dropdown__container\">\n <div *ngFor=\"let act of list | drDropdownItemShowPipe\"\n (click)=\"action(act)\"\n [drTooltip]=\"tooltipToShow(act)\"\n [drTooltipPosition]=\"tooltipPosition(dropdownPosition.widthMoreRight)\"\n [drTooltipOptions]=\"{ withoutArrow: true }\"\n [drTooltipClass]=\"'dr-dropdown__tooltip'\"\n class=\"dr-dropdown__container__item\"\n [class.item-disabled]=\"disabled(act)\"\n [class.item-selected]=\"selected(act)\"\n [class.separate-line]=\"act.separateLine\">\n <i *ngIf=\"act.icon\" [class]=\"act.icon\"></i>\n <span class=\"dr-dropdown__container__item__text\">{{act.title}}</span>\n <i *ngFor=\"let actionIcon of act.actionIcons\"\n [class]=\"actionIcon.icon\"\n [class.showOnHover]=\"actionIcon.showOnHover\"\n (click)=\"onActionIconClick($event, actionIcon, act.data)\"></i>\n <i *ngIf=\"act.children?.length\" class=\"dr-icon-arrow-right\"></i>\n <dr-dropdown *ngIf=\"act.children?.length\" [options]=\"act.childOptions\"></dr-dropdown>\n </div>\n </div>\n</div>\n",
|
|
2877
2877
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2878
|
-
styles: ["::ng-deep .dr-dropdown__container__item .dr-dropdown{visibility:hidden;transition-delay:.2s}::ng-deep .dr-dropdown__container__item:hover>*>.dr-dropdown{visibility:visible;transition-delay:0s}::ng-deep .dr-dropdown__tooltip>.default-content{max-width:300px;white-space:normal!important}.dr-dropdown{position:
|
|
2878
|
+
styles: ["::ng-deep .dr-dropdown__container__item .dr-dropdown{visibility:hidden;transition-delay:.2s}::ng-deep .dr-dropdown__container__item:hover>*>.dr-dropdown{visibility:visible;transition-delay:0s}::ng-deep .dr-dropdown__tooltip>.default-content{max-width:300px;white-space:normal!important}.dr-dropdown{position:absolute;z-index:-1;top:0;left:0;width:auto}.dr-dropdown__container{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 4px 8px 1px #00000040;padding:8px 0;overflow-y:auto;max-height:60vh}.dr-dropdown__container__item{display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}.dr-dropdown__container__item.separate-line{border-top:1px solid #BCBCBC}.dr-dropdown__container__item:hover{background-color:#f9faff}.dr-dropdown__container__item:hover .showOnHover{visibility:visible}.dr-dropdown__container__item.item-selected{background:#F3F7FF}.dr-dropdown__container__item.item-disabled,.dr-dropdown__container__item.item-disabled i,.dr-dropdown__container__item.item-disabled .dr-dropdown__container__item__text{color:#bcbcbc}.dr-dropdown__container__item i:first-child{margin-right:8px}.dr-dropdown__container__item__text{margin-right:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dr-dropdown__container__item i,.dr-dropdown__container__item__text{color:#151b3f}.dr-dropdown__container__item i{color:#4e566c}.dr-dropdown__container__item i:hover{color:#4646ce}.dr-dropdown__container__item .showOnHover{visibility:hidden}.dr-dropdown.content-top{transform:translate(-50%,-100%)}.dr-dropdown.content-top-left{transform:translate(-100%,-100%)}.dr-dropdown.content-bottom{transform:translate(-50%,50%)}.dr-dropdown.content-bottom-left{transform:translate(-90%,35%)}.dr-dropdown.content-bottom-right{transform:translateY(15%)}.dr-dropdown.content-left{transform:translate(-100%)}.dr-dropdown.content-left-center{transform:translate(-100%,-50%)}.dr-dropdown.content-right{transform:translate(5%)}\n"]
|
|
2879
2879
|
},] }
|
|
2880
2880
|
];
|
|
2881
2881
|
DrDropdownComponent.ctorParameters = function () { return [
|
|
@@ -3916,7 +3916,6 @@
|
|
|
3916
3916
|
}
|
|
3917
3917
|
});
|
|
3918
3918
|
_calendar.viewChanged.pipe(operators.takeUntil(this._destroyed)).subscribe(function () { return _this.setPeriodLabels(); });
|
|
3919
|
-
this.datePickerService.calendarInstance = _calendar;
|
|
3920
3919
|
}
|
|
3921
3920
|
DrDatePickerCustomHeaderComponent.prototype.ngOnDestroy = function () {
|
|
3922
3921
|
this._destroyed.next();
|
|
@@ -3962,7 +3961,7 @@
|
|
|
3962
3961
|
var unadaptedDate = this._dateAdapter.addCalendarMonths(this._calendar.activeDate, monthsInQuarter * (quarterNumber - this.selectedQuarter));
|
|
3963
3962
|
this._calendar.activeDate = unadaptedDate;
|
|
3964
3963
|
this.datePickerService.updatedQuarter$.next(moment$1(unadaptedDate));
|
|
3965
|
-
this.datePickerService.
|
|
3964
|
+
this.datePickerService.calendarInstance.close();
|
|
3966
3965
|
};
|
|
3967
3966
|
DrDatePickerCustomHeaderComponent.prototype.pagingClicked = function (forward) {
|
|
3968
3967
|
this.pagingSetup[this._calendar.currentView] && this.pagingSetup[this._calendar.currentView](forward);
|
|
@@ -4055,7 +4054,7 @@
|
|
|
4055
4054
|
configurable: true
|
|
4056
4055
|
});
|
|
4057
4056
|
DrDatePickerComponent.prototype.ngAfterViewInit = function () {
|
|
4058
|
-
this.datePickerService.
|
|
4057
|
+
this.datePickerService.calendarInstance = this.datePicker;
|
|
4059
4058
|
this.datePicker.startView = this.calendarViewsTimeframeMapping[this.datePickerService.timeframe];
|
|
4060
4059
|
};
|
|
4061
4060
|
DrDatePickerComponent.prototype.ngOnDestroy = function () {
|
|
@@ -4087,12 +4086,7 @@
|
|
|
4087
4086
|
}
|
|
4088
4087
|
};
|
|
4089
4088
|
DrDatePickerComponent.prototype.chosenPeriodHandler = function (chosenDate, timeframe) {
|
|
4090
|
-
if (this.datePickerService.timeframe ===
|
|
4091
|
-
this.datePickerService.calendarInstance.currentView = exports.CalendarView.FOR_QUARTERS;
|
|
4092
|
-
this.datePickerService.calendarInstance.activeDate = chosenDate;
|
|
4093
|
-
this.cdr.detectChanges();
|
|
4094
|
-
}
|
|
4095
|
-
else if (this.datePickerService.timeframe === timeframe) {
|
|
4089
|
+
if (this.datePickerService.timeframe === timeframe) {
|
|
4096
4090
|
this.setValueFromMoment(chosenDate);
|
|
4097
4091
|
this.datePicker.close();
|
|
4098
4092
|
}
|