@dereekb/dbx-form 7.1.0 → 7.4.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/esm2020/lib/formly/config/validation.mjs +5 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +5 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +4 -5
- package/esm2020/lib/formly/field/field.mjs +15 -9
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +5 -5
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +8 -8
- 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 +5 -5
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +8 -8
- package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +2 -2
- package/esm2020/lib/formly/field/selection/searchable/text.chip.field.mjs +5 -5
- package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/texteditor/texteditor.field.mjs +3 -3
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/value/array/array.field.mjs +3 -3
- package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +5 -5
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +4 -5
- package/esm2020/lib/formly/field/value/enum/enum.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/hidden.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/phone/phone.field.component.mjs +3 -6
- package/esm2020/lib/formly/field/value/phone/phone.field.mjs +4 -5
- package/esm2020/lib/formly/field/value/text/text.address.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/text/text.field.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/form.wrapper.module.mjs +20 -19
- package/esm2020/lib/formly/field/wrapper/info.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/section.wrapper.component.mjs +3 -3
- package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +2 -5
- package/esm2020/lib/formly/field/wrapper/subsection.wrapper.component.mjs +3 -3
- package/esm2020/lib/formly/field/wrapper/working.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/wrapper.mjs +24 -33
- package/esm2020/lib/formly/template/login.mjs +2 -2
- package/fesm2015/dereekb-dbx-form.mjs +174 -200
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +180 -192
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/field/checklist/checklist.item.field.component.d.ts +4 -7
- package/lib/formly/field/checklist/checklist.item.field.d.ts +4 -3
- package/lib/formly/field/field.d.ts +9 -4
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +2 -2
- package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +4 -7
- package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +3 -6
- package/lib/formly/field/selection/searchable/searchable.field.d.ts +4 -4
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +5 -10
- package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +4 -7
- package/lib/formly/field/selection/searchable/text.chip.field.d.ts +5 -6
- package/lib/formly/field/texteditor/texteditor.field.component.d.ts +3 -3
- package/lib/formly/field/value/array/array.field.d.ts +2 -2
- package/lib/formly/field/value/date/datetime.field.component.d.ts +4 -7
- package/lib/formly/field/value/date/datetime.field.d.ts +3 -3
- package/lib/formly/field/value/phone/phone.field.component.d.ts +6 -9
- package/lib/formly/field/value/phone/phone.field.d.ts +3 -3
- package/lib/formly/field/wrapper/expandable.wrapper.delegate.d.ts +3 -7
- package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/info.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/section.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/style.wrapper.component.d.ts +1 -5
- package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/working.wrapper.component.d.ts +1 -4
- package/lib/formly/field/wrapper/wrapper.d.ts +17 -10
- package/lib/formly/formly.context.d.ts +3 -1
- package/lib/formly/formly.context.directive.d.ts +3 -1
- package/lib/formly/formly.form.component.d.ts +3 -1
- package/package.json +5 -5
|
@@ -26,7 +26,7 @@ import * as i1$2 from '@angular/material/button';
|
|
|
26
26
|
import { MatButtonModule } from '@angular/material/button';
|
|
27
27
|
import * as i3$1 from '@angular/flex-layout/flex';
|
|
28
28
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
29
|
-
import { objectIsEmpty, mergeObjects, filterFromPOJO, addPlusPrefixToNumber, convertMaybeToArray, makeValuesGroupMap, findUnique, mergeIntoArray, lastValue, separateValues, arrayToMap, getValueFromGetter, dateFromLogicalDate, KeyValueTypleValueFilter, valuesFromPOJO, allObjectsAreEqual, capitalizeFirstLetter, BooleanStringKeyArrayUtilityInstance } from '@dereekb/util';
|
|
29
|
+
import { objectIsEmpty, mergeObjectsFunction, filterFromPOJOFunction, mergeObjects, filterFromPOJO, addPlusPrefixToNumber, convertMaybeToArray, makeValuesGroupMap, findUnique, mergeIntoArray, lastValue, separateValues, arrayToMap, getValueFromGetter, dateFromLogicalDate, KeyValueTypleValueFilter, valuesFromPOJO, allObjectsAreEqual, capitalizeFirstLetter, BooleanStringKeyArrayUtilityInstance } from '@dereekb/util';
|
|
30
30
|
import * as i1$3 from '@angular/material/slide-toggle';
|
|
31
31
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
32
32
|
import * as i2$2 from '@angular/flex-layout/extended';
|
|
@@ -466,16 +466,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
466
466
|
}] });
|
|
467
467
|
|
|
468
468
|
function minLengthValidationMessage(err, field) {
|
|
469
|
-
return `Should have atleast ${field.
|
|
469
|
+
return `Should have atleast ${field.props.minLength} characters`;
|
|
470
470
|
}
|
|
471
471
|
function maxLengthValidationMessage(err, field) {
|
|
472
|
-
return `This value should be less than ${field.
|
|
472
|
+
return `This value should be less than ${field.props.maxLength} characters`;
|
|
473
473
|
}
|
|
474
474
|
function minValidationMessage(err, field) {
|
|
475
|
-
return `This value should be more than ${field.
|
|
475
|
+
return `This value should be more than ${field.props.min}`;
|
|
476
476
|
}
|
|
477
477
|
function maxValidationMessage(err, field) {
|
|
478
|
-
return `This value should be less than ${field.
|
|
478
|
+
return `This value should be less than ${field.props.max}`;
|
|
479
479
|
}
|
|
480
480
|
const REQUIRED_VALIDATION_MESSAGE = { name: 'required', message: 'This field is required' };
|
|
481
481
|
const MIN_LENGTH_VALIDATION_MESSAGE = { name: 'minLength', message: minLengthValidationMessage };
|
|
@@ -537,16 +537,16 @@ class DbxChecklistItemFieldComponent extends FieldType {
|
|
|
537
537
|
return this.key;
|
|
538
538
|
}
|
|
539
539
|
get label() {
|
|
540
|
-
return this.
|
|
540
|
+
return this.props.label;
|
|
541
541
|
}
|
|
542
542
|
get description() {
|
|
543
|
-
return this.
|
|
543
|
+
return this.props.description;
|
|
544
544
|
}
|
|
545
545
|
get required() {
|
|
546
|
-
return this.
|
|
546
|
+
return this.props.required;
|
|
547
547
|
}
|
|
548
548
|
get checklistField() {
|
|
549
|
-
return this.
|
|
549
|
+
return this.props;
|
|
550
550
|
}
|
|
551
551
|
get errors() {
|
|
552
552
|
return this.field.formControl?.errors;
|
|
@@ -601,7 +601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
601
601
|
|
|
602
602
|
class DbxFormInfoWrapperComponent extends FieldWrapper {
|
|
603
603
|
get infoWrapper() {
|
|
604
|
-
return this.
|
|
604
|
+
return this.props.infoWrapper;
|
|
605
605
|
}
|
|
606
606
|
onInfoClick() {
|
|
607
607
|
this.infoWrapper.onInfoClick();
|
|
@@ -640,10 +640,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
640
640
|
|
|
641
641
|
class DbxFormSectionWrapperComponent extends FieldWrapper {
|
|
642
642
|
get header() {
|
|
643
|
-
return this.
|
|
643
|
+
return this.props.sectionWrapper?.header;
|
|
644
644
|
}
|
|
645
645
|
get hint() {
|
|
646
|
-
return this.
|
|
646
|
+
return this.props.sectionWrapper?.hint;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
DbxFormSectionWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormSectionWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -665,7 +665,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
665
665
|
|
|
666
666
|
class DbxFormFlexWrapperComponent extends FieldWrapper {
|
|
667
667
|
get flexWrapper() {
|
|
668
|
-
return this.
|
|
668
|
+
return this.props.flexWrapper;
|
|
669
669
|
}
|
|
670
670
|
get breakpoint() {
|
|
671
671
|
return this.flexWrapper?.breakpoint;
|
|
@@ -693,10 +693,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
693
693
|
|
|
694
694
|
class DbxFormSubsectionWrapperComponent extends FieldWrapper {
|
|
695
695
|
get header() {
|
|
696
|
-
return this.
|
|
696
|
+
return this.props.subsectionWrapper?.header;
|
|
697
697
|
}
|
|
698
698
|
get hint() {
|
|
699
|
-
return this.
|
|
699
|
+
return this.props.subsectionWrapper?.hint;
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
DbxFormSubsectionWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormSubsectionWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -736,17 +736,17 @@ class AbstractFormExpandableSectionWrapperDirective extends FieldWrapper {
|
|
|
736
736
|
}), shareReplay(1))));
|
|
737
737
|
}
|
|
738
738
|
get expandableSection() {
|
|
739
|
-
return this.
|
|
739
|
+
return this.props.expandWrapper;
|
|
740
740
|
}
|
|
741
741
|
get hasValueFn() {
|
|
742
742
|
return this.expandableSection?.hasValueFn ?? DEFAULT_HAS_VALUE_FN;
|
|
743
743
|
}
|
|
744
744
|
get expandLabel() {
|
|
745
|
-
let label = this.expandableSection?.expandLabel ?? this.field?.
|
|
745
|
+
let label = this.expandableSection?.expandLabel ?? this.field?.props?.label;
|
|
746
746
|
if (label == null) {
|
|
747
747
|
const firstFieldGroup = this.field.fieldGroup?.[0];
|
|
748
748
|
if (firstFieldGroup) {
|
|
749
|
-
label = firstFieldGroup.
|
|
749
|
+
label = firstFieldGroup.props?.label ?? firstFieldGroup.key;
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
return label;
|
|
@@ -883,11 +883,8 @@ class DbxFormStyleWrapperComponent extends FieldWrapper {
|
|
|
883
883
|
this._style = new BehaviorSubject(undefined);
|
|
884
884
|
this.style$ = this._style.pipe(switchMapMaybeDefault(''), shareReplay(1));
|
|
885
885
|
}
|
|
886
|
-
get styleWrapper() {
|
|
887
|
-
return this.field.styleWrapper;
|
|
888
|
-
}
|
|
889
886
|
get styleGetter() {
|
|
890
|
-
return this.
|
|
887
|
+
return this.props.style;
|
|
891
888
|
}
|
|
892
889
|
ngOnInit() {
|
|
893
890
|
this._style.next(asObservable(this.styleGetter));
|
|
@@ -953,6 +950,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
953
950
|
}]
|
|
954
951
|
}] });
|
|
955
952
|
|
|
953
|
+
const AUTO_TOUCH_WRAPPER_KEY = 'autotouch';
|
|
954
|
+
const EXPANDABLE_WRAPPER_KEY = 'expandable';
|
|
955
|
+
const TOGGLE_WRAPPER_KEY = 'toggle';
|
|
956
|
+
const SECTION_WRAPPER_KEY = 'section';
|
|
957
|
+
const SUBSECTION_WRAPPER_KEY = 'subsection';
|
|
958
|
+
const INFO_WRAPPER_KEY = 'info';
|
|
959
|
+
const FLEX_WRAPPER_KEY = 'flex';
|
|
960
|
+
const STYLE_WRAPPER_KEY = 'style';
|
|
961
|
+
const WORKING_WRAPPER_KEY = 'working';
|
|
962
|
+
function addWrapperToFormlyFieldConfig(fieldConfig, wrapperKey, wrapperProps) {
|
|
963
|
+
// ??? can probably remove?
|
|
964
|
+
fieldConfig.props = {
|
|
965
|
+
...fieldConfig.props,
|
|
966
|
+
...wrapperProps
|
|
967
|
+
};
|
|
968
|
+
return {
|
|
969
|
+
wrappers: [wrapperKey],
|
|
970
|
+
props: wrapperProps,
|
|
971
|
+
fieldGroup: [fieldConfig]
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
function autoTouchWrapper(fieldConfig, autoTouchWrapper = {}) {
|
|
975
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, AUTO_TOUCH_WRAPPER_KEY, autoTouchWrapper);
|
|
976
|
+
}
|
|
977
|
+
function expandWrapper(fieldConfig, expandWrapper = {}) {
|
|
978
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, EXPANDABLE_WRAPPER_KEY, expandWrapper);
|
|
979
|
+
}
|
|
980
|
+
function toggleWrapper(fieldConfig, toggleWrapper = {}) {
|
|
981
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, TOGGLE_WRAPPER_KEY, toggleWrapper);
|
|
982
|
+
}
|
|
983
|
+
function sectionWrapper(fieldConfig, sectionWrapper = {}) {
|
|
984
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, SECTION_WRAPPER_KEY, sectionWrapper);
|
|
985
|
+
}
|
|
986
|
+
function subsectionWrapper(fieldConfig, subsectionWrapper = {}) {
|
|
987
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, SUBSECTION_WRAPPER_KEY, subsectionWrapper);
|
|
988
|
+
}
|
|
989
|
+
function infoWrapper(fieldConfig, infoWrapper) {
|
|
990
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, INFO_WRAPPER_KEY, infoWrapper);
|
|
991
|
+
}
|
|
992
|
+
function styleWrapper(fieldConfig, styleWrapper) {
|
|
993
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, STYLE_WRAPPER_KEY, styleWrapper);
|
|
994
|
+
}
|
|
995
|
+
function workingWrapper(fieldConfig, workingWrapper = {}) {
|
|
996
|
+
return addWrapperToFormlyFieldConfig(fieldConfig, WORKING_WRAPPER_KEY, workingWrapper);
|
|
997
|
+
}
|
|
998
|
+
function checkIsFieldFlexLayoutGroupFieldConfig(input) {
|
|
999
|
+
if (input.field != null) {
|
|
1000
|
+
return true;
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
return false;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
function flexLayoutWrapper(fieldConfigs, { relative, breakpoint, size: defaultSize = 2 } = {}) {
|
|
1007
|
+
return {
|
|
1008
|
+
wrappers: ['flex'],
|
|
1009
|
+
fieldGroupClassName: 'dbx-flex-group',
|
|
1010
|
+
// fieldGroupClassName: 'field-layout-group',
|
|
1011
|
+
props: {
|
|
1012
|
+
flexWrapper: {
|
|
1013
|
+
breakpoint,
|
|
1014
|
+
relative
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
fieldGroup: fieldConfigs.map((inputConfig) => {
|
|
1018
|
+
const fieldConfig = checkIsFieldFlexLayoutGroupFieldConfig(inputConfig)
|
|
1019
|
+
? inputConfig
|
|
1020
|
+
: {
|
|
1021
|
+
field: inputConfig
|
|
1022
|
+
};
|
|
1023
|
+
const { field, size = defaultSize } = fieldConfig;
|
|
1024
|
+
const className = `dbx-flex-${size}`;
|
|
1025
|
+
return {
|
|
1026
|
+
...field,
|
|
1027
|
+
className
|
|
1028
|
+
};
|
|
1029
|
+
})
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
|
|
956
1033
|
class DbxFormFormlyWrapperModule {
|
|
957
1034
|
}
|
|
958
1035
|
DbxFormFormlyWrapperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFormFormlyWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -977,15 +1054,15 @@ DbxFormFormlyWrapperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
977
1054
|
FlexLayoutModule,
|
|
978
1055
|
FormlyModule.forChild({
|
|
979
1056
|
wrappers: [
|
|
980
|
-
{ name:
|
|
981
|
-
{ name:
|
|
982
|
-
{ name:
|
|
983
|
-
{ name:
|
|
984
|
-
{ name:
|
|
985
|
-
{ name:
|
|
986
|
-
{ name:
|
|
987
|
-
{ name:
|
|
988
|
-
{ name:
|
|
1057
|
+
{ name: AUTO_TOUCH_WRAPPER_KEY, component: AutoTouchFieldWrapperComponent },
|
|
1058
|
+
{ name: EXPANDABLE_WRAPPER_KEY, component: DbxFormExpandWrapperComponent },
|
|
1059
|
+
{ name: TOGGLE_WRAPPER_KEY, component: DbxFormToggleWrapperComponent },
|
|
1060
|
+
{ name: SECTION_WRAPPER_KEY, component: DbxFormSectionWrapperComponent },
|
|
1061
|
+
{ name: SUBSECTION_WRAPPER_KEY, component: DbxFormSubsectionWrapperComponent },
|
|
1062
|
+
{ name: INFO_WRAPPER_KEY, component: DbxFormInfoWrapperComponent },
|
|
1063
|
+
{ name: FLEX_WRAPPER_KEY, component: DbxFormFlexWrapperComponent },
|
|
1064
|
+
{ name: STYLE_WRAPPER_KEY, component: DbxFormStyleWrapperComponent },
|
|
1065
|
+
{ name: WORKING_WRAPPER_KEY, component: DbxFormWorkingWrapperComponent }
|
|
989
1066
|
]
|
|
990
1067
|
})
|
|
991
1068
|
]] });
|
|
@@ -1004,15 +1081,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
1004
1081
|
FlexLayoutModule,
|
|
1005
1082
|
FormlyModule.forChild({
|
|
1006
1083
|
wrappers: [
|
|
1007
|
-
{ name:
|
|
1008
|
-
{ name:
|
|
1009
|
-
{ name:
|
|
1010
|
-
{ name:
|
|
1011
|
-
{ name:
|
|
1012
|
-
{ name:
|
|
1013
|
-
{ name:
|
|
1014
|
-
{ name:
|
|
1015
|
-
{ name:
|
|
1084
|
+
{ name: AUTO_TOUCH_WRAPPER_KEY, component: AutoTouchFieldWrapperComponent },
|
|
1085
|
+
{ name: EXPANDABLE_WRAPPER_KEY, component: DbxFormExpandWrapperComponent },
|
|
1086
|
+
{ name: TOGGLE_WRAPPER_KEY, component: DbxFormToggleWrapperComponent },
|
|
1087
|
+
{ name: SECTION_WRAPPER_KEY, component: DbxFormSectionWrapperComponent },
|
|
1088
|
+
{ name: SUBSECTION_WRAPPER_KEY, component: DbxFormSubsectionWrapperComponent },
|
|
1089
|
+
{ name: INFO_WRAPPER_KEY, component: DbxFormInfoWrapperComponent },
|
|
1090
|
+
{ name: FLEX_WRAPPER_KEY, component: DbxFormFlexWrapperComponent },
|
|
1091
|
+
{ name: STYLE_WRAPPER_KEY, component: DbxFormStyleWrapperComponent },
|
|
1092
|
+
{ name: WORKING_WRAPPER_KEY, component: DbxFormWorkingWrapperComponent }
|
|
1016
1093
|
]
|
|
1017
1094
|
})
|
|
1018
1095
|
],
|
|
@@ -1085,16 +1162,22 @@ function formlyField(fieldConfig) {
|
|
|
1085
1162
|
}
|
|
1086
1163
|
return fieldConfig;
|
|
1087
1164
|
}
|
|
1088
|
-
function
|
|
1089
|
-
const
|
|
1165
|
+
function propsForFieldConfig(fieldConfig, override) {
|
|
1166
|
+
const props = propsValueForFieldConfig(fieldConfig, override);
|
|
1090
1167
|
return {
|
|
1091
|
-
|
|
1168
|
+
props
|
|
1092
1169
|
};
|
|
1093
1170
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1171
|
+
const partialPotentialFieldConfigKeys = ['label', 'placeholder', 'required', 'readonly', 'description', 'autocomplete'];
|
|
1172
|
+
const partialPotentialFieldConfigKeysFilter = {
|
|
1173
|
+
keysFilter: partialPotentialFieldConfigKeys
|
|
1174
|
+
};
|
|
1175
|
+
const mergePropsValueObjects = mergeObjectsFunction(partialPotentialFieldConfigKeysFilter);
|
|
1176
|
+
const filterPartialPotentialFieldConfigValuesFromObject = filterFromPOJOFunction({
|
|
1177
|
+
filter: partialPotentialFieldConfigKeysFilter
|
|
1178
|
+
});
|
|
1179
|
+
function propsValueForFieldConfig(fieldConfig, override) {
|
|
1180
|
+
const { label, placeholder, required, readonly, description, autocomplete } = mergePropsValueObjects([fieldConfig, override]);
|
|
1098
1181
|
const attributes = mergeObjects([fieldConfig.attributes, override?.attributes]);
|
|
1099
1182
|
const result = filterFromPOJO({
|
|
1100
1183
|
...override,
|
|
@@ -1135,11 +1218,10 @@ function checklistItemField(config) {
|
|
|
1135
1218
|
const fieldConfig = formlyField({
|
|
1136
1219
|
key,
|
|
1137
1220
|
type: 'checklistitem',
|
|
1138
|
-
|
|
1221
|
+
...propsForFieldConfig(config, {
|
|
1139
1222
|
displayContentObs,
|
|
1140
1223
|
componentClass
|
|
1141
|
-
}
|
|
1142
|
-
...templateOptionsForFieldConfig(config)
|
|
1224
|
+
})
|
|
1143
1225
|
});
|
|
1144
1226
|
return fieldConfig;
|
|
1145
1227
|
}
|
|
@@ -1370,13 +1452,13 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1370
1452
|
this.noItemsAvailable$ = this.filterItemsLoadingState$.pipe(isListLoadingStateEmpty(), distinctUntilChanged());
|
|
1371
1453
|
}
|
|
1372
1454
|
get readonly() {
|
|
1373
|
-
return this.
|
|
1455
|
+
return this.props.readonly;
|
|
1374
1456
|
}
|
|
1375
1457
|
get isReadonlyOrDisabled() {
|
|
1376
1458
|
return this.readonly || this.disabled;
|
|
1377
1459
|
}
|
|
1378
1460
|
get pickableField() {
|
|
1379
|
-
return this.
|
|
1461
|
+
return this.props;
|
|
1380
1462
|
}
|
|
1381
1463
|
get multiSelect() {
|
|
1382
1464
|
return this.pickableField.multiSelect ?? true;
|
|
@@ -1391,10 +1473,10 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
1391
1473
|
return this.field.name ?? camelCase(this.label ?? this.key);
|
|
1392
1474
|
}
|
|
1393
1475
|
get label() {
|
|
1394
|
-
return this.
|
|
1476
|
+
return this.props.label;
|
|
1395
1477
|
}
|
|
1396
1478
|
get autocomplete() {
|
|
1397
|
-
return (this.
|
|
1479
|
+
return (this.props.attributes?.['autocomplete'] ?? this.key);
|
|
1398
1480
|
}
|
|
1399
1481
|
get changeSelectionModeToViewOnDisabled() {
|
|
1400
1482
|
return this.pickableField.changeSelectionModeToViewOnDisabled ?? false;
|
|
@@ -1750,10 +1832,10 @@ function pickableItemChipField(config) {
|
|
|
1750
1832
|
return formlyField({
|
|
1751
1833
|
key,
|
|
1752
1834
|
type: 'pickablechipfield',
|
|
1753
|
-
...
|
|
1835
|
+
...propsForFieldConfig(config, {
|
|
1836
|
+
...config,
|
|
1754
1837
|
autocomplete: false
|
|
1755
|
-
})
|
|
1756
|
-
pickableField: config
|
|
1838
|
+
})
|
|
1757
1839
|
});
|
|
1758
1840
|
}
|
|
1759
1841
|
function pickableItemListField(config) {
|
|
@@ -1761,10 +1843,10 @@ function pickableItemListField(config) {
|
|
|
1761
1843
|
return formlyField({
|
|
1762
1844
|
key,
|
|
1763
1845
|
type: 'pickablelistfield',
|
|
1764
|
-
...
|
|
1846
|
+
...propsForFieldConfig(config, {
|
|
1847
|
+
...config,
|
|
1765
1848
|
autocomplete: false
|
|
1766
|
-
})
|
|
1767
|
-
pickableField: config
|
|
1849
|
+
})
|
|
1768
1850
|
});
|
|
1769
1851
|
}
|
|
1770
1852
|
|
|
@@ -1883,19 +1965,19 @@ class AbstractDbxSearchableValueFieldDirective extends FieldType$1 {
|
|
|
1883
1965
|
return this.field.name ?? camelCase(this.label ?? this.key);
|
|
1884
1966
|
}
|
|
1885
1967
|
get label() {
|
|
1886
|
-
return this.
|
|
1968
|
+
return this.props.label;
|
|
1887
1969
|
}
|
|
1888
1970
|
get readonly() {
|
|
1889
|
-
return this.
|
|
1971
|
+
return this.props.readonly;
|
|
1890
1972
|
}
|
|
1891
1973
|
get searchableField() {
|
|
1892
|
-
return this.
|
|
1974
|
+
return this.props;
|
|
1893
1975
|
}
|
|
1894
1976
|
get searchOnEmptyText() {
|
|
1895
1977
|
return this.searchableField.searchOnEmptyText ?? false;
|
|
1896
1978
|
}
|
|
1897
1979
|
get autocomplete() {
|
|
1898
|
-
return (this.
|
|
1980
|
+
return (this.props.attributes?.['autocomplete'] ?? this.key);
|
|
1899
1981
|
}
|
|
1900
1982
|
get hashForValue() {
|
|
1901
1983
|
return this.searchableField.hashForValue ?? ((x) => x);
|
|
@@ -2183,11 +2265,11 @@ function searchableChipField(config) {
|
|
|
2183
2265
|
return formlyField({
|
|
2184
2266
|
key,
|
|
2185
2267
|
type: 'searchablechipfield',
|
|
2186
|
-
...
|
|
2268
|
+
...propsForFieldConfig(config, {
|
|
2269
|
+
...config,
|
|
2187
2270
|
placeholder: placeholder ?? 'Add...',
|
|
2188
2271
|
autocomplete: false
|
|
2189
|
-
})
|
|
2190
|
-
searchableField: config
|
|
2272
|
+
})
|
|
2191
2273
|
});
|
|
2192
2274
|
}
|
|
2193
2275
|
function searchableTextField(config) {
|
|
@@ -2195,10 +2277,10 @@ function searchableTextField(config) {
|
|
|
2195
2277
|
return formlyField({
|
|
2196
2278
|
key,
|
|
2197
2279
|
type: 'searchabletextfield',
|
|
2198
|
-
...
|
|
2280
|
+
...propsForFieldConfig(config, {
|
|
2281
|
+
...config,
|
|
2199
2282
|
autocomplete: false
|
|
2200
|
-
})
|
|
2201
|
-
searchableField: config
|
|
2283
|
+
})
|
|
2202
2284
|
});
|
|
2203
2285
|
}
|
|
2204
2286
|
|
|
@@ -2215,7 +2297,7 @@ class DbxSearchableTextFieldComponent extends AbstractDbxSearchableValueFieldDir
|
|
|
2215
2297
|
this._clearInputSub = new SubscriptionObject();
|
|
2216
2298
|
}
|
|
2217
2299
|
get searchableField() {
|
|
2218
|
-
return this.
|
|
2300
|
+
return this.props;
|
|
2219
2301
|
}
|
|
2220
2302
|
get showSelectedValue() {
|
|
2221
2303
|
return this.searchableField.showSelectedValue ?? !this.allowStringValues; // Show the selected value only if string values are allowed.
|
|
@@ -2320,11 +2402,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2320
2402
|
|
|
2321
2403
|
function chipTextField(config) {
|
|
2322
2404
|
const convertStringValue = config.caseSensitive ? (x) => x : (x) => x?.toLowerCase();
|
|
2323
|
-
return
|
|
2324
|
-
|
|
2405
|
+
return searchableChipField({
|
|
2406
|
+
search: () => of([]),
|
|
2407
|
+
...config,
|
|
2325
2408
|
allowStringValues: true,
|
|
2326
2409
|
convertStringValue,
|
|
2327
|
-
...config,
|
|
2328
2410
|
displayForValue: (values) => {
|
|
2329
2411
|
return of(values.map((x) => ({ ...x, label: x.value })));
|
|
2330
2412
|
}
|
|
@@ -2364,10 +2446,10 @@ class DbxTextEditorFieldComponent extends FieldType$1 {
|
|
|
2364
2446
|
return this._editor;
|
|
2365
2447
|
}
|
|
2366
2448
|
get label() {
|
|
2367
|
-
return this.field.
|
|
2449
|
+
return this.field.props?.label;
|
|
2368
2450
|
}
|
|
2369
2451
|
get description() {
|
|
2370
|
-
return this.
|
|
2452
|
+
return this.props.description;
|
|
2371
2453
|
}
|
|
2372
2454
|
ngOnInit() {
|
|
2373
2455
|
this._editor = new Editor({});
|
|
@@ -2478,7 +2560,7 @@ function textEditorField(config) {
|
|
|
2478
2560
|
// Set to trigger value update on blurs with the form. However, the value is set internally too.
|
|
2479
2561
|
updateOn: 'blur'
|
|
2480
2562
|
},
|
|
2481
|
-
...
|
|
2563
|
+
...propsForFieldConfig(config, {
|
|
2482
2564
|
minLength,
|
|
2483
2565
|
maxLength
|
|
2484
2566
|
})
|
|
@@ -2491,7 +2573,7 @@ class DbxFormRepeatArrayTypeComponent extends FieldArrayType {
|
|
|
2491
2573
|
return this.field.repeatArrayField;
|
|
2492
2574
|
}
|
|
2493
2575
|
get label() {
|
|
2494
|
-
return this.field.
|
|
2576
|
+
return this.field.props.label ?? this.field.key;
|
|
2495
2577
|
}
|
|
2496
2578
|
get addText() {
|
|
2497
2579
|
return this.repeatArrayField.addText ?? 'Add';
|
|
@@ -2500,7 +2582,7 @@ class DbxFormRepeatArrayTypeComponent extends FieldArrayType {
|
|
|
2500
2582
|
return this.repeatArrayField.removeText ?? 'Remove';
|
|
2501
2583
|
}
|
|
2502
2584
|
get max() {
|
|
2503
|
-
return this.field.
|
|
2585
|
+
return this.field.props?.maxLength;
|
|
2504
2586
|
}
|
|
2505
2587
|
get count() {
|
|
2506
2588
|
return this.field.fieldGroup?.length ?? 0;
|
|
@@ -2666,7 +2748,7 @@ function repeatArrayField(config) {
|
|
|
2666
2748
|
addText,
|
|
2667
2749
|
removeText
|
|
2668
2750
|
},
|
|
2669
|
-
...
|
|
2751
|
+
...propsForFieldConfig(config, {
|
|
2670
2752
|
maxLength
|
|
2671
2753
|
}),
|
|
2672
2754
|
fieldArray: {
|
|
@@ -2696,7 +2778,7 @@ function toggleField(config) {
|
|
|
2696
2778
|
type: 'toggle',
|
|
2697
2779
|
wrappers: ['autotouch', 'form-field'],
|
|
2698
2780
|
defaultValue: defaultValue ?? false,
|
|
2699
|
-
...
|
|
2781
|
+
...propsForFieldConfig(config)
|
|
2700
2782
|
});
|
|
2701
2783
|
}
|
|
2702
2784
|
function checkboxField(config) {
|
|
@@ -2705,7 +2787,7 @@ function checkboxField(config) {
|
|
|
2705
2787
|
key,
|
|
2706
2788
|
type: 'checkbox',
|
|
2707
2789
|
defaultValue: defaultValue ?? false,
|
|
2708
|
-
...
|
|
2790
|
+
...propsForFieldConfig(config)
|
|
2709
2791
|
});
|
|
2710
2792
|
}
|
|
2711
2793
|
/*
|
|
@@ -2714,7 +2796,7 @@ export function acceptTermsField({ key = 'accept', label = 'Accept Terms', descr
|
|
|
2714
2796
|
return {
|
|
2715
2797
|
key,
|
|
2716
2798
|
type: 'checkbox',
|
|
2717
|
-
|
|
2799
|
+
props: {
|
|
2718
2800
|
label,
|
|
2719
2801
|
description,
|
|
2720
2802
|
pattern: 'true',
|
|
@@ -2822,7 +2904,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
2822
2904
|
return this.timeMode === DbxDateTimeFieldTimeMode.NONE;
|
|
2823
2905
|
}
|
|
2824
2906
|
get dateTimeField() {
|
|
2825
|
-
return this.field.
|
|
2907
|
+
return this.field.props;
|
|
2826
2908
|
}
|
|
2827
2909
|
get timeOnly() {
|
|
2828
2910
|
return this.dateTimeField.timeOnly;
|
|
@@ -2834,7 +2916,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
2834
2916
|
return this.timeOnly ? DbxDateTimeFieldTimeMode.REQUIRED : this.dateTimeField.timeMode ?? DbxDateTimeFieldTimeMode.REQUIRED;
|
|
2835
2917
|
}
|
|
2836
2918
|
get description() {
|
|
2837
|
-
return this.field.
|
|
2919
|
+
return this.field.props.description;
|
|
2838
2920
|
}
|
|
2839
2921
|
ngOnInit() {
|
|
2840
2922
|
this._formControlObs.next(this.formControl);
|
|
@@ -3048,13 +3130,12 @@ function dateTimeField(config = {}) {
|
|
|
3048
3130
|
const fieldConfig = formlyField({
|
|
3049
3131
|
key,
|
|
3050
3132
|
type: 'datetime',
|
|
3051
|
-
|
|
3133
|
+
...propsForFieldConfig(config, {
|
|
3052
3134
|
timeMode: timeOnly ? DbxDateTimeFieldTimeMode.REQUIRED : timeMode,
|
|
3053
3135
|
fullDayFieldName,
|
|
3054
3136
|
getConfigObs,
|
|
3055
3137
|
timeOnly
|
|
3056
|
-
},
|
|
3057
|
-
...templateOptionsForFieldConfig(config),
|
|
3138
|
+
}),
|
|
3058
3139
|
styleWrapper: {
|
|
3059
3140
|
style: 'dbx-datetime-parent-form-field'
|
|
3060
3141
|
}
|
|
@@ -3066,7 +3147,7 @@ function staticEnumField({ key, label = '', placeholder = '', description, multi
|
|
|
3066
3147
|
const fieldConfig = formlyField({
|
|
3067
3148
|
key,
|
|
3068
3149
|
type: 'select',
|
|
3069
|
-
|
|
3150
|
+
props: {
|
|
3070
3151
|
label,
|
|
3071
3152
|
description,
|
|
3072
3153
|
placeholder,
|
|
@@ -3097,14 +3178,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3097
3178
|
|
|
3098
3179
|
const DEFAULT_PREFERRED_COUNTRIES = ['us'];
|
|
3099
3180
|
class DbxPhoneFieldComponent extends FieldType$1 {
|
|
3100
|
-
get phoneField() {
|
|
3101
|
-
return this.field.phoneField;
|
|
3102
|
-
}
|
|
3103
3181
|
get preferredCountries() {
|
|
3104
|
-
return this.
|
|
3182
|
+
return this.props.preferredCountries ?? DEFAULT_PREFERRED_COUNTRIES;
|
|
3105
3183
|
}
|
|
3106
3184
|
get onlyCountries() {
|
|
3107
|
-
return this.
|
|
3185
|
+
return this.props.onlyCountries ?? [];
|
|
3108
3186
|
}
|
|
3109
3187
|
}
|
|
3110
3188
|
DbxPhoneFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPhoneFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3168,101 +3246,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3168
3246
|
}]
|
|
3169
3247
|
}] });
|
|
3170
3248
|
|
|
3171
|
-
const EXPANDABLE_WRAPPER_KEY = 'expandable';
|
|
3172
|
-
const TOGGLE_WRAPPER_KEY = 'toggle';
|
|
3173
|
-
const SECTION_WRAPPER_KEY = 'section';
|
|
3174
|
-
const SUBSECTION_WRAPPER_KEY = 'subsection';
|
|
3175
|
-
const INFO_WRAPPER_KEY = 'info';
|
|
3176
|
-
const FLEX_WRAPPER_KEY = 'flex';
|
|
3177
|
-
const STYLE_WRAPPER_KEY = 'style';
|
|
3178
|
-
const WORKING_WRAPPER_KEY = 'working';
|
|
3179
|
-
function addWrapperToFormlyFieldConfig(fieldConfig, wrapperKey, wrapperTemplateOptionsConfig) {
|
|
3180
|
-
fieldConfig.templateOptions = {
|
|
3181
|
-
...fieldConfig.templateOptions,
|
|
3182
|
-
...wrapperTemplateOptionsConfig
|
|
3183
|
-
};
|
|
3184
|
-
return {
|
|
3185
|
-
wrappers: [wrapperKey],
|
|
3186
|
-
templateOptions: wrapperTemplateOptionsConfig,
|
|
3187
|
-
fieldGroup: [fieldConfig]
|
|
3188
|
-
};
|
|
3189
|
-
}
|
|
3190
|
-
function expandWrapper(fieldConfig, expandWrapper) {
|
|
3191
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, EXPANDABLE_WRAPPER_KEY, {
|
|
3192
|
-
expandWrapper
|
|
3193
|
-
});
|
|
3194
|
-
}
|
|
3195
|
-
function toggleWrapper(fieldConfig, expandWrapper) {
|
|
3196
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, TOGGLE_WRAPPER_KEY, {
|
|
3197
|
-
expandWrapper
|
|
3198
|
-
});
|
|
3199
|
-
}
|
|
3200
|
-
function sectionWrapper(fieldConfig, sectionWrapper) {
|
|
3201
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, SECTION_WRAPPER_KEY, {
|
|
3202
|
-
sectionWrapper
|
|
3203
|
-
});
|
|
3204
|
-
}
|
|
3205
|
-
function subsectionWrapper(fieldConfig, subsectionWrapper) {
|
|
3206
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, SUBSECTION_WRAPPER_KEY, {
|
|
3207
|
-
subsectionWrapper
|
|
3208
|
-
});
|
|
3209
|
-
}
|
|
3210
|
-
function infoWrapper(fieldConfig, infoWrapper) {
|
|
3211
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, INFO_WRAPPER_KEY, {
|
|
3212
|
-
infoWrapper
|
|
3213
|
-
});
|
|
3214
|
-
}
|
|
3215
|
-
function styleWrapper(fieldConfig, styleWrapper) {
|
|
3216
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, STYLE_WRAPPER_KEY, {
|
|
3217
|
-
styleWrapper
|
|
3218
|
-
});
|
|
3219
|
-
}
|
|
3220
|
-
function workingWrapper(fieldConfig, workingWrapper) {
|
|
3221
|
-
return addWrapperToFormlyFieldConfig(fieldConfig, WORKING_WRAPPER_KEY, {
|
|
3222
|
-
workingWrapper
|
|
3223
|
-
});
|
|
3224
|
-
}
|
|
3225
|
-
function checkIsFieldFlexLayoutGroupFieldConfig(input) {
|
|
3226
|
-
if (input.field != null) {
|
|
3227
|
-
return true;
|
|
3228
|
-
}
|
|
3229
|
-
else {
|
|
3230
|
-
return false;
|
|
3231
|
-
}
|
|
3232
|
-
}
|
|
3233
|
-
function flexLayoutWrapper(fieldConfigs, { relative, breakpoint, size: defaultSize = 2 } = {}) {
|
|
3234
|
-
return {
|
|
3235
|
-
wrappers: ['flex'],
|
|
3236
|
-
fieldGroupClassName: 'dbx-flex-group',
|
|
3237
|
-
// fieldGroupClassName: 'field-layout-group',
|
|
3238
|
-
templateOptions: {
|
|
3239
|
-
flexWrapper: {
|
|
3240
|
-
breakpoint,
|
|
3241
|
-
relative
|
|
3242
|
-
}
|
|
3243
|
-
},
|
|
3244
|
-
fieldGroup: fieldConfigs.map((inputConfig) => {
|
|
3245
|
-
const fieldConfig = checkIsFieldFlexLayoutGroupFieldConfig(inputConfig)
|
|
3246
|
-
? inputConfig
|
|
3247
|
-
: {
|
|
3248
|
-
field: inputConfig
|
|
3249
|
-
};
|
|
3250
|
-
const { field, size = defaultSize } = fieldConfig;
|
|
3251
|
-
const className = `dbx-flex-${size}`;
|
|
3252
|
-
return {
|
|
3253
|
-
...field,
|
|
3254
|
-
className
|
|
3255
|
-
};
|
|
3256
|
-
})
|
|
3257
|
-
};
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
3249
|
function textField(config) {
|
|
3261
3250
|
const { key, pattern, minLength, maxLength = 1000, inputType: type = 'text' } = config;
|
|
3262
3251
|
return formlyField({
|
|
3263
3252
|
key,
|
|
3264
3253
|
type: 'input',
|
|
3265
|
-
...
|
|
3254
|
+
...propsForFieldConfig(config, {
|
|
3266
3255
|
type,
|
|
3267
3256
|
minLength,
|
|
3268
3257
|
maxLength,
|
|
@@ -3275,7 +3264,7 @@ function textAreaField(config) {
|
|
|
3275
3264
|
return formlyField({
|
|
3276
3265
|
key,
|
|
3277
3266
|
type: 'textarea',
|
|
3278
|
-
...
|
|
3267
|
+
...propsForFieldConfig(config, {
|
|
3279
3268
|
rows,
|
|
3280
3269
|
minLength,
|
|
3281
3270
|
maxLength
|
|
@@ -3288,11 +3277,10 @@ function phoneField(config = {}) {
|
|
|
3288
3277
|
const fieldConfig = formlyField({
|
|
3289
3278
|
key,
|
|
3290
3279
|
type: 'intphone',
|
|
3291
|
-
|
|
3280
|
+
...propsForFieldConfig(config, {
|
|
3292
3281
|
preferredCountries,
|
|
3293
3282
|
onlyCountries
|
|
3294
|
-
}
|
|
3295
|
-
...templateOptionsForFieldConfig(config)
|
|
3283
|
+
})
|
|
3296
3284
|
});
|
|
3297
3285
|
return fieldConfig;
|
|
3298
3286
|
}
|
|
@@ -3454,7 +3442,7 @@ function addressField({ key = 'address', required = false } = {}) {
|
|
|
3454
3442
|
return {
|
|
3455
3443
|
key,
|
|
3456
3444
|
wrappers: ['section'],
|
|
3457
|
-
|
|
3445
|
+
props: {
|
|
3458
3446
|
label: 'Address',
|
|
3459
3447
|
placeholder: '',
|
|
3460
3448
|
required
|
|
@@ -3492,7 +3480,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3492
3480
|
function hiddenField({ key, required = false }) {
|
|
3493
3481
|
return formlyField({
|
|
3494
3482
|
key,
|
|
3495
|
-
|
|
3483
|
+
props: { required }
|
|
3496
3484
|
});
|
|
3497
3485
|
}
|
|
3498
3486
|
|
|
@@ -3588,7 +3576,7 @@ function textPasswordWithVerifyFieldGroup(config) {
|
|
|
3588
3576
|
const verifyPasswordField = textVerifyPasswordField({
|
|
3589
3577
|
...config.password,
|
|
3590
3578
|
...config.verifyPassword,
|
|
3591
|
-
label: config.verifyPassword?.label ?? `Verify ${passwordFieldConfig.
|
|
3579
|
+
label: config.verifyPassword?.label ?? `Verify ${passwordFieldConfig.props?.label}`,
|
|
3592
3580
|
key: verifyPasswordFieldKey
|
|
3593
3581
|
});
|
|
3594
3582
|
const validators = {
|
|
@@ -4187,5 +4175,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4187
4175
|
* Generated bundle index. Do not edit.
|
|
4188
4176
|
*/
|
|
4189
4177
|
|
|
4190
|
-
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,
|
|
4178
|
+
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, AUTO_TOUCH_WRAPPER_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, autoTouchWrapper, checkIsFieldFlexLayoutGroupFieldConfig, checkboxField, checklistItemField, chipTextField, cityField, componentField, countryField, dateTimeField, dbxFormSourceObservable, defaultValidationMessages, disableFormlyFieldAutofillAttributes, emailField, expandWrapper, fieldValueIsAvailableValidator, fieldValuesAreEqualValidator, filterPartialPotentialFieldConfigValuesFromObject, filterPickableItemFieldValuesByLabel, flexLayoutWrapper, formlyField, hiddenField, infoWrapper, isDomain, isInRange, isTruthy, makeMetaFilterSearchableFieldValueDisplayFn, maxLengthValidationMessage, maxValidationMessage, mergePropsValueObjects, minLengthValidationMessage, minValidationMessage, nameField, partialPotentialFieldConfigKeys, partialPotentialFieldConfigKeysFilter, phoneAndLabelSectionField, phoneField, phoneListField, pickableItemChipField, pickableItemListField, propsForFieldConfig, propsValueForFieldConfig, provideDbxForm, provideDbxMutableForm, provideFormlyContext, repeatArrayField, searchableChipField, searchableStringChipField, searchableTextField, sectionWrapper, sortPickableItemsByLabel, stateField, staticEnumField, styleWrapper, subsectionWrapper, textAreaField, textEditorField, textField, textIsAvailableField, textPasswordField, textPasswordWithVerifyFieldGroup, textVerifyPasswordField, timeOnlyField, toggleField, toggleWrapper, usernamePasswordLoginFields, workingWrapper, wrappedPhoneAndLabelField, zipCodeField };
|
|
4191
4179
|
//# sourceMappingURL=dereekb-dbx-form.mjs.map
|