@kuzntsv/uikit 1.0.67 → 1.0.69
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.
|
@@ -2472,9 +2472,6 @@ var BasePageClass = class BasePageClass {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
|
-
dateToString(date) {
|
|
2476
|
-
return date ? new Date(date).toLocaleString("ru-RU", { timeZone: "Europe/Samara" }) : null;
|
|
2477
|
-
}
|
|
2478
2475
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2479
2476
|
minVersion: "12.0.0",
|
|
2480
2477
|
version: "22.2.2",
|
|
@@ -3091,9 +3088,6 @@ var BaseSignalPageClass = class BaseSignalPageClass {
|
|
|
3091
3088
|
}
|
|
3092
3089
|
};
|
|
3093
3090
|
}
|
|
3094
|
-
dateToString(date) {
|
|
3095
|
-
return date ? new Date(date).toLocaleString("ru-RU", { timeZone: "Europe/Samara" }) : null;
|
|
3096
|
-
}
|
|
3097
3091
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3098
3092
|
minVersion: "12.0.0",
|
|
3099
3093
|
version: "22.2.2",
|
|
@@ -3129,6 +3123,7 @@ function cleanFilterParams(filters) {
|
|
|
3129
3123
|
return cleanParams;
|
|
3130
3124
|
}
|
|
3131
3125
|
var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
3126
|
+
schemaDTO;
|
|
3132
3127
|
countRoute = "count";
|
|
3133
3128
|
pageIndexParam = "page";
|
|
3134
3129
|
pageSizeParam = "limit";
|
|
@@ -3242,10 +3237,12 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3242
3237
|
return queryParams;
|
|
3243
3238
|
}
|
|
3244
3239
|
newObject(entity) {
|
|
3245
|
-
|
|
3240
|
+
const payload = this.schemaDTO ? this.schemaDTO.parse(entity) : entity;
|
|
3241
|
+
return this.http.post(this.baseRoute, payload, this.getHttpContext());
|
|
3246
3242
|
}
|
|
3247
3243
|
editObject(entity) {
|
|
3248
|
-
|
|
3244
|
+
const payload = this.schemaDTO ? this.schemaDTO.parse(entity) : entity;
|
|
3245
|
+
return this.http.put(this.baseRoute + entity.id, payload, this.getHttpContext());
|
|
3249
3246
|
}
|
|
3250
3247
|
deleteObject(entity) {
|
|
3251
3248
|
return this.http.delete(this.baseRoute + entity.id, this.getHttpContext()).pipe(tap(() => this.refresh()));
|