@konomi-app/ui 5.7.1 → 5.8.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/index.cjs +8 -0
- 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 +8 -0
- 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, {
|
|
@@ -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":
|
|
@@ -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);
|