@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.
Files changed (42) hide show
  1. package/dist/{DialogContent-CtA2aNum.js → DialogContent-B8pD_s9h.js} +1 -1
  2. package/dist/{Modal-DzZo-vlm.js → Modal-DpmJpbob.js} +206 -195
  3. package/dist/{Select-ush_fSWy.js → Select-DuyWoyoF.js} +1 -1
  4. package/dist/{TextField-BjFXx91l.js → TextField-CdKnj6de.js} +1 -1
  5. package/dist/assets/index3.css +1 -0
  6. package/dist/components/confirm/dialog.js +2 -2
  7. package/dist/components/confirm/index.js +1 -1
  8. package/dist/components/document-viewer/components/action-buttons/index.js +21 -0
  9. package/dist/components/document-viewer/components/navigation/index.js +26 -0
  10. package/dist/components/document-viewer/components/viewer/custom-renders/txt.js +5 -0
  11. package/dist/components/document-viewer/components/viewer/index.js +38 -0
  12. package/dist/components/document-viewer/data.js +4 -0
  13. package/dist/components/document-viewer/index.js +52 -0
  14. package/dist/components/document-viewer/logic.js +44 -0
  15. package/dist/components/document-viewer/styled.js +39 -0
  16. package/dist/components/document-viewer/utils.js +25 -0
  17. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  18. package/dist/components/instance-form/components/variable/index.js +7 -7
  19. package/dist/components/instance-form/components/variables/index.js +1 -1
  20. package/dist/components/property-mapping/index.js +1 -1
  21. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  22. package/dist/components/range-selector/components/date-range/index.js +1 -1
  23. package/dist/components/range-selector/index.js +1 -1
  24. package/dist/components/template-form/components/property-list/index.js +3 -3
  25. package/dist/components/template-form/components/property-list/property-list-form.js +3 -3
  26. package/dist/components/template-form/components/recognition-property-list/index.js +2 -2
  27. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +2 -2
  28. package/dist/components/template-form/index.js +2 -2
  29. package/dist/components/template-property-filters/property.js +1 -1
  30. package/dist/components/tree-select/index.js +2 -2
  31. package/dist/{dialog-BDt1r9fh.js → dialog-C7_6_FBz.js} +1 -1
  32. package/dist/empty-GlqisfcO-GlqisfcO.js +4 -0
  33. package/dist/index-4HENfCPg-CwPLzyfw.js +3350 -0
  34. package/dist/index-BepDdkdq-BilQlvph.js +42 -0
  35. package/dist/{index-CAaDu0NI.js → index-CNMnXD0q.js} +1349 -1338
  36. package/dist/{index-D-mTkx9Q.js → index-CdecY907.js} +63 -61
  37. package/dist/main.d.ts +12 -0
  38. package/dist/main.js +54 -52
  39. package/dist/{property-list-form-CLSTkOmv.js → property-list-form-DALcsCp5.js} +92 -104
  40. package/dist/txt-U0b7DL6j.js +19250 -0
  41. package/dist/url-DQYFKQ_E-BH63-AZh.js +558 -0
  42. package/package.json +2 -1
