@cccteam/ccc-lib 0.0.13 → 0.0.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/eslint.config.js +32 -0
- package/ng-package.json +11 -0
- package/package.json +7 -68
- package/src/auth-authentication-guard/authentication.guard.ts +40 -0
- package/src/auth-authentication-guard/ng-package.json +6 -0
- package/src/auth-authorization-guard/authorization.guard.ts +17 -0
- package/src/auth-authorization-guard/ng-package.json +6 -0
- package/src/auth-forms/ccc-field/ccc-field.component.html +1 -0
- package/src/auth-forms/ccc-field/ccc-field.component.scss +0 -0
- package/src/auth-forms/ccc-field/ccc-field.component.spec.ts +22 -0
- package/src/auth-forms/ccc-field/ccc-field.component.ts +74 -0
- package/src/auth-forms/form-helpers.ts +39 -0
- package/src/auth-forms/{public-api.d.ts → index.ts} +1 -0
- package/src/auth-forms/ng-package.json +6 -0
- package/src/auth-has-permission/has-permission.directive.ts +34 -0
- package/src/auth-has-permission/ng-package.json +6 -0
- package/src/auth-service/auth.service.ts +92 -0
- package/src/auth-service/ng-package.json +6 -0
- package/src/ccc-camel-case-to-title/camel-case-to-title.pipe.ts +23 -0
- package/src/ccc-camel-case-to-title/index.ts +1 -0
- package/src/ccc-camel-case-to-title/ng-package.json +6 -0
- package/src/ccc-grid/ccc-grid.component.ts +155 -0
- package/src/ccc-grid/index.ts +3 -0
- package/src/ccc-grid/ng-package.json +6 -0
- package/src/ccc-grid/table-button/table-button.component.html +16 -0
- package/src/ccc-grid/table-button/table-button.component.scss +5 -0
- package/src/ccc-grid/table-button/table-button.component.spec.ts +22 -0
- package/src/ccc-grid/table-button/table-button.component.ts +49 -0
- package/src/ccc-resource/can-deactivate.guard.ts +41 -0
- package/src/ccc-resource/compound-resource/compound-resource.component.html +57 -0
- package/src/ccc-resource/compound-resource/compound-resource.component.scss +86 -0
- package/src/ccc-resource/compound-resource/compound-resource.component.spec.ts +22 -0
- package/src/ccc-resource/compound-resource/compound-resource.component.ts +158 -0
- package/src/ccc-resource/concat-fns.ts +162 -0
- package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.html +12 -0
- package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.scss +0 -0
- package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.spec.ts +23 -0
- package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.ts +17 -0
- package/src/ccc-resource/form-state.service.ts +24 -0
- package/src/ccc-resource/format-fns.ts +49 -0
- package/src/ccc-resource/gui-constants.ts +88 -0
- package/src/ccc-resource/index.ts +23 -0
- package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.html +8 -0
- package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.scss +0 -0
- package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.spec.ts +22 -0
- package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.ts +12 -0
- package/src/ccc-resource/ng-package.json +6 -0
- package/src/ccc-resource/operation-types.ts +19 -0
- package/src/ccc-resource/padding-element/padding-element.component.html +1 -0
- package/src/ccc-resource/padding-element/padding-element.component.scss +3 -0
- package/src/ccc-resource/padding-element/padding-element.component.spec.ts +22 -0
- package/src/ccc-resource/padding-element/padding-element.component.ts +20 -0
- package/src/ccc-resource/resource-array-view/resource-array-view.component.html +81 -0
- package/src/ccc-resource/resource-array-view/resource-array-view.component.scss +21 -0
- package/src/ccc-resource/resource-array-view/resource-array-view.component.spec.ts +22 -0
- package/src/ccc-resource/resource-array-view/resource-array-view.component.ts +143 -0
- package/src/ccc-resource/resource-base/resource-base.component.spec.ts +22 -0
- package/src/ccc-resource/resource-base/resource-base.component.ts +11 -0
- package/src/ccc-resource/resource-cache.service.ts +232 -0
- package/src/ccc-resource/resource-create/resource-create.component.html +31 -0
- package/src/ccc-resource/resource-create/resource-create.component.scss +130 -0
- package/src/ccc-resource/resource-create/resource-create.component.spec.ts +22 -0
- package/src/ccc-resource/resource-create/resource-create.component.ts +303 -0
- package/src/ccc-resource/resource-field/base-field.directive.ts +102 -0
- package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.html +16 -0
- package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.scss +0 -0
- package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.ts +15 -0
- package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.html +13 -0
- package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.scss +0 -0
- package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.spec.ts +23 -0
- package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.ts +50 -0
- package/src/ccc-resource/resource-field/fields/date-field/date-field.component.html +22 -0
- package/src/ccc-resource/resource-field/fields/date-field/date-field.component.scss +0 -0
- package/src/ccc-resource/resource-field/fields/date-field/date-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/fields/date-field/date-field.component.ts +14 -0
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.html +71 -0
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.scss +9 -0
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.ts +207 -0
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.html +38 -0
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.scss +3 -0
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.ts +87 -0
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.html +23 -0
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.scss +6 -0
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.ts +14 -0
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.html +29 -0
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.scss +6 -0
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.ts +23 -0
- package/src/ccc-resource/resource-field/resource-field.component.html +112 -0
- package/src/ccc-resource/resource-field/resource-field.component.scss +7 -0
- package/src/ccc-resource/resource-field/resource-field.component.spec.ts +22 -0
- package/src/ccc-resource/resource-field/resource-field.component.ts +214 -0
- package/src/ccc-resource/resource-layout/resource-layout.component.html +73 -0
- package/src/ccc-resource/resource-layout/resource-layout.component.scss +26 -0
- package/src/ccc-resource/resource-layout/resource-layout.component.spec.ts +22 -0
- package/src/ccc-resource/resource-layout/resource-layout.component.ts +176 -0
- package/src/ccc-resource/resource-list/ resource-list.component.spec.ts +22 -0
- package/src/ccc-resource/resource-list/resource-list.component.html +27 -0
- package/src/ccc-resource/resource-list/resource-list.component.scss +67 -0
- package/src/ccc-resource/resource-list/resource-list.component.ts +376 -0
- package/src/ccc-resource/resource-list-create/resource-list-create.component.html +71 -0
- package/src/ccc-resource/resource-list-create/resource-list-create.component.scss +9 -0
- package/src/ccc-resource/resource-list-create/resource-list-create.component.spec.ts +22 -0
- package/src/ccc-resource/resource-list-create/resource-list-create.component.ts +103 -0
- package/src/ccc-resource/resource-resolver/resource-resolver.component.html +1 -0
- package/src/ccc-resource/resource-resolver/resource-resolver.component.scss +0 -0
- package/src/ccc-resource/resource-resolver/resource-resolver.component.spec.ts +22 -0
- package/src/ccc-resource/resource-resolver/resource-resolver.component.ts +69 -0
- package/src/ccc-resource/resource-store.service.ts +93 -0
- package/src/ccc-resource/resource-view/resource-view.component.html +133 -0
- package/src/ccc-resource/resource-view/resource-view.component.scss +150 -0
- package/src/ccc-resource/resource-view/resource-view.component.spec.ts +22 -0
- package/src/ccc-resource/resource-view/resource-view.component.ts +354 -0
- package/src/ccc-resource/resources-helpers.ts +262 -0
- package/src/ccc-resource/utils/validator-utils.ts +6 -0
- package/{fesm2022/cccteam-ccc-lib.mjs → src/index.ts} +32 -11
- package/src/internal-types/index.ts +1 -0
- package/src/internal-types/ng-package.json +6 -0
- package/src/types/auth.actions.ts +46 -0
- package/src/types/configs.ts +952 -0
- package/src/types/constants.ts +1 -0
- package/src/types/core.actions.ts +33 -0
- package/src/types/{public-api.d.ts → index.ts} +3 -0
- package/src/types/ng-package.json +6 -0
- package/src/types/notification-message.ts +20 -0
- package/src/types/{permissions.d.ts → permissions.ts} +9 -9
- package/src/types/{session-info.d.ts → session-info.ts} +4 -3
- package/src/types/tokens.ts +20 -0
- package/src/ui-alert/alert.component.html +13 -0
- package/src/ui-alert/alert.component.scss +48 -0
- package/src/ui-alert/alert.component.spec.ts +22 -0
- package/src/ui-alert/alert.component.ts +35 -0
- package/src/ui-alert/ng-package.json +6 -0
- package/src/ui-core-service/index.ts +1 -0
- package/src/ui-core-service/ng-package.json +6 -0
- package/src/ui-core-service/ui-core.service.ts +34 -0
- package/src/ui-interceptor/api.interceptor.spec.ts +16 -0
- package/src/ui-interceptor/api.interceptor.ts +45 -0
- package/src/ui-interceptor/ng-package.json +6 -0
- package/src/ui-notification-service/ng-package.json +6 -0
- package/src/ui-notification-service/notification.service.ts +59 -0
- package/src/ui-sidenav/ng-package.json +6 -0
- package/src/ui-sidenav/sidenav.component.html +60 -0
- package/src/ui-sidenav/sidenav.component.scss +99 -0
- package/src/ui-sidenav/sidenav.component.spec.ts +22 -0
- package/src/ui-sidenav/sidenav.component.ts +64 -0
- package/src/util-request-options/ng-package.json +6 -0
- package/src/util-request-options/request-options.ts +17 -0
- package/tsconfig.lib.json +13 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/cccteam-ccc-lib-0.0.13.tgz +0 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs +0 -44
- package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs +0 -24
- package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs +0 -118
- package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs +0 -51
- package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs +0 -56
- package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-state.mjs +0 -109
- package/fesm2022/cccteam-ccc-lib-src-auth-state.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-types.mjs +0 -137
- package/fesm2022/cccteam-ccc-lib-src-types.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs +0 -48
- package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-core-state.mjs +0 -100
- package/fesm2022/cccteam-ccc-lib-src-ui-core-state.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs +0 -48
- package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs +0 -57
- package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs +0 -70
- package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs +0 -19
- package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/public-api.d.ts +0 -13
- package/src/auth-authentication-guard/authentication.guard.d.ts +0 -3
- package/src/auth-authentication-guard/index.d.ts +0 -5
- package/src/auth-authorization-guard/authorization.guard.d.ts +0 -3
- package/src/auth-authorization-guard/index.d.ts +0 -5
- package/src/auth-forms/ccc-field/ccc-field.component.d.ts +0 -25
- package/src/auth-forms/form-helpers.d.ts +0 -16
- package/src/auth-forms/index.d.ts +0 -5
- package/src/auth-has-permission/has-permission.directive.d.ts +0 -12
- package/src/auth-has-permission/index.d.ts +0 -5
- package/src/auth-service/auth.service.d.ts +0 -24
- package/src/auth-service/index.d.ts +0 -5
- package/src/auth-state/auth.state.d.ts +0 -27
- package/src/auth-state/index.d.ts +0 -5
- package/src/auth-state/public-api.d.ts +0 -1
- package/src/types/auth.actions.d.ts +0 -41
- package/src/types/core.actions.d.ts +0 -31
- package/src/types/index.d.ts +0 -5
- package/src/types/notification-message.d.ts +0 -18
- package/src/types/tokens.d.ts +0 -13
- package/src/ui-alert/alert.component.d.ts +0 -13
- package/src/ui-alert/index.d.ts +0 -5
- package/src/ui-core-state/core.state.d.ts +0 -28
- package/src/ui-core-state/index.d.ts +0 -5
- package/src/ui-core-state/public-api.d.ts +0 -1
- package/src/ui-interceptor/api.interceptor.d.ts +0 -12
- package/src/ui-interceptor/index.d.ts +0 -5
- package/src/ui-notification-service/index.d.ts +0 -5
- package/src/ui-notification-service/notification.service.d.ts +0 -30
- package/src/ui-sidenav/index.d.ts +0 -5
- package/src/ui-sidenav/sidenav.component.d.ts +0 -31
- package/src/util-request-options/index.d.ts +0 -5
- package/src/util-request-options/request-options.d.ts +0 -8
- /package/src/auth-authentication-guard/{public-api.d.ts → index.ts} +0 -0
- /package/src/auth-authorization-guard/{public-api.d.ts → index.ts} +0 -0
- /package/src/auth-has-permission/{public-api.d.ts → index.ts} +0 -0
- /package/src/auth-service/{public-api.d.ts → index.ts} +0 -0
- /package/src/ui-alert/{public-api.d.ts → index.ts} +0 -0
- /package/src/ui-interceptor/{public-api.d.ts → index.ts} +0 -0
- /package/src/ui-notification-service/{public-api.d.ts → index.ts} +0 -0
- /package/src/ui-sidenav/{public-api.d.ts → index.ts} +0 -0
- /package/src/util-request-options/{public-api.d.ts → index.ts} +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OnInit, Signal } from '@angular/core';
|
|
2
|
-
import { Domain, Resource } from '@cccteam/ccc-lib/src/types';
|
|
3
|
-
import { Store } from '@ngxs/store';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare enum InputMode {
|
|
6
|
-
Read = "read",
|
|
7
|
-
Edit = "edit"
|
|
8
|
-
}
|
|
9
|
-
export declare class CccInputFieldComponent implements OnInit {
|
|
10
|
-
store: Store;
|
|
11
|
-
className: import("@angular/core").InputSignal<unknown>;
|
|
12
|
-
mode: import("@angular/core").InputSignal<InputMode>;
|
|
13
|
-
resource: import("@angular/core").InputSignal<Resource>;
|
|
14
|
-
domain: import("@angular/core").InputSignal<Domain>;
|
|
15
|
-
value: import("@angular/core").InputSignal<unknown>;
|
|
16
|
-
name: import("@angular/core").InputSignal<string>;
|
|
17
|
-
inputMode: typeof InputMode;
|
|
18
|
-
canEdit: Signal<boolean>;
|
|
19
|
-
canEditSelector: boolean;
|
|
20
|
-
canRead: Signal<boolean>;
|
|
21
|
-
canReadSelector: boolean;
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CccInputFieldComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CccInputFieldComponent, "ccc-input-field", never, { "className": { "alias": "className"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": true; "isSignal": true; }; "resource": { "alias": "resource"; "required": true; "isSignal": true; }; "domain": { "alias": "domain"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FormArray, FormGroup } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* Accepts a FormGroup and compares it to an object to return the dirty form values
|
|
4
|
-
* as a sparse object
|
|
5
|
-
* @param form - FormGroup
|
|
6
|
-
* @param compareData - object to compare form values against
|
|
7
|
-
* @returns Partial<T>
|
|
8
|
-
* @example sparseFormData<UserCreate>(this.userForm, initUser)
|
|
9
|
-
*/
|
|
10
|
-
export declare function sparseFormData<T>(form: FormGroup, compareData: T): T;
|
|
11
|
-
/**
|
|
12
|
-
* Accepts a FormArray and removes empty strings
|
|
13
|
-
* @param formArray - FormArray
|
|
14
|
-
* @returns FormArray
|
|
15
|
-
*/
|
|
16
|
-
export declare function cleanStringFormArray(formArray: FormArray): FormArray;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PermissionScope } from '@cccteam/ccc-lib/src/types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class HasPermissionDirective {
|
|
4
|
-
private templateRef;
|
|
5
|
-
private viewContainer;
|
|
6
|
-
private store;
|
|
7
|
-
private scope;
|
|
8
|
-
set cccHasPermission(scope: PermissionScope);
|
|
9
|
-
constructor();
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HasPermissionDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HasPermissionDirective, "[cccHasPermission]", never, { "cccHasPermission": { "alias": "cccHasPermission"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { SessionInfo } from '@cccteam/ccc-lib/src/types';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthService {
|
|
6
|
-
private http;
|
|
7
|
-
private apiUrl;
|
|
8
|
-
constructor(http: HttpClient, apiUrl: string);
|
|
9
|
-
/**
|
|
10
|
-
* Logs a user out.
|
|
11
|
-
*
|
|
12
|
-
* @returns Observable with a boolean indicating whether they were logged out.
|
|
13
|
-
*/
|
|
14
|
-
logout(): Observable<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Checks a user's session with the server.
|
|
17
|
-
*
|
|
18
|
-
* @returns Observable with the user session info
|
|
19
|
-
*/
|
|
20
|
-
checkUserSession(): Observable<SessionInfo | null>;
|
|
21
|
-
loginRoute(): string;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Permission, PermissionScope, Resource, SessionInfo } from '@cccteam/ccc-lib/src/types';
|
|
2
|
-
import { StateContext } from '@ngxs/store';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface AuthStateModel {
|
|
6
|
-
authenticated: boolean;
|
|
7
|
-
redirectUrl: string;
|
|
8
|
-
sessionInfo: SessionInfo | null;
|
|
9
|
-
}
|
|
10
|
-
export declare const initState: AuthStateModel;
|
|
11
|
-
export declare class AuthState {
|
|
12
|
-
private authService;
|
|
13
|
-
private static permissionFn;
|
|
14
|
-
constructor();
|
|
15
|
-
private static initializePermissionFn;
|
|
16
|
-
static hasPermission(state: AuthStateModel): (scope?: PermissionScope) => boolean;
|
|
17
|
-
static requiresPermission(resource: Resource, permission: Permission): boolean;
|
|
18
|
-
static isAuthenticated(state: AuthStateModel): boolean;
|
|
19
|
-
static redirectUrl(state: AuthStateModel): string;
|
|
20
|
-
checkUserSession(ctx: StateContext<AuthStateModel>): Observable<SessionInfo | null>;
|
|
21
|
-
logout(ctx: StateContext<AuthStateModel>): Observable<boolean>;
|
|
22
|
-
setRedirectUrl(ctx: StateContext<AuthStateModel>, action: {
|
|
23
|
-
redirectUrl: string;
|
|
24
|
-
}): AuthStateModel;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthState, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthState>;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './auth.state';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { CreateNotificationMessage } from './notification-message';
|
|
2
|
-
export declare namespace AuthenticationGuardAction {
|
|
3
|
-
class SetRedirectUrl {
|
|
4
|
-
redirectUrl: string;
|
|
5
|
-
static readonly type = "[AuthenticationGuard] Set Redirect Url And Navigate To Login Page";
|
|
6
|
-
constructor(redirectUrl: string);
|
|
7
|
-
}
|
|
8
|
-
class CheckUserSession {
|
|
9
|
-
static readonly type = "[AuthenticationGuard] Check User Session";
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export declare namespace LoginAction {
|
|
13
|
-
class Logout {
|
|
14
|
-
static readonly type = "[Login] Auto Logout";
|
|
15
|
-
}
|
|
16
|
-
class SetRedirectUrl {
|
|
17
|
-
redirectUrl: string;
|
|
18
|
-
static readonly type = "[Login] Set Redirect Url";
|
|
19
|
-
constructor(redirectUrl: string);
|
|
20
|
-
}
|
|
21
|
-
class PublishError {
|
|
22
|
-
message: CreateNotificationMessage;
|
|
23
|
-
static readonly type = "[Login] Publish Error";
|
|
24
|
-
constructor(message: CreateNotificationMessage);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export declare namespace AppAction {
|
|
28
|
-
class CheckUserSession {
|
|
29
|
-
static readonly type = "[App] Check User Session";
|
|
30
|
-
}
|
|
31
|
-
class SetRedirectUrl {
|
|
32
|
-
redirectUrl: string;
|
|
33
|
-
static readonly type = "[App] Set Redirect Url";
|
|
34
|
-
constructor(redirectUrl: string);
|
|
35
|
-
}
|
|
36
|
-
class SetNavIdentifier {
|
|
37
|
-
identifier: string;
|
|
38
|
-
static readonly type = "[App] Set Nav Identifier";
|
|
39
|
-
constructor(identifier: string);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CreateNotificationMessage } from './notification-message';
|
|
2
|
-
export declare namespace ApiInterceptorAction {
|
|
3
|
-
class BeginActivity {
|
|
4
|
-
process: string;
|
|
5
|
-
static readonly type = "[ApiInterceptor] Add Loading Activity";
|
|
6
|
-
constructor(process: string);
|
|
7
|
-
}
|
|
8
|
-
class EndActivity {
|
|
9
|
-
process: string;
|
|
10
|
-
static readonly type = "[ApiInterceptor] Remove Loading Activity";
|
|
11
|
-
constructor(process: string);
|
|
12
|
-
}
|
|
13
|
-
class PublishError {
|
|
14
|
-
message: CreateNotificationMessage;
|
|
15
|
-
static readonly type = "[ApiInterceptor] Publish Error";
|
|
16
|
-
constructor(message: CreateNotificationMessage);
|
|
17
|
-
}
|
|
18
|
-
class SetRedirectUrl {
|
|
19
|
-
redirectUrl: string;
|
|
20
|
-
static readonly type = "[ApiInterceptor] Set Redirect Url";
|
|
21
|
-
constructor(redirectUrl: string);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export declare namespace HeaderAction {
|
|
25
|
-
class ToggleSidenav {
|
|
26
|
-
static readonly type = "[Header] Toggle Sidenav";
|
|
27
|
-
}
|
|
28
|
-
class Logout {
|
|
29
|
-
static readonly type = "[Header] User Logout";
|
|
30
|
-
}
|
|
31
|
-
}
|
package/src/types/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum AlertLevel {
|
|
2
|
-
ERROR = "warn",
|
|
3
|
-
INFO = "accent",
|
|
4
|
-
SUCCESS = "success"
|
|
5
|
-
}
|
|
6
|
-
export interface CreateNotificationMessage {
|
|
7
|
-
duration?: number;
|
|
8
|
-
message: string;
|
|
9
|
-
link: string;
|
|
10
|
-
level: AlertLevel;
|
|
11
|
-
}
|
|
12
|
-
export interface NotificationMessage {
|
|
13
|
-
id: number;
|
|
14
|
-
duration?: number;
|
|
15
|
-
message: string;
|
|
16
|
-
link: string;
|
|
17
|
-
level: AlertLevel;
|
|
18
|
-
}
|
package/src/types/tokens.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Domain, Permission, Resource } from './permissions';
|
|
3
|
-
export declare const BASE_URL: InjectionToken<string>;
|
|
4
|
-
export declare const API_URL: InjectionToken<string>;
|
|
5
|
-
export declare const PERMISSION_REQUIRED: InjectionToken<(resource: Resource, permission: Permission) => boolean>;
|
|
6
|
-
export declare const AVAILABLE_PERMISSIONS: InjectionToken<{
|
|
7
|
-
Create: Permission;
|
|
8
|
-
Delete: Permission;
|
|
9
|
-
List: Permission;
|
|
10
|
-
Read: Permission;
|
|
11
|
-
Update: Permission;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const AVAILABLE_DOMAINS: InjectionToken<Record<string, Domain>[]>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { NotificationMessage } from '@cccteam/ccc-lib/src/types';
|
|
3
|
-
import { NotificationService } from '@cccteam/ccc-lib/src/ui-notification-service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AlertComponent implements OnInit {
|
|
6
|
-
error: NotificationMessage;
|
|
7
|
-
dismiss: EventEmitter<any>;
|
|
8
|
-
errors: NotificationService;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
dismissAlert(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "ccc-alert", never, { "error": { "alias": "error"; "required": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
|
|
13
|
-
}
|
package/src/ui-alert/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AppAction, CreateNotificationMessage } from '@cccteam/ccc-lib/src/types';
|
|
2
|
-
import { StateContext } from '@ngxs/store';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
interface CoreStateModel {
|
|
5
|
-
loading: string[];
|
|
6
|
-
sidenavOpened: boolean;
|
|
7
|
-
currentSidenavIdentifier: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class CoreState {
|
|
10
|
-
private notifications;
|
|
11
|
-
static sidenavOpened(state: CoreStateModel): boolean;
|
|
12
|
-
static isLoading(state: CoreStateModel): boolean;
|
|
13
|
-
static currentSidenavIdentifier(state: CoreStateModel): string;
|
|
14
|
-
setNavIdentifier(ctx: StateContext<CoreStateModel>, action: AppAction.SetNavIdentifier): void;
|
|
15
|
-
publishError(ctx: StateContext<CoreStateModel>, action: {
|
|
16
|
-
message: CreateNotificationMessage;
|
|
17
|
-
}): void;
|
|
18
|
-
beginActivity(ctx: StateContext<CoreStateModel>, action: {
|
|
19
|
-
process: string;
|
|
20
|
-
}): CoreStateModel;
|
|
21
|
-
endActivity(ctx: StateContext<CoreStateModel>, action: {
|
|
22
|
-
process: string;
|
|
23
|
-
}): CoreStateModel | null;
|
|
24
|
-
toggleSidenav(ctx: StateContext<CoreStateModel>): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoreState, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CoreState>;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './core.state';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ApiInterceptor implements HttpInterceptor {
|
|
5
|
-
private store;
|
|
6
|
-
private router;
|
|
7
|
-
private ngZone;
|
|
8
|
-
private baseUrl;
|
|
9
|
-
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInterceptor, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInterceptor>;
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CreateNotificationMessage, NotificationMessage } from '@cccteam/ccc-lib/src/types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NotificationService {
|
|
4
|
-
private notificationId;
|
|
5
|
-
private _notifications;
|
|
6
|
-
notifications: import("@angular/core").Signal<NotificationMessage[]>;
|
|
7
|
-
/**
|
|
8
|
-
* Adds a new global notification.
|
|
9
|
-
* @param notification The notification message to add.
|
|
10
|
-
* @returns The unique ID assigned to the notification.
|
|
11
|
-
*/
|
|
12
|
-
addGlobalNotification(notification: CreateNotificationMessage): number;
|
|
13
|
-
/**
|
|
14
|
-
* Dismisses a global notification by its ID.
|
|
15
|
-
* @param notificationId The ID of the notification to dismiss.
|
|
16
|
-
*/
|
|
17
|
-
dismissGlobalNotificationById(notificationId: number): void;
|
|
18
|
-
/**
|
|
19
|
-
* Dismisses a specific global notification.
|
|
20
|
-
* @param notification The notification to dismiss.
|
|
21
|
-
*/
|
|
22
|
-
dismissGlobalNotification(notification: NotificationMessage): void;
|
|
23
|
-
/**
|
|
24
|
-
* Updates an existing notification.
|
|
25
|
-
* @param updatedNotification The notification with updated information.
|
|
26
|
-
*/
|
|
27
|
-
updateNotification(updatedNotification: NotificationMessage): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { PermissionScope } from '@cccteam/ccc-lib/src/types';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface NavItem {
|
|
6
|
-
type: 'link' | 'header' | 'expandable';
|
|
7
|
-
routerLink?: string[];
|
|
8
|
-
label: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
permission?: PermissionScope;
|
|
11
|
-
children?: NavItem[];
|
|
12
|
-
isExpanded?: boolean;
|
|
13
|
-
attentionCount?: Observable<number>;
|
|
14
|
-
}
|
|
15
|
-
export type NavGroups = Record<string, NavItem[]>;
|
|
16
|
-
export declare class SidenavComponent implements OnInit {
|
|
17
|
-
private store;
|
|
18
|
-
private destroyRef;
|
|
19
|
-
navGroups?: NavGroups;
|
|
20
|
-
currentNav: NavItem[];
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Updates the currentNav based on the identifier
|
|
24
|
-
* @param identifier
|
|
25
|
-
* @returns NavItem[]
|
|
26
|
-
* @memberof SidenavComponent
|
|
27
|
-
*/
|
|
28
|
-
updateNavItems(identifier: string): NavItem[];
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "ccc-sidenav", never, { "navGroups": { "alias": "navGroups"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpContext, HttpContextToken } from '@angular/common/http';
|
|
2
|
-
export interface CustomHttpRequestOptions {
|
|
3
|
-
suppressGlobalError: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const CUSTOM_HTTP_REQUEST_OPTIONS: HttpContextToken<CustomHttpRequestOptions>;
|
|
6
|
-
export declare function errorOptions(suppressGlobalError: boolean | undefined): {
|
|
7
|
-
context: HttpContext;
|
|
8
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|