@kuzntsv/uikit 1.0.65 → 1.0.67

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.
@@ -2767,17 +2767,19 @@ var BaseSignalPageClass = class BaseSignalPageClass {
2767
2767
  countResource;
2768
2768
  data = computed(() => {
2769
2769
  if (!this.dataResource) return [];
2770
+ if (this.dataResource.error()) return [];
2770
2771
  const rawData = this.dataResource?.value() || [];
2771
2772
  return this.fnMapEntity && Array.isArray(rawData) ? rawData.map(this.fnMapEntity()) : rawData;
2772
2773
  }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
2773
2774
  length = computed(() => {
2774
2775
  if (!this.countResource) return 0;
2776
+ if (this.countResource.error()) return 0;
2775
2777
  return this.countResource?.value() || 0;
2776
2778
  }, ...ngDevMode ? [{ debugName: "length" }] : /* istanbul ignore next */ []);
2777
2779
  isLoading = computed(() => {
2778
- const dataLoading = this.dataResource?.isLoading() ?? false;
2779
- const countLoading = this.countResource?.isLoading() ?? false;
2780
- return dataLoading || countLoading;
2780
+ if (!this.dataResource || !this.countResource) return false;
2781
+ if (this.dataResource.error() || this.countResource.error()) return false;
2782
+ return this.dataResource.isLoading() || this.countResource.isLoading();
2781
2783
  }, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
2782
2784
  editBtnDisabled = true;
2783
2785
  removeBtnDisabled = true;
@@ -5623,14 +5625,14 @@ function provideLogger(config) {
5623
5625
  const secUserViewSchema = z.object({
5624
5626
  id: z.number().default(0),
5625
5627
  idHuman: z.number().default(0),
5626
- loginAD: z.string().default(""),
5628
+ loginAD: z.string().default("").nullable(),
5627
5629
  dept: z.number().default(0),
5628
5630
  tabnum: z.number().default(0),
5629
5631
  lastname: z.string().default(""),
5630
5632
  firstname: z.string().default(""),
5631
5633
  middlename: z.string().default(""),
5632
5634
  fio: z.string().default(""),
5633
- dateHuman: z.date().optional(),
5635
+ dateHuman: z.coerce.date().optional(),
5634
5636
  profession: z.string().default("")
5635
5637
  });
5636
5638
  const secUserSchema = z.object({
@@ -5639,7 +5641,7 @@ const secUserSchema = z.object({
5639
5641
  fio: z.string().default(""),
5640
5642
  dept: z.number().default(0),
5641
5643
  tabnum: z.number().default(0),
5642
- userView: secUserViewSchema.optional()
5644
+ userView: secUserViewSchema.optional().nullable()
5643
5645
  });
5644
5646
  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 };
5645
5647