@astrato-io/visualizations 0.10.1 → 0.12.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 +30 -1
- package/README.md +148 -5
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +9 -146
- package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
- package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
- package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
- package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
- package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
- package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
- package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
- package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
- package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
- package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
- package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
- package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
- package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
- package/chunks/defaults-CMFqXvaJ.js +3 -0
- package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
- package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
- package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
- package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
- package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
- package/chunks/handlers-CyYFSfhM.js +15393 -0
- package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
- package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
- package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
- package/chunks/line.compiler-B-4H55_T.js +203 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
- package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
- package/chunks/measure-format-default-B_kuGSzi.js +26 -0
- package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
- package/chunks/number.compiler-D7nMcEMv.js +57 -0
- package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
- package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
- package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
- package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
- package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
- package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
- package/chunks/standalone-B3hRGgYi.js +773 -0
- package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
- package/chunks/standalone-BPTT8XEu.js +424 -0
- package/chunks/standalone-BgAeHROc.js +2 -0
- package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
- package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
- package/chunks/standalone-C0If-V6O.js +773 -0
- package/chunks/standalone-C1TOyflX.js +287 -0
- package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
- package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
- package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
- package/chunks/standalone-CNf-oA2U.js +355 -0
- package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
- package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
- package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
- package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
- package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
- package/chunks/standalone-Dbn3jSH6.js +690 -0
- package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
- package/chunks/standalone-DwCIA0UG.js +1057 -0
- package/chunks/standalone-Dz13tl3P.js +357 -0
- package/chunks/standalone-H9GFzFk_.js +8377 -0
- package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
- package/chunks/standalone-ejTz66P3.js +2 -0
- package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
- package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
- package/chunks/standalone-vGGR6Vcn.js +6 -0
- package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
- package/chunks/theme-MYp6Rj1J.js +232 -0
- package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
- package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
- package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
- package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
- package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +144 -32
- package/docs/operations/combo.md +79 -17
- package/docs/operations/date-picker.md +4 -4
- package/docs/operations/distribution-gauge.md +18 -16
- package/docs/operations/dot.md +107 -24
- package/docs/operations/filter.md +10 -8
- package/docs/operations/gauge.md +20 -18
- package/docs/operations/heatMap.md +73 -21
- package/docs/operations/histogram.md +45 -12
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +12 -11
- package/docs/operations/line.md +86 -24
- package/docs/operations/map.md +5274 -0
- package/docs/operations/number.md +10 -9
- package/docs/operations/pie.md +23 -21
- package/docs/operations/radar.md +13 -11
- package/docs/operations/sankey.md +19 -17
- package/docs/operations/scatter.md +111 -28
- package/docs/operations/shape.md +5 -5
- package/docs/operations/simpleTextObject.md +4 -4
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +27 -25
- package/docs/operations/tree.md +5 -3
- package/docs/operations/treemap.md +70 -18
- package/docs/operations/waterfall.md +40 -7
- package/docs/operations/word-cloud.md +69 -17
- package/getters.js +3 -3
- package/index.js +585 -612
- package/metadata.js +2 -2
- package/operations.js +25 -18
- package/package.json +74 -70
- package/src/definitions/index.d.ts +1 -7
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
- package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +11 -1
- package/src/types.d.ts +166 -1
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
- package/chunks/color-rules-DYJL4fIW.js +0 -15
- package/chunks/color-settings-DJFoFTip.js +0 -5
- package/chunks/defaults-Dtk7fg3C.js +0 -3
- package/chunks/handlers-C6CZ0XJA.js +0 -15399
- package/chunks/line.compiler-DmHpmQCC.js +0 -198
- package/chunks/number.compiler-DQdg6zTy.js +0 -53
- package/chunks/standalone-4MsKiqs0.js +0 -355
- package/chunks/standalone-B794g9pE.js +0 -1012
- package/chunks/standalone-BA2YXyJS.js +0 -422
- package/chunks/standalone-BgumbdaJ2.js +0 -357
- package/chunks/standalone-Blh4qejk.js +0 -689
- package/chunks/standalone-CXY4FpF7.js +0 -773
- package/chunks/standalone-DH0xTEes.js +0 -2
- package/chunks/standalone-DcnHjNnC.js +0 -2
- package/chunks/standalone-DrHdGkY7.js +0 -762
- package/chunks/standalone-c_rROMtx.js +0 -287
- package/chunks/standalone-drcFLeN6.js +0 -6
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./logger-
|
|
5
|
-
import { _ as T, a as E, d as D, f as ee, i as O, l as k, m as A, o as j, r as M, s as N, u as P, v as F } from "./react-dom-
|
|
6
|
-
import { d as I, f as te, i as ne, l as L, n as R, s as re, u as z } from "./isFocusVisible-
|
|
7
|
-
import { a as ie, c as ae, f as oe, h as se, l as ce, n as le, p as ue, s as de, t as fe, v as pe, y as me } from "./Title-
|
|
2
|
+
import { Ua as n } from "./visualization-filters-B9qik5_K.js";
|
|
3
|
+
import { Fr as r, G as i, K as a, Nr as o, Rr as s, Ur as c, V as l, Vn as u, Y as d, Yn as f, at as p, di as m, dn as h, et as g, fi as _, or as v, pi as y, r as b, rt as x, tt as S, ui as C, zr as w } from "./utils-CUKgR7it.js";
|
|
4
|
+
import "./logger-Cioob-QV.js";
|
|
5
|
+
import { _ as T, a as E, d as D, f as ee, i as O, l as k, m as A, o as j, r as M, s as N, u as P, v as F } from "./react-dom-CfuL-m78.js";
|
|
6
|
+
import { d as I, f as te, i as ne, l as L, n as R, s as re, u as z } from "./isFocusVisible-Czm70MGc.js";
|
|
7
|
+
import { a as ie, c as ae, f as oe, h as se, l as ce, n as le, p as ue, s as de, t as fe, v as pe, y as me } from "./Title-m5damhc0.js";
|
|
8
8
|
import { i as he, n as ge, r as B, t as V } from "./contains-BK-sRXcB.js";
|
|
9
9
|
import { a as _e, d as ve, f as H } from "./responsive.styles-FItb913l.js";
|
|
10
|
-
import "./coloring-
|
|
10
|
+
import "./coloring-Cd6p0GQJ.js";
|
|
11
11
|
var ye = {
|
|
12
12
|
left: "left",
|
|
13
13
|
right: "right"
|
|
@@ -1680,7 +1680,7 @@ function Oe(e, t = 166) {
|
|
|
1680
1680
|
function U(e) {
|
|
1681
1681
|
return L(e).defaultView || window;
|
|
1682
1682
|
}
|
|
1683
|
-
var W = /* @__PURE__ */ e(
|
|
1683
|
+
var W = /* @__PURE__ */ e(_(), 1), G = c(), ke = x, K = L;
|
|
1684
1684
|
function Ae(...e) {
|
|
1685
1685
|
return e.reduce((e, t) => t == null ? e : function(...n) {
|
|
1686
1686
|
e.apply(this, n), t.apply(this, n);
|
|
@@ -1701,7 +1701,7 @@ function Ne(e, t) {
|
|
|
1701
1701
|
let i = typeof t == "function" ? t(r) : t, a = typeof e == "function" ? e({
|
|
1702
1702
|
...r,
|
|
1703
1703
|
...i
|
|
1704
|
-
}) : e, o =
|
|
1704
|
+
}) : e, o = p(r?.className, i?.className, a?.className), s = n(a, i), c = {
|
|
1705
1705
|
...i,
|
|
1706
1706
|
...a,
|
|
1707
1707
|
...s
|
|
@@ -1711,7 +1711,7 @@ function Ne(e, t) {
|
|
|
1711
1711
|
...a.style
|
|
1712
1712
|
}), i?.sx && a?.sx && (c.sx = [...Array.isArray(i.sx) ? i.sx : [i.sx], ...Array.isArray(a.sx) ? a.sx : [a.sx]]), c;
|
|
1713
1713
|
};
|
|
1714
|
-
let r = t, i = n(e, r), a =
|
|
1714
|
+
let r = t, i = n(e, r), a = p(r?.className, e?.className), o = {
|
|
1715
1715
|
...t,
|
|
1716
1716
|
...e,
|
|
1717
1717
|
...i
|
|
@@ -1770,26 +1770,26 @@ var Fe = (e) => {
|
|
|
1770
1770
|
let n = k({
|
|
1771
1771
|
props: e,
|
|
1772
1772
|
name: "MuiPaper"
|
|
1773
|
-
}), r =
|
|
1773
|
+
}), r = a(), { className: i, component: o = "div", elevation: s = 1, square: c = !1, variant: l = "elevation", ...u } = n, f = {
|
|
1774
1774
|
...n,
|
|
1775
|
-
component:
|
|
1775
|
+
component: o,
|
|
1776
1776
|
elevation: s,
|
|
1777
|
-
square:
|
|
1778
|
-
variant:
|
|
1779
|
-
},
|
|
1777
|
+
square: c,
|
|
1778
|
+
variant: l
|
|
1779
|
+
}, m = Fe(f);
|
|
1780
1780
|
return /*#__PURE__*/ (0, G.jsx)(Ie, {
|
|
1781
|
-
as:
|
|
1781
|
+
as: o,
|
|
1782
1782
|
ownerState: f,
|
|
1783
|
-
className: m
|
|
1783
|
+
className: p(m.root, i),
|
|
1784
1784
|
ref: t,
|
|
1785
|
-
...
|
|
1785
|
+
...u,
|
|
1786
1786
|
style: {
|
|
1787
|
-
...
|
|
1787
|
+
...l === "elevation" && {
|
|
1788
1788
|
"--Paper-shadow": (r.vars || r).shadows[s],
|
|
1789
1789
|
...r.vars && { "--Paper-overlay": r.vars.overlays?.[s] },
|
|
1790
|
-
...!r.vars && r.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${
|
|
1790
|
+
...!r.vars && r.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${S("#fff", d(s))}, ${S("#fff", d(s))})` }
|
|
1791
1791
|
},
|
|
1792
|
-
...
|
|
1792
|
+
...u.style
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
}), Re = {
|
|
@@ -1801,10 +1801,10 @@ var Fe = (e) => {
|
|
|
1801
1801
|
opacity: 0,
|
|
1802
1802
|
visibility: "hidden"
|
|
1803
1803
|
}, Be = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
1804
|
-
let n =
|
|
1804
|
+
let n = a(), r = {
|
|
1805
1805
|
enter: n.transitions.duration.enteringScreen,
|
|
1806
1806
|
exit: n.transitions.duration.leavingScreen
|
|
1807
|
-
}, { addEndListener: i, appear:
|
|
1807
|
+
}, { addEndListener: i, appear: o = !0, children: s, disablePrefersReducedMotion: c = !1, easing: l, in: u, onEnter: d, onEntered: f, onEntering: p, onExit: m, onExited: h, onExiting: g, style: _, timeout: v = r, ...y } = e, b = oe(n.motion.reducedMotion, c), x = W.useRef(null), S = me(x, ae(s), t), C = j(x, p), w = j(x, (e, t) => {
|
|
1808
1808
|
b.shouldReduceMotion || N(e);
|
|
1809
1809
|
let r = O({
|
|
1810
1810
|
style: _,
|
|
@@ -1821,7 +1821,7 @@ var Fe = (e) => {
|
|
|
1821
1821
|
}), d && d(e, t);
|
|
1822
1822
|
}), T = j(x, f), E = j(x, g);
|
|
1823
1823
|
return /*#__PURE__*/ (0, G.jsx)(ue, {
|
|
1824
|
-
appear:
|
|
1824
|
+
appear: o,
|
|
1825
1825
|
in: u,
|
|
1826
1826
|
nodeRef: x,
|
|
1827
1827
|
onEnter: w,
|
|
@@ -1899,14 +1899,14 @@ var He = (e) => {
|
|
|
1899
1899
|
...n,
|
|
1900
1900
|
component: a,
|
|
1901
1901
|
invisible: o
|
|
1902
|
-
},
|
|
1902
|
+
}, m = He(f), h = {
|
|
1903
1903
|
component: a,
|
|
1904
1904
|
slots: l,
|
|
1905
1905
|
slotProps: c
|
|
1906
1906
|
}, [g, _] = R("root", {
|
|
1907
1907
|
elementType: Ue,
|
|
1908
1908
|
externalForwardedProps: h,
|
|
1909
|
-
className: m
|
|
1909
|
+
className: p(m.root, i),
|
|
1910
1910
|
ownerState: f
|
|
1911
1911
|
}), [v, y] = R("transition", {
|
|
1912
1912
|
elementType: Be,
|
|
@@ -2350,14 +2350,14 @@ var _t = (e) => {
|
|
|
2350
2350
|
let n = k({
|
|
2351
2351
|
name: "MuiModal",
|
|
2352
2352
|
props: e
|
|
2353
|
-
}), { classes: r, className: i, closeAfterTransition: a = !1, children: o, container: s, component: c, disableAutoFocus: l = !1, disableEnforceFocus: u = !1, disablePortal: d = !1, disableRestoreFocus: f = !1, disableScrollLock:
|
|
2353
|
+
}), { classes: r, className: i, closeAfterTransition: a = !1, children: o, container: s, component: c, disableAutoFocus: l = !1, disableEnforceFocus: u = !1, disablePortal: d = !1, disableRestoreFocus: f = !1, disableScrollLock: m = !1, hideBackdrop: h = !1, keepMounted: g = !1, onClose: _, onTransitionEnter: v, onTransitionExited: y, open: b, slotProps: x = {}, slots: S = {}, theme: C, ...w } = n, T = {
|
|
2354
2354
|
...n,
|
|
2355
2355
|
closeAfterTransition: a,
|
|
2356
2356
|
disableAutoFocus: l,
|
|
2357
2357
|
disableEnforceFocus: u,
|
|
2358
2358
|
disablePortal: d,
|
|
2359
2359
|
disableRestoreFocus: f,
|
|
2360
|
-
disableScrollLock:
|
|
2360
|
+
disableScrollLock: m,
|
|
2361
2361
|
hideBackdrop: h,
|
|
2362
2362
|
keepMounted: g
|
|
2363
2363
|
}, { getRootProps: E, getBackdropProps: D, getTransitionProps: ee, portalRef: O, portalContainer: A, isTopModal: j, exited: M, hasTransition: N } = ht({
|
|
@@ -2384,7 +2384,7 @@ var _t = (e) => {
|
|
|
2384
2384
|
},
|
|
2385
2385
|
getSlotProps: E,
|
|
2386
2386
|
ownerState: P,
|
|
2387
|
-
className:
|
|
2387
|
+
className: p(i, F?.root, !P.open && P.exited && F?.hidden)
|
|
2388
2388
|
}), [re, z] = R("backdrop", {
|
|
2389
2389
|
elementType: yt,
|
|
2390
2390
|
externalForwardedProps: te,
|
|
@@ -2476,7 +2476,7 @@ var Ct = (e) => {
|
|
|
2476
2476
|
value: u,
|
|
2477
2477
|
children: /*#__PURE__*/ (0, G.jsxs)(wt, {
|
|
2478
2478
|
as: a,
|
|
2479
|
-
className:
|
|
2479
|
+
className: p(f.root, i),
|
|
2480
2480
|
ref: t,
|
|
2481
2481
|
ownerState: d,
|
|
2482
2482
|
...l,
|
|
@@ -2617,12 +2617,12 @@ function Mt(e) {
|
|
|
2617
2617
|
n,
|
|
2618
2618
|
r
|
|
2619
2619
|
]), c = I(e.ref, s);
|
|
2620
|
-
return
|
|
2620
|
+
return x(() => {
|
|
2621
2621
|
i.current && n({
|
|
2622
2622
|
...a,
|
|
2623
2623
|
element: i.current
|
|
2624
2624
|
});
|
|
2625
|
-
}, [a, n]),
|
|
2625
|
+
}, [a, n]), x(() => {
|
|
2626
2626
|
let t = e.id;
|
|
2627
2627
|
return () => {
|
|
2628
2628
|
r(t);
|
|
@@ -2886,7 +2886,7 @@ var ln = (e) => {
|
|
|
2886
2886
|
}), { action: r, anchorEl: i, anchorOrigin: a = {
|
|
2887
2887
|
vertical: "top",
|
|
2888
2888
|
horizontal: "left"
|
|
2889
|
-
}, anchorPosition: o, anchorReference: s = "anchorEl", children: c, className: l, container: u, disableAutoFocus: d = !1, elevation: f = 8, marginThreshold:
|
|
2889
|
+
}, anchorPosition: o, anchorReference: s = "anchorEl", children: c, className: l, container: u, disableAutoFocus: d = !1, elevation: f = 8, marginThreshold: m = 16, open: h, slots: g = {}, slotProps: _ = {}, transformOrigin: v = {
|
|
2890
2890
|
vertical: "top",
|
|
2891
2891
|
horizontal: "left"
|
|
2892
2892
|
}, transitionDuration: y = "auto", disableScrollLock: b = !1, ...x } = n, S = W.useRef(), C = {
|
|
@@ -2894,7 +2894,7 @@ var ln = (e) => {
|
|
|
2894
2894
|
anchorOrigin: a,
|
|
2895
2895
|
anchorReference: s,
|
|
2896
2896
|
elevation: f,
|
|
2897
|
-
marginThreshold:
|
|
2897
|
+
marginThreshold: m,
|
|
2898
2898
|
transformOrigin: v,
|
|
2899
2899
|
transitionDuration: y
|
|
2900
2900
|
}, w = ln(C), T = W.useCallback(() => {
|
|
@@ -2923,16 +2923,16 @@ var ln = (e) => {
|
|
|
2923
2923
|
left: null,
|
|
2924
2924
|
transformOrigin: sn(n)
|
|
2925
2925
|
};
|
|
2926
|
-
let r = T(), a = r.top - n.vertical, o = r.left - n.horizontal, c = a + t.height, l = o + t.width, u = Me(cn(i)), d = u.innerHeight -
|
|
2927
|
-
if (
|
|
2928
|
-
let e = a -
|
|
2926
|
+
let r = T(), a = r.top - n.vertical, o = r.left - n.horizontal, c = a + t.height, l = o + t.width, u = Me(cn(i)), d = u.innerHeight - m, f = u.innerWidth - m;
|
|
2927
|
+
if (m != null && a < m) {
|
|
2928
|
+
let e = a - m;
|
|
2929
2929
|
a -= e, n.vertical += e;
|
|
2930
|
-
} else if (
|
|
2930
|
+
} else if (m != null && c > d) {
|
|
2931
2931
|
let e = c - d;
|
|
2932
2932
|
a -= e, n.vertical += e;
|
|
2933
2933
|
}
|
|
2934
|
-
if (
|
|
2935
|
-
let e = o -
|
|
2934
|
+
if (m != null && o < m) {
|
|
2935
|
+
let e = o - m;
|
|
2936
2936
|
o -= e, n.horizontal += e;
|
|
2937
2937
|
} else if (l > f) {
|
|
2938
2938
|
let e = l - f;
|
|
@@ -2948,7 +2948,7 @@ var ln = (e) => {
|
|
|
2948
2948
|
s,
|
|
2949
2949
|
T,
|
|
2950
2950
|
E,
|
|
2951
|
-
|
|
2951
|
+
m
|
|
2952
2952
|
]), [ee, O] = W.useState(h), A = W.useCallback(() => {
|
|
2953
2953
|
let e = S.current;
|
|
2954
2954
|
if (!e) return;
|
|
@@ -3019,7 +3019,7 @@ var ln = (e) => {
|
|
|
3019
3019
|
open: h
|
|
3020
3020
|
},
|
|
3021
3021
|
ownerState: C,
|
|
3022
|
-
className:
|
|
3022
|
+
className: p(w.root, l)
|
|
3023
3023
|
}), [oe, se] = R("paper", {
|
|
3024
3024
|
ref: S,
|
|
3025
3025
|
className: w.paper,
|
|
@@ -3088,24 +3088,24 @@ var mn = {
|
|
|
3088
3088
|
let n = k({
|
|
3089
3089
|
props: e,
|
|
3090
3090
|
name: "MuiMenu"
|
|
3091
|
-
}), { autoFocus:
|
|
3091
|
+
}), { autoFocus: r = !0, children: i, className: a, disableAutoFocusItem: o = !1, onClose: s, open: c, PopoverClasses: l, transitionDuration: u = "auto", variant: d = "selectedMenu", slots: f = {}, slotProps: p = {}, ...m } = n, h = g(), _ = {
|
|
3092
3092
|
...n,
|
|
3093
|
-
autoFocus:
|
|
3094
|
-
disableAutoFocusItem:
|
|
3095
|
-
transitionDuration:
|
|
3096
|
-
variant:
|
|
3097
|
-
}, v = gn(_), y =
|
|
3098
|
-
x.current && (x.current.adjustStyleForScrollbar(e, { direction:
|
|
3093
|
+
autoFocus: r,
|
|
3094
|
+
disableAutoFocusItem: o,
|
|
3095
|
+
transitionDuration: u,
|
|
3096
|
+
variant: d
|
|
3097
|
+
}, v = gn(_), y = r && c, b = y && !o, x = W.useRef(null), S = (e, t) => {
|
|
3098
|
+
x.current && (x.current.adjustStyleForScrollbar(e, { direction: h ? "rtl" : "ltr" }), y && x.current.focusInitialTarget?.());
|
|
3099
3099
|
}, C = (e) => {
|
|
3100
|
-
e.key === "Tab" && (e.preventDefault(),
|
|
3100
|
+
e.key === "Tab" && (e.preventDefault(), s && s(e, "tabKeyDown"));
|
|
3101
3101
|
}, w = {
|
|
3102
|
-
slots:
|
|
3103
|
-
slotProps:
|
|
3102
|
+
slots: f,
|
|
3103
|
+
slotProps: p
|
|
3104
3104
|
}, T = ce({
|
|
3105
|
-
elementType:
|
|
3106
|
-
externalSlotProps:
|
|
3105
|
+
elementType: f.root,
|
|
3106
|
+
externalSlotProps: p.root,
|
|
3107
3107
|
ownerState: _,
|
|
3108
|
-
className: [v.root,
|
|
3108
|
+
className: [v.root, a]
|
|
3109
3109
|
}), [E, D] = R("paper", {
|
|
3110
3110
|
className: v.paper,
|
|
3111
3111
|
elementType: vn,
|
|
@@ -3124,25 +3124,25 @@ var mn = {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
}),
|
|
3126
3126
|
ownerState: _
|
|
3127
|
-
}), A = typeof
|
|
3127
|
+
}), A = typeof p.transition == "function" ? p.transition(_) : p.transition;
|
|
3128
3128
|
return /*#__PURE__*/ (0, G.jsx)(_n, {
|
|
3129
|
-
disableAutoFocus:
|
|
3130
|
-
onClose:
|
|
3129
|
+
disableAutoFocus: r,
|
|
3130
|
+
onClose: s,
|
|
3131
3131
|
anchorOrigin: {
|
|
3132
3132
|
vertical: "bottom",
|
|
3133
|
-
horizontal:
|
|
3133
|
+
horizontal: h ? "right" : "left"
|
|
3134
3134
|
},
|
|
3135
|
-
transformOrigin:
|
|
3135
|
+
transformOrigin: h ? mn : hn,
|
|
3136
3136
|
slots: {
|
|
3137
|
-
root:
|
|
3137
|
+
root: f.root,
|
|
3138
3138
|
paper: E,
|
|
3139
|
-
backdrop:
|
|
3140
|
-
transition:
|
|
3139
|
+
backdrop: f.backdrop,
|
|
3140
|
+
transition: f.transition
|
|
3141
3141
|
},
|
|
3142
3142
|
slotProps: {
|
|
3143
3143
|
root: T,
|
|
3144
3144
|
paper: D,
|
|
3145
|
-
backdrop: typeof
|
|
3145
|
+
backdrop: typeof p.backdrop == "function" ? p.backdrop(_) : p.backdrop,
|
|
3146
3146
|
transition: {
|
|
3147
3147
|
...A,
|
|
3148
3148
|
onEntering: (...e) => {
|
|
@@ -3150,19 +3150,19 @@ var mn = {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
3152
|
},
|
|
3153
|
-
open:
|
|
3153
|
+
open: c,
|
|
3154
3154
|
ref: t,
|
|
3155
|
-
transitionDuration:
|
|
3155
|
+
transitionDuration: u,
|
|
3156
3156
|
ownerState: _,
|
|
3157
|
-
...
|
|
3158
|
-
classes:
|
|
3157
|
+
...m,
|
|
3158
|
+
classes: l,
|
|
3159
3159
|
children: /*#__PURE__*/ (0, G.jsx)(ee, {
|
|
3160
3160
|
actions: x,
|
|
3161
3161
|
autoFocus: y,
|
|
3162
3162
|
autoFocusItem: b,
|
|
3163
|
-
variant:
|
|
3163
|
+
variant: d,
|
|
3164
3164
|
...O,
|
|
3165
|
-
children:
|
|
3165
|
+
children: i
|
|
3166
3166
|
})
|
|
3167
3167
|
});
|
|
3168
3168
|
}), Z = (e) => {
|
|
@@ -3384,7 +3384,7 @@ var mn = {
|
|
|
3384
3384
|
padding: 8
|
|
3385
3385
|
},
|
|
3386
3386
|
divActionsAction: {
|
|
3387
|
-
...
|
|
3387
|
+
...m.normal14,
|
|
3388
3388
|
borderRadius: 4,
|
|
3389
3389
|
cursor: "pointer",
|
|
3390
3390
|
textAlign: "center",
|
|
@@ -3405,7 +3405,7 @@ var mn = {
|
|
|
3405
3405
|
padding: "1px 0"
|
|
3406
3406
|
},
|
|
3407
3407
|
divOptions: (e) => ({
|
|
3408
|
-
...
|
|
3408
|
+
...C.propertiesPanel,
|
|
3409
3409
|
scrollbarGutter: "initial",
|
|
3410
3410
|
maxHeight: 400,
|
|
3411
3411
|
padding: "0 8px",
|
|
@@ -3425,7 +3425,7 @@ var mn = {
|
|
|
3425
3425
|
}
|
|
3426
3426
|
}),
|
|
3427
3427
|
header: (e) => ({
|
|
3428
|
-
...
|
|
3428
|
+
...m.bold13,
|
|
3429
3429
|
gap: 8,
|
|
3430
3430
|
padding: "10px 16px",
|
|
3431
3431
|
display: "flex",
|
|
@@ -3479,7 +3479,7 @@ var mn = {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
}),
|
|
3481
3481
|
divOptionsOptionCategory: (e) => ({
|
|
3482
|
-
...
|
|
3482
|
+
...m.bold13,
|
|
3483
3483
|
fontStyle: "var(--font-style)",
|
|
3484
3484
|
textDecoration: "var(--text-decoration)",
|
|
3485
3485
|
background: "var(--background-color)",
|
|
@@ -3505,16 +3505,16 @@ var mn = {
|
|
|
3505
3505
|
}
|
|
3506
3506
|
}),
|
|
3507
3507
|
divOptionsOptionOption: (e) => ({
|
|
3508
|
-
...
|
|
3508
|
+
...m.normal13,
|
|
3509
3509
|
fontStyle: "var(--font-style)",
|
|
3510
|
-
lineHeight:
|
|
3510
|
+
lineHeight: m.normal13.lineHeight,
|
|
3511
3511
|
textDecoration: "var(--text-decoration)",
|
|
3512
3512
|
"&[aria-disabled=\"true\"]": { cursor: "not-allowed" },
|
|
3513
3513
|
"&[aria-expanded=\"true\"]": { background: n.grey5 },
|
|
3514
3514
|
...e && r
|
|
3515
3515
|
}),
|
|
3516
3516
|
divOptionsOptionOptionLabel: {
|
|
3517
|
-
...
|
|
3517
|
+
...m.overflowEllipsis,
|
|
3518
3518
|
display: "initial !important",
|
|
3519
3519
|
...t && {
|
|
3520
3520
|
height: "100%",
|
|
@@ -3533,7 +3533,7 @@ var mn = {
|
|
|
3533
3533
|
}
|
|
3534
3534
|
})
|
|
3535
3535
|
};
|
|
3536
|
-
}, kn =
|
|
3536
|
+
}, kn = i(On("default")), An = i(On("legacy")), jn = (e, { appearance: t = "default" } = {}) => (t === "legacy" ? An : kn)(e), Mn = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
|
|
3537
3537
|
title: e,
|
|
3538
3538
|
children: t
|
|
3539
3539
|
}) : t, Nn = ({ action: e, classNames: t }) => {
|
|
@@ -3542,7 +3542,7 @@ var mn = {
|
|
|
3542
3542
|
tooltip: e.tooltip,
|
|
3543
3543
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3544
3544
|
"aria-disabled": r,
|
|
3545
|
-
className:
|
|
3545
|
+
className: h({
|
|
3546
3546
|
[t.divActionsAction]: !0,
|
|
3547
3547
|
[t.divActionsAction__primary]: n === "primary",
|
|
3548
3548
|
[t.divActionsAction__secondary]: n === "secondary"
|
|
@@ -3561,7 +3561,7 @@ var mn = {
|
|
|
3561
3561
|
classNames: t,
|
|
3562
3562
|
action: e
|
|
3563
3563
|
}, e.key))
|
|
3564
|
-
}) : null, Fn =
|
|
3564
|
+
}) : null, Fn = i({ button: {
|
|
3565
3565
|
background: "initial",
|
|
3566
3566
|
border: "initial",
|
|
3567
3567
|
padding: "initial",
|
|
@@ -3572,14 +3572,14 @@ var mn = {
|
|
|
3572
3572
|
let i = Fn();
|
|
3573
3573
|
return /* @__PURE__ */ (0, G.jsx)("button", {
|
|
3574
3574
|
...n,
|
|
3575
|
-
className:
|
|
3575
|
+
className: h({
|
|
3576
3576
|
[String(t)]: !0,
|
|
3577
3577
|
[i.button]: !0
|
|
3578
3578
|
}),
|
|
3579
3579
|
ref: r,
|
|
3580
3580
|
children: e
|
|
3581
3581
|
});
|
|
3582
|
-
}), Ln =
|
|
3582
|
+
}), Ln = i({
|
|
3583
3583
|
button: (e) => ({
|
|
3584
3584
|
position: "absolute",
|
|
3585
3585
|
right: 4,
|
|
@@ -3603,7 +3603,7 @@ var mn = {
|
|
|
3603
3603
|
position: "relative"
|
|
3604
3604
|
},
|
|
3605
3605
|
input: (e) => ({
|
|
3606
|
-
...
|
|
3606
|
+
...m.normal13,
|
|
3607
3607
|
background: "initial",
|
|
3608
3608
|
border: `1px solid ${n.grey3}`,
|
|
3609
3609
|
borderRadius: 4,
|
|
@@ -3615,16 +3615,16 @@ var mn = {
|
|
|
3615
3615
|
...e && {
|
|
3616
3616
|
[H.md]: {
|
|
3617
3617
|
height: 20,
|
|
3618
|
-
...
|
|
3618
|
+
...m.normal12
|
|
3619
3619
|
},
|
|
3620
3620
|
[H.sm]: {
|
|
3621
3621
|
height: 16,
|
|
3622
|
-
...
|
|
3622
|
+
...m.normal11,
|
|
3623
3623
|
padding: "3px 16px"
|
|
3624
3624
|
},
|
|
3625
3625
|
[H.xs]: {
|
|
3626
3626
|
height: 12,
|
|
3627
|
-
...
|
|
3627
|
+
...m.normal10,
|
|
3628
3628
|
padding: "0px 12px"
|
|
3629
3629
|
}
|
|
3630
3630
|
},
|
|
@@ -3649,54 +3649,54 @@ var mn = {
|
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
3651
|
})
|
|
3652
|
-
}), Rn = (0, W.forwardRef)(function({ autoFocus: e, className: t, onChange: n, value: r, placeholder: i, style: a, responsive:
|
|
3653
|
-
let
|
|
3654
|
-
|
|
3655
|
-
}, [
|
|
3652
|
+
}), Rn = (0, W.forwardRef)(function({ autoFocus: e, className: t, onChange: n, value: r, placeholder: i, style: a, responsive: s, ...c }, l) {
|
|
3653
|
+
let d = (0, W.useRef)(null), f = (0, W.useCallback)((e) => {
|
|
3654
|
+
d.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
3655
|
+
}, [l]), p = Ln(s);
|
|
3656
3656
|
return (0, W.useEffect)(() => {
|
|
3657
|
-
e &&
|
|
3657
|
+
e && d.current?.focus();
|
|
3658
3658
|
}, [e]), /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3659
|
-
className:
|
|
3659
|
+
className: h({
|
|
3660
3660
|
[String(t)]: !0,
|
|
3661
|
-
[
|
|
3661
|
+
[p.div]: !0
|
|
3662
3662
|
}),
|
|
3663
3663
|
children: [
|
|
3664
|
-
/* @__PURE__ */ (0, G.jsx)(
|
|
3665
|
-
className:
|
|
3664
|
+
/* @__PURE__ */ (0, G.jsx)(u, {
|
|
3665
|
+
className: p.svg,
|
|
3666
3666
|
fill: a?.color
|
|
3667
3667
|
}),
|
|
3668
3668
|
/* @__PURE__ */ (0, G.jsx)("input", {
|
|
3669
|
-
...
|
|
3669
|
+
...c,
|
|
3670
3670
|
style: { ...a },
|
|
3671
|
-
className:
|
|
3671
|
+
className: p.input,
|
|
3672
3672
|
onChange: n,
|
|
3673
3673
|
placeholder: i ?? "Search...",
|
|
3674
|
-
ref:
|
|
3674
|
+
ref: f,
|
|
3675
3675
|
size: 1,
|
|
3676
3676
|
value: r
|
|
3677
3677
|
}),
|
|
3678
3678
|
/* @__PURE__ */ (0, G.jsx)(In, {
|
|
3679
|
-
className:
|
|
3679
|
+
className: p.button,
|
|
3680
3680
|
"data-testid": "input-search-clear",
|
|
3681
3681
|
onClick: () => {
|
|
3682
|
-
|
|
3682
|
+
d.current?.focus(), n?.({ target: { value: "" } });
|
|
3683
3683
|
},
|
|
3684
3684
|
style: { display: r ? void 0 : "none" },
|
|
3685
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
3685
|
+
children: /* @__PURE__ */ (0, G.jsx)(o, { fill: a?.color })
|
|
3686
3686
|
})
|
|
3687
3687
|
]
|
|
3688
3688
|
});
|
|
3689
|
-
}), zn =
|
|
3689
|
+
}), zn = i({ button: {
|
|
3690
3690
|
paddingLeft: 4,
|
|
3691
3691
|
paddingRight: 4
|
|
3692
3692
|
} }), Bn = ({ isAllCollapsed: e, clickCallback: t }) => {
|
|
3693
|
-
let n = zn(),
|
|
3693
|
+
let n = zn(), i = e ? s : r;
|
|
3694
3694
|
return /* @__PURE__ */ (0, G.jsx)(fe, {
|
|
3695
3695
|
title: e ? "Expand all" : "Collapse all",
|
|
3696
3696
|
children: /* @__PURE__ */ (0, G.jsx)(In, {
|
|
3697
3697
|
onClick: () => t?.(!e),
|
|
3698
3698
|
className: n.button,
|
|
3699
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
3699
|
+
children: /* @__PURE__ */ (0, G.jsx)(i, {})
|
|
3700
3700
|
})
|
|
3701
3701
|
});
|
|
3702
3702
|
}, Vn = ({ classNames: e, searchEnabled: t, searchPhrase: n, onChange: r, options: i, collapsed: a, onCollapseChange: o, responsive: s }) => {
|
|
@@ -3748,7 +3748,7 @@ var mn = {
|
|
|
3748
3748
|
case t > 0: return "partial";
|
|
3749
3749
|
default: return "none";
|
|
3750
3750
|
}
|
|
3751
|
-
}, Kn =
|
|
3751
|
+
}, Kn = i({
|
|
3752
3752
|
container: {
|
|
3753
3753
|
position: "relative",
|
|
3754
3754
|
display: "flex",
|
|
@@ -3789,7 +3789,7 @@ var mn = {
|
|
|
3789
3789
|
"&[aria-disabled=\"true\"]": { cursor: "default" }
|
|
3790
3790
|
},
|
|
3791
3791
|
label: {
|
|
3792
|
-
...
|
|
3792
|
+
...m.normal13,
|
|
3793
3793
|
color: n.grey1,
|
|
3794
3794
|
cursor: "pointer",
|
|
3795
3795
|
marginLeft: 8,
|
|
@@ -3810,11 +3810,11 @@ var mn = {
|
|
|
3810
3810
|
tabIndex: 0
|
|
3811
3811
|
}, Jn = ({ value: e, size: t, fill: r = n.mainBrightPink }) => {
|
|
3812
3812
|
switch (e) {
|
|
3813
|
-
case "full": return /* @__PURE__ */ (0, G.jsx)(
|
|
3813
|
+
case "full": return /* @__PURE__ */ (0, G.jsx)(w, {
|
|
3814
3814
|
fill: r,
|
|
3815
3815
|
size: t
|
|
3816
3816
|
});
|
|
3817
|
-
case "partial": return /* @__PURE__ */ (0, G.jsx)(
|
|
3817
|
+
case "partial": return /* @__PURE__ */ (0, G.jsx)(f, {
|
|
3818
3818
|
fill: r,
|
|
3819
3819
|
size: t
|
|
3820
3820
|
});
|
|
@@ -3839,13 +3839,13 @@ var mn = {
|
|
|
3839
3839
|
}, p = Kn();
|
|
3840
3840
|
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3841
3841
|
onClick: d,
|
|
3842
|
-
className:
|
|
3842
|
+
className: h({
|
|
3843
3843
|
[p.container]: !0,
|
|
3844
3844
|
[p.checkboxWithLabel]: !!l
|
|
3845
3845
|
}),
|
|
3846
3846
|
"data-testid": u,
|
|
3847
3847
|
children: [/* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3848
|
-
className:
|
|
3848
|
+
className: h({
|
|
3849
3849
|
[p.checkboxContainer]: !0,
|
|
3850
3850
|
[p.checkboxWithLabel]: !!l
|
|
3851
3851
|
}),
|
|
@@ -3861,7 +3861,7 @@ var mn = {
|
|
|
3861
3861
|
},
|
|
3862
3862
|
tabIndex: c,
|
|
3863
3863
|
onKeyDown: f,
|
|
3864
|
-
className:
|
|
3864
|
+
className: h({
|
|
3865
3865
|
[p.checkbox]: !0,
|
|
3866
3866
|
[p.checkboxUnchecked]: t === "none",
|
|
3867
3867
|
[p.checkboxChecked]: t === "full" || t === "partial"
|
|
@@ -3876,7 +3876,7 @@ var mn = {
|
|
|
3876
3876
|
})
|
|
3877
3877
|
})]
|
|
3878
3878
|
}), l ? /* @__PURE__ */ (0, G.jsx)("span", {
|
|
3879
|
-
className:
|
|
3879
|
+
className: h({
|
|
3880
3880
|
[p.label]: !0,
|
|
3881
3881
|
disabled: i
|
|
3882
3882
|
}),
|
|
@@ -3904,7 +3904,7 @@ var mn = {
|
|
|
3904
3904
|
option: t,
|
|
3905
3905
|
searchPhrase: n
|
|
3906
3906
|
})
|
|
3907
|
-
}), $n =
|
|
3907
|
+
}), $n = i({
|
|
3908
3908
|
container: {
|
|
3909
3909
|
position: "relative",
|
|
3910
3910
|
display: "flex",
|
|
@@ -3940,11 +3940,11 @@ var mn = {
|
|
|
3940
3940
|
tabIndex: 0
|
|
3941
3941
|
}, tr = ({ checkedType: e, size: t, fill: r = n.mainBrightPink }) => {
|
|
3942
3942
|
switch (e) {
|
|
3943
|
-
case "full": return /* @__PURE__ */ (0, G.jsx)(
|
|
3943
|
+
case "full": return /* @__PURE__ */ (0, G.jsx)(w, {
|
|
3944
3944
|
fill: r,
|
|
3945
3945
|
size: t
|
|
3946
3946
|
});
|
|
3947
|
-
case "partial": return /* @__PURE__ */ (0, G.jsx)(
|
|
3947
|
+
case "partial": return /* @__PURE__ */ (0, G.jsx)(f, {
|
|
3948
3948
|
fill: r,
|
|
3949
3949
|
size: t
|
|
3950
3950
|
});
|
|
@@ -3975,7 +3975,7 @@ var mn = {
|
|
|
3975
3975
|
},
|
|
3976
3976
|
tabIndex: c,
|
|
3977
3977
|
onKeyDown: d,
|
|
3978
|
-
className:
|
|
3978
|
+
className: h({
|
|
3979
3979
|
[f.checkbox]: !0,
|
|
3980
3980
|
[f.checkboxUnchecked]: !l,
|
|
3981
3981
|
[f.checkboxChecked]: !p && l
|
|
@@ -3995,7 +3995,7 @@ var mn = {
|
|
|
3995
3995
|
disabled: n,
|
|
3996
3996
|
size: r
|
|
3997
3997
|
}) : null, ir = ({ multiSelect: e = !1, ...t }) => {
|
|
3998
|
-
let n =
|
|
3998
|
+
let n = b(), r = t.responsive ? _e(16, n.height, n.width) : 16;
|
|
3999
3999
|
return /* @__PURE__ */ (0, G.jsx)(ar, {
|
|
4000
4000
|
...t,
|
|
4001
4001
|
appearance: "legacy",
|
|
@@ -4021,12 +4021,12 @@ var mn = {
|
|
|
4021
4021
|
})
|
|
4022
4022
|
})
|
|
4023
4023
|
});
|
|
4024
|
-
}, ar = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions:
|
|
4025
|
-
let m =
|
|
4024
|
+
}, ar = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions: i, searchEnabled: a = !1, style: o = {}, cssVariables: s, header: c, pickedOptionsIds: u, responsive: d, appearance: f = "default", renderOptions: p }) => {
|
|
4025
|
+
let m = l(), h = jn(d, { appearance: f }), [g, _] = (0, W.useState)({}), [v, y] = (0, W.useState)({}), [b, x] = (0, W.useState)(""), S = (e) => {
|
|
4026
4026
|
x(e), y({});
|
|
4027
4027
|
}, C = {
|
|
4028
4028
|
...wn,
|
|
4029
|
-
...
|
|
4029
|
+
...s
|
|
4030
4030
|
}, w = Tn(C, { appearance: f }), T = {
|
|
4031
4031
|
...C,
|
|
4032
4032
|
...w
|
|
@@ -4049,7 +4049,7 @@ var mn = {
|
|
|
4049
4049
|
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4050
4050
|
style: {
|
|
4051
4051
|
...T,
|
|
4052
|
-
...
|
|
4052
|
+
...o
|
|
4053
4053
|
},
|
|
4054
4054
|
className: h.container,
|
|
4055
4055
|
onClick: (e) => {
|
|
@@ -4057,17 +4057,17 @@ var mn = {
|
|
|
4057
4057
|
},
|
|
4058
4058
|
onKeyDown: D,
|
|
4059
4059
|
children: [
|
|
4060
|
-
|
|
4060
|
+
c ? /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4061
4061
|
className: h.header,
|
|
4062
4062
|
children: [
|
|
4063
4063
|
" ",
|
|
4064
|
-
|
|
4064
|
+
c,
|
|
4065
4065
|
" "
|
|
4066
4066
|
]
|
|
4067
4067
|
}) : null,
|
|
4068
|
-
|
|
4068
|
+
i?.length ? p({
|
|
4069
4069
|
classNames: h,
|
|
4070
|
-
options:
|
|
4070
|
+
options: i,
|
|
4071
4071
|
searchPhrase: "",
|
|
4072
4072
|
collapsed: g,
|
|
4073
4073
|
setCollapsed: _,
|
|
@@ -4077,7 +4077,7 @@ var mn = {
|
|
|
4077
4077
|
autoFocus: m
|
|
4078
4078
|
}, !0) : null,
|
|
4079
4079
|
/* @__PURE__ */ (0, G.jsx)(Vn, {
|
|
4080
|
-
searchEnabled:
|
|
4080
|
+
searchEnabled: a,
|
|
4081
4081
|
searchPhrase: b,
|
|
4082
4082
|
onChange: S,
|
|
4083
4083
|
classNames: h,
|
|
@@ -4140,7 +4140,7 @@ var mn = {
|
|
|
4140
4140
|
options: o
|
|
4141
4141
|
})
|
|
4142
4142
|
});
|
|
4143
|
-
}, $ = ({ icon: e }) => e ? /* @__PURE__ */ (0, G.jsx)("div", { children: e }) : null, cr =
|
|
4143
|
+
}, $ = ({ icon: e }) => e ? /* @__PURE__ */ (0, G.jsx)("div", { children: e }) : null, cr = i({ span: { fontWeight: "bold" } }), lr = (e, t) => {
|
|
4144
4144
|
let n = cr();
|
|
4145
4145
|
if (!e) return [{ children: t }];
|
|
4146
4146
|
let r = e.toLocaleLowerCase(), i = t.toLocaleLowerCase(), a = [], o = 0;
|
|
@@ -4171,40 +4171,40 @@ var mn = {
|
|
|
4171
4171
|
}, fr = ({ tooltipTitle: e }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
|
|
4172
4172
|
title: e,
|
|
4173
4173
|
children: /* @__PURE__ */ (0, G.jsx)("div", { children: /* @__PURE__ */ (0, G.jsx)(v, {}) })
|
|
4174
|
-
}) : null, pr = ({ classNames: e, option: t, setOpenedElement: n, collapsed:
|
|
4175
|
-
let { children:
|
|
4174
|
+
}) : null, pr = ({ classNames: e, option: t, setOpenedElement: n, collapsed: i, setCollapsed: a, searchPhrase: o, checkbox: c, renderOption: l }) => {
|
|
4175
|
+
let { children: u, disabled: d = !1, label: f, tooltip: p, key: m } = t;
|
|
4176
4176
|
return /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsx)(fe, {
|
|
4177
|
-
title:
|
|
4177
|
+
title: f,
|
|
4178
4178
|
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4179
|
-
"aria-disabled":
|
|
4180
|
-
"aria-expanded": !
|
|
4181
|
-
className:
|
|
4179
|
+
"aria-disabled": d,
|
|
4180
|
+
"aria-expanded": !i[m],
|
|
4181
|
+
className: h({
|
|
4182
4182
|
[e.divOptionsOption]: !0,
|
|
4183
4183
|
[e.divOptionsOptionCategory]: !0
|
|
4184
4184
|
}),
|
|
4185
4185
|
onClick: () => {
|
|
4186
|
-
|
|
4187
|
-
...
|
|
4188
|
-
[
|
|
4186
|
+
a({
|
|
4187
|
+
...i,
|
|
4188
|
+
[m]: !i[m]
|
|
4189
4189
|
}), n({});
|
|
4190
4190
|
},
|
|
4191
4191
|
onKeyDown: Z,
|
|
4192
4192
|
role: "menuitem",
|
|
4193
|
-
tabIndex:
|
|
4193
|
+
tabIndex: d ? void 0 : 0,
|
|
4194
4194
|
children: [
|
|
4195
|
-
|
|
4195
|
+
c,
|
|
4196
4196
|
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4197
|
-
label:
|
|
4198
|
-
searchPhrase:
|
|
4197
|
+
label: f,
|
|
4198
|
+
searchPhrase: o,
|
|
4199
4199
|
classNames: e
|
|
4200
4200
|
}),
|
|
4201
|
-
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle:
|
|
4202
|
-
/* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4201
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: p }),
|
|
4202
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: i[m] ? /* @__PURE__ */ (0, G.jsx)(s, {}) : /* @__PURE__ */ (0, G.jsx)(r, {}) })
|
|
4203
4203
|
]
|
|
4204
4204
|
})
|
|
4205
|
-
}),
|
|
4205
|
+
}), i[m] ? null : u.map(l)] }, m);
|
|
4206
4206
|
}, mr = ({ classNames: e, option: t }) => /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4207
|
-
className:
|
|
4207
|
+
className: h({
|
|
4208
4208
|
[e.divOptionsOption]: !0,
|
|
4209
4209
|
[e.divOptionsOptionDivider]: !0
|
|
4210
4210
|
}),
|
|
@@ -4216,7 +4216,7 @@ var mn = {
|
|
|
4216
4216
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4217
4217
|
style: { backgroundColor: s || void 0 },
|
|
4218
4218
|
"aria-disabled": i,
|
|
4219
|
-
className:
|
|
4219
|
+
className: h({
|
|
4220
4220
|
[t.divOptionsOption]: !0,
|
|
4221
4221
|
[t.divOptionsOptionOption]: !0
|
|
4222
4222
|
}),
|
|
@@ -4228,24 +4228,24 @@ var mn = {
|
|
|
4228
4228
|
})
|
|
4229
4229
|
}, o);
|
|
4230
4230
|
}, gr = (e) => {
|
|
4231
|
-
let t = e.option, n = e.classNames, { openedElement: r, setOpenedElement: i, onCloseClick:
|
|
4232
|
-
return
|
|
4233
|
-
|
|
4231
|
+
let t = e.option, n = e.classNames, { openedElement: r, setOpenedElement: i, onCloseClick: a, pickedOptionsIds: o, checkbox: s, multiSelect: c = !1, appearance: l = "default", renderSubmenu: u } = e, { children: d = [], disabled: f = !1, icon: p = {}, label: m, onClick: h, tooltip: g, key: _, color: v } = t, b = o?.includes(_), x = v ? Cn(v) : y.fill, S = p.right ?? (b ? /* @__PURE__ */ (0, G.jsx)(w, { fill: x ?? void 0 }) : null), C = y.size, T = !!S, E;
|
|
4232
|
+
return d.length ? (E = (e) => {
|
|
4233
|
+
f || i({ [_]: e.currentTarget });
|
|
4234
4234
|
}, /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsxs)(hr, {
|
|
4235
4235
|
...e,
|
|
4236
4236
|
onClick: E,
|
|
4237
4237
|
children: [
|
|
4238
|
-
/* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4238
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: p.left }),
|
|
4239
4239
|
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4240
|
-
label:
|
|
4240
|
+
label: m,
|
|
4241
4241
|
classNames: n,
|
|
4242
|
-
color:
|
|
4242
|
+
color: v
|
|
4243
4243
|
}),
|
|
4244
|
-
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle:
|
|
4245
|
-
/* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4244
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: g }),
|
|
4245
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: S })
|
|
4246
4246
|
]
|
|
4247
|
-
}),
|
|
4248
|
-
anchorEl: r[
|
|
4247
|
+
}), u({
|
|
4248
|
+
anchorEl: r[_],
|
|
4249
4249
|
anchorOrigin: {
|
|
4250
4250
|
horizontal: "left",
|
|
4251
4251
|
vertical: "top"
|
|
@@ -4254,32 +4254,32 @@ var mn = {
|
|
|
4254
4254
|
i({});
|
|
4255
4255
|
},
|
|
4256
4256
|
onCloseClick: (e) => {
|
|
4257
|
-
|
|
4257
|
+
a(e), i({});
|
|
4258
4258
|
},
|
|
4259
|
-
options:
|
|
4259
|
+
options: d,
|
|
4260
4260
|
transformOrigin: {
|
|
4261
4261
|
horizontal: "right",
|
|
4262
4262
|
vertical: "top"
|
|
4263
4263
|
}
|
|
4264
|
-
})] },
|
|
4265
|
-
|
|
4264
|
+
})] }, _)) : (E = (e) => {
|
|
4265
|
+
f || (h?.(e), !c && !s && a(e));
|
|
4266
4266
|
}, /* @__PURE__ */ (0, G.jsxs)(hr, {
|
|
4267
4267
|
...e,
|
|
4268
4268
|
onClick: E,
|
|
4269
4269
|
children: [
|
|
4270
|
-
t.checkboxPosition !== ye.right &&
|
|
4271
|
-
/* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4270
|
+
t.checkboxPosition !== ye.right && s,
|
|
4271
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: p.left }),
|
|
4272
4272
|
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4273
|
-
label:
|
|
4273
|
+
label: m,
|
|
4274
4274
|
classNames: n,
|
|
4275
|
-
color:
|
|
4275
|
+
color: v
|
|
4276
4276
|
}),
|
|
4277
|
-
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle:
|
|
4278
|
-
T ? /* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4279
|
-
style: { width:
|
|
4277
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: g }),
|
|
4278
|
+
T ? /* @__PURE__ */ (0, G.jsx)($, { icon: S }) : l === "default" ? /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4279
|
+
style: { width: C },
|
|
4280
4280
|
"aria-hidden": !0
|
|
4281
4281
|
}) : null,
|
|
4282
|
-
t.checkboxPosition === ye.right &&
|
|
4282
|
+
t.checkboxPosition === ye.right && s
|
|
4283
4283
|
]
|
|
4284
4284
|
}));
|
|
4285
4285
|
}, _r = (e) => {
|