@bravura/ui 1.23.2 → 1.24.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 (73) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/behavior/await.directive.d.ts +5 -1
  3. package/behavior/behavior.module.d.ts +6 -4
  4. package/behavior/observe-content-class.directive.d.ts +29 -0
  5. package/behavior/public-api.d.ts +1 -0
  6. package/behavior/sizing.directive.d.ts +2 -0
  7. package/bundles/bravura-ui-alert.umd.js +1 -1
  8. package/bundles/bravura-ui-behavior.umd.js +117 -17
  9. package/bundles/bravura-ui-behavior.umd.js.map +1 -1
  10. package/bundles/bravura-ui-currency-input.umd.js +0 -3
  11. package/bundles/bravura-ui-currency-input.umd.js.map +1 -1
  12. package/bundles/bravura-ui-decimal-input.umd.js +1 -5
  13. package/bundles/bravura-ui-decimal-input.umd.js.map +1 -1
  14. package/bundles/bravura-ui-file-upload.umd.js +47 -3
  15. package/bundles/bravura-ui-file-upload.umd.js.map +1 -1
  16. package/bundles/bravura-ui-panel.umd.js +266 -0
  17. package/bundles/bravura-ui-panel.umd.js.map +1 -0
  18. package/bundles/bravura-ui-radio-panel.umd.js +2 -2
  19. package/bundles/bravura-ui-radio-panel.umd.js.map +1 -1
  20. package/bundles/bravura-ui-stepper.umd.js +6 -2
  21. package/bundles/bravura-ui-stepper.umd.js.map +1 -1
  22. package/bundles/bravura-ui-tooltip.umd.js +34 -6
  23. package/bundles/bravura-ui-tooltip.umd.js.map +1 -1
  24. package/decimal-input/decimal-input.directive.d.ts +0 -1
  25. package/esm2015/alert/alert-message.component.js +1 -1
  26. package/esm2015/behavior/await.directive.js +15 -6
  27. package/esm2015/behavior/behavior.module.js +18 -6
  28. package/esm2015/behavior/observe-content-class.directive.js +63 -0
  29. package/esm2015/behavior/public-api.js +2 -1
  30. package/esm2015/behavior/sizing.directive.js +13 -4
  31. package/esm2015/currency-input/currency-input.directive.js +1 -4
  32. package/esm2015/decimal-input/decimal-input.directive.js +2 -6
  33. package/esm2015/file-upload/file-upload.component.js +48 -4
  34. package/esm2015/panel/bravura-ui-panel.js +5 -0
  35. package/esm2015/panel/panel-section.component.js +47 -0
  36. package/esm2015/panel/panel.component.js +93 -0
  37. package/esm2015/panel/panel.module.js +23 -0
  38. package/esm2015/panel/public-api.js +2 -0
  39. package/esm2015/panel/tinted.directive.js +60 -0
  40. package/esm2015/radio-panel/radio-panel-item.component.js +2 -2
  41. package/esm2015/radio-panel/radio-panel.component.js +1 -1
  42. package/esm2015/stepper/stepper.component.js +7 -3
  43. package/esm2015/tooltip/public-api.js +2 -1
  44. package/esm2015/tooltip/tooltip.directive.js +30 -4
  45. package/fesm2015/bravura-ui-alert.js +1 -1
  46. package/fesm2015/bravura-ui-behavior.js +104 -14
  47. package/fesm2015/bravura-ui-behavior.js.map +1 -1
  48. package/fesm2015/bravura-ui-currency-input.js +0 -3
  49. package/fesm2015/bravura-ui-currency-input.js.map +1 -1
  50. package/fesm2015/bravura-ui-decimal-input.js +1 -5
  51. package/fesm2015/bravura-ui-decimal-input.js.map +1 -1
  52. package/fesm2015/bravura-ui-file-upload.js +47 -3
  53. package/fesm2015/bravura-ui-file-upload.js.map +1 -1
  54. package/fesm2015/bravura-ui-panel.js +218 -0
  55. package/fesm2015/bravura-ui-panel.js.map +1 -0
  56. package/fesm2015/bravura-ui-radio-panel.js +2 -2
  57. package/fesm2015/bravura-ui-radio-panel.js.map +1 -1
  58. package/fesm2015/bravura-ui-stepper.js +6 -2
  59. package/fesm2015/bravura-ui-stepper.js.map +1 -1
  60. package/fesm2015/bravura-ui-tooltip.js +30 -4
  61. package/fesm2015/bravura-ui-tooltip.js.map +1 -1
  62. package/file-upload/file-upload.component.d.ts +11 -1
  63. package/package.json +1 -1
  64. package/panel/bravura-ui-panel.d.ts +5 -0
  65. package/panel/package.json +10 -0
  66. package/panel/panel-section.component.d.ts +15 -0
  67. package/panel/panel.component.d.ts +60 -0
  68. package/panel/panel.module.d.ts +16 -0
  69. package/panel/public-api.d.ts +1 -0
  70. package/panel/tinted.directive.d.ts +26 -0
  71. package/stepper/stepper.component.d.ts +1 -0
  72. package/tooltip/public-api.d.ts +1 -0
  73. package/tooltip/tooltip.directive.d.ts +8 -2
