@unipin/angular-applet 18.6.13 → 18.6.15
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/esm2022/lib/components/approval/index.mjs +2 -1
- package/esm2022/lib/components/approval/list/approval-list.component.mjs +7 -6
- package/esm2022/lib/components/approval/list/provide-approval-entities.util.mjs +9 -0
- package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +4 -3
- package/esm2022/lib/components/containers/applet-container/provide-applet-config.util.mjs +9 -0
- package/esm2022/lib/components/containers/index.mjs +2 -1
- package/esm2022/lib/components/filter/filter.component.mjs +21 -4
- package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +5 -3
- package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +5 -3
- package/esm2022/lib/components/index.mjs +3 -3
- package/esm2022/lib/interceptors/header/header.interceptor.mjs +10 -19
- package/esm2022/lib/interceptors/index.mjs +3 -3
- package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +30 -41
- package/esm2022/lib/modules/index.mjs +2 -2
- package/esm2022/lib/modules/permission/index.mjs +2 -2
- package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +18 -10
- package/esm2022/lib/modules/permission/pages/loading/provide-loading-config.util.mjs +9 -0
- package/esm2022/lib/services/auth/auth.service.mjs +1 -1
- package/esm2022/public-api.mjs +5 -5
- package/fesm2022/unipin-angular-applet.mjs +112 -93
- package/fesm2022/unipin-angular-applet.mjs.map +1 -1
- package/lib/components/approval/index.d.ts +1 -0
- package/lib/components/approval/list/provide-approval-entities.util.d.ts +3 -0
- package/lib/components/containers/applet-container/applet-container.component.d.ts +3 -26
- package/lib/components/containers/applet-container/provide-applet-config.util.d.ts +15 -0
- package/lib/components/containers/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -2
- package/lib/interceptors/header/header.interceptor.d.ts +2 -8
- package/lib/interceptors/index.d.ts +2 -2
- package/lib/interceptors/refresh-token/refresh-token.interceptor.d.ts +2 -11
- package/lib/modules/index.d.ts +1 -1
- package/lib/modules/permission/index.d.ts +1 -1
- package/lib/modules/permission/pages/loading/loading.page.d.ts +3 -13
- package/lib/modules/permission/pages/loading/provide-loading-config.util.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -4
- package/esm2022/lib/modules/permission/permission.module.mjs +0 -20
- package/lib/modules/permission/permission.module.d.ts +0 -7
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
3
|
import { PermissionService } from '../../../modules';
|
|
4
|
+
import { AppletConfig } from './provide-applet-config.util';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AppletContainerComponent implements OnInit, OnDestroy {
|
|
6
|
-
readonly config:
|
|
7
|
-
icon: string;
|
|
8
|
-
name: string;
|
|
9
|
-
tenantName: string;
|
|
10
|
-
enabledSetting: boolean;
|
|
11
|
-
containers: {
|
|
12
|
-
icon: string;
|
|
13
|
-
label: string;
|
|
14
|
-
path: `/${string}`;
|
|
15
|
-
permModule: string;
|
|
16
|
-
}[];
|
|
17
|
-
version: string;
|
|
18
|
-
};
|
|
7
|
+
readonly config: AppletConfig;
|
|
19
8
|
protected readonly ch: ChangeDetectorRef;
|
|
20
9
|
protected readonly permissionService: PermissionService;
|
|
21
10
|
isCollapsed: boolean;
|
|
@@ -23,19 +12,7 @@ export declare class AppletContainerComponent implements OnInit, OnDestroy {
|
|
|
23
12
|
isMenuActive: boolean;
|
|
24
13
|
protected sub: Subscription;
|
|
25
14
|
protected subEvent: Subscription;
|
|
26
|
-
constructor(config:
|
|
27
|
-
icon: string;
|
|
28
|
-
name: string;
|
|
29
|
-
tenantName: string;
|
|
30
|
-
enabledSetting: boolean;
|
|
31
|
-
containers: {
|
|
32
|
-
icon: string;
|
|
33
|
-
label: string;
|
|
34
|
-
path: `/${string}`;
|
|
35
|
-
permModule: string;
|
|
36
|
-
}[];
|
|
37
|
-
version: string;
|
|
38
|
-
}, ch: ChangeDetectorRef, permissionService: PermissionService);
|
|
15
|
+
constructor(config: AppletConfig, ch: ChangeDetectorRef, permissionService: PermissionService);
|
|
39
16
|
ngOnInit(): void;
|
|
40
17
|
ngOnDestroy(): void;
|
|
41
18
|
toggleSidenav(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
export declare const APPLET_CONFIG: InjectionToken<AppletConfig>;
|
|
3
|
+
export interface AppletConfig {
|
|
4
|
+
icon: string;
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
enabledSetting?: boolean;
|
|
8
|
+
containers: {
|
|
9
|
+
icon: string;
|
|
10
|
+
label: string;
|
|
11
|
+
permModule: string;
|
|
12
|
+
path: `/${string}`;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare function provideAppletConfig(config: AppletConfig): Provider;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AppletContainerComponent } from './applet-container/applet-container.component';
|
|
2
|
+
export { provideAppletConfig, AppletConfig } from './applet-container/provide-applet-config.util';
|
|
2
3
|
export { ColumnContainerComponent } from './column-container/column-container.component';
|
|
3
4
|
export { ColumnHeaderContainerComponent } from './colum-header-container/column-header-container.component';
|
|
4
5
|
export { ModalContainerComponent } from './modal-container/modal-container.component';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { ButtonGroupComponent, ButtonGroupConfig, ButtonLoadingComponent } from './buttons';
|
|
2
|
-
export { AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent } from './containers';
|
|
2
|
+
export { AppletConfig, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent } from './containers';
|
|
3
3
|
export { FilterComponent, FilterConfig, FilterField, FilterSearchEvent } from './filter';
|
|
4
4
|
export { FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent } from './forms';
|
|
5
5
|
export { GridConfig, GridPaginationComponent, GridService, GridSnapshotComponent } from './grids';
|
|
6
6
|
export { TabContentComponent, TabGroupComponent, TabsChangedEvent } from './tabs';
|
|
7
7
|
export { AuditListComponent, AuditDetailComponent } from './audit';
|
|
8
|
-
export { ApprovalListComponent, ApprovalDetailComponent } from './approval';
|
|
8
|
+
export { ApprovalListComponent, ApprovalDetailComponent, provideApprovalEntities, APPROVAL_ENTITIES } from './approval';
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class HeaderInterceptor implements HttpInterceptor {
|
|
5
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderInterceptor, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HeaderInterceptor>;
|
|
8
|
-
}
|
|
1
|
+
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
+
export declare const headerInterceptor: HttpInterceptorFn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { headerInterceptor } from './header/header.interceptor';
|
|
2
|
+
export { refreshTokenInterceptor } from './refresh-token/refresh-token.interceptor';
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { AuthService } from '../../services';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class RefreshTokenInterceptor implements HttpInterceptor {
|
|
6
|
-
protected readonly authService: AuthService;
|
|
7
|
-
constructor(authService: AuthService);
|
|
8
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RefreshTokenInterceptor, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RefreshTokenInterceptor>;
|
|
11
|
-
}
|
|
1
|
+
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
+
export declare const refreshTokenInterceptor: HttpInterceptorFn;
|
package/lib/modules/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { bootstrap } from './micro-frontend';
|
|
2
|
-
export { PermissionDirective, PermissionGuard,
|
|
2
|
+
export { PermissionDirective, PermissionGuard, PermissionService, UnauthorizedPage, LoadingConfig, provideLoadingConfig, LoadingPage, } from './permission';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { provideLoadingConfig, LoadingConfig } from './pages/loading/provide-loading-config.util';
|
|
1
2
|
export { LoadingPage } from './pages/loading/loading.page';
|
|
2
3
|
export { PermissionDirective } from './directive/permission.directive';
|
|
3
4
|
export { PermissionGuard } from './guards/permission.guard';
|
|
4
|
-
export { PermissionModule } from './permission.module';
|
|
5
5
|
export { PermissionService } from './services/permission.service';
|
|
6
6
|
export { UnauthorizedPage } from './pages/401/unauthorized.page';
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
|
-
import { FetchPolicy } from '@apollo/client/core';
|
|
5
4
|
import { PermissionService } from '../../services/permission.service';
|
|
5
|
+
import { LoadingConfig } from './provide-loading-config.util';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class LoadingPage implements OnInit, OnDestroy {
|
|
8
|
-
readonly config:
|
|
9
|
-
permModule: string[];
|
|
10
|
-
permType: string[];
|
|
11
|
-
fetchPolicy?: FetchPolicy;
|
|
12
|
-
subjectGuidStorageKey?: string;
|
|
13
|
-
};
|
|
8
|
+
readonly config: LoadingConfig;
|
|
14
9
|
protected readonly router: Router;
|
|
15
10
|
protected readonly route: ActivatedRoute;
|
|
16
11
|
protected readonly permissionService: PermissionService;
|
|
17
12
|
protected sub?: Subscription;
|
|
18
|
-
constructor(config:
|
|
19
|
-
permModule: string[];
|
|
20
|
-
permType: string[];
|
|
21
|
-
fetchPolicy?: FetchPolicy;
|
|
22
|
-
subjectGuidStorageKey?: string;
|
|
23
|
-
}, router: Router, route: ActivatedRoute, permissionService: PermissionService);
|
|
13
|
+
constructor(config: LoadingConfig, router: Router, route: ActivatedRoute, permissionService: PermissionService);
|
|
24
14
|
ngOnInit(): void;
|
|
25
15
|
ngOnDestroy(): void;
|
|
26
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingPage, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { FetchPolicy } from '@apollo/client';
|
|
3
|
+
export declare const LOADING_CONFIG: InjectionToken<LoadingConfig>;
|
|
4
|
+
export interface LoadingConfig {
|
|
5
|
+
permTypes: string[];
|
|
6
|
+
permModules: string[];
|
|
7
|
+
fetchPolicy?: FetchPolicy;
|
|
8
|
+
subjectGuidStorageKey?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function provideLoadingConfig(config: LoadingConfig): Provider;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabContentComponent, TabGroupComponent, TabsChangedEvent, AuditListComponent, AuditDetailComponent, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
|
|
1
|
+
export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletConfig, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabContentComponent, TabGroupComponent, TabsChangedEvent, AuditListComponent, AuditDetailComponent, APPROVAL_ENTITIES, provideApprovalEntities, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
|
|
2
2
|
export { InfiniteScrollDirective, InfiniteScrollComponent } from './lib/components/infinite-scroll';
|
|
3
3
|
export { AuthGuard } from './lib/guards';
|
|
4
|
-
export {
|
|
4
|
+
export { headerInterceptor, refreshTokenInterceptor } from './lib/interceptors';
|
|
5
5
|
export { User } from './lib/interfaces';
|
|
6
|
-
export { bootstrap, LoadingPage, UnauthorizedPage, PermissionDirective, PermissionGuard, PermissionService,
|
|
6
|
+
export { bootstrap, LoadingConfig, provideLoadingConfig, LoadingPage, UnauthorizedPage, PermissionDirective, PermissionGuard, PermissionService, } from './lib/modules';
|
|
7
7
|
export { AuthResolver } from './lib/resolvers';
|
|
8
8
|
export { AuthService, CurrencyService, CountryService, ProfileService } from './lib/services';
|
|
9
|
-
export { formatCapitalize, generateContrastColor, getFormErrorMessage
|
|
9
|
+
export { formatCapitalize, generateContrastColor, getFormErrorMessage } from './lib/utils';
|
|
10
10
|
export { GridApi, GridReadyEvent, ICellRendererParams, ValueFormatterParams, SelectionChangedEvent } from '@ag-grid-community/core';
|
|
11
11
|
export { ICellRendererAngularComp } from '@ag-grid-community/angular';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { PermissionDirective } from './directive/permission.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class PermissionModule {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PermissionModule, imports: [PermissionDirective], exports: [PermissionDirective] }); }
|
|
7
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PermissionModule }); }
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PermissionModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
imports: [
|
|
13
|
-
PermissionDirective
|
|
14
|
-
],
|
|
15
|
-
exports: [
|
|
16
|
-
PermissionDirective
|
|
17
|
-
]
|
|
18
|
-
}]
|
|
19
|
-
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVybWlzc2lvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91bmlwaW4tYW5ndWxhci9zcmMvbGliL21vZHVsZXMvcGVybWlzc2lvbi9wZXJtaXNzaW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDOztBQWF2RSxNQUFNLE9BQU8sZ0JBQWdCOytHQUFoQixnQkFBZ0I7Z0hBQWhCLGdCQUFnQixZQU56QixtQkFBbUIsYUFHbkIsbUJBQW1CO2dIQUdWLGdCQUFnQjs7NEZBQWhCLGdCQUFnQjtrQkFSNUIsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUU7d0JBQ1AsbUJBQW1CO3FCQUNwQjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsbUJBQW1CO3FCQUNwQjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBQZXJtaXNzaW9uRGlyZWN0aXZlIH0gZnJvbSAnLi9kaXJlY3RpdmUvcGVybWlzc2lvbi5kaXJlY3RpdmUnO1xuXG4vKipcbiAqIEBkZXByZWNhdGVkIHdpbGwgYmUgcmVtb3ZlZCBpbiB0aGUgMTguNy4wIHJlbGVhc2UuXG4gKi9cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBQZXJtaXNzaW9uRGlyZWN0aXZlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBQZXJtaXNzaW9uRGlyZWN0aXZlXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgUGVybWlzc2lvbk1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./directive/permission.directive";
|
|
3
|
-
export declare class PermissionModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PermissionModule, never, [typeof i1.PermissionDirective], [typeof i1.PermissionDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PermissionModule>;
|
|
7
|
-
}
|