@hybridcore/ui 1.6.24 → 1.6.26

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.
Files changed (53) hide show
  1. package/dist/{AccordionSummary-c6-Buzbq.js → AccordionSummary-B6-hHjCC.js} +3 -3
  2. package/dist/{Add-CB4mPrke.js → Add-eXYPgCCB.js} +1 -1
  3. package/dist/{Alert-BsT46Tgd.js → Alert-OoSOUjZM.js} +2 -2
  4. package/dist/{Button-BMUZn0cT.js → Button-gZFgy23t.js} +1 -1
  5. package/dist/{ButtonBase-DG5J0YgP.js → ButtonBase-Dgg9dzM8.js} +2 -2
  6. package/dist/{Delete-ofipLwkd.js → Delete-B8COyxKI.js} +1 -1
  7. package/dist/{IconButton-SJfF1cr9.js → IconButton-CQwROBzr.js} +1 -1
  8. package/dist/{MenuItem-BjnnhDbD.js → MenuItem-BAKBPyZx.js} +3 -3
  9. package/dist/{Modal-Djf5pMjD.js → Modal-DVdqH5dj.js} +1 -1
  10. package/dist/{Select-nL91eUH9.js → Select-B4zhu5G_.js} +2 -2
  11. package/dist/{SwitchBase-BcJAJYsB.js → SwitchBase-BqUrfIHp.js} +1 -1
  12. package/dist/{TextField-Db63_GNb.js → TextField-Cx5T7iJn.js} +4 -3
  13. package/dist/components/button/styled.js +1 -1
  14. package/dist/components/charts/forecast-cone/index.js +1 -1
  15. package/dist/components/collapsible-card/index.js +1 -1
  16. package/dist/components/collapsible-card/styled.js +1 -1
  17. package/dist/components/color-picker/index.js +2 -2
  18. package/dist/components/color-picker/styled.js +1 -1
  19. package/dist/components/confirm/dialog.js +2 -2
  20. package/dist/components/confirm/index.js +1 -1
  21. package/dist/components/duration-select/index.js +1 -1
  22. package/dist/components/duration-select/styled.js +1 -1
  23. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  24. package/dist/components/instance-form/components/variable/index.js +3 -2
  25. package/dist/components/instance-form/components/variables/index.js +1 -1
  26. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  27. package/dist/components/property-mapping/index.js +1 -1
  28. package/dist/components/simple-pivot-table/index.js +46 -50
  29. package/dist/components/simple-pivot-table/styled.js +43 -28
  30. package/dist/components/template-form/components/default-value-input/index.js +120 -0
  31. package/dist/components/template-form/components/default-value-input/logic.js +76 -0
  32. package/dist/components/template-form/components/property-list/index.js +5 -5
  33. package/dist/components/template-form/components/property-list/property-list-columns.js +2 -2
  34. package/dist/components/template-form/components/property-list/property-list-form.js +245 -240
  35. package/dist/components/template-form/components/property-list/property-list-logic.js +59 -42
  36. package/dist/components/template-form/components/recognition-property-list/index.js +5 -5
  37. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  38. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +5 -5
  39. package/dist/components/template-form/index.js +39 -37
  40. package/dist/components/template-form/logic.js +24 -23
  41. package/dist/components/template-property-filters/property.js +23 -20
  42. package/dist/createSvgIcon-Bi-IzY8I.js +83 -0
  43. package/dist/{dialog-CNxZ7uox.js → dialog-DwmnOp5c.js} +2 -2
  44. package/dist/{index-BQ4_OA4b.js → index-Dvh8D1yM.js} +26 -25
  45. package/dist/isMuiElement-CxT3_ACP.js +13 -0
  46. package/dist/main.d.ts +27 -1
  47. package/dist/{styled-DObpn_Bi.js → styled-C5WQOj4E.js} +1 -1
  48. package/dist/{useIsFocusVisible-BHPF-Pml.js → useIsFocusVisible-CVnvB5M2.js} +1 -1
  49. package/dist/{useSlot-gpKOd92R.js → useSlot-BOHuz6Wu.js} +1 -1
  50. package/dist/{useTimeout-CM6EsHyp.js → useTimeout-D5vWrF1x.js} +2 -2
  51. package/dist/utils/ontology.js +49 -43
  52. package/package.json +1 -1
  53. package/dist/createSvgIcon-jKAqRXE2.js +0 -93
@@ -3,14 +3,14 @@ import * as a from "react";
3
3
  import { r as po } from "./index-DH6qsPBn.js";
4
4
  import { P as o } from "./index-CblbdqjE.js";
5
5
  import { c as G } from "./clsx-OuTLNxxd.js";
6
- import { u as uo } from "./useSlot-gpKOd92R.js";
6
+ import { u as uo } from "./useSlot-BOHuz6Wu.js";
7
7
  import { g as q, a as F, s as T, u as H, k as fo, c as J } from "./styled-Ckq8ALHh.js";
