@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { Box as n, AppBar as d, Toolbar as l } from "@mui/material";
|
|
3
|
+
import { ActionButtons as c } from "./components/action-buttons/index.js";
|
|
4
|
+
import m from "./components/viewer/index.js";
|
|
5
|
+
import { useDocumentViewerLogic as g } from "./logic.js";
|
|
6
|
+
import { SidePanelToggleButton as s, SidePanel as f } from "./styled.js";
|
|
7
|
+
import { DoubleArrow as u } from "@mui/icons-material";
|
|
8
|
+
const S = (r) => {
|
|
9
|
+
const { refs: a, state: e, action: t } = g(r);
|
|
10
|
+
return /* @__PURE__ */ i(n, { bgcolor: "#ededed", children: [
|
|
11
|
+
/* @__PURE__ */ o(d, { color: "inherit", children: /* @__PURE__ */ i(l, { sx: { justifyContent: "space-between" }, children: [
|
|
12
|
+
/* @__PURE__ */ o(n, { children: r.logo }),
|
|
13
|
+
/* @__PURE__ */ o(n, {}),
|
|
14
|
+
/* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(
|
|
15
|
+
c,
|
|
16
|
+
{
|
|
17
|
+
onBookmark: r.onBookmark,
|
|
18
|
+
onDownload: t.onDownload,
|
|
19
|
+
onFullScreen: t.onFullScreen,
|
|
20
|
+
onPrint: t.onPrint
|
|
21
|
+
}
|
|
22
|
+
) })
|
|
23
|
+
] }) }),
|
|
24
|
+
/* @__PURE__ */ o(l, {}),
|
|
25
|
+
/* @__PURE__ */ o(n, { mr: `${e.rightPanelWidth}px`, sx: { transition: "all .3s" }, children: e.blob ? /* @__PURE__ */ o(m, { ref: a.viewer, data: e.blob }) : null }),
|
|
26
|
+
r.rightPanel ? /* @__PURE__ */ i(h, { children: [
|
|
27
|
+
/* @__PURE__ */ o(
|
|
28
|
+
s,
|
|
29
|
+
{
|
|
30
|
+
sx: { right: e.rightPanelWidth },
|
|
31
|
+
onClick: t.toggleRightPanel,
|
|
32
|
+
children: /* @__PURE__ */ o(
|
|
33
|
+
u,
|
|
34
|
+
{
|
|
35
|
+
sx: {
|
|
36
|
+
fontSize: 14,
|
|
37
|
+
transform: `rotate(${e.rightPanelWidth ? 0 : 180}deg)`
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ i(f, { width: e.rightPanelWidth, right: 0, children: [
|
|
44
|
+
/* @__PURE__ */ o(l, {}),
|
|
45
|
+
r.rightPanel
|
|
46
|
+
] })
|
|
47
|
+
] }) : null
|
|
48
|
+
] });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
S as DocumentViewer
|
|
52
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useRef as f, useState as i, useEffect as b } from "react";
|
|
2
|
+
import { b64toBlob as g, printBlob as p, downloadBlob as w } from "./utils.js";
|
|
3
|
+
const D = ({
|
|
4
|
+
data: t,
|
|
5
|
+
title: s,
|
|
6
|
+
rightPanel: c,
|
|
7
|
+
rightPanelWidth: n = 450
|
|
8
|
+
}) => {
|
|
9
|
+
const o = f(null), [e, u] = i();
|
|
10
|
+
b(() => ((async () => {
|
|
11
|
+
const a = await g(t, "application/pdf");
|
|
12
|
+
u(a);
|
|
13
|
+
})(), () => {
|
|
14
|
+
}), [t]);
|
|
15
|
+
const [r, l] = i(
|
|
16
|
+
c ? n : 0
|
|
17
|
+
);
|
|
18
|
+
return {
|
|
19
|
+
refs: {
|
|
20
|
+
viewer: o
|
|
21
|
+
},
|
|
22
|
+
state: {
|
|
23
|
+
blob: e,
|
|
24
|
+
rightPanelWidth: r
|
|
25
|
+
},
|
|
26
|
+
action: {
|
|
27
|
+
onPrint: () => {
|
|
28
|
+
e && p(e);
|
|
29
|
+
},
|
|
30
|
+
onFullScreen: () => {
|
|
31
|
+
o.current && o.current.requestFullscreen();
|
|
32
|
+
},
|
|
33
|
+
onDownload: () => {
|
|
34
|
+
e && w(e, s);
|
|
35
|
+
},
|
|
36
|
+
toggleRightPanel: () => {
|
|
37
|
+
l(r ? 0 : n);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
D as useDocumentViewerLogic
|
|
44
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { styled as o, Button as r, alpha as n, InputBase as e, Box as i } from "@mui/material";
|
|
2
|
+
const a = o(r)(({ theme: t }) => ({
|
|
3
|
+
color: t.palette.grey[500],
|
|
4
|
+
minWidth: "auto",
|
|
5
|
+
"&:hover": {
|
|
6
|
+
backgroundColor: n(t.palette.grey[500], 0.15),
|
|
7
|
+
color: t.palette.grey[700]
|
|
8
|
+
}
|
|
9
|
+
})), d = o(e)(() => ({
|
|
10
|
+
border: "1px solid",
|
|
11
|
+
borderColor: "#E9E9EA",
|
|
12
|
+
background: "#F8F8F8",
|
|
13
|
+
width: 40,
|
|
14
|
+
fontSize: 14,
|
|
15
|
+
"& .MuiInputBase-input": {
|
|
16
|
+
textAlign: "center"
|
|
17
|
+
}
|
|
18
|
+
})), s = o(i)({
|
|
19
|
+
position: "fixed",
|
|
20
|
+
top: 0,
|
|
21
|
+
bottom: 0,
|
|
22
|
+
backgroundColor: "#fff",
|
|
23
|
+
transition: "all .3s",
|
|
24
|
+
overflow: "auto"
|
|
25
|
+
}), p = o(a)({
|
|
26
|
+
position: "fixed",
|
|
27
|
+
top: 75,
|
|
28
|
+
marginRight: 10,
|
|
29
|
+
background: "#fff",
|
|
30
|
+
borderRadius: 4,
|
|
31
|
+
border: "1px solid rgba(0, 0, 0, 0.12)",
|
|
32
|
+
transition: "all .3s"
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
a as Button,
|
|
36
|
+
d as Input,
|
|
37
|
+
s as SidePanel,
|
|
38
|
+
p as SidePanelToggleButton
|
|
39
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const c = async (t, n = "") => await (await fetch(`data:${n};base64,${t}`)).blob();
|
|
2
|
+
function a(t, n = "file.txt") {
|
|
3
|
+
const e = URL.createObjectURL(t), o = document.createElement("a");
|
|
4
|
+
o.href = e, o.download = n, document.body.appendChild(o), o.dispatchEvent(
|
|
5
|
+
new MouseEvent("click", {
|
|
6
|
+
bubbles: !0,
|
|
7
|
+
cancelable: !0,
|
|
8
|
+
view: window
|
|
9
|
+
})
|
|
10
|
+
), document.body.removeChild(o);
|
|
11
|
+
}
|
|
12
|
+
const b = (t) => {
|
|
13
|
+
const n = URL.createObjectURL(t), e = document.createElement("iframe");
|
|
14
|
+
document.body.appendChild(e), e.style.display = "none", e.src = n, e.onload = function() {
|
|
15
|
+
setTimeout(function() {
|
|
16
|
+
var o;
|
|
17
|
+
e.focus(), (o = e.contentWindow) == null || o.print();
|
|
18
|
+
}, 1);
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
c as b64toBlob,
|
|
23
|
+
a as downloadBlob,
|
|
24
|
+
b as printBlob
|
|
25
|
+
};
|
|
@@ -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-
|
|
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 "
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
+
import { D as c } from "../../../../index-CNMnXD0q.js";
|
|
7
7
|
function j({
|
|
8
8
|
value: n,
|
|
9
9
|
innerType: e,
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
11
|
-
import { D } from "../../../../dialog-
|
|
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-
|
|
4
|
+
import { a as b } from "../../../../property-list-form-DALcsCp5.js";
|
|
5
5
|
import "../../../../constants/index.js";
|
|
6
|
-
import "../../../../TextField-
|
|
6
|
+
import "../../../../TextField-CdKnj6de.js";
|
|
7
7
|
import "../../../../InputLabel-ClDXuWBr.js";
|
|
8
|
-
import "../../../../Select-
|
|
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-
|
|
11
|
-
import { D as b } from "../../../../dialog-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
-
import { F as g } from "../../property-list-form-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|