@devopmaat/badaboom 1.1.1 → 1.2.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 (97) hide show
  1. package/README.md +1 -1
  2. package/_index.scss +1 -1
  3. package/esm2022/lib/application/common/full-table/bdb-full-table.component.mjs +43 -0
  4. package/esm2022/lib/application/common/paginator/bdb-paginator.component.mjs +3 -3
  5. package/esm2022/lib/application/common/query-input/bdb-query-input.component.mjs +8 -9
  6. package/esm2022/lib/application/common/search/bdb-search-wrapper.component.mjs +3 -3
  7. package/esm2022/lib/application/common/search/bdb-search.component.mjs +3 -3
  8. package/esm2022/lib/application/common/table/bdb-cell.directive.mjs +3 -3
  9. package/esm2022/lib/application/common/table/bdb-column-builder.mjs +7 -5
  10. package/esm2022/lib/application/common/table/bdb-column-options.mjs +1 -1
  11. package/esm2022/lib/application/common/table/bdb-table.component.mjs +4 -4
  12. package/esm2022/lib/application/common/table/dynamic.pipe.mjs +3 -3
  13. package/esm2022/lib/application/exception-log/exception-log-table/exception-log-table.component.mjs +3 -3
  14. package/esm2022/lib/application/task-log/task-log-outcome.pipe.mjs +3 -3
  15. package/esm2022/lib/application/task-log/task-log-status.pipe.mjs +3 -3
  16. package/esm2022/lib/application/task-log-parameter/task-log-parameter-value.pipe.mjs +3 -3
  17. package/esm2022/lib/application/user/user-table/user-table.component.mjs +3 -3
  18. package/esm2022/lib/common/alert/bdb-alert.component.mjs +5 -5
  19. package/esm2022/lib/common/alert-error-response/bdb-alert-error-response.component.mjs +8 -7
  20. package/esm2022/lib/common/bdb-flex-child.directive.mjs +3 -3
  21. package/esm2022/lib/common/bdb-flex.directive.mjs +3 -3
  22. package/esm2022/lib/common/bdb-form-error.directive.mjs +3 -3
  23. package/esm2022/lib/common/bdb-grid-child.directive.mjs +3 -3
  24. package/esm2022/lib/common/bdb-grid.directive.mjs +3 -3
  25. package/esm2022/lib/common/bdb-palette.mjs +1 -1
  26. package/esm2022/lib/common/boolean-display/bdb-boolean-display.component.mjs +3 -3
  27. package/esm2022/lib/common/collapse-row/collapse-row.component.mjs +31 -0
  28. package/esm2022/lib/common/field/bdb-field.component.mjs +10 -7
  29. package/esm2022/lib/common/function.pipe.mjs +3 -3
  30. package/esm2022/lib/common/plain-number-pipe.mjs +20 -0
  31. package/esm2022/lib/domain/auth/account.service.mjs +3 -3
  32. package/esm2022/lib/domain/auth/auth.service.mjs +3 -3
  33. package/esm2022/lib/domain/entities/exception-log/exception-log.service.mjs +3 -3
  34. package/esm2022/lib/domain/entities/media/media.service.mjs +3 -3
  35. package/esm2022/lib/domain/entities/role/role.service.mjs +3 -3
  36. package/esm2022/lib/domain/entities/task-log/task-log.service.mjs +3 -3
  37. package/esm2022/lib/domain/entities/task-log-parameter/task-log-parameter.service.mjs +3 -3
  38. package/esm2022/lib/domain/entities/task-log-schedule/task-log-schedule.service.mjs +3 -3
  39. package/esm2022/lib/domain/entities/user/user.service.mjs +3 -3
  40. package/esm2022/lib/domain/entities/user-role/user-role.service.mjs +3 -3
  41. package/esm2022/lib/domain/tasks/task-log-scheduler.service.mjs +3 -3
  42. package/esm2022/lib/domain/tasks/task-log-type.service.mjs +3 -3
  43. package/esm2022/lib/presentation/access-denied-page/access-denied-page.component.mjs +3 -3
  44. package/esm2022/lib/presentation/auth-container/auth-container.component.mjs +3 -3
  45. package/esm2022/lib/presentation/forgot-password-page/forgot-password-page.component.mjs +3 -3
  46. package/esm2022/lib/presentation/invalid-token-page/invalid-token-page.component.mjs +3 -3
  47. package/esm2022/lib/presentation/login-page/login-page.component.mjs +3 -3
  48. package/esm2022/lib/presentation/logout-page/logout-page.component.mjs +3 -3
  49. package/esm2022/lib/presentation/reset-password-page/reset-password-page.component.mjs +3 -3
  50. package/esm2022/public-api.mjs +4 -1
  51. package/fesm2022/devopmaat-badaboom.mjs +347 -259
  52. package/fesm2022/devopmaat-badaboom.mjs.map +1 -1
  53. package/lib/application/common/full-table/bdb-full-table.component.d.ts +24 -0
  54. package/lib/application/common/query-input/_bdb-query-input-m3-theme.scss +30 -0
  55. package/lib/application/common/table/_bdb-table-m3-theme.scss +70 -0
  56. package/lib/application/common/table/bdb-column-options.d.ts +1 -0
  57. package/lib/application/common/table/bdb-table.component.d.ts +2 -2
  58. package/lib/common/alert/_bdb-alert-m3-theme.scss +29 -0
  59. package/lib/common/alert-error-response/bdb-alert-error-response.component.d.ts +1 -0
  60. package/lib/common/bdb-palette.d.ts +1 -0
  61. package/lib/common/boolean-display/_bdb-boolean-display-m3-theme.scss +27 -0
  62. package/lib/common/collapse-row/_collapse-row-theme.scss +37 -0
  63. package/lib/common/collapse-row/collapse-row.component.d.ts +9 -0
  64. package/lib/common/field/_bdb-field-m2-theme.scss +13 -0
  65. package/lib/common/field/_bdb-field-m3-theme.scss +56 -0
  66. package/lib/common/field/bdb-field.component.d.ts +1 -0
  67. package/lib/common/plain-number-pipe.d.ts +7 -0
  68. package/lib/styles/_core-theme.scss +29 -0
  69. package/lib/styles/_theme.scss +157 -0
  70. package/lib/styles/material/_badge-m3-theme.scss +35 -0
  71. package/lib/styles/material/_button-m3-theme.scss +84 -0
  72. package/lib/styles/material/_card-m3-theme.scss +34 -0
  73. package/lib/styles/material/_checkbox-m3-theme.scss +54 -0
  74. package/lib/styles/material/_chips-m3-theme.scss +58 -0
  75. package/lib/styles/material/_datepicker-m3-theme.scss +84 -0
  76. package/lib/styles/material/_fab-m3-theme.scss +84 -0
  77. package/lib/styles/material/_form-field-m3-theme.scss +36 -0
  78. package/lib/styles/material/_icon-m3-theme.scss +32 -0
  79. package/lib/styles/material/_option-m3-theme.scss +34 -0
  80. package/lib/styles/material/_progress-bar-m3-theme.scss +31 -0
  81. package/lib/styles/material/_progress-spinner-m3-theme.scss +30 -0
  82. package/lib/styles/material/_radio-m3-theme.scss +42 -0
  83. package/lib/styles/material/_slide-toggle-m3-theme.scss +68 -0
  84. package/lib/styles/material/_slider-m3-theme.scss +48 -0
  85. package/lib/styles/material/_stepper-m3-theme.scss +44 -0
  86. package/lib/styles/material/_tabs-m3-theme.scss +32 -0
  87. package/lib/styles/material/_toolbar-m3-theme.scss +63 -0
  88. package/package.json +1 -1
  89. package/public-api.d.ts +3 -0
  90. package/lib/_theme.scss +0 -32
  91. /package/lib/application/common/query-input/{_bdb-query-input-theme.scss → _bdb-query-input-m2-theme.scss} +0 -0
  92. /package/lib/application/common/search/{_bdb-search-theme.scss → _bdb-search-m2-theme.scss} +0 -0
  93. /package/lib/application/common/table/{_bdb-table-theme.scss → _bdb-table-m2-theme.scss} +0 -0
  94. /package/lib/common/{_button-theme.scss → _button-m2-theme.scss} +0 -0
  95. /package/lib/common/{_icon-theme.scss → _icon-m2-theme.scss} +0 -0
  96. /package/lib/common/alert/{_bdb-alert-theme.scss → _bdb-alert-m2-theme.scss} +0 -0
  97. /package/lib/common/boolean-display/{_bdb-boolean-display-theme.scss → _bdb-boolean-display-m2-theme.scss} +0 -0
