@hybridcore/ui 1.5.13 → 1.5.15

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 (41) 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 +16 -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 +35 -0
  12. package/dist/components/document-viewer/data.js +4 -0
  13. package/dist/components/document-viewer/index.js +19 -0
  14. package/dist/components/document-viewer/styled.js +22 -0
  15. package/dist/components/document-viewer/utils.js +4 -0
  16. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  17. package/dist/components/instance-form/components/variable/index.js +7 -7
  18. package/dist/components/instance-form/components/variables/index.js +1 -1
  19. package/dist/components/property-mapping/index.js +1 -1
  20. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  21. package/dist/components/range-selector/components/date-range/index.js +1 -1
  22. package/dist/components/range-selector/index.js +1 -1
  23. package/dist/components/template-form/components/property-list/index.js +3 -3
  24. package/dist/components/template-form/components/property-list/property-list-form.js +3 -3
  25. package/dist/components/template-form/components/recognition-property-list/index.js +2 -2
  26. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +2 -2
  27. package/dist/components/template-form/index.js +2 -2
  28. package/dist/components/template-property-filters/property.js +1 -1
  29. package/dist/components/tree-select/index.js +2 -2
  30. package/dist/{dialog-BDt1r9fh.js → dialog-C7_6_FBz.js} +1 -1
  31. package/dist/empty-GlqisfcO-GlqisfcO.js +4 -0
  32. package/dist/index-4HENfCPg-CwPLzyfw.js +3350 -0
  33. package/dist/index-BepDdkdq-BilQlvph.js +42 -0
  34. package/dist/{index-CAaDu0NI.js → index-CNMnXD0q.js} +1349 -1338
  35. package/dist/{index-D-mTkx9Q.js → index-CdecY907.js} +63 -61
  36. package/dist/main.d.ts +1 -0
  37. package/dist/main.js +1 -1
  38. package/dist/{property-list-form-CLSTkOmv.js → property-list-form-DALcsCp5.js} +92 -104
  39. package/dist/txt-U0b7DL6j.js +19250 -0
  40. package/dist/url-DQYFKQ_E-BH63-AZh.js +558 -0
  41. package/package.json +2 -1
@@ -0,0 +1,19 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { Box as e, AppBar as c, Toolbar as i } from "@mui/material";
3
+ import { ActionButtons as d } from "./components/action-buttons/index.js";
4
+ import l from "./components/viewer/index.js";
5
+ const f = ({
6
+ logo: t,
7
+ data: n
8
+ }) => /* @__PURE__ */ o(e, { bgcolor: "#ededed", children: [
9
+ /* @__PURE__ */ r(c, { color: "inherit", children: /* @__PURE__ */ o(i, { sx: { justifyContent: "space-between" }, children: [
10
+ /* @__PURE__ */ r(e, { children: t }),
11
+ /* @__PURE__ */ r(e, {}),
12
+ /* @__PURE__ */ r(e, { children: /* @__PURE__ */ r(d, {}) })
13
+ ] }) }),
14
+ /* @__PURE__ */ r(i, {}),
15
+ /* @__PURE__ */ r(e, { children: /* @__PURE__ */ r(l, { data: n }) })
16
+ ] });
17
+ export {
18
+ f as DocumentViewer
19
+ };
@@ -0,0 +1,22 @@
1
+ import { styled as o, Button as r, alpha as e, InputBase as n } from "@mui/material";
2
+ const l = o(r)(({ theme: t }) => ({
3
+ color: t.palette.grey[500],
4
+ minWidth: "auto",
5
+ "&:hover": {
6
+ backgroundColor: e(t.palette.grey[500], 0.15),
7
+ color: t.palette.grey[700]
8
+ }
9
+ })), p = o(n)(() => ({
10
+ border: "1px solid",
11
+ borderColor: "#E9E9EA",
12
+ background: "#F8F8F8",
13
+ width: 40,
14
+ fontSize: 14,
15
+ "& .MuiInputBase-input": {
16
+ textAlign: "center"
17
+ }
18
+ }));
19
+ export {
20
+ l as Button,
21
+ p as Input
22
+ };
@@ -0,0 +1,4 @@
1
+ const e = async (b, o = "") => await (await fetch(`data:${o};base64,${b}`)).blob();
2
+ export {
3
+ e as b64toBlob
4
+ };
@@ -3,7 +3,7 @@ import "@mui/material";
3
3
  import "./styled.js";
4
4
  import "@mui/icons-material";
5
5
  import "../../../../hooks/useToggle.js";
6
- import { C as l } from "../../../../index-D-mTkx9Q.js";
6
+ import { C as l } from "../../../../index-CdecY907.js";
7
7
  import "react";
8
8
  import "lodash";
9
9
  import "dayjs";
@@ -1,17 +1,17 @@
1
1
  import "react/jsx-runtime";
2
- import "lodash";
3
- import "dayjs";
4
- import { V as g } from "../../../../index-D-mTkx9Q.js";
5
- import "@mui/material";
6
2
  import "@mui/icons-material";
