@a11d/lit-application 0.0.52 → 0.1.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/dist/Application.d.ts +1 -2
- package/dist/Application.d.ts.map +1 -1
- package/dist/Application.js +4 -10
- package/dist/ApplicationTopLayer.d.ts +13 -0
- package/dist/ApplicationTopLayer.d.ts.map +1 -0
- package/dist/ApplicationTopLayer.js +29 -0
- package/dist/Dialog/Dialog.d.ts +1 -1
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +6 -1
- package/dist/Dialog/DialogComponent.d.ts +1 -1
- package/dist/Dialog/DialogComponent.d.ts.map +1 -1
- package/dist/Dialog/DialogComponent.js +23 -17
- package/dist/Dialog/index.d.ts +0 -1
- package/dist/Dialog/index.d.ts.map +1 -1
- package/dist/Dialog/index.js +0 -1
- package/dist/Notification/NotificationComponent.d.ts +31 -4
- package/dist/Notification/NotificationComponent.d.ts.map +1 -1
- package/dist/Notification/NotificationComponent.js +62 -1
- package/dist/Notification/index.d.ts +0 -1
- package/dist/Notification/index.d.ts.map +1 -1
- package/dist/Notification/index.js +0 -1
- package/dist/Page/PageComponent.d.ts +1 -1
- package/dist/Page/PageComponent.d.ts.map +1 -1
- package/dist/Page/PageComponent.js +12 -6
- package/dist/Page/PageError.js +20 -20
- package/dist/Page/PageHost.d.ts +1 -1
- package/dist/Page/PageHost.d.ts.map +1 -1
- package/dist/Page/PageHost.js +11 -10
- package/dist/Router/Router.d.ts +1 -1
- package/dist/Router/Router.d.ts.map +1 -1
- package/dist/Router/Router.js +7 -2
- package/dist/Router/routerLink.js +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utilities/HttpError.js +39 -38
- package/dist/utilities/HttpErrorCode.d.ts +1 -1
- package/dist/utilities/HttpErrorCode.d.ts.map +1 -1
- package/dist/utilities/HttpErrorCode.js +41 -1
- package/dist/utilities/WindowHelper.d.ts +1 -1
- package/dist/utilities/WindowHelper.d.ts.map +1 -1
- package/dist/utilities/WindowHelper.js +9 -4
- package/package.json +2 -1
- package/dist/Dialog/DialogHost.d.ts +0 -11
- package/dist/Dialog/DialogHost.d.ts.map +0 -1
- package/dist/Dialog/DialogHost.js +0 -13
- package/dist/Notification/NotificationHost.d.ts +0 -44
- package/dist/Notification/NotificationHost.d.ts.map +0 -1
- package/dist/Notification/NotificationHost.js +0 -95
|
@@ -1 +1,41 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var HttpErrorCode;
|
|
2
|
+
(function (HttpErrorCode) {
|
|
3
|
+
HttpErrorCode[HttpErrorCode["BadRequest"] = 400] = "BadRequest";
|
|
4
|
+
HttpErrorCode[HttpErrorCode["Unauthorized"] = 401] = "Unauthorized";
|
|
5
|
+
HttpErrorCode[HttpErrorCode["PaymentRequired"] = 402] = "PaymentRequired";
|
|
6
|
+
HttpErrorCode[HttpErrorCode["Forbidden"] = 403] = "Forbidden";
|
|
7
|
+
HttpErrorCode[HttpErrorCode["NotFound"] = 404] = "NotFound";
|
|
8
|
+
HttpErrorCode[HttpErrorCode["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
9
|
+
HttpErrorCode[HttpErrorCode["NotAcceptable"] = 406] = "NotAcceptable";
|
|
10
|
+
HttpErrorCode[HttpErrorCode["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
|
|
11
|
+
HttpErrorCode[HttpErrorCode["RequestTimeout"] = 408] = "RequestTimeout";
|
|
12
|
+
HttpErrorCode[HttpErrorCode["Conflict"] = 409] = "Conflict";
|
|
13
|
+
HttpErrorCode[HttpErrorCode["Gone"] = 410] = "Gone";
|
|
14
|
+
HttpErrorCode[HttpErrorCode["LengthRequired"] = 411] = "LengthRequired";
|
|
15
|
+
HttpErrorCode[HttpErrorCode["PreconditionFailed"] = 412] = "PreconditionFailed";
|
|
16
|
+
HttpErrorCode[HttpErrorCode["RequestEntityTooLarge"] = 413] = "RequestEntityTooLarge";
|
|
17
|
+
HttpErrorCode[HttpErrorCode["RequestUriTooLong"] = 414] = "RequestUriTooLong";
|
|
18
|
+
HttpErrorCode[HttpErrorCode["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
|
|
19
|
+
HttpErrorCode[HttpErrorCode["RequestedRangeNotSatisfiable"] = 416] = "RequestedRangeNotSatisfiable";
|
|
20
|
+
HttpErrorCode[HttpErrorCode["ExpectationFailed"] = 417] = "ExpectationFailed";
|
|
21
|
+
HttpErrorCode[HttpErrorCode["MisdirectedRequest"] = 421] = "MisdirectedRequest";
|
|
22
|
+
HttpErrorCode[HttpErrorCode["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
23
|
+
HttpErrorCode[HttpErrorCode["Locked"] = 423] = "Locked";
|
|
24
|
+
HttpErrorCode[HttpErrorCode["FailedDependency"] = 424] = "FailedDependency";
|
|
25
|
+
HttpErrorCode[HttpErrorCode["UpgradeRequired"] = 426] = "UpgradeRequired";
|
|
26
|
+
HttpErrorCode[HttpErrorCode["PreconditionRequired"] = 428] = "PreconditionRequired";
|
|
27
|
+
HttpErrorCode[HttpErrorCode["TooManyRequests"] = 429] = "TooManyRequests";
|
|
28
|
+
HttpErrorCode[HttpErrorCode["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
|
|
29
|
+
HttpErrorCode[HttpErrorCode["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
30
|
+
HttpErrorCode[HttpErrorCode["InternalServerError"] = 500] = "InternalServerError";
|
|
31
|
+
HttpErrorCode[HttpErrorCode["NotImplemented"] = 501] = "NotImplemented";
|
|
32
|
+
HttpErrorCode[HttpErrorCode["BadGateway"] = 502] = "BadGateway";
|
|
33
|
+
HttpErrorCode[HttpErrorCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
34
|
+
HttpErrorCode[HttpErrorCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
35
|
+
HttpErrorCode[HttpErrorCode["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
|
|
36
|
+
HttpErrorCode[HttpErrorCode["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
|
|
37
|
+
HttpErrorCode[HttpErrorCode["InsufficientStorage"] = 507] = "InsufficientStorage";
|
|
38
|
+
HttpErrorCode[HttpErrorCode["LoopDetected"] = 508] = "LoopDetected";
|
|
39
|
+
HttpErrorCode[HttpErrorCode["NotExtended"] = 510] = "NotExtended";
|
|
40
|
+
HttpErrorCode[HttpErrorCode["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
41
|
+
})(HttpErrorCode || (HttpErrorCode = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WindowHelper.d.ts","sourceRoot":"","sources":["../../utilities/WindowHelper.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"WindowHelper.d.ts","sourceRoot":"","sources":["../../utilities/WindowHelper.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IAAG,GAAG,IAAA;IAAE,MAAM,IAAA;CAAE;AAE1C,qBAAa,YAAY;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAAM;IAE3D,MAAM,CAAC,IAAI,CAAC,IAAI,SAA2B,EAAE,IAAI,iBAAqB;WAyBzD,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC;CAIvE"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
export var WindowOpenMode;
|
|
2
|
+
(function (WindowOpenMode) {
|
|
3
|
+
WindowOpenMode[WindowOpenMode["Tab"] = 0] = "Tab";
|
|
4
|
+
WindowOpenMode[WindowOpenMode["Window"] = 1] = "Window";
|
|
5
|
+
})(WindowOpenMode || (WindowOpenMode = {}));
|
|
1
6
|
export class WindowHelper {
|
|
2
|
-
static open(path = window.location.pathname, mode =
|
|
7
|
+
static open(path = window.location.pathname, mode = WindowOpenMode.Tab) {
|
|
3
8
|
return new Promise((resolve, reject) => {
|
|
4
|
-
if (window.matchMedia('(display-mode: standalone)').matches && mode ===
|
|
5
|
-
mode =
|
|
9
|
+
if (window.matchMedia('(display-mode: standalone)').matches && mode === WindowOpenMode.Tab && !manifest?.display_override?.includes('tabbed')) {
|
|
10
|
+
mode = WindowOpenMode.Window;
|
|
6
11
|
}
|
|
7
|
-
const newWindow = window.open(path, undefined, mode ===
|
|
12
|
+
const newWindow = window.open(path, undefined, mode === WindowOpenMode.Tab ? '' : 'popup');
|
|
8
13
|
if (!newWindow) {
|
|
9
14
|
return reject(new Error('Failed to open a window, probably because the permission is denied.'));
|
|
10
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a11d/lit-application",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Lit-based application shell.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@a11d/root-css-injector": "x",
|
|
35
35
|
"@a11d/non-inertable-component": "x",
|
|
36
36
|
"@lit-labs/router": "0.x",
|
|
37
|
+
"@3mo/query-connected-instances": "x",
|
|
37
38
|
"path-to-regexp": "6.x",
|
|
38
39
|
"ts-key-enum": "x",
|
|
39
40
|
"tslib": "x",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from '@a11d/lit';
|
|
2
|
-
export declare class DialogHost extends Component {
|
|
3
|
-
static readonly instance: DialogHost | undefined;
|
|
4
|
-
protected createRenderRoot(): this;
|
|
5
|
-
}
|
|
6
|
-
declare global {
|
|
7
|
-
interface HTMLElementTagNameMap {
|
|
8
|
-
'lit-dialog-host': DialogHost;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=DialogHost.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHost.d.ts","sourceRoot":"","sources":["../../Dialog/DialogHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,WAAW,CAAA;AAGhD,qBACa,UAAW,SAAQ,SAAS;IAChB,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAA;cAErD,gBAAgB;CACnC;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,UAAU,CAAA;KAC7B;CACD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Component, component } from '@a11d/lit';
|
|
3
|
-
import { queryInstanceElement } from '../index.js';
|
|
4
|
-
let DialogHost = class DialogHost extends Component {
|
|
5
|
-
createRenderRoot() { return this; }
|
|
6
|
-
};
|
|
7
|
-
__decorate([
|
|
8
|
-
queryInstanceElement()
|
|
9
|
-
], DialogHost, "instance", void 0);
|
|
10
|
-
DialogHost = __decorate([
|
|
11
|
-
component('lit-dialog-host')
|
|
12
|
-
], DialogHost);
|
|
13
|
-
export { DialogHost };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { NonInertableComponent } from '@a11d/non-inertable-component';
|
|
2
|
-
import { NotificationComponent } from './NotificationComponent.js';
|
|
3
|
-
export declare const enum NotificationType {
|
|
4
|
-
Info = "info",
|
|
5
|
-
Success = "success",
|
|
6
|
-
Warning = "warning",
|
|
7
|
-
Error = "error"
|
|
8
|
-
}
|
|
9
|
-
export type Notification = {
|
|
10
|
-
type?: NotificationType;
|
|
11
|
-
message: string;
|
|
12
|
-
actions?: Array<NotificationAction>;
|
|
13
|
-
};
|
|
14
|
-
type NotificationAction = {
|
|
15
|
-
title: string;
|
|
16
|
-
handleClick: () => void | PromiseLike<void>;
|
|
17
|
-
};
|
|
18
|
-
type NonTypedNotification = Omit<Notification, 'type'>;
|
|
19
|
-
type NonTypedNotificationParameters = [notification: NonTypedNotification] | [message: string, ...actions: Array<NotificationAction>];
|
|
20
|
-
type NonTypedNotificationWithErrorParameters = [notification: Partial<NonTypedNotification>] | [message?: string, ...actions: Array<NotificationAction>];
|
|
21
|
-
export declare class NotificationHost extends NonInertableComponent {
|
|
22
|
-
static readonly shownNotifications: Set<Notification>;
|
|
23
|
-
static readonly instance: NotificationHost | undefined;
|
|
24
|
-
static notificationComponent: () => <T extends NotificationComponent>(Constructor: Constructor<T>) => void;
|
|
25
|
-
private static NotificationComponentConstructor;
|
|
26
|
-
notifyInfo(...notification: NonTypedNotificationParameters): Promise<void>;
|
|
27
|
-
notifySuccess(...notification: NonTypedNotificationParameters): Promise<void>;
|
|
28
|
-
notifyWarning(...notification: NonTypedNotificationParameters): Promise<void>;
|
|
29
|
-
notifyError(...notification: NonTypedNotificationParameters): Promise<void>;
|
|
30
|
-
notifyAndThrowError<TError extends Error>(error: TError, ...notification: NonTypedNotificationWithErrorParameters): void;
|
|
31
|
-
notify(notification: Notification): Promise<void>;
|
|
32
|
-
createRenderRoot(): this;
|
|
33
|
-
static get styles(): import("@a11d/lit").CSSResult;
|
|
34
|
-
private readonly notifications;
|
|
35
|
-
protected get template(): import("lit-html").TemplateResult<1>;
|
|
36
|
-
}
|
|
37
|
-
declare global {
|
|
38
|
-
const notificationHost: NotificationHost;
|
|
39
|
-
interface HTMLElementTagNameMap {
|
|
40
|
-
'lit-notification-host': NotificationHost;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=NotificationHost.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationHost.d.ts","sourceRoot":"","sources":["../../Notification/NotificationHost.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAErE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE,0BAAkB,gBAAgB;IACjC,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CACf;AAED,MAAM,MAAM,YAAY,GAAG;IAC1B,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAA;CACnC,CAAA;AAED,KAAK,kBAAkB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;CAC3C,CAAA;AAED,KAAK,oBAAoB,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;AAEtD,KAAK,8BAA8B,GAChC,CAAC,YAAY,EAAE,oBAAoB,CAAC,GACpC,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAE3D,KAAK,uCAAuC,GACzC,CAAC,YAAY,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,GAC7C,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAS5D,qBACa,gBAAiB,SAAQ,qBAAqB;IAC1D,MAAM,CAAC,QAAQ,CAAC,kBAAkB,oBAA0B;IAEpC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAE9E,MAAM,CAAC,qBAAqB,+EAI3B;IAED,OAAO,CAAC,MAAM,CAAC,gCAAgC,CAAoC;IAEnF,UAAU,CAAC,GAAG,YAAY,EAAE,8BAA8B;IAI1D,aAAa,CAAC,GAAG,YAAY,EAAE,8BAA8B;IAI7D,aAAa,CAAC,GAAG,YAAY,EAAE,8BAA8B;IAI7D,WAAW,CAAC,GAAG,YAAY,EAAE,8BAA8B;IAI3D,mBAAmB,CAAC,MAAM,SAAS,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,YAAY,EAAE,uCAAuC;IAS3G,MAAM,CAAC,YAAY,EAAE,YAAY;IAmB9B,gBAAgB;IAIzB,WAAoB,MAAM,kCAiBzB;IAEQ,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmC;IAE1E,cAAuB,QAAQ,yCAE9B;CACD;AAOD,OAAO,CAAC,MAAM,CAAC;IAEd,MAAM,gBAAgB,EAAE,gBAAgB,CAAA;IACxC,UAAU,qBAAqB;QAC9B,uBAAuB,EAAE,gBAAgB,CAAA;KACzC;CACD"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
var NotificationHost_1;
|
|
2
|
-
import { __decorate } from "tslib";
|
|
3
|
-
import { state, css, html, component, LitElement } from '@a11d/lit';
|
|
4
|
-
import { NonInertableComponent } from '@a11d/non-inertable-component';
|
|
5
|
-
import { queryInstanceElement } from '../index.js';
|
|
6
|
-
function normalizeNonTypedNotificationParameters(...parameters) {
|
|
7
|
-
return typeof parameters[0] !== 'string' ? parameters[0] : {
|
|
8
|
-
message: parameters[0],
|
|
9
|
-
actions: parameters.slice(1),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
let NotificationHost = NotificationHost_1 = class NotificationHost extends NonInertableComponent {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.notifications = new Set();
|
|
16
|
-
}
|
|
17
|
-
notifyInfo(...notification) {
|
|
18
|
-
return this.notify({ type: "info" /* NotificationType.Info */, ...normalizeNonTypedNotificationParameters(...notification) });
|
|
19
|
-
}
|
|
20
|
-
notifySuccess(...notification) {
|
|
21
|
-
return this.notify({ type: "success" /* NotificationType.Success */, ...normalizeNonTypedNotificationParameters(...notification) });
|
|
22
|
-
}
|
|
23
|
-
notifyWarning(...notification) {
|
|
24
|
-
return this.notify({ type: "warning" /* NotificationType.Warning */, ...normalizeNonTypedNotificationParameters(...notification) });
|
|
25
|
-
}
|
|
26
|
-
notifyError(...notification) {
|
|
27
|
-
return this.notify({ type: "error" /* NotificationType.Error */, ...normalizeNonTypedNotificationParameters(...notification) });
|
|
28
|
-
}
|
|
29
|
-
notifyAndThrowError(error, ...notification) {
|
|
30
|
-
const normalizedNotification = notification.length === 0
|
|
31
|
-
? {}
|
|
32
|
-
: normalizeNonTypedNotificationParameters(...notification);
|
|
33
|
-
normalizedNotification.message ?? (normalizedNotification.message = error.message);
|
|
34
|
-
this.notifyError(normalizedNotification);
|
|
35
|
-
throw error;
|
|
36
|
-
}
|
|
37
|
-
async notify(notification) {
|
|
38
|
-
const notificationComponent = new NotificationHost_1.NotificationComponentConstructor;
|
|
39
|
-
notificationComponent.notification = notification;
|
|
40
|
-
if (notificationComponent instanceof LitElement) {
|
|
41
|
-
this.notifications.add(notificationComponent);
|
|
42
|
-
this.requestUpdate();
|
|
43
|
-
}
|
|
44
|
-
await notificationComponent.show();
|
|
45
|
-
if (notificationComponent instanceof LitElement) {
|
|
46
|
-
this.notifications.delete(notificationComponent);
|
|
47
|
-
this.requestUpdate();
|
|
48
|
-
}
|
|
49
|
-
NotificationHost_1.shownNotifications.add(notification);
|
|
50
|
-
}
|
|
51
|
-
createRenderRoot() {
|
|
52
|
-
return this;
|
|
53
|
-
}
|
|
54
|
-
static get styles() {
|
|
55
|
-
return css `
|
|
56
|
-
:host {
|
|
57
|
-
z-index: var(--lit-notification-host-z-index, 8);
|
|
58
|
-
position: fixed;
|
|
59
|
-
inset-block-end: 0;
|
|
60
|
-
inset-inline: 0;
|
|
61
|
-
max-height: max(50vh, 50%);
|
|
62
|
-
|
|
63
|
-
display: grid;
|
|
64
|
-
justify-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
gap: 0.5vh;
|
|
67
|
-
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
}
|
|
72
|
-
get template() {
|
|
73
|
-
return html `${this.notifications}`;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
NotificationHost.shownNotifications = new Set();
|
|
77
|
-
NotificationHost.notificationComponent = () => {
|
|
78
|
-
return (Constructor) => {
|
|
79
|
-
NotificationHost_1.NotificationComponentConstructor = Constructor;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
__decorate([
|
|
83
|
-
state()
|
|
84
|
-
], NotificationHost.prototype, "notifications", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
queryInstanceElement()
|
|
87
|
-
], NotificationHost, "instance", void 0);
|
|
88
|
-
NotificationHost = NotificationHost_1 = __decorate([
|
|
89
|
-
component('lit-notification-host')
|
|
90
|
-
], NotificationHost);
|
|
91
|
-
export { NotificationHost };
|
|
92
|
-
Object.defineProperty(globalThis, 'notificationHost', {
|
|
93
|
-
get: () => NotificationHost.instance,
|
|
94
|
-
configurable: false,
|
|
95
|
-
});
|