@kuzntsv/uikit 1.0.47 → 1.0.48
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.
|
@@ -2708,6 +2708,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2708
2708
|
});
|
|
2709
2709
|
var BaseSignalPageClass = class BaseSignalPageClass {
|
|
2710
2710
|
dialog = inject(MatDialog);
|
|
2711
|
+
entityType;
|
|
2711
2712
|
entityService;
|
|
2712
2713
|
entityEditComponent;
|
|
2713
2714
|
extraData;
|
|
@@ -3007,7 +3008,7 @@ var BaseSignalPageClass = class BaseSignalPageClass {
|
|
|
3007
3008
|
dialogConfig.autoFocus = true;
|
|
3008
3009
|
dialogConfig.width = this.dialogEditWidth;
|
|
3009
3010
|
dialogConfig.data = data;
|
|
3010
|
-
dialogConfig.panelClass = this.
|
|
3011
|
+
dialogConfig.panelClass = this.entityType.name + "-edit-dialog";
|
|
3011
3012
|
return dialog.open(entityComponent, dialogConfig);
|
|
3012
3013
|
}
|
|
3013
3014
|
openDialogRemoveConfirm(removalMessage) {
|
|
@@ -3123,10 +3124,10 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3123
3124
|
return httpResource(() => {
|
|
3124
3125
|
this._refreshTrigger();
|
|
3125
3126
|
const queryParams = {};
|
|
3126
|
-
if (pageIndex
|
|
3127
|
-
if (pageSize
|
|
3128
|
-
if (sortColumn
|
|
3129
|
-
if (direction
|
|
3127
|
+
if (pageIndex + 1) queryParams[this.pageIndexParam] = pageIndex + 1;
|
|
3128
|
+
if (pageSize) queryParams[this.pageSizeParam] = pageSize;
|
|
3129
|
+
if (sortColumn) queryParams[this.sortColumnParam] = sortColumn;
|
|
3130
|
+
if (direction) queryParams[this.directionParam] = direction;
|
|
3130
3131
|
return {
|
|
3131
3132
|
url: this.baseRoute,
|
|
3132
3133
|
params: queryParams
|