3
+ import "@mui/material";
4
+ import "dayjs";
5
+ import "lodash";
6
+ import { V as g } from "../../../../index-CdecY907.js";
7
+ import "../../../date-time-picker/index.js";
7
8
  import "../../../geometry-picker/index.js";
8
9
  import "../../../phone-input/index.js";
9
- import "../../../date-time-picker/index.js";
10
- import "../../../../TextField-BjFXx91l.js";
10
+ import "../../../../TextField-CdKnj6de.js";
11
11
  import "../../../../FormControlLabel-BNT5EI0b.js";
12
12
  import "../../../../Checkbox-B0P8LhCl.js";
13
13
  import "../../../../InputLabel-ClDXuWBr.js";
14
- import "../../../../Select-ush_fSWy.js";
14
+ import "../../../../Select-DuyWoyoF.js";
15
15
  import "../../../../MenuItem-Lcjh1XlV.js";
16
16
  import "../../../../Box-SSMZuKnS.js";
17
17
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, Fragment as l, jsxs as I } from "react/jsx-runtime";
2
2
  import _ from "react";
3
- import { V as b } from "../../../../index-D-mTkx9Q.js";
3
+ import { V as b } from "../../../../index-CdecY907.js";
4
4
  import g from "lodash";
5
5
  import { Box as i } from "@mui/material";
