@dereekb/dbx-form 8.7.5 → 8.8.1
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/field/value/array/array.field.component.mjs +3 -2
- package/esm2020/lib/formly/field/value/text/text.field.mjs +5 -4
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/formly.form.component.mjs +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +6 -4
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +6 -4
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/field/value/text/text.field.d.ts +5 -3
- package/package.json +3 -3
|
@@ -2663,7 +2663,8 @@ class DbxFormRepeatArrayTypeComponent extends FieldArrayType {
|
|
|
2663
2663
|
return;
|
|
2664
2664
|
}
|
|
2665
2665
|
this.remove(currentIndex);
|
|
2666
|
-
this.add(targetIndex, targetValue);
|
|
2666
|
+
this.add(targetIndex, targetValue, { markAsDirty: true });
|
|
2667
|
+
this.formControl.markAsTouched();
|
|
2667
2668
|
}
|
|
2668
2669
|
drop(event) {
|
|
2669
2670
|
this.swapIndexes(event.previousIndex, event.currentIndex);
|
|
@@ -3450,7 +3451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3450
3451
|
}] });
|
|
3451
3452
|
|
|
3452
3453
|
function textField(config) {
|
|
3453
|
-
const { key, pattern, minLength, maxLength
|
|
3454
|
+
const { key, pattern, minLength, maxLength, inputType: type = 'text' } = config;
|
|
3454
3455
|
return formlyField({
|
|
3455
3456
|
key,
|
|
3456
3457
|
type: 'input',
|
|
@@ -3463,14 +3464,15 @@ function textField(config) {
|
|
|
3463
3464
|
});
|
|
3464
3465
|
}
|
|
3465
3466
|
function textAreaField(config) {
|
|
3466
|
-
const { key, rows = 3, minLength, maxLength
|
|
3467
|
+
const { key, rows = 3, pattern, minLength, maxLength } = config;
|
|
3467
3468
|
return formlyField({
|
|
3468
3469
|
key,
|
|
3469
3470
|
type: 'textarea',
|
|
3470
3471
|
...propsForFieldConfig(config, {
|
|
3471
3472
|
rows,
|
|
3472
3473
|
minLength,
|
|
3473
|
-
maxLength
|
|
3474
|
+
maxLength,
|
|
3475
|
+
pattern
|
|
3474
3476
|
})
|
|
3475
3477
|
});
|
|
3476
3478
|
}
|