@coolon/angular-ui-powerups 3.17.3 → 3.18.0

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 (52) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/assets/activities.scss +66 -9
  3. package/assets/form.scss +2 -0
  4. package/assets/interaction.scss +2 -0
  5. package/assets/mixins.scss +6 -5
  6. package/assets/styles.scss +33 -15
  7. package/assets/table.scss +1 -1
  8. package/bundles/coolon-angular-ui-powerups.umd.js +54 -31
  9. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  10. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  11. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  12. package/coolon-angular-ui-powerups.metadata.json +1 -1
  13. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  14. package/esm2015/lib/components/card-container/card-container.component.js +1 -1
  15. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  16. package/esm2015/lib/interaction/components/activity-body/activity-body.component.html.shim.ngstyle.js.map +1 -0
  17. package/esm2015/lib/interaction/components/activity-body/activity-body.component.js +21 -0
  18. package/esm2015/lib/interaction/components/activity-body/activity-body.component.js.map +1 -0
  19. package/esm2015/lib/interaction/components/{activity-content → activity-body}/activity-body.component.metadata.json +1 -1
  20. package/esm2015/lib/interaction/components/activity-body/activity-body.component.ngfactory.js.map +1 -0
  21. package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +22 -13
  22. package/esm2015/lib/interaction/components/activity-title/activity-title.component.js.map +1 -1
  23. package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
  24. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
  25. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  26. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  27. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +5 -2
  28. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  29. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  30. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +5 -2
  31. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  32. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  33. package/esm2015/lib/interaction/exports.js +1 -1
  34. package/esm2015/lib/interaction/exports.js.map +1 -1
  35. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  36. package/esm2015/lib/interaction/interaction.module.js +1 -1
  37. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  38. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  39. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  40. package/fesm2015/coolon-angular-ui-powerups.js +39 -30
  41. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  42. package/lib/interaction/components/{activity-content → activity-body}/activity-body.component.d.ts +1 -0
  43. package/lib/interaction/components/activity-title/activity-title.component.d.ts +11 -0
  44. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -0
  45. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +1 -0
  46. package/lib/interaction/exports.d.ts +1 -1
  47. package/package.json +1 -1
  48. package/assets/typography.scss +0 -5
  49. package/esm2015/lib/interaction/components/activity-content/activity-body.component.html.shim.ngstyle.js.map +0 -1
  50. package/esm2015/lib/interaction/components/activity-content/activity-body.component.js +0 -26
  51. package/esm2015/lib/interaction/components/activity-content/activity-body.component.js.map +0 -1
  52. package/esm2015/lib/interaction/components/activity-content/activity-body.component.ngfactory.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.18.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.17.3...v3.18.0) (2021-03-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * #AUP-119 ([e54ec11](https://bitbucket.org/coolon/angular-ui-powerups/commit/e54ec11fa5002fd2bfcec289a08d42e498eda6c1)), closes [#AUP-119](https://bitbucket.org/coolon/angular-ui-powerups/issues/AUP-119)
11
+
5
12
  ### [3.17.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.17.2...v3.17.3) (2021-03-01)
6
13
 
7
14
 
@@ -1,12 +1,69 @@
1
- @import "./typography";
1
+ @use "~@angular/material/theming" as ng;
2
+ @use "sass:map";
2
3
 
3
- aup-activity-title {
4
- font-family: mat-font-family($typographyConfig);
5
- font-size: mat-font-size($typographyConfig, title);
6
- line-height: mat-line-height($typographyConfig, title);
7
- letter-spacing: mat-letter-spacing($typographyConfig, title);
8
- }
4
+ @mixin apply-theme($color-config, $typography-config) {
5
+
6
+ :root {
7
+ --aup-activity-padding: var(--default-padding);
8
+ }
9
+
10
+ // Extract the palettes you need from the theme definition.
11
+ $primary-palette: map-get($color-config, primary);
12
+ $accent-palette: map-get($color-config, accent);
13
+ $warn-palette: map-get($color-config, warn);
14
+
15
+ .dialog-interaction-context {
16
+ --aup-activity-padding: calc(var(--default-padding) / 1.5);
17
+ }
18
+
19
+ aup-activity-title {
20
+ display: block;
21
+ font-family: ng.mat-font-family($typography-config);
22
+ font-size: ng.mat-font-size($typography-config, title);
23
+ line-height: ng.mat-line-height($typography-config, title);
24
+ letter-spacing: ng.mat-letter-spacing($typography-config, title);
25
+ padding: var(--aup-activity-padding);
26
+
27
+ &:not(.transparent-background) {
28
+ padding: calc(var(--aup-activity-padding) / 2) var(--aup-activity-padding);
29
+ }
30
+
31
+ &[color=primary] {
32
+ $palette: $primary-palette;
33
+ color: ng.mat-color($palette, default-contrast);
34
+ background-color: ng.mat-color($palette, default);
35
+ }
9
36
 
10
- aup-activity-body {
11
- padding: var(--default-padding) 0;
37
+ &[color=accent] {
38
+ $palette: $accent-palette;
39
+ color: ng.mat-color($palette, default-contrast);
40
+ background-color: ng.mat-color($palette, default);
41
+ }
42
+
43
+ &[color=warn] {
44
+ $palette: $warn-palette;
45
+ color: ng.mat-color($palette, default-contrast);
46
+ background-color: ng.mat-color($palette, default);
47
+ }
48
+ }
49
+
50
+ aup-activity-body {
51
+ display: block;
52
+
53
+ &:not(.full-width) {
54
+ padding-left: var(--aup-activity-padding);
55
+ padding-right: var(--aup-activity-padding);
56
+ }
57
+ }
58
+
59
+ aup-activity-title:not(.transparent-background) + aup-activity-body {
60
+ padding-top: var(--aup-activity-padding);
61
+ }
62
+
63
+ aup-activity-actions {
64
+ display: block;
65
+ padding: var(--aup-activity-padding);
66
+ }
12
67
  }
68
+
69
+
package/assets/form.scss CHANGED
@@ -1,3 +1,5 @@
1
+ @import "~@angular/material/theming";
2
+
1
3
  .aup-input-component {
2
4
 
3
5
  display: block;
@@ -1,3 +1,5 @@
1
+ @import "~@angular/material/theming";
2
+
1
3
  .dialog-interaction-context {
2
4
  max-width: 95vw !important;
3
5
  max-height: 95vh !important;
@@ -1,8 +1,9 @@
1
+ @use "~@angular/material/theming" as ng;
2
+
1
3
  @mixin elevate-on-hover($height:2) {
2
- @include mat-elevation-transition;
3
- //@include mat-elevation(2);
4
+ @include ng.mat-elevation-transition();
4
5
  &:hover {
5
- @include mat-elevation($height);
6
+ @include ng.mat-elevation($height);
6
7
  }
7
8
  }
8
9
 
@@ -15,11 +16,11 @@
15
16
  cursor: pointer;
16
17
  color: $color;
17
18
  background-color: $background-color;
18
- transition: all $mat-elevation-transition-duration $mat-elevation-transition-timing-function;
19
+ transition: all ng.$mat-elevation-transition-duration ng.$mat-elevation-transition-timing-function;
19
20
 
20
21
  &:hover {
21
22
  @include elevate-on-hover(4);
22
- transition: all $mat-elevation-transition-duration $mat-elevation-transition-timing-function;
23
+ transition: all ng.$mat-elevation-transition-duration ng.$mat-elevation-transition-timing-function;
23
24
  border-color: transparent;
24
25
  background-color: $background-hover-color;
25
26
  color: $hover-color;
@@ -1,17 +1,35 @@
1
- @import "~@angular/material/theming";
1
+ @use "~@angular/material/theming" as ng;
2
2
 
3
- :root {
4
- --aup-default-padding: var(--default-padding, 18px);
5
- --aup-default-background: white;
6
- }
3
+ @use "./mixins";
4
+ @use "./activities";
5
+ @use "./router";
6
+ @use "./tabs";
7
+ @use "./interaction";
8
+ @use "./form";
9
+ @use "./table";
10
+ @use "./commands";
11
+ @use "./icons";
12
+
13
+
14
+ @mixin apply-light-theme($primary, $accent, $warn:ng.mat-palette(ng.$mat-red), $typography: ng.mat-typography-config()) {
15
+
16
+ $theme: ng.mat-light-theme((
17
+ color: (
18
+ primary: $primary,
19
+ accent: $accent,
20
+ warn: $warn,
21
+ )
22
+ ));
7
23
 
8
- @import "./mixins";
9
- @import "./typography";
10
- @import "./activities";
11
- @import "./router";
12
- @import "./tabs";
13
- @import "./interaction";
14
- @import "./form";
15
- @import "./table";
16
- @import "./commands";
17
- @import "./icons";
24
+ @include ng.mat-core($typography);
25
+ @include ng.angular-material-theme($theme);
26
+
27
+ $color-config: ng.mat-get-color-config($theme);
28
+
29
+ @include activities.apply-theme($color-config, $typography);
30
+
31
+ :root {
32
+ --aup-default-padding: var(--default-padding, 18px);
33
+ --aup-default-background: white;
34
+ }
35
+ }
package/assets/table.scss CHANGED
@@ -44,7 +44,7 @@ aup-table {
44
44
 
45
45
  //TODO: think about this a bit more. Table with acts a bit like flex:
46
46
  // - columns for which the width is 0 (or not defined) will expand equally to fill the table.
47
- // - columns with an explicit with will try to remain that width, but will expand to fit thier content.
47
+ // - columns with an explicit with will try to remain that width, but will expand to fit their content.
48
48
  // - extra space will be allocated to columns that have the same width... e.g. setting all columns to 1px results
49
49
  // in the same scenario as not specifying the width.
50
50
  .mat-cell, .mat-header-cell {
@@ -729,7 +729,7 @@
729
729
  { type: i0.Component, args: [{
730
730
  selector: 'aup-card-container',
731
731
  template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
732
- styles: [":root{--aup-default-background:#fff;--aup-default-padding:var(--default-padding,18px)}aup-activity-title{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;letter-spacing:normal;line-height:32px}aup-activity-body{padding:var(--default-padding) 0}.router-outlet-container>*{bottom:0;left:0;position:absolute;right:0;top:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context,.dialog-interaction-context mat-dialog-container{max-height:95vh!important;max-width:95vw!important}.dialog-interaction-context mat-dialog-container{padding:0}.activity-outlet-wrapper{align-items:stretch;display:flex;flex-direction:column}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow .28s cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component mat-form-field .mat-form-field-prefix{align-items:center;align-self:flex-end;display:inline-flex;flex-direction:row;height:35px}.aup-input-component mat-form-field .mat-form-field-suffix .mat-icon-button{line-height:2.5em}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{border-bottom:0;padding-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap,24px);--resolved-row-hover-background-color:var(--row-hover-background-color,rgba(0,0,0,0.05));--resolved-row-selected-background-color:var(--row-selected-background-color,rgba(0,0,255,0.04))}aup-table.hide-header .mat-table thead,aup-table .mat-table td.hide,aup-table .mat-table th.hide{display:none}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table td.mat-cell:last-of-type,aup-table .mat-table td.mat-footer-cell:last-of-type,aup-table .mat-table th.mat-header-cell:last-of-type{padding-right:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table tr.aup-row-selected,aup-table .mat-table tr.aup-row-selected.enable-hover:hover{background-color:var(--resolved-row-selected-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table .mat-table .mat-cell:not(.flex),aup-table .mat-table .mat-header-cell:not(.flex){white-space:nowrap;width:1px}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{align-items:stretch;display:flex;flex-direction:column;height:100%;justify-content:center;min-height:47px;padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.last-visible-column,aup-table aup-table-header-cell-renderer.last-visible-column{padding-right:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{flex:1;padding-left:var(--default-column-gap)}:root{--aup-command-face-icon-gap:8px;--aup-fa-icon-width:18px;--aup-icon-width:24px}aup-icon{--fa-icon-offset:calc((var(--aup-icon-width) - var(--aup-fa-icon-width))/2);position:relative}aup-icon fa-icon .svg-inline--fa{height:var(--aup-fa-icon-width)!important;left:var(--fa-icon-offset);position:absolute;top:var(--fa-icon-offset);width:var(--aup-fa-icon-width)!important}.mat-menu-panel aup-icon .svg-inline--fa{opacity:.54}:host{--resolved-card-background:var(--card-background,#fcfcfb);--resolved-card-gap:var(--card-gap,16px);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-width:var(--card-width,300px);background:var(--resolved-card-background);display:block;flex:1}.card-container{box-sizing:border-box;display:-ms-grid;display:grid;grid-gap:var(--resolved-card-gap);grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(var(--resolved-card-min-height),var(--resolved-card-height)));max-width:100%;min-height:calc(var(--resolved-card-height) + 2*var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2*var(--resolved-card-gap));padding:var(--resolved-card-gap);width:calc((var(--resolved-card-width) + var(--resolved-card-gap))*2 + var(--grid-gap))}.add-card-container{align-items:center;background-color:hsla(0,0%,100%,.8);border:2px dashed rgba(0,0,0,.1);border-radius:6px;box-sizing:border-box;color:rgba(0,0,0,.54);cursor:pointer;display:flex;flex-direction:column;font-weight:300;height:var(--resolved-card-height);justify-content:center;min-height:var(--resolved-card-min-height);transition:all .28s cubic-bezier(.4,0,.2,1);width:var(--resolved-card-width)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{background-color:#fff;border-color:transparent;color:rgba(0,0,0,.54);transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{align-items:stretch;display:flex;flex-direction:column;height:var(--resolved-card-height);justify-content:stretch;width:var(--resolved-card-width)}"]
732
+ styles: [":host{--resolved-card-background:var(--card-background,#fcfcfb);--resolved-card-gap:var(--card-gap,16px);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-width:var(--card-width,300px);background:var(--resolved-card-background);display:block;flex:1}.card-container{box-sizing:border-box;display:-ms-grid;display:grid;grid-gap:var(--resolved-card-gap);grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(var(--resolved-card-min-height),var(--resolved-card-height)));max-width:100%;min-height:calc(var(--resolved-card-height) + 2*var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2*var(--resolved-card-gap));padding:var(--resolved-card-gap);width:calc((var(--resolved-card-width) + var(--resolved-card-gap))*2 + var(--grid-gap))}.add-card-container{align-items:center;background-color:hsla(0,0%,100%,.8);border:2px dashed rgba(0,0,0,.1);border-radius:6px;box-sizing:border-box;color:rgba(0,0,0,.54);cursor:pointer;display:flex;flex-direction:column;font-weight:300;height:var(--resolved-card-height);justify-content:center;min-height:var(--resolved-card-min-height);transition:all .28s cubic-bezier(.4,0,.2,1);width:var(--resolved-card-width)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{background-color:#fff;border-color:transparent;color:rgba(0,0,0,.54);transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{align-items:stretch;display:flex;flex-direction:column;height:var(--resolved-card-height);justify-content:stretch;width:var(--resolved-card-width)}"]
733
733
  },] }
734
734
  ];
735
735
  CardContainerComponent.ctorParameters = function () { return []; };
@@ -4765,7 +4765,7 @@
4765
4765
  { type: i0.Component, args: [{
4766
4766
  selector: 'aup-alert-dialog',
4767
4767
  template: "<aup-activity-title *ngIf=\"alert.title\">{{alert.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n",
4768
- styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{align-items:flex-end;justify-content:flex-end;margin-bottom:0!important;padding:0}"]
4768
+ styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{align-items:flex-end;justify-content:flex-end;margin-bottom:0!important;padding:0}"]
4769
4769
  },] }
4770
4770
  ];
4771
4771
  AlertDialogComponent.ctorParameters = function () { return [
@@ -4805,6 +4805,13 @@
4805
4805
  enumerable: false,
4806
4806
  configurable: true
4807
4807
  });
4808
+ Object.defineProperty(ConfirmThenDialogComponent.prototype, "titleColor", {
4809
+ get: function () {
4810
+ return this.isDestructive() ? 'warn' : undefined;
4811
+ },
4812
+ enumerable: false,
4813
+ configurable: true
4814
+ });
4808
4815
  ConfirmThenDialogComponent.prototype.isDestructive = function () {
4809
4816
  return this.confirm.destructive && this.confirm.destructive();
4810
4817
  };
@@ -4813,8 +4820,8 @@
4813
4820
  ConfirmThenDialogComponent.decorators = [
4814
4821
  { type: i0.Component, args: [{
4815
4822
  selector: 'aup-confirmation-dialog',
4816
- template: "<aup-activity-title *ngIf=\"confirm.title\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
4817
- styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{align-items:flex-end;justify-content:flex-end;margin-bottom:0!important;padding:0}"]
4823
+ template: "<aup-activity-title *ngIf=\"confirm.title\" [color]=\"titleColor\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
4824
+ styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{align-items:flex-end;justify-content:flex-end;margin-bottom:0!important;padding:0}"]
4818
4825
  },] }
4819
4826
  ];
4820
4827
  ConfirmThenDialogComponent.ctorParameters = function () { return [
@@ -4845,6 +4852,13 @@
4845
4852
  }
4846
4853
  ConfirmationDialogComponent.prototype.ngOnInit = function () {
4847
4854
  };
4855
+ Object.defineProperty(ConfirmationDialogComponent.prototype, "titleColor", {
4856
+ get: function () {
4857
+ return this.isDestructive() ? 'warn' : undefined;
4858
+ },
4859
+ enumerable: false,
4860
+ configurable: true
4861
+ });
4848
4862
  ConfirmationDialogComponent.prototype.isDestructive = function () {
4849
4863
  return this.confirm.destructive && this.confirm.destructive();
4850
4864
  };
@@ -4853,8 +4867,8 @@
4853
4867
  ConfirmationDialogComponent.decorators = [
4854
4868
  { type: i0.Component, args: [{
4855
4869
  selector: 'aup-confirmation-dialog',
4856
- template: "<aup-activity-title *ngIf=\"confirm.title\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n",
4857
- styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{align-items:flex-end;justify-content:flex-end;margin-bottom:0!important;padding:0}"]
4870
+ template: "<aup-activity-title *ngIf=\"confirm.title\" [color]=\"titleColor\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n",
4871
+ styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{align-items:flex-end;justify-content:flex-end;margin-bottom:0!important;padding:0}"]
4858
4872
  },] }
4859
4873
  ];
4860
4874
  ConfirmationDialogComponent.ctorParameters = function () { return [
@@ -5253,20 +5267,10 @@
5253
5267
  var ActivityBodyComponent = /** @class */ (function (_super) {
5254
5268
  __extends(ActivityBodyComponent, _super);
5255
5269
  function ActivityBodyComponent() {
5256
- return _super !== null && _super.apply(this, arguments) || this;
5270
+ var _this = _super.apply(this, __spread(arguments)) || this;
5271
+ _this.fullWidth = false;
5272
+ return _this;
5257
5273
  }
5258
- // @Input()
5259
- // align: 'start' | 'end' | 'stretch' = 'start';
5260
- //
5261
- // @HostBinding('class.align-end')
5262
- // get alignEnd():boolean {
5263
- // return this.align === 'end'
5264
- // }
5265
- //
5266
- // @HostBinding('class.align-stretch')
5267
- // get alignStretch():boolean {
5268
- // return this.align === 'stretch'
5269
- // }
5270
5274
  ActivityBodyComponent.prototype.ngOnInit = function () {
5271
5275
  };
5272
5276
  return ActivityBodyComponent;
@@ -5278,24 +5282,39 @@
5278
5282
  styles: ["<ng-content></ng-content>\n"]
5279
5283
  },] }
5280
5284
  ];
5285
+ ActivityBodyComponent.propDecorators = {
5286
+ fullWidth: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.full-width",] }]
5287
+ };
5281
5288
 
5282
5289
  var ActivityTitleComponent = /** @class */ (function (_super) {
5283
5290
  __extends(ActivityTitleComponent, _super);
5284
5291
  function ActivityTitleComponent() {
5285
5292
  return _super !== null && _super.apply(this, arguments) || this;
5286
5293
  }
5287
- // @Input()
5288
- // align: 'start' | 'end' | 'stretch' = 'start';
5289
- //
5290
- // @HostBinding('class.align-end')
5291
- // get alignEnd():boolean {
5292
- // return this.align === 'end'
5293
- // }
5294
- //
5295
- // @HostBinding('class.align-stretch')
5296
- // get alignStretch():boolean {
5297
- // return this.align === 'stretch'
5298
- // }
5294
+ Object.defineProperty(ActivityTitleComponent.prototype, "hasTransparentBackground", {
5295
+ get: function () {
5296
+ return ___default['default'].isNil(this._hasUserTransparentBackground) ? !this._color : this._hasUserTransparentBackground;
5297
+ },
5298
+ /**
5299
+ * Adjusts layout to ensure the title and body are cleanly separated with even
5300
+ * gaps for teh case where the title component has a painted background.
5301
+ */
5302
+ set: function (value) {
5303
+ this._hasUserTransparentBackground = value;
5304
+ },
5305
+ enumerable: false,
5306
+ configurable: true
5307
+ });
5308
+ Object.defineProperty(ActivityTitleComponent.prototype, "color", {
5309
+ get: function () {
5310
+ return this._color;
5311
+ },
5312
+ set: function (color) {
5313
+ this._color = color;
5314
+ },
5315
+ enumerable: false,
5316
+ configurable: true
5317
+ });
5299
5318
  ActivityTitleComponent.prototype.ngOnInit = function () {
5300
5319
  };
5301
5320
  return ActivityTitleComponent;
@@ -5307,6 +5326,10 @@
5307
5326
  styles: [":host{display:block}"]
5308
5327
  },] }
5309
5328
  ];
5329
+ ActivityTitleComponent.propDecorators = {
5330
+ hasTransparentBackground: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.transparent-background',] }],
5331
+ color: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.color',] }]
5332
+ };
5310
5333
 
5311
5334
  var InteractionServiceRoutingAdapter = /** @class */ (function () {
5312
5335
  function InteractionServiceRoutingAdapter(activeInteractionContextIds, activeModalContext, createExclusiveInteractionContext) {