@hybridcore/ui 1.6.1 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/Button-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/logic.js +1 -1
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -86
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -9
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/styled.js +1106 -1034
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- 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 +24 -22
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +1 -1
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1054 -330
- package/dist/main.js +163 -130
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
|
@@ -1,14 +1,760 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "../../../../
|
|
6
|
-
import "../../../../
|
|
7
|
-
import "../../../../
|
|
8
|
-
import "
|
|
9
|
-
import "../../../../
|
|
10
|
-
import "../../../../
|
|
11
|
-
import "../../../../
|
|
1
|
+
import de, { jsx as t, jsxs as f, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
+
import * as z from "react";
|
|
3
|
+
import V from "react";
|
|
4
|
+
import me from "lodash";
|
|
5
|
+
import { g as te, a as ae, s as G, r as ue, b as _, f as fe, u as Q, c as le, i as be } from "../../../../generateUtilityClasses-C3ivN9Ie.js";
|
|
6
|
+
import { r as he } from "../../../../createSvgIcon-DuDuASu1.js";
|
|
7
|
+
import { DATA_TYPES as Y, COORDINATE_FORMAT as ye, PRIVACY_PRESERVATION_METHOD as ee } from "../../../../constants/index.js";
|
|
8
|
+
import { LabeledField as I } from "../../helpers.js";
|
|
9
|
+
import { T as B, F as A } from "../../../../TextField-e2oKaUN1.js";
|
|
10
|
+
import { I as W } from "../../../../InputLabel-Dd8RrneV.js";
|
|
11
|
+
import { S as H } from "../../../../Select-DHUl_uG3.js";
|
|
12
|
+
import { M as U } from "../../../../MenuItem-DwqJqzuM.js";
|
|
13
|
+
import { F as ve } from "../../../../FormGroup-CpBsIyYR.js";
|
|
14
|
+
import { a as v, _ as ne } from "../../../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
15
|
+
import { P as e } from "../../../../index-C__OZmYy.js";
|
|
16
|
+
import { c as J } from "../../../../clsx-OuTLNxxd.js";
|
|
17
|
+
import { f as Te } from "../../../../formControlState-vgaj2ksH.js";
|
|
18
|
+
import { u as Ce } from "../../../../useFormControl-CatNKXAi.js";
|
|
19
|
+
import { T as oe } from "../../../../Typography-DgsSLCFC.js";
|
|
20
|
+
import { createStack as xe } from "@mui/system";
|
|
21
|
+
import { r as ie } from "../../../../TransitionGroupContext-BDAp2T0O.js";
|
|
22
|
+
import { S as Ie } from "../../../../SwitchBase-DTndTqI8.js";
|
|
23
|
+
import { c as X } from "../../../../createSvgIcon-Ch_cT8az.js";
|
|
24
|
+
import { B as ge } from "../../../../Box-DqUMmZjL.js";
|
|
25
|
+
import { B as re } from "../../../../Button-C5yquWAB.js";
|
|
26
|
+
const ke = X(/* @__PURE__ */ t("path", {
|
|
27
|
+
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
28
|
+
}), "CheckBoxOutlineBlank"), Oe = X(/* @__PURE__ */ t("path", {
|
|
29
|
+
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
30
|
+
}), "CheckBox"), Pe = X(/* @__PURE__ */ t("path", {
|
|
31
|
+
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
32
|
+
}), "IndeterminateCheckBox");
|
|
33
|
+
function Re(r) {
|
|
34
|
+
return ae("MuiCheckbox", r);
|
|
35
|
+
}
|
|
36
|
+
const K = te("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Fe = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], Me = (r) => {
|
|
37
|
+
const {
|
|
38
|
+
classes: o,
|
|
39
|
+
indeterminate: i,
|
|
40
|
+
color: p,
|
|
41
|
+
size: d
|
|
42
|
+
} = r, s = {
|
|
43
|
+
root: ["root", i && "indeterminate", `color${_(p)}`, `size${_(d)}`]
|
|
44
|
+
}, a = le(s, Re, o);
|
|
45
|
+
return v({}, o, a);
|
|
46
|
+
}, Se = G(Ie, {
|
|
47
|
+
shouldForwardProp: (r) => ue(r) || r === "classes",
|
|
48
|
+
name: "MuiCheckbox",
|
|
49
|
+
slot: "Root",
|
|
50
|
+
overridesResolver: (r, o) => {
|
|
51
|
+
const {
|
|
52
|
+
ownerState: i
|
|
53
|
+
} = r;
|
|
54
|
+
return [o.root, i.indeterminate && o.indeterminate, o[`size${_(i.size)}`], i.color !== "default" && o[`color${_(i.color)}`]];
|
|
55
|
+
}
|
|
56
|
+
})(({
|
|
57
|
+
theme: r,
|
|
58
|
+
ownerState: o
|
|
59
|
+
}) => v({
|
|
60
|
+
color: (r.vars || r).palette.text.secondary
|
|
61
|
+
}, !o.disableRipple && {
|
|
62
|
+
"&:hover": {
|
|
63
|
+
backgroundColor: r.vars ? `rgba(${o.color === "default" ? r.vars.palette.action.activeChannel : r.vars.palette[o.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})` : fe(o.color === "default" ? r.palette.action.active : r.palette[o.color].main, r.palette.action.hoverOpacity),
|
|
64
|
+
// Reset on touch devices, it doesn't add specificity
|
|
65
|
+
"@media (hover: none)": {
|
|
66
|
+
backgroundColor: "transparent"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, o.color !== "default" && {
|
|
70
|
+
[`&.${K.checked}, &.${K.indeterminate}`]: {
|
|
71
|
+
color: (r.vars || r).palette[o.color].main
|
|
72
|
+
},
|
|
73
|
+
[`&.${K.disabled}`]: {
|
|
74
|
+
color: (r.vars || r).palette.action.disabled
|
|
75
|
+
}
|
|
76
|
+
})), qe = /* @__PURE__ */ t(Oe, {}), _e = /* @__PURE__ */ t(ke, {}), $e = /* @__PURE__ */ t(Pe, {}), P = /* @__PURE__ */ z.forwardRef(function(o, i) {
|
|
77
|
+
var p, d;
|
|
78
|
+
const s = Q({
|
|
79
|
+
props: o,
|
|
80
|
+
name: "MuiCheckbox"
|
|
81
|
+
}), {
|
|
82
|
+
checkedIcon: a = qe,
|
|
83
|
+
color: g = "primary",
|
|
84
|
+
icon: m = _e,
|
|
85
|
+
indeterminate: u = !1,
|
|
86
|
+
indeterminateIcon: n = $e,
|
|
87
|
+
inputProps: $,
|
|
88
|
+
size: T = "medium",
|
|
89
|
+
className: k
|
|
90
|
+
} = s, F = ne(s, Fe), O = u ? n : m, b = u ? n : a, C = v({}, s, {
|
|
91
|
+
color: g,
|
|
92
|
+
indeterminate: u,
|
|
93
|
+
size: T
|
|
94
|
+
}), h = Me(C);
|
|
95
|
+
return /* @__PURE__ */ t(Se, v({
|
|
96
|
+
type: "checkbox",
|
|
97
|
+
inputProps: v({
|
|
98
|
+
"data-indeterminate": u
|
|
99
|
+
}, $),
|
|
100
|
+
icon: /* @__PURE__ */ z.cloneElement(O, {
|
|
101
|
+
fontSize: (p = O.props.fontSize) != null ? p : T
|
|
102
|
+
}),
|
|
103
|
+
checkedIcon: /* @__PURE__ */ z.cloneElement(b, {
|
|
104
|
+
fontSize: (d = b.props.fontSize) != null ? d : T
|
|
105
|
+
}),
|
|
106
|
+
ownerState: C,
|
|
107
|
+
ref: i,
|
|
108
|
+
className: J(h.root, k)
|
|
109
|
+
}, F, {
|
|
110
|
+
classes: h
|
|
111
|
+
}));
|
|
112
|
+
});
|
|
113
|
+
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
114
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
115
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
116
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
117
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
118
|
+
/**
|
|
119
|
+
* If `true`, the component is checked.
|
|
120
|
+
*/
|
|
121
|
+
checked: e.bool,
|
|
122
|
+
/**
|
|
123
|
+
* The icon to display when the component is checked.
|
|
124
|
+
* @default <CheckBoxIcon />
|
|
125
|
+
*/
|
|
126
|
+
checkedIcon: e.node,
|
|
127
|
+
/**
|
|
128
|
+
* Override or extend the styles applied to the component.
|
|
129
|
+
*/
|
|
130
|
+
classes: e.object,
|
|
131
|
+
/**
|
|
132
|
+
* @ignore
|
|
133
|
+
*/
|
|
134
|
+
className: e.string,
|
|
135
|
+
/**
|
|
136
|
+
* The color of the component.
|
|
137
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
138
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
139
|
+
* @default 'primary'
|
|
140
|
+
*/
|
|
141
|
+
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
142
|
+
/**
|
|
143
|
+
* The default checked state. Use when the component is not controlled.
|
|
144
|
+
*/
|
|
145
|
+
defaultChecked: e.bool,
|
|
146
|
+
/**
|
|
147
|
+
* If `true`, the component is disabled.
|
|
148
|
+
* @default false
|
|
149
|
+
*/
|
|
150
|
+
disabled: e.bool,
|
|
151
|
+
/**
|
|
152
|
+
* If `true`, the ripple effect is disabled.
|
|
153
|
+
* @default false
|
|
154
|
+
*/
|
|
155
|
+
disableRipple: e.bool,
|
|
156
|
+
/**
|
|
157
|
+
* The icon to display when the component is unchecked.
|
|
158
|
+
* @default <CheckBoxOutlineBlankIcon />
|
|
159
|
+
*/
|
|
160
|
+
icon: e.node,
|
|
161
|
+
/**
|
|
162
|
+
* The id of the `input` element.
|
|
163
|
+
*/
|
|
164
|
+
id: e.string,
|
|
165
|
+
/**
|
|
166
|
+
* If `true`, the component appears indeterminate.
|
|
167
|
+
* This does not set the native input element to indeterminate due
|
|
168
|
+
* to inconsistent behavior across browsers.
|
|
169
|
+
* However, we set a `data-indeterminate` attribute on the `input`.
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
172
|
+
indeterminate: e.bool,
|
|
173
|
+
/**
|
|
174
|
+
* The icon to display when the component is indeterminate.
|
|
175
|
+
* @default <IndeterminateCheckBoxIcon />
|
|
176
|
+
*/
|
|
177
|
+
indeterminateIcon: e.node,
|
|
178
|
+
/**
|
|
179
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
180
|
+
*/
|
|
181
|
+
inputProps: e.object,
|
|
182
|
+
/**
|
|
183
|
+
* Pass a ref to the `input` element.
|
|
184
|
+
*/
|
|
185
|
+
inputRef: ie,
|
|
186
|
+
/**
|
|
187
|
+
* Callback fired when the state is changed.
|
|
188
|
+
*
|
|
189
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
190
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
191
|
+
*/
|
|
192
|
+
onChange: e.func,
|
|
193
|
+
/**
|
|
194
|
+
* If `true`, the `input` element is required.
|
|
195
|
+
* @default false
|
|
196
|
+
*/
|
|
197
|
+
required: e.bool,
|
|
198
|
+
/**
|
|
199
|
+
* The size of the component.
|
|
200
|
+
* `small` is equivalent to the dense checkbox styling.
|
|
201
|
+
* @default 'medium'
|
|
202
|
+
*/
|
|
203
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
204
|
+
/**
|
|
205
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
206
|
+
*/
|
|
207
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
208
|
+
/**
|
|
209
|
+
* The value of the component. The DOM API casts this to a string.
|
|
210
|
+
* The browser uses "on" as the default value.
|
|
211
|
+
*/
|
|
212
|
+
value: e.any
|
|
213
|
+
});
|
|
214
|
+
const se = xe({
|
|
215
|
+
createStyledComponent: G("div", {
|
|
216
|
+
name: "MuiStack",
|
|
217
|
+
slot: "Root",
|
|
218
|
+
overridesResolver: (r, o) => o.root
|
|
219
|
+
}),
|
|
220
|
+
useThemeProps: (r) => Q({
|
|
221
|
+
props: r,
|
|
222
|
+
name: "MuiStack"
|
|
223
|
+
})
|
|
224
|
+
});
|
|
225
|
+
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
226
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
227
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
228
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
229
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
230
|
+
/**
|
|
231
|
+
* The content of the component.
|
|
232
|
+
*/
|
|
233
|
+
children: e.node,
|
|
234
|
+
/**
|
|
235
|
+
* The component used for the root node.
|
|
236
|
+
* Either a string to use a HTML element or a component.
|
|
237
|
+
*/
|
|
238
|
+
component: e.elementType,
|
|
239
|
+
/**
|
|
240
|
+
* Defines the `flex-direction` style property.
|
|
241
|
+
* It is applied for all screen sizes.
|
|
242
|
+
* @default 'column'
|
|
243
|
+
*/
|
|
244
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
245
|
+
/**
|
|
246
|
+
* Add an element between each child.
|
|
247
|
+
*/
|
|
248
|
+
divider: e.node,
|
|
249
|
+
/**
|
|
250
|
+
* Defines the space between immediate children.
|
|
251
|
+
* @default 0
|
|
252
|
+
*/
|
|
253
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
254
|
+
/**
|
|
255
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
256
|
+
*/
|
|
257
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
258
|
+
/**
|
|
259
|
+
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
260
|
+
*
|
|
261
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
262
|
+
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
263
|
+
*
|
|
264
|
+
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
|
265
|
+
* @default false
|
|
266
|
+
*/
|
|
267
|
+
useFlexGap: e.bool
|
|
268
|
+
});
|
|
269
|
+
function je(r) {
|
|
270
|
+
return ae("MuiFormControlLabel", r);
|
|
271
|
+
}
|
|
272
|
+
const E = te("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), Ee = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"], ze = (r) => {
|
|
273
|
+
const {
|
|
274
|
+
classes: o,
|
|
275
|
+
disabled: i,
|
|
276
|
+
labelPlacement: p,
|
|
277
|
+
error: d,
|
|
278
|
+
required: s
|
|
279
|
+
} = r, a = {
|
|
280
|
+
root: ["root", i && "disabled", `labelPlacement${_(p)}`, d && "error", s && "required"],
|
|
281
|
+
label: ["label", i && "disabled"],
|
|
282
|
+
asterisk: ["asterisk", d && "error"]
|
|
283
|
+
};
|
|
284
|
+
return le(a, je, o);
|
|
285
|
+
}, Ne = G("label", {
|
|
286
|
+
name: "MuiFormControlLabel",
|
|
287
|
+
slot: "Root",
|
|
288
|
+
overridesResolver: (r, o) => {
|
|
289
|
+
const {
|
|
290
|
+
ownerState: i
|
|
291
|
+
} = r;
|
|
292
|
+
return [{
|
|
293
|
+
[`& .${E.label}`]: o.label
|
|
294
|
+
}, o.root, o[`labelPlacement${_(i.labelPlacement)}`]];
|
|
295
|
+
}
|
|
296
|
+
})(({
|
|
297
|
+
theme: r,
|
|
298
|
+
ownerState: o
|
|
299
|
+
}) => v({
|
|
300
|
+
display: "inline-flex",
|
|
301
|
+
alignItems: "center",
|
|
302
|
+
cursor: "pointer",
|
|
303
|
+
// For correct alignment with the text.
|
|
304
|
+
verticalAlign: "middle",
|
|
305
|
+
WebkitTapHighlightColor: "transparent",
|
|
306
|
+
marginLeft: -11,
|
|
307
|
+
marginRight: 16,
|
|
308
|
+
// used for row presentation of radio/checkbox
|
|
309
|
+
[`&.${E.disabled}`]: {
|
|
310
|
+
cursor: "default"
|
|
311
|
+
}
|
|
312
|
+
}, o.labelPlacement === "start" && {
|
|
313
|
+
flexDirection: "row-reverse",
|
|
314
|
+
marginLeft: 16,
|
|
315
|
+
// used for row presentation of radio/checkbox
|
|
316
|
+
marginRight: -11
|
|
317
|
+
}, o.labelPlacement === "top" && {
|
|
318
|
+
flexDirection: "column-reverse",
|
|
319
|
+
marginLeft: 16
|
|
320
|
+
}, o.labelPlacement === "bottom" && {
|
|
321
|
+
flexDirection: "column",
|
|
322
|
+
marginLeft: 16
|
|
323
|
+
}, {
|
|
324
|
+
[`& .${E.label}`]: {
|
|
325
|
+
[`&.${E.disabled}`]: {
|
|
326
|
+
color: (r.vars || r).palette.text.disabled
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
})), Le = G("span", {
|
|
330
|
+
name: "MuiFormControlLabel",
|
|
331
|
+
slot: "Asterisk",
|
|
332
|
+
overridesResolver: (r, o) => o.asterisk
|
|
333
|
+
})(({
|
|
334
|
+
theme: r
|
|
335
|
+
}) => ({
|
|
336
|
+
[`&.${E.error}`]: {
|
|
337
|
+
color: (r.vars || r).palette.error.main
|
|
338
|
+
}
|
|
339
|
+
})), R = /* @__PURE__ */ z.forwardRef(function(o, i) {
|
|
340
|
+
var p, d;
|
|
341
|
+
const s = Q({
|
|
342
|
+
props: o,
|
|
343
|
+
name: "MuiFormControlLabel"
|
|
344
|
+
}), {
|
|
345
|
+
className: a,
|
|
346
|
+
componentsProps: g = {},
|
|
347
|
+
control: m,
|
|
348
|
+
disabled: u,
|
|
349
|
+
disableTypography: n,
|
|
350
|
+
label: $,
|
|
351
|
+
labelPlacement: T = "end",
|
|
352
|
+
required: k,
|
|
353
|
+
slotProps: F = {}
|
|
354
|
+
} = s, O = ne(s, Ee), b = Ce(), C = (p = u ?? m.props.disabled) != null ? p : b == null ? void 0 : b.disabled, h = k ?? m.props.required, j = {
|
|
355
|
+
disabled: C,
|
|
356
|
+
required: h
|
|
357
|
+
};
|
|
358
|
+
["checked", "name", "onChange", "value", "inputRef"].forEach((l) => {
|
|
359
|
+
typeof m.props[l] > "u" && typeof s[l] < "u" && (j[l] = s[l]);
|
|
360
|
+
});
|
|
361
|
+
const N = Te({
|
|
362
|
+
props: s,
|
|
363
|
+
muiFormControl: b,
|
|
364
|
+
states: ["error"]
|
|
365
|
+
}), M = v({}, s, {
|
|
366
|
+
disabled: C,
|
|
367
|
+
labelPlacement: T,
|
|
368
|
+
required: h,
|
|
369
|
+
error: N.error
|
|
370
|
+
}), S = ze(M), q = (d = F.typography) != null ? d : g.typography;
|
|
371
|
+
let y = $;
|
|
372
|
+
return y != null && y.type !== oe && !n && (y = /* @__PURE__ */ t(oe, v({
|
|
373
|
+
component: "span"
|
|
374
|
+
}, q, {
|
|
375
|
+
className: J(S.label, q == null ? void 0 : q.className),
|
|
376
|
+
children: y
|
|
377
|
+
}))), /* @__PURE__ */ f(Ne, v({
|
|
378
|
+
className: J(S.root, a),
|
|
379
|
+
ownerState: M,
|
|
380
|
+
ref: i
|
|
381
|
+
}, O, {
|
|
382
|
+
children: [/* @__PURE__ */ z.cloneElement(m, j), h ? /* @__PURE__ */ f(se, {
|
|
383
|
+
display: "block",
|
|
384
|
+
children: [y, /* @__PURE__ */ f(Le, {
|
|
385
|
+
ownerState: M,
|
|
386
|
+
"aria-hidden": !0,
|
|
387
|
+
className: S.asterisk,
|
|
388
|
+
children: [" ", "*"]
|
|
389
|
+
})]
|
|
390
|
+
}) : y]
|
|
391
|
+
}));
|
|
392
|
+
});
|
|
393
|
+
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
394
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
395
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
396
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
397
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
398
|
+
/**
|
|
399
|
+
* If `true`, the component appears selected.
|
|
400
|
+
*/
|
|
401
|
+
checked: e.bool,
|
|
402
|
+
/**
|
|
403
|
+
* Override or extend the styles applied to the component.
|
|
404
|
+
*/
|
|
405
|
+
classes: e.object,
|
|
406
|
+
/**
|
|
407
|
+
* @ignore
|
|
408
|
+
*/
|
|
409
|
+
className: e.string,
|
|
410
|
+
/**
|
|
411
|
+
* The props used for each slot inside.
|
|
412
|
+
* @default {}
|
|
413
|
+
*/
|
|
414
|
+
componentsProps: e.shape({
|
|
415
|
+
typography: e.object
|
|
416
|
+
}),
|
|
417
|
+
/**
|
|
418
|
+
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
419
|
+
*/
|
|
420
|
+
control: e.element.isRequired,
|
|
421
|
+
/**
|
|
422
|
+
* If `true`, the control is disabled.
|
|
423
|
+
*/
|
|
424
|
+
disabled: e.bool,
|
|
425
|
+
/**
|
|
426
|
+
* If `true`, the label is rendered as it is passed without an additional typography node.
|
|
427
|
+
*/
|
|
428
|
+
disableTypography: e.bool,
|
|
429
|
+
/**
|
|
430
|
+
* Pass a ref to the `input` element.
|
|
431
|
+
*/
|
|
432
|
+
inputRef: ie,
|
|
433
|
+
/**
|
|
434
|
+
* A text or an element to be used in an enclosing label element.
|
|
435
|
+
*/
|
|
436
|
+
label: e.node,
|
|
437
|
+
/**
|
|
438
|
+
* The position of the label.
|
|
439
|
+
* @default 'end'
|
|
440
|
+
*/
|
|
441
|
+
labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
|
|
442
|
+
/**
|
|
443
|
+
* @ignore
|
|
444
|
+
*/
|
|
445
|
+
name: e.string,
|
|
446
|
+
/**
|
|
447
|
+
* Callback fired when the state is changed.
|
|
448
|
+
*
|
|
449
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
450
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
451
|
+
*/
|
|
452
|
+
onChange: e.func,
|
|
453
|
+
/**
|
|
454
|
+
* If `true`, the label will indicate that the `input` is required.
|
|
455
|
+
*/
|
|
456
|
+
required: e.bool,
|
|
457
|
+
/**
|
|
458
|
+
* The props used for each slot inside.
|
|
459
|
+
* @default {}
|
|
460
|
+
*/
|
|
461
|
+
slotProps: e.shape({
|
|
462
|
+
typography: e.object
|
|
463
|
+
}),
|
|
464
|
+
/**
|
|
465
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
466
|
+
*/
|
|
467
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
468
|
+
/**
|
|
469
|
+
* The value of the component.
|
|
470
|
+
*/
|
|
471
|
+
value: e.any
|
|
472
|
+
});
|
|
473
|
+
var Z = {}, we = be;
|
|
474
|
+
Object.defineProperty(Z, "__esModule", {
|
|
475
|
+
value: !0
|
|
476
|
+
});
|
|
477
|
+
var ce = Z.default = void 0, De = we(he()), Ve = de;
|
|
478
|
+
ce = Z.default = (0, De.default)(/* @__PURE__ */ (0, Ve.jsx)("path", {
|
|
479
|
+
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
480
|
+
}), "Check");
|
|
481
|
+
function uo({
|
|
482
|
+
inputVariant: r,
|
|
483
|
+
labelPosition: o = "default",
|
|
484
|
+
defaultValues: i = {
|
|
485
|
+
name: "",
|
|
486
|
+
propertyId: "",
|
|
487
|
+
type: Y[0],
|
|
488
|
+
dataTypeInfo: {},
|
|
489
|
+
defaultValue: "",
|
|
490
|
+
privacyPreservationMethod: ee[0],
|
|
491
|
+
required: !1,
|
|
492
|
+
visible: !1,
|
|
493
|
+
editable: !1,
|
|
494
|
+
distinctive: !1,
|
|
495
|
+
temporal: !1,
|
|
496
|
+
unique: !1
|
|
497
|
+
},
|
|
498
|
+
disablePropertyId: p,
|
|
499
|
+
onSubmit: d,
|
|
500
|
+
onCancel: s
|
|
501
|
+
}) {
|
|
502
|
+
var T, k, F, O, b, C, h, j, N, M, S, q, y;
|
|
503
|
+
const [a, g] = V.useState(i), [m, u] = V.useState({
|
|
504
|
+
name: !1
|
|
505
|
+
}), n = (l) => {
|
|
506
|
+
var L, w;
|
|
507
|
+
const c = l.target.name;
|
|
508
|
+
let x = l.target.type === "checkbox" ? l.target.checked : l.target.value;
|
|
509
|
+
if (a.type === "enum" && c === "dataTypeInfo.enumValues" && (x = x.split(",")), ((w = (L = a.dataTypeInfo) == null ? void 0 : L.innerType) == null ? void 0 : w.type) === "enum" && c === "dataTypeInfo.innerType.enumValues" && (x = x.split(",")), c.includes(".")) {
|
|
510
|
+
let D = { ...a };
|
|
511
|
+
me.set(D, c, x), g(D);
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
g((D) => ({
|
|
515
|
+
...D,
|
|
516
|
+
[c]: x
|
|
517
|
+
}));
|
|
518
|
+
}, $ = () => {
|
|
519
|
+
if (!a.name) {
|
|
520
|
+
u({ ...m, name: !0 });
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
d(a);
|
|
524
|
+
};
|
|
525
|
+
return V.useEffect(() => (m.name && a.name && u({ ...m, name: !1 }), () => {
|
|
526
|
+
}), [a.name]), V.useEffect(() => {
|
|
527
|
+
if (![
|
|
528
|
+
"date",
|
|
529
|
+
"coordinate",
|
|
530
|
+
"composite-list",
|
|
531
|
+
"enum",
|
|
532
|
+
"composite-matrix"
|
|
533
|
+
].includes(a.type)) {
|
|
534
|
+
if (a.dataTypeInfo) {
|
|
535
|
+
const { coordinateFormat: l, datePattern: c, innerType: x, enumValues: L } = a.dataTypeInfo;
|
|
536
|
+
(l || c || x || L) && g((w) => ({ ...w, dataTypeInfo: {} }));
|
|
537
|
+
}
|
|
538
|
+
return () => {
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
}, [a.type]), /* @__PURE__ */ f(pe, { children: [
|
|
542
|
+
/* @__PURE__ */ t(I, { label: "Name", required: !0, labelPosition: o, children: /* @__PURE__ */ t(
|
|
543
|
+
B,
|
|
544
|
+
{
|
|
545
|
+
label: o === "default" ? "Name" : void 0,
|
|
546
|
+
name: "name",
|
|
547
|
+
variant: r,
|
|
548
|
+
fullWidth: !0,
|
|
549
|
+
sx: { mb: 2, mt: 0.5 },
|
|
550
|
+
value: a.name,
|
|
551
|
+
onChange: n,
|
|
552
|
+
required: !0,
|
|
553
|
+
...m.name && {
|
|
554
|
+
error: !0,
|
|
555
|
+
helperText: "This field is required!"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
) }),
|
|
559
|
+
/* @__PURE__ */ t(I, { label: "Property ID", labelPosition: o, children: /* @__PURE__ */ t(
|
|
560
|
+
B,
|
|
561
|
+
{
|
|
562
|
+
label: o === "default" ? "Property ID" : void 0,
|
|
563
|
+
name: "propertyId",
|
|
564
|
+
variant: r,
|
|
565
|
+
fullWidth: !0,
|
|
566
|
+
disabled: p,
|
|
567
|
+
sx: { mb: 2 },
|
|
568
|
+
value: a.propertyId,
|
|
569
|
+
onChange: n
|
|
570
|
+
}
|
|
571
|
+
) }),
|
|
572
|
+
/* @__PURE__ */ t(I, { label: "Type", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
|
|
573
|
+
o === "default" && /* @__PURE__ */ t(W, { id: "type-select-label", children: "Type" }),
|
|
574
|
+
/* @__PURE__ */ t(
|
|
575
|
+
H,
|
|
576
|
+
{
|
|
577
|
+
label: o === "default" ? "Type" : void 0,
|
|
578
|
+
name: "type",
|
|
579
|
+
labelId: "type-select-label",
|
|
580
|
+
id: "type-select",
|
|
581
|
+
value: a.type,
|
|
582
|
+
onChange: n,
|
|
583
|
+
children: Y.map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
|
|
584
|
+
}
|
|
585
|
+
)
|
|
586
|
+
] }) }),
|
|
587
|
+
a.type === "coordinate" && /* @__PURE__ */ t(I, { label: "Coordinate Format", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
|
|
588
|
+
o === "default" && /* @__PURE__ */ t(W, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
|
|
589
|
+
/* @__PURE__ */ t(
|
|
590
|
+
H,
|
|
591
|
+
{
|
|
592
|
+
label: o === "default" ? "Coordinate Format" : void 0,
|
|
593
|
+
name: "dataTypeInfo.coordinateFormat",
|
|
594
|
+
labelId: "coordinate-format-select-label",
|
|
595
|
+
id: "coordinate-format-select",
|
|
596
|
+
value: (T = a.dataTypeInfo) == null ? void 0 : T.coordinateFormat,
|
|
597
|
+
onChange: n,
|
|
598
|
+
children: ye.map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
|
|
599
|
+
}
|
|
600
|
+
)
|
|
601
|
+
] }) }),
|
|
602
|
+
(a.type === "composite-list" || a.type === "composite-matrix") && /* @__PURE__ */ t(I, { label: "Inner Type", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
|
|
603
|
+
o === "default" && /* @__PURE__ */ t(W, { id: "composite-list-select-label", children: "Inner Type" }),
|
|
604
|
+
/* @__PURE__ */ t(
|
|
605
|
+
H,
|
|
606
|
+
{
|
|
607
|
+
label: o === "default" ? "Inner Type" : void 0,
|
|
608
|
+
name: "dataTypeInfo.innerType.type",
|
|
609
|
+
labelId: "composite-list-select-label",
|
|
610
|
+
id: "composite-list-select",
|
|
611
|
+
value: (F = (k = a.dataTypeInfo) == null ? void 0 : k.innerType) == null ? void 0 : F.type,
|
|
612
|
+
onChange: n,
|
|
613
|
+
children: Y.filter(
|
|
614
|
+
(l) => l !== "composite-list" && l !== "list"
|
|
615
|
+
).map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
|
|
616
|
+
}
|
|
617
|
+
)
|
|
618
|
+
] }) }),
|
|
619
|
+
(a.type === "enum" || ((b = (O = a.dataTypeInfo) == null ? void 0 : O.innerType) == null ? void 0 : b.type) === "enum") && /* @__PURE__ */ t(I, { label: "Enum Values", labelPosition: o, children: /* @__PURE__ */ t(
|
|
620
|
+
B,
|
|
621
|
+
{
|
|
622
|
+
label: o === "default" ? "Enum Values" : void 0,
|
|
623
|
+
name: ((h = (C = a.dataTypeInfo) == null ? void 0 : C.innerType) == null ? void 0 : h.type) === "enum" ? "dataTypeInfo.innerType.enumValues" : "dataTypeInfo.enumValues",
|
|
624
|
+
variant: r,
|
|
625
|
+
fullWidth: !0,
|
|
626
|
+
sx: { mb: 2 },
|
|
627
|
+
value: ((N = (j = a.dataTypeInfo) == null ? void 0 : j.innerType) == null ? void 0 : N.type) === "enum" ? (S = (M = a.dataTypeInfo.innerType) == null ? void 0 : M.enumValues) == null ? void 0 : S.join(",") : (y = (q = a.dataTypeInfo) == null ? void 0 : q.enumValues) == null ? void 0 : y.join(","),
|
|
628
|
+
onChange: n,
|
|
629
|
+
helperText: "Add list values with the comma (,) separated string"
|
|
630
|
+
}
|
|
631
|
+
) }),
|
|
632
|
+
/* @__PURE__ */ t(I, { label: "Default Value", labelPosition: o, children: /* @__PURE__ */ t(
|
|
633
|
+
B,
|
|
634
|
+
{
|
|
635
|
+
label: o === "default" ? "Default Value" : void 0,
|
|
636
|
+
name: "defaultValue",
|
|
637
|
+
variant: r,
|
|
638
|
+
fullWidth: !0,
|
|
639
|
+
sx: { mb: 2 },
|
|
640
|
+
value: a.defaultValue,
|
|
641
|
+
onChange: n
|
|
642
|
+
}
|
|
643
|
+
) }),
|
|
644
|
+
/* @__PURE__ */ t(I, { label: "Privacy Preservation Method", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
|
|
645
|
+
o === "default" && /* @__PURE__ */ t(W, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
|
|
646
|
+
/* @__PURE__ */ t(
|
|
647
|
+
H,
|
|
648
|
+
{
|
|
649
|
+
label: o === "default" ? "Privacy Preservation Method" : void 0,
|
|
650
|
+
name: "privacyPreservationMethod",
|
|
651
|
+
labelId: "privacy-method-label",
|
|
652
|
+
id: "privacy-method",
|
|
653
|
+
value: a.privacyPreservationMethod,
|
|
654
|
+
onChange: n,
|
|
655
|
+
children: ee.map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
|
|
656
|
+
}
|
|
657
|
+
)
|
|
658
|
+
] }) }),
|
|
659
|
+
/* @__PURE__ */ f(ve, { row: !0, sx: { mb: 2 }, children: [
|
|
660
|
+
/* @__PURE__ */ t(
|
|
661
|
+
R,
|
|
662
|
+
{
|
|
663
|
+
label: "Required",
|
|
664
|
+
control: /* @__PURE__ */ t(
|
|
665
|
+
P,
|
|
666
|
+
{
|
|
667
|
+
name: "required",
|
|
668
|
+
checked: a.required,
|
|
669
|
+
onChange: n
|
|
670
|
+
}
|
|
671
|
+
),
|
|
672
|
+
sx: { width: "30%" }
|
|
673
|
+
}
|
|
674
|
+
),
|
|
675
|
+
/* @__PURE__ */ t(
|
|
676
|
+
R,
|
|
677
|
+
{
|
|
678
|
+
label: "Editable",
|
|
679
|
+
control: /* @__PURE__ */ t(
|
|
680
|
+
P,
|
|
681
|
+
{
|
|
682
|
+
name: "editable",
|
|
683
|
+
checked: a.editable,
|
|
684
|
+
onChange: n
|
|
685
|
+
}
|
|
686
|
+
),
|
|
687
|
+
sx: { width: "30%" }
|
|
688
|
+
}
|
|
689
|
+
),
|
|
690
|
+
/* @__PURE__ */ t(
|
|
691
|
+
R,
|
|
692
|
+
{
|
|
693
|
+
label: "Visible",
|
|
694
|
+
control: /* @__PURE__ */ t(
|
|
695
|
+
P,
|
|
696
|
+
{
|
|
697
|
+
name: "visible",
|
|
698
|
+
checked: a.visible,
|
|
699
|
+
onChange: n
|
|
700
|
+
}
|
|
701
|
+
),
|
|
702
|
+
sx: { width: "30%" }
|
|
703
|
+
}
|
|
704
|
+
),
|
|
705
|
+
/* @__PURE__ */ t(
|
|
706
|
+
R,
|
|
707
|
+
{
|
|
708
|
+
label: "Unique",
|
|
709
|
+
control: /* @__PURE__ */ t(P, { name: "unique", checked: a.unique, onChange: n }),
|
|
710
|
+
sx: { width: "30%" }
|
|
711
|
+
}
|
|
712
|
+
),
|
|
713
|
+
/* @__PURE__ */ t(
|
|
714
|
+
R,
|
|
715
|
+
{
|
|
716
|
+
label: "Distinctive",
|
|
717
|
+
control: /* @__PURE__ */ t(
|
|
718
|
+
P,
|
|
719
|
+
{
|
|
720
|
+
name: "distinctive",
|
|
721
|
+
checked: a.distinctive,
|
|
722
|
+
onChange: n
|
|
723
|
+
}
|
|
724
|
+
),
|
|
725
|
+
sx: { width: "30%" }
|
|
726
|
+
}
|
|
727
|
+
),
|
|
728
|
+
/* @__PURE__ */ t(
|
|
729
|
+
R,
|
|
730
|
+
{
|
|
731
|
+
label: "Temporal",
|
|
732
|
+
control: /* @__PURE__ */ t(
|
|
733
|
+
P,
|
|
734
|
+
{
|
|
735
|
+
name: "temporal",
|
|
736
|
+
checked: a.temporal,
|
|
737
|
+
onChange: n
|
|
738
|
+
}
|
|
739
|
+
),
|
|
740
|
+
sx: { width: "30%" }
|
|
741
|
+
}
|
|
742
|
+
)
|
|
743
|
+
] }),
|
|
744
|
+
/* @__PURE__ */ f(ge, { display: "flex", justifyContent: "flex-end", children: [
|
|
745
|
+
/* @__PURE__ */ t(re, { variant: "contained", onClick: s, sx: { marginRight: 2 }, children: "Cancel" }),
|
|
746
|
+
/* @__PURE__ */ t(
|
|
747
|
+
re,
|
|
748
|
+
{
|
|
749
|
+
variant: "contained",
|
|
750
|
+
startIcon: /* @__PURE__ */ t(ce, {}),
|
|
751
|
+
onClick: $,
|
|
752
|
+
children: "OK"
|
|
753
|
+
}
|
|
754
|
+
)
|
|
755
|
+
] })
|
|
756
|
+
] });
|
|
757
|
+
}
|
|
12
758
|
export {
|
|
13
|
-
|
|
759
|
+
uo as default
|
|
14
760
|
};
|