@datarailsshared/datarailsshared 1.6.109 → 1.6.113
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/datarailsshared-datarailsshared-1.6.113.tgz +0 -0
- package/esm2022/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.mjs +3 -3
- package/esm2022/lib/dr-dialog/interfaces/dialog-data.mjs +1 -1
- package/esm2022/lib/dr-inputs/date-pickers/date-time-picker/date-time-picker.component.mjs +169 -0
- package/esm2022/lib/dr-inputs/date-pickers/time-picker/time-picker.component.mjs +187 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +610 -276
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-dialog/interfaces/dialog-data.d.ts +1 -0
- package/lib/dr-inputs/date-pickers/date-time-picker/date-time-picker.component.d.ts +35 -0
- package/lib/dr-inputs/date-pickers/time-picker/time-picker.component.d.ts +45 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/datarailsshared-datarailsshared-1.6.109.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Output, Input, Injectable, inject, ChangeDetectorRef, DestroyRef, ChangeDetectionStrategy, HostBinding, TemplateRef, HostListener, Directive, forwardRef, ViewChild, ContentChild, Pipe, ComponentFactoryResolver, Injector, Inject, Optional, ViewEncapsulation, PLATFORM_ID, ContentChildren, ElementRef, Host, ViewContainerRef,
|
|
2
|
+
import { EventEmitter, Component, Output, Input, Injectable, inject, ChangeDetectorRef, DestroyRef, ChangeDetectionStrategy, HostBinding, TemplateRef, HostListener, Directive, forwardRef, ViewChild, ContentChild, Pipe, ComponentFactoryResolver, Injector, Inject, Optional, ViewEncapsulation, PLATFORM_ID, ContentChildren, NgModule, ElementRef, Host, ViewContainerRef, ViewChildren, InjectionToken, SkipSelf, booleanAttribute } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
|
|
5
5
|
import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS, MatMomentDateModule } from '@angular/material-moment-adapter';
|
|
@@ -8,10 +8,10 @@ import { MAT_DATE_FORMATS, DateAdapter, MAT_DATE_LOCALE, MatNativeDateModule, Ma
|
|
|
8
8
|
import * as moment from 'moment';
|
|
9
9
|
import moment__default from 'moment';
|
|
10
10
|
import * as i1$2 from '@angular/forms';
|
|
11
|
-
import { NG_VALUE_ACCESSOR, FormBuilder,
|
|
12
|
-
import { Observable, BehaviorSubject, distinctUntilChanged, Subject, startWith, takeUntil, noop as noop$3, combineLatest, from, merge as merge$1, fromEvent,
|
|
11
|
+
import { NG_VALUE_ACCESSOR, FormBuilder, FormsModule, ReactiveFormsModule, FormGroup, FormControl } from '@angular/forms';
|
|
12
|
+
import { Observable, BehaviorSubject, distinctUntilChanged, Subject, startWith, takeUntil, noop as noop$3, combineLatest, from, merge as merge$1, fromEvent, map as map$2, filter as filter$1, switchMap as switchMap$1, observeOn, asyncScheduler, withLatestFrom, first as first$1, interval, throwError, finalize as finalize$1, tap as tap$1, defer, firstValueFrom, throttleTime } from 'rxjs';
|
|
13
13
|
import * as _ from 'lodash';
|
|
14
|
-
import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumber, merge, forEach, some, orderBy, filter as filter$2, includes, pull, concat, isString, isBoolean, keys } from 'lodash';
|
|
14
|
+
import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumber, merge, forEach, some, isEqual, orderBy, filter as filter$2, includes, pull, concat, isString, isBoolean, keys } from 'lodash';
|
|
15
15
|
import { skip, debounceTime, filter, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, startWith as startWith$1, map, tap, shareReplay, switchMap, first, catchError, finalize, take } from 'rxjs/operators';
|
|
16
16
|
import * as i5 from '@angular/material/datepicker';
|
|
17
17
|
import { MatCalendar, DateRange, MAT_DATE_RANGE_SELECTION_STRATEGY, MatDatepickerModule } from '@angular/material/datepicker';
|
|
@@ -5526,6 +5526,117 @@ class DrDatePickerRangeComponent {
|
|
|
5526
5526
|
type: Input
|
|
5527
5527
|
}] }); })();
|
|
5528
5528
|
|
|
5529
|
+
function DrToggleComponent_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
5530
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
5531
|
+
i0.ɵɵtext(1);
|
|
5532
|
+
i0.ɵɵelementEnd();
|
|
5533
|
+
} if (rf & 2) {
|
|
5534
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
5535
|
+
i0.ɵɵadvance(1);
|
|
5536
|
+
i0.ɵɵtextInterpolate(ctx_r0.toggleTitle);
|
|
5537
|
+
} }
|
|
5538
|
+
function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
5539
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
5540
|
+
i0.ɵɵtext(1);
|
|
5541
|
+
i0.ɵɵelementEnd();
|
|
5542
|
+
} if (rf & 2) {
|
|
5543
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
5544
|
+
i0.ɵɵadvance(1);
|
|
5545
|
+
i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
|
|
5546
|
+
} }
|
|
5547
|
+
const _c0$y = ["*"];
|
|
5548
|
+
class DrToggleComponent {
|
|
5549
|
+
set disabled(value) {
|
|
5550
|
+
this.setDisabledState(value);
|
|
5551
|
+
}
|
|
5552
|
+
get elementClass() {
|
|
5553
|
+
return this._elementClass.join(' ');
|
|
5554
|
+
}
|
|
5555
|
+
constructor(cdr) {
|
|
5556
|
+
this.cdr = cdr;
|
|
5557
|
+
this._disabled = false;
|
|
5558
|
+
this._elementClass = [];
|
|
5559
|
+
this.hostId = null;
|
|
5560
|
+
this.checkedChange = new EventEmitter();
|
|
5561
|
+
this.onChange = () => { };
|
|
5562
|
+
this.onTouched = () => { };
|
|
5563
|
+
}
|
|
5564
|
+
ngAfterViewInit() {
|
|
5565
|
+
if (this.toggleTitleRight) {
|
|
5566
|
+
this._elementClass.push('toggle-label-alignment');
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5569
|
+
writeValue(value) {
|
|
5570
|
+
this.checkedStatus = value;
|
|
5571
|
+
this.cdr.markForCheck();
|
|
5572
|
+
}
|
|
5573
|
+
registerOnChange(fn) {
|
|
5574
|
+
this.onChange = fn;
|
|
5575
|
+
}
|
|
5576
|
+
registerOnTouched(fn) {
|
|
5577
|
+
this.onTouched = fn;
|
|
5578
|
+
}
|
|
5579
|
+
setDisabledState(isDisabled) {
|
|
5580
|
+
this._disabled = isDisabled;
|
|
5581
|
+
}
|
|
5582
|
+
setValue() {
|
|
5583
|
+
this.checkedStatus = !this.checkedStatus;
|
|
5584
|
+
this.onChange(this.checkedStatus);
|
|
5585
|
+
this.checkedChange.emit(this.checkedStatus);
|
|
5586
|
+
this.onTouched();
|
|
5587
|
+
}
|
|
5588
|
+
/** @nocollapse */ static { this.ɵfac = function DrToggleComponent_Factory(t) { return new (t || DrToggleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
5589
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 3, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
5590
|
+
i0.ɵɵattribute("id", ctx.hostId);
|
|
5591
|
+
i0.ɵɵclassMap(ctx.elementClass);
|
|
5592
|
+
} }, inputs: { id: "id", toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }])], ngContentSelectors: _c0$y, decls: 7, vars: 10, consts: [["class", "toggle-title mr-3", 4, "ngIf"], [1, "toggle-container"], ["type", "checkbox", 3, "checked", "disabled", "click"], [1, "toggle-body"], ["class", "toggle-title ml-3", 4, "ngIf"], [1, "toggle-title", "mr-3"], [1, "toggle-title", "ml-3"]], template: function DrToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5593
|
+
i0.ɵɵprojectionDef();
|
|
5594
|
+
i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
|
|
5595
|
+
i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
|
|
5596
|
+
i0.ɵɵlistener("click", function DrToggleComponent_Template_input_click_2_listener() { return ctx.setValue(); });
|
|
5597
|
+
i0.ɵɵelementEnd();
|
|
5598
|
+
i0.ɵɵelementStart(3, "span", 3);
|
|
5599
|
+
i0.ɵɵelement(4, "i");
|
|
5600
|
+
i0.ɵɵelementEnd();
|
|
5601
|
+
i0.ɵɵprojection(5);
|
|
5602
|
+
i0.ɵɵelementEnd();
|
|
5603
|
+
i0.ɵɵtemplate(6, DrToggleComponent_span_6_Template, 2, 1, "span", 4);
|
|
5604
|
+
} if (rf & 2) {
|
|
5605
|
+
i0.ɵɵproperty("ngIf", ctx.toggleTitle && !ctx.toggleTitleRight);
|
|
5606
|
+
i0.ɵɵadvance(1);
|
|
5607
|
+
i0.ɵɵclassProp("success", ctx.successType)("disabled", ctx._disabled);
|
|
5608
|
+
i0.ɵɵadvance(1);
|
|
5609
|
+
i0.ɵɵproperty("checked", ctx.checkedStatus)("disabled", ctx._disabled);
|
|
5610
|
+
i0.ɵɵattribute("id", ctx.id)("data-test", ctx.checkedStatus ? "toggle-on" : "toggle-off");
|
|
5611
|
+
i0.ɵɵadvance(4);
|
|
5612
|
+
i0.ɵɵproperty("ngIf", ctx.toggleTitle && ctx.toggleTitleRight);
|
|
5613
|
+
} }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:Poppins,sans-serif}.toggle-label-alignment[_nghost-%COMP%]{justify-content:start}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]{background-color:#8f9bb329!important}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:#8f9bb33d!important}[_nghost-%COMP%] .toggle-container.success[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]{background-color:#03a678}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], [_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]:active > i[_ngcontent-%COMP%]{margin-left:16px}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]{background-color:#4646ce}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]:active{background-color:#a6b9cb}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}[_nghost-%COMP%] .toggle-title[_ngcontent-%COMP%]{line-height:22px}"], changeDetection: 0 }); }
|
|
5614
|
+
}
|
|
5615
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToggleComponent, [{
|
|
5616
|
+
type: Component,
|
|
5617
|
+
args: [{ selector: 'dr-toggle', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"toggle-title mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{ toggleTitle }}</span>\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\n <input\n [attr.id]=\"id\"\n type=\"checkbox\"\n [attr.data-test]=\"checkedStatus ? 'toggle-on' : 'toggle-off'\"\n [checked]=\"checkedStatus\"\n [disabled]=\"_disabled\"\n (click)=\"setValue()\" />\n <span class=\"toggle-body\">\n <i></i>\n </span>\n <ng-content></ng-content>\n</label>\n<span class=\"toggle-title ml-3\" *ngIf=\"toggleTitle && toggleTitleRight\">{{ toggleTitle }}</span>\n", styles: [":host{display:flex;justify-content:space-between;align-items:center;font-family:Poppins,sans-serif}:host.toggle-label-alignment{justify-content:start}:host .toggle-container{display:flex;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:#8f9bb33d!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#4646ce}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}:host .toggle-title{line-height:22px}\n"] }]
|
|
5618
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { id: [{
|
|
5619
|
+
type: Input
|
|
5620
|
+
}], hostId: [{
|
|
5621
|
+
type: HostBinding,
|
|
5622
|
+
args: ['attr.id']
|
|
5623
|
+
}], toggleTitle: [{
|
|
5624
|
+
type: Input
|
|
5625
|
+
}], toggleTitleRight: [{
|
|
5626
|
+
type: Input
|
|
5627
|
+
}], successType: [{
|
|
5628
|
+
type: Input
|
|
5629
|
+
}], checkedStatus: [{
|
|
5630
|
+
type: Input
|
|
5631
|
+
}], disabled: [{
|
|
5632
|
+
type: Input
|
|
5633
|
+
}], checkedChange: [{
|
|
5634
|
+
type: Output
|
|
5635
|
+
}], elementClass: [{
|
|
5636
|
+
type: HostBinding,
|
|
5637
|
+
args: ['class']
|
|
5638
|
+
}] }); })();
|
|
5639
|
+
|
|
5529
5640
|
function TooltipInfoComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
5530
5641
|
i0.ɵɵelementStart(0, "div", 6);
|
|
5531
5642
|
i0.ɵɵelement(1, "i", 7);
|
|
@@ -5605,7 +5716,483 @@ class TooltipInfoComponent {
|
|
|
5605
5716
|
type: Input
|
|
5606
5717
|
}] }); })();
|
|
5607
5718
|
|
|
5608
|
-
const
|
|
5719
|
+
const TOOLTIP_COMPONENTS = [TooltipDefaultComponent, TooltipInfoComponent];
|
|
5720
|
+
class DrTooltipModule {
|
|
5721
|
+
/** @nocollapse */ static { this.ɵfac = function DrTooltipModule_Factory(t) { return new (t || DrTooltipModule)(); }; }
|
|
5722
|
+
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrTooltipModule }); }
|
|
5723
|
+
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
5724
|
+
}
|
|
5725
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrTooltipModule, [{
|
|
5726
|
+
type: NgModule,
|
|
5727
|
+
args: [{
|
|
5728
|
+
imports: [CommonModule],
|
|
5729
|
+
exports: [TooltipComponent, DrTooltipDirective, ...TOOLTIP_COMPONENTS],
|
|
5730
|
+
providers: [],
|
|
5731
|
+
declarations: [TooltipComponent, DrTooltipDirective, ...TOOLTIP_COMPONENTS],
|
|
5732
|
+
}]
|
|
5733
|
+
}], null, null); })();
|
|
5734
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrTooltipModule, { declarations: [TooltipComponent, DrTooltipDirective, TooltipDefaultComponent, TooltipInfoComponent], imports: [CommonModule], exports: [TooltipComponent, DrTooltipDirective, TooltipDefaultComponent, TooltipInfoComponent] }); })();
|
|
5735
|
+
|
|
5736
|
+
const components$3 = [DrSpinnerComponent];
|
|
5737
|
+
const directives = [DrSpinnerDirective];
|
|
5738
|
+
class DrSpinnerModule {
|
|
5739
|
+
/** @nocollapse */ static { this.ɵfac = function DrSpinnerModule_Factory(t) { return new (t || DrSpinnerModule)(); }; }
|
|
5740
|
+
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrSpinnerModule }); }
|
|
5741
|
+
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
5742
|
+
}
|
|
5743
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrSpinnerModule, [{
|
|
5744
|
+
type: NgModule,
|
|
5745
|
+
args: [{
|
|
5746
|
+
imports: [CommonModule],
|
|
5747
|
+
exports: [...components$3, ...directives],
|
|
5748
|
+
declarations: [...components$3, ...directives],
|
|
5749
|
+
}]
|
|
5750
|
+
}], null, null); })();
|
|
5751
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrSpinnerModule, { declarations: [DrSpinnerComponent, DrSpinnerDirective], imports: [CommonModule], exports: [DrSpinnerComponent, DrSpinnerDirective] }); })();
|
|
5752
|
+
|
|
5753
|
+
// !!! Please do not use such approach in other places
|
|
5754
|
+
// Hard fix for 'none' calendar view selection
|
|
5755
|
+
MatCalendar.prototype.focusActiveCell = function () {
|
|
5756
|
+
this._getCurrentViewComponent()?._focusActiveCell(false);
|
|
5757
|
+
};
|
|
5758
|
+
const standalone = [DrButtonComponent];
|
|
5759
|
+
const components$2 = [
|
|
5760
|
+
RadioButtonComponent,
|
|
5761
|
+
RadioGroupComponent,
|
|
5762
|
+
CheckboxComponent,
|
|
5763
|
+
DrInputComponent,
|
|
5764
|
+
DrSelectComponent,
|
|
5765
|
+
DrToggleComponent,
|
|
5766
|
+
DrToggleButtonComponent,
|
|
5767
|
+
DrDatePickerComponent,
|
|
5768
|
+
DrDatePickerWithTimeframeComponent,
|
|
5769
|
+
DrDatePickerFormatDirective,
|
|
5770
|
+
DrDatePickerCustomHeaderComponent,
|
|
5771
|
+
DrDatePickerRangeComponent,
|
|
5772
|
+
DrModelDebounceChangeDirective,
|
|
5773
|
+
DrShowTimeframePipe,
|
|
5774
|
+
DrSelectAddItemComponent,
|
|
5775
|
+
DrLinkComponent,
|
|
5776
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
5777
|
+
DrFiscalMonthCalendarHeaderComponent,
|
|
5778
|
+
];
|
|
5779
|
+
class DrInputsModule {
|
|
5780
|
+
/** @nocollapse */ static { this.ɵfac = function DrInputsModule_Factory(t) { return new (t || DrInputsModule)(); }; }
|
|
5781
|
+
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrInputsModule }); }
|
|
5782
|
+
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [provideNgxMask()], imports: [standalone, FormsModule,
|
|
5783
|
+
ReactiveFormsModule,
|
|
5784
|
+
CommonModule,
|
|
5785
|
+
NgSelectModule,
|
|
5786
|
+
MatNativeDateModule,
|
|
5787
|
+
MatDatepickerModule,
|
|
5788
|
+
DrTooltipModule,
|
|
5789
|
+
DrSpinnerModule,
|
|
5790
|
+
WeekSelectorComponent,
|
|
5791
|
+
MatMomentDateModule] }); }
|
|
5792
|
+
}
|
|
5793
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrInputsModule, [{
|
|
5794
|
+
type: NgModule,
|
|
5795
|
+
args: [{
|
|
5796
|
+
declarations: components$2,
|
|
5797
|
+
exports: [...components$2, ...standalone],
|
|
5798
|
+
providers: [provideNgxMask()],
|
|
5799
|
+
imports: [
|
|
5800
|
+
...standalone,
|
|
5801
|
+
NgxMaskDirective,
|
|
5802
|
+
FormsModule,
|
|
5803
|
+
ReactiveFormsModule,
|
|
5804
|
+
CommonModule,
|
|
5805
|
+
NgSelectModule,
|
|
5806
|
+
MatNativeDateModule,
|
|
5807
|
+
MatDatepickerModule,
|
|
5808
|
+
DrTooltipModule,
|
|
5809
|
+
DrSpinnerModule,
|
|
5810
|
+
WeekSelectorComponent,
|
|
5811
|
+
MatMomentDateModule,
|
|
5812
|
+
],
|
|
5813
|
+
}]
|
|
5814
|
+
}], null, null); })();
|
|
5815
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrInputsModule, { declarations: [RadioButtonComponent,
|
|
5816
|
+
RadioGroupComponent,
|
|
5817
|
+
CheckboxComponent,
|
|
5818
|
+
DrInputComponent,
|
|
5819
|
+
DrSelectComponent,
|
|
5820
|
+
DrToggleComponent,
|
|
5821
|
+
DrToggleButtonComponent,
|
|
5822
|
+
DrDatePickerComponent,
|
|
5823
|
+
DrDatePickerWithTimeframeComponent,
|
|
5824
|
+
DrDatePickerFormatDirective,
|
|
5825
|
+
DrDatePickerCustomHeaderComponent,
|
|
5826
|
+
DrDatePickerRangeComponent,
|
|
5827
|
+
DrModelDebounceChangeDirective,
|
|
5828
|
+
DrShowTimeframePipe,
|
|
5829
|
+
DrSelectAddItemComponent,
|
|
5830
|
+
DrLinkComponent,
|
|
5831
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
5832
|
+
DrFiscalMonthCalendarHeaderComponent], imports: [DrButtonComponent, NgxMaskDirective,
|
|
5833
|
+
FormsModule,
|
|
5834
|
+
ReactiveFormsModule,
|
|
5835
|
+
CommonModule,
|
|
5836
|
+
NgSelectModule,
|
|
5837
|
+
MatNativeDateModule,
|
|
5838
|
+
MatDatepickerModule,
|
|
5839
|
+
DrTooltipModule,
|
|
5840
|
+
DrSpinnerModule,
|
|
5841
|
+
WeekSelectorComponent,
|
|
5842
|
+
MatMomentDateModule], exports: [RadioButtonComponent,
|
|
5843
|
+
RadioGroupComponent,
|
|
5844
|
+
CheckboxComponent,
|
|
5845
|
+
DrInputComponent,
|
|
5846
|
+
DrSelectComponent,
|
|
5847
|
+
DrToggleComponent,
|
|
5848
|
+
DrToggleButtonComponent,
|
|
5849
|
+
DrDatePickerComponent,
|
|
5850
|
+
DrDatePickerWithTimeframeComponent,
|
|
5851
|
+
DrDatePickerFormatDirective,
|
|
5852
|
+
DrDatePickerCustomHeaderComponent,
|
|
5853
|
+
DrDatePickerRangeComponent,
|
|
5854
|
+
DrModelDebounceChangeDirective,
|
|
5855
|
+
DrShowTimeframePipe,
|
|
5856
|
+
DrSelectAddItemComponent,
|
|
5857
|
+
DrLinkComponent,
|
|
5858
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
5859
|
+
DrFiscalMonthCalendarHeaderComponent, DrButtonComponent] }); })();
|
|
5860
|
+
|
|
5861
|
+
function TimePickerComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
5862
|
+
i0.ɵɵtext(0);
|
|
5863
|
+
} if (rf & 2) {
|
|
5864
|
+
const item_r2 = ctx.item;
|
|
5865
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
5866
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.LOCAL_TIME_ZONE_OFFSET !== ctx_r1.cronModel.timeZone ? item_r2.label : "Local Time", " ");
|
|
5867
|
+
} }
|
|
5868
|
+
const LOCAL_TIME_ZONE_OFFSET = new Date().getTimezoneOffset() / 60;
|
|
5869
|
+
const getGMTLabel = (offset) => {
|
|
5870
|
+
const sign = offset < 0 ? '-' : '+';
|
|
5871
|
+
const offsetPrefix = Math.abs(offset) > 9 ? '' : '0';
|
|
5872
|
+
return `GMT${sign}${offsetPrefix}${Math.abs(offset)}:00`;
|
|
5873
|
+
};
|
|
5874
|
+
const GMT_OFFSETS = new Array(27).fill(null).map((v, index) => {
|
|
5875
|
+
const offset = index - 12;
|
|
5876
|
+
return {
|
|
5877
|
+
value: -offset,
|
|
5878
|
+
label: `${getGMTLabel(offset)}${LOCAL_TIME_ZONE_OFFSET === -offset ? ' (Local Time)' : ''}`,
|
|
5879
|
+
};
|
|
5880
|
+
});
|
|
5881
|
+
class TimePickerComponent {
|
|
5882
|
+
constructor() {
|
|
5883
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
5884
|
+
this.hostId = null;
|
|
5885
|
+
this.uniqueId = `time-picker-${TimePickerComponent.nextUniqueId++}`;
|
|
5886
|
+
this.CRON_TIME_PERIOD_ARRAY = ['AM', 'PM'];
|
|
5887
|
+
this.LOCAL_TIME_ZONE_OFFSET = LOCAL_TIME_ZONE_OFFSET;
|
|
5888
|
+
this.GMT_OFFSETS = GMT_OFFSETS;
|
|
5889
|
+
this.cronModel = {
|
|
5890
|
+
hour: 12,
|
|
5891
|
+
minute: 0,
|
|
5892
|
+
timePeriod: 'AM',
|
|
5893
|
+
timeZone: this.LOCAL_TIME_ZONE_OFFSET,
|
|
5894
|
+
};
|
|
5895
|
+
this.onChange = () => { };
|
|
5896
|
+
this.onTouched = () => { };
|
|
5897
|
+
}
|
|
5898
|
+
// Unique ID for each instance
|
|
5899
|
+
static { this.nextUniqueId = 0; }
|
|
5900
|
+
// Helper to generate unique IDs for controls
|
|
5901
|
+
get hourInputId() {
|
|
5902
|
+
return `${this.uniqueId}-hour`;
|
|
5903
|
+
}
|
|
5904
|
+
get minuteInputId() {
|
|
5905
|
+
return `${this.uniqueId}-minute`;
|
|
5906
|
+
}
|
|
5907
|
+
get periodSelectId() {
|
|
5908
|
+
return `${this.uniqueId}-period`;
|
|
5909
|
+
}
|
|
5910
|
+
get timezoneSelectId() {
|
|
5911
|
+
return `${this.uniqueId}-timezone`;
|
|
5912
|
+
}
|
|
5913
|
+
get labelId() {
|
|
5914
|
+
return `${this.uniqueId}-label`;
|
|
5915
|
+
}
|
|
5916
|
+
onSelectionChange(model) {
|
|
5917
|
+
const value = { ...this.getTimeValue(), ...model };
|
|
5918
|
+
this.onChange(value);
|
|
5919
|
+
this.onTouched();
|
|
5920
|
+
}
|
|
5921
|
+
getTimeValue() {
|
|
5922
|
+
return {
|
|
5923
|
+
hour: this.cronModel.hour,
|
|
5924
|
+
minute: this.cronModel.minute,
|
|
5925
|
+
timePeriod: this.cronModel.timePeriod,
|
|
5926
|
+
timeZone: this.cronModel.timeZone,
|
|
5927
|
+
};
|
|
5928
|
+
}
|
|
5929
|
+
writeValue(value) {
|
|
5930
|
+
if (value && typeof value === 'object') {
|
|
5931
|
+
this.cronModel = {
|
|
5932
|
+
hour: value.hour !== undefined ? value.hour : this.cronModel.hour,
|
|
5933
|
+
minute: value.minute !== undefined ? value.minute : this.cronModel.minute,
|
|
5934
|
+
timePeriod: TimePickerComponent.validTimePeriod(value.timePeriod) ? value.timePeriod : this.cronModel.timePeriod,
|
|
5935
|
+
timeZone: isNil(value.timeZone) ? this.cronModel.timeZone : value.timeZone,
|
|
5936
|
+
};
|
|
5937
|
+
this.cdr.detectChanges();
|
|
5938
|
+
return;
|
|
5939
|
+
}
|
|
5940
|
+
this.cronModel = {
|
|
5941
|
+
hour: 12,
|
|
5942
|
+
minute: 0,
|
|
5943
|
+
timePeriod: 'AM',
|
|
5944
|
+
timeZone: this.LOCAL_TIME_ZONE_OFFSET,
|
|
5945
|
+
};
|
|
5946
|
+
this.cdr.detectChanges();
|
|
5947
|
+
}
|
|
5948
|
+
registerOnChange(fn) {
|
|
5949
|
+
this.onChange = fn;
|
|
5950
|
+
}
|
|
5951
|
+
registerOnTouched(fn) {
|
|
5952
|
+
this.onTouched = fn;
|
|
5953
|
+
}
|
|
5954
|
+
setDisabledState(isDisabled) {
|
|
5955
|
+
this._disabled = isDisabled;
|
|
5956
|
+
this.cdr.markForCheck();
|
|
5957
|
+
}
|
|
5958
|
+
static validTimePeriod(value) {
|
|
5959
|
+
return value === 'AM' || value === 'PM';
|
|
5960
|
+
}
|
|
5961
|
+
/** @nocollapse */ static { this.ɵfac = function TimePickerComponent_Factory(t) { return new (t || TimePickerComponent)(); }; }
|
|
5962
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TimePickerComponent, selectors: [["dr-time-picker"]], hostVars: 1, hostBindings: function TimePickerComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
5963
|
+
i0.ɵɵattribute("id", ctx.hostId);
|
|
5964
|
+
} }, inputs: { id: "id" }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
5965
|
+
{
|
|
5966
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5967
|
+
useExisting: forwardRef((() => TimePickerComponent)),
|
|
5968
|
+
multi: true,
|
|
5969
|
+
},
|
|
5970
|
+
]), i0.ɵɵStandaloneFeature], decls: 18, vars: 30, consts: [[1, "visually-hidden", 3, "id", "for"], ["type", "hidden", "name", "time-picker-value", 3, "value"], ["aria-label", "Hour", "type", "number", 1, "hours-input", 3, "id", "ngModel", "mask", "min", "max", "disabled", "ngModelChange"], ["aria-hidden", "true", 1, "time-dots"], [1, "visually-hidden", 3, "for"], ["aria-label", "Minute", "type", "number", 1, "minutes-input", 3, "id", "ngModel", "mask", "min", "max", "disabled", "ngModelChange"], ["aria-label", "AM or PM", 1, "time-period-selector", 3, "id", "ngModel", "items", "disabled", "ngModelChange", "change"], ["aria-label", "Time Zone", "bindLabel", "label", "bindValue", "value", 1, "gmt-offsets", 3, "id", "ngModel", "items", "textView", "disabled", "ngModelChange", "change"], ["labelTemplate", ""]], template: function TimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5971
|
+
i0.ɵɵelementStart(0, "label", 0);
|
|
5972
|
+
i0.ɵɵtext(1, "Time Picker");
|
|
5973
|
+
i0.ɵɵelementEnd();
|
|
5974
|
+
i0.ɵɵelement(2, "input", 1);
|
|
5975
|
+
i0.ɵɵpipe(3, "json");
|
|
5976
|
+
i0.ɵɵelementStart(4, "dr-input", 2);
|
|
5977
|
+
i0.ɵɵlistener("ngModelChange", function TimePickerComponent_Template_dr_input_ngModelChange_4_listener($event) { return ctx.cronModel.hour = $event; })("ngModelChange", function TimePickerComponent_Template_dr_input_ngModelChange_4_listener($event) { return ctx.onSelectionChange({ hour: $event }); });
|
|
5978
|
+
i0.ɵɵelementEnd();
|
|
5979
|
+
i0.ɵɵelementStart(5, "span", 3);
|
|
5980
|
+
i0.ɵɵtext(6, ":");
|
|
5981
|
+
i0.ɵɵelementEnd();
|
|
5982
|
+
i0.ɵɵelementStart(7, "label", 4);
|
|
5983
|
+
i0.ɵɵtext(8, "Minute");
|
|
5984
|
+
i0.ɵɵelementEnd();
|
|
5985
|
+
i0.ɵɵelementStart(9, "dr-input", 5);
|
|
5986
|
+
i0.ɵɵlistener("ngModelChange", function TimePickerComponent_Template_dr_input_ngModelChange_9_listener($event) { return ctx.cronModel.minute = $event; })("ngModelChange", function TimePickerComponent_Template_dr_input_ngModelChange_9_listener($event) { return ctx.onSelectionChange({ minute: $event }); });
|
|
5987
|
+
i0.ɵɵelementEnd();
|
|
5988
|
+
i0.ɵɵelementStart(10, "label", 4);
|
|
5989
|
+
i0.ɵɵtext(11, "AM or PM");
|
|
5990
|
+
i0.ɵɵelementEnd();
|
|
5991
|
+
i0.ɵɵelementStart(12, "dr-select", 6);
|
|
5992
|
+
i0.ɵɵlistener("ngModelChange", function TimePickerComponent_Template_dr_select_ngModelChange_12_listener($event) { return ctx.cronModel.timePeriod = $event; })("change", function TimePickerComponent_Template_dr_select_change_12_listener($event) { return ctx.onSelectionChange({ timePeriod: $event }); });
|
|
5993
|
+
i0.ɵɵelementEnd();
|
|
5994
|
+
i0.ɵɵelementStart(13, "label", 4);
|
|
5995
|
+
i0.ɵɵtext(14, "Time Zone");
|
|
5996
|
+
i0.ɵɵelementEnd();
|
|
5997
|
+
i0.ɵɵelementStart(15, "dr-select", 7);
|
|
5998
|
+
i0.ɵɵlistener("ngModelChange", function TimePickerComponent_Template_dr_select_ngModelChange_15_listener($event) { return ctx.cronModel.timeZone = $event; })("change", function TimePickerComponent_Template_dr_select_change_15_listener($event) { return ctx.onSelectionChange({ timeZone: $event }); });
|
|
5999
|
+
i0.ɵɵtemplate(16, TimePickerComponent_ng_template_16_Template, 1, 1, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
|
|
6000
|
+
i0.ɵɵelementEnd();
|
|
6001
|
+
} if (rf & 2) {
|
|
6002
|
+
i0.ɵɵproperty("id", ctx.labelId)("for", ctx.id);
|
|
6003
|
+
i0.ɵɵadvance(2);
|
|
6004
|
+
i0.ɵɵproperty("value", i0.ɵɵpipeBind1(3, 28, ctx.cronModel));
|
|
6005
|
+
i0.ɵɵattribute("id", ctx.id);
|
|
6006
|
+
i0.ɵɵadvance(2);
|
|
6007
|
+
i0.ɵɵproperty("id", ctx.hourInputId)("ngModel", ctx.cronModel.hour)("mask", "00")("min", 0)("max", 12)("disabled", !!ctx._disabled);
|
|
6008
|
+
i0.ɵɵadvance(3);
|
|
6009
|
+
i0.ɵɵproperty("for", ctx.minuteInputId);
|
|
6010
|
+
i0.ɵɵadvance(2);
|
|
6011
|
+
i0.ɵɵproperty("id", ctx.minuteInputId)("ngModel", ctx.cronModel.minute)("mask", "00")("min", 0)("max", 59)("disabled", !!ctx._disabled);
|
|
6012
|
+
i0.ɵɵadvance(1);
|
|
6013
|
+
i0.ɵɵproperty("for", ctx.periodSelectId);
|
|
6014
|
+
i0.ɵɵadvance(2);
|
|
6015
|
+
i0.ɵɵproperty("id", ctx.periodSelectId)("ngModel", ctx.cronModel.timePeriod)("items", ctx.CRON_TIME_PERIOD_ARRAY)("disabled", !!ctx._disabled);
|
|
6016
|
+
i0.ɵɵadvance(1);
|
|
6017
|
+
i0.ɵɵproperty("for", ctx.timezoneSelectId);
|
|
6018
|
+
i0.ɵɵadvance(2);
|
|
6019
|
+
i0.ɵɵproperty("id", ctx.timezoneSelectId)("ngModel", ctx.cronModel.timeZone)("items", ctx.GMT_OFFSETS)("textView", true)("disabled", !!ctx._disabled);
|
|
6020
|
+
} }, dependencies: [CommonModule, i1.JsonPipe, DrInputsModule, DrInputComponent, DrSelectComponent, FormsModule, i1$2.NgControlStatus, i1$2.NgModel], styles: ["dr-time-picker{display:flex;align-items:center}dr-time-picker .hours-input{min-width:62px;flex:1;margin-left:8px}dr-time-picker .minutes-input{min-width:62px;flex:1}dr-time-picker .time-period-selector{min-width:64px;flex:1;margin-left:8px}dr-time-picker .time-dots{margin:0 4px}dr-time-picker .gmt-offsets{margin-left:16px}dr-time-picker .visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}\n"], encapsulation: 2, changeDetection: 0 }); }
|
|
6021
|
+
}
|
|
6022
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimePickerComponent, [{
|
|
6023
|
+
type: Component,
|
|
6024
|
+
args: [{ selector: 'dr-time-picker', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, DrInputsModule, FormsModule], providers: [
|
|
6025
|
+
{
|
|
6026
|
+
provide: NG_VALUE_ACCESSOR,
|
|
6027
|
+
useExisting: forwardRef((() => TimePickerComponent)),
|
|
6028
|
+
multi: true,
|
|
6029
|
+
},
|
|
6030
|
+
], encapsulation: ViewEncapsulation.None, template: "<label [id]=\"labelId\" class=\"visually-hidden\" [for]=\"id\">Time Picker</label>\n<input type=\"hidden\" [attr.id]=\"id\" [value]=\"cronModel | json\" name=\"time-picker-value\" />\n<dr-input\n [id]=\"hourInputId\"\n aria-label=\"Hour\"\n [(ngModel)]=\"cronModel.hour\"\n (ngModelChange)=\"onSelectionChange({ hour: $event })\"\n [mask]=\"'00'\"\n [min]=\"0\"\n [max]=\"12\"\n [disabled]=\"!!_disabled\"\n type=\"number\"\n class=\"hours-input\">\n</dr-input>\n<span class=\"time-dots\" aria-hidden=\"true\">:</span>\n<label class=\"visually-hidden\" [for]=\"minuteInputId\">Minute</label>\n<dr-input\n [id]=\"minuteInputId\"\n aria-label=\"Minute\"\n [(ngModel)]=\"cronModel.minute\"\n (ngModelChange)=\"onSelectionChange({ minute: $event })\"\n [mask]=\"'00'\"\n [min]=\"0\"\n [max]=\"59\"\n [disabled]=\"!!_disabled\"\n type=\"number\"\n class=\"minutes-input\">\n</dr-input>\n<label class=\"visually-hidden\" [for]=\"periodSelectId\">AM or PM</label>\n<dr-select\n [id]=\"periodSelectId\"\n aria-label=\"AM or PM\"\n [(ngModel)]=\"cronModel.timePeriod\"\n (change)=\"onSelectionChange({ timePeriod: $event })\"\n [items]=\"CRON_TIME_PERIOD_ARRAY\"\n [disabled]=\"!!_disabled\"\n class=\"time-period-selector\"></dr-select>\n<label class=\"visually-hidden\" [for]=\"timezoneSelectId\">Time Zone</label>\n<dr-select\n [id]=\"timezoneSelectId\"\n aria-label=\"Time Zone\"\n [(ngModel)]=\"cronModel.timeZone\"\n (change)=\"onSelectionChange({ timeZone: $event })\"\n [items]=\"GMT_OFFSETS\"\n [textView]=\"true\"\n [disabled]=\"!!_disabled\"\n bindLabel=\"label\"\n bindValue=\"value\"\n class=\"gmt-offsets\">\n <ng-template #labelTemplate let-item=\"item\">\n {{ LOCAL_TIME_ZONE_OFFSET !== cronModel.timeZone ? item.label : 'Local Time' }}\n </ng-template>\n</dr-select>\n", styles: ["dr-time-picker{display:flex;align-items:center}dr-time-picker .hours-input{min-width:62px;flex:1;margin-left:8px}dr-time-picker .minutes-input{min-width:62px;flex:1}dr-time-picker .time-period-selector{min-width:64px;flex:1;margin-left:8px}dr-time-picker .time-dots{margin:0 4px}dr-time-picker .gmt-offsets{margin-left:16px}dr-time-picker .visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}\n"] }]
|
|
6031
|
+
}], null, { id: [{
|
|
6032
|
+
type: Input
|
|
6033
|
+
}], hostId: [{
|
|
6034
|
+
type: HostBinding,
|
|
6035
|
+
args: ['attr.id']
|
|
6036
|
+
}] }); })();
|
|
6037
|
+
|
|
6038
|
+
const DEFAULT_FORM_VALUE = {
|
|
6039
|
+
date: null,
|
|
6040
|
+
time: {
|
|
6041
|
+
hour: 12,
|
|
6042
|
+
minute: 0,
|
|
6043
|
+
timePeriod: 'AM',
|
|
6044
|
+
timeZone: LOCAL_TIME_ZONE_OFFSET,
|
|
6045
|
+
},
|
|
6046
|
+
};
|
|
6047
|
+
class DateTimePickerComponent {
|
|
6048
|
+
constructor() {
|
|
6049
|
+
this.fb = inject(FormBuilder);
|
|
6050
|
+
this.destroy$ = new Subject();
|
|
6051
|
+
this.hostId = null;
|
|
6052
|
+
this.LOCAL_TIME_ZONE_OFFSET = LOCAL_TIME_ZONE_OFFSET;
|
|
6053
|
+
this.dateTimeForm = this.fb.group({
|
|
6054
|
+
date: this.fb.control(null),
|
|
6055
|
+
time: this.fb.control({
|
|
6056
|
+
hour: 12,
|
|
6057
|
+
minute: 0,
|
|
6058
|
+
timePeriod: 'AM',
|
|
6059
|
+
timeZone: this.LOCAL_TIME_ZONE_OFFSET,
|
|
6060
|
+
}),
|
|
6061
|
+
});
|
|
6062
|
+
this.innerTime = null;
|
|
6063
|
+
this.onChange = () => { };
|
|
6064
|
+
this.onTouched = () => { };
|
|
6065
|
+
inject(DestroyRef).onDestroy(() => {
|
|
6066
|
+
this.destroy$.next();
|
|
6067
|
+
this.destroy$.complete();
|
|
6068
|
+
});
|
|
6069
|
+
this.dateTimeForm.valueChanges
|
|
6070
|
+
.pipe(map$2((value) => ({
|
|
6071
|
+
value: this.getCombinedTimestamp(value),
|
|
6072
|
+
timezone: value.time?.timeZone || null,
|
|
6073
|
+
})), distinctUntilChanged((a, b) => isEqual(a, b)), takeUntil(this.destroy$))
|
|
6074
|
+
.subscribe((value) => {
|
|
6075
|
+
this.innerTime = value.value;
|
|
6076
|
+
this.onChange(value);
|
|
6077
|
+
});
|
|
6078
|
+
}
|
|
6079
|
+
writeValue(value) {
|
|
6080
|
+
if (this.innerTime === value?.value)
|
|
6081
|
+
return;
|
|
6082
|
+
if (value && typeof value === 'object' && !isNil(value.value) && typeof value.value === 'number') {
|
|
6083
|
+
const formValue = this.getFormValueFromTimestamp(value.value, value.timezone || null);
|
|
6084
|
+
this.dateTimeForm.setValue(formValue);
|
|
6085
|
+
return;
|
|
6086
|
+
}
|
|
6087
|
+
this.dateTimeForm.setValue(cloneDeep(DEFAULT_FORM_VALUE), { emitEvent: false });
|
|
6088
|
+
}
|
|
6089
|
+
getFormValueFromTimestamp(timestamp, _timezone = this.LOCAL_TIME_ZONE_OFFSET) {
|
|
6090
|
+
const dateMoment = moment__default.unix(timestamp).utc();
|
|
6091
|
+
const timezone = _timezone || 0;
|
|
6092
|
+
const adjustedDate = dateMoment.clone().utcOffset(-(timezone || 0));
|
|
6093
|
+
let hours = adjustedDate.hours();
|
|
6094
|
+
let timePeriod = 'AM';
|
|
6095
|
+
if (hours >= 12) {
|
|
6096
|
+
timePeriod = 'PM';
|
|
6097
|
+
if (hours > 12) {
|
|
6098
|
+
hours -= 12;
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
6101
|
+
else if (hours === 0) {
|
|
6102
|
+
hours = 12;
|
|
6103
|
+
}
|
|
6104
|
+
return {
|
|
6105
|
+
date: dateMoment.clone().add({ hours: -timezone }).unix(),
|
|
6106
|
+
time: {
|
|
6107
|
+
hour: hours,
|
|
6108
|
+
minute: adjustedDate.minutes(),
|
|
6109
|
+
timePeriod,
|
|
6110
|
+
timeZone: timezone,
|
|
6111
|
+
},
|
|
6112
|
+
};
|
|
6113
|
+
}
|
|
6114
|
+
getCombinedTimestamp({ date, time }) {
|
|
6115
|
+
if (!date || !time) {
|
|
6116
|
+
return null;
|
|
6117
|
+
}
|
|
6118
|
+
let hours = time.hour;
|
|
6119
|
+
if (time.timePeriod === 'PM' && hours < 12) {
|
|
6120
|
+
hours += 12;
|
|
6121
|
+
}
|
|
6122
|
+
else if (time.timePeriod === 'AM' && hours === 12) {
|
|
6123
|
+
hours = 0;
|
|
6124
|
+
}
|
|
6125
|
+
const dateObj = moment__default.unix(date).utc();
|
|
6126
|
+
const combinedDate = dateObj.startOf('day').add({ hour: hours, minute: time.minute });
|
|
6127
|
+
return combinedDate.unix();
|
|
6128
|
+
}
|
|
6129
|
+
registerOnChange(fn) {
|
|
6130
|
+
this.onChange = fn;
|
|
6131
|
+
}
|
|
6132
|
+
registerOnTouched(fn) {
|
|
6133
|
+
this.onTouched = fn;
|
|
6134
|
+
}
|
|
6135
|
+
setDisabledState(isDisabled) {
|
|
6136
|
+
if (isDisabled) {
|
|
6137
|
+
this.dateTimeForm.disable();
|
|
6138
|
+
}
|
|
6139
|
+
else {
|
|
6140
|
+
this.dateTimeForm.enable();
|
|
6141
|
+
}
|
|
6142
|
+
}
|
|
6143
|
+
/** @nocollapse */ static { this.ɵfac = function DateTimePickerComponent_Factory(t) { return new (t || DateTimePickerComponent)(); }; }
|
|
6144
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DateTimePickerComponent, selectors: [["dr-date-time-picker"]], hostVars: 1, hostBindings: function DateTimePickerComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
6145
|
+
i0.ɵɵattribute("id", ctx.hostId);
|
|
6146
|
+
} }, inputs: { id: "id", min: "min", max: "max" }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
6147
|
+
{
|
|
6148
|
+
provide: NG_VALUE_ACCESSOR,
|
|
6149
|
+
useExisting: forwardRef((() => DateTimePickerComponent)),
|
|
6150
|
+
multi: true,
|
|
6151
|
+
},
|
|
6152
|
+
]), i0.ɵɵStandaloneFeature], decls: 8, vars: 10, consts: [[1, "dr-date-time-picker"], ["type", "hidden", 3, "value"], [1, "dr-date-time-picker__date", 3, "id", "formControl", "min", "max", "ngModelChange"], [1, "dr-date-time-picker__time"], [1, "dr-date-time-picker__at"], ["data-testid", "date-time-picker-time-picker", 1, "dr-date-time-picker__time-picker", 3, "formControl", "ngModelChange"]], template: function DateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6153
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
6154
|
+
i0.ɵɵelement(1, "input", 1);
|
|
6155
|
+
i0.ɵɵpipe(2, "date");
|
|
6156
|
+
i0.ɵɵelementStart(3, "dr-date-picker", 2);
|
|
6157
|
+
i0.ɵɵlistener("ngModelChange", function DateTimePickerComponent_Template_dr_date_picker_ngModelChange_3_listener() { return ctx.onTouched(); });
|
|
6158
|
+
i0.ɵɵelementEnd();
|
|
6159
|
+
i0.ɵɵelementStart(4, "div", 3)(5, "span", 4);
|
|
6160
|
+
i0.ɵɵtext(6, "At");
|
|
6161
|
+
i0.ɵɵelementEnd();
|
|
6162
|
+
i0.ɵɵelementStart(7, "dr-time-picker", 5);
|
|
6163
|
+
i0.ɵɵlistener("ngModelChange", function DateTimePickerComponent_Template_dr_time_picker_ngModelChange_7_listener() { return ctx.onTouched(); });
|
|
6164
|
+
i0.ɵɵelementEnd()()();
|
|
6165
|
+
} if (rf & 2) {
|
|
6166
|
+
i0.ɵɵadvance(1);
|
|
6167
|
+
i0.ɵɵproperty("value", i0.ɵɵpipeBind2(2, 7, ctx.innerTime, "DD-MM-YYYY HH:mm"));
|
|
6168
|
+
i0.ɵɵattribute("id", ctx.id);
|
|
6169
|
+
i0.ɵɵadvance(2);
|
|
6170
|
+
i0.ɵɵproperty("id", ctx.id)("formControl", ctx.dateTimeForm.controls.date)("min", ctx.min)("max", ctx.max);
|
|
6171
|
+
i0.ɵɵadvance(4);
|
|
6172
|
+
i0.ɵɵproperty("formControl", ctx.dateTimeForm.controls.time);
|
|
6173
|
+
} }, dependencies: [CommonModule, i1.DatePipe, DrInputsModule, DrDatePickerComponent, FormsModule, i1$2.NgControlStatus, ReactiveFormsModule, i1$2.FormControlDirective, TimePickerComponent], styles: ["[_nghost-%COMP%] .dr-date-time-picker[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .dr-date-time-picker__date[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%] .dr-date-time-picker__time[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .dr-date-time-picker__time-picker[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%] .dr-date-time-picker__at[_ngcontent-%COMP%]{margin-right:4px}"], changeDetection: 0 }); }
|
|
6174
|
+
}
|
|
6175
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateTimePickerComponent, [{
|
|
6176
|
+
type: Component,
|
|
6177
|
+
args: [{ selector: 'dr-date-time-picker', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, DrInputsModule, FormsModule, ReactiveFormsModule, TimePickerComponent], providers: [
|
|
6178
|
+
{
|
|
6179
|
+
provide: NG_VALUE_ACCESSOR,
|
|
6180
|
+
useExisting: forwardRef((() => DateTimePickerComponent)),
|
|
6181
|
+
multi: true,
|
|
6182
|
+
},
|
|
6183
|
+
], template: "<div class=\"dr-date-time-picker\">\n <input [attr.id]=\"id\" type=\"hidden\" [value]=\"innerTime | date: 'DD-MM-YYYY HH:mm'\" />\n <dr-date-picker\n [id]=\"id\"\n [formControl]=\"dateTimeForm.controls.date\"\n [min]=\"min\"\n [max]=\"max\"\n (ngModelChange)=\"onTouched()\"\n class=\"dr-date-time-picker__date\" />\n\n <div class=\"dr-date-time-picker__time\">\n <span class=\"dr-date-time-picker__at\">At</span>\n <dr-time-picker\n class=\"dr-date-time-picker__time-picker\"\n [formControl]=\"dateTimeForm.controls.time\"\n (ngModelChange)=\"onTouched()\"\n data-testid=\"date-time-picker-time-picker\" />\n </div>\n</div>\n", styles: [":host .dr-date-time-picker{display:flex;flex-direction:column}:host .dr-date-time-picker__date{margin-bottom:8px}:host .dr-date-time-picker__time{display:flex;align-items:center}:host .dr-date-time-picker__time-picker{flex-grow:1}:host .dr-date-time-picker__at{margin-right:4px}\n"] }]
|
|
6184
|
+
}], function () { return []; }, { id: [{
|
|
6185
|
+
type: Input
|
|
6186
|
+
}], hostId: [{
|
|
6187
|
+
type: HostBinding,
|
|
6188
|
+
args: ['attr.id']
|
|
6189
|
+
}], min: [{
|
|
6190
|
+
type: Input
|
|
6191
|
+
}], max: [{
|
|
6192
|
+
type: Input
|
|
6193
|
+
}] }); })();
|
|
6194
|
+
|
|
6195
|
+
const _c0$x = ["stepTextLabel"];
|
|
5609
6196
|
const _c1$e = ["stepper"];
|
|
5610
6197
|
function StepperComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
5611
6198
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
@@ -5836,7 +6423,7 @@ class StepperComponent {
|
|
|
5836
6423
|
}
|
|
5837
6424
|
/** @nocollapse */ static { this.ɵfac = function StepperComponent_Factory(t) { return new (t || StepperComponent)(); }; }
|
|
5838
6425
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: StepperComponent, selectors: [["dr-stepper"]], contentQueries: function StepperComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
5839
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
6426
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$x, 5);
|
|
5840
6427
|
} if (rf & 2) {
|
|
5841
6428
|
let _t;
|
|
5842
6429
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepTextLabelTemplate = _t.first);
|
|
@@ -6007,7 +6594,7 @@ function DrChatFormComponent_dr_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
6007
6594
|
i0.ɵɵtext(1, "Stop generating");
|
|
6008
6595
|
i0.ɵɵelementEnd();
|
|
6009
6596
|
} }
|
|
6010
|
-
const _c0$
|
|
6597
|
+
const _c0$w = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
|
|
6011
6598
|
class DrChatFormComponent {
|
|
6012
6599
|
constructor(cdr, domSanitizer) {
|
|
6013
6600
|
this.cdr = cdr;
|
|
@@ -6163,7 +6750,7 @@ class DrChatFormComponent {
|
|
|
6163
6750
|
const _r1 = i0.ɵɵreference(4);
|
|
6164
6751
|
i0.ɵɵproperty("ngIf", ctx.droppedFiles == null ? null : ctx.droppedFiles.length);
|
|
6165
6752
|
i0.ɵɵadvance(2);
|
|
6166
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c0$
|
|
6753
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c0$w, ctx.inputFocus, !!(ctx.message == null ? null : ctx.message.length)));
|
|
6167
6754
|
i0.ɵɵadvance(1);
|
|
6168
6755
|
i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
|
|
6169
6756
|
i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
|
|
@@ -6278,7 +6865,7 @@ function DrAvatarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
6278
6865
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
6279
6866
|
i0.ɵɵstyleProp("width", ctx_r0.drAvatarSize || null)("height", ctx_r0.drAvatarSize || null);
|
|
6280
6867
|
} }
|
|
6281
|
-
const _c0$
|
|
6868
|
+
const _c0$v = function (a0, a1) { return { "users-section__default": a0, "users-section__user--clickable": a1 }; };
|
|
6282
6869
|
function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
6283
6870
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
6284
6871
|
i0.ɵɵelementStart(0, "div", 5);
|
|
@@ -6292,7 +6879,7 @@ function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
6292
6879
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
6293
6880
|
i0.ɵɵclassMap(user_r5.status);
|
|
6294
6881
|
i0.ɵɵstyleProp("width", ctx_r1.drAvatarSize || null)("height", ctx_r1.drAvatarSize || null)("background-color", ctx_r1.getAvatarColor(user_r5));
|
|
6295
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c0$
|
|
6882
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c0$v, ctx_r1.showUnassigned && !user_r5.email, ctx_r1.drAvatarIsClickable))("drTooltip", i0.ɵɵpipeBind1(1, 13, user_r5))("drTooltipClass", ctx_r1.drAvatarTooltipClass)("drTooltipPosition", ctx_r1.drAvatarTooltipPosition);
|
|
6296
6883
|
i0.ɵɵadvance(2);
|
|
6297
6884
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 15, user_r5, "initials"), "\n");
|
|
6298
6885
|
} }
|
|
@@ -6568,7 +7155,7 @@ class DrChatMessageFileComponent {
|
|
|
6568
7155
|
type: Input
|
|
6569
7156
|
}] }); })();
|
|
6570
7157
|
|
|
6571
|
-
const _c0$
|
|
7158
|
+
const _c0$u = ["drChatMessageActions"];
|
|
6572
7159
|
function DrChatMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
6573
7160
|
i0.ɵɵelementContainerStart(0);
|
|
6574
7161
|
i0.ɵɵelement(1, "div", 8);
|
|
@@ -6670,7 +7257,7 @@ class DrChatMessageComponent {
|
|
|
6670
7257
|
}
|
|
6671
7258
|
/** @nocollapse */ static { this.ɵfac = function DrChatMessageComponent_Factory(t) { return new (t || DrChatMessageComponent)(i0.ɵɵdirectiveInject(DrChatCustomMessageService)); }; }
|
|
6672
7259
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatMessageComponent, selectors: [["dr-chat-message"]], contentQueries: function DrChatMessageComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
6673
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
7260
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$u, 5);
|
|
6674
7261
|
} if (rf & 2) {
|
|
6675
7262
|
let _t;
|
|
6676
7263
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.drChatMessageActions = _t.first);
|
|
@@ -6741,7 +7328,7 @@ class DrChatMessageComponent {
|
|
|
6741
7328
|
args: ['drChatMessageActions']
|
|
6742
7329
|
}] }); })();
|
|
6743
7330
|
|
|
6744
|
-
const _c0$
|
|
7331
|
+
const _c0$t = ["suggestionsContainer"];
|
|
6745
7332
|
function DrChatSuggestionsComponent_ng_container_2_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
6746
7333
|
i0.ɵɵelementContainer(0);
|
|
6747
7334
|
} }
|
|
@@ -6886,7 +7473,7 @@ class DrChatSuggestionsComponent {
|
|
|
6886
7473
|
}
|
|
6887
7474
|
/** @nocollapse */ static { this.ɵfac = function DrChatSuggestionsComponent_Factory(t) { return new (t || DrChatSuggestionsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
6888
7475
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatSuggestionsComponent, selectors: [["dr-chat-suggestions"]], viewQuery: function DrChatSuggestionsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6889
|
-
i0.ɵɵviewQuery(_c0$
|
|
7476
|
+
i0.ɵɵviewQuery(_c0$t, 5);
|
|
6890
7477
|
} if (rf & 2) {
|
|
6891
7478
|
let _t;
|
|
6892
7479
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suggestionContainer = _t.first);
|
|
@@ -6920,7 +7507,7 @@ class DrChatSuggestionsComponent {
|
|
|
6920
7507
|
args: ['suggestionsContainer', { static: false }]
|
|
6921
7508
|
}] }); })();
|
|
6922
7509
|
|
|
6923
|
-
const _c0$
|
|
7510
|
+
const _c0$s = ["drChatHeader"];
|
|
6924
7511
|
const _c1$c = ["drChatLoader"];
|
|
6925
7512
|
const _c2$6 = ["drChatContent"];
|
|
6926
7513
|
const _c3$4 = ["messagesContainer"];
|
|
@@ -7057,7 +7644,7 @@ class DrChatComponent {
|
|
|
7057
7644
|
/** @nocollapse */ static { this.ɵfac = function DrChatComponent_Factory(t) { return new (t || DrChatComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
7058
7645
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatComponent, selectors: [["dr-chat"]], contentQueries: function DrChatComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
7059
7646
|
i0.ɵɵcontentQuery(dirIndex, DrChatFormComponent, 5);
|
|
7060
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
7647
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$s, 5);
|
|
7061
7648
|
i0.ɵɵcontentQuery(dirIndex, _c1$c, 5);
|
|
7062
7649
|
i0.ɵɵcontentQuery(dirIndex, _c2$6, 5);
|
|
7063
7650
|
i0.ɵɵcontentQuery(dirIndex, DrChatMessageComponent, 4);
|
|
@@ -7145,7 +7732,7 @@ class DrChatComponent {
|
|
|
7145
7732
|
args: [DrChatSuggestionsComponent]
|
|
7146
7733
|
}] }); })();
|
|
7147
7734
|
|
|
7148
|
-
const _c0$
|
|
7735
|
+
const _c0$r = ["textAreaElement"];
|
|
7149
7736
|
const _c1$b = ["fileInput"];
|
|
7150
7737
|
function DrChatFormDropdownComponent_dr_chat_dropped_files_3_Template(rf, ctx) { if (rf & 1) {
|
|
7151
7738
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -7332,7 +7919,7 @@ class DrChatFormDropdownComponent {
|
|
|
7332
7919
|
}
|
|
7333
7920
|
/** @nocollapse */ static { this.ɵfac = function DrChatFormDropdownComponent_Factory(t) { return new (t || DrChatFormDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$5.DomSanitizer)); }; }
|
|
7334
7921
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormDropdownComponent, selectors: [["dr-chat-form-dropdown"]], viewQuery: function DrChatFormDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7335
|
-
i0.ɵɵviewQuery(_c0$
|
|
7922
|
+
i0.ɵɵviewQuery(_c0$r, 5);
|
|
7336
7923
|
i0.ɵɵviewQuery(_c1$b, 5);
|
|
7337
7924
|
} if (rf & 2) {
|
|
7338
7925
|
let _t;
|
|
@@ -7469,14 +8056,14 @@ class DrChatCustomMessageDirective {
|
|
|
7469
8056
|
type: Input
|
|
7470
8057
|
}] }); })();
|
|
7471
8058
|
|
|
7472
|
-
const _c0$
|
|
8059
|
+
const _c0$q = ["*"];
|
|
7473
8060
|
class DrChatAlertComponent {
|
|
7474
8061
|
constructor() {
|
|
7475
8062
|
this.iconClass = 'dr-icon-info';
|
|
7476
8063
|
this.close = new EventEmitter();
|
|
7477
8064
|
}
|
|
7478
8065
|
/** @nocollapse */ static { this.ɵfac = function DrChatAlertComponent_Factory(t) { return new (t || DrChatAlertComponent)(); }; }
|
|
7479
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$
|
|
8066
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$q, decls: 3, vars: 2, consts: [["theme", "icon", "icon", "dr-icon-exit", "drTooltip", "Close", 1, "chat-alert-close-btn", 3, "click"]], template: function DrChatAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7480
8067
|
i0.ɵɵprojectionDef();
|
|
7481
8068
|
i0.ɵɵelement(0, "i");
|
|
7482
8069
|
i0.ɵɵprojection(1);
|
|
@@ -7496,117 +8083,6 @@ class DrChatAlertComponent {
|
|
|
7496
8083
|
type: Output
|
|
7497
8084
|
}] }); })();
|
|
7498
8085
|
|
|
7499
|
-
function DrToggleComponent_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
7500
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
7501
|
-
i0.ɵɵtext(1);
|
|
7502
|
-
i0.ɵɵelementEnd();
|
|
7503
|
-
} if (rf & 2) {
|
|
7504
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
7505
|
-
i0.ɵɵadvance(1);
|
|
7506
|
-
i0.ɵɵtextInterpolate(ctx_r0.toggleTitle);
|
|
7507
|
-
} }
|
|
7508
|
-
function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
7509
|
-
i0.ɵɵelementStart(0, "span", 6);
|
|
7510
|
-
i0.ɵɵtext(1);
|
|
7511
|
-
i0.ɵɵelementEnd();
|
|
7512
|
-
} if (rf & 2) {
|
|
7513
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
7514
|
-
i0.ɵɵadvance(1);
|
|
7515
|
-
i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
|
|
7516
|
-
} }
|
|
7517
|
-
const _c0$q = ["*"];
|
|
7518
|
-
class DrToggleComponent {
|
|
7519
|
-
set disabled(value) {
|
|
7520
|
-
this.setDisabledState(value);
|
|
7521
|
-
}
|
|
7522
|
-
get elementClass() {
|
|
7523
|
-
return this._elementClass.join(' ');
|
|
7524
|
-
}
|
|
7525
|
-
constructor(cdr) {
|
|
7526
|
-
this.cdr = cdr;
|
|
7527
|
-
this._disabled = false;
|
|
7528
|
-
this._elementClass = [];
|
|
7529
|
-
this.hostId = null;
|
|
7530
|
-
this.checkedChange = new EventEmitter();
|
|
7531
|
-
this.onChange = () => { };
|
|
7532
|
-
this.onTouched = () => { };
|
|
7533
|
-
}
|
|
7534
|
-
ngAfterViewInit() {
|
|
7535
|
-
if (this.toggleTitleRight) {
|
|
7536
|
-
this._elementClass.push('toggle-label-alignment');
|
|
7537
|
-
}
|
|
7538
|
-
}
|
|
7539
|
-
writeValue(value) {
|
|
7540
|
-
this.checkedStatus = value;
|
|
7541
|
-
this.cdr.markForCheck();
|
|
7542
|
-
}
|
|
7543
|
-
registerOnChange(fn) {
|
|
7544
|
-
this.onChange = fn;
|
|
7545
|
-
}
|
|
7546
|
-
registerOnTouched(fn) {
|
|
7547
|
-
this.onTouched = fn;
|
|
7548
|
-
}
|
|
7549
|
-
setDisabledState(isDisabled) {
|
|
7550
|
-
this._disabled = isDisabled;
|
|
7551
|
-
}
|
|
7552
|
-
setValue() {
|
|
7553
|
-
this.checkedStatus = !this.checkedStatus;
|
|
7554
|
-
this.onChange(this.checkedStatus);
|
|
7555
|
-
this.checkedChange.emit(this.checkedStatus);
|
|
7556
|
-
this.onTouched();
|
|
7557
|
-
}
|
|
7558
|
-
/** @nocollapse */ static { this.ɵfac = function DrToggleComponent_Factory(t) { return new (t || DrToggleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
7559
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 3, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
7560
|
-
i0.ɵɵattribute("id", ctx.hostId);
|
|
7561
|
-
i0.ɵɵclassMap(ctx.elementClass);
|
|
7562
|
-
} }, inputs: { id: "id", toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }])], ngContentSelectors: _c0$q, decls: 7, vars: 10, consts: [["class", "toggle-title mr-3", 4, "ngIf"], [1, "toggle-container"], ["type", "checkbox", 3, "checked", "disabled", "click"], [1, "toggle-body"], ["class", "toggle-title ml-3", 4, "ngIf"], [1, "toggle-title", "mr-3"], [1, "toggle-title", "ml-3"]], template: function DrToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7563
|
-
i0.ɵɵprojectionDef();
|
|
7564
|
-
i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
|
|
7565
|
-
i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
|
|
7566
|
-
i0.ɵɵlistener("click", function DrToggleComponent_Template_input_click_2_listener() { return ctx.setValue(); });
|
|
7567
|
-
i0.ɵɵelementEnd();
|
|
7568
|
-
i0.ɵɵelementStart(3, "span", 3);
|
|
7569
|
-
i0.ɵɵelement(4, "i");
|
|
7570
|
-
i0.ɵɵelementEnd();
|
|
7571
|
-
i0.ɵɵprojection(5);
|
|
7572
|
-
i0.ɵɵelementEnd();
|
|
7573
|
-
i0.ɵɵtemplate(6, DrToggleComponent_span_6_Template, 2, 1, "span", 4);
|
|
7574
|
-
} if (rf & 2) {
|
|
7575
|
-
i0.ɵɵproperty("ngIf", ctx.toggleTitle && !ctx.toggleTitleRight);
|
|
7576
|
-
i0.ɵɵadvance(1);
|
|
7577
|
-
i0.ɵɵclassProp("success", ctx.successType)("disabled", ctx._disabled);
|
|
7578
|
-
i0.ɵɵadvance(1);
|
|
7579
|
-
i0.ɵɵproperty("checked", ctx.checkedStatus)("disabled", ctx._disabled);
|
|
7580
|
-
i0.ɵɵattribute("id", ctx.id)("data-test", ctx.checkedStatus ? "toggle-on" : "toggle-off");
|
|
7581
|
-
i0.ɵɵadvance(4);
|
|
7582
|
-
i0.ɵɵproperty("ngIf", ctx.toggleTitle && ctx.toggleTitleRight);
|
|
7583
|
-
} }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:Poppins,sans-serif}.toggle-label-alignment[_nghost-%COMP%]{justify-content:start}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]{background-color:#8f9bb329!important}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:#8f9bb33d!important}[_nghost-%COMP%] .toggle-container.success[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]{background-color:#03a678}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], [_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]:active > i[_ngcontent-%COMP%]{margin-left:16px}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]{background-color:#4646ce}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]:active{background-color:#a6b9cb}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}[_nghost-%COMP%] .toggle-title[_ngcontent-%COMP%]{line-height:22px}"], changeDetection: 0 }); }
|
|
7584
|
-
}
|
|
7585
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToggleComponent, [{
|
|
7586
|
-
type: Component,
|
|
7587
|
-
args: [{ selector: 'dr-toggle', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"toggle-title mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{ toggleTitle }}</span>\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\n <input\n [attr.id]=\"id\"\n type=\"checkbox\"\n [attr.data-test]=\"checkedStatus ? 'toggle-on' : 'toggle-off'\"\n [checked]=\"checkedStatus\"\n [disabled]=\"_disabled\"\n (click)=\"setValue()\" />\n <span class=\"toggle-body\">\n <i></i>\n </span>\n <ng-content></ng-content>\n</label>\n<span class=\"toggle-title ml-3\" *ngIf=\"toggleTitle && toggleTitleRight\">{{ toggleTitle }}</span>\n", styles: [":host{display:flex;justify-content:space-between;align-items:center;font-family:Poppins,sans-serif}:host.toggle-label-alignment{justify-content:start}:host .toggle-container{display:flex;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:#8f9bb33d!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#4646ce}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}:host .toggle-title{line-height:22px}\n"] }]
|
|
7588
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { id: [{
|
|
7589
|
-
type: Input
|
|
7590
|
-
}], hostId: [{
|
|
7591
|
-
type: HostBinding,
|
|
7592
|
-
args: ['attr.id']
|
|
7593
|
-
}], toggleTitle: [{
|
|
7594
|
-
type: Input
|
|
7595
|
-
}], toggleTitleRight: [{
|
|
7596
|
-
type: Input
|
|
7597
|
-
}], successType: [{
|
|
7598
|
-
type: Input
|
|
7599
|
-
}], checkedStatus: [{
|
|
7600
|
-
type: Input
|
|
7601
|
-
}], disabled: [{
|
|
7602
|
-
type: Input
|
|
7603
|
-
}], checkedChange: [{
|
|
7604
|
-
type: Output
|
|
7605
|
-
}], elementClass: [{
|
|
7606
|
-
type: HostBinding,
|
|
7607
|
-
args: ['class']
|
|
7608
|
-
}] }); })();
|
|
7609
|
-
|
|
7610
8086
|
var BadgeStatus;
|
|
7611
8087
|
(function (BadgeStatus) {
|
|
7612
8088
|
BadgeStatus["INFO"] = "info";
|
|
@@ -11157,7 +11633,7 @@ function DialogModalWrapperComponent_form_7_div_2_dr_select_3_Template(rf, ctx)
|
|
|
11157
11633
|
} if (rf & 2) {
|
|
11158
11634
|
const field_r11 = i0.ɵɵnextContext().$implicit;
|
|
11159
11635
|
const ctx_r13 = i0.ɵɵnextContext(2);
|
|
11160
|
-
i0.ɵɵproperty("searchable", ctx_r13.dialogData.searchable)("clearable", ctx_r13.dialogData.clearable)("formControlName", field_r11.name)("addTag", field_r11.addTag)("bindLabel", field_r11.bindLabel || null)("bindValue", field_r11.bindValue || null)("selectedItem", field_r11.default)("items", field_r11.items || i0.ɵɵpipeBind1(1, 12, field_r11.items$))("loading", i0.ɵɵpipeBind1(2, 14, ctx_r13.fieldsItemsLoading[field_r11.name]))("required",
|
|
11636
|
+
i0.ɵɵproperty("searchable", ctx_r13.dialogData.searchable)("clearable", ctx_r13.dialogData.clearable)("formControlName", field_r11.name)("addTag", field_r11.addTag)("bindLabel", field_r11.bindLabel || null)("bindValue", field_r11.bindValue || null)("selectedItem", field_r11.default)("items", field_r11.items || i0.ɵɵpipeBind1(1, 12, field_r11.items$))("loading", i0.ɵɵpipeBind1(2, 14, ctx_r13.fieldsItemsLoading[field_r11.name]))("required", !field_r11.isOptional)("placeholder", field_r11.placeholder);
|
|
11161
11637
|
i0.ɵɵadvance(3);
|
|
11162
11638
|
i0.ɵɵproperty("ngIf", ctx_r13.dialogData == null ? null : ctx_r13.dialogData.footerTemplateData);
|
|
11163
11639
|
} }
|
|
@@ -11413,7 +11889,7 @@ class DialogModalWrapperComponent {
|
|
|
11413
11889
|
}
|
|
11414
11890
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogModalWrapperComponent, [{
|
|
11415
11891
|
type: Component,
|
|
11416
|
-
args: [{ selector: 'dr-dialog-modal-wrapper', template: "<div header class=\"header-dialog\">\n <h1 class=\"title-dialog\" data-test=\"modalTitle\">\n <i\n *ngIf=\"dialogData.headerIconClass\"\n (click)=\"closeDialog()\"\n class=\"title-dialog__icon\"\n [class]=\"dialogData.headerIconClass\"\n data-test=\"dialogTitleIcon\"></i>\n <span class=\"title-dialog__text\">{{ dialogData.title }}</span>\n </h1>\n <i *ngIf=\"!dialogData.hideCloseBtn\" (click)=\"closeDialog()\" class=\"dr-icon-exit icon-close\" data-test=\"xBtn\"></i>\n</div>\n<div *ngIf=\"dialogData.content\" class=\"content-dialog\" [innerHTML]=\"dialogData.content\">\n <span #content class=\"content-anchor\"></span>\n</div>\n<form *ngIf=\"dialogData.fields\" [formGroup]=\"form\" class=\"dr-smart-from\">\n <div [class]=\"dialogData.formWrapperClass || 'dr-smart-form_wrapper'\">\n <div\n *ngFor=\"let field of dialogData.fields\"\n class=\"dr-smart-form_group\"\n [class]=\"field.formGroupClass\"\n [ngStyle]=\"{ display: field.isLabelFullWidth ? 'block' : 'flex' }\">\n <label\n *ngIf=\"field.label && field.type !== dialogFieldType.CHECKBOX\"\n [ngClass]=\"field.isLabelFullWidth ? 'col-md-12 mb-2' : 'col-md-2'\"\n class=\"label p-0 d-flex align-items-center\"\n >{{ field.label }}</label\n >\n <div\n class=\"input-group p-0\"\n [ngClass]=\"{\n 'col-md-10': field.label && !field.isLabelFullWidth,\n 'col-md-12': !field.label || field.isLabelFullWidth,\n }\">\n <dr-select\n *ngIf=\"field.type === dialogFieldType.SELECT\"\n [searchable]=\"dialogData.searchable\"\n [clearable]=\"dialogData.clearable\"\n [formControlName]=\"field.name\"\n [addTag]=\"field.addTag\"\n [bindLabel]=\"field.bindLabel || null\"\n [bindValue]=\"field.bindValue || null\"\n [selectedItem]=\"field.default\"\n [items]=\"field.items || (field.items$ | async)\"\n [loading]=\"fieldsItemsLoading[field.name] | async\"\n [required]=\"
|
|
11892
|
+
args: [{ selector: 'dr-dialog-modal-wrapper', template: "<div header class=\"header-dialog\">\n <h1 class=\"title-dialog\" data-test=\"modalTitle\">\n <i\n *ngIf=\"dialogData.headerIconClass\"\n (click)=\"closeDialog()\"\n class=\"title-dialog__icon\"\n [class]=\"dialogData.headerIconClass\"\n data-test=\"dialogTitleIcon\"></i>\n <span class=\"title-dialog__text\">{{ dialogData.title }}</span>\n </h1>\n <i *ngIf=\"!dialogData.hideCloseBtn\" (click)=\"closeDialog()\" class=\"dr-icon-exit icon-close\" data-test=\"xBtn\"></i>\n</div>\n<div *ngIf=\"dialogData.content\" class=\"content-dialog\" [innerHTML]=\"dialogData.content\">\n <span #content class=\"content-anchor\"></span>\n</div>\n<form *ngIf=\"dialogData.fields\" [formGroup]=\"form\" class=\"dr-smart-from\">\n <div [class]=\"dialogData.formWrapperClass || 'dr-smart-form_wrapper'\">\n <div\n *ngFor=\"let field of dialogData.fields\"\n class=\"dr-smart-form_group\"\n [class]=\"field.formGroupClass\"\n [ngStyle]=\"{ display: field.isLabelFullWidth ? 'block' : 'flex' }\">\n <label\n *ngIf=\"field.label && field.type !== dialogFieldType.CHECKBOX\"\n [ngClass]=\"field.isLabelFullWidth ? 'col-md-12 mb-2' : 'col-md-2'\"\n class=\"label p-0 d-flex align-items-center\"\n >{{ field.label }}</label\n >\n <div\n class=\"input-group p-0\"\n [ngClass]=\"{\n 'col-md-10': field.label && !field.isLabelFullWidth,\n 'col-md-12': !field.label || field.isLabelFullWidth,\n }\">\n <dr-select\n *ngIf=\"field.type === dialogFieldType.SELECT\"\n [searchable]=\"dialogData.searchable\"\n [clearable]=\"dialogData.clearable\"\n [formControlName]=\"field.name\"\n [addTag]=\"field.addTag\"\n [bindLabel]=\"field.bindLabel || null\"\n [bindValue]=\"field.bindValue || null\"\n [selectedItem]=\"field.default\"\n [items]=\"field.items || (field.items$ | async)\"\n [loading]=\"fieldsItemsLoading[field.name] | async\"\n [required]=\"!field.isOptional\"\n [placeholder]=\"field.placeholder\">\n <ng-template *ngIf=\"dialogData?.footerTemplateData\" #optionFooterTemplate let-item=\"item\" let-close=\"close\">\n <button (click)=\"footerAction(); close()\" class=\"dr-select-footer__btn\">\n <i *ngIf=\"dialogData.footerTemplateData.icon\" class=\"{{ dialogData.footerTemplateData.icon }}\"></i>\n {{ dialogData.footerTemplateData.label }}\n </button>\n </ng-template>\n </dr-select>\n <dr-input\n *ngIf=\"field.type === dialogFieldType.INPUT\"\n data-test=\"modalInput\"\n class=\"form-control\"\n [formControlName]=\"field.name\"\n [placeholder]=\"field.placeholder\"></dr-input>\n <dr-date-picker\n *ngIf=\"field.type === dialogFieldType.DATE_PICKER\"\n [formControlName]=\"field.name\"\n [format]=\"field.datePickerFormat\"\n [placeholder]=\"field.placeholder\"></dr-date-picker>\n <dr-checkbox *ngIf=\"field.type === dialogFieldType.CHECKBOX\" [formControlName]=\"field.name\">\n {{ field.label }}\n </dr-checkbox>\n <label\n class=\"form-field-error-alert\"\n *ngIf=\"form.invalid && form.controls[field.name]?.dirty && form.controls[field.name]?.errors\">\n {{ form.controls[field.name].errors.errorString }}\n </label>\n <label class=\"form-error-alert\" *ngIf=\"dialogData.errorMessage && !form.pristine && form.invalid\">\n {{ dialogData.errorMessage }}\n </label>\n <label class=\"form-error-alert\" *ngIf=\"form.valid && showServerErrorMessage && dialogData.serverErrorMessage\">\n {{ dialogData.serverErrorMessage }}\n </label>\n </div>\n </div>\n </div>\n</form>\n\n<div footer class=\"footer-dialog\">\n <div class=\"buttons-wrapper\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <dr-button\n (click)=\"onDecline()\"\n *ngIf=\"dialogData.customButton\"\n [theme]=\"dialogData.customButton?.theme || 'secondary'\"\n class=\"buttons-wrapper--custom-btn\"\n data-test=\"declineBtn\"\n >{{ dialogData.customButton.label }}</dr-button\n >\n <dr-button *ngIf=\"dialogData.cancelButton\" data-test=\"modalCloseBtn\" (click)=\"onCancel()\" [theme]=\"'secondary'\">{{\n dialogData.cancelButton.label\n }}</dr-button>\n <dr-button\n *ngIf=\"dialogData.acceptButton\"\n data-test=\"modalAddBtn\"\n (click)=\"onAccept()\"\n [theme]=\"'primary'\"\n [isLoading]=\"isLoading\"\n [disabled]=\"form.invalid\"\n >{{ dialogData.acceptButton.label }}</dr-button\n >\n </div>\n</div>\n", styles: [":host{display:flex;justify-content:space-between;flex-direction:column}:host.small-modal,:host.small-modal-max-height{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal,:host.medium-modal-max-height{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.medium-small-modal{min-height:188px;max-height:345px;min-width:460px;max-width:460px}:host.medium-modal-max-height,:host.small-modal-max-height{max-height:80vh}.header-dialog{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}.header-dialog>.icon-close{position:absolute;right:32px;top:16px;cursor:pointer}.title-dialog{display:flex;color:#333;position:static;font-weight:600;font-size:16px;line-height:24px;margin-top:0;margin-bottom:0}.title-dialog__icon{font-size:32px;margin-right:8px;line-height:24px;color:#6d6e6f}.content-dialog{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line;overflow:auto}.icon-close{color:#6d6e6f;cursor:pointer}.dr-smart-from{font-size:14px;font-weight:400;line-height:22px;padding:8px 32px 24px}.dr-smart-from dr-checkbox{font-weight:400}.content-dialog{padding:16px 32px 0;font-weight:400;font-size:14px;line-height:22px}.content-anchor{display:none}.footer-dialog{border-top:1px solid #dfe0e3}.buttons-wrapper{display:flex;justify-content:flex-end;padding:10px 32px 11px}.buttons-wrapper dr-button:nth-of-type(n+2){margin-left:12px}.buttons-wrapper--custom-btn{margin-right:auto}.form-field-error-alert{font-size:12px;color:#bf1d30;line-height:20px}.form-error-alert{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}.dr-select-footer__btn{background-color:transparent;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}\n"] }]
|
|
11417
11893
|
}], function () { return [{ type: i1$6.MatLegacyDialogRef }, { type: undefined, decorators: [{
|
|
11418
11894
|
type: Inject,
|
|
11419
11895
|
args: [MAT_LEGACY_DIALOG_DATA]
|
|
@@ -12836,148 +13312,6 @@ class DrToastrService {
|
|
|
12836
13312
|
}]
|
|
12837
13313
|
}], function () { return [{ type: i1$7.ToastrService }]; }, null); })();
|
|
12838
13314
|
|
|
12839
|
-
const TOOLTIP_COMPONENTS = [TooltipDefaultComponent, TooltipInfoComponent];
|
|
12840
|
-
class DrTooltipModule {
|
|
12841
|
-
/** @nocollapse */ static { this.ɵfac = function DrTooltipModule_Factory(t) { return new (t || DrTooltipModule)(); }; }
|
|
12842
|
-
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrTooltipModule }); }
|
|
12843
|
-
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
12844
|
-
}
|
|
12845
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrTooltipModule, [{
|
|
12846
|
-
type: NgModule,
|
|
12847
|
-
args: [{
|
|
12848
|
-
imports: [CommonModule],
|
|
12849
|
-
exports: [TooltipComponent, DrTooltipDirective, ...TOOLTIP_COMPONENTS],
|
|
12850
|
-
providers: [],
|
|
12851
|
-
declarations: [TooltipComponent, DrTooltipDirective, ...TOOLTIP_COMPONENTS],
|
|
12852
|
-
}]
|
|
12853
|
-
}], null, null); })();
|
|
12854
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrTooltipModule, { declarations: [TooltipComponent, DrTooltipDirective, TooltipDefaultComponent, TooltipInfoComponent], imports: [CommonModule], exports: [TooltipComponent, DrTooltipDirective, TooltipDefaultComponent, TooltipInfoComponent] }); })();
|
|
12855
|
-
|
|
12856
|
-
const components$3 = [DrSpinnerComponent];
|
|
12857
|
-
const directives = [DrSpinnerDirective];
|
|
12858
|
-
class DrSpinnerModule {
|
|
12859
|
-
/** @nocollapse */ static { this.ɵfac = function DrSpinnerModule_Factory(t) { return new (t || DrSpinnerModule)(); }; }
|
|
12860
|
-
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrSpinnerModule }); }
|
|
12861
|
-
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
12862
|
-
}
|
|
12863
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrSpinnerModule, [{
|
|
12864
|
-
type: NgModule,
|
|
12865
|
-
args: [{
|
|
12866
|
-
imports: [CommonModule],
|
|
12867
|
-
exports: [...components$3, ...directives],
|
|
12868
|
-
declarations: [...components$3, ...directives],
|
|
12869
|
-
}]
|
|
12870
|
-
}], null, null); })();
|
|
12871
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrSpinnerModule, { declarations: [DrSpinnerComponent, DrSpinnerDirective], imports: [CommonModule], exports: [DrSpinnerComponent, DrSpinnerDirective] }); })();
|
|
12872
|
-
|
|
12873
|
-
// !!! Please do not use such approach in other places
|
|
12874
|
-
// Hard fix for 'none' calendar view selection
|
|
12875
|
-
MatCalendar.prototype.focusActiveCell = function () {
|
|
12876
|
-
this._getCurrentViewComponent()?._focusActiveCell(false);
|
|
12877
|
-
};
|
|
12878
|
-
const standalone = [DrButtonComponent];
|
|
12879
|
-
const components$2 = [
|
|
12880
|
-
RadioButtonComponent,
|
|
12881
|
-
RadioGroupComponent,
|
|
12882
|
-
CheckboxComponent,
|
|
12883
|
-
DrInputComponent,
|
|
12884
|
-
DrSelectComponent,
|
|
12885
|
-
DrToggleComponent,
|
|
12886
|
-
DrToggleButtonComponent,
|
|
12887
|
-
DrDatePickerComponent,
|
|
12888
|
-
DrDatePickerWithTimeframeComponent,
|
|
12889
|
-
DrDatePickerFormatDirective,
|
|
12890
|
-
DrDatePickerCustomHeaderComponent,
|
|
12891
|
-
DrDatePickerRangeComponent,
|
|
12892
|
-
DrModelDebounceChangeDirective,
|
|
12893
|
-
DrShowTimeframePipe,
|
|
12894
|
-
DrSelectAddItemComponent,
|
|
12895
|
-
DrLinkComponent,
|
|
12896
|
-
DrFiscalMonthCalendarPickerComponent,
|
|
12897
|
-
DrFiscalMonthCalendarHeaderComponent,
|
|
12898
|
-
];
|
|
12899
|
-
class DrInputsModule {
|
|
12900
|
-
/** @nocollapse */ static { this.ɵfac = function DrInputsModule_Factory(t) { return new (t || DrInputsModule)(); }; }
|
|
12901
|
-
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrInputsModule }); }
|
|
12902
|
-
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [provideNgxMask()], imports: [standalone, FormsModule,
|
|
12903
|
-
ReactiveFormsModule,
|
|
12904
|
-
CommonModule,
|
|
12905
|
-
NgSelectModule,
|
|
12906
|
-
MatNativeDateModule,
|
|
12907
|
-
MatDatepickerModule,
|
|
12908
|
-
DrTooltipModule,
|
|
12909
|
-
DrSpinnerModule,
|
|
12910
|
-
WeekSelectorComponent,
|
|
12911
|
-
MatMomentDateModule] }); }
|
|
12912
|
-
}
|
|
12913
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrInputsModule, [{
|
|
12914
|
-
type: NgModule,
|
|
12915
|
-
args: [{
|
|
12916
|
-
declarations: components$2,
|
|
12917
|
-
exports: [...components$2, ...standalone],
|
|
12918
|
-
providers: [provideNgxMask()],
|
|
12919
|
-
imports: [
|
|
12920
|
-
...standalone,
|
|
12921
|
-
NgxMaskDirective,
|
|
12922
|
-
FormsModule,
|
|
12923
|
-
ReactiveFormsModule,
|
|
12924
|
-
CommonModule,
|
|
12925
|
-
NgSelectModule,
|
|
12926
|
-
MatNativeDateModule,
|
|
12927
|
-
MatDatepickerModule,
|
|
12928
|
-
DrTooltipModule,
|
|
12929
|
-
DrSpinnerModule,
|
|
12930
|
-
WeekSelectorComponent,
|
|
12931
|
-
MatMomentDateModule,
|
|
12932
|
-
],
|
|
12933
|
-
}]
|
|
12934
|
-
}], null, null); })();
|
|
12935
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrInputsModule, { declarations: [RadioButtonComponent,
|
|
12936
|
-
RadioGroupComponent,
|
|
12937
|
-
CheckboxComponent,
|
|
12938
|
-
DrInputComponent,
|
|
12939
|
-
DrSelectComponent,
|
|
12940
|
-
DrToggleComponent,
|
|
12941
|
-
DrToggleButtonComponent,
|
|
12942
|
-
DrDatePickerComponent,
|
|
12943
|
-
DrDatePickerWithTimeframeComponent,
|
|
12944
|
-
DrDatePickerFormatDirective,
|
|
12945
|
-
DrDatePickerCustomHeaderComponent,
|
|
12946
|
-
DrDatePickerRangeComponent,
|
|
12947
|
-
DrModelDebounceChangeDirective,
|
|
12948
|
-
DrShowTimeframePipe,
|
|
12949
|
-
DrSelectAddItemComponent,
|
|
12950
|
-
DrLinkComponent,
|
|
12951
|
-
DrFiscalMonthCalendarPickerComponent,
|
|
12952
|
-
DrFiscalMonthCalendarHeaderComponent], imports: [DrButtonComponent, NgxMaskDirective,
|
|
12953
|
-
FormsModule,
|
|
12954
|
-
ReactiveFormsModule,
|
|
12955
|
-
CommonModule,
|
|
12956
|
-
NgSelectModule,
|
|
12957
|
-
MatNativeDateModule,
|
|
12958
|
-
MatDatepickerModule,
|
|
12959
|
-
DrTooltipModule,
|
|
12960
|
-
DrSpinnerModule,
|
|
12961
|
-
WeekSelectorComponent,
|
|
12962
|
-
MatMomentDateModule], exports: [RadioButtonComponent,
|
|
12963
|
-
RadioGroupComponent,
|
|
12964
|
-
CheckboxComponent,
|
|
12965
|
-
DrInputComponent,
|
|
12966
|
-
DrSelectComponent,
|
|
12967
|
-
DrToggleComponent,
|
|
12968
|
-
DrToggleButtonComponent,
|
|
12969
|
-
DrDatePickerComponent,
|
|
12970
|
-
DrDatePickerWithTimeframeComponent,
|
|
12971
|
-
DrDatePickerFormatDirective,
|
|
12972
|
-
DrDatePickerCustomHeaderComponent,
|
|
12973
|
-
DrDatePickerRangeComponent,
|
|
12974
|
-
DrModelDebounceChangeDirective,
|
|
12975
|
-
DrShowTimeframePipe,
|
|
12976
|
-
DrSelectAddItemComponent,
|
|
12977
|
-
DrLinkComponent,
|
|
12978
|
-
DrFiscalMonthCalendarPickerComponent,
|
|
12979
|
-
DrFiscalMonthCalendarHeaderComponent, DrButtonComponent] }); })();
|
|
12980
|
-
|
|
12981
13315
|
const components$1 = [
|
|
12982
13316
|
DateTagComponent,
|
|
12983
13317
|
DayTagComponent,
|
|
@@ -15361,5 +15695,5 @@ class FilterDropdownComponent {
|
|
|
15361
15695
|
* Generated bundle index. Do not edit.
|
|
15362
15696
|
*/
|
|
15363
15697
|
|
|
15364
|
-
export { AnyTagComponent, AutofocusDirective, BadgeStatus, CHAT_MESSAGE_TYPE, CROP_IMAGE_MODES, CalendarView, ChatMessage, ChatRole, CheckboxComponent, ClickOutsideDirective, ClickOutsideModule, CodeEditorHintWrapperComponent, CustomDateAdapter, CustomDateFormat, DEFAULT_LINK_FONT_SIZE, DEFAULT_LINK_FONT_WEIGHT, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DR_DRAWER_DATA, DR_DRAWER_DEFAULT_OPTIONS, DR_SHINE_ANIMATION_CLASS, DataAnalyticsService, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DefaultToastrComponent, DefaultTreeviewEventParser, DefaultTreeviewI18n, DialogModalWrapperComponent, DialogService, DialogWrapperComponent, DownlineTreeviewEventParser, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAlertComponent, DrAlertModule, DrAlertTheme, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrAvatarService, DrBadgeStatusComponent, DrBadgeStatusModule, DrButtonComponent, DrChatAlertComponent, DrChatComponent, DrChatCustomMessageDirective, DrChatDroppedFilesComponent, DrChatFormComponent, DrChatFormDropdownComponent, DrChatMessageComponent, DrChatMessageFileComponent, DrChatMessageTextComponent, DrChatModule, DrChatSuggestionsComponent, DrChipComponent, DrCodeEditorComponent, DrCodeEditorModule, DrCodemirrorComponent, DrDatePickerComponent, DrDatePickerCustomHeaderComponent, DrDatePickerFormatDirective, DrDatePickerRangeComponent, DrDatePickerWithTimeframeComponent, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDotFlashingComponent, DrDropdownChildDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemComponent, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownService, DrErrorComponent, DrErrorModule, DrFiscalMonthCalendarHeaderComponent, DrFiscalMonthCalendarPickerComponent, DrGalleryComponent, DrImageCropperComponent, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrLinkComponent, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrProgressBarComponent, DrScenarioConfigurationComponent, DrScenarioModule, DrScenarioTagConfigurationComponent, DrSelectAddItemComponent, DrSelectComponent, DrSharedUtils, DrShineAnimationDirective, DrShowTimeframePipe, DrSliderComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrTagsConstructorComponent, DrTagsConstructorModule, DrToastrModule, DrToastrService, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, Drawer, DrawerConfig, DrawerContainer, DrawerModule, DrawerRef, DropdownInstanceService, ElementOverflowDirective, FeedbackSentiment, FilterDropdownComponent, FilterPipe, FiscalMonthAdapter, ForecastTagComponent, ForecastTagService, ICodeEditorHintIcon, IMAGE_TYPES, ImgPipe, LetContext, LetDirective, LinkTheme, ListTagComponent, ListTagModule, MonthTagComponent, OrderDownlineTreeviewEventParser, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, SearchPipe, SeparateTableColumnDirective, SeparateTableComponent, StepWizardDirective, StepperComponent, StepperWizardComponent, TagTypes, TagsConfigSubType, TagsConstructorService, TextOverflowComponent, TimeframeOption, ToastrStatus, ToastrStatusIcon, ToggleButtonMode, TooltipComponent, TooltipDefaultComponent, TooltipInfoComponent, TooltipInfoIconTheme, TooltipInfoWidth, TooltipPosition, TooltipTheme, TrackByPropertyDirective, TreeviewComponent, TreeviewConfig, TreeviewEventParser, TreeviewHelper, TreeviewI18n, TreeviewItem, TreeviewModule, TreeviewPipe, WeekTagComponent, YearTagComponent };
|
|
15698
|
+
export { AnyTagComponent, AutofocusDirective, BadgeStatus, CHAT_MESSAGE_TYPE, CROP_IMAGE_MODES, CalendarView, ChatMessage, ChatRole, CheckboxComponent, ClickOutsideDirective, ClickOutsideModule, CodeEditorHintWrapperComponent, CustomDateAdapter, CustomDateFormat, DEFAULT_LINK_FONT_SIZE, DEFAULT_LINK_FONT_WEIGHT, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DR_DRAWER_DATA, DR_DRAWER_DEFAULT_OPTIONS, DR_SHINE_ANIMATION_CLASS, DataAnalyticsService, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DateTimePickerComponent, DayTagComponent, DefaultToastrComponent, DefaultTreeviewEventParser, DefaultTreeviewI18n, DialogModalWrapperComponent, DialogService, DialogWrapperComponent, DownlineTreeviewEventParser, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAlertComponent, DrAlertModule, DrAlertTheme, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrAvatarService, DrBadgeStatusComponent, DrBadgeStatusModule, DrButtonComponent, DrChatAlertComponent, DrChatComponent, DrChatCustomMessageDirective, DrChatDroppedFilesComponent, DrChatFormComponent, DrChatFormDropdownComponent, DrChatMessageComponent, DrChatMessageFileComponent, DrChatMessageTextComponent, DrChatModule, DrChatSuggestionsComponent, DrChipComponent, DrCodeEditorComponent, DrCodeEditorModule, DrCodemirrorComponent, DrDatePickerComponent, DrDatePickerCustomHeaderComponent, DrDatePickerFormatDirective, DrDatePickerRangeComponent, DrDatePickerWithTimeframeComponent, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDotFlashingComponent, DrDropdownChildDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemComponent, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownService, DrErrorComponent, DrErrorModule, DrFiscalMonthCalendarHeaderComponent, DrFiscalMonthCalendarPickerComponent, DrGalleryComponent, DrImageCropperComponent, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrLinkComponent, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrProgressBarComponent, DrScenarioConfigurationComponent, DrScenarioModule, DrScenarioTagConfigurationComponent, DrSelectAddItemComponent, DrSelectComponent, DrSharedUtils, DrShineAnimationDirective, DrShowTimeframePipe, DrSliderComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrTagsConstructorComponent, DrTagsConstructorModule, DrToastrModule, DrToastrService, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, Drawer, DrawerConfig, DrawerContainer, DrawerModule, DrawerRef, DropdownInstanceService, ElementOverflowDirective, FeedbackSentiment, FilterDropdownComponent, FilterPipe, FiscalMonthAdapter, ForecastTagComponent, ForecastTagService, GMT_OFFSETS, ICodeEditorHintIcon, IMAGE_TYPES, ImgPipe, LOCAL_TIME_ZONE_OFFSET, LetContext, LetDirective, LinkTheme, ListTagComponent, ListTagModule, MonthTagComponent, OrderDownlineTreeviewEventParser, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, SearchPipe, SeparateTableColumnDirective, SeparateTableComponent, StepWizardDirective, StepperComponent, StepperWizardComponent, TagTypes, TagsConfigSubType, TagsConstructorService, TextOverflowComponent, TimePickerComponent, TimeframeOption, ToastrStatus, ToastrStatusIcon, ToggleButtonMode, TooltipComponent, TooltipDefaultComponent, TooltipInfoComponent, TooltipInfoIconTheme, TooltipInfoWidth, TooltipPosition, TooltipTheme, TrackByPropertyDirective, TreeviewComponent, TreeviewConfig, TreeviewEventParser, TreeviewHelper, TreeviewI18n, TreeviewItem, TreeviewModule, TreeviewPipe, WeekTagComponent, YearTagComponent, getGMTLabel };
|
|
15365
15699
|
//# sourceMappingURL=datarailsshared-datarailsshared.mjs.map
|