@kuzntsv/uikit 1.0.44 → 1.0.46

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.
@@ -2709,7 +2709,6 @@ i0.ɵɵngDeclareClassMetadata({
2709
2709
  var BaseSignalPageClass = class BaseSignalPageClass {
2710
2710
  dialog = inject(MatDialog);
2711
2711
  entityService;
2712
- entityType;
2713
2712
  entityEditComponent;
2714
2713
  extraData;
2715
2714
  defaultPageIndex = 0;
@@ -2869,9 +2868,10 @@ var BaseSignalPageClass = class BaseSignalPageClass {
2869
2868
  }
2870
2869
  newEvent() {
2871
2870
  if (this.entityEditComponent) {
2871
+ const defaultEntity = this.schema.parse({});
2872
2872
  const data = {
2873
2873
  action: Action.Add,
2874
- entity: new this.entityType(null)
2874
+ entity: defaultEntity
2875
2875
  };
2876
2876
  if (this.beforeOpenDialogOnNewEvent) this.beforeOpenDialogOnNewEvent(data.entity, data.extraData);
2877
2877
  const dialogRef = this.openDialog(this.entityEditComponent, data, this.dialog);
@@ -3007,7 +3007,7 @@ var BaseSignalPageClass = class BaseSignalPageClass {
3007
3007
  dialogConfig.autoFocus = true;
3008
3008
  dialogConfig.width = this.dialogEditWidth;
3009
3009
  dialogConfig.data = data;
3010
- dialogConfig.panelClass = this.entityType.name + "-edit-dialog";
3010
+ dialogConfig.panelClass = this.constructor.name + "-edit-dialog";
3011
3011
  return dialog.open(entityComponent, dialogConfig);
3012
3012
  }
3013
3013
  openDialogRemoveConfirm(removalMessage) {
@@ -5507,28 +5507,27 @@ function provideLogger(config) {
5507
5507
  useValue: config
5508
5508
  }, LoggerService]);
5509
5509
  }
5510
- var SecUser = class {
5511
- id = 0;
5512
- login = "";
5513
- fio = "";
5514
- dept = 0;
5515
- tabnum = 0;
5516
- userView;
5517
- constructor(init) {
5518
- if (init) Object.assign(this, init);
5519
- else {
5520
- this.id = 0;
5521
- this.login = "";
5522
- this.dept = 0;
5523
- this.tabnum = 0;
5524
- this.fio = "";
5525
- }
5526
- }
5527
- deserialize(input) {
5528
- Object.assign(this, input);
5529
- return this;
5530
- }
5531
- };
5532
- 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, ProgressSpinnerComponent, SafePipe, SecUser, SecureImageService, SetValueDirective, SseService, TableComponent, TimePipe, TruncatePipe, authGuard, dateFormat, provideLogger, redirectGuard, roleGuard };
5510
+ const secUserViewSchema = z.object({
5511
+ id: z.number().default(0),
5512
+ idHuman: z.number().default(0),
5513
+ loginAD: z.string().default(""),
5514
+ dept: z.number().default(0),
5515
+ tabnum: z.number().default(0),
5516
+ lastname: z.string().default(""),
5517
+ firstname: z.string().default(""),
5518
+ middlename: z.string().default(""),
5519
+ fio: z.string().default(""),
5520
+ dateHuman: z.date().optional(),
5521
+ profession: z.string().default("")
5522
+ });
5523
+ const secUserSchema = z.object({
5524
+ id: z.number().default(0),
5525
+ login: z.string().default(""),
5526
+ fio: z.string().default(""),
5527
+ dept: z.number().default(0),
5528
+ tabnum: z.number().default(0),
5529
+ userView: secUserViewSchema.optional()
5530
+ });
5531
+ 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, ProgressSpinnerComponent, SafePipe, SecureImageService, SetValueDirective, SseService, TableComponent, TimePipe, TruncatePipe, authGuard, dateFormat, provideLogger, redirectGuard, roleGuard, secUserSchema };
5533
5532
 
5534
5533
  //# sourceMappingURL=kuzntsv-uikit-ui.mjs.map