@hybridcore/ui 1.5.13 → 1.5.16
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/{DialogContent-CtA2aNum.js → DialogContent-B8pD_s9h.js} +1 -1
- package/dist/{Modal-DzZo-vlm.js → Modal-DpmJpbob.js} +206 -195
- package/dist/{Select-ush_fSWy.js → Select-DuyWoyoF.js} +1 -1
- package/dist/{TextField-BjFXx91l.js → TextField-CdKnj6de.js} +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/document-viewer/components/action-buttons/index.js +21 -0
- package/dist/components/document-viewer/components/navigation/index.js +26 -0
- package/dist/components/document-viewer/components/viewer/custom-renders/txt.js +5 -0
- package/dist/components/document-viewer/components/viewer/index.js +38 -0
- package/dist/components/document-viewer/data.js +4 -0
- package/dist/components/document-viewer/index.js +52 -0
- package/dist/components/document-viewer/logic.js +44 -0
- package/dist/components/document-viewer/styled.js +39 -0
- package/dist/components/document-viewer/utils.js +25 -0
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -7
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +1 -1
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +3 -3
- package/dist/components/template-form/components/recognition-property-list/index.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +2 -2
- package/dist/components/template-form/index.js +2 -2
- package/dist/components/template-property-filters/property.js +1 -1
- package/dist/components/tree-select/index.js +2 -2
- package/dist/{dialog-BDt1r9fh.js → dialog-C7_6_FBz.js} +1 -1
- package/dist/empty-GlqisfcO-GlqisfcO.js +4 -0
- package/dist/index-4HENfCPg-CwPLzyfw.js +3350 -0
- package/dist/index-BepDdkdq-BilQlvph.js +42 -0
- package/dist/{index-CAaDu0NI.js → index-CNMnXD0q.js} +1349 -1338
- package/dist/{index-D-mTkx9Q.js → index-CdecY907.js} +63 -61
- package/dist/main.d.ts +12 -0
- package/dist/main.js +54 -52
- package/dist/{property-list-form-CLSTkOmv.js → property-list-form-DALcsCp5.js} +92 -104
- package/dist/txt-U0b7DL6j.js +19250 -0
- package/dist/url-DQYFKQ_E-BH63-AZh.js +558 -0
- package/package.json +2 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { r as
|
|
6
|
-
import { DATA_TYPES as R, COORDINATE_FORMAT as
|
|
7
|
-
import { T as
|
|
8
|
-
import { f as
|
|
9
|
-
import { S as
|
|
10
|
-
import { M as
|
|
11
|
-
import { a as M, _ as
|
|
1
|
+
import H, { jsx as t, jsxs as m, Fragment as K } from "react/jsx-runtime";
|
|
2
|
+
import * as J from "react";
|
|
3
|
+
import I from "react";
|
|
4
|
+
import Q from "lodash";
|
|
5
|
+
import { r as X, i as Z } from "./createSvgIcon-BXjHHQ0B.js";
|
|
6
|
+
import { DATA_TYPES as R, COORDINATE_FORMAT as ee, PRIVACY_PRESERVATION_METHOD as L } from "./constants/index.js";
|
|
7
|
+
import { T as w } from "./TextField-CdKnj6de.js";
|
|
8
|
+
import { f as te, F as C, I as F } from "./InputLabel-ClDXuWBr.js";
|
|
9
|
+
import { S as _ } from "./Select-DuyWoyoF.js";
|
|
10
|
+
import { M as g } from "./MenuItem-Lcjh1XlV.js";
|
|
11
|
+
import { a as M, _ as re } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
12
12
|
import { P as n } from "./createTheme-DrgvKMA_.js";
|
|
13
|
-
import { g as
|
|
14
|
-
import { s as
|
|
15
|
-
import { g as
|
|
16
|
-
import { u as
|
|
13
|
+
import { g as ae, u as oe, c as le, a as ne } from "./useThemeProps-BlXpIqSE.js";
|
|
14
|
+
import { s as ie } from "./styled-DkqItiLo.js";
|
|
15
|
+
import { g as se } from "./createTheme-DVoJnXAT.js";
|
|
16
|
+
import { u as de } from "./useFormControl-CatNKXAi.js";
|
|
17
17
|
import { F as p } from "./FormControlLabel-BNT5EI0b.js";
|
|
18
18
|
import { C as f } from "./Checkbox-B0P8LhCl.js";
|
|
19
19
|
import { B as ce } from "./Box-SSMZuKnS.js";
|
|
20
|
-
import { B as
|
|
21
|
-
function
|
|
22
|
-
return
|
|
20
|
+
import { B as Y } from "./Button-jy67CcTH.js";
|
|
21
|
+
function me(a) {
|
|
22
|
+
return se("MuiFormGroup", a);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
const
|
|
24
|
+
ae("MuiFormGroup", ["root", "row", "error"]);
|
|
25
|
+
const ue = ["className", "row"], pe = (a) => {
|
|
26
26
|
const {
|
|
27
27
|
classes: i,
|
|
28
|
-
row:
|
|
28
|
+
row: c,
|
|
29
29
|
error: s
|
|
30
30
|
} = a;
|
|
31
|
-
return
|
|
32
|
-
root: ["root",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
31
|
+
return ne({
|
|
32
|
+
root: ["root", c && "row", s && "error"]
|
|
33
|
+
}, me, i);
|
|
34
|
+
}, fe = ie("div", {
|
|
35
35
|
name: "MuiFormGroup",
|
|
36
36
|
slot: "Root",
|
|
37
37
|
overridesResolver: (a, i) => {
|
|
38
38
|
const {
|
|
39
|
-
ownerState:
|
|
39
|
+
ownerState: c
|
|
40
40
|
} = a;
|
|
41
|
-
return [i.root,
|
|
41
|
+
return [i.root, c.row && i.row];
|
|
42
42
|
}
|
|
43
43
|
})(({
|
|
44
44
|
ownerState: a
|
|
@@ -48,28 +48,28 @@ const pe = ["className", "row"], fe = (a) => {
|
|
|
48
48
|
flexWrap: "wrap"
|
|
49
49
|
}, a.row && {
|
|
50
50
|
flexDirection: "row"
|
|
51
|
-
})),
|
|
52
|
-
const s =
|
|
51
|
+
})), $ = /* @__PURE__ */ J.forwardRef(function(i, c) {
|
|
52
|
+
const s = oe({
|
|
53
53
|
props: i,
|
|
54
54
|
name: "MuiFormGroup"
|
|
55
55
|
}), {
|
|
56
|
-
className:
|
|
56
|
+
className: h,
|
|
57
57
|
row: e = !1
|
|
58
|
-
} = s, y =
|
|
58
|
+
} = s, y = re(s, ue), u = de(), b = te({
|
|
59
59
|
props: s,
|
|
60
60
|
muiFormControl: u,
|
|
61
61
|
states: ["error"]
|
|
62
62
|
}), o = M({}, s, {
|
|
63
63
|
row: e,
|
|
64
|
-
error:
|
|
65
|
-
}),
|
|
66
|
-
return /* @__PURE__ */ t(
|
|
67
|
-
className:
|
|
64
|
+
error: b.error
|
|
65
|
+
}), P = pe(o);
|
|
66
|
+
return /* @__PURE__ */ t(fe, M({
|
|
67
|
+
className: le(P.root, h),
|
|
68
68
|
ownerState: o,
|
|
69
|
-
ref:
|
|
69
|
+
ref: c
|
|
70
70
|
}, y));
|
|
71
71
|
});
|
|
72
|
-
process.env.NODE_ENV !== "production" && (
|
|
72
|
+
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
73
73
|
// ----------------------------- Warning --------------------------------
|
|
74
74
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
75
75
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -96,15 +96,15 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
|
96
96
|
*/
|
|
97
97
|
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
98
98
|
});
|
|
99
|
-
var q = {},
|
|
99
|
+
var q = {}, ye = Z;
|
|
100
100
|
Object.defineProperty(q, "__esModule", {
|
|
101
101
|
value: !0
|
|
102
102
|
});
|
|
103
|
-
var
|
|
104
|
-
|
|
103
|
+
var z = q.default = void 0, he = ye(X()), be = H;
|
|
104
|
+
z = q.default = (0, he.default)(/* @__PURE__ */ (0, be.jsx)("path", {
|
|
105
105
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
106
106
|
}), "Check");
|
|
107
|
-
function
|
|
107
|
+
function We({
|
|
108
108
|
inputVariant: a,
|
|
109
109
|
defaultValues: i = {
|
|
110
110
|
name: "",
|
|
@@ -112,7 +112,7 @@ function Ne({
|
|
|
112
112
|
type: R[0],
|
|
113
113
|
dataTypeInfo: {},
|
|
114
114
|
defaultValue: "",
|
|
115
|
-
privacyPreservationMethod:
|
|
115
|
+
privacyPreservationMethod: L[0],
|
|
116
116
|
required: !1,
|
|
117
117
|
visible: !1,
|
|
118
118
|
editable: !1,
|
|
@@ -120,46 +120,46 @@ function Ne({
|
|
|
120
120
|
temporal: !1,
|
|
121
121
|
unique: !1
|
|
122
122
|
},
|
|
123
|
-
disablePropertyId:
|
|
123
|
+
disablePropertyId: c,
|
|
124
124
|
onSubmit: s,
|
|
125
|
-
onCancel:
|
|
125
|
+
onCancel: h
|
|
126
126
|
}) {
|
|
127
|
-
var
|
|
128
|
-
const [e, y] =
|
|
127
|
+
var k, D, E, S, j, O, W, N, V, G, A, U, B;
|
|
128
|
+
const [e, y] = I.useState(i), [u, b] = I.useState({
|
|
129
129
|
name: !1
|
|
130
130
|
}), o = (r) => {
|
|
131
|
-
var
|
|
131
|
+
var v, T;
|
|
132
132
|
const l = r.target.name;
|
|
133
133
|
let d = r.target.type === "checkbox" ? r.target.checked : r.target.value;
|
|
134
|
-
if (e.type === "enum" && l === "dataTypeInfo.enumValues" && (d = d.split(",")), ((
|
|
135
|
-
let
|
|
136
|
-
|
|
134
|
+
if (e.type === "enum" && l === "dataTypeInfo.enumValues" && (d = d.split(",")), ((T = (v = e.dataTypeInfo) == null ? void 0 : v.innerType) == null ? void 0 : T.type) === "enum" && l === "dataTypeInfo.innerType.enumValues" && (d = d.split(",")), l.includes(".")) {
|
|
135
|
+
let x = { ...e };
|
|
136
|
+
Q.set(x, l, d), y(x);
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
y((
|
|
140
|
-
...
|
|
139
|
+
y((x) => ({
|
|
140
|
+
...x,
|
|
141
141
|
[l]: d
|
|
142
142
|
}));
|
|
143
|
-
},
|
|
143
|
+
}, P = () => {
|
|
144
144
|
if (!e.name) {
|
|
145
|
-
|
|
145
|
+
b({ ...u, name: !0 });
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
s(e);
|
|
149
149
|
};
|
|
150
|
-
return
|
|
151
|
-
}), [e.name]),
|
|
150
|
+
return I.useEffect(() => (u.name && e.name && b({ ...u, name: !1 }), () => {
|
|
151
|
+
}), [e.name]), I.useEffect(() => {
|
|
152
152
|
if (!["date", "coordinate", "composite-list", "enum"].includes(e.type)) {
|
|
153
153
|
if (e.dataTypeInfo) {
|
|
154
|
-
const { coordinateFormat: r, datePattern: l, innerType: d, enumValues:
|
|
155
|
-
(r || l || d ||
|
|
154
|
+
const { coordinateFormat: r, datePattern: l, innerType: d, enumValues: v } = e.dataTypeInfo;
|
|
155
|
+
(r || l || d || v) && y((T) => ({ ...T, dataTypeInfo: {} }));
|
|
156
156
|
}
|
|
157
157
|
return () => {
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
}, [e.type]), /* @__PURE__ */
|
|
160
|
+
}, [e.type]), /* @__PURE__ */ m(K, { children: [
|
|
161
161
|
/* @__PURE__ */ t(
|
|
162
|
-
|
|
162
|
+
w,
|
|
163
163
|
{
|
|
164
164
|
label: "Name",
|
|
165
165
|
name: "name",
|
|
@@ -176,22 +176,22 @@ function Ne({
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
/* @__PURE__ */ t(
|
|
179
|
-
|
|
179
|
+
w,
|
|
180
180
|
{
|
|
181
181
|
label: "Property ID",
|
|
182
182
|
name: "propertyId",
|
|
183
183
|
variant: a,
|
|
184
184
|
fullWidth: !0,
|
|
185
|
-
disabled:
|
|
185
|
+
disabled: c,
|
|
186
186
|
sx: { mb: 2 },
|
|
187
187
|
value: e.propertyId,
|
|
188
188
|
onChange: o
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */ t(
|
|
191
|
+
/* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
192
|
+
/* @__PURE__ */ t(F, { id: "type-select-label", children: "Type" }),
|
|
193
193
|
/* @__PURE__ */ t(
|
|
194
|
-
|
|
194
|
+
_,
|
|
195
195
|
{
|
|
196
196
|
label: "Type",
|
|
197
197
|
name: "type",
|
|
@@ -199,26 +199,14 @@ function Ne({
|
|
|
199
199
|
id: "type-select",
|
|
200
200
|
value: e.type,
|
|
201
201
|
onChange: o,
|
|
202
|
-
children: R.map((r, l) => /* @__PURE__ */ t(
|
|
202
|
+
children: R.map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
|
|
203
203
|
}
|
|
204
204
|
)
|
|
205
205
|
] }),
|
|
206
|
-
e.type === "
|
|
207
|
-
|
|
208
|
-
{
|
|
209
|
-
label: "Date Format",
|
|
210
|
-
name: "dataTypeInfo.datePattern",
|
|
211
|
-
variant: a,
|
|
212
|
-
fullWidth: !0,
|
|
213
|
-
sx: { mb: 2 },
|
|
214
|
-
value: (D = e.dataTypeInfo) == null ? void 0 : D.datePattern,
|
|
215
|
-
onChange: o
|
|
216
|
-
}
|
|
217
|
-
),
|
|
218
|
-
e.type === "coordinate" && /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
219
|
-
/* @__PURE__ */ t(C, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
|
|
206
|
+
e.type === "coordinate" && /* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
207
|
+
/* @__PURE__ */ t(F, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
|
|
220
208
|
/* @__PURE__ */ t(
|
|
221
|
-
|
|
209
|
+
_,
|
|
222
210
|
{
|
|
223
211
|
label: "Coordinate Format",
|
|
224
212
|
name: "dataTypeInfo.coordinateFormat",
|
|
@@ -226,42 +214,42 @@ function Ne({
|
|
|
226
214
|
id: "coordinate-format-select",
|
|
227
215
|
value: (k = e.dataTypeInfo) == null ? void 0 : k.coordinateFormat,
|
|
228
216
|
onChange: o,
|
|
229
|
-
children:
|
|
217
|
+
children: ee.map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
|
|
230
218
|
}
|
|
231
219
|
)
|
|
232
220
|
] }),
|
|
233
|
-
e.type === "composite-list" && /* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */ t(
|
|
221
|
+
e.type === "composite-list" && /* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
222
|
+
/* @__PURE__ */ t(F, { id: "composite-list-select-label", children: "Inner Type" }),
|
|
235
223
|
/* @__PURE__ */ t(
|
|
236
|
-
|
|
224
|
+
_,
|
|
237
225
|
{
|
|
238
226
|
label: "Inner Type",
|
|
239
227
|
name: "dataTypeInfo.innerType.type",
|
|
240
228
|
labelId: "composite-list-select-label",
|
|
241
229
|
id: "composite-list-select",
|
|
242
|
-
value: (
|
|
230
|
+
value: (E = (D = e.dataTypeInfo) == null ? void 0 : D.innerType) == null ? void 0 : E.type,
|
|
243
231
|
onChange: o,
|
|
244
232
|
children: R.filter(
|
|
245
233
|
(r) => r !== "composite-list" && r !== "list"
|
|
246
|
-
).map((r, l) => /* @__PURE__ */ t(
|
|
234
|
+
).map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
|
|
247
235
|
}
|
|
248
236
|
)
|
|
249
237
|
] }),
|
|
250
|
-
(e.type === "enum" || ((
|
|
251
|
-
|
|
238
|
+
(e.type === "enum" || ((j = (S = e.dataTypeInfo) == null ? void 0 : S.innerType) == null ? void 0 : j.type) === "enum") && /* @__PURE__ */ t(
|
|
239
|
+
w,
|
|
252
240
|
{
|
|
253
241
|
label: "Enum Values",
|
|
254
|
-
name: ((
|
|
242
|
+
name: ((W = (O = e.dataTypeInfo) == null ? void 0 : O.innerType) == null ? void 0 : W.type) === "enum" ? "dataTypeInfo.innerType.enumValues" : "dataTypeInfo.enumValues",
|
|
255
243
|
variant: a,
|
|
256
244
|
fullWidth: !0,
|
|
257
245
|
sx: { mb: 2 },
|
|
258
|
-
value: ((V = (
|
|
246
|
+
value: ((V = (N = e.dataTypeInfo) == null ? void 0 : N.innerType) == null ? void 0 : V.type) === "enum" ? (A = (G = e.dataTypeInfo.innerType) == null ? void 0 : G.enumValues) == null ? void 0 : A.join(",") : (B = (U = e.dataTypeInfo) == null ? void 0 : U.enumValues) == null ? void 0 : B.join(","),
|
|
259
247
|
onChange: o,
|
|
260
248
|
helperText: "Add list values with the comma (,) separated string"
|
|
261
249
|
}
|
|
262
250
|
),
|
|
263
251
|
/* @__PURE__ */ t(
|
|
264
|
-
|
|
252
|
+
w,
|
|
265
253
|
{
|
|
266
254
|
label: "Default Value",
|
|
267
255
|
name: "defaultValue",
|
|
@@ -272,10 +260,10 @@ function Ne({
|
|
|
272
260
|
onChange: o
|
|
273
261
|
}
|
|
274
262
|
),
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */ t(
|
|
263
|
+
/* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
|
|
264
|
+
/* @__PURE__ */ t(F, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
|
|
277
265
|
/* @__PURE__ */ t(
|
|
278
|
-
|
|
266
|
+
_,
|
|
279
267
|
{
|
|
280
268
|
label: "Privacy Preservation Method",
|
|
281
269
|
name: "privacyPreservationMethod",
|
|
@@ -283,11 +271,11 @@ function Ne({
|
|
|
283
271
|
id: "privacy-method",
|
|
284
272
|
value: e.privacyPreservationMethod,
|
|
285
273
|
onChange: o,
|
|
286
|
-
children:
|
|
274
|
+
children: L.map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
|
|
287
275
|
}
|
|
288
276
|
)
|
|
289
277
|
] }),
|
|
290
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ m($, { row: !0, sx: { mb: 2 }, children: [
|
|
291
279
|
/* @__PURE__ */ t(
|
|
292
280
|
p,
|
|
293
281
|
{
|
|
@@ -372,14 +360,14 @@ function Ne({
|
|
|
372
360
|
}
|
|
373
361
|
)
|
|
374
362
|
] }),
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */ t(
|
|
363
|
+
/* @__PURE__ */ m(ce, { display: "flex", justifyContent: "flex-end", children: [
|
|
364
|
+
/* @__PURE__ */ t(Y, { variant: "contained", onClick: h, sx: { marginRight: 2 }, children: "Cancel" }),
|
|
377
365
|
/* @__PURE__ */ t(
|
|
378
|
-
|
|
366
|
+
Y,
|
|
379
367
|
{
|
|
380
368
|
variant: "contained",
|
|
381
|
-
startIcon: /* @__PURE__ */ t(
|
|
382
|
-
onClick:
|
|
369
|
+
startIcon: /* @__PURE__ */ t(z, {}),
|
|
370
|
+
onClick: P,
|
|
383
371
|
children: "OK"
|
|
384
372
|
}
|
|
385
373
|
)
|
|
@@ -387,6 +375,6 @@ function Ne({
|
|
|
387
375
|
] });
|
|
388
376
|
}
|
|
389
377
|
export {
|
|
390
|
-
|
|
391
|
-
|
|
378
|
+
$ as F,
|
|
379
|
+
We as a
|
|
392
380
|
};
|