@malloydata/render 0.0.211-dev241112165721 → 0.0.211
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/component/copy-to-html.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/module/index.mjs +33 -23
- package/dist/module/index.umd.js +184 -184
- package/dist/register/chart-dev-tool-BgukBFxT.mjs +6 -0
- package/dist/register/register.mjs +1 -1
- package/dist/register/register.umd.js +2 -2
- package/dist/webcomponent/chart-dev-tool-BgukBFxT.mjs +6 -0
- package/dist/webcomponent/malloy-render.mjs +1 -1
- package/dist/webcomponent/malloy-render.umd.js +2 -2
- package/package.json +2 -2
- package/vite.config.base.ts +18 -8
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { HTMLView, JSONView } from './html/html_view';
|
|
|
2
2
|
export * from './html/data_styles';
|
|
3
3
|
export type { MalloyRenderProps } from './component/render';
|
|
4
4
|
export { getDrillQuery } from './html/drill';
|
|
5
|
-
export { copyMalloyRenderHTML } from './component/copy-to-html';
|
|
5
|
+
export { copyMalloyRenderHTML, getMalloyRenderHTML, } from './component/copy-to-html';
|
package/dist/module/index.mjs
CHANGED
|
@@ -145326,7 +145326,7 @@ Fv.renderFactories = [
|
|
|
145326
145326
|
wO.instance
|
|
145327
145327
|
];
|
|
145328
145328
|
let f8 = Fv;
|
|
145329
|
-
class
|
|
145329
|
+
class Wst {
|
|
145330
145330
|
constructor(e) {
|
|
145331
145331
|
this.document = e;
|
|
145332
145332
|
}
|
|
@@ -145360,7 +145360,7 @@ class Qst {
|
|
|
145360
145360
|
}
|
|
145361
145361
|
}
|
|
145362
145362
|
}
|
|
145363
|
-
class
|
|
145363
|
+
class Vst {
|
|
145364
145364
|
constructor(e) {
|
|
145365
145365
|
this.document = e;
|
|
145366
145366
|
}
|
|
@@ -145484,7 +145484,15 @@ function iE(t, e, n, r, i) {
|
|
|
145484
145484
|
);
|
|
145485
145485
|
}), s.childRenderers = o, s;
|
|
145486
145486
|
}
|
|
145487
|
-
async function
|
|
145487
|
+
async function Yst(t) {
|
|
145488
|
+
const e = await Nit(t);
|
|
145489
|
+
try {
|
|
145490
|
+
await navigator.clipboard.writeText(e);
|
|
145491
|
+
} catch (n) {
|
|
145492
|
+
console.error("Failed to copy text: ", n);
|
|
145493
|
+
}
|
|
145494
|
+
}
|
|
145495
|
+
async function Nit(t) {
|
|
145488
145496
|
let e = "";
|
|
145489
145497
|
const n = t.tableConfig ?? {}, r = Object.assign(
|
|
145490
145498
|
{
|
|
@@ -145499,7 +145507,7 @@ async function Wst(t) {
|
|
|
145499
145507
|
},
|
|
145500
145508
|
i
|
|
145501
145509
|
);
|
|
145502
|
-
if (t.dashboardConfig = s, t.shadowRoot) {
|
|
145510
|
+
if (t.dashboardConfig = s, await wit(1e3), t.shadowRoot) {
|
|
145503
145511
|
let o = "";
|
|
145504
145512
|
for (const u of [...t.shadowRoot.adoptedStyleSheets]) {
|
|
145505
145513
|
for (let l = 0; l < u.cssRules.length; l++) {
|
|
@@ -145510,35 +145518,37 @@ async function Wst(t) {
|
|
|
145510
145518
|
o = o.replaceAll(":host", ".malloy_html_host");
|
|
145511
145519
|
const a = t.getAttribute("style");
|
|
145512
145520
|
e = `
|
|
145513
|
-
<div>
|
|
145514
|
-
|
|
145515
|
-
|
|
145521
|
+
<div>
|
|
145522
|
+
<style>
|
|
145523
|
+
${o}
|
|
145516
145524
|
|
|
145517
|
-
|
|
145518
|
-
|
|
145519
|
-
|
|
145520
|
-
|
|
145521
|
-
|
|
145522
|
-
|
|
145525
|
+
form.vega-bindings {
|
|
145526
|
+
margin-block: 0em;
|
|
145527
|
+
}
|
|
145528
|
+
</style>
|
|
145529
|
+
<div class="malloy_html_host" style="${a}">
|
|
145530
|
+
${t.shadowRoot.innerHTML}
|
|
145531
|
+
</div>
|
|
145523
145532
|
</div>
|
|
145524
|
-
|
|
145525
|
-
`;
|
|
145533
|
+
`;
|
|
145526
145534
|
}
|
|
145527
145535
|
} else
|
|
145528
145536
|
e = t.innerHTML;
|
|
145529
|
-
|
|
145530
|
-
|
|
145531
|
-
|
|
145532
|
-
|
|
145533
|
-
|
|
145537
|
+
return t.tableConfig = n, t.dashboardConfig = i, e;
|
|
145538
|
+
}
|
|
145539
|
+
function wit(t) {
|
|
145540
|
+
return new Promise((e) => {
|
|
145541
|
+
setTimeout(e, t);
|
|
145542
|
+
});
|
|
145534
145543
|
}
|
|
145535
145544
|
export {
|
|
145536
145545
|
I1 as Currency,
|
|
145537
145546
|
vc as DataVolumeUnit,
|
|
145538
145547
|
Vn as DurationUnit,
|
|
145539
|
-
|
|
145540
|
-
|
|
145541
|
-
|
|
145548
|
+
Wst as HTMLView,
|
|
145549
|
+
Vst as JSONView,
|
|
145550
|
+
Yst as copyMalloyRenderHTML,
|
|
145542
145551
|
BJ as getDrillQuery,
|
|
145552
|
+
Nit as getMalloyRenderHTML,
|
|
145543
145553
|
mit as isDurationUnit
|
|
145544
145554
|
};
|