@decaf-ts/for-angular 0.1.40 → 0.1.42
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.
|
|
@@ -15037,7 +15047,11 @@ let TableComponent = class TableComponent extends ListComponent {
|
|
|
15037
15047
|
const handlerFn = await handler(this, event, uid);
|
|
15038
15048
|
return typeof handlerFn === 'function' ? handlerFn() : handlerFn;
|
|
15039
15049
|
}
|
|
15040
|
-
|
|
15050
|
+
const win = getWindow();
|
|
15051
|
+
const selection = win.getSelection();
|
|
15052
|
+
if (!selection || selection.toString().length === 0) {
|
|
15053
|
+
return await this.handleRedirect(event, uid, action);
|
|
15054
|
+
}
|
|
15041
15055
|
}
|
|
15042
15056
|
/**
|
|
15043
15057
|
* @description Navigates to the CRUD action route for the specified row.
|