@bravura/ui 6.1.0 → 7.0.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 (128) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +58 -57
  3. package/alert/index.d.ts +126 -3
  4. package/alert/testing/index.d.ts +28 -5
  5. package/behavior/index.d.ts +231 -3
  6. package/clip-note/index.d.ts +125 -3
  7. package/common/index.d.ts +24 -3
  8. package/currency-input/index.d.ts +69 -3
  9. package/decimal-input/index.d.ts +39 -3
  10. package/discrete-input/index.d.ts +139 -3
  11. package/fesm2022/bravura-ui-alert.mjs +18 -21
  12. package/fesm2022/bravura-ui-alert.mjs.map +1 -1
  13. package/fesm2022/bravura-ui-behavior.mjs +18 -18
  14. package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
  15. package/fesm2022/bravura-ui-clip-note.mjs +10 -10
  16. package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
  17. package/fesm2022/bravura-ui-common.mjs +5 -6
  18. package/fesm2022/bravura-ui-common.mjs.map +1 -1
  19. package/fesm2022/bravura-ui-currency-input.mjs +7 -7
  20. package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
  21. package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
  22. package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
  23. package/fesm2022/bravura-ui-discrete-input.mjs +10 -11
  24. package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
  25. package/fesm2022/bravura-ui-file-upload.mjs +18 -18
  26. package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
  27. package/fesm2022/bravura-ui-form-field.mjs +10 -10
  28. package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
  29. package/fesm2022/bravura-ui-icon-font.mjs +7 -7
  30. package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
  31. package/fesm2022/bravura-ui-panel.mjs +16 -16
  32. package/fesm2022/bravura-ui-panel.mjs.map +1 -1
  33. package/fesm2022/bravura-ui-phone-number.mjs +13 -13
  34. package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
  35. package/fesm2022/bravura-ui-radio-panel.mjs +12 -14
  36. package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
  37. package/fesm2022/bravura-ui-selection-panel.mjs +11 -11
  38. package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
  39. package/fesm2022/bravura-ui-skeletons.mjs +10 -10
  40. package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
  41. package/fesm2022/bravura-ui-stepper.mjs +18 -18
  42. package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
  43. package/fesm2022/bravura-ui-tooltip.mjs +13 -13
  44. package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
  45. package/file-upload/index.d.ts +200 -3
  46. package/form-field/index.d.ts +49 -3
  47. package/icon-font/index.d.ts +79 -3
  48. package/index.d.ts +3 -5
  49. package/package.json +24 -24
  50. package/panel/index.d.ts +107 -3
  51. package/phone-number/index.d.ts +108 -3
  52. package/radio-panel/index.d.ts +71 -3
  53. package/radio-panel/testing/index.d.ts +32 -5
  54. package/selection-panel/index.d.ts +149 -3
  55. package/skeletons/index.d.ts +79 -3
  56. package/stepper/index.d.ts +106 -3
  57. package/tooltip/index.d.ts +83 -3
  58. package/alert/alert-container.component.d.ts +0 -71
  59. package/alert/alert-message.component.d.ts +0 -47
  60. package/alert/alert.module.d.ts +0 -14
  61. package/alert/public-api.d.ts +0 -1
  62. package/alert/testing/test-api.d.ts +0 -24
  63. package/behavior/await.directive.d.ts +0 -71
  64. package/behavior/behavior.module.d.ts +0 -17
  65. package/behavior/observe-content-class.directive.d.ts +0 -29
  66. package/behavior/public-api.d.ts +0 -5
  67. package/behavior/sizing-monitor.directive.d.ts +0 -23
  68. package/behavior/sizing.directive.d.ts +0 -98
  69. package/clip-note/clip-note.component.d.ts +0 -45
  70. package/clip-note/clip-note.directive.d.ts +0 -69
  71. package/clip-note/clip-note.module.d.ts +0 -19
  72. package/clip-note/public-api.d.ts +0 -1
  73. package/common/common-utils.d.ts +0 -11
  74. package/common/common.module.d.ts +0 -11
  75. package/common/public-api.d.ts +0 -2
  76. package/currency-input/currency-input.directive.d.ts +0 -62
  77. package/currency-input/currency-input.module.d.ts +0 -10
  78. package/currency-input/public-api.d.ts +0 -1
  79. package/decimal-input/decimal-input.directive.d.ts +0 -32
  80. package/decimal-input/decimal-input.module.d.ts +0 -10
  81. package/decimal-input/public-api.d.ts +0 -1
  82. package/discrete-input/discrete-input.component.d.ts +0 -128
  83. package/discrete-input/discrete-input.module.d.ts +0 -11
  84. package/discrete-input/public-api.d.ts +0 -2
  85. package/file-upload/file-upload.component.d.ts +0 -148
  86. package/file-upload/file-upload.module.d.ts +0 -14
  87. package/file-upload/file-upload.service.d.ts +0 -42
  88. package/file-upload/public-api.d.ts +0 -6
  89. package/form-field/form-field.component.d.ts +0 -39
  90. package/form-field/form-field.module.d.ts +0 -13
  91. package/form-field/public-api.d.ts +0 -2
  92. package/icon-font/icon-font.module.d.ts +0 -12
  93. package/icon-font/icon.directive.d.ts +0 -46
  94. package/icon-font/public-api.d.ts +0 -3
  95. package/icon-font/utilities.d.ts +0 -20
  96. package/panel/panel-section.component.d.ts +0 -15
  97. package/panel/panel.component.d.ts +0 -60
  98. package/panel/panel.module.d.ts +0 -16
  99. package/panel/public-api.d.ts +0 -1
  100. package/panel/tinted.directive.d.ts +0 -26
  101. package/phone-number/phone-number.directive.d.ts +0 -66
  102. package/phone-number/phone-number.module.d.ts +0 -17
  103. package/phone-number/phone-number.pipe.d.ts +0 -13
  104. package/phone-number/phone-number.validator.d.ts +0 -31
  105. package/phone-number/public-api.d.ts +0 -1
  106. package/public-api.d.ts +0 -1
  107. package/radio-panel/public-api.d.ts +0 -3
  108. package/radio-panel/radio-panel-item.component.d.ts +0 -22
  109. package/radio-panel/radio-panel.component.d.ts +0 -38
  110. package/radio-panel/radio-panel.module.d.ts +0 -15
  111. package/radio-panel/testing/test-api.d.ts +0 -27
  112. package/selection-panel/public-api.d.ts +0 -3
  113. package/selection-panel/selection-panel-item.component.d.ts +0 -77
  114. package/selection-panel/selection-panel.directive.d.ts +0 -67
  115. package/selection-panel/selection-panel.module.d.ts +0 -13
  116. package/skeletons/public-api.d.ts +0 -3
  117. package/skeletons/skeleton-loader-presets.directive.d.ts +0 -23
  118. package/skeletons/skeleton-loader.component.d.ts +0 -44
  119. package/skeletons/skeletons.module.d.ts +0 -16
  120. package/stepper/public-api.d.ts +0 -3
  121. package/stepper/step-label-top.directive.d.ts +0 -17
  122. package/stepper/stepper-animation.d.ts +0 -6
  123. package/stepper/stepper.component.d.ts +0 -75
  124. package/stepper/stepper.module.d.ts +0 -17
  125. package/tooltip/public-api.d.ts +0 -3
  126. package/tooltip/tooltip.component.d.ts +0 -26
  127. package/tooltip/tooltip.directive.d.ts +0 -48
  128. package/tooltip/tooltip.module.d.ts +0 -13
