@cccteam/ccc-lib 0.0.14 → 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.
Files changed (58) hide show
  1. package/README.md +38 -13
  2. package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs.map +1 -1
  3. package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs.map +1 -1
  4. package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs +15 -49
  5. package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs.map +1 -1
  6. package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs +4 -4
  7. package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs.map +1 -1
  8. package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs +16 -22
  9. package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs.map +1 -1
  10. package/fesm2022/cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs +33 -0
  11. package/fesm2022/cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs.map +1 -0
  12. package/fesm2022/cccteam-ccc-lib-src-ccc-grid.mjs +256 -0
  13. package/fesm2022/cccteam-ccc-lib-src-ccc-grid.mjs.map +1 -0
  14. package/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs +3129 -0
  15. package/fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs.map +1 -0
  16. package/fesm2022/cccteam-ccc-lib-src-forms.mjs +79 -0
  17. package/fesm2022/cccteam-ccc-lib-src-forms.mjs.map +1 -0
  18. package/fesm2022/cccteam-ccc-lib-src-internal-types.mjs +6 -0
  19. package/fesm2022/cccteam-ccc-lib-src-internal-types.mjs.map +1 -0
  20. package/fesm2022/cccteam-ccc-lib-src-types.mjs +406 -112
  21. package/fesm2022/cccteam-ccc-lib-src-types.mjs.map +1 -1
  22. package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs +3 -3
  23. package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs.map +1 -1
  24. package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs +7 -7
  25. package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs.map +1 -1
  26. package/fesm2022/cccteam-ccc-lib-src-ui-idle-service.mjs +157 -0
  27. package/fesm2022/cccteam-ccc-lib-src-ui-idle-service.mjs.map +1 -0
  28. package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs +4 -4
  29. package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs.map +1 -1
  30. package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs +5 -5
  31. package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs.map +1 -1
  32. package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs +4 -4
  33. package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs.map +1 -1
  34. package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs.map +1 -1
  35. package/fesm2022/cccteam-ccc-lib.mjs +4434 -12
  36. package/fesm2022/cccteam-ccc-lib.mjs.map +1 -1
  37. package/package.json +44 -18
  38. package/{src/auth-forms/index.d.ts → types/cccteam-ccc-lib-src-auth-forms.d.ts} +1 -18
  39. package/{src/auth-service/index.d.ts → types/cccteam-ccc-lib-src-auth-service.d.ts} +3 -1
  40. package/types/cccteam-ccc-lib-src-ccc-camel-case-to-title.d.ts +10 -0
  41. package/types/cccteam-ccc-lib-src-ccc-grid.d.ts +35 -0
  42. package/types/cccteam-ccc-lib-src-ccc-resource.d.ts +674 -0
  43. package/types/cccteam-ccc-lib-src-forms.d.ts +27 -0
  44. package/types/cccteam-ccc-lib-src-internal-types.d.ts +1 -0
  45. package/types/cccteam-ccc-lib-src-types.d.ts +934 -0
  46. package/types/cccteam-ccc-lib-src-ui-idle-service.d.ts +49 -0
  47. package/types/cccteam-ccc-lib.d.ts +1877 -0
  48. package/index.d.ts +0 -12
  49. package/src/types/index.d.ts +0 -133
  50. /package/{src/auth-authentication-guard/index.d.ts → types/cccteam-ccc-lib-src-auth-authentication-guard.d.ts} +0 -0
  51. /package/{src/auth-authorization-guard/index.d.ts → types/cccteam-ccc-lib-src-auth-authorization-guard.d.ts} +0 -0
  52. /package/{src/auth-has-permission/index.d.ts → types/cccteam-ccc-lib-src-auth-has-permission.d.ts} +0 -0
  53. /package/{src/ui-alert/index.d.ts → types/cccteam-ccc-lib-src-ui-alert.d.ts} +0 -0
  54. /package/{src/ui-core-service/index.d.ts → types/cccteam-ccc-lib-src-ui-core-service.d.ts} +0 -0
  55. /package/{src/ui-interceptor/index.d.ts → types/cccteam-ccc-lib-src-ui-interceptor.d.ts} +0 -0
  56. /package/{src/ui-notification-service/index.d.ts → types/cccteam-ccc-lib-src-ui-notification-service.d.ts} +0 -0
  57. /package/{src/ui-sidenav/index.d.ts → types/cccteam-ccc-lib-src-ui-sidenav.d.ts} +0 -0
  58. /package/{src/util-request-options/index.d.ts → types/cccteam-ccc-lib-src-util-request-options.d.ts} +0 -0
package/package.json CHANGED
@@ -1,75 +1,101 @@
1
1
  {
2
2
  "name": "@cccteam/ccc-lib",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git://github.com/cccteam/ccc-lib.git"
7
7
  },
8
8
  "peerDependencies": {
9
- "@angular/common": "^20.0.0",
10
- "@angular/core": "^20.0.0"
9
+ "@angular/common": "^21.0.0",
10
+ "@angular/core": "^21.0.0"
11
11
  },
