@hybridcore/ui 1.6.17 → 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.
- package/dist/{AccordionSummary-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
- package/dist/Add-CB4mPrke.js +77 -0
- package/dist/Alert-BsT46Tgd.js +334 -0
- package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
- package/dist/ButtonBase-DG5J0YgP.js +823 -0
- package/dist/Delete-ofipLwkd.js +23 -0
- package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
- package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
- package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
- package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
- package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
- package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
- package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
- package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
- package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
- package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
- package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/forecast-cone/index.js +108 -48
- package/dist/components/charts/forecast-cone/logic.js +271 -191
- package/dist/components/charts/forecast-cone/styled.js +26 -5
- package/dist/components/collapsible-card/index.js +2 -2
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/range-selector/components/enum-range/index.js +66 -0
- package/dist/components/range-selector/index.js +40 -30
- package/dist/components/range-selector/styled.js +11 -11
- package/dist/components/sortable-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/index.js +30 -28
- package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
- package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
- package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/tree-select/index.js +1 -1
- package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
- package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
- package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
- package/dist/main.d.ts +44 -1
- package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
- package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
- package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
- package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
- package/dist/useTimeout-CM6EsHyp.js +60 -0
- package/package.json +1 -1
- package/dist/Add-Bk8R160M.js +0 -403
- package/dist/ButtonBase-DObmf4Q_.js +0 -886
- package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
- 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,
|
|
4
|
-
import
|
|
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
|
|
7
|
-
import { B as p } from "../../../../TextField-
|
|
8
|
-
import { T as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
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(
|
|
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:
|
|
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(
|
|
27
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
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
|
-
|
|
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 {
|
|
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(
|
|
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(
|
|
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 "../../../../
|
|
4
|
-
import { r as g } from "../../../../createSvgIcon-
|
|
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-
|
|
7
|
-
import { I as u } from "../../../../InputLabel-
|
|
8
|
-
import { S as d } from "../../../../Select-
|
|
9
|
-
import { M as m } from "../../../../MenuItem-
|
|
10
|
-
import { B as y } from "../../../../Button-
|
|
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-
|
|
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 "./
|
|
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 "./
|
|
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-
|
|
3
|
-
import { C as _, b as g } from "./
|
|
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
|
|
6
|
-
import { a as S } from "./
|
|
7
|
-
import { s as $, a as C,
|
|
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 "./
|
|
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:
|
|
63
|
-
ownerWindow:
|
|
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 "./
|
|
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 "./
|
|
10
|
-
import { P as _, u as no } from "./Paper-
|
|
11
|
-
import { B as ro, M as so, F as lo } from "./Modal-
|
|
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-
|
|
14
|
-
import { B as E } from "./Button-
|
|
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
|
@@ -727,6 +727,13 @@ export declare interface EditableTextProps extends TypographyProps {
|
|
|
727
727
|
onChange?(text: string | null): void;
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
+
export declare interface EnumRangeProps {
|
|
731
|
+
value: SIMULATION.RandomInfoString;
|
|
732
|
+
options: string[];
|
|
733
|
+
variant?: RangeSelectorVariant;
|
|
734
|
+
onChange(value: SIMULATION.RandomInfoString): void;
|
|
735
|
+
}
|
|
736
|
+
|
|
730
737
|
export declare const FlexCol: StyledComponent<BoxOwnProps<Theme> & Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
731
738
|
ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
|
|
732
739
|
}, keyof BoxOwnProps<Theme>> & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
@@ -772,6 +779,13 @@ export declare interface ForecastConeChartProps {
|
|
|
772
779
|
centreField?: string;
|
|
773
780
|
/** Bands ordered outer → inner; drawn back-to-front so inner paints on top. */
|
|
774
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[];
|
|
775
789
|
/** Vertical "now" marker; defaults to the last history timestamp. */
|
|
776
790
|
nowValue?: number | string;
|
|
777
791
|
/** Band/centre hue (theme token or CSS color). Defaults to a theme token. */
|
|
@@ -798,6 +812,21 @@ export declare interface ForecastConeChartProps {
|
|
|
798
812
|
sx?: SxProps<Theme>;
|
|
799
813
|
}
|
|
800
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
|
+
|
|
801
830
|
/**
|
|
802
831
|
* Format a raw value for display, shaped by `format.valueType`:
|
|
803
832
|
* - number (default): locale grouping + configured decimals, wrapped in prefix/suffix;
|
|
@@ -1662,6 +1691,7 @@ export declare type RangeSelectorAcceptedType =
|
|
|
1662
1691
|
| "long"
|
|
1663
1692
|
| "string"
|
|
1664
1693
|
| "text"
|
|
1694
|
+
| "enum"
|
|
1665
1695
|
| "date"
|
|
1666
1696
|
| "geometry"
|
|
1667
1697
|
| "composite-list";
|
|
@@ -1686,6 +1716,14 @@ export declare type RangeSelectorProps =
|
|
|
1686
1716
|
sx?: SxProps<Theme>;
|
|
1687
1717
|
onChange(value: SIMULATION.RandomInfoString): void;
|
|
1688
1718
|
}
|
|
1719
|
+
| {
|
|
1720
|
+
type: "enum";
|
|
1721
|
+
value?: SIMULATION.RandomInfoString;
|
|
1722
|
+
enumValues: string[];
|
|
1723
|
+
mapboxAccessToken: string;
|
|
1724
|
+
sx?: SxProps<Theme>;
|
|
1725
|
+
onChange(value: SIMULATION.RandomInfoString): void;
|
|
1726
|
+
}
|
|
1689
1727
|
| {
|
|
1690
1728
|
type: "date";
|
|
1691
1729
|
value?: SIMULATION.RandomInfoDate;
|
|
@@ -2622,7 +2660,7 @@ declare module "@mui/material/styles" {
|
|
|
2622
2660
|
|
|
2623
2661
|
declare module "@mui/material/styles" {
|
|
2624
2662
|
interface ComponentNameToClassKey {
|
|
2625
|
-
HCForecastCone: "root";
|
|
2663
|
+
HCForecastCone: "root" | "chart" | "pager";
|
|
2626
2664
|
}
|
|
2627
2665
|
|
|
2628
2666
|
interface ComponentsPropsList {
|
|
@@ -4646,6 +4684,7 @@ declare namespace ONTOLOGY {
|
|
|
4646
4684
|
name: string;
|
|
4647
4685
|
type: string;
|
|
4648
4686
|
defaultValue: string | null;
|
|
4687
|
+
description?: string | null;
|
|
4649
4688
|
dataTypeInfo?: DataTypeInfo;
|
|
4650
4689
|
privacyPreservationMethod?: string | null;
|
|
4651
4690
|
required: boolean;
|
|
@@ -4655,6 +4694,10 @@ declare namespace ONTOLOGY {
|
|
|
4655
4694
|
unique: boolean;
|
|
4656
4695
|
distinctive: boolean;
|
|
4657
4696
|
calculationTypes?: CalculationType[];
|
|
4697
|
+
inheritedFrom?: {
|
|
4698
|
+
templateName: string;
|
|
4699
|
+
templateId: number;
|
|
4700
|
+
};
|
|
4658
4701
|
}
|
|
4659
4702
|
|
|
4660
4703
|
interface DataTypeInfo {
|