@@ -0,0 +1,26 @@
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { ThemePalette } from '@angular/material/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * A "tinted" element has a shaded background specified by the `ThemePalette`, which
6
+ * is compatible with both light and dark themes.
7
+ */
8
+ export declare class TintedDirective implements OnInit, OnDestroy {
9
+ private _doc;
10
+ /**
11
+ * The base color of the shaded background
12
+ * @default 'primary'
13
+ */
14
+ get color(): ThemePalette;
15
+ set color(c: ThemePalette);
16
+ private _color;
17
+ private readonly _addedStyle;
18
+ private readonly _attr;
19
+ private _element;
20
+ constructor(_doc: Document, elemRef: ElementRef<HTMLElement>);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ private generateStyle;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TintedDirective, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TintedDirective, "[buiTinted], bui-panel", ["buiTinted"], { "color": "buiTinted"; }, {}, never>;
26
+ }
@@ -15,6 +15,7 @@ import * as i0 from "@angular/core";
15
15
  *
16
16
  */
17
17
  export declare class StepperComponent extends CdkStepper implements AfterContentInit {
18
+ private changeDetectorRef;
18
19
  private _buiElRef;
19
20
  /** @ignore The list of step headers of the steps in the stepper. */
20
21
  _stepHeader: QueryList<MatStepHeader>;
@@ -1,2 +1,3 @@
1
1
  export * from './tooltip.module';
2
2
  export * from './tooltip.directive';
3
+ export { BUI_TOOLTIP_TEMPLATE_REF } from './tooltip.component';
@@ -4,6 +4,7 @@ import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
4
4
  import { Platform } from '@angular/cdk/platform';
5
5
  import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
6
6
  import { MatTooltipDefaultOptions, TooltipPosition, _MatTooltipBase } from '@angular/material/tooltip';
7
+ import { Observable } from 'rxjs';
7
8
  import { TooltipComponent } from './tooltip.component';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
@@ -15,6 +16,8 @@ import * as i0 from "@angular/core";
15
16
  export declare class TooltipDirective extends _MatTooltipBase<TooltipComponent> {
16
17
  protected readonly _tooltipComponent: typeof TooltipComponent;
17
18
  private _templateRef?;
19
+ private _contentSub;
20
+ private _contentObs?;
18
21
  constructor(overlay: Overlay, elementRef: ElementRef<HTMLElement>, scrollDispatcher: ScrollDispatcher, viewContainerRef: ViewContainerRef, ngZone: NgZone, platform: Platform, ariaDescriber: AriaDescriber, focusMonitor: FocusMonitor, scrollStrategy: any, dir: Directionality, defaultOptions: MatTooltipDefaultOptions, _document: any);
19
22
  /** Allows the user to define the position of the tooltip relative to the parent element */
20
23
  get buiTooltipPosition(): TooltipPosition;
@@ -23,8 +26,8 @@ export declare class TooltipDirective extends _MatTooltipBase<TooltipComponent>
23
26
  get buiTooltipDisabled(): boolean;
24
27
  set buiTooltipDisabled(value: boolean);
25
28
  /** The message to be displayed in the tooltip. */
26
- get buiTooltip(): string | TemplateRef<any>;
27
- set buiTooltip(value: string | TemplateRef<any>);
29
+ get buiTooltip(): string | TemplateRef<any> | Observable<string>;
30
+ set buiTooltip(value: string | TemplateRef<any> | Observable<string>);
28
31
  /** @ignore */
29
32
  get template(): TemplateRef<any> | undefined;
30
33
  /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
@@ -36,6 +39,9 @@ export declare class TooltipDirective extends _MatTooltipBase<TooltipComponent>
36
39
  });
37
40
  /** @ignore */
38
41
  clicked(): void;
42
+ /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
43
+ show(delay?: number): void;
44
+ ngOnDestroy(): void;
39
45
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
40
46
  static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[buiTooltip]", ["buiTooltip"], { "buiTooltipPosition": "buiTooltipPosition"; "buiTooltipDisabled": "buiTooltipDisabled"; "buiTooltip": "buiTooltip"; "buiTooltipClass": "buiTooltipClass"; }, {}, never>;
41
47
  }