@@ -0,0 +1,44 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use '../core-theme' as bdb;
4
+
5
+ @mixin color($theme) {
6
+ @each $palette-name in bdb.$material-palettes {
7
+ .#{$palette-name}.mat-stepper-horizontal {
8
+ @include mat.stepper-color($theme, $color-variant: $palette-name);
9
+ }
10
+ }
11
+
12
+ @each $palette-name in bdb.$badaboom-palettes {
13
+ .#{$palette-name}.mat-stepper-horizontal {
14
+ --mat-stepper-header-icon-foreground-color: var(--sys-surface);
15
+ --mat-stepper-header-selected-state-icon-background-color: var(--sys-#{$palette-name});
16
+ --mat-stepper-header-selected-state-icon-foreground-color: var(--sys-on-#{$palette-name});
17
+ --mat-stepper-header-edit-state-icon-background-color: var(--sys-#{$palette-name});
18
+ --mat-stepper-header-edit-state-icon-foreground-color: var(--sys-on-#{$palette-name});
19
+ --mat-stepper-container-color: var(--sys-surface);
20
+ --mat-stepper-line-color: var(--sys-outline);
21
+ --mat-stepper-header-hover-state-layer-color: color-mix(in srgb, var(--sys-inverse-surface) 8%, transparent);
22
+ --mat-stepper-header-focus-state-layer-color: color-mix(in srgb, var(--sys-inverse-surface) 12%, transparent);
23
+ --mat-stepper-header-label-text-color: var(--sys-on-surface-variant);
24
+ --mat-stepper-header-optional-label-text-color: var(--sys-on-surface-variant);
25
+ --mat-stepper-header-selected-state-label-text-color: var(--sys-on-surface-variant);
26
+ --mat-stepper-header-error-state-label-text-color: var(--sys-error);
27
+ --mat-stepper-header-icon-background-color: var(--sys-on-surface-variant);
28
+ --mat-stepper-header-error-state-icon-foreground-color: var(--sys-error);
29
+ }
30
+ }
31
+ }
32
+
33
+ @mixin typography($theme) {
34
+ }
35
+
36
+ @mixin theme($theme) {
37
+ @if mat.theme-has($theme, color) {
38
+ @include color($theme);
39
+ }
40
+
41
+ @if mat.theme-has($theme, typography) {
42
+ @include typography($theme);
43
+ }
44
+ }
@@ -0,0 +1,32 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use '../core-theme' as bdb;
4
+
5
+ @mixin color($theme) {
6
+ @each $palette-name in bdb.$material-palettes {
7
+ .#{$palette-name}.mat-mdc-tab-group {
8
+ @include mat.tabs-color($theme, $color-variant: $palette-name);
9
+ }
10
+ }
11
+
12
+ @each $palette-name in bdb.$badaboom-palettes {
13
+ .#{$palette-name}.mat-mdc-tab-group {
14
+ --mdc-tab-indicator-active-indicator-color: var(--sys-#{$palette-name});
15
+ --mat-tab-header-active-focus-indicator-color: var(--sys-#{$palette-name});
16
+ --mat-tab-header-active-hover-indicator-color: var(--sys-#{$palette-name});
17
+ }
18
+ }
19
+ }
20
+
21
+ @mixin typography($theme) {
22
+ }
23
+
24
+ @mixin theme($theme) {
25
+ @if mat.theme-has($theme, color) {
26
+ @include color($theme);
27
+ }
28
+
29
+ @if mat.theme-has($theme, typography) {
30
+ @include typography($theme);
31
+ }
32
+ }
@@ -0,0 +1,63 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use '../core-theme' as bdb;
4
+
5
+ @mixin color($theme) {
6
+ .mat-toolbar {
7
+ @if mat.get-theme-type($theme) == dark {
8
+ --mat-toolbar-container-background-color: var(--sys-surface-container);
9
+ } @else {
10
+ --mat-toolbar-container-background-color: var(--sys-surface-container-low);
11
+ }
12
+ --mat-toolbar-container-text-color: var(--sys-on-surface);
13
+
14
+ @each $palette-name in bdb.$palette-names {
15
+ &.#{$palette-name} {
16
+ --mat-toolbar-container-background-color: var(--sys-#{$palette-name});
17
+ --mat-toolbar-container-text-color: var(--sys-on-#{$palette-name});
18
+
19
+ &.container {
20
+ --mat-toolbar-container-background-color: var(--sys-#{$palette-name}-container);
21
+ --mat-toolbar-container-text-color: var(--sys-on-#{$palette-name}-container);
22
+ }
23
+ }
24
+ }
25
+ }
26
+
27
+ // @if mat.get-theme-type($theme) == dark {
28
+
29
+ // // --mat-toolbar-container-background-color: #{bdb.bdb-get-theme-color($theme, info, 10)};
30
+ // // --mat-toolbar-container-text-color: #{bdb.bdb-get-theme-color($theme, info, 90)};
31
+ // @each $palette-name in bdb.$palette-names {
32
+ // &.#{$palette-name} {
33
+ // --mat-toolbar-container-background-color: #{bdb.bdb-get-theme-color($theme, $palette-name, 10)};
34
+ // --mat-toolbar-container-text-color: #{bdb.bdb-get-theme-color($theme, $palette-name, 90)};
35
+ // }
36
+ // }
37
+ // } @else {
38
+ // --mat-toolbar-container-background-color: #{bdb.bdb-get-theme-color($theme, info, 95)};
39
+ // --mat-toolbar-container-text-color: #{bdb.bdb-get-theme-color($theme, info, 10)};
40
+ // @each $palette-name in bdb.$palette-names {
41
+ // &.#{$palette-name} {
42
+ // --mat-toolbar-container-background-color: var(--sys-#{$palette-name}-container);
43
+ // --mat-toolbar-container-text-color: var(--sys-on-#{$palette-name}-container);
44
+ // // --mat-toolbar-container-background-color: #{bdb.bdb-get-theme-color($theme, $palette-name, 95)};
45
+ // // --mat-toolbar-container-text-color: #{bdb.bdb-get-theme-color($theme, $palette-name, 10)};
46
+ // }
47
+ // }
48
+ // }
49
+ // }
50
+ }
51
+
52
+ @mixin typography($theme) {
53
+ }
54
+
55
+ @mixin theme($theme) {
56
+ @if mat.theme-has($theme, color) {
57
+ @include color($theme);
58
+ }
59
+
60
+ @if mat.theme-has($theme, typography) {
61
+ @include typography($theme);
62
+ }
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopmaat/badaboom",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.1.1",
6
6
  "@angular/core": "^18.1.1",
package/public-api.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from './lib/application/common/table/bdb-column-options';
12
12
  export * from './lib/application/common/table/bdb-column-type';
13
13
  export * from './lib/application/common/table/bdb-context-action';
14
14
  export * from './lib/application/common/table/bdb-table.component';
15
+ export * from './lib/application/common/full-table/bdb-full-table.component';
15
16
  export * from './lib/application/exception-log/exception-log-table/exception-log-table.component';
16
17
  export * from './lib/application/task-log/task-log-status.pipe';
17
18
  export * from './lib/application/task-log/task-log-outcome.pipe';
@@ -26,7 +27,9 @@ export * from './lib/common/bdb-palette';
26
27
  export * from './lib/common/alert/bdb-alert.component';
27
28
  export * from './lib/common/alert-error-response/bdb-alert-error-response.component';
28
29
  export * from './lib/common/boolean-display/bdb-boolean-display.component';
30
+ export * from './lib/common/collapse-row/collapse-row.component';
29
31
  export * from './lib/common/field/bdb-field.component';
32
+ export * from './lib/common/plain-number-pipe';
30
33
  export * from './lib/domain/auth/auth.service';
31
34
  export * from './lib/domain/auth/account-info';
32
35
  export * from './lib/domain/auth/reset-password-token';
package/lib/_theme.scss DELETED
@@ -1,32 +0,0 @@
1
- @use 'sass:map';
2
- @use './common/alert/bdb-alert-theme';
3
- @use './common/boolean-display/bdb-boolean-display-theme';
4
- @use './application/common/query-input/bdb-query-input-theme';
5
- @use './application/common/search/bdb-search-theme';
6
- @use './application/common/table/bdb-table-theme';
7
- @use './common/button-theme';
8
- @use './common/icon-theme';
9
-
10
- @function define-light-theme($mat-theme, $warn-palette, $danger-palette, $success-palette, $info-palette) {
11
- @return map.deep-merge(
12
- $mat-theme,
13
- (
14
- color: (
15
- warn: $warn-palette,
16
- danger: $danger-palette,
17
- success: $success-palette,
18
- info: $info-palette,
19
- ),
20
- )
21
- );
22
- }
23
-
24
- @mixin all-component-themes($bdb-theme) {
25
- @include bdb-alert-theme.theme($bdb-theme);
26
- @include bdb-boolean-display-theme.theme($bdb-theme);
27
- @include bdb-query-input-theme.theme($bdb-theme);
28
- @include bdb-search-theme.theme($bdb-theme);
29
- @include bdb-table-theme.theme($bdb-theme);
30
- @include button-theme.theme($bdb-theme);
31
- @include icon-theme.theme($bdb-theme);
32
- }