@devopmaat/badaboom 1.2.0 → 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.
@@ -0,0 +1,24 @@
1
+ import { SelectionModel } from '@angular/cdk/collections';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { BdbEntity } from '../../../domain/common/entities/bdb-entity';
4
+ import { BdbDataSource } from '../bdb-data-source';
5
+ import { BdbColumn } from '../table/bdb-column';
6
+ import { BdbContextAction } from '../table/bdb-context-action';
7
+ import { BdbM3Palette } from '../../../common/bdb-palette';
8
+ import * as i0 from "@angular/core";
9
+ export declare class BdbFullTableComponent<TEntityRead extends BdbEntity> {
10
+ dataSource: BdbDataSource<TEntityRead>;
11
+ columns: BdbColumn<TEntityRead, unknown>[];
12
+ displayedColumns: string[];
13
+ selection?: SelectionModel<TEntityRead>;
14
+ contextActions: BdbContextAction<TEntityRead>[];
15
+ rowColor?: (x: TEntityRead) => BdbM3Palette;
16
+ showToolbar: boolean;
17
+ rowClick: EventEmitter<TEntityRead>;
18
+ contextAction: EventEmitter<{
19
+ action: BdbContextAction<TEntityRead>;
20
+ row: TEntityRead;
21
+ }>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbFullTableComponent<any>, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbFullTableComponent<any>, "bdb-full-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; "rowColor": { "alias": "rowColor"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; }, { "rowClick": "rowClick"; "contextAction": "contextAction"; }, never, ["toolbar-item", "*"], true, never>;
24
+ }
@@ -0,0 +1,37 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
4
+ @mixin color($theme) {
5
+ .bdb-collapse-row .indicator {
6
+ .top,
7
+ .middle,
8
+ .bottom {
9
+ color: var(--sys-on-surface);
10
+ background-color: var(--sys-surface-container);
11
+ }
12
+ }
13
+
14
+ @each $palette-name in primary, secondary, tertiary, error, success, warn, info {
15
+ .bdb-collapse-row.#{$palette-name} .indicator {
16
+ .top,
17
+ .middle,
18
+ .bottom {
19
+ color: var(--sys-on-#{$palette-name}-container);
20
+ background-color: var(--sys-#{$palette-name}-container);
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ @mixin typography($theme) {
27
+ }
28
+
29
+ @mixin theme($theme) {
30
+ @if mat.theme-has($theme, color) {
31
+ @include color($theme);
32
+ }
33
+
34
+ @if mat.theme-has($theme, typography) {
35
+ @include typography($theme);
36
+ }
37
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BdbCollapseRowComponent {
3
+ collapsed: boolean;
4
+ canCollapse: boolean;
5
+ class: string;
6
+ get isCollapsed(): boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BdbCollapseRowComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbCollapseRowComponent, "bdb-collapse-row", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "canCollapse": { "alias": "canCollapse"; "required": false; }; }, {}, never, ["left", "right"], true, never>;
9
+ }
@@ -35,6 +35,7 @@
35
35
  @use '../common/alert/bdb-alert-m3-theme';
36
36
  @use '../common/boolean-display/bdb-boolean-display-m3-theme';
37
37
  @use '../common/field/bdb-field-m3-theme';
38
+ @use '../common/collapse-row/collapse-row-theme';
38
39
 
39
40
  @function define-light-theme($mat-theme, $warn-palette, $danger-palette, $success-palette, $info-palette) {
40
41
  @warn "Using Badaboom with Material 2 is deprecated";
@@ -120,6 +121,7 @@
120
121
  @include bdb-alert-m3-theme.theme($bdb-theme);
121
122
  @include bdb-boolean-display-m3-theme.theme($bdb-theme);
122
123
  @include bdb-field-m3-theme.theme($bdb-theme);
124
+ @include collapse-row-theme.theme($bdb-theme);
123
125
  }
124
126
 
125
127
  @mixin all-component-colors($bdb-theme) {
@@ -149,5 +151,7 @@
149
151
  @include bdb-alert-m3-theme.color($bdb-theme);
150
152
  @include bdb-boolean-display-m3-theme.color($bdb-theme);
151
153
  @include bdb-field-m3-theme.color($bdb-theme);
154
+ @include bdb-field-m3-theme.color($bdb-theme);
155
+ @include collapse-row-theme.color($bdb-theme);
152
156
  }
153
157
  }
@@ -4,13 +4,13 @@
4
4
 
5
5
  @mixin color($theme) {
6
6
  @each $palette-name in bdb.$material-palettes {
7
- button.mdc-button.#{$palette-name} {
7
+ .mdc-button.#{$palette-name} {
8
8
  @include mat.button-color($theme, $color-variant: $palette-name);
9
9
  }
10
10
  }
11
11
 
12
12
  @each $palette-name in bdb.$badaboom-palettes {
13
- button.mdc-button.#{$palette-name} {
13
+ .mdc-button.#{$palette-name} {
14
14
  --mdc-text-button-label-text-color: var(--sys-#{$palette-name});
15
15
  --mdc-text-button-disabled-label-text-color: color-mix(in srgb, var(--sys-on-surface) 38%, transparent);
16
16
  --mdc-protected-button-container-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopmaat/badaboom",
3
- "version": "1.2.0",
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,6 +27,7 @@ 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';
30
32
  export * from './lib/common/plain-number-pipe';
31
33
  export * from './lib/domain/auth/auth.service';