@bravura/ui 2.6.0 → 3.1.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 (133) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +7 -0
  3. package/alert/alert-container.component.d.ts +1 -1
  4. package/alert/alert-message.component.d.ts +3 -1
  5. package/behavior/await.directive.d.ts +1 -1
  6. package/behavior/sizing-monitor.directive.d.ts +1 -1
  7. package/behavior/sizing.directive.d.ts +1 -1
  8. package/clip-note/clip-note.component.d.ts +1 -1
  9. package/clip-note/clip-note.directive.d.ts +1 -1
  10. package/currency-input/currency-input.directive.d.ts +1 -1
  11. package/decimal-input/decimal-input.directive.d.ts +1 -1
  12. package/discrete-input/discrete-input.component.d.ts +1 -1
  13. package/esm2020/alert/alert-container.component.mjs +4 -4
  14. package/esm2020/alert/alert-message.component.mjs +17 -6
  15. package/esm2020/alert/alert.module.mjs +4 -4
  16. package/esm2020/behavior/await.directive.mjs +5 -5
  17. package/esm2020/behavior/behavior.module.mjs +4 -4
  18. package/esm2020/behavior/sizing-monitor.directive.mjs +3 -3
  19. package/esm2020/behavior/sizing.directive.mjs +3 -3
  20. package/esm2020/clip-note/clip-note.component.mjs +5 -5
  21. package/esm2020/clip-note/clip-note.directive.mjs +3 -3
  22. package/esm2020/clip-note/clip-note.module.mjs +4 -4
  23. package/esm2020/common/common.module.mjs +4 -4
  24. package/esm2020/currency-input/currency-input.directive.mjs +3 -3
  25. package/esm2020/currency-input/currency-input.module.mjs +4 -4
  26. package/esm2020/decimal-input/decimal-input.directive.mjs +3 -3
  27. package/esm2020/decimal-input/decimal-input.module.mjs +4 -4
  28. package/esm2020/discrete-input/discrete-input.component.mjs +3 -3
  29. package/esm2020/discrete-input/discrete-input.module.mjs +4 -4
  30. package/esm2020/file-upload/file-upload.component.mjs +5 -5
  31. package/esm2020/file-upload/file-upload.module.mjs +4 -4
  32. package/esm2020/file-upload/file-upload.service.mjs +3 -3
  33. package/esm2020/form-field/form-field.component.mjs +66 -80
  34. package/esm2020/form-field/form-field.module.mjs +21 -8
  35. package/esm2020/form-field/public-api.mjs +2 -2
  36. package/esm2020/icon-font/icon-font.module.mjs +4 -4
  37. package/esm2020/icon-font/icon.directive.mjs +3 -3
  38. package/esm2020/panel/panel-section.component.mjs +3 -3
  39. package/esm2020/panel/panel.component.mjs +5 -5
  40. package/esm2020/panel/panel.module.mjs +4 -4
  41. package/esm2020/phone-number/phone-number.directive.mjs +3 -3
  42. package/esm2020/phone-number/phone-number.module.mjs +4 -4
  43. package/esm2020/phone-number/phone-number.pipe.mjs +3 -3
  44. package/esm2020/phone-number/phone-number.validator.mjs +3 -3
  45. package/esm2020/radio-panel/radio-panel-item.component.mjs +3 -3
  46. package/esm2020/radio-panel/radio-panel.component.mjs +3 -3
  47. package/esm2020/radio-panel/radio-panel.module.mjs +4 -4
  48. package/esm2020/selection-panel/selection-panel-item.component.mjs +5 -5
  49. package/esm2020/selection-panel/selection-panel.directive.mjs +3 -3
  50. package/esm2020/selection-panel/selection-panel.module.mjs +4 -4
  51. package/esm2020/skeletons/skeleton-loader-presets.directive.mjs +3 -3
  52. package/esm2020/skeletons/skeleton-loader.component.mjs +3 -3
  53. package/esm2020/skeletons/skeletons.module.mjs +4 -4
  54. package/esm2020/stepper/stepper.component.mjs +10 -6
  55. package/esm2020/stepper/stepper.module.mjs +4 -4
  56. package/esm2020/tooltip/tooltip.component.mjs +18 -18
  57. package/esm2020/tooltip/tooltip.directive.mjs +10 -4
  58. package/esm2020/tooltip/tooltip.module.mjs +4 -4
  59. package/fesm2015/bravura-ui-alert.mjs +24 -12
  60. package/fesm2015/bravura-ui-alert.mjs.map +1 -1
  61. package/fesm2015/bravura-ui-behavior.mjs +15 -14
  62. package/fesm2015/bravura-ui-behavior.mjs.map +1 -1
  63. package/fesm2015/bravura-ui-clip-note.mjs +12 -11
  64. package/fesm2015/bravura-ui-clip-note.mjs.map +1 -1
  65. package/fesm2015/bravura-ui-common.mjs +5 -4
  66. package/fesm2015/bravura-ui-currency-input.mjs +8 -7
  67. package/fesm2015/bravura-ui-decimal-input.mjs +8 -7
  68. package/fesm2015/bravura-ui-discrete-input.mjs +8 -7
  69. package/fesm2015/bravura-ui-file-upload.mjs +12 -11
  70. package/fesm2015/bravura-ui-file-upload.mjs.map +1 -1
  71. package/fesm2015/bravura-ui-form-field.mjs +88 -86
  72. package/fesm2015/bravura-ui-form-field.mjs.map +1 -1
  73. package/fesm2015/bravura-ui-icon-font.mjs +8 -7
  74. package/fesm2015/bravura-ui-panel.mjs +12 -11
  75. package/fesm2015/bravura-ui-panel.mjs.map +1 -1
  76. package/fesm2015/bravura-ui-phone-number.mjs +14 -13
  77. package/fesm2015/bravura-ui-radio-panel.mjs +11 -10
  78. package/fesm2015/bravura-ui-selection-panel.mjs +12 -11
  79. package/fesm2015/bravura-ui-selection-panel.mjs.map +1 -1
  80. package/fesm2015/bravura-ui-skeletons.mjs +11 -10
  81. package/fesm2015/bravura-ui-stepper.mjs +14 -9
  82. package/fesm2015/bravura-ui-stepper.mjs.map +1 -1
  83. package/fesm2015/bravura-ui-tooltip.mjs +33 -26
  84. package/fesm2015/bravura-ui-tooltip.mjs.map +1 -1
  85. package/fesm2015/bravura-ui.mjs +1 -0
  86. package/fesm2020/bravura-ui-alert.mjs +24 -12
  87. package/fesm2020/bravura-ui-alert.mjs.map +1 -1
  88. package/fesm2020/bravura-ui-behavior.mjs +15 -14
  89. package/fesm2020/bravura-ui-behavior.mjs.map +1 -1
  90. package/fesm2020/bravura-ui-clip-note.mjs +12 -11
  91. package/fesm2020/bravura-ui-clip-note.mjs.map +1 -1
  92. package/fesm2020/bravura-ui-common.mjs +5 -4
  93. package/fesm2020/bravura-ui-currency-input.mjs +8 -7
  94. package/fesm2020/bravura-ui-decimal-input.mjs +8 -7
  95. package/fesm2020/bravura-ui-discrete-input.mjs +8 -7
  96. package/fesm2020/bravura-ui-file-upload.mjs +12 -11
  97. package/fesm2020/bravura-ui-file-upload.mjs.map +1 -1
  98. package/fesm2020/bravura-ui-form-field.mjs +86 -86
  99. package/fesm2020/bravura-ui-form-field.mjs.map +1 -1
  100. package/fesm2020/bravura-ui-icon-font.mjs +8 -7
  101. package/fesm2020/bravura-ui-panel.mjs +12 -11
  102. package/fesm2020/bravura-ui-panel.mjs.map +1 -1
  103. package/fesm2020/bravura-ui-phone-number.mjs +14 -13
  104. package/fesm2020/bravura-ui-radio-panel.mjs +11 -10
  105. package/fesm2020/bravura-ui-selection-panel.mjs +12 -11
  106. package/fesm2020/bravura-ui-selection-panel.mjs.map +1 -1
  107. package/fesm2020/bravura-ui-skeletons.mjs +11 -10
  108. package/fesm2020/bravura-ui-stepper.mjs +14 -9
  109. package/fesm2020/bravura-ui-stepper.mjs.map +1 -1
  110. package/fesm2020/bravura-ui-tooltip.mjs +33 -26
  111. package/fesm2020/bravura-ui-tooltip.mjs.map +1 -1
  112. package/fesm2020/bravura-ui.mjs +1 -0
  113. package/file-upload/file-upload.component.d.ts +1 -1
  114. package/form-field/form-field.component.d.ts +27 -27
  115. package/form-field/form-field.module.d.ts +4 -1
  116. package/form-field/public-api.d.ts +1 -1
  117. package/icon-font/icon.directive.d.ts +1 -1
  118. package/package.json +8 -8
  119. package/panel/panel-section.component.d.ts +1 -1
  120. package/panel/panel.component.d.ts +1 -1
  121. package/phone-number/phone-number.directive.d.ts +1 -1
  122. package/phone-number/phone-number.validator.d.ts +1 -1
  123. package/radio-panel/radio-panel-item.component.d.ts +1 -1
  124. package/radio-panel/radio-panel.component.d.ts +1 -1
  125. package/selection-panel/selection-panel-item.component.d.ts +1 -1
  126. package/selection-panel/selection-panel.directive.d.ts +1 -1
  127. package/skeletons/skeleton-loader-presets.directive.d.ts +1 -1
  128. package/skeletons/skeleton-loader.component.d.ts +1 -1
  129. package/stepper/stepper.component.d.ts +3 -1
  130. package/theme/_bui-card.scss +11 -20
  131. package/theme/_ui-theme.scss +11 -3
  132. package/tooltip/tooltip.component.d.ts +3 -5
  133. package/tooltip/tooltip.directive.d.ts +1 -1
