@bravura/ui 1.16.1 → 1.17.2
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 -0
- package/alert/alert-container.component.d.ts +69 -0
- package/alert/alert-message.component.d.ts +46 -0
- package/alert/alert.module.d.ts +14 -0
- package/alert/bravura-ui-alert.d.ts +5 -0
- package/alert/package.json +10 -0
- package/alert/public-api.d.ts +1 -0
- package/bundles/bravura-ui-alert.umd.js +736 -0
- package/bundles/bravura-ui-alert.umd.js.map +1 -0
- package/bundles/bravura-ui-common.umd.js +30 -0
- package/bundles/bravura-ui-common.umd.js.map +1 -0
- package/bundles/bravura-ui-discrete-input.umd.js +1 -0
- package/bundles/bravura-ui-discrete-input.umd.js.map +1 -1
- package/bundles/bravura-ui-file-upload.umd.js +1 -1
- package/bundles/bravura-ui-file-upload.umd.js.map +1 -1
- package/bundles/bravura-ui-radio-panel.umd.js +7 -7
- package/bundles/bravura-ui-radio-panel.umd.js.map +1 -1
- package/bundles/bravura-ui-stepper.umd.js +5 -6
- package/bundles/bravura-ui-stepper.umd.js.map +1 -1
- package/common/bravura-ui-common.d.ts +5 -0
- package/common/common-utils.d.ts +2 -0
- package/common/package.json +10 -0
- package/common/public-api.d.ts +1 -0
- package/esm2015/alert/alert-container.component.js +220 -0
- package/esm2015/alert/alert-message.component.js +98 -0
- package/esm2015/alert/alert.module.js +22 -0
- package/esm2015/alert/bravura-ui-alert.js +5 -0
- package/esm2015/alert/public-api.js +2 -0
- package/esm2015/common/bravura-ui-common.js +5 -0
- package/esm2015/common/common-utils.js +13 -0
- package/esm2015/common/public-api.js +2 -0
- package/esm2015/discrete-input/discrete-input.component.js +2 -1
- package/esm2015/file-upload/file-upload.component.js +2 -2
- package/esm2015/radio-panel/radio-panel-item.component.js +4 -4
- package/esm2015/stepper/stepper.component.js +6 -7
- package/fesm2015/bravura-ui-alert.js +337 -0
- package/fesm2015/bravura-ui-alert.js.map +1 -0
- package/fesm2015/bravura-ui-common.js +19 -0
- package/fesm2015/bravura-ui-common.js.map +1 -0
- package/fesm2015/bravura-ui-discrete-input.js +1 -0
- package/fesm2015/bravura-ui-discrete-input.js.map +1 -1
- package/fesm2015/bravura-ui-file-upload.js +1 -1
- package/fesm2015/bravura-ui-file-upload.js.map +1 -1
- package/fesm2015/bravura-ui-radio-panel.js +4 -4
- package/fesm2015/bravura-ui-radio-panel.js.map +1 -1
- package/fesm2015/bravura-ui-stepper.js +5 -6
- package/fesm2015/bravura-ui-stepper.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Change history
|
|
2
2
|
|
|
3
|
+
## <small>1.17.2 (2022-04-04)</small>
|
|
4
|
+
|
|
5
|
+
* fix(file-upload): fix inconsistent margins ([5ba3890](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/5ba3890))
|
|
6
|
+
* fix(radio-panel): change ripple when selected to avoid event trapping ([f653a62](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/f653a62))
|
|
7
|
+
* fix(radio-panel): remove ripple container that is blocking contents ([55e814a](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/55e814a))
|
|
8
|
+
* refactor: improve support for older browsers ([6b10f83](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/6b10f83))
|
|
9
|
+
|
|
10
|
+
## <small>1.17.1 (2022-04-03)</small>
|
|
11
|
+
|
|
12
|
+
* fix(alert): fix incorrect z-index for floating panel ([3e33445](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/3e33445))
|
|
13
|
+
* fix(discrete-input): value not updated by backspace in the last part ([3ccaa92](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/3ccaa92))
|
|
14
|
+
|
|
15
|
+
## 1.17.0 (2022-04-01)
|
|
16
|
+
|
|
17
|
+
* fix(alert): setup alert for export ([0a4f3f8](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/0a4f3f8))
|
|
18
|
+
* fix(stepper): fix issue of not resizing properly in some cases ([9eb9555](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/9eb9555))
|
|
19
|
+
* feat(alert): float alert container when outside viewport ([380ae7a](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/380ae7a))
|
|
20
|
+
* Pull request #2: fix(alert): setup alert for export ([2961bef](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/2961bef)), closes [#2](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/issues/2)
|
|
21
|
+
|
|
3
22
|
## <small>1.16.1 (2022-03-29)</small>
|
|
4
23
|
|
|
5
24
|
* docs(stepper): use viewport in stepper stories for moible view ([9e07fbb](https://scm.bravurasolutions.net/projects/DIGI/repos/ui-components/commits/9e07fbb))
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
|
2
|
+
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
3
|
+
import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**@internal */
|
|
7
|
+
declare class InternalAlertOject {
|
|
8
|
+
readonly type: 'success' | 'info' | 'warn' | 'error';
|
|
9
|
+
readonly message: string;
|
|
10
|
+
id: string;
|
|
11
|
+
deleted: boolean;
|
|
12
|
+
constructor(type: 'success' | 'info' | 'warn' | 'error', message: string);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Use this component in a designated area of a page for displaying notification messages
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare class AlertContainerComponent implements OnInit, OnDestroy {
|
|
19
|
+
private zone;
|
|
20
|
+
private cdRef;
|
|
21
|
+
private _elementRef;
|
|
22
|
+
private scroll;
|
|
23
|
+
/** The maximum number of messages displayed in the container area. */
|
|
24
|
+
max: number;
|
|
25
|
+
/**
|
|
26
|
+
* This property determines the behavior for displaying the notifications when the container is outside the viewport.
|
|
27
|
+
*
|
|
28
|
+
* `scroll`: The component will try to scroll to reveal the new notifications.
|
|
29
|
+
* `float`: The component will float the alert panel to the center of the screen for a couple of seconds and move it back to the original position.
|
|
30
|
+
*/
|
|
31
|
+
outsideViewportBehavior: 'scroll' | 'float';
|
|
32
|
+
/**
|
|
33
|
+
* The number of milliseconds for which the alert container will be floated when new notification arrives.
|
|
34
|
+
*
|
|
35
|
+
* This will only take effect when `outsideViewportBehavior` is set to `float` and the container is outside the viewport.
|
|
36
|
+
*/
|
|
37
|
+
floatDuration: number;
|
|
38
|
+
/**@internal */
|
|
39
|
+
_alerts: InternalAlertOject[];
|
|
40
|
+
/**@internal */
|
|
41
|
+
_floated: boolean;
|
|
42
|
+
/**@internal */
|
|
43
|
+
_floatPanelHidden: boolean;
|
|
44
|
+
/** @ignore Emits whenever the animation is started. */
|
|
45
|
+
readonly _animationStarted: Subject<AnimationEvent>;
|
|
46
|
+
/** @ignore Emits whenever the animation is done. */
|
|
47
|
+
readonly _animationEnded: Subject<AnimationEvent>;
|
|
48
|
+
private _destroyed$;
|
|
49
|
+
private _endFloatingSub?;
|
|
50
|
+
constructor(zone: NgZone, cdRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, scroll: ScrollDispatcher);
|
|
51
|
+
ngOnInit(): void;
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
/**@internal */
|
|
54
|
+
get _remaining(): InternalAlertOject[];
|
|
55
|
+
/**@internal */
|
|
56
|
+
get _width(): number;
|
|
57
|
+
/** Add a message to the notification area */
|
|
58
|
+
notify(type: 'success' | 'info' | 'warn' | 'error', message: string): Promise<void>;
|
|
59
|
+
/**@ignore */
|
|
60
|
+
_checkViewport(): Promise<void>;
|
|
61
|
+
/**@ignore */
|
|
62
|
+
_dismiss(a: InternalAlertOject): Promise<void>;
|
|
63
|
+
/** Remove all messages currently displayed. */
|
|
64
|
+
clear(): Promise<void>;
|
|
65
|
+
private _endFloating;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertContainerComponent, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertContainerComponent, "bui-alert-container", never, { "max": "max"; "outsideViewportBehavior": "outsideViewportBehavior"; "floatDuration": "floatDuration"; }, {}, never, never>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* An alert style message usually appears in a global notification area.
|
|
5
|
+
*
|
|
6
|
+
* The base color of the message is determined by the `type` of the message and a list of predefined
|
|
7
|
+
* CSS custom properties.
|
|
8
|
+
*
|
|
9
|
+
* ```scss
|
|
10
|
+
* --bui-color-success: #519602;
|
|
11
|
+
* --bui-color-info: #0dcaf0;
|
|
12
|
+
* --bui-color-warning: #ffc107;
|
|
13
|
+
* --bui-color-error: #dc3545;
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare class AlertMessageComponent implements OnInit {
|
|
19
|
+
/** @ignore */
|
|
20
|
+
static ngAcceptInputType_dismissible: boolean | string | null | undefined;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
static ngAcceptInputType_blink: boolean | string | null | undefined;
|
|
23
|
+
/** The type of the message, used to derive the icon and base color. */
|
|
24
|
+
type: 'success' | 'info' | 'warn' | 'error';
|
|
25
|
+
/** The message to be displayed, HTML supported. */
|
|
26
|
+
message: string;
|
|
27
|
+
/** Whether to display the button to fire the `dismissed` event. */
|
|
28
|
+
get dismissible(): any;
|
|
29
|
+
set dismissible(value: any);
|
|
30
|
+
/** To be emitted when the user choose to dismiss the message. The event object is the ID of the element. */
|
|
31
|
+
dismissed: EventEmitter<string>;
|
|
32
|
+
/** To be emitted when the component finishes initialisation. The event object is the ID of the element. */
|
|
33
|
+
initialised: EventEmitter<string>;
|
|
34
|
+
/** @ignore */
|
|
35
|
+
_id: string;
|
|
36
|
+
private _dismissible;
|
|
37
|
+
private _blink;
|
|
38
|
+
constructor();
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
/** @ignore */
|
|
41
|
+
get iconName(): string;
|
|
42
|
+
/** @ignore */
|
|
43
|
+
_dismiss(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertMessageComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertMessageComponent, "bui-alert", never, { "type": "type"; "message": "message"; "dismissible": "dismissible"; "_id": "id"; }, { "dismissed": "dismissed"; "initialised": "initialised"; }, never, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AlertContainerComponent } from './alert-container.component';
|
|
2
|
+
import { AlertMessageComponent } from './alert-message.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./alert-message.component";
|
|
5
|
+
import * as i2 from "./alert-container.component";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@bravura/ui/icon-font";
|
|
8
|
+
import * as i5 from "@angular/material/button";
|
|
9
|
+
export declare class AlertModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertMessageComponent, typeof i2.AlertContainerComponent], [typeof i3.CommonModule, typeof i4.IconFontModule, typeof i5.MatButtonModule], [typeof i1.AlertMessageComponent, typeof i2.AlertContainerComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
13
|
+
}
|
|
14
|
+
export { AlertMessageComponent, AlertContainerComponent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/bravura-ui-alert.umd.js",
|
|
3
|
+
"module": "../fesm2015/bravura-ui-alert.js",
|
|
4
|
+
"es2015": "../fesm2015/bravura-ui-alert.js",
|
|
5
|
+
"esm2015": "../esm2015/alert/bravura-ui-alert.js",
|
|
6
|
+
"fesm2015": "../fesm2015/bravura-ui-alert.js",
|
|
7
|
+
"typings": "bravura-ui-alert.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@bravura/ui/alert"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './alert.module';
|