@hybridcore/ui 1.6.25 → 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.
- package/dist/{AccordionSummary-c6-Buzbq.js → AccordionSummary-B6-hHjCC.js} +3 -3
- package/dist/{Add-CB4mPrke.js → Add-eXYPgCCB.js} +1 -1
- package/dist/{Alert-BsT46Tgd.js → Alert-OoSOUjZM.js} +2 -2
- package/dist/{Button-BMUZn0cT.js → Button-gZFgy23t.js} +1 -1
- package/dist/{ButtonBase-DG5J0YgP.js → ButtonBase-Dgg9dzM8.js} +2 -2
- package/dist/{Delete-ofipLwkd.js → Delete-B8COyxKI.js} +1 -1
- package/dist/{IconButton-SJfF1cr9.js → IconButton-CQwROBzr.js} +1 -1
- package/dist/{MenuItem-BjnnhDbD.js → MenuItem-BAKBPyZx.js} +3 -3
- package/dist/{Modal-Djf5pMjD.js → Modal-DVdqH5dj.js} +1 -1
- package/dist/{Select-nL91eUH9.js → Select-B4zhu5G_.js} +2 -2
- package/dist/{SwitchBase-BcJAJYsB.js → SwitchBase-BqUrfIHp.js} +1 -1
- package/dist/{TextField-Db63_GNb.js → TextField-Cx5T7iJn.js} +4 -3
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/forecast-cone/index.js +1 -1
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +2 -2
- 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/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +3 -2
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/template-form/components/default-value-input/index.js +120 -0
- package/dist/components/template-form/components/default-value-input/logic.js +76 -0
- package/dist/components/template-form/components/property-list/index.js +5 -5
- package/dist/components/template-form/components/property-list/property-list-columns.js +2 -2
- package/dist/components/template-form/components/property-list/property-list-form.js +245 -240
- package/dist/components/template-form/components/property-list/property-list-logic.js +59 -42
- package/dist/components/template-form/components/recognition-property-list/index.js +5 -5
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +5 -5
- package/dist/components/template-form/index.js +39 -37
- package/dist/components/template-form/logic.js +24 -23
- package/dist/components/template-property-filters/property.js +23 -20
- package/dist/createSvgIcon-Bi-IzY8I.js +83 -0
- package/dist/{dialog-CNxZ7uox.js → dialog-DwmnOp5c.js} +2 -2
- package/dist/{index-BQ4_OA4b.js → index-Dvh8D1yM.js} +26 -25
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/main.d.ts +25 -0
- package/dist/{styled-DObpn_Bi.js → styled-C5WQOj4E.js} +1 -1
- package/dist/{useIsFocusVisible-BHPF-Pml.js → useIsFocusVisible-CVnvB5M2.js} +1 -1
- package/dist/{useSlot-gpKOd92R.js → useSlot-BOHuz6Wu.js} +1 -1
- package/dist/{useTimeout-CM6EsHyp.js → useTimeout-D5vWrF1x.js} +2 -2
- package/dist/utils/ontology.js +49 -43
- package/package.json +1 -1
- 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-
|
|
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 {
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 {
|
|
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-
|
|
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;
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
9
|
-
import { a as U, u as S } from "./useTimeout-
|
|
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,
|
|
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-
|
|
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,
|
|
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-
|
|
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-
|
|
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 "./
|
|
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,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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
|
@@ -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-
|
|
6
|
-
import "../../Button-
|
|
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,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-
|
|
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(
|
|
@@ -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-
|
|
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
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { DateTimePicker as I } from "../../../date-time-picker/index.js";
|
|
3
|
+
import { PhoneInput as B } from "../../../phone-input/index.js";
|
|
4
|
+
import { useDefaultValueInputLogic as D } from "./logic.js";
|
|
5
|
+
import { F as E, a as L, B as b, T as c } from "../../../../TextField-Cx5T7iJn.js";
|
|
6
|
+
import { I as P } from "../../../../InputLabel-jPm6Xuco.js";
|
|
7
|
+
import { S as A } from "../../../../Select-B4zhu5G_.js";
|
|
8
|
+
import { M as u } from "../../../../MenuItem-BAKBPyZx.js";
|
|
9
|
+
import { B as S } from "../../../../Button-gZFgy23t.js";
|
|
10
|
+
const o = "Default Value", C = "No default", H = (x) => {
|
|
11
|
+
const { state: d, actions: n } = D(x), {
|
|
12
|
+
editor: a,
|
|
13
|
+
value: t,
|
|
14
|
+
booleanValue: V,
|
|
15
|
+
enumOptions: p,
|
|
16
|
+
inputVariant: s,
|
|
17
|
+
labelPosition: T,
|
|
18
|
+
disabled: f,
|
|
19
|
+
helperText: v
|
|
20
|
+
} = d, r = T === "default", m = {
|
|
21
|
+
label: r ? o : void 0,
|
|
22
|
+
name: "defaultValue",
|
|
23
|
+
variant: s,
|
|
24
|
+
disabled: f,
|
|
25
|
+
fullWidth: !0,
|
|
26
|
+
sx: { mb: 2 },
|
|
27
|
+
helperText: v
|
|
28
|
+
};
|
|
29
|
+
if (a === "boolean" || a === "enum") {
|
|
30
|
+
const i = a === "enum", g = i && p.length === 0, F = (l) => l ? i ? l : l === "true" ? "True" : "False" : C;
|
|
31
|
+
return /* @__PURE__ */ h(
|
|
32
|
+
E,
|
|
33
|
+
{
|
|
34
|
+
fullWidth: !0,
|
|
35
|
+
variant: s,
|
|
36
|
+
sx: { mb: 2 },
|
|
37
|
+
disabled: f || g,
|
|
38
|
+
children: [
|
|
39
|
+
r && /* @__PURE__ */ e(P, { id: "default-value-select-label", children: o }),
|
|
40
|
+
/* @__PURE__ */ h(
|
|
41
|
+
A,
|
|
42
|
+
{
|
|
43
|
+
label: r ? o : void 0,
|
|
44
|
+
name: "defaultValue",
|
|
45
|
+
labelId: "default-value-select-label",
|
|
46
|
+
id: "default-value-select",
|
|
47
|
+
value: i ? t : V,
|
|
48
|
+
displayEmpty: !r,
|
|
49
|
+
renderValue: r ? void 0 : (l) => F(l),
|
|
50
|
+
onChange: n.handleSelectChange,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ e(u, { value: "", children: C }),
|
|
53
|
+
i ? p.map((l) => /* @__PURE__ */ e(u, { value: l, children: l }, l)) : [
|
|
54
|
+
/* @__PURE__ */ e(u, { value: "true", children: "True" }, "true"),
|
|
55
|
+
/* @__PURE__ */ e(u, { value: "false", children: "False" }, "false")
|
|
56
|
+
]
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
g && /* @__PURE__ */ e(L, { children: "Add the enum values above to pick a default." })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
return a === "date" ? /* @__PURE__ */ h(b, { sx: { mb: 2 }, children: [
|
|
66
|
+
/* @__PURE__ */ e(
|
|
67
|
+
I,
|
|
68
|
+
{
|
|
69
|
+
label: r ? o : void 0,
|
|
70
|
+
labelPosition: r ? "default" : "top",
|
|
71
|
+
name: "defaultValue",
|
|
72
|
+
value: t || void 0,
|
|
73
|
+
variant: s,
|
|
74
|
+
size: "medium",
|
|
75
|
+
onChange: n.handleValueChange
|
|
76
|
+
},
|
|
77
|
+
t ? "date-set" : "date-empty"
|
|
78
|
+
),
|
|
79
|
+
!!t && /* @__PURE__ */ e(S, { size: "small", onClick: n.handleClear, sx: { mt: 0.5 }, children: "Clear" })
|
|
80
|
+
] }) : a === "integer" || a === "decimal" ? /* @__PURE__ */ e(
|
|
81
|
+
c,
|
|
82
|
+
{
|
|
83
|
+
...m,
|
|
84
|
+
value: t,
|
|
85
|
+
onChange: a === "integer" ? n.handleIntegerChange : n.handleDecimalChange,
|
|
86
|
+
inputProps: {
|
|
87
|
+
inputMode: a === "integer" ? "numeric" : "decimal"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
) : a === "phone" ? /* @__PURE__ */ e(b, { sx: { mb: 2 }, children: /* @__PURE__ */ e(
|
|
91
|
+
B,
|
|
92
|
+
{
|
|
93
|
+
label: r ? o : void 0,
|
|
94
|
+
placeholder: "Enter phone number",
|
|
95
|
+
value: t,
|
|
96
|
+
onChange: n.handleValueChange
|
|
97
|
+
}
|
|
98
|
+
) }) : a === "list" ? /* @__PURE__ */ e(
|
|
99
|
+
c,
|
|
100
|
+
{
|
|
101
|
+
...m,
|
|
102
|
+
value: t,
|
|
103
|
+
onChange: n.handleTextChange,
|
|
104
|
+
helperText: v ?? "Add list values with the comma (,) separated string"
|
|
105
|
+
}
|
|
106
|
+
) : /* @__PURE__ */ e(
|
|
107
|
+
c,
|
|
108
|
+
{
|
|
109
|
+
...m,
|
|
110
|
+
value: t,
|
|
111
|
+
onChange: n.handleTextChange,
|
|
112
|
+
multiline: a === "multiline",
|
|
113
|
+
minRows: a === "multiline" ? 2 : void 0,
|
|
114
|
+
placeholder: d.coordinateFormat ? `e.g. ${d.coordinateFormat}` : void 0
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
H as DefaultValueInput
|
|
120
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import V from "react";
|
|
2
|
+
import { toBooleanText as v } from "../../../../utils/ontology.js";
|
|
3
|
+
const f = {
|
|
4
|
+
boolean: "boolean",
|
|
5
|
+
enum: "enum",
|
|
6
|
+
date: "date",
|
|
7
|
+
integer: "integer",
|
|
8
|
+
long: "integer",
|
|
9
|
+
byte: "integer",
|
|
10
|
+
double: "decimal",
|
|
11
|
+
decimal: "decimal",
|
|
12
|
+
list: "list",
|
|
13
|
+
"phone-number": "phone",
|
|
14
|
+
text: "multiline"
|
|
15
|
+
}, D = (e) => {
|
|
16
|
+
const n = e.trimStart().startsWith("-"), t = e.replace(/[^\d]/g, "");
|
|
17
|
+
return n ? `-${t}` : t;
|
|
18
|
+
}, E = (e) => {
|
|
19
|
+
const n = e.trimStart().startsWith("-"), [t, ...a] = e.replace(/,/g, ".").replace(/[^\d.]/g, "").split("."), r = a.length > 0 ? `${t}.${a.join("")}` : t;
|
|
20
|
+
return n ? `-${r}` : r;
|
|
21
|
+
}, _ = (e, n) => {
|
|
22
|
+
var r;
|
|
23
|
+
const a = ((e == null ? void 0 : e.enumValues) ?? ((r = e == null ? void 0 : e.innerType) == null ? void 0 : r.enumValues) ?? []).map((i) => i.trim()).filter((i) => i.length > 0);
|
|
24
|
+
return n && !a.includes(n) ? [...a, n] : a;
|
|
25
|
+
}, S = (e) => {
|
|
26
|
+
var u;
|
|
27
|
+
const {
|
|
28
|
+
property: n,
|
|
29
|
+
value: t,
|
|
30
|
+
inputVariant: a = "outlined",
|
|
31
|
+
labelPosition: r = "default",
|
|
32
|
+
disabled: i = !1,
|
|
33
|
+
helperText: g,
|
|
34
|
+
onChange: l
|
|
35
|
+
} = e, s = f[n.type] ?? "text", d = _(n.dataTypeInfo, t), c = s === "boolean" ? v(t) : "";
|
|
36
|
+
V.useEffect(() => {
|
|
37
|
+
s !== "boolean" || t === c || l(c);
|
|
38
|
+
}, [s, t, c, l]);
|
|
39
|
+
const m = (o) => {
|
|
40
|
+
l(o.target.value);
|
|
41
|
+
}, h = (o) => {
|
|
42
|
+
l(D(o.target.value));
|
|
43
|
+
}, p = (o) => {
|
|
44
|
+
l(E(o.target.value));
|
|
45
|
+
}, b = (o) => {
|
|
46
|
+
l(o.target.value);
|
|
47
|
+
}, C = (o) => {
|
|
48
|
+
l(o);
|
|
49
|
+
}, x = () => {
|
|
50
|
+
l("");
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
state: {
|
|
54
|
+
editor: s,
|
|
55
|
+
value: t,
|
|
56
|
+
booleanValue: c,
|
|
57
|
+
enumOptions: d,
|
|
58
|
+
inputVariant: a,
|
|
59
|
+
labelPosition: r,
|
|
60
|
+
disabled: i,
|
|
61
|
+
helperText: g,
|
|
62
|
+
coordinateFormat: (u = n.dataTypeInfo) == null ? void 0 : u.coordinateFormat
|
|
63
|
+
},
|
|
64
|
+
actions: {
|
|
65
|
+
handleTextChange: m,
|
|
66
|
+
handleIntegerChange: h,
|
|
67
|
+
handleDecimalChange: p,
|
|
68
|
+
handleSelectChange: b,
|
|
69
|
+
handleValueChange: C,
|
|
70
|
+
handleClear: x
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
S as useDefaultValueInputLogic
|
|
76
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { DataGrid as d } from "@mui/x-data-grid";
|
|
3
|
-
import { A as n, d as m } from "../../../../Add-
|
|
3
|
+
import { A as n, d as m } from "../../../../Add-eXYPgCCB.js";
|
|
4
4
|
import s from "./property-list-columns.js";
|
|
5
5
|
import p from "./property-list-form.js";
|
|
6
6
|
import c from "./property-list-logic.js";
|
|
7
|
-
import { B as u } from "../../../../TextField-
|
|
7
|
+
import { B as u } from "../../../../TextField-Cx5T7iJn.js";
|
|
8
8
|
import { T as y } from "../../../../Typography-B_LKrxyI.js";
|
|
9
|
-
import { A as h } from "../../../../Alert-
|
|
10
|
-
import { B as f } from "../../../../Button-
|
|
11
|
-
import { a as g, b, c as I } from "../../../../dialog-
|
|
9
|
+
import { A as h } from "../../../../Alert-OoSOUjZM.js";
|
|
10
|
+
import { B as f } from "../../../../Button-gZFgy23t.js";
|
|
11
|
+
import { a as g, b, c as I } from "../../../../dialog-DwmnOp5c.js";
|
|
12
12
|
const v = (e) => {
|
|
13
13
|
var l;
|
|
14
14
|
const { state: r, action: o } = c(e);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { d as w, a as b } from "../../../../Delete-
|
|
2
|
+
import { d as w, a as b } from "../../../../Delete-B8COyxKI.js";
|
|
3
3
|
import { T as d } from "../../../../Typography-B_LKrxyI.js";
|
|
4
|
-
import { I as s } from "../../../../IconButton-
|
|
4
|
+
import { I as s } from "../../../../IconButton-CQwROBzr.js";
|
|
5
5
|
const I = (n) => [
|
|
6
6
|
{ field: "name", headerName: "Name", flex: 1 },
|
|
7
7
|
{ field: "propertyId", headerName: "Property ID", flex: 1 },
|