@bravura/ui 2.5.3 → 3.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 +27 -0
- package/README.md +7 -0
- package/alert/alert-container.component.d.ts +1 -1
- package/alert/alert-message.component.d.ts +3 -1
- package/behavior/await.directive.d.ts +1 -1
- package/behavior/sizing-monitor.directive.d.ts +1 -1
- package/behavior/sizing.directive.d.ts +1 -1
- package/clip-note/clip-note.component.d.ts +1 -1
- package/clip-note/clip-note.directive.d.ts +1 -1
- package/currency-input/currency-input.directive.d.ts +1 -1
- package/decimal-input/decimal-input.directive.d.ts +1 -1
- package/discrete-input/discrete-input.component.d.ts +1 -1
- package/esm2020/alert/alert-container.component.mjs +4 -4
- package/esm2020/alert/alert-message.component.mjs +17 -6
- package/esm2020/alert/alert.module.mjs +4 -4
- package/esm2020/behavior/await.directive.mjs +5 -5
- package/esm2020/behavior/behavior.module.mjs +4 -4
- package/esm2020/behavior/sizing-monitor.directive.mjs +3 -3
- package/esm2020/behavior/sizing.directive.mjs +3 -3
- package/esm2020/clip-note/clip-note.component.mjs +5 -5
- package/esm2020/clip-note/clip-note.directive.mjs +3 -3
- package/esm2020/clip-note/clip-note.module.mjs +4 -4
- package/esm2020/common/common.module.mjs +4 -4
- package/esm2020/currency-input/currency-input.directive.mjs +3 -3
- package/esm2020/currency-input/currency-input.module.mjs +4 -4
- package/esm2020/decimal-input/decimal-input.directive.mjs +3 -3
- package/esm2020/decimal-input/decimal-input.module.mjs +4 -4
- package/esm2020/discrete-input/discrete-input.component.mjs +3 -3
- package/esm2020/discrete-input/discrete-input.module.mjs +4 -4
- package/esm2020/file-upload/file-upload.component.mjs +5 -5
- package/esm2020/file-upload/file-upload.module.mjs +4 -4
- package/esm2020/file-upload/file-upload.service.mjs +3 -3
- package/esm2020/form-field/form-field.component.mjs +58 -80
- package/esm2020/form-field/form-field.module.mjs +8 -8
- package/esm2020/form-field/public-api.mjs +2 -2
- package/esm2020/icon-font/icon-font.module.mjs +4 -4
- package/esm2020/icon-font/icon.directive.mjs +3 -3
- package/esm2020/panel/panel-section.component.mjs +3 -3
- package/esm2020/panel/panel.component.mjs +5 -5
- package/esm2020/panel/panel.module.mjs +4 -4
- package/esm2020/phone-number/phone-number.directive.mjs +3 -3
- package/esm2020/phone-number/phone-number.module.mjs +4 -4
- package/esm2020/phone-number/phone-number.pipe.mjs +3 -3
- package/esm2020/phone-number/phone-number.validator.mjs +3 -3
- package/esm2020/radio-panel/radio-panel-item.component.mjs +3 -3
- package/esm2020/radio-panel/radio-panel.component.mjs +3 -3
- package/esm2020/radio-panel/radio-panel.module.mjs +4 -4
- package/esm2020/selection-panel/selection-panel-item.component.mjs +5 -5
- package/esm2020/selection-panel/selection-panel.directive.mjs +3 -3
- package/esm2020/selection-panel/selection-panel.module.mjs +4 -4
- package/esm2020/skeletons/skeleton-loader-presets.directive.mjs +3 -3
- package/esm2020/skeletons/skeleton-loader.component.mjs +3 -3
- package/esm2020/skeletons/skeletons.module.mjs +4 -4
- package/esm2020/stepper/stepper.component.mjs +10 -6
- package/esm2020/stepper/stepper.module.mjs +4 -4
- package/esm2020/tooltip/tooltip.component.mjs +18 -18
- package/esm2020/tooltip/tooltip.directive.mjs +10 -4
- package/esm2020/tooltip/tooltip.module.mjs +4 -4
- package/fesm2015/bravura-ui-alert.mjs +24 -12
- package/fesm2015/bravura-ui-alert.mjs.map +1 -1
- package/fesm2015/bravura-ui-behavior.mjs +15 -14
- package/fesm2015/bravura-ui-behavior.mjs.map +1 -1
- package/fesm2015/bravura-ui-clip-note.mjs +12 -11
- package/fesm2015/bravura-ui-clip-note.mjs.map +1 -1
- package/fesm2015/bravura-ui-common.mjs +5 -4
- package/fesm2015/bravura-ui-currency-input.mjs +8 -7
- package/fesm2015/bravura-ui-decimal-input.mjs +8 -7
- package/fesm2015/bravura-ui-discrete-input.mjs +8 -7
- package/fesm2015/bravura-ui-file-upload.mjs +12 -11
- package/fesm2015/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2015/bravura-ui-form-field.mjs +67 -86
- package/fesm2015/bravura-ui-form-field.mjs.map +1 -1
- package/fesm2015/bravura-ui-icon-font.mjs +8 -7
- package/fesm2015/bravura-ui-panel.mjs +12 -11
- package/fesm2015/bravura-ui-panel.mjs.map +1 -1
- package/fesm2015/bravura-ui-phone-number.mjs +14 -13
- package/fesm2015/bravura-ui-radio-panel.mjs +11 -10
- package/fesm2015/bravura-ui-selection-panel.mjs +12 -11
- package/fesm2015/bravura-ui-selection-panel.mjs.map +1 -1
- package/fesm2015/bravura-ui-skeletons.mjs +11 -10
- package/fesm2015/bravura-ui-stepper.mjs +14 -9
- package/fesm2015/bravura-ui-stepper.mjs.map +1 -1
- package/fesm2015/bravura-ui-tooltip.mjs +33 -26
- package/fesm2015/bravura-ui-tooltip.mjs.map +1 -1
- package/fesm2015/bravura-ui.mjs +1 -0
- package/fesm2020/bravura-ui-alert.mjs +24 -12
- package/fesm2020/bravura-ui-alert.mjs.map +1 -1
- package/fesm2020/bravura-ui-behavior.mjs +15 -14
- package/fesm2020/bravura-ui-behavior.mjs.map +1 -1
- package/fesm2020/bravura-ui-clip-note.mjs +12 -11
- package/fesm2020/bravura-ui-clip-note.mjs.map +1 -1
- package/fesm2020/bravura-ui-common.mjs +5 -4
- package/fesm2020/bravura-ui-currency-input.mjs +8 -7
- package/fesm2020/bravura-ui-decimal-input.mjs +8 -7
- package/fesm2020/bravura-ui-discrete-input.mjs +8 -7
- package/fesm2020/bravura-ui-file-upload.mjs +12 -11
- package/fesm2020/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2020/bravura-ui-form-field.mjs +65 -86
- package/fesm2020/bravura-ui-form-field.mjs.map +1 -1
- package/fesm2020/bravura-ui-icon-font.mjs +8 -7
- package/fesm2020/bravura-ui-panel.mjs +12 -11
- package/fesm2020/bravura-ui-panel.mjs.map +1 -1
- package/fesm2020/bravura-ui-phone-number.mjs +14 -13
- package/fesm2020/bravura-ui-radio-panel.mjs +11 -10
- package/fesm2020/bravura-ui-selection-panel.mjs +12 -11
- package/fesm2020/bravura-ui-selection-panel.mjs.map +1 -1
- package/fesm2020/bravura-ui-skeletons.mjs +11 -10
- package/fesm2020/bravura-ui-stepper.mjs +14 -9
- package/fesm2020/bravura-ui-stepper.mjs.map +1 -1
- package/fesm2020/bravura-ui-tooltip.mjs +33 -26
- package/fesm2020/bravura-ui-tooltip.mjs.map +1 -1
- package/fesm2020/bravura-ui.mjs +1 -0
- package/file-upload/file-upload.component.d.ts +1 -1
- package/form-field/form-field.component.d.ts +23 -16
- package/form-field/form-field.module.d.ts +1 -1
- package/form-field/public-api.d.ts +1 -1
- package/icon-font/icon.directive.d.ts +1 -1
- package/package.json +1 -1
- package/panel/panel-section.component.d.ts +1 -1
- package/panel/panel.component.d.ts +1 -1
- package/phone-number/phone-number.directive.d.ts +1 -1
- package/phone-number/phone-number.validator.d.ts +1 -1
- package/radio-panel/radio-panel-item.component.d.ts +1 -1
- package/radio-panel/radio-panel.component.d.ts +1 -1
- package/selection-panel/selection-panel-item.component.d.ts +1 -1
- package/selection-panel/selection-panel.directive.d.ts +1 -1
- package/skeletons/skeleton-loader-presets.directive.d.ts +1 -1
- package/skeletons/skeleton-loader.component.d.ts +1 -1
- package/stepper/stepper.component.d.ts +3 -1
- package/theme/_bui-card.scss +56 -0
- package/theme/_ui-theme.scss +15 -3
- package/theme/scrollbar.scss +32 -30
- package/tooltip/tooltip.component.d.ts +3 -5
- package/tooltip/tooltip.directive.d.ts +1 -1
|
@@ -3,15 +3,14 @@ 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
5
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
7
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { InjectionToken, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, ViewChild, forwardRef, Directive,
|
|
9
|
+
import { InjectionToken, ANIMATION_MODULE_TYPE, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Optional, ViewChild, forwardRef, Directive, Input, HostListener, NgModule } from '@angular/core';
|
|
10
10
|
import { MatCommonModule } from '@angular/material/core';
|
|
11
11
|
import { TooltipComponent as TooltipComponent$1, matTooltipAnimations, _MatTooltipBase, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER } from '@angular/material/tooltip';
|
|
12
12
|
import { getTextWidth } from '@bravura/ui/common';
|
|
13
|
-
import * as
|
|
14
|
-
import * as i2$1 from '@angular/cdk/platform';
|
|
13
|
+
import * as i2 from '@angular/cdk/platform';
|
|
15
14
|
import * as i4 from '@angular/cdk/bidi';
|
|
16
15
|
|
|
17
16
|
/**
|
|
@@ -19,8 +18,8 @@ import * as i4 from '@angular/cdk/bidi';
|
|
|
19
18
|
*/
|
|
20
19
|
const BUI_TOOLTIP_TEMPLATE_REF = new InjectionToken('@bravura/ui/tooltip/templateContainer');
|
|
21
20
|
class TooltipComponent extends TooltipComponent$1 {
|
|
22
|
-
constructor(changeDetectorRef,
|
|
23
|
-
super(changeDetectorRef,
|
|
21
|
+
constructor(changeDetectorRef, elementRef, _tooltipInst, animationMode) {
|
|
22
|
+
super(changeDetectorRef, elementRef, animationMode);
|
|
24
23
|
this._tooltipInst = _tooltipInst;
|
|
25
24
|
this._messageCopy = '';
|
|
26
25
|
}
|
|
@@ -33,26 +32,27 @@ class TooltipComponent extends TooltipComponent$1 {
|
|
|
33
32
|
}
|
|
34
33
|
super.show(delay);
|
|
35
34
|
}
|
|
36
|
-
get _self() {
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
39
35
|
}
|
|
40
|
-
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", 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 });
|
|
37
|
+
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0", type: TooltipComponent, 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 }], usesInheritance: true, ngImport: i0, template: "<div\n\t#tooltip\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t(animationend)=\"_handleAnimationEnd($event)\"\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n\t<ng-template [ngIf]=\"_tooltipInst.template\">\n\t\t<ng-template [ngTemplateOutlet]=\"_tooltipInst.template\"></ng-template>\n\t</ng-template>\n\t<div #tooltipDiv></div>\n</div>\n", styles: [".bui-tooltip.mat-mdc-tooltip{--mdc-plain-tooltip-supporting-text-size: inherit;padding:8px;border-radius:4px}.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: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [matTooltipAnimations.tooltipState], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
43
39
|
type: Component,
|
|
44
40
|
args: [{ selector: 'bui-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [matTooltipAnimations.tooltipState], host: {
|
|
45
41
|
class: 'bui-tooltip-component bui-host',
|
|
46
42
|
// Forces the element to have a layout in IE and Edge. This fixes issues where the element
|
|
47
43
|
// won't be rendered if the animations are disabled or there is no web animations polyfill.
|
|
48
|
-
'[style.zoom]': '
|
|
49
|
-
'(
|
|
50
|
-
'(body:auxclick)': 'this._handleBodyInteraction()',
|
|
44
|
+
'[style.zoom]': 'isVisible() ? 1 : null',
|
|
45
|
+
'(mouseleave)': '_handleMouseLeave($event)',
|
|
51
46
|
'aria-hidden': 'true'
|
|
52
|
-
}, template: "<div\n\t#tooltip\n\tclass=\"mat-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t
|
|
53
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type:
|
|
47
|
+
}, template: "<div\n\t#tooltip\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t(animationend)=\"_handleAnimationEnd($event)\"\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n\t<ng-template [ngIf]=\"_tooltipInst.template\">\n\t\t<ng-template [ngTemplateOutlet]=\"_tooltipInst.template\"></ng-template>\n\t</ng-template>\n\t<div #tooltipDiv></div>\n</div>\n", styles: [".bui-tooltip.mat-mdc-tooltip{--mdc-plain-tooltip-supporting-text-size: inherit;padding:8px;border-radius:4px}.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"] }]
|
|
48
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
54
49
|
type: Inject,
|
|
55
50
|
args: [BUI_TOOLTIP_TEMPLATE_REF]
|
|
51
|
+
}] }, { type: undefined, decorators: [{
|
|
52
|
+
type: Optional
|
|
53
|
+
}, {
|
|
54
|
+
type: Inject,
|
|
55
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
56
56
|
}] }]; }, propDecorators: { _tooltip: [{
|
|
57
57
|
type: ViewChild,
|
|
58
58
|
args: ['tooltip', { static: true }]
|
|
@@ -60,7 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
60
60
|
type: ViewChild,
|
|
61
61
|
args: ['tooltipDiv', { static: true }]
|
|
62
62
|
}] } });
|
|
63
|
-
TooltipComponent.ɵcmp.styles.push(TooltipComponent$1.ɵcmp.styles);
|
|
63
|
+
TooltipComponent.ɵcmp.styles.push(...TooltipComponent$1.ɵcmp.styles);
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying
|
|
@@ -73,6 +73,12 @@ class TooltipDirective extends _MatTooltipBase {
|
|
|
73
73
|
super(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document);
|
|
74
74
|
this._tooltipComponent = TooltipComponent;
|
|
75
75
|
this.touchGestures = 'off';
|
|
76
|
+
const element = elementRef.nativeElement;
|
|
77
|
+
element.setAttribute('aria-hidden', 'false');
|
|
78
|
+
if (element.tabIndex === -1) {
|
|
79
|
+
element.tabIndex = 0;
|
|
80
|
+
element.setAttribute('aria-roledescription', 'tooltip');
|
|
81
|
+
}
|
|
76
82
|
}
|
|
77
83
|
/** Allows the user to define the position of the tooltip relative to the parent element */
|
|
78
84
|
get buiTooltipPosition() {
|
|
@@ -123,14 +129,14 @@ class TooltipDirective extends _MatTooltipBase {
|
|
|
123
129
|
this.toggle();
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
|
-
TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
132
|
+
TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", 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 });
|
|
133
|
+
TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0", type: TooltipDirective, selector: "[buiTooltip]", inputs: { buiTooltipPosition: "buiTooltipPosition", buiTooltipDisabled: "buiTooltipDisabled", buiTooltip: "buiTooltip", buiTooltipClass: "buiTooltipClass" }, host: { listeners: { "click": "clicked()" }, classAttribute: "mat-tooltip-trigger bui-tooltip-trigger" }, providers: [
|
|
128
134
|
{
|
|
129
135
|
provide: BUI_TOOLTIP_TEMPLATE_REF,
|
|
130
136
|
useExisting: forwardRef(() => TooltipDirective)
|
|
131
137
|
}
|
|
132
138
|
], exportAs: ["buiTooltip"], usesInheritance: true, ngImport: i0 });
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
134
140
|
type: Directive,
|
|
135
141
|
args: [{
|
|
136
142
|
selector: '[buiTooltip]',
|
|
@@ -145,7 +151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
145
151
|
}
|
|
146
152
|
]
|
|
147
153
|
}]
|
|
148
|
-
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i1$1.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i2
|
|
154
|
+
}], ctorParameters: function () { return [{ 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: [{
|
|
149
155
|
type: Inject,
|
|
150
156
|
args: [MAT_TOOLTIP_SCROLL_STRATEGY]
|
|
151
157
|
}] }, { type: i4.Directionality, decorators: [{
|
|
@@ -173,10 +179,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
173
179
|
|
|
174
180
|
class TooltipModule {
|
|
175
181
|
}
|
|
176
|
-
TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
177
|
-
TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
178
|
-
TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
182
|
+
TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
183
|
+
TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective, TooltipComponent], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule], exports: [TooltipDirective, MatCommonModule, CdkScrollableModule] });
|
|
184
|
+
TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TooltipModule, providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule, MatCommonModule, CdkScrollableModule] });
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TooltipModule, decorators: [{
|
|
180
186
|
type: NgModule,
|
|
181
187
|
args: [{
|
|
182
188
|
imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],
|
|
@@ -192,3 +198,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
192
198
|
|
|
193
199
|
export { TooltipDirective, TooltipModule };
|
|
194
200
|
//# sourceMappingURL=bravura-ui-tooltip.mjs.map
|
|
201
|
+
//# 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 { BreakpointObserver } from '@angular/cdk/layout';\nimport {\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tInject,\n\tInjectionToken,\n\tTemplateRef,\n\tViewChild,\n\tViewEncapsulation\n} from '@angular/core';\nimport { matTooltipAnimations, 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}\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\tanimations: [matTooltipAnimations.tooltipState],\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]': '_visibility === \"visible\" ? 1 : null',\n\t\t'(body:click)': 'this._handleBodyInteraction()',\n\t\t'(body:auxclick)': 'this._handleBodyInteraction()',\n\t\t'aria-hidden': 'true'\n\t}\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\tconstructor(\n\t\tchangeDetectorRef: ChangeDetectorRef,\n\t\t_breakpointObserver: BreakpointObserver,\n\t\t@Inject(BUI_TOOLTIP_TEMPLATE_REF) public _tooltipInst: TooltipTemplateContainer\n\t) {\n\t\tsuper(changeDetectorRef, _breakpointObserver);\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}\n\t\tsuper.show(delay);\n\t}\n\n\tget _self(): any {\n\t\treturn this;\n\t}\n}\n\n(TooltipComponent as any).ɵcmp.styles.push((MatTooltipComponent as any).ɵcmp.styles);\n","<div\n\t#tooltip\n\tclass=\"mat-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t[class.mat-tooltip-handset]=\"(_isHandset | async)?.matches\"\n\t[@state]=\"_visibility\"\n\t(@state.start)=\"_self._animationStart && _self._animationStart()\"\n\t(@state.done)=\"_self._animationDone && _self._animationDone($event)\"\n\t(animationend)=\"_self._handleAnimationEnd && _self._handleAnimationEnd($event)\"\n>\n\t<ng-template [ngIf]=\"_tooltipInst.template\">\n\t\t<ng-template [ngTemplateOutlet]=\"_tooltipInst.template\"></ng-template>\n\t</ng-template>\n\t<div #tooltipDiv></div>\n</div>\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';\nimport { DOCUMENT } from '@angular/common';\nimport {\n\tDirective,\n\tElementRef,\n\tforwardRef,\n\tHostListener,\n\tInject,\n\tInput,\n\tNgZone,\n\tOptional,\n\tTemplateRef,\n\tViewContainerRef\n} from '@angular/core';\nimport {\n\tMatTooltipDefaultOptions,\n\tMAT_TOOLTIP_DEFAULT_OPTIONS,\n\tMAT_TOOLTIP_SCROLL_STRATEGY,\n\tTooltipPosition,\n\t_MatTooltipBase\n} from '@angular/material/tooltip';\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 _MatTooltipBase<TooltipComponent> {\n\tprotected readonly _tooltipComponent = TooltipComponent;\n\tprivate _templateRef?: TemplateRef<any>;\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\tthis.touchGestures = 'off';\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> {\n\t\treturn this._templateRef || this.message;\n\t}\n\tset buiTooltip(value) {\n\t\tif (typeof value === 'string') {\n\t\t\tthis.message = value;\n\t\t} else {\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}\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","import { A11yModule } from '@angular/cdk/a11y';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport { MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER } from '@angular/material/tooltip';\nimport { TooltipComponent } from './tooltip.component';\nimport { TooltipDirective } from './tooltip.directive';\n\n@NgModule({\n\timports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],\n\texports: [TooltipDirective, MatCommonModule, CdkScrollableModule],\n\tdeclarations: [TooltipDirective, TooltipComponent],\n\tproviders: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]\n})\nexport class TooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["MatTooltipComponent","i1","i2"],"mappings":";;;;;;;;;;;;;;;;AAsBA;;AAEG;AACI,MAAM,wBAAwB,GAAG,IAAI,cAAc,CACzD,uCAAuC,CACvC,CAAC;AAmBI,MAAO,gBAAiB,SAAQA,kBAAmB,CAAA;AASxD,IAAA,WAAA,CACC,iBAAoC,EACpC,mBAAuC,EACE,YAAsC,EAAA;AAE/E,QAAA,KAAK,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;QAFL,IAAY,CAAA,YAAA,GAAZ,YAAY,CAA0B;QAXxE,IAAY,CAAA,YAAA,GAAG,EAAE,CAAC;KAczB;AAED,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,CAAC;AACvD,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC;YACjC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC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":["../../../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 {\n\tANIMATION_MODULE_TYPE,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tInject,\n\tInjectionToken,\n\tOptional,\n\tTemplateRef,\n\tViewChild,\n\tViewEncapsulation\n} from '@angular/core';\nimport { matTooltipAnimations, 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}\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\tanimations: [matTooltipAnimations.tooltipState],\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})\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\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}\n\t\tsuper.show(delay);\n\t}\n}\n\n(TooltipComponent as any).ɵcmp.styles.push(...(MatTooltipComponent as any).ɵcmp.styles);\n","<div\n\t#tooltip\n\tclass=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip bui-tooltip\"\n\t[ngClass]=\"tooltipClass\"\n\t(animationend)=\"_handleAnimationEnd($event)\"\n\t[class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n\t<ng-template [ngIf]=\"_tooltipInst.template\">\n\t\t<ng-template [ngTemplateOutlet]=\"_tooltipInst.template\"></ng-template>\n\t</ng-template>\n\t<div #tooltipDiv></div>\n</div>\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';\nimport { DOCUMENT } from '@angular/common';\nimport {\n\tDirective,\n\tElementRef,\n\tforwardRef,\n\tHostListener,\n\tInject,\n\tInput,\n\tNgZone,\n\tOptional,\n\tTemplateRef,\n\tViewContainerRef\n} from '@angular/core';\nimport {\n\tMatTooltipDefaultOptions,\n\tMAT_TOOLTIP_DEFAULT_OPTIONS,\n\tMAT_TOOLTIP_SCROLL_STRATEGY,\n\tTooltipPosition,\n\t_MatTooltipBase\n} from '@angular/material/tooltip';\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 _MatTooltipBase<TooltipComponent> {\n\tprotected readonly _tooltipComponent = TooltipComponent;\n\tprivate _templateRef?: TemplateRef<any>;\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\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> {\n\t\treturn this._templateRef || this.message;\n\t}\n\tset buiTooltip(value) {\n\t\tif (typeof value === 'string') {\n\t\t\tthis.message = value;\n\t\t} else {\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}\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","import { A11yModule } from '@angular/cdk/a11y';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport { MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER } from '@angular/material/tooltip';\nimport { TooltipComponent } from './tooltip.component';\nimport { TooltipDirective } from './tooltip.directive';\n\n@NgModule({\n\timports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],\n\texports: [TooltipDirective, MatCommonModule, CdkScrollableModule],\n\tdeclarations: [TooltipDirective, TooltipComponent],\n\tproviders: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]\n})\nexport class TooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["MatTooltipComponent","i1"],"mappings":";;;;;;;;;;;;;;;AAuBA;;AAEG;AACI,MAAM,wBAAwB,GAAG,IAAI,cAAc,CACzD,uCAAuC,CACvC,CAAC;AAkBI,MAAO,gBAAiB,SAAQA,kBAAmB,CAAA;AASxD,IAAA,WAAA,CACC,iBAAoC,EACpC,UAAmC,EACM,YAAsC,EACpC,aAAsB,EAAA;AAEjE,QAAA,KAAK,CAAC,iBAAiB,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;QAHX,IAAY,CAAA,YAAA,GAAZ,YAAY,CAA0B;QAXxE,IAAY,CAAA,YAAA,GAAG,EAAE,CAAC;KAezB;AAED,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,CAAC;AACvD,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC;YACjC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;AACxE,YAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI,CAAC;AAC1D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A;;;ACfD;;AAEG;;;;"}
|
package/fesm2020/bravura-ui.mjs
CHANGED
|
@@ -143,6 +143,6 @@ export declare class FileUploadComponent implements OnInit, OnDestroy, ControlVa
|
|
|
143
143
|
private _deleteItem;
|
|
144
144
|
private _updateValue;
|
|
145
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "bui-file-upload", never, { "uploadActionText": "uploadActionText"; "fileUploadedLabel": "fileUploadedLabel"; "dragHint": "dragHint"; "dropHint": "dropHint"; "limit": "limit"; "fileSize": "fileSize"; "types": "types"; }, {}, never, never, false>;
|
|
146
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "bui-file-upload", never, { "uploadActionText": "uploadActionText"; "fileUploadedLabel": "fileUploadedLabel"; "dragHint": "dragHint"; "dropHint": "dropHint"; "limit": "limit"; "fileSize": "fileSize"; "types": "types"; }, {}, never, never, false, never>;
|
|
147
147
|
}
|
|
148
148
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { MatFormField, MatFormFieldDefaultOptions } from '@angular/material/form-field';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
@@ -17,23 +18,29 @@ export interface BuiFormFieldDefaultOptions extends MatFormFieldDefaultOptions {
|
|
|
17
18
|
* This component extends Angular Material's [mat-form-field](https://material.angular.io/components/form-field) and provides two additional appearances
|
|
18
19
|
* `bound` and `detach`. `bound` renders the label outside the outlined area of the field, while `detach` remove the borders all together. `detach`
|
|
19
20
|
* is generally used with form controls that render their own borders.
|
|
21
|
+
*
|
|
22
|
+
* ** IMPORTANT NOTICE **
|
|
23
|
+
*
|
|
24
|
+
* From version 3.0 onward, the selector `bui-form-field` is deprecated and will be removed in later releases. You no longer need to use this tag name
|
|
25
|
+
* for the new appearances. As long as you import the `NgModule` from this package, the new appearances will be supported by Material's `mat-form-field`
|
|
26
|
+
* component.
|
|
20
27
|
*/
|
|
21
28
|
export declare class FormFieldComponent extends MatFormField {
|
|
22
|
-
/**
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
_shouldAlwaysFloat(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @ignore
|
|
28
|
-
*/
|
|
29
|
-
_borderClass(): string;
|
|
30
|
-
/**
|
|
31
|
-
* @ignore
|
|
32
|
-
*/
|
|
33
|
-
_enhancedAppearance(): boolean;
|
|
34
|
-
/** @ignore */
|
|
35
|
-
_hostClicked(event: MouseEvent): void;
|
|
36
|
-
get __defaults(): any;
|
|
37
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "bui-
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "bui-dummy-component", never, {}, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @ignore
|
|
34
|
+
*/
|
|
35
|
+
export declare class FormFieldStyleDirective {
|
|
36
|
+
private matFormField;
|
|
37
|
+
private elemRef;
|
|
38
|
+
private _appearance;
|
|
39
|
+
private _flowDetection;
|
|
40
|
+
/** The form field appearance style. */
|
|
41
|
+
get appearance(): any;
|
|
42
|
+
set appearance(value: any);
|
|
43
|
+
constructor(matFormField: MatFormField, elemRef: ElementRef<HTMLElement>);
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldStyleDirective, [{ host: true; }, null]>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldStyleDirective, "bui-form-field, mat-form-field", never, { "appearance": "appearance"; }, {}, never, never, false, never>;
|
|
39
46
|
}
|
|
@@ -5,6 +5,6 @@ import * as i3 from "@angular/material/form-field";
|
|
|
5
5
|
import * as i4 from "@angular/cdk/observers";
|
|
6
6
|
export declare class FormFieldModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, [typeof i1.FormFieldComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.ObserversModule], [typeof i1.FormFieldComponent, typeof i3.MatFormFieldModule]>;
|
|
8
|
+
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]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
|
|
10
10
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { FormFieldModule } from './form-field.module';
|
|
2
|
-
export { FormFieldComponent } from './form-field.component';
|
|
2
|
+
export { FormFieldComponent, FormFieldStyleDirective } from './form-field.component';
|
|
@@ -42,5 +42,5 @@ export declare class IconDirective implements OnChanges {
|
|
|
42
42
|
constructor(_icon: MatIcon);
|
|
43
43
|
ngOnChanges(_: SimpleChanges): void;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, never>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "[buiIcon]", never, { "buiIcon": "buiIcon"; "size": "size"; "variant": "variant"; }, {}, never, never, false>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "[buiIcon]", never, { "buiIcon": "buiIcon"; "size": "size"; "variant": "variant"; }, {}, never, never, false, never>;
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -11,5 +11,5 @@ export declare class PanelSectionComponent implements OnInit, OnDestroy {
|
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
private _calcCount;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PanelSectionComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PanelSectionComponent, "bui-panel-section", never, {}, {}, never, ["*"], false>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PanelSectionComponent, "bui-panel-section", never, {}, {}, never, ["*"], false, never>;
|
|
15
15
|
}
|
|
@@ -52,5 +52,5 @@ export declare class PanelComponent implements OnInit {
|
|
|
52
52
|
/** @ignore */
|
|
53
53
|
_resized(width: number): void;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<PanelComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PanelComponent, "bui-panel", never, { "backdropClass": "backdropClass"; "cardClass": "cardClass"; "color": "color"; "appearance": "appearance"; "breakpoint": "breakpoint"; }, {}, never, ["*"], false>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PanelComponent, "bui-panel", never, { "backdropClass": "backdropClass"; "cardClass": "cardClass"; "color": "color"; "appearance": "appearance"; "breakpoint": "breakpoint"; }, {}, never, ["*"], false, never>;
|
|
56
56
|
}
|
|
@@ -62,5 +62,5 @@ export declare class PhoneNumberDirective implements OnInit, OnChanges, OnDestro
|
|
|
62
62
|
private initElement;
|
|
63
63
|
private _patchValueByState;
|
|
64
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberDirective, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneNumberDirective, "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]", never, { "telType": "telType"; "telDropdown": "telDropdown"; }, { "telCountryChange": "telCountryChange"; }, never, never, false>;
|
|
65
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneNumberDirective, "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]", never, { "telType": "telType"; "telDropdown": "telDropdown"; }, { "telCountryChange": "telCountryChange"; }, never, never, false, never>;
|
|
66
66
|
}
|
|
@@ -27,5 +27,5 @@ export declare class PhoneNumberValidator implements Validator {
|
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
} | null;
|
|
29
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": "telType"; }, {}, never, never, false>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneNumberValidator, "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]", never, { "telType": "telType"; }, {}, never, never, false, never>;
|
|
31
31
|
}
|
|
@@ -19,5 +19,5 @@ export declare class RadioPanelItemComponent extends MatRadioButton {
|
|
|
19
19
|
contentOnSelect: TemplateRef<any>;
|
|
20
20
|
constructor(radioGroup: MatRadioGroup, elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher, animationMode?: string, _providerOverride?: MatRadioDefaultOptions, tabIndex?: string);
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelItemComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelItemComponent, "bui-radio-panel-item", ["matRadioButton"], { "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "title": "title"; "_tickPosition": "_tickPosition"; "tickPosition": "tickPosition"; }, {}, ["contentOnSelect"], ["[buiRadioItemHeadingEnd]", "*"], false>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelItemComponent, "bui-radio-panel-item", ["matRadioButton"], { "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "title": "title"; "_tickPosition": "_tickPosition"; "tickPosition": "tickPosition"; }, {}, ["contentOnSelect"], ["[buiRadioItemHeadingEnd]", "*"], false, never>;
|
|
23
23
|
}
|
|
@@ -33,5 +33,5 @@ export declare class RadioPanelComponent extends MatRadioGroup implements OnChan
|
|
|
33
33
|
ngAfterContentInit(): void;
|
|
34
34
|
private _updatePanelWidth;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelComponent, "bui-radio-panel", ["buiRadioPanel"], { "panelWidth": "panelWidth"; "direction": "direction"; "color": "color"; "tickPosition": "tickPosition"; }, {}, ["_radios"], ["*"], false>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelComponent, "bui-radio-panel", ["buiRadioPanel"], { "panelWidth": "panelWidth"; "direction": "direction"; "color": "color"; "tickPosition": "tickPosition"; }, {}, ["_radios"], ["*"], false, never>;
|
|
37
37
|
}
|
|
@@ -73,5 +73,5 @@ export declare class SelectionPanelItemComponent implements AfterContentInit {
|
|
|
73
73
|
private _setDisabled;
|
|
74
74
|
private _setChecked;
|
|
75
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelItemComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionPanelItemComponent, "bui-selection-panel-item", never, { "title": "title"; "shadedHeader": "shadedHeader"; "selectable": "selectable"; "disabled": "disabled"; "value": "value"; "checked": "checked"; "color": "color"; }, {}, never, ["[buiSelectionItemHeadingEnd]", "[buiSelectionItemSubtitle]", "*"], false>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionPanelItemComponent, "bui-selection-panel-item", never, { "title": "title"; "shadedHeader": "shadedHeader"; "selectable": "selectable"; "disabled": "disabled"; "value": "value"; "checked": "checked"; "color": "color"; }, {}, never, ["[buiSelectionItemHeadingEnd]", "[buiSelectionItemSubtitle]", "*"], false, never>;
|
|
77
77
|
}
|
|
@@ -63,5 +63,5 @@ export declare class SelectionPanelDirective implements ControlValueAccessor, Se
|
|
|
63
63
|
/** @ignore */
|
|
64
64
|
ngOnChanges(changes: SimpleChanges): void;
|
|
65
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelDirective, never>;
|
|
66
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionPanelDirective, "bui-selection-panel", ["buiSelectionPanel"], { "color": "color"; "selectByHeader": "selectByHeader"; }, {}, ["_items"], never, false>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionPanelDirective, "bui-selection-panel", ["buiSelectionPanel"], { "color": "color"; "selectByHeader": "selectByHeader"; }, {}, ["_items"], never, false, never>;
|
|
67
67
|
}
|
|
@@ -19,5 +19,5 @@ export declare class SkeletonLoaderPresetsDirective implements AfterViewChecked
|
|
|
19
19
|
constructor(_skeletonComponent: SkeletonLoaderComponent, _elementRef: ElementRef<HTMLElement>, _presetList: SkeletonPresets[]);
|
|
20
20
|
ngAfterViewChecked(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderPresetsDirective, [{ host: true; }, null, null]>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonLoaderPresetsDirective, "bui-skeleton[preset]", never, { "preset": "preset"; }, {}, never, never, false>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonLoaderPresetsDirective, "bui-skeleton[preset]", never, { "preset": "preset"; }, {}, never, never, false, never>;
|
|
23
23
|
}
|
|
@@ -40,5 +40,5 @@ export declare class SkeletonLoaderComponent extends ContentLoaderComponent impl
|
|
|
40
40
|
ngOnDestroy(): void;
|
|
41
41
|
ngOnChanges(changes: SimpleChanges): void;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "bui-skeleton", never, {}, {}, never, never, false>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "bui-skeleton", never, {}, {}, never, never, false, never>;
|
|
44
44
|
}
|
|
@@ -66,6 +66,8 @@ export declare class StepperComponent extends CdkStepper implements AfterContent
|
|
|
66
66
|
_stepIsNavigable(index: number, step: MatStep): boolean;
|
|
67
67
|
/** @ignore */
|
|
68
68
|
_widthChanged(w: number): void;
|
|
69
|
+
/** @ignore */
|
|
70
|
+
_startStepTransition(): void;
|
|
69
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, [{ optional: true; }, null, null, null, { self: true; }, { optional: true; skipSelf: true; }]>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "bui-stepper, [buiStepper]", ["buiStepper", "matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "indicatorFormatter": "indicatorFormatter"; "nextStepLabelPrefix": "nextStepLabelPrefix"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "bui-stepper, [buiStepper]", ["buiStepper", "matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "indicatorFormatter": "indicatorFormatter"; "nextStepLabelPrefix": "nextStepLabelPrefix"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false, never>;
|
|
71
73
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin bui-card($color-config) {
|
|
4
|
+
$bui-card-header-text-color: var(--bui-card-header-text-color, #19315b);
|
|
5
|
+
$bui-card-header-background-color: var(--bui-card-header-background-color, #fafafa);
|
|
6
|
+
|
|
7
|
+
@if map.get($color-config, 'is-dark') {
|
|
8
|
+
$bui-card-header-text-color: var(--bui-card-header-text-color-dark-theme, white);
|
|
9
|
+
$bui-card-header-background-color: var(--bui-card-header-background-color-dark-theme, inherit);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.bui-card-flat.mat-mdc-card,
|
|
13
|
+
.bui-card-shaded.mat-mdc-card {
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
|
|
18
|
+
.mat-mdc-card-header {
|
|
19
|
+
padding: 16px;
|
|
20
|
+
|
|
21
|
+
.mat-mdc-card-title {
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
color: $bui-card-header-text-color;
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mat-mdc-card-title + .mat-mdc-card-subtitle {
|
|
28
|
+
margin-top: 0;
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mat-mdc-card-content {
|
|
34
|
+
flex: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mat-mdc-card-header + .mat-mdc-card-content {
|
|
38
|
+
padding-top: 16px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.bui-card-flat.mat-mdc-card {
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
border: 1px solid #e0e0e0;
|
|
45
|
+
|
|
46
|
+
.mat-mdc-card-header {
|
|
47
|
+
border-bottom: 1px solid #e0e0e0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.bui-card-shaded.mat-mdc-card {
|
|
52
|
+
.mat-mdc-card-header {
|
|
53
|
+
background: $bui-card-header-background-color;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
package/theme/_ui-theme.scss
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
+
@use './scrollbar.scss' as scrollbar;
|
|
4
|
+
@use './bui-card' as card;
|
|
3
5
|
|
|
4
6
|
$default-border-color-transition: border-color 100ms cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
5
7
|
$mat-foreground-extract: (
|
|
6
8
|
'secondary-text': 'light',
|
|
7
9
|
'hint-text': 'muted',
|
|
8
|
-
'divider': 'divider'
|
|
10
|
+
'divider': 'divider',
|
|
11
|
+
'base': 'base',
|
|
12
|
+
'inactive': 'inactive'
|
|
9
13
|
);
|
|
10
14
|
|
|
11
15
|
$mat-background-extract: (
|
|
@@ -37,14 +41,22 @@ $mat-background-extract: (
|
|
|
37
41
|
|
|
38
42
|
$color-config: mat.get-color-config($theme);
|
|
39
43
|
@if $color-config != null {
|
|
44
|
+
@include card.bui-card($color-config);
|
|
40
45
|
@each $p in (primary, accent, warn) {
|
|
41
46
|
$primary-palette: map.get($color-config, $p);
|
|
42
47
|
$c: mat.get-color-from-palette($primary-palette, text);
|
|
43
48
|
@include apply-color($p, $c, $border-color-transition);
|
|
44
49
|
}
|
|
45
50
|
|
|
51
|
+
$fg-original: map.get($color-config, 'foreground');
|
|
52
|
+
$fg: map.merge(
|
|
53
|
+
$fg-original,
|
|
54
|
+
(
|
|
55
|
+
inactive: rgba(map.get($fg-original, base), 0.06)
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
|
|
46
59
|
@each $key, $name in $mat-foreground-extract {
|
|
47
|
-
$fg: map.get($color-config, 'foreground');
|
|
48
60
|
$c: map.get($fg, $key);
|
|
49
61
|
@include apply-color($name, $c, $border-color-transition);
|
|
50
62
|
}
|
|
@@ -57,7 +69,6 @@ $mat-background-extract: (
|
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
@each $key, $name in $mat-foreground-extract {
|
|
60
|
-
$fg: map.get($color-config, 'foreground');
|
|
61
72
|
$c: map.get($fg, $key);
|
|
62
73
|
--bui-color-#{$name}: #{$c};
|
|
63
74
|
}
|
|
@@ -85,6 +96,7 @@ $mat-background-extract: (
|
|
|
85
96
|
|
|
86
97
|
@mixin theme($theme, $border-color-transition: $default-border-color-transition) {
|
|
87
98
|
@include apply-colors($theme, $border-color-transition);
|
|
99
|
+
@include scrollbar.bui-scrollbar;
|
|
88
100
|
|
|
89
101
|
.mat-icon {
|
|
90
102
|
&.fas,
|