@pdf-viewer/react 1.9.0-beta.6 → 1.9.0-rc.0
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/SearchCloseButton-cbf182aa.js +33 -0
- package/dist/ToolbarLayout.module-201969d2.js +3453 -0
- package/dist/assets/ToolbarLayout.css +1 -1
- package/dist/components/RPController.js +8 -8
- package/dist/components/RPDropFileZone.js +23 -21
- package/dist/components/RPPages.js +17 -18
- package/dist/components/RPProvider.js +14 -15
- package/dist/components/layout/Container.js +11 -10
- package/dist/components/layout/LayoutContainer.js +15 -16
- package/dist/components/layout/RPDefaultLayout.js +14 -76
- package/dist/components/layout/RPLayout.js +22 -22
- package/dist/components/layout/WrapperLayout.js +8 -7
- package/dist/components/layout/sidebar/RPSidebar.js +12 -51
- package/dist/components/layout/sidebar/RPSplitter.js +9 -7
- package/dist/components/layout/sidebar/Thumbnail.js +15 -16
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +24 -305
- package/dist/components/layout/toolbar/FileDownloadTool.js +13 -23
- package/dist/components/layout/toolbar/MenuItem.js +7 -6
- package/dist/components/layout/toolbar/MenuSeparator.js +5 -4
- package/dist/components/layout/toolbar/MostPageTool.js +25 -50
- package/dist/components/layout/toolbar/OtherTool.js +22 -115
- package/dist/components/layout/toolbar/Paginate.js +17 -99
- package/dist/components/layout/toolbar/PrintTool.js +13 -43
- package/dist/components/layout/toolbar/PropertyItem.js +8 -5
- package/dist/components/layout/toolbar/RPToolbar.js +7 -28
- package/dist/components/layout/toolbar/RPToolbarEnd.js +7 -22
- package/dist/components/layout/toolbar/RotateTool.js +21 -20
- package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
- package/dist/components/layout/toolbar/SearchCloseButton.js +7 -19
- package/dist/components/layout/toolbar/SearchResultNavigator.js +8 -42
- package/dist/components/layout/toolbar/SearchTool.js +30 -197
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ThumbnailTool.js +3 -3
- package/dist/components/layout/toolbar/ToolbarCustom.js +22 -24
- package/dist/components/layout/toolbar/ToolbarDefault.js +19 -24
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +28 -140
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/InputPageTool.js +5 -5
- package/dist/components/layout/toolbar/tools/NextPageTool.js +17 -18
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PrintTool.js +3 -3
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +7 -7
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +20 -26
- package/dist/components/page/AnnotationLayer.js +16 -17
- package/dist/components/page/CanvasLayer.js +16 -17
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +16 -17
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +16 -17
- package/dist/components/page/TextLayer.js +16 -17
- package/dist/components/ui/Checkbox.js +51 -49
- package/dist/components/ui/DropDown.js +19 -13
- package/dist/components/ui/LoadingIndicator.js +5 -22
- package/dist/components/ui/RPTooltip.js +33 -33
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +1 -1
- package/dist/contexts/SearchContext.js +3 -3
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/{index-492f99d0.js → index-18b0454c.js} +1 -1
- package/dist/{index-2160dd99.js → index-5908484b.js} +11 -11
- package/dist/index-f4a9ae4d.js +1664 -0
- package/dist/main.js +48 -50
- package/dist/types/components/layout/RPDefaultLayout.d.ts +1 -2
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +3 -2
- package/dist/utils/hooks/useFileDownload.js +16 -17
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +16 -17
- package/dist/utils/hooks/usePresentPage.js +16 -17
- package/dist/utils/hooks/usePrint.js +16 -17
- package/dist/utils/hooks/useScrollToPage.js +16 -17
- package/dist/utils/hooks/useSearch.js +16 -17
- package/dist/utils/hooks/useThumbnail.js +16 -17
- package/dist/utils/hooks/useVirtualReactWindow.js +16 -17
- package/package.json +1 -1
- package/dist/Checkbox.module-3edaacbb.js +0 -7
- package/dist/Combination-9a0a3e65.js +0 -693
- package/dist/Container.module-f8b5c306.js +0 -6
- package/dist/DropDown.module-a78567cb.js +0 -11
- package/dist/MenuItem.module-bc11d0d3.js +0 -6
- package/dist/MenuSeparator.module-89b2ff7f.js +0 -6
- package/dist/PropertyItem.module-db0150cc.js +0 -8
- package/dist/RPSplitter.module-13d612c4.js +0 -7
- package/dist/RPTheme.module-bd9038da.js +0 -8
- package/dist/RotateTool.module-03987eba.js +0 -6
- package/dist/SearchTool.module-016f3a8d.js +0 -16
- package/dist/ToolbarLayout.module-88476995.js +0 -2464
- package/dist/WrapperLayout.module-147bc943.js +0 -6
- package/dist/index-49b9a615.js +0 -978
- /package/dist/assets/{RPTheme.css → RPDropFileZone.css} +0 -0
- /package/dist/assets/{SearchTool.css → SearchCloseButton.css} +0 -0
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../contexts/RPDocumentContext.js";
|
|
4
4
|
import "../../contexts/DocumentPasswordContext.js";
|
|
5
|
-
import { G as
|
|
5
|
+
import { G as rr } from "../../ToolbarLayout.module-201969d2.js";
|
|
6
6
|
import "../../contexts/DarkModeContext.js";
|
|
7
7
|
import "../../contexts/RotationContext.js";
|
|
8
8
|
import "../../contexts/LayerContext.js";
|
|
@@ -30,28 +30,27 @@ import "../../contexts/ToolComponentContext.js";
|
|
|
30
30
|
import "../../contexts/IconToolContext.js";
|
|
31
31
|
import "../../contexts/OtherToolContext.js";
|
|
32
32
|
import "../RPConfig.js";
|
|
33
|
+
import "../layout/Container.js";
|
|
34
|
+
import "../../contexts/ViewportContext.js";
|
|
35
|
+
import "../../contexts/ToolbarComponentContext.js";
|
|
36
|
+
import "../layout/WrapperLayout.js";
|
|
37
|
+
import "../../contexts/ThemeContext.js";
|
|
38
|
+
import "../RPDropFileZone.js";
|
|
33
39
|
import "../ui/Button.js";
|
|
40
|
+
import "../../SearchCloseButton-cbf182aa.js";
|
|
34
41
|
import "../ui/Input.js";
|
|
42
|
+
import "../ui/Checkbox.js";
|
|
43
|
+
import "../icons/LoaderIcon.js";
|
|
35
44
|
import "../../contexts/IconContext.js";
|
|
36
|
-
import "../../contexts/ToolbarComponentContext.js";
|
|
37
|
-
import "../../contexts/ViewportContext.js";
|
|
38
45
|
import "../ui/RPTooltip.js";
|
|
39
|
-
import "
|
|
40
|
-
import "
|
|
46
|
+
import "../ui/DropDown.js";
|
|
47
|
+
import "../layout/toolbar/MenuItem.js";
|
|
48
|
+
import "../layout/toolbar/MenuSeparator.js";
|
|
41
49
|
import "../../utils/dateFormatter.js";
|
|
42
|
-
import "
|
|
43
|
-
import "
|
|
44
|
-
import "../../RotateTool.module-03987eba.js";
|
|
45
|
-
import "../../SearchTool.module-016f3a8d.js";
|
|
46
|
-
import "../../Checkbox.module-3edaacbb.js";
|
|
47
|
-
import "../icons/LoaderIcon.js";
|
|
48
|
-
import "../../RPSplitter.module-13d612c4.js";
|
|
49
|
-
import "../../Container.module-f8b5c306.js";
|
|
50
|
-
import "../../WrapperLayout.module-147bc943.js";
|
|
51
|
-
import "../../RPTheme.module-bd9038da.js";
|
|
52
|
-
import "../../contexts/ThemeContext.js";
|
|
50
|
+
import "../layout/toolbar/PropertyItem.js";
|
|
51
|
+
import "../layout/toolbar/RotateTool.js";
|
|
53
52
|
import "./searchHighlight.js";
|
|
54
53
|
import "../../utils/highlight.js";
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
rr as TextHighlightLayer
|
|
57
56
|
};
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../contexts/RPDocumentContext.js";
|
|
4
4
|
import "../../contexts/DocumentPasswordContext.js";
|
|
5
|
-
import { E as
|
|
5
|
+
import { E as rr } from "../../ToolbarLayout.module-201969d2.js";
|
|
6
6
|
import "../../contexts/DarkModeContext.js";
|
|
7
7
|
import "../../contexts/RotationContext.js";
|
|
8
8
|
import "../../contexts/LayerContext.js";
|
|
@@ -30,28 +30,27 @@ import "../../contexts/ToolComponentContext.js";
|
|
|
30
30
|
import "../../contexts/IconToolContext.js";
|
|
31
31
|
import "../../contexts/OtherToolContext.js";
|
|
32
32
|
import "../RPConfig.js";
|
|
33
|
+
import "../layout/Container.js";
|
|
34
|
+
import "../../contexts/ViewportContext.js";
|
|
35
|
+
import "../../contexts/ToolbarComponentContext.js";
|
|
36
|
+
import "../layout/WrapperLayout.js";
|
|
37
|
+
import "../../contexts/ThemeContext.js";
|
|
38
|
+
import "../RPDropFileZone.js";
|
|
33
39
|
import "../ui/Button.js";
|
|
40
|
+
import "../../SearchCloseButton-cbf182aa.js";
|
|
34
41
|
import "../ui/Input.js";
|
|
42
|
+
import "../ui/Checkbox.js";
|
|
43
|
+
import "../icons/LoaderIcon.js";
|
|
35
44
|
import "../../contexts/IconContext.js";
|
|
36
|
-
import "../../contexts/ToolbarComponentContext.js";
|
|
37
|
-
import "../../contexts/ViewportContext.js";
|
|
38
45
|
import "../ui/RPTooltip.js";
|
|
39
|
-
import "
|
|
40
|
-
import "
|
|
46
|
+
import "../ui/DropDown.js";
|
|
47
|
+
import "../layout/toolbar/MenuItem.js";
|
|
48
|
+
import "../layout/toolbar/MenuSeparator.js";
|
|
41
49
|
import "../../utils/dateFormatter.js";
|
|
42
|
-
import "
|
|
43
|
-
import "
|
|
44
|
-
import "../../RotateTool.module-03987eba.js";
|
|
45
|
-
import "../../SearchTool.module-016f3a8d.js";
|
|
46
|
-
import "../../Checkbox.module-3edaacbb.js";
|
|
47
|
-
import "../icons/LoaderIcon.js";
|
|
48
|
-
import "../../RPSplitter.module-13d612c4.js";
|
|
49
|
-
import "../../Container.module-f8b5c306.js";
|
|
50
|
-
import "../../WrapperLayout.module-147bc943.js";
|
|
51
|
-
import "../../RPTheme.module-bd9038da.js";
|
|
52
|
-
import "../../contexts/ThemeContext.js";
|
|
50
|
+
import "../layout/toolbar/PropertyItem.js";
|
|
51
|
+
import "../layout/toolbar/RotateTool.js";
|
|
53
52
|
import "pdfjs-dist";
|
|
54
53
|
import "../../utils/highlight.js";
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
rr as TextLayer
|
|
57
56
|
};
|
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { c as j, u as A,
|
|
4
|
-
import { c as R } from "../../Checkbox.module-3edaacbb.js";
|
|
1
|
+
import { jsxs as _, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { c as j, u as A, a as B, P as w, b as I, d as H, e as K } from "../../index-5908484b.js";
|
|
5
4
|
import { CheckIcon as L } from "../icons/CheckIcon.js";
|
|
6
|
-
function q(e) {
|
|
7
|
-
const r =
|
|
8
|
-
return
|
|
5
|
+
import '../../assets/Checkbox.css';function q(e) {
|
|
6
|
+
const r = c.useRef({ value: e, previous: e });
|
|
7
|
+
return c.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
|
|
9
8
|
}
|
|
10
|
-
var E = "Checkbox", [z,
|
|
9
|
+
var E = "Checkbox", [z, W] = j(E), [F, T] = z(E), S = c.forwardRef(
|
|
11
10
|
(e, r) => {
|
|
12
11
|
const {
|
|
13
12
|
__scopeCheckbox: t,
|
|
14
13
|
name: a,
|
|
15
14
|
checked: u,
|
|
16
|
-
defaultChecked:
|
|
15
|
+
defaultChecked: n,
|
|
17
16
|
required: h,
|
|
18
17
|
disabled: l,
|
|
19
18
|
value: b = "on",
|
|
20
|
-
onCheckedChange:
|
|
21
|
-
form:
|
|
22
|
-
...
|
|
23
|
-
} = e, [i,
|
|
19
|
+
onCheckedChange: m,
|
|
20
|
+
form: p,
|
|
21
|
+
...x
|
|
22
|
+
} = e, [i, C] = c.useState(null), v = A(r, (o) => C(o)), y = c.useRef(!1), g = i ? p || !!i.closest("form") : !0, [f = !1, P] = B({
|
|
24
23
|
prop: u,
|
|
25
|
-
defaultProp:
|
|
26
|
-
onChange:
|
|
27
|
-
}), O =
|
|
28
|
-
return
|
|
24
|
+
defaultProp: n,
|
|
25
|
+
onChange: m
|
|
26
|
+
}), O = c.useRef(f);
|
|
27
|
+
return c.useEffect(() => {
|
|
29
28
|
const o = i == null ? void 0 : i.form;
|
|
30
29
|
if (o) {
|
|
31
30
|
const k = () => P(O.current);
|
|
32
31
|
return o.addEventListener("reset", k), () => o.removeEventListener("reset", k);
|
|
33
32
|
}
|
|
34
|
-
}, [i, P]), /* @__PURE__ */
|
|
33
|
+
}, [i, P]), /* @__PURE__ */ _(F, { scope: t, state: f, disabled: l, children: [
|
|
35
34
|
/* @__PURE__ */ s(
|
|
36
35
|
w.button,
|
|
37
36
|
{
|
|
38
37
|
type: "button",
|
|
39
38
|
role: "checkbox",
|
|
40
|
-
"aria-checked": d(
|
|
39
|
+
"aria-checked": d(f) ? "mixed" : f,
|
|
41
40
|
"aria-required": h,
|
|
42
|
-
"data-state": M(
|
|
41
|
+
"data-state": M(f),
|
|
43
42
|
"data-disabled": l ? "" : void 0,
|
|
44
43
|
disabled: l,
|
|
45
44
|
value: b,
|
|
46
|
-
...
|
|
47
|
-
ref:
|
|
48
|
-
onKeyDown:
|
|
45
|
+
...x,
|
|
46
|
+
ref: v,
|
|
47
|
+
onKeyDown: I(e.onKeyDown, (o) => {
|
|
49
48
|
o.key === "Enter" && o.preventDefault();
|
|
50
49
|
}),
|
|
51
|
-
onClick:
|
|
52
|
-
P((k) => d(k) ? !0 : !k),
|
|
50
|
+
onClick: I(e.onClick, (o) => {
|
|
51
|
+
P((k) => d(k) ? !0 : !k), g && (y.current = o.isPropagationStopped(), y.current || o.stopPropagation());
|
|
53
52
|
})
|
|
54
53
|
}
|
|
55
54
|
),
|
|
56
|
-
|
|
55
|
+
g && /* @__PURE__ */ s(
|
|
57
56
|
X,
|
|
58
57
|
{
|
|
59
58
|
control: i,
|
|
60
59
|
bubbles: !y.current,
|
|
61
60
|
name: a,
|
|
62
61
|
value: b,
|
|
63
|
-
checked:
|
|
62
|
+
checked: f,
|
|
64
63
|
required: h,
|
|
65
64
|
disabled: l,
|
|
66
|
-
form:
|
|
65
|
+
form: p,
|
|
67
66
|
style: { transform: "translateX(-100%)" },
|
|
68
|
-
defaultChecked: d(
|
|
67
|
+
defaultChecked: d(n) ? !1 : n
|
|
69
68
|
}
|
|
70
69
|
)
|
|
71
70
|
] });
|
|
72
71
|
}
|
|
73
72
|
);
|
|
74
|
-
|
|
75
|
-
var
|
|
73
|
+
S.displayName = E;
|
|
74
|
+
var N = "CheckboxIndicator", D = c.forwardRef(
|
|
76
75
|
(e, r) => {
|
|
77
|
-
const { __scopeCheckbox: t, forceMount: a, ...u } = e,
|
|
78
|
-
return /* @__PURE__ */ s(H, { present: a || d(
|
|
76
|
+
const { __scopeCheckbox: t, forceMount: a, ...u } = e, n = T(N, t);
|
|
77
|
+
return /* @__PURE__ */ s(H, { present: a || d(n.state) || n.state === !0, children: /* @__PURE__ */ s(
|
|
79
78
|
w.span,
|
|
80
79
|
{
|
|
81
|
-
"data-state": M(
|
|
82
|
-
"data-disabled":
|
|
80
|
+
"data-state": M(n.state),
|
|
81
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
83
82
|
...u,
|
|
84
83
|
ref: r,
|
|
85
84
|
style: { pointerEvents: "none", ...e.style }
|
|
@@ -87,24 +86,24 @@ var _ = "CheckboxIndicator", D = n.forwardRef(
|
|
|
87
86
|
) });
|
|
88
87
|
}
|
|
89
88
|
);
|
|
90
|
-
D.displayName =
|
|
89
|
+
D.displayName = N;
|
|
91
90
|
var X = (e) => {
|
|
92
|
-
const { control: r, checked: t, bubbles: a = !0, defaultChecked: u, ...
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
if (l !== t &&
|
|
96
|
-
const
|
|
97
|
-
|
|
91
|
+
const { control: r, checked: t, bubbles: a = !0, defaultChecked: u, ...n } = e, h = c.useRef(null), l = q(t), b = K(r);
|
|
92
|
+
c.useEffect(() => {
|
|
93
|
+
const p = h.current, x = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor(x, "checked").set;
|
|
94
|
+
if (l !== t && C) {
|
|
95
|
+
const v = new Event("click", { bubbles: a });
|
|
96
|
+
p.indeterminate = d(t), C.call(p, d(t) ? !1 : t), p.dispatchEvent(v);
|
|
98
97
|
}
|
|
99
98
|
}, [l, t, a]);
|
|
100
|
-
const
|
|
99
|
+
const m = c.useRef(d(t) ? !1 : t);
|
|
101
100
|
return /* @__PURE__ */ s(
|
|
102
101
|
"input",
|
|
103
102
|
{
|
|
104
103
|
type: "checkbox",
|
|
105
104
|
"aria-hidden": !0,
|
|
106
|
-
defaultChecked: u ??
|
|
107
|
-
...
|
|
105
|
+
defaultChecked: u ?? m.current,
|
|
106
|
+
...n,
|
|
108
107
|
tabIndex: -1,
|
|
109
108
|
ref: h,
|
|
110
109
|
style: {
|
|
@@ -124,14 +123,17 @@ function d(e) {
|
|
|
124
123
|
function M(e) {
|
|
125
124
|
return d(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
126
125
|
}
|
|
127
|
-
var U =
|
|
128
|
-
const
|
|
126
|
+
var U = S, G = D;
|
|
127
|
+
const R = {
|
|
128
|
+
"rp-checkbox": "_rp-checkbox_1vwg8_1",
|
|
129
|
+
"rp-checkbox-indicator": "_rp-checkbox-indicator_1vwg8_25"
|
|
130
|
+
}, Y = ({
|
|
129
131
|
children: e,
|
|
130
132
|
value: r,
|
|
131
133
|
name: t,
|
|
132
134
|
onChange: a,
|
|
133
135
|
tabIndex: u
|
|
134
|
-
}) => /* @__PURE__ */
|
|
136
|
+
}) => /* @__PURE__ */ _("div", { style: { display: "flex", alignItems: "center", position: "relative" }, children: [
|
|
135
137
|
/* @__PURE__ */ s(
|
|
136
138
|
U,
|
|
137
139
|
{
|
|
@@ -146,5 +148,5 @@ const Z = ({
|
|
|
146
148
|
/* @__PURE__ */ s("label", { className: R["rp-checkbox-label"], htmlFor: t, children: e })
|
|
147
149
|
] });
|
|
148
150
|
export {
|
|
149
|
-
|
|
151
|
+
Y as UICheckbox
|
|
150
152
|
};
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import { R as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as l, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { R as p, T as c, P as _, C as A } from "../../index-f4a9ae4d.js";
|
|
3
|
+
import { c as F } from "../../clsx-0c6e471a.js";
|
|
4
|
+
import '../../assets/DropDown.css';const w = "_slideDownAndFade_1vzkq_1", m = "_slideLeftAndFade_1vzkq_1", f = "_slideUpAndFade_1vzkq_1", g = "_slideRightAndFade_1vzkq_1", h = {
|
|
5
|
+
"rp-dropdown-content": "_rp-dropdown-content_1vzkq_1",
|
|
6
|
+
slideDownAndFade: w,
|
|
7
|
+
slideLeftAndFade: m,
|
|
8
|
+
slideUpAndFade: f,
|
|
9
|
+
slideRightAndFade: g,
|
|
10
|
+
"rp-dropdown-arrow": "_rp-dropdown-arrow_1vzkq_30"
|
|
11
|
+
}, z = (e) => {
|
|
12
|
+
const { triggerComponent: n, children: o, container: s, className: r, open: t, onOpenChange: a, ...i } = e;
|
|
13
|
+
return /* @__PURE__ */ l(p, { modal: !1, open: t, onOpenChange: a, children: [
|
|
14
|
+
/* @__PURE__ */ d(c, { asChild: !0, children: n }),
|
|
15
|
+
/* @__PURE__ */ d(_, { container: s, children: /* @__PURE__ */ d(
|
|
16
|
+
A,
|
|
11
17
|
{
|
|
12
18
|
sideOffset: 8,
|
|
13
19
|
align: "end",
|
|
14
20
|
...i,
|
|
15
|
-
className: h
|
|
16
|
-
children:
|
|
21
|
+
className: F(h["rp-dropdown-content"], r),
|
|
22
|
+
children: o
|
|
17
23
|
}
|
|
18
24
|
) })
|
|
19
25
|
] });
|
|
20
26
|
};
|
|
21
27
|
export {
|
|
22
|
-
|
|
28
|
+
z as UIDropDown
|
|
23
29
|
};
|
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const u = ({ percentage: o }) => {
|
|
6
|
-
const { cancel: l } = s(), { localeMessages: r } = d();
|
|
7
|
-
return o < 1 ? null : /* @__PURE__ */ a("div", { className: n(i["rp-loading-overlay"]), children: /* @__PURE__ */ t("div", { className: n(i["rp-loading-modal"]), children: [
|
|
8
|
-
/* @__PURE__ */ t("div", { className: n(i["rp-loading-title"]), children: [
|
|
9
|
-
r == null ? void 0 : r.printLoadingMessage,
|
|
10
|
-
"..."
|
|
11
|
-
] }),
|
|
12
|
-
/* @__PURE__ */ a("div", { className: n(i["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: n(i["rp-loading-progress"]),
|
|
16
|
-
style: { width: `${o}%` }
|
|
17
|
-
}
|
|
18
|
-
) }),
|
|
19
|
-
/* @__PURE__ */ a("button", { className: n(i["rp-loading-cancel-button"]), onClick: l, children: r == null ? void 0 : r.printCancelLabel })
|
|
20
|
-
] }) });
|
|
21
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { q as i } from "../../ToolbarLayout.module-201969d2.js";
|
|
3
|
+
import "../../clsx-0c6e471a.js";
|
|
4
|
+
import "../../contexts/LocalizationContext.js";
|
|
22
5
|
export {
|
|
23
|
-
|
|
6
|
+
i as default
|
|
24
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { P as S, c as z,
|
|
4
|
-
import { c as G, u as $, R as ee, A as te, D as oe, C as re, a as ne } from "../../index-
|
|
3
|
+
import { P as S, c as z, a as J, u as j, b as g, d as Q, S as Z } from "../../index-5908484b.js";
|
|
4
|
+
import { c as G, u as $, R as ee, A as te, D as oe, C as re, a as ne } from "../../index-18b0454c.js";
|
|
5
5
|
import { withRef as se } from "../../utils/withRef.js";
|
|
6
6
|
import '../../assets/RPTooltip.css';var ae = "VisuallyHidden", F = s.forwardRef(
|
|
7
|
-
(e, o) => /* @__PURE__ */
|
|
7
|
+
(e, o) => /* @__PURE__ */ d(
|
|
8
8
|
S.span,
|
|
9
9
|
{
|
|
10
10
|
...e,
|
|
@@ -36,21 +36,21 @@ var ie = F, [R, De] = z("Tooltip", [
|
|
|
36
36
|
skipDelayDuration: r = 300,
|
|
37
37
|
disableHoverableContent: n = !1,
|
|
38
38
|
children: i
|
|
39
|
-
} = e, [c, v] = s.useState(!0), a = s.useRef(!1),
|
|
39
|
+
} = e, [c, v] = s.useState(!0), a = s.useRef(!1), p = s.useRef(0);
|
|
40
40
|
return s.useEffect(() => {
|
|
41
|
-
const l =
|
|
41
|
+
const l = p.current;
|
|
42
42
|
return () => window.clearTimeout(l);
|
|
43
|
-
}, []), /* @__PURE__ */
|
|
43
|
+
}, []), /* @__PURE__ */ d(
|
|
44
44
|
ce,
|
|
45
45
|
{
|
|
46
46
|
scope: o,
|
|
47
47
|
isOpenDelayed: c,
|
|
48
48
|
delayDuration: t,
|
|
49
49
|
onOpen: s.useCallback(() => {
|
|
50
|
-
window.clearTimeout(
|
|
50
|
+
window.clearTimeout(p.current), v(!1);
|
|
51
51
|
}, []),
|
|
52
52
|
onClose: s.useCallback(() => {
|
|
53
|
-
window.clearTimeout(
|
|
53
|
+
window.clearTimeout(p.current), p.current = window.setTimeout(
|
|
54
54
|
() => v(!0),
|
|
55
55
|
r
|
|
56
56
|
);
|
|
@@ -74,7 +74,7 @@ var A = "Tooltip", [ue, D] = R(A), U = (e) => {
|
|
|
74
74
|
onOpenChange: i,
|
|
75
75
|
disableHoverableContent: c,
|
|
76
76
|
delayDuration: v
|
|
77
|
-
} = e, a = I(A, e.__scopeTooltip),
|
|
77
|
+
} = e, a = I(A, e.__scopeTooltip), p = _(o), [l, f] = s.useState(null), y = $(), u = s.useRef(0), h = c ?? a.disableHoverableContent, C = v ?? a.delayDuration, T = s.useRef(!1), [x = !1, m] = J({
|
|
78
78
|
prop: r,
|
|
79
79
|
defaultProp: n,
|
|
80
80
|
onChange: (N) => {
|
|
@@ -91,7 +91,7 @@ var A = "Tooltip", [ue, D] = R(A), U = (e) => {
|
|
|
91
91
|
}, [C, m]);
|
|
92
92
|
return s.useEffect(() => () => {
|
|
93
93
|
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
94
|
-
}, []), /* @__PURE__ */
|
|
94
|
+
}, []), /* @__PURE__ */ d(ee, { ...p, children: /* @__PURE__ */ d(
|
|
95
95
|
ue,
|
|
96
96
|
{
|
|
97
97
|
scope: o,
|
|
@@ -116,8 +116,8 @@ var A = "Tooltip", [ue, D] = R(A), U = (e) => {
|
|
|
116
116
|
U.displayName = A;
|
|
117
117
|
var k = "TooltipTrigger", Y = s.forwardRef(
|
|
118
118
|
(e, o) => {
|
|
119
|
-
const { __scopeTooltip: t, ...r } = e, n = D(k, t), i = I(k, t), c = _(t), v = s.useRef(null), a = j(o, v, n.onTriggerChange),
|
|
120
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */
|
|
119
|
+
const { __scopeTooltip: t, ...r } = e, n = D(k, t), i = I(k, t), c = _(t), v = s.useRef(null), a = j(o, v, n.onTriggerChange), p = s.useRef(!1), l = s.useRef(!1), f = s.useCallback(() => p.current = !1, []);
|
|
120
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ d(te, { asChild: !0, ...c, children: /* @__PURE__ */ d(
|
|
121
121
|
S.button,
|
|
122
122
|
{
|
|
123
123
|
"aria-describedby": n.open ? n.contentId : void 0,
|
|
@@ -131,10 +131,10 @@ var k = "TooltipTrigger", Y = s.forwardRef(
|
|
|
131
131
|
n.onTriggerLeave(), l.current = !1;
|
|
132
132
|
}),
|
|
133
133
|
onPointerDown: g(e.onPointerDown, () => {
|
|
134
|
-
|
|
134
|
+
p.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
135
135
|
}),
|
|
136
136
|
onFocus: g(e.onFocus, () => {
|
|
137
|
-
|
|
137
|
+
p.current || n.onOpen();
|
|
138
138
|
}),
|
|
139
139
|
onBlur: g(e.onBlur, n.onClose),
|
|
140
140
|
onClick: g(e.onClick, n.onClose)
|
|
@@ -143,15 +143,15 @@ var k = "TooltipTrigger", Y = s.forwardRef(
|
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
Y.displayName = k;
|
|
146
|
-
var
|
|
146
|
+
var de = "TooltipPortal", [Oe, pe] = R(de, {
|
|
147
147
|
forceMount: void 0
|
|
148
148
|
}), w = "TooltipContent", q = s.forwardRef(
|
|
149
149
|
(e, o) => {
|
|
150
|
-
const t =
|
|
151
|
-
return /* @__PURE__ */
|
|
150
|
+
const t = pe(w, e.__scopeTooltip), { forceMount: r = t.forceMount, side: n = "top", ...i } = e, c = D(w, e.__scopeTooltip);
|
|
151
|
+
return /* @__PURE__ */ d(Q, { present: r || c.open, children: c.disableHoverableContent ? /* @__PURE__ */ d(W, { side: n, ...i, ref: o }) : /* @__PURE__ */ d(fe, { side: n, ...i, ref: o }) });
|
|
152
152
|
}
|
|
153
153
|
), fe = s.forwardRef((e, o) => {
|
|
154
|
-
const t = D(w, e.__scopeTooltip), r = I(w, e.__scopeTooltip), n = s.useRef(null), i = j(o, n), [c, v] = s.useState(null), { trigger: a, onClose:
|
|
154
|
+
const t = D(w, e.__scopeTooltip), r = I(w, e.__scopeTooltip), n = s.useRef(null), i = j(o, n), [c, v] = s.useState(null), { trigger: a, onClose: p } = t, l = n.current, { onPointerInTransitChange: f } = r, y = s.useCallback(() => {
|
|
155
155
|
v(null), f(!1);
|
|
156
156
|
}, [f]), u = s.useCallback(
|
|
157
157
|
(h, C) => {
|
|
@@ -171,11 +171,11 @@ var pe = "TooltipPortal", [Oe, de] = R(pe, {
|
|
|
171
171
|
if (c) {
|
|
172
172
|
const h = (C) => {
|
|
173
173
|
const T = C.target, x = { x: C.clientX, y: C.clientY }, m = (a == null ? void 0 : a.contains(T)) || (l == null ? void 0 : l.contains(T)), b = !me(x, c);
|
|
174
|
-
m ? y() : b && (y(),
|
|
174
|
+
m ? y() : b && (y(), p());
|
|
175
175
|
};
|
|
176
176
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
177
177
|
}
|
|
178
|
-
}, [a, l, c,
|
|
178
|
+
}, [a, l, c, p, y]), /* @__PURE__ */ d(W, { ...e, ref: i });
|
|
179
179
|
}), [ve, he] = R(A, { isInside: !1 }), W = s.forwardRef(
|
|
180
180
|
(e, o) => {
|
|
181
181
|
const {
|
|
@@ -185,7 +185,7 @@ var pe = "TooltipPortal", [Oe, de] = R(pe, {
|
|
|
185
185
|
onEscapeKeyDown: i,
|
|
186
186
|
onPointerDownOutside: c,
|
|
187
187
|
...v
|
|
188
|
-
} = e, a = D(w, t),
|
|
188
|
+
} = e, a = D(w, t), p = _(t), { onClose: l } = a;
|
|
189
189
|
return s.useEffect(() => (document.addEventListener(L, l), () => document.removeEventListener(L, l)), [l]), s.useEffect(() => {
|
|
190
190
|
if (a.trigger) {
|
|
191
191
|
const f = (y) => {
|
|
@@ -194,7 +194,7 @@ var pe = "TooltipPortal", [Oe, de] = R(pe, {
|
|
|
194
194
|
};
|
|
195
195
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
196
196
|
}
|
|
197
|
-
}, [a.trigger, l]), /* @__PURE__ */
|
|
197
|
+
}, [a.trigger, l]), /* @__PURE__ */ d(
|
|
198
198
|
oe,
|
|
199
199
|
{
|
|
200
200
|
asChild: !0,
|
|
@@ -207,7 +207,7 @@ var pe = "TooltipPortal", [Oe, de] = R(pe, {
|
|
|
207
207
|
re,
|
|
208
208
|
{
|
|
209
209
|
"data-state": a.stateAttribute,
|
|
210
|
-
...
|
|
210
|
+
...p,
|
|
211
211
|
...v,
|
|
212
212
|
ref: o,
|
|
213
213
|
style: {
|
|
@@ -219,8 +219,8 @@ var pe = "TooltipPortal", [Oe, de] = R(pe, {
|
|
|
219
219
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
220
220
|
},
|
|
221
221
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ d(Z, { children: r }),
|
|
223
|
+
/* @__PURE__ */ d(ve, { scope: t, isInside: !0, children: /* @__PURE__ */ d(ie, { id: a.contentId, role: "tooltip", children: n || r }) })
|
|
224
224
|
]
|
|
225
225
|
}
|
|
226
226
|
)
|
|
@@ -235,7 +235,7 @@ var X = "TooltipArrow", K = s.forwardRef(
|
|
|
235
235
|
return he(
|
|
236
236
|
X,
|
|
237
237
|
t
|
|
238
|
-
).isInside ? null : /* @__PURE__ */
|
|
238
|
+
).isInside ? null : /* @__PURE__ */ d(ne, { ...n, ...r, ref: o });
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
241
|
K.displayName = X;
|
|
@@ -297,8 +297,8 @@ function me(e, o) {
|
|
|
297
297
|
const { x: t, y: r } = e;
|
|
298
298
|
let n = !1;
|
|
299
299
|
for (let i = 0, c = o.length - 1; i < o.length; c = i++) {
|
|
300
|
-
const v = o[i].x, a = o[i].y,
|
|
301
|
-
a > r != l > r && t < (
|
|
300
|
+
const v = o[i].x, a = o[i].y, p = o[c].x, l = o[c].y;
|
|
301
|
+
a > r != l > r && t < (p - v) * (r - a) / (l - a) + v && (n = !n);
|
|
302
302
|
}
|
|
303
303
|
return n;
|
|
304
304
|
}
|
|
@@ -341,11 +341,11 @@ const we = "_tooltipContent_12gjy_1", be = "_tooltipArrow_12gjy_8", Ee = "_fadeI
|
|
|
341
341
|
tooltipArrow: be,
|
|
342
342
|
fadeIn: Ee
|
|
343
343
|
}, Le = se(
|
|
344
|
-
({ children: e, content: o, className: t, style: r }, n) => /* @__PURE__ */
|
|
345
|
-
/* @__PURE__ */
|
|
344
|
+
({ children: e, content: o, className: t, style: r }, n) => /* @__PURE__ */ d(B, { children: /* @__PURE__ */ O(U, { delayDuration: 1e3, children: [
|
|
345
|
+
/* @__PURE__ */ d(Y, { asChild: !0, children: /* @__PURE__ */ d("div", { ref: n, className: t, style: r, children: e }) }),
|
|
346
346
|
/* @__PURE__ */ O(q, { className: H.tooltipContent, sideOffset: 5, children: [
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ d(K, { className: H.tooltipArrow }),
|
|
348
|
+
/* @__PURE__ */ d("span", { children: o })
|
|
349
349
|
] })
|
|
350
350
|
] }) })
|
|
351
351
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { t as e, P as m, u as p } from "../ToolbarLayout.module-
|
|
3
|
+
import { t as e, P as m, u as p } from "../ToolbarLayout.module-201969d2.js";
|
|
4
4
|
import "./RPDocumentContext.js";
|
|
5
5
|
import "../utils/appConsole.js";
|
|
6
6
|
export {
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../utils/Queue.js";
|
|
4
4
|
import "../utils/renderPage.js";
|
|
5
|
-
import { B as m,
|
|
5
|
+
import { B as m, g as p, C as d } from "../ToolbarLayout.module-201969d2.js";
|
|
6
6
|
export {
|
|
7
7
|
m as RenderQueueContext,
|
|
8
8
|
p as RenderQueueProvider,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as a,
|
|
3
|
+
import { A as a, f as s, d as c } from "../ToolbarLayout.module-201969d2.js";
|
|
4
4
|
export {
|
|
5
5
|
a as SearchContext,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
s as SearchProvider,
|
|
7
|
+
c as useSearchContext
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
2
|
import { useLayoutEffect as Te, useEffect as Me } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { f as mt, u as gt, P as it, b as vt, g as ke, h as Et, c as Fe, e as Ne } from "./index-5908484b.js";
|
|
4
4
|
import { jsx as H } from "react/jsx-runtime";
|
|
5
5
|
import * as $e from "react-dom";
|
|
6
6
|
function We(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -291,17 +291,17 @@ function L({
|
|
|
291
291
|
}
|
|
292
292
|
export {
|
|
293
293
|
Z as P,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
T as S,
|
|
295
|
+
J as a,
|
|
296
|
+
V as b,
|
|
297
297
|
B as c,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
298
|
+
_ as d,
|
|
299
|
+
G as e,
|
|
300
|
+
R as f,
|
|
301
|
+
q as g,
|
|
302
|
+
C as h,
|
|
303
|
+
A as i,
|
|
304
|
+
w as j,
|
|
305
|
+
k,
|
|
306
306
|
E as u
|
|
307
307
|
};
|