@cccteam/ccc-lib 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/eslint.config.js +32 -0
  2. package/ng-package.json +11 -0
  3. package/package.json +4 -61
  4. package/src/auth-authentication-guard/authentication.guard.ts +40 -0
  5. package/src/auth-authentication-guard/index.ts +1 -0
  6. package/src/auth-authentication-guard/ng-package.json +6 -0
  7. package/src/auth-authorization-guard/authorization.guard.ts +17 -0
  8. package/src/auth-authorization-guard/index.ts +1 -0
  9. package/src/auth-authorization-guard/ng-package.json +6 -0
  10. package/src/auth-forms/ccc-field/ccc-field.component.html +1 -0
  11. package/src/auth-forms/ccc-field/ccc-field.component.scss +0 -0
  12. package/src/auth-forms/ccc-field/ccc-field.component.spec.ts +22 -0
  13. package/src/auth-forms/ccc-field/ccc-field.component.ts +74 -0
  14. package/src/auth-forms/form-helpers.ts +39 -0
  15. package/src/auth-forms/index.ts +3 -0
  16. package/src/auth-forms/ng-package.json +6 -0
  17. package/src/auth-has-permission/has-permission.directive.ts +34 -0
  18. package/src/auth-has-permission/index.ts +1 -0
  19. package/src/auth-has-permission/ng-package.json +6 -0
  20. package/src/auth-service/auth.service.ts +92 -0
  21. package/src/auth-service/index.ts +1 -0
  22. package/src/auth-service/ng-package.json +6 -0
  23. package/src/ccc-camel-case-to-title/camel-case-to-title.pipe.ts +23 -0
  24. package/src/ccc-camel-case-to-title/index.ts +1 -0
  25. package/src/ccc-camel-case-to-title/ng-package.json +6 -0
  26. package/src/ccc-grid/ccc-grid.component.ts +155 -0
  27. package/src/ccc-grid/index.ts +3 -0
  28. package/src/ccc-grid/ng-package.json +6 -0
  29. package/src/ccc-grid/table-button/table-button.component.html +16 -0
  30. package/src/ccc-grid/table-button/table-button.component.scss +5 -0
  31. package/src/ccc-grid/table-button/table-button.component.spec.ts +22 -0
  32. package/src/ccc-grid/table-button/table-button.component.ts +49 -0
  33. package/src/ccc-resource/can-deactivate.guard.ts +41 -0
  34. package/src/ccc-resource/compound-resource/compound-resource.component.html +57 -0
  35. package/src/ccc-resource/compound-resource/compound-resource.component.scss +86 -0
  36. package/src/ccc-resource/compound-resource/compound-resource.component.spec.ts +22 -0
  37. package/src/ccc-resource/compound-resource/compound-resource.component.ts +158 -0
  38. package/src/ccc-resource/concat-fns.ts +162 -0
  39. package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.html +12 -0
  40. package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.scss +0 -0
  41. package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.spec.ts +23 -0
  42. package/src/ccc-resource/empty-readonly-field/empty-readonly-field.component.ts +17 -0
  43. package/src/ccc-resource/form-state.service.ts +24 -0
  44. package/src/ccc-resource/format-fns.ts +49 -0
  45. package/src/ccc-resource/gui-constants.ts +88 -0
  46. package/src/ccc-resource/index.ts +23 -0
  47. package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.html +8 -0
  48. package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.scss +0 -0
  49. package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.spec.ts +22 -0
  50. package/src/ccc-resource/leave-page-confirmation-modal/leave-page-confirmation-modal.component.ts +12 -0
  51. package/src/ccc-resource/ng-package.json +6 -0
  52. package/src/ccc-resource/operation-types.ts +19 -0
  53. package/src/ccc-resource/padding-element/padding-element.component.html +1 -0
  54. package/src/ccc-resource/padding-element/padding-element.component.scss +3 -0
  55. package/src/ccc-resource/padding-element/padding-element.component.spec.ts +22 -0
  56. package/src/ccc-resource/padding-element/padding-element.component.ts +20 -0
  57. package/src/ccc-resource/resource-array-view/resource-array-view.component.html +81 -0
  58. package/src/ccc-resource/resource-array-view/resource-array-view.component.scss +21 -0
  59. package/src/ccc-resource/resource-array-view/resource-array-view.component.spec.ts +22 -0
  60. package/src/ccc-resource/resource-array-view/resource-array-view.component.ts +143 -0
  61. package/src/ccc-resource/resource-base/resource-base.component.spec.ts +22 -0
  62. package/src/ccc-resource/resource-base/resource-base.component.ts +11 -0
  63. package/src/ccc-resource/resource-cache.service.ts +232 -0
  64. package/src/ccc-resource/resource-create/resource-create.component.html +31 -0
  65. package/src/ccc-resource/resource-create/resource-create.component.scss +130 -0
  66. package/src/ccc-resource/resource-create/resource-create.component.spec.ts +22 -0
  67. package/src/ccc-resource/resource-create/resource-create.component.ts +303 -0
  68. package/src/ccc-resource/resource-field/base-field.directive.ts +102 -0
  69. package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.html +16 -0
  70. package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.scss +0 -0
  71. package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.spec.ts +22 -0
  72. package/src/ccc-resource/resource-field/fields/boolean-field/boolean-field.component.ts +15 -0
  73. package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.html +13 -0
  74. package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.scss +0 -0
  75. package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.spec.ts +23 -0
  76. package/src/ccc-resource/resource-field/fields/computed-field/computed-field.component.ts +50 -0
  77. package/src/ccc-resource/resource-field/fields/date-field/date-field.component.html +22 -0
  78. package/src/ccc-resource/resource-field/fields/date-field/date-field.component.scss +0 -0
  79. package/src/ccc-resource/resource-field/fields/date-field/date-field.component.spec.ts +22 -0
  80. package/src/ccc-resource/resource-field/fields/date-field/date-field.component.ts +14 -0
  81. package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.html +71 -0
  82. package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.scss +9 -0
  83. package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.spec.ts +22 -0
  84. package/src/ccc-resource/resource-field/fields/enumerated-field/enumerated-field.component.ts +207 -0
  85. package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.html +38 -0
  86. package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.scss +3 -0
  87. package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.spec.ts +22 -0
  88. package/src/ccc-resource/resource-field/fields/nullboolean-field/nullboolean-field.component.ts +87 -0
  89. package/src/ccc-resource/resource-field/fields/number-field/number-field.component.html +23 -0
  90. package/src/ccc-resource/resource-field/fields/number-field/number-field.component.scss +6 -0
  91. package/src/ccc-resource/resource-field/fields/number-field/number-field.component.spec.ts +22 -0
  92. package/src/ccc-resource/resource-field/fields/number-field/number-field.component.ts +14 -0
  93. package/src/ccc-resource/resource-field/fields/text-field/text-field.component.html +29 -0
  94. package/src/ccc-resource/resource-field/fields/text-field/text-field.component.scss +6 -0
  95. package/src/ccc-resource/resource-field/fields/text-field/text-field.component.spec.ts +22 -0
  96. package/src/ccc-resource/resource-field/fields/text-field/text-field.component.ts +23 -0
  97. package/src/ccc-resource/resource-field/resource-field.component.html +112 -0
  98. package/src/ccc-resource/resource-field/resource-field.component.scss +7 -0
  99. package/src/ccc-resource/resource-field/resource-field.component.spec.ts +22 -0
  100. package/src/ccc-resource/resource-field/resource-field.component.ts +214 -0
  101. package/src/ccc-resource/resource-layout/resource-layout.component.html +73 -0
  102. package/src/ccc-resource/resource-layout/resource-layout.component.scss +26 -0
  103. package/src/ccc-resource/resource-layout/resource-layout.component.spec.ts +22 -0
  104. package/src/ccc-resource/resource-layout/resource-layout.component.ts +176 -0
  105. package/src/ccc-resource/resource-list/ resource-list.component.spec.ts +22 -0
  106. package/src/ccc-resource/resource-list/resource-list.component.html +27 -0
  107. package/src/ccc-resource/resource-list/resource-list.component.scss +67 -0
  108. package/src/ccc-resource/resource-list/resource-list.component.ts +376 -0
  109. package/src/ccc-resource/resource-list-create/resource-list-create.component.html +71 -0
  110. package/src/ccc-resource/resource-list-create/resource-list-create.component.scss +9 -0
  111. package/src/ccc-resource/resource-list-create/resource-list-create.component.spec.ts +22 -0
  112. package/src/ccc-resource/resource-list-create/resource-list-create.component.ts +103 -0
  113. package/src/ccc-resource/resource-resolver/resource-resolver.component.html +1 -0
  114. package/src/ccc-resource/resource-resolver/resource-resolver.component.scss +0 -0
  115. package/src/ccc-resource/resource-resolver/resource-resolver.component.spec.ts +22 -0
  116. package/src/ccc-resource/resource-resolver/resource-resolver.component.ts +69 -0
  117. package/src/ccc-resource/resource-store.service.ts +93 -0
  118. package/src/ccc-resource/resource-view/resource-view.component.html +133 -0
  119. package/src/ccc-resource/resource-view/resource-view.component.scss +150 -0
  120. package/src/ccc-resource/resource-view/resource-view.component.spec.ts +22 -0
  121. package/src/ccc-resource/resource-view/resource-view.component.ts +354 -0
  122. package/src/ccc-resource/resources-helpers.ts +262 -0
  123. package/src/ccc-resource/utils/validator-utils.ts +6 -0
  124. package/{fesm2022/cccteam-ccc-lib.mjs → src/index.ts} +30 -8
  125. package/src/internal-types/index.ts +1 -0
  126. package/src/internal-types/ng-package.json +6 -0
  127. package/src/types/auth.actions.ts +46 -0
  128. package/src/types/configs.ts +952 -0
  129. package/src/types/constants.ts +1 -0
  130. package/src/types/core.actions.ts +33 -0
  131. package/src/types/index.ts +9 -0
  132. package/src/types/ng-package.json +6 -0
  133. package/src/types/notification-message.ts +20 -0
  134. package/src/types/permissions.ts +17 -0
  135. package/src/types/session-info.ts +10 -0
  136. package/src/types/tokens.ts +20 -0
  137. package/src/ui-alert/alert.component.html +13 -0
  138. package/src/ui-alert/alert.component.scss +48 -0
  139. package/src/ui-alert/alert.component.spec.ts +22 -0
  140. package/src/ui-alert/alert.component.ts +35 -0
  141. package/src/ui-alert/index.ts +1 -0
  142. package/src/ui-alert/ng-package.json +6 -0
  143. package/src/ui-core-service/index.ts +1 -0
  144. package/src/ui-core-service/ng-package.json +6 -0
  145. package/src/ui-core-service/ui-core.service.ts +34 -0
  146. package/src/ui-interceptor/api.interceptor.spec.ts +16 -0
  147. package/src/ui-interceptor/api.interceptor.ts +45 -0
  148. package/src/ui-interceptor/index.ts +1 -0
  149. package/src/ui-interceptor/ng-package.json +6 -0
  150. package/src/ui-notification-service/index.ts +1 -0
  151. package/src/ui-notification-service/ng-package.json +6 -0
  152. package/src/ui-notification-service/notification.service.ts +59 -0
  153. package/src/ui-sidenav/index.ts +1 -0
  154. package/src/ui-sidenav/ng-package.json +6 -0
  155. package/src/ui-sidenav/sidenav.component.html +60 -0
  156. package/src/ui-sidenav/sidenav.component.scss +99 -0
  157. package/src/ui-sidenav/sidenav.component.spec.ts +22 -0
  158. package/src/ui-sidenav/sidenav.component.ts +64 -0
  159. package/src/util-request-options/index.ts +1 -0
  160. package/src/util-request-options/ng-package.json +6 -0
  161. package/src/util-request-options/request-options.ts +17 -0
  162. package/tsconfig.lib.json +13 -0
  163. package/tsconfig.lib.prod.json +11 -0
  164. package/tsconfig.spec.json +15 -0
  165. package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs +0 -36
  166. package/fesm2022/cccteam-ccc-lib-src-auth-authentication-guard.mjs.map +0 -1
  167. package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs +0 -25
  168. package/fesm2022/cccteam-ccc-lib-src-auth-authorization-guard.mjs.map +0 -1
  169. package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs +0 -117
  170. package/fesm2022/cccteam-ccc-lib-src-auth-forms.mjs.map +0 -1
  171. package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs +0 -44
  172. package/fesm2022/cccteam-ccc-lib-src-auth-has-permission.mjs.map +0 -1
  173. package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs +0 -88
  174. package/fesm2022/cccteam-ccc-lib-src-auth-service.mjs.map +0 -1
  175. package/fesm2022/cccteam-ccc-lib-src-types.mjs +0 -137
  176. package/fesm2022/cccteam-ccc-lib-src-types.mjs.map +0 -1
  177. package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs +0 -48
  178. package/fesm2022/cccteam-ccc-lib-src-ui-alert.mjs.map +0 -1
  179. package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs +0 -41
  180. package/fesm2022/cccteam-ccc-lib-src-ui-core-service.mjs.map +0 -1
  181. package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs +0 -50
  182. package/fesm2022/cccteam-ccc-lib-src-ui-interceptor.mjs.map +0 -1
  183. package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs +0 -63
  184. package/fesm2022/cccteam-ccc-lib-src-ui-notification-service.mjs.map +0 -1
  185. package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs +0 -60
  186. package/fesm2022/cccteam-ccc-lib-src-ui-sidenav.mjs.map +0 -1
  187. package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs +0 -19
  188. package/fesm2022/cccteam-ccc-lib-src-util-request-options.mjs.map +0 -1
  189. package/fesm2022/cccteam-ccc-lib.mjs.map +0 -1
  190. package/index.d.ts +0 -12
  191. package/src/auth-authentication-guard/index.d.ts +0 -6
  192. package/src/auth-authorization-guard/index.d.ts +0 -6
  193. package/src/auth-forms/index.d.ts +0 -45
  194. package/src/auth-has-permission/index.d.ts +0 -15
  195. package/src/auth-service/index.d.ts +0 -36
  196. package/src/types/index.d.ts +0 -133
  197. package/src/ui-alert/index.d.ts +0 -16
  198. package/src/ui-core-service/index.d.ts +0 -20
  199. package/src/ui-interceptor/index.d.ts +0 -16
  200. package/src/ui-notification-service/index.d.ts +0 -33
  201. package/src/ui-sidenav/index.d.ts +0 -33
  202. package/src/util-request-options/index.d.ts +0 -12
