@kuzntsv/uikit 0.21.25 → 0.21.26

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuzntsv/uikit",
3
- "version": "0.21.25",
3
+ "version": "0.21.26",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.0",
6
6
  "@angular/core": "^21.1.0"
@@ -174,6 +174,9 @@ type ObjectKeys<T extends string | number | symbol = string, K = any> = {
174
174
  type fnType<T> = ((data: T, extraData?: any) => void) | undefined;
175
175
  type fnCbType<T> = ((callback: () => void, data: T, extraData?: any) => void) | undefined;
176
176
  type SortDirection = 'asc' | 'desc' | '';
177
+ type fnGetDataType<T> = (...args: any[]) => Observable<T[]>;
178
+ type fnGetCountType<T> = (...args: any[]) => Observable<number>;
179
+ type fnMapEntityType<T> = () => ((item: T) => T);
177
180
 
178
181
  interface ISortState {
179
182
  sortActive: string;
@@ -701,6 +704,7 @@ declare class BasePageClass<T> implements OnDestroy {
701
704
  subscription: Subscription;
702
705
  constructor();
703
706
  ngOnDestroy(): void;
707
+ subscribeToLoadData(fnGetData: fnGetDataType<T>, fnGetCount: fnGetCountType<T>, fnMapEntity?: fnMapEntityType<T>): void;
704
708
  onPageChange(pageState: IPageState): void;
705
709
  onSortChange(sortState: ISortState): void;
706
710
  entityFactory(type: new () => T): T;
@@ -756,6 +760,13 @@ declare abstract class BaseServiceClass<T extends BaseClass> {
756
760
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<BaseServiceClass<any>>;
757
761
  }
758
762
 
763
+ declare class SetValueDirective {
764
+ private ngControl;
765
+ set setValue(val: any);
766
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SetValueDirective, never>;
767
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SetValueDirective, "[setValue]", never, { "setValue": { "alias": "setValue"; "required": false; }; }, {}, never, never, true, never>;
768
+ }
769
+
759
770
  declare class RedirectGuard {
760
771
  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
761
772
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<RedirectGuard, never>;
@@ -957,5 +968,5 @@ declare class BaseSelectWithGroupComponent {
957
968
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseSelectWithGroupComponent, "ngx-uik-select-with-group", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "selectedItems": { "alias": "selectedItems"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "selectedItemsChange": "selectedItemsChange"; }, never, never, true, never>;
958
969
  }
959
970
 
960
- export { Action, AlertService, AuthService, AvatarService, BaseEditClass, BaseFilterClass, BaseMatChipComponent, BaseNavBarMenuClass, BasePageClass, BaseSelectAutocompleteWithVsComponent, BaseSelectWithGroupComponent, BaseServiceClass, BaseToolbarComponent, DateRangeInputComponent, DialogAction, DialogComponent, DisableIfRoleDirective, DisableIfUnauthorizedDirective, EntityAction, Environment, ExportService, HideIfRoleNotDirective, HideIfUnauthorizedDirective, LoaderService, LocalStorageService, LoginPageComponent, MY_FORMATS, NavBarComponent, NotFoundComponent, ProgressSpinnerComponent, RedirectGuard, RoleService, SafePipe, SecUser, SseService, TableComponent, TimePipe, TruncatePipe, User, UserService, authGuard, dateFormat, roleGuard };
961
- export type { AuthPermission, BaseClass, ChipItem, DateRange, Deserializable, DialogData, IColumnOptions, IContextMenuOptions, IEditDialogData, IEntityAction, IPageState, ISortState, ITableState, ObjectKeys, SelectGroup, SelectItem, SortDirection, SseUser, Topic, fnCbType, fnType };
971
+ export { Action, AlertService, AuthService, AvatarService, BaseEditClass, BaseFilterClass, BaseMatChipComponent, BaseNavBarMenuClass, BasePageClass, BaseSelectAutocompleteWithVsComponent, BaseSelectWithGroupComponent, BaseServiceClass, BaseToolbarComponent, DateRangeInputComponent, DialogAction, DialogComponent, DisableIfRoleDirective, DisableIfUnauthorizedDirective, EntityAction, Environment, ExportService, HideIfRoleNotDirective, HideIfUnauthorizedDirective, LoaderService, LocalStorageService, LoginPageComponent, MY_FORMATS, NavBarComponent, NotFoundComponent, ProgressSpinnerComponent, RedirectGuard, RoleService, SafePipe, SecUser, SetValueDirective, SseService, TableComponent, TimePipe, TruncatePipe, User, UserService, authGuard, dateFormat, roleGuard };
972
+ export type { AuthPermission, BaseClass, ChipItem, DateRange, Deserializable, DialogData, IColumnOptions, IContextMenuOptions, IEditDialogData, IEntityAction, IPageState, ISortState, ITableState, ObjectKeys, SelectGroup, SelectItem, SortDirection, SseUser, Topic, fnCbType, fnGetCountType, fnGetDataType, fnMapEntityType, fnType };