@blackcube/aurelia-kit 1.0.0-rc5 → 1.0.0-rc6
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/README.md +17 -17
- package/dist/index.es.js +516 -527
- package/dist/index.es.js.map +1 -1
- package/dist/types/abstracts/components/abstract-dialog.d.ts +3 -4
- package/dist/types/abstracts/components/abstract-dialog.d.ts.map +1 -1
- package/dist/types/attributes/modal-trigger.d.ts +0 -1
- package/dist/types/attributes/modal-trigger.d.ts.map +1 -1
- package/dist/types/attributes/toast.d.ts +2 -2
- package/dist/types/attributes/toaster-trigger.d.ts +3 -3
- package/dist/types/attributes/toaster.d.ts +2 -2
- package/dist/types/components/bleet-dialog.d.ts +1 -1
- package/dist/types/enums/event-aggregator.d.ts +6 -6
- package/dist/types/enums/event-aggregator.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/interfaces/dialog.d.ts +1 -2
- package/dist/types/interfaces/dialog.d.ts.map +1 -1
- package/dist/types/interfaces/event-aggregator.d.ts +2 -3
- package/dist/types/interfaces/event-aggregator.d.ts.map +1 -1
- package/dist/types/utils/toaster.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { ITransitionService } from '../../services/transition-service';
|
|
|
7
7
|
* <template> of its template, which Aurelia carries to the host). Opened and closed on Channels.Modal by its id, it
|
|
8
8
|
* runs the transitions, shows the overlay and says its status on Channels.ModalStatus. Every closing goes through
|
|
9
9
|
* close() — Escape and any [data-dialog="close"] included —, so that the hide transition runs; an Open received while
|
|
10
|
-
* the dialog is closing cancels the closing. The title
|
|
10
|
+
* the dialog is closing cancels the closing. The title of the opening is kept for the template.
|
|
11
11
|
*/
|
|
12
12
|
export declare abstract class AbstractDialog {
|
|
13
13
|
protected readonly element: HTMLElement;
|
|
@@ -16,16 +16,15 @@ export declare abstract class AbstractDialog {
|
|
|
16
16
|
private readonly transitionService;
|
|
17
17
|
id: string;
|
|
18
18
|
title: string;
|
|
19
|
-
color: string;
|
|
20
19
|
protected dialogElement: HTMLDialogElement;
|
|
21
20
|
private disposable?;
|
|
22
21
|
private closing;
|
|
23
22
|
constructor(element?: HTMLElement, ea?: IEventAggregator, p?: IPlatform, transitionService?: ITransitionService);
|
|
24
23
|
attached(): void;
|
|
25
24
|
detaching(): void;
|
|
26
|
-
/** Opening: the title
|
|
25
|
+
/** Opening: the title of the opening kept for the template. */
|
|
27
26
|
protected show(data: IModal): void;
|
|
28
|
-
/** What the dialog clears once closed, beyond its title
|
|
27
|
+
/** What the dialog clears once closed, beyond its title. */
|
|
29
28
|
protected clear(): void;
|
|
30
29
|
protected close(): void;
|
|
31
30
|
private open;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-dialog.d.ts","sourceRoot":"","sources":["../../../../src/abstracts/components/abstract-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,gBAAgB,EAAS,SAAS,EAAW,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,MAAM,EAA0B,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE;;;;;;;GAOG;AACH,8BAAsB,cAAc;
|
|
1
|
+
{"version":3,"file":"abstract-dialog.d.ts","sourceRoot":"","sources":["../../../../src/abstracts/components/abstract-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,gBAAgB,EAAS,SAAS,EAAW,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,MAAM,EAA0B,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE;;;;;;;GAOG;AACH,8BAAsB,cAAc;IAU5B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,WAAW;IACvC,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,gBAAgB;IACvC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,SAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAZ5B,EAAE,EAAE,MAAM,CAAM;IAEnB,KAAK,EAAE,MAAM,CAAM;IAE1B,SAAS,CAAC,aAAa,EAAG,iBAAiB,CAAC;IAC5C,OAAO,CAAC,UAAU,CAAC,CAAc;IACjC,OAAO,CAAC,OAAO,CAAkB;gBAGV,OAAO,GAAE,WAA2C,EACpD,EAAE,GAAE,gBAA4C,EAChD,CAAC,GAAE,SAA8B,EACnC,iBAAiB,GAAE,kBAAgD;IAGjF,QAAQ,IAAI,IAAI;IAMhB,SAAS,IAAI,IAAI;IAMxB,+DAA+D;IAC/D,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKlC,4DAA4D;IAC5D,SAAS,CAAC,KAAK,IAAI,IAAI;IAGvB,SAAS,CAAC,KAAK,IAAI,IAAI;IAmBvB,OAAO,CAAC,IAAI;IAcZ,OAAO,CAAC,YAAY,CAenB;IAED;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAUpB;IAED,OAAO,CAAC,aAAa,CAMpB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-trigger.d.ts","sourceRoot":"","sources":["../../../src/attributes/modal-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,gBAAgB,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAI7F;;;GAGG;AACH,qBACa,gCAAgC;
|
|
1
|
+
{"version":3,"file":"modal-trigger.d.ts","sourceRoot":"","sources":["../../../src/attributes/modal-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,gBAAgB,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAI7F;;;GAGG;AACH,qBACa,gCAAgC;IAMrC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,EAAE;IANb,EAAE,EAAE,MAAM,CAAM;IACd,GAAG,EAAE,MAAM,CAAM;gBAGR,MAAM,GAAE,OAAyD,EACjE,OAAO,GAAE,WAA2C,EACpD,EAAE,GAAE,gBAA4C;IAK9D,SAAS;IAKT,QAAQ;IAMR,SAAS;IAKT,OAAO;IAKd,OAAO,CAAC,OAAO,CASb;CAEL"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEventAggregator, ILogger, IPlatform } from "aurelia";
|
|
2
|
-
import {
|
|
2
|
+
import { UiLevel, UiToastIcon } from '../enums/event-aggregator';
|
|
3
3
|
/**
|
|
4
4
|
* Publishes a toast on page load (rendered by the PHP Toast widget as a hidden element).
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class BleetToastCustomAttribute {
|
|
|
8
8
|
private readonly ea;
|
|
9
9
|
private readonly p;
|
|
10
10
|
id: string;
|
|
11
|
-
|
|
11
|
+
level: UiLevel;
|
|
12
12
|
icon: UiToastIcon;
|
|
13
13
|
title: string;
|
|
14
14
|
content: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IEventAggregator, ILogger } from "aurelia";
|
|
2
|
-
import {
|
|
2
|
+
import { UiLevel, UiToastIcon } from '../enums/event-aggregator';
|
|
3
3
|
/**
|
|
4
|
-
* Click on the element: publishes one toast (id,
|
|
4
|
+
* Click on the element: publishes one toast (id, level, icon, title, content, duration) on Channels.Toaster.
|
|
5
5
|
*/
|
|
6
6
|
export declare class BleetToasterTriggerCustomAttribute {
|
|
7
7
|
private readonly logger;
|
|
8
8
|
private readonly element;
|
|
9
9
|
private readonly ea;
|
|
10
10
|
id: string;
|
|
11
|
-
|
|
11
|
+
level: UiLevel;
|
|
12
12
|
icon: UiToastIcon;
|
|
13
13
|
title: string;
|
|
14
14
|
content: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IEventAggregator, ILogger, IPlatform } from "aurelia";
|
|
2
2
|
import { ITransitionService } from '../services/transition-service';
|
|
3
3
|
/**
|
|
4
|
-
* Toast container: clones the toast template of the requested
|
|
5
|
-
* (template[data-toaster=
|
|
4
|
+
* Toast container: clones the toast template of the requested level
|
|
5
|
+
* (template[data-toaster=level]) and the icon template of the requested icon
|
|
6
6
|
* (template[data-toaster=icon-name]), both rendered by the PHP Toaster widget.
|
|
7
7
|
* When the container is a manual popover (popover="manual"), it is shown again on each toast so that it passes over
|
|
8
8
|
* a dialog opened by showModal() (top layer), and hidden once the last toast is gone.
|
|
@@ -6,7 +6,7 @@ import { AbstractDialog } from '../abstracts/components';
|
|
|
6
6
|
* Dialog (modal, drawer…) rendered by the PHP Modal and Drawer widgets: the fundamentals of AbstractDialog, and the
|
|
7
7
|
* server HTML. It holds no markup: the dialog classes come from data-dialog-class, the loader from the "loader" slot, and
|
|
8
8
|
* everything else from the server HTML it loads, from the HTML given with the opening (content), or — opened with
|
|
9
|
-
* neither — from its default slot, whose frame reads the title
|
|
9
|
+
* neither — from its default slot, whose frame reads the title of the opening on $host.
|
|
10
10
|
*/
|
|
11
11
|
export declare class BleetDialog extends AbstractDialog {
|
|
12
12
|
private readonly logger;
|
|
@@ -95,14 +95,14 @@ export declare enum PopoverStatus {
|
|
|
95
95
|
Opened = "opened",
|
|
96
96
|
Closed = "closed"
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Level of a toast: what it says, never how it looks — the markup gives the look of each level
|
|
100
|
+
*/
|
|
101
|
+
export declare enum UiLevel {
|
|
102
|
+
Info = "info",
|
|
101
103
|
Success = "success",
|
|
102
|
-
Danger = "danger",
|
|
103
104
|
Warning = "warning",
|
|
104
|
-
|
|
105
|
-
Accent = "accent"
|
|
105
|
+
Danger = "danger"
|
|
106
106
|
}
|
|
107
107
|
export declare enum UiToastIcon {
|
|
108
108
|
Info = "information-circle",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../src/enums/event-aggregator.ts"],"names":[],"mappings":"AAAA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WAAW;IACnB,MAAM,WAAW;CACpB;AACD,oBAAY,UAAU;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACpB;AACD,oBAAY,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,oBAAY,OAAO;IACf,
|
|
1
|
+
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../src/enums/event-aggregator.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,OAAO,kBAAkB;IACzB,aAAa,yBAAyB;IACtC,KAAK,gBAAgB;IACrB,WAAW,uBAAuB;IAClC,OAAO,kBAAkB;IACzB,aAAa,yBAAyB;IACtC,IAAI,eAAe;IACnB,UAAU,sBAAsB;IAChC,KAAK,gBAAgB;IACrB,OAAO,kBAAkB;IACzB,aAAa,yBAAyB;IACtC,OAAO,kBAAkB;IACzB,OAAO,kBAAkB;IACzB,aAAa,yBAAyB;IACtC,MAAM,iBAAiB;CAC1B;AACD;;GAEG;AACH,oBAAY,YAAY;IACpB,KAAK,UAAU;CAClB;AACD,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACpB;AACD,oBAAY,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AACD,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACpB;AACD,oBAAY,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AACD,oBAAY,WAAW;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACpB;AACD,oBAAY,W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types/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ import { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustom
|
|
|
8
8
|
import { BleetAjaxify, BleetDialog } from './components';
|
|
9
9
|
import { AbstractDialog, AbstractDropdown, AbstractPager, AbstractToaster, PagerEvent } from './abstracts/components';
|
|
10
10
|
import type { IDropdownGroup, IDropdownOption, IDropdownRow, IPagerDetail } from './abstracts/components';
|
|
11
|
-
import { Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction,
|
|
11
|
+
import { Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction, UiLevel, UiToastIcon, UiIcon, DialogAction, AjaxifyAction, AjaxifyTriggerMode, PopoverAction, PopoverStatus, UploadAction } from './enums/event-aggregator';
|
|
12
12
|
import type { IDialogResponse } from './interfaces/dialog';
|
|
13
13
|
import type { IOverlay, IOverlayStatus, IModal, IModalStatus, IToaster, IToasterStatus, IToast, IMenu, IMenuStatus, IBadge, IProfile, IProfileStatus, IAjaxify, IPopover, IPopoverStatus, IUpload } from './interfaces/event-aggregator';
|
|
14
|
-
export { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustomAttribute, BleetDropdownCustomAttribute, BleetMenuCustomAttribute, BleetModalTriggerCustomAttribute, BleetPagerCustomAttribute, BleetPasswordCustomAttribute, BleetProfileCustomAttribute, BleetTabsCustomAttribute, BleetToasterTriggerCustomAttribute, BleetAjaxifyTriggerCustomAttribute, BleetPopoverCustomAttribute, BleetPopoverTriggerCustomAttribute, BleetToasterCustomAttribute, BleetToastCustomAttribute, BleetOverlayCustomAttribute, BleetFocusCustomAttribute, BleetAjaxify, BleetDialog, AbstractDialog, AbstractDropdown, AbstractPager, AbstractToaster, PagerEvent, Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, AjaxifyAction, AjaxifyTriggerMode, PopoverAction, PopoverStatus, UploadAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction,
|
|
14
|
+
export { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustomAttribute, BleetDropdownCustomAttribute, BleetMenuCustomAttribute, BleetModalTriggerCustomAttribute, BleetPagerCustomAttribute, BleetPasswordCustomAttribute, BleetProfileCustomAttribute, BleetTabsCustomAttribute, BleetToasterTriggerCustomAttribute, BleetAjaxifyTriggerCustomAttribute, BleetPopoverCustomAttribute, BleetPopoverTriggerCustomAttribute, BleetToasterCustomAttribute, BleetToastCustomAttribute, BleetOverlayCustomAttribute, BleetFocusCustomAttribute, BleetAjaxify, BleetDialog, AbstractDialog, AbstractDropdown, AbstractPager, AbstractToaster, PagerEvent, Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, AjaxifyAction, AjaxifyTriggerMode, PopoverAction, PopoverStatus, UploadAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction, UiLevel, UiToastIcon, UiIcon, DialogAction, IStorageService, ITransitionService, ITrapFocusService, setState };
|
|
15
15
|
/** The interfaces and the types: named apart, as a bundler transpiling file by file cannot tell them from the values. */
|
|
16
16
|
export type { IOverlay, IOverlayStatus, IModal, IModalStatus, IToaster, IToasterStatus, IToast, IMenu, IMenuStatus, IBadge, IProfile, IProfileStatus, IDialogResponse, IAjaxify, IPopover, IPopoverStatus, IUpload, IDropdownGroup, IDropdownOption, IDropdownRow, IPagerDetail, StateName };
|
|
17
17
|
export declare const BleetConfiguration: {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { DialogAction
|
|
1
|
+
import { DialogAction } from '../enums/event-aggregator';
|
|
2
2
|
import { IAjaxify, IToast } from './event-aggregator';
|
|
3
3
|
/**
|
|
4
4
|
* Server response for load URL and submit form of a bleet-dialog: content is the whole HTML of the dialog
|
|
5
5
|
*/
|
|
6
6
|
export interface IDialogResponse {
|
|
7
|
-
color?: UiColor;
|
|
8
7
|
icon?: string | null;
|
|
9
8
|
content?: string;
|
|
10
9
|
action?: DialogAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiLevel, ModalAction, OverlayAction, ToasterAction, UiToastIcon, MenuAction, OverlayStatus, ToasterStatus, MenuStatus, ModalStatus, BadgeAction, ProfileAction, ProfileStatus, AjaxifyAction, PopoverAction, PopoverStatus, UploadAction } from '../enums/event-aggregator';
|
|
2
2
|
export interface IOverlay {
|
|
3
3
|
action: OverlayAction;
|
|
4
4
|
}
|
|
@@ -10,7 +10,6 @@ export interface IModal {
|
|
|
10
10
|
id?: string;
|
|
11
11
|
url?: string;
|
|
12
12
|
title?: string;
|
|
13
|
-
color?: string;
|
|
14
13
|
content?: string;
|
|
15
14
|
}
|
|
16
15
|
export interface IModalStatus {
|
|
@@ -28,7 +27,7 @@ export interface IToasterStatus {
|
|
|
28
27
|
export interface IToast {
|
|
29
28
|
id?: string;
|
|
30
29
|
icon?: UiToastIcon;
|
|
31
|
-
|
|
30
|
+
level: UiLevel;
|
|
32
31
|
title?: string;
|
|
33
32
|
content: string;
|
|
34
33
|
duration?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../src/interfaces/event-aggregator.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAC7F,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAC3E,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,aAAa,CAAC;CACzB;AACD,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,MAAM;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../src/interfaces/event-aggregator.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAC7F,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAC3E,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,aAAa,CAA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AM,EAAE,YAAY,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC5B;AACD,MAAM,WAAW,gBAAgB;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,CAAC;CACtB"}
|
|
@@ -9,7 +9,7 @@ export interface IToastWithDefaults extends IToast {
|
|
|
9
9
|
duration: number;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* The defaults of a published toast: an id when none is given, the Info
|
|
12
|
+
* The defaults of a published toast: an id when none is given, the Info level and icon, no duration (it stays until
|
|
13
13
|
* closed).
|
|
14
14
|
*/
|
|
15
15
|
export declare function buildToast(toast: IToast): IToastWithDefaults;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackcube/aurelia-kit",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc6",
|
|
4
4
|
"description": "Blackcube Aurelia 2 kit: custom attributes and services driven by the Bleet PHP widgets",
|
|
5
5
|
"author": "Philippe Gaultier <philippe@blackcube.io>",
|
|
6
6
|
"license": "BSD-3-Clause",
|