@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.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":
|
|
@@ -2189,9 +2194,9 @@ __decorateClass([
|
|
|
2189
2194
|
__decorateClass([
|
|
2190
2195
|
(0, import_decorators.state)()
|
|
2191
2196
|
], OverlayDialog.prototype, "_isClosing", 2);
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2197
|
+
if (!customElements.get("overlay-dialog")) {
|
|
2198
|
+
customElements.define("overlay-dialog", OverlayDialog);
|
|
2199
|
+
}
|
|
2195
2200
|
|
|
2196
2201
|
// src/dialog.ts
|
|
2197
2202
|
var _controller, _element, _DialogSingleton_instances, ensureElement_fn;
|
|
@@ -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);
|
|
@@ -3192,9 +3200,9 @@ __decorateClass([
|
|
|
3192
3200
|
__decorateClass([
|
|
3193
3201
|
(0, import_decorators2.state)()
|
|
3194
3202
|
], ToastContainer.prototype, "_state", 2);
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3203
|
+
if (!customElements.get("toast-container")) {
|
|
3204
|
+
customElements.define("toast-container", ToastContainer);
|
|
3205
|
+
}
|
|
3198
3206
|
|
|
3199
3207
|
// src/toast/toast.ts
|
|
3200
3208
|
var _controller2, _element2, _ToastSingleton_instances, ensureElement_fn2;
|