@@ -1,44 +1,44 @@
1
- import K, { jsx as t, jsxs as c, Fragment as J } from "react/jsx-runtime";
2
- import * as Q from "react";
3
- import F from "react";
4
- import X from "lodash";
5
- import { r as Z, i as ee } from "./createSvgIcon-BXjHHQ0B.js";
6
- import { DATA_TYPES as R, COORDINATE_FORMAT as te, PRIVACY_PRESERVATION_METHOD as Y } from "./constants/index.js";
7
- import { T as h } from "./TextField-BjFXx91l.js";
8
- import { f as re, F as w, I as C } from "./InputLabel-ClDXuWBr.js";
9
- import { S as P } from "./Select-ush_fSWy.js";
10
- import { M as _ } from "./MenuItem-Lcjh1XlV.js";
11
- import { a as M, _ as ae } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
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 oe, u as le, c as ne, a as ie } from "./useThemeProps-BlXpIqSE.js";
14
- import { s as se } from "./styled-DkqItiLo.js";
15
- import { g as de } from "./createTheme-DVoJnXAT.js";
16
- import { u as me } from "./useFormControl-CatNKXAi.js";
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 $ } from "./Button-jy67CcTH.js";
21
- function ue(a) {
22
- return de("MuiFormGroup", a);
20
+ import { B as Y } from "./Button-jy67CcTH.js";
21
+ function me(a) {
22
+ return se("MuiFormGroup", a);
23
23
  }
24
- oe("MuiFormGroup", ["root", "row", "error"]);
25
- const pe = ["className", "row"], fe = (a) => {
24
+ ae("MuiFormGroup", ["root", "row", "error"]);
25
+ const ue = ["className", "row"], pe = (a) => {
26
26
  const {
27
27
  classes: i,
28
- row: m,
28
+ row: c,
29
29
  error: s
30
30
  } = a;
31
- return ie({
32
- root: ["root", m && "row", s && "error"]
33
- }, ue, i);
34
- }, ye = se("div", {
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: m
39
+ ownerState: c
40
40
  } = a;
41
- return [i.root, m.row && i.row];
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
- })), z = /* @__PURE__ */ Q.forwardRef(function(i, m) {
52
- const s = le({
51
+ })), $ = /* @__PURE__ */ J.forwardRef(function(i, c) {
52
+ const s = oe({
53
53
  props: i,
54
54
  name: "MuiFormGroup"
55
55
  }), {
56
- className: b,
56
+ className: h,
57
57
  row: e = !1
58
- } = s, y = ae(s, pe), u = me(), v = re({
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: v.error
65
- }), g = fe(o);
66
- return /* @__PURE__ */ t(ye, M({
67
- className: ne(g.root, b),
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: m
69
+ ref: c
70
70
  }, y));
71
71
  });
72
- process.env.NODE_ENV !== "production" && (z.propTypes = {
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 = {}, he = ee;
99
+ var q = {}, ye = Z;
100
100
  Object.defineProperty(q, "__esModule", {
101
101
  value: !0
102
102
  });
103
- var H = q.default = void 0, be = he(Z()), ve = K;
104
- H = q.default = (0, be.default)(/* @__PURE__ */ (0, ve.jsx)("path", {
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 Ne({
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: Y[0],
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: m,
123
+ disablePropertyId: c,
124
124
  onSubmit: s,
125
- onCancel: b
125
+ onCancel: h
126
126
  }) {
127
- var D, k, E, S, j, O, W, N, G, V, A, U, B, L;
128
- const [e, y] = F.useState(i), [u, v] = F.useState({
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 T, x;
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(",")), ((x = (T = e.dataTypeInfo) == null ? void 0 : T.innerType) == null ? void 0 : x.type) === "enum" && l === "dataTypeInfo.innerType.enumValues" && (d = d.split(",")), l.includes(".")) {
135
- let I = { ...e };
136
- X.set(I, l, d), y(I);
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((I) => ({
140
- ...I,
139
+ y((x) => ({
140
+ ...x,
141
141
  [l]: d
142
142
  }));
143
- }, g = () => {
143
+ }, P = () => {
144
144
  if (!e.name) {
145
- v({ ...u, name: !0 });
145
+ b({ ...u, name: !0 });
146
146
  return;
147
147
  }
148
148
  s(e);
149
149
  };
150
- return F.useEffect(() => (u.name && e.name && v({ ...u, name: !1 }), () => {
151
- }), [e.name]), F.useEffect(() => {
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: T } = e.dataTypeInfo;
155
- (r || l || d || T) && y((x) => ({ ...x, dataTypeInfo: {} }));
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__ */ c(J, { children: [
160
+ }, [e.type]), /* @__PURE__ */ m(K, { children: [
161
161
  /* @__PURE__ */ t(
162
- h,
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
- h,
179
+ w,
180
180
  {
181
181
  label: "Property ID",
182
182
  name: "propertyId",
183
183
  variant: a,
184
184
  fullWidth: !0,
185
- disabled: m,
185
+ disabled: c,
186
186
  sx: { mb: 2 },
187
187
  value: e.propertyId,
188
188
  onChange: o
189
189
  }
190
190
  ),
191
- /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
192
- /* @__PURE__ */ t(C, { id: "type-select-label", children: "Type" }),
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
- P,
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(_, { value: r, children: r }, l))
202
+ children: R.map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
203
203
  }
204
204
  )
205
205
  ] }),
206
- e.type === "date" && /* @__PURE__ */ t(
207
- h,
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
- P,
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: te.map((r, l) => /* @__PURE__ */ t(_, { value: r, children: r }, l))
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__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
234
- /* @__PURE__ */ t(C, { id: "composite-list-select-label", children: "Inner Type" }),
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
- P,
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: (S = (E = e.dataTypeInfo) == null ? void 0 : E.innerType) == null ? void 0 : S.type,
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(_, { value: r, children: r }, l))
234
+ ).map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
247
235
  }
248
236
  )
249
237
  ] }),
250
- (e.type === "enum" || ((O = (j = e.dataTypeInfo) == null ? void 0 : j.innerType) == null ? void 0 : O.type) === "enum") && /* @__PURE__ */ t(
251
- h,
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: ((N = (W = e.dataTypeInfo) == null ? void 0 : W.innerType) == null ? void 0 : N.type) === "enum" ? "dataTypeInfo.innerType.enumValues" : "dataTypeInfo.enumValues",
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 = (G = e.dataTypeInfo) == null ? void 0 : G.innerType) == null ? void 0 : V.type) === "enum" ? (U = (A = e.dataTypeInfo.innerType) == null ? void 0 : A.enumValues) == null ? void 0 : U.join(",") : (L = (B = e.dataTypeInfo) == null ? void 0 : B.enumValues) == null ? void 0 : L.join(","),
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
- h,
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__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
276
- /* @__PURE__ */ t(C, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
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
- P,
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: Y.map((r, l) => /* @__PURE__ */ t(_, { value: r, children: r }, l))
274
+ children: L.map((r, l) => /* @__PURE__ */ t(g, { value: r, children: r }, l))
287
275
  }
288
276
  )
289
277
  ] }),
290
- /* @__PURE__ */ c(z, { row: !0, sx: { mb: 2 }, children: [
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__ */ c(ce, { display: "flex", justifyContent: "flex-end", children: [
376
- /* @__PURE__ */ t($, { variant: "contained", onClick: b, sx: { marginRight: 2 }, children: "Cancel" }),
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(H, {}),
382
- onClick: g,
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
- z as F,
391
- Ne as a
378
+ $ as F,
379
+ We as a
392
380
  };