@cccteam/ccc-lib 0.0.15 → 0.0.16
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/README.md +38 -13
- package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs +36 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs +25 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs +83 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs +44 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs +82 -0
- package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs +33 -0
- package/fesm2022/cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ccc-grid.mjs +256 -0
- package/fesm2022/cccteam-ccc-lib-src-ccc-grid.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs +3129 -0
- package/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-forms.mjs +79 -0
- package/fesm2022/cccteam-ccc-lib-src-forms.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-internal-types.mjs +6 -0
- package/fesm2022/cccteam-ccc-lib-src-internal-types.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-types.mjs +431 -0
- package/fesm2022/cccteam-ccc-lib-src-types.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs +48 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs +41 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-idle-service.mjs +157 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-idle-service.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs +50 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs +63 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs +60 -0
- package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs +19 -0
- package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib.mjs +4444 -0
- package/fesm2022/cccteam-ccc-lib.mjs.map +1 -0
- package/package.json +88 -5
- package/types/cccteam-ccc-lib-src-auth-authentication-guard.d.ts +6 -0
- package/types/cccteam-ccc-lib-src-auth-authorization-guard.d.ts +6 -0
- package/types/cccteam-ccc-lib-src-auth-forms.d.ts +28 -0
- package/types/cccteam-ccc-lib-src-auth-has-permission.d.ts +15 -0
- package/types/cccteam-ccc-lib-src-auth-service.d.ts +38 -0
- package/types/cccteam-ccc-lib-src-ccc-camel-case-to-title.d.ts +10 -0
- package/types/cccteam-ccc-lib-src-ccc-grid.d.ts +35 -0
- package/types/cccteam-ccc-lib-src-ccc-resource.d.ts +674 -0
- package/types/cccteam-ccc-lib-src-forms.d.ts +27 -0
- package/types/cccteam-ccc-lib-src-types.d.ts +934 -0
- package/types/cccteam-ccc-lib-src-ui-alert.d.ts +16 -0
- package/types/cccteam-ccc-lib-src-ui-core-service.d.ts +20 -0
- package/types/cccteam-ccc-lib-src-ui-idle-service.d.ts +49 -0
- package/types/cccteam-ccc-lib-src-ui-interceptor.d.ts +16 -0
- package/types/cccteam-ccc-lib-src-ui-notification-service.d.ts +33 -0
- package/types/cccteam-ccc-lib-src-ui-sidenav.d.ts +33 -0
- package/types/cccteam-ccc-lib-src-util-request-options.d.ts +12 -0
- package/types/cccteam-ccc-lib.d.ts +1877 -0
- package/eslint.config.js +0 -32
- package/ng-package.json +0 -11
- package/src/auth-authentication-guard/authentication.guard.ts +0 -40
- package/src/auth-authentication-guard/index.ts +0 -1
- package/src/auth-authentication-guard/ng-package.json +0 -6
- package/src/auth-authorization-guard/authorization.guard.ts +0 -17
- package/src/auth-authorization-guard/index.ts +0 -1
- package/src/auth-authorization-guard/ng-package.json +0 -6
- package/src/auth-forms/ccc-field/ccc-field.component.html +0 -1
- package/src/auth-forms/ccc-field/ccc-field.component.scss +0 -0
- package/src/auth-forms/ccc-field/ccc-field.component.spec.ts +0 -22
- package/src/auth-forms/ccc-field/ccc-field.component.ts +0 -74
- package/src/auth-forms/form-helpers.ts +0 -39
- package/src/auth-forms/index.ts +0 -3
- package/src/auth-forms/ng-package.json +0 -6
- package/src/auth-has-permission/has-permission.directive.ts +0 -34
- package/src/auth-has-permission/index.ts +0 -1
- package/src/auth-has-permission/ng-package.json +0 -6
- package/src/auth-service/auth.service.ts +0 -92
- package/src/auth-service/index.ts +0 -1
- package/src/auth-service/ng-package.json +0 -6
- package/src/ccc-camel-case-to-title/camel-case-to-title.pipe.ts +0 -23
- package/src/ccc-camel-case-to-title/index.ts +0 -1
- package/src/ccc-camel-case-to-title/ng-package.json +0 -6
- package/src/ccc-grid/ccc-grid.component.ts +0 -155
- package/src/ccc-grid/index.ts +0 -3
- package/src/ccc-grid/ng-package.json +0 -6
- package/src/ccc-grid/table-button/table-button.component.html +0 -16
- package/src/ccc-grid/table-button/table-button.component.scss +0 -5
- package/src/ccc-grid/table-button/table-button.component.spec.ts +0 -22
- package/src/ccc-grid/table-button/table-button.component.ts +0 -49
- package/src/ccc-resource/can-deactivate.guard.ts +0 -41
- package/src/ccc-resource/compound-resource/compound-resource.component.html +0 -57
- package/src/ccc-resource/compound-resource/compound-resource.component.scss +0 -86
- package/src/ccc-resource/compound-resource/compound-resource.component.spec.ts +0 -22
- package/src/ccc-resource/compound-resource/compound-resource.component.ts +0 -158
- package/src/ccc-resource/concat-fns.ts +0 -162
- package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.html +0 -12
- 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 +0 -23
- package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.ts +0 -17
- package/src/ccc-resource/form-state.service.ts +0 -24
- package/src/ccc-resource/format-fns.ts +0 -49
- package/src/ccc-resource/gui-constants.ts +0 -88
- package/src/ccc-resource/index.ts +0 -23
- package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.html +0 -8
- 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 +0 -22
- package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.ts +0 -12
- package/src/ccc-resource/ng-package.json +0 -6
- package/src/ccc-resource/operation-types.ts +0 -19
- package/src/ccc-resource/padding-element/padding-element.component.html +0 -1
- package/src/ccc-resource/padding-element/padding-element.component.scss +0 -3
- package/src/ccc-resource/padding-element/padding-element.component.spec.ts +0 -22
- package/src/ccc-resource/padding-element/padding-element.component.ts +0 -20
- package/src/ccc-resource/resource-array-view/resource-array-view.component.html +0 -81
- package/src/ccc-resource/resource-array-view/resource-array-view.component.scss +0 -21
- package/src/ccc-resource/resource-array-view/resource-array-view.component.spec.ts +0 -22
- package/src/ccc-resource/resource-array-view/resource-array-view.component.ts +0 -143
- package/src/ccc-resource/resource-base/resource-base.component.spec.ts +0 -22
- package/src/ccc-resource/resource-base/resource-base.component.ts +0 -11
- package/src/ccc-resource/resource-cache.service.ts +0 -232
- package/src/ccc-resource/resource-create/resource-create.component.html +0 -31
- package/src/ccc-resource/resource-create/resource-create.component.scss +0 -130
- package/src/ccc-resource/resource-create/resource-create.component.spec.ts +0 -22
- package/src/ccc-resource/resource-create/resource-create.component.ts +0 -303
- package/src/ccc-resource/resource-field/base-field.directive.ts +0 -102
- package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.html +0 -16
- 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 +0 -22
- package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.ts +0 -15
- package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.html +0 -13
- 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 +0 -23
- package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.ts +0 -50
- package/src/ccc-resource/resource-field/fields/date-field/date-field.component.html +0 -22
- 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 +0 -22
- package/src/ccc-resource/resource-field/fields/date-field/date-field.component.ts +0 -14
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.html +0 -71
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.scss +0 -9
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.spec.ts +0 -22
- package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.ts +0 -207
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.html +0 -38
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.scss +0 -3
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.spec.ts +0 -22
- package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.ts +0 -87
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.html +0 -23
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.scss +0 -6
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.spec.ts +0 -22
- package/src/ccc-resource/resource-field/fields/number-field/number-field.component.ts +0 -14
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.html +0 -29
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.scss +0 -6
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.spec.ts +0 -22
- package/src/ccc-resource/resource-field/fields/text-field/text-field.component.ts +0 -23
- package/src/ccc-resource/resource-field/resource-field.component.html +0 -112
- package/src/ccc-resource/resource-field/resource-field.component.scss +0 -7
- package/src/ccc-resource/resource-field/resource-field.component.spec.ts +0 -22
- package/src/ccc-resource/resource-field/resource-field.component.ts +0 -214
- package/src/ccc-resource/resource-layout/resource-layout.component.html +0 -73
- package/src/ccc-resource/resource-layout/resource-layout.component.scss +0 -26
- package/src/ccc-resource/resource-layout/resource-layout.component.spec.ts +0 -22
- package/src/ccc-resource/resource-layout/resource-layout.component.ts +0 -176
- package/src/ccc-resource/resource-list/ resource-list.component.spec.ts +0 -22
- package/src/ccc-resource/resource-list/resource-list.component.html +0 -27
- package/src/ccc-resource/resource-list/resource-list.component.scss +0 -67
- package/src/ccc-resource/resource-list/resource-list.component.ts +0 -376
- package/src/ccc-resource/resource-list-create/resource-list-create.component.html +0 -71
- package/src/ccc-resource/resource-list-create/resource-list-create.component.scss +0 -9
- package/src/ccc-resource/resource-list-create/resource-list-create.component.spec.ts +0 -22
- package/src/ccc-resource/resource-list-create/resource-list-create.component.ts +0 -103
- package/src/ccc-resource/resource-resolver/resource-resolver.component.html +0 -1
- package/src/ccc-resource/resource-resolver/resource-resolver.component.scss +0 -0
- package/src/ccc-resource/resource-resolver/resource-resolver.component.spec.ts +0 -22
- package/src/ccc-resource/resource-resolver/resource-resolver.component.ts +0 -69
- package/src/ccc-resource/resource-store.service.ts +0 -93
- package/src/ccc-resource/resource-view/resource-view.component.html +0 -133
- package/src/ccc-resource/resource-view/resource-view.component.scss +0 -150
- package/src/ccc-resource/resource-view/resource-view.component.spec.ts +0 -22
- package/src/ccc-resource/resource-view/resource-view.component.ts +0 -354
- package/src/ccc-resource/resources-helpers.ts +0 -262
- package/src/ccc-resource/utils/validator-utils.ts +0 -6
- package/src/index.ts +0 -44
- package/src/internal-types/ng-package.json +0 -6
- package/src/types/auth.actions.ts +0 -46
- package/src/types/configs.ts +0 -952
- package/src/types/constants.ts +0 -1
- package/src/types/core.actions.ts +0 -33
- package/src/types/index.ts +0 -9
- package/src/types/ng-package.json +0 -6
- package/src/types/notification-message.ts +0 -20
- package/src/types/permissions.ts +0 -17
- package/src/types/session-info.ts +0 -10
- package/src/types/tokens.ts +0 -20
- package/src/ui-alert/alert.component.html +0 -13
- package/src/ui-alert/alert.component.scss +0 -48
- package/src/ui-alert/alert.component.spec.ts +0 -22
- package/src/ui-alert/alert.component.ts +0 -35
- package/src/ui-alert/index.ts +0 -1
- package/src/ui-alert/ng-package.json +0 -6
- package/src/ui-core-service/index.ts +0 -1
- package/src/ui-core-service/ng-package.json +0 -6
- package/src/ui-core-service/ui-core.service.ts +0 -34
- package/src/ui-interceptor/api.interceptor.spec.ts +0 -16
- package/src/ui-interceptor/api.interceptor.ts +0 -45
- package/src/ui-interceptor/index.ts +0 -1
- package/src/ui-interceptor/ng-package.json +0 -6
- package/src/ui-notification-service/index.ts +0 -1
- package/src/ui-notification-service/ng-package.json +0 -6
- package/src/ui-notification-service/notification.service.ts +0 -59
- package/src/ui-sidenav/index.ts +0 -1
- package/src/ui-sidenav/ng-package.json +0 -6
- package/src/ui-sidenav/sidenav.component.html +0 -60
- package/src/ui-sidenav/sidenav.component.scss +0 -99
- package/src/ui-sidenav/sidenav.component.spec.ts +0 -22
- package/src/ui-sidenav/sidenav.component.ts +0 -64
- package/src/util-request-options/index.ts +0 -1
- package/src/util-request-options/ng-package.json +0 -6
- package/src/util-request-options/request-options.ts +0 -17
- package/tsconfig.lib.json +0 -13
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
- /package/{src/internal-types/index.ts → types/cccteam-ccc-lib-src-internal-types.d.ts} +0 -0
|
@@ -0,0 +1,1877 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, Signal, InjectionToken, EventEmitter, ModelSignal, Injector, ResourceRef, Type, DestroyRef, ViewContainerRef, WritableSignal, PipeTransform, TemplateRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpContextToken, HttpContext, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
4
|
+
import * as _cccteam_ccc_lib_src_types from '@cccteam/ccc-lib/src/types';
|
|
5
|
+
import { SessionInfo as SessionInfo$1, PermissionScope as PermissionScope$1, Resource as Resource$1, Permission as Permission$1, CreateNotificationMessage as CreateNotificationMessage$1, Domain as Domain$1, NotificationMessage as NotificationMessage$1, ResourceMeta as ResourceMeta$1, RecordData as RecordData$1, MenuItem as MenuItem$1, DataType as DataType$1, ViewConfig as ViewConfig$1, RootConfig as RootConfig$1, ConfigElement as ConfigElement$1, RPCRecordData as RPCRecordData$1, MethodMeta as MethodMeta$1, FieldSort as FieldSort$1, ColumnConfig as ColumnConfig$1, RPCConfig as RPCConfig$1, FieldElement as FieldElement$1, Method as Method$1, RPCBaseFormData as RPCBaseFormData$1, ParentResourceConfig as ParentResourceConfig$1, ChildResourceConfig as ChildResourceConfig$1, FormatType as FormatType$1, PaddingElement as PaddingElement$1, ArrayConfig as ArrayConfig$1, ListViewConfig as ListViewConfig$1, Meta as Meta$1, FieldMeta as FieldMeta$1, RPCFieldMeta as RPCFieldMeta$1, ValidDisplayTypes as ValidDisplayTypes$1, ComponentConfig as ComponentConfig$1, ActionButtonConfig as ActionButtonConfig$1 } from '@cccteam/ccc-lib/src/types';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { NotificationService as NotificationService$1 } from '@cccteam/ccc-lib/src/ui-notification-service';
|
|
8
|
+
import { AuthService as AuthService$1 } from '@cccteam/ccc-lib/src/auth-service';
|
|
9
|
+
import { ActivatedRouteSnapshot, RouterStateSnapshot, Route, Router, ActivatedRoute, UrlTree, CanDeactivateFn } from '@angular/router';
|
|
10
|
+
import { TooltipPosition } from '@angular/material/tooltip';
|
|
11
|
+
import { ValidatorFn, AbstractControl, ValidationErrors, FormGroup } from '@angular/forms';
|
|
12
|
+
import { UiCoreService as UiCoreService$1 } from '@cccteam/ccc-lib/src/ui-core-service';
|
|
13
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
14
|
+
import { Location } from '@angular/common';
|
|
15
|
+
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
16
|
+
import { CamelCaseToTitlePipe as CamelCaseToTitlePipe$1 } from '@cccteam/ccc-lib/src/ccc-camel-case-to-title';
|
|
17
|
+
import { SelectableSettings } from '@progress/kendo-angular-grid';
|
|
18
|
+
|
|
19
|
+
declare class AuthService {
|
|
20
|
+
private apiUrl;
|
|
21
|
+
private loginUrl;
|
|
22
|
+
private sessionUrl;
|
|
23
|
+
http: HttpClient;
|
|
24
|
+
private authenticatedSignal;
|
|
25
|
+
private sessionInfoSignal;
|
|
26
|
+
redirectUrl: _angular_core.WritableSignal<string>;
|
|
27
|
+
authenticated: _angular_core.Signal<boolean>;
|
|
28
|
+
sessionInfo: _angular_core.Signal<SessionInfo$1>;
|
|
29
|
+
constructor();
|
|
30
|
+
private static permissionFn;
|
|
31
|
+
hasPermission(scope?: PermissionScope$1): boolean;
|
|
32
|
+
static requiresPermission(resource: Resource$1, permission: Permission$1): boolean;
|
|
33
|
+
private initializePermissionFn;
|
|
34
|
+
/**
|
|
35
|
+
* Logs a user out.
|
|
36
|
+
*
|
|
37
|
+
* @returns Observable with a boolean indicating whether they were logged out.
|
|
38
|
+
*/
|
|
39
|
+
logout(): Observable<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Checks a user's session with the server.
|
|
42
|
+
*
|
|
43
|
+
* @returns Observable with the user session info
|
|
44
|
+
*/
|
|
45
|
+
checkUserSession(): Observable<SessionInfo$1>;
|
|
46
|
+
loginRoute(): string;
|
|
47
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthService, never>;
|
|
48
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuthService>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class UiCoreService {
|
|
52
|
+
notifications: NotificationService$1;
|
|
53
|
+
loadingSignal: _angular_core.WritableSignal<string[]>;
|
|
54
|
+
sidenavOpened: _angular_core.WritableSignal<boolean>;
|
|
55
|
+
currentSidenavIdentifier: _angular_core.WritableSignal<string>;
|
|
56
|
+
private loading;
|
|
57
|
+
isLoading: _angular_core.Signal<boolean>;
|
|
58
|
+
publishError(message: CreateNotificationMessage$1): void;
|
|
59
|
+
beginActivity(process: string): void;
|
|
60
|
+
endActivity(process: string): void;
|
|
61
|
+
toggleSidenav(): void;
|
|
62
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiCoreService, never>;
|
|
63
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<UiCoreService>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare class HasPermissionDirective {
|
|
67
|
+
private auth;
|
|
68
|
+
private templateRef;
|
|
69
|
+
private viewContainer;
|
|
70
|
+
private scope;
|
|
71
|
+
set cccHasPermission(scope: PermissionScope$1);
|
|
72
|
+
constructor();
|
|
73
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HasPermissionDirective, never>;
|
|
74
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HasPermissionDirective, "[cccHasPermission]", never, { "cccHasPermission": { "alias": "cccHasPermission"; "required": false; }; }, {}, never, never, true, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare enum InputMode {
|
|
78
|
+
Read = "read",
|
|
79
|
+
Edit = "edit"
|
|
80
|
+
}
|
|
81
|
+
declare class CccInputFieldComponent implements OnInit {
|
|
82
|
+
auth: AuthService$1;
|
|
83
|
+
className: _angular_core.InputSignal<unknown>;
|
|
84
|
+
mode: _angular_core.InputSignal<InputMode>;
|
|
85
|
+
resource: _angular_core.InputSignal<Resource$1>;
|
|
86
|
+
domain: _angular_core.InputSignal<Domain$1>;
|
|
87
|
+
value: _angular_core.InputSignal<unknown>;
|
|
88
|
+
name: _angular_core.InputSignal<string>;
|
|
89
|
+
inputMode: typeof InputMode;
|
|
90
|
+
canEdit: Signal<boolean>;
|
|
91
|
+
canEditSelector: boolean;
|
|
92
|
+
canRead: Signal<boolean>;
|
|
93
|
+
canReadSelector: boolean;
|
|
94
|
+
ngOnInit(): void;
|
|
95
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CccInputFieldComponent, never>;
|
|
96
|
+
static ɵcmp: _angular_core.ɵɵ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>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare const AuthenticationGuard: (route: ActivatedRouteSnapshot, routerState: RouterStateSnapshot) => Observable<boolean>;
|
|
100
|
+
|
|
101
|
+
declare const AuthorizationGuard: (route: ActivatedRouteSnapshot) => Signal<boolean>;
|
|
102
|
+
|
|
103
|
+
interface CustomHttpRequestOptions {
|
|
104
|
+
suppressGlobalError: boolean;
|
|
105
|
+
}
|
|
106
|
+
declare const CUSTOM_HTTP_REQUEST_OPTIONS: HttpContextToken<CustomHttpRequestOptions>;
|
|
107
|
+
declare function errorOptions(suppressGlobalError: boolean | undefined): {
|
|
108
|
+
context: HttpContext;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
type Brand<K, T> = K & {
|
|
112
|
+
__brand: T;
|
|
113
|
+
};
|
|
114
|
+
type Permission = Brand<string, 'Permission'>;
|
|
115
|
+
type Resource = Brand<string, 'Resource'>;
|
|
116
|
+
type Domain = Brand<string, 'Domain'>;
|
|
117
|
+
type FieldName = Brand<string, 'FieldName'>;
|
|
118
|
+
type Method = Brand<string, 'Method'>;
|
|
119
|
+
type DomainPermissions = Record<Domain, Record<Resource, Record<Permission, Permissions>>>;
|
|
120
|
+
interface PermissionScope {
|
|
121
|
+
resource: Resource;
|
|
122
|
+
permission: Permission;
|
|
123
|
+
domain: Domain;
|
|
124
|
+
}
|
|
125
|
+
declare const ReadPermission: Permission;
|
|
126
|
+
declare const UpdatePermission: Permission;
|
|
127
|
+
|
|
128
|
+
declare const defaultEmptyFieldValue = "-";
|
|
129
|
+
type NullBoolean = null | true | false;
|
|
130
|
+
type ConcatFn = 'space-concat' | 'hyphen-concat' | 'space-hyphen-concat' | 'hyphen-space-concat';
|
|
131
|
+
|
|
132
|
+
declare const validatorsPresent: (control: AbstractControl<unknown, unknown>, validators: ValidatorFn[], previousValidatorCount: number) => boolean;
|
|
133
|
+
declare const requiredIf: (predicate: () => boolean, validator: ValidatorFn) => (formControl: AbstractControl) => ValidationErrors | null;
|
|
134
|
+
declare const __singletonValidatorBrand: unique symbol;
|
|
135
|
+
type ResourceValidatorFn = ValidatorFn & {
|
|
136
|
+
readonly [__singletonValidatorBrand]: true;
|
|
137
|
+
};
|
|
138
|
+
declare function createResourceValidator(validator: ValidatorFn): ResourceValidatorFn;
|
|
139
|
+
|
|
140
|
+
interface FieldPointer {
|
|
141
|
+
field: FieldName;
|
|
142
|
+
}
|
|
143
|
+
interface MenuItem {
|
|
144
|
+
label: string;
|
|
145
|
+
route?: string[];
|
|
146
|
+
children?: MenuItem[];
|
|
147
|
+
}
|
|
148
|
+
interface RouteResourceData {
|
|
149
|
+
config: RootConfig;
|
|
150
|
+
}
|
|
151
|
+
type DataType = string | number | number[] | string[] | boolean | undefined | Date;
|
|
152
|
+
type RecordData = Record<string, DataType | null>;
|
|
153
|
+
type RPCDataType = string | number | string[] | number[] | boolean | Date;
|
|
154
|
+
type RPCRecordData = Record<string, RPCDataType>;
|
|
155
|
+
type RpcMethod = Record<string, DataType>;
|
|
156
|
+
type ParentResourceConfig = ListViewConfig | ViewConfig | ArrayConfig;
|
|
157
|
+
type ChildResourceConfig = ListViewConfig | ViewConfig | ComponentConfig | ArrayConfig;
|
|
158
|
+
type ActionType = 'function' | 'link';
|
|
159
|
+
type ListConcatFn = 'space-concat' | 'hyphen-concat' | 'space-hyphen-concat' | 'hyphen-space-concat' | 'no-space-concat';
|
|
160
|
+
type ConfigType = ChildResourceConfig;
|
|
161
|
+
type FormatType = 'simpleSlashDateFormat';
|
|
162
|
+
type RPCPlacement = 'inline' | 'end';
|
|
163
|
+
type ColumnConfig = SingleColumnConfig | MultiColumnConfig;
|
|
164
|
+
interface ActionButtonConfig {
|
|
165
|
+
label: string;
|
|
166
|
+
icon: string;
|
|
167
|
+
action?: (resource: {
|
|
168
|
+
id: string;
|
|
169
|
+
}) => void;
|
|
170
|
+
viewRoute?: string;
|
|
171
|
+
actionType?: ActionType;
|
|
172
|
+
color?: string;
|
|
173
|
+
disabledLabel?: string;
|
|
174
|
+
}
|
|
175
|
+
interface ActionButtonConfigOptions {
|
|
176
|
+
label: string;
|
|
177
|
+
icon: string;
|
|
178
|
+
action?: (resource: {
|
|
179
|
+
id: string;
|
|
180
|
+
}) => void;
|
|
181
|
+
viewRoute?: string;
|
|
182
|
+
actionType?: ActionType;
|
|
183
|
+
color?: string;
|
|
184
|
+
disabledLabel?: string;
|
|
185
|
+
}
|
|
186
|
+
declare function actionButtonConfig(config: ActionButtonConfigOptions): ActionButtonConfig;
|
|
187
|
+
declare const actionButtonConfigDefaults: {
|
|
188
|
+
label: string;
|
|
189
|
+
icon: string;
|
|
190
|
+
actionType: ActionType;
|
|
191
|
+
color: string;
|
|
192
|
+
disabledLabel: string;
|
|
193
|
+
};
|
|
194
|
+
interface SingleColumnConfig {
|
|
195
|
+
id: FieldName;
|
|
196
|
+
header?: string;
|
|
197
|
+
width?: number;
|
|
198
|
+
resizable?: boolean;
|
|
199
|
+
valueGetter?: (data: any) => string;
|
|
200
|
+
valueFormatter?: (data: any) => string;
|
|
201
|
+
tooltipPosition?: TooltipPosition;
|
|
202
|
+
viewRoute?: Resource;
|
|
203
|
+
buttonConfig?: ActionButtonConfig;
|
|
204
|
+
actionType?: ActionType;
|
|
205
|
+
formatType?: FormatType | string;
|
|
206
|
+
hidden?: boolean;
|
|
207
|
+
emptyDataValue?: DataType;
|
|
208
|
+
filterable?: boolean;
|
|
209
|
+
hideHeader?: boolean;
|
|
210
|
+
}
|
|
211
|
+
interface SingleColumnConfigOptions {
|
|
212
|
+
id: FieldName;
|
|
213
|
+
header?: string;
|
|
214
|
+
width?: number;
|
|
215
|
+
resizable?: boolean;
|
|
216
|
+
valueGetter?: (data: any) => string;
|
|
217
|
+
valueFormatter?: (data: any) => string;
|
|
218
|
+
tooltipPosition?: TooltipPosition;
|
|
219
|
+
viewRoute?: Resource;
|
|
220
|
+
buttonConfig?: ActionButtonConfig;
|
|
221
|
+
actionType?: ActionType;
|
|
222
|
+
formatType?: FormatType | string;
|
|
223
|
+
hidden?: boolean;
|
|
224
|
+
emptyDataValue?: DataType;
|
|
225
|
+
filterable?: boolean;
|
|
226
|
+
hideHeader?: boolean;
|
|
227
|
+
}
|
|
228
|
+
declare function singleColumnConfig(config: SingleColumnConfigOptions): SingleColumnConfig;
|
|
229
|
+
declare const singleColumnConfigDefaults: {
|
|
230
|
+
id: FieldName;
|
|
231
|
+
header: string;
|
|
232
|
+
resizable: true;
|
|
233
|
+
actionType: ActionType;
|
|
234
|
+
hidden: false;
|
|
235
|
+
filterable: true;
|
|
236
|
+
hideHeader: false;
|
|
237
|
+
};
|
|
238
|
+
interface MultiColumnConfig extends SingleColumnConfig {
|
|
239
|
+
additionalIds: AdditionalResourceConfig[];
|
|
240
|
+
concatFn: ListConcatFn;
|
|
241
|
+
}
|
|
242
|
+
interface MultiColumnConfigOptions extends SingleColumnConfigOptions {
|
|
243
|
+
additionalIds: AdditionalResourceConfig[];
|
|
244
|
+
concatFn: ListConcatFn;
|
|
245
|
+
}
|
|
246
|
+
declare function multiColumnConfig(config: MultiColumnConfigOptions): MultiColumnConfig;
|
|
247
|
+
declare const multiColumnConfigDefaults: {
|
|
248
|
+
additionalIds: AdditionalResourceConfig[];
|
|
249
|
+
concatFn: ListConcatFn;
|
|
250
|
+
id: FieldName;
|
|
251
|
+
header: string;
|
|
252
|
+
resizable: true;
|
|
253
|
+
actionType: ActionType;
|
|
254
|
+
hidden: false;
|
|
255
|
+
filterable: true;
|
|
256
|
+
hideHeader: false;
|
|
257
|
+
};
|
|
258
|
+
interface AdditionalResourceConfig {
|
|
259
|
+
resource?: Resource;
|
|
260
|
+
id: FieldName;
|
|
261
|
+
field?: FieldName;
|
|
262
|
+
hidden?: boolean;
|
|
263
|
+
}
|
|
264
|
+
interface AdditionalResourceConfigOptions {
|
|
265
|
+
id: FieldName;
|
|
266
|
+
resource?: Resource;
|
|
267
|
+
field?: FieldName;
|
|
268
|
+
hidden?: boolean;
|
|
269
|
+
}
|
|
270
|
+
declare function additionalResourceConfig(config: AdditionalResourceConfigOptions): AdditionalResourceConfig;
|
|
271
|
+
declare const additionalResourceConfigDefaults: {
|
|
272
|
+
id: FieldName;
|
|
273
|
+
resource: Resource;
|
|
274
|
+
field: FieldName;
|
|
275
|
+
hidden: false;
|
|
276
|
+
};
|
|
277
|
+
interface FieldSort {
|
|
278
|
+
field: FieldName;
|
|
279
|
+
direction: 'asc' | 'desc';
|
|
280
|
+
}
|
|
281
|
+
interface FieldSortOptions {
|
|
282
|
+
field: FieldName;
|
|
283
|
+
direction?: 'asc' | 'desc';
|
|
284
|
+
}
|
|
285
|
+
declare function fieldSort(config: FieldSortOptions): FieldSort;
|
|
286
|
+
declare const fieldSortDefaults: {
|
|
287
|
+
field: FieldName;
|
|
288
|
+
direction: "asc" | "desc";
|
|
289
|
+
};
|
|
290
|
+
interface EnumeratedConfigOptions {
|
|
291
|
+
overrideResource?: Resource;
|
|
292
|
+
filter?: (resource: any) => string;
|
|
293
|
+
/**
|
|
294
|
+
* Set disableCacheForFilterPii to `true` to promote the GET to a POST when PII is used in the filter
|
|
295
|
+
* POST requests cannot be cached
|
|
296
|
+
*/
|
|
297
|
+
disableCacheForFilterPii?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Specifies which resource data to pass to the filter function:
|
|
300
|
+
* - 'rootResource': Pass in the root resource data
|
|
301
|
+
* - 'parentResource': Pass in the parent resource data
|
|
302
|
+
* @default 'parentResource'
|
|
303
|
+
*/
|
|
304
|
+
filterType?: FilterType;
|
|
305
|
+
sorts?: FieldSort[];
|
|
306
|
+
listDisplay?: FieldName[];
|
|
307
|
+
viewDisplay: FieldName[];
|
|
308
|
+
viewConcatFn?: ConcatFn;
|
|
309
|
+
listConcatFn?: ConcatFn;
|
|
310
|
+
viewDetails?: boolean;
|
|
311
|
+
searchable?: boolean;
|
|
312
|
+
}
|
|
313
|
+
type FilterType = 'parentResource' | 'rootResource';
|
|
314
|
+
interface EnumeratedConfig {
|
|
315
|
+
overrideResource: Resource;
|
|
316
|
+
filter: (resource: any) => string;
|
|
317
|
+
disableCacheForFilterPii: boolean;
|
|
318
|
+
filterType: FilterType;
|
|
319
|
+
sorts: FieldSort[];
|
|
320
|
+
listDisplay: FieldName[];
|
|
321
|
+
viewDisplay: FieldName[];
|
|
322
|
+
viewConcatFn: ConcatFn;
|
|
323
|
+
listConcatFn: ConcatFn;
|
|
324
|
+
viewDetails: boolean;
|
|
325
|
+
searchable: boolean;
|
|
326
|
+
}
|
|
327
|
+
declare function enumeratedConfig(config: EnumeratedConfigOptions): EnumeratedConfig;
|
|
328
|
+
declare const enumeratedConfigDefaults: {
|
|
329
|
+
overrideResource: Resource;
|
|
330
|
+
filter: () => string;
|
|
331
|
+
disableCacheForFilterPii: boolean;
|
|
332
|
+
filterType: FilterType;
|
|
333
|
+
sorts: FieldSort[];
|
|
334
|
+
listDisplay: FieldName[];
|
|
335
|
+
viewDisplay: FieldName[];
|
|
336
|
+
viewConcatFn: ConcatFn;
|
|
337
|
+
listConcatFn: ConcatFn;
|
|
338
|
+
viewDetails: boolean;
|
|
339
|
+
searchable: boolean;
|
|
340
|
+
};
|
|
341
|
+
type FieldDefault = ForeignKeyDefault | StaticDefault | null;
|
|
342
|
+
interface NullBooleanConfigOptions {
|
|
343
|
+
displayValues?: Record<'null' | 'true' | 'false', {
|
|
344
|
+
label: string;
|
|
345
|
+
value: NullBoolean;
|
|
346
|
+
}>;
|
|
347
|
+
}
|
|
348
|
+
interface NullBooleanConfig {
|
|
349
|
+
/** This property maps the three possible values for this
|
|
350
|
+
* nullboolean field with the display values users will see
|
|
351
|
+
* on the screen for each
|
|
352
|
+
*/
|
|
353
|
+
displayValues: Record<'null' | 'true' | 'false', {
|
|
354
|
+
label: string;
|
|
355
|
+
value: NullBoolean;
|
|
356
|
+
}>;
|
|
357
|
+
}
|
|
358
|
+
declare function nullBooleanConfig(config: NullBooleanConfigOptions): NullBooleanConfig;
|
|
359
|
+
declare const nullBooleanConfigDefaults: {
|
|
360
|
+
displayValues: Readonly<{
|
|
361
|
+
null: {
|
|
362
|
+
label: string;
|
|
363
|
+
value: null;
|
|
364
|
+
};
|
|
365
|
+
true: {
|
|
366
|
+
label: string;
|
|
367
|
+
value: boolean;
|
|
368
|
+
};
|
|
369
|
+
false: {
|
|
370
|
+
label: string;
|
|
371
|
+
value: boolean;
|
|
372
|
+
};
|
|
373
|
+
}>;
|
|
374
|
+
};
|
|
375
|
+
interface ForeignKeyDefaultOptions {
|
|
376
|
+
parentId: FieldName;
|
|
377
|
+
}
|
|
378
|
+
interface ForeignKeyDefault {
|
|
379
|
+
type: 'foreignKey';
|
|
380
|
+
parentId: FieldName;
|
|
381
|
+
}
|
|
382
|
+
declare function foreignKeyDefault(config: ForeignKeyDefaultOptions): ForeignKeyDefault;
|
|
383
|
+
declare const foreignKeyDefaultDefaults: {
|
|
384
|
+
type: "foreignKey";
|
|
385
|
+
parentId: FieldName;
|
|
386
|
+
};
|
|
387
|
+
interface StaticDefault {
|
|
388
|
+
type: 'static';
|
|
389
|
+
value: string | boolean;
|
|
390
|
+
}
|
|
391
|
+
interface staticDefaultOptions {
|
|
392
|
+
value: string | boolean;
|
|
393
|
+
}
|
|
394
|
+
declare function staticDefault(config: staticDefaultOptions): StaticDefault;
|
|
395
|
+
declare const staticDefaultDefaults: {
|
|
396
|
+
type: "static";
|
|
397
|
+
value: string;
|
|
398
|
+
};
|
|
399
|
+
type Affix = string | remoteData | parentData;
|
|
400
|
+
interface remoteData {
|
|
401
|
+
resource: Resource;
|
|
402
|
+
id: FieldName;
|
|
403
|
+
field: FieldName;
|
|
404
|
+
}
|
|
405
|
+
interface parentData {
|
|
406
|
+
field: FieldName;
|
|
407
|
+
}
|
|
408
|
+
type ConfigElement = FieldElement | SectionElement | ComputedDisplayFieldElement | PaddingElement;
|
|
409
|
+
type ColSize = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
410
|
+
interface ComputedDisplayFieldElementOptions {
|
|
411
|
+
label?: string;
|
|
412
|
+
class?: string;
|
|
413
|
+
cols?: ColSize;
|
|
414
|
+
calculatedValue?: (data: any) => string;
|
|
415
|
+
shouldRender?: ((data: any) => boolean) | boolean;
|
|
416
|
+
}
|
|
417
|
+
interface ComputedDisplayFieldElement {
|
|
418
|
+
type: 'computedDisplayField';
|
|
419
|
+
label: string;
|
|
420
|
+
class: string;
|
|
421
|
+
cols: ColSize;
|
|
422
|
+
calculatedValue: (data: any) => string;
|
|
423
|
+
shouldRender: ((data: any) => boolean) | boolean;
|
|
424
|
+
}
|
|
425
|
+
declare function computedDisplayField(config: ComputedDisplayFieldElementOptions): ComputedDisplayFieldElement;
|
|
426
|
+
declare const computedDisplayFieldElementDefaults: {
|
|
427
|
+
type: "computedDisplayField";
|
|
428
|
+
label: string;
|
|
429
|
+
class: string;
|
|
430
|
+
cols: 6;
|
|
431
|
+
calculatedValue: () => string;
|
|
432
|
+
shouldRender: true;
|
|
433
|
+
};
|
|
434
|
+
interface PaddingElementOptions {
|
|
435
|
+
cols?: ColSize;
|
|
436
|
+
shouldRender?: ((data: any) => boolean) | boolean;
|
|
437
|
+
}
|
|
438
|
+
interface PaddingElement {
|
|
439
|
+
type: 'padding';
|
|
440
|
+
cols: ColSize;
|
|
441
|
+
/** Determines whether the padding is shown
|
|
442
|
+
*/
|
|
443
|
+
shouldRender: ((data: any) => boolean) | boolean;
|
|
444
|
+
}
|
|
445
|
+
declare function padding(config?: PaddingElementOptions): PaddingElement;
|
|
446
|
+
declare const paddingElementDefaults: {
|
|
447
|
+
type: "padding";
|
|
448
|
+
cols: 12;
|
|
449
|
+
shouldRender: true;
|
|
450
|
+
};
|
|
451
|
+
interface SectionElementOptions {
|
|
452
|
+
label?: string;
|
|
453
|
+
class?: string;
|
|
454
|
+
cols?: ColSize;
|
|
455
|
+
shouldRender?: ((data: any) => boolean) | boolean;
|
|
456
|
+
nullAllChildrenIfConditionallyHidden?: boolean;
|
|
457
|
+
children?: ConfigElement[];
|
|
458
|
+
}
|
|
459
|
+
interface SectionElement {
|
|
460
|
+
type: 'section';
|
|
461
|
+
label: string;
|
|
462
|
+
class: string;
|
|
463
|
+
cols: ColSize;
|
|
464
|
+
/**
|
|
465
|
+
* shouldRender is used to determine if the section should be
|
|
466
|
+
* displayed to users.
|
|
467
|
+
* When assigning shouldRender a function, the first argument
|
|
468
|
+
* is the current state of the resource being displayed
|
|
469
|
+
* Hides the layout AND all of its children
|
|
470
|
+
*/
|
|
471
|
+
shouldRender: ((data: any) => boolean) | boolean;
|
|
472
|
+
/** If shouldRender is NOT a function, this property does nothing
|
|
473
|
+
* If shouldRender is a function, this property
|
|
474
|
+
* sets children's values to null if shouldRender hides it (returns false)
|
|
475
|
+
* within the resource-layout.component
|
|
476
|
+
*/
|
|
477
|
+
nullAllChildrenIfConditionallyHidden: boolean;
|
|
478
|
+
children: ConfigElement[];
|
|
479
|
+
}
|
|
480
|
+
declare function section(config: SectionElementOptions): SectionElement;
|
|
481
|
+
declare const sectionElementDefaults: {
|
|
482
|
+
type: "section";
|
|
483
|
+
label: string;
|
|
484
|
+
class: string;
|
|
485
|
+
cols: 12;
|
|
486
|
+
shouldRender: true;
|
|
487
|
+
nullAllChildrenIfConditionallyHidden: false;
|
|
488
|
+
children: never[];
|
|
489
|
+
};
|
|
490
|
+
interface FieldElementOptions {
|
|
491
|
+
name: FieldName;
|
|
492
|
+
label?: string;
|
|
493
|
+
cols?: ColSize;
|
|
494
|
+
class?: string;
|
|
495
|
+
enumeratedConfig?: EnumeratedConfig;
|
|
496
|
+
default?: FieldDefault;
|
|
497
|
+
nullBooleanConfig?: NullBooleanConfig;
|
|
498
|
+
validators?: ((data: any) => ResourceValidatorFn[]) | ResourceValidatorFn[];
|
|
499
|
+
readOnly?: boolean;
|
|
500
|
+
prefixes?: Affix[];
|
|
501
|
+
suffixes?: Affix[];
|
|
502
|
+
shouldRender?: ((data: any) => boolean) | boolean;
|
|
503
|
+
nullIfConditionallyHidden?: boolean;
|
|
504
|
+
}
|
|
505
|
+
interface FieldElement {
|
|
506
|
+
type: 'field';
|
|
507
|
+
name: string;
|
|
508
|
+
label: string;
|
|
509
|
+
cols: ColSize;
|
|
510
|
+
class: string;
|
|
511
|
+
enumeratedConfig: EnumeratedConfig;
|
|
512
|
+
default: FieldDefault;
|
|
513
|
+
nullBooleanConfig: NullBooleanConfig;
|
|
514
|
+
/**
|
|
515
|
+
* A list of validators that must pass to allow a field to be submitted.
|
|
516
|
+
* Utilize existing validators in the resourceValidators object, and
|
|
517
|
+
* add any new or custom validators to it
|
|
518
|
+
*/
|
|
519
|
+
validators: ((data: any) => ResourceValidatorFn[]) | ResourceValidatorFn[];
|
|
520
|
+
readOnly: boolean;
|
|
521
|
+
prefixes: Affix[];
|
|
522
|
+
suffixes: Affix[];
|
|
523
|
+
/**
|
|
524
|
+
* shouldRender is used to determine if the element should be
|
|
525
|
+
* displayed to users.
|
|
526
|
+
* When assigning shouldRender a function, the first argument
|
|
527
|
+
* is the current state of the resource being displayed
|
|
528
|
+
*/
|
|
529
|
+
shouldRender: ((data: any) => boolean) | boolean;
|
|
530
|
+
/** If shouldRender is NOT a function, this property does nothing
|
|
531
|
+
* If shouldRender is a function, this property
|
|
532
|
+
* determines whether the form control associated
|
|
533
|
+
* with this config element should have its value
|
|
534
|
+
* set to null if shouldRender hides it (returns false)
|
|
535
|
+
*/
|
|
536
|
+
nullIfConditionallyHidden: boolean;
|
|
537
|
+
}
|
|
538
|
+
declare function field(config: FieldElementOptions): FieldElement;
|
|
539
|
+
declare const fieldElementDefaults: {
|
|
540
|
+
type: "field";
|
|
541
|
+
name: string;
|
|
542
|
+
label: string;
|
|
543
|
+
cols: 6;
|
|
544
|
+
class: string;
|
|
545
|
+
enumeratedConfig: {
|
|
546
|
+
overrideResource: Resource;
|
|
547
|
+
filter: () => string;
|
|
548
|
+
disableCacheForFilterPii: boolean;
|
|
549
|
+
filterType: FilterType;
|
|
550
|
+
sorts: FieldSort[];
|
|
551
|
+
listDisplay: FieldName[];
|
|
552
|
+
viewDisplay: FieldName[];
|
|
553
|
+
viewConcatFn: ConcatFn;
|
|
554
|
+
listConcatFn: ConcatFn;
|
|
555
|
+
viewDetails: boolean;
|
|
556
|
+
searchable: boolean;
|
|
557
|
+
};
|
|
558
|
+
default: null;
|
|
559
|
+
validators: never[];
|
|
560
|
+
nullBooleanConfig: {
|
|
561
|
+
displayValues: Readonly<{
|
|
562
|
+
null: {
|
|
563
|
+
label: string;
|
|
564
|
+
value: null;
|
|
565
|
+
};
|
|
566
|
+
true: {
|
|
567
|
+
label: string;
|
|
568
|
+
value: boolean;
|
|
569
|
+
};
|
|
570
|
+
false: {
|
|
571
|
+
label: string;
|
|
572
|
+
value: boolean;
|
|
573
|
+
};
|
|
574
|
+
}>;
|
|
575
|
+
};
|
|
576
|
+
readOnly: false;
|
|
577
|
+
prefixes: never[];
|
|
578
|
+
suffixes: never[];
|
|
579
|
+
shouldRender: true;
|
|
580
|
+
nullIfConditionallyHidden: false;
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* RouteData is used to define the route for a config
|
|
584
|
+
* route: the route for the config
|
|
585
|
+
* hasViewRoute: when true, a route will be created for route/:uuid
|
|
586
|
+
*/
|
|
587
|
+
interface RootRouteData {
|
|
588
|
+
route?: string;
|
|
589
|
+
hasViewRoute?: boolean;
|
|
590
|
+
}
|
|
591
|
+
interface RPCConfigOptions {
|
|
592
|
+
label: string;
|
|
593
|
+
afterMethodRedirect?: string;
|
|
594
|
+
conditions: {
|
|
595
|
+
field: FieldName;
|
|
596
|
+
matchValues: string[];
|
|
597
|
+
}[];
|
|
598
|
+
methodBodyTemplate?: any;
|
|
599
|
+
successMessage?: string;
|
|
600
|
+
elements?: ConfigElement[];
|
|
601
|
+
placement?: RPCPlacement;
|
|
602
|
+
method: Method;
|
|
603
|
+
customComponent?: ComponentConfig;
|
|
604
|
+
refreshResources?: Resource[];
|
|
605
|
+
defaultModalWidth?: string;
|
|
606
|
+
shouldRender?: () => boolean;
|
|
607
|
+
}
|
|
608
|
+
interface RPCConfig {
|
|
609
|
+
label: string;
|
|
610
|
+
afterMethodRedirect: string | string[];
|
|
611
|
+
conditions: {
|
|
612
|
+
field: FieldName;
|
|
613
|
+
matchValues: string[];
|
|
614
|
+
}[];
|
|
615
|
+
methodBodyTemplate: any;
|
|
616
|
+
method: Method;
|
|
617
|
+
successMessage: string;
|
|
618
|
+
elements: ConfigElement[];
|
|
619
|
+
placement: RPCPlacement;
|
|
620
|
+
customComponent: ComponentConfig;
|
|
621
|
+
refreshResources: Resource[];
|
|
622
|
+
defaultModalWidth: string;
|
|
623
|
+
shouldRender: () => boolean;
|
|
624
|
+
}
|
|
625
|
+
declare function rpcConfig(config: RPCConfigOptions): RPCConfig;
|
|
626
|
+
declare const rpcConfigDefaults: {
|
|
627
|
+
label: string;
|
|
628
|
+
afterMethodRedirect: string;
|
|
629
|
+
conditions: {
|
|
630
|
+
field: FieldName;
|
|
631
|
+
matchValues: string[];
|
|
632
|
+
}[];
|
|
633
|
+
methodBodyTemplate: any;
|
|
634
|
+
successMessage: string;
|
|
635
|
+
elements: ConfigElement[];
|
|
636
|
+
placement: RPCPlacement;
|
|
637
|
+
method: Method;
|
|
638
|
+
customComponent: ComponentConfig;
|
|
639
|
+
refreshResources: Resource[];
|
|
640
|
+
defaultModalWidth: string;
|
|
641
|
+
shouldRender: () => boolean;
|
|
642
|
+
};
|
|
643
|
+
interface RPCBaseFormData {
|
|
644
|
+
elements: FieldElement[];
|
|
645
|
+
label: string;
|
|
646
|
+
method: Method;
|
|
647
|
+
}
|
|
648
|
+
interface RootConfigOptions {
|
|
649
|
+
routeData?: RootRouteData;
|
|
650
|
+
nav?: {
|
|
651
|
+
navItem: MenuItem;
|
|
652
|
+
group?: string;
|
|
653
|
+
};
|
|
654
|
+
parentConfig: ParentResourceConfig;
|
|
655
|
+
relatedConfigs?: ChildResourceConfig[];
|
|
656
|
+
rpcConfigs?: RPCConfig[];
|
|
657
|
+
}
|
|
658
|
+
interface RootConfig {
|
|
659
|
+
routeData: RootRouteData;
|
|
660
|
+
nav: {
|
|
661
|
+
navItem: MenuItem;
|
|
662
|
+
group?: string;
|
|
663
|
+
};
|
|
664
|
+
parentConfig: ParentResourceConfig;
|
|
665
|
+
relatedConfigs: ChildResourceConfig[];
|
|
666
|
+
rpcConfigs?: RPCConfig[];
|
|
667
|
+
}
|
|
668
|
+
declare const rootConfigDefaults: {
|
|
669
|
+
routeData: RootRouteData;
|
|
670
|
+
nav: {
|
|
671
|
+
navItem: MenuItem;
|
|
672
|
+
};
|
|
673
|
+
parentConfig: ParentResourceConfig;
|
|
674
|
+
relatedConfigs: ChildResourceConfig[];
|
|
675
|
+
rpcConfigs: RPCConfig[];
|
|
676
|
+
};
|
|
677
|
+
declare function rootConfig(config: RootConfigOptions): RootConfig;
|
|
678
|
+
interface BaseConfigOptions {
|
|
679
|
+
title?: string;
|
|
680
|
+
createTitle?: string;
|
|
681
|
+
createButtonLabel?: string;
|
|
682
|
+
primaryResource: Resource;
|
|
683
|
+
parentClass?: string;
|
|
684
|
+
fieldClass?: string;
|
|
685
|
+
elements: ConfigElement[];
|
|
686
|
+
createConfig?: ConfigType;
|
|
687
|
+
parentRelation?: {
|
|
688
|
+
parentKey: FieldName;
|
|
689
|
+
childKey: FieldName;
|
|
690
|
+
};
|
|
691
|
+
showBackButton?: boolean;
|
|
692
|
+
createNavigation?: string[];
|
|
693
|
+
}
|
|
694
|
+
interface BaseConfig {
|
|
695
|
+
title: string;
|
|
696
|
+
createTitle: string;
|
|
697
|
+
createButtonLabel: string;
|
|
698
|
+
primaryResource: Resource;
|
|
699
|
+
parentClass: string;
|
|
700
|
+
fieldClass: string;
|
|
701
|
+
elements: ConfigElement[];
|
|
702
|
+
createConfig: ConfigType;
|
|
703
|
+
parentRelation: {
|
|
704
|
+
parentKey: FieldName;
|
|
705
|
+
childKey: FieldName;
|
|
706
|
+
};
|
|
707
|
+
showBackButton: boolean;
|
|
708
|
+
createNavigation: string[];
|
|
709
|
+
}
|
|
710
|
+
type AvailableComponents = 'SwitchResolver';
|
|
711
|
+
type ConfigParam = SwitchConfigParam;
|
|
712
|
+
interface ComponentConfigOptions {
|
|
713
|
+
primaryResource: Resource;
|
|
714
|
+
component: AvailableComponents;
|
|
715
|
+
params?: ConfigParam;
|
|
716
|
+
relatedConfig?: ParentResourceConfig[];
|
|
717
|
+
shouldRenderActions?: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
718
|
+
}
|
|
719
|
+
interface ComponentConfig {
|
|
720
|
+
type: 'Component';
|
|
721
|
+
primaryResource: Resource;
|
|
722
|
+
component: AvailableComponents;
|
|
723
|
+
params: ConfigParam;
|
|
724
|
+
relatedConfig: ParentResourceConfig[];
|
|
725
|
+
shouldRenderActions: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
726
|
+
}
|
|
727
|
+
declare function componentConfig(config: ComponentConfigOptions): ComponentConfig;
|
|
728
|
+
declare const componentConfigDefaults: {
|
|
729
|
+
type: "Component";
|
|
730
|
+
primaryResource: Resource;
|
|
731
|
+
component: AvailableComponents;
|
|
732
|
+
params: {
|
|
733
|
+
cases: never[];
|
|
734
|
+
};
|
|
735
|
+
relatedConfig: ParentResourceConfig[];
|
|
736
|
+
shouldRenderActions: {
|
|
737
|
+
create: () => boolean;
|
|
738
|
+
edit: () => boolean;
|
|
739
|
+
delete: () => boolean;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
interface switchCase {
|
|
743
|
+
caseId: string;
|
|
744
|
+
parentField: string;
|
|
745
|
+
childId: string;
|
|
746
|
+
config: ChildResourceConfig;
|
|
747
|
+
}
|
|
748
|
+
interface SwitchConfigParamOptions {
|
|
749
|
+
cases: switchCase[];
|
|
750
|
+
}
|
|
751
|
+
interface SwitchConfigParam {
|
|
752
|
+
cases: switchCase[];
|
|
753
|
+
}
|
|
754
|
+
declare function switchParams(config: SwitchConfigParamOptions): SwitchConfigParam;
|
|
755
|
+
declare const switchParamsDefaults: {
|
|
756
|
+
cases: switchCase[];
|
|
757
|
+
};
|
|
758
|
+
interface ListViewConfigOptions extends BaseConfigOptions {
|
|
759
|
+
showViewButton?: boolean;
|
|
760
|
+
loadCreatedResource?: boolean;
|
|
761
|
+
collapsible?: boolean;
|
|
762
|
+
overrideResource?: Resource;
|
|
763
|
+
searchable?: boolean;
|
|
764
|
+
enableRowExpansion?: boolean;
|
|
765
|
+
rowExpansionConfig?: ChildResourceConfig;
|
|
766
|
+
requireSearchToDisplayResults?: boolean;
|
|
767
|
+
listColumns: ColumnConfig[];
|
|
768
|
+
relatedConfigs?: ChildResourceConfig[];
|
|
769
|
+
viewResource?: Resource | string;
|
|
770
|
+
actionType?: ActionType;
|
|
771
|
+
filter?: (parentResource: any) => string;
|
|
772
|
+
disableCacheForFilterPii?: boolean;
|
|
773
|
+
rpcConfigs?: RPCConfig[];
|
|
774
|
+
sorts?: FieldSort[];
|
|
775
|
+
shouldRenderActions?: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
776
|
+
}
|
|
777
|
+
interface ListViewConfig extends BaseConfig {
|
|
778
|
+
type: 'ListView';
|
|
779
|
+
showViewButton: boolean;
|
|
780
|
+
loadCreatedResource: boolean;
|
|
781
|
+
collapsible: boolean;
|
|
782
|
+
overrideResource: Resource;
|
|
783
|
+
searchable: boolean;
|
|
784
|
+
enableRowExpansion: boolean;
|
|
785
|
+
rowExpansionConfig: ChildResourceConfig;
|
|
786
|
+
requireSearchToDisplayResults: boolean;
|
|
787
|
+
listColumns: ColumnConfig[];
|
|
788
|
+
relatedConfigs: ChildResourceConfig[];
|
|
789
|
+
viewResource: Resource | string;
|
|
790
|
+
actionType: ActionType;
|
|
791
|
+
filter: (parentResource: any) => string;
|
|
792
|
+
disableCacheForFilterPii: boolean;
|
|
793
|
+
rpcConfigs?: RPCConfig[];
|
|
794
|
+
sorts: FieldSort[];
|
|
795
|
+
shouldRenderActions: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
796
|
+
}
|
|
797
|
+
declare function listViewConfig(config: ListViewConfigOptions): ListViewConfig;
|
|
798
|
+
declare const listViewConfigDefaults: {
|
|
799
|
+
title: string;
|
|
800
|
+
primaryResource: Resource;
|
|
801
|
+
type: "ListView";
|
|
802
|
+
createTitle: string;
|
|
803
|
+
createButtonLabel: string;
|
|
804
|
+
loadCreatedResource: false;
|
|
805
|
+
showViewButton: true;
|
|
806
|
+
collapsible: false;
|
|
807
|
+
listColumns: never[];
|
|
808
|
+
elements: never[];
|
|
809
|
+
parentClass: string;
|
|
810
|
+
fieldClass: string;
|
|
811
|
+
createConfig: ListViewConfig;
|
|
812
|
+
createNavigation: never[];
|
|
813
|
+
relatedConfigs: never[];
|
|
814
|
+
parentRelation: {
|
|
815
|
+
parentKey: FieldName;
|
|
816
|
+
childKey: FieldName;
|
|
817
|
+
};
|
|
818
|
+
overrideResource: Resource;
|
|
819
|
+
searchable: false;
|
|
820
|
+
enableRowExpansion: false;
|
|
821
|
+
rowExpansionConfig: ChildResourceConfig;
|
|
822
|
+
requireSearchToDisplayResults: false;
|
|
823
|
+
showBackButton: true;
|
|
824
|
+
filter: () => string;
|
|
825
|
+
disableCacheForFilterPii: false;
|
|
826
|
+
sorts: FieldSort[];
|
|
827
|
+
viewResource: Resource;
|
|
828
|
+
actionType: ActionType;
|
|
829
|
+
rpcConfigs: never[];
|
|
830
|
+
shouldRenderActions: {
|
|
831
|
+
create: () => boolean;
|
|
832
|
+
edit: () => boolean;
|
|
833
|
+
delete: () => boolean;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
type ViewType = 'OneToOne' | 'OneToMany';
|
|
837
|
+
interface ViewConfigOptions extends BaseConfigOptions {
|
|
838
|
+
collapsible?: boolean;
|
|
839
|
+
connectorResource?: Resource;
|
|
840
|
+
relatedConfigs?: ChildResourceConfig[];
|
|
841
|
+
rpcConfigs?: RPCConfig[];
|
|
842
|
+
shouldRenderActions?: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
843
|
+
}
|
|
844
|
+
interface ViewConfig extends BaseConfig {
|
|
845
|
+
type: 'View';
|
|
846
|
+
collapsible: boolean;
|
|
847
|
+
connectorResource: Resource;
|
|
848
|
+
rpcConfigs?: RPCConfig[];
|
|
849
|
+
relatedConfigs: ChildResourceConfig[];
|
|
850
|
+
/** A set of functions that allows for
|
|
851
|
+
* conditional display of non-RPC
|
|
852
|
+
* actions based on the pristine state of the resource
|
|
853
|
+
* (if such a state is applicable. Creation for example won't
|
|
854
|
+
* have such data)
|
|
855
|
+
* This is separate from ABAC control which takes
|
|
856
|
+
* precedence and is based on a user's attributes
|
|
857
|
+
*/
|
|
858
|
+
shouldRenderActions: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
859
|
+
}
|
|
860
|
+
declare function viewConfig(config: ViewConfigOptions): ViewConfig;
|
|
861
|
+
declare const viewConfigDefaults: {
|
|
862
|
+
title: string;
|
|
863
|
+
primaryResource: Resource;
|
|
864
|
+
type: "View";
|
|
865
|
+
createTitle: string;
|
|
866
|
+
createButtonLabel: string;
|
|
867
|
+
parentClass: string;
|
|
868
|
+
fieldClass: string;
|
|
869
|
+
elements: never[];
|
|
870
|
+
collapsible: true;
|
|
871
|
+
connectorResource: Resource;
|
|
872
|
+
relatedConfigs: never[];
|
|
873
|
+
createConfig: ViewConfig;
|
|
874
|
+
shouldRenderActions: {
|
|
875
|
+
create: () => boolean;
|
|
876
|
+
edit: () => boolean;
|
|
877
|
+
delete: () => boolean;
|
|
878
|
+
};
|
|
879
|
+
createNavigation: never[];
|
|
880
|
+
parentRelation: {
|
|
881
|
+
parentKey: FieldName;
|
|
882
|
+
childKey: FieldName;
|
|
883
|
+
};
|
|
884
|
+
showBackButton: true;
|
|
885
|
+
rpcConfigs: never[];
|
|
886
|
+
};
|
|
887
|
+
interface arrayConfigOptions {
|
|
888
|
+
iteratedConfig: ChildResourceConfig;
|
|
889
|
+
viewType?: ViewType;
|
|
890
|
+
collapsible?: boolean;
|
|
891
|
+
createConfig?: ConfigType;
|
|
892
|
+
connectorResource?: Resource;
|
|
893
|
+
connectorField?: FieldName;
|
|
894
|
+
primaryResource: Resource;
|
|
895
|
+
listFilter: (parentResource: any) => string;
|
|
896
|
+
disableCacheForFilterPii?: boolean;
|
|
897
|
+
sorts?: FieldSort[];
|
|
898
|
+
title?: string;
|
|
899
|
+
createButtonLabel?: string;
|
|
900
|
+
limit?: number;
|
|
901
|
+
shouldRenderActions?: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
902
|
+
}
|
|
903
|
+
interface ArrayConfig {
|
|
904
|
+
type: 'Array';
|
|
905
|
+
iteratedConfig: ChildResourceConfig;
|
|
906
|
+
viewType: ViewType;
|
|
907
|
+
collapsible: boolean;
|
|
908
|
+
createConfig: ConfigType;
|
|
909
|
+
connectorResource: Resource;
|
|
910
|
+
connectorField: FieldName;
|
|
911
|
+
primaryResource: Resource;
|
|
912
|
+
listFilter: (parentResource: any) => string;
|
|
913
|
+
disableCacheForFilterPii: boolean;
|
|
914
|
+
sorts: FieldSort[];
|
|
915
|
+
title: string;
|
|
916
|
+
createButtonLabel: string;
|
|
917
|
+
shouldRenderActions: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
918
|
+
limit: number;
|
|
919
|
+
}
|
|
920
|
+
declare function arrayConfig(config: arrayConfigOptions): ArrayConfig;
|
|
921
|
+
declare const arrayConfigDefaults: {
|
|
922
|
+
type: "Array";
|
|
923
|
+
iteratedConfig: ChildResourceConfig;
|
|
924
|
+
viewType: ViewType;
|
|
925
|
+
collapsible: true;
|
|
926
|
+
createConfig: ViewConfig;
|
|
927
|
+
connectorResource: Resource;
|
|
928
|
+
connectorField: FieldName;
|
|
929
|
+
primaryResource: Resource;
|
|
930
|
+
listFilter: () => string;
|
|
931
|
+
disableCacheForFilterPii: false;
|
|
932
|
+
sorts: FieldSort[];
|
|
933
|
+
title: string;
|
|
934
|
+
createButtonLabel: string;
|
|
935
|
+
limit: number;
|
|
936
|
+
shouldRenderActions: {
|
|
937
|
+
create: () => boolean;
|
|
938
|
+
edit: () => boolean;
|
|
939
|
+
delete: () => boolean;
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
declare enum AlertLevel {
|
|
944
|
+
ERROR = "warn",
|
|
945
|
+
INFO = "accent",
|
|
946
|
+
SUCCESS = "success"
|
|
947
|
+
}
|
|
948
|
+
interface CreateNotificationMessage {
|
|
949
|
+
duration?: number;
|
|
950
|
+
message: string;
|
|
951
|
+
link: string;
|
|
952
|
+
level: AlertLevel;
|
|
953
|
+
}
|
|
954
|
+
interface NotificationMessage {
|
|
955
|
+
id: number;
|
|
956
|
+
duration?: number;
|
|
957
|
+
message: string;
|
|
958
|
+
link: string;
|
|
959
|
+
level: AlertLevel;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
type ValidDisplayTypes = 'boolean' | 'nullboolean' | 'number' | 'string' | 'date' | 'enumerated' | 'link' | 'uuid' | 'civildate';
|
|
963
|
+
type ValidRPCTypes = ValidDisplayTypes | `${ValidDisplayTypes}[]`;
|
|
964
|
+
interface RPCFieldMeta {
|
|
965
|
+
fieldName: string;
|
|
966
|
+
displayType: ValidRPCTypes;
|
|
967
|
+
enumeratedResource?: Resource;
|
|
968
|
+
}
|
|
969
|
+
interface MethodMeta {
|
|
970
|
+
route: string;
|
|
971
|
+
fields: RPCFieldMeta[];
|
|
972
|
+
}
|
|
973
|
+
interface FieldMeta {
|
|
974
|
+
fieldName: string;
|
|
975
|
+
/** Indicates whether the field is required and only applies during resource creation.
|
|
976
|
+
* Use the validators config parameter in all other contexts
|
|
977
|
+
*/
|
|
978
|
+
required: boolean;
|
|
979
|
+
primaryKey?: {
|
|
980
|
+
ordinalPosition: number;
|
|
981
|
+
};
|
|
982
|
+
displayType: ValidDisplayTypes;
|
|
983
|
+
enumeratedResource?: Resource;
|
|
984
|
+
isIndex: boolean;
|
|
985
|
+
}
|
|
986
|
+
interface ResourceMeta {
|
|
987
|
+
route: string;
|
|
988
|
+
consolidatedRoute?: string;
|
|
989
|
+
listDisabled?: boolean;
|
|
990
|
+
readDisabled?: boolean;
|
|
991
|
+
createDisabled?: boolean;
|
|
992
|
+
updateDisabled?: boolean;
|
|
993
|
+
deleteDisabled?: boolean;
|
|
994
|
+
substringSearchParameter?: string;
|
|
995
|
+
fields: FieldMeta[];
|
|
996
|
+
}
|
|
997
|
+
type Meta = MethodMeta | ResourceMeta;
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* Session Information for a logged in user
|
|
1001
|
+
*/
|
|
1002
|
+
interface SessionInfo {
|
|
1003
|
+
authenticated: boolean;
|
|
1004
|
+
username: string;
|
|
1005
|
+
permissions: DomainPermissions;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* The base URL for API requests (e.g., 'https://api.example.com/').
|
|
1010
|
+
*/
|
|
1011
|
+
declare const BASE_URL: InjectionToken<string>;
|
|
1012
|
+
/**
|
|
1013
|
+
* The path to the frontend login page (e.g., '/login').
|
|
1014
|
+
*/
|
|
1015
|
+
declare const FRONTEND_LOGIN_PATH: InjectionToken<string>;
|
|
1016
|
+
/**
|
|
1017
|
+
* The path to the session endpoint (e.g., 'user/session').
|
|
1018
|
+
*/
|
|
1019
|
+
declare const SESSION_PATH: InjectionToken<string>;
|
|
1020
|
+
/**
|
|
1021
|
+
* The base URL for API requests (e.g., '/api').
|
|
1022
|
+
*/
|
|
1023
|
+
declare const API_URL: InjectionToken<string>;
|
|
1024
|
+
declare const PERMISSION_REQUIRED: InjectionToken<(resource: Resource, permission: Permission) => boolean>;
|
|
1025
|
+
declare const AVAILABLE_PERMISSIONS: InjectionToken<{
|
|
1026
|
+
Create: Permission;
|
|
1027
|
+
Delete: Permission;
|
|
1028
|
+
List: Permission;
|
|
1029
|
+
Read: Permission;
|
|
1030
|
+
Update: Permission;
|
|
1031
|
+
}>;
|
|
1032
|
+
declare const AVAILABLE_DOMAINS: InjectionToken<Record<string, Domain>[]>;
|
|
1033
|
+
declare const RESOURCE_META: InjectionToken<(resource: Resource) => ResourceMeta>;
|
|
1034
|
+
declare const METHOD_META: InjectionToken<(method: string) => MethodMeta>;
|
|
1035
|
+
declare const IDLE_SESSION_DURATION: InjectionToken<number>;
|
|
1036
|
+
declare const IDLE_WARNING_DURATION: InjectionToken<number>;
|
|
1037
|
+
declare const IDLE_KEEPALIVE_DURATION: InjectionToken<number>;
|
|
1038
|
+
|
|
1039
|
+
declare class AlertComponent implements OnInit {
|
|
1040
|
+
error: NotificationMessage$1;
|
|
1041
|
+
dismiss: EventEmitter<any>;
|
|
1042
|
+
errors: NotificationService$1;
|
|
1043
|
+
ngOnInit(): void;
|
|
1044
|
+
dismissAlert(): void;
|
|
1045
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
1046
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "ccc-alert", never, { "error": { "alias": "error"; "required": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
interface NavItem {
|
|
1050
|
+
type: 'link' | 'header' | 'expandable';
|
|
1051
|
+
routerLink?: string[];
|
|
1052
|
+
label: string;
|
|
1053
|
+
icon?: string;
|
|
1054
|
+
permission?: PermissionScope$1;
|
|
1055
|
+
children?: NavItem[];
|
|
1056
|
+
isExpanded?: boolean;
|
|
1057
|
+
attentionCount?: Signal<number>;
|
|
1058
|
+
}
|
|
1059
|
+
type NavGroups = Record<string, NavItem[]>;
|
|
1060
|
+
declare class SidenavComponent {
|
|
1061
|
+
ui: UiCoreService$1;
|
|
1062
|
+
navGroups?: NavGroups;
|
|
1063
|
+
currentNav: Signal<NavItem[]>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Updates the currentNav based on the identifier
|
|
1066
|
+
* @param identifier
|
|
1067
|
+
* @returns NavItem[]
|
|
1068
|
+
* @memberof SidenavComponent
|
|
1069
|
+
*/
|
|
1070
|
+
updateNavItems(identifier: string): NavItem[];
|
|
1071
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavComponent, never>;
|
|
1072
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavComponent, "ccc-sidenav", never, { "navGroups": { "alias": "navGroups"; "required": false; }; }, {}, never, never, true, never>;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
declare class ApiInterceptor implements HttpInterceptor {
|
|
1076
|
+
private ui;
|
|
1077
|
+
private auth;
|
|
1078
|
+
private router;
|
|
1079
|
+
private ngZone;
|
|
1080
|
+
private baseUrl;
|
|
1081
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
1082
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ApiInterceptor, never>;
|
|
1083
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ApiInterceptor>;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
declare class NotificationService {
|
|
1087
|
+
private notificationId;
|
|
1088
|
+
private _notifications;
|
|
1089
|
+
notifications: _angular_core.Signal<NotificationMessage$1[]>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Adds a new global notification.
|
|
1092
|
+
* @param notification The notification message to add.
|
|
1093
|
+
* @returns The unique ID assigned to the notification.
|
|
1094
|
+
*/
|
|
1095
|
+
addGlobalNotification(notification: CreateNotificationMessage$1): number;
|
|
1096
|
+
/**
|
|
1097
|
+
* Dismisses a global notification by its ID.
|
|
1098
|
+
* @param notificationId The ID of the notification to dismiss.
|
|
1099
|
+
*/
|
|
1100
|
+
dismissGlobalNotificationById(notificationId: number): void;
|
|
1101
|
+
/**
|
|
1102
|
+
* Dismisses a specific global notification.
|
|
1103
|
+
* @param notification The notification to dismiss.
|
|
1104
|
+
*/
|
|
1105
|
+
dismissGlobalNotification(notification: NotificationMessage$1): void;
|
|
1106
|
+
/**
|
|
1107
|
+
* Updates an existing notification.
|
|
1108
|
+
* @param updatedNotification The notification with updated information.
|
|
1109
|
+
*/
|
|
1110
|
+
updateNotification(updatedNotification: NotificationMessage$1): void;
|
|
1111
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
1112
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
type ActionButtonContext$1 = {
|
|
1116
|
+
actionType: 'create' | 'edit' | 'delete';
|
|
1117
|
+
meta: ResourceMeta$1;
|
|
1118
|
+
resourceData: RecordData$1;
|
|
1119
|
+
shouldRender: (data: RecordData$1) => boolean;
|
|
1120
|
+
} | {
|
|
1121
|
+
actionType: 'rpc';
|
|
1122
|
+
resourceData: RecordData$1;
|
|
1123
|
+
shouldRender: (data: RecordData$1) => boolean;
|
|
1124
|
+
};
|
|
1125
|
+
declare class ActionAccessControlWrapperComponent {
|
|
1126
|
+
actionContext: _angular_core.InputSignal<ActionButtonContext$1 | undefined>;
|
|
1127
|
+
showAction: _angular_core.Signal<boolean>;
|
|
1128
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionAccessControlWrapperComponent, never>;
|
|
1129
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionAccessControlWrapperComponent, "action-access-control-wrapper", never, { "actionContext": { "alias": "actionContext"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
declare class FormStateService {
|
|
1133
|
+
dirtyForms: _angular_core.WritableSignal<number>;
|
|
1134
|
+
incrementDirtyForms(): void;
|
|
1135
|
+
decrementDirtyForms(): void;
|
|
1136
|
+
resetDirtyForms(): void;
|
|
1137
|
+
isDirty: _angular_core.Signal<boolean>;
|
|
1138
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormStateService, never>;
|
|
1139
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormStateService>;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
declare const generatedNavItems: MenuItem$1[];
|
|
1143
|
+
declare const generatedNavGroups: string[];
|
|
1144
|
+
interface Link {
|
|
1145
|
+
id: string;
|
|
1146
|
+
resource: Resource$1;
|
|
1147
|
+
text: string;
|
|
1148
|
+
}
|
|
1149
|
+
type ResourceMap = Record<Resource$1, ResourceMeta$1>;
|
|
1150
|
+
type PristineData = Record<string, DataType$1 | null>;
|
|
1151
|
+
declare const createFormGroup: (meta: ResourceMeta$1, resourceData: RecordData$1, config: ViewConfig$1, formDataState?: ModelSignal<RecordData$1>) => {
|
|
1152
|
+
formGroup: FormGroup;
|
|
1153
|
+
pristineFormValues: PristineData;
|
|
1154
|
+
};
|
|
1155
|
+
declare const resourceRoutes: (config: RootConfig$1, resourceMeta: (resource: Resource$1) => ResourceMeta$1) => Route;
|
|
1156
|
+
/**
|
|
1157
|
+
* Recursive function to extract nested field names from a config.
|
|
1158
|
+
* @param elements - The elements to extract field names from.
|
|
1159
|
+
* @returns - An array of field names.
|
|
1160
|
+
*/
|
|
1161
|
+
declare function extractFieldNames(elements: ConfigElement$1[]): string[];
|
|
1162
|
+
type PatchOperation = 'add' | 'patch' | 'remove';
|
|
1163
|
+
interface Operation {
|
|
1164
|
+
op: PatchOperation;
|
|
1165
|
+
value?: Record<string, unknown>;
|
|
1166
|
+
path: string;
|
|
1167
|
+
}
|
|
1168
|
+
interface CreateOperation extends Operation {
|
|
1169
|
+
op: 'add';
|
|
1170
|
+
}
|
|
1171
|
+
interface UpdateOperation extends Operation {
|
|
1172
|
+
op: 'patch';
|
|
1173
|
+
}
|
|
1174
|
+
interface DeleteOperation extends Operation {
|
|
1175
|
+
op: 'remove';
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Checks if a string is a valid UUID (versions 1-5) according to RFC 4122.
|
|
1179
|
+
*
|
|
1180
|
+
* @param str - The string to validate.
|
|
1181
|
+
* @returns `true` if the string is a valid UUID, otherwise `false`.
|
|
1182
|
+
*/
|
|
1183
|
+
declare function isUUID(str: string): boolean;
|
|
1184
|
+
/**
|
|
1185
|
+
* Coerces metadata types in a record according to the metadata.
|
|
1186
|
+
*
|
|
1187
|
+
* @param record - The record to coerce.
|
|
1188
|
+
* @param meta - The metadata (resource or method).
|
|
1189
|
+
* @returns The coerced record.
|
|
1190
|
+
*/
|
|
1191
|
+
declare function metadataTypeCoercion(record: RecordData$1, meta: ResourceMeta$1): RecordData$1;
|
|
1192
|
+
declare function metadataTypeCoercion(record: RPCRecordData$1, meta: MethodMeta$1): RPCRecordData$1;
|
|
1193
|
+
|
|
1194
|
+
declare class ResourceStore {
|
|
1195
|
+
resourceMeta: _angular_core.WritableSignal<ResourceMeta$1>;
|
|
1196
|
+
resourceName: _angular_core.WritableSignal<Resource$1>;
|
|
1197
|
+
filter: _angular_core.WritableSignal<string>;
|
|
1198
|
+
disableCacheForFilterPii: _angular_core.WritableSignal<boolean>;
|
|
1199
|
+
searchTokens: _angular_core.WritableSignal<string>;
|
|
1200
|
+
sorts: _angular_core.WritableSignal<FieldSort$1[]>;
|
|
1201
|
+
listColumns: _angular_core.WritableSignal<ColumnConfig$1[]>;
|
|
1202
|
+
requireSearchToDisplayResults: _angular_core.WritableSignal<boolean>;
|
|
1203
|
+
uuid: _angular_core.WritableSignal<string>;
|
|
1204
|
+
error: _angular_core.WritableSignal<string>;
|
|
1205
|
+
notifications: NotificationService$1;
|
|
1206
|
+
http: HttpClient;
|
|
1207
|
+
router: Router;
|
|
1208
|
+
injector: Injector;
|
|
1209
|
+
apiUrl: string;
|
|
1210
|
+
methodMeta: (method: string) => _cccteam_ccc_lib_src_types.MethodMeta;
|
|
1211
|
+
private resourceListRef;
|
|
1212
|
+
listData: Signal<RecordData$1[]>;
|
|
1213
|
+
listStatus: Signal<_angular_core.ResourceStatus | undefined>;
|
|
1214
|
+
private resourceViewRef;
|
|
1215
|
+
viewData: Signal<RecordData$1>;
|
|
1216
|
+
viewStatus: Signal<_angular_core.ResourceStatus | undefined>;
|
|
1217
|
+
overrideRoute: _angular_core.WritableSignal<string>;
|
|
1218
|
+
resourceRoute: Signal<string>;
|
|
1219
|
+
route: Signal<string>;
|
|
1220
|
+
reloadViewData(): void;
|
|
1221
|
+
reloadListData(): void;
|
|
1222
|
+
buildStoreListData(): void;
|
|
1223
|
+
buildStoreViewData(): void;
|
|
1224
|
+
routes: {
|
|
1225
|
+
resources: (rootUrl: string, resources: string) => string;
|
|
1226
|
+
resource: (rootUrl: string, resources: string, uuid: string) => string;
|
|
1227
|
+
method: (rootUrl: string, method: string) => string;
|
|
1228
|
+
};
|
|
1229
|
+
makePatches(operations: Operation[], route: string, resource: Resource$1): Observable<Record<string, unknown>>;
|
|
1230
|
+
createPatch(operation: Operation, route: string, resource: Resource$1): Observable<Record<string, unknown>>;
|
|
1231
|
+
private patchMultiple;
|
|
1232
|
+
resourceView(route: Signal<string>, uuid: Signal<string>): ResourceRef<RecordData$1>;
|
|
1233
|
+
resourceList(route: Signal<string>, filter?: Signal<string>, columns?: Signal<string[]>, disableCacheForFilterPii?: Signal<boolean>, searchTokens?: Signal<string>, sorts?: Signal<FieldSort$1[]>, defaultEmpty?: boolean): ResourceRef<RecordData$1[]>;
|
|
1234
|
+
private list;
|
|
1235
|
+
rpcCall<T>(rpcConfig: RPCConfig$1, body: T): Observable<T>;
|
|
1236
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceStore, never>;
|
|
1237
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ResourceStore>;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
declare class RpcButtonComponent {
|
|
1241
|
+
activatedRoute: ActivatedRoute;
|
|
1242
|
+
router: Router;
|
|
1243
|
+
notifications: NotificationService$1;
|
|
1244
|
+
formState: FormStateService;
|
|
1245
|
+
dialog: MatDialog;
|
|
1246
|
+
store: ResourceStore;
|
|
1247
|
+
methodMeta: (method: string) => _cccteam_ccc_lib_src_types.MethodMeta;
|
|
1248
|
+
relatedData: _angular_core.InputSignal<RecordData$1>;
|
|
1249
|
+
rpcConfig: _angular_core.InputSignal<RPCConfig$1>;
|
|
1250
|
+
primaryResource: _angular_core.InputSignal<Resource$1>;
|
|
1251
|
+
dependentResources: _angular_core.InputSignal<ResourceRef<RecordData$1[]>[]>;
|
|
1252
|
+
resourceConfigRouteSnapshot: _angular_core.Signal<RPCConfig$1>;
|
|
1253
|
+
showRPCButton: _angular_core.Signal<boolean>;
|
|
1254
|
+
submitRPC(): void;
|
|
1255
|
+
buildRpcBody(rpcConfig: RPCConfig$1, submitBody: RPCRecordData$1): void;
|
|
1256
|
+
callRpc(rpc: RPCConfig$1, submitBody: RPCRecordData$1): void;
|
|
1257
|
+
reloadDependentResources(): void;
|
|
1258
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RpcButtonComponent, never>;
|
|
1259
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RpcButtonComponent, "ccc-rpc-button", never, { "relatedData": { "alias": "relatedData"; "required": true; "isSignal": true; }; "rpcConfig": { "alias": "rpcConfig"; "required": true; "isSignal": true; }; "primaryResource": { "alias": "primaryResource"; "required": true; "isSignal": true; }; "dependentResources": { "alias": "dependentResources"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
declare class BaseRPCModalComponent {
|
|
1263
|
+
methodMeta: (method: string) => _cccteam_ccc_lib_src_types.MethodMeta;
|
|
1264
|
+
private dialogRef;
|
|
1265
|
+
data: {
|
|
1266
|
+
elements: FieldElement$1[];
|
|
1267
|
+
label: string;
|
|
1268
|
+
method: Method$1;
|
|
1269
|
+
width: string;
|
|
1270
|
+
};
|
|
1271
|
+
formData: _angular_core.WritableSignal<RPCBaseFormData$1>;
|
|
1272
|
+
meta: _angular_core.Signal<_cccteam_ccc_lib_src_types.MethodMeta>;
|
|
1273
|
+
constructor();
|
|
1274
|
+
onConfirm(): void;
|
|
1275
|
+
form: _angular_core.Signal<FormGroup<{}>>;
|
|
1276
|
+
pristineForm: Record<string, DataType$1>;
|
|
1277
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseRPCModalComponent, never>;
|
|
1278
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseRPCModalComponent, "ccc-base-rpc-modal", never, {}, {}, never, never, true, never>;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
type CanDeactivateType = Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
1282
|
+
interface CanComponentDeactivate {
|
|
1283
|
+
canDeactivate: () => CanDeactivateType;
|
|
1284
|
+
}
|
|
1285
|
+
declare const canDeactivateGuard: CanDeactivateFn<CanComponentDeactivate>;
|
|
1286
|
+
|
|
1287
|
+
declare class CompoundResourceComponent implements OnInit {
|
|
1288
|
+
location: Location;
|
|
1289
|
+
route: ActivatedRoute;
|
|
1290
|
+
store: ResourceStore;
|
|
1291
|
+
injector: Injector;
|
|
1292
|
+
componentRef: Type<any>;
|
|
1293
|
+
resourceMeta: (resource: Resource$1) => _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1294
|
+
resourceConfig: _angular_core.InputSignal<_cccteam_ccc_lib_src_types.ListViewConfig | _cccteam_ccc_lib_src_types.ViewConfig | _cccteam_ccc_lib_src_types.ComponentConfig | _cccteam_ccc_lib_src_types.ArrayConfig | undefined>;
|
|
1295
|
+
isArrayChild: _angular_core.InputSignal<boolean>;
|
|
1296
|
+
uuid: _angular_core.InputSignal<string>;
|
|
1297
|
+
parentData: _angular_core.InputSignal<RecordData$1 | undefined>;
|
|
1298
|
+
rootConfig: _angular_core.Signal<RootConfig$1>;
|
|
1299
|
+
emptyOneToOne: _angular_core.WritableSignal<boolean>;
|
|
1300
|
+
missingRoot: _angular_core.InputSignal<boolean>;
|
|
1301
|
+
resourceCreate: _angular_core.OutputEmitterRef<void>;
|
|
1302
|
+
deleted: _angular_core.OutputEmitterRef<boolean>;
|
|
1303
|
+
navAfterDelete: _angular_core.InputSignal<boolean>;
|
|
1304
|
+
navAfterDeleteConsideringRoot: _angular_core.Signal<boolean>;
|
|
1305
|
+
hasElements: _angular_core.Signal<boolean>;
|
|
1306
|
+
primaryConfigParentId: _angular_core.Signal<string>;
|
|
1307
|
+
primaryConfig: _angular_core.Signal<_cccteam_ccc_lib_src_types.ComponentConfig | ParentResourceConfig$1>;
|
|
1308
|
+
title: _angular_core.Signal<string>;
|
|
1309
|
+
isRootConfig: _angular_core.Signal<boolean>;
|
|
1310
|
+
configs: _angular_core.Signal<ChildResourceConfig$1[]>;
|
|
1311
|
+
rpcConfigs: _angular_core.Signal<{
|
|
1312
|
+
config: _cccteam_ccc_lib_src_types.RPCConfig;
|
|
1313
|
+
context: {
|
|
1314
|
+
actionType: "rpc";
|
|
1315
|
+
shouldRender: () => boolean;
|
|
1316
|
+
resourceData: RecordData$1;
|
|
1317
|
+
};
|
|
1318
|
+
}[]>;
|
|
1319
|
+
hasRpcConfigs: _angular_core.Signal<boolean>;
|
|
1320
|
+
resolvedData: _angular_core.Signal<RecordData$1>;
|
|
1321
|
+
ngOnInit(): void;
|
|
1322
|
+
constructor();
|
|
1323
|
+
goBack(): void;
|
|
1324
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CompoundResourceComponent, never>;
|
|
1325
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CompoundResourceComponent, "compound-resource", never, { "resourceConfig": { "alias": "resourceConfig"; "required": false; "isSignal": true; }; "isArrayChild": { "alias": "isArrayChild"; "required": false; "isSignal": true; }; "uuid": { "alias": "uuid"; "required": true; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": false; "isSignal": true; }; "missingRoot": { "alias": "missingRoot"; "required": false; "isSignal": true; }; "navAfterDelete": { "alias": "navAfterDelete"; "required": false; "isSignal": true; }; }, { "resourceCreate": "resourceCreate"; "deleted": "deleted"; }, never, never, true, never>;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
declare const concatFunctions: {
|
|
1329
|
+
'space-concat': typeof spaceConcat;
|
|
1330
|
+
'hyphen-concat': typeof hyphenConcat;
|
|
1331
|
+
'space-hyphen-concat': typeof spaceHyphenConcat;
|
|
1332
|
+
'hyphen-space-concat': typeof hyphenSpaceConcat;
|
|
1333
|
+
};
|
|
1334
|
+
/**
|
|
1335
|
+
* Concatenates the strings corresponding to the given keys in the resource,
|
|
1336
|
+
* using a space separator.
|
|
1337
|
+
* @param resource A record mapping keys to string values.
|
|
1338
|
+
* @param args Keys of the resource to concatenate.
|
|
1339
|
+
* @returns Concatenated string.
|
|
1340
|
+
* @example
|
|
1341
|
+
* const resource = { foo: 'foo', bar: 'bar', baz: 'baz' };
|
|
1342
|
+
* spaceConcat(resource, 'foo', 'bar', 'baz'); // returns 'foo bar baz'
|
|
1343
|
+
*/
|
|
1344
|
+
declare function spaceConcat(resource: Record<string, string>, ...args: string[]): string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Concatenates the strings corresponding to the given keys in the resource,
|
|
1347
|
+
* using a hyphen separator.
|
|
1348
|
+
* @param resource A record mapping keys to string values.
|
|
1349
|
+
* @param args Keys of the resource to concatenate.
|
|
1350
|
+
* @returns Concatenated string.
|
|
1351
|
+
* @example
|
|
1352
|
+
* const resource = { foo: 'foo', bar: 'bar', baz: 'baz' };
|
|
1353
|
+
* hyphenConcat(resource, 'foo', 'bar', 'baz'); // returns 'foo - bar - baz'
|
|
1354
|
+
*/
|
|
1355
|
+
declare function hyphenConcat(resource: Record<string, string>, ...args: string[]): string;
|
|
1356
|
+
/**
|
|
1357
|
+
* Concatenates the given strings so that all but the last are joined with a space,
|
|
1358
|
+
* and the last string is appended with a " - " separator.
|
|
1359
|
+
* @param resource A mapping of keys to string values.
|
|
1360
|
+
* @param args Keys of strings to concatenate.
|
|
1361
|
+
* @returns Concatenated string.
|
|
1362
|
+
* @example spaceHyphenConcat(resource, 'foo', 'bar', 'baz') => 'foo bar - baz'
|
|
1363
|
+
*/
|
|
1364
|
+
declare function spaceHyphenConcat(resource: Record<string, string>, ...args: string[]): string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Concatenates the given strings so that all but the first are joined with a space,
|
|
1367
|
+
* and the first string is appended with a " - " separator.
|
|
1368
|
+
* @param resource A mapping of keys to string values.
|
|
1369
|
+
* @param args Keys of strings to concatenate.
|
|
1370
|
+
* @returns Concatenated string.
|
|
1371
|
+
* @example spaceHyphenConcat(resource, 'foo', 'bar', 'baz') => 'foo - bar baz'
|
|
1372
|
+
*/
|
|
1373
|
+
declare function hyphenSpaceConcat(resource: Record<string, string>, ...args: string[]): string;
|
|
1374
|
+
/**
|
|
1375
|
+
* Concatenates the strings using a space separator.
|
|
1376
|
+
* @param args Strings to concatenate.
|
|
1377
|
+
* @returns Concatenated string.
|
|
1378
|
+
* @example
|
|
1379
|
+
* spaceConcatWithoutResource(['foo', 'bar', 'baz']); // returns 'foo bar baz'
|
|
1380
|
+
*/
|
|
1381
|
+
declare function spaceConcatWithoutResource(args: string[]): string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Concatenates the strings using a hyphen separator.
|
|
1384
|
+
* @param args Strings to concatenate.
|
|
1385
|
+
* @returns Concatenated string.
|
|
1386
|
+
* @example
|
|
1387
|
+
* hyphenConcatWithoutResource(['foo', 'bar', 'baz']); // returns 'foo - bar - baz'
|
|
1388
|
+
*/
|
|
1389
|
+
declare function hyphenConcatWithoutResource(args: string[]): string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Concatenates the given strings so that all but the last are joined with a space,
|
|
1392
|
+
* and the last string is appended with a " - " separator.
|
|
1393
|
+
* @param args Strings to concatenate.
|
|
1394
|
+
* @returns Concatenated string.
|
|
1395
|
+
* @example spaceHyphenConcatWithoutResource(['foo', 'bar', 'baz']) => 'foo bar - baz'
|
|
1396
|
+
*/
|
|
1397
|
+
declare function spaceHyphenConcatWithoutResource(args: string[]): string;
|
|
1398
|
+
/**
|
|
1399
|
+
* Concatenates the given strings so that all but the first are joined with a space,
|
|
1400
|
+
* and the first string is appended with a " - " separator.
|
|
1401
|
+
* @param args Strings to concatenate.
|
|
1402
|
+
* @returns Concatenated string.
|
|
1403
|
+
* @example hyphenSpaceConcatWithoutResource(['foo', 'bar', 'baz']) => 'foo - bar baz'
|
|
1404
|
+
*/
|
|
1405
|
+
declare function hyphenSpaceConcatWithoutResource(args: string[]): string;
|
|
1406
|
+
/**
|
|
1407
|
+
* Concatenates the given strings without any space,
|
|
1408
|
+
* @param args Strings to concatenate.
|
|
1409
|
+
* @returns Concatenated string.
|
|
1410
|
+
* @example noSpaceConcatWithoutResource(['foo', 'bar', 'baz']) => 'foobarbaz'
|
|
1411
|
+
*/
|
|
1412
|
+
declare function noSpaceConcatWithoutResource(args: string[]): string;
|
|
1413
|
+
|
|
1414
|
+
declare class DeleteResourceConfirmationModalComponent {
|
|
1415
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeleteResourceConfirmationModalComponent, never>;
|
|
1416
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DeleteResourceConfirmationModalComponent, "ccc-delete-resource-confirmation-modal", never, {}, {}, never, never, true, never>;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
declare class EmptyReadonlyFieldComponent {
|
|
1420
|
+
label: _angular_core.InputSignal<string>;
|
|
1421
|
+
displayValue: string;
|
|
1422
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EmptyReadonlyFieldComponent, never>;
|
|
1423
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EmptyReadonlyFieldComponent, "ccc-empty-readonly-field", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
type FormatterFn = (value: string) => string;
|
|
1427
|
+
declare const simpleSlashDateFormatter: (value: string) => string;
|
|
1428
|
+
declare const ValueFormatters: Record<FormatType$1, FormatterFn>;
|
|
1429
|
+
declare function applyFormatting(formatString: string, value: string): string;
|
|
1430
|
+
declare function formatDateString(formatString: string, value: string): string;
|
|
1431
|
+
|
|
1432
|
+
declare const maxConfigElementRecursionDepth = 240;
|
|
1433
|
+
declare const maxLayoutNestingDepth = 48;
|
|
1434
|
+
/** Returns a flat array of nested elements by recursively traversing
|
|
1435
|
+
* through the elements graph */
|
|
1436
|
+
declare const flattenElements: (elements: ConfigElement$1[], depth?: number) => ConfigElement$1[];
|
|
1437
|
+
declare const civildateCoercion: (value: string) => Date;
|
|
1438
|
+
/**
|
|
1439
|
+
* This object stores every possible validator used across the application
|
|
1440
|
+
* Add all validators that are used in configs to this object
|
|
1441
|
+
*
|
|
1442
|
+
* Available validators that may be added: min, max, required, requiredTrue,
|
|
1443
|
+
* email, minLength, maxLength, pattern, nullValidator
|
|
1444
|
+
*/
|
|
1445
|
+
declare const resourceValidators: Readonly<{
|
|
1446
|
+
REQUIRED: _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1447
|
+
EMAIL: _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1448
|
+
CURRENT_OR_FUTURE_DATE: _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1449
|
+
POSITIVE_NUMBER: _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1450
|
+
NOT_FUTURE_DATE: _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1451
|
+
VALUE_IN_RANGE_INCLUSIVE: (min: number, max: number) => _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1452
|
+
MAX_LENGTH: (maxLength: number) => _cccteam_ccc_lib_src_types.ResourceValidatorFn;
|
|
1453
|
+
}>;
|
|
1454
|
+
|
|
1455
|
+
declare class LeavePageConfirmationModalComponent {
|
|
1456
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LeavePageConfirmationModalComponent, never>;
|
|
1457
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LeavePageConfirmationModalComponent, "ccc-leave-page-confirmation-modal", never, {}, {}, never, never, true, never>;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
declare class PaddingElementComponent implements OnInit {
|
|
1461
|
+
paddingElement: _angular_core.InputSignal<PaddingElement$1>;
|
|
1462
|
+
class: string;
|
|
1463
|
+
ngOnInit(): void;
|
|
1464
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaddingElementComponent, never>;
|
|
1465
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaddingElementComponent, "ccc-padding-element", never, { "paddingElement": { "alias": "paddingElement"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
type ActionButtonContext = {
|
|
1469
|
+
actionType: 'create' | 'edit' | 'delete';
|
|
1470
|
+
meta: ResourceMeta$1;
|
|
1471
|
+
resourceData: RecordData$1;
|
|
1472
|
+
shouldRender: (data: RecordData$1) => boolean;
|
|
1473
|
+
} | {
|
|
1474
|
+
actionType: 'rpc';
|
|
1475
|
+
resourceData: RecordData$1;
|
|
1476
|
+
shouldRender: (data: RecordData$1) => boolean;
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
declare class ResourceArrayViewComponent implements OnInit {
|
|
1480
|
+
resourceMeta: (resource: _cccteam_ccc_lib_src_types.Resource) => _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1481
|
+
store: ResourceStore;
|
|
1482
|
+
injector: Injector;
|
|
1483
|
+
resourceConfig: _angular_core.InputSignal<ArrayConfig$1>;
|
|
1484
|
+
parentData: _angular_core.InputSignal<RecordData$1>;
|
|
1485
|
+
expPanel: Signal<MatExpansionPanel | undefined>;
|
|
1486
|
+
emptyOneToOne: _angular_core.OutputEmitterRef<boolean>;
|
|
1487
|
+
createMode: _angular_core.WritableSignal<boolean>;
|
|
1488
|
+
compoundResourceComponent: _angular_core.InputSignal<Type<any>>;
|
|
1489
|
+
showCreateButton: Signal<boolean>;
|
|
1490
|
+
createActionConfig: Signal<ActionButtonContext | undefined>;
|
|
1491
|
+
createConfig: Signal<ViewConfig$1 | ArrayConfig$1>;
|
|
1492
|
+
resourceListRoute: Signal<string>;
|
|
1493
|
+
setCreateMode(value: boolean): void;
|
|
1494
|
+
ngOnInit(): void;
|
|
1495
|
+
constructor();
|
|
1496
|
+
createResource(event: MouseEvent): void;
|
|
1497
|
+
onResourceDeleted(): void;
|
|
1498
|
+
onCreateCompleted(): void;
|
|
1499
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceArrayViewComponent, never>;
|
|
1500
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceArrayViewComponent, "ccc-resource-array-view", never, { "resourceConfig": { "alias": "resourceConfig"; "required": true; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": false; "isSignal": true; }; "compoundResourceComponent": { "alias": "compoundResourceComponent"; "required": true; "isSignal": true; }; }, { "emptyOneToOne": "emptyOneToOne"; }, never, never, true, never>;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
declare class ResourceCreateComponent implements OnInit {
|
|
1504
|
+
resourceMeta: (resource: Resource$1) => _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1505
|
+
activatedRoute: ActivatedRoute;
|
|
1506
|
+
notifications: NotificationService$1;
|
|
1507
|
+
store: ResourceStore;
|
|
1508
|
+
router: Router;
|
|
1509
|
+
destroyRef: DestroyRef;
|
|
1510
|
+
formState: FormStateService;
|
|
1511
|
+
isDirty: _angular_core.WritableSignal<boolean>;
|
|
1512
|
+
submitted: _angular_core.WritableSignal<boolean>;
|
|
1513
|
+
complete: _angular_core.OutputEmitterRef<boolean>;
|
|
1514
|
+
resourceConfig: _angular_core.InputSignal<ChildResourceConfig$1 | undefined>;
|
|
1515
|
+
parentData: _angular_core.InputSignal<RecordData$1>;
|
|
1516
|
+
loadCreatedResource: _angular_core.InputSignal<boolean>;
|
|
1517
|
+
rootConfig: _angular_core.Signal<RootConfig$1>;
|
|
1518
|
+
config: _angular_core.Signal<ListViewConfig$1 | ViewConfig$1>;
|
|
1519
|
+
indentTitle: _angular_core.Signal<boolean>;
|
|
1520
|
+
form: _angular_core.Signal<FormGroup<{}>>;
|
|
1521
|
+
route: _angular_core.Signal<string>;
|
|
1522
|
+
primaryKeys: _angular_core.Signal<_cccteam_ccc_lib_src_types.FieldMeta[]>;
|
|
1523
|
+
hasRequiredPrimaryKey: _angular_core.Signal<boolean>;
|
|
1524
|
+
primaryKeyPath: _angular_core.Signal<string>;
|
|
1525
|
+
camelCaseToTitlePipe: CamelCaseToTitlePipe$1;
|
|
1526
|
+
ngOnInit(): void;
|
|
1527
|
+
saveForm(): void;
|
|
1528
|
+
cancelForm(): void;
|
|
1529
|
+
constructor();
|
|
1530
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceCreateComponent, never>;
|
|
1531
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceCreateComponent, "ccc-resource-create", never, { "resourceConfig": { "alias": "resourceConfig"; "required": false; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": false; "isSignal": true; }; "loadCreatedResource": { "alias": "loadCreatedResource"; "required": false; "isSignal": true; }; }, { "complete": "complete"; }, never, never, true, never>;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
declare abstract class BaseInputComponent {
|
|
1535
|
+
resourceMeta: (resource: _cccteam_ccc_lib_src_types.Resource) => _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1536
|
+
injector: Injector;
|
|
1537
|
+
store: ResourceStore;
|
|
1538
|
+
meta: _angular_core.InputSignal<Meta$1>;
|
|
1539
|
+
pristineValue: _angular_core.InputSignal<DataType$1 | null>;
|
|
1540
|
+
editMode: _angular_core.InputSignal<"edit" | "view">;
|
|
1541
|
+
showField: _angular_core.InputSignal<boolean | undefined>;
|
|
1542
|
+
fieldConfig: _angular_core.InputSignal<FieldElement$1>;
|
|
1543
|
+
fieldClass: _angular_core.InputSignal<string | undefined>;
|
|
1544
|
+
fieldMeta: _angular_core.InputSignal<FieldMeta$1 | RPCFieldMeta$1>;
|
|
1545
|
+
form: _angular_core.InputSignal<FormGroup<any>>;
|
|
1546
|
+
relatedData: _angular_core.InputSignal<RecordData$1 | undefined>;
|
|
1547
|
+
/**
|
|
1548
|
+
* Resets the field back to its pristine value.
|
|
1549
|
+
*/
|
|
1550
|
+
reset(): void;
|
|
1551
|
+
private affixResources;
|
|
1552
|
+
prefixString: _angular_core.Signal<string>;
|
|
1553
|
+
suffixString: _angular_core.Signal<string>;
|
|
1554
|
+
floatLabel: _angular_core.Signal<"auto" | "always">;
|
|
1555
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseInputComponent, never>;
|
|
1556
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseInputComponent, never, never, { "meta": { "alias": "meta"; "required": true; "isSignal": true; }; "pristineValue": { "alias": "pristineValue"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": true; "isSignal": true; }; "showField": { "alias": "showField"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": true; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "fieldMeta": { "alias": "fieldMeta"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "relatedData": { "alias": "relatedData"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
declare class ResourceFieldComponent {
|
|
1560
|
+
fieldConfig: _angular_core.InputSignal<FieldElement$1>;
|
|
1561
|
+
meta: _angular_core.InputSignal<Meta$1>;
|
|
1562
|
+
fieldClass: _angular_core.InputSignal<string | undefined>;
|
|
1563
|
+
editMode: _angular_core.InputSignal<"edit" | "view">;
|
|
1564
|
+
form: _angular_core.InputSignal<FormGroup<any>>;
|
|
1565
|
+
formDataState: _angular_core.InputSignal<RecordData$1 | undefined>;
|
|
1566
|
+
pristineValue: _angular_core.InputSignal<DataType$1 | null>;
|
|
1567
|
+
data: _angular_core.InputSignal<RecordData$1 | undefined>;
|
|
1568
|
+
previouslyNulled: boolean | null;
|
|
1569
|
+
fieldMeta: Signal<FieldMeta$1>;
|
|
1570
|
+
mode: Signal<"edit" | "view">;
|
|
1571
|
+
showField: Signal<boolean>;
|
|
1572
|
+
showEmptyField: Signal<boolean>;
|
|
1573
|
+
class: string;
|
|
1574
|
+
booleanEditDisplayType: Signal<BooleanDisplayTypes>;
|
|
1575
|
+
previousValidatorCount: number;
|
|
1576
|
+
constructor();
|
|
1577
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceFieldComponent, never>;
|
|
1578
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceFieldComponent, "ccc-resource-field", never, { "fieldConfig": { "alias": "fieldConfig"; "required": true; "isSignal": true; }; "meta": { "alias": "meta"; "required": true; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "formDataState": { "alias": "formDataState"; "required": false; "isSignal": true; }; "pristineValue": { "alias": "pristineValue"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1579
|
+
}
|
|
1580
|
+
type BooleanDisplayTypes = Extract<ValidDisplayTypes$1, 'boolean' | 'nullboolean'>;
|
|
1581
|
+
|
|
1582
|
+
declare class ResourceLayoutComponent implements OnInit {
|
|
1583
|
+
element: _angular_core.InputSignal<ConfigElement$1>;
|
|
1584
|
+
meta: _angular_core.InputSignal<Meta$1>;
|
|
1585
|
+
fieldClass: _angular_core.InputSignal<string | undefined>;
|
|
1586
|
+
editMode: _angular_core.InputSignal<"edit" | "view">;
|
|
1587
|
+
form: _angular_core.InputSignal<FormGroup<any>>;
|
|
1588
|
+
formDataState: _angular_core.ModelSignal<RecordData$1 | undefined>;
|
|
1589
|
+
pristineValue: _angular_core.InputSignal<DataType$1 | null>;
|
|
1590
|
+
relatedData: _angular_core.InputSignal<RecordData$1 | undefined>;
|
|
1591
|
+
parentClass: _angular_core.InputSignal<string | undefined>;
|
|
1592
|
+
layoutNestingDepth: _angular_core.InputSignal<number>;
|
|
1593
|
+
maxLayoutNestingDepth: number;
|
|
1594
|
+
children: _angular_core.Signal<ConfigElement$1[]>;
|
|
1595
|
+
layoutChildrenConfig: _angular_core.Signal<ConfigElement$1[]>;
|
|
1596
|
+
previouslyNulled: boolean;
|
|
1597
|
+
nullIfConditionallyHidden: _angular_core.Signal<boolean>;
|
|
1598
|
+
showLayout: _angular_core.Signal<boolean>;
|
|
1599
|
+
class: string;
|
|
1600
|
+
constructor();
|
|
1601
|
+
ngOnInit(): void;
|
|
1602
|
+
shouldInitializeFormData(form: FormGroup, layoutNestingDepth: number, shouldRender: ConfigElement$1['shouldRender'], layoutChildren: ConfigElement$1[]): boolean;
|
|
1603
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceLayoutComponent, never>;
|
|
1604
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceLayoutComponent, "ccc-resource-layout-template", never, { "element": { "alias": "element"; "required": true; "isSignal": true; }; "meta": { "alias": "meta"; "required": true; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "formDataState": { "alias": "formDataState"; "required": false; "isSignal": true; }; "pristineValue": { "alias": "pristineValue"; "required": false; "isSignal": true; }; "relatedData": { "alias": "relatedData"; "required": false; "isSignal": true; }; "parentClass": { "alias": "parentClass"; "required": false; "isSignal": true; }; "layoutNestingDepth": { "alias": "layoutNestingDepth"; "required": false; "isSignal": true; }; }, { "formDataState": "formDataStateChange"; }, never, never, true, never>;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
declare class ResourceListComponent implements OnInit {
|
|
1608
|
+
compoundResourceComponent: _angular_core.InputSignal<Type<any>>;
|
|
1609
|
+
resourceMeta: (resource: Resource$1) => _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1610
|
+
router: Router;
|
|
1611
|
+
store: ResourceStore;
|
|
1612
|
+
injector: Injector;
|
|
1613
|
+
activatedRoute: ActivatedRoute;
|
|
1614
|
+
hideCreateButton: _angular_core.InputSignal<boolean>;
|
|
1615
|
+
createMode: _angular_core.OutputEmitterRef<boolean>;
|
|
1616
|
+
resourceConfig: _angular_core.InputSignal<ChildResourceConfig$1 | undefined>;
|
|
1617
|
+
viewRoute: _angular_core.InputSignal<string | undefined>;
|
|
1618
|
+
filter: _angular_core.InputSignal<string>;
|
|
1619
|
+
linkCreateType: _angular_core.InputSignal<boolean>;
|
|
1620
|
+
isRootList: _angular_core.InputSignal<boolean>;
|
|
1621
|
+
showCreateButton: _angular_core.Signal<boolean>;
|
|
1622
|
+
createButtonContext: _angular_core.Signal<{
|
|
1623
|
+
actionType: "create";
|
|
1624
|
+
meta: _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1625
|
+
shouldRender: (data: RecordData$1) => boolean;
|
|
1626
|
+
resourceData: RecordData$1;
|
|
1627
|
+
} | undefined>;
|
|
1628
|
+
searchableFields: _angular_core.Signal<string>;
|
|
1629
|
+
relatedData: _angular_core.InputSignal<RecordData$1 | undefined>;
|
|
1630
|
+
parentId: _angular_core.InputSignal<string | undefined>;
|
|
1631
|
+
routeConfig: _angular_core.Signal<RootConfig$1>;
|
|
1632
|
+
config: _angular_core.Signal<ListViewConfig$1>;
|
|
1633
|
+
expansionConfig: _angular_core.Signal<ChildResourceConfig$1>;
|
|
1634
|
+
viewRouteFallback: _angular_core.Signal<string | undefined>;
|
|
1635
|
+
listTitle: _angular_core.Signal<string>;
|
|
1636
|
+
indentTitle: _angular_core.Signal<boolean>;
|
|
1637
|
+
createButtonLabel: _angular_core.Signal<string>;
|
|
1638
|
+
meta: _angular_core.Signal<_cccteam_ccc_lib_src_types.ResourceMeta>;
|
|
1639
|
+
resourceRefMap: _angular_core.WritableSignal<Map<Resource$1, ResourceRef<RecordData$1[]>>>;
|
|
1640
|
+
primaryKeys: _angular_core.Signal<_cccteam_ccc_lib_src_types.FieldMeta[]>;
|
|
1641
|
+
rootColumns: _angular_core.Signal<ColumnConfig$1[]>;
|
|
1642
|
+
columns: _angular_core.Signal<ColumnConfig$1[]>;
|
|
1643
|
+
reloadListData(): void;
|
|
1644
|
+
processedRowData: _angular_core.Signal<{
|
|
1645
|
+
[x: string]: _cccteam_ccc_lib_src_types.DataType | null;
|
|
1646
|
+
}[]>;
|
|
1647
|
+
filters: _angular_core.Signal<string>;
|
|
1648
|
+
createResource(event: MouseEvent): void;
|
|
1649
|
+
parentKey: _angular_core.Signal<string | number | true | string[] | Date | number[]>;
|
|
1650
|
+
childKey: _angular_core.Signal<string>;
|
|
1651
|
+
private getUniqueId;
|
|
1652
|
+
ngOnInit(): void;
|
|
1653
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceListComponent, never>;
|
|
1654
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceListComponent, "ccc-resource-list", never, { "compoundResourceComponent": { "alias": "compoundResourceComponent"; "required": true; "isSignal": true; }; "hideCreateButton": { "alias": "hideCreateButton"; "required": false; "isSignal": true; }; "resourceConfig": { "alias": "resourceConfig"; "required": false; "isSignal": true; }; "viewRoute": { "alias": "viewRoute"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "linkCreateType": { "alias": "linkCreateType"; "required": false; "isSignal": true; }; "isRootList": { "alias": "isRootList"; "required": false; "isSignal": true; }; "relatedData": { "alias": "relatedData"; "required": false; "isSignal": true; }; "parentId": { "alias": "parentId"; "required": false; "isSignal": true; }; }, { "createMode": "createMode"; }, never, never, true, never>;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
declare class ResourceListCreateComponent {
|
|
1658
|
+
compoundResourceComponent: _angular_core.InputSignal<Type<any>>;
|
|
1659
|
+
injector: Injector;
|
|
1660
|
+
store: ResourceStore;
|
|
1661
|
+
listChild: _angular_core.Signal<ResourceListComponent | undefined>;
|
|
1662
|
+
route: ActivatedRoute;
|
|
1663
|
+
router: Router;
|
|
1664
|
+
create: _angular_core.WritableSignal<boolean>;
|
|
1665
|
+
parentId: _angular_core.InputSignal<string | undefined>;
|
|
1666
|
+
parentData: _angular_core.InputSignal<RecordData$1>;
|
|
1667
|
+
searchParams: _angular_core.InputSignal<Record<string, string>[]>;
|
|
1668
|
+
resourceConfig: _angular_core.InputSignal<ListViewConfig$1 | undefined>;
|
|
1669
|
+
isRootList: _angular_core.InputSignal<boolean>;
|
|
1670
|
+
childKey: _angular_core.Signal<string>;
|
|
1671
|
+
filter: _angular_core.Signal<string>;
|
|
1672
|
+
parentKey: _angular_core.Signal<string | number | true | string[] | Date | number[]>;
|
|
1673
|
+
config: _angular_core.Signal<ListViewConfig$1>;
|
|
1674
|
+
expPanel: _angular_core.Signal<MatExpansionPanel | undefined>;
|
|
1675
|
+
rootConfig: _angular_core.Signal<RootConfig$1>;
|
|
1676
|
+
createLinkType: _angular_core.Signal<boolean>;
|
|
1677
|
+
createConfig: _angular_core.Signal<_cccteam_ccc_lib_src_types.ChildResourceConfig>;
|
|
1678
|
+
createResource(event: MouseEvent): void;
|
|
1679
|
+
makeCreatePatches(): void;
|
|
1680
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceListCreateComponent, never>;
|
|
1681
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceListCreateComponent, "ccc-resource-list-create", never, { "compoundResourceComponent": { "alias": "compoundResourceComponent"; "required": true; "isSignal": true; }; "parentId": { "alias": "parentId"; "required": false; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": false; "isSignal": true; }; "searchParams": { "alias": "searchParams"; "required": false; "isSignal": true; }; "resourceConfig": { "alias": "resourceConfig"; "required": false; "isSignal": true; }; "isRootList": { "alias": "isRootList"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
declare class ResourceResolverComponent {
|
|
1685
|
+
compoundResourceComponent: _angular_core.InputSignal<Type<any>>;
|
|
1686
|
+
resourceConfig: _angular_core.InputSignal<ChildResourceConfig$1 | undefined>;
|
|
1687
|
+
config: _angular_core.Signal<ComponentConfig$1>;
|
|
1688
|
+
dynamicSlot: _angular_core.Signal<ViewContainerRef>;
|
|
1689
|
+
parentData: _angular_core.InputSignal<RecordData$1>;
|
|
1690
|
+
constructor();
|
|
1691
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceResolverComponent, never>;
|
|
1692
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceResolverComponent, "ccc-resource-resolver", never, { "compoundResourceComponent": { "alias": "compoundResourceComponent"; "required": true; "isSignal": true; }; "resourceConfig": { "alias": "resourceConfig"; "required": false; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
declare class ResourceViewComponent implements OnInit {
|
|
1696
|
+
resourceMeta: (resource: Resource$1) => _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1697
|
+
location: Location;
|
|
1698
|
+
router: Router;
|
|
1699
|
+
activatedRoute: ActivatedRoute;
|
|
1700
|
+
notifications: NotificationService$1;
|
|
1701
|
+
store: ResourceStore;
|
|
1702
|
+
injector: Injector;
|
|
1703
|
+
destroyRef: DestroyRef;
|
|
1704
|
+
formState: FormStateService;
|
|
1705
|
+
dialog: MatDialog;
|
|
1706
|
+
editMode: WritableSignal<'edit' | 'view'>;
|
|
1707
|
+
uuid: _angular_core.InputSignal<string>;
|
|
1708
|
+
config: _angular_core.InputSignal<ListViewConfig$1 | ViewConfig$1>;
|
|
1709
|
+
relatedData: _angular_core.InputSignal<RecordData$1>;
|
|
1710
|
+
compoundResourceView: _angular_core.InputSignal<boolean>;
|
|
1711
|
+
isDirty: WritableSignal<boolean>;
|
|
1712
|
+
displayFormInvalidMessage: WritableSignal<boolean>;
|
|
1713
|
+
deleted: _angular_core.OutputEmitterRef<boolean>;
|
|
1714
|
+
navAfterDelete: _angular_core.InputSignal<boolean>;
|
|
1715
|
+
showCreateForm: _angular_core.ModelSignal<boolean>;
|
|
1716
|
+
createConfig: _angular_core.Signal<_cccteam_ccc_lib_src_types.ChildResourceConfig>;
|
|
1717
|
+
rootConfig: _angular_core.Signal<RootConfig$1>;
|
|
1718
|
+
showCloseButton: _angular_core.Signal<boolean>;
|
|
1719
|
+
commonButtonConfig: _angular_core.Signal<{
|
|
1720
|
+
meta: _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1721
|
+
resourceData: RecordData$1;
|
|
1722
|
+
config: ListViewConfig$1 | ViewConfig$1;
|
|
1723
|
+
} | undefined>;
|
|
1724
|
+
editButtonContext: _angular_core.Signal<{
|
|
1725
|
+
actionType: "edit";
|
|
1726
|
+
meta: _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1727
|
+
resourceData: RecordData$1;
|
|
1728
|
+
shouldRender: ((data: any) => boolean) | ((data: any) => boolean);
|
|
1729
|
+
} | undefined>;
|
|
1730
|
+
deleteButtonContext: _angular_core.Signal<{
|
|
1731
|
+
actionType: "delete";
|
|
1732
|
+
meta: _cccteam_ccc_lib_src_types.ResourceMeta;
|
|
1733
|
+
resourceData: RecordData$1;
|
|
1734
|
+
shouldRender: (data: RecordData$1) => boolean;
|
|
1735
|
+
} | undefined>;
|
|
1736
|
+
inlineRpcConfigs: _angular_core.Signal<{
|
|
1737
|
+
config: RPCConfig$1;
|
|
1738
|
+
context: {
|
|
1739
|
+
actionType: "rpc";
|
|
1740
|
+
shouldRender: () => boolean;
|
|
1741
|
+
resourceData: RecordData$1;
|
|
1742
|
+
};
|
|
1743
|
+
}[] | undefined>;
|
|
1744
|
+
endRpcConfigs: _angular_core.Signal<{
|
|
1745
|
+
config: RPCConfig$1;
|
|
1746
|
+
context: {
|
|
1747
|
+
actionType: "rpc";
|
|
1748
|
+
shouldRender: () => boolean;
|
|
1749
|
+
resourceData: RecordData$1;
|
|
1750
|
+
};
|
|
1751
|
+
}[] | undefined>;
|
|
1752
|
+
useExpansionPanel: _angular_core.Signal<boolean>;
|
|
1753
|
+
resourceConfigRouteSnapshot: _angular_core.Signal<ListViewConfig$1 | ViewConfig$1>;
|
|
1754
|
+
emptyFormGroup: FormGroup<{}>;
|
|
1755
|
+
form: _angular_core.Signal<FormGroup<{}>>;
|
|
1756
|
+
pristineFormValues: Record<string, DataType$1 | null>;
|
|
1757
|
+
route: _angular_core.Signal<string>;
|
|
1758
|
+
primaryKeys: _angular_core.Signal<_cccteam_ccc_lib_src_types.FieldMeta[]>;
|
|
1759
|
+
primaryKeyPath: _angular_core.Signal<string>;
|
|
1760
|
+
ngOnInit(): void;
|
|
1761
|
+
setEditMode(mode: 'edit' | 'view'): void;
|
|
1762
|
+
saveForm(): void;
|
|
1763
|
+
resetForm(): void;
|
|
1764
|
+
confirmDeleteResource(): void;
|
|
1765
|
+
deleteResource(): void;
|
|
1766
|
+
relatedId(): string;
|
|
1767
|
+
constructor();
|
|
1768
|
+
createResource(): void;
|
|
1769
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceViewComponent, never>;
|
|
1770
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceViewComponent, "ccc-resource-view", never, { "uuid": { "alias": "uuid"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "relatedData": { "alias": "relatedData"; "required": false; "isSignal": true; }; "compoundResourceView": { "alias": "compoundResourceView"; "required": false; "isSignal": true; }; "navAfterDelete": { "alias": "navAfterDelete"; "required": false; "isSignal": true; }; "showCreateForm": { "alias": "showCreateForm"; "required": false; "isSignal": true; }; }, { "deleted": "deleted"; "showCreateForm": "showCreateFormChange"; }, never, never, true, never>;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
declare class CamelCaseToTitlePipe implements PipeTransform {
|
|
1774
|
+
transform(value: string): string;
|
|
1775
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CamelCaseToTitlePipe, never>;
|
|
1776
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CamelCaseToTitlePipe, "camelCaseToTitle", true>;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
declare class AppGridComponent {
|
|
1780
|
+
rowData: _angular_core.InputSignal<any[]>;
|
|
1781
|
+
columnDefs: _angular_core.InputSignal<ColumnConfig$1[]>;
|
|
1782
|
+
enableRowExpansion: _angular_core.InputSignal<boolean>;
|
|
1783
|
+
detailTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
1784
|
+
selectionType: _angular_core.InputSignal<"multiple" | "single" | "none">;
|
|
1785
|
+
selectedRows: _angular_core.OutputEmitterRef<RecordData$1[]>;
|
|
1786
|
+
selectedKeys: number[];
|
|
1787
|
+
onSelectedKeysChange(keys: number[]): void;
|
|
1788
|
+
selectionMode: _angular_core.Signal<false | SelectableSettings>;
|
|
1789
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppGridComponent, never>;
|
|
1790
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppGridComponent, "ccc-grid", never, { "rowData": { "alias": "rowData"; "required": false; "isSignal": true; }; "columnDefs": { "alias": "columnDefs"; "required": false; "isSignal": true; }; "enableRowExpansion": { "alias": "enableRowExpansion"; "required": false; "isSignal": true; }; "detailTemplate": { "alias": "detailTemplate"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; }, { "selectedRows": "selectedRows"; }, never, never, true, never>;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
declare class TableButtonComponent<T> {
|
|
1794
|
+
config: _angular_core.InputSignal<ActionButtonConfig$1>;
|
|
1795
|
+
rowData: _angular_core.InputSignal<T>;
|
|
1796
|
+
tooltipPosition: _angular_core.InputSignal<TooltipPosition>;
|
|
1797
|
+
color: _angular_core.InputSignal<string>;
|
|
1798
|
+
disabled: _angular_core.WritableSignal<boolean>;
|
|
1799
|
+
viewRoute: _angular_core.InputSignal<string>;
|
|
1800
|
+
id: _angular_core.InputSignal<string>;
|
|
1801
|
+
link: _angular_core.Signal<string>;
|
|
1802
|
+
callAction(): void;
|
|
1803
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableButtonComponent<any>, never>;
|
|
1804
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableButtonComponent<any>, "ccc-table-button", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "rowData": { "alias": "rowData"; "required": true; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "viewRoute": { "alias": "viewRoute"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
declare class IdleService implements OnDestroy {
|
|
1808
|
+
private auth;
|
|
1809
|
+
private core;
|
|
1810
|
+
private router;
|
|
1811
|
+
private notifications;
|
|
1812
|
+
private readonly sessionDuration;
|
|
1813
|
+
private readonly warningDuration;
|
|
1814
|
+
private readonly keepAliveDuration;
|
|
1815
|
+
private readonly idleCheckFrequency;
|
|
1816
|
+
private readonly warningThreshold;
|
|
1817
|
+
readonly isActive: WritableSignal<boolean>;
|
|
1818
|
+
private lastActivityTimestamp;
|
|
1819
|
+
private tick;
|
|
1820
|
+
readonly secondsIdle: _angular_core.Signal<number>;
|
|
1821
|
+
readonly isWarning: _angular_core.Signal<boolean>;
|
|
1822
|
+
readonly countdown: _angular_core.Signal<number>;
|
|
1823
|
+
private alertId;
|
|
1824
|
+
private mainTickerSubscription;
|
|
1825
|
+
private readonly activityEvents;
|
|
1826
|
+
constructor();
|
|
1827
|
+
ngOnDestroy(): void;
|
|
1828
|
+
/**
|
|
1829
|
+
* Starts the idle monitoring service.
|
|
1830
|
+
*/
|
|
1831
|
+
start(): void;
|
|
1832
|
+
/**
|
|
1833
|
+
* Stops the idle monitoring service and cleans up timers and alerts.
|
|
1834
|
+
*/
|
|
1835
|
+
stop(): void;
|
|
1836
|
+
/**
|
|
1837
|
+
* Logs out the user due to inactivity and stops the service.
|
|
1838
|
+
*/
|
|
1839
|
+
logoutAndStop(): void;
|
|
1840
|
+
private startMainTicker;
|
|
1841
|
+
private checkSession;
|
|
1842
|
+
setLastActivity(): void;
|
|
1843
|
+
boundActivity: () => void;
|
|
1844
|
+
private addActivityListeners;
|
|
1845
|
+
private removeActivityListeners;
|
|
1846
|
+
private showOrUpdateWarningAlert;
|
|
1847
|
+
private dismissWarningAlert;
|
|
1848
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IdleService, never>;
|
|
1849
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<IdleService>;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Compares two objects and returns a sparse object containing only the differing key-value pairs
|
|
1854
|
+
* @param data - object to compare
|
|
1855
|
+
* @param compareData - object to compare against
|
|
1856
|
+
* @returns Partial<T>
|
|
1857
|
+
* @example sparseData<UserCreate>(this.user, initUser)
|
|
1858
|
+
*/
|
|
1859
|
+
declare function sparseData<T extends Record<string, unknown>>(data: T, compareData: T): Partial<T>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Iterates through a form group's controls and returns a sparse object with only the changed values.
|
|
1862
|
+
* @param form - The form group to iterate through
|
|
1863
|
+
* @param compareData - The object to compare the form's values to
|
|
1864
|
+
* @returns - A sparse object with only the changed values
|
|
1865
|
+
* @example sparseFormData<UserCreate>(this.userForm, initUser)
|
|
1866
|
+
*/
|
|
1867
|
+
declare function sparseFormData<T>(form: FormGroup, compareData: T): T;
|
|
1868
|
+
/**
|
|
1869
|
+
* Recursively cleans a FormGroup or FormArray, removing controls with empty string values.
|
|
1870
|
+
* Similar to sparseFormData, but doesn't compare to an initial state
|
|
1871
|
+
* @param control - The FormGroup or FormArray to clean.
|
|
1872
|
+
* @returns A cleaned object with non-empty values.
|
|
1873
|
+
*/
|
|
1874
|
+
declare function cleanStringForm<T>(control: AbstractControl): T | undefined;
|
|
1875
|
+
|
|
1876
|
+
export { API_URL, AVAILABLE_DOMAINS, AVAILABLE_PERMISSIONS, ActionAccessControlWrapperComponent, AlertComponent, AlertLevel, ApiInterceptor, AppGridComponent, AuthService, AuthenticationGuard, AuthorizationGuard, BASE_URL, BaseInputComponent, BaseRPCModalComponent, CUSTOM_HTTP_REQUEST_OPTIONS, CamelCaseToTitlePipe, CccInputFieldComponent, CompoundResourceComponent, DeleteResourceConfirmationModalComponent, EmptyReadonlyFieldComponent, FRONTEND_LOGIN_PATH, FormStateService, HasPermissionDirective, IDLE_KEEPALIVE_DURATION, IDLE_SESSION_DURATION, IDLE_WARNING_DURATION, IdleService, InputMode, LeavePageConfirmationModalComponent, METHOD_META, NotificationService, PERMISSION_REQUIRED, PaddingElementComponent, RESOURCE_META, ReadPermission, ResourceArrayViewComponent, ResourceCreateComponent, ResourceFieldComponent, ResourceLayoutComponent, ResourceListComponent, ResourceListCreateComponent, ResourceResolverComponent, ResourceStore, ResourceViewComponent, RpcButtonComponent, SESSION_PATH, SidenavComponent, TableButtonComponent, UiCoreService, UpdatePermission, ValueFormatters, actionButtonConfig, actionButtonConfigDefaults, additionalResourceConfig, additionalResourceConfigDefaults, applyFormatting, arrayConfig, arrayConfigDefaults, canDeactivateGuard, civildateCoercion, cleanStringForm, componentConfig, componentConfigDefaults, computedDisplayField, computedDisplayFieldElementDefaults, concatFunctions, createFormGroup, createResourceValidator, defaultEmptyFieldValue, enumeratedConfig, enumeratedConfigDefaults, errorOptions, extractFieldNames, field, fieldElementDefaults, fieldSort, fieldSortDefaults, flattenElements, foreignKeyDefault, foreignKeyDefaultDefaults, formatDateString, generatedNavGroups, generatedNavItems, hyphenConcat, hyphenConcatWithoutResource, hyphenSpaceConcat, hyphenSpaceConcatWithoutResource, isUUID, listViewConfig, listViewConfigDefaults, maxConfigElementRecursionDepth, maxLayoutNestingDepth, metadataTypeCoercion, multiColumnConfig, multiColumnConfigDefaults, noSpaceConcatWithoutResource, nullBooleanConfig, nullBooleanConfigDefaults, padding, paddingElementDefaults, requiredIf, resourceRoutes, resourceValidators, rootConfig, rootConfigDefaults, rpcConfig, rpcConfigDefaults, section, sectionElementDefaults, simpleSlashDateFormatter, singleColumnConfig, singleColumnConfigDefaults, spaceConcat, spaceConcatWithoutResource, spaceHyphenConcat, spaceHyphenConcatWithoutResource, sparseData, sparseFormData, staticDefault, staticDefaultDefaults, switchParams, switchParamsDefaults, validatorsPresent, viewConfig, viewConfigDefaults };
|
|
1877
|
+
export type { ActionButtonConfig, ActionButtonConfigOptions, ActionButtonContext$1 as ActionButtonContext, ActionType, AdditionalResourceConfig, AdditionalResourceConfigOptions, Affix, ArrayConfig, AvailableComponents, BaseConfig, BaseConfigOptions, CanComponentDeactivate, CanDeactivateType, ChildResourceConfig, ColSize, ColumnConfig, ComponentConfig, ComponentConfigOptions, ComputedDisplayFieldElement, ComputedDisplayFieldElementOptions, ConcatFn, ConfigElement, ConfigParam, ConfigType, CreateNotificationMessage, CreateOperation, CustomHttpRequestOptions, DataType, DeleteOperation, Domain, DomainPermissions, EnumeratedConfig, EnumeratedConfigOptions, FieldDefault, FieldElement, FieldElementOptions, FieldMeta, FieldName, FieldPointer, FieldSort, FieldSortOptions, ForeignKeyDefault, ForeignKeyDefaultOptions, FormatType, FormatterFn, Link, ListConcatFn, ListViewConfig, ListViewConfigOptions, MenuItem, Meta, Method, MethodMeta, MultiColumnConfig, MultiColumnConfigOptions, NavGroups, NavItem, NotificationMessage, NullBoolean, NullBooleanConfig, NullBooleanConfigOptions, Operation, PaddingElement, PaddingElementOptions, ParentResourceConfig, PatchOperation, Permission, PermissionScope, PristineData, RPCBaseFormData, RPCConfig, RPCConfigOptions, RPCDataType, RPCFieldMeta, RPCPlacement, RPCRecordData, RecordData, Resource, ResourceMap, ResourceMeta, ResourceValidatorFn, RootConfig, RootConfigOptions, RootRouteData, RouteResourceData, RpcMethod, SectionElement, SectionElementOptions, SessionInfo, SingleColumnConfig, SingleColumnConfigOptions, StaticDefault, SwitchConfigParam, SwitchConfigParamOptions, UpdateOperation, ValidDisplayTypes, ValidRPCTypes, ViewConfig, ViewConfigOptions, ViewType, arrayConfigOptions, staticDefaultOptions, switchCase };
|