@@ -1,17 +0,0 @@
1
- import { AfterContentInit, TemplateRef } from '@angular/core';
2
- import { MatStep } from '@angular/material/stepper';
3
- import * as i0 from "@angular/core";
4
- export declare class StepLabelTopDirective {
5
- templateRef: TemplateRef<any>;
6
- constructor(templateRef: TemplateRef<any>);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<StepLabelTopDirective, [{ optional: true; }]>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<StepLabelTopDirective, "[buiStepLabelTop]", never, {}, {}, never, never, false, never>;
9
- }
10
- export declare class StepDirective implements AfterContentInit {
11
- stepLabelTopDirective: StepLabelTopDirective;
12
- step: MatStep;
13
- constructor();
14
- ngAfterContentInit(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<StepDirective, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<StepDirective, "mat-step", never, {}, {}, ["stepLabelTopDirective"], never, false, never>;
17
- }
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- stepTransition: import("@angular/animations").AnimationTriggerMetadata;
3
- leftDrawer: import("@angular/animations").AnimationTriggerMetadata;
4
- topDrawer: import("@angular/animations").AnimationTriggerMetadata;
5
- };
6
- export default _default;
@@ -1,75 +0,0 @@
1
- import { AnimationEvent } from '@angular/animations';
2
- import { Directionality } from '@angular/cdk/bidi';
3
- import { CdkStepper, StepperOptions } from '@angular/cdk/stepper';
4
- import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core';
5
- import { ThemePalette } from '@angular/material/core';
6
- import { MatStep, MatStepHeader, MatStepperIcon, MatStepperIconContext } from '@angular/material/stepper';
7
- import { Subject } from 'rxjs';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * [Angular Material's stepper](https://material.angular.io/components/stepper/overview) provides a wizard-like workflow by dividing
11
- * content into logical steps.
12
- *
13
- * This stepper extends Angular's to customise the presentation of its headers to achieve a better user experience in both mobile and
14
- * desktop browsers.
15
- *
16
- */
17
- export declare class StepperComponent extends CdkStepper implements AfterContentInit {
18
- private changeDetectorRef;
19
- private _buiElRef;
20
- /** @ignore The list of step headers of the steps in the stepper. */
21
- _stepHeader: QueryList<MatStepHeader>;
22
- /** @ignore Full list of steps inside the stepper, including inside nested steppers. */
23
- _steps: QueryList<MatStep>;
24
- /** @ignore Steps that belong to the current stepper, excluding ones from nested steppers. */
25
- readonly steps: QueryList<MatStep>;
26
- /** @ignore Custom icon overrides passed in by the consumer. */
27
- _icons: QueryList<MatStepperIcon>;
28
- /** @ignore Event emitted when the current step is done transitioning in. */
29
- readonly animationDone: EventEmitter<void>;
30
- /** Whether ripples should be disabled for the step headers. */
31
- disableRipple?: boolean;
32
- /** Theme color for all of the steps in stepper. */
33
- color: ThemePalette;
34
- /**
35
- * A function that constructs the text in the progress cycle for the 'narrow' view.
36
- *
37
- * Default value: `'{selected step} of {total number of steps}'`
38
- */
39
- indicatorFormatter: (index: number, total: number) => string;
40
- /** The text that precedes the name of the next step label, used in the 'narrow' view. */
41
- nextStepLabelPrefix: string;
42
- /** @ignore Consumer-specified template-refs to be used to override the header icons. */
43
- _iconOverrides: Record<string, TemplateRef<MatStepperIconContext>>;
44
- /** @ignore Stream of animation `done` events when the body expands/collapses. */
45
- readonly _animationDone: Subject<AnimationEvent>;
46
- /** @ignore Whether the stepper is in a narrow container */
47
- _narrow: boolean;
48
- /** @ignore Emits whenever the drawer has started animating. */
49
- readonly _leftDrawerStarted: Subject<AnimationEvent>;
50
- /** @ignore Emits whenever the drawer is done animating. */
51
- readonly _leftDrawerEnded: Subject<AnimationEvent>;
52
- /** @ignore Current state of the sidenav animation. */
53
- _leftDrawerState: 'open-instant' | 'open' | 'void';
54
- /** @ignore Emits whenever the drawer has started animating. */
55
- readonly _topDrawerStarted: Subject<AnimationEvent>;
56
- /** @ignore Emits whenever the drawer is done animating. */
57
- readonly _topDrawerEnded: Subject<AnimationEvent>;
58
- /** @ignore Current state of the sidenav animation. */
59
- _topDrawerState: 'open-instant' | 'open' | 'void';
60
- /** @ignore */ readonly _progressCircleSize = 80;
61
- /** @ignore */ readonly _progressCircleWidth = 5;
62
- /** @ignore */ _stepTransitioning: boolean;
63
- private _editIconTemplate;
64
- constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, _buiElRef: ElementRef<HTMLElement>, _document: any, stepperOptions: StepperOptions, defaultStepperOptions?: StepperOptions);
65
- ngAfterContentInit(): void;
66
- /** @ignore */
67
- _stepIsNavigable(index: number, step: MatStep): boolean;
68
- /** @ignore */
69
- _widthChanged(w: number): void;
70
- /** @ignore */
71
- _startStepTransition(): void;
72
- toCustomStep(step: any): any;
73
- static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, [{ optional: true; }, null, null, null, { self: true; }, { optional: true; skipSelf: true; }]>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "bui-stepper, [buiStepper]", ["buiStepper", "matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "indicatorFormatter": { "alias": "indicatorFormatter"; "required": false; }; "nextStepLabelPrefix": { "alias": "nextStepLabelPrefix"; "required": false; }; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false, never>;
75
- }
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./stepper.component";
3
- import * as i2 from "./step-label-top.directive";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/cdk/portal";
6
- import * as i5 from "@angular/cdk/stepper";
7
- import * as i6 from "@angular/material/stepper";
8
- import * as i7 from "@angular/material/button";
9
- import * as i8 from "@angular/material/icon";
10
- import * as i9 from "@angular/material/core";
11
- import * as i10 from "@angular/material/progress-spinner";
12
- import * as i11 from "@bravura/ui/behavior";
13
- export declare class StepperModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<StepperModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<StepperModule, [typeof i1.StepperComponent, typeof i2.StepDirective, typeof i2.StepLabelTopDirective], [typeof i3.CommonModule, typeof i4.PortalModule, typeof i5.CdkStepperModule, typeof i6.MatStepperModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatRippleModule, typeof i10.MatProgressSpinnerModule, typeof i11.BehaviorModule], [typeof i1.StepperComponent, typeof i6.MatStepperModule, typeof i2.StepLabelTopDirective, typeof i2.StepDirective]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<StepperModule>;
17
- }
@@ -1,3 +0,0 @@
1
- export * from './tooltip.module';
2
- export * from './tooltip.directive';
3
- export { BUI_TOOLTIP_TEMPLATE_REF } from './tooltip.component';
@@ -1,26 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, InjectionToken, TemplateRef } from '@angular/core';
2
- import { TooltipComponent as MatTooltipComponent } from '@angular/material/tooltip';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
- interface TooltipTemplateContainer {
8
- template?: TemplateRef<any>;
9
- message?: string;
10
- }
11
- /**
12
- * @ignore
13
- */
14
- export declare const BUI_TOOLTIP_TEMPLATE_REF: InjectionToken<TooltipTemplateContainer>;
15
- export declare class TooltipComponent extends MatTooltipComponent {
16
- _tooltipInst: TooltipTemplateContainer;
17
- private _messageCopy;
18
- _tooltip: ElementRef<HTMLElement>;
19
- private tooltipDiv;
20
- private messageCont;
21
- constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _tooltipInst: TooltipTemplateContainer, animationMode?: string);
22
- show(delay: number): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, [null, null, null, { optional: true; }]>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "bui-tooltip-component", never, {}, {}, never, never, false, never>;
25
- }
26
- export {};
@@ -1,48 +0,0 @@
1
- import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
2
- import { Directionality } from '@angular/cdk/bidi';
3
- import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
4
- import { Platform } from '@angular/cdk/platform';
5
- import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
6
- import { MatTooltip, MatTooltipDefaultOptions, TooltipPosition } from '@angular/material/tooltip';
7
- import { Observable } from 'rxjs';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying
11
- * HTML content in the overlay area.
12
- *
13
- * All the other features are identical as those in Angular Material tooltip.
14
- */
15
- export declare class TooltipDirective extends MatTooltip {
16
- private _templateRef?;
17
- private _contentSub;
18
- private _contentObs?;
19
- 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);
20
- /** Allows the user to define the position of the tooltip relative to the parent element */
21
- get buiTooltipPosition(): TooltipPosition;
22
- set buiTooltipPosition(value: TooltipPosition);
23
- /** Disables the display of the tooltip. */
24
- get buiTooltipDisabled(): boolean;
25
- set buiTooltipDisabled(value: boolean);
26
- /** The message to be displayed in the tooltip. */
27
- get buiTooltip(): string | TemplateRef<any> | Observable<string>;
28
- set buiTooltip(value: string | TemplateRef<any> | Observable<string>);
29
- /** @ignore */
30
- get template(): TemplateRef<any> | undefined;
31
- /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
32
- get buiTooltipClass(): string | string[] | Set<string> | {
33
- [key: string]: any;
34
- };
35
- set buiTooltipClass(value: string | string[] | Set<string> | {
36
- [key: string]: any;
37
- });
38
- /** @ignore */
39
- clicked(): void;
40
- /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
41
- show(delay?: number, origin?: {
42
- x: number;
43
- y: number;
44
- } | undefined): void;
45
- ngOnDestroy(): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
47
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[buiTooltip]", ["buiTooltip"], { "buiTooltipPosition": { "alias": "buiTooltipPosition"; "required": false; }; "buiTooltipDisabled": { "alias": "buiTooltipDisabled"; "required": false; }; "buiTooltip": { "alias": "buiTooltip"; "required": false; }; "buiTooltipClass": { "alias": "buiTooltipClass"; "required": false; }; }, {}, never, never, false, never>;
48
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./tooltip.directive";
3
- import * as i2 from "./tooltip.component";
4
- import * as i3 from "@angular/cdk/a11y";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/cdk/overlay";
7
- import * as i6 from "@angular/material/core";
8
- import * as i7 from "@angular/cdk/scrolling";
9
- export declare class TooltipModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1.TooltipDirective, typeof i2.TooltipComponent], [typeof i3.A11yModule, typeof i4.CommonModule, typeof i5.OverlayModule, typeof i6.MatCommonModule], [typeof i1.TooltipDirective, typeof i6.MatCommonModule, typeof i7.CdkScrollableModule]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
13
- }