12
12
  "dependencies": {
13
+ "date-fns": "^4.1.0",
14
+ "date-fns-tz": "^3.2.0",
13
15
  "tslib": "^2.3.0"
14
16
  },
15
17
  "sideEffects": false,
16
18
  "module": "fesm2022/cccteam-ccc-lib.mjs",
17
- "typings": "index.d.ts",
19
+ "typings": "types/cccteam-ccc-lib.d.ts",
18
20
  "exports": {
19
21
  "./package.json": {
20
22
  "default": "./package.json"
21
23
  },
22
24
  ".": {
23
- "types": "./index.d.ts",
25
+ "types": "./types/cccteam-ccc-lib.d.ts",
24
26
  "default": "./fesm2022/cccteam-ccc-lib.mjs"
25
27
  },
26
28
  "./src/auth-authentication-guard": {
27
- "types": "./src/auth-authentication-guard/index.d.ts",
29
+ "types": "./types/cccteam-ccc-lib-src-auth-authentication-guard.d.ts",
28
30
  "default": "./fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs"
29
31
  },
30
32
  "./src/auth-authorization-guard": {
31
- "types": "./src/auth-authorization-guard/index.d.ts",
33
+ "types": "./types/cccteam-ccc-lib-src-auth-authorization-guard.d.ts",
32
34
  "default": "./fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs"
33
35
  },
34
36
  "./src/auth-forms": {
35
- "types": "./src/auth-forms/index.d.ts",
37
+ "types": "./types/cccteam-ccc-lib-src-auth-forms.d.ts",
36
38
  "default": "./fesm2022/cccteam-ccc-lib-src-auth-forms.mjs"
37
39
  },
38
40
  "./src/auth-has-permission": {
39
- "types": "./src/auth-has-permission/index.d.ts",
41
+ "types": "./types/cccteam-ccc-lib-src-auth-has-permission.d.ts",
40
42
  "default": "./fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs"
41
43
  },
42
44
  "./src/auth-service": {
43
- "types": "./src/auth-service/index.d.ts",
45
+ "types": "./types/cccteam-ccc-lib-src-auth-service.d.ts",
44
46
  "default": "./fesm2022/cccteam-ccc-lib-src-auth-service.mjs"
45
47
  },
48
+ "./src/ccc-camel-case-to-title": {
49
+ "types": "./types/cccteam-ccc-lib-src-ccc-camel-case-to-title.d.ts",
50
+ "default": "./fesm2022/cccteam-ccc-lib-src-ccc-camel-case-to-title.mjs"
51
+ },
52
+ "./src/ccc-grid": {
53
+ "types": "./types/cccteam-ccc-lib-src-ccc-grid.d.ts",
54
+ "default": "./fesm2022/cccteam-ccc-lib-src-ccc-grid.mjs"
55
+ },
56
+ "./src/ccc-resource": {
57
+ "types": "./types/cccteam-ccc-lib-src-ccc-resource.d.ts",
58
+ "default": "./fesm2022/cccteam-ccc-lib-src-ccc-resource.mjs"
59
+ },
60
+ "./src/forms": {
61
+ "types": "./types/cccteam-ccc-lib-src-forms.d.ts",
62
+ "default": "./fesm2022/cccteam-ccc-lib-src-forms.mjs"
63
+ },
64
+ "./src/internal-types": {
65
+ "types": "./types/cccteam-ccc-lib-src-internal-types.d.ts",
66
+ "default": "./fesm2022/cccteam-ccc-lib-src-internal-types.mjs"
67
+ },
46
68
  "./src/types": {
47
- "types": "./src/types/index.d.ts",
69
+ "types": "./types/cccteam-ccc-lib-src-types.d.ts",
48
70
  "default": "./fesm2022/cccteam-ccc-lib-src-types.mjs"
49
71
  },
50
72
  "./src/ui-alert": {
51
- "types": "./src/ui-alert/index.d.ts",
73
+ "types": "./types/cccteam-ccc-lib-src-ui-alert.d.ts",
52
74
  "default": "./fesm2022/cccteam-ccc-lib-src-ui-alert.mjs"
53
75
  },
54
76
  "./src/ui-core-service": {
55
- "types": "./src/ui-core-service/index.d.ts",
77
+ "types": "./types/cccteam-ccc-lib-src-ui-core-service.d.ts",
56
78
  "default": "./fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs"
57
79
  },
80
+ "./src/ui-idle-service": {
81
+ "types": "./types/cccteam-ccc-lib-src-ui-idle-service.d.ts",
82
+ "default": "./fesm2022/cccteam-ccc-lib-src-ui-idle-service.mjs"
83
+ },
58
84
  "./src/ui-interceptor": {
59
- "types": "./src/ui-interceptor/index.d.ts",
85
+ "types": "./types/cccteam-ccc-lib-src-ui-interceptor.d.ts",
60
86
  "default": "./fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs"
61
87
  },
62
88
  "./src/ui-notification-service": {
63
- "types": "./src/ui-notification-service/index.d.ts",
89
+ "types": "./types/cccteam-ccc-lib-src-ui-notification-service.d.ts",
64
90
  "default": "./fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs"
65
91
  },
66
92
  "./src/ui-sidenav": {
67
- "types": "./src/ui-sidenav/index.d.ts",
93
+ "types": "./types/cccteam-ccc-lib-src-ui-sidenav.d.ts",
68
94
  "default": "./fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs"
69
95
  },
70
96
  "./src/util-request-options": {
71
- "types": "./src/util-request-options/index.d.ts",
97
+ "types": "./types/cccteam-ccc-lib-src-util-request-options.d.ts",
72
98
  "default": "./fesm2022/cccteam-ccc-lib-src-util-request-options.mjs"
73
99
  }
74
100
  }
