@cccteam/ccc-lib 0.0.18 → 0.0.20
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-auth-authentication-guard.mjs → cccteam-ccc-lib-auth-authentication-guard.mjs} +3 -3
- package/fesm2022/cccteam-ccc-lib-auth-authentication-guard.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-auth-authorization-guard.mjs → cccteam-ccc-lib-auth-authorization-guard.mjs} +2 -2
- package/fesm2022/cccteam-ccc-lib-auth-authorization-guard.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-auth-forms.mjs → cccteam-ccc-lib-auth-forms.mjs} +3 -3
- package/fesm2022/cccteam-ccc-lib-auth-forms.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-auth-has-permission.mjs → cccteam-ccc-lib-auth-has-permission.mjs} +2 -2
- package/fesm2022/cccteam-ccc-lib-auth-has-permission.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-auth-service.mjs → cccteam-ccc-lib-auth-service.mjs} +3 -3
- package/fesm2022/cccteam-ccc-lib-auth-service.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs → cccteam-ccc-lib-ccc-camel-case-to-title.mjs} +1 -1
- package/fesm2022/cccteam-ccc-lib-ccc-camel-case-to-title.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ccc-grid.mjs → cccteam-ccc-lib-ccc-grid.mjs} +2 -2
- package/fesm2022/cccteam-ccc-lib-ccc-grid.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ccc-resource.mjs → cccteam-ccc-lib-ccc-resource.mjs} +7 -9
- package/fesm2022/cccteam-ccc-lib-ccc-resource.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-forms.mjs → cccteam-ccc-lib-forms.mjs} +1 -1
- package/fesm2022/cccteam-ccc-lib-forms.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-types.mjs → cccteam-ccc-lib-types.mjs} +1 -6
- package/fesm2022/cccteam-ccc-lib-types.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ui-alert.mjs → cccteam-ccc-lib-ui-alert.mjs} +2 -2
- package/fesm2022/cccteam-ccc-lib-ui-alert.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ui-core-service.mjs → cccteam-ccc-lib-ui-core-service.mjs} +2 -2
- package/fesm2022/cccteam-ccc-lib-ui-core-service.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ui-idle-service.mjs → cccteam-ccc-lib-ui-idle-service.mjs} +6 -6
- package/fesm2022/cccteam-ccc-lib-ui-idle-service.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ui-interceptor.mjs → cccteam-ccc-lib-ui-interceptor.mjs} +5 -5
- package/fesm2022/cccteam-ccc-lib-ui-interceptor.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ui-notification-service.mjs → cccteam-ccc-lib-ui-notification-service.mjs} +1 -1
- package/fesm2022/cccteam-ccc-lib-ui-notification-service.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-ui-sidenav.mjs → cccteam-ccc-lib-ui-sidenav.mjs} +3 -3
- package/fesm2022/cccteam-ccc-lib-ui-sidenav.mjs.map +1 -0
- package/fesm2022/{cccteam-ccc-lib-src-util-request-options.mjs → cccteam-ccc-lib-util-request-options.mjs} +1 -1
- package/fesm2022/cccteam-ccc-lib-util-request-options.mjs.map +1 -0
- package/fesm2022/cccteam-ccc-lib.mjs +3 -4447
- package/fesm2022/cccteam-ccc-lib.mjs.map +1 -1
- package/package.json +52 -56
- package/types/{cccteam-ccc-lib-src-auth-forms.d.ts → cccteam-ccc-lib-auth-forms.d.ts} +2 -2
- package/types/{cccteam-ccc-lib-src-auth-has-permission.d.ts → cccteam-ccc-lib-auth-has-permission.d.ts} +1 -1
- package/types/{cccteam-ccc-lib-src-auth-service.d.ts → cccteam-ccc-lib-auth-service.d.ts} +1 -1
- package/types/{cccteam-ccc-lib-src-ccc-grid.d.ts → cccteam-ccc-lib-ccc-grid.d.ts} +1 -1
- package/types/{cccteam-ccc-lib-src-ccc-resource.d.ts → cccteam-ccc-lib-ccc-resource.d.ts} +38 -49
- package/types/{cccteam-ccc-lib-src-ui-alert.d.ts → cccteam-ccc-lib-ui-alert.d.ts} +2 -2
- package/types/{cccteam-ccc-lib-src-ui-core-service.d.ts → cccteam-ccc-lib-ui-core-service.d.ts} +2 -2
- package/types/{cccteam-ccc-lib-src-ui-notification-service.d.ts → cccteam-ccc-lib-ui-notification-service.d.ts} +1 -1
- package/types/{cccteam-ccc-lib-src-ui-sidenav.d.ts → cccteam-ccc-lib-ui-sidenav.d.ts} +2 -2
- package/types/cccteam-ccc-lib.d.ts +2 -1887
- package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ccc-grid.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-forms.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-internal-types.mjs +0 -6
- package/fesm2022/cccteam-ccc-lib-src-internal-types.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-types.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-idle-service.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs.map +0 -1
- package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs.map +0 -1
- package/types/cccteam-ccc-lib-src-internal-types.d.ts +0 -1
- /package/types/{cccteam-ccc-lib-src-auth-authentication-guard.d.ts → cccteam-ccc-lib-auth-authentication-guard.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-auth-authorization-guard.d.ts → cccteam-ccc-lib-auth-authorization-guard.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-ccc-camel-case-to-title.d.ts → cccteam-ccc-lib-ccc-camel-case-to-title.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-forms.d.ts → cccteam-ccc-lib-forms.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-types.d.ts → cccteam-ccc-lib-types.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-ui-idle-service.d.ts → cccteam-ccc-lib-ui-idle-service.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-ui-interceptor.d.ts → cccteam-ccc-lib-ui-interceptor.d.ts} +0 -0
- /package/types/{cccteam-ccc-lib-src-util-request-options.d.ts → cccteam-ccc-lib-util-request-options.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cccteam/ccc-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git://github.com/cccteam/ccc-lib.git"
|
|
@@ -25,77 +25,73 @@
|
|
|
25
25
|
"types": "./types/cccteam-ccc-lib.d.ts",
|
|
26
26
|
"default": "./fesm2022/cccteam-ccc-lib.mjs"
|
|
27
27
|
},
|
|
28
|
-
"./
|
|
29
|
-
"types": "./types/cccteam-ccc-lib-
|
|
30
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
28
|
+
"./auth-authentication-guard": {
|
|
29
|
+
"types": "./types/cccteam-ccc-lib-auth-authentication-guard.d.ts",
|
|
30
|
+
"default": "./fesm2022/cccteam-ccc-lib-auth-authentication-guard.mjs"
|
|
31
31
|
},
|
|
32
|
-
"./
|
|
33
|
-
"types": "./types/cccteam-ccc-lib-
|
|
34
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
32
|
+
"./auth-authorization-guard": {
|
|
33
|
+
"types": "./types/cccteam-ccc-lib-auth-authorization-guard.d.ts",
|
|
34
|
+
"default": "./fesm2022/cccteam-ccc-lib-auth-authorization-guard.mjs"
|
|
35
35
|
},
|
|
36
|
-
"./
|
|
37
|
-
"types": "./types/cccteam-ccc-lib-
|
|
38
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
36
|
+
"./auth-forms": {
|
|
37
|
+
"types": "./types/cccteam-ccc-lib-auth-forms.d.ts",
|
|
38
|
+
"default": "./fesm2022/cccteam-ccc-lib-auth-forms.mjs"
|
|
39
39
|
},
|
|
40
|
-
"./
|
|
41
|
-
"types": "./types/cccteam-ccc-lib-
|
|
42
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
40
|
+
"./auth-has-permission": {
|
|
41
|
+
"types": "./types/cccteam-ccc-lib-auth-has-permission.d.ts",
|
|
42
|
+
"default": "./fesm2022/cccteam-ccc-lib-auth-has-permission.mjs"
|
|
43
43
|
},
|
|
44
|
-
"./
|
|
45
|
-
"types": "./types/cccteam-ccc-lib-
|
|
46
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
44
|
+
"./auth-service": {
|
|
45
|
+
"types": "./types/cccteam-ccc-lib-auth-service.d.ts",
|
|
46
|
+
"default": "./fesm2022/cccteam-ccc-lib-auth-service.mjs"
|
|
47
47
|
},
|
|
48
|
-
"./
|
|
49
|
-
"types": "./types/cccteam-ccc-lib-
|
|
50
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
48
|
+
"./ccc-camel-case-to-title": {
|
|
49
|
+
"types": "./types/cccteam-ccc-lib-ccc-camel-case-to-title.d.ts",
|
|
50
|
+
"default": "./fesm2022/cccteam-ccc-lib-ccc-camel-case-to-title.mjs"
|
|
51
51
|
},
|
|
52
|
-
"./
|
|
53
|
-
"types": "./types/cccteam-ccc-lib-
|
|
54
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
52
|
+
"./ccc-grid": {
|
|
53
|
+
"types": "./types/cccteam-ccc-lib-ccc-grid.d.ts",
|
|
54
|
+
"default": "./fesm2022/cccteam-ccc-lib-ccc-grid.mjs"
|
|
55
55
|
},
|
|
56
|
-
"./
|
|
57
|
-
"types": "./types/cccteam-ccc-lib-
|
|
58
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
56
|
+
"./ccc-resource": {
|
|
57
|
+
"types": "./types/cccteam-ccc-lib-ccc-resource.d.ts",
|
|
58
|
+
"default": "./fesm2022/cccteam-ccc-lib-ccc-resource.mjs"
|
|
59
59
|
},
|
|
60
|
-
"./
|
|
61
|
-
"types": "./types/cccteam-ccc-lib-
|
|
62
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
60
|
+
"./forms": {
|
|
61
|
+
"types": "./types/cccteam-ccc-lib-forms.d.ts",
|
|
62
|
+
"default": "./fesm2022/cccteam-ccc-lib-forms.mjs"
|
|
63
63
|
},
|
|
64
|
-
"./
|
|
65
|
-
"types": "./types/cccteam-ccc-lib-
|
|
66
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
64
|
+
"./types": {
|
|
65
|
+
"types": "./types/cccteam-ccc-lib-types.d.ts",
|
|
66
|
+
"default": "./fesm2022/cccteam-ccc-lib-types.mjs"
|
|
67
67
|
},
|
|
68
|
-
"./
|
|
69
|
-
"types": "./types/cccteam-ccc-lib-
|
|
70
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
68
|
+
"./ui-alert": {
|
|
69
|
+
"types": "./types/cccteam-ccc-lib-ui-alert.d.ts",
|
|
70
|
+
"default": "./fesm2022/cccteam-ccc-lib-ui-alert.mjs"
|
|
71
71
|
},
|
|
72
|
-
"./
|
|
73
|
-
"types": "./types/cccteam-ccc-lib-
|
|
74
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
72
|
+
"./ui-core-service": {
|
|
73
|
+
"types": "./types/cccteam-ccc-lib-ui-core-service.d.ts",
|
|
74
|
+
"default": "./fesm2022/cccteam-ccc-lib-ui-core-service.mjs"
|
|
75
75
|
},
|
|
76
|
-
"./
|
|
77
|
-
"types": "./types/cccteam-ccc-lib-
|
|
78
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
76
|
+
"./ui-idle-service": {
|
|
77
|
+
"types": "./types/cccteam-ccc-lib-ui-idle-service.d.ts",
|
|
78
|
+
"default": "./fesm2022/cccteam-ccc-lib-ui-idle-service.mjs"
|
|
79
79
|
},
|
|
80
|
-
"./
|
|
81
|
-
"types": "./types/cccteam-ccc-lib-
|
|
82
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
80
|
+
"./ui-interceptor": {
|
|
81
|
+
"types": "./types/cccteam-ccc-lib-ui-interceptor.d.ts",
|
|
82
|
+
"default": "./fesm2022/cccteam-ccc-lib-ui-interceptor.mjs"
|
|
83
83
|
},
|
|
84
|
-
"./
|
|
85
|
-
"types": "./types/cccteam-ccc-lib-
|
|
86
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
84
|
+
"./ui-notification-service": {
|
|
85
|
+
"types": "./types/cccteam-ccc-lib-ui-notification-service.d.ts",
|
|
86
|
+
"default": "./fesm2022/cccteam-ccc-lib-ui-notification-service.mjs"
|
|
87
87
|
},
|
|
88
|
-
"./
|
|
89
|
-
"types": "./types/cccteam-ccc-lib-
|
|
90
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
88
|
+
"./ui-sidenav": {
|
|
89
|
+
"types": "./types/cccteam-ccc-lib-ui-sidenav.d.ts",
|
|
90
|
+
"default": "./fesm2022/cccteam-ccc-lib-ui-sidenav.mjs"
|
|
91
91
|
},
|
|
92
|
-
"./
|
|
93
|
-
"types": "./types/cccteam-ccc-lib-
|
|
94
|
-
"default": "./fesm2022/cccteam-ccc-lib-
|
|
95
|
-
},
|
|
96
|
-
"./src/util-request-options": {
|
|
97
|
-
"types": "./types/cccteam-ccc-lib-src-util-request-options.d.ts",
|
|
98
|
-
"default": "./fesm2022/cccteam-ccc-lib-src-util-request-options.mjs"
|
|
92
|
+
"./util-request-options": {
|
|
93
|
+
"types": "./types/cccteam-ccc-lib-util-request-options.d.ts",
|
|
94
|
+
"default": "./fesm2022/cccteam-ccc-lib-util-request-options.mjs"
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
97
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, Signal } from '@angular/core';
|
|
3
|
-
import { AuthService } from '@cccteam/ccc-lib/
|
|
4
|
-
import { Resource, Domain } from '@cccteam/ccc-lib/
|
|
3
|
+
import { AuthService } from '@cccteam/ccc-lib/auth-service';
|
|
4
|
+
import { Resource, Domain } from '@cccteam/ccc-lib/types';
|
|
5
5
|
|
|
6
6
|
declare enum InputMode {
|
|
7
7
|
Read = "read",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { SessionInfo, PermissionScope, Resource, Permission } from '@cccteam/ccc-lib/
|
|
3
|
+
import { SessionInfo, PermissionScope, Resource, Permission } from '@cccteam/ccc-lib/types';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
|
|
6
6
|
declare class AuthService {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
|
-
import { ColumnConfig, RecordData, ActionButtonConfig } from '@cccteam/ccc-lib/
|
|
3
|
+
import { ColumnConfig, RecordData, ActionButtonConfig } from '@cccteam/ccc-lib/types';
|
|
4
4
|
import { SelectableSettings } from '@progress/kendo-angular-grid';
|
|
5
5
|
import { TooltipPosition } from '@angular/material/tooltip';
|
|
6
6
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ModelSignal, Injector, Signal, ResourceRef, OnInit, Type, DestroyRef, ViewContainerRef, WritableSignal } from '@angular/core';
|
|
3
|
-
import * as
|
|
4
|
-
import { ResourceMeta, RecordData, MenuItem, Resource, DataType, ViewConfig, RootConfig, ConfigElement, RPCRecordData, MethodMeta, FieldSort, ColumnConfig, RPCConfig, FieldElement, Method, RPCBaseFormData, ParentResourceConfig, ChildResourceConfig, FormatType, PaddingElement, ArrayConfig, ListViewConfig, Meta, FieldMeta, RPCFieldMeta, ValidDisplayTypes, ComponentConfig } from '@cccteam/ccc-lib/
|
|
3
|
+
import * as _cccteam_ccc_lib_types from '@cccteam/ccc-lib/types';
|
|
4
|
+
import { ResourceMeta, RecordData, MenuItem, Resource, DataType, ViewConfig, RootConfig, ConfigElement, RPCRecordData, MethodMeta, FieldSort, ColumnConfig, RPCConfig, FieldElement, Method, RPCBaseFormData, ParentResourceConfig, ChildResourceConfig, FormatType, PaddingElement, ArrayConfig, ListViewConfig, Meta, FieldMeta, RPCFieldMeta, ValidDisplayTypes, ComponentConfig } from '@cccteam/ccc-lib/types';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import { Route, Router, ActivatedRoute, UrlTree, CanDeactivateFn } from '@angular/router';
|
|
7
|
-
import { NotificationService } from '@cccteam/ccc-lib/
|
|
7
|
+
import { NotificationService } from '@cccteam/ccc-lib/ui-notification-service';
|
|
8
8
|
import { HttpClient } from '@angular/common/http';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
10
10
|
import { FormGroup } from '@angular/forms';
|
|
11
11
|
import { Location } from '@angular/common';
|
|
12
12
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
13
|
-
import { CamelCaseToTitlePipe } from '@cccteam/ccc-lib/
|
|
13
|
+
import { CamelCaseToTitlePipe } from '@cccteam/ccc-lib/ccc-camel-case-to-title';
|
|
14
14
|
|
|
15
|
-
type ActionButtonContext
|
|
15
|
+
type ActionButtonContext = {
|
|
16
16
|
actionType: 'create' | 'edit' | 'delete';
|
|
17
17
|
meta: ResourceMeta;
|
|
18
18
|
resourceData: RecordData;
|
|
@@ -23,7 +23,7 @@ type ActionButtonContext$1 = {
|
|
|
23
23
|
shouldRender: (data: RecordData) => boolean;
|
|
24
24
|
};
|
|
25
25
|
declare class ActionAccessControlWrapperComponent {
|
|
26
|
-
actionContext: _angular_core.InputSignal<ActionButtonContext
|
|
26
|
+
actionContext: _angular_core.InputSignal<ActionButtonContext | undefined>;
|
|
27
27
|
showAction: _angular_core.Signal<boolean>;
|
|
28
28
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionAccessControlWrapperComponent, never>;
|
|
29
29
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionAccessControlWrapperComponent, "action-access-control-wrapper", never, { "actionContext": { "alias": "actionContext"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
@@ -107,7 +107,7 @@ declare class ResourceStore {
|
|
|
107
107
|
router: Router;
|
|
108
108
|
injector: Injector;
|
|
109
109
|
apiUrl: string;
|
|
110
|
-
methodMeta: (method: string) =>
|
|
110
|
+
methodMeta: (method: string) => _cccteam_ccc_lib_types.MethodMeta;
|
|
111
111
|
private resourceListRef;
|
|
112
112
|
listData: Signal<RecordData[]>;
|
|
113
113
|
listStatus: Signal<_angular_core.ResourceStatus | undefined>;
|
|
@@ -144,7 +144,7 @@ declare class RpcButtonComponent {
|
|
|
144
144
|
formState: FormStateService;
|
|
145
145
|
dialog: MatDialog;
|
|
146
146
|
store: ResourceStore;
|
|
147
|
-
methodMeta: (method: string) =>
|
|
147
|
+
methodMeta: (method: string) => _cccteam_ccc_lib_types.MethodMeta;
|
|
148
148
|
relatedData: _angular_core.InputSignal<RecordData>;
|
|
149
149
|
rpcConfig: _angular_core.InputSignal<RPCConfig>;
|
|
150
150
|
primaryResource: _angular_core.InputSignal<Resource>;
|
|
@@ -160,7 +160,7 @@ declare class RpcButtonComponent {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
declare class BaseRPCModalComponent {
|
|
163
|
-
methodMeta: (method: string) =>
|
|
163
|
+
methodMeta: (method: string) => _cccteam_ccc_lib_types.MethodMeta;
|
|
164
164
|
private dialogRef;
|
|
165
165
|
data: {
|
|
166
166
|
elements: FieldElement[];
|
|
@@ -169,7 +169,7 @@ declare class BaseRPCModalComponent {
|
|
|
169
169
|
width: string;
|
|
170
170
|
};
|
|
171
171
|
formData: _angular_core.WritableSignal<RPCBaseFormData>;
|
|
172
|
-
meta: _angular_core.Signal<
|
|
172
|
+
meta: _angular_core.Signal<_cccteam_ccc_lib_types.MethodMeta>;
|
|
173
173
|
constructor();
|
|
174
174
|
onConfirm(): void;
|
|
175
175
|
form: _angular_core.Signal<FormGroup<{}>>;
|
|
@@ -190,8 +190,8 @@ declare class CompoundResourceComponent implements OnInit {
|
|
|
190
190
|
store: ResourceStore;
|
|
191
191
|
injector: Injector;
|
|
192
192
|
componentRef: Type<any>;
|
|
193
|
-
resourceMeta: (resource: Resource) =>
|
|
194
|
-
resourceConfig: _angular_core.InputSignal<
|
|
193
|
+
resourceMeta: (resource: Resource) => _cccteam_ccc_lib_types.ResourceMeta;
|
|
194
|
+
resourceConfig: _angular_core.InputSignal<_cccteam_ccc_lib_types.ListViewConfig | _cccteam_ccc_lib_types.ViewConfig | _cccteam_ccc_lib_types.ComponentConfig | _cccteam_ccc_lib_types.ArrayConfig | undefined>;
|
|
195
195
|
isArrayChild: _angular_core.InputSignal<boolean>;
|
|
196
196
|
uuid: _angular_core.InputSignal<string>;
|
|
197
197
|
parentData: _angular_core.InputSignal<RecordData | undefined>;
|
|
@@ -204,12 +204,12 @@ declare class CompoundResourceComponent implements OnInit {
|
|
|
204
204
|
navAfterDeleteConsideringRoot: _angular_core.Signal<boolean>;
|
|
205
205
|
hasElements: _angular_core.Signal<boolean>;
|
|
206
206
|
primaryConfigParentId: _angular_core.Signal<string>;
|
|
207
|
-
primaryConfig: _angular_core.Signal<
|
|
207
|
+
primaryConfig: _angular_core.Signal<_cccteam_ccc_lib_types.ComponentConfig | ParentResourceConfig>;
|
|
208
208
|
title: _angular_core.Signal<string>;
|
|
209
209
|
isRootConfig: _angular_core.Signal<boolean>;
|
|
210
210
|
configs: _angular_core.Signal<ChildResourceConfig[]>;
|
|
211
211
|
rpcConfigs: _angular_core.Signal<{
|
|
212
|
-
config:
|
|
212
|
+
config: _cccteam_ccc_lib_types.RPCConfig;
|
|
213
213
|
context: {
|
|
214
214
|
actionType: "rpc";
|
|
215
215
|
shouldRender: () => boolean;
|
|
@@ -343,13 +343,13 @@ declare const civildateCoercion: (value: string) => Date;
|
|
|
343
343
|
* email, minLength, maxLength, pattern, nullValidator
|
|
344
344
|
*/
|
|
345
345
|
declare const resourceValidators: Readonly<{
|
|
346
|
-
REQUIRED:
|
|
347
|
-
EMAIL:
|
|
348
|
-
CURRENT_OR_FUTURE_DATE:
|
|
349
|
-
POSITIVE_NUMBER:
|
|
350
|
-
NOT_FUTURE_DATE:
|
|
351
|
-
VALUE_IN_RANGE_INCLUSIVE: (min: number, max: number) =>
|
|
352
|
-
MAX_LENGTH: (maxLength: number) =>
|
|
346
|
+
REQUIRED: _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
347
|
+
EMAIL: _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
348
|
+
CURRENT_OR_FUTURE_DATE: _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
349
|
+
POSITIVE_NUMBER: _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
350
|
+
NOT_FUTURE_DATE: _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
351
|
+
VALUE_IN_RANGE_INCLUSIVE: (min: number, max: number) => _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
352
|
+
MAX_LENGTH: (maxLength: number) => _cccteam_ccc_lib_types.ResourceValidatorFn;
|
|
353
353
|
}>;
|
|
354
354
|
|
|
355
355
|
declare class LeavePageConfirmationModalComponent {
|
|
@@ -365,19 +365,8 @@ declare class PaddingElementComponent implements OnInit {
|
|
|
365
365
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaddingElementComponent, "ccc-padding-element", never, { "paddingElement": { "alias": "paddingElement"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
type ActionButtonContext = {
|
|
369
|
-
actionType: 'create' | 'edit' | 'delete';
|
|
370
|
-
meta: ResourceMeta;
|
|
371
|
-
resourceData: RecordData;
|
|
372
|
-
shouldRender: (data: RecordData) => boolean;
|
|
373
|
-
} | {
|
|
374
|
-
actionType: 'rpc';
|
|
375
|
-
resourceData: RecordData;
|
|
376
|
-
shouldRender: (data: RecordData) => boolean;
|
|
377
|
-
};
|
|
378
|
-
|
|
379
368
|
declare class ResourceArrayViewComponent implements OnInit {
|
|
380
|
-
resourceMeta: (resource:
|
|
369
|
+
resourceMeta: (resource: _cccteam_ccc_lib_types.Resource) => _cccteam_ccc_lib_types.ResourceMeta;
|
|
381
370
|
store: ResourceStore;
|
|
382
371
|
injector: Injector;
|
|
383
372
|
resourceConfig: _angular_core.InputSignal<ArrayConfig>;
|
|
@@ -401,7 +390,7 @@ declare class ResourceArrayViewComponent implements OnInit {
|
|
|
401
390
|
}
|
|
402
391
|
|
|
403
392
|
declare class ResourceCreateComponent implements OnInit {
|
|
404
|
-
resourceMeta: (resource: Resource) =>
|
|
393
|
+
resourceMeta: (resource: Resource) => _cccteam_ccc_lib_types.ResourceMeta;
|
|
405
394
|
activatedRoute: ActivatedRoute;
|
|
406
395
|
notifications: NotificationService;
|
|
407
396
|
store: ResourceStore;
|
|
@@ -419,7 +408,7 @@ declare class ResourceCreateComponent implements OnInit {
|
|
|
419
408
|
indentTitle: _angular_core.Signal<boolean>;
|
|
420
409
|
form: _angular_core.Signal<FormGroup<{}>>;
|
|
421
410
|
route: _angular_core.Signal<string>;
|
|
422
|
-
primaryKeys: _angular_core.Signal<
|
|
411
|
+
primaryKeys: _angular_core.Signal<_cccteam_ccc_lib_types.FieldMeta[]>;
|
|
423
412
|
hasRequiredPrimaryKey: _angular_core.Signal<boolean>;
|
|
424
413
|
primaryKeyPath: _angular_core.Signal<string>;
|
|
425
414
|
camelCaseToTitlePipe: CamelCaseToTitlePipe;
|
|
@@ -432,7 +421,7 @@ declare class ResourceCreateComponent implements OnInit {
|
|
|
432
421
|
}
|
|
433
422
|
|
|
434
423
|
declare abstract class BaseInputComponent {
|
|
435
|
-
resourceMeta: (resource:
|
|
424
|
+
resourceMeta: (resource: _cccteam_ccc_lib_types.Resource) => _cccteam_ccc_lib_types.ResourceMeta;
|
|
436
425
|
injector: Injector;
|
|
437
426
|
store: ResourceStore;
|
|
438
427
|
meta: _angular_core.InputSignal<Meta>;
|
|
@@ -506,7 +495,7 @@ declare class ResourceLayoutComponent implements OnInit {
|
|
|
506
495
|
|
|
507
496
|
declare class ResourceListComponent implements OnInit {
|
|
508
497
|
compoundResourceComponent: _angular_core.InputSignal<Type<any>>;
|
|
509
|
-
resourceMeta: (resource: Resource) =>
|
|
498
|
+
resourceMeta: (resource: Resource) => _cccteam_ccc_lib_types.ResourceMeta;
|
|
510
499
|
router: Router;
|
|
511
500
|
store: ResourceStore;
|
|
512
501
|
injector: Injector;
|
|
@@ -521,7 +510,7 @@ declare class ResourceListComponent implements OnInit {
|
|
|
521
510
|
showCreateButton: _angular_core.Signal<boolean>;
|
|
522
511
|
createButtonContext: _angular_core.Signal<{
|
|
523
512
|
actionType: "create";
|
|
524
|
-
meta:
|
|
513
|
+
meta: _cccteam_ccc_lib_types.ResourceMeta;
|
|
525
514
|
shouldRender: (data: RecordData) => boolean;
|
|
526
515
|
resourceData: RecordData;
|
|
527
516
|
} | undefined>;
|
|
@@ -535,14 +524,14 @@ declare class ResourceListComponent implements OnInit {
|
|
|
535
524
|
listTitle: _angular_core.Signal<string>;
|
|
536
525
|
indentTitle: _angular_core.Signal<boolean>;
|
|
537
526
|
createButtonLabel: _angular_core.Signal<string>;
|
|
538
|
-
meta: _angular_core.Signal<
|
|
527
|
+
meta: _angular_core.Signal<_cccteam_ccc_lib_types.ResourceMeta>;
|
|
539
528
|
resourceRefMap: _angular_core.WritableSignal<Map<Resource, ResourceRef<RecordData[]>>>;
|
|
540
|
-
primaryKeys: _angular_core.Signal<
|
|
529
|
+
primaryKeys: _angular_core.Signal<_cccteam_ccc_lib_types.FieldMeta[]>;
|
|
541
530
|
rootColumns: _angular_core.Signal<ColumnConfig[]>;
|
|
542
531
|
columns: _angular_core.Signal<ColumnConfig[]>;
|
|
543
532
|
reloadListData(): void;
|
|
544
533
|
processedRowData: _angular_core.Signal<{
|
|
545
|
-
[x: string]:
|
|
534
|
+
[x: string]: _cccteam_ccc_lib_types.DataType | null;
|
|
546
535
|
}[]>;
|
|
547
536
|
filters: _angular_core.Signal<string>;
|
|
548
537
|
createResource(event: MouseEvent): void;
|
|
@@ -574,7 +563,7 @@ declare class ResourceListCreateComponent {
|
|
|
574
563
|
expPanel: _angular_core.Signal<MatExpansionPanel | undefined>;
|
|
575
564
|
rootConfig: _angular_core.Signal<RootConfig>;
|
|
576
565
|
createLinkType: _angular_core.Signal<boolean>;
|
|
577
|
-
createConfig: _angular_core.Signal<
|
|
566
|
+
createConfig: _angular_core.Signal<_cccteam_ccc_lib_types.ChildResourceConfig>;
|
|
578
567
|
createResource(event: MouseEvent): void;
|
|
579
568
|
makeCreatePatches(): void;
|
|
580
569
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceListCreateComponent, never>;
|
|
@@ -593,7 +582,7 @@ declare class ResourceResolverComponent {
|
|
|
593
582
|
}
|
|
594
583
|
|
|
595
584
|
declare class ResourceViewComponent implements OnInit {
|
|
596
|
-
resourceMeta: (resource: Resource) =>
|
|
585
|
+
resourceMeta: (resource: Resource) => _cccteam_ccc_lib_types.ResourceMeta;
|
|
597
586
|
location: Location;
|
|
598
587
|
router: Router;
|
|
599
588
|
activatedRoute: ActivatedRoute;
|
|
@@ -613,23 +602,23 @@ declare class ResourceViewComponent implements OnInit {
|
|
|
613
602
|
deleted: _angular_core.OutputEmitterRef<boolean>;
|
|
614
603
|
navAfterDelete: _angular_core.InputSignal<boolean>;
|
|
615
604
|
showCreateForm: _angular_core.ModelSignal<boolean>;
|
|
616
|
-
createConfig: _angular_core.Signal<
|
|
605
|
+
createConfig: _angular_core.Signal<_cccteam_ccc_lib_types.ChildResourceConfig>;
|
|
617
606
|
rootConfig: _angular_core.Signal<RootConfig>;
|
|
618
607
|
showCloseButton: _angular_core.Signal<boolean>;
|
|
619
608
|
commonButtonConfig: _angular_core.Signal<{
|
|
620
|
-
meta:
|
|
609
|
+
meta: _cccteam_ccc_lib_types.ResourceMeta;
|
|
621
610
|
resourceData: RecordData;
|
|
622
611
|
config: ListViewConfig | ViewConfig;
|
|
623
612
|
} | undefined>;
|
|
624
613
|
editButtonContext: _angular_core.Signal<{
|
|
625
614
|
actionType: "edit";
|
|
626
|
-
meta:
|
|
615
|
+
meta: _cccteam_ccc_lib_types.ResourceMeta;
|
|
627
616
|
resourceData: RecordData;
|
|
628
617
|
shouldRender: ((data: any) => boolean) | ((data: any) => boolean);
|
|
629
618
|
} | undefined>;
|
|
630
619
|
deleteButtonContext: _angular_core.Signal<{
|
|
631
620
|
actionType: "delete";
|
|
632
|
-
meta:
|
|
621
|
+
meta: _cccteam_ccc_lib_types.ResourceMeta;
|
|
633
622
|
resourceData: RecordData;
|
|
634
623
|
shouldRender: (data: RecordData) => boolean;
|
|
635
624
|
} | undefined>;
|
|
@@ -655,7 +644,7 @@ declare class ResourceViewComponent implements OnInit {
|
|
|
655
644
|
form: _angular_core.Signal<FormGroup<{}>>;
|
|
656
645
|
pristineFormValues: Record<string, DataType | null>;
|
|
657
646
|
route: _angular_core.Signal<string>;
|
|
658
|
-
primaryKeys: _angular_core.Signal<
|
|
647
|
+
primaryKeys: _angular_core.Signal<_cccteam_ccc_lib_types.FieldMeta[]>;
|
|
659
648
|
primaryKeyPath: _angular_core.Signal<string>;
|
|
660
649
|
ngOnInit(): void;
|
|
661
650
|
setEditMode(mode: 'edit' | 'view'): void;
|
|
@@ -671,4 +660,4 @@ declare class ResourceViewComponent implements OnInit {
|
|
|
671
660
|
}
|
|
672
661
|
|
|
673
662
|
export { ActionAccessControlWrapperComponent, BaseInputComponent, BaseRPCModalComponent, CompoundResourceComponent, DeleteResourceConfirmationModalComponent, EmptyReadonlyFieldComponent, FormStateService, LeavePageConfirmationModalComponent, PaddingElementComponent, ResourceArrayViewComponent, ResourceCreateComponent, ResourceFieldComponent, ResourceLayoutComponent, ResourceListComponent, ResourceListCreateComponent, ResourceResolverComponent, ResourceStore, ResourceViewComponent, RpcButtonComponent, ValueFormatters, applyFormatting, canDeactivateGuard, civildateCoercion, concatFunctions, createFormGroup, extractFieldNames, flattenElements, formatDateString, generatedNavGroups, generatedNavItems, hyphenConcat, hyphenConcatWithoutResource, hyphenSpaceConcat, hyphenSpaceConcatWithoutResource, isUUID, maxConfigElementRecursionDepth, maxLayoutNestingDepth, metadataTypeCoercion, noSpaceConcatWithoutResource, resourceRoutes, resourceValidators, simpleSlashDateFormatter, spaceConcat, spaceConcatWithoutResource, spaceHyphenConcat, spaceHyphenConcatWithoutResource };
|
|
674
|
-
export type { ActionButtonContext
|
|
663
|
+
export type { ActionButtonContext, CanComponentDeactivate, CanDeactivateType, CreateOperation, DeleteOperation, FormatterFn, Link, Operation, PatchOperation, PristineData, ResourceMap, UpdateOperation };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
|
-
import { NotificationMessage } from '@cccteam/ccc-lib/
|
|
4
|
-
import { NotificationService } from '@cccteam/ccc-lib/
|
|
3
|
+
import { NotificationMessage } from '@cccteam/ccc-lib/types';
|
|
4
|
+
import { NotificationService } from '@cccteam/ccc-lib/ui-notification-service';
|
|
5
5
|
|
|
6
6
|
declare class AlertComponent implements OnInit {
|
|
7
7
|
error: NotificationMessage;
|
package/types/{cccteam-ccc-lib-src-ui-core-service.d.ts → cccteam-ccc-lib-ui-core-service.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { CreateNotificationMessage } from '@cccteam/ccc-lib/
|
|
3
|
-
import { NotificationService } from '@cccteam/ccc-lib/
|
|
2
|
+
import { CreateNotificationMessage } from '@cccteam/ccc-lib/types';
|
|
3
|
+
import { NotificationService } from '@cccteam/ccc-lib/ui-notification-service';
|
|
4
4
|
|
|
5
5
|
declare class UiCoreService {
|
|
6
6
|
notifications: NotificationService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NotificationMessage, CreateNotificationMessage } from '@cccteam/ccc-lib/
|
|
2
|
+
import { NotificationMessage, CreateNotificationMessage } from '@cccteam/ccc-lib/types';
|
|
3
3
|
|
|
4
4
|
declare class NotificationService {
|
|
5
5
|
private notificationId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Signal } from '@angular/core';
|
|
3
|
-
import { PermissionScope } from '@cccteam/ccc-lib/
|
|
4
|
-
import { UiCoreService } from '@cccteam/ccc-lib/
|
|
3
|
+
import { PermissionScope } from '@cccteam/ccc-lib/types';
|
|
4
|
+
import { UiCoreService } from '@cccteam/ccc-lib/ui-core-service';
|
|
5
5
|
|
|
6
6
|
interface NavItem {
|
|
7
7
|
type: 'link' | 'header' | 'expandable';
|