@resolveio/client-lib-core 21.1.0 → 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
|
@@ -419,6 +419,7 @@ declare class AccountManagerService {
|
|
|
419
419
|
user$: Subscription;
|
|
420
420
|
environment: any;
|
|
421
421
|
constructor(_router: Router, _socket: SocketManagerService, _token: TokenManagerService, _http: HttpClient, _alert: AlertService, _offline: OfflineManagerService);
|
|
422
|
+
private normalizeUser;
|
|
422
423
|
initLoginManager(environment: any): void;
|
|
423
424
|
private initLogin;
|
|
424
425
|
getAccessToken(refreshToken: any): void;
|
|
@@ -636,6 +637,7 @@ declare class AuthService {
|
|
|
636
637
|
|
|
637
638
|
interface ModulePermissionModel {
|
|
638
639
|
name: string;
|
|
640
|
+
gate?: string;
|
|
639
641
|
views: ModulePermissionViewModel[];
|
|
640
642
|
approval?: ModulePermissionApprovalModel;
|
|
641
643
|
}
|
|
@@ -644,6 +646,7 @@ interface ModulePermissionViewModel {
|
|
|
644
646
|
label: string;
|
|
645
647
|
has_parameter?: boolean;
|
|
646
648
|
fake_route?: boolean;
|
|
649
|
+
gate?: string;
|
|
647
650
|
}
|
|
648
651
|
interface ModulePermissionApprovalModel {
|
|
649
652
|
type: string;
|
|
@@ -658,6 +661,33 @@ declare class AuthPermissionService {
|
|
|
658
661
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthPermissionService>;
|
|
659
662
|
}
|
|
660
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
|
+
|
|
661
691
|
declare class CoreComponent extends BaseComponent implements OnInit {
|
|
662
692
|
private _deviceDet;
|
|
663
693
|
private _ds;
|
|
@@ -667,9 +697,10 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
667
697
|
private _storage;
|
|
668
698
|
private _auth;
|
|
669
699
|
private _aps;
|
|
700
|
+
private _featureGates;
|
|
670
701
|
environment: any;
|
|
671
702
|
logo: string;
|
|
672
|
-
navTabs:
|
|
703
|
+
navTabs: NavbarMainTabModel[];
|
|
673
704
|
userHasPhoneNumber: boolean;
|
|
674
705
|
client: string;
|
|
675
706
|
showNavbarModule: boolean;
|
|
@@ -699,8 +730,10 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
699
730
|
foundUpdate: boolean;
|
|
700
731
|
orientation: string;
|
|
701
732
|
digitalSign: boolean;
|
|
702
|
-
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);
|
|
703
734
|
ngOnInit(): void;
|
|
735
|
+
private filterNavTabs;
|
|
736
|
+
private isRoleGateEnabled;
|
|
704
737
|
getNavbarModuleHeight(): any;
|
|
705
738
|
onPushBackButton(): void;
|
|
706
739
|
onPushReloadButton(): void;
|
|
@@ -731,21 +764,6 @@ declare class HomeComponent extends BaseComponent implements OnInit {
|
|
|
731
764
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "resolveio-home", never, {}, {}, never, never, false, never>;
|
|
732
765
|
}
|
|
733
766
|
|
|
734
|
-
interface NavbarMainTabModel {
|
|
735
|
-
type: NavbarMainTabType;
|
|
736
|
-
links: NavbarMainTabLinkModel[];
|
|
737
|
-
roles?: string[];
|
|
738
|
-
label?: string;
|
|
739
|
-
left?: number;
|
|
740
|
-
tourAnchor?: string;
|
|
741
|
-
}
|
|
742
|
-
type NavbarMainTabType = 'link' | 'dropdown';
|
|
743
|
-
interface NavbarMainTabLinkModel {
|
|
744
|
-
routerLink: string;
|
|
745
|
-
label: string;
|
|
746
|
-
role: string;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
767
|
declare class NavbarMainComponent extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
750
768
|
private _services;
|
|
751
769
|
private auth;
|
|
@@ -1414,14 +1432,19 @@ declare class DialogSelectDataLabelsContent implements OnInit {
|
|
|
1414
1432
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogSelectDataLabelsContent, "resolveio-dialog.select-data-labels", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "data": { "alias": "data"; "required": false; }; "showArraySubData": { "alias": "showArraySubData"; "required": false; }; }, {}, never, never, false, never>;
|
|
1415
1433
|
}
|
|
1416
1434
|
|
|
1417
|
-
declare class DialogLoginContent implements OnInit {
|
|
1435
|
+
declare class DialogLoginContent implements OnInit, AfterViewInit, OnDestroy {
|
|
1418
1436
|
_activeModal: NgbActiveModal;
|
|
1419
1437
|
private _fb;
|
|
1420
1438
|
msAllowed: boolean;
|
|
1421
1439
|
showLoginText: boolean;
|
|
1440
|
+
usernameInput?: ElementRef<HTMLInputElement>;
|
|
1422
1441
|
form: FormGroup;
|
|
1442
|
+
private focusTimeout;
|
|
1423
1443
|
constructor(_activeModal: NgbActiveModal, _fb: FormBuilder);
|
|
1424
1444
|
ngOnInit(): void;
|
|
1445
|
+
ngAfterViewInit(): void;
|
|
1446
|
+
ngOnDestroy(): void;
|
|
1447
|
+
private queueUsernameFocus;
|
|
1425
1448
|
toggleForgotPassword(): void;
|
|
1426
1449
|
close(type: string): void;
|
|
1427
1450
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogLoginContent, never>;
|
|
@@ -1787,10 +1810,12 @@ declare class AuthGuard {
|
|
|
1787
1810
|
private _offline;
|
|
1788
1811
|
private _aps;
|
|
1789
1812
|
private _alert;
|
|
1813
|
+
private _featureGates;
|
|
1790
1814
|
redirectUrl: string;
|
|
1791
|
-
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);
|
|
1792
1816
|
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> | boolean;
|
|
1793
1817
|
doesLinkHaveParameter(link: string): boolean;
|
|
1818
|
+
isLinkGateEnabled(link: string): boolean;
|
|
1794
1819
|
isLinkFakeRoute(link: string): boolean;
|
|
1795
1820
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
1796
1821
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
@@ -2202,7 +2227,9 @@ interface UserGroupViewModel {
|
|
|
2202
2227
|
|
|
2203
2228
|
declare const ReportBuilderModulePermission: ModulePermissionModel;
|
|
2204
2229
|
|
|
2230
|
+
declare const MongoExplorerModulePermission: ModulePermissionModel;
|
|
2231
|
+
|
|
2205
2232
|
declare const SuperAdminModulePermission: ModulePermissionModel;
|
|
2206
2233
|
|
|
2207
|
-
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 };
|
|
2208
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 };
|