@resolveio/client-lib-core 21.1.1 → 21.2.0
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
|
@@ -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:
|
|
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;
|
|
@@ -907,7 +924,7 @@ declare class PipeModule {
|
|
|
907
924
|
}
|
|
908
925
|
|
|
909
926
|
declare function rioDatePickerConfigFactory(_account: AccountManagerService, _app: CoreService): {
|
|
910
|
-
resolveFirstDayOfWeek: () => "
|
|
927
|
+
resolveFirstDayOfWeek: () => "S" | "M";
|
|
911
928
|
resolveTimezone: () => any;
|
|
912
929
|
};
|
|
913
930
|
declare class CoreServicesModule {
|
|
@@ -1793,10 +1810,12 @@ declare class AuthGuard {
|
|
|
1793
1810
|
private _offline;
|
|
1794
1811
|
private _aps;
|
|
1795
1812
|
private _alert;
|
|
1813
|
+
private _featureGates;
|
|
1796
1814
|
redirectUrl: string;
|
|
1797
|
-
constructor(_router: Router, _auth: AuthService, _ds: DialogService, _account: AccountManagerService, _app: CoreService, _offline: OfflineManagerService, _aps: AuthPermissionService, _alert: AlertService);
|
|
1815
|
+
constructor(_router: Router, _auth: AuthService, _ds: DialogService, _account: AccountManagerService, _app: CoreService, _offline: OfflineManagerService, _aps: AuthPermissionService, _alert: AlertService, _featureGates: FeatureGateService);
|
|
1798
1816
|
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> | boolean;
|
|
1799
1817
|
doesLinkHaveParameter(link: string): boolean;
|
|
1818
|
+
isLinkGateEnabled(link: string): boolean;
|
|
1800
1819
|
isLinkFakeRoute(link: string): boolean;
|
|
1801
1820
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
1802
1821
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
@@ -2208,7 +2227,9 @@ interface UserGroupViewModel {
|
|
|
2208
2227
|
|
|
2209
2228
|
declare const ReportBuilderModulePermission: ModulePermissionModel;
|
|
2210
2229
|
|
|
2230
|
+
declare const MongoExplorerModulePermission: ModulePermissionModel;
|
|
2231
|
+
|
|
2211
2232
|
declare const SuperAdminModulePermission: ModulePermissionModel;
|
|
2212
2233
|
|
|
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 };
|
|
2234
|
+
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
2235
|
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 };
|