@validationcloud/fractal-ui 1.55.0 → 1.57.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/charts.d.ts +9 -0
- package/dist/charts.js +25 -0
- package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +17 -6
- package/dist/{src/components → components}/echarts-renderer/mavrik-theme-horizontal.json.js +10 -8
- package/dist/components/echarts-renderer/mavrik-theme.d.ts +30 -0
- package/dist/components/echarts-renderer/mavrik-theme.js +25 -0
- package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +17 -6
- package/dist/{src/components → components}/echarts-renderer/mavrik-theme.json.js +10 -8
- package/dist/components/echarts-renderer/sanitize-chart-options-for-static-rendering.d.ts +9 -0
- package/dist/components/echarts-renderer/sanitize-chart-options-for-static-rendering.js +21 -0
- package/dist/components/select/select.d.ts +10 -8
- package/dist/{src/components → components}/select/select.js +43 -43
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/Poppins-Bold.ttf +0 -0
- package/dist/fonts/Poppins-Medium.ttf +0 -0
- package/dist/fonts/Poppins-Regular.ttf +0 -0
- package/dist/fonts/Poppins-SemiBold.ttf +0 -0
- package/dist/index.d.ts +0 -6
- package/dist/index.js +59 -74
- package/dist/lib/render-chart-to-image.d.ts +8 -1
- package/dist/lib/render-chart-to-image.js +83 -0
- package/dist/lib/render-mavrik-chart-to-image.d.ts +2 -1
- package/dist/lib/render-mavrik-chart-to-image.js +22 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +6 -2
- package/package.json +11 -11
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@1_d580df0584800d3ed24dd50bc4bb768c/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_965c21727754e936eeb7d35183788fa0/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +0 -53
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.6_@types_react-dom@19.2.3_@types_react@19.2.6__@t_c6844451b48448597731ceee2c7ec947/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -18
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_1236dc37c73a65e17034434472fa319b/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_875fb0de6110028421a3e7790df757e0/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_5324bcb5f7050b43e9225714ff37edcd/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js +0 -35
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_6ddc7a756051e26689ab8a69ff12c731/node_modules/@radix-ui/react-select/dist/index.js +0 -821
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +0 -48
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -32
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_06b3b0029799d875b5a80b38402a9c14/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
- package/dist/src/components/echarts-renderer/mavrik-theme.js +0 -23
- package/dist/src/lib/render-chart-to-image.js +0 -51
- /package/dist/{src/assets → assets}/animated-loader.svg.js +0 -0
- /package/dist/{src/assets → assets}/default-avatar.svg.js +0 -0
- /package/dist/{src/assets → assets}/not-found.svg.js +0 -0
- /package/dist/{src/assets → assets}/vc-logo.svg.js +0 -0
- /package/dist/{src/components → components}/animated-loader/animated-loader.js +0 -0
- /package/dist/{src/components → components}/badge/badge.js +0 -0
- /package/dist/{src/components → components}/box/box.js +0 -0
- /package/dist/{src/components → components}/button/button.js +0 -0
- /package/dist/{src/components → components}/client-modal/client-modal.js +0 -0
- /package/dist/{src/components → components}/collapsible/collapsible.js +0 -0
- /package/dist/{src/components → components}/copy-button/copy-button.js +0 -0
- /package/dist/{src/components → components}/decorated-icon/decorated-icon.js +0 -0
- /package/dist/{src/components → components}/dropdown-menu/dropdown-menu.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/calculate-title-layout.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/detect-horizontal-bars.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-chart-option.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-renderer.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-theme-option.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-chart.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/use-chart-instance.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/watermark-graphic.js +0 -0
- /package/dist/{src/components → components}/error-boundary/error-boundary.js +0 -0
- /package/dist/{src/components → components}/icon/icon.js +0 -0
- /package/dist/{src/components → components}/icon-button/icon-button.js +0 -0
- /package/dist/{src/components → components}/input-button/input-button.js +0 -0
- /package/dist/{src/components → components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
- /package/dist/{src/components → components}/not-found-component/not-found-component.js +0 -0
- /package/dist/{src/components → components}/page-padding/page-padding.js +0 -0
- /package/dist/{src/components → components}/protocol-logo/protocol-logo.js +0 -0
- /package/dist/{src/components → components}/scroll-area/index.js +0 -0
- /package/dist/{src/components → components}/scroll-area/scroll-area-viewport.js +0 -0
- /package/dist/{src/components → components}/scroll-area/scroll-area.js +0 -0
- /package/dist/{src/components → components}/skeleton/skeleton.js +0 -0
- /package/dist/{src/components → components}/switch/switch.js +0 -0
- /package/dist/{src/components → components}/text-input/text-input.js +0 -0
- /package/dist/{src/components → components}/tooltip/tooltip.js +0 -0
- /package/dist/{src/components → components}/tooltip-provider/tooltip-provider.js +0 -0
- /package/dist/{src/components → components}/touch-target/touch-target.js +0 -0
- /package/dist/{src/components → components}/user-dropdown/user-dropdown.js +0 -0
- /package/dist/{src/components → components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
- /package/dist/{src/hooks → hooks}/use-scroll-to-bottom.js +0 -0
- /package/dist/{src/internal → internal}/modal-header.js +0 -0
- /package/dist/{src/internal → internal}/modal.js +0 -0
- /package/dist/{src/internal → internal}/react-portal.js +0 -0
- /package/dist/{src/internal → internal}/round-button.js +0 -0
- /package/dist/{src/lib → lib}/tailwind-merge.js +0 -0
- /package/dist/{src/utils → utils}/disable-password-managers.js +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getNonce as o } from "../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js";
|
|
2
|
-
function r() {
|
|
3
|
-
if (!document)
|
|
4
|
-
return null;
|
|
5
|
-
var t = document.createElement("style");
|
|
6
|
-
t.type = "text/css";
|
|
7
|
-
var e = o();
|
|
8
|
-
return e && t.setAttribute("nonce", e), t;
|
|
9
|
-
}
|
|
10
|
-
function l(t, e) {
|
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
-
}
|
|
13
|
-
function a(t) {
|
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
-
e.appendChild(t);
|
|
16
|
-
}
|
|
17
|
-
var c = function() {
|
|
18
|
-
var t = 0, e = null;
|
|
19
|
-
return {
|
|
20
|
-
add: function(n) {
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
c as stylesheetSingleton
|
|
30
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var p = function() {
|
|
2
|
-
return p = Object.assign || function(e) {
|
|
3
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
4
|
-
n = arguments[r];
|
|
5
|
-
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6
|
-
}
|
|
7
|
-
return e;
|
|
8
|
-
}, p.apply(this, arguments);
|
|
9
|
-
};
|
|
10
|
-
function c(t, e) {
|
|
11
|
-
var n = {};
|
|
12
|
-
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
13
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
14
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
|
15
|
-
e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
|
|
16
|
-
return n;
|
|
17
|
-
}
|
|
18
|
-
function l(t, e, n) {
|
|
19
|
-
if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
|
|
20
|
-
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
21
|
-
return t.concat(a || Array.prototype.slice.call(e));
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
p as __assign,
|
|
25
|
-
c as __rest,
|
|
26
|
-
l as __spreadArray
|
|
27
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
import { assignRef as o } from "./assignRef.js";
|
|
3
|
-
import { useCallbackRef as l } from "./useRef.js";
|
|
4
|
-
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
function v(e, m) {
|
|
6
|
-
var t = l(null, function(n) {
|
|
7
|
-
return e.forEach(function(u) {
|
|
8
|
-
return o(u, n);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
return s(function() {
|
|
12
|
-
var n = c.get(t);
|
|
13
|
-
if (n) {
|
|
14
|
-
var u = new Set(n), r = new Set(e), i = t.current;
|
|
15
|
-
u.forEach(function(a) {
|
|
16
|
-
r.has(a) || o(a, null);
|
|
17
|
-
}), r.forEach(function(a) {
|
|
18
|
-
u.has(a) || o(a, i);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
c.set(t, e);
|
|
22
|
-
}, [e]), t;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
v as useMergeRefs
|
|
26
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useState as u } from "react";
|
|
2
|
-
function n(c, r) {
|
|
3
|
-
var e = u(function() {
|
|
4
|
-
return {
|
|
5
|
-
// value
|
|
6
|
-
value: c,
|
|
7
|
-
// last callback
|
|
8
|
-
callback: r,
|
|
9
|
-
// "memoized" public interface
|
|
10
|
-
facade: {
|
|
11
|
-
get current() {
|
|
12
|
-
return e.value;
|
|
13
|
-
},
|
|
14
|
-
set current(a) {
|
|
15
|
-
var t = e.value;
|
|
16
|
-
t !== a && (e.value = a, e.callback(a, t));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
})[0];
|
|
21
|
-
return e.callback = r, e.facade;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
n as useCallbackRef
|
|
25
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __rest as o, __assign as d } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
var i = function(r) {
|
|
4
|
-
var e = r.sideCar, a = o(r, ["sideCar"]);
|
|
5
|
-
if (!e)
|
|
6
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
-
var t = e.read();
|
|
8
|
-
if (!t)
|
|
9
|
-
throw new Error("Sidecar medium not found");
|
|
10
|
-
return n.createElement(t, d({}, a));
|
|
11
|
-
};
|
|
12
|
-
i.isSideCarExport = !0;
|
|
13
|
-
function p(r, e) {
|
|
14
|
-
return r.useMedium(e), i;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
p as exportSidecar
|
|
18
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __assign as d } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
-
function l(r) {
|
|
3
|
-
return r;
|
|
4
|
-
}
|
|
5
|
-
function h(r, t) {
|
|
6
|
-
t === void 0 && (t = l);
|
|
7
|
-
var e = [], o = !1, c = {
|
|
8
|
-
read: function() {
|
|
9
|
-
if (o)
|
|
10
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
-
return e.length ? e[e.length - 1] : r;
|
|
12
|
-
},
|
|
13
|
-
useMedium: function(u) {
|
|
14
|
-
var n = t(u, o);
|
|
15
|
-
return e.push(n), function() {
|
|
16
|
-
e = e.filter(function(i) {
|
|
17
|
-
return i !== n;
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
assignSyncMedium: function(u) {
|
|
22
|
-
for (o = !0; e.length; ) {
|
|
23
|
-
var n = e;
|
|
24
|
-
e = [], n.forEach(u);
|
|
25
|
-
}
|
|
26
|
-
e = {
|
|
27
|
-
push: function(i) {
|
|
28
|
-
return u(i);
|
|
29
|
-
},
|
|
30
|
-
filter: function() {
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
assignMedium: function(u) {
|
|
36
|
-
o = !0;
|
|
37
|
-
var n = [];
|
|
38
|
-
if (e.length) {
|
|
39
|
-
var i = e;
|
|
40
|
-
e = [], i.forEach(u), n = e;
|
|
41
|
-
}
|
|
42
|
-
var s = function() {
|
|
43
|
-
var f = n;
|
|
44
|
-
n = [], f.forEach(u);
|
|
45
|
-
}, a = function() {
|
|
46
|
-
return Promise.resolve().then(s);
|
|
47
|
-
};
|
|
48
|
-
a(), e = {
|
|
49
|
-
push: function(f) {
|
|
50
|
-
n.push(f), a();
|
|
51
|
-
},
|
|
52
|
-
filter: function(f) {
|
|
53
|
-
return n = n.filter(f), e;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return c;
|
|
59
|
-
}
|
|
60
|
-
function v(r) {
|
|
61
|
-
r === void 0 && (r = {});
|
|
62
|
-
var t = h(null);
|
|
63
|
-
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
v as createSidecarMedium
|
|
67
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { hasHorizontalBars as t } from "./detect-horizontal-bars.js";
|
|
2
|
-
import { isEChartsThemeOption as o } from "./echarts-theme-option.js";
|
|
3
|
-
import r from "./mavrik-theme-horizontal.json.js";
|
|
4
|
-
import i from "./mavrik-theme.json.js";
|
|
5
|
-
if (!o(i))
|
|
6
|
-
throw new Error("Invalid mavrik theme configuration");
|
|
7
|
-
if (!o(r))
|
|
8
|
-
throw new Error("Invalid mavrik horizontal theme configuration");
|
|
9
|
-
const e = {
|
|
10
|
-
name: "mavrik",
|
|
11
|
-
config: i
|
|
12
|
-
}, m = {
|
|
13
|
-
name: "mavrik-horizontal",
|
|
14
|
-
config: r
|
|
15
|
-
};
|
|
16
|
-
function l(n) {
|
|
17
|
-
return t(n) ? m : e;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
e as MAVRIK_THEME,
|
|
21
|
-
m as MAVRIK_THEME_HORIZONTAL,
|
|
22
|
-
l as selectMavrikTheme
|
|
23
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { createCanvas as u } from "canvas";
|
|
2
|
-
import { randomUUID as l } from "node:crypto";
|
|
3
|
-
import { createRequire as d } from "node:module";
|
|
4
|
-
import { calculateTitleLayout as O } from "../components/echarts-renderer/calculate-title-layout.js";
|
|
5
|
-
import { addWatermarkToOptions as y } from "../components/echarts-renderer/watermark-graphic.js";
|
|
6
|
-
const T = d(import.meta.url), b = /* @__PURE__ */ new Set([
|
|
7
|
-
"aria",
|
|
8
|
-
// Tries to set DOM attributes which node-canvas doesn't implement
|
|
9
|
-
"toolbox",
|
|
10
|
-
// Export/zoom/reset buttons - not useful in static image
|
|
11
|
-
"dataZoom",
|
|
12
|
-
// Interactive range slider
|
|
13
|
-
"brush",
|
|
14
|
-
// Selection tool
|
|
15
|
-
"axisPointer"
|
|
16
|
-
// Crosshair on hover
|
|
17
|
-
]);
|
|
18
|
-
function j(r) {
|
|
19
|
-
if (!r || typeof r != "object" || Array.isArray(r))
|
|
20
|
-
return { animation: !1 };
|
|
21
|
-
const t = Object.fromEntries(
|
|
22
|
-
Object.entries(r).filter(([e]) => !b.has(e))
|
|
23
|
-
);
|
|
24
|
-
return t.animation = !1, t;
|
|
25
|
-
}
|
|
26
|
-
function g({
|
|
27
|
-
option: r,
|
|
28
|
-
theme: t,
|
|
29
|
-
width: e = 800,
|
|
30
|
-
height: o = 600,
|
|
31
|
-
devicePixelRatio: c = 2
|
|
32
|
-
}) {
|
|
33
|
-
const n = T("echarts");
|
|
34
|
-
let a;
|
|
35
|
-
t && typeof t == "object" && (a = `theme-${l()}`, n.registerTheme(a, t));
|
|
36
|
-
const i = u(e, o), s = n.init(i, a, {
|
|
37
|
-
renderer: "canvas",
|
|
38
|
-
devicePixelRatio: c,
|
|
39
|
-
width: e,
|
|
40
|
-
height: o
|
|
41
|
-
});
|
|
42
|
-
try {
|
|
43
|
-
const m = j(r), f = O(m, e, t), p = y(f);
|
|
44
|
-
return s.setOption(p), i.toBuffer("image/png");
|
|
45
|
-
} finally {
|
|
46
|
-
s.dispose();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
g as renderChartToImage
|
|
51
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|