@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,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/icon-font" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './utilities';
2
- export * from './icon-font.module';
3
- export * from './icon.directive';
@@ -1,20 +0,0 @@
1
- /**
2
- * Decode the FontAwesome icon font set name from the icon name
3
- *
4
- * `'far fa-alarm' => 'far'`
5
- *
6
- * `'home' => ''`
7
- *
8
- * `'fa-user' => 'fas'`
9
- */
10
- export declare function decodeFAIconFontSet(iconName: string): string;
11
- /**
12
- * Decode the FontAwesome icon font name from the icon name
13
- *
14
- * `'far fa-alarm' => 'fa-alarm'`
15
- *
16
- * `'home' => ''`
17
- *
18
- * `'fa-user' => 'fa-user'`
19
- */
20
- export declare function decodeFAIconFontName(iconName: string): string;
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui" />
5
- export * from './public-api';
package/panel/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/panel" />
5
- export * from './public-api';
@@ -1,15 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * `bui-panel-section`s are subdivisions of `bui-panel` that rearrange their orientation based on the width of the container element.
5
- */
6
- export declare class PanelSectionComponent implements OnInit, OnDestroy {
7
- private _elementRef;
8
- private _parentElement;
9
- constructor(_elementRef: ElementRef<HTMLElement>);
10
- ngOnInit(): void;
11
- ngOnDestroy(): void;
12
- private _calcCount;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<PanelSectionComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<PanelSectionComponent, "bui-panel-section", never, {}, {}, never, ["*"], false, never>;
15
- }
@@ -1,16 +0,0 @@
1
- import { PanelComponent } from './panel.component';
2
- import { PanelSectionComponent } from './panel-section.component';
3
- import { TintedDirective } from './tinted.directive';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./panel.component";
6
- import * as i2 from "./panel-section.component";
7
- import * as i3 from "./tinted.directive";
8
- import * as i4 from "@angular/common";
9
- import * as i5 from "@angular/material/card";
10
- import * as i6 from "@bravura/ui/behavior";
11
- export declare class PanelModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PanelModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<PanelModule, [typeof i1.PanelComponent, typeof i2.PanelSectionComponent, typeof i3.TintedDirective], [typeof i4.CommonModule, typeof i5.MatCardModule, typeof i6.BehaviorModule], [typeof i5.MatCardModule, typeof i1.PanelComponent, typeof i2.PanelSectionComponent, typeof i3.TintedDirective]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<PanelModule>;
15
- }
16
- export { PanelComponent, PanelSectionComponent, TintedDirective };
@@ -1 +0,0 @@
1
- export * from './panel.module';
@@ -1,26 +0,0 @@
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": { "alias": "buiTinted"; "required": false; }; }, {}, never, never, false, never>;
26
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/phone-number" />
5
- export * from './public-api';
@@ -1,17 +0,0 @@
1
- import { PhoneNumberDirective } from './phone-number.directive';
2
- import { PhoneNumberPipe } from './phone-number.pipe';
3
- import { PhoneNumberValidator } from './phone-number.validator';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./phone-number.pipe";
6
- import * as i2 from "./phone-number.directive";
7
- import * as i3 from "./phone-number.validator";
8
- import * as i4 from "@angular/common";
9
- /**
10
- * @internal
11
- */
12
- export declare class PhoneModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<PhoneModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<PhoneModule, [typeof i1.PhoneNumberPipe, typeof i2.PhoneNumberDirective, typeof i3.PhoneNumberValidator], [typeof i4.CommonModule], [typeof i2.PhoneNumberDirective, typeof i1.PhoneNumberPipe, typeof i3.PhoneNumberValidator]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<PhoneModule>;
16
- }
17
- export { PhoneNumberDirective, PhoneNumberPipe, PhoneNumberValidator };
@@ -1,13 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @internal
5
- */
6
- export declare class PhoneNumberPipe implements PipeTransform {
7
- private _locale;
8
- constructor(_locale: string);
9
- transform(value: any, mode?: string, renderLink?: boolean): string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberPipe, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<PhoneNumberPipe, "buiPhone", false>;
12
- }
13
- export declare function getCountryCodeFromLocale(locale: string): string;
@@ -1,31 +0,0 @@
1
- import { ElementRef, StaticProvider } from '@angular/core';
2
- import { AbstractControl, Validator } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @internal
6
- */
7
- export declare const SELECTOR = "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]";
8
- /**
9
- * @internal
10
- */
11
- export declare const PHONE_VALIDATOR: StaticProvider;
12
- /**
13
- * @internal
14
- */
15
- export type TEL_TYPE = 'MOBILE' | 'FIXED_LINE_OR_MOBILE' | 'FIXED_LINE';
16
- /**
17
- * @internal
18
- */
19
- export declare class PhoneNumberValidator implements Validator {
20
- private _el;
21
- telType: TEL_TYPE;
22
- static validateControl(inp: HTMLInputElement, type: TEL_TYPE, update: boolean): {
23
- [key: string]: any;
24
- } | null;
25
- constructor(_el: ElementRef<HTMLInputElement>);
26
- validate(_: AbstractControl): {
27
- [key: string]: any;
28
- } | null;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberValidator, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneNumberValidator, "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]", never, { "telType": { "alias": "telType"; "required": false; }; }, {}, never, never, false, never>;
31
- }
@@ -1 +0,0 @@
1
- export * from './phone-number.module';
package/public-api.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const NO_EXPORT = "NO_EXPORT";
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/radio-panel" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './radio-panel-item.component';
2
- export * from './radio-panel.component';
3
- export * from './radio-panel.module';
@@ -1,22 +0,0 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
3
- import { ChangeDetectorRef, ElementRef, TemplateRef } from '@angular/core';
4
- import { MatRadioButton, MatRadioDefaultOptions, MatRadioGroup } from '@angular/material/radio';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Use `bui-radio-panel-item` instead of `mat-radio-button` in a `bui-radio-panel` to display an option.
8
- */
9
- export declare class RadioPanelItemComponent extends MatRadioButton {
10
- /**
11
- * This will be displayed as the panel header
12
- */
13
- title: string;
14
- /** The default position of the 'tick' icon relative to the title. */
15
- private _tickPosition;
16
- get tickPosition(): 'start' | 'end';
17
- set tickPosition(pos: 'start' | 'end');
18
- contentOnSelect: TemplateRef<any>;
19
- constructor(radioGroup: MatRadioGroup, elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher, animationMode?: string, _providerOverride?: MatRadioDefaultOptions, tabIndex?: string);
20
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelItemComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelItemComponent, "bui-radio-panel-item", ["matRadioButton"], { "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "_tickPosition": { "alias": "_tickPosition"; "required": false; }; "tickPosition": { "alias": "tickPosition"; "required": false; }; }, {}, ["contentOnSelect"], ["[buiRadioItemHeadingEnd]", "*"], false, never>;
22
- }
@@ -1,38 +0,0 @@
1
- import { ChangeDetectorRef, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
- import { ThemePalette } from '@angular/material/core';
3
- import { MatRadioGroup } from '@angular/material/radio';
4
- import { RadioPanelItemComponent } from './radio-panel-item.component';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Radio panel is a [control value accessor](https://angular.io/api/forms/ControlValueAccessor)
8
- * that extends Angular Material's [radio group component](https://material.angular.io/components/radio/overview).
9
- * It inherits all the features of `MatRadioGroup`, and arranges the child items in panels,
10
- * with the `title` attributes rendered as captions. The check box icon and the borders will be displayed
11
- * in the color selected by the theme attribute `color`.
12
- *
13
- */
14
- export declare class RadioPanelComponent extends MatRadioGroup implements OnChanges {
15
- /**
16
- * @ignore
17
- */
18
- classAttr: string;
19
- /**
20
- * The default width of each panel when the `direction` is `row`
21
- */
22
- panelWidth: number;
23
- /** The flow direction of the radio panel items */
24
- direction: 'row' | 'column';
25
- /** Theme color for all of the radio panels in the group. */
26
- color: ThemePalette;
27
- /** The default position of the 'tick' icon relative to the title. */
28
- tickPosition: 'start' | 'end';
29
- /**
30
- * @ignore
31
- */
32
- _radios: QueryList<RadioPanelItemComponent>;
33
- constructor(cd: ChangeDetectorRef);
34
- /** @ignore */
35
- ngOnChanges(changes: SimpleChanges): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelComponent, "bui-radio-panel", ["buiRadioPanel"], { "panelWidth": { "alias": "panelWidth"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tickPosition": { "alias": "tickPosition"; "required": false; }; }, {}, ["_radios"], ["*"], false, never>;
38
- }
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./radio-panel-item.component";
3
- import * as i2 from "./radio-panel.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/material/radio";
6
- import * as i5 from "@angular/material/core";
7
- import * as i6 from "@angular/material/icon";
8
- /**
9
- * Import this NgModule for the radio panel component
10
- */
11
- export declare class RadioPanelModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<RadioPanelModule, [typeof i1.RadioPanelItemComponent, typeof i2.RadioPanelComponent], [typeof i3.CommonModule, typeof i4.MatRadioModule, typeof i5.MatRippleModule, typeof i6.MatIconModule], [typeof i1.RadioPanelItemComponent, typeof i2.RadioPanelComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<RadioPanelModule>;
15
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/radio-panel/testing" />
5
- export * from './test-api';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/selection-panel" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export { SelectionPanelItemComponent } from './selection-panel-item.component';
2
- export { SelectionPanelDirective } from './selection-panel.directive';
3
- export { SelectionPanelModule } from './selection-panel.module';
@@ -1,77 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, InjectionToken } from '@angular/core';
2
- import { ThemePalette } from '@angular/material/core';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
- export interface SelectionPanelItemGroup {
8
- _selection: any[];
9
- color: ThemePalette;
10
- _isDisabled: boolean;
11
- _onTouched?: () => void;
12
- selectByHeader: boolean;
13
- }
14
- /**
15
- * @ignore
16
- */
17
- export declare const SELECTION_PANEL_GROUP: InjectionToken<SelectionPanelItemGroup>;
18
- /**
19
- * Use `bui-selection-panel-item` within a `bui-selection-panel` to display an option.
20
- */
21
- export declare class SelectionPanelItemComponent implements AfterContentInit {
22
- private _group;
23
- private _cd;
24
- /** @ignore */
25
- static ngAcceptInputType_disabled: boolean | string;
26
- /** @ignore */
27
- static ngAcceptInputType_checked: boolean | string;
28
- /**
29
- * This will be displayed as the panel header
30
- */
31
- title: string;
32
- /**
33
- * Show the header in with a shaded background
34
- */
35
- shadedHeader: boolean;
36
- /**
37
- * when false will hide the checkbox
38
- */
39
- selectable: boolean;
40
- /** Whether the option is disabled. */
41
- get disabled(): boolean;
42
- set disabled(value: boolean);
43
- /** The value of this option. */
44
- get value(): any;
45
- set value(value: any);
46
- /** Whether this option is checked. */
47
- get checked(): boolean;
48
- set checked(value: boolean);
49
- /** Theme color of the radio button. */
50
- get color(): ThemePalette;
51
- set color(newValue: ThemePalette);
52
- get _selectByHeader(): boolean;
53
- empty: boolean;
54
- private _color;
55
- private _disabled;
56
- private _value;
57
- private _bodyContent?;
58
- private _ripple?;
59
- constructor(_group: SelectionPanelItemGroup, _cd: ChangeDetectorRef);
60
- /** @ignore */
61
- _markInteracted(): void;
62
- /** @ignore */
63
- _notify(): void;
64
- /** Toggle selection programmatically */
65
- toggle(): void;
66
- /** @ignore */
67
- _contentClicked(event: MouseEvent): void;
68
- /** @ignore */
69
- contentChanged(): void;
70
- /** @ignore */
71
- ngAfterContentInit(): void;
72
- /** Sets the disabled state and marks for check if a change occurred. */
73
- private _setDisabled;
74
- private _setChecked;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelItemComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectionPanelItemComponent, "bui-selection-panel-item", never, { "title": { "alias": "title"; "required": false; }; "shadedHeader": { "alias": "shadedHeader"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["[buiSelectionItemHeadingEnd]", "[buiSelectionItemSubtitle]", "*"], false, never>;
77
- }
@@ -1,67 +0,0 @@
1
- import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { ThemePalette } from '@angular/material/core';
4
- import { SelectionPanelItemGroup } from './selection-panel-item.component';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Selection panel is a [control value accessor](https://angular.io/api/forms/ControlValueAccessor)
8
- * that display a set of multi-selection items as bordered panels, in a similar fashion as Radio Panel `bui-radio-panel`.
9
- *
10
- * Accessibility features are not yet fully implemented.
11
- *
12
- * Example:
13
- *
14
- * ```html
15
- * <bui-selection-panel>
16
- * <bui-selection-panel-item *ngFor="let obj of objects" [value]="obj">{{obj.description}}</bui-selection-panel-item>
17
- * </bui-selection-panel>
18
- * ```
19
- *
20
- */
21
- export declare class SelectionPanelDirective implements ControlValueAccessor, SelectionPanelItemGroup, OnChanges {
22
- private _cd;
23
- /** Theme color for all of the selection checkboxes in the group. */
24
- color: ThemePalette;
25
- /**
26
- * When set to `false`, the selection is triggered by click everywhere within the panels that is
27
- * not focus-trapping; otherwise, only clicking on the header will activate the selection.
28
- *
29
- * @default true
30
- */
31
- selectByHeader: boolean;
32
- /**
33
- * @ignore
34
- * The selected values. Used by the child elements to modify the group's value
35
- */
36
- get _selection(): any[];
37
- set _selection(value: any[]);
38
- /** @ignore */
39
- _onTouched?: () => void;
40
- /** @ignore */
41
- _isDisabled: boolean;
42
- private _onChange?;
43
- private _selected;
44
- private _items;
45
- constructor(_cd: ChangeDetectorRef);
46
- /**
47
- * @ignore
48
- */
49
- writeValue(obj: any): void;
50
- /**
51
- * @ignore
52
- */
53
- registerOnChange(fn: (_: any) => void): void;
54
- /**
55
- * @ignore
56
- */
57
- registerOnTouched(fn: () => void): void;
58
- /**
59
- * Sets the disabled state and marks for check if a change occurred.
60
- * @ignore
61
- */
62
- setDisabledState(isDisabled: boolean): void;
63
- /** @ignore */
64
- ngOnChanges(changes: SimpleChanges): void;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelDirective, never>;
66
- static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionPanelDirective, "bui-selection-panel", ["buiSelectionPanel"], { "color": { "alias": "color"; "required": false; }; "selectByHeader": { "alias": "selectByHeader"; "required": false; }; }, {}, ["_items"], never, false, never>;
67
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./selection-panel.directive";
3
- import * as i2 from "./selection-panel-item.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/material/checkbox";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "@angular/material/core";
8
- import * as i7 from "@angular/cdk/observers";
9
- export declare class SelectionPanelModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionPanelModule, [typeof i1.SelectionPanelDirective, typeof i2.SelectionPanelItemComponent], [typeof i3.CommonModule, typeof i4.MatCheckboxModule, typeof i5.FormsModule, typeof i6.MatRippleModule, typeof i7.ObserversModule], [typeof i1.SelectionPanelDirective, typeof i2.SelectionPanelItemComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<SelectionPanelModule>;
13
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/skeletons" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './skeletons.module';
2
- export * from './skeleton-loader.component';
3
- export * from './skeleton-loader-presets.directive';
@@ -1,23 +0,0 @@
1
- import { AfterViewChecked, ElementRef, InjectionToken } from '@angular/core';
2
- import { SkeletonLoaderComponent } from './skeleton-loader.component';
3
- import * as i0 from "@angular/core";
4
- export type SkeletonPreset = {
5
- viewBox: string;
6
- content: string;
7
- };
8
- export type SkeletonPresets = {
9
- [key: string]: SkeletonPreset;
10
- };
11
- export declare const SKELETON_PRESETS: InjectionToken<SkeletonPresets>;
12
- export declare const DEFAULT_PRESETS: SkeletonPresets;
13
- export declare class SkeletonLoaderPresetsDirective implements AfterViewChecked {
14
- private _skeletonComponent;
15
- private _elementRef;
16
- /** Select the SVG elements from one of the presets. */
17
- preset?: string;
18
- private _allPresets;
19
- constructor(_skeletonComponent: SkeletonLoaderComponent, _elementRef: ElementRef<HTMLElement>, _presetList: SkeletonPresets[]);
20
- ngAfterViewChecked(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderPresetsDirective, [{ host: true; }, null, null]>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonLoaderPresetsDirective, "bui-skeleton[preset]", never, { "preset": { "alias": "preset"; "required": false; }; }, {}, never, never, false, never>;
23
- }
@@ -1,44 +0,0 @@
1
- import { Directionality } from '@angular/cdk/bidi';
2
- import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3
- import { ContentLoaderComponent } from '@ngneat/content-loader';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Use the [Create React Content Loader](https://skeletonreact.com/) to create your custom skeleton loaders;
7
- *
8
- * Add the resulting `svg` elements as the content children of a `<bui-skeleton>` component.
9
- *
10
- * The component `bui-skeleton` extends `content-loader` from [ngneat/content-loader](https://github.com/ngneat/content-loader).
11
- *
12
- * You can also choose from one of the presets registered by the `SKELETON_PRESETS` injection token.
13
- *
14
- * The following code snippets demonstrate how to register a preset:
15
- *
16
- * ```typescript
17
- * @import {SkeletonsModule} from '@bravura/ui/skeletons';
18
- * @import htmlWithSvgElements from './custom-loader1.html';
19
- *
20
- * @NgModule({
21
- * imports: [SkeletonsModule.forConfig({ presets: {
22
- * custom1: { viewBox: '0 0 400 100', content: htmlWithSvgElements }
23
- * }})]
24
- * })
25
- * export class MyModule {}
26
- * ```
27
- *
28
- * custom-loader1.html:
29
- *
30
- * ```html
31
- * <rect x="50" y="6" rx="4" ry="4" width="343" height="38" />
32
- * <rect x="8" y="6" rx="4" ry="4" width="35" height="38" />
33
- * ```
34
- */
35
- export declare class SkeletonLoaderComponent extends ContentLoaderComponent implements OnChanges, OnDestroy {
36
- private _cdRef;
37
- private _dir;
38
- private _destroyed$;
39
- constructor(elemRef: ElementRef<HTMLElement>, _cdRef: ChangeDetectorRef, _dir: Directionality);
40
- ngOnDestroy(): void;
41
- ngOnChanges(changes: SimpleChanges): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "bui-skeleton", never, {}, {}, never, never, false, never>;
44
- }
@@ -1,16 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { SkeletonPresets } from './skeleton-loader-presets.directive';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./skeleton-loader.component";
5
- import * as i2 from "./skeleton-loader-presets.directive";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "@ngneat/content-loader";
8
- import * as i5 from "@bravura/ui/common";
9
- export declare class SkeletonsModule {
10
- static forConfig(config?: {
11
- presets?: SkeletonPresets;
12
- }): ModuleWithProviders<SkeletonsModule>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonsModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkeletonsModule, [typeof i1.SkeletonLoaderComponent, typeof i2.SkeletonLoaderPresetsDirective], [typeof i3.CommonModule, typeof i4.ContentLoaderModule, typeof i5.BuiCommonModule], [typeof i4.ContentLoaderModule, typeof i5.BuiCommonModule, typeof i1.SkeletonLoaderComponent, typeof i2.SkeletonLoaderPresetsDirective]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<SkeletonsModule>;
16
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/stepper" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './step-label-top.directive';
2
- export * from './stepper.component';
3
- export * from './stepper.module';
@@ -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,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,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/tooltip" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './tooltip.module';
2
- export * from './tooltip.directive';
3
- export { BUI_TOOLTIP_TEMPLATE_REF } from './tooltip.component';