@hybridcore/ui 1.3.6 → 1.4.0
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/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +12 -6
- package/dist/components/data-security-selectors/security-level/index.js +46 -45
- package/dist/components/date-time-picker/index.js +85 -64
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +60 -56
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/geometry-picker/styled.js +22 -14
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +15 -6
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +174 -155
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +51 -49
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/index-DPf5olog.js +288 -0
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +569 -81
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -39
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/index-B3Oj04nl.js +0 -287
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import B, { jsx as t, jsxs as c, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import * as Y from "react";
|
|
3
|
+
import F from "react";
|
|
4
|
+
import $ from "lodash";
|
|
5
|
+
import { r as z, i as H } from "./createSvgIcon-Cfm1LkEe.js";
|
|
6
|
+
import { DATA_TYPES as R, COORDINATE_FORMAT as K, PRIVACY_PRESERVATION_METHOD as G } from "./constants/index.js";
|
|
7
|
+
import { T as y } from "./TextField-D87qTh1k.js";
|
|
8
|
+
import { f as J, F as w, I as C } from "./InputLabel-CWkW8NtU.js";
|
|
9
|
+
import { S as P } from "./Select-ClaBvSqf.js";
|
|
10
|
+
import { M as _ } from "./MenuItem-D-INSvZa.js";
|
|
11
|
+
import { _ as M, a as Q } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
12
|
+
import { P as n } from "./createStyled-BzvgQjjR.js";
|
|
13
|
+
import { g as X, u as Z, c as ee, a as te } from "./useThemeProps-uYx_RkOH.js";
|
|
14
|
+
import { g as re, s as ae } from "./styled-LNCprp4n.js";
|
|
15
|
+
import { u as oe } from "./useFormControl-CatNKXAi.js";
|
|
16
|
+
import { F as p } from "./FormControlLabel-D9KFjcIx.js";
|
|
17
|
+
import { C as f } from "./Checkbox-qy3cjvnb.js";
|
|
18
|
+
import { B as le } from "./Box-BPyg-Ybm.js";
|
|
19
|
+
import { B as A } from "./Button-DLwB_sKd.js";
|
|
20
|
+
function ne(a) {
|
|
21
|
+
return re("MuiFormGroup", a);
|
|
22
|
+
}
|
|
23
|
+
X("MuiFormGroup", ["root", "row", "error"]);
|
|
24
|
+
const se = ["className", "row"], ie = (a) => {
|
|
25
|
+
const {
|
|
26
|
+
classes: s,
|
|
27
|
+
row: d,
|
|
28
|
+
error: i
|
|
29
|
+
} = a;
|
|
30
|
+
return te({
|
|
31
|
+
root: ["root", d && "row", i && "error"]
|
|
32
|
+
}, ne, s);
|
|
33
|
+
}, de = ae("div", {
|
|
34
|
+
name: "MuiFormGroup",
|
|
35
|
+
slot: "Root",
|
|
36
|
+
overridesResolver: (a, s) => {
|
|
37
|
+
const {
|
|
38
|
+
ownerState: d
|
|
39
|
+
} = a;
|
|
40
|
+
return [s.root, d.row && s.row];
|
|
41
|
+
}
|
|
42
|
+
})(({
|
|
43
|
+
ownerState: a
|
|
44
|
+
}) => M({
|
|
45
|
+
display: "flex",
|
|
46
|
+
flexDirection: "column",
|
|
47
|
+
flexWrap: "wrap"
|
|
48
|
+
}, a.row && {
|
|
49
|
+
flexDirection: "row"
|
|
50
|
+
})), U = /* @__PURE__ */ Y.forwardRef(function(s, d) {
|
|
51
|
+
const i = Z({
|
|
52
|
+
props: s,
|
|
53
|
+
name: "MuiFormGroup"
|
|
54
|
+
}), {
|
|
55
|
+
className: b,
|
|
56
|
+
row: e = !1
|
|
57
|
+
} = i, h = Q(i, se), m = oe(), v = J({
|
|
58
|
+
props: i,
|
|
59
|
+
muiFormControl: m,
|
|
60
|
+
states: ["error"]
|
|
61
|
+
}), o = M({}, i, {
|
|
62
|
+
row: e,
|
|
63
|
+
error: v.error
|
|
64
|
+
}), g = ie(o);
|
|
65
|
+
return /* @__PURE__ */ t(de, M({
|
|
66
|
+
className: ee(g.root, b),
|
|
67
|
+
ownerState: o,
|
|
68
|
+
ref: d
|
|
69
|
+
}, h));
|
|
70
|
+
});
|
|
71
|
+
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
72
|
+
// ----------------------------- Warning --------------------------------
|
|
73
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
74
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
75
|
+
// ----------------------------------------------------------------------
|
|
76
|
+
/**
|
|
77
|
+
* The content of the component.
|
|
78
|
+
*/
|
|
79
|
+
children: n.node,
|
|
80
|
+
/**
|
|
81
|
+
* Override or extend the styles applied to the component.
|
|
82
|
+
*/
|
|
83
|
+
classes: n.object,
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
|
+
*/
|
|
87
|
+
className: n.string,
|
|
88
|
+
/**
|
|
89
|
+
* Display group of elements in a compact row.
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
row: n.bool,
|
|
93
|
+
/**
|
|
94
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
95
|
+
*/
|
|
96
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
97
|
+
});
|
|
98
|
+
var q = {}, ce = H;
|
|
99
|
+
Object.defineProperty(q, "__esModule", {
|
|
100
|
+
value: !0
|
|
101
|
+
});
|
|
102
|
+
var V = q.default = void 0, me = ce(z()), ue = B;
|
|
103
|
+
V = q.default = (0, me.default)(/* @__PURE__ */ (0, ue.jsx)("path", {
|
|
104
|
+
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
105
|
+
}), "Check");
|
|
106
|
+
function De({
|
|
107
|
+
inputVariant: a,
|
|
108
|
+
defaultValues: s = {
|
|
109
|
+
name: "",
|
|
110
|
+
propertyId: "",
|
|
111
|
+
type: R[0],
|
|
112
|
+
dataTypeInfo: {},
|
|
113
|
+
defaultValue: "",
|
|
114
|
+
privacyPreservationMethod: G[0],
|
|
115
|
+
required: !1,
|
|
116
|
+
visible: !1,
|
|
117
|
+
editable: !1,
|
|
118
|
+
distinctive: !1,
|
|
119
|
+
temporal: !1,
|
|
120
|
+
unique: !1
|
|
121
|
+
},
|
|
122
|
+
disablePropertyId: d,
|
|
123
|
+
onSubmit: i,
|
|
124
|
+
onCancel: b
|
|
125
|
+
}) {
|
|
126
|
+
var D, k, E, S, O, j, W, N;
|
|
127
|
+
const [e, h] = F.useState(s), [m, v] = F.useState({
|
|
128
|
+
name: !1
|
|
129
|
+
}), o = (r) => {
|
|
130
|
+
var T, x;
|
|
131
|
+
const l = r.target.name;
|
|
132
|
+
let u = r.target.type === "checkbox" ? r.target.checked : r.target.value;
|
|
133
|
+
if ((e.type === "enum" || ((x = (T = e.dataTypeInfo) == null ? void 0 : T.innerType) == null ? void 0 : x.type) === "enum") && l === "dataTypeInfo.enumValues" && (u = u.split(",")), l.includes(".")) {
|
|
134
|
+
let I = { ...e };
|
|
135
|
+
$.set(I, l, u), h(I);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
h((I) => ({
|
|
139
|
+
...I,
|
|
140
|
+
[l]: u
|
|
141
|
+
}));
|
|
142
|
+
}, g = () => {
|
|
143
|
+
if (!e.name) {
|
|
144
|
+
v({ ...m, name: !0 });
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
i(e);
|
|
148
|
+
};
|
|
149
|
+
return F.useEffect(() => (m.name && e.name && v({ ...m, name: !1 }), () => {
|
|
150
|
+
}), [e.name]), F.useEffect(() => {
|
|
151
|
+
if (!["date", "coordinate", "composite-list", "enum"].includes(e.type)) {
|
|
152
|
+
if (e.dataTypeInfo) {
|
|
153
|
+
const { coordinateFormat: r, datePattern: l, innerType: u, enumValues: T } = e.dataTypeInfo;
|
|
154
|
+
(r || l || u || T) && h((x) => ({ ...x, dataTypeInfo: {} }));
|
|
155
|
+
}
|
|
156
|
+
return () => {
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}, [e.type]), /* @__PURE__ */ c(L, { children: [
|
|
160
|
+
/* @__PURE__ */ t(
|
|
161
|
+
y,
|
|
162
|
+
{
|
|
163
|
+
label: "Name",
|
|
164
|
+
name: "name",
|
|
165
|
+
variant: a,
|
|
166
|
+
fullWidth: !0,
|
|
167
|
+
sx: { mb: 2, mt: 0.5 },
|
|
168
|
+
value: e.name,
|
|
169
|
+
onChange: o,
|
|
170
|
+
required: !0,
|
|
171
|
+
...m.name && {
|
|
172
|
+
error: !0,
|
|
173
|
+
helperText: "This field is required!"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ t(
|
|
178
|
+
y,
|
|
179
|
+
{
|
|
180
|
+
label: "Property ID",
|
|
181
|
+
name: "propertyId",
|
|
182
|
+
variant: a,
|
|
183
|
+
fullWidth: !0,
|
|
184
|
+
disabled: d,
|
|
185
|
+
sx: { mb: 2 },
|
|
186
|
+
value: e.propertyId,
|
|
187
|
+
onChange: o
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
191
|
+
/* @__PURE__ */ t(C, { id: "type-select-label", children: "Type" }),
|
|
192
|
+
/* @__PURE__ */ t(
|
|
193
|
+
P,
|
|
194
|
+
{
|
|
195
|
+
label: "Type",
|
|
196
|
+
name: "type",
|
|
197
|
+
labelId: "type-select-label",
|
|
198
|
+
id: "type-select",
|
|
199
|
+
value: e.type,
|
|
200
|
+
onChange: o,
|
|
201
|
+
children: R.map((r, l) => /* @__PURE__ */ t(_, { value: r, children: r }, l))
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
] }),
|
|
205
|
+
e.type === "date" && /* @__PURE__ */ t(
|
|
206
|
+
y,
|
|
207
|
+
{
|
|
208
|
+
label: "Date Format",
|
|
209
|
+
name: "dataTypeInfo.datePattern",
|
|
210
|
+
variant: a,
|
|
211
|
+
fullWidth: !0,
|
|
212
|
+
sx: { mb: 2 },
|
|
213
|
+
value: (D = e.dataTypeInfo) == null ? void 0 : D.datePattern,
|
|
214
|
+
onChange: o
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
e.type === "coordinate" && /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
218
|
+
/* @__PURE__ */ t(C, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
|
|
219
|
+
/* @__PURE__ */ t(
|
|
220
|
+
P,
|
|
221
|
+
{
|
|
222
|
+
label: "Coordinate Format",
|
|
223
|
+
name: "dataTypeInfo.coordinateFormat",
|
|
224
|
+
labelId: "coordinate-format-select-label",
|
|
225
|
+
id: "coordinate-format-select",
|
|
226
|
+
value: (k = e.dataTypeInfo) == null ? void 0 : k.coordinateFormat,
|
|
227
|
+
onChange: o,
|
|
228
|
+
children: K.map((r, l) => /* @__PURE__ */ t(_, { value: r, children: r }, l))
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }),
|
|
232
|
+
e.type === "composite-list" && /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
233
|
+
/* @__PURE__ */ t(C, { id: "composite-list-select-label", children: "Inner Type" }),
|
|
234
|
+
/* @__PURE__ */ t(
|
|
235
|
+
P,
|
|
236
|
+
{
|
|
237
|
+
label: "Inner Type",
|
|
238
|
+
name: "dataTypeInfo.innerType.type",
|
|
239
|
+
labelId: "composite-list-select-label",
|
|
240
|
+
id: "composite-list-select",
|
|
241
|
+
value: (S = (E = e.dataTypeInfo) == null ? void 0 : E.innerType) == null ? void 0 : S.type,
|
|
242
|
+
onChange: o,
|
|
243
|
+
children: R.filter(
|
|
244
|
+
(r) => r !== "composite-list" && r !== "list"
|
|
245
|
+
).map((r, l) => /* @__PURE__ */ t(_, { value: r, children: r }, l))
|
|
246
|
+
}
|
|
247
|
+
)
|
|
248
|
+
] }),
|
|
249
|
+
(e.type === "enum" || ((j = (O = e.dataTypeInfo) == null ? void 0 : O.innerType) == null ? void 0 : j.type) === "enum") && /* @__PURE__ */ t(
|
|
250
|
+
y,
|
|
251
|
+
{
|
|
252
|
+
label: "Enum Values",
|
|
253
|
+
name: "dataTypeInfo.enumValues",
|
|
254
|
+
variant: a,
|
|
255
|
+
fullWidth: !0,
|
|
256
|
+
sx: { mb: 2 },
|
|
257
|
+
value: (N = (W = e.dataTypeInfo) == null ? void 0 : W.enumValues) == null ? void 0 : N.join(","),
|
|
258
|
+
onChange: o,
|
|
259
|
+
helperText: "Add list values with the comma (,) separated string"
|
|
260
|
+
}
|
|
261
|
+
),
|
|
262
|
+
/* @__PURE__ */ t(
|
|
263
|
+
y,
|
|
264
|
+
{
|
|
265
|
+
label: "Default Value",
|
|
266
|
+
name: "defaultValue",
|
|
267
|
+
variant: a,
|
|
268
|
+
fullWidth: !0,
|
|
269
|
+
sx: { mb: 2 },
|
|
270
|
+
value: e.defaultValue,
|
|
271
|
+
onChange: o
|
|
272
|
+
}
|
|
273
|
+
),
|
|
274
|
+
/* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
275
|
+
/* @__PURE__ */ t(C, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
|
|
276
|
+
/* @__PURE__ */ t(
|
|
277
|
+
P,
|
|
278
|
+
{
|
|
279
|
+
label: "Privacy Preservation Method",
|
|
280
|
+
name: "privacyPreservationMethod",
|
|
281
|
+
labelId: "privacy-method-label",
|
|
282
|
+
id: "privacy-method",
|
|
283
|
+
value: e.privacyPreservationMethod,
|
|
284
|
+
onChange: o,
|
|
285
|
+
children: G.map((r, l) => /* @__PURE__ */ t(_, { value: r, children: r }, l))
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
] }),
|
|
289
|
+
/* @__PURE__ */ c(U, { row: !0, sx: { mb: 2 }, children: [
|
|
290
|
+
/* @__PURE__ */ t(
|
|
291
|
+
p,
|
|
292
|
+
{
|
|
293
|
+
label: "Required",
|
|
294
|
+
control: /* @__PURE__ */ t(
|
|
295
|
+
f,
|
|
296
|
+
{
|
|
297
|
+
name: "required",
|
|
298
|
+
checked: e.required,
|
|
299
|
+
onChange: o
|
|
300
|
+
}
|
|
301
|
+
),
|
|
302
|
+
sx: { width: "30%" }
|
|
303
|
+
}
|
|
304
|
+
),
|
|
305
|
+
/* @__PURE__ */ t(
|
|
306
|
+
p,
|
|
307
|
+
{
|
|
308
|
+
label: "Editable",
|
|
309
|
+
control: /* @__PURE__ */ t(
|
|
310
|
+
f,
|
|
311
|
+
{
|
|
312
|
+
name: "editable",
|
|
313
|
+
checked: e.editable,
|
|
314
|
+
onChange: o
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
sx: { width: "30%" }
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
/* @__PURE__ */ t(
|
|
321
|
+
p,
|
|
322
|
+
{
|
|
323
|
+
label: "Visible",
|
|
324
|
+
control: /* @__PURE__ */ t(
|
|
325
|
+
f,
|
|
326
|
+
{
|
|
327
|
+
name: "visible",
|
|
328
|
+
checked: e.visible,
|
|
329
|
+
onChange: o
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
sx: { width: "30%" }
|
|
333
|
+
}
|
|
334
|
+
),
|
|
335
|
+
/* @__PURE__ */ t(
|
|
336
|
+
p,
|
|
337
|
+
{
|
|
338
|
+
label: "Unique",
|
|
339
|
+
control: /* @__PURE__ */ t(f, { name: "unique", checked: e.unique, onChange: o }),
|
|
340
|
+
sx: { width: "30%" }
|
|
341
|
+
}
|
|
342
|
+
),
|
|
343
|
+
/* @__PURE__ */ t(
|
|
344
|
+
p,
|
|
345
|
+
{
|
|
346
|
+
label: "Distinctive",
|
|
347
|
+
control: /* @__PURE__ */ t(
|
|
348
|
+
f,
|
|
349
|
+
{
|
|
350
|
+
name: "distinctive",
|
|
351
|
+
checked: e.distinctive,
|
|
352
|
+
onChange: o
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
sx: { width: "30%" }
|
|
356
|
+
}
|
|
357
|
+
),
|
|
358
|
+
/* @__PURE__ */ t(
|
|
359
|
+
p,
|
|
360
|
+
{
|
|
361
|
+
label: "Temporal",
|
|
362
|
+
control: /* @__PURE__ */ t(
|
|
363
|
+
f,
|
|
364
|
+
{
|
|
365
|
+
name: "temporal",
|
|
366
|
+
checked: e.temporal,
|
|
367
|
+
onChange: o
|
|
368
|
+
}
|
|
369
|
+
),
|
|
370
|
+
sx: { width: "30%" }
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
] }),
|
|
374
|
+
/* @__PURE__ */ c(le, { display: "flex", justifyContent: "flex-end", children: [
|
|
375
|
+
/* @__PURE__ */ t(A, { variant: "contained", onClick: b, sx: { marginRight: 2 }, children: "Cancel" }),
|
|
376
|
+
/* @__PURE__ */ t(
|
|
377
|
+
A,
|
|
378
|
+
{
|
|
379
|
+
variant: "contained",
|
|
380
|
+
startIcon: /* @__PURE__ */ t(V, {}),
|
|
381
|
+
onClick: g,
|
|
382
|
+
children: "OK"
|
|
383
|
+
}
|
|
384
|
+
)
|
|
385
|
+
] })
|
|
386
|
+
] });
|
|
387
|
+
}
|
|
388
|
+
export {
|
|
389
|
+
U as F,
|
|
390
|
+
De as a
|
|
391
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { _ as d } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
function T(f, t) {
|
|
3
|
+
if (process.env.NODE_ENV === "production")
|
|
4
|
+
return () => null;
|
|
5
|
+
const n = t ? d({}, t.propTypes) : null;
|
|
6
|
+
return (o) => (e, r, l, p, u, ...y) => {
|
|
7
|
+
const c = u || r, i = n == null ? void 0 : n[c];
|
|
8
|
+
if (i) {
|
|
9
|
+
const s = i(e, r, l, p, u, ...y);
|
|
10
|
+
if (s)
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
return typeof e[r] < "u" && !e[o] ? new Error(`The prop \`${c}\` of \`${f}\` can only be used together with the \`${o}\` prop.`) : null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
T as r
|
|
18
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as m, a as T } from "./
|
|
2
|
-
import { f as N,
|
|
1
|
+
import { _ as m, a as T } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
import { f as N, d as M, j as q, k as J, b as K, e as X, l as G } from "./createStyled-BzvgQjjR.js";
|
|
3
3
|
const V = (e) => e, Y = () => {
|
|
4
4
|
let e = V;
|
|
5
5
|
return {
|
|
@@ -211,7 +211,7 @@ const S = {
|
|
|
211
211
|
A200: "#448aff",
|
|
212
212
|
A400: "#2979ff",
|
|
213
213
|
A700: "#2962ff"
|
|
214
|
-
},
|
|
214
|
+
}, k = {
|
|
215
215
|
50: "#e1f5fe",
|
|
216
216
|
100: "#b3e5fc",
|
|
217
217
|
200: "#81d4fa",
|
|
@@ -226,7 +226,7 @@ const S = {
|
|
|
226
226
|
A200: "#40c4ff",
|
|
227
227
|
A400: "#00b0ff",
|
|
228
228
|
A700: "#0091ea"
|
|
229
|
-
},
|
|
229
|
+
}, w = {
|
|
230
230
|
50: "#e8f5e9",
|
|
231
231
|
100: "#c8e6c9",
|
|
232
232
|
200: "#a5d6a7",
|
|
@@ -342,27 +342,27 @@ function ue(e = "light") {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
function le(e = "light") {
|
|
345
|
-
return e === "dark" ? {
|
|
346
|
-
main: w[400],
|
|
347
|
-
light: w[300],
|
|
348
|
-
dark: w[700]
|
|
349
|
-
} : {
|
|
350
|
-
main: w[700],
|
|
351
|
-
light: w[500],
|
|
352
|
-
dark: w[900]
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
function pe(e = "light") {
|
|
356
345
|
return e === "dark" ? {
|
|
357
346
|
main: k[400],
|
|
358
347
|
light: k[300],
|
|
359
348
|
dark: k[700]
|
|
360
349
|
} : {
|
|
361
|
-
main: k[
|
|
350
|
+
main: k[700],
|
|
362
351
|
light: k[500],
|
|
363
352
|
dark: k[900]
|
|
364
353
|
};
|
|
365
354
|
}
|
|
355
|
+
function pe(e = "light") {
|
|
356
|
+
return e === "dark" ? {
|
|
357
|
+
main: w[400],
|
|
358
|
+
light: w[300],
|
|
359
|
+
dark: w[700]
|
|
360
|
+
} : {
|
|
361
|
+
main: w[800],
|
|
362
|
+
light: w[500],
|
|
363
|
+
dark: w[900]
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
366
|
function ge(e = "light") {
|
|
367
367
|
return e === "dark" ? {
|
|
368
368
|
main: E[400],
|
|
@@ -547,7 +547,7 @@ const $e = 0.2, Oe = 0.14, xe = 0.12;
|
|
|
547
547
|
function o(...e) {
|
|
548
548
|
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$e})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Oe})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xe})`].join(",");
|
|
549
549
|
}
|
|
550
|
-
const ve = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), o(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), o(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), o(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), o(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), o(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), o(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), o(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), o(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), o(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), o(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), o(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), o(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), o(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), o(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), o(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), o(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), o(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), o(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), o(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), o(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), o(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), o(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ae = ["duration", "easing", "delay"],
|
|
550
|
+
const ve = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), o(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), o(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), o(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), o(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), o(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), o(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), o(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), o(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), o(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), o(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), o(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), o(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), o(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), o(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), o(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), o(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), o(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), o(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), o(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), o(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), o(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), o(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ae = ["duration", "easing", "delay"], ke = {
|
|
551
551
|
// This is the most common easing curve.
|
|
552
552
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
553
553
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -557,7 +557,7 @@ const ve = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2,
|
|
|
557
557
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
558
558
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
559
559
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
560
|
-
},
|
|
560
|
+
}, we = {
|
|
561
561
|
shortest: 150,
|
|
562
562
|
shorter: 200,
|
|
563
563
|
short: 250,
|
|
@@ -580,7 +580,7 @@ function Ee(e) {
|
|
|
580
580
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
581
581
|
}
|
|
582
582
|
function Me(e) {
|
|
583
|
-
const t = m({},
|
|
583
|
+
const t = m({}, ke, e.easing), r = m({}, we, e.duration);
|
|
584
584
|
return m({
|
|
585
585
|
getAutoHeightDuration: Ee,
|
|
586
586
|
create: (s = ["all"], d = {}) => {
|
|
@@ -667,11 +667,13 @@ const Te = Ie(), _e = (e) => G(e) && e !== "classes", Ve = G, Fe = X({
|
|
|
667
667
|
export {
|
|
668
668
|
Q as C,
|
|
669
669
|
Ue as a,
|
|
670
|
-
|
|
670
|
+
Te as b,
|
|
671
671
|
Ie as c,
|
|
672
|
-
|
|
673
|
-
|
|
672
|
+
ae as d,
|
|
673
|
+
Ve as e,
|
|
674
|
+
we as f,
|
|
674
675
|
ee as g,
|
|
676
|
+
se as l,
|
|
675
677
|
_e as r,
|
|
676
678
|
Fe as s
|
|
677
679
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function d({
|
|
3
|
+
controlled: o,
|
|
4
|
+
default: s,
|
|
5
|
+
name: n,
|
|
6
|
+
state: r = "value"
|
|
7
|
+
}) {
|
|
8
|
+
const {
|
|
9
|
+
current: e
|
|
10
|
+
} = t.useRef(o !== void 0), [c, l] = t.useState(s), u = e ? o : c;
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
e !== (o !== void 0) && console.error([`MUI: A component is changing the ${e ? "" : "un"}controlled ${r} state of ${n} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
14
|
+
`));
|
|
15
|
+
}, [r, n, o]);
|
|
16
|
+
const {
|
|
17
|
+
current: i
|
|
18
|
+
} = t.useRef(s);
|
|
19
|
+
t.useEffect(() => {
|
|
20
|
+
!e && !Object.is(i, s) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
21
|
+
`));
|
|
22
|
+
}, [JSON.stringify(s)]);
|
|
23
|
+
}
|
|
24
|
+
const f = t.useCallback((i) => {
|
|
25
|
+
e || l(i);
|
|
26
|
+
}, []);
|
|
27
|
+
return [u, f];
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
d as u
|
|
31
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { d as t } from "./useThemeProps-
|
|
2
|
+
import { b as r } from "./styled-LNCprp4n.js";
|
|
3
|
+
import { d as t } from "./useThemeProps-uYx_RkOH.js";
|
|
4
4
|
function u() {
|
|
5
5
|
const e = t(r);
|
|
6
6
|
return process.env.NODE_ENV !== "production" && o.useDebugValue(e), e;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { _ as i } from "./
|
|
1
|
+
import { g as h, b as m } from "./styled-LNCprp4n.js";
|
|
2
|
+
import { _ as i } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { ThemeContext as g } from "@emotion/react";
|
|
5
|
-
import {
|
|
5
|
+
import { j as y } from "./createStyled-BzvgQjjR.js";
|
|
6
6
|
function f(e) {
|
|
7
7
|
var n, s, t = "";
|
|
8
8
|
if (typeof e == "string" || typeof e == "number") t += e;
|
|
@@ -19,7 +19,7 @@ function $(e, n) {
|
|
|
19
19
|
return e(...t) || n(...t);
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function l(e, n) {
|
|
23
23
|
const s = i({}, n);
|
|
24
24
|
return Object.keys(e).forEach((t) => {
|
|
25
25
|
if (t.toString().match(/^(components|slots)$/))
|
|
@@ -27,7 +27,7 @@ function h(e, n) {
|
|
|
27
27
|
else if (t.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
28
28
|
const r = e[t] || {}, o = n[t];
|
|
29
29
|
s[t] = {}, !o || !Object.keys(o) ? s[t] = r : !r || !Object.keys(r) ? s[t] = o : (s[t] = i({}, o), Object.keys(r).forEach((u) => {
|
|
30
|
-
s[t][u] =
|
|
30
|
+
s[t][u] = l(r[u], o[u]);
|
|
31
31
|
}));
|
|
32
32
|
} else s[t] === void 0 && (s[t] = e[t]);
|
|
33
33
|
}), s;
|
|
@@ -51,19 +51,19 @@ function k(e, n, s = void 0) {
|
|
|
51
51
|
function S(e, n, s = "Mui") {
|
|
52
52
|
const t = {};
|
|
53
53
|
return n.forEach((r) => {
|
|
54
|
-
t[r] =
|
|
54
|
+
t[r] = h(e, r, s);
|
|
55
55
|
}), t;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function b(e) {
|
|
58
58
|
return Object.keys(e).length === 0;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function d(e = null) {
|
|
61
61
|
const n = a.useContext(g);
|
|
62
|
-
return !n ||
|
|
62
|
+
return !n || b(n) ? e : n;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
function j(e =
|
|
66
|
-
return
|
|
64
|
+
const T = y();
|
|
65
|
+
function j(e = T) {
|
|
66
|
+
return d(e);
|
|
67
67
|
}
|
|
68
68
|
function O(e) {
|
|
69
69
|
const {
|
|
@@ -71,7 +71,7 @@ function O(e) {
|
|
|
71
71
|
name: s,
|
|
72
72
|
props: t
|
|
73
73
|
} = e;
|
|
74
|
-
return !n || !n.components || !n.components[s] || !n.components[s].defaultProps ? t :
|
|
74
|
+
return !n || !n.components || !n.components[s] || !n.components[s].defaultProps ? t : l(n.components[s].defaultProps, t);
|
|
75
75
|
}
|
|
76
76
|
function P({
|
|
77
77
|
props: e,
|
|
@@ -101,7 +101,9 @@ export {
|
|
|
101
101
|
$ as b,
|
|
102
102
|
p as c,
|
|
103
103
|
j as d,
|
|
104
|
+
d as e,
|
|
105
|
+
O as f,
|
|
104
106
|
S as g,
|
|
105
|
-
|
|
107
|
+
l as r,
|
|
106
108
|
_ as u
|
|
107
109
|
};
|