@blackcube/aurelia-kit 1.0.0-rc1 → 1.0.0-rc10
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 +250 -16
- package/dist/index.es.js +1619 -590
- package/dist/index.es.js.map +1 -1
- package/dist/types/abstracts/components/abstract-dialog.d.ts +41 -0
- package/dist/types/abstracts/components/abstract-dialog.d.ts.map +1 -0
- package/dist/types/abstracts/components/abstract-dropdown.d.ts +117 -0
- package/dist/types/abstracts/components/abstract-dropdown.d.ts.map +1 -0
- package/dist/types/abstracts/components/abstract-pager.d.ts +51 -0
- package/dist/types/abstracts/components/abstract-pager.d.ts.map +1 -0
- package/dist/types/abstracts/components/abstract-toaster.d.ts +42 -0
- package/dist/types/abstracts/components/abstract-toaster.d.ts.map +1 -0
- package/dist/types/abstracts/components/index.d.ts +7 -0
- package/dist/types/abstracts/components/index.d.ts.map +1 -0
- package/dist/types/attributes/ajaxify-trigger.d.ts.map +1 -1
- package/dist/types/attributes/alert.d.ts.map +1 -1
- package/dist/types/attributes/badge.d.ts.map +1 -1
- package/dist/types/attributes/burger.d.ts.map +1 -1
- package/dist/types/attributes/dropdown.d.ts.map +1 -1
- package/dist/types/attributes/first-error.d.ts +19 -0
- package/dist/types/attributes/first-error.d.ts.map +1 -0
- package/dist/types/attributes/focus.d.ts +13 -0
- package/dist/types/attributes/focus.d.ts.map +1 -0
- package/dist/types/attributes/index.d.ts +2 -0
- package/dist/types/attributes/index.d.ts.map +1 -1
- package/dist/types/attributes/menu.d.ts +23 -1
- package/dist/types/attributes/menu.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/overlay.d.ts.map +1 -1
- package/dist/types/attributes/pager.d.ts.map +1 -1
- package/dist/types/attributes/password.d.ts.map +1 -1
- package/dist/types/attributes/popover-trigger.d.ts.map +1 -1
- package/dist/types/attributes/popover.d.ts.map +1 -1
- package/dist/types/attributes/profile.d.ts.map +1 -1
- package/dist/types/attributes/tabs.d.ts.map +1 -1
- package/dist/types/attributes/toast.d.ts +2 -2
- package/dist/types/attributes/toast.d.ts.map +1 -1
- package/dist/types/attributes/toaster-trigger.d.ts +3 -3
- package/dist/types/attributes/toaster-trigger.d.ts.map +1 -1
- package/dist/types/attributes/toaster.d.ts +2 -7
- package/dist/types/attributes/toaster.d.ts.map +1 -1
- package/dist/types/components/bleet-ajaxify.d.ts.map +1 -1
- package/dist/types/components/bleet-dialog.d.ts +15 -26
- package/dist/types/components/bleet-dialog.d.ts.map +1 -1
- package/dist/types/enums/event-aggregator.d.ts +14 -7
- package/dist/types/enums/event-aggregator.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -5
- package/dist/types/index.d.ts.map +1 -1
- 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 +12 -4
- package/dist/types/interfaces/event-aggregator.d.ts.map +1 -1
- package/dist/types/services/storage-service.d.ts.map +1 -1
- package/dist/types/services/transition-service.d.ts.map +1 -1
- package/dist/types/services/trap-focus-service.d.ts +17 -1
- package/dist/types/services/trap-focus-service.d.ts.map +1 -1
- package/dist/types/utils/toaster.d.ts +25 -0
- package/dist/types/utils/toaster.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,42 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ILogger } from 'aurelia';
|
|
2
|
+
import { IModal } from '../interfaces/event-aggregator';
|
|
3
3
|
import { IApiService } from '@blackcube/aurelia-api';
|
|
4
|
+
import { AbstractDialog } from '../abstracts/components';
|
|
4
5
|
/**
|
|
5
|
-
* Dialog (modal, drawer…) rendered by the PHP Modal and Drawer widgets
|
|
6
|
-
* from data-dialog-class, the loader from the "loader" slot, and
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Dialog (modal, drawer…) rendered by the PHP Modal and Drawer widgets: the fundamentals of AbstractDialog, and the
|
|
7
|
+
* server HTML. It holds no markup: the dialog classes come from data-dialog-class, the loader from the "loader" slot, and
|
|
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 of the opening on $host.
|
|
9
10
|
*/
|
|
10
|
-
export declare class BleetDialog {
|
|
11
|
+
export declare class BleetDialog extends AbstractDialog {
|
|
11
12
|
private readonly logger;
|
|
12
|
-
private readonly element;
|
|
13
|
-
private readonly ea;
|
|
14
|
-
private readonly p;
|
|
15
|
-
private readonly transitionService;
|
|
16
13
|
private readonly apiService;
|
|
17
|
-
id: string;
|
|
18
14
|
dialogClass: string;
|
|
19
15
|
loadError: string;
|
|
20
16
|
submitError: string;
|
|
21
|
-
private dialogElement;
|
|
22
|
-
private disposable?;
|
|
23
17
|
private loading;
|
|
24
|
-
private closing;
|
|
25
18
|
private contentView;
|
|
26
|
-
constructor(logger?: ILogger,
|
|
19
|
+
constructor(logger?: ILogger, apiService?: IApiService);
|
|
27
20
|
attached(): void;
|
|
28
21
|
detaching(): void;
|
|
29
|
-
private bindDialogEvents;
|
|
30
|
-
private unbindDialogEvents;
|
|
31
|
-
private onModalEvent;
|
|
32
22
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
23
|
+
* Opening: with a url, the server HTML is loaded; else, the content given with the opening is shown as the
|
|
24
|
+
* server HTML would be; else, the default slot.
|
|
35
25
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
protected show(data: IModal): void;
|
|
27
|
+
protected clear(): void;
|
|
38
28
|
/**
|
|
39
|
-
* A form of the
|
|
29
|
+
* A form of the server HTML is posted by the element, unless it is marked data-dialog="native" (download, plain
|
|
30
|
+
* post). A form of the default slot belongs to the page that projects it.
|
|
40
31
|
*/
|
|
41
32
|
private onFormSubmit;
|
|
42
33
|
private loadFromUrl;
|
|
@@ -46,7 +37,5 @@ export declare class BleetDialog {
|
|
|
46
37
|
* Danger toast with the text given by the PHP widget (load-error / submit-error); none without text.
|
|
47
38
|
*/
|
|
48
39
|
private publishError;
|
|
49
|
-
private open;
|
|
50
|
-
private close;
|
|
51
40
|
}
|
|
52
41
|
//# sourceMappingURL=bleet-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bleet-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/bleet-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"bleet-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/bleet-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,OAAO,EAAW,MAAM,SAAS,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAoB,MAAM,gCAAgC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,cAAc;IASvC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IATe,WAAW,EAAE,MAAM,CAAM;IAC7D,SAAS,EAAE,MAAM,CAAM;IACvB,WAAW,EAAE,MAAM,CAAM;IAEnC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,WAAW,CAAuB;gBAGrB,MAAM,GAAE,OAAoD,EAC5D,UAAU,GAAE,WAAkC;IAKnD,QAAQ,IAAI,IAAI;IAKhB,SAAS,IAAI,IAAI;IAKjC;;;OAGG;cACgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;cASxB,KAAK,IAAI,IAAI;IAKhC;;;OAGG;IACH,OAAO,CAAC,YAAY,CAyBnB;IAED,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,cAAc;IAqBtB;;OAEG;IACH,OAAO,CAAC,YAAY;CAQvB"}
|
|
@@ -13,7 +13,8 @@ export declare enum Channels {
|
|
|
13
13
|
Ajaxify = "bleet:ajaxify",
|
|
14
14
|
Popover = "bleet:popover",
|
|
15
15
|
PopoverStatus = "bleet:popover:status",
|
|
16
|
-
Upload = "bleet:upload"
|
|
16
|
+
Upload = "bleet:upload",
|
|
17
|
+
Form = "bleet:form"
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Upload actions, handled by the upload bridges (@blackcube/aurelia-bridge-resumablejs)
|
|
@@ -21,6 +22,12 @@ export declare enum Channels {
|
|
|
21
22
|
export declare enum UploadAction {
|
|
22
23
|
Reset = "reset"
|
|
23
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Form actions, handled by bleet-first-error: FirstError focuses the first field in error of the form
|
|
27
|
+
*/
|
|
28
|
+
export declare enum FormAction {
|
|
29
|
+
FirstError = "firstError"
|
|
30
|
+
}
|
|
24
31
|
export declare enum OverlayAction {
|
|
25
32
|
Open = "open",
|
|
26
33
|
Close = "close",
|
|
@@ -95,14 +102,14 @@ export declare enum PopoverStatus {
|
|
|
95
102
|
Opened = "opened",
|
|
96
103
|
Closed = "closed"
|
|
97
104
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Level of a toast: what it says, never how it looks — the markup gives the look of each level
|
|
107
|
+
*/
|
|
108
|
+
export declare enum UiLevel {
|
|
109
|
+
Info = "info",
|
|
101
110
|
Success = "success",
|
|
102
|
-
Danger = "danger",
|
|
103
111
|
Warning = "warning",
|
|
104
|
-
|
|
105
|
-
Accent = "accent"
|
|
112
|
+
Danger = "danger"
|
|
106
113
|
}
|
|
107
114
|
export declare enum UiToastIcon {
|
|
108
115
|
Info = "information-circle",
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;IACvB,IAAI,eAAe;CACtB;AACD;;GAEG;AACH,oBAAY,YAAY;IACpB,KAAK,UAAU;CAClB;AACD;;GAEG;AACH,oBAAY,UAAU;IAClB,UAAU,eAAe;CAC5B;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,KAA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K,UAAU;IACf,eAAe,oBAAoB;CACtC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,14 +4,16 @@ import { IStorageService } from './services/storage-service';
|
|
|
4
4
|
import { ITransitionService } from './services/transition-service';
|
|
5
5
|
import { ITrapFocusService } from './services/trap-focus-service';
|
|
6
6
|
import { setState, type StateName } from './utils/state-classes';
|
|
7
|
-
import { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustomAttribute, BleetDropdownCustomAttribute, BleetMenuCustomAttribute, BleetModalTriggerCustomAttribute, BleetPagerCustomAttribute, BleetPasswordCustomAttribute, BleetProfileCustomAttribute, BleetTabsCustomAttribute, BleetToasterTriggerCustomAttribute, BleetAjaxifyTriggerCustomAttribute, BleetPopoverCustomAttribute, BleetPopoverTriggerCustomAttribute, BleetToasterCustomAttribute, BleetToastCustomAttribute, BleetOverlayCustomAttribute } from './attributes';
|
|
7
|
+
import { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustomAttribute, BleetDropdownCustomAttribute, BleetMenuCustomAttribute, BleetModalTriggerCustomAttribute, BleetPagerCustomAttribute, BleetPasswordCustomAttribute, BleetProfileCustomAttribute, BleetTabsCustomAttribute, BleetToasterTriggerCustomAttribute, BleetAjaxifyTriggerCustomAttribute, BleetPopoverCustomAttribute, BleetPopoverTriggerCustomAttribute, BleetToasterCustomAttribute, BleetToastCustomAttribute, BleetOverlayCustomAttribute, BleetFocusCustomAttribute, BleetFirstErrorCustomAttribute } from './attributes';
|
|
8
8
|
import { BleetAjaxify, BleetDialog } from './components';
|
|
9
|
-
import {
|
|
9
|
+
import { AbstractDialog, AbstractDropdown, AbstractPager, AbstractToaster, PagerEvent } from './abstracts/components';
|
|
10
|
+
import type { IDropdownGroup, IDropdownOption, IDropdownRow, IPagerDetail } from './abstracts/components';
|
|
11
|
+
import { Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction, UiLevel, UiToastIcon, UiIcon, DialogAction, AjaxifyAction, AjaxifyTriggerMode, PopoverAction, PopoverStatus, UploadAction, FormAction } from './enums/event-aggregator';
|
|
10
12
|
import type { IDialogResponse } from './interfaces/dialog';
|
|
11
|
-
import type { IOverlay, IOverlayStatus, IModal, IModalStatus, IToaster, IToasterStatus, IToast, IMenu, IMenuStatus, IBadge, IProfile, IProfileStatus, IAjaxify, IPopover, IPopoverStatus, IUpload } from './interfaces/event-aggregator';
|
|
12
|
-
export { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustomAttribute, BleetDropdownCustomAttribute, BleetMenuCustomAttribute, BleetModalTriggerCustomAttribute, BleetPagerCustomAttribute, BleetPasswordCustomAttribute, BleetProfileCustomAttribute, BleetTabsCustomAttribute, BleetToasterTriggerCustomAttribute, BleetAjaxifyTriggerCustomAttribute, BleetPopoverCustomAttribute, BleetPopoverTriggerCustomAttribute, BleetToasterCustomAttribute, BleetToastCustomAttribute, BleetOverlayCustomAttribute, BleetAjaxify, BleetDialog, Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, AjaxifyAction, AjaxifyTriggerMode, PopoverAction, PopoverStatus, UploadAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction,
|
|
13
|
+
import type { IOverlay, IOverlayStatus, IModal, IModalStatus, IToaster, IToasterStatus, IToast, IMenu, IMenuStatus, IBadge, IProfile, IProfileStatus, IAjaxify, IPopover, IPopoverStatus, IUpload, IForm } from './interfaces/event-aggregator';
|
|
14
|
+
export { BleetAlertCustomAttribute, BleetBadgeCustomAttribute, BleetBurgerCustomAttribute, BleetDropdownCustomAttribute, BleetMenuCustomAttribute, BleetModalTriggerCustomAttribute, BleetPagerCustomAttribute, BleetPasswordCustomAttribute, BleetProfileCustomAttribute, BleetTabsCustomAttribute, BleetToasterTriggerCustomAttribute, BleetAjaxifyTriggerCustomAttribute, BleetPopoverCustomAttribute, BleetPopoverTriggerCustomAttribute, BleetToasterCustomAttribute, BleetToastCustomAttribute, BleetOverlayCustomAttribute, BleetFocusCustomAttribute, BleetFirstErrorCustomAttribute, BleetAjaxify, BleetDialog, AbstractDialog, AbstractDropdown, AbstractPager, AbstractToaster, PagerEvent, Channels, OverlayAction, OverlayStatus, ProfileAction, ProfileStatus, ModalAction, ModalStatus, ToasterAction, AjaxifyAction, AjaxifyTriggerMode, PopoverAction, PopoverStatus, UploadAction, FormAction, ToasterStatus, MenuAction, MenuStatus, BadgeAction, UiLevel, UiToastIcon, UiIcon, DialogAction, IStorageService, ITransitionService, ITrapFocusService, setState };
|
|
13
15
|
/** The interfaces and the types: named apart, as a bundler transpiling file by file cannot tell them from the values. */
|
|
14
|
-
export type { IOverlay, IOverlayStatus, IModal, IModalStatus, IToaster, IToasterStatus, IToast, IMenu, IMenuStatus, IBadge, IProfile, IProfileStatus, IDialogResponse, IAjaxify, IPopover, IPopoverStatus, IUpload, StateName };
|
|
16
|
+
export type { IOverlay, IOverlayStatus, IModal, IModalStatus, IToaster, IToasterStatus, IToast, IMenu, IMenuStatus, IBadge, IProfile, IProfileStatus, IDialogResponse, IAjaxify, IPopover, IPopoverStatus, IUpload, IForm, IDropdownGroup, IDropdownOption, IDropdownRow, IPagerDetail, StateName };
|
|
15
17
|
export declare const BleetConfiguration: {
|
|
16
18
|
register(container: IContainer): IContainer;
|
|
17
19
|
customize(callback: (options: ConfigInterface) => void): /*elided*/ any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,SAAS,CAAC;AAChD,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,iBA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Aa,EACb,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,MAAM,EACN,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACX,CAAC;AAEF,yHAAyH;AACzH,YAAY,EACR,QAAQ,EACR,cAAc,EACd,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,MAAM,EACN,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,cAAc,EACd,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,OAAO,EACP,KAAK,EACL,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,SAAS,EACZ,CAAC;AAuCF,eAAO,MAAM,kBAAkB;wBAZH,UAAU;wBAMV,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI;CAMF,CAAC"}
|
|
@@ -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, FormAction } from '../enums/event-aggregator';
|
|
2
2
|
export interface IOverlay {
|
|
3
3
|
action: OverlayAction;
|
|
4
4
|
}
|
|
@@ -9,7 +9,7 @@ export interface IModal {
|
|
|
9
9
|
action: ModalAction;
|
|
10
10
|
id?: string;
|
|
11
11
|
url?: string;
|
|
12
|
-
|
|
12
|
+
title?: string;
|
|
13
13
|
content?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface IModalStatus {
|
|
@@ -27,7 +27,7 @@ export interface IToasterStatus {
|
|
|
27
27
|
export interface IToast {
|
|
28
28
|
id?: string;
|
|
29
29
|
icon?: UiToastIcon;
|
|
30
|
-
|
|
30
|
+
level: UiLevel;
|
|
31
31
|
title?: string;
|
|
32
32
|
content: string;
|
|
33
33
|
duration?: number;
|
|
@@ -57,6 +57,13 @@ export interface IUpload {
|
|
|
57
57
|
action: UploadAction;
|
|
58
58
|
id?: string;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Form channel payload: without id, every form of the page answers
|
|
62
|
+
*/
|
|
63
|
+
export interface IForm {
|
|
64
|
+
action: FormAction;
|
|
65
|
+
id?: string;
|
|
66
|
+
}
|
|
60
67
|
export interface IPopover {
|
|
61
68
|
action: PopoverAction;
|
|
62
69
|
id?: string;
|
|
@@ -71,7 +78,8 @@ export interface IAjaxify {
|
|
|
71
78
|
id?: string;
|
|
72
79
|
url?: string;
|
|
73
80
|
method?: string;
|
|
74
|
-
|
|
81
|
+
/** A form posted as multipart, or an object posted as JSON. */
|
|
82
|
+
body?: FormData | object;
|
|
75
83
|
}
|
|
76
84
|
export interface IAjaxifyResponse {
|
|
77
85
|
element?: string;
|
|
@@ -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,
|
|
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,EAAE,UAAU,EACvF,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,O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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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-service.d.ts","sourceRoot":"","sources":["../../../src/services/storage-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,OAAO,EAAE,SAAS,EAAU,MAAM,SAAS,CAAC;AAExD,MAAM,WAAW,eAAgB,SAAQ,cAAc;CAAI;AAC3D,eAAO,MAAM,eAAe,4DAA0G,CAAC;AAEvI;;GAEG;AACH,qBAAa,cAAc;IAGnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"storage-service.d.ts","sourceRoot":"","sources":["../../../src/services/storage-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,OAAO,EAAE,SAAS,EAAU,MAAM,SAAS,CAAC;AAExD,MAAM,WAAW,eAAgB,SAAQ,cAAc;CAAI;AAC3D,eAAO,MAAM,eAAe,4DAA0G,CAAC;AAEvI;;GAEG;AACH,qBAAa,cAAc;IAGnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;gBADD,MAAM,GAAE,OAAoD,EAC5D,CAAC,GAAE,SAA8B;IAKtD;;OAEG;IACI,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,OAAc,GAAG,OAAO;IAgB/C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAMvC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAKnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition-service.d.ts","sourceRoot":"","sources":["../../../src/services/transition-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAS,SAAS,EAAU,MAAM,SAAS,CAAC;AAEjF,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAI;AACjE,eAAO,MAAM,kBAAkB,+DAAmH,CAAC;AAEnJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,WAAW,GAAC,iBAAiB,KAAK,IAAI,CAAA;AAC3E,qBAAa,iBAAiB;IAItB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAHf,eAAe,EAAE,MAAM,CAAQ;
|
|
1
|
+
{"version":3,"file":"transition-service.d.ts","sourceRoot":"","sources":["../../../src/services/transition-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAS,SAAS,EAAU,MAAM,SAAS,CAAC;AAEjF,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAI;AACjE,eAAO,MAAM,kBAAkB,+DAAmH,CAAC;AAEnJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,WAAW,GAAC,iBAAiB,KAAK,IAAI,CAAA;AAC3E,qBAAa,iBAAiB;IAItB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAHf,eAAe,EAAE,MAAM,CAAQ;gBAEjB,MAAM,GAAE,OAAuD,EAC/D,CAAC,GAAE,SAA8B;IAK/C,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,KAAK,CAAC,EAAE,kBAAkB;CAsB1F"}
|
|
@@ -4,7 +4,9 @@ export interface ITrapFocusService extends TrapFocusService {
|
|
|
4
4
|
export declare const ITrapFocusService: import("@aurelia/kernel").InterfaceSymbol<ITrapFocusService>;
|
|
5
5
|
/**
|
|
6
6
|
* Keeps the focus inside a panel (dropdown, select, profile menu): Tab / Shift+Tab loop, arrows move, Escape and a
|
|
7
|
-
* click outside stop it. Elements hidden inside the panel are not focusable.
|
|
7
|
+
* click outside stop it. Elements hidden inside the panel are not focusable. The focusable elements are read again at
|
|
8
|
+
* each key — the panel may have changed since start(): rows filtered, rows rendered again — and a key moves from the
|
|
9
|
+
* element that has the focus, a click on a row included; without one, it moves from an end of the panel.
|
|
8
10
|
*/
|
|
9
11
|
export declare class TrapFocusService {
|
|
10
12
|
private readonly logger;
|
|
@@ -32,9 +34,23 @@ export declare class TrapFocusService {
|
|
|
32
34
|
*/
|
|
33
35
|
stop(): Promise<unknown>;
|
|
34
36
|
private cleanup;
|
|
37
|
+
/**
|
|
38
|
+
* The focusable elements as the panel is now, and the current one: the element that has the focus when it is one
|
|
39
|
+
* of them, else the last one focused by the trap — -1 when it is no longer there.
|
|
40
|
+
*/
|
|
35
41
|
private focusedElementIndex;
|
|
42
|
+
/**
|
|
43
|
+
* The previous element; from the first, the last when it loops; without a current one, the last.
|
|
44
|
+
*/
|
|
36
45
|
private focusPreviousElement;
|
|
46
|
+
/**
|
|
47
|
+
* The next element; from the last, the first when it loops; without a current one, the first.
|
|
48
|
+
*/
|
|
37
49
|
private focusNextElement;
|
|
50
|
+
/**
|
|
51
|
+
* The element at this index takes the focus, on the next frame; an index out of the list keeps the current one.
|
|
52
|
+
*/
|
|
53
|
+
private focusAt;
|
|
38
54
|
private onKeyDown;
|
|
39
55
|
private onClickOutside;
|
|
40
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trap-focus-service.d.ts","sourceRoot":"","sources":["../../../src/services/trap-focus-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,OAAO,EAAE,SAAS,EAAU,MAAM,SAAS,CAAC;AAExD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAI;AAC/D,eAAO,MAAM,iBAAiB,8DAAgH,CAAC;AAE/I
|
|
1
|
+
{"version":3,"file":"trap-focus-service.d.ts","sourceRoot":"","sources":["../../../src/services/trap-focus-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,OAAO,EAAE,SAAS,EAAU,MAAM,SAAS,CAAC;AAExD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAI;AAC/D,eAAO,MAAM,iBAAiB,8DAAgH,CAAC;AAE/I;;;;;GAKG;AACH,qBAAa,gBAAgB;IAgBrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAdf,8BAA8B,SAA8J;IAEnM,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,aAAa,CAA0B;IAC/C,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,OAAO,CAAkB;gBAIZ,MAAM,GAAE,OAAsD,EAC9D,CAAC,GAAE,SAA8B;IAKtD,OAAO,CAAC,sBAAsB;IAa9B;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAUjB,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,QAAQ,EAAE,mBAAmB,CAAC,EAAE,WAAW;IAiCvK;;;OAGG;IACI,IAAI;IAkBX,OAAO,CAAC,OAAO;IAaf;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAY5B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAYxB;;OAEG;IACH,OAAO,CAAC,OAAO;IAWf,OAAO,CAAC,SAAS,CAkBf;IACF,OAAO,CAAC,cAAc,CAQrB;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UiToastIcon } from '../enums/event-aggregator';
|
|
2
|
+
import { IToast } from '../interfaces/event-aggregator';
|
|
3
|
+
/**
|
|
4
|
+
* A toast with its defaults filled, the same for the bleet-toaster attribute and AbstractToaster.
|
|
5
|
+
*/
|
|
6
|
+
export interface IToastWithDefaults extends IToast {
|
|
7
|
+
id: string;
|
|
8
|
+
icon: UiToastIcon;
|
|
9
|
+
duration: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The defaults of a published toast: an id when none is given, the Info level and icon, no duration (it stays until
|
|
13
|
+
* closed).
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildToast(toast: IToast): IToastWithDefaults;
|
|
16
|
+
/**
|
|
17
|
+
* A manual popover container (popover="manual") shown again when it already was, so that it passes over what opened
|
|
18
|
+
* since (a dialog opened by showModal(), top layer).
|
|
19
|
+
*/
|
|
20
|
+
export declare function raisePopover(element: HTMLElement): void;
|
|
21
|
+
/**
|
|
22
|
+
* The popover container hidden, once its last toast is gone.
|
|
23
|
+
*/
|
|
24
|
+
export declare function lowerPopover(element: HTMLElement): void;
|
|
25
|
+
//# sourceMappingURL=toaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/utils/toaster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAC,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAS5D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAQvD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAKvD"}
|
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-rc10",
|
|
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",
|