@hybridcore/ui 1.6.18 → 1.6.19

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-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
  2. package/dist/Add-CB4mPrke.js +77 -0
  3. package/dist/Alert-BsT46Tgd.js +334 -0
  4. package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
  5. package/dist/ButtonBase-DG5J0YgP.js +823 -0
  6. package/dist/Delete-ofipLwkd.js +23 -0
  7. package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
  8. package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
  9. package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
  10. package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
  11. package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
  12. package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
  13. package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
  14. package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
  15. package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
  16. package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
  17. package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
  18. package/dist/components/button/styled.js +1 -1
  19. package/dist/components/charts/forecast-cone/index.js +108 -48
  20. package/dist/components/charts/forecast-cone/logic.js +271 -191
  21. package/dist/components/charts/forecast-cone/styled.js +26 -5
  22. package/dist/components/collapsible-card/index.js +2 -2
  23. package/dist/components/collapsible-card/styled.js +1 -1
  24. package/dist/components/color-picker/index.js +5 -5
  25. package/dist/components/color-picker/styled.js +1 -1
  26. package/dist/components/confirm/dialog.js +2 -2
  27. package/dist/components/confirm/index.js +1 -1
  28. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  29. package/dist/components/duration-select/index.js +1 -1
  30. package/dist/components/duration-select/styled.js +1 -1
  31. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  32. package/dist/components/sortable-list/index.js +3 -3
  33. package/dist/components/template-form/components/property-list/index.js +30 -28
  34. package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
  35. package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
  36. package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
  37. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
  38. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  39. package/dist/components/tree-select/index.js +1 -1
  40. package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
  41. package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
  42. package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
  43. package/dist/main.d.ts +28 -1
  44. package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
  45. package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
  46. package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
  47. package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
  48. package/dist/useTimeout-CM6EsHyp.js +60 -0
  49. package/package.json +1 -1
  50. package/dist/Add-Bk8R160M.js +0 -403
  51. package/dist/ButtonBase-DObmf4Q_.js +0 -886
  52. package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
  53. package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
@@ -1,30 +1,31 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import { DataGrid as a } from "@mui/x-data-grid";
3
- import { A as n, a as d, d as s } from "../../../../Add-Bk8R160M.js";
4
- import c from "./recognition-property-list-columns.js";
3
+ import { A as n, d } from "../../../../Add-CB4mPrke.js";
4
+ import s from "./recognition-property-list-columns.js";
5
5
  import m from "./recognition-property-list-form.js";
