@bravura/ui 6.1.0 → 8.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 (134) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/README.md +58 -57
  3. package/fesm2022/bravura-ui-alert.mjs +19 -22
  4. package/fesm2022/bravura-ui-alert.mjs.map +1 -1
  5. package/fesm2022/bravura-ui-behavior.mjs +18 -18
  6. package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
  7. package/fesm2022/bravura-ui-clip-note.mjs +10 -10
  8. package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
  9. package/fesm2022/bravura-ui-common.mjs +5 -6
  10. package/fesm2022/bravura-ui-common.mjs.map +1 -1
  11. package/fesm2022/bravura-ui-currency-input.mjs +7 -7
  12. package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
  13. package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
  14. package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
  15. package/fesm2022/bravura-ui-discrete-input.mjs +10 -11
  16. package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
  17. package/fesm2022/bravura-ui-file-upload.mjs +18 -18
  18. package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
  19. package/fesm2022/bravura-ui-form-field.mjs +10 -10
  20. package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
  21. package/fesm2022/bravura-ui-icon-font.mjs +7 -7
  22. package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
  23. package/fesm2022/bravura-ui-panel.mjs +16 -16
  24. package/fesm2022/bravura-ui-panel.mjs.map +1 -1
  25. package/fesm2022/bravura-ui-phone-number.mjs +13 -13
  26. package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
  27. package/fesm2022/bravura-ui-radio-panel.mjs +12 -14
  28. package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
  29. package/fesm2022/bravura-ui-selection-panel.mjs +11 -11
  30. package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
  31. package/fesm2022/bravura-ui-skeletons.mjs +10 -10
  32. package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
  33. package/fesm2022/bravura-ui-stepper.mjs +18 -18
  34. package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
  35. package/fesm2022/bravura-ui-tooltip.mjs +13 -31
  36. package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
  37. package/package.json +39 -39
  38. package/{alert/testing/test-api.d.ts → types/bravura-ui-alert-testing.d.ts} +8 -4
  39. package/{alert/alert-container.component.d.ts → types/bravura-ui-alert.d.ts} +61 -4
  40. package/types/bravura-ui-behavior.d.ts +233 -0
  41. package/{clip-note/clip-note.directive.d.ts → types/bravura-ui-clip-note.d.ts} +64 -6
  42. package/types/bravura-ui-common.d.ts +26 -0
  43. package/{currency-input/currency-input.directive.d.ts → types/bravura-ui-currency-input.d.ts} +17 -8
  44. package/{decimal-input/decimal-input.directive.d.ts → types/bravura-ui-decimal-input.d.ts} +17 -8
  45. package/{discrete-input/discrete-input.component.d.ts → types/bravura-ui-discrete-input.d.ts} +18 -5
  46. package/{file-upload/file-upload.component.d.ts → types/bravura-ui-file-upload.d.ts} +61 -7
  47. package/{form-field/form-field.component.d.ts → types/bravura-ui-form-field.d.ts} +18 -6
  48. package/{icon-font/icon.directive.d.ts → types/bravura-ui-icon-font.d.ts} +38 -3
  49. package/{panel/panel.component.d.ts → types/bravura-ui-panel.d.ts} +53 -4
  50. package/{phone-number/phone-number.directive.d.ts → types/bravura-ui-phone-number.d.ts} +49 -5
  51. package/{radio-panel/testing/test-api.d.ts → types/bravura-ui-radio-panel-testing.d.ts} +12 -7
  52. package/types/bravura-ui-radio-panel.d.ts +73 -0
  53. package/types/bravura-ui-selection-panel.d.ts +151 -0
  54. package/types/bravura-ui-skeletons.d.ts +81 -0
  55. package/{stepper/stepper.component.d.ts → types/bravura-ui-stepper.d.ts} +37 -4
  56. package/{tooltip/tooltip.directive.d.ts → types/bravura-ui-tooltip.d.ts} +19 -4
  57. package/types/bravura-ui.d.ts +3 -0
  58. package/alert/alert-message.component.d.ts +0 -47
  59. package/alert/alert.module.d.ts +0 -14
  60. package/alert/index.d.ts +0 -5
  61. package/alert/public-api.d.ts +0 -1
  62. package/alert/testing/index.d.ts +0 -5
  63. package/behavior/await.directive.d.ts +0 -71
  64. package/behavior/behavior.module.d.ts +0 -17
  65. package/behavior/index.d.ts +0 -5
  66. package/behavior/observe-content-class.directive.d.ts +0 -29
  67. package/behavior/public-api.d.ts +0 -5
  68. package/behavior/sizing-monitor.directive.d.ts +0 -23
  69. package/behavior/sizing.directive.d.ts +0 -98
  70. package/clip-note/clip-note.component.d.ts +0 -45
  71. package/clip-note/clip-note.module.d.ts +0 -19
  72. package/clip-note/index.d.ts +0 -5
  73. package/clip-note/public-api.d.ts +0 -1
  74. package/common/common-utils.d.ts +0 -11
  75. package/common/common.module.d.ts +0 -11
  76. package/common/index.d.ts +0 -5
  77. package/common/public-api.d.ts +0 -2
  78. package/currency-input/currency-input.module.d.ts +0 -10
  79. package/currency-input/index.d.ts +0 -5
  80. package/currency-input/public-api.d.ts +0 -1
  81. package/decimal-input/decimal-input.module.d.ts +0 -10
  82. package/decimal-input/index.d.ts +0 -5
  83. package/decimal-input/public-api.d.ts +0 -1
  84. package/discrete-input/discrete-input.module.d.ts +0 -11
  85. package/discrete-input/index.d.ts +0 -5
  86. package/discrete-input/public-api.d.ts +0 -2
  87. package/file-upload/file-upload.module.d.ts +0 -14
  88. package/file-upload/file-upload.service.d.ts +0 -42
  89. package/file-upload/index.d.ts +0 -5
  90. package/file-upload/public-api.d.ts +0 -6
  91. package/form-field/form-field.module.d.ts +0 -13
  92. package/form-field/index.d.ts +0 -5
  93. package/form-field/public-api.d.ts +0 -2
  94. package/icon-font/icon-font.module.d.ts +0 -12
  95. package/icon-font/index.d.ts +0 -5
  96. package/icon-font/public-api.d.ts +0 -3
  97. package/icon-font/utilities.d.ts +0 -20
  98. package/index.d.ts +0 -5
  99. package/panel/index.d.ts +0 -5
  100. package/panel/panel-section.component.d.ts +0 -15
  101. package/panel/panel.module.d.ts +0 -16
  102. package/panel/public-api.d.ts +0 -1
  103. package/panel/tinted.directive.d.ts +0 -26
  104. package/phone-number/index.d.ts +0 -5
  105. package/phone-number/phone-number.module.d.ts +0 -17
  106. package/phone-number/phone-number.pipe.d.ts +0 -13
  107. package/phone-number/phone-number.validator.d.ts +0 -31
  108. package/phone-number/public-api.d.ts +0 -1
  109. package/public-api.d.ts +0 -1
  110. package/radio-panel/index.d.ts +0 -5
  111. package/radio-panel/public-api.d.ts +0 -3
  112. package/radio-panel/radio-panel-item.component.d.ts +0 -22
  113. package/radio-panel/radio-panel.component.d.ts +0 -38
  114. package/radio-panel/radio-panel.module.d.ts +0 -15
  115. package/radio-panel/testing/index.d.ts +0 -5
  116. package/selection-panel/index.d.ts +0 -5
  117. package/selection-panel/public-api.d.ts +0 -3
  118. package/selection-panel/selection-panel-item.component.d.ts +0 -77
  119. package/selection-panel/selection-panel.directive.d.ts +0 -67
  120. package/selection-panel/selection-panel.module.d.ts +0 -13
  121. package/skeletons/index.d.ts +0 -5
  122. package/skeletons/public-api.d.ts +0 -3
  123. package/skeletons/skeleton-loader-presets.directive.d.ts +0 -23
  124. package/skeletons/skeleton-loader.component.d.ts +0 -44
  125. package/skeletons/skeletons.module.d.ts +0 -16
  126. package/stepper/index.d.ts +0 -5
  127. package/stepper/public-api.d.ts +0 -3
  128. package/stepper/step-label-top.directive.d.ts +0 -17
  129. package/stepper/stepper-animation.d.ts +0 -6
  130. package/stepper/stepper.module.d.ts +0 -17
  131. package/tooltip/index.d.ts +0 -5
  132. package/tooltip/public-api.d.ts +0 -3
  133. package/tooltip/tooltip.component.d.ts +0 -26
  134. package/tooltip/tooltip.module.d.ts +0 -13