@@ -1,133 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
-
3
- declare enum AlertLevel {
4
- ERROR = "warn",
5
- INFO = "accent",
6
- SUCCESS = "success"
7
- }
8
- interface CreateNotificationMessage {
9
- duration?: number;
10
- message: string;
11
- link: string;
12
- level: AlertLevel;
13
- }
14
- interface NotificationMessage {
15
- id: number;
16
- duration?: number;
17
- message: string;
18
- link: string;
19
- level: AlertLevel;
20
- }
21
-
22
- declare namespace AuthenticationGuardAction {
23
- class SetRedirectUrl {
24
- redirectUrl: string;
25
- static readonly type = "[AuthenticationGuard] Set Redirect Url And Navigate To Login Page";
26
- constructor(redirectUrl: string);
27
- }
28
- class CheckUserSession {
29
- static readonly type = "[AuthenticationGuard] Check User Session";
30
- }
31
- }
32
- declare namespace LoginAction {
33
- class Logout {
34
- static readonly type = "[Login] Auto Logout";
35
- }
36
- class SetRedirectUrl {
37
- redirectUrl: string;
38
- static readonly type = "[Login] Set Redirect Url";
39
- constructor(redirectUrl: string);
40
- }
41
- class PublishError {
42
- message: CreateNotificationMessage;
43
- static readonly type = "[Login] Publish Error";
44
- constructor(message: CreateNotificationMessage);
45
- }
46
- }
47
- declare namespace AppAction {
48
- class CheckUserSession {
49
- static readonly type = "[App] Check User Session";
50
- }
51
- class SetRedirectUrl {
52
- redirectUrl: string;
53
- static readonly type = "[App] Set Redirect Url";
54
- constructor(redirectUrl: string);
55
- }
56
- class SetNavIdentifier {
57
- identifier: string;
58
- static readonly type = "[App] Set Nav Identifier";
59
- constructor(identifier: string);
60
- }
61
- }
62
-
63
- declare namespace ApiInterceptorAction {
64
- class BeginActivity {
65
- process: string;
66
- static readonly type = "[ApiInterceptor] Add Loading Activity";
67
- constructor(process: string);
68
- }
69
- class EndActivity {
70
- process: string;
71
- static readonly type = "[ApiInterceptor] Remove Loading Activity";
72
- constructor(process: string);
73
- }
74
- class PublishError {
75
- message: CreateNotificationMessage;
76
- static readonly type = "[ApiInterceptor] Publish Error";
77
- constructor(message: CreateNotificationMessage);
78
- }
79
- class SetRedirectUrl {
80
- redirectUrl: string;
81
- static readonly type = "[ApiInterceptor] Set Redirect Url";
82
- constructor(redirectUrl: string);
83
- }
84
- }
85
- declare namespace HeaderAction {
86
- class ToggleSidenav {
87
- static readonly type = "[Header] Toggle Sidenav";
88
- }
89
- class Logout {
90
- static readonly type = "[Header] User Logout";
91
- }
92
- }
93
-
94
- type Brand<K, T> = K & {
95
- __brand: T;
96
- };
97
- type Permission = Brand<string, 'Permission'>;
98
- type Resource = Brand<string, 'Resource'>;
99
- type Domain = Brand<string, 'Domain'>;
100
- type FieldName = Brand<string, 'FieldName'>;
101
- type Method = Brand<string, 'Method'>;
102
- type DomainPermissions = Record<Domain, Record<Resource, Record<Permission, Permissions>>>;
103
- interface PermissionScope {
104
- resource: Resource;
105
- permission: Permission;
106
- domain: Domain;
107
- }
108
- declare const ReadPermission: Permission;
109
- declare const UpdatePermission: Permission;
110
-
111
- /**
112
- * Session Information for a logged in user
113
- */
114
- interface SessionInfo {
115
- authenticated: boolean;
116
- username: string;
117
- permissions: DomainPermissions;
118
- }
119
-
120
- declare const BASE_URL: InjectionToken<string>;
121
- declare const API_URL: InjectionToken<string>;
122
- declare const PERMISSION_REQUIRED: InjectionToken<(resource: Resource, permission: Permission) => boolean>;
123
- declare const AVAILABLE_PERMISSIONS: InjectionToken<{
124
- Create: Permission;
125
- Delete: Permission;
126
- List: Permission;
127
- Read: Permission;
128
- Update: Permission;
129
- }>;
130
- declare const AVAILABLE_DOMAINS: InjectionToken<Record<string, Domain>[]>;
131
-
132
- export { API_URL, AVAILABLE_DOMAINS, AVAILABLE_PERMISSIONS, AlertLevel, ApiInterceptorAction, AppAction, AuthenticationGuardAction, BASE_URL, HeaderAction, LoginAction, PERMISSION_REQUIRED, ReadPermission, UpdatePermission };
133
- export type { CreateNotificationMessage, Domain, DomainPermissions, FieldName, Method, NotificationMessage, Permission, PermissionScope, Resource, SessionInfo };
@@ -1,16 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, EventEmitter } from '@angular/core';
3
- import { NotificationMessage } from '@cccteam/ccc-lib/src/types';
4
- import { NotificationService } from '@cccteam/ccc-lib/src/ui-notification-service';
5
-
6
- declare class AlertComponent implements OnInit {
7
- error: NotificationMessage;
8
- dismiss: EventEmitter<any>;
9
- errors: NotificationService;
10
- ngOnInit(): void;
11
- dismissAlert(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "ccc-alert", never, { "error": { "alias": "error"; "required": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
14
- }
15
-
16
- export { AlertComponent };
@@ -1,20 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { CreateNotificationMessage } from '@cccteam/ccc-lib/src/types';
3
- import { NotificationService } from '@cccteam/ccc-lib/src/ui-notification-service';
4
-
5
- declare class UiCoreService {
6
- notifications: NotificationService;
7
- loadingSignal: _angular_core.WritableSignal<string[]>;
8
- sidenavOpened: _angular_core.WritableSignal<boolean>;
9
- currentSidenavIdentifier: _angular_core.WritableSignal<string>;
10
- private loading;
11
- isLoading: _angular_core.Signal<boolean>;
12
- publishError(message: CreateNotificationMessage): void;
13
- beginActivity(process: string): void;
14
- endActivity(process: string): void;
15
- toggleSidenav(): void;
16
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiCoreService, never>;
17
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<UiCoreService>;
18
- }
19
-
20
- export { UiCoreService };
@@ -1,16 +0,0 @@
1
- import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from '@angular/core';
4
-
5
- declare class ApiInterceptor implements HttpInterceptor {
6
- private ui;
7
- private auth;
8
- private router;
9
- private ngZone;
10
- private baseUrl;
11
- intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiInterceptor, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiInterceptor>;
14
- }
15
-
16
- export { ApiInterceptor };
@@ -1,33 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { NotificationMessage, CreateNotificationMessage } from '@cccteam/ccc-lib/src/types';
3
-
4
- declare class NotificationService {
5
- private notificationId;
6
- private _notifications;
7
- notifications: i0.Signal<NotificationMessage[]>;
8
- /**
9
- * Adds a new global notification.
10
- * @param notification The notification message to add.
11
- * @returns The unique ID assigned to the notification.
12
- */
13
- addGlobalNotification(notification: CreateNotificationMessage): number;
14
- /**
15
- * Dismisses a global notification by its ID.
16
- * @param notificationId The ID of the notification to dismiss.
17
- */
18
- dismissGlobalNotificationById(notificationId: number): void;
19
- /**
20
- * Dismisses a specific global notification.
21
- * @param notification The notification to dismiss.
22
- */
23
- dismissGlobalNotification(notification: NotificationMessage): void;
24
- /**
25
- * Updates an existing notification.
26
- * @param updatedNotification The notification with updated information.
27
- */
28
- updateNotification(updatedNotification: NotificationMessage): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
31
- }
32
-
33
- export { NotificationService };
@@ -1,33 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Signal } from '@angular/core';
3
- import { PermissionScope } from '@cccteam/ccc-lib/src/types';
4
- import { UiCoreService } from '@cccteam/ccc-lib/src/ui-core-service';
5
-
6
- interface NavItem {
7
- type: 'link' | 'header' | 'expandable';
8
- routerLink?: string[];
9
- label: string;
10
- icon?: string;
11
- permission?: PermissionScope;
12
- children?: NavItem[];
13
- isExpanded?: boolean;
14
- attentionCount?: Signal<number>;
15
- }
16
- type NavGroups = Record<string, NavItem[]>;
17
- declare class SidenavComponent {
18
- ui: UiCoreService;
19
- navGroups?: NavGroups;
20
- currentNav: Signal<NavItem[]>;
21
- /**
22
- * Updates the currentNav based on the identifier
23
- * @param identifier
24
- * @returns NavItem[]
25
- * @memberof SidenavComponent
26
- */
27
- updateNavItems(identifier: string): NavItem[];
28
- static ɵfac: i0.ɵɵFactoryDeclaration<SidenavComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "ccc-sidenav", never, { "navGroups": { "alias": "navGroups"; "required": false; }; }, {}, never, never, true, never>;
30
- }
31
-
32
- export { SidenavComponent };
33
- export type { NavGroups, NavItem };
@@ -1,12 +0,0 @@
1
- import { HttpContextToken, HttpContext } from '@angular/common/http';
2
-
3
- interface CustomHttpRequestOptions {
4
- suppressGlobalError: boolean;
5
- }
6
- declare const CUSTOM_HTTP_REQUEST_OPTIONS: HttpContextToken<CustomHttpRequestOptions>;
7
- declare function errorOptions(suppressGlobalError: boolean | undefined): {
8
- context: HttpContext;
9
- };
10
-
11
- export { CUSTOM_HTTP_REQUEST_OPTIONS, errorOptions };
12
- export type { CustomHttpRequestOptions };