@luzmo/embed 9.1.0-es2021 → 10.0.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/CHANGELOG.md +20 -0
- package/MIGRATIONS.md +7 -0
- package/README.md +53 -4
- package/index.cjs +71 -39
- package/index.dashboard-next.cjs +6291 -0
- package/index.dashboard-next.js +6259 -0
- package/index.js +70 -39
- package/index.rn.cjs +19 -2
- package/index.rn.js +18 -2
- package/index.shared.cjs +19 -2
- package/index.shared.js +18 -2
- package/luzmo-dashboard-next.min.js +157860 -0
- package/luzmo-embed.min.js +196 -165
- package/package.json +16 -9
- package/src/index.common.d.ts +1 -0
- package/src/index.d.ts +3 -0
- package/src/index.dashboard-next.d.ts +1 -0
- package/src/index.internal.d.ts +3 -0
- package/src/lib/dashboard/dashboard-base.d.ts +1 -1
- package/src/lib/dashboard-next/dashboard-next-component.d.ts +76 -0
- package/src/lib/dashboard-next/data/dashboard-api.d.ts +9 -0
- package/src/lib/dashboard-next/data/dashboard-errors.d.ts +5 -0
- package/src/lib/dashboard-next/data/dashboard-loading-controller.d.ts +21 -0
- package/src/lib/dashboard-next/data/dashboard-metadata-controller.d.ts +25 -0
- package/src/lib/dashboard-next/data/dashboard-permissions-api.d.ts +4 -0
- package/src/lib/dashboard-next/data/dashboard-publishing-api.d.ts +5 -0
- package/src/lib/dashboard-next/data/dashboard-renderer-controller.d.ts +25 -0
- package/src/lib/dashboard-next/data/dashboard-variant-management-controller.d.ts +30 -0
- package/src/lib/dashboard-next/data/dashboard-variant-rename-controller.d.ts +18 -0
- package/src/lib/dashboard-next/data/dashboard-variants-api.d.ts +30 -0
- package/src/lib/dashboard-next/data/dashboard-variants-controller.d.ts +47 -0
- package/src/lib/dashboard-next/data/load-dashboard-definition.d.ts +20 -0
- package/src/lib/dashboard-next/data/load-dashboard-layout.d.ts +4 -0
- package/src/lib/dashboard-next/grid/dashboard-grid-layout-controller.d.ts +23 -0
- package/src/lib/dashboard-next/grid/dashboard-layout-skeleton.d.ts +3 -0
- package/src/lib/dashboard-next/grid/dashboard-next-grid.d.ts +56 -0
- package/src/lib/dashboard-next/grid/dashboard-next-viz-item.d.ts +26 -0
- package/src/lib/dashboard-next/grid/dashboard-skeleton-motion-controller.d.ts +15 -0
- package/src/lib/dashboard-next/grid/render-dashboard-chart.d.ts +21 -0
- package/src/lib/dashboard-next/localization/dashboard-next-translations.d.ts +89 -0
- package/src/lib/dashboard-next/localization/resolve-dashboard-next-translations.d.ts +6 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-config.d.ts +63 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings-controller.d.ts +34 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings.d.ts +12 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-chart-type-conversion.d.ts +6 -0
- package/src/lib/dashboard-next/settings/dashboard-chart-settings-context.d.ts +31 -0
- package/src/lib/dashboard-next/settings/dashboard-editor-controller.d.ts +32 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-content.d.ts +6 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-controller.d.ts +43 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-popover.d.ts +13 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-positioning.d.ts +1 -0
- package/src/lib/dashboard-next/settings/dashboard-settings.test-utils.d.ts +19 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-metadata.d.ts +11 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-settings-controller.d.ts +41 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-settings.d.ts +15 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-slots.d.ts +3 -0
- package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings-controller.d.ts +19 -0
- package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings.d.ts +9 -0
- package/src/lib/dashboard-next/state/config/dashboard-config-store.d.ts +28 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-controller.d.ts +47 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-selectors.d.ts +6 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-state.d.ts +46 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-store.d.ts +18 -0
- package/src/lib/dashboard-next/state/content/dashboard-option-changes.d.ts +9 -0
- package/src/lib/dashboard-next/state/dashboard-stores.d.ts +12 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-editor-state.d.ts +34 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-runtime-state.d.ts +47 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-runtime-store.d.ts +22 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-variants-state.d.ts +42 -0
- package/src/lib/dashboard-next/toolbar/dashboard-next-toolbar.d.ts +36 -0
- package/src/lib/dashboard-next/toolbar/dashboard-picker.d.ts +36 -0
- package/src/lib/dashboard-next/toolbar/dashboard-toolbar-theme.d.ts +13 -0
- package/src/lib/dashboard-next/toolbar/dashboard-variant-delete.d.ts +15 -0
- package/src/lib/dashboard-next/views/dashboard-view-controller.d.ts +13 -0
- package/src/lib/dashboard-next/views/dashboard-view-layout.d.ts +3 -0
- package/src/lib/dashboard-next/views/dashboard-views.d.ts +44 -0
- package/src/lib/iq-components/luzmo-iq-answer.d.ts +1 -1
- package/src/lib/iq-components/luzmo-iq-chat.d.ts +1 -1
- package/src/lib/shared/helpers/normalize-viz-item-slots.d.ts +2 -0
- package/src/lib/shared/models/dashboard-definition.model.d.ts +34 -0
- package/src/lib/shared/models/index.d.ts +2 -0
- package/src/lib/shared/models/viz-item-service-port.model.d.ts +24 -0
- package/src/lib/viz-item/viz-item.base.d.ts +4 -4
package/luzmo-embed.min.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
getCachedJSONSchemas: () => getCachedJSONSchemas,
|
|
40
40
|
getJSONSchemaUrl: () => getJSONSchemaUrl,
|
|
41
41
|
luzmoRefParserOptions: () => luzmoRefParserOptions,
|
|
42
|
+
normalizeVizItemSlots: () => normalizeVizItemSlots,
|
|
42
43
|
preloadDashboard: () => preloadDashboard,
|
|
43
44
|
preloadIQ: () => preloadIQ,
|
|
44
45
|
preloadVizItem: () => preloadVizItem,
|
|
@@ -332,6 +333,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
|
|
|
332
333
|
return v2.toString(16);
|
|
333
334
|
});
|
|
334
335
|
|
|
336
|
+
// libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
|
|
337
|
+
function normalizeVizItemSlots(slots) {
|
|
338
|
+
return slots.map((slot) => ({
|
|
339
|
+
...slot,
|
|
340
|
+
content: slot.content.map((content) => ({
|
|
341
|
+
...content,
|
|
342
|
+
...content.columnId === void 0 ? {} : { column: content.columnId },
|
|
343
|
+
...content.datasetId === void 0 ? {} : { set: content.datasetId },
|
|
344
|
+
...content.aggregationWeight ? { aggregationWeight: {
|
|
345
|
+
...content.aggregationWeight,
|
|
346
|
+
set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
|
|
347
|
+
column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
|
|
348
|
+
} } : {}
|
|
349
|
+
}))
|
|
350
|
+
}));
|
|
351
|
+
}
|
|
352
|
+
|
|
335
353
|
// libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
|
|
336
354
|
var createIframeUrl = (dashboardContent) => {
|
|
337
355
|
const searchString = [];
|
|
@@ -1343,7 +1361,6 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1343
1361
|
filters: "filters",
|
|
1344
1362
|
dashboardId: "dashboard-id",
|
|
1345
1363
|
screenMode: "screen-mode",
|
|
1346
|
-
querySource: "query-source",
|
|
1347
1364
|
itemId: "item-id",
|
|
1348
1365
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1349
1366
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1431,7 +1448,7 @@ var warn = (msg) => {
|
|
|
1431
1448
|
function safeToString(info) {
|
|
1432
1449
|
try {
|
|
1433
1450
|
return JSON.stringify(info, null, 2);
|
|
1434
|
-
} catch (
|
|
1451
|
+
} catch (e8) {
|
|
1435
1452
|
return "";
|
|
1436
1453
|
}
|
|
1437
1454
|
}
|
|
@@ -1649,8 +1666,8 @@ var infrastructureLogger = createInfrastructureLogger(PREFIX);
|
|
|
1649
1666
|
async function safeWrapper(callback, disableWarn) {
|
|
1650
1667
|
try {
|
|
1651
1668
|
return await callback();
|
|
1652
|
-
} catch (
|
|
1653
|
-
!disableWarn && warn(
|
|
1669
|
+
} catch (e8) {
|
|
1670
|
+
!disableWarn && warn(e8);
|
|
1654
1671
|
return;
|
|
1655
1672
|
}
|
|
1656
1673
|
}
|
|
@@ -1879,9 +1896,9 @@ var createScriptNode = typeof ENV_TARGET === "undefined" || ENV_TARGET !== "web"
|
|
|
1879
1896
|
let urlObj;
|
|
1880
1897
|
try {
|
|
1881
1898
|
urlObj = new URL(url);
|
|
1882
|
-
} catch (
|
|
1883
|
-
console.error("Error constructing URL:",
|
|
1884
|
-
cb(/* @__PURE__ */ new Error(`Invalid URL: ${
|
|
1899
|
+
} catch (e8) {
|
|
1900
|
+
console.error("Error constructing URL:", e8);
|
|
1901
|
+
cb(/* @__PURE__ */ new Error(`Invalid URL: ${e8}`));
|
|
1885
1902
|
return;
|
|
1886
1903
|
}
|
|
1887
1904
|
const getFetch = async () => {
|
|
@@ -1913,8 +1930,8 @@ var createScriptNode = typeof ENV_TARGET === "undefined" || ENV_TARGET !== "web"
|
|
|
1913
1930
|
return;
|
|
1914
1931
|
}
|
|
1915
1932
|
cb(void 0, exportedInterface);
|
|
1916
|
-
} catch (
|
|
1917
|
-
cb(
|
|
1933
|
+
} catch (e8) {
|
|
1934
|
+
cb(e8 instanceof Error ? e8 : /* @__PURE__ */ new Error(`Script execution error: ${e8}`));
|
|
1918
1935
|
}
|
|
1919
1936
|
};
|
|
1920
1937
|
getFetch().then(async (f3) => {
|
|
@@ -1924,8 +1941,8 @@ var createScriptNode = typeof ENV_TARGET === "undefined" || ENV_TARGET !== "web"
|
|
|
1924
1941
|
}).then(async (module2) => {
|
|
1925
1942
|
await module2.evaluate();
|
|
1926
1943
|
cb(void 0, module2.namespace);
|
|
1927
|
-
}).catch((
|
|
1928
|
-
cb(
|
|
1944
|
+
}).catch((e8) => {
|
|
1945
|
+
cb(e8 instanceof Error ? e8 : /* @__PURE__ */ new Error(`Script execution error: ${e8}`));
|
|
1929
1946
|
});
|
|
1930
1947
|
handleScriptFetch(f3, urlObj);
|
|
1931
1948
|
}).catch((err) => {
|
|
@@ -2493,8 +2510,8 @@ function satisfy(version2, range) {
|
|
|
2493
2510
|
}
|
|
2494
2511
|
}
|
|
2495
2512
|
if (subRangeSatisfied) return true;
|
|
2496
|
-
} catch (
|
|
2497
|
-
console.error(`[semver] Error processing range part "${trimmedOrRange}":`,
|
|
2513
|
+
} catch (e8) {
|
|
2514
|
+
console.error(`[semver] Error processing range part "${trimmedOrRange}":`, e8);
|
|
2498
2515
|
continue;
|
|
2499
2516
|
}
|
|
2500
2517
|
}
|
|
@@ -2608,7 +2625,7 @@ var isMatchUsedExports = (treeShaking, usedExports) => {
|
|
|
2608
2625
|
if (!treeShaking || !usedExports) return false;
|
|
2609
2626
|
const { usedExports: treeShakingUsedExports } = treeShaking;
|
|
2610
2627
|
if (!treeShakingUsedExports) return false;
|
|
2611
|
-
if (usedExports.every((
|
|
2628
|
+
if (usedExports.every((e8) => treeShakingUsedExports.includes(e8))) return true;
|
|
2612
2629
|
return false;
|
|
2613
2630
|
};
|
|
2614
2631
|
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName, treeShaking) {
|
|
@@ -2911,8 +2928,8 @@ async function loadEsmEntry({ entry, remoteEntryExports, name, getEntryUrl }) {
|
|
|
2911
2928
|
url
|
|
2912
2929
|
).then(resolve).catch(rejectEntry);
|
|
2913
2930
|
else resolve(remoteEntryExports);
|
|
2914
|
-
} catch (
|
|
2915
|
-
error2(`Failed to load ESM entry from "${url}". ${
|
|
2931
|
+
} catch (e8) {
|
|
2932
|
+
error2(`Failed to load ESM entry from "${url}". ${e8 instanceof Error ? e8.message : String(e8)}`);
|
|
2916
2933
|
}
|
|
2917
2934
|
});
|
|
2918
2935
|
}
|
|
@@ -2922,8 +2939,8 @@ async function loadSystemJsEntry({ entry, remoteEntryExports }) {
|
|
|
2922
2939
|
if (!remoteEntryExports) if (typeof __system_context__ === "undefined") System.import(entry).then(resolve).catch(reject);
|
|
2923
2940
|
else new Function("callbacks", `System.import("${entry}")${importCallback}`)([resolve, reject]);
|
|
2924
2941
|
else resolve(remoteEntryExports);
|
|
2925
|
-
} catch (
|
|
2926
|
-
error2(`Failed to load SystemJS entry from "${entry}". ${
|
|
2942
|
+
} catch (e8) {
|
|
2943
|
+
error2(`Failed to load SystemJS entry from "${entry}". ${e8 instanceof Error ? e8.message : String(e8)}`);
|
|
2927
2944
|
}
|
|
2928
2945
|
});
|
|
2929
2946
|
}
|
|
@@ -3013,8 +3030,8 @@ async function loadEntryNode({ remoteInfo, loaderHook, resourceContext }) {
|
|
|
3013
3030
|
} }
|
|
3014
3031
|
}).then(() => {
|
|
3015
3032
|
return handleRemoteEntryLoaded(name, globalName, entry);
|
|
3016
|
-
}).catch((
|
|
3017
|
-
error2(`Failed to load Node.js entry for remote "${name}" from "${entry}". ${
|
|
3033
|
+
}).catch((e8) => {
|
|
3034
|
+
error2(`Failed to load Node.js entry for remote "${name}" from "${entry}". ${e8 instanceof Error ? e8.message : String(e8)}`);
|
|
3018
3035
|
});
|
|
3019
3036
|
}
|
|
3020
3037
|
function getRemoteEntryUniqueKey(remoteInfo) {
|
|
@@ -3794,9 +3811,9 @@ var SyncWaterfallHook = class extends SyncHook {
|
|
|
3794
3811
|
this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);
|
|
3795
3812
|
break;
|
|
3796
3813
|
}
|
|
3797
|
-
} catch (
|
|
3798
|
-
warn$1(
|
|
3799
|
-
this.onerror(
|
|
3814
|
+
} catch (e8) {
|
|
3815
|
+
warn$1(e8);
|
|
3816
|
+
this.onerror(e8);
|
|
3800
3817
|
}
|
|
3801
3818
|
return data;
|
|
3802
3819
|
}
|
|
@@ -3814,9 +3831,9 @@ var AsyncWaterfallHook = class extends SyncHook {
|
|
|
3814
3831
|
const ls = Array.from(this.listeners);
|
|
3815
3832
|
if (ls.length > 0) {
|
|
3816
3833
|
let i7 = 0;
|
|
3817
|
-
const processError = (
|
|
3818
|
-
warn$1(
|
|
3819
|
-
this.onerror(
|
|
3834
|
+
const processError = (e8) => {
|
|
3835
|
+
warn$1(e8);
|
|
3836
|
+
this.onerror(e8);
|
|
3820
3837
|
return data;
|
|
3821
3838
|
};
|
|
3822
3839
|
const call = (prevData) => {
|
|
@@ -3827,8 +3844,8 @@ var AsyncWaterfallHook = class extends SyncHook {
|
|
|
3827
3844
|
}
|
|
3828
3845
|
if (i7 < ls.length) try {
|
|
3829
3846
|
return Promise.resolve(ls[i7++](data)).then(call, processError);
|
|
3830
|
-
} catch (
|
|
3831
|
-
return processError(
|
|
3847
|
+
} catch (e8) {
|
|
3848
|
+
return processError(e8);
|
|
3832
3849
|
}
|
|
3833
3850
|
return data;
|
|
3834
3851
|
};
|
|
@@ -5512,16 +5529,16 @@ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "a
|
|
|
5512
5529
|
var s = /* @__PURE__ */ Symbol();
|
|
5513
5530
|
var o = /* @__PURE__ */ new WeakMap();
|
|
5514
5531
|
var n = class {
|
|
5515
|
-
constructor(t4,
|
|
5532
|
+
constructor(t4, e8, o7) {
|
|
5516
5533
|
if (this._$cssResult$ = true, o7 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
5517
|
-
this.cssText = t4, this.t =
|
|
5534
|
+
this.cssText = t4, this.t = e8;
|
|
5518
5535
|
}
|
|
5519
5536
|
get styleSheet() {
|
|
5520
5537
|
let t4 = this.o;
|
|
5521
5538
|
const s4 = this.t;
|
|
5522
5539
|
if (e && void 0 === t4) {
|
|
5523
|
-
const
|
|
5524
|
-
|
|
5540
|
+
const e8 = void 0 !== s4 && 1 === s4.length;
|
|
5541
|
+
e8 && (t4 = o.get(s4)), void 0 === t4 && ((this.o = t4 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o.set(s4, t4));
|
|
5525
5542
|
}
|
|
5526
5543
|
return t4;
|
|
5527
5544
|
}
|
|
@@ -5530,8 +5547,8 @@ var n = class {
|
|
|
5530
5547
|
}
|
|
5531
5548
|
};
|
|
5532
5549
|
var r = (t4) => new n("string" == typeof t4 ? t4 : t4 + "", void 0, s);
|
|
5533
|
-
var i = (t4, ...
|
|
5534
|
-
const o7 = 1 === t4.length ? t4[0] :
|
|
5550
|
+
var i = (t4, ...e8) => {
|
|
5551
|
+
const o7 = 1 === t4.length ? t4[0] : e8.reduce((e9, s4, o8) => e9 + ((t5) => {
|
|
5535
5552
|
if (true === t5._$cssResult$) return t5.cssText;
|
|
5536
5553
|
if ("number" == typeof t5) return t5;
|
|
5537
5554
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t5 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
@@ -5540,15 +5557,15 @@ var i = (t4, ...e7) => {
|
|
|
5540
5557
|
};
|
|
5541
5558
|
var S = (s4, o7) => {
|
|
5542
5559
|
if (e) s4.adoptedStyleSheets = o7.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet);
|
|
5543
|
-
else for (const
|
|
5560
|
+
else for (const e8 of o7) {
|
|
5544
5561
|
const o8 = document.createElement("style"), n6 = t.litNonce;
|
|
5545
|
-
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent =
|
|
5562
|
+
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e8.cssText, s4.appendChild(o8);
|
|
5546
5563
|
}
|
|
5547
5564
|
};
|
|
5548
5565
|
var c = e ? (t4) => t4 : (t4) => t4 instanceof CSSStyleSheet ? ((t5) => {
|
|
5549
|
-
let
|
|
5550
|
-
for (const s4 of t5.cssRules)
|
|
5551
|
-
return r(
|
|
5566
|
+
let e8 = "";
|
|
5567
|
+
for (const s4 of t5.cssRules) e8 += s4.cssText;
|
|
5568
|
+
return r(e8);
|
|
5552
5569
|
})(t4) : t4;
|
|
5553
5570
|
|
|
5554
5571
|
// node_modules/@lit/reactive-element/reactive-element.js
|
|
@@ -5604,13 +5621,13 @@ var y = class extends HTMLElement {
|
|
|
5604
5621
|
}
|
|
5605
5622
|
}
|
|
5606
5623
|
static getPropertyDescriptor(t4, s4, i7) {
|
|
5607
|
-
const { get:
|
|
5624
|
+
const { get: e8, set: r6 } = h(this.prototype, t4) ?? { get() {
|
|
5608
5625
|
return this[s4];
|
|
5609
5626
|
}, set(t5) {
|
|
5610
5627
|
this[s4] = t5;
|
|
5611
5628
|
} };
|
|
5612
|
-
return { get:
|
|
5613
|
-
const h3 =
|
|
5629
|
+
return { get: e8, set(s5) {
|
|
5630
|
+
const h3 = e8?.call(this);
|
|
5614
5631
|
r6?.call(this, s5), this.requestUpdate(t4, h3, i7);
|
|
5615
5632
|
}, configurable: true, enumerable: true };
|
|
5616
5633
|
}
|
|
@@ -5643,8 +5660,8 @@ var y = class extends HTMLElement {
|
|
|
5643
5660
|
static finalizeStyles(s4) {
|
|
5644
5661
|
const i7 = [];
|
|
5645
5662
|
if (Array.isArray(s4)) {
|
|
5646
|
-
const
|
|
5647
|
-
for (const s5 of
|
|
5663
|
+
const e8 = new Set(s4.flat(1 / 0).reverse());
|
|
5664
|
+
for (const s5 of e8) i7.unshift(c(s5));
|
|
5648
5665
|
} else void 0 !== s4 && i7.push(c(s4));
|
|
5649
5666
|
return i7;
|
|
5650
5667
|
}
|
|
@@ -5685,31 +5702,31 @@ var y = class extends HTMLElement {
|
|
|
5685
5702
|
this._$AK(t4, i7);
|
|
5686
5703
|
}
|
|
5687
5704
|
_$ET(t4, s4) {
|
|
5688
|
-
const i7 = this.constructor.elementProperties.get(t4),
|
|
5689
|
-
if (void 0 !==
|
|
5705
|
+
const i7 = this.constructor.elementProperties.get(t4), e8 = this.constructor._$Eu(t4, i7);
|
|
5706
|
+
if (void 0 !== e8 && true === i7.reflect) {
|
|
5690
5707
|
const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s4, i7.type);
|
|
5691
|
-
this._$Em = t4, null == h3 ? this.removeAttribute(
|
|
5708
|
+
this._$Em = t4, null == h3 ? this.removeAttribute(e8) : this.setAttribute(e8, h3), this._$Em = null;
|
|
5692
5709
|
}
|
|
5693
5710
|
}
|
|
5694
5711
|
_$AK(t4, s4) {
|
|
5695
|
-
const i7 = this.constructor,
|
|
5696
|
-
if (void 0 !==
|
|
5697
|
-
const t5 = i7.getPropertyOptions(
|
|
5698
|
-
this._$Em =
|
|
5712
|
+
const i7 = this.constructor, e8 = i7._$Eh.get(t4);
|
|
5713
|
+
if (void 0 !== e8 && this._$Em !== e8) {
|
|
5714
|
+
const t5 = i7.getPropertyOptions(e8), h3 = "function" == typeof t5.converter ? { fromAttribute: t5.converter } : void 0 !== t5.converter?.fromAttribute ? t5.converter : u;
|
|
5715
|
+
this._$Em = e8;
|
|
5699
5716
|
const r6 = h3.fromAttribute(s4, t5.type);
|
|
5700
|
-
this[
|
|
5717
|
+
this[e8] = r6 ?? this._$Ej?.get(e8) ?? r6, this._$Em = null;
|
|
5701
5718
|
}
|
|
5702
5719
|
}
|
|
5703
|
-
requestUpdate(t4, s4, i7,
|
|
5720
|
+
requestUpdate(t4, s4, i7, e8 = false, h3) {
|
|
5704
5721
|
if (void 0 !== t4) {
|
|
5705
5722
|
const r6 = this.constructor;
|
|
5706
|
-
if (false ===
|
|
5723
|
+
if (false === e8 && (h3 = this[t4]), i7 ??= r6.getPropertyOptions(t4), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t4) && !this.hasAttribute(r6._$Eu(t4, i7)))) return;
|
|
5707
5724
|
this.C(t4, s4, i7);
|
|
5708
5725
|
}
|
|
5709
5726
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
5710
5727
|
}
|
|
5711
|
-
C(t4, s4, { useDefault: i7, reflect:
|
|
5712
|
-
i7 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t4) && (this._$Ej.set(t4, r6 ?? s4 ?? this[t4]), true !== h3 || void 0 !== r6) || (this._$AL.has(t4) || (this.hasUpdated || i7 || (s4 = void 0), this._$AL.set(t4, s4)), true ===
|
|
5728
|
+
C(t4, s4, { useDefault: i7, reflect: e8, wrapped: h3 }, r6) {
|
|
5729
|
+
i7 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t4) && (this._$Ej.set(t4, r6 ?? s4 ?? this[t4]), true !== h3 || void 0 !== r6) || (this._$AL.has(t4) || (this.hasUpdated || i7 || (s4 = void 0), this._$AL.set(t4, s4)), true === e8 && this._$Em !== t4 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t4));
|
|
5713
5730
|
}
|
|
5714
5731
|
async _$EP() {
|
|
5715
5732
|
this.isUpdatePending = true;
|
|
@@ -5733,8 +5750,8 @@ var y = class extends HTMLElement {
|
|
|
5733
5750
|
}
|
|
5734
5751
|
const t5 = this.constructor.elementProperties;
|
|
5735
5752
|
if (t5.size > 0) for (const [s5, i7] of t5) {
|
|
5736
|
-
const { wrapped: t6 } = i7,
|
|
5737
|
-
true !== t6 || this._$AL.has(s5) || void 0 ===
|
|
5753
|
+
const { wrapped: t6 } = i7, e8 = this[s5];
|
|
5754
|
+
true !== t6 || this._$AL.has(s5) || void 0 === e8 || this.C(s5, void 0, i7, e8);
|
|
5738
5755
|
}
|
|
5739
5756
|
}
|
|
5740
5757
|
let t4 = false;
|
|
@@ -5809,32 +5826,32 @@ function V(t4, i7) {
|
|
|
5809
5826
|
return void 0 !== e3 ? e3.createHTML(i7) : i7;
|
|
5810
5827
|
}
|
|
5811
5828
|
var N = (t4, i7) => {
|
|
5812
|
-
const s4 = t4.length - 1,
|
|
5829
|
+
const s4 = t4.length - 1, e8 = [];
|
|
5813
5830
|
let n6, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c4 = v;
|
|
5814
5831
|
for (let i8 = 0; i8 < s4; i8++) {
|
|
5815
5832
|
const s5 = t4[i8];
|
|
5816
5833
|
let a3, u3, d3 = -1, f3 = 0;
|
|
5817
5834
|
for (; f3 < s5.length && (c4.lastIndex = f3, u3 = c4.exec(s5), null !== u3); ) f3 = c4.lastIndex, c4 === v ? "!--" === u3[1] ? c4 = _ : void 0 !== u3[1] ? c4 = m : void 0 !== u3[2] ? (y2.test(u3[2]) && (n6 = RegExp("</" + u3[2], "g")), c4 = p2) : void 0 !== u3[3] && (c4 = p2) : c4 === p2 ? ">" === u3[0] ? (c4 = n6 ?? v, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? p2 : '"' === u3[3] ? $ : g) : c4 === $ || c4 === g ? c4 = p2 : c4 === _ || c4 === m ? c4 = v : (c4 = p2, n6 = void 0);
|
|
5818
5835
|
const x2 = c4 === p2 && t4[i8 + 1].startsWith("/>") ? " " : "";
|
|
5819
|
-
l3 += c4 === v ? s5 + r3 : d3 >= 0 ? (
|
|
5836
|
+
l3 += c4 === v ? s5 + r3 : d3 >= 0 ? (e8.push(a3), s5.slice(0, d3) + h2 + s5.slice(d3) + o3 + x2) : s5 + o3 + (-2 === d3 ? i8 : x2);
|
|
5820
5837
|
}
|
|
5821
|
-
return [V(t4, l3 + (t4[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")),
|
|
5838
|
+
return [V(t4, l3 + (t4[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), e8];
|
|
5822
5839
|
};
|
|
5823
5840
|
var S2 = class _S {
|
|
5824
|
-
constructor({ strings: t4, _$litType$: i7 },
|
|
5841
|
+
constructor({ strings: t4, _$litType$: i7 }, e8) {
|
|
5825
5842
|
let r6;
|
|
5826
5843
|
this.parts = [];
|
|
5827
5844
|
let l3 = 0, a3 = 0;
|
|
5828
5845
|
const u3 = t4.length - 1, d3 = this.parts, [f3, v2] = N(t4, i7);
|
|
5829
|
-
if (this.el = _S.createElement(f3,
|
|
5846
|
+
if (this.el = _S.createElement(f3, e8), P.currentNode = this.el.content, 2 === i7 || 3 === i7) {
|
|
5830
5847
|
const t5 = this.el.content.firstChild;
|
|
5831
5848
|
t5.replaceWith(...t5.childNodes);
|
|
5832
5849
|
}
|
|
5833
5850
|
for (; null !== (r6 = P.nextNode()) && d3.length < u3; ) {
|
|
5834
5851
|
if (1 === r6.nodeType) {
|
|
5835
5852
|
if (r6.hasAttributes()) for (const t5 of r6.getAttributeNames()) if (t5.endsWith(h2)) {
|
|
5836
|
-
const i8 = v2[a3++], s4 = r6.getAttribute(t5).split(o3),
|
|
5837
|
-
d3.push({ type: 1, index: l3, name:
|
|
5853
|
+
const i8 = v2[a3++], s4 = r6.getAttribute(t5).split(o3), e9 = /([.?@])?(.*)/.exec(i8);
|
|
5854
|
+
d3.push({ type: 1, index: l3, name: e9[2], strings: s4, ctor: "." === e9[1] ? I : "?" === e9[1] ? L : "@" === e9[1] ? z : H }), r6.removeAttribute(t5);
|
|
5838
5855
|
} else t5.startsWith(o3) && (d3.push({ type: 6, index: l3 }), r6.removeAttribute(t5));
|
|
5839
5856
|
if (y2.test(r6.tagName)) {
|
|
5840
5857
|
const t5 = r6.textContent.split(o3), i8 = t5.length - 1;
|
|
@@ -5857,11 +5874,11 @@ var S2 = class _S {
|
|
|
5857
5874
|
return s4.innerHTML = t4, s4;
|
|
5858
5875
|
}
|
|
5859
5876
|
};
|
|
5860
|
-
function M(t4, i7, s4 = t4,
|
|
5877
|
+
function M(t4, i7, s4 = t4, e8) {
|
|
5861
5878
|
if (i7 === E) return i7;
|
|
5862
|
-
let h3 = void 0 !==
|
|
5879
|
+
let h3 = void 0 !== e8 ? s4._$Co?.[e8] : s4._$Cl;
|
|
5863
5880
|
const o7 = a2(i7) ? void 0 : i7._$litDirective$;
|
|
5864
|
-
return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t4), h3._$AT(t4, s4,
|
|
5881
|
+
return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t4), h3._$AT(t4, s4, e8)), void 0 !== e8 ? (s4._$Co ??= [])[e8] = h3 : s4._$Cl = h3), void 0 !== h3 && (i7 = M(t4, h3._$AS(t4, i7.values), h3, e8)), i7;
|
|
5865
5882
|
}
|
|
5866
5883
|
var R = class {
|
|
5867
5884
|
constructor(t4, i7) {
|
|
@@ -5874,8 +5891,8 @@ var R = class {
|
|
|
5874
5891
|
return this._$AM._$AU;
|
|
5875
5892
|
}
|
|
5876
5893
|
u(t4) {
|
|
5877
|
-
const { el: { content: i7 }, parts: s4 } = this._$AD,
|
|
5878
|
-
P.currentNode =
|
|
5894
|
+
const { el: { content: i7 }, parts: s4 } = this._$AD, e8 = (t4?.creationScope ?? l2).importNode(i7, true);
|
|
5895
|
+
P.currentNode = e8;
|
|
5879
5896
|
let h3 = P.nextNode(), o7 = 0, n6 = 0, r6 = s4[0];
|
|
5880
5897
|
for (; void 0 !== r6; ) {
|
|
5881
5898
|
if (o7 === r6.index) {
|
|
@@ -5884,7 +5901,7 @@ var R = class {
|
|
|
5884
5901
|
}
|
|
5885
5902
|
o7 !== r6?.index && (h3 = P.nextNode(), o7++);
|
|
5886
5903
|
}
|
|
5887
|
-
return P.currentNode = l2,
|
|
5904
|
+
return P.currentNode = l2, e8;
|
|
5888
5905
|
}
|
|
5889
5906
|
p(t4) {
|
|
5890
5907
|
let i7 = 0;
|
|
@@ -5895,8 +5912,8 @@ var k = class _k {
|
|
|
5895
5912
|
get _$AU() {
|
|
5896
5913
|
return this._$AM?._$AU ?? this._$Cv;
|
|
5897
5914
|
}
|
|
5898
|
-
constructor(t4, i7, s4,
|
|
5899
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t4, this._$AB = i7, this._$AM = s4, this.options =
|
|
5915
|
+
constructor(t4, i7, s4, e8) {
|
|
5916
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t4, this._$AB = i7, this._$AM = s4, this.options = e8, this._$Cv = e8?.isConnected ?? true;
|
|
5900
5917
|
}
|
|
5901
5918
|
get parentNode() {
|
|
5902
5919
|
let t4 = this._$AA.parentNode;
|
|
@@ -5922,10 +5939,10 @@ var k = class _k {
|
|
|
5922
5939
|
this._$AH !== A && a2(this._$AH) ? this._$AA.nextSibling.data = t4 : this.T(l2.createTextNode(t4)), this._$AH = t4;
|
|
5923
5940
|
}
|
|
5924
5941
|
$(t4) {
|
|
5925
|
-
const { values: i7, _$litType$: s4 } = t4,
|
|
5926
|
-
if (this._$AH?._$AD ===
|
|
5942
|
+
const { values: i7, _$litType$: s4 } = t4, e8 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el = S2.createElement(V(s4.h, s4.h[0]), this.options)), s4);
|
|
5943
|
+
if (this._$AH?._$AD === e8) this._$AH.p(i7);
|
|
5927
5944
|
else {
|
|
5928
|
-
const t5 = new R(
|
|
5945
|
+
const t5 = new R(e8, this), s5 = t5.u(this.options);
|
|
5929
5946
|
t5.p(i7), this.T(s5), this._$AH = t5;
|
|
5930
5947
|
}
|
|
5931
5948
|
}
|
|
@@ -5936,9 +5953,9 @@ var k = class _k {
|
|
|
5936
5953
|
k(t4) {
|
|
5937
5954
|
u2(this._$AH) || (this._$AH = [], this._$AR());
|
|
5938
5955
|
const i7 = this._$AH;
|
|
5939
|
-
let s4,
|
|
5940
|
-
for (const h3 of t4)
|
|
5941
|
-
|
|
5956
|
+
let s4, e8 = 0;
|
|
5957
|
+
for (const h3 of t4) e8 === i7.length ? i7.push(s4 = new _k(this.O(c3()), this.O(c3()), this, this.options)) : s4 = i7[e8], s4._$AI(h3), e8++;
|
|
5958
|
+
e8 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e8), i7.length = e8);
|
|
5942
5959
|
}
|
|
5943
5960
|
_$AR(t4 = this._$AA.nextSibling, s4) {
|
|
5944
5961
|
for (this._$AP?.(false, true, s4); t4 !== this._$AB; ) {
|
|
@@ -5957,19 +5974,19 @@ var H = class {
|
|
|
5957
5974
|
get _$AU() {
|
|
5958
5975
|
return this._$AM._$AU;
|
|
5959
5976
|
}
|
|
5960
|
-
constructor(t4, i7, s4,
|
|
5961
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t4, this.name = i7, this._$AM =
|
|
5977
|
+
constructor(t4, i7, s4, e8, h3) {
|
|
5978
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t4, this.name = i7, this._$AM = e8, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
|
|
5962
5979
|
}
|
|
5963
|
-
_$AI(t4, i7 = this, s4,
|
|
5980
|
+
_$AI(t4, i7 = this, s4, e8) {
|
|
5964
5981
|
const h3 = this.strings;
|
|
5965
5982
|
let o7 = false;
|
|
5966
5983
|
if (void 0 === h3) t4 = M(this, t4, i7, 0), o7 = !a2(t4) || t4 !== this._$AH && t4 !== E, o7 && (this._$AH = t4);
|
|
5967
5984
|
else {
|
|
5968
|
-
const
|
|
5985
|
+
const e9 = t4;
|
|
5969
5986
|
let n6, r6;
|
|
5970
|
-
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 = M(this,
|
|
5987
|
+
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 = M(this, e9[s4 + n6], i7, n6), r6 === E && (r6 = this._$AH[n6]), o7 ||= !a2(r6) || r6 !== this._$AH[n6], r6 === A ? t4 = A : t4 !== A && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
|
|
5971
5988
|
}
|
|
5972
|
-
o7 && !
|
|
5989
|
+
o7 && !e8 && this.j(t4);
|
|
5973
5990
|
}
|
|
5974
5991
|
j(t4) {
|
|
5975
5992
|
t4 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t4 ?? "");
|
|
@@ -5992,13 +6009,13 @@ var L = class extends H {
|
|
|
5992
6009
|
}
|
|
5993
6010
|
};
|
|
5994
6011
|
var z = class extends H {
|
|
5995
|
-
constructor(t4, i7, s4,
|
|
5996
|
-
super(t4, i7, s4,
|
|
6012
|
+
constructor(t4, i7, s4, e8, h3) {
|
|
6013
|
+
super(t4, i7, s4, e8, h3), this.type = 5;
|
|
5997
6014
|
}
|
|
5998
6015
|
_$AI(t4, i7 = this) {
|
|
5999
6016
|
if ((t4 = M(this, t4, i7, 0) ?? A) === E) return;
|
|
6000
|
-
const s4 = this._$AH,
|
|
6001
|
-
|
|
6017
|
+
const s4 = this._$AH, e8 = t4 === A && s4 !== A || t4.capture !== s4.capture || t4.once !== s4.once || t4.passive !== s4.passive, h3 = t4 !== A && (s4 === A || e8);
|
|
6018
|
+
e8 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
|
|
6002
6019
|
}
|
|
6003
6020
|
handleEvent(t4) {
|
|
6004
6021
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t4) : this._$AH.handleEvent(t4);
|
|
@@ -6018,11 +6035,11 @@ var Z = class {
|
|
|
6018
6035
|
var B = t2.litHtmlPolyfillSupport;
|
|
6019
6036
|
B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.2");
|
|
6020
6037
|
var D = (t4, i7, s4) => {
|
|
6021
|
-
const
|
|
6022
|
-
let h3 =
|
|
6038
|
+
const e8 = s4?.renderBefore ?? i7;
|
|
6039
|
+
let h3 = e8._$litPart$;
|
|
6023
6040
|
if (void 0 === h3) {
|
|
6024
6041
|
const t5 = s4?.renderBefore ?? null;
|
|
6025
|
-
|
|
6042
|
+
e8._$litPart$ = h3 = new k(i7.insertBefore(c3(), t5), t5, void 0, s4 ?? {});
|
|
6026
6043
|
}
|
|
6027
6044
|
return h3._$AI(t4), h3;
|
|
6028
6045
|
};
|
|
@@ -6058,32 +6075,32 @@ o4?.({ LitElement: i4 });
|
|
|
6058
6075
|
|
|
6059
6076
|
// node_modules/@lit/reactive-element/decorators/property.js
|
|
6060
6077
|
var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
6061
|
-
var r4 = (t4 = o5,
|
|
6078
|
+
var r4 = (t4 = o5, e8, r6) => {
|
|
6062
6079
|
const { kind: n6, metadata: i7 } = r6;
|
|
6063
6080
|
let s4 = globalThis.litPropertyMetadata.get(i7);
|
|
6064
6081
|
if (void 0 === s4 && globalThis.litPropertyMetadata.set(i7, s4 = /* @__PURE__ */ new Map()), "setter" === n6 && ((t4 = Object.create(t4)).wrapped = true), s4.set(r6.name, t4), "accessor" === n6) {
|
|
6065
6082
|
const { name: o7 } = r6;
|
|
6066
6083
|
return { set(r7) {
|
|
6067
|
-
const n7 =
|
|
6068
|
-
|
|
6069
|
-
}, init(
|
|
6070
|
-
return void 0 !==
|
|
6084
|
+
const n7 = e8.get.call(this);
|
|
6085
|
+
e8.set.call(this, r7), this.requestUpdate(o7, n7, t4, true, r7);
|
|
6086
|
+
}, init(e9) {
|
|
6087
|
+
return void 0 !== e9 && this.C(o7, void 0, t4, e9), e9;
|
|
6071
6088
|
} };
|
|
6072
6089
|
}
|
|
6073
6090
|
if ("setter" === n6) {
|
|
6074
6091
|
const { name: o7 } = r6;
|
|
6075
6092
|
return function(r7) {
|
|
6076
6093
|
const n7 = this[o7];
|
|
6077
|
-
|
|
6094
|
+
e8.call(this, r7), this.requestUpdate(o7, n7, t4, true, r7);
|
|
6078
6095
|
};
|
|
6079
6096
|
}
|
|
6080
6097
|
throw Error("Unsupported decorator location: " + n6);
|
|
6081
6098
|
};
|
|
6082
6099
|
function n4(t4) {
|
|
6083
|
-
return (
|
|
6084
|
-
const r6 =
|
|
6085
|
-
return
|
|
6086
|
-
})(t4,
|
|
6100
|
+
return (e8, o7) => "object" == typeof o7 ? r4(t4, e8, o7) : ((t5, e9, o8) => {
|
|
6101
|
+
const r6 = e9.hasOwnProperty(o8);
|
|
6102
|
+
return e9.constructor.createProperty(o8, t5), r6 ? Object.getOwnPropertyDescriptor(e9, o8) : void 0;
|
|
6103
|
+
})(t4, e8, o7);
|
|
6087
6104
|
}
|
|
6088
6105
|
|
|
6089
6106
|
// node_modules/@lit/reactive-element/decorators/state.js
|
|
@@ -6092,23 +6109,23 @@ function r5(r6) {
|
|
|
6092
6109
|
}
|
|
6093
6110
|
|
|
6094
6111
|
// node_modules/@lit/reactive-element/decorators/base.js
|
|
6095
|
-
var e4 = (
|
|
6112
|
+
var e4 = (e8, t4, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t4 && Object.defineProperty(e8, t4, c4), c4);
|
|
6096
6113
|
|
|
6097
6114
|
// node_modules/@lit/reactive-element/decorators/query.js
|
|
6098
|
-
function e5(
|
|
6115
|
+
function e5(e8, r6) {
|
|
6099
6116
|
return (n6, s4, i7) => {
|
|
6100
|
-
const o7 = (t4) => t4.renderRoot?.querySelector(
|
|
6117
|
+
const o7 = (t4) => t4.renderRoot?.querySelector(e8) ?? null;
|
|
6101
6118
|
if (r6) {
|
|
6102
|
-
const { get:
|
|
6119
|
+
const { get: e9, set: r7 } = "object" == typeof s4 ? n6 : i7 ?? /* @__PURE__ */ (() => {
|
|
6103
6120
|
const t4 = /* @__PURE__ */ Symbol();
|
|
6104
6121
|
return { get() {
|
|
6105
6122
|
return this[t4];
|
|
6106
|
-
}, set(
|
|
6107
|
-
this[t4] =
|
|
6123
|
+
}, set(e10) {
|
|
6124
|
+
this[t4] = e10;
|
|
6108
6125
|
} };
|
|
6109
6126
|
})();
|
|
6110
6127
|
return e4(n6, s4, { get() {
|
|
6111
|
-
let t4 =
|
|
6128
|
+
let t4 = e9.call(this);
|
|
6112
6129
|
return void 0 === t4 && (t4 = o7(this), (null !== t4 || this.hasUpdated) && r7.call(this, t4)), t4;
|
|
6113
6130
|
} });
|
|
6114
6131
|
}
|
|
@@ -6120,21 +6137,21 @@ function e5(e7, r6) {
|
|
|
6120
6137
|
|
|
6121
6138
|
// node_modules/lit-html/directive.js
|
|
6122
6139
|
var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
6123
|
-
var e6 = (t4) => (...
|
|
6140
|
+
var e6 = (t4) => (...e8) => ({ _$litDirective$: t4, values: e8 });
|
|
6124
6141
|
var i5 = class {
|
|
6125
6142
|
constructor(t4) {
|
|
6126
6143
|
}
|
|
6127
6144
|
get _$AU() {
|
|
6128
6145
|
return this._$AM._$AU;
|
|
6129
6146
|
}
|
|
6130
|
-
_$AT(t4,
|
|
6131
|
-
this._$Ct = t4, this._$AM =
|
|
6147
|
+
_$AT(t4, e8, i7) {
|
|
6148
|
+
this._$Ct = t4, this._$AM = e8, this._$Ci = i7;
|
|
6132
6149
|
}
|
|
6133
|
-
_$AS(t4,
|
|
6134
|
-
return this.update(t4,
|
|
6150
|
+
_$AS(t4, e8) {
|
|
6151
|
+
return this.update(t4, e8);
|
|
6135
6152
|
}
|
|
6136
|
-
update(t4,
|
|
6137
|
-
return this.render(...
|
|
6153
|
+
update(t4, e8) {
|
|
6154
|
+
return this.render(...e8);
|
|
6138
6155
|
}
|
|
6139
6156
|
};
|
|
6140
6157
|
|
|
@@ -6146,21 +6163,21 @@ var o6 = e6(class extends i5 {
|
|
|
6146
6163
|
if (super(t4), t4.type !== t3.ATTRIBUTE || "style" !== t4.name || t4.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
6147
6164
|
}
|
|
6148
6165
|
render(t4) {
|
|
6149
|
-
return Object.keys(t4).reduce((
|
|
6166
|
+
return Object.keys(t4).reduce((e8, r6) => {
|
|
6150
6167
|
const s4 = t4[r6];
|
|
6151
|
-
return null == s4 ?
|
|
6168
|
+
return null == s4 ? e8 : e8 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
|
|
6152
6169
|
}, "");
|
|
6153
6170
|
}
|
|
6154
|
-
update(
|
|
6155
|
-
const { style: s4 } =
|
|
6171
|
+
update(e8, [r6]) {
|
|
6172
|
+
const { style: s4 } = e8.element;
|
|
6156
6173
|
if (void 0 === this.ft) return this.ft = new Set(Object.keys(r6)), this.render(r6);
|
|
6157
6174
|
for (const t4 of this.ft) null == r6[t4] && (this.ft.delete(t4), t4.includes("-") ? s4.removeProperty(t4) : s4[t4] = null);
|
|
6158
6175
|
for (const t4 in r6) {
|
|
6159
|
-
const
|
|
6160
|
-
if (null !=
|
|
6176
|
+
const e9 = r6[t4];
|
|
6177
|
+
if (null != e9) {
|
|
6161
6178
|
this.ft.add(t4);
|
|
6162
|
-
const r7 = "string" == typeof
|
|
6163
|
-
t4.includes("-") || r7 ? s4.setProperty(t4, r7 ?
|
|
6179
|
+
const r7 = "string" == typeof e9 && e9.endsWith(i6);
|
|
6180
|
+
t4.includes("-") || r7 ? s4.setProperty(t4, r7 ? e9.slice(0, -11) : e9, r7 ? n5 : "") : s4[t4] = e9;
|
|
6164
6181
|
}
|
|
6165
6182
|
}
|
|
6166
6183
|
return E;
|
|
@@ -6168,7 +6185,7 @@ var o6 = e6(class extends i5 {
|
|
|
6168
6185
|
});
|
|
6169
6186
|
|
|
6170
6187
|
// libs/embed-libs/embed/package.json
|
|
6171
|
-
var version = "
|
|
6188
|
+
var version = "10.0.0";
|
|
6172
6189
|
|
|
6173
6190
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
6174
6191
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -7499,11 +7516,11 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
7499
7516
|
customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
|
|
7500
7517
|
}
|
|
7501
7518
|
|
|
7502
|
-
//
|
|
7503
|
-
var
|
|
7519
|
+
// node_modules/@luzmo/embed-build-contents-types/shared/version.js
|
|
7520
|
+
var e7 = "0.1.109";
|
|
7504
7521
|
|
|
7505
7522
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
7506
|
-
var dashboardContentsVersion =
|
|
7523
|
+
var dashboardContentsVersion = e7;
|
|
7507
7524
|
var vizItemRemote = "VizItemApp";
|
|
7508
7525
|
function collectVizItemDatasetIds(slots) {
|
|
7509
7526
|
const ids = /* @__PURE__ */ new Set();
|
|
@@ -7529,6 +7546,22 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7529
7546
|
this.libVersion = version + "-wc-luzmo";
|
|
7530
7547
|
this.postInitCallQueue = [];
|
|
7531
7548
|
}
|
|
7549
|
+
static {
|
|
7550
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7551
|
+
this.styles = i`
|
|
7552
|
+
:host {
|
|
7553
|
+
display: block;
|
|
7554
|
+
width: 100%;
|
|
7555
|
+
height: 100%;
|
|
7556
|
+
}
|
|
7557
|
+
|
|
7558
|
+
luzmo-embed-viz-item {
|
|
7559
|
+
width: 100%;
|
|
7560
|
+
height: 1000%;
|
|
7561
|
+
display: block;
|
|
7562
|
+
}
|
|
7563
|
+
`;
|
|
7564
|
+
}
|
|
7532
7565
|
createRenderRoot() {
|
|
7533
7566
|
if (!this.style.display) {
|
|
7534
7567
|
this.style.display = "block";
|
|
@@ -7595,13 +7628,22 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7595
7628
|
async firstUpdated(_changedProperties) {
|
|
7596
7629
|
super.firstUpdated(_changedProperties);
|
|
7597
7630
|
if (this.canInitializeVizItem()) {
|
|
7598
|
-
await
|
|
7631
|
+
if (!await this.loadVizItem()) {
|
|
7632
|
+
return;
|
|
7633
|
+
}
|
|
7599
7634
|
this.createAndAppendElement();
|
|
7600
7635
|
}
|
|
7601
7636
|
}
|
|
7637
|
+
async loadVizItem() {
|
|
7638
|
+
await loadLibrary(this.appServer, vizItemRemote);
|
|
7639
|
+
return true;
|
|
7640
|
+
}
|
|
7641
|
+
createVizItemElement() {
|
|
7642
|
+
return document.createElement("chart-component");
|
|
7643
|
+
}
|
|
7602
7644
|
createAndAppendElement() {
|
|
7603
7645
|
if (!this.chartElement) {
|
|
7604
|
-
this.chartElement =
|
|
7646
|
+
this.chartElement = this.createVizItemElement();
|
|
7605
7647
|
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
7606
7648
|
this.chartElement.style.height = "100%";
|
|
7607
7649
|
this.chartElement.style.width = "100%";
|
|
@@ -7672,7 +7714,7 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7672
7714
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
7673
7715
|
this.inlineData = void 0;
|
|
7674
7716
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
7675
|
-
} else if (
|
|
7717
|
+
} else if (propertyName === "screenMode" && value == null) {
|
|
7676
7718
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
7677
7719
|
} else {
|
|
7678
7720
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
@@ -7688,7 +7730,9 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7688
7730
|
}
|
|
7689
7731
|
} else {
|
|
7690
7732
|
if (this.canInitializeVizItem()) {
|
|
7691
|
-
await
|
|
7733
|
+
if (!await this.loadVizItem()) {
|
|
7734
|
+
return;
|
|
7735
|
+
}
|
|
7692
7736
|
this.createAndAppendElement();
|
|
7693
7737
|
}
|
|
7694
7738
|
}
|
|
@@ -7697,20 +7741,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7697
7741
|
return b2``;
|
|
7698
7742
|
}
|
|
7699
7743
|
};
|
|
7700
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7701
|
-
LuzmoBaseVizItem.styles = i`
|
|
7702
|
-
:host {
|
|
7703
|
-
display: block;
|
|
7704
|
-
width: 100%;
|
|
7705
|
-
height: 100%;
|
|
7706
|
-
}
|
|
7707
|
-
|
|
7708
|
-
luzmo-embed-viz-item {
|
|
7709
|
-
width: 100%;
|
|
7710
|
-
height: 1000%;
|
|
7711
|
-
display: block;
|
|
7712
|
-
}
|
|
7713
|
-
`;
|
|
7714
7744
|
__decorateClass([
|
|
7715
7745
|
n4()
|
|
7716
7746
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -7764,9 +7794,6 @@ __decorateClass([
|
|
|
7764
7794
|
__decorateClass([
|
|
7765
7795
|
n4({ attribute: "screen-mode" })
|
|
7766
7796
|
], LuzmoBaseVizItem.prototype, "screenMode", 2);
|
|
7767
|
-
__decorateClass([
|
|
7768
|
-
n4({ attribute: "query-source" })
|
|
7769
|
-
], LuzmoBaseVizItem.prototype, "querySource", 2);
|
|
7770
7797
|
__decorateClass([
|
|
7771
7798
|
n4()
|
|
7772
7799
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
@@ -7820,6 +7847,16 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7820
7847
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
7821
7848
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
7822
7849
|
}
|
|
7850
|
+
static {
|
|
7851
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7852
|
+
this.styles = i`
|
|
7853
|
+
:host {
|
|
7854
|
+
display: block;
|
|
7855
|
+
width: 100%;
|
|
7856
|
+
height: 100%;
|
|
7857
|
+
}
|
|
7858
|
+
`;
|
|
7859
|
+
}
|
|
7823
7860
|
createRenderRoot() {
|
|
7824
7861
|
return this;
|
|
7825
7862
|
}
|
|
@@ -7897,14 +7934,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7897
7934
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
7898
7935
|
}
|
|
7899
7936
|
};
|
|
7900
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7901
|
-
LuzmoIQEmbedChatComponent.styles = i`
|
|
7902
|
-
:host {
|
|
7903
|
-
display: block;
|
|
7904
|
-
width: 100%;
|
|
7905
|
-
height: 100%;
|
|
7906
|
-
}
|
|
7907
|
-
`;
|
|
7908
7937
|
__decorateClass([
|
|
7909
7938
|
n4()
|
|
7910
7939
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -7979,6 +8008,16 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
7979
8008
|
this.libVersion = version + "-wc-luzmo";
|
|
7980
8009
|
this.remoteEntryServer = "http://localhost:4202";
|
|
7981
8010
|
}
|
|
8011
|
+
static {
|
|
8012
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
8013
|
+
this.styles = i`
|
|
8014
|
+
:host {
|
|
8015
|
+
display: block;
|
|
8016
|
+
width: 100%;
|
|
8017
|
+
height: 100%;
|
|
8018
|
+
}
|
|
8019
|
+
`;
|
|
8020
|
+
}
|
|
7982
8021
|
createRenderRoot() {
|
|
7983
8022
|
return this;
|
|
7984
8023
|
}
|
|
@@ -8029,14 +8068,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
8029
8068
|
return b2` `;
|
|
8030
8069
|
}
|
|
8031
8070
|
};
|
|
8032
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
8033
|
-
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
8034
|
-
:host {
|
|
8035
|
-
display: block;
|
|
8036
|
-
width: 100%;
|
|
8037
|
-
height: 100%;
|
|
8038
|
-
}
|
|
8039
|
-
`;
|
|
8040
8071
|
__decorateClass([
|
|
8041
8072
|
n4()
|
|
8042
8073
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|