@astrato-io/visualizations 0.9.0 → 0.10.1
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 +10 -0
- package/README.md +7 -3
- package/THIRD_PARTY_NOTICES.md +163 -14
- package/VISUALIZATION_DEFINITIONS.md +376 -36
- package/chunks/{Button-5CxPEACP.js → Button-Dn3rJrYf.js} +4 -4
- package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-BFeu06Yb.js} +39 -39
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +22 -0
- package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-ClO6GUjN.js} +9 -9
- package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-Czc34u4q.js} +143 -142
- package/chunks/{Title-CtFw1bVg.js → Title-BgYnaVTR.js} +22 -22
- package/chunks/_createAggregator-BMu9uRax.js +50 -0
- package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-CVir0wkl.js} +10 -10
- package/chunks/bar-layout-C_UgRlVl.js +9 -0
- package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-DYuFdi9J.js} +100 -82
- package/chunks/{builder-Dxo7D7c6.js → builder-C-TKA-My.js} +70 -37
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-B-Wa8D5P.js → coloring-BtnPiQ_o.js} +37 -37
- package/chunks/createSimplePaletteValueFilter--zrZxRV9.js +2005 -0
- package/chunks/defaults-Dtk7fg3C.js +3 -0
- package/chunks/{definitions-DNpzD9tY.js → definitions-CT304NDn.js} +655 -417
- package/chunks/{escobar-C4Nm3eJ7.js → escobar-CvEV2ES1.js} +7441 -7127
- package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D9-JP92b.js} +998 -933
- package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-CXeZznks.js} +7 -7
- package/chunks/{filtering-CGuLpg7u.js → filtering-8_bFv-jb.js} +333 -377
- package/chunks/handlers-C6CZ0XJA.js +15399 -0
- package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-BXiJ1SZS.js} +11 -11
- package/chunks/isEqual-D8Ay63xR.js +16 -0
- package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-Bu8gGZu5.js} +1 -1
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-DmHpmQCC.js} +9 -9
- package/chunks/{logger-3lng-wOw.js → logger-DdZpR7xZ.js} +79 -72
- package/chunks/map.compiler-Q_Y1Pvat.js +343 -0
- package/chunks/{metadata-Fmx1swpK.js → metadata-BQm_TXI1.js} +1 -1
- package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-DQdg6zTy.js} +7 -7
- package/chunks/operations-DKQWuLL7.js +31315 -0
- package/chunks/{range-CzO4isKK.js → range-BdhzvYQ_.js} +2 -2
- package/chunks/{react-dom-BwZT0N3F.js → react-dom-BGP4tbXV.js} +70 -70
- package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-BZpyDnJy.js} +1 -1
- package/chunks/{requirements-CYpVh65U.js → requirements-e8Fe96ag.js} +60 -58
- package/chunks/shared-C_2F90xq.js +1337 -0
- package/chunks/standalone-4MsKiqs0.js +355 -0
- package/chunks/standalone-B794g9pE.js +1012 -0
- package/chunks/{standalone-C6XDHYAM.js → standalone-B8ZSqauS.js} +110 -110
- package/chunks/{standalone-5DnapeHH.js → standalone-BA2YXyJS.js} +126 -124
- package/chunks/{standalone-CXniic5x.js → standalone-BDrXVxlP.js} +6 -5
- package/chunks/{standalone-B6s_xG2u.js → standalone-BE_ONgiG.js} +116 -116
- package/chunks/{standalone-CPUiiWNP.js → standalone-BTY3w_JA.js} +37 -37
- package/chunks/standalone-BgumbdaJ2.js +357 -0
- package/chunks/{standalone-DWPfdP0A.js → standalone-BkbiH-o8.js} +482 -482
- package/chunks/standalone-Blh4qejk.js +689 -0
- package/chunks/standalone-CXY4FpF7.js +773 -0
- package/chunks/{standalone-BvWdpUL3.js → standalone-CY_kjarf.js} +34 -31
- package/chunks/{standalone-DuwTOBXH.js → standalone-CaTxAydz.js} +587 -587
- package/chunks/{standalone-BDrQMxLi.js → standalone-Cc98Pdr6.js} +1799 -1015
- package/chunks/{standalone-DMCwtebn.js → standalone-Cl0TSfqC.js} +125 -125
- package/chunks/{standalone-CoQxJ6ov.js → standalone-CsoMmE9T.js} +778 -778
- package/chunks/standalone-DH0xTEes.js +2 -0
- package/chunks/{standalone-LFVgLhia.js → standalone-DHRalbVO.js} +311 -303
- package/chunks/standalone-DNh9NcMa.js +580 -0
- package/chunks/standalone-DcnHjNnC.js +2 -0
- package/chunks/{standalone-r4ObFvys.js → standalone-DflyWtuR.js} +217 -215
- package/chunks/standalone-DrHdGkY7.js +762 -0
- package/chunks/standalone-c_rROMtx.js +287 -0
- package/chunks/standalone-drcFLeN6.js +6 -0
- package/chunks/{standalone-CNkHsynO.js → standalone-wOWRCpdn.js} +54 -56
- package/chunks/{standalone-Cu73fzSr.js → standalone-z0o52o5t.js} +5128 -4908
- package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-COaHE9VD.js} +18 -18
- package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-CdnCWzhd.js} +1 -1
- package/chunks/{utils-DYYD4Zzf.js → utils-DganVptf.js} +4758 -4747
- package/chunks/{view-7fH6mGmY.js → view-Bzlros43.js} +2021 -1665
- package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-D7i6oh1Z.js} +3177 -2425
- package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-CiIhFEa5.js} +3740 -3547
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +7 -7
- package/docs/operations/line.md +280 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +148 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +374 -157
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +482 -434
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +72 -67
- package/src/definitions/index.d.ts +7 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +219 -7
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/types/compilation.types.d.ts +9 -1
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +17 -13
- package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
- package/chunks/ToggleButton-Br9HCPCv.js +0 -150
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/handlers-CMbyj5y1.js +0 -12930
- package/chunks/isEqual-DBg_b35N.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-HSqnCRvv.js +0 -26324
- package/chunks/shared-DFoJxjVN.js +0 -1218
- package/chunks/standalone-530a5lvf.js +0 -1003
- package/chunks/standalone-B4jrf4KE.js +0 -354
- package/chunks/standalone-BMoJXGYe.js +0 -2
- package/chunks/standalone-BfvGggeM2.js +0 -355
- package/chunks/standalone-CMJJIi9v.js +0 -2
- package/chunks/standalone-C_Jd4gkj.js +0 -6
- package/chunks/standalone-CiaaibTa.js +0 -518
- package/chunks/standalone-DBeXQrwH.js +0 -468
- package/chunks/standalone-DpSRmAWx.js +0 -287
- package/chunks/standalone-kzAhwH19.js +0 -689
- package/chunks/standalone-mb7LwEiq.js +0 -3874
- /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.js} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as r,
|
|
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 { Oa as n } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { $ as r, B as i, Fr as a, G as o, Gn as s, J as c, Ln as l, Pr as u, W as d, ci as f, et as p, it as m, jr as h, kr as g, li as _, nr as v, nt as y, oi as b, r as x, si as S, sn as C, zr as w } from "./utils-DganVptf.js";
|
|
4
|
+
import "./logger-DdZpR7xZ.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-BGP4tbXV.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-Bu8gGZu5.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-BgYnaVTR.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-
|
|
11
|
-
var ye =
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import "./coloring-BtnPiQ_o.js";
|
|
11
|
+
var ye = {
|
|
12
|
+
left: "left",
|
|
13
|
+
right: "right"
|
|
14
|
+
}, be = /* @__PURE__ */ t(((e, t) => {
|
|
14
15
|
t.exports = {
|
|
15
16
|
aliceblue: [
|
|
16
17
|
240,
|
|
@@ -1679,7 +1680,7 @@ function Oe(e, t = 166) {
|
|
|
1679
1680
|
function U(e) {
|
|
1680
1681
|
return L(e).defaultView || window;
|
|
1681
1682
|
}
|
|
1682
|
-
var W = /* @__PURE__ */ e(
|
|
1683
|
+
var W = /* @__PURE__ */ e(f(), 1), G = w(), ke = y, K = L;
|
|
1683
1684
|
function Ae(...e) {
|
|
1684
1685
|
return e.reduce((e, t) => t == null ? e : function(...n) {
|
|
1685
1686
|
e.apply(this, n), t.apply(this, n);
|
|
@@ -1700,7 +1701,7 @@ function Ne(e, t) {
|
|
|
1700
1701
|
let i = typeof t == "function" ? t(r) : t, a = typeof e == "function" ? e({
|
|
1701
1702
|
...r,
|
|
1702
1703
|
...i
|
|
1703
|
-
}) : e, o =
|
|
1704
|
+
}) : e, o = m(r?.className, i?.className, a?.className), s = n(a, i), c = {
|
|
1704
1705
|
...i,
|
|
1705
1706
|
...a,
|
|
1706
1707
|
...s
|
|
@@ -1710,7 +1711,7 @@ function Ne(e, t) {
|
|
|
1710
1711
|
...a.style
|
|
1711
1712
|
}), i?.sx && a?.sx && (c.sx = [...Array.isArray(i.sx) ? i.sx : [i.sx], ...Array.isArray(a.sx) ? a.sx : [a.sx]]), c;
|
|
1712
1713
|
};
|
|
1713
|
-
let r = t, i = n(e, r), a =
|
|
1714
|
+
let r = t, i = n(e, r), a = m(r?.className, e?.className), o = {
|
|
1714
1715
|
...t,
|
|
1715
1716
|
...e,
|
|
1716
1717
|
...i
|
|
@@ -1769,24 +1770,24 @@ var Fe = (e) => {
|
|
|
1769
1770
|
let n = k({
|
|
1770
1771
|
props: e,
|
|
1771
1772
|
name: "MuiPaper"
|
|
1772
|
-
}), r =
|
|
1773
|
+
}), r = o(), { className: i, component: a = "div", elevation: s = 1, square: l = !1, variant: u = "elevation", ...d } = n, f = {
|
|
1773
1774
|
...n,
|
|
1774
1775
|
component: a,
|
|
1775
|
-
elevation:
|
|
1776
|
-
square:
|
|
1777
|
-
variant:
|
|
1778
|
-
},
|
|
1776
|
+
elevation: s,
|
|
1777
|
+
square: l,
|
|
1778
|
+
variant: u
|
|
1779
|
+
}, h = Fe(f);
|
|
1779
1780
|
return /*#__PURE__*/ (0, G.jsx)(Ie, {
|
|
1780
1781
|
as: a,
|
|
1781
1782
|
ownerState: f,
|
|
1782
|
-
className:
|
|
1783
|
+
className: m(h.root, i),
|
|
1783
1784
|
ref: t,
|
|
1784
1785
|
...d,
|
|
1785
1786
|
style: {
|
|
1786
|
-
...
|
|
1787
|
-
"--Paper-shadow": (r.vars || r).shadows[
|
|
1788
|
-
...r.vars && { "--Paper-overlay": r.vars.overlays?.[
|
|
1789
|
-
...!r.vars && r.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${
|
|
1787
|
+
...u === "elevation" && {
|
|
1788
|
+
"--Paper-shadow": (r.vars || r).shadows[s],
|
|
1789
|
+
...r.vars && { "--Paper-overlay": r.vars.overlays?.[s] },
|
|
1790
|
+
...!r.vars && r.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${p("#fff", c(s))}, ${p("#fff", c(s))})` }
|
|
1790
1791
|
},
|
|
1791
1792
|
...d.style
|
|
1792
1793
|
}
|
|
@@ -1800,15 +1801,15 @@ var Fe = (e) => {
|
|
|
1800
1801
|
opacity: 0,
|
|
1801
1802
|
visibility: "hidden"
|
|
1802
1803
|
}, Be = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
1803
|
-
let n =
|
|
1804
|
+
let n = o(), r = {
|
|
1804
1805
|
enter: n.transitions.duration.enteringScreen,
|
|
1805
1806
|
exit: n.transitions.duration.leavingScreen
|
|
1806
|
-
}, { addEndListener: i, appear: a = !0, children:
|
|
1807
|
+
}, { addEndListener: i, appear: a = !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) => {
|
|
1807
1808
|
b.shouldReduceMotion || N(e);
|
|
1808
1809
|
let r = O({
|
|
1809
1810
|
style: _,
|
|
1810
1811
|
timeout: v,
|
|
1811
|
-
easing:
|
|
1812
|
+
easing: l
|
|
1812
1813
|
}, { mode: "enter" }), i = b.getTransitionTiming({
|
|
1813
1814
|
duration: r.duration,
|
|
1814
1815
|
delay: r.delay
|
|
@@ -1830,7 +1831,7 @@ var Fe = (e) => {
|
|
|
1830
1831
|
let t = O({
|
|
1831
1832
|
style: _,
|
|
1832
1833
|
timeout: v,
|
|
1833
|
-
easing:
|
|
1834
|
+
easing: l
|
|
1834
1835
|
}, { mode: "exit" }), r = b.getTransitionTiming({
|
|
1835
1836
|
duration: t.duration,
|
|
1836
1837
|
delay: t.delay
|
|
@@ -1852,8 +1853,8 @@ var Fe = (e) => {
|
|
|
1852
1853
|
timeout: v,
|
|
1853
1854
|
...y,
|
|
1854
1855
|
children: (e, { ownerState: t, ...n }) => {
|
|
1855
|
-
let r = M(e, u, Re, ze, _,
|
|
1856
|
-
return /*#__PURE__*/ W.cloneElement(
|
|
1856
|
+
let r = M(e, u, Re, ze, _, s.props.style);
|
|
1857
|
+
return /*#__PURE__*/ W.cloneElement(s, {
|
|
1857
1858
|
style: r,
|
|
1858
1859
|
ref: S,
|
|
1859
1860
|
...n
|
|
@@ -1898,27 +1899,27 @@ var He = (e) => {
|
|
|
1898
1899
|
...n,
|
|
1899
1900
|
component: a,
|
|
1900
1901
|
invisible: o
|
|
1901
|
-
}, p = He(f),
|
|
1902
|
+
}, p = He(f), h = {
|
|
1902
1903
|
component: a,
|
|
1903
1904
|
slots: l,
|
|
1904
1905
|
slotProps: c
|
|
1905
|
-
}, [
|
|
1906
|
+
}, [g, _] = R("root", {
|
|
1906
1907
|
elementType: Ue,
|
|
1907
|
-
externalForwardedProps:
|
|
1908
|
-
className:
|
|
1908
|
+
externalForwardedProps: h,
|
|
1909
|
+
className: m(p.root, i),
|
|
1909
1910
|
ownerState: f
|
|
1910
|
-
}), [
|
|
1911
|
+
}), [v, y] = R("transition", {
|
|
1911
1912
|
elementType: Be,
|
|
1912
|
-
externalForwardedProps:
|
|
1913
|
+
externalForwardedProps: h,
|
|
1913
1914
|
ownerState: f
|
|
1914
1915
|
});
|
|
1915
|
-
return /*#__PURE__*/ (0, G.jsx)(
|
|
1916
|
+
return /*#__PURE__*/ (0, G.jsx)(v, {
|
|
1916
1917
|
in: s,
|
|
1917
1918
|
timeout: u,
|
|
1918
1919
|
...d,
|
|
1919
1920
|
...y,
|
|
1920
|
-
children: /*#__PURE__*/ (0, G.jsx)(
|
|
1921
|
-
...
|
|
1921
|
+
children: /*#__PURE__*/ (0, G.jsx)(g, {
|
|
1922
|
+
..._,
|
|
1922
1923
|
ref: t,
|
|
1923
1924
|
children: r
|
|
1924
1925
|
})
|
|
@@ -2349,7 +2350,7 @@ var _t = (e) => {
|
|
|
2349
2350
|
let n = k({
|
|
2350
2351
|
name: "MuiModal",
|
|
2351
2352
|
props: e
|
|
2352
|
-
}), { 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: p = !1, hideBackdrop:
|
|
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: p = !1, hideBackdrop: h = !1, keepMounted: g = !1, onClose: _, onTransitionEnter: v, onTransitionExited: y, open: b, slotProps: x = {}, slots: S = {}, theme: C, ...w } = n, T = {
|
|
2353
2354
|
...n,
|
|
2354
2355
|
closeAfterTransition: a,
|
|
2355
2356
|
disableAutoFocus: l,
|
|
@@ -2357,8 +2358,8 @@ var _t = (e) => {
|
|
|
2357
2358
|
disablePortal: d,
|
|
2358
2359
|
disableRestoreFocus: f,
|
|
2359
2360
|
disableScrollLock: p,
|
|
2360
|
-
hideBackdrop:
|
|
2361
|
-
keepMounted:
|
|
2361
|
+
hideBackdrop: h,
|
|
2362
|
+
keepMounted: g
|
|
2362
2363
|
}, { getRootProps: E, getBackdropProps: D, getTransitionProps: ee, portalRef: O, portalContainer: A, isTopModal: j, exited: M, hasTransition: N } = ht({
|
|
2363
2364
|
...T,
|
|
2364
2365
|
rootRef: t
|
|
@@ -2383,7 +2384,7 @@ var _t = (e) => {
|
|
|
2383
2384
|
},
|
|
2384
2385
|
getSlotProps: E,
|
|
2385
2386
|
ownerState: P,
|
|
2386
|
-
className:
|
|
2387
|
+
className: m(i, F?.root, !P.open && P.exited && F?.hidden)
|
|
2387
2388
|
}), [re, z] = R("backdrop", {
|
|
2388
2389
|
elementType: yt,
|
|
2389
2390
|
externalForwardedProps: te,
|
|
@@ -2397,13 +2398,13 @@ var _t = (e) => {
|
|
|
2397
2398
|
className: F?.backdrop,
|
|
2398
2399
|
ownerState: P
|
|
2399
2400
|
});
|
|
2400
|
-
return !
|
|
2401
|
+
return !g && !b && (!N || M) ? null : /*#__PURE__*/ (0, G.jsx)(de, {
|
|
2401
2402
|
ref: O,
|
|
2402
2403
|
container: A,
|
|
2403
2404
|
disablePortal: d,
|
|
2404
2405
|
children: /*#__PURE__*/ (0, G.jsxs)(ne, {
|
|
2405
2406
|
...L,
|
|
2406
|
-
children: [
|
|
2407
|
+
children: [h ? null : /*#__PURE__*/ (0, G.jsx)(re, { ...z }), /*#__PURE__*/ (0, G.jsx)(dt, {
|
|
2407
2408
|
disableEnforceFocus: u,
|
|
2408
2409
|
disableAutoFocus: l,
|
|
2409
2410
|
disableRestoreFocus: f,
|
|
@@ -2475,7 +2476,7 @@ var Ct = (e) => {
|
|
|
2475
2476
|
value: u,
|
|
2476
2477
|
children: /*#__PURE__*/ (0, G.jsxs)(wt, {
|
|
2477
2478
|
as: a,
|
|
2478
|
-
className:
|
|
2479
|
+
className: m(f.root, i),
|
|
2479
2480
|
ref: t,
|
|
2480
2481
|
ownerState: d,
|
|
2481
2482
|
...l,
|
|
@@ -2616,12 +2617,12 @@ function Mt(e) {
|
|
|
2616
2617
|
n,
|
|
2617
2618
|
r
|
|
2618
2619
|
]), c = I(e.ref, s);
|
|
2619
|
-
return
|
|
2620
|
+
return y(() => {
|
|
2620
2621
|
i.current && n({
|
|
2621
2622
|
...a,
|
|
2622
2623
|
element: i.current
|
|
2623
2624
|
});
|
|
2624
|
-
}, [a, n]),
|
|
2625
|
+
}, [a, n]), y(() => {
|
|
2625
2626
|
let t = e.id;
|
|
2626
2627
|
return () => {
|
|
2627
2628
|
r(t);
|
|
@@ -2885,7 +2886,7 @@ var ln = (e) => {
|
|
|
2885
2886
|
}), { action: r, anchorEl: i, anchorOrigin: a = {
|
|
2886
2887
|
vertical: "top",
|
|
2887
2888
|
horizontal: "left"
|
|
2888
|
-
}, anchorPosition: o, anchorReference: s = "anchorEl", children: c, className: l, container: u, disableAutoFocus: d = !1, elevation: f = 8, marginThreshold: p = 16, open:
|
|
2889
|
+
}, anchorPosition: o, anchorReference: s = "anchorEl", children: c, className: l, container: u, disableAutoFocus: d = !1, elevation: f = 8, marginThreshold: p = 16, open: h, slots: g = {}, slotProps: _ = {}, transformOrigin: v = {
|
|
2889
2890
|
vertical: "top",
|
|
2890
2891
|
horizontal: "left"
|
|
2891
2892
|
}, transitionDuration: y = "auto", disableScrollLock: b = !1, ...x } = n, S = W.useRef(), C = {
|
|
@@ -2894,7 +2895,7 @@ var ln = (e) => {
|
|
|
2894
2895
|
anchorReference: s,
|
|
2895
2896
|
elevation: f,
|
|
2896
2897
|
marginThreshold: p,
|
|
2897
|
-
transformOrigin:
|
|
2898
|
+
transformOrigin: v,
|
|
2898
2899
|
transitionDuration: y
|
|
2899
2900
|
}, w = ln(C), T = W.useCallback(() => {
|
|
2900
2901
|
if (s === "anchorPosition") return o;
|
|
@@ -2910,9 +2911,9 @@ var ln = (e) => {
|
|
|
2910
2911
|
o,
|
|
2911
2912
|
s
|
|
2912
2913
|
]), E = W.useCallback((e) => ({
|
|
2913
|
-
vertical: an(e,
|
|
2914
|
-
horizontal: on(e,
|
|
2915
|
-
}), [
|
|
2914
|
+
vertical: an(e, v.vertical),
|
|
2915
|
+
horizontal: on(e, v.horizontal)
|
|
2916
|
+
}), [v.horizontal, v.vertical]), D = W.useCallback((e) => {
|
|
2916
2917
|
let t = {
|
|
2917
2918
|
width: e.offsetWidth,
|
|
2918
2919
|
height: e.offsetHeight
|
|
@@ -2948,7 +2949,7 @@ var ln = (e) => {
|
|
|
2948
2949
|
T,
|
|
2949
2950
|
E,
|
|
2950
2951
|
p
|
|
2951
|
-
]), [ee, O] = W.useState(
|
|
2952
|
+
]), [ee, O] = W.useState(h), A = W.useCallback(() => {
|
|
2952
2953
|
let e = S.current;
|
|
2953
2954
|
if (!e) return;
|
|
2954
2955
|
let t = D(e);
|
|
@@ -2965,11 +2966,11 @@ var ln = (e) => {
|
|
|
2965
2966
|
O(!1);
|
|
2966
2967
|
};
|
|
2967
2968
|
W.useEffect(() => {
|
|
2968
|
-
|
|
2969
|
-
}), W.useImperativeHandle(r, () =>
|
|
2969
|
+
h && A();
|
|
2970
|
+
}), W.useImperativeHandle(r, () => h ? { updatePosition: () => {
|
|
2970
2971
|
A();
|
|
2971
|
-
} } : null, [
|
|
2972
|
-
if (!
|
|
2972
|
+
} } : null, [h, A]), W.useEffect(() => {
|
|
2973
|
+
if (!h) return;
|
|
2973
2974
|
let e = je(() => {
|
|
2974
2975
|
A();
|
|
2975
2976
|
}), t = Me(cn(i));
|
|
@@ -2978,12 +2979,12 @@ var ln = (e) => {
|
|
|
2978
2979
|
};
|
|
2979
2980
|
}, [
|
|
2980
2981
|
i,
|
|
2981
|
-
|
|
2982
|
+
h,
|
|
2982
2983
|
A
|
|
2983
2984
|
]);
|
|
2984
2985
|
let N = y, P = {
|
|
2985
|
-
slots:
|
|
2986
|
-
slotProps:
|
|
2986
|
+
slots: g,
|
|
2987
|
+
slotProps: _
|
|
2987
2988
|
}, [F, I] = R("transition", {
|
|
2988
2989
|
elementType: ie,
|
|
2989
2990
|
externalForwardedProps: P,
|
|
@@ -2999,7 +3000,7 @@ var ln = (e) => {
|
|
|
2999
3000
|
}),
|
|
3000
3001
|
additionalProps: {
|
|
3001
3002
|
appear: !0,
|
|
3002
|
-
in:
|
|
3003
|
+
in: h
|
|
3003
3004
|
}
|
|
3004
3005
|
});
|
|
3005
3006
|
y === "auto" && !F.muiSupportAuto && (N = void 0);
|
|
@@ -3012,13 +3013,13 @@ var ln = (e) => {
|
|
|
3012
3013
|
},
|
|
3013
3014
|
shouldForwardComponentProp: !0,
|
|
3014
3015
|
additionalProps: {
|
|
3015
|
-
slots: { backdrop:
|
|
3016
|
-
slotProps: { backdrop: Ne(typeof
|
|
3016
|
+
slots: { backdrop: g.backdrop },
|
|
3017
|
+
slotProps: { backdrop: Ne(typeof _.backdrop == "function" ? _.backdrop(C) : _.backdrop, { invisible: !0 }) },
|
|
3017
3018
|
container: ne,
|
|
3018
|
-
open:
|
|
3019
|
+
open: h
|
|
3019
3020
|
},
|
|
3020
3021
|
ownerState: C,
|
|
3021
|
-
className:
|
|
3022
|
+
className: m(w.root, l)
|
|
3022
3023
|
}), [oe, se] = R("paper", {
|
|
3023
3024
|
ref: S,
|
|
3024
3025
|
className: w.paper,
|
|
@@ -3383,7 +3384,7 @@ var mn = {
|
|
|
3383
3384
|
padding: 8
|
|
3384
3385
|
},
|
|
3385
3386
|
divActionsAction: {
|
|
3386
|
-
...
|
|
3387
|
+
...S.normal14,
|
|
3387
3388
|
borderRadius: 4,
|
|
3388
3389
|
cursor: "pointer",
|
|
3389
3390
|
textAlign: "center",
|
|
@@ -3404,7 +3405,7 @@ var mn = {
|
|
|
3404
3405
|
padding: "1px 0"
|
|
3405
3406
|
},
|
|
3406
3407
|
divOptions: (e) => ({
|
|
3407
|
-
...
|
|
3408
|
+
...b.propertiesPanel,
|
|
3408
3409
|
scrollbarGutter: "initial",
|
|
3409
3410
|
maxHeight: 400,
|
|
3410
3411
|
padding: "0 8px",
|
|
@@ -3424,7 +3425,7 @@ var mn = {
|
|
|
3424
3425
|
}
|
|
3425
3426
|
}),
|
|
3426
3427
|
header: (e) => ({
|
|
3427
|
-
...
|
|
3428
|
+
...S.bold13,
|
|
3428
3429
|
gap: 8,
|
|
3429
3430
|
padding: "10px 16px",
|
|
3430
3431
|
display: "flex",
|
|
@@ -3478,7 +3479,7 @@ var mn = {
|
|
|
3478
3479
|
}
|
|
3479
3480
|
}),
|
|
3480
3481
|
divOptionsOptionCategory: (e) => ({
|
|
3481
|
-
...
|
|
3482
|
+
...S.bold13,
|
|
3482
3483
|
fontStyle: "var(--font-style)",
|
|
3483
3484
|
textDecoration: "var(--text-decoration)",
|
|
3484
3485
|
background: "var(--background-color)",
|
|
@@ -3504,16 +3505,16 @@ var mn = {
|
|
|
3504
3505
|
}
|
|
3505
3506
|
}),
|
|
3506
3507
|
divOptionsOptionOption: (e) => ({
|
|
3507
|
-
...
|
|
3508
|
+
...S.normal13,
|
|
3508
3509
|
fontStyle: "var(--font-style)",
|
|
3509
|
-
lineHeight:
|
|
3510
|
+
lineHeight: S.normal13.lineHeight,
|
|
3510
3511
|
textDecoration: "var(--text-decoration)",
|
|
3511
3512
|
"&[aria-disabled=\"true\"]": { cursor: "not-allowed" },
|
|
3512
3513
|
"&[aria-expanded=\"true\"]": { background: n.grey5 },
|
|
3513
3514
|
...e && r
|
|
3514
3515
|
}),
|
|
3515
3516
|
divOptionsOptionOptionLabel: {
|
|
3516
|
-
...
|
|
3517
|
+
...S.overflowEllipsis,
|
|
3517
3518
|
display: "initial !important",
|
|
3518
3519
|
...t && {
|
|
3519
3520
|
height: "100%",
|
|
@@ -3532,7 +3533,7 @@ var mn = {
|
|
|
3532
3533
|
}
|
|
3533
3534
|
})
|
|
3534
3535
|
};
|
|
3535
|
-
}, kn =
|
|
3536
|
+
}, kn = d(On("default")), An = d(On("legacy")), jn = (e, { appearance: t = "default" } = {}) => (t === "legacy" ? An : kn)(e), Mn = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
|
|
3536
3537
|
title: e,
|
|
3537
3538
|
children: t
|
|
3538
3539
|
}) : t, Nn = ({ action: e, classNames: t }) => {
|
|
@@ -3541,7 +3542,7 @@ var mn = {
|
|
|
3541
3542
|
tooltip: e.tooltip,
|
|
3542
3543
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3543
3544
|
"aria-disabled": r,
|
|
3544
|
-
className:
|
|
3545
|
+
className: C({
|
|
3545
3546
|
[t.divActionsAction]: !0,
|
|
3546
3547
|
[t.divActionsAction__primary]: n === "primary",
|
|
3547
3548
|
[t.divActionsAction__secondary]: n === "secondary"
|
|
@@ -3560,7 +3561,7 @@ var mn = {
|
|
|
3560
3561
|
classNames: t,
|
|
3561
3562
|
action: e
|
|
3562
3563
|
}, e.key))
|
|
3563
|
-
}) : null, Fn =
|
|
3564
|
+
}) : null, Fn = d({ button: {
|
|
3564
3565
|
background: "initial",
|
|
3565
3566
|
border: "initial",
|
|
3566
3567
|
padding: "initial",
|
|
@@ -3571,14 +3572,14 @@ var mn = {
|
|
|
3571
3572
|
let i = Fn();
|
|
3572
3573
|
return /* @__PURE__ */ (0, G.jsx)("button", {
|
|
3573
3574
|
...n,
|
|
3574
|
-
className:
|
|
3575
|
+
className: C({
|
|
3575
3576
|
[String(t)]: !0,
|
|
3576
3577
|
[i.button]: !0
|
|
3577
3578
|
}),
|
|
3578
3579
|
ref: r,
|
|
3579
3580
|
children: e
|
|
3580
3581
|
});
|
|
3581
|
-
}), Ln =
|
|
3582
|
+
}), Ln = d({
|
|
3582
3583
|
button: (e) => ({
|
|
3583
3584
|
position: "absolute",
|
|
3584
3585
|
right: 4,
|
|
@@ -3602,7 +3603,7 @@ var mn = {
|
|
|
3602
3603
|
position: "relative"
|
|
3603
3604
|
},
|
|
3604
3605
|
input: (e) => ({
|
|
3605
|
-
...
|
|
3606
|
+
...S.normal13,
|
|
3606
3607
|
background: "initial",
|
|
3607
3608
|
border: `1px solid ${n.grey3}`,
|
|
3608
3609
|
borderRadius: 4,
|
|
@@ -3614,16 +3615,16 @@ var mn = {
|
|
|
3614
3615
|
...e && {
|
|
3615
3616
|
[H.md]: {
|
|
3616
3617
|
height: 20,
|
|
3617
|
-
...
|
|
3618
|
+
...S.normal12
|
|
3618
3619
|
},
|
|
3619
3620
|
[H.sm]: {
|
|
3620
3621
|
height: 16,
|
|
3621
|
-
...
|
|
3622
|
+
...S.normal11,
|
|
3622
3623
|
padding: "3px 16px"
|
|
3623
3624
|
},
|
|
3624
3625
|
[H.xs]: {
|
|
3625
3626
|
height: 12,
|
|
3626
|
-
...
|
|
3627
|
+
...S.normal10,
|
|
3627
3628
|
padding: "0px 12px"
|
|
3628
3629
|
}
|
|
3629
3630
|
},
|
|
@@ -3649,47 +3650,47 @@ var mn = {
|
|
|
3649
3650
|
}
|
|
3650
3651
|
})
|
|
3651
3652
|
}), Rn = (0, W.forwardRef)(function({ autoFocus: e, className: t, onChange: n, value: r, placeholder: i, style: a, responsive: o, ...s }, c) {
|
|
3652
|
-
let
|
|
3653
|
-
|
|
3654
|
-
}, [c]),
|
|
3653
|
+
let u = (0, W.useRef)(null), d = (0, W.useCallback)((e) => {
|
|
3654
|
+
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
3655
|
+
}, [c]), f = Ln(o);
|
|
3655
3656
|
return (0, W.useEffect)(() => {
|
|
3656
|
-
e &&
|
|
3657
|
+
e && u.current?.focus();
|
|
3657
3658
|
}, [e]), /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3658
|
-
className:
|
|
3659
|
+
className: C({
|
|
3659
3660
|
[String(t)]: !0,
|
|
3660
|
-
[
|
|
3661
|
+
[f.div]: !0
|
|
3661
3662
|
}),
|
|
3662
3663
|
children: [
|
|
3663
|
-
/* @__PURE__ */ (0, G.jsx)(
|
|
3664
|
-
className:
|
|
3664
|
+
/* @__PURE__ */ (0, G.jsx)(l, {
|
|
3665
|
+
className: f.svg,
|
|
3665
3666
|
fill: a?.color
|
|
3666
3667
|
}),
|
|
3667
3668
|
/* @__PURE__ */ (0, G.jsx)("input", {
|
|
3668
3669
|
...s,
|
|
3669
3670
|
style: { ...a },
|
|
3670
|
-
className:
|
|
3671
|
+
className: f.input,
|
|
3671
3672
|
onChange: n,
|
|
3672
3673
|
placeholder: i ?? "Search...",
|
|
3673
|
-
ref:
|
|
3674
|
+
ref: d,
|
|
3674
3675
|
size: 1,
|
|
3675
3676
|
value: r
|
|
3676
3677
|
}),
|
|
3677
3678
|
/* @__PURE__ */ (0, G.jsx)(In, {
|
|
3678
|
-
className:
|
|
3679
|
+
className: f.button,
|
|
3679
3680
|
"data-testid": "input-search-clear",
|
|
3680
3681
|
onClick: () => {
|
|
3681
|
-
|
|
3682
|
+
u.current?.focus(), n?.({ target: { value: "" } });
|
|
3682
3683
|
},
|
|
3683
3684
|
style: { display: r ? void 0 : "none" },
|
|
3684
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
3685
|
+
children: /* @__PURE__ */ (0, G.jsx)(g, { fill: a?.color })
|
|
3685
3686
|
})
|
|
3686
3687
|
]
|
|
3687
3688
|
});
|
|
3688
|
-
}), zn =
|
|
3689
|
+
}), zn = d({ button: {
|
|
3689
3690
|
paddingLeft: 4,
|
|
3690
3691
|
paddingRight: 4
|
|
3691
3692
|
} }), Bn = ({ isAllCollapsed: e, clickCallback: t }) => {
|
|
3692
|
-
let n = zn(), r = e ?
|
|
3693
|
+
let n = zn(), r = e ? u : h;
|
|
3693
3694
|
return /* @__PURE__ */ (0, G.jsx)(fe, {
|
|
3694
3695
|
title: e ? "Expand all" : "Collapse all",
|
|
3695
3696
|
children: /* @__PURE__ */ (0, G.jsx)(In, {
|
|
@@ -3747,7 +3748,7 @@ var mn = {
|
|
|
3747
3748
|
case t > 0: return "partial";
|
|
3748
3749
|
default: return "none";
|
|
3749
3750
|
}
|
|
3750
|
-
}, Kn =
|
|
3751
|
+
}, Kn = d({
|
|
3751
3752
|
container: {
|
|
3752
3753
|
position: "relative",
|
|
3753
3754
|
display: "flex",
|
|
@@ -3788,7 +3789,7 @@ var mn = {
|
|
|
3788
3789
|
"&[aria-disabled=\"true\"]": { cursor: "default" }
|
|
3789
3790
|
},
|
|
3790
3791
|
label: {
|
|
3791
|
-
...
|
|
3792
|
+
...S.normal13,
|
|
3792
3793
|
color: n.grey1,
|
|
3793
3794
|
cursor: "pointer",
|
|
3794
3795
|
marginLeft: 8,
|
|
@@ -3809,11 +3810,11 @@ var mn = {
|
|
|
3809
3810
|
tabIndex: 0
|
|
3810
3811
|
}, Jn = ({ value: e, size: t, fill: r = n.mainBrightPink }) => {
|
|
3811
3812
|
switch (e) {
|
|
3812
|
-
case "full": return /* @__PURE__ */ (0, G.jsx)(
|
|
3813
|
+
case "full": return /* @__PURE__ */ (0, G.jsx)(a, {
|
|
3813
3814
|
fill: r,
|
|
3814
3815
|
size: t
|
|
3815
3816
|
});
|
|
3816
|
-
case "partial": return /* @__PURE__ */ (0, G.jsx)(
|
|
3817
|
+
case "partial": return /* @__PURE__ */ (0, G.jsx)(s, {
|
|
3817
3818
|
fill: r,
|
|
3818
3819
|
size: t
|
|
3819
3820
|
});
|
|
@@ -3838,13 +3839,13 @@ var mn = {
|
|
|
3838
3839
|
}, p = Kn();
|
|
3839
3840
|
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3840
3841
|
onClick: d,
|
|
3841
|
-
className:
|
|
3842
|
+
className: C({
|
|
3842
3843
|
[p.container]: !0,
|
|
3843
3844
|
[p.checkboxWithLabel]: !!l
|
|
3844
3845
|
}),
|
|
3845
3846
|
"data-testid": u,
|
|
3846
3847
|
children: [/* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3847
|
-
className:
|
|
3848
|
+
className: C({
|
|
3848
3849
|
[p.checkboxContainer]: !0,
|
|
3849
3850
|
[p.checkboxWithLabel]: !!l
|
|
3850
3851
|
}),
|
|
@@ -3860,7 +3861,7 @@ var mn = {
|
|
|
3860
3861
|
},
|
|
3861
3862
|
tabIndex: c,
|
|
3862
3863
|
onKeyDown: f,
|
|
3863
|
-
className:
|
|
3864
|
+
className: C({
|
|
3864
3865
|
[p.checkbox]: !0,
|
|
3865
3866
|
[p.checkboxUnchecked]: t === "none",
|
|
3866
3867
|
[p.checkboxChecked]: t === "full" || t === "partial"
|
|
@@ -3875,7 +3876,7 @@ var mn = {
|
|
|
3875
3876
|
})
|
|
3876
3877
|
})]
|
|
3877
3878
|
}), l ? /* @__PURE__ */ (0, G.jsx)("span", {
|
|
3878
|
-
className:
|
|
3879
|
+
className: C({
|
|
3879
3880
|
[p.label]: !0,
|
|
3880
3881
|
disabled: i
|
|
3881
3882
|
}),
|
|
@@ -3903,7 +3904,7 @@ var mn = {
|
|
|
3903
3904
|
option: t,
|
|
3904
3905
|
searchPhrase: n
|
|
3905
3906
|
})
|
|
3906
|
-
}), $n =
|
|
3907
|
+
}), $n = d({
|
|
3907
3908
|
container: {
|
|
3908
3909
|
position: "relative",
|
|
3909
3910
|
display: "flex",
|
|
@@ -3939,11 +3940,11 @@ var mn = {
|
|
|
3939
3940
|
tabIndex: 0
|
|
3940
3941
|
}, tr = ({ checkedType: e, size: t, fill: r = n.mainBrightPink }) => {
|
|
3941
3942
|
switch (e) {
|
|
3942
|
-
case "full": return /* @__PURE__ */ (0, G.jsx)(
|
|
3943
|
+
case "full": return /* @__PURE__ */ (0, G.jsx)(a, {
|
|
3943
3944
|
fill: r,
|
|
3944
3945
|
size: t
|
|
3945
3946
|
});
|
|
3946
|
-
case "partial": return /* @__PURE__ */ (0, G.jsx)(
|
|
3947
|
+
case "partial": return /* @__PURE__ */ (0, G.jsx)(s, {
|
|
3947
3948
|
fill: r,
|
|
3948
3949
|
size: t
|
|
3949
3950
|
});
|
|
@@ -3974,7 +3975,7 @@ var mn = {
|
|
|
3974
3975
|
},
|
|
3975
3976
|
tabIndex: c,
|
|
3976
3977
|
onKeyDown: d,
|
|
3977
|
-
className:
|
|
3978
|
+
className: C({
|
|
3978
3979
|
[f.checkbox]: !0,
|
|
3979
3980
|
[f.checkboxUnchecked]: !l,
|
|
3980
3981
|
[f.checkboxChecked]: !p && l
|
|
@@ -3994,7 +3995,7 @@ var mn = {
|
|
|
3994
3995
|
disabled: n,
|
|
3995
3996
|
size: r
|
|
3996
3997
|
}) : null, ir = ({ multiSelect: e = !1, ...t }) => {
|
|
3997
|
-
let n =
|
|
3998
|
+
let n = x(), r = t.responsive ? _e(16, n.height, n.width) : 16;
|
|
3998
3999
|
return /* @__PURE__ */ (0, G.jsx)(ar, {
|
|
3999
4000
|
...t,
|
|
4000
4001
|
appearance: "legacy",
|
|
@@ -4020,8 +4021,8 @@ var mn = {
|
|
|
4020
4021
|
})
|
|
4021
4022
|
})
|
|
4022
4023
|
});
|
|
4023
|
-
}, ar = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions:
|
|
4024
|
-
let m =
|
|
4024
|
+
}, ar = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions: a, searchEnabled: o = !1, style: s = {}, cssVariables: c, header: l, pickedOptionsIds: u, responsive: d, appearance: f = "default", renderOptions: p }) => {
|
|
4025
|
+
let m = i(), h = jn(d, { appearance: f }), [g, _] = (0, W.useState)({}), [v, y] = (0, W.useState)({}), [b, x] = (0, W.useState)(""), S = (e) => {
|
|
4025
4026
|
x(e), y({});
|
|
4026
4027
|
}, C = {
|
|
4027
4028
|
...wn,
|
|
@@ -4064,9 +4065,9 @@ var mn = {
|
|
|
4064
4065
|
" "
|
|
4065
4066
|
]
|
|
4066
4067
|
}) : null,
|
|
4067
|
-
|
|
4068
|
+
a?.length ? p({
|
|
4068
4069
|
classNames: h,
|
|
4069
|
-
options:
|
|
4070
|
+
options: a,
|
|
4070
4071
|
searchPhrase: "",
|
|
4071
4072
|
collapsed: g,
|
|
4072
4073
|
setCollapsed: _,
|
|
@@ -4139,7 +4140,7 @@ var mn = {
|
|
|
4139
4140
|
options: o
|
|
4140
4141
|
})
|
|
4141
4142
|
});
|
|
4142
|
-
}, $ = ({ 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 = d({ span: { fontWeight: "bold" } }), lr = (e, t) => {
|
|
4143
4144
|
let n = cr();
|
|
4144
4145
|
if (!e) return [{ children: t }];
|
|
4145
4146
|
let r = e.toLocaleLowerCase(), i = t.toLocaleLowerCase(), a = [], o = 0;
|
|
@@ -4169,41 +4170,41 @@ var mn = {
|
|
|
4169
4170
|
});
|
|
4170
4171
|
}, fr = ({ tooltipTitle: e }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
|
|
4171
4172
|
title: e,
|
|
4172
|
-
children: /* @__PURE__ */ (0, G.jsx)("div", { children: /* @__PURE__ */ (0, G.jsx)(
|
|
4173
|
-
}) : null, pr = ({ classNames: e, option: t, setOpenedElement: n, collapsed: r, setCollapsed: i, searchPhrase: a, checkbox:
|
|
4174
|
-
let { children:
|
|
4173
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", { children: /* @__PURE__ */ (0, G.jsx)(v, {}) })
|
|
4174
|
+
}) : null, pr = ({ classNames: e, option: t, setOpenedElement: n, collapsed: r, setCollapsed: i, searchPhrase: a, checkbox: o, renderOption: s }) => {
|
|
4175
|
+
let { children: c, disabled: l = !1, label: d, tooltip: f, key: p } = t;
|
|
4175
4176
|
return /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsx)(fe, {
|
|
4176
|
-
title:
|
|
4177
|
+
title: d,
|
|
4177
4178
|
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4178
|
-
"aria-disabled":
|
|
4179
|
-
"aria-expanded": !r[
|
|
4180
|
-
className:
|
|
4179
|
+
"aria-disabled": l,
|
|
4180
|
+
"aria-expanded": !r[p],
|
|
4181
|
+
className: C({
|
|
4181
4182
|
[e.divOptionsOption]: !0,
|
|
4182
4183
|
[e.divOptionsOptionCategory]: !0
|
|
4183
4184
|
}),
|
|
4184
4185
|
onClick: () => {
|
|
4185
4186
|
i({
|
|
4186
4187
|
...r,
|
|
4187
|
-
[
|
|
4188
|
+
[p]: !r[p]
|
|
4188
4189
|
}), n({});
|
|
4189
4190
|
},
|
|
4190
4191
|
onKeyDown: Z,
|
|
4191
4192
|
role: "menuitem",
|
|
4192
|
-
tabIndex:
|
|
4193
|
+
tabIndex: l ? void 0 : 0,
|
|
4193
4194
|
children: [
|
|
4194
|
-
|
|
4195
|
+
o,
|
|
4195
4196
|
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4196
|
-
label:
|
|
4197
|
+
label: d,
|
|
4197
4198
|
searchPhrase: a,
|
|
4198
4199
|
classNames: e
|
|
4199
4200
|
}),
|
|
4200
|
-
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle:
|
|
4201
|
-
/* @__PURE__ */ (0, G.jsx)($, { icon: r[
|
|
4201
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: f }),
|
|
4202
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: r[p] ? /* @__PURE__ */ (0, G.jsx)(u, {}) : /* @__PURE__ */ (0, G.jsx)(h, {}) })
|
|
4202
4203
|
]
|
|
4203
4204
|
})
|
|
4204
|
-
}), r[
|
|
4205
|
+
}), r[p] ? null : c.map(s)] }, p);
|
|
4205
4206
|
}, mr = ({ classNames: e, option: t }) => /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4206
|
-
className:
|
|
4207
|
+
className: C({
|
|
4207
4208
|
[e.divOptionsOption]: !0,
|
|
4208
4209
|
[e.divOptionsOptionDivider]: !0
|
|
4209
4210
|
}),
|
|
@@ -4215,7 +4216,7 @@ var mn = {
|
|
|
4215
4216
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4216
4217
|
style: { backgroundColor: s || void 0 },
|
|
4217
4218
|
"aria-disabled": i,
|
|
4218
|
-
className:
|
|
4219
|
+
className: C({
|
|
4219
4220
|
[t.divOptionsOption]: !0,
|
|
4220
4221
|
[t.divOptionsOptionOption]: !0
|
|
4221
4222
|
}),
|
|
@@ -4227,9 +4228,9 @@ var mn = {
|
|
|
4227
4228
|
})
|
|
4228
4229
|
}, o);
|
|
4229
4230
|
}, gr = (e) => {
|
|
4230
|
-
let t = e.option, n = e.classNames, { openedElement: r, setOpenedElement: i, onCloseClick:
|
|
4231
|
+
let t = e.option, n = e.classNames, { openedElement: r, setOpenedElement: i, onCloseClick: o, pickedOptionsIds: s, checkbox: c, multiSelect: l = !1, appearance: u = "default", renderSubmenu: d } = e, { children: f = [], disabled: p = !1, icon: m = {}, label: h, onClick: g, tooltip: v, key: y, color: b } = t, x = s?.includes(y), S = b ? Cn(b) : _.fill, C = m.right ?? (x ? /* @__PURE__ */ (0, G.jsx)(a, { fill: S ?? void 0 }) : null), w = _.size, T = !!C, E;
|
|
4231
4232
|
return f.length ? (E = (e) => {
|
|
4232
|
-
p || i({ [
|
|
4233
|
+
p || i({ [y]: e.currentTarget });
|
|
4233
4234
|
}, /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsxs)(hr, {
|
|
4234
4235
|
...e,
|
|
4235
4236
|
onClick: E,
|
|
@@ -4238,13 +4239,13 @@ var mn = {
|
|
|
4238
4239
|
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4239
4240
|
label: h,
|
|
4240
4241
|
classNames: n,
|
|
4241
|
-
color:
|
|
4242
|
+
color: b
|
|
4242
4243
|
}),
|
|
4243
|
-
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle:
|
|
4244
|
-
/* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4244
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: v }),
|
|
4245
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: C })
|
|
4245
4246
|
]
|
|
4246
4247
|
}), d({
|
|
4247
|
-
anchorEl: r[
|
|
4248
|
+
anchorEl: r[y],
|
|
4248
4249
|
anchorOrigin: {
|
|
4249
4250
|
horizontal: "left",
|
|
4250
4251
|
vertical: "top"
|
|
@@ -4253,15 +4254,15 @@ var mn = {
|
|
|
4253
4254
|
i({});
|
|
4254
4255
|
},
|
|
4255
4256
|
onCloseClick: (e) => {
|
|
4256
|
-
|
|
4257
|
+
o(e), i({});
|
|
4257
4258
|
},
|
|
4258
4259
|
options: f,
|
|
4259
4260
|
transformOrigin: {
|
|
4260
4261
|
horizontal: "right",
|
|
4261
4262
|
vertical: "top"
|
|
4262
4263
|
}
|
|
4263
|
-
})] },
|
|
4264
|
-
p || (g?.(e), !l && !c &&
|
|
4264
|
+
})] }, y)) : (E = (e) => {
|
|
4265
|
+
p || (g?.(e), !l && !c && o(e));
|
|
4265
4266
|
}, /* @__PURE__ */ (0, G.jsxs)(hr, {
|
|
4266
4267
|
...e,
|
|
4267
4268
|
onClick: E,
|
|
@@ -4271,10 +4272,10 @@ var mn = {
|
|
|
4271
4272
|
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4272
4273
|
label: h,
|
|
4273
4274
|
classNames: n,
|
|
4274
|
-
color:
|
|
4275
|
+
color: b
|
|
4275
4276
|
}),
|
|
4276
|
-
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle:
|
|
4277
|
-
T ? /* @__PURE__ */ (0, G.jsx)($, { icon:
|
|
4277
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: v }),
|
|
4278
|
+
T ? /* @__PURE__ */ (0, G.jsx)($, { icon: C }) : u === "default" ? /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4278
4279
|
style: { width: w },
|
|
4279
4280
|
"aria-hidden": !0
|
|
4280
4281
|
}) : null,
|