75
- }
101
+ }
@@ -2,7 +2,6 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnInit, Signal } from '@angular/core';
3
3
  import { AuthService } from '@cccteam/ccc-lib/src/auth-service';
4
4
  import { Resource, Domain } from '@cccteam/ccc-lib/src/types';
5
- import { FormGroup, FormArray } from '@angular/forms';
6
5
 
7
6
  declare enum InputMode {
8
7
  Read = "read",
@@ -26,20 +25,4 @@ declare class CccInputFieldComponent implements OnInit {
26
25
  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>;
27
26
  }
28
27
 
29
- /**
30
- * Accepts a FormGroup and compares it to an object to return the dirty form values
31
- * as a sparse object
32
- * @param form - FormGroup
33
- * @param compareData - object to compare form values against
34
- * @returns Partial<T>
35
- * @example sparseFormData<UserCreate>(this.userForm, initUser)
36
- */
37
- declare function sparseFormData<T>(form: FormGroup, compareData: T): T;
38
- /**
39
- * Accepts a FormArray and removes empty strings
40
- * @param formArray - FormArray
41
- * @returns FormArray
42
- */
43
- declare function cleanStringFormArray(formArray: FormArray): FormArray;
44
-
45
- export { CccInputFieldComponent, InputMode, cleanStringFormArray, sparseFormData };
28
+ export { CccInputFieldComponent, InputMode };
@@ -5,13 +5,15 @@ import { Observable } from 'rxjs';
5
5
 
6
6
  declare class AuthService {
7
7
  private apiUrl;
8
+ private loginUrl;
9
+ private sessionUrl;
8
10
  http: HttpClient;
9
11
  private authenticatedSignal;
10
12
  private sessionInfoSignal;
11
13
  redirectUrl: _angular_core.WritableSignal<string>;
12
14
  authenticated: _angular_core.Signal<boolean>;
13
15
  sessionInfo: _angular_core.Signal<SessionInfo>;
14
- constructor(apiUrl: string);
16
+ constructor();
15
17
  private static permissionFn;
16
18
  hasPermission(scope?: PermissionScope): boolean;
17
19
  static requiresPermission(resource: Resource, permission: Permission): boolean;
@@ -0,0 +1,10 @@
1
+ import * as i0 from '@angular/core';
2
+ import { PipeTransform } from '@angular/core';
3
+
4
+ declare class CamelCaseToTitlePipe implements PipeTransform {
5
+ transform(value: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CamelCaseToTitlePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<CamelCaseToTitlePipe, "camelCaseToTitle", true>;
8
+ }
9
+
10
+ export { CamelCaseToTitlePipe };
@@ -0,0 +1,35 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import { ColumnConfig, RecordData, ActionButtonConfig } from '@cccteam/ccc-lib/src/types';
4
+ import { SelectableSettings } from '@progress/kendo-angular-grid';
5
+ import { TooltipPosition } from '@angular/material/tooltip';
6
+
7
+ declare class AppGridComponent {
8
+ rowData: _angular_core.InputSignal<any[]>;
9
+ columnDefs: _angular_core.InputSignal<ColumnConfig[]>;
10
+ enableRowExpansion: _angular_core.InputSignal<boolean>;
11
+ detailTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
12
+ selectionType: _angular_core.InputSignal<"multiple" | "single" | "none">;
13
+ selectedRows: _angular_core.OutputEmitterRef<RecordData[]>;
14
+ selectedKeys: number[];
15
+ onSelectedKeysChange(keys: number[]): void;
16
+ selectionMode: _angular_core.Signal<false | SelectableSettings>;
17
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppGridComponent, never>;
18
+ 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>;
19
+ }
20
+
21
+ declare class TableButtonComponent<T> {
22
+ config: _angular_core.InputSignal<ActionButtonConfig>;
23
+ rowData: _angular_core.InputSignal<T>;
24
+ tooltipPosition: _angular_core.InputSignal<TooltipPosition>;
25
+ color: _angular_core.InputSignal<string>;
26
+ disabled: _angular_core.WritableSignal<boolean>;
27
+ viewRoute: _angular_core.InputSignal<string>;
28
+ id: _angular_core.InputSignal<string>;
29
+ link: _angular_core.Signal<string>;
30
+ callAction(): void;
31
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableButtonComponent<any>, never>;
32
+ 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>;
33
+ }
34
+
35
+ export { AppGridComponent, TableButtonComponent };