6
- import g from "./recognition-property-list-logic.js";
7
- import { B as p } from "../../../../TextField-Ca9ykixI.js";
8
- import { T as h } from "../../../../Typography-D3X-Y5fh.js";
9
- import { B as u } from "../../../../Button-Cem3nbwc.js";
10
- import { a as f, b as y, c as b } from "../../../../dialog-BtJhjyF5.js";
11
- const F = (i) => {
12
- const { state: l, action: t } = g(i);
6
+ import c from "./recognition-property-list-logic.js";
7
+ import { B as p } from "../../../../TextField-Db63_GNb.js";
8
+ import { T as g } from "../../../../Typography-B_LKrxyI.js";
9
+ import { A as h } from "../../../../Alert-BsT46Tgd.js";
10
+ import { B as u } from "../../../../Button-BMUZn0cT.js";
11
+ import { a as f, b as y, c as b } from "../../../../dialog-CNxZ7uox.js";
12
+ const L = (i) => {
13
+ const { state: l, action: t } = c(i);
13
14
  return /* @__PURE__ */ r(p, { children: [
14
- /* @__PURE__ */ e(h, { variant: "h6", marginY: 2, children: "Recognition Property List" }),
15
+ /* @__PURE__ */ e(g, { variant: "h6", marginY: 2, children: "Recognition Property List" }),
15
16
  i.list.length > 0 ? /* @__PURE__ */ e(
16
17
  a,
17
18
  {
18
19
  rows: i.list,
19
- columns: c({
20
+ columns: s({
20
21
  onEdit: t.handleOnEditClick,
21
22
  onDelete: t.handleOnDeleteClick
22
23
  }),
23
24
  getRowId: (o) => `${o.owner}-${o.termValue}-${o.termMatch}-${o.score}-${o.type}`,
24
25
  autoHeight: !0
25
26
  }
26
- ) : /* @__PURE__ */ r(n, { severity: "info", children: [
27
- /* @__PURE__ */ e(d, { children: "No Recognition Property Added!" }),
27
+ ) : /* @__PURE__ */ r(h, { severity: "info", children: [
28
+ /* @__PURE__ */ e(n, { children: "No Recognition Property Added!" }),
28
29
  "Add least one recognition property before save the template!"
29
30
  ] }),
30
31
  /* @__PURE__ */ e(
@@ -33,7 +34,7 @@ const F = (i) => {
33
34
  color: "primary",
34
35
  onClick: t.handleOnAddClick,
35
36
  sx: { mt: 2 },
36
- startIcon: /* @__PURE__ */ e(s, {}),
37
+ startIcon: /* @__PURE__ */ e(d, {}),
37
38
  children: "Add Recognition Property"
38
39
  }
39
40
  ),
@@ -64,5 +65,5 @@ const F = (i) => {
64
65
  ] });
65
66
  };
66
67
  export {
67
- F as RecognitionPropertyList
68
+ L as RecognitionPropertyList
68
69
  };
@@ -1,5 +1,6 @@
1
1
  import { jsxs as i, Fragment as t, jsx as e } from "react/jsx-runtime";
2
- import { I as d, d as l, a as o } from "../../../../Delete-CVJ6FeDn.js";
2
+ import { d as o, a as l } from "../../../../Delete-ofipLwkd.js";
3
+ import { I as d } from "../../../../IconButton-SJfF1cr9.js";
3
4
  const h = (r) => [
4
5
  { field: "ownerType", headerName: "Owner Type", width: 120 },
5
6
  { field: "owner", headerName: "Owner", width: 120 },
@@ -30,7 +31,7 @@ const h = (r) => [
30
31
  {
31
32
  size: "medium",
32
33
  onClick: () => r.onEdit(a.row),
33
- children: /* @__PURE__ */ e(l, { color: "secondary" })
34
+ children: /* @__PURE__ */ e(o, { color: "secondary" })
34
35
  }
35
36
  ),
36
37
  /* @__PURE__ */ e(
@@ -38,7 +39,7 @@ const h = (r) => [
38
39
  {
39
40
  size: "medium",
40
41
  onClick: () => r.onDelete(a.row),
41
- children: /* @__PURE__ */ e(o, {})
42
+ children: /* @__PURE__ */ e(l, {})
42
43
  }
43
44
  )
44
45
  ] })
@@ -1,13 +1,13 @@
1
1
  import V, { jsxs as i, Fragment as S, jsx as t } from "react/jsx-runtime";
2
2
  import o from "react";
3
- import { i as C } from "../../../../generateUtilityClasses-Cc-owZ4J.js";
4
- import { r as g } from "../../../../createSvgIcon-BghzB2Y9.js";
3
+ import { i as C } from "../../../../styled-Ckq8ALHh.js";
4
+ import { r as g } from "../../../../createSvgIcon-jKAqRXE2.js";
5
5
  import { RECOGNITION_PROPERTY_OWNER_TYPE as h, RECOGNITION_PROPERTY_TYPE as T, RECOGNITION_PROPERTY_TERM_MATCH as v } from "../../../../constants/index.js";
6
- import { F as c, T as b, B as M } from "../../../../TextField-Ca9ykixI.js";
7
- import { I as u } from "../../../../InputLabel-CjD30ZHz.js";
8
- import { S as d } from "../../../../Select-Bfhvigsx.js";
9
- import { M as m } from "../../../../MenuItem-BKvRGLvM.js";
10
- import { B as y } from "../../../../Button-Cem3nbwc.js";
6
+ import { F as c, T as b, B as M } from "../../../../TextField-Db63_GNb.js";
7
+ import { I as u } from "../../../../InputLabel-jPm6Xuco.js";
8
+ import { S as d } from "../../../../Select-nL91eUH9.js";
9
+ import { M as m } from "../../../../MenuItem-BjnnhDbD.js";
10
+ import { B as y } from "../../../../Button-BMUZn0cT.js";
11
11
  var p = {}, q = C;
12
12
  Object.defineProperty(p, "__esModule", {
13
13
  value: !0
@@ -3,7 +3,7 @@ import c from "lodash";
3
3
  import { TreeViewFilter as T } from "../treeview-filter/index.js";
4
4
  import { useTreeSelectLogic as f } from "./logic.js";
5
5
  import { TreeSelectRoot as g, TreeSelectLabel as S, TreeSelectFormControl as x, TreeSelectInput as C, TreeSelectMenuItem as v, TreeSelectDialog as I, TreeSelectDialogContent as W, TreeSelectDialogActions as D, TreeSelectConfirmButton as L } from "./styled.js";
6
- import { I as O } from "../../InputLabel-CjD30ZHz.js";
6
+ import { I as O } from "../../InputLabel-jPm6Xuco.js";
7
7
  const K = (e) => {
8
8
  const { state: h, actions: t } = f(e), { ownerState: s, open: u, expanded: m, selectedItems: i, idKey: o, variant: r, labelPosition: a } = h;
9
9
  return /* @__PURE__ */ d(g, { ownerState: s, sx: e.sx, children: [
@@ -1,9 +1,9 @@
1
- import { _ as b, a as S } from "./extends-C3382pL0.js";
1
+ import { _ as b, a as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
2
  import * as g from "react";
3
3
  import { jsxs as I, jsx as _ } from "react/jsx-runtime";
4
4
  import { P as o } from "./index-CblbdqjE.js";
5
5
  import { c as w } from "./clsx-OuTLNxxd.js";
6
- import { a as C, g as N, s as T, b as v, u as R, c as O } from "./generateUtilityClasses-Cc-owZ4J.js";
6
+ import { a as C, g as N, s as T, b as v, u as R, c as O } from "./styled-Ckq8ALHh.js";
7
7
  function B(e) {
8
8
  return C("MuiSvgIcon", e);
9
9
  }
@@ -1,15 +1,15 @@
1
1
  import { a as h } from "./_commonjsHelpers-BkfeUUK-.js";
2
- import { c as y } from "./createSvgIcon-D7U1nd99.js";
3
- import { C as _, b as g } from "./generateUtilityClasses-Cc-owZ4J.js";
2
+ import { c as y } from "./createSvgIcon-Bx0mTP6n.js";
3
+ import { C as _, b as g } from "./styled-Ckq8ALHh.js";
4
4
  import { d as E } from "./debounce-46wSf_lW.js";
5
- import { o as b, a as N } from "./ownerWindow-wg6foiOE.js";
6
- import { a as S } from "./extends-C3382pL0.js";
7
- import { s as $, a as C, b as I, u as T } from "./TransitionGroupContext-Ja2CgIob.js";
5
+ import { o as N, a as b } from "./ownerWindow-wg6foiOE.js";
6
+ import { a as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
7
+ import { s as $, a as C, c as I, u as T } from "./useTimeout-CM6EsHyp.js";
8
8
  import { c as O } from "./createChainedFunction-C0nujS3O.js";
9
9
  import * as P from "react";
10
10
  import { u as w } from "./useId-BW-oWmul.js";
11
11
  import { u as F } from "./useControlled-BYdyS7Pn.js";
12
- import { u as V } from "./ButtonBase-DObmf4Q_.js";
12
+ import { u as V } from "./useIsFocusVisible-BHPF-Pml.js";
13
13
  var c = {};
14
14
  function j(e, r) {
15
15
  return process.env.NODE_ENV === "production" ? () => null : (o, t, u, n, a) => {
@@ -59,8 +59,8 @@ const k = {
59
59
  debounce: E,
60
60
  deprecatedPropType: j,
61
61
  isMuiElement: q,
62
- ownerDocument: b,
63
- ownerWindow: N,
62
+ ownerDocument: N,
63
+ ownerWindow: b,
64
64
  requirePropFactory: D,
65
65
  setRef: $,
66
66
  unstable_ClassNameGenerator: k,
@@ -2,16 +2,16 @@ import { jsx as l, jsxs as B } from "react/jsx-runtime";
2
2
  import { confirmable as to } from "react-confirm";
3
3
  import { IconButton as ao } from "@mui/material";
4
4
  import { Close as io } from "@mui/icons-material";
5
- import { a as r, _ as h } from "./extends-C3382pL0.js";
5
+ import { a as r, _ as h } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
6
6
  import * as d from "react";
7
7
  import { P as o } from "./index-CblbdqjE.js";
8
8
  import { c as g } from "./clsx-OuTLNxxd.js";
9
- import { g as y, a as C, s as m, b, u as D, c as v } from "./generateUtilityClasses-Cc-owZ4J.js";
10
- import { P as _, u as no } from "./Paper-B1HV8GyO.js";
11
- import { B as ro, M as so, F as lo } from "./Modal-BVYydOr5.js";
9
+ import { g as y, a as C, s as m, b, u as D, c as v } from "./styled-Ckq8ALHh.js";
10
+ import { P as _, u as no } from "./Paper-BFDcMa0t.js";
11
+ import { B as ro, M as so, F as lo } from "./Modal-Djf5pMjD.js";
12
12
  import { u as co } from "./useId-BW-oWmul.js";
13
- import { T as po } from "./Typography-D3X-Y5fh.js";
14
- import { B as E } from "./Button-Cem3nbwc.js";
13
+ import { T as po } from "./Typography-B_LKrxyI.js";
14
+ import { B as E } from "./Button-BMUZn0cT.js";
15
15
  function uo(e) {
16
16
  return C("MuiDialog", e);
17
17
  }
package/dist/main.d.ts CHANGED
@@ -779,6 +779,13 @@ export declare interface ForecastConeChartProps {
779
779
  centreField?: string;
780
780
  /** Bands ordered outer → inner; drawn back-to-front so inner paints on top. */
781
781
  bands?: ForecastBand[];
782
+ /**
783
+ * Previous prediction cones, one per past run. When provided, `data` is
784
+ * treated as history-only (`dateField` + `historyField`) and each snapshot's
785
+ * cone is drawn from its own `rows`; a scrubber selects which one is shown.
786
+ * Omit for the single-cone behaviour (cone extracted from `data`).
787
+ */
788
+ forecasts?: ForecastSnapshot[];
782
789
  /** Vertical "now" marker; defaults to the last history timestamp. */
783
790
  nowValue?: number | string;
784
791
  /** Band/centre hue (theme token or CSS color). Defaults to a theme token. */
@@ -805,6 +812,21 @@ export declare interface ForecastConeChartProps {
805
812
  sx?: SxProps<Theme>;
806
813
  }
807
814
 
815
+ /**
816
+ * One forecast run, pivoted at its origin (the date it was generated). Supplying
817
+ * more than one lets the chart scrub through previous prediction cones — the
818
+ * slider selects which snapshot's cone is drawn over the shared history line.
819
+ */
820
+ declare interface ForecastSnapshot {
821
+ /** Pivot / run date (epoch ms or ISO) where this cone's apex sits. */
822
+ origin: number | string;
823
+ /** Slider caption; defaults to the formatted `origin`. */
824
+ label?: string;
825
+ /** Horizon rows: `dateField` + each band's lower/upper + `centreField`. */
826
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
827
+ rows: any[];
828
+ }
829
+
808
830
  /**
809
831
  * Format a raw value for display, shaped by `format.valueType`:
810
832
  * - number (default): locale grouping + configured decimals, wrapped in prefix/suffix;
@@ -2638,7 +2660,7 @@ declare module "@mui/material/styles" {
2638
2660
 
2639
2661
  declare module "@mui/material/styles" {
2640
2662
  interface ComponentNameToClassKey {
2641
- HCForecastCone: "root";
2663
+ HCForecastCone: "root" | "chart" | "pager";
2642
2664
  }
2643
2665
 
2644
2666
  interface ComponentsPropsList {
@@ -4662,6 +4684,7 @@ declare namespace ONTOLOGY {
4662
4684
  name: string;
4663
4685
  type: string;
4664
4686
  defaultValue: string | null;
4687
+ description?: string | null;
4665
4688
  dataTypeInfo?: DataTypeInfo;
4666
4689
  privacyPreservationMethod?: string | null;
4667
4690
  required: boolean;
@@ -4671,6 +4694,10 @@ declare namespace ONTOLOGY {
4671
4694
  unique: boolean;
4672
4695
  distinctive: boolean;
4673
4696
  calculationTypes?: CalculationType[];
4697
+ inheritedFrom?: {
4698
+ templateName: string;
4699
+ templateId: number;
4700
+ };
4674
4701
  }
4675
4702
 
4676
4703
  interface DataTypeInfo {