@konomi-app/ui 5.7.1 → 5.8.1
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/index.cjs +14 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -95,6 +95,7 @@ interface ShowOptions {
|
|
|
95
95
|
type: DialogType;
|
|
96
96
|
label?: string;
|
|
97
97
|
description?: string;
|
|
98
|
+
html?: string;
|
|
98
99
|
icon?: AlertIcon;
|
|
99
100
|
progress?: number;
|
|
100
101
|
allowOutsideClick?: boolean;
|
|
@@ -171,6 +172,7 @@ declare class DialogController {
|
|
|
171
172
|
setProgress(percent: number): void;
|
|
172
173
|
setLabel(label: string): void;
|
|
173
174
|
setDescription(description: string): void;
|
|
175
|
+
setHtml(html: string): void;
|
|
174
176
|
setQueueItems(items: TaskItemInput[]): void;
|
|
175
177
|
showQueue(items: TaskItemInput[], title?: string): void;
|
|
176
178
|
setTitle(title: string): void;
|
|
@@ -265,6 +267,7 @@ declare class DialogSingleton {
|
|
|
265
267
|
setProgress(percent: number): void;
|
|
266
268
|
setLabel(label: string): void;
|
|
267
269
|
setDescription(description: string): void;
|
|
270
|
+
setHtml(html: string): void;
|
|
268
271
|
setQueueItems(items: TaskItemInput[]): void;
|
|
269
272
|
showQueue(items: TaskItemInput[], title?: string): void;
|
|
270
273
|
activateQueue(key: string): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ interface ShowOptions {
|
|
|
95
95
|
type: DialogType;
|
|
96
96
|
label?: string;
|
|
97
97
|
description?: string;
|
|
98
|
+
html?: string;
|
|
98
99
|
icon?: AlertIcon;
|
|
99
100
|
progress?: number;
|
|
100
101
|
allowOutsideClick?: boolean;
|
|
@@ -171,6 +172,7 @@ declare class DialogController {
|
|
|
171
172
|
setProgress(percent: number): void;
|
|
172
173
|
setLabel(label: string): void;
|
|
173
174
|
setDescription(description: string): void;
|
|
175
|
+
setHtml(html: string): void;
|
|
174
176
|
setQueueItems(items: TaskItemInput[]): void;
|
|
175
177
|
showQueue(items: TaskItemInput[], title?: string): void;
|
|
176
178
|
setTitle(title: string): void;
|
|
@@ -265,6 +267,7 @@ declare class DialogSingleton {
|
|
|
265
267
|
setProgress(percent: number): void;
|
|
266
268
|
setLabel(label: string): void;
|
|
267
269
|
setDescription(description: string): void;
|
|
270
|
+
setHtml(html: string): void;
|
|
268
271
|
setQueueItems(items: TaskItemInput[]): void;
|
|
269
272
|
showQueue(items: TaskItemInput[], title?: string): void;
|
|
270
273
|
activateQueue(key: string): void;
|
package/dist/index.js
CHANGED
|
@@ -234,6 +234,7 @@ var DialogController = class {
|
|
|
234
234
|
dialogType: options.type,
|
|
235
235
|
label: options.label ?? "",
|
|
236
236
|
description: options.description ?? "",
|
|
237
|
+
html: options.html ?? "",
|
|
237
238
|
icon: options.icon ?? null,
|
|
238
239
|
progress: options.progress ?? null,
|
|
239
240
|
allowOutsideClick: options.allowOutsideClick ?? false,
|
|
@@ -307,6 +308,9 @@ var DialogController = class {
|
|
|
307
308
|
setDescription(description) {
|
|
308
309
|
__privateMethod(this, _DialogController_instances, update_fn).call(this, { description });
|
|
309
310
|
}
|
|
311
|
+
setHtml(html3) {
|
|
312
|
+
__privateMethod(this, _DialogController_instances, update_fn).call(this, { html: html3 });
|
|
313
|
+
}
|
|
310
314
|
// ─── Queue ───────────────────────────────────────────────
|
|
311
315
|
setQueueItems(items) {
|
|
312
316
|
__privateMethod(this, _DialogController_instances, update_fn).call(this, {
|
|
@@ -669,7 +673,7 @@ updateItemStatus_fn = function(key, itemKey, status) {
|
|
|
669
673
|
|
|
670
674
|
// src/overlay-dialog.ts
|
|
671
675
|
import { LitElement, html, nothing } from "lit";
|
|
672
|
-
import {
|
|
676
|
+
import { property, state } from "lit/decorators.js";
|
|
673
677
|
import { keyed } from "lit/directives/keyed.js";
|
|
674
678
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
675
679
|
|
|
@@ -2074,6 +2078,7 @@ var OverlayDialog = class extends LitElement {
|
|
|
2074
2078
|
case "loading":
|
|
2075
2079
|
return html`
|
|
2076
2080
|
${this._renderSpinner()} ${s.label ? html`<p class="label">${s.label}</p>` : nothing}
|
|
2081
|
+
${s.html ? html`<div class="html-content">${unsafeHTML(s.html)}</div>` : nothing}
|
|
2077
2082
|
${s.description ? html`<p class="description">${s.description}</p>` : nothing}
|
|
2078
2083
|
`;
|
|
2079
2084
|
case "alert":
|
|
@@ -2161,9 +2166,9 @@ __decorateClass([
|
|
|
2161
2166
|
__decorateClass([
|
|
2162
2167
|
state()
|
|
2163
2168
|
], OverlayDialog.prototype, "_isClosing", 2);
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2169
|
+
if (!customElements.get("overlay-dialog")) {
|
|
2170
|
+
customElements.define("overlay-dialog", OverlayDialog);
|
|
2171
|
+
}
|
|
2167
2172
|
|
|
2168
2173
|
// src/dialog.ts
|
|
2169
2174
|
var _controller, _element, _DialogSingleton_instances, ensureElement_fn;
|
|
@@ -2226,6 +2231,9 @@ var DialogSingleton = class {
|
|
|
2226
2231
|
setDescription(description) {
|
|
2227
2232
|
__privateGet(this, _controller).setDescription(description);
|
|
2228
2233
|
}
|
|
2234
|
+
setHtml(html3) {
|
|
2235
|
+
__privateGet(this, _controller).setHtml(html3);
|
|
2236
|
+
}
|
|
2229
2237
|
// ─── Queue ───────────────────────────────────────────────
|
|
2230
2238
|
setQueueItems(items) {
|
|
2231
2239
|
__privateGet(this, _controller).setQueueItems(items);
|
|
@@ -2509,7 +2517,7 @@ enforceMaxVisible_fn = function() {
|
|
|
2509
2517
|
|
|
2510
2518
|
// src/toast/toast-container.ts
|
|
2511
2519
|
import { LitElement as LitElement2, html as html2, nothing as nothing2 } from "lit";
|
|
2512
|
-
import {
|
|
2520
|
+
import { property as property2, state as state2 } from "lit/decorators.js";
|
|
2513
2521
|
import { repeat } from "lit/directives/repeat.js";
|
|
2514
2522
|
|
|
2515
2523
|
// src/toast/styles.ts
|
|
@@ -3164,9 +3172,9 @@ __decorateClass([
|
|
|
3164
3172
|
__decorateClass([
|
|
3165
3173
|
state2()
|
|
3166
3174
|
], ToastContainer.prototype, "_state", 2);
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3175
|
+
if (!customElements.get("toast-container")) {
|
|
3176
|
+
customElements.define("toast-container", ToastContainer);
|
|
3177
|
+
}
|
|
3170
3178
|
|
|
3171
3179
|
// src/toast/toast.ts
|
|
3172
3180
|
var _controller2, _element2, _ToastSingleton_instances, ensureElement_fn2;
|