@datarailsshared/datarailsshared 1.4.48-bratans → 1.4.50-dragons
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 +56 -100
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.50-dragons.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +0 -1
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +1 -2
- package/esm2015/lib/dr-inputs/button/button.component.js +2 -2
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +9 -19
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.js +8 -23
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +4 -32
- package/esm2015/lib/dr-inputs/dr-inputs.module.js +2 -4
- package/esm2015/lib/dr-tabs/dr-tabs.component.js +5 -3
- package/esm2015/lib/models/datePicker.js +1 -3
- package/esm2015/lib/utils/dr-shared-utils.js +27 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/datarailsshared-datarailsshared.js +48 -88
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/button/button.component.d.ts +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.d.ts +1 -3
- package/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.d.ts +1 -2
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +0 -2
- package/lib/dr-tabs/dr-tabs.component.d.ts +1 -0
- package/lib/models/datePicker.d.ts +1 -4
- package/lib/utils/dr-shared-utils.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/datarailsshared-datarailsshared-1.4.48-bratans.tgz +0 -0
- package/esm2015/lib/dr-inputs/date-pickers/dr-show-timeframe.pipe.js +0 -12
- package/lib/dr-inputs/date-pickers/dr-show-timeframe.pipe.d.ts +0 -6
|
@@ -2399,7 +2399,7 @@
|
|
|
2399
2399
|
{ type: i0.Component, args: [{
|
|
2400
2400
|
selector: 'dr-button',
|
|
2401
2401
|
template: "<button (click)=\"onClick($event)\" [disabled]=\"_disabled\" [attr.is-loading]=\"_isLoading\" [attr.bold]=\"isBold\"\n [attr.icon]=\"!!icon\" [attr.iconAfterLabel]=\"!!iconAfterLabel\" [attr.theme]=\"theme\">\n <ng-container *ngIf=\"!_isLoading\">\n <i *ngIf=\"icon\" class=\"dr\" [class]=\"icon\" [style.color]=\"iconColor || 'inherit'\"></i>\n <ng-content></ng-content>\n <i *ngIf=\"theme === 'dropdown'\" class=\"dr-icon-arrow-down\"></i>\n <i *ngIf=\"iconAfterLabel\" class=\"dr dr-last\" [class]=\"iconAfterLabel\" [style.color]=\"iconColor || 'inherit'\"></i>\n </ng-container>\n <i *ngIf=\"_isLoading\" class=\"dr dr-spinner dr-icon-load\"></i>\n</button>\n",
|
|
2402
|
-
styles: [":host{display:inline-block}:host.disabled,:host.loading{pointer-events:none}:host button[theme]{cursor:pointer;border-radius:16px;padding:5px 16px;font-family:\"Poppins\";font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#4e566c;border:1px solid #7F7FDD;display:flex;justify-content:space-between;align-items:center;height:32px}:host button[theme] .dr{padding:0;margin-left:5.35px;margin-right:8.64px}:host button[theme] .dr-spinner{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}@keyframes rotate{0%{transform:rotate()}to{transform:rotate(360deg)}}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=secondary]{padding:5px 16px;background:#FFFFFF;border-radius:16px;min-width:90px}:host button[theme][theme~=split-secondary-first]:hover:not([disabled]),:host button[theme][theme~=split-secondary-last]:hover:not([disabled]),:host button[theme][theme~=secondary]:hover:not([disabled]){color:#4e566c;transition:.2ms ease-in all;background:#F2F2FB;box-shadow:0 4px 14px #0000001a;border:1px solid #4646CE}:host button[theme][theme~=split-secondary-first]:active,:host button[theme][theme~=split-secondary-last]:active,:host button[theme][theme~=secondary]:active{box-shadow:none;background:#F2F2FB}:host button[theme][theme~=split-secondary-first][disabled],:host button[theme][theme~=split-secondary-last][disabled],:host button[theme][theme~=secondary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-secondary-first][is-loading=true],:host button[theme][theme~=split-secondary-last][is-loading=true],:host button[theme][theme~=secondary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-last],:host button[theme][theme~=primary]{background:#4646CE;color:#fff;border:none;min-width:90px}:host button[theme][theme~=split-primary-first]:hover:not([disabled]),:host button[theme][theme~=split-primary-last]:hover:not([disabled]),:host button[theme][theme~=primary]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#25258C 0%,#4646CE 100%);box-shadow:0 4px 14px #0000001a;border:none}:host button[theme][theme~=split-primary-first]:active,:host button[theme][theme~=split-primary-last]:active,:host button[theme][theme~=primary]:active{background:#25258C}:host button[theme][theme~=split-primary-first][disabled],:host button[theme][theme~=split-primary-last][disabled],:host button[theme][theme~=primary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-primary-first][is-loading=true],:host button[theme][theme~=split-primary-last][is-loading=true],:host button[theme][theme~=primary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first] .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=primary] .dr{margin:0}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover,:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{min-width:unset;border-bottom-right-radius:0;border-top-right-radius:0;padding-left:10px;padding-right:8px}:host button[theme][theme~=split-secondary-first][icon=true],:host button[theme][theme~=split-secondary-first]:hover[icon=true],:host button[theme][theme~=split-primary-first][icon=true],:host button[theme][theme~=split-primary-first]:hover[icon=true]{padding-left:6px;padding-right:2px}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{border-right:1px solid #fff!important}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover{border-right:none!important}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover,:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{min-width:unset;border-bottom-left-radius:0;border-top-left-radius:0;padding-left:8px;padding-right:10px}:host button[theme][theme~=split-secondary-last][icon=true],:host button[theme][theme~=split-secondary-last]:hover[icon=true],:host button[theme][theme~=split-primary-last][icon=true],:host button[theme][theme~=split-primary-last]:hover[icon=true]{padding-left:2px;padding-right:6px}:host button[theme][theme~=split-secondary-last] .dr,:host button[theme][theme~=split-secondary-last]:hover .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=split-primary-last]:hover .dr{margin:0}:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{border-left:none}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover{margin-left:-1px}:host button[theme][theme~=danger]{background:#BF1D30;color:#fff;border:none;min-width:90px}:host button[theme][theme~=danger]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#740e1a 0%,#BF1D30 100%);box-shadow:0 4px 14px #0000001a;border-radius:16px;border:none}:host button[theme][theme~=danger]:active{background:#740e1a}:host button[theme][theme~=danger][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=danger][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=ghost]{background:none;border:none;color:#151b3f;padding:4px 8px}:host button[theme][theme~=ghost] .dr{margin-left:4.5px;margin-right:12.5px}:host button[theme][theme~=ghost]:hover:not([disabled]){color:#4646ce;background:#F2F2FB;border-radius:4px}:host button[theme][theme~=ghost][disabled]{color:#727583;cursor:default;pointer-events:none}:host button[theme][theme~=text-link]{background:none;border:none;color:#0b5af9}:host button[theme][theme~=text-link][disabled]{color:#727583;pointer-events:none}:host button[theme][theme~=primary-icon]{padding:8px;width:28px;height:28px;justify-content:center;color:#fff;background:#4646CE;border:none}:host button[theme][theme~=primary-icon]:hover,:host button[theme][theme~=primary-icon]:active{background:linear-gradient(96.89deg,#131318 0%,#4646CE 100%)}:host button[theme][theme~=primary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;cursor:default;pointer-events:none}:host button[theme][theme~=primary-icon] .dr{margin:0}:host button[theme][theme~=secondary-icon]{background:white;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:1px solid #7F7FDD}:host button[theme][theme~=secondary-icon]:hover,:host button[theme][theme~=secondary-icon]:active{color:#4646ce;background:#F2F2FB}:host button[theme][theme~=secondary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=secondary-icon] .dr{margin:0}:host button[theme][theme~=simple-text]{color:#0c142b;border:none;background:none}:host button[theme][theme~=simple-text] .dr{margin:0 8px 0 0}:host button[theme][theme~=icon]{background:none;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:none}:host button[theme][theme~=icon]:hover,:host button[theme][theme~=icon]:active{background:#F0F3FC;color:#4646ce}:host button[theme][theme~=icon][disabled]{color:#bcbcbc;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=icon][disabled]:hover,:host button[theme][theme~=icon][disabled]:active{background:none}:host button[theme][theme~=icon] .dr{margin:0}:host button[theme][theme~=dropdown]{
|
|
2402
|
+
styles: [":host{display:inline-block}:host.disabled,:host.loading{pointer-events:none}:host button[theme]{cursor:pointer;border-radius:16px;padding:5px 16px;font-family:\"Poppins\";font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#4e566c;border:1px solid #7F7FDD;display:flex;justify-content:space-between;align-items:center;height:32px}:host button[theme] .dr{padding:0;margin-left:5.35px;margin-right:8.64px}:host button[theme] .dr-spinner{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}@keyframes rotate{0%{transform:rotate()}to{transform:rotate(360deg)}}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=secondary]{padding:5px 16px;background:#FFFFFF;border-radius:16px;min-width:90px}:host button[theme][theme~=split-secondary-first]:hover:not([disabled]),:host button[theme][theme~=split-secondary-last]:hover:not([disabled]),:host button[theme][theme~=secondary]:hover:not([disabled]){color:#4e566c;transition:.2ms ease-in all;background:#F2F2FB;box-shadow:0 4px 14px #0000001a;border:1px solid #4646CE}:host button[theme][theme~=split-secondary-first]:active,:host button[theme][theme~=split-secondary-last]:active,:host button[theme][theme~=secondary]:active{box-shadow:none;background:#F2F2FB}:host button[theme][theme~=split-secondary-first][disabled],:host button[theme][theme~=split-secondary-last][disabled],:host button[theme][theme~=secondary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-secondary-first][is-loading=true],:host button[theme][theme~=split-secondary-last][is-loading=true],:host button[theme][theme~=secondary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-last],:host button[theme][theme~=primary]{background:#4646CE;color:#fff;border:none;min-width:90px}:host button[theme][theme~=split-primary-first]:hover:not([disabled]),:host button[theme][theme~=split-primary-last]:hover:not([disabled]),:host button[theme][theme~=primary]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#25258C 0%,#4646CE 100%);box-shadow:0 4px 14px #0000001a;border:none}:host button[theme][theme~=split-primary-first]:active,:host button[theme][theme~=split-primary-last]:active,:host button[theme][theme~=primary]:active{background:#25258C}:host button[theme][theme~=split-primary-first][disabled],:host button[theme][theme~=split-primary-last][disabled],:host button[theme][theme~=primary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-primary-first][is-loading=true],:host button[theme][theme~=split-primary-last][is-loading=true],:host button[theme][theme~=primary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first] .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=primary] .dr{margin:0}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover,:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{min-width:unset;border-bottom-right-radius:0;border-top-right-radius:0;padding-left:10px;padding-right:8px}:host button[theme][theme~=split-secondary-first][icon=true],:host button[theme][theme~=split-secondary-first]:hover[icon=true],:host button[theme][theme~=split-primary-first][icon=true],:host button[theme][theme~=split-primary-first]:hover[icon=true]{padding-left:6px;padding-right:2px}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{border-right:1px solid #fff!important}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover{border-right:none!important}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover,:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{min-width:unset;border-bottom-left-radius:0;border-top-left-radius:0;padding-left:8px;padding-right:10px}:host button[theme][theme~=split-secondary-last][icon=true],:host button[theme][theme~=split-secondary-last]:hover[icon=true],:host button[theme][theme~=split-primary-last][icon=true],:host button[theme][theme~=split-primary-last]:hover[icon=true]{padding-left:2px;padding-right:6px}:host button[theme][theme~=split-secondary-last] .dr,:host button[theme][theme~=split-secondary-last]:hover .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=split-primary-last]:hover .dr{margin:0}:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{border-left:none}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover{margin-left:-1px}:host button[theme][theme~=danger]{background:#BF1D30;color:#fff;border:none;min-width:90px}:host button[theme][theme~=danger]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#740e1a 0%,#BF1D30 100%);box-shadow:0 4px 14px #0000001a;border-radius:16px;border:none}:host button[theme][theme~=danger]:active{background:#740e1a}:host button[theme][theme~=danger][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=danger][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=ghost]{background:none;border:none;color:#151b3f;padding:4px 8px}:host button[theme][theme~=ghost] .dr{margin-left:4.5px;margin-right:12.5px}:host button[theme][theme~=ghost]:hover:not([disabled]){color:#4646ce;background:#F2F2FB;border-radius:4px}:host button[theme][theme~=ghost][disabled]{color:#727583;cursor:default;pointer-events:none}:host button[theme][theme~=text-link]{background:none;border:none;color:#0b5af9}:host button[theme][theme~=text-link][disabled]{color:#727583;pointer-events:none}:host button[theme][theme~=primary-icon]{padding:8px;width:28px;height:28px;justify-content:center;color:#fff;background:#4646CE;border:none}:host button[theme][theme~=primary-icon]:hover,:host button[theme][theme~=primary-icon]:active{background:linear-gradient(96.89deg,#131318 0%,#4646CE 100%)}:host button[theme][theme~=primary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;cursor:default;pointer-events:none}:host button[theme][theme~=primary-icon] .dr{margin:0}:host button[theme][theme~=secondary-icon]{background:white;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:1px solid #7F7FDD}:host button[theme][theme~=secondary-icon]:hover,:host button[theme][theme~=secondary-icon]:active{color:#4646ce;background:#F2F2FB}:host button[theme][theme~=secondary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=secondary-icon] .dr{margin:0}:host button[theme][theme~=simple-text]{color:#0c142b;border:none;background:none}:host button[theme][theme~=simple-text] .dr{margin:0 8px 0 0}:host button[theme][theme~=icon]{background:none;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:none}:host button[theme][theme~=icon]:hover,:host button[theme][theme~=icon]:active{background:#F0F3FC;color:#4646ce}:host button[theme][theme~=icon][disabled]{color:#bcbcbc;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=icon][disabled]:hover,:host button[theme][theme~=icon][disabled]:active{background:none}:host button[theme][theme~=icon] .dr{margin:0}:host button[theme][theme~=dropdown],:host button[theme][theme~=primary-square]{background:#FFFFFF;border-radius:6px;border:1px solid #C3C4CE;box-shadow:none;min-width:unset}:host button[theme][theme~=dropdown]:hover,:host button[theme][theme~=primary-square]:hover{border-color:#85889c}:host button[theme][theme~=dropdown]:active,:host button[theme][theme~=primary-square]:active{border-color:#4646ce}:host button[theme][theme~=dropdown] i:first-child,:host button[theme][theme~=primary-square] i:first-child{margin-right:3px}:host button[theme][theme~=dropdown] i:last-child,:host button[theme][theme~=primary-square] i:last-child{margin-left:3px}:host button[theme][theme~=dropdown]{padding:0 8px}:host button[theme][theme~=primary-square]{padding:0;-webkit-user-select:none;user-select:none}:host button[theme][theme~=primary-square]:hover{background-color:#f9f7ff;border:1px solid #7E828E}:host button[theme][theme~=primary-square]:active{background-color:#f2f2fb;border:1px solid #4646CE}:host button[theme][theme~=primary-square][disabled]{opacity:.6;pointer-events:none}:host button[theme][theme~=link-btn]{padding:5px 8px;border:none;background:none;border-radius:5px;color:#0c142b}:host button[theme][theme~=link-btn] .dr{margin:0 4px 0 0}:host button[theme][theme~=link-btn] .dr-last{margin-right:0;margin-left:4px}:host button[theme][theme~=link-btn]:hover{background:#F2F2FB;color:#4646ce}:host button[theme][theme~=link-btn]:active{background:#F2F2FB;color:#25258c}:host button[theme][theme~=link-btn]:disabled{background:none;color:#727583}:host button[theme][theme~=link-btn]:disabled .dr{color:#bcbcbc}:host button[theme][bold=true]{font-weight:600}:host button[theme][icon=true]:not([theme~=\"primary-square\"]){padding-left:8px}:host button[theme][icon=false]{justify-content:center}:host.dr-button-selected button[theme][theme~=primary-square]{background-color:#f2f2fb;border:1px solid #4646CE}\n"]
|
|
2403
2403
|
},] }
|
|
2404
2404
|
];
|
|
2405
2405
|
DrButtonComponent.ctorParameters = function () { return []; };
|
|
@@ -3088,6 +3088,7 @@
|
|
|
3088
3088
|
var DrTabsComponent = /** @class */ (function () {
|
|
3089
3089
|
function DrTabsComponent() {
|
|
3090
3090
|
this.selectedTab = 0;
|
|
3091
|
+
this.noBodyPadding = false;
|
|
3091
3092
|
this.selectedTabChange = new i0.EventEmitter();
|
|
3092
3093
|
}
|
|
3093
3094
|
DrTabsComponent.prototype.selectedIndexChange = function ($event) {
|
|
@@ -3099,8 +3100,8 @@
|
|
|
3099
3100
|
DrTabsComponent.decorators = [
|
|
3100
3101
|
{ type: i0.Component, args: [{
|
|
3101
3102
|
selector: 'dr-tabs',
|
|
3102
|
-
template: "<mat-tab-group disableRipple [selectedIndex]=\"selectedTab\"\n (selectedIndexChange)=\"selectedIndexChange($event)\"\n [class.with-radio]=\"withRadio\"\n [class.vertical]=\"vertical\"\n [animationDuration]=\" vertical ? '0ms' : '500ms'\">\n <mat-tab *ngFor=\"let tab of tabsContentList; let index = index\" label=\"{{tab.label}}\" [disabled]=\"tab.disabled\" >\n <ng-container *ngIf=\"withRadio\">\n <ng-template mat-tab-label>\n <dr-radio-button [value]=\"index\"\n [(ngModel)]=\"selectedTab\">\n </dr-radio-button>\n {{tab.label}}\n </ng-template>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\" ></ng-container>\n </mat-tab>\n</mat-tab-group>\n",
|
|
3103
|
-
styles: [":host{width:100%}:host ::ng-deep .mat-tab-group,:host ::ng-deep .mat-tab-body-wrapper{height:100%}:host ::ng-deep .mat-tab-nav-bar,:host ::ng-deep .mat-tab-header{border-bottom:1px solid #D5DAE5}:host ::ng-deep .mat-tab-labels{padding:0 17px}:host ::ng-deep .mat-tab-label{padding:0 8px;min-width:0;height:38px;opacity:1}:host ::ng-deep .mat-tab-label:not(:last-child){margin-right:21px}:host ::ng-deep .mat-tab-label-active .mat-tab-label-content{color:#579bf2;font-weight:700}:host ::ng-deep .mat-tab-label-content{font-weight:400;font-size:14px;line-height:22px;color:#51566f;font-family:\"Poppins\",sans-serif}:host ::ng-deep .mat-ink-bar{height:3px;border-radius:5px;background-color:#579bf2!important}:host ::ng-deep .with-radio .mat-tab-labels{padding:0;margin-bottom:8px}:host ::ng-deep .with-radio .mat-tab-label{padding:8px 16px;min-width:0;flex-grow:1;justify-content:start;height:38px;opacity:1}:host ::ng-deep .with-radio .mat-tab-label:not(:last-child){margin-right:8px}:host ::ng-deep .with-radio .mat-tab-label-active{background:#F6F7F8;border-radius:3px}:host ::ng-deep .with-radio .mat-tab-label-active .mat-tab-label-content{color:#0c142b;font-weight:600}:host ::ng-deep .with-radio .mat-ink-bar{display:none!important}:host ::ng-deep .vertical.mat-tab-group{flex-direction:row}:host ::ng-deep .vertical .mat-tab-header{border-bottom:none}:host ::ng-deep .vertical .mat-tab-
|
|
3103
|
+
template: "<mat-tab-group disableRipple [selectedIndex]=\"selectedTab\"\n (selectedIndexChange)=\"selectedIndexChange($event)\"\n [class.with-radio]=\"withRadio\"\n [class.vertical]=\"vertical\"\n [class.no-body-padding]=\"noBodyPadding\"\n [animationDuration]=\" vertical ? '0ms' : '500ms'\">\n <mat-tab *ngFor=\"let tab of tabsContentList; let index = index\" label=\"{{tab.label}}\" [disabled]=\"tab.disabled\" >\n <ng-container *ngIf=\"withRadio\">\n <ng-template mat-tab-label>\n <dr-radio-button [value]=\"index\"\n [(ngModel)]=\"selectedTab\">\n </dr-radio-button>\n {{tab.label}}\n </ng-template>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\" ></ng-container>\n </mat-tab>\n</mat-tab-group>\n",
|
|
3104
|
+
styles: [":host{width:100%}:host ::ng-deep .mat-tab-group,:host ::ng-deep .mat-tab-body-wrapper{height:100%}:host ::ng-deep .mat-tab-group{font-family:\"Poppins\",sans-serif}:host ::ng-deep .mat-tab-nav-bar,:host ::ng-deep .mat-tab-header{border-bottom:1px solid #D5DAE5}:host ::ng-deep .mat-tab-labels{padding:0 17px}:host ::ng-deep .mat-tab-label{padding:0 8px;min-width:0;height:38px;opacity:1}:host ::ng-deep .mat-tab-label:not(:last-child){margin-right:21px}:host ::ng-deep .mat-tab-label-active .mat-tab-label-content{color:#579bf2;font-weight:700}:host ::ng-deep .mat-tab-label-content{font-weight:400;font-size:14px;line-height:22px;color:#51566f;font-family:\"Poppins\",sans-serif}:host ::ng-deep .mat-ink-bar{height:3px;border-radius:5px;background-color:#579bf2!important}:host ::ng-deep .with-radio .mat-tab-labels{padding:0;margin-bottom:8px}:host ::ng-deep .with-radio .mat-tab-label{padding:8px 16px;min-width:0;flex-grow:1;justify-content:start;height:38px;opacity:1}:host ::ng-deep .with-radio .mat-tab-label:not(:last-child){margin-right:8px}:host ::ng-deep .with-radio .mat-tab-label-active{background:#F6F7F8;border-radius:3px}:host ::ng-deep .with-radio .mat-tab-label-active .mat-tab-label-content{color:#0c142b;font-weight:600}:host ::ng-deep .with-radio .mat-ink-bar{display:none!important}:host ::ng-deep .vertical.mat-tab-group{flex-direction:row}:host ::ng-deep .vertical .mat-tab-header{border-bottom:none}:host ::ng-deep .vertical .mat-tab-label-container{border-right:1px solid #D5DAE5}:host ::ng-deep .vertical .mat-tab-label-container .mat-tab-labels{flex-direction:column;padding:0}:host ::ng-deep .vertical .mat-ink-bar{display:none!important}:host ::ng-deep .vertical .mat-tab-label{border-bottom:1px solid #D5DAE5;margin:0!important;justify-content:flex-start;padding:1rem 2rem;height:40px}:host ::ng-deep .vertical .mat-tab-label:before{content:\"\";width:2px;height:100%;display:flex;position:absolute;top:0;left:0}:host ::ng-deep .vertical .mat-tab-label-active{background-color:#f3f7ff}:host ::ng-deep .vertical .mat-tab-label-active:before{background-color:#151a41}:host ::ng-deep .vertical .mat-tab-label-active .mat-tab-label-content{font-weight:normal;color:#151a41}:host ::ng-deep .vertical .mat-tab-body-wrapper{width:100%;padding:16px}:host ::ng-deep mat-tab-group.no-body-padding .mat-tab-body-wrapper{padding:0}\n"]
|
|
3104
3105
|
},] }
|
|
3105
3106
|
];
|
|
3106
3107
|
DrTabsComponent.ctorParameters = function () { return []; };
|
|
@@ -3108,6 +3109,7 @@
|
|
|
3108
3109
|
selectedTab: [{ type: i0.Input }],
|
|
3109
3110
|
withRadio: [{ type: i0.Input }],
|
|
3110
3111
|
vertical: [{ type: i0.Input }],
|
|
3112
|
+
noBodyPadding: [{ type: i0.Input }],
|
|
3111
3113
|
selectedTabChange: [{ type: i0.Output }],
|
|
3112
3114
|
tabsContentList: [{ type: i0.ContentChildren, args: [DrTabComponent,] }]
|
|
3113
3115
|
};
|
|
@@ -3465,7 +3467,6 @@
|
|
|
3465
3467
|
DateFromats["YEAR_FORMAT"] = "yyyy";
|
|
3466
3468
|
DateFromats["MONTH_YEAR_FORMAT"] = "MM/yyyy";
|
|
3467
3469
|
DateFromats["QUARTER_FORMAT"] = "Q/yyyy";
|
|
3468
|
-
DateFromats["WEEK_FORMAT"] = "W/yyyy";
|
|
3469
3470
|
})(exports.DateFromats || (exports.DateFromats = {}));
|
|
3470
3471
|
var CustomDateFormat = /** @class */ (function () {
|
|
3471
3472
|
function CustomDateFormat() {
|
|
@@ -3522,7 +3523,6 @@
|
|
|
3522
3523
|
TimeframeOption["DAY"] = "day";
|
|
3523
3524
|
TimeframeOption["MONTH"] = "month";
|
|
3524
3525
|
TimeframeOption["QUARTER"] = "quarter";
|
|
3525
|
-
TimeframeOption["WEEK"] = "week";
|
|
3526
3526
|
TimeframeOption["YEAR"] = "year";
|
|
3527
3527
|
})(exports.TimeframeOption || (exports.TimeframeOption = {}));
|
|
3528
3528
|
exports.CalendarView = void 0;
|
|
@@ -3613,34 +3613,14 @@
|
|
|
3613
3613
|
},] }
|
|
3614
3614
|
];
|
|
3615
3615
|
|
|
3616
|
-
var
|
|
3617
|
-
function
|
|
3618
|
-
this.isTimeframeSelectionEnabled = false;
|
|
3619
|
-
this.timeframe = exports.TimeframeOption.DAY;
|
|
3620
|
-
this.format$ = new rxjs.BehaviorSubject(exports.DateFromats.MAT_DEFAULT_DATE_FORMAT);
|
|
3621
|
-
this.updatedQuarter$ = new rxjs.Subject();
|
|
3622
|
-
this.availableTimeframes = [
|
|
3623
|
-
exports.TimeframeOption.DAY,
|
|
3624
|
-
exports.TimeframeOption.WEEK,
|
|
3625
|
-
exports.TimeframeOption.MONTH,
|
|
3626
|
-
exports.TimeframeOption.QUARTER,
|
|
3627
|
-
exports.TimeframeOption.YEAR
|
|
3628
|
-
];
|
|
3629
|
-
this.formatConfig = {
|
|
3630
|
-
day: exports.DateFromats.MAT_DEFAULT_DATE_FORMAT,
|
|
3631
|
-
month: exports.DateFromats.MONTH_YEAR_FORMAT,
|
|
3632
|
-
year: exports.DateFromats.YEAR_FORMAT,
|
|
3633
|
-
quarter: exports.DateFromats.QUARTER_FORMAT,
|
|
3634
|
-
week: exports.DateFromats.WEEK_FORMAT
|
|
3635
|
-
};
|
|
3616
|
+
var DrSharedUtils = /** @class */ (function () {
|
|
3617
|
+
function DrSharedUtils() {
|
|
3636
3618
|
}
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
};
|
|
3643
|
-
DrDatePickerService.prototype.getTimeframe = function (format) {
|
|
3619
|
+
/**
|
|
3620
|
+
* Get timeframe (day, year, month, quarter) based on passed format
|
|
3621
|
+
* @param format - date format string. Examples: MM/DD/YYYY, Q/YYYY
|
|
3622
|
+
*/
|
|
3623
|
+
DrSharedUtils.getTimeframeByDateFormat = function (format) {
|
|
3644
3624
|
var defaultFrame = exports.TimeframeOption.DAY;
|
|
3645
3625
|
if (!format) {
|
|
3646
3626
|
return defaultFrame;
|
|
@@ -3653,14 +3633,34 @@
|
|
|
3653
3633
|
return exports.TimeframeOption.DAY;
|
|
3654
3634
|
case lowerCaseFormat.includes('m'):
|
|
3655
3635
|
return exports.TimeframeOption.MONTH;
|
|
3656
|
-
case lowerCaseFormat.includes('w'):
|
|
3657
|
-
return exports.TimeframeOption.WEEK;
|
|
3658
3636
|
case lowerCaseFormat.includes('y'):
|
|
3659
3637
|
return exports.TimeframeOption.YEAR;
|
|
3660
3638
|
default:
|
|
3661
3639
|
return defaultFrame;
|
|
3662
3640
|
}
|
|
3663
3641
|
};
|
|
3642
|
+
return DrSharedUtils;
|
|
3643
|
+
}());
|
|
3644
|
+
|
|
3645
|
+
var DrDatePickerService = /** @class */ (function () {
|
|
3646
|
+
function DrDatePickerService() {
|
|
3647
|
+
this.isTimeframeSelectionEnabled = false;
|
|
3648
|
+
this.timeframe = exports.TimeframeOption.DAY;
|
|
3649
|
+
this.format$ = new rxjs.BehaviorSubject(exports.DateFromats.MAT_DEFAULT_DATE_FORMAT);
|
|
3650
|
+
this.updatedQuarter$ = new rxjs.Subject();
|
|
3651
|
+
this.formatConfig = {
|
|
3652
|
+
day: exports.DateFromats.MAT_DEFAULT_DATE_FORMAT,
|
|
3653
|
+
month: exports.DateFromats.MONTH_YEAR_FORMAT,
|
|
3654
|
+
year: exports.DateFromats.YEAR_FORMAT,
|
|
3655
|
+
quarter: exports.DateFromats.QUARTER_FORMAT,
|
|
3656
|
+
};
|
|
3657
|
+
}
|
|
3658
|
+
DrDatePickerService.prototype.getQuarterDisplay = function (value) {
|
|
3659
|
+
return 'Q' + value.quarter() + this.format$.getValue().charAt(1) + value.year();
|
|
3660
|
+
};
|
|
3661
|
+
DrDatePickerService.prototype.getTimeframe = function (format) {
|
|
3662
|
+
return DrSharedUtils.getTimeframeByDateFormat(format);
|
|
3663
|
+
};
|
|
3664
3664
|
DrDatePickerService.prototype.getConfiguredFormat = function (timeframe) {
|
|
3665
3665
|
return this.formatConfig[timeframe];
|
|
3666
3666
|
};
|
|
@@ -3692,37 +3692,25 @@
|
|
|
3692
3692
|
this.quarters = [1, 2, 3, 4];
|
|
3693
3693
|
this.selectedQuarter = 1;
|
|
3694
3694
|
this.timeframeOptions = [{
|
|
3695
|
-
timeframe: exports.TimeframeOption.DAY,
|
|
3696
|
-
value: exports.CalendarView.FOR_DAYS,
|
|
3697
3695
|
title: 'Day',
|
|
3698
|
-
format: this.datePickerService.formatConfig.day,
|
|
3699
|
-
periodLabel: function () { return _this._dateAdapter
|
|
3700
|
-
.format(_this._calendar.activeDate, _this._dateFormats.display.monthYearLabel)
|
|
3701
|
-
.toLocaleUpperCase(); }
|
|
3702
|
-
}, {
|
|
3703
|
-
timeframe: exports.TimeframeOption.WEEK,
|
|
3704
3696
|
value: exports.CalendarView.FOR_DAYS,
|
|
3705
|
-
|
|
3706
|
-
format: this.datePickerService.formatConfig.week,
|
|
3697
|
+
format: this.datePickerService.formatConfig.day,
|
|
3707
3698
|
periodLabel: function () { return _this._dateAdapter
|
|
3708
3699
|
.format(_this._calendar.activeDate, _this._dateFormats.display.monthYearLabel)
|
|
3709
3700
|
.toLocaleUpperCase(); }
|
|
3710
3701
|
}, {
|
|
3711
|
-
timeframe: exports.TimeframeOption.MONTH,
|
|
3712
|
-
value: exports.CalendarView.FOR_MONTHS,
|
|
3713
3702
|
title: 'Month',
|
|
3703
|
+
value: exports.CalendarView.FOR_MONTHS,
|
|
3714
3704
|
format: this.datePickerService.formatConfig.month,
|
|
3715
3705
|
periodLabel: function () { return String(moment$1(_this._calendar.activeDate).year()); }
|
|
3716
3706
|
}, {
|
|
3717
|
-
timeframe: exports.TimeframeOption.QUARTER,
|
|
3718
|
-
value: exports.CalendarView.FOR_QUARTERS,
|
|
3719
3707
|
title: 'Quarter',
|
|
3708
|
+
value: exports.CalendarView.FOR_QUARTERS,
|
|
3720
3709
|
format: this.datePickerService.formatConfig.quarter,
|
|
3721
3710
|
periodLabel: function () { return String(moment$1(_this._calendar.activeDate).year()); }
|
|
3722
3711
|
}, {
|
|
3723
|
-
timeframe: exports.TimeframeOption.YEAR,
|
|
3724
|
-
value: exports.CalendarView.FOR_YEARS,
|
|
3725
3712
|
title: 'Year',
|
|
3713
|
+
value: exports.CalendarView.FOR_YEARS,
|
|
3726
3714
|
format: this.datePickerService.formatConfig.year,
|
|
3727
3715
|
periodLabel: function () {
|
|
3728
3716
|
var currentYear = moment$1(_this._calendar.activeDate).year();
|
|
@@ -3748,9 +3736,6 @@
|
|
|
3748
3736
|
_this.selectedTimeframe = _this.timeframeOptions.filter(function (option) { return option.format == value; })[0].value;
|
|
3749
3737
|
_calendar.currentView = _this.selectedTimeframe;
|
|
3750
3738
|
_this.setPeriodLabels();
|
|
3751
|
-
if (_this.selectedTimeframe === exports.CalendarView.FOR_QUARTERS) {
|
|
3752
|
-
_this.selectedQuarter = moment$1(_this._calendar.activeDate).quarter();
|
|
3753
|
-
}
|
|
3754
3739
|
});
|
|
3755
3740
|
_calendar.viewChanged.pipe(operators.takeUntil(this._destroyed)).subscribe(function () { return _this.setPeriodLabels(); });
|
|
3756
3741
|
}
|
|
@@ -3762,7 +3747,7 @@
|
|
|
3762
3747
|
var _this = this;
|
|
3763
3748
|
var currentTimeframeOption = this.timeframeOptions.filter(function (option) { return option.value === _this._calendar.currentView; })[0];
|
|
3764
3749
|
var fullPeriodLabel = currentTimeframeOption.periodLabel();
|
|
3765
|
-
if (this._calendar.currentView ===
|
|
3750
|
+
if (this._calendar.currentView === 'month') {
|
|
3766
3751
|
this.periodMonthLabel = fullPeriodLabel.slice(0, 3);
|
|
3767
3752
|
this.periodYearLabel = fullPeriodLabel.slice(4);
|
|
3768
3753
|
}
|
|
@@ -3812,7 +3797,7 @@
|
|
|
3812
3797
|
DrDatePickerCustomHeaderComponent.decorators = [
|
|
3813
3798
|
{ type: i0.Component, args: [{
|
|
3814
3799
|
selector: 'dr-date-picker_custom-header.component',
|
|
3815
|
-
template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [(ngModel)]=\"selectedTimeframe\"\n [items]=\"timeframeOptions
|
|
3800
|
+
template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [(ngModel)]=\"selectedTimeframe\"\n [items]=\"timeframeOptions\"\n bindLabel=\"title\"\n bindValue=\"value\"\n (ngModelChange)=\"setTimeframe()\">\n </dr-select>\n</div>\n\n<div class=\"dr-date-paging\">\n <div class=\"dr-date-paging flip-page-button\"\n (click)=\"pagingClicked(false)\">\n <i class=\"dr-icon-arrow-left presentation_buttons-navigate_input\"></i>\n </div>\n <span class=\"example-header-label\">\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_MONTHS)\">{{periodMonthLabel + ' '}}</span>\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_YEARS)\">{{periodYearLabel}}</span>\n </span>\n <div class=\"dr-date-paging flip-page-button\"\n (click)=\"pagingClicked(true)\">\n <i class=\"dr-icon-arrow-right presentation_buttons-navigate_input\"></i>\n </div>\n</div>\n<div #quarterlyDatePicker class=\"dr-quarterly-datepicker\" *ngIf=\"currentViewIsQuarter\">\n <div *ngFor=\"let quarter of quarters\"\n class=\"quarter-selector\" (click)=\"onSelectQuarter(quarter)\"\n [class]=\"quarter == selectedQuarter ? 'selected' : ''\"\n >Q{{quarter}}</div>\n</div>\n\n",
|
|
3816
3801
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3817
3802
|
styles: [":host{height:54px;align-items:center;font-family:\"Poppins\";font-style:normal;font-weight:600;font-size:14px;line-height:22px}.dr-datepicker__timeframe-select__wrapper{background-color:#f9faff;padding:16px 32px;border-radius:18px 18px 0 0}.dr-date-paging{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 8px;grid-gap:4px;gap:4px}.dr-date-paging.flip-page-button{width:20px;height:20px;padding:0;color:#4e566c}.dr-date-paging.flip-page-button:hover{border-radius:50%;background:#F2F2FB;color:#4646ce}.example-header-label{cursor:pointer}.dr-quarterly-datepicker{display:flex;justify-content:space-between;padding:10px}.dr-quarterly-datepicker .quarter-selector{display:block;width:74px;height:40px;text-align:center;border-radius:40px;font-weight:400;padding-top:9px}.dr-quarterly-datepicker .quarter-selector:hover{background:#F2F2FB;color:#4646ce;font-weight:600;cursor:pointer}.dr-quarterly-datepicker .quarter-selector.selected{background-color:#4646ce;color:#f3f7ff;font-weight:600}\n"]
|
|
3818
3803
|
},] }
|
|
@@ -3990,7 +3975,7 @@
|
|
|
3990
3975
|
var DrDatePickerWithTimeframeComponent = /** @class */ (function (_super) {
|
|
3991
3976
|
__extends(DrDatePickerWithTimeframeComponent, _super);
|
|
3992
3977
|
function DrDatePickerWithTimeframeComponent(cdr, dateAdapter, datePickerService) {
|
|
3993
|
-
var
|
|
3978
|
+
var _b;
|
|
3994
3979
|
var _this = _super.call(this, cdr, dateAdapter, datePickerService) || this;
|
|
3995
3980
|
_this.cdr = cdr;
|
|
3996
3981
|
_this.dateAdapter = dateAdapter;
|
|
@@ -3998,18 +3983,16 @@
|
|
|
3998
3983
|
_this.isDashboardDatepicker = false;
|
|
3999
3984
|
_this.canSelectTimeframe = true;
|
|
4000
3985
|
_this.onChangeFormat = new i0.EventEmitter();
|
|
4001
|
-
_this.pagingSetup = (
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
_a);
|
|
3986
|
+
_this.pagingSetup = (_b = {},
|
|
3987
|
+
_b[exports.TimeframeOption.YEAR] = function (forward) { return _this.pagingDateChange('addCalendarYears', 1, forward); },
|
|
3988
|
+
_b[exports.TimeframeOption.QUARTER] = function (forward) { return _this.pagingDateChange('addCalendarMonths', 3, forward); },
|
|
3989
|
+
_b[exports.TimeframeOption.MONTH] = function (forward) { return _this.pagingDateChange('addCalendarMonths', 1, forward); },
|
|
3990
|
+
_b[exports.TimeframeOption.DAY] = function (forward) { return _this.pagingDateChange('addCalendarDays', 1, forward); },
|
|
3991
|
+
_b);
|
|
4008
3992
|
datePickerService.isTimeframeSelectionEnabled = true;
|
|
4009
3993
|
datePickerService.format$
|
|
4010
3994
|
.pipe(operators.takeUntil(_this.destroyed$))
|
|
4011
3995
|
.subscribe(function (value) {
|
|
4012
|
-
datePickerService.format$.getValue();
|
|
4013
3996
|
_this.onChangeFormat.emit(datePickerService.normalizeValue(value));
|
|
4014
3997
|
});
|
|
4015
3998
|
return _this;
|
|
@@ -4032,34 +4015,23 @@
|
|
|
4032
4015
|
enumerable: false,
|
|
4033
4016
|
configurable: true
|
|
4034
4017
|
});
|
|
4035
|
-
Object.defineProperty(DrDatePickerWithTimeframeComponent.prototype, "availableTimeframes", {
|
|
4036
|
-
set: function (value) {
|
|
4037
|
-
if (value && value.length) {
|
|
4038
|
-
this.datePickerService.availableTimeframes = value;
|
|
4039
|
-
}
|
|
4040
|
-
},
|
|
4041
|
-
enumerable: false,
|
|
4042
|
-
configurable: true
|
|
4043
|
-
});
|
|
4044
4018
|
Object.defineProperty(DrDatePickerWithTimeframeComponent.prototype, "displayedFormattedValue", {
|
|
4045
4019
|
get: function () {
|
|
4020
|
+
var _a;
|
|
4046
4021
|
if (!this.value) {
|
|
4047
4022
|
return this.placeholder;
|
|
4048
4023
|
}
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
return this.datePickerService.getQuarterDisplay(this.value);
|
|
4053
|
-
case formatCached === null || formatCached === void 0 ? void 0 : formatCached.includes('W'):
|
|
4054
|
-
return this.datePickerService.getWeekDisplay(this.value);
|
|
4055
|
-
default:
|
|
4056
|
-
return this.value.format(formatCached);
|
|
4057
|
-
}
|
|
4024
|
+
return ((_a = this.datePickerService.format$.getValue()) === null || _a === void 0 ? void 0 : _a.includes('Q'))
|
|
4025
|
+
? this.datePickerService.getQuarterDisplay(this.value)
|
|
4026
|
+
: this.value.format(this.datePickerService.format$.getValue());
|
|
4058
4027
|
},
|
|
4059
4028
|
enumerable: false,
|
|
4060
4029
|
configurable: true
|
|
4061
4030
|
});
|
|
4062
4031
|
DrDatePickerWithTimeframeComponent.prototype.ngOnInit = function () {
|
|
4032
|
+
if (this.dateFormatConfig) {
|
|
4033
|
+
this.datePickerService.formatConfig = Object.assign(Object.assign({}, this.datePickerService.formatConfig), this.dateFormatConfig);
|
|
4034
|
+
}
|
|
4063
4035
|
this.datePickerService.isTimeframeSelectionEnabled = this.canSelectTimeframe;
|
|
4064
4036
|
this.cdr.markForCheck();
|
|
4065
4037
|
};
|
|
@@ -4095,7 +4067,6 @@
|
|
|
4095
4067
|
isDashboardDatepicker: [{ type: i0.Input }],
|
|
4096
4068
|
dateFormatConfig: [{ type: i0.Input }],
|
|
4097
4069
|
canSelectTimeframe: [{ type: i0.Input }],
|
|
4098
|
-
availableTimeframes: [{ type: i0.Input }],
|
|
4099
4070
|
onChangeFormat: [{ type: i0.Output }]
|
|
4100
4071
|
};
|
|
4101
4072
|
|
|
@@ -4146,20 +4117,6 @@
|
|
|
4146
4117
|
datePickerFormat: [{ type: i0.Input, args: ['drDatePickerFormat',] }]
|
|
4147
4118
|
};
|
|
4148
4119
|
|
|
4149
|
-
var DrShowTimeframePipe = /** @class */ (function () {
|
|
4150
|
-
function DrShowTimeframePipe() {
|
|
4151
|
-
}
|
|
4152
|
-
DrShowTimeframePipe.prototype.transform = function (arr, showOptions) {
|
|
4153
|
-
return arr.filter(function (item) { return showOptions.includes(item.timeframe); });
|
|
4154
|
-
};
|
|
4155
|
-
return DrShowTimeframePipe;
|
|
4156
|
-
}());
|
|
4157
|
-
DrShowTimeframePipe.decorators = [
|
|
4158
|
-
{ type: i0.Pipe, args: [{
|
|
4159
|
-
name: 'drShowTimeframePipe'
|
|
4160
|
-
},] }
|
|
4161
|
-
];
|
|
4162
|
-
|
|
4163
4120
|
// !!! Please do not use such approach in other places
|
|
4164
4121
|
// Hard fix for 'none' calendar view selection
|
|
4165
4122
|
datepicker.MatCalendar.prototype.focusActiveCell = function () {
|
|
@@ -4179,8 +4136,7 @@
|
|
|
4179
4136
|
DrDatePickerWithTimeframeComponent,
|
|
4180
4137
|
DrDatePickerFormatDirective,
|
|
4181
4138
|
DrDatePickerCustomHeaderComponent,
|
|
4182
|
-
DrModelDebounceChangeDirective
|
|
4183
|
-
DrShowTimeframePipe
|
|
4139
|
+
DrModelDebounceChangeDirective
|
|
4184
4140
|
];
|
|
4185
4141
|
var DrInputsModule = /** @class */ (function () {
|
|
4186
4142
|
function DrInputsModule() {
|
|
@@ -4396,6 +4352,7 @@
|
|
|
4396
4352
|
exports.DrPopoverRef = DrPopoverRef;
|
|
4397
4353
|
exports.DrPopoverService = DrPopoverService;
|
|
4398
4354
|
exports.DrSelectComponent = DrSelectComponent;
|
|
4355
|
+
exports.DrSharedUtils = DrSharedUtils;
|
|
4399
4356
|
exports.DrSpinnerComponent = DrSpinnerComponent;
|
|
4400
4357
|
exports.DrSpinnerDirective = DrSpinnerDirective;
|
|
4401
4358
|
exports.DrSpinnerModule = DrSpinnerModule;
|
|
@@ -4425,7 +4382,6 @@
|
|
|
4425
4382
|
exports["ɵe"] = DrDatePickerWithTimeframeComponent;
|
|
4426
4383
|
exports["ɵf"] = DrDatePickerFormatDirective;
|
|
4427
4384
|
exports["ɵg"] = DrDatePickerCustomHeaderComponent;
|
|
4428
|
-
exports["ɵh"] = DrShowTimeframePipe;
|
|
4429
4385
|
|
|
4430
4386
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4431
4387
|
|