@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
@@ -7,7 +7,7 @@ import { s as V, r as Oe, a as yn } from "./styled-DkqItiLo.js";
7
7
  import { u as Qe } from "./useTheme-B6oa3v5u.js";
8
8
  import { g as ue } from "./createTheme-DVoJnXAT.js";
9
9
  import { jsx as k, jsxs as Ze } from "react/jsx-runtime";
10
- import { g as En, M as Pn, H as Me } from "./Modal-DzZo-vlm.js";
10
+ import { g as En, M as Pn, H as Me } from "./Modal-DpmJpbob.js";
11
11
  import { P as en, i as On } from "./Paper-DRRYGupP.js";
12
12
  import { u as Rn, a as pe, r as Re, e as Cn } from "./ButtonBase-CgQC8DUB.js";
13
13
  import { o as ae } from "./ownerDocument-CUrv0DIK.js";
@@ -7,7 +7,7 @@ import { g as V } from "./createTheme-DVoJnXAT.js";
7
7
  import { jsx as p, jsxs as le } from "react/jsx-runtime";
8
8
  import { f as ie, F as ae, I as de } from "./InputLabel-ClDXuWBr.js";
9
9
  import { u as ce } from "./useId-BHG98T5I.js";
10
- import { S as ue, F as pe } from "./Select-ush_fSWy.js";
10
+ import { S as ue, F as pe } from "./Select-DuyWoyoF.js";
11
11
  import { u as fe } from "./useFormControl-CatNKXAi.js";
12
12
  import { r as me } from "./ButtonBase-CgQC8DUB.js";
13
13
  import { I as be } from "./Input-BAbDr3Tk.js";
@@ -0,0 +1 @@
1
+ #react-doc-viewer #proxy-renderer{background-color:#ededed;min-height:calc(100vh - 85px)}#react-doc-viewer #pdf-controls{position:fixed;z-index:9999;left:50%;top:7px;transform:translate(-50%);box-shadow:none}#react-doc-viewer #pdf-controls button,#react-doc-viewer #pdf-controls a{box-shadow:none;color:#9e9e9e}#react-doc-viewer #pdf-controls #pdf-download{display:none}#react-doc-viewer #image-img{max-width:100%;max-height:100%}#react-doc-viewer #pdf-page-wrapper{margin-top:20px;margin-bottom:20px}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
2
2
  import "react-confirm";
3
3
  import "@mui/material";
4
4
  import "@mui/icons-material";
5
- import "../../DialogContent-CtA2aNum.js";
6
- import { a as f } from "../../dialog-BDt1r9fh.js";
5
+ import "../../DialogContent-B8pD_s9h.js";
6
+ import { a as f } from "../../dialog-C7_6_FBz.js";
7
7
  import "../../Button-jy67CcTH.js";