@@ -1,47 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * An alert style message usually appears in a global notification area.
5
- *
6
- * The base color of the message is determined by the `type` of the message and a list of predefined
7
- * CSS custom properties.
8
- *
9
- * ```scss
10
- * --bui-color-success: #519602;
11
- * --bui-color-info: #0dcaf0;
12
- * --bui-color-warning: #ffc107;
13
- * --bui-color-error: #dc3545;
14
- * ```
15
- *
16
- *
17
- */
18
- export declare class AlertMessageComponent implements OnInit {
19
- /** @ignore */
20
- static ngAcceptInputType_dismissible: boolean | string | null | undefined;
21
- /** @ignore */
22
- static ngAcceptInputType_blink: boolean | string | null | undefined;
23
- /** The type of the message, used to derive the icon and base color. */
24
- type: 'success' | 'info' | 'warn' | 'error';
25
- /** The message to be displayed, HTML supported. */
26
- message: string;
27
- /** Specifies the ARIA live region politeness. */
28
- politeness: 'off' | 'polite' | 'assertive';
29
- /** Whether to display the button to fire the `dismissed` event. */
30
- get dismissible(): any;
31
- set dismissible(value: any);
32
- /** To be emitted when the user choose to dismiss the message. The event object is the ID of the element. */
33
- dismissed: EventEmitter<string>;
34
- /** To be emitted when the component finishes initialisation. The event object is the ID of the element. */
35
- initialised: EventEmitter<string>;
36
- /** @ignore */
37
- _id: string;
38
- private _dismissible;
39
- constructor();
40
- ngOnInit(): void;
41
- /** @ignore */
42
- get iconName(): string;
43
- /** @ignore */
44
- _dismiss(): void;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertMessageComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertMessageComponent, "bui-alert", never, { "type": { "alias": "type"; "required": false; }; "message": { "alias": "message"; "required": false; }; "politeness": { "alias": "politeness"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "_id": { "alias": "id"; "required": false; }; }, { "dismissed": "dismissed"; "initialised": "initialised"; }, never, ["*"], false, never>;
47
- }
@@ -1,14 +0,0 @@
1
- import { AlertContainerComponent } from './alert-container.component';
2
- import { AlertMessageComponent } from './alert-message.component';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./alert-message.component";
5
- import * as i2 from "./alert-container.component";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "@bravura/ui/icon-font";
8
- import * as i5 from "@angular/material/button";
9
- export declare class AlertModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertMessageComponent, typeof i2.AlertContainerComponent], [typeof i3.CommonModule, typeof i4.IconFontModule, typeof i5.MatButtonModule], [typeof i1.AlertMessageComponent, typeof i2.AlertContainerComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
13
- }
14
- export { AlertMessageComponent, AlertContainerComponent };
package/alert/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/alert" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './alert.module';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/alert/testing" />
5
- export * from './test-api';
@@ -1,71 +0,0 @@
1
- import { AfterViewInit, DoCheck, ElementRef, ViewContainerRef } from '@angular/core';
2
- import { MatButton, MatFabAnchor, MatFabButton, MatIconAnchor, MatIconButton, MatMiniFabAnchor, MatMiniFabButton } from '@angular/material/button';
3
- import { Subscription } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Use this directive on a `MatButton` element to provide an alternative view when an async operation is in progress.
7
- *
8
- * For example:
9
- *
10
- * ```
11
- * <button (click)="submit();" [buiAwait]="submitSubscription" buiAwaitAriaLabel="submitting">Submit</button>
12
- * ```
13
- *
14
- * Please refer to [Material Design](https://material.io/components/progress-indicators#circular-progress-indicators)
15
- * for more details of integrating circular spinner component with action buttons.
16
- *
17
- * The operation is considered 'in progress' when the bound property `buiAwait` evaluates to
18
- *
19
- * - `true`; or
20
- * - a `number` within 0 - 100; or
21
- * - an instance of `rxjs/Subscription` and `buiAwait.closed` is falsy
22
- *
23
- * When in progress
24
- *
25
- * - the button's caption will be hidden;
26
- * - a `<mat-progress-spinner>` will be displayed in place of the caption;
27
- * - the button will be disabled by setting the property `disabled` of the `MatButton` instance.
28
- */
29
- export declare class AwaitDirective implements AfterViewInit, DoCheck {
30
- private readonly _eRef;
31
- readonly _button: MatButton;
32
- readonly _iconButton: MatIconButton;
33
- readonly _iconAnchor: MatIconAnchor;
34
- readonly _fab: MatFabButton;
35
- readonly _fabAnchor: MatFabAnchor;
36
- readonly _miniFab: MatMiniFabButton;
37
- readonly _miniFabAnchor: MatMiniFabAnchor;
38
- private readonly doc;
39
- private _viewCont;
40
- /**
41
- * Indicates the `in progress` status of an async operation.
42
- *
43
- * The operation is considered 'in progress' when the property evaluates to
44
- *
45
- * - `true`; or
46
- * - a `number` within 0 - 100; or
47
- * - an instance of `rxjs/Subscription` and `buiAwait.closed` is falsy
48
- *
49
- * When it is a number, it represets the progress in percentage term.
50
- */
51
- buiAwait: null | undefined | boolean | Subscription | number;
52
- /** The ARIA label to be put on the spinner. The default value is `"In progress"`. */
53
- buiAwaitAriaLabel: string;
54
- /** The diameter of the in-progress spinner. The default value is `20`. */
55
- buiAwaitDiameter: number;
56
- private _overlayEl;
57
- private _processing;
58
- private _spinnerRef;
59
- private _captionWrapper;
60
- private button;
61
- constructor(_eRef: ElementRef<HTMLElement>, _button: MatButton, _iconButton: MatIconButton, _iconAnchor: MatIconAnchor, _fab: MatFabButton, _fabAnchor: MatFabAnchor, _miniFab: MatMiniFabButton, _miniFabAnchor: MatMiniFabAnchor, doc: Document, _viewCont: ViewContainerRef);
62
- /** @ignore */
63
- ngAfterViewInit(): void;
64
- /** @ignore */
65
- ngDoCheck(): void;
66
- /** @ignore */
67
- private get _isDeterminate();
68
- private _statusChanged;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<AwaitDirective, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null]>;
70
- static ɵdir: i0.ɵɵDirectiveDeclaration<AwaitDirective, "[buiAwait]", never, { "buiAwait": { "alias": "buiAwait"; "required": false; }; "buiAwaitAriaLabel": { "alias": "buiAwaitAriaLabel"; "required": false; }; "buiAwaitDiameter": { "alias": "buiAwaitDiameter"; "required": false; }; }, {}, never, never, false, never>;
71
- }
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./sizing.directive";
3
- import * as i2 from "./sizing-monitor.directive";
4
- import * as i3 from "./await.directive";
5
- import * as i4 from "./observe-content-class.directive";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/material/button";
8
- import * as i7 from "@angular/material/progress-spinner";
9
- import * as i8 from "@angular/cdk/observers";
10
- /**
11
- * For functionality that cannot be easily achieved via CSS.
12
- */
13
- export declare class BehaviorModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<BehaviorModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<BehaviorModule, [typeof i1.SizingDirective, typeof i2.SizingMonitorDirective, typeof i3.AwaitDirective, typeof i4.ObserveContentClassDirective], [typeof i5.CommonModule, typeof i6.MatButtonModule, typeof i7.MatProgressSpinnerModule, typeof i8.ObserversModule], [typeof i1.SizingDirective, typeof i2.SizingMonitorDirective, typeof i3.AwaitDirective, typeof i7.MatProgressSpinnerModule, typeof i4.ObserveContentClassDirective]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<BehaviorModule>;
17
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/behavior" />
5
- export * from './public-api';
@@ -1,29 +0,0 @@
1
- import { ContentObserver } from '@angular/cdk/observers';
2
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Use `[bui-class.not-empty]` to specify a style class activated only when the host element has DOM children;
6
- *
7
- * use `[bui-class.empty]` for a style class activated when it has no DOM children.
8
- *
9
- * Use `[bui-class.no-text]` to specify a style class activated only when the host element has text content;
10
- *
11
- * use `[bui-class.has-text]` for a style class activated when it has no text content.
12
- */
13
- export declare class ObserveContentClassDirective implements OnDestroy, OnInit {
14
- private readonly subscription;
15
- private readonly element;
16
- private classToRemove;
17
- private classEmpty?;
18
- private classNotEmpty?;
19
- private classNoText?;
20
- private classHasText?;
21
- constructor(observer: ContentObserver, elementRef: ElementRef<HTMLElement>);
22
- ngOnInit(): void;
23
- ngOnDestroy(): void;
24
- private checkClass;
25
- private checkClassWith;
26
- private addClass;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<ObserveContentClassDirective, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveContentClassDirective, "[bui-class.empty],[bui-class.not-empty],[bui-class.no-text],[bui-class.has-text]", never, { "classEmpty": { "alias": "bui-class.empty"; "required": false; }; "classNotEmpty": { "alias": "bui-class.not-empty"; "required": false; }; "classNoText": { "alias": "bui-class.no-text"; "required": false; }; "classHasText": { "alias": "bui-class.has-text"; "required": false; }; }, {}, never, never, false, never>;
29
- }
@@ -1,5 +0,0 @@
1
- export * from './sizing.directive';
2
- export * from './sizing-monitor.directive';
3
- export * from './behavior.module';
4
- export * from './await.directive';
5
- export * from './observe-content-class.directive';
@@ -1,23 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Use this directive to designate a target HTML element, based on which the child elements'
5
- * `[buiSizing]` directives will calculate the sizes.
6
- *
7
- * ```html
8
- * <div [buiSizingMonitor]>
9
- * <div [buiSizing]="...">
10
- * </div>
11
- * <div>
12
- * <div [buiSizing]="...">
13
- * </div>
14
- * </div>
15
- * <div>
16
- * ```
17
- */
18
- export declare class SizingMonitorDirective {
19
- readonly element: ElementRef<HTMLElement>;
20
- constructor(element: ElementRef<HTMLElement>);
21
- static ɵfac: i0.ɵɵFactoryDeclaration<SizingMonitorDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<SizingMonitorDirective, "[buiSizingMonitor]", never, {}, {}, never, never, false, never>;
23
- }
@@ -1,98 +0,0 @@
1
- import { ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { SizingMonitorDirective } from './sizing-monitor.directive';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * This directive monitors the changes in the width of the `sizingBy` target, and apply specified style
6
- * classes and/or inline styles to the current element dynamically.
7
- *
8
- * In order for the layout engine to efficiently calculate and stabilize the dimensions, the effective style property
9
- * `box-sizing` of the `sizingBy` target element must be set to `border-box`.
10
- *
11
- * The directive uses [ResizeObserver API](https://developer.mozilla.org/en-US/docs/Web/API/Resize_Observer_API)
12
- * to capture the events of element resizing. Please use a polyfill if you want to support older browsers
13
- * that do not implement ResizeObserver API.
14
- *
15
- * Examples:
16
- *
17
- * ```html
18
- * <div #parentElement>
19
- * <div [buiSizing]="{'400': 'small', '800': 'medium', '~': 'large'}" [buiSizingBy]="parentElement"></div>
20
- * <div [buiSizing]="['small', 'medium', 'large']" [buiSizingBy]="'root'"></div>
21
- * <div [buiSizing]="{'650': 'border-color: #28569', '~': 'bg-muted; border-style: dotted'}" [buiSizingBy]="parentElement"></div>
22
- * </div>
23
- * ```
24
- */
25
- export declare class SizingDirective implements OnChanges, OnDestroy {
26
- private _doc;
27
- private _defaultTarget;
28
- private _zone;
29
- /**
30
- * @ignore
31
- */
32
- static defaultSizingBreakpoints: string[];
33
- /**
34
- * Specifies the breakpoint widths and the style classes.
35
- *
36
- * The sizing spec `{"400": "small", "800": "medium", "~": "large"}` tells the directive to apply
37
- * a style class `small` when the width of the monitored target is smaller than 400 pixels,
38
- * `medium` when the width is between 400 and 800 pixels, and `large` when above.
39
- *
40
- * @example {'400': 'small', '800': 'medium', '~': 'large'}
41
- */
42
- buiSizing: string | Array<string> | {
43
- [key: string]: string;
44
- };
45
- /**
46
- * The alias of `buiSizingBy`.
47
- * @default 'root'
48
- * @deprecated
49
- * @ignore
50
- */
51
- sizingBy: 'root' | 'parent' | HTMLElement;
52
- /**
53
- * Designate an element to be monitored for recalculating the style classes of the current element.
54
- *
55
- * - `root` specifies the document root or the enclosing shadow host. This is the default value.
56
- * - `parent` specifies the parent element.
57
- *
58
- * @default 'root'
59
- * @alias sizingBy
60
- */
61
- get buiSizingBy(): 'root' | 'parent' | HTMLElement;
62
- set buiSizingBy(target: 'root' | 'parent' | HTMLElement);
63
- /**
64
- * Emits `{width, height}` when the monitor target element resizes.
65
- *
66
- * Note that the dimensions emitted are of the [sizingBy] target, but not the current element.
67
- */
68
- buiResized: EventEmitter<{
69
- width: number;
70
- height: number;
71
- }>;
72
- /**
73
- * Recalculate the height of this element according to the height of the monitored target.
74
- */
75
- buiFixedHeight: boolean;
76
- private _monitorTarget;
77
- private _observer;
78
- private _sizingSpec;
79
- private _width;
80
- private _height;
81
- private _reflowFrameCount;
82
- private _element;
83
- private _frameHandlerId;
84
- constructor(_doc: Document, _defaultTarget: SizingMonitorDirective, elemRef: ElementRef<HTMLElement>, _zone: NgZone);
85
- ngOnChanges(_: SimpleChanges): void;
86
- ngOnDestroy(): void;
87
- private _initOrReset;
88
- private _setUpNodeMonitor;
89
- private _tearDownNodeMonitor;
90
- private _runWithObserver;
91
- private _calculateSize;
92
- private _applyClassesOrStyles;
93
- private _removeClassesOrStyles;
94
- private _reflowHeight;
95
- private _toNumber;
96
- static ɵfac: i0.ɵɵFactoryDeclaration<SizingDirective, [null, { optional: true; }, null, null]>;
97
- static ɵdir: i0.ɵɵDirectiveDeclaration<SizingDirective, "[buiSizing],[buiResized],[buiSizingBy],[buiFixedHeight]", never, { "buiSizing": { "alias": "buiSizing"; "required": false; }; "sizingBy": { "alias": "sizingBy"; "required": false; }; "buiSizingBy": { "alias": "buiSizingBy"; "required": false; }; "buiFixedHeight": { "alias": "buiFixedHeight"; "required": false; }; }, { "buiResized": "buiResized"; }, never, never, false, never>;
98
- }
@@ -1,45 +0,0 @@
1
- import { Directionality } from '@angular/cdk/bidi';
2
- import { ChangeDetectorRef, ElementRef, EmbeddedViewRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
3
- import { ThemePalette } from '@angular/material/core';
4
- import * as i0 from "@angular/core";
5
- export declare class ClipNoteComponent implements OnInit, OnDestroy {
6
- private _cd;
7
- private _dir;
8
- private _elemRef;
9
- buttonText: string;
10
- get buttonState(): string;
11
- get buttonIconState(): string;
12
- panelState: 'open' | 'closed-ltr' | 'closed-rtl';
13
- direction: string;
14
- _contentView?: EmbeddedViewRef<any>;
15
- _content?: string;
16
- _color: ThemePalette;
17
- _buttonAnimating: boolean;
18
- _icon?: string;
19
- _hasContent: boolean;
20
- readonly opened: EventEmitter<void>;
21
- readonly closed: EventEmitter<void>;
22
- private _hovering;
23
- private _destroyed$;
24
- private _toggleQueue;
25
- private _viewDiv;
26
- private _noteViewRef;
27
- private _fallbackTemplate;
28
- constructor(_cd: ChangeDetectorRef, _dir: Directionality, _elemRef: ElementRef<HTMLElement>);
29
- ngOnInit(): void;
30
- ngOnDestroy(): void;
31
- _mouseOverButton(hovering: boolean): void;
32
- toggle(): void;
33
- _scheduleToggle(): void;
34
- _checkToggle(): void;
35
- open(): void;
36
- close(): void;
37
- _emit(): void;
38
- _contentChanged(content?: string | TemplateRef<any>): void;
39
- _checkContent(initial?: boolean): void;
40
- _assignColor(color: ThemePalette): void;
41
- _assignButtonText(text: string): void;
42
- _assignButtonIcon(icon?: string): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<ClipNoteComponent, [null, null, { host: true; }]>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<ClipNoteComponent, "bui-clip-note", never, {}, {}, never, never, false, never>;
45
- }
@@ -1,19 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { ClipNoteDefaultConfig, ClipNoteDirective } from './clip-note.directive';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./clip-note.component";
5
- import * as i2 from "./clip-note.directive";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "@angular/material/button";
8
- import * as i5 from "@angular/material/icon";
9
- import * as i6 from "@angular/cdk/bidi";
10
- import * as i7 from "@bravura/ui/common";
11
- import * as i8 from "@angular/cdk/observers";
12
- import * as i9 from "@bravura/ui/icon-font";
13
- export declare class ClipNoteModule {
14
- static forConfig(config: ClipNoteDefaultConfig): ModuleWithProviders<ClipNoteModule>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ClipNoteModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClipNoteModule, [typeof i1.ClipNoteComponent, typeof i2.ClipNoteDirective], [typeof i3.CommonModule, typeof i4.MatButtonModule, typeof i5.MatIconModule, typeof i6.BidiModule, typeof i7.BuiCommonModule, typeof i8.ObserversModule, typeof i9.IconFontModule], [typeof i2.ClipNoteDirective]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<ClipNoteModule>;
18
- }
19
- export { ClipNoteDirective };
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/clip-note" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './clip-note.module';
@@ -1,11 +0,0 @@
1
- export declare function generateID(): string;
2
- export declare function isElementInViewport(el: HTMLElement): boolean;
3
- /**
4
- * Uses canvas.measureText to compute and return the width of the given text of given font in pixels.
5
- *
6
- * @param {String} text The text to be rendered.
7
- * @param el the element used to compute the font styles
8
- *
9
- * @see https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript/21015393#21015393
10
- */
11
- export declare function getTextWidth(text: string, el?: HTMLElement): number;
@@ -1,11 +0,0 @@
1
- import { Direction, Directionality } from '@angular/cdk/bidi';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/cdk/bidi";
4
- /** Resolves a string value to a specific direction. */
5
- export declare function _resolveDirectionality(rawValue: string): Direction;
6
- export declare class BuiCommonModule {
7
- constructor(dir: Directionality, thisModule: BuiCommonModule, document: Document);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BuiCommonModule, [null, { optional: true; skipSelf: true; }, null]>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<BuiCommonModule, never, [typeof i1.BidiModule], [typeof i1.BidiModule]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<BuiCommonModule>;
11
- }
package/common/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/common" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './common-utils';
2
- export * from './common.module';
@@ -1,10 +0,0 @@
1
- import { CurrencyInputDirective } from './currency-input.directive';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./currency-input.directive";
4
- import * as i2 from "@angular/common";
5
- export declare class CurrencyInputModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyInputModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<CurrencyInputModule, [typeof i1.CurrencyInputDirective], [typeof i2.CommonModule], [typeof i1.CurrencyInputDirective]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<CurrencyInputModule>;
9
- }
10
- export { CurrencyInputDirective };
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/currency-input" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './currency-input.module';
@@ -1,10 +0,0 @@
1
- import { DecimalInputDirective } from './decimal-input.directive';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./decimal-input.directive";
4
- import * as i2 from "@angular/common";
5
- export declare class DecimalInputModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DecimalInputModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DecimalInputModule, [typeof i1.DecimalInputDirective], [typeof i2.CommonModule], [typeof i1.DecimalInputDirective]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<DecimalInputModule>;
9
- }
10
- export { DecimalInputDirective };
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/decimal-input" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './decimal-input.module';
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./discrete-input.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/form-field";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/cdk/a11y";
7
- export declare class DiscreteInputModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DiscreteInputModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<DiscreteInputModule, [typeof i1.DiscreteInputComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.ReactiveFormsModule, typeof i5.A11yModule], [typeof i1.DiscreteInputComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<DiscreteInputModule>;
11
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/discrete-input" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export { DiscreteInputModule } from './discrete-input.module';
2
- export { DiscreteInputComponent } from './discrete-input.component';
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./file-upload.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/icon";
5
- import * as i4 from "@bravura/ui/icon-font";
6
- import * as i5 from "@angular/material/progress-bar";
7
- import * as i6 from "@angular/material/button";
8
- import * as i7 from "@angular/material/divider";
9
- import * as i8 from "@angular/material/tooltip";
10
- export declare class FileUploadModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadModule, [typeof i1.FileUploadComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.IconFontModule, typeof i5.MatProgressBarModule, typeof i6.MatButtonModule, typeof i7.MatDividerModule, typeof i8.MatTooltipModule], [typeof i1.FileUploadComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadModule>;
14
- }
@@ -1,42 +0,0 @@
1
- import { HttpEvent } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * This type represents a file or form item that has been sent as part of a multipart/form-data POST request.
6
- */
7
- export declare class FileUploadItem {
8
- /** The original filename in the client's filesystem, as provided by the browser. */
9
- name: string;
10
- /** The size of the file item. */
11
- size: number;
12
- /** An alpha-numeric string that uniquely identifies the file item. */
13
- id: string;
14
- /** The content type (MIME type) of the file. */
15
- type: string;
16
- /** @internal */
17
- constructor(_id: string, _name: string, _size: number, _type: string);
18
- }
19
- /**
20
- * This is an API for processing file upload requests.
21
- *
22
- * A sub class of this type handles multiple file requests, sent using multipart/form-data encoding type, as specified by RFC 1867.
23
- *
24
- * Please extend this type and provide it in an injector at the same level, or ancestral to that, of the `FileUploadComponent`.
25
- */
26
- export declare abstract class FileUploadService {
27
- /**
28
- * Upload a list of selected files from the browser. The returned `Observable` array provides the update of the uploading progress
29
- * through HTTP events.
30
- */
31
- abstract upload(files: File[]): Array<Observable<HttpEvent<FileUploadItem>>>;
32
- /** List all the uploaded file items in the current HTTP session. This list excludes the files still in the process of being uploaded*/
33
- abstract list(): Observable<FileUploadItem[]>;
34
- /** Get the content of an uploaded file item as a `Blob`. */
35
- abstract get(id: string): Observable<Blob>;
36
- /** Delete an uploaded file item from the server. */
37
- abstract delete(id: string): Observable<void>;
38
- /** Delete all uploaded file items in the current HTTP session. */
39
- abstract clear?(): Observable<void>;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadService, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<FileUploadService>;
42
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/file-upload" />
5
- export * from './public-api';
@@ -1,6 +0,0 @@
1
- import { FileUploadModule } from './file-upload.module';
2
- import { FileUploadComponent } from './file-upload.component';
3
- import { FileUploadService, FileUploadItem } from './file-upload.service';
4
- export { FileUploadModule };
5
- export { FileUploadComponent };
6
- export { FileUploadService, FileUploadItem };
@@ -1,13 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { BuiFormFieldConfig } from './form-field.component';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./form-field.component";
5
- import * as i2 from "@angular/common";
6
- import * as i3 from "@angular/material/form-field";
7
- import * as i4 from "@angular/cdk/observers";
8
- export declare class FormFieldModule {
9
- static forConfig(config: BuiFormFieldConfig): ModuleWithProviders<FormFieldModule>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, [typeof i1.FormFieldComponent, typeof i1.FormFieldStyleDirective], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.ObserversModule], [typeof i1.FormFieldComponent, typeof i1.FormFieldStyleDirective, typeof i3.MatFormFieldModule]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
13
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/form-field" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export { FormFieldModule } from './form-field.module';
2
- export { FormFieldComponent, FormFieldStyleDirective } from './form-field.component';
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./icon.directive";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/icon";
5
- /**
6
- * Module for utility functions and directives based on `mat-icon` and icon fonts.
7
- */
8
- export declare class IconFontModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<IconFontModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<IconFontModule, [typeof i1.IconDirective], [typeof i2.CommonModule, typeof i3.MatIconModule], [typeof i3.MatIconModule, typeof i1.IconDirective]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<IconFontModule>;
12
- }