8
8
  import { jsx as g, jsxs as to } from "react/jsx-runtime";
9
9
  import { T as mo, u as go, g as eo, P as bo } from "./Paper-BFDcMa0t.js";
10
10
  import { u as ho } from "./useControlled-BYdyS7Pn.js";
11
- import { b as xo, u as yo } from "./useTimeout-CM6EsHyp.js";
11
+ import { c as xo, u as yo } from "./useTimeout-D5vWrF1x.js";
12
12
  import { e as Co, c as vo } from "./TransitionGroupContext-C_aW1Tei.js";
13
- import { B as Eo } from "./ButtonBase-DG5J0YgP.js";
13
+ import { B as Eo } from "./ButtonBase-Dgg9dzM8.js";
14
14
  function To(e) {
15
15
  return F("MuiCollapse", e);
16
16
  }
@@ -5,7 +5,7 @@ import { c as m } from "./clsx-OuTLNxxd.js";
5
5
  import { g as d, a as v, s as y, u as T, c as g, i as h } from "./styled-Ckq8ALHh.js";
6
6
  import A, { jsx as _ } from "react/jsx-runtime";
7
7
  import { T as x } from "./Typography-B_LKrxyI.js";
8
- import { r as j } from "./createSvgIcon-jKAqRXE2.js";
8
+ import { r as j } from "./createSvgIcon-Bi-IzY8I.js";
9
9
  function R(t) {
10
10
  return v("MuiAlertTitle", t);
11
11
  }
@@ -3,11 +3,11 @@ import * as _ from "react";
3
3
  import { P as o } from "./index-CblbdqjE.js";
4
4
  import { c as H } from "./clsx-OuTLNxxd.js";
5
5
  import { g as U, a as V, s as u, b as g, h as S, l as M, u as F, c as D } from "./styled-Ckq8ALHh.js";
6
- import { u as x } from "./useSlot-gpKOd92R.js";
6
+ import { u as x } from "./useSlot-BOHuz6Wu.js";
7
7
  import { c as p } from "./createSvgIcon-Bx0mTP6n.js";
8
8
  import { jsx as s, jsxs as Z } from "react/jsx-runtime";
9
9
  import { P as q } from "./Paper-BFDcMa0t.js";
10
- import { I as G } from "./IconButton-SJfF1cr9.js";
10
+ import { I as G } from "./IconButton-CQwROBzr.js";
11
11
  function J(e) {
12
12
  return V("MuiAlert", e);
13
13
  }
@@ -4,7 +4,7 @@ import { P as n } from "./index-CblbdqjE.js";
4
4
  import { c as m } from "./clsx-OuTLNxxd.js";
5
5
  import { g as D, a as F, s as f, r as G, b as r, d as v, f as U, u as H, c as A } from "./styled-Ckq8ALHh.js";
6
6
  import { jsx as R, jsxs as q } from "react/jsx-runtime";
7
- import { B as J } from "./ButtonBase-DG5J0YgP.js";
7
+ import { B as J } from "./ButtonBase-Dgg9dzM8.js";
8
8
  function K(o) {
9
9
  return F("MuiButton", o);
10
10
  }
@@ -6,10 +6,10 @@ import { c as x } from "./clsx-OuTLNxxd.js";
6
6
  import { g as ye, s as re, u as Te, a as Xe, c as Ye } from "./styled-Ckq8ALHh.js";
7
7
  import { keyframes as se } from "@mui/system";
8
8
  import { jsx as U, jsxs as Ae } from "react/jsx-runtime";
9
- import { b as qe, u as de, c as H } from "./useTimeout-CM6EsHyp.js";
9
+ import { c as qe, u as de, b as H } from "./useTimeout-D5vWrF1x.js";
10
10
  import { _ as We } from "./assertThisInitialized-C1dAyb4j.js";
11
11
  import { _ as He, T as he, r as Ge, e as Je } from "./TransitionGroupContext-C_aW1Tei.js";
