@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 CHANGED
@@ -262,6 +262,7 @@ var DialogController = class {
262
262
  dialogType: options.type,
263
263
  label: options.label ?? "",
264
264
  description: options.description ?? "",
265
+ html: options.html ?? "",
265
266
  icon: options.icon ?? null,
266
267
  progress: options.progress ?? null,
267
268
  allowOutsideClick: options.allowOutsideClick ?? false,
@@ -335,6 +336,9 @@ var DialogController = class {
335
336
  setDescription(description) {
336
337
  __privateMethod(this, _DialogController_instances, update_fn).call(this, { description });
337
338
  }
339
+ setHtml(html3) {
340
+ __privateMethod(this, _DialogController_instances, update_fn).call(this, { html: html3 });
341
+ }
338
342
  // ─── Queue ───────────────────────────────────────────────
339
343
  setQueueItems(items) {
340
344
  __privateMethod(this, _DialogController_instances, update_fn).call(this, {
@@ -2102,6 +2106,7 @@ var OverlayDialog = class extends import_lit2.LitElement {
2102
2106
  case "loading":
2103
2107
  return import_lit2.html`
2104
2108
  ${this._renderSpinner()} ${s.label ? import_lit2.html`<p class="label">${s.label}</p>` : import_lit2.nothing}
2109
+ ${s.html ? import_lit2.html`<div class="html-content">${(0, import_unsafe_html.unsafeHTML)(s.html)}</div>` : import_lit2.nothing}
2105
2110
  ${s.description ? import_lit2.html`<p class="description">${s.description}</p>` : import_lit2.nothing}
2106
2111
  `;
2107
2112
  case "alert":
@@ -2254,6 +2259,9 @@ var DialogSingleton = class {
2254
2259
  setDescription(description) {
2255
2260
  __privateGet(this, _controller).setDescription(description);
2256
2261
  }
2262
+ setHtml(html3) {
2263
+ __privateGet(this, _controller).setHtml(html3);
2264
+ }
2257
2265
  // ─── Queue ───────────────────────────────────────────────
2258
2266
  setQueueItems(items) {
2259
2267
  __privateGet(this, _controller).setQueueItems(items);