@elite.framework/ng.core 1.0.55 → 1.0.56
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.
|
@@ -6312,14 +6312,6 @@ class BaseCrud {
|
|
|
6312
6312
|
}
|
|
6313
6313
|
this.loadPage(0, 10);
|
|
6314
6314
|
}
|
|
6315
|
-
visibleChange(value) {
|
|
6316
|
-
if (this.mode == 'view') {
|
|
6317
|
-
this.dialogVisible = value;
|
|
6318
|
-
}
|
|
6319
|
-
else {
|
|
6320
|
-
this.drawerVisible = value;
|
|
6321
|
-
}
|
|
6322
|
-
}
|
|
6323
6315
|
onPageChange(event) {
|
|
6324
6316
|
// فك المتغيّرات مع قيمة افتراضية لفلاتر
|
|
6325
6317
|
const { first = this.first, rows = this.rows, sort = this.sort, filters = {} } = event;
|
|
@@ -6350,6 +6342,21 @@ class BaseCrud {
|
|
|
6350
6342
|
this.dialogVisible = true;
|
|
6351
6343
|
}
|
|
6352
6344
|
}
|
|
6345
|
+
visibleChange(value) {
|
|
6346
|
+
// let modeConfig: string; // 'drawer' | 'dialog'
|
|
6347
|
+
// if (typeof this.displayMode === 'string') {
|
|
6348
|
+
// modeConfig = this.displayMode;
|
|
6349
|
+
// } else {
|
|
6350
|
+
// // Per-action override if displayMode is an object
|
|
6351
|
+
// modeConfig = this.displayMode[this.mode as string] ?? 'drawer';
|
|
6352
|
+
// }
|
|
6353
|
+
if (this.displayMode == 'dialog') {
|
|
6354
|
+
this.dialogVisible = value;
|
|
6355
|
+
}
|
|
6356
|
+
else {
|
|
6357
|
+
this.drawerVisible = value;
|
|
6358
|
+
}
|
|
6359
|
+
}
|
|
6353
6360
|
// onTableAction(event: { name: string; row: T | null }): void {
|
|
6354
6361
|
// switch (event.name) {
|
|
6355
6362
|
// case 'add': this.openDrawer(null,event.name); break;
|