@ai-matrx/records-ui 0.116.31 → 0.116.33
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 +37 -1
- package/dist/{SaveToTable-4AS5YBRT.js → SaveToTable-T2CMF2SK.js} +3 -3
- package/dist/{chunk-7RSMA3NK.js → chunk-5IHVQ5MS.js} +1 -1
- package/dist/chunk-5IHVQ5MS.js.map +1 -0
- package/dist/{chunk-W7GR64CB.js → chunk-FFST26WB.js} +80 -1
- package/dist/chunk-FFST26WB.js.map +1 -0
- package/dist/{chunk-BQS26T6D.js → chunk-IL66BADF.js} +6 -6
- package/dist/chunk-IL66BADF.js.map +1 -0
- package/dist/{chunk-4G6EOOKM.js → chunk-U7SHCLTY.js} +2 -2
- package/dist/helpers.d.cts +0 -2
- package/dist/helpers.d.ts +0 -2
- package/dist/html-frame.cjs +80 -1
- package/dist/html-frame.cjs.map +1 -1
- package/dist/html-frame.d.cts +26 -1
- package/dist/html-frame.d.ts +26 -1
- package/dist/html-frame.js +17 -3
- package/dist/index.cjs +24 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +21 -0
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +3 -3
- package/package.json +3 -3
- package/dist/chunk-7RSMA3NK.js.map +0 -1
- package/dist/chunk-BQS26T6D.js.map +0 -1
- package/dist/chunk-W7GR64CB.js.map +0 -1
- /package/dist/{SaveToTable-4AS5YBRT.js.map → SaveToTable-T2CMF2SK.js.map} +0 -0
- /package/dist/{chunk-4G6EOOKM.js.map → chunk-U7SHCLTY.js.map} +0 -0
package/dist/pickers.cjs
CHANGED
|
@@ -7330,6 +7330,26 @@ function sampleStyle(tokens, theme, font) {
|
|
|
7330
7330
|
function sampleDocument(html, tokens, theme, font, fonts) {
|
|
7331
7331
|
return `<!doctype html><html class="${theme}" style="color-scheme:${theme}"><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${HTML_SAMPLE_CSP}">` + fontLink(fonts) + `<meta name="color-scheme" content="${theme}"><style id="matrx-sample-tokens">${sampleStyle(tokens, theme, font)}</style></head><body><div id="matrx-sample">${html}</div></body></html>`;
|
|
7332
7332
|
}
|
|
7333
|
+
function forwardWheel(target, e) {
|
|
7334
|
+
if (!target) return;
|
|
7335
|
+
const r = target.getBoundingClientRect();
|
|
7336
|
+
target.dispatchEvent(
|
|
7337
|
+
new WheelEvent("wheel", {
|
|
7338
|
+
bubbles: true,
|
|
7339
|
+
cancelable: true,
|
|
7340
|
+
deltaX: e.deltaX,
|
|
7341
|
+
deltaY: e.deltaY,
|
|
7342
|
+
deltaZ: e.deltaZ,
|
|
7343
|
+
deltaMode: e.deltaMode,
|
|
7344
|
+
clientX: r.left + e.clientX,
|
|
7345
|
+
clientY: r.top + e.clientY,
|
|
7346
|
+
ctrlKey: e.ctrlKey,
|
|
7347
|
+
metaKey: e.metaKey,
|
|
7348
|
+
shiftKey: e.shiftKey,
|
|
7349
|
+
altKey: e.altKey
|
|
7350
|
+
})
|
|
7351
|
+
);
|
|
7352
|
+
}
|
|
7333
7353
|
function sampleHeight(doc) {
|
|
7334
7354
|
const box = doc?.getElementById("matrx-sample");
|
|
7335
7355
|
if (!box) return 0;
|
|
@@ -7387,6 +7407,7 @@ function HtmlSampleFrame({ html, title = "Sample", className, initialHeight = 24
|
|
|
7387
7407
|
const box = inner2.getElementById("matrx-sample");
|
|
7388
7408
|
const View = inner2.defaultView;
|
|
7389
7409
|
if (box && View?.ResizeObserver) new View.ResizeObserver(() => measure()).observe(box);
|
|
7410
|
+
inner2.addEventListener("wheel", (e) => forwardWheel(frame.current, e), { passive: true });
|
|
7390
7411
|
};
|
|
7391
7412
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7392
7413
|
"iframe",
|