@dereekb/dbx-form 9.21.0 → 9.22.0
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/calendar/lib/calendar.schedule.selection.range.component.d.ts +4 -4
- package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +0 -1
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.button.component.mjs +1 -1
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +1 -1
- package/esm2020/calendar/lib/calendar.schedule.selection.range.component.mjs +13 -12
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +4 -7
- package/esm2020/lib/formly/field/field.mjs +1 -1
- package/esm2020/lib/formly/field/selection/index.mjs +2 -1
- package/esm2020/lib/formly/field/selection/list/list.field.component.mjs +1 -1
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +5 -4
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +5 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +7 -6
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +5 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +1 -1
- package/esm2020/lib/formly/field/selection/selection.field.mjs +3 -2
- package/esm2020/lib/formly/field/selection/selection.module.mjs +5 -4
- package/esm2020/lib/formly/field/selection/sourceselect/index.mjs +5 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.field.component.mjs +316 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.field.mjs +14 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.field.module.mjs +93 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.mjs +2 -0
- package/esm2020/lib/formly/field/texteditor/texteditor.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +12 -10
- package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +11 -5
- package/esm2020/lib/formly/field/value/date/date.field.module.mjs +5 -1
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +11 -10
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +4 -2
- package/esm2020/lib/formly/field/value/number/number.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/phone/phone.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/text/text.field.mjs +5 -3
- package/esm2020/mapbox/lib/field/latlng/latlng.field.component.mjs +3 -3
- package/esm2020/mapbox/lib/field/zoom/zoom.field.component.mjs +3 -3
- package/fesm2015/dereekb-dbx-form-calendar.mjs +22 -24
- package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form-mapbox.mjs +4 -4
- package/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +470 -87
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-calendar.mjs +20 -23
- package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-mapbox.mjs +4 -4
- package/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +476 -59
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/_formly.scss +4 -0
- package/lib/formly/field/field.d.ts +4 -0
- package/lib/formly/field/selection/_selection.scss +4 -0
- package/lib/formly/field/selection/index.d.ts +1 -0
- package/lib/formly/field/selection/list/list.field.component.d.ts +1 -1
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +2 -2
- package/lib/formly/field/selection/searchable/_searchable.scss +2 -0
- package/lib/formly/field/selection/searchable/searchable.d.ts +4 -4
- package/lib/formly/field/selection/searchable/searchable.field.d.ts +3 -3
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +1 -1
- package/lib/formly/field/selection/selection.field.d.ts +11 -2
- package/lib/formly/field/selection/selection.module.d.ts +2 -1
- package/lib/formly/field/selection/sourceselect/_sourceselect.scss +54 -0
- package/lib/formly/field/selection/sourceselect/index.d.ts +4 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.d.ts +97 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.field.component.d.ts +92 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.field.d.ts +7 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.field.module.d.ts +23 -0
- package/lib/formly/field/texteditor/texteditor.field.d.ts +2 -2
- package/lib/formly/field/value/array/_array.scss +6 -2
- package/lib/formly/field/value/boolean/boolean.field.d.ts +3 -3
- package/lib/formly/field/value/date/_date.scss +8 -2
- package/lib/formly/field/value/date/date.field.module.d.ts +12 -11
- package/lib/formly/field/value/date/datetime.field.d.ts +2 -2
- package/lib/formly/field/value/number/number.field.d.ts +2 -2
- package/lib/formly/field/value/text/text.field.d.ts +3 -3
- package/mapbox/esm2020/lib/field/latlng/latlng.field.component.mjs +3 -3
- package/mapbox/esm2020/lib/field/zoom/zoom.field.component.mjs +3 -3
- package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs +4 -4
- package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs +4 -4
- package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/mapbox/package.json +4 -4
- package/package.json +4 -4
|
@@ -3,23 +3,22 @@ import { formlyField, propsAndConfigForFieldConfig, flexLayoutWrapper, toggleFie
|
|
|
3
3
|
import * as i1$1 from '@dereekb/dbx-web';
|
|
4
4
|
import { AbstractPopoverDirective, AbstractDialogDirective, DbxActionModule, DbxButtonModule, DbxDialogInteractionModule, DbxPopoverInteractionModule, DbxTextModule } from '@dereekb/dbx-web';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Injectable, SkipSelf, Directive, Injector, Optional, Component, Input, ElementRef, ViewChild, ChangeDetectionStrategy, EventEmitter, Output, NgModule } from '@angular/core';
|
|
6
|
+
import { Injectable, SkipSelf, Directive, Injector, Optional, Component, Inject, Input, ElementRef, ViewChild, ChangeDetectionStrategy, EventEmitter, Output, NgModule } from '@angular/core';
|
|
7
7
|
import { FieldType } from '@ngx-formly/material';
|
|
8
|
-
import { map, distinctUntilChanged, shareReplay, BehaviorSubject, of, startWith, filter,
|
|
8
|
+
import { map, distinctUntilChanged, shareReplay, BehaviorSubject, switchMap, of, startWith, filter, throttleTime, first } from 'rxjs';
|
|
9
9
|
import { filterMaybe, SubscriptionObject, asObservable } from '@dereekb/rxjs';
|
|
10
10
|
import { DateScheduleDayCode, expandDateScheduleDayCodesToDayOfWeekSet, dateTimingRelativeIndexFactory, dateBlockDayOfWeekFactory, isSameDate, isSameDateRange, isSameDateScheduleRange, findMaxDate, isSameDateDay, findMinDate, dateScheduleDateFilter, dateScheduleDayCodes, isDateInDateRangeFunction, isDateWithinDateBlockRangeFunction, dateScheduleEncodedWeek, dateBlockTimingDateFactory, enabledDaysFromDateScheduleDayCodes, dateScheduleDayCodesFromEnabledDays, formatToMonthDayString } from '@dereekb/date';
|
|
11
11
|
import { setsAreEquivalent, iterableToArray, toggleInSet, addToSet, isIndexNumberInIndexRangeFunction, range, minAndMaxNumber, randomNumberFactory, getDaysOfWeekNames } from '@dereekb/util';
|
|
12
12
|
import { ComponentStore } from '@ngrx/component-store';
|
|
13
13
|
import { startOfDay, startOfYear, addYears } from 'date-fns';
|
|
14
|
-
import { switchMap, throttleTime } from 'rxjs/operators';
|
|
15
14
|
import * as i1 from '@dereekb/dbx-web/calendar';
|
|
16
15
|
import { prepareAndSortCalendarEvents, DbxCalendarStore, DbxCalendarModule } from '@dereekb/dbx-web/calendar';
|
|
17
16
|
import * as i3 from '@angular/forms';
|
|
18
17
|
import { FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
18
|
+
import * as i5 from '@angular/material/form-field';
|
|
19
|
+
import { MAT_FORM_FIELD_DEFAULT_OPTIONS, MatFormFieldModule } from '@angular/material/form-field';
|
|
19
20
|
import * as i3$1 from '@angular/common';
|
|
20
21
|
import { CommonModule } from '@angular/common';
|
|
21
|
-
import * as i5 from '@angular/material/form-field';
|
|
22
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
23
22
|
import * as i7 from '@angular/material/datepicker';
|
|
24
23
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
25
24
|
import * as i1$2 from '@angular/material/dialog';
|
|
@@ -415,10 +414,10 @@ function provideCalendarScheduleSelectionStoreIfParentIsUnavailable() {
|
|
|
415
414
|
}
|
|
416
415
|
|
|
417
416
|
class DbxScheduleSelectionCalendarDateRangeComponent {
|
|
418
|
-
constructor(dbxCalendarStore, dbxCalendarScheduleSelectionStore) {
|
|
417
|
+
constructor(dbxCalendarStore, dbxCalendarScheduleSelectionStore, matFormFieldDefaultOptions) {
|
|
419
418
|
this.dbxCalendarStore = dbxCalendarStore;
|
|
420
419
|
this.dbxCalendarScheduleSelectionStore = dbxCalendarScheduleSelectionStore;
|
|
421
|
-
this.
|
|
420
|
+
this.matFormFieldDefaultOptions = matFormFieldDefaultOptions;
|
|
422
421
|
this.label = 'Enter a date range';
|
|
423
422
|
this.showCustomize = false;
|
|
424
423
|
this.random = randomNumberFactory(10000)();
|
|
@@ -478,14 +477,15 @@ class DbxScheduleSelectionCalendarDateRangeComponent {
|
|
|
478
477
|
this._pickerOpened.next(false);
|
|
479
478
|
}
|
|
480
479
|
}
|
|
481
|
-
DbxScheduleSelectionCalendarDateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDateRangeComponent, deps: [{ token: i1.DbxCalendarStore }, { token: DbxCalendarScheduleSelectionStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
482
|
-
DbxScheduleSelectionCalendarDateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: { required: "required",
|
|
480
|
+
DbxScheduleSelectionCalendarDateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDateRangeComponent, deps: [{ token: i1.DbxCalendarStore }, { token: DbxCalendarScheduleSelectionStore }, { token: MAT_FORM_FIELD_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
481
|
+
DbxScheduleSelectionCalendarDateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: { required: "required", label: "label", hint: "hint", disabled: "disabled", showCustomize: "showCustomize" }, ngImport: i0, template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <div *ngIf=\"showCustomize && (isCustomized$ | async)\" class=\"date-range-field-customized\">\n <span class=\"dbx-accent-bg date-range-field-customized-text\">Custom</span>\n </div>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-date-range-input [required]=\"required\" [min]=\"minDate$ | async\" [max]=\"maxDate$ | async\" [formGroup]=\"range\" [rangePicker]=\"picker\">\n <input matStartDate formControlName=\"start\" placeholder=\"Start date\" />\n <input matEndDate formControlName=\"end\" placeholder=\"End date\" />\n </mat-date-range-input>\n <div *ngIf=\"showCustomize\">\n <dbx-button-spacer></dbx-button-spacer>\n <ng-content select=\"[customizeButton]\"></ng-content>\n </div>\n <mat-date-range-picker #picker (opened)=\"pickerOpened()\" (closed)=\"pickerClosed()\"></mat-date-range-picker>\n <mat-error *ngIf=\"range.controls.start.hasError('matStartDateInvalid')\">Invalid start date</mat-error>\n <mat-error *ngIf=\"range.controls.end.hasError('matEndDateInvalid')\">Invalid end date</mat-error>\n</mat-form-field>\n", dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$1.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: i7.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i7.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i7.MatStartDate, selector: "input[matStartDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i7.MatEndDate, selector: "input[matEndDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i7.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
|
|
483
482
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDateRangeComponent, decorators: [{
|
|
484
483
|
type: Component,
|
|
485
|
-
args: [{ selector: 'dbx-schedule-selection-calendar-date-range', template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\"
|
|
486
|
-
}], ctorParameters: function () { return [{ type: i1.DbxCalendarStore }, { type: DbxCalendarScheduleSelectionStore }
|
|
487
|
-
|
|
488
|
-
|
|
484
|
+
args: [{ selector: 'dbx-schedule-selection-calendar-date-range', template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <div *ngIf=\"showCustomize && (isCustomized$ | async)\" class=\"date-range-field-customized\">\n <span class=\"dbx-accent-bg date-range-field-customized-text\">Custom</span>\n </div>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-date-range-input [required]=\"required\" [min]=\"minDate$ | async\" [max]=\"maxDate$ | async\" [formGroup]=\"range\" [rangePicker]=\"picker\">\n <input matStartDate formControlName=\"start\" placeholder=\"Start date\" />\n <input matEndDate formControlName=\"end\" placeholder=\"End date\" />\n </mat-date-range-input>\n <div *ngIf=\"showCustomize\">\n <dbx-button-spacer></dbx-button-spacer>\n <ng-content select=\"[customizeButton]\"></ng-content>\n </div>\n <mat-date-range-picker #picker (opened)=\"pickerOpened()\" (closed)=\"pickerClosed()\"></mat-date-range-picker>\n <mat-error *ngIf=\"range.controls.start.hasError('matStartDateInvalid')\">Invalid start date</mat-error>\n <mat-error *ngIf=\"range.controls.end.hasError('matEndDateInvalid')\">Invalid end date</mat-error>\n</mat-form-field>\n" }]
|
|
485
|
+
}], ctorParameters: function () { return [{ type: i1.DbxCalendarStore }, { type: DbxCalendarScheduleSelectionStore }, { type: undefined, decorators: [{
|
|
486
|
+
type: Inject,
|
|
487
|
+
args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
|
|
488
|
+
}] }]; }, propDecorators: { required: [{
|
|
489
489
|
type: Input
|
|
490
490
|
}], label: [{
|
|
491
491
|
type: Input
|
|
@@ -573,7 +573,7 @@ DbxScheduleSelectionCalendarDatePopoverContentComponent.ɵcmp = i0.ɵɵngDeclare
|
|
|
573
573
|
<dbx-schedule-selection-calendar-date-range></dbx-schedule-selection-calendar-date-range>
|
|
574
574
|
<dbx-schedule-selection-calendar-date-days></dbx-schedule-selection-calendar-date-days>
|
|
575
575
|
</div>
|
|
576
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxScheduleSelectionCalendarDateDaysComponent, selector: "dbx-schedule-selection-calendar-date-days" }, { kind: "component", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: ["required", "
|
|
576
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxScheduleSelectionCalendarDateDaysComponent, selector: "dbx-schedule-selection-calendar-date-days" }, { kind: "component", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: ["required", "label", "hint", "disabled", "showCustomize"] }] });
|
|
577
577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDatePopoverContentComponent, decorators: [{
|
|
578
578
|
type: Component,
|
|
579
579
|
args: [{
|
|
@@ -640,7 +640,7 @@ class DbxScheduleSelectionCalendarDatePopoverButtonComponent {
|
|
|
640
640
|
DbxScheduleSelectionCalendarDatePopoverButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDatePopoverButtonComponent, deps: [{ token: i1$1.DbxPopoverService }, { token: DbxCalendarScheduleSelectionStore }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
641
641
|
DbxScheduleSelectionCalendarDatePopoverButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarDatePopoverButtonComponent, selector: "dbx-schedule-selection-calendar-date-popover-button", viewQueries: [{ propertyName: "buttonPopoverOrigin", first: true, predicate: ["buttonPopoverOrigin"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
642
642
|
<dbx-button #buttonPopoverOrigin icon="date_range" [raised]="true" color="accent" [text]="buttonText$ | async" (buttonClick)="openPopover()"></dbx-button>
|
|
643
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
|
|
643
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "iconOnly", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
|
|
644
644
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDatePopoverButtonComponent, decorators: [{
|
|
645
645
|
type: Component,
|
|
646
646
|
args: [{
|
|
@@ -700,7 +700,7 @@ class DbxScheduleSelectionCalendarComponent {
|
|
|
700
700
|
this.clickEvent = new EventEmitter();
|
|
701
701
|
// refresh any time the selected day function updates
|
|
702
702
|
this.state$ = this.dbxCalendarScheduleSelectionStore.state$;
|
|
703
|
-
this.refresh$ = this.state$.pipe(throttleTime
|
|
703
|
+
this.refresh$ = this.state$.pipe(throttleTime(100), map(() => undefined));
|
|
704
704
|
this.events$ = this.calendarStore.visibleEvents$.pipe(map(prepareAndSortCalendarEvents), shareReplay(1));
|
|
705
705
|
this.viewDate$ = this.calendarStore.date$;
|
|
706
706
|
}
|
|
@@ -822,7 +822,7 @@ class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
822
822
|
this._filterSub = new SubscriptionObject();
|
|
823
823
|
this._formControlObs = new BehaviorSubject(undefined);
|
|
824
824
|
this.formControl$ = this._formControlObs.pipe(filterMaybe());
|
|
825
|
-
this.value$ = this.formControl$.pipe(switchMap
|
|
825
|
+
this.value$ = this.formControl$.pipe(switchMap((control) => control.valueChanges.pipe(startWith(control.value))), shareReplay(1));
|
|
826
826
|
}
|
|
827
827
|
get formGroupName() {
|
|
828
828
|
return this.field.key;
|
|
@@ -830,9 +830,6 @@ class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
830
830
|
get formGroup() {
|
|
831
831
|
return this.form;
|
|
832
832
|
}
|
|
833
|
-
get appearance() {
|
|
834
|
-
return this.props.appearance ?? 'standard';
|
|
835
|
-
}
|
|
836
833
|
get label() {
|
|
837
834
|
return this.field.props?.label;
|
|
838
835
|
}
|
|
@@ -872,17 +869,17 @@ class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
872
869
|
DbxFormCalendarDateScheduleRangeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFormCalendarDateScheduleRangeFieldComponent, deps: [{ token: i1$1.CompactContextStore, optional: true }, { token: DbxCalendarScheduleSelectionStore }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
873
870
|
DbxFormCalendarDateScheduleRangeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxFormCalendarDateScheduleRangeFieldComponent, selector: "ng-component", providers: [provideCalendarScheduleSelectionStoreIfParentIsUnavailable()], usesInheritance: true, ngImport: i0, template: `
|
|
874
871
|
<div class="dbx-schedule-selection-field">
|
|
875
|
-
<dbx-schedule-selection-calendar-date-range [showCustomize]="showCustomize" [
|
|
872
|
+
<dbx-schedule-selection-calendar-date-range [showCustomize]="showCustomize" [required]="required" [disabled]="isReadonlyOrDisabled" [label]="label" [hint]="description">
|
|
876
873
|
<dbx-schedule-selection-calendar-date-dialog-button customizeButton></dbx-schedule-selection-calendar-date-dialog-button>
|
|
877
874
|
</dbx-schedule-selection-calendar-date-range>
|
|
878
875
|
</div>
|
|
879
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: ["required", "
|
|
876
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: ["required", "label", "hint", "disabled", "showCustomize"] }, { kind: "component", type: DbxScheduleSelectionCalendarDateDialogButtonComponent, selector: "dbx-schedule-selection-calendar-date-dialog-button", inputs: ["buttonText"] }] });
|
|
880
877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFormCalendarDateScheduleRangeFieldComponent, decorators: [{
|
|
881
878
|
type: Component,
|
|
882
879
|
args: [{
|
|
883
880
|
template: `
|
|
884
881
|
<div class="dbx-schedule-selection-field">
|
|
885
|
-
<dbx-schedule-selection-calendar-date-range [showCustomize]="showCustomize" [
|
|
882
|
+
<dbx-schedule-selection-calendar-date-range [showCustomize]="showCustomize" [required]="required" [disabled]="isReadonlyOrDisabled" [label]="label" [hint]="description">
|
|
886
883
|
<dbx-schedule-selection-calendar-date-dialog-button customizeButton></dbx-schedule-selection-calendar-date-dialog-button>
|
|
887
884
|
</dbx-schedule-selection-calendar-date-range>
|
|
888
885
|
</div>
|