8
8
  export {
9
9
  f as default
@@ -1,5 +1,5 @@
1
1
  import { createConfirmation as r } from "react-confirm";
2
- import { a as i } from "../../dialog-BDt1r9fh.js";
2
+ import { a as i } from "../../dialog-C7_6_FBz.js";
3
3
  const o = r(i);
4
4
  function f(t, n, e = {
5
5
  cancelButtonText: "Cancel",
@@ -0,0 +1,21 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { Box as m, Divider as t, Tooltip as i } from "@mui/material";
3
+ import { Button as l } from "../../styled.js";
4
+ import { Subject as a, BookmarkBorder as s, PrintOutlined as f, OpenInFull as u, FileDownloadOutlined as h } from "@mui/icons-material";
5
+ const S = ({
6
+ onBookmark: n,
7
+ onDownload: o,
8
+ onFullScreen: r,
9
+ onPrint: c
10
+ }) => /* @__PURE__ */ d(m, { display: "flex", gap: 1, alignItems: "center", children: [
11
+ /* @__PURE__ */ e(l, { disabled: !0, children: /* @__PURE__ */ e(a, { fontSize: "small" }) }),
12
+ /* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
13
+ /* @__PURE__ */ e(i, { title: "Bookmark Document", children: /* @__PURE__ */ e(l, { onClick: n, children: /* @__PURE__ */ e(s, { fontSize: "small" }) }) }),
14
+ /* @__PURE__ */ e(i, { title: "Print", children: /* @__PURE__ */ e(l, { onClick: c, children: /* @__PURE__ */ e(f, { fontSize: "small" }) }) }),
15
+ /* @__PURE__ */ e(i, { title: "Fullscreen", children: /* @__PURE__ */ e(l, { onClick: r, children: /* @__PURE__ */ e(u, { fontSize: "small" }) }) }),
16
+ /* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
17
+ /* @__PURE__ */ e(i, { title: "Download", children: /* @__PURE__ */ e(l, { onClick: o, children: /* @__PURE__ */ e(h, { fontSize: "small" }) }) })
18
+ ] });
19
+ export {
20
+ S as ActionButtons
21
+ };
@@ -0,0 +1,26 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Box as l, Divider as t, Typography as a } from "@mui/material";
3
+ import { Remove as m, Add as d, ChevronLeft as f, ChevronRight as c, ZoomOutMap as h } from "@mui/icons-material";
4
+ import { Button as i, Input as p } from "../../styled.js";
5
+ const I = ({
6
+ currentPage: r,
7
+ totalPage: o
8
+ }) => /* @__PURE__ */ n(l, { display: "flex", gap: 1, alignItems: "center", children: [
9
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(m, { fontSize: "small" }) }),
10
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(d, { fontSize: "small" }) }),
11
+ /* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
12
+ /* @__PURE__ */ e(i, { disabled: r === 1, children: /* @__PURE__ */ e(f, {}) }),
13
+ /* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
14
+ /* @__PURE__ */ e(p, { value: r }),
15
+ /* @__PURE__ */ n(a, { variant: "body2", children: [
16
+ "/",
17
+ o
18
+ ] }),
19
+ /* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
20
+ /* @__PURE__ */ e(i, { disabled: r === o, children: /* @__PURE__ */ e(c, {}) }),
21
+ /* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
22
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(h, {}) })
23
+ ] });
24
+ export {
25
+ I as Navigation
26
+ };
@@ -0,0 +1,5 @@
1
+ import "react/jsx-runtime";
2
+ import { T as a } from "../../../../../txt-U0b7DL6j.js";
3
+ export {
4
+ a as default
5
+ };
@@ -0,0 +1,38 @@
1
+ import { jsx as e, Fragment as o } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { K as s, T as d, o as f, a as i, l as m, s as n, b as u, E as l, d as p, S as c, _ as w, e as R } from "../../../../txt-U0b7DL6j.js";
4
+ import { Box as S } from "@mui/material";
5
+ import '../../../../assets/index3.css';const T = t.forwardRef(function(r, a) {
6
+ return r.data ? /* @__PURE__ */ e(S, { ref: a, overflow: "auto", children: /* @__PURE__ */ e(
7
+ s,
8
+ {
9
+ documents: [{ uri: window.URL.createObjectURL(r.data) }],
10
+ pluginRenderers: [
11
+ d,
12
+ f,
13
+ i,
14
+ m,
15
+ n,
16
+ u,
17
+ l,
18
+ p,
19
+ c,
20
+ w,
21
+ R
22
+ ],
23
+ config: {
24
+ header: {
25
+ disableHeader: !0
26
+ },
27
+ pdfZoom: {
28
+ defaultZoom: 0.5,
29
+ zoomJump: 0.1
30
+ },
31
+ pdfVerticalScrollByDefault: !0
32
+ }
33
+ }
34
+ ) }) : /* @__PURE__ */ e(o, {});
35
+ });
36
+ export {
37
+ T as default
38
+ };