@@ -40,5 +40,5 @@ export declare class SkeletonLoaderComponent extends ContentLoaderComponent impl
40
40
  ngOnDestroy(): void;
41
41
  ngOnChanges(changes: SimpleChanges): void;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "bui-skeleton", never, {}, {}, never, never, false>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "bui-skeleton", never, {}, {}, never, never, false, never>;
44
44
  }
@@ -66,6 +66,8 @@ export declare class StepperComponent extends CdkStepper implements AfterContent
66
66
  _stepIsNavigable(index: number, step: MatStep): boolean;
67
67
  /** @ignore */
68
68
  _widthChanged(w: number): void;
69
+ /** @ignore */
70
+ _startStepTransition(): void;
69
71
  static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, [{ optional: true; }, null, null, null, { self: true; }, { optional: true; skipSelf: true; }]>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "bui-stepper, [buiStepper]", ["buiStepper", "matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "indicatorFormatter": "indicatorFormatter"; "nextStepLabelPrefix": "nextStepLabelPrefix"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "bui-stepper, [buiStepper]", ["buiStepper", "matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "indicatorFormatter": "indicatorFormatter"; "nextStepLabelPrefix": "nextStepLabelPrefix"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false, never>;
71
73
  }
@@ -9,56 +9,47 @@
9
9
  $bui-card-header-background-color: var(--bui-card-header-background-color-dark-theme, inherit);
