@cccteam/ccc-lib 0.0.17 → 0.0.18
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/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs +26 -27
- package/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs.map +1 -1
- package/fesm2022/cccteam-ccc-lib-src-types.mjs +13 -2
- package/fesm2022/cccteam-ccc-lib-src-types.mjs.map +1 -1
- package/fesm2022/cccteam-ccc-lib.mjs +37 -28
- package/fesm2022/cccteam-ccc-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cccteam-ccc-lib-src-types.d.ts +14 -7
- package/types/cccteam-ccc-lib.d.ts +13 -7
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Type, InjectionToken } from '@angular/core';
|
|
1
3
|
import { TooltipPosition } from '@angular/material/tooltip';
|
|
2
4
|
import { ValidatorFn, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { InjectionToken } from '@angular/core';
|
|
4
5
|
|
|
5
6
|
type Brand<K, T> = K & {
|
|
6
7
|
__brand: T;
|
|
@@ -601,11 +602,17 @@ interface BaseConfig {
|
|
|
601
602
|
showBackButton: boolean;
|
|
602
603
|
createNavigation: string[];
|
|
603
604
|
}
|
|
604
|
-
|
|
605
|
+
declare abstract class CustomConfigComponent {
|
|
606
|
+
uuid: _angular_core.InputSignal<string | undefined>;
|
|
607
|
+
parentData: _angular_core.InputSignal<RecordData | undefined>;
|
|
608
|
+
config: _angular_core.InputSignal<ComponentConfig | undefined>;
|
|
609
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomConfigComponent, never>;
|
|
610
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomConfigComponent, never, never, { "uuid": { "alias": "uuid"; "required": false; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
611
|
+
}
|
|
605
612
|
type ConfigParam = SwitchConfigParam;
|
|
606
613
|
interface ComponentConfigOptions {
|
|
607
614
|
primaryResource: Resource;
|
|
608
|
-
component:
|
|
615
|
+
component: Type<CustomConfigComponent> | 'SwitchResolver';
|
|
609
616
|
params?: ConfigParam;
|
|
610
617
|
relatedConfig?: ParentResourceConfig[];
|
|
611
618
|
shouldRenderActions?: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
@@ -613,7 +620,7 @@ interface ComponentConfigOptions {
|
|
|
613
620
|
interface ComponentConfig {
|
|
614
621
|
type: 'Component';
|
|
615
622
|
primaryResource: Resource;
|
|
616
|
-
component:
|
|
623
|
+
component: Type<CustomConfigComponent> | 'SwitchResolver';
|
|
617
624
|
params: ConfigParam;
|
|
618
625
|
relatedConfig: ParentResourceConfig[];
|
|
619
626
|
shouldRenderActions: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
@@ -622,7 +629,7 @@ declare function componentConfig(config: ComponentConfigOptions): ComponentConfi
|
|
|
622
629
|
declare const componentConfigDefaults: {
|
|
623
630
|
type: "Component";
|
|
624
631
|
primaryResource: Resource;
|
|
625
|
-
component:
|
|
632
|
+
component: "SwitchResolver";
|
|
626
633
|
params: {
|
|
627
634
|
cases: never[];
|
|
628
635
|
};
|
|
@@ -935,5 +942,5 @@ declare const IDLE_SESSION_DURATION: InjectionToken<number>;
|
|
|
935
942
|
declare const IDLE_WARNING_DURATION: InjectionToken<number>;
|
|
936
943
|
declare const IDLE_KEEPALIVE_DURATION: InjectionToken<number>;
|
|
937
944
|
|
|
938
|
-
export { API_URL, AVAILABLE_DOMAINS, AVAILABLE_PERMISSIONS, AlertLevel, BASE_URL, CustomTypes, FRONTEND_LOGIN_PATH, IDLE_KEEPALIVE_DURATION, IDLE_SESSION_DURATION, IDLE_WARNING_DURATION, METHOD_META, PERMISSION_REQUIRED, RESOURCE_META, ReadPermission, SESSION_PATH, UpdatePermission, actionButtonConfig, actionButtonConfigDefaults, additionalResourceConfig, additionalResourceConfigDefaults, arrayConfig, arrayConfigDefaults, componentConfig, componentConfigDefaults, computedDisplayField, computedDisplayFieldElementDefaults, createResourceValidator, defaultEmptyFieldValue, enumeratedConfig, enumeratedConfigDefaults, field, fieldElementDefaults, fieldSort, fieldSortDefaults, foreignKeyDefault, foreignKeyDefaultDefaults, listViewConfig, listViewConfigDefaults, multiColumnConfig, multiColumnConfigDefaults, nullBooleanConfig, nullBooleanConfigDefaults, padding, paddingElementDefaults, requiredIf, rootConfig, rootConfigDefaults, rpcConfig, rpcConfigDefaults, section, sectionElementDefaults, singleColumnConfig, singleColumnConfigDefaults, staticDefault, staticDefaultDefaults, switchParams, switchParamsDefaults, validatorsPresent, viewConfig, viewConfigDefaults };
|
|
939
|
-
export type { ActionButtonConfig, ActionButtonConfigOptions, ActionType, AdditionalResourceConfig, AdditionalResourceConfigOptions, Affix, ArrayConfig,
|
|
945
|
+
export { API_URL, AVAILABLE_DOMAINS, AVAILABLE_PERMISSIONS, AlertLevel, BASE_URL, CustomConfigComponent, CustomTypes, FRONTEND_LOGIN_PATH, IDLE_KEEPALIVE_DURATION, IDLE_SESSION_DURATION, IDLE_WARNING_DURATION, METHOD_META, PERMISSION_REQUIRED, RESOURCE_META, ReadPermission, SESSION_PATH, UpdatePermission, actionButtonConfig, actionButtonConfigDefaults, additionalResourceConfig, additionalResourceConfigDefaults, arrayConfig, arrayConfigDefaults, componentConfig, componentConfigDefaults, computedDisplayField, computedDisplayFieldElementDefaults, createResourceValidator, defaultEmptyFieldValue, enumeratedConfig, enumeratedConfigDefaults, field, fieldElementDefaults, fieldSort, fieldSortDefaults, foreignKeyDefault, foreignKeyDefaultDefaults, listViewConfig, listViewConfigDefaults, multiColumnConfig, multiColumnConfigDefaults, nullBooleanConfig, nullBooleanConfigDefaults, padding, paddingElementDefaults, requiredIf, rootConfig, rootConfigDefaults, rpcConfig, rpcConfigDefaults, section, sectionElementDefaults, singleColumnConfig, singleColumnConfigDefaults, staticDefault, staticDefaultDefaults, switchParams, switchParamsDefaults, validatorsPresent, viewConfig, viewConfigDefaults };
|
|
946
|
+
export type { ActionButtonConfig, ActionButtonConfigOptions, ActionType, AdditionalResourceConfig, AdditionalResourceConfigOptions, Affix, ArrayConfig, BaseConfig, BaseConfigOptions, ChildResourceConfig, ColSize, ColumnConfig, ComponentConfig, ComponentConfigOptions, ComputedDisplayFieldElement, ComputedDisplayFieldElementOptions, ConcatFn, ConfigElement, ConfigParam, ConfigType, CreateNotificationMessage, DataType, Domain, DomainPermissions, EnumeratedConfig, EnumeratedConfigOptions, FieldDefault, FieldElement, FieldElementOptions, FieldMeta, FieldName, FieldPointer, FieldSort, FieldSortOptions, ForeignKeyDefault, ForeignKeyDefaultOptions, FormatType, ListConcatFn, ListViewConfig, ListViewConfigOptions, MenuItem, Meta, Method, MethodMeta, MultiColumnConfig, MultiColumnConfigOptions, NotificationMessage, NullBoolean, NullBooleanConfig, NullBooleanConfigOptions, PaddingElement, PaddingElementOptions, ParentResourceConfig, Permission, PermissionScope, RPCBaseFormData, RPCConfig, RPCConfigOptions, RPCDataType, RPCFieldMeta, RPCPlacement, RPCRecordData, RecordData, Resource, ResourceMeta, ResourceValidatorFn, RootConfig, RootConfigOptions, RootRouteData, RouteResourceData, RpcMethod, SectionElement, SectionElementOptions, SessionInfo, SingleColumnConfig, SingleColumnConfigOptions, StaticDefault, SwitchConfigParam, SwitchConfigParamOptions, ValidDisplayTypes, ValidRPCTypes, ViewConfig, ViewConfigOptions, ViewType, arrayConfigOptions, staticDefaultOptions, switchCase };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, Signal, InjectionToken, EventEmitter, ModelSignal, Injector, ResourceRef,
|
|
2
|
+
import { OnInit, Signal, Type, InjectionToken, EventEmitter, ModelSignal, Injector, ResourceRef, DestroyRef, ViewContainerRef, WritableSignal, PipeTransform, TemplateRef, OnDestroy } from '@angular/core';
|
|
3
3
|
import { HttpClient, HttpContextToken, HttpContext, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
4
4
|
import * as _cccteam_ccc_lib_src_types from '@cccteam/ccc-lib/src/types';
|
|
5
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';
|
|
@@ -707,11 +707,17 @@ interface BaseConfig {
|
|
|
707
707
|
showBackButton: boolean;
|
|
708
708
|
createNavigation: string[];
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
declare abstract class CustomConfigComponent {
|
|
711
|
+
uuid: _angular_core.InputSignal<string | undefined>;
|
|
712
|
+
parentData: _angular_core.InputSignal<RecordData | undefined>;
|
|
713
|
+
config: _angular_core.InputSignal<ComponentConfig | undefined>;
|
|
714
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomConfigComponent, never>;
|
|
715
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomConfigComponent, never, never, { "uuid": { "alias": "uuid"; "required": false; "isSignal": true; }; "parentData": { "alias": "parentData"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
716
|
+
}
|
|
711
717
|
type ConfigParam = SwitchConfigParam;
|
|
712
718
|
interface ComponentConfigOptions {
|
|
713
719
|
primaryResource: Resource;
|
|
714
|
-
component:
|
|
720
|
+
component: Type<CustomConfigComponent> | 'SwitchResolver';
|
|
715
721
|
params?: ConfigParam;
|
|
716
722
|
relatedConfig?: ParentResourceConfig[];
|
|
717
723
|
shouldRenderActions?: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
@@ -719,7 +725,7 @@ interface ComponentConfigOptions {
|
|
|
719
725
|
interface ComponentConfig {
|
|
720
726
|
type: 'Component';
|
|
721
727
|
primaryResource: Resource;
|
|
722
|
-
component:
|
|
728
|
+
component: Type<CustomConfigComponent> | 'SwitchResolver';
|
|
723
729
|
params: ConfigParam;
|
|
724
730
|
relatedConfig: ParentResourceConfig[];
|
|
725
731
|
shouldRenderActions: Record<'edit' | 'delete' | 'create', (data: any) => boolean>;
|
|
@@ -728,7 +734,7 @@ declare function componentConfig(config: ComponentConfigOptions): ComponentConfi
|
|
|
728
734
|
declare const componentConfigDefaults: {
|
|
729
735
|
type: "Component";
|
|
730
736
|
primaryResource: Resource;
|
|
731
|
-
component:
|
|
737
|
+
component: "SwitchResolver";
|
|
732
738
|
params: {
|
|
733
739
|
cases: never[];
|
|
734
740
|
};
|
|
@@ -1878,5 +1884,5 @@ declare function sparseFormData<T>(form: FormGroup, compareData: T): T;
|
|
|
1878
1884
|
*/
|
|
1879
1885
|
declare function cleanStringForm<T>(control: AbstractControl): T | undefined;
|
|
1880
1886
|
|
|
1881
|
-
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, CustomTypes, 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 };
|
|
1882
|
-
export type { ActionButtonConfig, ActionButtonConfigOptions, ActionButtonContext$1 as ActionButtonContext, ActionType, AdditionalResourceConfig, AdditionalResourceConfigOptions, Affix, ArrayConfig,
|
|
1887
|
+
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, CustomConfigComponent, CustomTypes, 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 };
|
|
1888
|
+
export type { ActionButtonConfig, ActionButtonConfigOptions, ActionButtonContext$1 as ActionButtonContext, ActionType, AdditionalResourceConfig, AdditionalResourceConfigOptions, Affix, ArrayConfig, 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 };
|