6
6
  function B({
@@ -5,7 +5,7 @@ import { DataGrid as fe } from "@mui/x-data-grid";
5
5
  import { useState as H, useEffect as ue } from "react";
6
6
  import h from "lodash";
7
7
  import { e as ye } from "../../ol-9hySGI6D.js";
8
- import { V as he } from "../../index-D-mTkx9Q.js";
8
+ import { V as he } from "../../index-CdecY907.js";
9
9
  import { RangeSelector as me } from "../range-selector/index.js";
10
10
  const $e = ({
11
11
  open: F,
@@ -3,7 +3,7 @@ import { Box as f, TextField as u } from "@mui/material";
3
3
  import x from "../number-range/index.js";
4
4
  import I from "../string-range/index.js";
5
5
  import C from "../geometry-range/index.js";
6
- import { D as c } from "../../../../index-CAaDu0NI.js";
6
+ import { D as c } from "../../../../index-CNMnXD0q.js";
7
7
  function j({
8
8
  value: n,
9
9
  innerType: e,
@@ -3,7 +3,7 @@ import "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "dayjs";
5
5
  import "../../../../hooks/useToggle.js";
6
- import { D as e } from "../../../../index-CAaDu0NI.js";
6
+ import { D as e } from "../../../../index-CNMnXD0q.js";
7
7
  export {
8
8
  e as default
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, Fragment as a } from "react/jsx-runtime";
2
2
  import n from "lodash";
3
3
  import f from "./components/composite-list-range/index.js";
4
- import { D as g } from "../../index-CAaDu0NI.js";
4
+ import { D as g } from "../../index-CNMnXD0q.js";
5
5
  import u from "./components/geometry-range/index.js";
6
6
  import l from "./components/number-range/index.js";
7
7
  import s from "./components/string-range/index.js";
@@ -2,13 +2,13 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { DataGrid as d } from "@mui/x-data-grid";
3
3
  import { A as n, a as m, d as s } from "../../../../Add-BKnWHZ7A.js";
4
4
  import p from "./property-list-columns.js";
5
- import { a as c } from "../../../../property-list-form-CLSTkOmv.js";
5
+ import { a as c } from "../../../../property-list-form-DALcsCp5.js";
6
6
  import u from "./property-list-logic.js";
7
7
  import { B as f } from "../../../../Box-SSMZuKnS.js";
8
8
  import { T as y } from "../../../../Typography-CLq43OVQ.js";
9
9
  import { B as h } from "../../../../Button-jy67CcTH.js";
10
- import { D as g, a as b } from "../../../../DialogContent-CtA2aNum.js";
11
- import { D } from "../../../../dialog-BDt1r9fh.js";
10
+ import { D as g, a as b } from "../../../../DialogContent-B8pD_s9h.js";
11
+ import { D } from "../../../../dialog-C7_6_FBz.js";
12
12
  function v(t) {
13
13
  var a;
14
14
  const { state: o, action: r } = u(t);
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "lodash";
4
- import { a as b } from "../../../../property-list-form-CLSTkOmv.js";
4
+ import { a as b } from "../../../../property-list-form-DALcsCp5.js";
5
5
  import "../../../../constants/index.js";
6
- import "../../../../TextField-BjFXx91l.js";
6
+ import "../../../../TextField-CdKnj6de.js";
7
7
  import "../../../../InputLabel-ClDXuWBr.js";
8
- import "../../../../Select-ush_fSWy.js";
8
+ import "../../../../Select-DuyWoyoF.js";
9
9
  import "../../../../MenuItem-Lcjh1XlV.js";
10
10
  import "../../../../FormControlLabel-BNT5EI0b.js";
11
11
  import "../../../../Checkbox-B0P8LhCl.js";
@@ -7,8 +7,8 @@ import p from "./recognition-property-list-logic.js";
7
7
  import { B as g } from "../../../../Box-SSMZuKnS.js";
8
8
  import { T as u } from "../../../../Typography-CLq43OVQ.js";
9
9
  import { B as h } from "../../../../Button-jy67CcTH.js";
10
- import { D as f, a as y } from "../../../../DialogContent-CtA2aNum.js";
11
- import { D as b } from "../../../../dialog-BDt1r9fh.js";
10
+ import { D as f, a as y } from "../../../../DialogContent-B8pD_s9h.js";
11
+ import { D as b } from "../../../../dialog-C7_6_FBz.js";
12
12
  function L(i) {
13
13
  const { state: l, action: t } = p(i);
14
14
  return /* @__PURE__ */ r(g, { children: [
@@ -3,9 +3,9 @@ import o from "react";
3
3
  import { r as C, i as g } from "../../../../createSvgIcon-BXjHHQ0B.js";
4
4
  import { RECOGNITION_PROPERTY_OWNER_TYPE as h, RECOGNITION_PROPERTY_TYPE as T, RECOGNITION_PROPERTY_TERM_MATCH as v } from "../../../../constants/index.js";
5
5
  import { F as c, I as u } from "../../../../InputLabel-ClDXuWBr.js";
6
- import { S as d } from "../../../../Select-ush_fSWy.js";
6
+ import { S as d } from "../../../../Select-DuyWoyoF.js";
7
7
  import { M as m } from "../../../../MenuItem-Lcjh1XlV.js";
8
- import { T as b } from "../../../../TextField-BjFXx91l.js";
8
+ import { T as b } from "../../../../TextField-CdKnj6de.js";
9
9
  import { B as M } from "../../../../Box-SSMZuKnS.js";
10
10
  import { B as y } from "../../../../Button-jy67CcTH.js";
11
11
  var p = {}, q = g;
@@ -9,8 +9,8 @@ import { getNestedChildrenFromMap as L } from "../../utils/ontology.js";
9
9
  import { TreeSelect as _ } from "../tree-select/index.js";
10
10
  import { FormLabel as w, Button as b } from "@mui/material";
11
11
  import A from "./components/select-icon/index.js";
12
- import { T as m } from "../../TextField-BjFXx91l.js";
13
- import { F as g } from "../../property-list-form-CLSTkOmv.js";
12
+ import { T as m } from "../../TextField-CdKnj6de.js";
13
+ import { F as g } from "../../property-list-form-DALcsCp5.js";
14
14
  import { F as d } from "../../FormControlLabel-BNT5EI0b.js";
15
15
  import { C as c } from "../../Checkbox-B0P8LhCl.js";
16
16
  import { B as p } from "../../Box-SSMZuKnS.js";
@@ -5,7 +5,7 @@ import { KeyboardArrowUp as z, KeyboardArrowDown as L } from "@mui/icons-materia
5
5
  import { Typography as f, FormLabel as P, FormGroup as D, Button as W } from "@mui/material";
6
6
  import { DatePicker as C } from "@mui/x-date-pickers";
7
7
  import { B as d } from "../../Box-SSMZuKnS.js";
8
- import { T as b } from "../../TextField-BjFXx91l.js";
8
+ import { T as b } from "../../TextField-CdKnj6de.js";
9
9
  import { F as O } from "../../FormControlLabel-BNT5EI0b.js";
10
10
  import { C as k } from "../../Checkbox-B0P8LhCl.js";
11
11
  import { F as B } from "../../InputLabel-ClDXuWBr.js";
@@ -4,9 +4,9 @@ import { TreeViewFilter as _ } from "../treeview-filter/index.js";
4
4
  import s from "lodash";
5
5
  import { flattenNestedTemplates as b } from "../../utils/ontology.js";
6
6
  import { F as A, I as M } from "../../InputLabel-ClDXuWBr.js";
7
- import { S as j } from "../../Select-ush_fSWy.js";
7
+ import { S as j } from "../../Select-DuyWoyoF.js";
8
8
  import { M as B } from "../../MenuItem-Lcjh1XlV.js";
9
- import { D as k, a as w, b as L } from "../../DialogContent-CtA2aNum.js";
9
+ import { D as k, a as w, b as L } from "../../DialogContent-B8pD_s9h.js";
10
10
  import { B as N } from "../../Button-jy67CcTH.js";
11
11
  const U = ({
12
12
  data: m,
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as p } from "react/jsx-runtime";
2
2
  import { confirmable as x } from "react-confirm";
3
3
  import { IconButton as h } from "@mui/material";
4
4
  import { Close as C } from "@mui/icons-material";
5
- import { c as D, g as T, D as b, a as y, b as B } from "./DialogContent-CtA2aNum.js";
5
+ import { c as D, g as T, D as b, a as y, b as B } from "./DialogContent-B8pD_s9h.js";
6
6
  import { _ as j, a as v } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
7
7
  import * as d from "react";
8
8
  import { P as o } from "./createTheme-DrgvKMA_.js";
@@ -0,0 +1,4 @@
1
+ var a = null;
2
+ export {
3
+ a as default
4
+ };