@kuzntsv/uikit 1.0.66 → 1.0.68
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.
|
@@ -3129,6 +3129,7 @@ function cleanFilterParams(filters) {
|
|
|
3129
3129
|
return cleanParams;
|
|
3130
3130
|
}
|
|
3131
3131
|
var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
3132
|
+
schemaDTO;
|
|
3132
3133
|
countRoute = "count";
|
|
3133
3134
|
pageIndexParam = "page";
|
|
3134
3135
|
pageSizeParam = "limit";
|
|
@@ -3242,10 +3243,12 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3242
3243
|
return queryParams;
|
|
3243
3244
|
}
|
|
3244
3245
|
newObject(entity) {
|
|
3245
|
-
|
|
3246
|
+
const payload = this.schemaDTO ? this.schemaDTO.parse(entity) : entity;
|
|
3247
|
+
return this.http.post(this.baseRoute, payload, this.getHttpContext());
|
|
3246
3248
|
}
|
|
3247
3249
|
editObject(entity) {
|
|
3248
|
-
|
|
3250
|
+
const payload = this.schemaDTO ? this.schemaDTO.parse(entity) : entity;
|
|
3251
|
+
return this.http.put(this.baseRoute + entity.id, payload, this.getHttpContext());
|
|
3249
3252
|
}
|
|
3250
3253
|
deleteObject(entity) {
|
|
3251
3254
|
return this.http.delete(this.baseRoute + entity.id, this.getHttpContext()).pipe(tap(() => this.refresh()));
|
|
@@ -5625,14 +5628,14 @@ function provideLogger(config) {
|
|
|
5625
5628
|
const secUserViewSchema = z.object({
|
|
5626
5629
|
id: z.number().default(0),
|
|
5627
5630
|
idHuman: z.number().default(0),
|
|
5628
|
-
loginAD: z.string().default(""),
|
|
5631
|
+
loginAD: z.string().default("").nullable(),
|
|
5629
5632
|
dept: z.number().default(0),
|
|
5630
5633
|
tabnum: z.number().default(0),
|
|
5631
5634
|
lastname: z.string().default(""),
|
|
5632
5635
|
firstname: z.string().default(""),
|
|
5633
5636
|
middlename: z.string().default(""),
|
|
5634
5637
|
fio: z.string().default(""),
|
|
5635
|
-
dateHuman: z.date().optional(),
|
|
5638
|
+
dateHuman: z.coerce.date().optional(),
|
|
5636
5639
|
profession: z.string().default("")
|
|
5637
5640
|
});
|
|
5638
5641
|
const secUserSchema = z.object({
|
|
@@ -5641,7 +5644,7 @@ const secUserSchema = z.object({
|
|
|
5641
5644
|
fio: z.string().default(""),
|
|
5642
5645
|
dept: z.number().default(0),
|
|
5643
5646
|
tabnum: z.number().default(0),
|
|
5644
|
-
userView: secUserViewSchema.optional()
|
|
5647
|
+
userView: secUserViewSchema.optional().nullable()
|
|
5645
5648
|
});
|
|
5646
5649
|
export { Action, AvatarService, BaseEditClass, BaseFilterClass, BaseMatChipComponent, BaseNavBarMenuClass, BasePageClass, BaseSchema, BaseSelectAutocompleteWithVsComponent, BaseSelectWithGroupComponent, BaseServiceClass, BaseSignalEditClass, BaseSignalFilterClass, BaseSignalPageClass, BaseSignalServiceClass, BaseToolbarComponent, CustomDateAdapter, DateRangeInputComponent, DialogAction, DialogComponent, DisableIfRoleDirective, EmptyComponent, EntityAction, ExportService, HideIfForbiddenRoleDirective, LOGGER_CONFIG, LoaderService, LocalStorageService, LoggerService, LoginPageComponent, MY_NATIVE_FORMATS, NavBarComponent, NotFoundComponent, PageStateSchema, ProgressSpinnerComponent, SafePipe, SecureImageService, SetValueDirective, SortDirectionSchema, SortStateSchema, SseService, TableComponent, TableStateSchema, TimePipe, TruncatePipe, authGuard, dateFormat, provideLogger, redirectGuard, roleGuard, secUserSchema };
|
|
5647
5650
|
|