@decaf-ts/for-angular 0.1.40 → 0.1.41
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.
|
@@ -1067,7 +1067,8 @@ class ValidatorFactory {
|
|
|
1067
1067
|
*/
|
|
1068
1068
|
static getFieldType(type, customTypes, options, subType) {
|
|
1069
1069
|
const fieldType = (customTypes || subType || type);
|
|
1070
|
-
if ((fieldType === HTML5InputTypes.CHECKBOX || fieldType === Array.name) && Array.isArray(options))
|
|
1070
|
+
if (((fieldType === HTML5InputTypes.CHECKBOX || fieldType === Array.name) && Array.isArray(options)) ||
|
|
1071
|
+
typeof options === 'function') {
|
|
1071
1072
|
return Primitives.STRING;
|
|
1072
1073
|
}
|
|
1073
1074
|
return fieldType;
|
|
@@ -7139,7 +7140,16 @@ let ModalComponent = class ModalComponent extends NgxParentComponentDirective {
|
|
|
7139
7140
|
async create(props = {}) {
|
|
7140
7141
|
await this.prepare(props);
|
|
7141
7142
|
await this.present();
|
|
7142
|
-
|
|
7143
|
+
const modal = this;
|
|
7144
|
+
runInInjectionContext(this.injector, () => {
|
|
7145
|
+
effect(async () => {
|
|
7146
|
+
const event = this.popStateSignal();
|
|
7147
|
+
if (event) {
|
|
7148
|
+
await modal.cancel();
|
|
7149
|
+
}
|
|
7150
|
+
});
|
|
7151
|
+
});
|
|
7152
|
+
return modal;
|
|
7143
7153
|
}
|
|
7144
7154
|
/**
|
|
7145
7155
|
* @description Presents the modal.
|