fas-admin 0.0.21 → 0.0.23
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/api/api-services/platform-users.service.d.ts +14 -0
- package/api/api-url.token.d.ts +4 -0
- package/api/sort-order.model.d.ts +4 -0
- package/esm2022/api/api-services/platform-users.service.mjs +52 -0
- package/esm2022/api/api-url.token.mjs +3 -0
- package/esm2022/api/sort-order.model.mjs +6 -0
- package/esm2022/lib/components/layout/side-bar/side-bar.component.mjs +3 -3
- package/esm2022/lib/components/views/dashboard/dashboard.component.mjs +11 -0
- package/esm2022/lib/components/views/users/users.component.mjs +9 -2
- package/esm2022/lib/fas-admin.component.mjs +13 -13
- package/esm2022/lib/fas-admin.module.mjs +30 -53
- package/esm2022/lib/fas-admin.service.mjs +17 -3
- package/esm2022/lib/shared/const/fas-default-config.mjs +7 -0
- package/esm2022/lib/shared/const/fas-default-settings.const.mjs +45 -0
- package/esm2022/lib/shared/models/fas-admin-models.mjs +1 -1
- package/esm2022/lib/shared/services/users.service.mjs +20 -0
- package/esm2022/lib/shared/tokens/fas-lib-config.token.mjs +30 -0
- package/esm2022/public-api.mjs +4 -7
- package/fesm2022/fas-admin.mjs +1358 -1218
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/views/dashboard/dashboard.component.d.ts +5 -0
- package/lib/components/views/users/users.component.d.ts +2 -0
- package/lib/fas-admin.component.d.ts +4 -4
- package/lib/fas-admin.module.d.ts +12 -16
- package/lib/fas-admin.service.d.ts +5 -1
- package/lib/shared/const/fas-default-config.d.ts +2 -0
- package/lib/shared/const/fas-default-settings.const.d.ts +3 -0
- package/lib/shared/models/fas-admin-models.d.ts +17 -5
- package/lib/shared/services/users.service.d.ts +8 -0
- package/lib/shared/tokens/fas-lib-config.token.d.ts +19 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -6
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DashboardComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "lib-dashboard", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class UsersComponent {
|
|
3
|
+
private usersService;
|
|
4
|
+
ngOnInit(): void;
|
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
|
|
4
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "lib-users", never, {}, {}, never, never, false, never>;
|
|
5
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IFASAdminConfigInitializer, IFASButtonList } from './shared/models/fas-admin-models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FASAdminComponent implements OnInit {
|
|
5
|
-
private
|
|
6
|
-
inputData?:
|
|
7
|
-
|
|
5
|
+
private fasAdminService;
|
|
6
|
+
inputData?: IFASAdminConfigInitializer;
|
|
7
|
+
visableDefaultButtonList: IFASButtonList[];
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<FASAdminComponent, "lib-fas-admin", never, {}, {}, never, never, false, never>;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Routes } from '@angular/router';
|
|
1
|
+
import { FASAdminService } from './fas-admin.service';
|
|
2
|
+
import { IFASAdminConfigInitializer } from './shared/models/fas-admin-models';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
import * as i1 from "./fas-admin.component";
|
|
6
5
|
import * as i2 from "./components/layout/top-bar/top-bar.component";
|
|
7
6
|
import * as i3 from "./components/layout/side-bar/side-bar.component";
|
|
8
|
-
import * as i4 from "@angular/
|
|
9
|
-
import * as i5 from "
|
|
10
|
-
import * as i6 from "./components/views/
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/router";
|
|
9
|
+
import * as i6 from "./components/views/subscriptions/subscriptions.module";
|
|
11
10
|
import * as i7 from "./components/views/statistics/statistic.module";
|
|
12
|
-
import * as i8 from "./components/views/
|
|
13
|
-
import * as i9 from "
|
|
11
|
+
import * as i8 from "./components/views/operators/operators.module";
|
|
12
|
+
import * as i9 from "./components/views/messages/messages.module";
|
|
14
13
|
import * as i10 from "./components/views/users/users.module";
|
|
15
|
-
export declare const FAS_LIB_CONFIG: InjectionToken<unknown>;
|
|
16
|
-
export declare function SettingsFactory(): IFASAdminSettings;
|
|
17
|
-
export declare const settings: IFASAdminSettings;
|
|
18
|
-
export declare const routes: Routes;
|
|
19
14
|
export declare class FASAdminModule {
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
15
|
+
private configData;
|
|
16
|
+
private fasAdminService;
|
|
17
|
+
constructor(configData: IFASAdminConfigInitializer, fasAdminService: FASAdminService);
|
|
18
|
+
private setDefaultRoutes;
|
|
23
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FASAdminModule, [typeof i1.FASAdminComponent, typeof i2.TopBarComponent, typeof i3.SideBarComponent], [typeof i4.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FASAdminModule, [typeof i1.FASAdminComponent, typeof i2.TopBarComponent, typeof i3.SideBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.SubscriptionsModule, typeof i7.StatisticModule, typeof i8.OperatorsModule, typeof i9.MessagesModule, typeof i10.UsersModule], never>;
|
|
25
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<FASAdminModule>;
|
|
26
22
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { IFASAdminConfigInitializer } from './shared/models/fas-admin-models';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class FASAdminService {
|
|
3
|
-
|
|
4
|
+
private fasAdminConfigSubject;
|
|
5
|
+
fasAdminConfig$: import("rxjs").Observable<IFASAdminConfigInitializer>;
|
|
6
|
+
getFasAdminConfigValue(): IFASAdminConfigInitializer;
|
|
7
|
+
setFasAdminConfigValue(configData: IFASAdminConfigInitializer): void;
|
|
4
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminService, never>;
|
|
5
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<FASAdminService>;
|
|
6
10
|
}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { Route } from
|
|
1
|
+
import { Route } from '@angular/router';
|
|
2
|
+
import { Type } from '@angular/core';
|
|
2
3
|
export interface IFASButtonList {
|
|
3
|
-
routerUrl: string;
|
|
4
|
+
routerUrl: IFASDefaultRoutePath | string;
|
|
4
5
|
label: string;
|
|
5
6
|
icon: string;
|
|
6
7
|
}
|
|
7
|
-
export
|
|
8
|
+
export type IFASDefaultRoutePath = 'dashboard' | 'statistic' | 'subscriptions' | 'messages' | 'operators' | 'users';
|
|
9
|
+
export interface IFASDefaultPath {
|
|
10
|
+
path: IFASDefaultRoutePath;
|
|
11
|
+
component: Type<any>;
|
|
12
|
+
}
|
|
13
|
+
export interface IFASDefaultButtonsSettings {
|
|
14
|
+
path: IFASDefaultRoutePath;
|
|
15
|
+
label?: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IFASAdminConfigInitializer {
|
|
8
19
|
companyName: string;
|
|
9
|
-
|
|
10
|
-
specButtonList: IFASButtonList[];
|
|
20
|
+
specButtonList?: IFASButtonList[];
|
|
11
21
|
customRoutes?: Route[];
|
|
22
|
+
hideDefaultRoutePaths?: IFASDefaultRoutePath[];
|
|
23
|
+
defaultButtonSettings?: IFASDefaultButtonsSettings[];
|
|
12
24
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UsersService {
|
|
4
|
+
private readonly platformUsersService;
|
|
5
|
+
getUsersList$(): Observable<any>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UsersService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { API_URL } from '../../../api/api-url.token';
|
|
2
|
+
import { IFASAdminConfigInitializer } from '../models/fas-admin-models';
|
|
3
|
+
import { InjectionToken } from '@angular/core';
|
|
4
|
+
export declare const FAS_LIB_CONFIG: InjectionToken<IFASAdminConfigInitializer>;
|
|
5
|
+
/**
|
|
6
|
+
* Factory function to provide a custom configuration for FAS_LIB_CONFIG.
|
|
7
|
+
* Ensures that the configuration object conforms to IFASAdminConfigInitializer.
|
|
8
|
+
*/
|
|
9
|
+
export declare function provideFASAdminLibConfig(config: IFASAdminConfigInitializer): {
|
|
10
|
+
provide: typeof FAS_LIB_CONFIG;
|
|
11
|
+
useValue: IFASAdminConfigInitializer;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Factory function to provide a api configuration for FAS API_URL.
|
|
15
|
+
*/
|
|
16
|
+
export declare function provideFASAdminLibApiConfig(apiUrl: string): {
|
|
17
|
+
provide: typeof API_URL;
|
|
18
|
+
useValue: string;
|
|
19
|
+
};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export * from './lib/shared/models/fas-admin-models';
|
|
2
2
|
export * from './lib/fas-admin.service';
|
|
3
3
|
export * from './lib/fas-admin.module';
|
|
4
|
-
export * from './lib/fas-
|
|
5
|
-
export * from './lib/
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './lib/components/views/operators/operators.component';
|
|
8
|
-
export * from './lib/components/views/messages/messages.component';
|
|
9
|
-
export * from './lib/components/views/users/users.component';
|
|
4
|
+
export * from './lib/shared/tokens/fas-lib-config.token';
|
|
5
|
+
export * from './lib/shared/const/fas-default-config';
|
|
6
|
+
export * from './api/api-url.token';
|