10
10
  }
11
11
 
12
- .bui-card-flat.mat-card,
13
- .bui-card-shaded.mat-card {
12
+ .bui-card-flat.mat-mdc-card,
13
+ .bui-card-shaded.mat-mdc-card {
14
14
  border-radius: 4px;
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
 
18
- .mat-card-header {
19
- margin: -16px -16px 0 -16px;
18
+ .mat-mdc-card-header {
20
19
  padding: 16px;
21
20
 
22
- .mat-card-title {
21
+ .mat-mdc-card-title {
23
22
  font-size: 16px;
24
23
  color: $bui-card-header-text-color;
25
24
  margin-bottom: 0;
26
25
  }
27
26
 
28
- .mat-card-title + .mat-card-subtitle {
27
+ .mat-mdc-card-title + .mat-mdc-card-subtitle {
29
28
  margin-top: 0;
30
29
  margin-bottom: 0;
31
30
  }
32
-
33
- .mat-card-header-text {
34
- margin: 0;
35
- }
36
31
  }
37
32
 
38
- .mat-card-content {
33
+ .mat-mdc-card-content {
39
34
  flex: 1;
40
35
  }
41
36
 
42
- .mat-card-avatar + .mat-card-header-text {
43
- margin: 0 16px;
44
- }
45
-
46
- .mat-card-header + .mat-card-content {
37
+ .mat-mdc-card-header + .mat-mdc-card-content {
47
38
  padding-top: 16px;
48
39
  }
49
40
  }
50
41
 
51
- .bui-card-flat.mat-card {
42
+ .bui-card-flat.mat-mdc-card {
52
43
  box-shadow: none;
53
44
  border: 1px solid #e0e0e0;
54
45
 
55
- .mat-card-header {
46
+ .mat-mdc-card-header {
56
47
  border-bottom: 1px solid #e0e0e0;
57
48
  }
58
49
  }
59
50
 
60
- .bui-card-shaded.mat-card {
61
- .mat-card-header {
51
+ .bui-card-shaded.mat-mdc-card {
52
+ .mat-mdc-card-header {
62
53
  background: $bui-card-header-background-color;
63
54
  }
64
55
  }
@@ -7,7 +7,9 @@ $default-border-color-transition: border-color 100ms cubic-bezier(0.55, 0, 0.55,
7
7
  $mat-foreground-extract: (
8
8
  'secondary-text': 'light',
9
9
  'hint-text': 'muted',
10
- 'divider': 'divider'
10
+ 'divider': 'divider',
11
+ 'base': 'base',
12
+ 'inactive': 'inactive'
11
13
  );
12
14
 
13
15
  $mat-background-extract: (
@@ -46,8 +48,15 @@ $mat-background-extract: (
46
48
  @include apply-color($p, $c, $border-color-transition);
47
49
  }
48
50
 
51
+ $fg-original: map.get($color-config, 'foreground');
52
+ $fg: map.merge(
53
+ $fg-original,
54
+ (
55
+ inactive: rgba(map.get($fg-original, base), 0.06)
56
+ )
57
+ );
58
+
49
59
  @each $key, $name in $mat-foreground-extract {
50
- $fg: map.get($color-config, 'foreground');
51
60
  $c: map.get($fg, $key);
52
61
  @include apply-color($name, $c, $border-color-transition);
53
62
  }
@@ -60,7 +69,6 @@ $mat-background-extract: (
60
69
  }
61
70
 
62
71
  @each $key, $name in $mat-foreground-extract {
63
- $fg: map.get($color-config, 'foreground');
64
72
  $c: map.get($fg, $key);
65
73
  --bui-color-#{$name}: #{$c};
66
74
  }
@@ -1,4 +1,3 @@
1
- import { BreakpointObserver } from '@angular/cdk/layout';
2
1
  import { ChangeDetectorRef, ElementRef, InjectionToken, TemplateRef } from '@angular/core';
3
2
  import { TooltipComponent as MatTooltipComponent } from '@angular/material/tooltip';
4
3
  import * as i0 from "@angular/core";
@@ -17,10 +16,9 @@ export declare class TooltipComponent extends MatTooltipComponent {
17
16
  private _messageCopy;
18
17
  _tooltip: ElementRef<HTMLElement>;
19
18
  private tooltipDiv;
20
- constructor(changeDetectorRef: ChangeDetectorRef, _breakpointObserver: BreakpointObserver, _tooltipInst: TooltipTemplateContainer);
19
+ constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _tooltipInst: TooltipTemplateContainer, animationMode?: string);
21
20
  show(delay: number): void;
22
- get _self(): any;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "bui-tooltip-component", never, {}, {}, never, never, false>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, [null, null, null, { optional: true; }]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "bui-tooltip-component", never, {}, {}, never, never, false, never>;
25
23
  }
26
24
  export {};
@@ -37,5 +37,5 @@ export declare class TooltipDirective extends _MatTooltipBase<TooltipComponent>
37
37
  /** @ignore */
38
38
  clicked(): void;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
40
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[buiTooltip]", ["buiTooltip"], { "buiTooltipPosition": "buiTooltipPosition"; "buiTooltipDisabled": "buiTooltipDisabled"; "buiTooltip": "buiTooltip"; "buiTooltipClass": "buiTooltipClass"; }, {}, never, never, false>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[buiTooltip]", ["buiTooltip"], { "buiTooltipPosition": "buiTooltipPosition"; "buiTooltipDisabled": "buiTooltipDisabled"; "buiTooltip": "buiTooltip"; "buiTooltipClass": "buiTooltipClass"; }, {}, never, never, false, never>;
41
41
  }