@bravura/ui 2.0.1 → 2.3.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 +17 -0
- package/esm2020/decimal-input/decimal-input.directive.mjs +3 -2
- package/esm2020/file-upload/file-upload.component.mjs +49 -5
- package/esm2020/panel/bravura-ui-panel.mjs +5 -0
- package/esm2020/panel/panel-section.component.mjs +23 -0
- package/esm2020/panel/panel.component.mjs +82 -0
- package/esm2020/panel/panel.module.mjs +22 -0
- package/esm2020/panel/public-api.mjs +2 -0
- package/fesm2015/bravura-ui-decimal-input.mjs +2 -1
- package/fesm2015/bravura-ui-decimal-input.mjs.map +1 -1
- package/fesm2015/bravura-ui-file-upload.mjs +48 -4
- package/fesm2015/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2015/bravura-ui-panel.mjs +127 -0
- package/fesm2015/bravura-ui-panel.mjs.map +1 -0
- package/fesm2020/bravura-ui-decimal-input.mjs +2 -1
- package/fesm2020/bravura-ui-decimal-input.mjs.map +1 -1
- package/fesm2020/bravura-ui-file-upload.mjs +48 -4
- package/fesm2020/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2020/bravura-ui-panel.mjs +127 -0
- package/fesm2020/bravura-ui-panel.mjs.map +1 -0
- package/file-upload/file-upload.component.d.ts +11 -1
- package/package.json +9 -1
- package/panel/index.d.ts +5 -0
- package/panel/panel-section.component.d.ts +13 -0
- package/panel/panel.component.d.ts +56 -0
- package/panel/panel.module.d.ts +14 -0
- package/panel/public-api.d.ts +1 -0
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": "2.0
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular",
|
|
7
7
|
"Angular Material",
|
|
@@ -113,6 +113,14 @@
|
|
|
113
113
|
"node": "./fesm2015/bravura-ui-icon-font.mjs",
|
|
114
114
|
"default": "./fesm2020/bravura-ui-icon-font.mjs"
|
|
115
115
|
},
|
|
116
|
+
"./panel": {
|
|
117
|
+
"types": "./panel/index.d.ts",
|
|
118
|
+
"esm2020": "./esm2020/panel/bravura-ui-panel.mjs",
|
|
119
|
+
"es2020": "./fesm2020/bravura-ui-panel.mjs",
|
|
120
|
+
"es2015": "./fesm2015/bravura-ui-panel.mjs",
|
|
121
|
+
"node": "./fesm2015/bravura-ui-panel.mjs",
|
|
122
|
+
"default": "./fesm2020/bravura-ui-panel.mjs"
|
|
123
|
+
},
|
|
116
124
|
"./phone-number": {
|
|
117
125
|
"types": "./phone-number/index.d.ts",
|
|
118
126
|
"esm2020": "./esm2020/phone-number/bravura-ui-phone-number.mjs",
|
package/panel/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* `bui-panel-section`s are subdivisions of `bui-panel` that rearrange their orientation based on the width of the container element.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PanelSectionComponent implements OnInit {
|
|
7
|
+
private _elementRef;
|
|
8
|
+
private _parentElement;
|
|
9
|
+
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelSectionComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PanelSectionComponent, "bui-panel-section", never, {}, {}, never, ["*"], false>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ThemePalette } from '@angular/material/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* A `bui-panel` consists of a `mat-card` and a tinted backdrop.
|
|
6
|
+
*
|
|
7
|
+
* Unlike `mat-card`, `bui-panel` has a flat appearance by default and a transparent background.
|
|
8
|
+
* The backdrop is nearly transparent, blending the theme palette `color`
|
|
9
|
+
* and the effective background color of the DOM ancestors.
|
|
10
|
+
*
|
|
11
|
+
* `bui-panel` supports all the content child directives of `mat-card` as well as `bui-panel-section`.
|
|
12
|
+
*
|
|
13
|
+
* `bui-panel-section`s are subdivisions of `bui-panel` that rearrange their orientation based on the width of the container element.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare class PanelComponent implements OnInit {
|
|
17
|
+
private _cd;
|
|
18
|
+
/**
|
|
19
|
+
* Additional style classes on the tinted backdrop element.
|
|
20
|
+
*/
|
|
21
|
+
backdropClass?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Additional style classes on the `<mat-card>` element.
|
|
24
|
+
*/
|
|
25
|
+
cardClass?: string;
|
|
26
|
+
/**
|
|
27
|
+
* This property defines the background (shaded) and border colors of the panel
|
|
28
|
+
*/
|
|
29
|
+
get color(): ThemePalette;
|
|
30
|
+
set color(value: ThemePalette);
|
|
31
|
+
/**
|
|
32
|
+
* In contrast to using a `mat-card` alone, a `bui-panel` does not have a elevated appearance by default.
|
|
33
|
+
*
|
|
34
|
+
* This property can change the default appearance to
|
|
35
|
+
*
|
|
36
|
+
* * `raised` - the original `mat-card` default
|
|
37
|
+
* * `outline` - a `mat-card` with borders
|
|
38
|
+
* * `flat` - no border or elevation
|
|
39
|
+
*/
|
|
40
|
+
get appearance(): 'outlined' | 'raised' | 'flat';
|
|
41
|
+
set appearance(value: 'outlined' | 'raised' | 'flat');
|
|
42
|
+
/**
|
|
43
|
+
* The width of the host element, at which the panel section container will change its orientation.
|
|
44
|
+
*/
|
|
45
|
+
breakpoint: number;
|
|
46
|
+
/** @ignore */
|
|
47
|
+
_width: number;
|
|
48
|
+
private _color;
|
|
49
|
+
private _appearance;
|
|
50
|
+
constructor(_cd: ChangeDetectorRef);
|
|
51
|
+
ngOnInit(): void;
|
|
52
|
+
/** @ignore */
|
|
53
|
+
_resized(width: number): void;
|
|
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>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PanelComponent } from './panel.component';
|
|
2
|
+
import { PanelSectionComponent } from './panel-section.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./panel.component";
|
|
5
|
+
import * as i2 from "./panel-section.component";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/material/card";
|
|
8
|
+
import * as i5 from "@bravura/ui/behavior";
|
|
9
|
+
export declare class PanelModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PanelModule, [typeof i1.PanelComponent, typeof i2.PanelSectionComponent], [typeof i3.CommonModule, typeof i4.MatCardModule, typeof i5.BehaviorModule], [typeof i4.MatCardModule, typeof i1.PanelComponent, typeof i2.PanelSectionComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PanelModule>;
|
|
13
|
+
}
|
|
14
|
+
export { PanelComponent, PanelSectionComponent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './panel.module';
|