@dereekb/dbx-form 4.0.0 → 5.0.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/LICENSE +21 -0
- package/esm2020/lib/form/action/form.action.directive.mjs +4 -4
- package/esm2020/lib/form/form.mjs +4 -4
- package/esm2020/lib/form/io/form.changes.directive.mjs +1 -1
- package/esm2020/lib/form/io/form.input.directive.mjs +2 -2
- package/esm2020/lib/form/io/form.loading.directive.mjs +1 -1
- package/esm2020/lib/formly/config/validation.mjs +1 -1
- package/esm2020/lib/formly/field/checklist/checklist.field.mjs +5 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +6 -8
- package/esm2020/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +1 -1
- package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +1 -1
- package/esm2020/lib/formly/field/checklist/checklist.item.mjs +1 -1
- package/esm2020/lib/formly/field/component/component.field.component.mjs +1 -1
- package/esm2020/lib/formly/field/component/component.field.mjs +1 -1
- package/esm2020/lib/formly/field/field.mjs +1 -1
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +9 -9
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +1 -1
- package/esm2020/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/selection/pickable/pickable.mjs +1 -1
- package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +1 -1
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +6 -6
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +2 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +1 -1
- package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +2 -3
- package/esm2020/lib/formly/field/selection/selection.mjs +1 -1
- package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +2 -2
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +9 -9
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +1 -1
- package/esm2020/lib/formly/field/value/enum/enum.field.mjs +1 -1
- package/esm2020/lib/formly/field/value/hidden.field.mjs +1 -1
- package/esm2020/lib/formly/field/value/phone/phone.field.mjs +2 -3
- package/esm2020/lib/formly/field/value/text/text.address.field.mjs +2 -1
- package/esm2020/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/toggle.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/working.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/wrapper.mjs +1 -1
- package/esm2020/lib/formly/formly.context.directive.mjs +4 -4
- package/esm2020/lib/formly/formly.context.mjs +4 -4
- package/esm2020/lib/formly/formly.directive.mjs +1 -1
- package/esm2020/lib/formly/formly.form.component.mjs +5 -5
- package/esm2020/lib/formly/template/login.mjs +1 -2
- package/esm2020/lib/validator/available.mjs +2 -3
- package/esm2020/lib/validator/boolean.mjs +2 -2
- package/esm2020/lib/validator/email.mjs +2 -2
- package/esm2020/lib/validator/field.mjs +1 -1
- package/esm2020/lib/validator/number.mjs +20 -16
- package/fesm2015/dereekb-dbx-form.mjs +105 -105
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +108 -105
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/form/action/form.action.directive.d.ts +4 -4
- package/lib/form/form.d.ts +4 -4
- package/lib/form/io/form.changes.directive.d.ts +3 -3
- package/lib/form/io/form.input.directive.d.ts +3 -3
- package/lib/form/io/form.loading.directive.d.ts +3 -3
- package/lib/formly/config/validation.d.ts +4 -4
- package/lib/formly/field/checklist/checklist.field.d.ts +3 -3
- package/lib/formly/field/checklist/checklist.item.d.ts +3 -3
- package/lib/formly/field/checklist/checklist.item.field.component.d.ts +7 -9
- package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +4 -4
- package/lib/formly/field/checklist/checklist.item.field.d.ts +3 -3
- package/lib/formly/field/component/component.field.component.d.ts +3 -4
- package/lib/formly/field/component/component.field.d.ts +2 -3
- package/lib/formly/field/field.d.ts +3 -3
- package/lib/formly/field/selection/pickable/pickable.d.ts +7 -9
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +3 -3
- package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +39 -40
- package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +2 -2
- package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +8 -8
- package/lib/formly/field/selection/searchable/searchable.d.ts +9 -8
- package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +1 -1
- package/lib/formly/field/selection/searchable/searchable.field.d.ts +9 -9
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +25 -25
- package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +12 -9
- package/lib/formly/field/selection/selection.d.ts +4 -4
- package/lib/formly/field/texteditor/texteditor.field.component.d.ts +1 -2
- package/lib/formly/field/value/array/array.field.component.d.ts +1 -1
- package/lib/formly/field/value/date/datetime.field.component.d.ts +2 -3
- package/lib/formly/field/value/date/datetime.field.d.ts +1 -2
- package/lib/formly/field/value/enum/enum.field.d.ts +1 -1
- package/lib/formly/field/value/hidden.field.d.ts +1 -2
- package/lib/formly/field/value/text/text.address.field.d.ts +1 -2
- package/lib/formly/field/wrapper/expandable.wrapper.component.d.ts +4 -4
- package/lib/formly/field/wrapper/expandable.wrapper.delegate.d.ts +11 -11
- package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +4 -4
- package/lib/formly/field/wrapper/working.wrapper.component.d.ts +4 -2
- package/lib/formly/field/wrapper/wrapper.d.ts +2 -2
- package/lib/formly/formly.context.d.ts +4 -5
- package/lib/formly/formly.context.directive.d.ts +1 -1
- package/lib/formly/formly.directive.d.ts +1 -1
- package/lib/formly/formly.form.component.d.ts +2 -2
- package/lib/formly/template/login.d.ts +1 -2
- package/lib/validator/boolean.d.ts +1 -1
- package/lib/validator/email.d.ts +1 -1
- package/lib/validator/field.d.ts +4 -4
- package/lib/validator/number.d.ts +8 -1
- package/package.json +5 -4
|
@@ -8,11 +8,10 @@ import * as i3 from '@uirouter/core';
|
|
|
8
8
|
import * as i2 from '@dereekb/dbx-core';
|
|
9
9
|
import { AbstractSubscriptionDirective, safeDetectChanges, DbxInjectionComponentModule, DbxDatePipeModule, mergeDbxInjectionComponentConfigs, tapDetectChanges } from '@dereekb/dbx-core';
|
|
10
10
|
import * as i1$1 from '@dereekb/dbx-web';
|
|
11
|
-
import { DbxActionTransitionSafetyDirective, DbxTextModule, DbxLoadingModule, DbxFlexLayoutModule, DbxSectionLayoutModule, DbxRouterAnchorModule, AbstractDbxSelectionListWrapperDirective, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, AbstractDbxSelectionListViewDirective, addConfigToValueListItems,
|
|
11
|
+
import { DbxActionTransitionSafetyDirective, DbxTextModule, DbxLoadingModule, DbxFlexLayoutModule, DbxSectionLayoutModule, DbxRouterAnchorModule, AbstractDbxSelectionListWrapperDirective, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, AbstractDbxSelectionListViewDirective, addConfigToValueListItems, provideDbxListView, AbstractDbxValueListViewItemComponent, DbxButtonModule, DbxListLayoutModule, mapCompactModeObs, DbxBarLayoutModule } from '@dereekb/dbx-web';
|
|
12
12
|
import { isPast, addSeconds, isSameMinute, startOfDay, isSameDay, addMinutes } from 'date-fns';
|
|
13
|
-
import { BehaviorSubject, switchMap, first, exhaustMap, of, catchError, delay, filter, combineLatest, map, distinctUntilChanged, mergeMap, shareReplay
|
|
14
|
-
import { LockSet, SubscriptionObject, asObservable, loadingStateHasFinishedLoading, switchMapMaybeObs, filterMaybe, switchMapMaybeDefault, SimpleLoadingContext,
|
|
15
|
-
import { distinctUntilChanged as distinctUntilChanged$1, shareReplay, map as map$1, delay as delay$1, debounceTime as debounceTime$1, filter as filter$1, switchMap as switchMap$1, startWith as startWith$1, tap, throttleTime, first as first$1 } from 'rxjs/operators';
|
|
13
|
+
import { BehaviorSubject, switchMap, first, exhaustMap, of, catchError, delay, filter, combineLatest, map, distinctUntilChanged, mergeMap, shareReplay, startWith, debounceTime, Subject, skipWhile, interval, tap, merge, throttleTime, scan } from 'rxjs';
|
|
14
|
+
import { LockSet, SubscriptionObject, asObservable, loadingStateHasFinishedLoading, switchMapMaybeObs, filterMaybe, switchMapMaybeDefault, SimpleLoadingContext, startWithBeginLoading, mapLoadingStateResults, successResult, ListLoadingStateContextInstance, isListLoadingStateEmpty, LoadingStateContextInstance, skipFirstMaybe, asyncPusherCache, scanCount } from '@dereekb/rxjs';
|
|
16
15
|
import * as i1$4 from '@ngx-formly/core';
|
|
17
16
|
import { FieldType, FieldWrapper, FormlyModule, FieldArrayType } from '@ngx-formly/core';
|
|
18
17
|
import * as i1 from '@angular/material/checkbox';
|
|
@@ -86,12 +85,12 @@ class DbxForm {
|
|
|
86
85
|
}
|
|
87
86
|
class DbxMutableForm extends DbxForm {
|
|
88
87
|
}
|
|
89
|
-
function
|
|
88
|
+
function provideDbxForm(sourceType) {
|
|
90
89
|
return [{ provide: DbxForm, useExisting: forwardRef(() => sourceType) }];
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function provideDbxMutableForm(sourceType) {
|
|
93
92
|
return [
|
|
94
|
-
...
|
|
93
|
+
...provideDbxForm(sourceType),
|
|
95
94
|
{ provide: DbxMutableForm, useExisting: forwardRef(() => sourceType) }
|
|
96
95
|
];
|
|
97
96
|
}
|
|
@@ -184,7 +183,7 @@ class DbxActionFormDirective {
|
|
|
184
183
|
modifiedObs
|
|
185
184
|
]).pipe(first(), map(([valid, modified]) => ({ valid, modified, value, event })));
|
|
186
185
|
}));
|
|
187
|
-
})).subscribe(({ valid, modified
|
|
186
|
+
})).subscribe(({ valid, modified /*, value, event */ }) => {
|
|
188
187
|
// console.log('x: ', value, event, valid, modified);
|
|
189
188
|
// Update Modified State
|
|
190
189
|
this.source.setIsModified(modified);
|
|
@@ -207,8 +206,8 @@ class DbxActionFormDirective {
|
|
|
207
206
|
});
|
|
208
207
|
}
|
|
209
208
|
preCheckReadyValue(value) {
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
const validatorObs = (this.dbxActionFormValidator) ? this.dbxActionFormValidator(value) : of(true);
|
|
210
|
+
const modifiedObs = (this.dbxActionFormModified) ? this.dbxActionFormModified(value) : of(true);
|
|
212
211
|
return combineLatest([
|
|
213
212
|
validatorObs,
|
|
214
213
|
modifiedObs
|
|
@@ -320,7 +319,7 @@ function dbxFormSourceObservable(form, inputObs, mode$) {
|
|
|
320
319
|
// wait for the form to finish initializing.
|
|
321
320
|
filter((x) => x.state !== DbxFormState.INITIALIZING),
|
|
322
321
|
// if mode is reset, then filter out changes until the form is reset again.
|
|
323
|
-
filter((x) => ((mode === 'reset') ? (x.state === DbxFormState.RESET) : true)), first(), map((
|
|
322
|
+
filter((x) => ((mode === 'reset') ? (x.state === DbxFormState.RESET) : true)), first(), map(() => value))));
|
|
324
323
|
}
|
|
325
324
|
/**
|
|
326
325
|
* Used with a FormComponent to set the value based on the input value.
|
|
@@ -575,9 +574,9 @@ class DbxChecklistItemFieldComponent extends FieldType {
|
|
|
575
574
|
constructor() {
|
|
576
575
|
super(...arguments);
|
|
577
576
|
this._displayContent = new BehaviorSubject(undefined);
|
|
578
|
-
this.displayContent$ = this._displayContent.pipe(switchMapMaybeObs(), distinctUntilChanged
|
|
579
|
-
this.anchor$ = this.displayContent$.pipe(map
|
|
580
|
-
this.rippleDisabled$ = this.displayContent$.pipe(map
|
|
577
|
+
this.displayContent$ = this._displayContent.pipe(switchMapMaybeObs(), distinctUntilChanged(), shareReplay(1));
|
|
578
|
+
this.anchor$ = this.displayContent$.pipe(map(x => x.anchor), shareReplay(1));
|
|
579
|
+
this.rippleDisabled$ = this.displayContent$.pipe(map(x => x.ripple === false || (x.ripple !== true && !x.anchor)), distinctUntilChanged(), shareReplay(1));
|
|
581
580
|
}
|
|
582
581
|
get formGroup() {
|
|
583
582
|
return this.form;
|
|
@@ -611,10 +610,10 @@ class DbxChecklistItemFieldComponent extends FieldType {
|
|
|
611
610
|
}
|
|
612
611
|
}
|
|
613
612
|
DbxChecklistItemFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxChecklistItemFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
614
|
-
DbxChecklistItemFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxChecklistItemFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-checklist-item-wrapper\" [formGroup]=\"formGroup\">\n <div *ngIf=\"label\" class=\"dbx-checklist-item-label\">{{ label }}</div>\n <div class=\"dbx-checklist-item\">\n <div class=\"dbx-checklist-item-check\">\n <mat-checkbox [formControlName]=\"formControlName\"></mat-checkbox>\n </div>\n <div class=\"dbx-checklist-item-content-wrapper\">\n <dbx-anchor [block]=\"true\" [anchor]=\"anchor$ | async\">\n <div class=\"dbx-checklist-item-content\" matRipple [matRippleDisabled]=\"(rippleDisabled$ | async) ?? false\">\n <dbx-checklist-item-content-component></dbx-checklist-item-content-component>\n <span class=\"spacer\"></span>\n <mat-icon *ngIf=\"
|
|
613
|
+
DbxChecklistItemFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxChecklistItemFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-checklist-item-wrapper\" [formGroup]=\"formGroup\">\n <div *ngIf=\"label\" class=\"dbx-checklist-item-label\">{{ label }}</div>\n <div class=\"dbx-checklist-item\">\n <div class=\"dbx-checklist-item-check\">\n <mat-checkbox [formControlName]=\"formControlName\"></mat-checkbox>\n </div>\n <div class=\"dbx-checklist-item-content-wrapper\">\n <dbx-anchor [block]=\"true\" [anchor]=\"anchor$ | async\">\n <div class=\"dbx-checklist-item-content\" matRipple [matRippleDisabled]=\"(rippleDisabled$ | async) ?? false\">\n <dbx-checklist-item-content-component></dbx-checklist-item-content-component>\n <span class=\"spacer\"></span>\n <mat-icon *ngIf=\"(rippleDisabled$ | async) !== true\">navigate_next</mat-icon>\n </div>\n </dbx-anchor>\n </div>\n </div>\n <div *ngIf=\"description\" class=\"dbx-hint\">{{ description }}</div>\n</div>\n", components: [{ type: i0.forwardRef(function () { return i1.MatCheckbox; }), selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i0.forwardRef(function () { return i1$1.DbxAnchorComponent; }), selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i0.forwardRef(function () { return DbxChecklistItemContentComponent; }), selector: "dbx-checklist-item-content-component" }, { type: i0.forwardRef(function () { return i2$1.MatIcon; }), selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i0.forwardRef(function () { return i4$1.NgControlStatusGroup; }), selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i0.forwardRef(function () { return i4$1.FormGroupDirective; }), selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i0.forwardRef(function () { return i5.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i4$1.NgControlStatus; }), selector: "[formControlName],[ngModel],[formControl]" }, { type: i0.forwardRef(function () { return i4$1.FormControlName; }), selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i0.forwardRef(function () { return i6.MatRipple; }), selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], pipes: { "async": i0.forwardRef(function () { return i5.AsyncPipe; }) } });
|
|
615
614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxChecklistItemFieldComponent, decorators: [{
|
|
616
615
|
type: Component,
|
|
617
|
-
args: [{ template: "<div class=\"dbx-checklist-item-wrapper\" [formGroup]=\"formGroup\">\n <div *ngIf=\"label\" class=\"dbx-checklist-item-label\">{{ label }}</div>\n <div class=\"dbx-checklist-item\">\n <div class=\"dbx-checklist-item-check\">\n <mat-checkbox [formControlName]=\"formControlName\"></mat-checkbox>\n </div>\n <div class=\"dbx-checklist-item-content-wrapper\">\n <dbx-anchor [block]=\"true\" [anchor]=\"anchor$ | async\">\n <div class=\"dbx-checklist-item-content\" matRipple [matRippleDisabled]=\"(rippleDisabled$ | async) ?? false\">\n <dbx-checklist-item-content-component></dbx-checklist-item-content-component>\n <span class=\"spacer\"></span>\n <mat-icon *ngIf=\"
|
|
616
|
+
args: [{ template: "<div class=\"dbx-checklist-item-wrapper\" [formGroup]=\"formGroup\">\n <div *ngIf=\"label\" class=\"dbx-checklist-item-label\">{{ label }}</div>\n <div class=\"dbx-checklist-item\">\n <div class=\"dbx-checklist-item-check\">\n <mat-checkbox [formControlName]=\"formControlName\"></mat-checkbox>\n </div>\n <div class=\"dbx-checklist-item-content-wrapper\">\n <dbx-anchor [block]=\"true\" [anchor]=\"anchor$ | async\">\n <div class=\"dbx-checklist-item-content\" matRipple [matRippleDisabled]=\"(rippleDisabled$ | async) ?? false\">\n <dbx-checklist-item-content-component></dbx-checklist-item-content-component>\n <span class=\"spacer\"></span>\n <mat-icon *ngIf=\"(rippleDisabled$ | async) !== true\">navigate_next</mat-icon>\n </div>\n </dbx-anchor>\n </div>\n </div>\n <div *ngIf=\"description\" class=\"dbx-hint\">{{ description }}</div>\n</div>\n" }]
|
|
618
617
|
}] });
|
|
619
618
|
class DbxChecklistItemContentComponent extends AbstractSubscriptionDirective {
|
|
620
619
|
constructor(checklistItemFieldComponent, cdRef) {
|
|
@@ -777,10 +776,10 @@ class AbstractFormExpandableSectionWrapperDirective extends FieldWrapper {
|
|
|
777
776
|
else {
|
|
778
777
|
return this.hasValue$;
|
|
779
778
|
}
|
|
780
|
-
}), shareReplay
|
|
779
|
+
}), shareReplay(1));
|
|
781
780
|
this.hasValue$ = this.formControl$.pipe(switchMap((x) => x.valueChanges.pipe(startWith(x.value), map((value) => {
|
|
782
781
|
return this.hasValueFn(value);
|
|
783
|
-
}), shareReplay
|
|
782
|
+
}), shareReplay(1))));
|
|
784
783
|
}
|
|
785
784
|
get expandableSection() {
|
|
786
785
|
return this.to.expandWrapper;
|
|
@@ -855,7 +854,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
855
854
|
*/
|
|
856
855
|
class AutoTouchFieldWrapperComponent extends FieldWrapper {
|
|
857
856
|
ngOnInit() {
|
|
858
|
-
this.formControl.valueChanges.pipe(delay
|
|
857
|
+
this.formControl.valueChanges.pipe(delay(200)).subscribe(() => {
|
|
859
858
|
if (!this.formControl.pristine && this.formControl.untouched) {
|
|
860
859
|
this.formControl.markAsTouched();
|
|
861
860
|
this.formControl.updateValueAndValidity();
|
|
@@ -885,7 +884,7 @@ class DbxFormToggleWrapperComponent extends AbstractFormExpandableSectionWrapper
|
|
|
885
884
|
else {
|
|
886
885
|
return of(this.expandLabel);
|
|
887
886
|
}
|
|
888
|
-
}), shareReplay
|
|
887
|
+
}), shareReplay(1));
|
|
889
888
|
}
|
|
890
889
|
onToggleChange() {
|
|
891
890
|
this.show$.pipe(first()).subscribe((show) => {
|
|
@@ -924,7 +923,7 @@ class DbxFormStyleWrapperComponent extends FieldWrapper {
|
|
|
924
923
|
constructor() {
|
|
925
924
|
super(...arguments);
|
|
926
925
|
this._style = new BehaviorSubject(undefined);
|
|
927
|
-
this.style$ = this._style.pipe(switchMapMaybeDefault(''), shareReplay
|
|
926
|
+
this.style$ = this._style.pipe(switchMapMaybeDefault(''), shareReplay(1));
|
|
928
927
|
}
|
|
929
928
|
get styleWrapper() {
|
|
930
929
|
return this.field.styleWrapper;
|
|
@@ -1240,7 +1239,7 @@ class ChecklistItemFieldDataSetBuilder {
|
|
|
1240
1239
|
mergedConfig.displayContentObs = combineLatest([
|
|
1241
1240
|
currentField.displayContentObs,
|
|
1242
1241
|
config.displayContentObs
|
|
1243
|
-
]).pipe(map
|
|
1242
|
+
]).pipe(map(([a, b]) => {
|
|
1244
1243
|
const result = {
|
|
1245
1244
|
...a,
|
|
1246
1245
|
...b
|
|
@@ -1283,10 +1282,11 @@ class ChecklistItemFieldDataSetBuilder {
|
|
|
1283
1282
|
}
|
|
1284
1283
|
field(config) {
|
|
1285
1284
|
const key = config.key;
|
|
1286
|
-
|
|
1285
|
+
const field = {
|
|
1287
1286
|
key,
|
|
1288
1287
|
field: config
|
|
1289
|
-
}
|
|
1288
|
+
};
|
|
1289
|
+
this._fields.set(key, field);
|
|
1290
1290
|
}
|
|
1291
1291
|
// MARK: Build/Finish
|
|
1292
1292
|
build() {
|
|
@@ -1296,7 +1296,7 @@ class ChecklistItemFieldDataSetBuilder {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
// MARK: Utility
|
|
1298
1298
|
customContentFromData(mapFn) {
|
|
1299
|
-
return this.dataObs$.pipe(map
|
|
1299
|
+
return this.dataObs$.pipe(map(mapFn));
|
|
1300
1300
|
}
|
|
1301
1301
|
contentWithValueFromData(key, contentFn) {
|
|
1302
1302
|
return this.customContentFromData((data) => {
|
|
@@ -1387,14 +1387,14 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1387
1387
|
this.formControl$ = this._formControlObs.pipe(filterMaybe());
|
|
1388
1388
|
this._displayHashMap = new BehaviorSubject(new Map());
|
|
1389
1389
|
this.filterInputValue$ = this.inputCtrl.valueChanges.pipe(startWith(undefined));
|
|
1390
|
-
this.filterInputValueString$ = this.filterInputValue$.pipe(debounceTime(200), distinctUntilChanged(), shareReplay
|
|
1391
|
-
this.loadResultsDisplayValuesState$ = this.formControl$.pipe(first(), switchMap(() => this.loadValuesFn().pipe(switchMap((x) => this.loadDisplayValuesForFieldValues(x)),
|
|
1392
|
-
this._formControlValue = this.formControl$.pipe(switchMap(control => control.valueChanges.pipe(startWith(control.value), shareReplay
|
|
1390
|
+
this.filterInputValueString$ = this.filterInputValue$.pipe(debounceTime(200), distinctUntilChanged(), shareReplay(1));
|
|
1391
|
+
this.loadResultsDisplayValuesState$ = this.formControl$.pipe(first(), switchMap(() => this.loadValuesFn().pipe(switchMap((x) => this.loadDisplayValuesForFieldValues(x)), startWithBeginLoading())), shareReplay(1));
|
|
1392
|
+
this._formControlValue = this.formControl$.pipe(switchMap(control => control.valueChanges.pipe(startWith(control.value), shareReplay(1))));
|
|
1393
1393
|
this.loadResultsDisplayValues$ = this.loadResultsDisplayValuesState$.pipe(map(x => x?.value ?? []));
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Current values in the form control.
|
|
1396
1396
|
*/
|
|
1397
|
-
this.values$ = this._formControlValue.pipe(map(convertMaybeToArray), shareReplay
|
|
1397
|
+
this.values$ = this._formControlValue.pipe(map(convertMaybeToArray), shareReplay(1));
|
|
1398
1398
|
/**
|
|
1399
1399
|
* Current values with their display value.
|
|
1400
1400
|
*/
|
|
@@ -1403,7 +1403,7 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1403
1403
|
const valuesNotInDisplayMap = [];
|
|
1404
1404
|
currentValues.forEach((x) => {
|
|
1405
1405
|
const key = this.hashForValue(x);
|
|
1406
|
-
|
|
1406
|
+
const displayValue = displayValuesMap.get(key)?.[0];
|
|
1407
1407
|
if (!displayValue) {
|
|
1408
1408
|
valuesNotInDisplayMap.push(x);
|
|
1409
1409
|
}
|
|
@@ -1428,8 +1428,8 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1428
1428
|
const valueHashSet = new Set(values.map(x => this.hashForValue(x)));
|
|
1429
1429
|
return displayValues.filter(x => !x.isUnknown && valueHashSet.has(x._hash));
|
|
1430
1430
|
}
|
|
1431
|
-
})),
|
|
1432
|
-
this.filteredSearchResults$ = this.filteredSearchResultsState$.pipe(map(x => x?.value), filterMaybe(), shareReplay
|
|
1431
|
+
})), startWithBeginLoading())))), shareReplay(1));
|
|
1432
|
+
this.filteredSearchResults$ = this.filteredSearchResultsState$.pipe(map(x => x?.value), filterMaybe(), shareReplay(1));
|
|
1433
1433
|
this.items$ = combineLatest([this.filteredSearchResults$, this.values$]).pipe(map(([displayValues, values]) => {
|
|
1434
1434
|
const selectedHashValuesSet = new Set(values.map(x => this.hashForValue(x)));
|
|
1435
1435
|
let items = displayValues.map((x) => ({ itemValue: x, selected: selectedHashValuesSet.has(x._hash) }));
|
|
@@ -1437,13 +1437,13 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1437
1437
|
items = this.sortItems(items);
|
|
1438
1438
|
}
|
|
1439
1439
|
return items;
|
|
1440
|
-
}), shareReplay
|
|
1441
|
-
this.itemsLoadingState$ = this.loadResultsDisplayValues$.pipe(switchMap(
|
|
1440
|
+
}), shareReplay(1));
|
|
1441
|
+
this.itemsLoadingState$ = this.loadResultsDisplayValues$.pipe(switchMap(() => this.items$.pipe(first(), map(x => successResult(x)), startWithBeginLoading(), shareReplay(1))));
|
|
1442
1442
|
/**
|
|
1443
1443
|
* Context used for managing the loading of items, or when the current results change.
|
|
1444
1444
|
*/
|
|
1445
1445
|
this.context = new ListLoadingStateContextInstance({ obs: this.itemsLoadingState$, showLoadingOnNoValue: false });
|
|
1446
|
-
this.filterItemsLoadingState$ = this.items$.pipe(map(x => successResult(x)),
|
|
1446
|
+
this.filterItemsLoadingState$ = this.items$.pipe(map(x => successResult(x)), startWithBeginLoading(), shareReplay(1));
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Context used for searching/filtering.
|
|
1449
1449
|
*/
|
|
@@ -1475,7 +1475,7 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1475
1475
|
return this.field.templateOptions?.label;
|
|
1476
1476
|
}
|
|
1477
1477
|
get autocomplete() {
|
|
1478
|
-
return this.field.templateOptions?.attributes?.['autocomplete'] ?? this.key;
|
|
1478
|
+
return ((this.field.templateOptions?.attributes?.['autocomplete']) ?? this.key);
|
|
1479
1479
|
}
|
|
1480
1480
|
get changeSelectionModeToViewOnDisabled() {
|
|
1481
1481
|
return this.pickableField.changeSelectionModeToViewOnDisabled ?? false;
|
|
@@ -1533,7 +1533,7 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1533
1533
|
return this.loadDisplayValuesForFieldValues(values.map((value) => ({ value })));
|
|
1534
1534
|
}
|
|
1535
1535
|
loadDisplayValuesForFieldValues(values) {
|
|
1536
|
-
return this.getDisplayValuesForFieldValues(values).pipe(map((displayValues) => successResult(displayValues)),
|
|
1536
|
+
return this.getDisplayValuesForFieldValues(values).pipe(map((displayValues) => successResult(displayValues)), startWithBeginLoading(), shareReplay(1));
|
|
1537
1537
|
}
|
|
1538
1538
|
getDisplayValuesForFieldValues(values) {
|
|
1539
1539
|
return this._displayHashMap.pipe(mergeMap((displayMap) => {
|
|
@@ -1689,7 +1689,7 @@ class DbxPickableListFieldItemListViewComponent extends AbstractDbxSelectionList
|
|
|
1689
1689
|
};
|
|
1690
1690
|
this.items$ = this.values$.pipe(
|
|
1691
1691
|
// NOTE: This causes the "value" to be a PickableValueFieldDisplayValue<T>, which means we emit PickableValueFieldDisplayValue<T> to DbxPickableListFieldComponent.
|
|
1692
|
-
map(x => addConfigToValueListItems(this.config, x)), shareReplay
|
|
1692
|
+
map(x => addConfigToValueListItems(this.config, x)), shareReplay(1));
|
|
1693
1693
|
}
|
|
1694
1694
|
get multiple() {
|
|
1695
1695
|
return this.dbxPickableListFieldComponent.multiSelect;
|
|
@@ -1703,12 +1703,12 @@ class DbxPickableListFieldItemListViewComponent extends AbstractDbxSelectionList
|
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
1705
|
DbxPickableListFieldItemListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPickableListFieldItemListViewComponent, deps: [{ token: DbxPickableListFieldComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
1706
|
-
DbxPickableListFieldItemListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxPickableListFieldItemListViewComponent, selector: "ng-component", providers:
|
|
1706
|
+
DbxPickableListFieldItemListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxPickableListFieldItemListViewComponent, selector: "ng-component", providers: provideDbxListView(DbxPickableListFieldItemListViewComponent), usesInheritance: true, ngImport: i0, template: `<dbx-selection-list-view-content [multiple]="multiple" [selectionMode]="selectionMode" [items]="items$ | async"></dbx-selection-list-view-content>`, isInline: true, components: [{ type: i1$1.DbxSelectionValueListItemViewComponent, selector: "dbx-selection-list-view-content", inputs: ["multiple", "selectionMode"] }], pipes: { "async": i5.AsyncPipe } });
|
|
1707
1707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPickableListFieldItemListViewComponent, decorators: [{
|
|
1708
1708
|
type: Component,
|
|
1709
1709
|
args: [{
|
|
1710
1710
|
template: `<dbx-selection-list-view-content [multiple]="multiple" [selectionMode]="selectionMode" [items]="items$ | async"></dbx-selection-list-view-content>`,
|
|
1711
|
-
providers:
|
|
1711
|
+
providers: provideDbxListView(DbxPickableListFieldItemListViewComponent)
|
|
1712
1712
|
}]
|
|
1713
1713
|
}], ctorParameters: function () { return [{ type: DbxPickableListFieldComponent }]; } });
|
|
1714
1714
|
class DbxPickableListFieldItemListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
@@ -1858,7 +1858,7 @@ const DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN = new InjectionToken('DbxSearcha
|
|
|
1858
1858
|
class DbxSearchableFieldAutocompleteItemComponent {
|
|
1859
1859
|
constructor() {
|
|
1860
1860
|
this._displayValue = new BehaviorSubject(undefined);
|
|
1861
|
-
this.displayValue$ = this._displayValue.pipe(filterMaybe(), shareReplay
|
|
1861
|
+
this.displayValue$ = this._displayValue.pipe(filterMaybe(), shareReplay(1));
|
|
1862
1862
|
this.config$ = this.displayValue$.pipe(map(x => {
|
|
1863
1863
|
const config = {
|
|
1864
1864
|
...x.display,
|
|
@@ -1954,13 +1954,13 @@ class AbstractDbxSearchableValueFieldDirective extends FieldType$1 {
|
|
|
1954
1954
|
this.inputValueString$ = this.inputValue$.pipe(debounceTime(200), distinctUntilChanged());
|
|
1955
1955
|
this.searchResultsState$ = this.inputValueString$.pipe(switchMap((text) => ((text || this.searchOnEmptyText) ? this.search(text ?? '') : of([])).pipe(switchMap((x) => this.loadDisplayValuesForFieldValues(x)),
|
|
1956
1956
|
// Return begin loading to setup the loading state.
|
|
1957
|
-
|
|
1957
|
+
startWithBeginLoading())), shareReplay(1));
|
|
1958
1958
|
this.singleValueSyncSubscription = new SubscriptionObject();
|
|
1959
1959
|
this.searchContext = new LoadingStateContextInstance({ obs: this.searchResultsState$, showLoadingOnNoValue: false });
|
|
1960
1960
|
this.searchResults$ = this.searchResultsState$.pipe(map(x => x?.value ?? []));
|
|
1961
|
-
this._formControlValue = this.formControl$.pipe(switchMap(control => control.valueChanges.pipe(startWith(control.value), shareReplay
|
|
1962
|
-
this.values$ = this._formControlValue.pipe(map(convertMaybeToArray), shareReplay
|
|
1963
|
-
this.displayValuesState$ = this.values$.pipe(distinctUntilChanged(), switchMap((values) => this.loadDisplayValuesForValues(values)), shareReplay
|
|
1961
|
+
this._formControlValue = this.formControl$.pipe(switchMap(control => control.valueChanges.pipe(startWith(control.value), shareReplay(1))));
|
|
1962
|
+
this.values$ = this._formControlValue.pipe(map(convertMaybeToArray), shareReplay(1));
|
|
1963
|
+
this.displayValuesState$ = this.values$.pipe(distinctUntilChanged(), switchMap((values) => this.loadDisplayValuesForValues(values)), shareReplay(1));
|
|
1964
1964
|
this.displayValues$ = this.displayValuesState$.pipe(map(x => x?.value ?? []));
|
|
1965
1965
|
}
|
|
1966
1966
|
get name() {
|
|
@@ -1979,7 +1979,7 @@ class AbstractDbxSearchableValueFieldDirective extends FieldType$1 {
|
|
|
1979
1979
|
return this.searchableField.searchOnEmptyText ?? false;
|
|
1980
1980
|
}
|
|
1981
1981
|
get autocomplete() {
|
|
1982
|
-
return this.field.templateOptions?.attributes?.['autocomplete'] ?? this.key;
|
|
1982
|
+
return (this.field.templateOptions?.attributes?.['autocomplete'] ?? this.key);
|
|
1983
1983
|
}
|
|
1984
1984
|
get hashForValue() {
|
|
1985
1985
|
return this.searchableField.hashForValue ?? ((x) => x);
|
|
@@ -2015,7 +2015,7 @@ class AbstractDbxSearchableValueFieldDirective extends FieldType$1 {
|
|
|
2015
2015
|
return this.loadDisplayValuesForFieldValues(values.map((value) => ({ value })));
|
|
2016
2016
|
}
|
|
2017
2017
|
loadDisplayValuesForFieldValues(values) {
|
|
2018
|
-
return this.getDisplayValuesForFieldValues(values).pipe(map((displayValues) => successResult(displayValues)),
|
|
2018
|
+
return this.getDisplayValuesForFieldValues(values).pipe(map((displayValues) => successResult(displayValues)), startWithBeginLoading(), shareReplay(1));
|
|
2019
2019
|
}
|
|
2020
2020
|
getDisplayValuesForFieldValues(values) {
|
|
2021
2021
|
return this._displayHashMap.pipe(mergeMap((displayMap) => {
|
|
@@ -2234,7 +2234,7 @@ function makeMetaFilterSearchableFieldValueDisplayFn({ loadMetaForValues, makeDi
|
|
|
2234
2234
|
let allValues;
|
|
2235
2235
|
if (needLoading.length > 0) {
|
|
2236
2236
|
const loadingResult = loadMetaForValues(needLoading);
|
|
2237
|
-
allValues = loadingResult.pipe(map
|
|
2237
|
+
allValues = loadingResult.pipe(map((result) => {
|
|
2238
2238
|
const resultMap = arrayToMap(result, (x) => x.value);
|
|
2239
2239
|
const mergedWithLoad = needLoading.map((x) => {
|
|
2240
2240
|
const id = x.value;
|
|
@@ -2248,7 +2248,7 @@ function makeMetaFilterSearchableFieldValueDisplayFn({ loadMetaForValues, makeDi
|
|
|
2248
2248
|
};
|
|
2249
2249
|
}).filter(x => !x.meta);
|
|
2250
2250
|
return mergedWithLoad;
|
|
2251
|
-
}), map
|
|
2251
|
+
}), map((result) => [...loaded, ...result]));
|
|
2252
2252
|
}
|
|
2253
2253
|
else {
|
|
2254
2254
|
allValues = of(loaded);
|
|
@@ -2292,9 +2292,9 @@ function searchableTextField(config) {
|
|
|
2292
2292
|
class DbxSearchableTextFieldComponent extends AbstractDbxSearchableValueFieldDirective {
|
|
2293
2293
|
constructor() {
|
|
2294
2294
|
super(...arguments);
|
|
2295
|
-
this.selectedDisplayValue$ = this.displayValues$.pipe(map(x => x[0]), shareReplay
|
|
2295
|
+
this.selectedDisplayValue$ = this.displayValues$.pipe(map(x => x[0]), shareReplay(1), tapDetectChanges(this.cdRef));
|
|
2296
2296
|
this.hasValue$ = this.selectedDisplayValue$.pipe(map(x => Boolean(x)));
|
|
2297
|
-
this.showSelectedDisplayValue$ = this.selectedDisplayValue$.pipe(map(x => this.showSelectedValue && Boolean(x)), distinctUntilChanged(), shareReplay
|
|
2297
|
+
this.showSelectedDisplayValue$ = this.selectedDisplayValue$.pipe(map(x => this.showSelectedValue && Boolean(x)), distinctUntilChanged(), shareReplay(1), tapDetectChanges(this.cdRef));
|
|
2298
2298
|
this.multiSelect = false;
|
|
2299
2299
|
this._clearInputSub = new SubscriptionObject();
|
|
2300
2300
|
}
|
|
@@ -2317,8 +2317,7 @@ class DbxSearchableTextFieldComponent extends AbstractDbxSearchableValueFieldDir
|
|
|
2317
2317
|
this._clearInputSub.destroy();
|
|
2318
2318
|
}
|
|
2319
2319
|
selected(event) {
|
|
2320
|
-
|
|
2321
|
-
this.addWithDisplayValue(e.option.value);
|
|
2320
|
+
this.addWithDisplayValue(event.option.value);
|
|
2322
2321
|
}
|
|
2323
2322
|
}
|
|
2324
2323
|
DbxSearchableTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSearchableTextFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2478,7 +2477,7 @@ class DbxTextEditorFieldComponent extends FieldType$1 {
|
|
|
2478
2477
|
ngOnInit() {
|
|
2479
2478
|
this._editor = new Editor({});
|
|
2480
2479
|
// Watch for value changes every second and update the pristine level.
|
|
2481
|
-
this._sub.subscription = this.editor.valueChanges.pipe(debounceTime
|
|
2480
|
+
this._sub.subscription = this.editor.valueChanges.pipe(debounceTime(100), filter(() => this.editor.view.hasFocus())).subscribe(() => {
|
|
2482
2481
|
this.formControl.updateValueAndValidity();
|
|
2483
2482
|
this.formControl.markAsDirty();
|
|
2484
2483
|
});
|
|
@@ -2678,7 +2677,7 @@ DbxFormRepeatArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
2678
2677
|
</div>
|
|
2679
2678
|
</dbx-subsection>
|
|
2680
2679
|
</div>
|
|
2681
|
-
`, isInline: true, components: [{ type: i1$1.DbxSubSectionComponent, selector: "dbx-subsection" }, { type: i1$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { type: i1$1.DbxBarDirective, selector: "dbx-bar", inputs: ["color"] }, { type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2680
|
+
`, isInline: true, components: [{ type: i1$1.DbxSubSectionComponent, selector: "dbx-subsection" }, { type: i1$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { type: i1$1.DbxBarDirective, selector: "dbx-bar,[dbxBar]", inputs: ["color"] }, { type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2682
2681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormRepeatArrayTypeComponent, decorators: [{
|
|
2683
2682
|
type: Component,
|
|
2684
2683
|
args: [{
|
|
@@ -2866,12 +2865,12 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
2866
2865
|
this._formControlObs = new BehaviorSubject(undefined);
|
|
2867
2866
|
this.formControl$ = this._formControlObs.pipe(filterMaybe());
|
|
2868
2867
|
this._updateTime = new Subject();
|
|
2869
|
-
this.value$ = this.formControl$.pipe(switchMap
|
|
2868
|
+
this.value$ = this.formControl$.pipe(switchMap(control => control.valueChanges.pipe(startWith(control.value))), distinctUntilChanged((a, b) => isSameMinute(a, b)), shareReplay(1));
|
|
2870
2869
|
/**
|
|
2871
2870
|
* Used to trigger/display visual updates (specifically on timeDistance, etc.).
|
|
2872
2871
|
*/
|
|
2873
|
-
this.displayValue$ = interval(10 * 1000).pipe(startWith
|
|
2874
|
-
this.timeString$ = this.value$.pipe(filterMaybe(), map
|
|
2872
|
+
this.displayValue$ = interval(10 * 1000).pipe(startWith(0), map(() => new Date().getMinutes()), distinctUntilChanged(), tap(() => this.cdRef.markForCheck()), switchMap(() => this.value$), shareReplay(1));
|
|
2873
|
+
this.timeString$ = this.value$.pipe(filterMaybe(), map((x) => {
|
|
2875
2874
|
const timezone = guessCurrentTimezone();
|
|
2876
2875
|
const timeString = toReadableTimeString(x, timezone);
|
|
2877
2876
|
return timeString;
|
|
@@ -2885,18 +2884,18 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
2885
2884
|
]
|
|
2886
2885
|
});
|
|
2887
2886
|
this._config = new BehaviorSubject(undefined);
|
|
2888
|
-
this.fullDay$ = this.fullDayControl$.pipe(switchMap
|
|
2889
|
-
this.showTimeInput$ = this.fullDay$.pipe(map
|
|
2890
|
-
this.showAddTime$ = this.showTimeInput$.pipe(map
|
|
2891
|
-
this.date$ = this.dateInputCtrl.valueChanges.pipe(startWith
|
|
2892
|
-
this.dateValue$ = merge(this.date$, this.value$.pipe(skipFirstMaybe())).pipe(map
|
|
2893
|
-
this.timeInput$ = this._updateTime.pipe(debounceTime
|
|
2887
|
+
this.fullDay$ = this.fullDayControl$.pipe(switchMap(control => control.valueChanges.pipe(startWith(control.value))));
|
|
2888
|
+
this.showTimeInput$ = this.fullDay$.pipe(map(x => !x && this.timeMode !== DbxDateTimeFieldTimeMode.NONE));
|
|
2889
|
+
this.showAddTime$ = this.showTimeInput$.pipe(map(x => !x && this.timeMode === DbxDateTimeFieldTimeMode.OPTIONAL), shareReplay(1));
|
|
2890
|
+
this.date$ = this.dateInputCtrl.valueChanges.pipe(startWith(this.dateInputCtrl.value), filterMaybe(), shareReplay(1));
|
|
2891
|
+
this.dateValue$ = merge(this.date$, this.value$.pipe(skipFirstMaybe())).pipe(map((x) => (x) ? startOfDay(x) : x), distinctUntilChanged((a, b) => a != null && b != null && isSameDay(a, b)), shareReplay(1));
|
|
2892
|
+
this.timeInput$ = this._updateTime.pipe(debounceTime(5), map(() => this.timeInputCtrl.value), distinctUntilChanged());
|
|
2894
2893
|
this.config$ = this._config.pipe(switchMapMaybeDefault(), shareReplay(1));
|
|
2895
2894
|
this.rawDateTime$ = combineLatest([
|
|
2896
2895
|
this.dateValue$,
|
|
2897
|
-
this.timeInput$.pipe(startWith
|
|
2896
|
+
this.timeInput$.pipe(startWith(null)),
|
|
2898
2897
|
this.fullDay$
|
|
2899
|
-
]).pipe(map
|
|
2898
|
+
]).pipe(map(([date, timeString, fullDay]) => {
|
|
2900
2899
|
let result;
|
|
2901
2900
|
if (date) {
|
|
2902
2901
|
if (fullDay) {
|
|
@@ -2918,12 +2917,12 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
2918
2917
|
}
|
|
2919
2918
|
}
|
|
2920
2919
|
return result;
|
|
2921
|
-
}), distinctUntilChanged
|
|
2920
|
+
}), distinctUntilChanged((a, b) => a != null && b != null && isSameMinute(a, b)), shareReplay(1));
|
|
2922
2921
|
this.timeOutput$ = combineLatest([
|
|
2923
2922
|
this.rawDateTime$,
|
|
2924
2923
|
this._offset,
|
|
2925
|
-
this.config$.pipe(distinctUntilChanged
|
|
2926
|
-
]).pipe(throttleTime(40, undefined, { leading: false, trailing: true }), distinctUntilChanged
|
|
2924
|
+
this.config$.pipe(distinctUntilChanged()),
|
|
2925
|
+
]).pipe(throttleTime(40, undefined, { leading: false, trailing: true }), distinctUntilChanged((current, next) => current[0] === next[0] && next[1] === 0), tap(([, stepsOffset]) => (stepsOffset) ? this._offset.next(0) : 0), map(([date, stepsOffset, config]) => {
|
|
2927
2926
|
if (date != null) {
|
|
2928
2927
|
const instance = new DateTimeMinuteInstance({
|
|
2929
2928
|
date,
|
|
@@ -2935,7 +2934,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
2935
2934
|
date = addMinutes(date, minutes);
|
|
2936
2935
|
}
|
|
2937
2936
|
return date;
|
|
2938
|
-
}), distinctUntilChanged
|
|
2937
|
+
}), distinctUntilChanged((a, b) => a != null && b != null && isSameMinute(a, b)), shareReplay(1));
|
|
2939
2938
|
}
|
|
2940
2939
|
get dateOnly() {
|
|
2941
2940
|
return this.timeMode === DbxDateTimeFieldTimeMode.NONE;
|
|
@@ -3061,6 +3060,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3061
3060
|
}
|
|
3062
3061
|
}
|
|
3063
3062
|
focusTime() {
|
|
3063
|
+
// do nothing
|
|
3064
3064
|
}
|
|
3065
3065
|
focusOutTime() {
|
|
3066
3066
|
this._updateTime.next();
|
|
@@ -3072,7 +3072,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3072
3072
|
this.setFullDay(true);
|
|
3073
3073
|
}
|
|
3074
3074
|
setFullDay(fullDay) {
|
|
3075
|
-
this.fullDayControl$.pipe(first
|
|
3075
|
+
this.fullDayControl$.pipe(first()).subscribe((x) => {
|
|
3076
3076
|
x.setValue(fullDay);
|
|
3077
3077
|
});
|
|
3078
3078
|
}
|
|
@@ -3591,6 +3591,7 @@ function addressField({ key = 'address', required = false } = {}) {
|
|
|
3591
3591
|
function addressListField({ key = 'addresses', required = false, maxAddresses = 6 } = {}) {
|
|
3592
3592
|
return repeatArrayField({
|
|
3593
3593
|
key,
|
|
3594
|
+
required,
|
|
3594
3595
|
label: 'Addresses',
|
|
3595
3596
|
labelForField: 'Address',
|
|
3596
3597
|
addText: 'Add Address',
|
|
@@ -3727,7 +3728,6 @@ function fieldValuesAreEqualValidator(config = {}) {
|
|
|
3727
3728
|
};
|
|
3728
3729
|
}
|
|
3729
3730
|
|
|
3730
|
-
;
|
|
3731
3731
|
/**
|
|
3732
3732
|
* Configured simple text password field.
|
|
3733
3733
|
*
|
|
@@ -3828,7 +3828,7 @@ function fieldValueIsAvailableValidator(config) {
|
|
|
3828
3828
|
const pusher = asyncPusherCache({
|
|
3829
3829
|
throttle
|
|
3830
3830
|
});
|
|
3831
|
-
return (control) => pusher(control.valueChanges)(control.value).pipe(switchMap
|
|
3831
|
+
return (control) => pusher(control.valueChanges)(control.value).pipe(switchMap((x) => checkValueIsAvailable(x)), map((isAvailable) => {
|
|
3832
3832
|
if (isAvailable) {
|
|
3833
3833
|
return null;
|
|
3834
3834
|
}
|
|
@@ -3839,7 +3839,7 @@ function fieldValueIsAvailableValidator(config) {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
}), catchError(() => of({
|
|
3841
3841
|
[FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY]: { message: 'An error occured.' }
|
|
3842
|
-
})), first
|
|
3842
|
+
})), first());
|
|
3843
3843
|
}
|
|
3844
3844
|
|
|
3845
3845
|
function textIsAvailableField(config) {
|
|
@@ -3858,12 +3858,12 @@ function textIsAvailableField(config) {
|
|
|
3858
3858
|
/**
|
|
3859
3859
|
* Allows a directive to provide a formly context and form.
|
|
3860
3860
|
*/
|
|
3861
|
-
function
|
|
3861
|
+
function provideFormlyContext() {
|
|
3862
3862
|
return [{
|
|
3863
3863
|
provide: DbxFormlyContext,
|
|
3864
3864
|
useClass: DbxFormlyContext
|
|
3865
3865
|
},
|
|
3866
|
-
...
|
|
3866
|
+
...provideDbxMutableForm(DbxFormlyContext)];
|
|
3867
3867
|
}
|
|
3868
3868
|
/**
|
|
3869
3869
|
* DbxForm Instance that registers a delegate and manages the state of that form/delegate.
|
|
@@ -3877,7 +3877,7 @@ class DbxFormlyContext {
|
|
|
3877
3877
|
this._delegate = new BehaviorSubject(undefined);
|
|
3878
3878
|
this.fields$ = this._fields.pipe(filterMaybe());
|
|
3879
3879
|
this.disabled$ = this._disabled.pipe(filterMaybe());
|
|
3880
|
-
this.stream$ = this._delegate.pipe(distinctUntilChanged(), switchMap(x => (x) ? x.stream$ : of(DbxFormlyContext.INITIAL_STATE)), shareReplay
|
|
3880
|
+
this.stream$ = this._delegate.pipe(distinctUntilChanged(), switchMap(x => (x) ? x.stream$ : of(DbxFormlyContext.INITIAL_STATE)), shareReplay(1));
|
|
3881
3881
|
}
|
|
3882
3882
|
destroy() {
|
|
3883
3883
|
this.lockSet.destroyOnNextUnlock(() => {
|
|
@@ -3912,7 +3912,7 @@ class DbxFormlyContext {
|
|
|
3912
3912
|
}
|
|
3913
3913
|
// MARK: FormComponent
|
|
3914
3914
|
getValue() {
|
|
3915
|
-
return this._delegate.pipe(filterMaybe(), switchMap(x => x.getValue()), shareReplay
|
|
3915
|
+
return this._delegate.pipe(filterMaybe(), switchMap(x => x.getValue()), shareReplay(1));
|
|
3916
3916
|
}
|
|
3917
3917
|
setValue(value) {
|
|
3918
3918
|
this._initialValue.next(value);
|
|
@@ -4028,7 +4028,7 @@ class AbstractConfigAsyncFormlyFormDirective extends AbstractAsyncFormlyFormDire
|
|
|
4028
4028
|
constructor() {
|
|
4029
4029
|
super(...arguments);
|
|
4030
4030
|
this._config = new BehaviorSubject(undefined);
|
|
4031
|
-
this.config$ = this._config.pipe(filterMaybe(), shareReplay
|
|
4031
|
+
this.config$ = this._config.pipe(filterMaybe(), shareReplay(1));
|
|
4032
4032
|
}
|
|
4033
4033
|
get config() {
|
|
4034
4034
|
return this._config.value;
|
|
@@ -4070,12 +4070,12 @@ class DbxFormlyFieldsContextDirective extends AbstractAsyncFormlyFormDirective {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
4072
|
DbxFormlyFieldsContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormlyFieldsContextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4073
|
-
DbxFormlyFieldsContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFormlyFieldsContextDirective, selector: "[dbxFormlyFields]", inputs: { fields: ["dbxFormlyFields", "fields"] }, providers:
|
|
4073
|
+
DbxFormlyFieldsContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFormlyFieldsContextDirective, selector: "[dbxFormlyFields]", inputs: { fields: ["dbxFormlyFields", "fields"] }, providers: provideFormlyContext(), usesInheritance: true, ngImport: i0 });
|
|
4074
4074
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormlyFieldsContextDirective, decorators: [{
|
|
4075
4075
|
type: Directive,
|
|
4076
4076
|
args: [{
|
|
4077
4077
|
selector: '[dbxFormlyFields]',
|
|
4078
|
-
providers:
|
|
4078
|
+
providers: provideFormlyContext()
|
|
4079
4079
|
}]
|
|
4080
4080
|
}], propDecorators: { fields: [{
|
|
4081
4081
|
type: Input,
|
|
@@ -4098,10 +4098,10 @@ class DbxFormlyFormComponent extends AbstractSubscriptionDirective {
|
|
|
4098
4098
|
this.form = new FormGroup({});
|
|
4099
4099
|
this.model = {};
|
|
4100
4100
|
this.options = {};
|
|
4101
|
-
this.fields$ = this._fields.pipe(switchMapMaybeObs(), distinctUntilChanged(), shareReplay
|
|
4102
|
-
this.stream$ = this._reset.pipe(switchMap((lastResetAt) => this.form.valueChanges.pipe(startWith(0), distinctUntilChanged(), throttleTime
|
|
4101
|
+
this.fields$ = this._fields.pipe(switchMapMaybeObs(), distinctUntilChanged(), shareReplay(1));
|
|
4102
|
+
this.stream$ = this._reset.pipe(switchMap((lastResetAt) => this.form.valueChanges.pipe(startWith(0), distinctUntilChanged(), throttleTime(50, undefined, { leading: true, trailing: true }), scanCount(-1),
|
|
4103
4103
|
// update on validation changes too. Does not count towards changes since last reset.
|
|
4104
|
-
switchMap(changesSinceLastReset => this.form.statusChanges.pipe(startWith(this.form.status), distinctUntilChanged()).pipe(map(
|
|
4104
|
+
switchMap(changesSinceLastReset => this.form.statusChanges.pipe(startWith(this.form.status), distinctUntilChanged()).pipe(map(() => changesSinceLastReset))), map((changesSinceLastResetCount) => ({
|
|
4105
4105
|
changesSinceLastResetCount,
|
|
4106
4106
|
isFormValid: this.form.status !== 'PENDING' && this.form.valid,
|
|
4107
4107
|
isFormDisabled: this.form.disabled
|
|
@@ -4134,7 +4134,7 @@ class DbxFormlyFormComponent extends AbstractSubscriptionDirective {
|
|
|
4134
4134
|
};
|
|
4135
4135
|
// console.log('Change: ', nextState);
|
|
4136
4136
|
return nextState;
|
|
4137
|
-
}))), shareReplay
|
|
4137
|
+
}))), shareReplay(1));
|
|
4138
4138
|
}
|
|
4139
4139
|
ngOnInit() {
|
|
4140
4140
|
this.context.setDelegate(this);
|
|
@@ -4214,7 +4214,7 @@ class DbxFormlyFormComponent extends AbstractSubscriptionDirective {
|
|
|
4214
4214
|
}
|
|
4215
4215
|
}
|
|
4216
4216
|
DbxFormlyFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormlyFormComponent, deps: [{ token: DbxFormlyContext }], target: i0.ɵɵFactoryTarget.Component });
|
|
4217
|
-
DbxFormlyFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxFormlyFormComponent, selector: "dbx-formly", host: { classAttribute: "dbx-formly" }, providers:
|
|
4217
|
+
DbxFormlyFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxFormlyFormComponent, selector: "dbx-formly", host: { classAttribute: "dbx-formly" }, providers: provideDbxMutableForm(DbxFormlyFormComponent), exportAs: ["formly"], usesInheritance: true, ngImport: i0, template: `
|
|
4218
4218
|
<form [formGroup]="form" class="dbx-formly">
|
|
4219
4219
|
<formly-form [form]="form" [fields]="(fields$ | async) ?? []" [model]="model"></formly-form>
|
|
4220
4220
|
</form>
|
|
@@ -4229,7 +4229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4229
4229
|
<formly-form [form]="form" [fields]="(fields$ | async) ?? []" [model]="model"></formly-form>
|
|
4230
4230
|
</form>
|
|
4231
4231
|
`,
|
|
4232
|
-
providers:
|
|
4232
|
+
providers: provideDbxMutableForm(DbxFormlyFormComponent),
|
|
4233
4233
|
host: {
|
|
4234
4234
|
'class': 'dbx-formly'
|
|
4235
4235
|
}
|
|
@@ -4326,7 +4326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4326
4326
|
}]
|
|
4327
4327
|
}] });
|
|
4328
4328
|
|
|
4329
|
-
function
|
|
4329
|
+
function isTruthy() {
|
|
4330
4330
|
return (control) => {
|
|
4331
4331
|
const value = control.value;
|
|
4332
4332
|
if (!value) {
|
|
@@ -4339,26 +4339,29 @@ function IsTruthy() {
|
|
|
4339
4339
|
}
|
|
4340
4340
|
|
|
4341
4341
|
const DOMAIN_NAME_REGEX = /(.+)\.(.+)/;
|
|
4342
|
-
function
|
|
4342
|
+
function isDomain() {
|
|
4343
4343
|
return Validators.pattern(DOMAIN_NAME_REGEX);
|
|
4344
4344
|
}
|
|
4345
4345
|
|
|
4346
|
-
|
|
4346
|
+
/**
|
|
4347
|
+
* Merges the use of the min and max validator.
|
|
4348
|
+
*
|
|
4349
|
+
* @param min
|
|
4350
|
+
* @param max
|
|
4351
|
+
* @returns
|
|
4352
|
+
*/
|
|
4353
|
+
function isInRange(min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
|
|
4354
|
+
const minFn = Validators.min(min);
|
|
4355
|
+
const maxFn = Validators.max(max);
|
|
4347
4356
|
return (control) => {
|
|
4348
|
-
const
|
|
4349
|
-
const
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
errors.min = value;
|
|
4357
|
-
}
|
|
4358
|
-
if (!smallEnough) {
|
|
4359
|
-
errors.max = value;
|
|
4360
|
-
}
|
|
4361
|
-
}
|
|
4357
|
+
const minError = minFn(control);
|
|
4358
|
+
const maxError = maxFn(control);
|
|
4359
|
+
let errors = null;
|
|
4360
|
+
if (minError || maxError) {
|
|
4361
|
+
errors = {
|
|
4362
|
+
...minError,
|
|
4363
|
+
...maxError
|
|
4364
|
+
};
|
|
4362
4365
|
}
|
|
4363
4366
|
return errors;
|
|
4364
4367
|
};
|
|
@@ -4388,5 +4391,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4388
4391
|
* Generated bundle index. Do not edit.
|
|
4389
4392
|
*/
|
|
4390
4393
|
|
|
4391
|
-
export { ADDRESS_CITY_MAX_LENGTH, ADDRESS_COUNTRY_MAX_LENGTH, ADDRESS_LINE_MAX_LENGTH, ADDRESS_STATE_MAX_LENGTH, ADDRESS_ZIP_MAX_LENGTH, APP_ACTION_FORM_DISABLED_KEY, AbstractAsyncFormlyFormDirective, AbstractConfigAsyncFormlyFormDirective, AbstractDbxPickableItemFieldDirective, AbstractDbxSearchableFieldDisplayDirective, AbstractDbxSearchableValueFieldDirective, AbstractFormExpandableSectionWrapperDirective, AbstractFormlyFormDirective, AbstractSyncFormlyFormDirective, AutoTouchFieldWrapperComponent, ChecklistItemFieldDataSetBuilder, DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN, DEFAULT_FORM_DISABLED_KEY, DEFAULT_HAS_VALUE_FN, DEFAULT_PREFERRED_COUNTRIES, DOMAIN_NAME_REGEX, DbxActionFormDirective, DbxActionFormSafetyDirective, DbxChecklistItemContentComponent, DbxChecklistItemFieldComponent, DbxDateTimeFieldComponent, DbxDateTimeFieldTimeMode, DbxDefaultChecklistItemFieldDisplayComponent, DbxDefaultSearchableFieldDisplayComponent, DbxForm, DbxFormActionModule, DbxFormActionTransitionModule, DbxFormComponentFieldComponent, DbxFormExpandWrapperComponent, DbxFormExtensionModule, DbxFormFlexWrapperComponent, DbxFormFormlyArrayFieldModule, DbxFormFormlyBooleanFieldModule, DbxFormFormlyChecklistItemFieldModule, DbxFormFormlyComponentFieldModule, DbxFormFormlyDateFieldModule, DbxFormFormlyEnumFieldModule, DbxFormFormlyFieldModule, DbxFormFormlyPhoneFieldModule, DbxFormFormlyPickableFieldModule, DbxFormFormlySearchableFieldModule, DbxFormFormlySelectionModule, DbxFormFormlyTextEditorFieldModule, DbxFormFormlyTextFieldModule, DbxFormFormlyValueModule, DbxFormFormlyWrapperModule, DbxFormInfoWrapperComponent, DbxFormIoModule, DbxFormLayoutModule, DbxFormLoadingSourceDirective, DbxFormModule, DbxFormRepeatArrayTypeComponent, DbxFormSectionWrapperComponent, DbxFormSourceDirective, DbxFormSpacerComponent, DbxFormState, DbxFormSubsectionWrapperComponent, DbxFormToggleWrapperComponent, DbxFormValueChangesDirective, DbxFormWorkingWrapperComponent, DbxFormlyContext, DbxFormlyFieldsContextDirective, DbxFormlyFormComponent, DbxFormlyModule, DbxMutableForm, DbxPhoneFieldComponent, DbxPickableChipListFieldComponent, DbxPickableListFieldComponent, DbxPickableListFieldItemListComponent, DbxPickableListFieldItemListViewComponent, DbxPickableListFieldItemListViewItemComponent, DbxSearchableChipFieldComponent, DbxSearchableFieldAutocompleteItemComponent, DbxSearchableTextFieldComponent, DbxTextEditorFieldComponent, EXPANDABLE_WRAPPER_KEY, FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY, FLEX_WRAPPER_KEY, INFO_WRAPPER_KEY, INVALID_PHONE_NUMBER_MESSAGE,
|
|
4394
|
+
export { ADDRESS_CITY_MAX_LENGTH, ADDRESS_COUNTRY_MAX_LENGTH, ADDRESS_LINE_MAX_LENGTH, ADDRESS_STATE_MAX_LENGTH, ADDRESS_ZIP_MAX_LENGTH, APP_ACTION_FORM_DISABLED_KEY, AbstractAsyncFormlyFormDirective, AbstractConfigAsyncFormlyFormDirective, AbstractDbxPickableItemFieldDirective, AbstractDbxSearchableFieldDisplayDirective, AbstractDbxSearchableValueFieldDirective, AbstractFormExpandableSectionWrapperDirective, AbstractFormlyFormDirective, AbstractSyncFormlyFormDirective, AutoTouchFieldWrapperComponent, ChecklistItemFieldDataSetBuilder, DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN, DEFAULT_FORM_DISABLED_KEY, DEFAULT_HAS_VALUE_FN, DEFAULT_PREFERRED_COUNTRIES, DOMAIN_NAME_REGEX, DbxActionFormDirective, DbxActionFormSafetyDirective, DbxChecklistItemContentComponent, DbxChecklistItemFieldComponent, DbxDateTimeFieldComponent, DbxDateTimeFieldTimeMode, DbxDefaultChecklistItemFieldDisplayComponent, DbxDefaultSearchableFieldDisplayComponent, DbxForm, DbxFormActionModule, DbxFormActionTransitionModule, DbxFormComponentFieldComponent, DbxFormExpandWrapperComponent, DbxFormExtensionModule, DbxFormFlexWrapperComponent, DbxFormFormlyArrayFieldModule, DbxFormFormlyBooleanFieldModule, DbxFormFormlyChecklistItemFieldModule, DbxFormFormlyComponentFieldModule, DbxFormFormlyDateFieldModule, DbxFormFormlyEnumFieldModule, DbxFormFormlyFieldModule, DbxFormFormlyPhoneFieldModule, DbxFormFormlyPickableFieldModule, DbxFormFormlySearchableFieldModule, DbxFormFormlySelectionModule, DbxFormFormlyTextEditorFieldModule, DbxFormFormlyTextFieldModule, DbxFormFormlyValueModule, DbxFormFormlyWrapperModule, DbxFormInfoWrapperComponent, DbxFormIoModule, DbxFormLayoutModule, DbxFormLoadingSourceDirective, DbxFormModule, DbxFormRepeatArrayTypeComponent, DbxFormSectionWrapperComponent, DbxFormSourceDirective, DbxFormSpacerComponent, DbxFormState, DbxFormSubsectionWrapperComponent, DbxFormToggleWrapperComponent, DbxFormValueChangesDirective, DbxFormWorkingWrapperComponent, DbxFormlyContext, DbxFormlyFieldsContextDirective, DbxFormlyFormComponent, DbxFormlyModule, DbxMutableForm, DbxPhoneFieldComponent, DbxPickableChipListFieldComponent, DbxPickableListFieldComponent, DbxPickableListFieldItemListComponent, DbxPickableListFieldItemListViewComponent, DbxPickableListFieldItemListViewItemComponent, DbxSearchableChipFieldComponent, DbxSearchableFieldAutocompleteItemComponent, DbxSearchableTextFieldComponent, DbxTextEditorFieldComponent, EXPANDABLE_WRAPPER_KEY, FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY, FLEX_WRAPPER_KEY, INFO_WRAPPER_KEY, INVALID_PHONE_NUMBER_MESSAGE, LABEL_STRING_MAX_LENGTH, MAX_LENGTH_VALIDATION_MESSAGE, MAX_VALIDATION_MESSAGE, MIN_LENGTH_VALIDATION_MESSAGE, MIN_VALIDATION_MESSAGE, PHONE_LABEL_MAX_LENGTH, REQUIRED_VALIDATION_MESSAGE, SEARCH_STRING_MAX_LENGTH, SECTION_WRAPPER_KEY, STYLE_WRAPPER_KEY, SUBSECTION_WRAPPER_KEY, TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS, TOGGLE_WRAPPER_KEY, WORKING_WRAPPER_KEY, addWrapperToFormlyFieldConfig, addressField, addressFormlyFields, addressListField, checkIsFieldFlexLayoutGroupFieldConfig, checkboxField, checklistItemField, chipTextField, cityField, componentField, countryField, dateTimeField, dbxFormSourceObservable, defaultValidationMessages, disableFormlyFieldAutofillAttributes, emailField, expandWrapper, fieldValueIsAvailableValidator, fieldValuesAreEqualValidator, filterPickableItemFieldValuesByLabel, flexLayoutWrapper, formlyField, hiddenField, infoWrapper, isDomain, isInRange, isTruthy, makeMetaFilterSearchableFieldValueDisplayFn, maxLengthValidationMessage, maxValidationMessage, minLengthValidationMessage, minValidationMessage, nameField, phoneAndLabelSectionField, phoneField, phoneListField, pickableItemChipField, pickableItemListField, provideDbxForm, provideDbxMutableForm, provideFormlyContext, repeatArrayField, searchableChipField, searchableStringChipField, searchableTextField, sectionWrapper, sortPickableItemsByLabel, stateField, staticEnumField, styleWrapper, subsectionWrapper, templateOptionsForFieldConfig, templateOptionsValueForFieldConfig, textAreaField, textEditorField, textField, textIsAvailableField, textPasswordField, textPasswordWithVerifyFieldGroup, textVerifyPasswordField, timeOnlyField, toggleField, toggleWrapper, usernamePasswordLoginFields, workingWrapper, wrappedPhoneAndLabelField, zipCodeField };
|
|
4392
4395
|
//# sourceMappingURL=dereekb-dbx-form.mjs.map
|