@resolveio/client-lib-core 21.1.1 → 21.2.1

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": "@resolveio/client-lib-core",
3
- "version": "21.1.1",
3
+ "version": "21.2.1",
4
4
  "module": "fesm2022/resolveio-client-lib-core.min.mjs",
5
5
  "typings": "types/resolveio-client-lib-core.d.ts",
6
6
  "exports": {
@@ -58,7 +58,7 @@ declare class CoreService {
58
58
  isInvalidSW: BehaviorSubject<boolean>;
59
59
  environment: BehaviorSubject<any>;
60
60
  client: BehaviorSubject<string>;
61
- standardProgram: BehaviorSubject<boolean>;
61
+ publicProgram: BehaviorSubject<boolean>;
62
62
  navTabs: BehaviorSubject<any[]>;
63
63
  tourStops: BehaviorSubject<any[]>;
64
64
  tourStarted: BehaviorSubject<boolean>;
@@ -74,7 +74,7 @@ declare class CoreService {
74
74
  setIsInvalidSW(data: boolean): void;
75
75
  setEnvironment(env: any): void;
76
76
  setClient(client: any): void;
77
- setStandardProgram(standardProgram: any): void;
77
+ setPublicProgram(publicProgram: any): void;
78
78
  setNavTabs(navTabs: any): void;
79
79
  setTourStops(tourStops: any): void;
80
80
  setTourStarted(tourStarted: any): void;
@@ -637,6 +637,7 @@ declare class AuthService {
637
637
 
638
638
  interface ModulePermissionModel {
639
639
  name: string;
640
+ gate?: string;
640
641
  views: ModulePermissionViewModel[];
641
642
  approval?: ModulePermissionApprovalModel;
642
643
  }
@@ -645,6 +646,7 @@ interface ModulePermissionViewModel {
645
646
  label: string;
646
647
  has_parameter?: boolean;
647
648
  fake_route?: boolean;
649
+ gate?: string;
648
650
  }
649
651
  interface ModulePermissionApprovalModel {
650
652
  type: string;
@@ -659,6 +661,33 @@ declare class AuthPermissionService {
659
661
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthPermissionService>;
660
662
  }
661
663
 
664
+ interface NavbarMainTabModel {
665
+ type: NavbarMainTabType;
666
+ links: NavbarMainTabLinkModel[];
667
+ roles?: string[];
668
+ label?: string;
669
+ left?: number;
670
+ tourAnchor?: string;
671
+ }
672
+ type NavbarMainTabType = 'link' | 'dropdown';
673
+ interface NavbarMainTabLinkModel {
674
+ routerLink: string;
675
+ label: string;
676
+ role: string;
677
+ }
678
+
679
+ declare class FeatureGateService {
680
+ private _app;
681
+ constructor(_app: CoreService);
682
+ isEnabled(gate: string, defaultEnabled?: boolean): boolean;
683
+ isLinkEnabled(link: string, permissions: ModulePermissionModel[], matchPrefix?: boolean): boolean;
684
+ private getGateConfig;
685
+ private normalizeLink;
686
+ private isLinkMatch;
687
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureGateService, never>;
688
+ static ɵprov: i0.ɵɵInjectableDeclaration<FeatureGateService>;
689
+ }
690
+
662
691
  declare class CoreComponent extends BaseComponent implements OnInit {
663
692
  private _deviceDet;
664
693
  private _ds;
@@ -668,9 +697,10 @@ declare class CoreComponent extends BaseComponent implements OnInit {
668
697
  private _storage;
669
698
  private _auth;
670
699
  private _aps;
700
+ private _featureGates;
671
701
  environment: any;
672
702
  logo: string;
673
- navTabs: string;
703
+ navTabs: NavbarMainTabModel[];
674
704
  userHasPhoneNumber: boolean;
675
705
  client: string;
676
706
  showNavbarModule: boolean;
@@ -700,8 +730,10 @@ declare class CoreComponent extends BaseComponent implements OnInit {
700
730
  foundUpdate: boolean;
701
731
  orientation: string;
702
732
  digitalSign: boolean;
703
- constructor(_deviceDet: DeviceDetectorService, _ds: DialogService, _resizeService: ResizeService, _services: ProviderService, _offline: OfflineManagerService, _storage: LocalStorageService, _auth: AuthService, _aps: AuthPermissionService);
733
+ constructor(_deviceDet: DeviceDetectorService, _ds: DialogService, _resizeService: ResizeService, _services: ProviderService, _offline: OfflineManagerService, _storage: LocalStorageService, _auth: AuthService, _aps: AuthPermissionService, _featureGates: FeatureGateService);
704
734
  ngOnInit(): void;
735
+ private filterNavTabs;
736
+ private isRoleGateEnabled;
705
737
  getNavbarModuleHeight(): any;
706
738
  onPushBackButton(): void;
707
739
  onPushReloadButton(): void;
@@ -732,21 +764,6 @@ declare class HomeComponent extends BaseComponent implements OnInit {
732
764
  static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "resolveio-home", never, {}, {}, never, never, false, never>;
733
765
  }
734
766
 
735
- interface NavbarMainTabModel {
736
- type: NavbarMainTabType;
737
- links: NavbarMainTabLinkModel[];
738
- roles?: string[];
739
- label?: string;
740
- left?: number;
741
- tourAnchor?: string;
742
- }
743
- type NavbarMainTabType = 'link' | 'dropdown';
744
- interface NavbarMainTabLinkModel {
745
- routerLink: string;
746
- label: string;
747
- role: string;
748
- }
749
-
750
767
  declare class NavbarMainComponent extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {
751
768
  private _services;
752
769
  private auth;
@@ -764,7 +781,6 @@ declare class NavbarMainComponent extends BaseComponent implements OnInit, After
764
781
  collapseShowing: boolean;
765
782
  client: string;
766
783
  isResolveIO: boolean;
767
- standardProgram: boolean;
768
784
  tourStarted: boolean;
769
785
  private dropdownLeftTimer;
770
786
  scrollRightInterval: any;
@@ -907,7 +923,7 @@ declare class PipeModule {
907
923
  }
908
924
 
909
925
  declare function rioDatePickerConfigFactory(_account: AccountManagerService, _app: CoreService): {
910
- resolveFirstDayOfWeek: () => "M" | "S";
926
+ resolveFirstDayOfWeek: () => "S" | "M";
911
927
  resolveTimezone: () => any;
912
928
  };
913
929
  declare class CoreServicesModule {
@@ -1793,10 +1809,12 @@ declare class AuthGuard {
1793
1809
  private _offline;
1794
1810
  private _aps;
1795
1811
  private _alert;
1812
+ private _featureGates;
1796
1813
  redirectUrl: string;
1797
- constructor(_router: Router, _auth: AuthService, _ds: DialogService, _account: AccountManagerService, _app: CoreService, _offline: OfflineManagerService, _aps: AuthPermissionService, _alert: AlertService);
1814
+ constructor(_router: Router, _auth: AuthService, _ds: DialogService, _account: AccountManagerService, _app: CoreService, _offline: OfflineManagerService, _aps: AuthPermissionService, _alert: AlertService, _featureGates: FeatureGateService);
1798
1815
  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> | boolean;
1799
1816
  doesLinkHaveParameter(link: string): boolean;
1817
+ isLinkGateEnabled(link: string): boolean;
1800
1818
  isLinkFakeRoute(link: string): boolean;
1801
1819
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
1802
1820
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
@@ -1806,7 +1824,7 @@ interface CanComponentDeactivate {
1806
1824
  canDeactivate: () => Observable<boolean> | Promise<boolean> | boolean;
1807
1825
  }
1808
1826
  declare class CanDeactivateGuard {
1809
- canDeactivate(component: CanComponentDeactivate): boolean | Observable<boolean> | Promise<boolean>;
1827
+ canDeactivate(component: CanComponentDeactivate): boolean | Promise<boolean> | Observable<boolean>;
1810
1828
  static ɵfac: i0.ɵɵFactoryDeclaration<CanDeactivateGuard, never>;
1811
1829
  static ɵprov: i0.ɵɵInjectableDeclaration<CanDeactivateGuard>;
1812
1830
  }
@@ -2208,7 +2226,9 @@ interface UserGroupViewModel {
2208
2226
 
2209
2227
  declare const ReportBuilderModulePermission: ModulePermissionModel;
2210
2228
 
2229
+ declare const MongoExplorerModulePermission: ModulePermissionModel;
2230
+
2211
2231
  declare const SuperAdminModulePermission: ModulePermissionModel;
2212
2232
 
2213
- export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, momentTz, pad, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
2233
+ export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, momentTz, pad, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
2214
2234
  export type { ActiveClientSubscriptionModel, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, SupportTicketClientUserModel, SupportTicketMessageModel, SupportTicketModel, SupportTicketNoteModel, SupportTicketPriority, SupportTicketStatus, SupportTicketSubstatus, SupportTicketTaskModel, SupportTicketType, SupportTicketUserAssignedModel, SupportTicketWatchersModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };