@devopmaat/badaboom 1.1.1

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 (231) hide show
  1. package/README.md +3 -0
  2. package/_index.scss +1 -0
  3. package/esm2022/devopmaat-badaboom.mjs +5 -0
  4. package/esm2022/lib/application/common/bdb-data-source.mjs +42 -0
  5. package/esm2022/lib/application/common/paginator/bdb-paginator.component.mjs +37 -0
  6. package/esm2022/lib/application/common/query-input/bdb-query-input.component.mjs +45 -0
  7. package/esm2022/lib/application/common/search/bdb-search-wrapper.component.mjs +33 -0
  8. package/esm2022/lib/application/common/search/bdb-search.component.mjs +163 -0
  9. package/esm2022/lib/application/common/table/bdb-cell.directive.mjs +20 -0
  10. package/esm2022/lib/application/common/table/bdb-column-builder.mjs +94 -0
  11. package/esm2022/lib/application/common/table/bdb-column-options.mjs +2 -0
  12. package/esm2022/lib/application/common/table/bdb-column-type.mjs +12 -0
  13. package/esm2022/lib/application/common/table/bdb-column.mjs +2 -0
  14. package/esm2022/lib/application/common/table/bdb-context-action.mjs +2 -0
  15. package/esm2022/lib/application/common/table/bdb-table.component.mjs +193 -0
  16. package/esm2022/lib/application/common/table/dynamic.pipe.mjs +26 -0
  17. package/esm2022/lib/application/exception-log/exception-log-table/exception-log-table.component.mjs +49 -0
  18. package/esm2022/lib/application/task-log/task-log-outcome.pipe.mjs +31 -0
  19. package/esm2022/lib/application/task-log/task-log-status.pipe.mjs +29 -0
  20. package/esm2022/lib/application/task-log-parameter/task-log-parameter-value.pipe.mjs +49 -0
  21. package/esm2022/lib/application/user/user-table/user-table.component.mjs +68 -0
  22. package/esm2022/lib/bdb-auth-options.mjs +39 -0
  23. package/esm2022/lib/bdb-options.mjs +25 -0
  24. package/esm2022/lib/common/alert/bdb-alert.component.mjs +40 -0
  25. package/esm2022/lib/common/alert-error-response/bdb-alert-error-response.component.mjs +107 -0
  26. package/esm2022/lib/common/bdb-flex-child.directive.mjs +24 -0
  27. package/esm2022/lib/common/bdb-flex.directive.mjs +112 -0
  28. package/esm2022/lib/common/bdb-form-error.directive.mjs +74 -0
  29. package/esm2022/lib/common/bdb-grid-child.directive.mjs +81 -0
  30. package/esm2022/lib/common/bdb-grid.directive.mjs +107 -0
  31. package/esm2022/lib/common/bdb-palette.mjs +2 -0
  32. package/esm2022/lib/common/boolean-display/bdb-boolean-display.component.mjs +23 -0
  33. package/esm2022/lib/common/color.mjs +26 -0
  34. package/esm2022/lib/common/constructor.mjs +2 -0
  35. package/esm2022/lib/common/field/bdb-field.component.mjs +17 -0
  36. package/esm2022/lib/common/function.pipe.mjs +20 -0
  37. package/esm2022/lib/common/layout-error.mjs +6 -0
  38. package/esm2022/lib/common/linked-list.mjs +53 -0
  39. package/esm2022/lib/domain/auth/account-info.mjs +2 -0
  40. package/esm2022/lib/domain/auth/account.service.mjs +32 -0
  41. package/esm2022/lib/domain/auth/auth.service.mjs +119 -0
  42. package/esm2022/lib/domain/auth/reset-password-token.mjs +2 -0
  43. package/esm2022/lib/domain/auth/token-expired.interceptor.mjs +21 -0
  44. package/esm2022/lib/domain/auth/token-reponse.mjs +2 -0
  45. package/esm2022/lib/domain/auth/token.interceptor.mjs +17 -0
  46. package/esm2022/lib/domain/common/bdb-filter.mjs +2 -0
  47. package/esm2022/lib/domain/common/bdb-request.mjs +2 -0
  48. package/esm2022/lib/domain/common/bdb-response.mjs +2 -0
  49. package/esm2022/lib/domain/common/entities/bdb-entity-read.mjs +2 -0
  50. package/esm2022/lib/domain/common/entities/bdb-entity-update.mjs +2 -0
  51. package/esm2022/lib/domain/common/entities/bdb-entity.mjs +2 -0
  52. package/esm2022/lib/domain/common/services/bdb-service-cr.mjs +7 -0
  53. package/esm2022/lib/domain/common/services/bdb-service-crd.mjs +7 -0
  54. package/esm2022/lib/domain/common/services/bdb-service-cru.mjs +7 -0
  55. package/esm2022/lib/domain/common/services/bdb-service-crud.mjs +7 -0
  56. package/esm2022/lib/domain/common/services/bdb-service-r.mjs +10 -0
  57. package/esm2022/lib/domain/common/services/bdb-service-rd.mjs +7 -0
  58. package/esm2022/lib/domain/common/services/bdb-service-ru.mjs +7 -0
  59. package/esm2022/lib/domain/common/services/bdb-service-rud.mjs +7 -0
  60. package/esm2022/lib/domain/common/services/bdb-service.mjs +11 -0
  61. package/esm2022/lib/domain/entities/exception-log/exception-log-read.mjs +2 -0
  62. package/esm2022/lib/domain/entities/exception-log/exception-log.mjs +2 -0
  63. package/esm2022/lib/domain/entities/exception-log/exception-log.service.mjs +17 -0
  64. package/esm2022/lib/domain/entities/media/media-read.mjs +2 -0
  65. package/esm2022/lib/domain/entities/media/media.mjs +2 -0
  66. package/esm2022/lib/domain/entities/media/media.service.mjs +27 -0
  67. package/esm2022/lib/domain/entities/role/role-read.mjs +2 -0
  68. package/esm2022/lib/domain/entities/role/role.mjs +2 -0
  69. package/esm2022/lib/domain/entities/role/role.service.mjs +17 -0
  70. package/esm2022/lib/domain/entities/task-log/task-log-create.mjs +2 -0
  71. package/esm2022/lib/domain/entities/task-log/task-log-read.mjs +2 -0
  72. package/esm2022/lib/domain/entities/task-log/task-log.mjs +2 -0
  73. package/esm2022/lib/domain/entities/task-log/task-log.service.mjs +20 -0
  74. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter-create.mjs +2 -0
  75. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter-read.mjs +2 -0
  76. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter.mjs +2 -0
  77. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter.service.mjs +17 -0
  78. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule-create.mjs +2 -0
  79. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule-read.mjs +2 -0
  80. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule-update.mjs +2 -0
  81. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule.mjs +2 -0
  82. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule.service.mjs +17 -0
  83. package/esm2022/lib/domain/entities/user/user-create.mjs +2 -0
  84. package/esm2022/lib/domain/entities/user/user-read.mjs +2 -0
  85. package/esm2022/lib/domain/entities/user/user-update.mjs +2 -0
  86. package/esm2022/lib/domain/entities/user/user.mjs +2 -0
  87. package/esm2022/lib/domain/entities/user/user.service.mjs +17 -0
  88. package/esm2022/lib/domain/entities/user-role/user-role-create.mjs +2 -0
  89. package/esm2022/lib/domain/entities/user-role/user-role-read.mjs +2 -0
  90. package/esm2022/lib/domain/entities/user-role/user-role.mjs +2 -0
  91. package/esm2022/lib/domain/entities/user-role/user-role.service.mjs +17 -0
  92. package/esm2022/lib/domain/enums/media-type.mjs +7 -0
  93. package/esm2022/lib/domain/enums/task-log-outcome.mjs +9 -0
  94. package/esm2022/lib/domain/enums/task-log-parameter-type.mjs +8 -0
  95. package/esm2022/lib/domain/enums/task-log-status.mjs +8 -0
  96. package/esm2022/lib/domain/tasks/task-log-scheduler.service.mjs +26 -0
  97. package/esm2022/lib/domain/tasks/task-log-type-parameter.mjs +2 -0
  98. package/esm2022/lib/domain/tasks/task-log-type.mjs +2 -0
  99. package/esm2022/lib/domain/tasks/task-log-type.service.mjs +44 -0
  100. package/esm2022/lib/lib.config.mjs +67 -0
  101. package/esm2022/lib/presentation/access-denied-page/access-denied-page.component.mjs +51 -0
  102. package/esm2022/lib/presentation/auth-container/auth-container.component.mjs +12 -0
  103. package/esm2022/lib/presentation/forgot-password-page/forgot-password-page.component.mjs +75 -0
  104. package/esm2022/lib/presentation/invalid-token-page/invalid-token-page.component.mjs +26 -0
  105. package/esm2022/lib/presentation/logged-out.guard.mjs +16 -0
  106. package/esm2022/lib/presentation/login-page/login-page.component.mjs +90 -0
  107. package/esm2022/lib/presentation/logout-page/logout-page.component.mjs +33 -0
  108. package/esm2022/lib/presentation/reset-password-page/reset-password-page.component.mjs +102 -0
  109. package/esm2022/lib/presentation/reset-password.resolver.mjs +25 -0
  110. package/esm2022/lib/presentation/role.guard.mjs +28 -0
  111. package/esm2022/public-api.mjs +109 -0
  112. package/fesm2022/devopmaat-badaboom.mjs +2443 -0
  113. package/fesm2022/devopmaat-badaboom.mjs.map +1 -0
  114. package/index.d.ts +5 -0
  115. package/lib/_theme.scss +32 -0
  116. package/lib/application/common/bdb-data-source.d.ts +25 -0
  117. package/lib/application/common/paginator/bdb-paginator.component.d.ts +17 -0
  118. package/lib/application/common/query-input/_bdb-query-input-theme.scss +17 -0
  119. package/lib/application/common/query-input/bdb-query-input.component.d.ts +15 -0
  120. package/lib/application/common/search/_bdb-search-theme.scss +12 -0
  121. package/lib/application/common/search/bdb-search-wrapper.component.d.ts +13 -0
  122. package/lib/application/common/search/bdb-search.component.d.ts +43 -0
  123. package/lib/application/common/table/_bdb-table-theme.scss +48 -0
  124. package/lib/application/common/table/bdb-cell.directive.d.ts +9 -0
  125. package/lib/application/common/table/bdb-column-builder.d.ts +18 -0
  126. package/lib/application/common/table/bdb-column-options.d.ts +32 -0
  127. package/lib/application/common/table/bdb-column-type.d.ts +10 -0
  128. package/lib/application/common/table/bdb-column.d.ts +19 -0
  129. package/lib/application/common/table/bdb-context-action.d.ts +7 -0
  130. package/lib/application/common/table/bdb-table.component.d.ts +57 -0
  131. package/lib/application/common/table/dynamic.pipe.d.ts +9 -0
  132. package/lib/application/exception-log/exception-log-table/exception-log-table.component.d.ts +26 -0
  133. package/lib/application/task-log/task-log-outcome.pipe.d.ts +8 -0
  134. package/lib/application/task-log/task-log-status.pipe.d.ts +8 -0
  135. package/lib/application/task-log-parameter/task-log-parameter-value.pipe.d.ts +10 -0
  136. package/lib/application/user/user-table/user-table.component.d.ts +25 -0
  137. package/lib/bdb-auth-options.d.ts +28 -0
  138. package/lib/bdb-options.d.ts +16 -0
  139. package/lib/common/_button-theme.scss +87 -0
  140. package/lib/common/_icon-theme.scss +32 -0
  141. package/lib/common/alert/_bdb-alert-theme.scss +34 -0
  142. package/lib/common/alert/bdb-alert.component.d.ts +20 -0
  143. package/lib/common/alert-error-response/bdb-alert-error-response.component.d.ts +17 -0
  144. package/lib/common/bdb-flex-child.directive.d.ts +11 -0
  145. package/lib/common/bdb-flex.directive.d.ts +28 -0
  146. package/lib/common/bdb-form-error.directive.d.ts +15 -0
  147. package/lib/common/bdb-grid-child.directive.d.ts +14 -0
  148. package/lib/common/bdb-grid.directive.d.ts +26 -0
  149. package/lib/common/bdb-palette.d.ts +1 -0
  150. package/lib/common/boolean-display/_bdb-boolean-display-theme.scss +18 -0
  151. package/lib/common/boolean-display/bdb-boolean-display.component.d.ts +7 -0
  152. package/lib/common/color.d.ts +14 -0
  153. package/lib/common/constructor.d.ts +2 -0
  154. package/lib/common/field/bdb-field.component.d.ts +6 -0
  155. package/lib/common/function.pipe.d.ts +7 -0
  156. package/lib/common/layout-error.d.ts +3 -0
  157. package/lib/common/linked-list.d.ts +15 -0
  158. package/lib/domain/auth/account-info.d.ts +6 -0
  159. package/lib/domain/auth/account.service.d.ts +29 -0
  160. package/lib/domain/auth/auth.service.d.ts +35 -0
  161. package/lib/domain/auth/reset-password-token.d.ts +4 -0
  162. package/lib/domain/auth/token-expired.interceptor.d.ts +2 -0
  163. package/lib/domain/auth/token-reponse.d.ts +5 -0
  164. package/lib/domain/auth/token.interceptor.d.ts +2 -0
  165. package/lib/domain/common/bdb-filter.d.ts +9 -0
  166. package/lib/domain/common/bdb-request.d.ts +10 -0
  167. package/lib/domain/common/bdb-response.d.ts +6 -0
  168. package/lib/domain/common/entities/bdb-entity-read.d.ts +3 -0
  169. package/lib/domain/common/entities/bdb-entity-update.d.ts +3 -0
  170. package/lib/domain/common/entities/bdb-entity.d.ts +3 -0
  171. package/lib/domain/common/services/bdb-service-cr.d.ts +7 -0
  172. package/lib/domain/common/services/bdb-service-crd.d.ts +7 -0
  173. package/lib/domain/common/services/bdb-service-cru.d.ts +8 -0
  174. package/lib/domain/common/services/bdb-service-crud.d.ts +8 -0
  175. package/lib/domain/common/services/bdb-service-r.d.ts +10 -0
  176. package/lib/domain/common/services/bdb-service-rd.d.ts +7 -0
  177. package/lib/domain/common/services/bdb-service-ru.d.ts +8 -0
  178. package/lib/domain/common/services/bdb-service-rud.d.ts +8 -0
  179. package/lib/domain/common/services/bdb-service.d.ts +6 -0
  180. package/lib/domain/entities/exception-log/exception-log-read.d.ts +9 -0
  181. package/lib/domain/entities/exception-log/exception-log.d.ts +9 -0
  182. package/lib/domain/entities/exception-log/exception-log.service.d.ts +9 -0
  183. package/lib/domain/entities/media/media-read.d.ts +14 -0
  184. package/lib/domain/entities/media/media.d.ts +15 -0
  185. package/lib/domain/entities/media/media.service.d.ts +12 -0
  186. package/lib/domain/entities/role/role-read.d.ts +7 -0
  187. package/lib/domain/entities/role/role.d.ts +4 -0
  188. package/lib/domain/entities/role/role.service.d.ts +9 -0
  189. package/lib/domain/entities/task-log/task-log-create.d.ts +5 -0
  190. package/lib/domain/entities/task-log/task-log-read.d.ts +11 -0
  191. package/lib/domain/entities/task-log/task-log.d.ts +15 -0
  192. package/lib/domain/entities/task-log/task-log.service.d.ts +12 -0
  193. package/lib/domain/entities/task-log-parameter/task-log-parameter-create.d.ts +7 -0
  194. package/lib/domain/entities/task-log-parameter/task-log-parameter-read.d.ts +11 -0
  195. package/lib/domain/entities/task-log-parameter/task-log-parameter.d.ts +10 -0
  196. package/lib/domain/entities/task-log-parameter/task-log-parameter.service.d.ts +9 -0
  197. package/lib/domain/entities/task-log-schedule/task-log-schedule-create.d.ts +5 -0
  198. package/lib/domain/entities/task-log-schedule/task-log-schedule-read.d.ts +7 -0
  199. package/lib/domain/entities/task-log-schedule/task-log-schedule-update.d.ts +5 -0
  200. package/lib/domain/entities/task-log-schedule/task-log-schedule.d.ts +7 -0
  201. package/lib/domain/entities/task-log-schedule/task-log-schedule.service.d.ts +11 -0
  202. package/lib/domain/entities/user/user-create.d.ts +3 -0
  203. package/lib/domain/entities/user/user-read.d.ts +6 -0
  204. package/lib/domain/entities/user/user-update.d.ts +4 -0
  205. package/lib/domain/entities/user/user.d.ts +5 -0
  206. package/lib/domain/entities/user/user.service.d.ts +11 -0
  207. package/lib/domain/entities/user-role/user-role-create.d.ts +4 -0
  208. package/lib/domain/entities/user-role/user-role-read.d.ts +7 -0
  209. package/lib/domain/entities/user-role/user-role.d.ts +7 -0
  210. package/lib/domain/entities/user-role/user-role.service.d.ts +10 -0
  211. package/lib/domain/enums/media-type.d.ts +5 -0
  212. package/lib/domain/enums/task-log-outcome.d.ts +7 -0
  213. package/lib/domain/enums/task-log-parameter-type.d.ts +6 -0
  214. package/lib/domain/enums/task-log-status.d.ts +6 -0
  215. package/lib/domain/tasks/task-log-scheduler.service.d.ts +11 -0
  216. package/lib/domain/tasks/task-log-type-parameter.d.ts +11 -0
  217. package/lib/domain/tasks/task-log-type.d.ts +7 -0
  218. package/lib/domain/tasks/task-log-type.service.d.ts +14 -0
  219. package/lib/lib.config.d.ts +11 -0
  220. package/lib/presentation/access-denied-page/access-denied-page.component.d.ts +16 -0
  221. package/lib/presentation/auth-container/auth-container.component.d.ts +5 -0
  222. package/lib/presentation/forgot-password-page/forgot-password-page.component.d.ts +20 -0
  223. package/lib/presentation/invalid-token-page/invalid-token-page.component.d.ts +8 -0
  224. package/lib/presentation/logged-out.guard.d.ts +2 -0
  225. package/lib/presentation/login-page/login-page.component.d.ts +27 -0
  226. package/lib/presentation/logout-page/logout-page.component.d.ts +13 -0
  227. package/lib/presentation/reset-password-page/reset-password-page.component.d.ts +31 -0
  228. package/lib/presentation/reset-password.resolver.d.ts +3 -0
  229. package/lib/presentation/role.guard.d.ts +2 -0
  230. package/package.json +27 -0
  231. package/public-api.d.ts +99 -0
@@ -0,0 +1,32 @@
1
+ @use 'sass:map';
2
+ @use 'sass:meta';
3
+ @use '@angular/material' as mat;
4
+
5
+ // Applies a property to an mat-button element for each of the supported palettes.
6
+ @mixin _theme-property($theme, $property, $hue) {
7
+ $warn: map.get($theme, warn);
8
+ $danger: map.get($theme, danger);
9
+ $success: map.get($theme, success);
10
+ $info: map.get($theme, info);
11
+
12
+ &.mat-warn {
13
+ #{$property}: mat.m2-get-color-from-palette($warn, $hue);
14
+ }
15
+ &.mat-danger {
16
+ #{$property}: mat.m2-get-color-from-palette($danger, $hue);
17
+ }
18
+ &.mat-success {
19
+ #{$property}: mat.m2-get-color-from-palette($success, $hue);
20
+ }
21
+ &.mat-info {
22
+ #{$property}: mat.m2-get-color-from-palette($info, $hue);
23
+ }
24
+ }
25
+
26
+ @mixin theme($config-or-theme) {
27
+ $config: mat.m2-get-color-config($config-or-theme);
28
+
29
+ .mat-icon {
30
+ @include _theme-property($config, 'color', text);
31
+ }
32
+ }
@@ -0,0 +1,34 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
4
+ @mixin theme($theme) {
5
+ $color-config: mat.m2-get-color-config($theme);
6
+ $paletteNames: (primary,accent,warn,danger,success,info);
7
+
8
+ @each $paletteName in $paletteNames {
9
+ $palette: map.get($color-config, $paletteName);
10
+ $color: mat.m2-get-color-from-palette($palette, default);
11
+ $contrast: mat.m2-get-color-from-palette($palette, default-contrast);
12
+
13
+ .bdb-alert.bdb-#{$paletteName} .bdb-alert-wrapper {
14
+ .bdb-icon-container{
15
+ background-color: $color;
16
+ color: $contrast;
17
+ }
18
+
19
+ .label {
20
+ font-size: 16px;
21
+ line-height: 24px;
22
+ }
23
+ border-color: $color;
24
+ }
25
+ }
26
+
27
+ .bdb-alert .alert.muted {
28
+ .icon-container{
29
+ background-color: #E0E0E0;
30
+ color: #757575;
31
+ }
32
+ border-color: #E0E0E0;
33
+ }
34
+ }
@@ -0,0 +1,20 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { CanColor } from '../color';
3
+ import { BdbPalette } from '../bdb-palette';
4
+ import * as i0 from "@angular/core";
5
+ declare const _BdbAlertBase: import("../constructor").Constructor<CanColor> & import("../constructor").AbstractConstructor<CanColor> & {
6
+ new (_elementRef: ElementRef): {
7
+ _elementRef: ElementRef;
8
+ };
9
+ };
10
+ export declare class BdbAlertComponent extends _BdbAlertBase implements CanColor {
11
+ class: string;
12
+ color: BdbPalette;
13
+ label: string;
14
+ icon: string;
15
+ inline: boolean;
16
+ constructor(elementRef: ElementRef);
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbAlertComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbAlertComponent, "bdb-alert", never, { "color": { "alias": "color"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; }, {}, never, ["*"], true, never>;
19
+ }
20
+ export {};
@@ -0,0 +1,17 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
+ import { OnChanges } from '@angular/core';
3
+ import { BdbPalette } from '../bdb-palette';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BdbAlertErrorResponseComponent implements OnChanges {
6
+ value: HttpErrorResponse | undefined | null;
7
+ loginFailed: boolean;
8
+ color: BdbPalette;
9
+ icon: string;
10
+ label: string;
11
+ message: string;
12
+ errorCode: string | undefined;
13
+ validationFailures(): string[] | null;
14
+ ngOnChanges(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbAlertErrorResponseComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbAlertErrorResponseComponent, "bdb-alert-error-response", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BdbFlexChildDirective implements OnInit {
4
+ private element;
5
+ private renderer;
6
+ bdbFlexChild: string;
7
+ constructor(element: ElementRef, renderer: Renderer2);
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbFlexChildDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BdbFlexChildDirective, "[bdbFlexChild]", never, { "bdbFlexChild": { "alias": "bdbFlexChild"; "required": false; }; }, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,28 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ type FlexSpacing = {
4
+ align: string;
5
+ justify: string;
6
+ };
7
+ export declare class BdbFlexDirective implements OnInit {
8
+ private element;
9
+ private renderer;
10
+ bdbFlex: string;
11
+ bdbFlexDirection: string;
12
+ bdbFlexGap: string;
13
+ bdbFlexSpacing: string;
14
+ constructor(element: ElementRef, renderer: Renderer2);
15
+ ngOnInit(): void;
16
+ setDirection(bdbFlexInput?: string): void;
17
+ getDirection(bdbFlexInput?: string): string;
18
+ validateDirection(direction: string): string;
19
+ setGap(bdbFlexInput?: string): void;
20
+ getGap(bdbFlexInput?: string): string;
21
+ validateGap(gap: string): string;
22
+ setSpacing(bdbFlexInput: Partial<FlexSpacing>): void;
23
+ getSpacing(bdbFlexInput: Partial<FlexSpacing>): FlexSpacing;
24
+ validateSpacing(spacing: FlexSpacing): FlexSpacing;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbFlexDirective, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BdbFlexDirective, "[bdbFlex], [bdbFlexDirection], [bdbFlexGap], [bdbFlexSpacing]", never, { "bdbFlex": { "alias": "bdbFlex"; "required": false; }; "bdbFlexDirection": { "alias": "bdbFlexDirection"; "required": false; }; "bdbFlexGap": { "alias": "bdbFlexGap"; "required": false; }; "bdbFlexSpacing": { "alias": "bdbFlexSpacing"; "required": false; }; }, {}, never, never, true, never>;
27
+ }
28
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import { AbstractControl, ControlContainer } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BdbFormErrorDirective implements OnInit {
5
+ private element;
6
+ private renderer;
7
+ private controlContainer;
8
+ bdbFormError: string | AbstractControl;
9
+ control: AbstractControl;
10
+ constructor(element: ElementRef, renderer: Renderer2, controlContainer: ControlContainer);
11
+ ngOnInit(): void;
12
+ setError(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbFormErrorDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BdbFormErrorDirective, "[bdbFormError]", never, { "bdbFormError": { "alias": "bdbFormError"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,14 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BdbGridChildDirective implements OnInit {
4
+ private element;
5
+ private renderer;
6
+ bdbGridChild: string;
7
+ bdbGridRow: string;
8
+ bdbGridColumn: string;
9
+ constructor(element: ElementRef, renderer: Renderer2);
10
+ ngOnInit(): void;
11
+ splitAxes(): string[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbGridChildDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BdbGridChildDirective, "[bdbGridChild], [bdbGridColumn], [bdbGridRow]", never, { "bdbGridChild": { "alias": "bdbGridChild"; "required": false; }; "bdbGridRow": { "alias": "bdbGridRow"; "required": false; }; "bdbGridColumn": { "alias": "bdbGridColumn"; "required": false; }; }, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,26 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ type BdbGridInput = {
4
+ gap?: string;
5
+ columns?: BdbGridAxisInput;
6
+ rows?: BdbGridAxisInput;
7
+ };
8
+ type BdbGridAxisInput = {
9
+ type: 'template' | 'auto';
10
+ input: string;
11
+ };
12
+ export declare class BdbGridDirective implements OnInit {
13
+ private element;
14
+ private renderer;
15
+ bdbGrid: string;
16
+ bdbGridColumns: string;
17
+ bdbGridRows: string;
18
+ bdbGridGap: string;
19
+ constructor(element: ElementRef, renderer: Renderer2);
20
+ ngOnInit(): void;
21
+ parseBdbGridInput(): BdbGridInput;
22
+ setAxis(axis: 'columns' | 'rows', gridInput?: BdbGridAxisInput): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbGridDirective, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BdbGridDirective, "[bdbGrid], [bdbGridColumns], [bdbGridRows], [bdbGridGap]", never, { "bdbGrid": { "alias": "bdbGrid"; "required": false; }; "bdbGridColumns": { "alias": "bdbGridColumns"; "required": false; }; "bdbGridRows": { "alias": "bdbGridRows"; "required": false; }; "bdbGridGap": { "alias": "bdbGridGap"; "required": false; }; }, {}, never, never, true, never>;
25
+ }
26
+ export {};
@@ -0,0 +1 @@
1
+ export type BdbPalette = 'primary' | 'accent' | 'danger' | 'warn' | 'success' | 'info' | undefined;
@@ -0,0 +1,18 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
4
+ @mixin theme($theme) {
5
+ $color-config: mat.m2-get-color-config($theme);
6
+
7
+ $danger: mat.m2-get-color-from-palette(map.get($color-config, danger), default);
8
+ $success: mat.m2-get-color-from-palette(map.get($color-config, success), default);
9
+
10
+ .bdb-boolean-display {
11
+ .false {
12
+ color: $danger;
13
+ }
14
+ .true {
15
+ color: $success;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BdbBooleanDisplayComponent {
3
+ class: string;
4
+ value?: boolean | null;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbBooleanDisplayComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbBooleanDisplayComponent, "bdb-boolean-display", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,14 @@
1
+ import { BdbPalette } from './bdb-palette';
2
+ import { AbstractConstructor, Constructor } from './constructor';
3
+ import { ElementRef } from '@angular/core';
4
+ export interface CanColor {
5
+ color: BdbPalette;
6
+ defaultColor: BdbPalette | undefined;
7
+ }
8
+ type CanColorCtor = Constructor<CanColor> & AbstractConstructor<CanColor>;
9
+ export interface HasElementRef {
10
+ _elementRef: ElementRef;
11
+ }
12
+ /** Mixin to augment a directive with a `color` property. */
13
+ export declare function mixinColor<T extends AbstractConstructor<HasElementRef>>(base: T, defaultColor?: BdbPalette): CanColorCtor & T;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export type Constructor<T> = new (...args: any[]) => T;
2
+ export type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BdbFieldComponent {
3
+ label: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbFieldComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbFieldComponent, "bdb-field", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FunctionPipe<T> implements PipeTransform {
4
+ transform(value: T, fn: (x: T) => string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FunctionPipe<any>, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FunctionPipe<any>, "function", true>;
7
+ }
@@ -0,0 +1,3 @@
1
+ export declare class LayoutError extends Error {
2
+ constructor(message: string);
3
+ }
@@ -0,0 +1,15 @@
1
+ export declare class LinkedList<T> implements Iterable<T> {
2
+ head?: Node<T>;
3
+ tail?: Node<T>;
4
+ length: number;
5
+ constructor(data?: T[]);
6
+ [Symbol.iterator](): Iterator<T>;
7
+ push(value: T): void;
8
+ pop(): T | undefined;
9
+ }
10
+ export declare class Node<T> {
11
+ value: T;
12
+ previous?: Node<T>;
13
+ next?: Node<T>;
14
+ constructor(value: T);
15
+ }
@@ -0,0 +1,6 @@
1
+ export interface AccountInfo {
2
+ email: string;
3
+ id: number;
4
+ roles: string[];
5
+ claims: Map<string, unknown>;
6
+ }
@@ -0,0 +1,29 @@
1
+ import { Observable } from 'rxjs';
2
+ import { TokenResponse } from './token-reponse';
3
+ import { BdbService } from '../common/services/bdb-service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AccountService extends BdbService {
6
+ constructor();
7
+ login(value: {
8
+ email: string;
9
+ password: string;
10
+ }): Observable<TokenResponse>;
11
+ exchangeRefreshToken(value: {
12
+ token: string;
13
+ refreshToken: string;
14
+ }): Observable<TokenResponse>;
15
+ forgotPassword(value: {
16
+ email: string;
17
+ }): Observable<boolean>;
18
+ resetPassword(value: {
19
+ email: string;
20
+ token: string;
21
+ password: string;
22
+ }): Observable<TokenResponse>;
23
+ validateResetPasswordToken(value: {
24
+ email: string;
25
+ token: string;
26
+ }): Observable<boolean>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
29
+ }
@@ -0,0 +1,35 @@
1
+ import { BehaviorSubject, Observable } from 'rxjs';
2
+ import { AccountInfo } from './account-info';
3
+ import { AccountService } from './account.service';
4
+ import { TokenResponse } from './token-reponse';
5
+ import * as i0 from "@angular/core";
6
+ export declare function getAuthorizationHeaderFromToken(token: string): string;
7
+ export declare function getTokenFromAuthorizationHeader(header: string): string;
8
+ export declare class AuthService {
9
+ private accountService;
10
+ token$: BehaviorSubject<string | null>;
11
+ account$: BehaviorSubject<AccountInfo | null>;
12
+ constructor(accountService: AccountService);
13
+ login(value: {
14
+ email: string;
15
+ password: string;
16
+ }): Observable<TokenResponse>;
17
+ logout(): void;
18
+ refreshToken(expiredToken: string): Observable<string | null>;
19
+ resetPassword(value: {
20
+ email: string;
21
+ token: string;
22
+ password: string;
23
+ }): Observable<TokenResponse>;
24
+ forgotPassword(value: {
25
+ email: string;
26
+ }): Observable<boolean>;
27
+ validateResetPasswordToken(value: {
28
+ email: string;
29
+ token: string;
30
+ }): Observable<boolean>;
31
+ private processTokenResponse;
32
+ private getAccountInfoFromToken;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
35
+ }
@@ -0,0 +1,4 @@
1
+ export interface ResetPasswordToken {
2
+ email: string;
3
+ token: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { HttpInterceptorFn } from '@angular/common/http';
2
+ export declare const tokenExpiredInterceptor: HttpInterceptorFn;
@@ -0,0 +1,5 @@
1
+ export interface TokenResponse {
2
+ token: string;
3
+ refreshToken: string;
4
+ expiration: Date;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { HttpInterceptorFn } from '@angular/common/http';
2
+ export declare const tokenInterceptor: HttpInterceptorFn;
@@ -0,0 +1,9 @@
1
+ export interface BdbFilter {
2
+ type: 'Field' | 'Group';
3
+ field?: string;
4
+ operator?: 'Equals' | 'IsNull' | 'IsEmpty' | 'StartsWith' | 'Contains' | 'EndsWith' | 'LessThan' | 'LessThanOrEqual' | 'GreaterThan' | 'GreaterThanOrEqual';
5
+ parameters?: unknown[];
6
+ filters?: BdbFilter[];
7
+ combine?: 'And' | 'Or';
8
+ negate?: boolean;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { BdbFilter } from './bdb-filter';
2
+ export interface BdbRequest {
3
+ page?: number;
4
+ pageSize?: number;
5
+ sortField?: string;
6
+ sortDirection?: '' | 'asc' | 'desc';
7
+ query?: string;
8
+ baseFilter?: string;
9
+ filter?: BdbFilter;
10
+ }
@@ -0,0 +1,6 @@
1
+ export interface BdbResponse<T> {
2
+ page: number;
3
+ pageSize: number;
4
+ rows: T[];
5
+ count: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface BdbEntityRead {
2
+ id: number;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface BdbEntityUpdate {
2
+ id: number;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface BdbEntity {
2
+ id: number;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbServiceR } from './bdb-service-r';
4
+ import { Observable } from 'rxjs';
5
+ export declare abstract class BdbServiceCR<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate> extends BdbServiceR<TEntity, TEntityRead> {
6
+ create(createModel: TEntityCreate): Observable<number>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbServiceCR } from './bdb-service-cr';
4
+ import { Observable } from 'rxjs';
5
+ export declare abstract class BdbServiceCRD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate> extends BdbServiceCR<TEntity, TEntityRead, TEntityCreate> {
6
+ delete(id: number): Observable<never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbEntityUpdate } from '../entities/bdb-entity-update';
4
+ import { BdbServiceCR } from './bdb-service-cr';
5
+ import { Observable } from 'rxjs';
6
+ export declare abstract class BdbServiceCRU<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceCR<TEntity, TEntityRead, TEntityCreate> {
7
+ update(updateModel: TEntityUpdate): Observable<never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbEntityUpdate } from '../entities/bdb-entity-update';
4
+ import { BdbServiceCRU } from './bdb-service-cru';
5
+ import { Observable } from 'rxjs';
6
+ export declare abstract class BdbServiceCRUD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceCRU<TEntity, TEntityRead, TEntityCreate, TEntityUpdate> {
7
+ delete(id: number): Observable<never>;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { Observable } from 'rxjs';
2
+ import { BdbRequest } from '../bdb-request';
3
+ import { BdbResponse } from '../bdb-response';
4
+ import { BdbEntity } from '../entities/bdb-entity';
5
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
6
+ import { BdbService } from './bdb-service';
7
+ export declare abstract class BdbServiceR<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead> extends BdbService {
8
+ read(request: BdbRequest): Observable<BdbResponse<TEntityRead>>;
9
+ get(id: number): Observable<TEntity>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbServiceR } from './bdb-service-r';
4
+ import { Observable } from 'rxjs';
5
+ export declare abstract class BdbServiceRD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead> extends BdbServiceR<TEntity, TEntityRead> {
6
+ delete(id: number): Observable<never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbEntityUpdate } from '../entities/bdb-entity-update';
4
+ import { BdbServiceR } from './bdb-service-r';
5
+ import { Observable } from 'rxjs';
6
+ export declare abstract class BdbServiceRU<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceR<TEntity, TEntityRead> {
7
+ update(updateModel: TEntityUpdate): Observable<TEntity>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { BdbEntity } from '../entities/bdb-entity';
2
+ import { BdbEntityRead } from '../entities/bdb-entity-read';
3
+ import { BdbEntityUpdate } from '../entities/bdb-entity-update';
4
+ import { BdbServiceRU } from './bdb-service-ru';
5
+ import { Observable } from 'rxjs';
6
+ export declare abstract class BdbServiceRUD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceRU<TEntity, TEntityRead, TEntityUpdate> {
7
+ delete(id: number): Observable<never>;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ export declare abstract class BdbService {
3
+ baseUrl: string;
4
+ httpClient: HttpClient;
5
+ constructor(areaName: string);
6
+ }
@@ -0,0 +1,9 @@
1
+ import { BdbEntityRead } from '../../common/entities/bdb-entity-read';
2
+ export interface ExceptionLogRead extends BdbEntityRead {
3
+ code: string;
4
+ message: string;
5
+ description: string;
6
+ type: string;
7
+ created: Date;
8
+ createdBy: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { BdbEntity } from '../../common/entities/bdb-entity';
2
+ export interface ExceptionLog extends BdbEntity {
3
+ code: string;
4
+ message: string;
5
+ description: string;
6
+ type: string;
7
+ created: Date;
8
+ createdBy: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { BdbServiceR } from '../../common/services/bdb-service-r';
2
+ import { ExceptionLog } from './exception-log';
3
+ import { ExceptionLogRead } from './exception-log-read';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ExceptionLogService extends BdbServiceR<ExceptionLog, ExceptionLogRead> {
6
+ constructor();
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExceptionLogService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExceptionLogService>;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { BdbEntity } from '../../common/entities/bdb-entity';
2
+ import { MediaType } from '../../enums/media-type';
3
+ export interface MediaRead extends BdbEntity {
4
+ reference: string;
5
+ fileName: string;
6
+ fileSize: number;
7
+ width?: number;
8
+ height?: number;
9
+ type: MediaType;
10
+ created: Date;
11
+ createdBy: string;
12
+ description: string;
13
+ previewId: number;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { BdbEntity } from '../../common/entities/bdb-entity';
2
+ import { MediaType } from '../../enums/media-type';
3
+ export interface Media extends BdbEntity {
4
+ reference: string;
5
+ fileName: string;
6
+ originalFileName?: string;
7
+ fileSize: number;
8
+ width?: number;
9
+ height?: number;
10
+ type: MediaType;
11
+ created: Date;
12
+ createdBy: string;
13
+ description: string;
14
+ preview?: Media;
15
+ }
@@ -0,0 +1,12 @@
1
+ import { Observable } from 'rxjs';
2
+ import { BdbServiceRD } from '../../common/services/bdb-service-rd';
3
+ import { Media } from './media';
4
+ import { MediaRead } from './media-read';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MediaService extends BdbServiceRD<Media, MediaRead> {
7
+ constructor();
8
+ upload(file: File): Observable<Media>;
9
+ fromUrl(url: string): Observable<Media>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MediaService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<MediaService>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { BdbEntityRead } from '../../common/entities/bdb-entity-read';
2
+ export interface RoleRead extends BdbEntityRead {
3
+ name: string;
4
+ created: Date;
5
+ createdByEmail: string;
6
+ createdById: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { BdbEntity } from '../../common/entities/bdb-entity';
2
+ export interface Role extends BdbEntity {
3
+ name: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { BdbServiceR } from '../../common/services/bdb-service-r';
2
+ import { Role } from './role';
3
+ import { RoleRead } from './role-read';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RoleService extends BdbServiceR<Role, RoleRead> {
6
+ constructor();
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoleService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<RoleService>;
9
+ }