@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.
- package/CHANGELOG.md +19 -1
- package/README.md +58 -57
- package/fesm2022/bravura-ui-alert.mjs +19 -22
- package/fesm2022/bravura-ui-alert.mjs.map +1 -1
- package/fesm2022/bravura-ui-behavior.mjs +18 -18
- package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
- package/fesm2022/bravura-ui-clip-note.mjs +10 -10
- package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
- package/fesm2022/bravura-ui-common.mjs +5 -6
- package/fesm2022/bravura-ui-common.mjs.map +1 -1
- package/fesm2022/bravura-ui-currency-input.mjs +7 -7
- package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
- package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-discrete-input.mjs +10 -11
- package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-file-upload.mjs +18 -18
- package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2022/bravura-ui-form-field.mjs +10 -10
- package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
- package/fesm2022/bravura-ui-icon-font.mjs +7 -7
- package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
- package/fesm2022/bravura-ui-panel.mjs +16 -16
- package/fesm2022/bravura-ui-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-phone-number.mjs +13 -13
- package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
- package/fesm2022/bravura-ui-radio-panel.mjs +12 -14
- package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-selection-panel.mjs +11 -11
- package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-skeletons.mjs +10 -10
- package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
- package/fesm2022/bravura-ui-stepper.mjs +18 -18
- package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
- package/fesm2022/bravura-ui-tooltip.mjs +13 -31
- package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
- package/package.json +39 -39
- package/{alert/testing/test-api.d.ts → types/bravura-ui-alert-testing.d.ts} +8 -4
- package/{alert/alert-container.component.d.ts → types/bravura-ui-alert.d.ts} +61 -4
- package/types/bravura-ui-behavior.d.ts +233 -0
- package/{clip-note/clip-note.directive.d.ts → types/bravura-ui-clip-note.d.ts} +64 -6
- package/types/bravura-ui-common.d.ts +26 -0
- package/{currency-input/currency-input.directive.d.ts → types/bravura-ui-currency-input.d.ts} +17 -8
- package/{decimal-input/decimal-input.directive.d.ts → types/bravura-ui-decimal-input.d.ts} +17 -8
- package/{discrete-input/discrete-input.component.d.ts → types/bravura-ui-discrete-input.d.ts} +18 -5
- package/{file-upload/file-upload.component.d.ts → types/bravura-ui-file-upload.d.ts} +61 -7
- package/{form-field/form-field.component.d.ts → types/bravura-ui-form-field.d.ts} +18 -6
- package/{icon-font/icon.directive.d.ts → types/bravura-ui-icon-font.d.ts} +38 -3
- package/{panel/panel.component.d.ts → types/bravura-ui-panel.d.ts} +53 -4
- package/{phone-number/phone-number.directive.d.ts → types/bravura-ui-phone-number.d.ts} +49 -5
- package/{radio-panel/testing/test-api.d.ts → types/bravura-ui-radio-panel-testing.d.ts} +12 -7
- package/types/bravura-ui-radio-panel.d.ts +73 -0
- package/types/bravura-ui-selection-panel.d.ts +151 -0
- package/types/bravura-ui-skeletons.d.ts +81 -0
- package/{stepper/stepper.component.d.ts → types/bravura-ui-stepper.d.ts} +37 -4
- package/{tooltip/tooltip.directive.d.ts → types/bravura-ui-tooltip.d.ts} +19 -4
- package/types/bravura-ui.d.ts +3 -0
- package/alert/alert-message.component.d.ts +0 -47
- package/alert/alert.module.d.ts +0 -14
- package/alert/index.d.ts +0 -5
- package/alert/public-api.d.ts +0 -1
- package/alert/testing/index.d.ts +0 -5
- package/behavior/await.directive.d.ts +0 -71
- package/behavior/behavior.module.d.ts +0 -17
- package/behavior/index.d.ts +0 -5
- package/behavior/observe-content-class.directive.d.ts +0 -29
- package/behavior/public-api.d.ts +0 -5
- package/behavior/sizing-monitor.directive.d.ts +0 -23
- package/behavior/sizing.directive.d.ts +0 -98
- package/clip-note/clip-note.component.d.ts +0 -45
- package/clip-note/clip-note.module.d.ts +0 -19
- package/clip-note/index.d.ts +0 -5
- package/clip-note/public-api.d.ts +0 -1
- package/common/common-utils.d.ts +0 -11
- package/common/common.module.d.ts +0 -11
- package/common/index.d.ts +0 -5
- package/common/public-api.d.ts +0 -2
- package/currency-input/currency-input.module.d.ts +0 -10
- package/currency-input/index.d.ts +0 -5
- package/currency-input/public-api.d.ts +0 -1
- package/decimal-input/decimal-input.module.d.ts +0 -10
- package/decimal-input/index.d.ts +0 -5
- package/decimal-input/public-api.d.ts +0 -1
- package/discrete-input/discrete-input.module.d.ts +0 -11
- package/discrete-input/index.d.ts +0 -5
- package/discrete-input/public-api.d.ts +0 -2
- package/file-upload/file-upload.module.d.ts +0 -14
- package/file-upload/file-upload.service.d.ts +0 -42
- package/file-upload/index.d.ts +0 -5
- package/file-upload/public-api.d.ts +0 -6
- package/form-field/form-field.module.d.ts +0 -13
- package/form-field/index.d.ts +0 -5
- package/form-field/public-api.d.ts +0 -2
- package/icon-font/icon-font.module.d.ts +0 -12
- package/icon-font/index.d.ts +0 -5
- package/icon-font/public-api.d.ts +0 -3
- package/icon-font/utilities.d.ts +0 -20
- package/index.d.ts +0 -5
- package/panel/index.d.ts +0 -5
- package/panel/panel-section.component.d.ts +0 -15
- package/panel/panel.module.d.ts +0 -16
- package/panel/public-api.d.ts +0 -1
- package/panel/tinted.directive.d.ts +0 -26
- package/phone-number/index.d.ts +0 -5
- package/phone-number/phone-number.module.d.ts +0 -17
- package/phone-number/phone-number.pipe.d.ts +0 -13
- package/phone-number/phone-number.validator.d.ts +0 -31
- package/phone-number/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -1
- package/radio-panel/index.d.ts +0 -5
- package/radio-panel/public-api.d.ts +0 -3
- package/radio-panel/radio-panel-item.component.d.ts +0 -22
- package/radio-panel/radio-panel.component.d.ts +0 -38
- package/radio-panel/radio-panel.module.d.ts +0 -15
- package/radio-panel/testing/index.d.ts +0 -5
- package/selection-panel/index.d.ts +0 -5
- package/selection-panel/public-api.d.ts +0 -3
- package/selection-panel/selection-panel-item.component.d.ts +0 -77
- package/selection-panel/selection-panel.directive.d.ts +0 -67
- package/selection-panel/selection-panel.module.d.ts +0 -13
- package/skeletons/index.d.ts +0 -5
- package/skeletons/public-api.d.ts +0 -3
- package/skeletons/skeleton-loader-presets.directive.d.ts +0 -23
- package/skeletons/skeleton-loader.component.d.ts +0 -44
- package/skeletons/skeletons.module.d.ts +0 -16
- package/stepper/index.d.ts +0 -5
- package/stepper/public-api.d.ts +0 -3
- package/stepper/step-label-top.directive.d.ts +0 -17
- package/stepper/stepper-animation.d.ts +0 -6
- package/stepper/stepper.module.d.ts +0 -17
- package/tooltip/index.d.ts +0 -5
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip.component.d.ts +0 -26
- package/tooltip/tooltip.module.d.ts +0 -13
|
@@ -2,13 +2,11 @@ import * as i3 from '@angular/cdk/a11y';
|
|
|
2
2
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
3
3
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
4
4
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
5
|
-
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
6
5
|
import * as i1 from '@angular/common';
|
|
7
|
-
import {
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
8
7
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { InjectionToken, ANIMATION_MODULE_TYPE, ViewContainerRef, ViewChild, Inject, Optional, ChangeDetectionStrategy, ViewEncapsulation, Component, TemplateRef, forwardRef, HostListener, Input, Directive
|
|
10
|
-
import {
|
|
11
|
-
import { TooltipComponent as TooltipComponent$1, matTooltipAnimations, MatTooltip, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER } from '@angular/material/tooltip';
|
|
8
|
+
import { InjectionToken, ANIMATION_MODULE_TYPE, ViewContainerRef, ViewChild, Inject, Optional, ChangeDetectionStrategy, ViewEncapsulation, Component, TemplateRef, DOCUMENT, forwardRef, HostListener, Input, Directive } from '@angular/core';
|
|
9
|
+
import { TooltipComponent as TooltipComponent$1, MatTooltip, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_DEFAULT_OPTIONS } from '@angular/material/tooltip';
|
|
12
10
|
import { getTextWidth } from '@bravura/ui/common';
|
|
13
11
|
import { Subject, Observable } from 'rxjs';
|
|
14
12
|
import * as i2 from '@angular/cdk/platform';
|
|
@@ -39,19 +37,19 @@ class TooltipComponent extends TooltipComponent$1 {
|
|
|
39
37
|
}
|
|
40
38
|
super.show(delay);
|
|
41
39
|
}
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: BUI_TOOLTIP_TEMPLATE_REF }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: TooltipComponent, isStandalone: true, selector: "bui-tooltip-component", host: { attributes: { "aria-hidden": "true" }, listeners: { "mouseleave": "_handleMouseLeave($event)" }, properties: { "style.zoom": "isVisible() ? 1 : null" }, classAttribute: "bui-tooltip-component bui-host" }, viewQueries: [{ propertyName: "_tooltip", first: true, predicate: ["tooltip"], descendants: true, static: true }, { propertyName: "tooltipDiv", first: true, predicate: ["tooltipDiv"], descendants: true, static: true }, { propertyName: "messageCont", first: true, predicate: ["messageCont"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n\t#tooltip\r\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\r\n\t[ngClass]=\"tooltipClass\"\r\n\t(animationend)=\"_handleAnimationEnd($event)\"\r\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\r\n>\r\n\t<div #tooltipDiv>\r\n\t\t<ng-container #messageCont></ng-container>\r\n\t</div>\r\n</div>\r\n", styles: [".bui-tooltip.mat-mdc-tooltip{--mat-tooltip-supporting-text-size: inherit;padding:8px;border-radius:4px;background-color:var(--mat-tooltip-container-color, #fff);color:var(--mat-tooltip-supporting-text-color, #000)}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-400{max-width:400px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-500{max-width:500px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-600{max-width:600px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-700{max-width:700px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-800{max-width:800px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-900{max-width:900px!important}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: OverlayModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
44
42
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
46
44
|
type: Component,
|
|
47
|
-
args: [{ selector: 'bui-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
args: [{ selector: 'bui-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
48
46
|
class: 'bui-tooltip-component bui-host',
|
|
49
47
|
// Forces the element to have a layout in IE and Edge. This fixes issues where the element
|
|
50
48
|
// won't be rendered if the animations are disabled or there is no web animations polyfill.
|
|
51
49
|
'[style.zoom]': 'isVisible() ? 1 : null',
|
|
52
50
|
'(mouseleave)': '_handleMouseLeave($event)',
|
|
53
51
|
'aria-hidden': 'true'
|
|
54
|
-
},
|
|
52
|
+
}, imports: [A11yModule, CommonModule, OverlayModule], template: "<div\r\n\t#tooltip\r\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\r\n\t[ngClass]=\"tooltipClass\"\r\n\t(animationend)=\"_handleAnimationEnd($event)\"\r\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\r\n>\r\n\t<div #tooltipDiv>\r\n\t\t<ng-container #messageCont></ng-container>\r\n\t</div>\r\n</div>\r\n", styles: [".bui-tooltip.mat-mdc-tooltip{--mat-tooltip-supporting-text-size: inherit;padding:8px;border-radius:4px;background-color:var(--mat-tooltip-container-color, #fff);color:var(--mat-tooltip-supporting-text-color, #000)}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-400{max-width:400px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-500{max-width:500px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-600{max-width:600px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-700{max-width:700px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-800{max-width:800px!important}.bui-tooltip.mat-mdc-tooltip.bui-tooltip-900{max-width:900px!important}\n"] }]
|
|
55
53
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
56
54
|
type: Inject,
|
|
57
55
|
args: [BUI_TOOLTIP_TEMPLATE_REF]
|
|
@@ -163,15 +161,15 @@ class TooltipDirective extends MatTooltip {
|
|
|
163
161
|
ngOnDestroy() {
|
|
164
162
|
this._contentSub.unsubscribe();
|
|
165
163
|
}
|
|
166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
167
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
164
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: TooltipDirective, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i1$1.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i2.Platform }, { token: i3.AriaDescriber }, { token: i3.FocusMonitor }, { token: MAT_TOOLTIP_SCROLL_STRATEGY }, { token: i4.Directionality, optional: true }, { token: MAT_TOOLTIP_DEFAULT_OPTIONS, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
165
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: TooltipDirective, isStandalone: true, selector: "[buiTooltip]", inputs: { buiTooltipPosition: "buiTooltipPosition", buiTooltipDisabled: "buiTooltipDisabled", buiTooltip: "buiTooltip", buiTooltipClass: "buiTooltipClass" }, host: { listeners: { "click": "clicked()" }, classAttribute: "mat-tooltip-trigger bui-tooltip-trigger" }, providers: [
|
|
168
166
|
{
|
|
169
167
|
provide: BUI_TOOLTIP_TEMPLATE_REF,
|
|
170
168
|
useExisting: forwardRef(() => TooltipDirective)
|
|
171
169
|
}
|
|
172
170
|
], exportAs: ["buiTooltip"], usesInheritance: true, ngImport: i0 }); }
|
|
173
171
|
}
|
|
174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
175
173
|
type: Directive,
|
|
176
174
|
args: [{
|
|
177
175
|
selector: '[buiTooltip]',
|
|
@@ -184,8 +182,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
184
182
|
provide: BUI_TOOLTIP_TEMPLATE_REF,
|
|
185
183
|
useExisting: forwardRef(() => TooltipDirective)
|
|
186
184
|
}
|
|
187
|
-
]
|
|
188
|
-
standalone: false
|
|
185
|
+
]
|
|
189
186
|
}]
|
|
190
187
|
}], ctorParameters: () => [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i1$1.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i2.Platform }, { type: i3.AriaDescriber }, { type: i3.FocusMonitor }, { type: undefined, decorators: [{
|
|
191
188
|
type: Inject,
|
|
@@ -213,24 +210,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
213
210
|
args: ['click']
|
|
214
211
|
}] } });
|
|
215
212
|
|
|
216
|
-
class TooltipModule {
|
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
218
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective, TooltipComponent], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule], exports: [TooltipDirective, MatCommonModule, CdkScrollableModule] }); }
|
|
219
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TooltipModule, providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule, MatCommonModule, CdkScrollableModule] }); }
|
|
220
|
-
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TooltipModule, decorators: [{
|
|
222
|
-
type: NgModule,
|
|
223
|
-
args: [{
|
|
224
|
-
imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],
|
|
225
|
-
exports: [TooltipDirective, MatCommonModule, CdkScrollableModule],
|
|
226
|
-
declarations: [TooltipDirective, TooltipComponent],
|
|
227
|
-
providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]
|
|
228
|
-
}]
|
|
229
|
-
}] });
|
|
230
|
-
|
|
231
213
|
/**
|
|
232
214
|
* Generated bundle index. Do not edit.
|
|
233
215
|
*/
|
|
234
216
|
|
|
235
|
-
export { BUI_TOOLTIP_TEMPLATE_REF, TooltipDirective
|
|
217
|
+
export { BUI_TOOLTIP_TEMPLATE_REF, TooltipDirective };
|
|
236
218
|
//# sourceMappingURL=bravura-ui-tooltip.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bravura-ui-tooltip.mjs","sources":["../../../projects/ui/tooltip/tooltip.component.ts","../../../projects/ui/tooltip/tooltip.component.html","../../../projects/ui/tooltip/tooltip.directive.ts","../../../projects/ui/tooltip/tooltip.module.ts","../../../projects/ui/tooltip/bravura-ui-tooltip.ts"],"sourcesContent":["import {\r\n\tANIMATION_MODULE_TYPE,\r\n\tChangeDetectionStrategy,\r\n\tChangeDetectorRef,\r\n\tComponent,\r\n\tElementRef,\r\n\tInject,\r\n\tInjectionToken,\r\n\tOptional,\r\n\tTemplateRef,\r\n\tViewChild,\r\n\tViewContainerRef,\r\n\tViewEncapsulation\r\n} from '@angular/core';\r\nimport { matTooltipAnimations, TooltipComponent as MatTooltipComponent } from '@angular/material/tooltip';\r\nimport { getTextWidth } from '@bravura/ui/common';\r\n\r\n/**\r\n * @ignore\r\n */\r\ninterface TooltipTemplateContainer {\r\n\ttemplate?: TemplateRef<any>;\r\n\tmessage?: string;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nexport const BUI_TOOLTIP_TEMPLATE_REF = new InjectionToken<TooltipTemplateContainer>(\r\n\t'@bravura/ui/tooltip/templateContainer'\r\n);\r\n\r\n@Component({\r\n\tselector: 'bui-tooltip-component',\r\n\ttemplateUrl: './tooltip.component.html',\r\n\tstyleUrls: ['./tooltip.component.scss'],\r\n\tencapsulation: ViewEncapsulation.None,\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n\tanimations: [matTooltipAnimations.tooltipState],\r\n\thost: {\r\n\t\tclass: 'bui-tooltip-component bui-host',\r\n\t\t// Forces the element to have a layout in IE and Edge. This fixes issues where the element\r\n\t\t// won't be rendered if the animations are disabled or there is no web animations polyfill.\r\n\t\t'[style.zoom]': 'isVisible() ? 1 : null',\r\n\t\t'(mouseleave)': '_handleMouseLeave($event)',\r\n\t\t'aria-hidden': 'true'\r\n\t},\r\n\tstandalone: false\r\n})\r\nexport class TooltipComponent extends MatTooltipComponent {\r\n\tprivate _messageCopy = '';\r\n\r\n\t@ViewChild('tooltip', { static: true })\r\n\t_tooltip!: ElementRef<HTMLElement>;\r\n\r\n\t@ViewChild('tooltipDiv', { static: true })\r\n\tprivate tooltipDiv!: ElementRef<HTMLDivElement>;\r\n\r\n\t@ViewChild('messageCont', { static: true, read: ViewContainerRef })\r\n\tprivate messageCont!: ViewContainerRef;\r\n\r\n\tconstructor(\r\n\t\tchangeDetectorRef: ChangeDetectorRef,\r\n\t\telementRef: ElementRef<HTMLElement>,\r\n\t\t@Inject(BUI_TOOLTIP_TEMPLATE_REF) public _tooltipInst: TooltipTemplateContainer,\r\n\t\t@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string\r\n\t) {\r\n\t\tsuper(changeDetectorRef, elementRef, animationMode);\r\n\t}\r\n\r\n\tshow(delay: number): void {\r\n\t\tif (this._messageCopy !== this.message && !this._tooltipInst.template) {\r\n\t\t\tthis.tooltipDiv.nativeElement.innerHTML = this.message;\r\n\t\t\tthis._messageCopy = this.message;\r\n\t\t\tconst width = Math.max(Math.sqrt(getTextWidth(this.message) * 40), 360);\r\n\t\t\tthis._tooltip.nativeElement.style.maxWidth = `${width}px`;\r\n\t\t} else if (this._tooltipInst.template) {\r\n\t\t\tthis.messageCont.clear();\r\n\t\t\tconst ref = this.messageCont.createEmbeddedView(this._tooltipInst.template);\r\n\t\t\tref.detectChanges();\r\n\t\t\tthis._tooltipInst.message = this.message = this.tooltipDiv.nativeElement.textContent as string;\r\n\t\t}\r\n\t\tsuper.show(delay);\r\n\t}\r\n}\r\n\r\n(TooltipComponent as any).ɵcmp.styles.push(...(MatTooltipComponent as any).ɵcmp.styles);\r\n","<div\r\n\t#tooltip\r\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\r\n\t[ngClass]=\"tooltipClass\"\r\n\t(animationend)=\"_handleAnimationEnd($event)\"\r\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\r\n>\r\n\t<div #tooltipDiv>\r\n\t\t<ng-container #messageCont></ng-container>\r\n\t</div>\r\n</div>\r\n","import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';\r\nimport { Directionality } from '@angular/cdk/bidi';\r\nimport { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';\r\nimport { Platform } from '@angular/cdk/platform';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport {\r\n\tDirective,\r\n\tElementRef,\r\n\tHostListener,\r\n\tInject,\r\n\tInput,\r\n\tNgZone,\r\n\tOptional,\r\n\tTemplateRef,\r\n\tViewContainerRef,\r\n\tforwardRef\r\n} from '@angular/core';\r\nimport {\r\n\tMAT_TOOLTIP_DEFAULT_OPTIONS,\r\n\tMAT_TOOLTIP_SCROLL_STRATEGY,\r\n\tMatTooltip,\r\n\tMatTooltipDefaultOptions,\r\n\tTooltipPosition\r\n} from '@angular/material/tooltip';\r\nimport { Observable, Subject, Subscription } from 'rxjs';\r\nimport { BUI_TOOLTIP_TEMPLATE_REF, TooltipComponent } from './tooltip.component';\r\n\r\n/**\r\n * This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying\r\n * HTML content in the overlay area.\r\n *\r\n * All the other features are identical as those in Angular Material tooltip.\r\n */\r\n@Directive({\r\n\tselector: '[buiTooltip]',\r\n\texportAs: 'buiTooltip',\r\n\thost: {\r\n\t\tclass: 'mat-tooltip-trigger bui-tooltip-trigger'\r\n\t},\r\n\tproviders: [\r\n\t\t{\r\n\t\t\tprovide: BUI_TOOLTIP_TEMPLATE_REF,\r\n\t\t\tuseExisting: forwardRef(() => TooltipDirective)\r\n\t\t}\r\n\t],\r\n\tstandalone: false\r\n})\r\nexport class TooltipDirective extends MatTooltip {\r\n\tprivate _templateRef?: TemplateRef<any>;\r\n\tprivate _contentSub: Subscription = new Subject<void>().subscribe();\r\n\tprivate _contentObs?: Observable<string>;\r\n\r\n\tconstructor(\r\n\t\toverlay: Overlay,\r\n\t\telementRef: ElementRef<HTMLElement>,\r\n\t\tscrollDispatcher: ScrollDispatcher,\r\n\t\tviewContainerRef: ViewContainerRef,\r\n\t\tngZone: NgZone,\r\n\t\tplatform: Platform,\r\n\t\tariaDescriber: AriaDescriber,\r\n\t\tfocusMonitor: FocusMonitor,\r\n\t\t@Inject(MAT_TOOLTIP_SCROLL_STRATEGY) scrollStrategy: any,\r\n\t\t@Optional() dir: Directionality,\r\n\t\t@Optional() @Inject(MAT_TOOLTIP_DEFAULT_OPTIONS) defaultOptions: MatTooltipDefaultOptions,\r\n\t\t@Inject(DOCUMENT) _document: any\r\n\t) {\r\n\t\tsuper(\r\n\t\t\toverlay,\r\n\t\t\telementRef,\r\n\t\t\tscrollDispatcher,\r\n\t\t\tviewContainerRef,\r\n\t\t\tngZone,\r\n\t\t\tplatform,\r\n\t\t\tariaDescriber,\r\n\t\t\tfocusMonitor,\r\n\t\t\tscrollStrategy,\r\n\t\t\tdir,\r\n\t\t\tdefaultOptions,\r\n\t\t\t_document\r\n\t\t);\r\n\t\tconst _self = this as any;\r\n\t\t_self._tooltipComponent = TooltipComponent;\r\n\t\tthis.touchGestures = 'off';\r\n\t\tconst element = elementRef.nativeElement;\r\n\t\telement.setAttribute('aria-hidden', 'false');\r\n\t\tif (element.tabIndex === -1) {\r\n\t\t\telement.tabIndex = 0;\r\n\t\t\telement.setAttribute('aria-roledescription', 'tooltip');\r\n\t\t}\r\n\t}\r\n\r\n\t/** Allows the user to define the position of the tooltip relative to the parent element */\r\n\t@Input()\r\n\tget buiTooltipPosition(): TooltipPosition {\r\n\t\treturn this.position;\r\n\t}\r\n\tset buiTooltipPosition(value: TooltipPosition) {\r\n\t\tthis.position = value;\r\n\t}\r\n\r\n\t/** Disables the display of the tooltip. */\r\n\t@Input()\r\n\tget buiTooltipDisabled(): boolean {\r\n\t\treturn this.disabled;\r\n\t}\r\n\tset buiTooltipDisabled(value) {\r\n\t\tthis.disabled = value;\r\n\t}\r\n\r\n\t/** The message to be displayed in the tooltip. */\r\n\t@Input()\r\n\tget buiTooltip(): string | TemplateRef<any> | Observable<string> {\r\n\t\treturn this._templateRef || this.message;\r\n\t}\r\n\tset buiTooltip(value) {\r\n\t\tthis._contentSub.unsubscribe();\r\n\t\tthis._contentObs = undefined;\r\n\t\tif (typeof value === 'string') {\r\n\t\t\tthis.message = value;\r\n\t\t} else if (value instanceof TemplateRef) {\r\n\t\t\tthis._templateRef = value;\r\n\t\t\tif (value) {\r\n\t\t\t\tthis.message = '[bui-tooltip-template]';\r\n\t\t\t} else {\r\n\t\t\t\tthis._templateRef = undefined;\r\n\t\t\t\tthis.message = '';\r\n\t\t\t}\r\n\t\t} else if (value instanceof Observable) {\r\n\t\t\tthis.message = '...';\r\n\t\t\tthis._contentObs = value;\r\n\t\t}\r\n\t}\r\n\r\n\t/** @ignore */\r\n\tget template(): TemplateRef<any> | undefined {\r\n\t\treturn this._templateRef;\r\n\t}\r\n\r\n\t/** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */\r\n\t@Input()\r\n\tget buiTooltipClass() {\r\n\t\treturn this.tooltipClass;\r\n\t}\r\n\tset buiTooltipClass(value: string | string[] | Set<string> | { [key: string]: any }) {\r\n\t\tthis.tooltipClass = value;\r\n\t}\r\n\r\n\t/** @ignore */\r\n\t@HostListener('click')\r\n\tclicked() {\r\n\t\tthis.toggle();\r\n\t}\r\n\r\n\t/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\r\n\tshow(\r\n\t\tdelay: number = this.showDelay,\r\n\t\torigin?:\r\n\t\t\t| {\r\n\t\t\t\t\tx: number;\r\n\t\t\t\t\ty: number;\r\n\t\t\t }\r\n\t\t\t| undefined\r\n\t): void {\r\n\t\tif (this._contentObs) {\r\n\t\t\tthis._contentSub.unsubscribe();\r\n\t\t\tthis._contentSub = this._contentObs.subscribe(c => {\r\n\t\t\t\tthis.message = c;\r\n\t\t\t\tthis._contentSub.unsubscribe();\r\n\t\t\t\tsuper.show(delay, origin);\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsuper.show(delay, origin);\r\n\t\t}\r\n\t}\r\n\r\n\tngOnDestroy() {\r\n\t\tthis._contentSub.unsubscribe();\r\n\t}\r\n}\r\n","import { A11yModule } from '@angular/cdk/a11y';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { MatCommonModule } from '@angular/material/core';\r\nimport { MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER } from '@angular/material/tooltip';\r\nimport { TooltipComponent } from './tooltip.component';\r\nimport { TooltipDirective } from './tooltip.directive';\r\n\r\n@NgModule({\r\n\timports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],\r\n\texports: [TooltipDirective, MatCommonModule, CdkScrollableModule],\r\n\tdeclarations: [TooltipDirective, TooltipComponent],\r\n\tproviders: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]\r\n})\r\nexport class TooltipModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["MatTooltipComponent","i1"],"mappings":";;;;;;;;;;;;;;;;AAyBA;;AAEG;MACU,wBAAwB,GAAG,IAAI,cAAc,CACzD,uCAAuC;AAoBlC,MAAO,gBAAiB,SAAQA,kBAAmB,CAAA;AAYxD,IAAA,WAAA,CACC,iBAAoC,EACpC,UAAmC,EACM,YAAsC,EACpC,aAAsB,EAAA;AAEjE,QAAA,KAAK,CAAC,iBAAiB,EAAE,UAAU,EAAE,aAAa,CAAC;QAHV,IAAY,CAAA,YAAA,GAAZ,YAAY;QAd9C,IAAY,CAAA,YAAA,GAAG,EAAE;;AAoBzB,IAAA,IAAI,CAAC,KAAa,EAAA;AACjB,QAAA,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE;YACtE,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO;AACtD,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO;YAChC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC;AACvE,YAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI;;AACnD,aAAA,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE;AACtC,YAAA,IAAI,CAAC,WAAW,CAAC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ui/tooltip/tooltip.component.ts","../../../projects/ui/tooltip/tooltip.component.html","../../../projects/ui/tooltip/tooltip.directive.ts","../../../projects/ui/tooltip/bravura-ui-tooltip.ts"],"sourcesContent":["import { A11yModule } from '@angular/cdk/a11y';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport {\n\tANIMATION_MODULE_TYPE,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tInject,\n\tInjectionToken,\n\tOptional,\n\tTemplateRef,\n\tViewChild,\n\tViewContainerRef,\n\tViewEncapsulation\n} from '@angular/core';\nimport { TooltipComponent as MatTooltipComponent } from '@angular/material/tooltip';\nimport { getTextWidth } from '@bravura/ui/common';\n\n/**\n * @ignore\n */\ninterface TooltipTemplateContainer {\n\ttemplate?: TemplateRef<any>;\n\tmessage?: string;\n}\n\n/**\n * @ignore\n */\nexport const BUI_TOOLTIP_TEMPLATE_REF = new InjectionToken<TooltipTemplateContainer>(\n\t'@bravura/ui/tooltip/templateContainer'\n);\n\n@Component({\n\tselector: 'bui-tooltip-component',\n\ttemplateUrl: './tooltip.component.html',\n\tstyleUrls: ['./tooltip.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'bui-tooltip-component bui-host',\n\t\t// Forces the element to have a layout in IE and Edge. This fixes issues where the element\n\t\t// won't be rendered if the animations are disabled or there is no web animations polyfill.\n\t\t'[style.zoom]': 'isVisible() ? 1 : null',\n\t\t'(mouseleave)': '_handleMouseLeave($event)',\n\t\t'aria-hidden': 'true'\n\t},\n\timports: [A11yModule, CommonModule, OverlayModule]\n})\nexport class TooltipComponent extends MatTooltipComponent {\n\tprivate _messageCopy = '';\n\n\t@ViewChild('tooltip', { static: true })\n\t_tooltip!: ElementRef<HTMLElement>;\n\n\t@ViewChild('tooltipDiv', { static: true })\n\tprivate tooltipDiv!: ElementRef<HTMLDivElement>;\n\n\t@ViewChild('messageCont', { static: true, read: ViewContainerRef })\n\tprivate messageCont!: ViewContainerRef;\n\n\tconstructor(\n\t\tchangeDetectorRef: ChangeDetectorRef,\n\t\telementRef: ElementRef<HTMLElement>,\n\t\t@Inject(BUI_TOOLTIP_TEMPLATE_REF) public _tooltipInst: TooltipTemplateContainer,\n\t\t@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string\n\t) {\n\t\tsuper(changeDetectorRef, elementRef, animationMode);\n\t}\n\n\tshow(delay: number): void {\n\t\tif (this._messageCopy !== this.message && !this._tooltipInst.template) {\n\t\t\tthis.tooltipDiv.nativeElement.innerHTML = this.message;\n\t\t\tthis._messageCopy = this.message;\n\t\t\tconst width = Math.max(Math.sqrt(getTextWidth(this.message) * 40), 360);\n\t\t\tthis._tooltip.nativeElement.style.maxWidth = `${width}px`;\n\t\t} else if (this._tooltipInst.template) {\n\t\t\tthis.messageCont.clear();\n\t\t\tconst ref = this.messageCont.createEmbeddedView(this._tooltipInst.template);\n\t\t\tref.detectChanges();\n\t\t\tthis._tooltipInst.message = this.message = this.tooltipDiv.nativeElement.textContent as string;\n\t\t}\n\t\tsuper.show(delay);\n\t}\n}\n\n(TooltipComponent as any).ɵcmp.styles.push(...(MatTooltipComponent as any).ɵcmp.styles);\n","<div\r\n\t#tooltip\r\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\r\n\t[ngClass]=\"tooltipClass\"\r\n\t(animationend)=\"_handleAnimationEnd($event)\"\r\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\r\n>\r\n\t<div #tooltipDiv>\r\n\t\t<ng-container #messageCont></ng-container>\r\n\t</div>\r\n</div>\r\n","import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';\nimport { Platform } from '@angular/cdk/platform';\n\nimport {\n\tDOCUMENT,\n\tDirective,\n\tElementRef,\n\tHostListener,\n\tInject,\n\tInput,\n\tNgZone,\n\tOptional,\n\tTemplateRef,\n\tViewContainerRef,\n\tforwardRef\n} from '@angular/core';\nimport {\n\tMAT_TOOLTIP_DEFAULT_OPTIONS,\n\tMAT_TOOLTIP_SCROLL_STRATEGY,\n\tMatTooltip,\n\tMatTooltipDefaultOptions,\n\tTooltipPosition\n} from '@angular/material/tooltip';\nimport { Observable, Subject, Subscription } from 'rxjs';\nimport { BUI_TOOLTIP_TEMPLATE_REF, TooltipComponent } from './tooltip.component';\n\n/**\n * This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying\n * HTML content in the overlay area.\n *\n * All the other features are identical as those in Angular Material tooltip.\n */\n@Directive({\n\tselector: '[buiTooltip]',\n\texportAs: 'buiTooltip',\n\thost: {\n\t\tclass: 'mat-tooltip-trigger bui-tooltip-trigger'\n\t},\n\tproviders: [\n\t\t{\n\t\t\tprovide: BUI_TOOLTIP_TEMPLATE_REF,\n\t\t\tuseExisting: forwardRef(() => TooltipDirective)\n\t\t}\n\t]\n})\nexport class TooltipDirective extends MatTooltip {\n\tprivate _templateRef?: TemplateRef<any>;\n\tprivate _contentSub: Subscription = new Subject<void>().subscribe();\n\tprivate _contentObs?: Observable<string>;\n\n\tconstructor(\n\t\toverlay: Overlay,\n\t\telementRef: ElementRef<HTMLElement>,\n\t\tscrollDispatcher: ScrollDispatcher,\n\t\tviewContainerRef: ViewContainerRef,\n\t\tngZone: NgZone,\n\t\tplatform: Platform,\n\t\tariaDescriber: AriaDescriber,\n\t\tfocusMonitor: FocusMonitor,\n\t\t@Inject(MAT_TOOLTIP_SCROLL_STRATEGY) scrollStrategy: any,\n\t\t@Optional() dir: Directionality,\n\t\t@Optional() @Inject(MAT_TOOLTIP_DEFAULT_OPTIONS) defaultOptions: MatTooltipDefaultOptions,\n\t\t@Inject(DOCUMENT) _document: any\n\t) {\n\t\tsuper(\n\t\t\toverlay,\n\t\t\telementRef,\n\t\t\tscrollDispatcher,\n\t\t\tviewContainerRef,\n\t\t\tngZone,\n\t\t\tplatform,\n\t\t\tariaDescriber,\n\t\t\tfocusMonitor,\n\t\t\tscrollStrategy,\n\t\t\tdir,\n\t\t\tdefaultOptions,\n\t\t\t_document\n\t\t);\n\t\tconst _self = this as any;\n\t\t_self._tooltipComponent = TooltipComponent;\n\t\tthis.touchGestures = 'off';\n\t\tconst element = elementRef.nativeElement;\n\t\telement.setAttribute('aria-hidden', 'false');\n\t\tif (element.tabIndex === -1) {\n\t\t\telement.tabIndex = 0;\n\t\t\telement.setAttribute('aria-roledescription', 'tooltip');\n\t\t}\n\t}\n\n\t/** Allows the user to define the position of the tooltip relative to the parent element */\n\t@Input()\n\tget buiTooltipPosition(): TooltipPosition {\n\t\treturn this.position;\n\t}\n\tset buiTooltipPosition(value: TooltipPosition) {\n\t\tthis.position = value;\n\t}\n\n\t/** Disables the display of the tooltip. */\n\t@Input()\n\tget buiTooltipDisabled(): boolean {\n\t\treturn this.disabled;\n\t}\n\tset buiTooltipDisabled(value) {\n\t\tthis.disabled = value;\n\t}\n\n\t/** The message to be displayed in the tooltip. */\n\t@Input()\n\tget buiTooltip(): string | TemplateRef<any> | Observable<string> {\n\t\treturn this._templateRef || this.message;\n\t}\n\tset buiTooltip(value) {\n\t\tthis._contentSub.unsubscribe();\n\t\tthis._contentObs = undefined;\n\t\tif (typeof value === 'string') {\n\t\t\tthis.message = value;\n\t\t} else if (value instanceof TemplateRef) {\n\t\t\tthis._templateRef = value;\n\t\t\tif (value) {\n\t\t\t\tthis.message = '[bui-tooltip-template]';\n\t\t\t} else {\n\t\t\t\tthis._templateRef = undefined;\n\t\t\t\tthis.message = '';\n\t\t\t}\n\t\t} else if (value instanceof Observable) {\n\t\t\tthis.message = '...';\n\t\t\tthis._contentObs = value;\n\t\t}\n\t}\n\n\t/** @ignore */\n\tget template(): TemplateRef<any> | undefined {\n\t\treturn this._templateRef;\n\t}\n\n\t/** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */\n\t@Input()\n\tget buiTooltipClass() {\n\t\treturn this.tooltipClass;\n\t}\n\tset buiTooltipClass(value: string | string[] | Set<string> | { [key: string]: any }) {\n\t\tthis.tooltipClass = value;\n\t}\n\n\t/** @ignore */\n\t@HostListener('click')\n\tclicked() {\n\t\tthis.toggle();\n\t}\n\n\t/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\n\tshow(\n\t\tdelay: number = this.showDelay,\n\t\torigin?:\n\t\t\t| {\n\t\t\t\t\tx: number;\n\t\t\t\t\ty: number;\n\t\t\t }\n\t\t\t| undefined\n\t): void {\n\t\tif (this._contentObs) {\n\t\t\tthis._contentSub.unsubscribe();\n\t\t\tthis._contentSub = this._contentObs.subscribe(c => {\n\t\t\t\tthis.message = c;\n\t\t\t\tthis._contentSub.unsubscribe();\n\t\t\t\tsuper.show(delay, origin);\n\t\t\t});\n\t\t} else {\n\t\t\tsuper.show(delay, origin);\n\t\t}\n\t}\n\n\tngOnDestroy() {\n\t\tthis._contentSub.unsubscribe();\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["MatTooltipComponent","i1"],"mappings":";;;;;;;;;;;;;;AA4BA;;AAEG;MACU,wBAAwB,GAAG,IAAI,cAAc,CACzD,uCAAuC;AAmBlC,MAAO,gBAAiB,SAAQA,kBAAmB,CAAA;AAYxD,IAAA,WAAA,CACC,iBAAoC,EACpC,UAAmC,EACM,YAAsC,EACpC,aAAsB,EAAA;AAEjE,QAAA,KAAK,CAAC,iBAAiB,EAAE,UAAU,EAAE,aAAa,CAAC;QAHV,IAAY,CAAA,YAAA,GAAZ,YAAY;QAd9C,IAAY,CAAA,YAAA,GAAG,EAAE;;AAoBzB,IAAA,IAAI,CAAC,KAAa,EAAA;AACjB,QAAA,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE;YACtE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SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,IAAI,EAAE;AACL,wBAAA,KAAK,EAAE;AACP,qBAAA;AACD,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,wBAAwB;AACjC,4BAAA,WAAW,EAAE,UAAU,CAAC,sBAAsB;AAC9C;AACD;AACD,iBAAA;;0BAeE,MAAM;2BAAC,2BAA2B;;0BAClC;;0BACA;;0BAAY,MAAM;2BAAC,2BAA2B;;0BAC9C,MAAM;2BAAC,QAAQ;;sBA4BhB;;sBASA;;sBASA;;sBA6BA;;sBASA,YAAY;uBAAC,OAAO;;;ACpJtB;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bravura/ui",
|
|
3
3
|
"description": "Bravura UI Components for Angular applications",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular",
|
|
7
7
|
"Angular Material",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"sass": "./_index.scss",
|
|
25
|
-
"types": "./
|
|
25
|
+
"types": "./types/bravura-ui.d.ts",
|
|
26
26
|
"default": "./fesm2022/bravura-ui.mjs"
|
|
27
27
|
},
|
|
28
28
|
"./theme": {
|
|
@@ -32,80 +32,80 @@
|
|
|
32
32
|
"default": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"./alert": {
|
|
35
|
-
"types": "./alert
|
|
35
|
+
"types": "./types/bravura-ui-alert.d.ts",
|
|
36
36
|
"default": "./fesm2022/bravura-ui-alert.mjs"
|
|
37
37
|
},
|
|
38
|
+
"./alert/testing": {
|
|
39
|
+
"types": "./types/bravura-ui-alert-testing.d.ts",
|
|
40
|
+
"default": "./fesm2022/bravura-ui-alert-testing.mjs"
|
|
41
|
+
},
|
|
38
42
|
"./behavior": {
|
|
39
|
-
"types": "./behavior
|
|
43
|
+
"types": "./types/bravura-ui-behavior.d.ts",
|
|
40
44
|
"default": "./fesm2022/bravura-ui-behavior.mjs"
|
|
41
45
|
},
|
|
46
|
+
"./clip-note": {
|
|
47
|
+
"types": "./types/bravura-ui-clip-note.d.ts",
|
|
48
|
+
"default": "./fesm2022/bravura-ui-clip-note.mjs"
|
|
49
|
+
},
|
|
42
50
|
"./common": {
|
|
43
|
-
"types": "./common
|
|
51
|
+
"types": "./types/bravura-ui-common.d.ts",
|
|
44
52
|
"default": "./fesm2022/bravura-ui-common.mjs"
|
|
45
53
|
},
|
|
46
54
|
"./currency-input": {
|
|
47
|
-
"types": "./currency-input
|
|
55
|
+
"types": "./types/bravura-ui-currency-input.d.ts",
|
|
48
56
|
"default": "./fesm2022/bravura-ui-currency-input.mjs"
|
|
49
57
|
},
|
|
50
|
-
"./
|
|
51
|
-
"types": "./
|
|
52
|
-
"default": "./fesm2022/bravura-ui-
|
|
58
|
+
"./decimal-input": {
|
|
59
|
+
"types": "./types/bravura-ui-decimal-input.d.ts",
|
|
60
|
+
"default": "./fesm2022/bravura-ui-decimal-input.mjs"
|
|
53
61
|
},
|
|
54
62
|
"./discrete-input": {
|
|
55
|
-
"types": "./discrete-input
|
|
63
|
+
"types": "./types/bravura-ui-discrete-input.d.ts",
|
|
56
64
|
"default": "./fesm2022/bravura-ui-discrete-input.mjs"
|
|
57
65
|
},
|
|
58
|
-
"./form-field": {
|
|
59
|
-
"types": "./form-field/index.d.ts",
|
|
60
|
-
"default": "./fesm2022/bravura-ui-form-field.mjs"
|
|
61
|
-
},
|
|
62
|
-
"./decimal-input": {
|
|
63
|
-
"types": "./decimal-input/index.d.ts",
|
|
64
|
-
"default": "./fesm2022/bravura-ui-decimal-input.mjs"
|
|
65
|
-
},
|
|
66
66
|
"./file-upload": {
|
|
67
|
-
"types": "./file-upload
|
|
67
|
+
"types": "./types/bravura-ui-file-upload.d.ts",
|
|
68
68
|
"default": "./fesm2022/bravura-ui-file-upload.mjs"
|
|
69
69
|
},
|
|
70
|
+
"./form-field": {
|
|
71
|
+
"types": "./types/bravura-ui-form-field.d.ts",
|
|
72
|
+
"default": "./fesm2022/bravura-ui-form-field.mjs"
|
|
73
|
+
},
|
|
70
74
|
"./icon-font": {
|
|
71
|
-
"types": "./icon-font
|
|
75
|
+
"types": "./types/bravura-ui-icon-font.d.ts",
|
|
72
76
|
"default": "./fesm2022/bravura-ui-icon-font.mjs"
|
|
73
77
|
},
|
|
74
|
-
"./phone-number": {
|
|
75
|
-
"types": "./phone-number/index.d.ts",
|
|
76
|
-
"default": "./fesm2022/bravura-ui-phone-number.mjs"
|
|
77
|
-
},
|
|
78
78
|
"./panel": {
|
|
79
|
-
"types": "./panel
|
|
79
|
+
"types": "./types/bravura-ui-panel.d.ts",
|
|
80
80
|
"default": "./fesm2022/bravura-ui-panel.mjs"
|
|
81
81
|
},
|
|
82
|
+
"./phone-number": {
|
|
83
|
+
"types": "./types/bravura-ui-phone-number.d.ts",
|
|
84
|
+
"default": "./fesm2022/bravura-ui-phone-number.mjs"
|
|
85
|
+
},
|
|
82
86
|
"./radio-panel": {
|
|
83
|
-
"types": "./radio-panel
|
|
87
|
+
"types": "./types/bravura-ui-radio-panel.d.ts",
|
|
84
88
|
"default": "./fesm2022/bravura-ui-radio-panel.mjs"
|
|
85
89
|
},
|
|
90
|
+
"./radio-panel/testing": {
|
|
91
|
+
"types": "./types/bravura-ui-radio-panel-testing.d.ts",
|
|
92
|
+
"default": "./fesm2022/bravura-ui-radio-panel-testing.mjs"
|
|
93
|
+
},
|
|
86
94
|
"./selection-panel": {
|
|
87
|
-
"types": "./selection-panel
|
|
95
|
+
"types": "./types/bravura-ui-selection-panel.d.ts",
|
|
88
96
|
"default": "./fesm2022/bravura-ui-selection-panel.mjs"
|
|
89
97
|
},
|
|
90
98
|
"./skeletons": {
|
|
91
|
-
"types": "./skeletons
|
|
99
|
+
"types": "./types/bravura-ui-skeletons.d.ts",
|
|
92
100
|
"default": "./fesm2022/bravura-ui-skeletons.mjs"
|
|
93
101
|
},
|
|
94
102
|
"./stepper": {
|
|
95
|
-
"types": "./stepper
|
|
103
|
+
"types": "./types/bravura-ui-stepper.d.ts",
|
|
96
104
|
"default": "./fesm2022/bravura-ui-stepper.mjs"
|
|
97
105
|
},
|
|
98
106
|
"./tooltip": {
|
|
99
|
-
"types": "./tooltip
|
|
107
|
+
"types": "./types/bravura-ui-tooltip.d.ts",
|
|
100
108
|
"default": "./fesm2022/bravura-ui-tooltip.mjs"
|
|
101
|
-
},
|
|
102
|
-
"./alert/testing": {
|
|
103
|
-
"types": "./alert/testing/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/bravura-ui-alert-testing.mjs"
|
|
105
|
-
},
|
|
106
|
-
"./radio-panel/testing": {
|
|
107
|
-
"types": "./radio-panel/testing/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/bravura-ui-radio-panel-testing.mjs"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
@@ -113,6 +113,6 @@
|
|
|
113
113
|
},
|
|
114
114
|
"license": "ISC",
|
|
115
115
|
"module": "fesm2022/bravura-ui.mjs",
|
|
116
|
-
"typings": "
|
|
116
|
+
"typings": "types/bravura-ui.d.ts",
|
|
117
117
|
"sideEffects": false
|
|
118
118
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate, TextOptions } from '@angular/cdk/testing';
|
|
2
|
+
|
|
3
|
+
interface AlertMessageHarnessFilters extends BaseHarnessFilters {
|
|
3
4
|
/** only select the alert with the content matching this regular expression */
|
|
4
5
|
content?: RegExp;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
+
declare class AlertMessageHarness extends ComponentHarness {
|
|
7
8
|
static hostSelector: string;
|
|
8
9
|
private _getBackdrop;
|
|
9
10
|
private _getDeleteButton;
|
|
@@ -14,7 +15,7 @@ export declare class AlertMessageHarness extends ComponentHarness {
|
|
|
14
15
|
getContent(options?: TextOptions): Promise<string>;
|
|
15
16
|
private static filterByContent;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
declare class AlertContainerHarness extends ComponentHarness {
|
|
18
19
|
static hostSelector: string;
|
|
19
20
|
private _items;
|
|
20
21
|
private _floatingFrame;
|
|
@@ -22,3 +23,6 @@ export declare class AlertContainerHarness extends ComponentHarness {
|
|
|
22
23
|
countAlertItems(): Promise<number>;
|
|
23
24
|
isFloated(): Promise<boolean>;
|
|
24
25
|
}
|
|
26
|
+
|
|
27
|
+
export { AlertContainerHarness, AlertMessageHarness };
|
|
28
|
+
export type { AlertMessageHarnessFilters };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
|
2
2
|
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
3
|
-
import
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnInit, OnDestroy, NgZone, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
4
5
|
import { Subject } from 'rxjs';
|
|
5
|
-
import * as
|
|
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
|
+
|
|
6
10
|
/**@internal */
|
|
7
11
|
declare class InternalAlertOject {
|
|
8
12
|
readonly type: 'success' | 'info' | 'warn' | 'error';
|
|
@@ -15,7 +19,7 @@ declare class InternalAlertOject {
|
|
|
15
19
|
* Use this component in a designated area of a page for displaying notification messages
|
|
16
20
|
*
|
|
17
21
|
*/
|
|
18
|
-
|
|
22
|
+
declare class AlertContainerComponent implements OnInit, OnDestroy {
|
|
19
23
|
private zone;
|
|
20
24
|
private cdRef;
|
|
21
25
|
private _elementRef;
|
|
@@ -68,4 +72,57 @@ export declare class AlertContainerComponent implements OnInit, OnDestroy {
|
|
|
68
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertContainerComponent, never>;
|
|
69
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<AlertContainerComponent, "bui-alert-container", never, { "max": { "alias": "max"; "required": false; }; "outsideViewportBehavior": { "alias": "outsideViewportBehavior"; "required": false; }; "floatDuration": { "alias": "floatDuration"; "required": false; }; }, { "init": "init"; }, never, never, false, never>;
|
|
70
74
|
}
|
|
71
|
-
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* An alert style message usually appears in a global notification area.
|
|
78
|
+
*
|
|
79
|
+
* The base color of the message is determined by the `type` of the message and a list of predefined
|
|
80
|
+
* CSS custom properties.
|
|
81
|
+
*
|
|
82
|
+
* ```scss
|
|
83
|
+
* --bui-color-success: #519602;
|
|
84
|
+
* --bui-color-info: #0dcaf0;
|
|
85
|
+
* --bui-color-warning: #ffc107;
|
|
86
|
+
* --bui-color-error: #dc3545;
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
declare class AlertMessageComponent implements OnInit {
|
|
92
|
+
/** @ignore */
|
|
93
|
+
static ngAcceptInputType_dismissible: boolean | string | null | undefined;
|
|
94
|
+
/** @ignore */
|
|
95
|
+
static ngAcceptInputType_blink: boolean | string | null | undefined;
|
|
96
|
+
/** The type of the message, used to derive the icon and base color. */
|
|
97
|
+
type: 'success' | 'info' | 'warn' | 'error';
|
|
98
|
+
/** The message to be displayed, HTML supported. */
|
|
99
|
+
message: string;
|
|
100
|
+
/** Specifies the ARIA live region politeness. */
|
|
101
|
+
politeness: 'off' | 'polite' | 'assertive';
|
|
102
|
+
/** Whether to display the button to fire the `dismissed` event. */
|
|
103
|
+
get dismissible(): any;
|
|
104
|
+
set dismissible(value: any);
|
|
105
|
+
/** To be emitted when the user choose to dismiss the message. The event object is the ID of the element. */
|
|
106
|
+
dismissed: EventEmitter<string>;
|
|
107
|
+
/** To be emitted when the component finishes initialisation. The event object is the ID of the element. */
|
|
108
|
+
initialised: EventEmitter<string>;
|
|
109
|
+
/** @ignore */
|
|
110
|
+
_id: string;
|
|
111
|
+
private _dismissible;
|
|
112
|
+
constructor();
|
|
113
|
+
ngOnInit(): void;
|
|
114
|
+
/** @ignore */
|
|
115
|
+
get iconName(): string;
|
|
116
|
+
/** @ignore */
|
|
117
|
+
_dismiss(): void;
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertMessageComponent, never>;
|
|
119
|
+
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>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class AlertModule {
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
|
|
124
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof AlertMessageComponent, typeof AlertContainerComponent], [typeof i3.CommonModule, typeof i4.IconFontModule, typeof i5.MatButtonModule], [typeof AlertMessageComponent, typeof AlertContainerComponent]>;
|
|
125
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { AlertContainerComponent, AlertMessageComponent, AlertModule };
|