12
- import { u as Qe } from "./useIsFocusVisible-BHPF-Pml.js";
12
+ import { u as Qe } from "./useIsFocusVisible-CVnvB5M2.js";
13
13
  function ae(t, s) {
14
14
  var a = function(n) {
15
15
  return s && G(n) ? s(n) : n;
@@ -1,5 +1,5 @@
1
1
  import { i as t } from "./styled-Ckq8ALHh.js";
2
- import { r as a } from "./createSvgIcon-jKAqRXE2.js";
2
+ import { r as a } from "./createSvgIcon-Bi-IzY8I.js";
3
3
  import u from "react/jsx-runtime";
4
4
  var e = {}, l = t;
5
5
  Object.defineProperty(e, "__esModule", {
@@ -4,7 +4,7 @@ import { P as r } from "./index-CblbdqjE.js";
4
4
  import { c as z } from "./clsx-OuTLNxxd.js";
5
5
  import { g as R, a as C, s as B, b as n, d as g, u as I, c as O } from "./styled-Ckq8ALHh.js";
6
6
  import { jsx as x } from "react/jsx-runtime";
7
- import { B as T } from "./ButtonBase-DG5J0YgP.js";
7
+ import { B as T } from "./ButtonBase-Dgg9dzM8.js";
8
8
  import { c as $ } from "./TransitionGroupContext-C_aW1Tei.js";
9
9
  function k(o) {
10
10
  return C("MuiIconButton", o);
@@ -3,10 +3,10 @@ import * as d from "react";
3
3
  import { P as t } from "./index-CblbdqjE.js";
4
4
  import { c as I } from "./clsx-OuTLNxxd.js";
5
5
  import { g as u, a as F, s as _, r as j, d as p, u as D, c as E } from "./styled-Ckq8ALHh.js";
6
- import { L as $ } from "./Select-nL91eUH9.js";
6
+ import { L as $ } from "./Select-B4zhu5G_.js";
7
7
  import { jsx as M } from "react/jsx-runtime";
8
- import { B as G } from "./ButtonBase-DG5J0YgP.js";
9
- import { a as U, u as S } from "./useTimeout-CM6EsHyp.js";
8
+ import { B as G } from "./ButtonBase-Dgg9dzM8.js";
9
+ import { a as U, u as S } from "./useTimeout-D5vWrF1x.js";
10
10
  const O = u("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), N = u("MuiListItemIcon", ["root", "alignItemsFlexStart"]), V = u("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
11
11
  function H(e) {
12
12
  return F("MuiMenuItem", e);
@@ -4,7 +4,7 @@ import { P as e } from "./index-CblbdqjE.js";
4
4
  import { c as ee } from "./clsx-OuTLNxxd.js";
5
5
  import { g as he, a as Ee, s as ne, u as ge, c as ye } from "./styled-Ckq8ALHh.js";
6
6
  import { o as $, a as oe } from "./ownerWindow-wg6foiOE.js";
7
- import { u as K, a as le, s as ce, c as de } from "./useTimeout-CM6EsHyp.js";
7
+ import { u as K, a as le, s as ce, b as de } from "./useTimeout-D5vWrF1x.js";
8
8
  import { r as Me, m as Fe, a as De, u as Ae, T as Be, b as Le, g as ue, e as _e } from "./Paper-BFDcMa0t.js";
9
9
  import { c as pe } from "./createChainedFunction-C0nujS3O.js";
10
10
  import { jsxs as Te, jsx as D } from "react/jsx-runtime";
@@ -5,9 +5,9 @@ import { c as de } from "./clsx-OuTLNxxd.js";
5
5
  import { r as to } from "./index-DH6qsPBn.js";
6
6
  import { jsx as N, jsxs as Ee } from "react/jsx-runtime";
7
7
  import { g as ce, a as pe, s as _, u as ye, c as fe, r as ve, b as we, n as qo, o as wo, m as Go, T as Xo, p as ro } from "./styled-Ckq8ALHh.js";
8
- import { g as Yo, e as Zo, a as So, M as Jo, u as ze, H as eo } from "./Modal-Djf5pMjD.js";
8
+ import { g as Yo, e as Zo, a as So, M as Jo, u as ze, H as eo } from "./Modal-DVdqH5dj.js";
9
9
  import { u as Qo, T as en, b as on, g as ho, P as nn, i as oo, c as tn } from "./Paper-BFDcMa0t.js";
10
- import { a as Ve, u as Se, b as rn, c as sn } from "./useTimeout-CM6EsHyp.js";
10
+ import { a as Ve, u as Se, c as rn, b as sn } from "./useTimeout-D5vWrF1x.js";
11
11
  import { o as _e, a as Ue } from "./ownerWindow-wg6foiOE.js";
12
12
  import { d as Io } from "./debounce-46wSf_lW.js";
13
13
  import { r as Ie, c as an, e as No } from "./TransitionGroupContext-C_aW1Tei.js";
@@ -5,7 +5,7 @@ import { c as V } from "./clsx-OuTLNxxd.js";
5
5
  import { a as W, g as $, s as F, r as A, b as G, c as H } from "./styled-Ckq8ALHh.js";
6
6
  import { u as J } from "./useFormControl-CatNKXAi.js";
7
7
  import { jsxs as K, jsx as Q } from "react/jsx-runtime";
8
- import { B as X } from "./ButtonBase-DG5J0YgP.js";
8
+ import { B as X } from "./ButtonBase-Dgg9dzM8.js";
9
9
  import { u as Y } from "./useControlled-BYdyS7Pn.js";
10
10
  import { r as Z } from "./TransitionGroupContext-C_aW1Tei.js";
11
11
  function ee(o) {
@@ -5,9 +5,9 @@ import { a as i, _ as J } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
5
5
  import * as p from "react";
6
6
  import { c as K } from "./clsx-OuTLNxxd.js";
7
7
  import { jsx as y, jsxs as fe } from "react/jsx-runtime";
8
- import { i as me, a as ee, S as be, I as ge, F as he, O as Te } from "./Select-nL91eUH9.js";
8
+ import { i as me, a as ee, S as be, I as ge, F as he, O as Te } from "./Select-B4zhu5G_.js";
9
9
  import { F as ye, u as xe } from "./useFormControl-CatNKXAi.js";
10
- import { i as U } from "./createSvgIcon-jKAqRXE2.js";
10
+ import { i as U } from "./isMuiElement-CxT3_ACP.js";
11
11
  import { u as Fe } from "./useId-BW-oWmul.js";
12
12
  import { I as ve } from "./InputLabel-jPm6Xuco.js";
13
13
  import { f as Ce } from "./formControlState-vgaj2ksH.js";
@@ -692,5 +692,6 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
692
692
  export {
693
693
  Re as B,
694
694
  te as F,
695
- Le as T
695
+ Le as T,
696
+ ne as a
696
697
  };
@@ -1,5 +1,5 @@
1
1
  import { styled as o } from "@mui/material";
2
- import { B as t } from "../../Button-BMUZn0cT.js";
2
+ import { B as t } from "../../Button-gZFgy23t.js";
3
3
  const n = o(t, {
4
4
  name: "HCButton",
5
5
  slot: "root"
@@ -1,6 +1,6 @@
1
1
  import h, { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { i as u } from "../../../styled-Ckq8ALHh.js";
3
- import { r as f } from "../../../createSvgIcon-jKAqRXE2.js";
3
+ import { r as f } from "../../../createSvgIcon-Bi-IzY8I.js";
4
4
  import { IconButton as d, Typography as c } from "@mui/material";
5
5
  import { useForecastConeChartLogic as R } from "./logic.js";
6
6
  import { ForecastConeChartRoot as $, ForecastConeChartCanvas as S, ForecastConeChartPager as F } from "./styled.js";
@@ -1,6 +1,6 @@
1
1
  import d, { jsx as r, jsxs as n } from "react/jsx-runtime";
2
2
  import { i as c } from "../../styled-Ckq8ALHh.js";
3
- import { r as l } from "../../createSvgIcon-jKAqRXE2.js";
3
+ import { r as l } from "../../createSvgIcon-Bi-IzY8I.js";
4
4
  import { Container as u } from "../container/index.js";
5
5
  import { useCollapsibleCardLogic as s } from "./logic.js";
6
6
  import { Accordion as m, AccordionSummary as x, SummaryHeader as f, SummaryActions as h, AccordionDetails as S } from "./styled.js";
@@ -1,5 +1,5 @@
1
1
  import { styled as a, Box as e } from "@mui/material";
2
- import { A as n, a as t, b as i } from "../../AccordionSummary-c6-Buzbq.js";
2
+ import { A as n, a as t, b as i } from "../../AccordionSummary-B6-hHjCC.js";
3
3
  const r = (o) => o !== "ownerState", m = a(n, {
4
4
  name: "HCCollapsibleCard",
5
5
  slot: "accordion"
@@ -6,13 +6,13 @@ import { c as it } from "../../_commonjsHelpers-BkfeUUK-.js";
6
6
  import { P as g } from "../../index-CblbdqjE.js";
7
7
  import { IconButton as to } from "../icon-button/index.js";
8
8
  import { useColorPickerLogic as ro } from "./logic.js";
9
- import { R as no, C as Qr, a as ao, b as io, c as oo, d as so } from "../../styled-DObpn_Bi.js";
9
+ import { R as no, C as Qr, a as ao, b as io, c as oo, d as so } from "../../styled-C5WQOj4E.js";
10
10
  import { c as Ba } from "../../createReactComponent-C7L-DMHj.js";
11
11
  import { _ as lo, a as co } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
12
12
  import { c as fo } from "../../clsx-OuTLNxxd.js";
13
13
  import { g as uo, a as ho, c as po } from "../../styled-Ckq8ALHh.js";
14
14
  import { u as go } from "../../useControlled-BYdyS7Pn.js";
15
- import { u as vo } from "../../useTimeout-CM6EsHyp.js";
15
+ import { u as vo } from "../../useTimeout-D5vWrF1x.js";
16
16
  import { u as bo } from "../../useId-BW-oWmul.js";
17
17
  import { F as yo } from "../../FormGroup-LH368jad.js";
18
18
  import { I as mo } from "../../IconCircle-HcgE1lHy.js";
@@ -1,5 +1,5 @@
1
1
  import "@mui/material";
2
- import { c as e, C as i, b as c, a as C, d as k } from "../../styled-DObpn_Bi.js";
2
+ import { c as e, C as i, b as c, a as C, d as k } from "../../styled-C5WQOj4E.js";
3
3
  export {
4
4
  e as ColorPickerRadio,
5
5
  i as ColorPickerRoot,
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
2
2
  import "react-confirm";
3
3
  import "@mui/material";
4
4
  import "@mui/icons-material";
5
- import { D as e } from "../../dialog-CNxZ7uox.js";
6
- import "../../Button-BMUZn0cT.js";
5
+ import { D as e } from "../../dialog-DwmnOp5c.js";
6
+ import "../../Button-gZFgy23t.js";
7
7
  export {
8
8
  e as default
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import { createConfirmation as r } from "react-confirm";
2
- import { D as i } from "../../dialog-CNxZ7uox.js";
2
+ import { D as i } from "../../dialog-DwmnOp5c.js";
3
3
  const o = r(i);
4
4
  function f(t, n, e = {
5
5
  cancelButtonText: "Cancel",
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useDurationSelectLogic as l } from "./logic.js";
3
3
  import { DurationSelectRoot as n, DurationSelectSelect as i } from "./styled.js";
4
- import { M as c } from "../../MenuItem-BjnnhDbD.js";
4
+ import { M as c } from "../../MenuItem-BAKBPyZx.js";
5
5
  const h = (o) => {
6
6
  const { state: a, actions: r } = l(o);
7
7
  return /* @__PURE__ */ t(n, { sx: o.sx, children: /* @__PURE__ */ t(
@@ -1,5 +1,5 @@
1
1
  import { styled as t, FormControl as e } from "@mui/material";
2
- import { S as n } from "../../Select-nL91eUH9.js";
2
+ import { S as n } from "../../Select-B4zhu5G_.js";
3
3
  const a = t(e, {
4
4
  name: "HCDurationSelect",
5
5
  slot: "root"
@@ -9,7 +9,7 @@ import "../../../conditional-wrapper/index.js";
9
9
  import "../../helpers.js";
10
10
  import "../../styled.js";
11
11
  import "../TopLabelWrapper.js";
12
- import { C as b } from "../../../../index-BQ4_OA4b.js";
12
+ import { C as b } from "../../../../index-Dvh8D1yM.js";
13
13
  export {
14
14
  b as CompositeList
15
15
  };
@@ -3,15 +3,16 @@ import "@mui/icons-material";
3
3
  import "@mui/material";
4
4
  import "dayjs";
5
5
  import "lodash";
6
+ import "../../../../utils/ontology.js";
6
7
  import "../../../conditional-wrapper/index.js";
7
8
  import "../../../date-time-picker/index.js";
8
9
  import "../../../geometry-picker/index.js";
9
10
  import "../../../phone-input/index.js";
10
11
  import "../../helpers.js";
11
12
  import "../../styled.js";
12
- import { V as d } from "../../../../index-BQ4_OA4b.js";
13
+ import { V as g } from "../../../../index-Dvh8D1yM.js";
13
14
  import "../composite-matrix/index.js";
14
15
  import "../TopLabelWrapper.js";
15
16
  export {
16
- d as Variable
17
+ g as Variable
17
18
  };
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as v } from "react/jsx-runtime";
2
2
  import l from "lodash";
3
3
  import x from "react";
4
4
  import { VariablesContainer as y, FieldContainer as C } from "../../styled.js";
5
- import { V as I } from "../../../../index-BQ4_OA4b.js";
5
+ import { V as I } from "../../../../index-Dvh8D1yM.js";
6
6
  const P = (d) => {
7
7
  const {
8
8
  template: n,
@@ -1,5 +1,5 @@
1
1
  import { styled as a, Box as n, Typography as o, Chip as r } from "@mui/material";
2
- import { A as t, a as c, b as i } from "../../AccordionSummary-c6-Buzbq.js";
2
+ import { A as t, a as c, b as i } from "../../AccordionSummary-B6-hHjCC.js";
3
3
  const s = (e) => e !== "ownerState", l = a(n, {
4
4
  name: "HCInstanceHierarchyTable",
5
5
  slot: "root",
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as e, Fragment as m } from "react/jsx-runtime";
2
2
  import { CloseOutlined as W, ChevronRight as $, ErrorOutline as q, Refresh as J, Check as U } from "@mui/icons-material";
3
3
  import { Button as N, IconButton as _, FormControl as O, Select as D, MenuItem as C, Typography as H } from "@mui/material";
4
4
  import F from "lodash";
5
- import { V as G } from "../../index-BQ4_OA4b.js";
5
+ import { V as G } from "../../index-Dvh8D1yM.js";
6
6
  import { d as L } from "../../ol-yOE-NV0X.js";
7
7
  import { RangeSelector as Q } from "../range-selector/index.js";
8
8
  import { usePropertyMappingLogic as X } from "./logic.js";
@@ -1,19 +1,19 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { Typography as a, Divider as f, TableContainer as I, Table as R, TableHead as j, TableRow as g, TableCell as r, TableBody as w, Box as D, IconButton as G } from "@mui/material";
3
- import { useSimplePivotTableLogic as J } from "./logic.js";
4
- import { SimplePivotTableRoot as M, SimplePivotTableHeader as O, SimplePivotTableContent as V, SimplePivotTableFooter as X, SimplePivotTableScrollHint as q } from "./styled.js";
5
- import { I as A } from "../../IconX-C2wmVYSK.js";
6
- const Z = (s) => {
2
+ import { Typography as i, Divider as f, TableContainer as I, Table as R, TableHead as j, TableRow as v, TableCell as d, TableBody as w, Box as D, IconButton as G } from "@mui/material";
3
+ import { useSimplePivotTableLogic as V } from "./logic.js";
4
+ import { SimplePivotTableRoot as J, SimplePivotTableHeader as M, SimplePivotTableContent as O, SimplePivotTableValueHeadCell as X, SimplePivotTableFooter as q, SimplePivotTableScrollHint as A } from "./styled.js";
5
+ import { I as E } from "../../IconX-C2wmVYSK.js";
6
+ const _ = (s) => {
7
7
  const {
8
8
  title: m,
9
- dimensions: n,
10
- values: c,
9
+ dimensions: r,
10
+ values: n,
11
11
  data: h,
12
- summaries: v,
12
+ summaries: S,
13
13
  selectedField: p,
14
- selectedSummary: d,
14
+ selectedSummary: c,
15
15
  selectColumn: b,
16
- clearSelection: S,
16
+ clearSelection: g,
17
17
  dimensionLabel: x,
18
18
  valueLabel: T,
19
19
  formatDimensionValue: y,
@@ -21,64 +21,60 @@ const Z = (s) => {
21
21
  getCellStyle: F,
22
22
  ownerState: o,
23
23
  scrollRef: N,
24
- canScroll: k,
25
- scrollModifierLabel: P,
24
+ canScroll: P,
25
+ scrollModifierLabel: k,
26
26
  sx: H,
27
27
  other: L
28
- } = J(s), W = {
28
+ } = V(s), W = {
29
29
  title: m,
30
30
  description: s.description,
31
- dimensions: n,
32
- values: c,
31
+ dimensions: r,
32
+ values: n,
33
33
  data: h,
34
- summaries: v
34
+ summaries: S
35
35
  };
36
36
  return /* @__PURE__ */ t(
37
- M,
37
+ J,
38
38
  {
39
39
  ownerState: o,
40
40
  sx: H,
41
41
  "data-snapshot": JSON.stringify(W),
42
42
  ...L,
43
43
  children: [
44
- /* @__PURE__ */ e(O, { ownerState: o, children: /* @__PURE__ */ e(a, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
44
+ /* @__PURE__ */ e(M, { ownerState: o, children: /* @__PURE__ */ e(i, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
45
45
  /* @__PURE__ */ e(f, {}),
46
- /* @__PURE__ */ e(V, { ownerState: o, children: /* @__PURE__ */ e(I, { ref: N, children: /* @__PURE__ */ t(R, { size: "small", stickyHeader: !0, children: [
47
- /* @__PURE__ */ e(j, { children: /* @__PURE__ */ t(g, { children: [
48
- n.map((l) => /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(a, { variant: "caption", fontWeight: 600, children: x(l) }) }, l.value)),
49
- c.map((l) => /* @__PURE__ */ e(
50
- r,
46
+ /* @__PURE__ */ e(O, { ownerState: o, children: /* @__PURE__ */ e(I, { ref: N, children: /* @__PURE__ */ t(R, { size: "small", stickyHeader: !0, children: [
47
+ /* @__PURE__ */ e(j, { children: /* @__PURE__ */ t(v, { children: [
48
+ r.map((l) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(i, { variant: "caption", fontWeight: 600, children: x(l) }) }, l.value)),
49
+ n.map((l) => /* @__PURE__ */ e(
50
+ X,
51
51
  {
52
+ ownerState: o,
53
+ selected: p === l.dataFieldName,
52
54
  align: "right",
53
55
  onClick: () => b(l.dataFieldName),
54
- sx: {
55
- cursor: "pointer",
56
- ...p === l.dataFieldName && {
57
- backgroundColor: "action.selected"
58
- }
59
- },
60
- children: /* @__PURE__ */ e(a, { variant: "caption", fontWeight: 600, children: T(l) })
56
+ children: /* @__PURE__ */ e(i, { variant: "caption", fontWeight: 600, children: T(l) })
61
57
  },
62
58
  l.dataFieldName
63
59
  ))
64
60
  ] }) }),
65
61
  /* @__PURE__ */ e(w, { children: h.map((l, z) => /* @__PURE__ */ t(
66
- g,
62
+ v,
67
63
  {
68
64
  hover: !0,
69
65
  sx: { "&:last-child td": { borderBottom: 0 } },
70
66
  children: [
71
- n.map((i) => /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(a, { variant: "body2", children: y(l[i.value], i) }) }, i.value)),
72
- c.map((i) => {
67
+ r.map((a) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(i, { variant: "body2", children: y(l[a.value], a) }) }, a.value)),
68
+ n.map((a) => {
73
69
  const u = F(
74
- l[i.dataFieldName],
75
- i.format
76
- ), B = p === i.dataFieldName;
70
+ l[a.dataFieldName],
71
+ a.format
72
+ ), B = p === a.dataFieldName;
77
73
  return /* @__PURE__ */ e(
78
- r,
74
+ d,
79
75
  {
80
76
  align: "right",
81
- onClick: () => b(i.dataFieldName),
77
+ onClick: () => b(a.dataFieldName),
82
78
  sx: {
83
79
  cursor: "pointer",
84
80
  // Conditional background wins; otherwise tint the
@@ -86,16 +82,16 @@ const Z = (s) => {
86
82
  backgroundColor: u.backgroundColor ?? (B ? "action.hover" : void 0)
87
83
  },
88
84
  children: /* @__PURE__ */ e(
89
- a,
85
+ i,
90
86
  {
91
87
  variant: "body2",
92
88
  fontWeight: 500,
93
89
  color: u.color ?? "text.primary",
94
- children: C(l[i.dataFieldName], i)
90
+ children: C(l[a.dataFieldName], a)
95
91
  }
96
92
  )
97
93
  },
98
- i.dataFieldName
94
+ a.dataFieldName
99
95
  );
100
96
  })
101
97
  ]
@@ -104,13 +100,13 @@ const Z = (s) => {
104
100
  )) })
105
101
  ] }) }) }),
106
102
  /* @__PURE__ */ e(f, {}),
107
- /* @__PURE__ */ t(X, { ownerState: o, children: [
108
- k && /* @__PURE__ */ e(q, { ownerState: o, children: /* @__PURE__ */ t(a, { variant: "caption", children: [
103
+ /* @__PURE__ */ t(q, { ownerState: o, children: [
104
+ P && /* @__PURE__ */ e(A, { ownerState: o, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
109
105
  "Hold ",
110
- P,
106
+ k,
111
107
  " to scroll"
112
108
  ] }) }),
113
- d ? /* @__PURE__ */ t(
109
+ c ? /* @__PURE__ */ t(
114
110
  D,
115
111
  {
116
112
  sx: {
@@ -121,21 +117,21 @@ const Z = (s) => {
121
117
  rowGap: 0.5
122
118
  },
123
119
  children: [
124
- /* @__PURE__ */ e(a, { variant: "caption", fontWeight: 600, children: d.name }),
125
- d.items.map((l) => /* @__PURE__ */ t(a, { variant: "caption", color: "text.secondary", children: [
120
+ /* @__PURE__ */ e(i, { variant: "caption", fontWeight: 600, children: c.name }),
121
+ c.items.map((l) => /* @__PURE__ */ t(i, { variant: "caption", color: "text.secondary", children: [
126
122
  l.label,
127
123
  ": ",
128
124
  l.value
129
125
  ] }, l.label)),
130
- /* @__PURE__ */ e(G, { size: "small", onClick: S, sx: { p: 0.25 }, children: /* @__PURE__ */ e(A, { size: 14 }) })
126
+ /* @__PURE__ */ e(G, { size: "small", onClick: g, sx: { p: 0.25 }, children: /* @__PURE__ */ e(E, { size: 14 }) })
131
127
  ]
132
128
  }
133
- ) : /* @__PURE__ */ e(a, { variant: "caption", color: "text.disabled", children: "Select a column to summarize" })
129
+ ) : /* @__PURE__ */ e(i, { variant: "caption", color: "text.disabled", children: "Select a column to summarize" })
134
130
  ] })
135
131
  ]
136
132
  }
137
133
  );
138
134
  };
139
135
  export {
140
- Z as SimplePivotTable
136
+ _ as SimplePivotTable
141
137
  };
@@ -1,8 +1,8 @@
1
- import { styled as e, Paper as a, Box as t, alpha as l } from "@mui/material";
2
- const n = e(a, {
1
+ import { styled as o, Paper as a, Box as t, TableCell as i, alpha as n } from "@mui/material";
2
+ const p = o(a, {
3
3
  name: "HCSimplePivotTable",
4
4
  slot: "Root",
5
- shouldForwardProp: (o) => o !== "ownerState"
5
+ shouldForwardProp: (e) => e !== "ownerState"
6
6
  })(() => ({
7
7
  height: "100%",
8
8
  display: "flex",
@@ -10,17 +10,17 @@ const n = e(a, {
10
10
  "&:hover .HCSimplePivotTable-scrollHint": {
11
11
  opacity: 1
12
12
  }
13
- })), r = e(t, {
13
+ })), d = o(t, {
14
14
  name: "HCSimplePivotTable",
15
15
  slot: "Header",
16
- shouldForwardProp: (o) => o !== "ownerState"
17
- })(({ theme: o }) => ({
16
+ shouldForwardProp: (e) => e !== "ownerState"
17
+ })(({ theme: e }) => ({
18
18
  flex: "0 0 auto",
19
- padding: o.spacing(1.25, 2)
20
- })), p = e(t, {
19
+ padding: e.spacing(1.25, 2)
20
+ })), s = o(t, {
21
21
  name: "HCSimplePivotTable",
22
22
  slot: "Content",
23
- shouldForwardProp: (o) => o !== "ownerState"
23
+ shouldForwardProp: (e) => e !== "ownerState"
24
24
  })(() => ({
25
25
  position: "relative",
26
26
  display: "flex",
@@ -28,38 +28,53 @@ const n = e(a, {
28
28
  flex: "1 1 auto",
29
29
  minHeight: 0,
30
30
  overflow: "hidden"
31
- })), d = e(t, {
31
+ })), c = o(i, {
32
+ name: "HCSimplePivotTable",
33
+ slot: "ValueHeadCell",
34
+ shouldForwardProp: (e) => e !== "ownerState" && e !== "selected"
35
+ })(
36
+ ({ theme: e, selected: l }) => ({
37
+ cursor: "pointer",
38
+ // The sticky header must stay opaque or scrolled rows show through it, so
39
+ // the selection tint is layered *over* MUI's `background.default` instead
40
+ // of replacing it with the translucent `action.selected`.
41
+ ...l && {
42
+ backgroundImage: `linear-gradient(${e.palette.action.selected}, ${e.palette.action.selected})`
43
+ }
44
+ })
45
+ ), u = o(t, {
32
46
  name: "HCSimplePivotTable",
33
47
  slot: "ScrollHint",
34
- shouldForwardProp: (o) => o !== "ownerState"
35
- })(({ theme: o }) => ({
48
+ shouldForwardProp: (e) => e !== "ownerState"
49
+ })(({ theme: e }) => ({
36
50
  // Pinned to the left of the footer; aggregations stay grouped on the right.
37
51
  marginRight: "auto",
38
- padding: o.spacing(0.25, 1),
39
- borderRadius: o.shape.borderRadius,
40
- border: `1px solid ${o.palette.divider}`,
41
- backgroundColor: l(o.palette.background.paper, 0.85),
42
- color: o.palette.text.secondary,
52
+ padding: e.spacing(0.25, 1),
53
+ borderRadius: e.shape.borderRadius,
54
+ border: `1px solid ${e.palette.divider}`,
55
+ backgroundColor: n(e.palette.background.paper, 0.85),
56
+ color: e.palette.text.secondary,
43
57
  pointerEvents: "none",
44
58
  userSelect: "none",
45
59
  opacity: 0.5,
46
- transition: o.transitions.create("opacity")
47
- })), s = e(t, {
60
+ transition: e.transitions.create("opacity")
61
+ })), S = o(t, {
48
62
  name: "HCSimplePivotTable",
49
63
  slot: "Footer",
50
- shouldForwardProp: (o) => o !== "ownerState"
51
- })(({ theme: o }) => ({
64
+ shouldForwardProp: (e) => e !== "ownerState"
65
+ })(({ theme: e }) => ({
52
66
  flex: "0 0 auto",
53
- padding: o.spacing(1.25, 2),
67
+ padding: e.spacing(1.25, 2),
54
68
  display: "flex",
55
69
  justifyContent: "flex-end",
56
70
  alignItems: "flex-end",
57
- gap: o.spacing(1)
71
+ gap: e.spacing(1)
58
72
  }));
59
73
  export {
60
- p as SimplePivotTableContent,
61
- s as SimplePivotTableFooter,
62
- r as SimplePivotTableHeader,
63
- n as SimplePivotTableRoot,
64
- d as SimplePivotTableScrollHint
74
+ s as SimplePivotTableContent,
75
+ S as SimplePivotTableFooter,
76
+ d as SimplePivotTableHeader,
77
+ p as SimplePivotTableRoot,
78
+ u as SimplePivotTableScrollHint,
79
+ c as SimplePivotTableValueHeadCell
65
80
  };