@hybridcore/ui 1.6.0 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { styled as e, Box as o, Typography as t } from "@mui/material";
|
|
2
|
+
const r = e(o, {
|
|
3
|
+
name: "HCDateRangePicker",
|
|
4
|
+
slot: "root"
|
|
5
|
+
})({
|
|
6
|
+
position: "relative"
|
|
7
|
+
}), n = e(t, {
|
|
8
|
+
name: "HCDateRangePicker",
|
|
9
|
+
slot: "label"
|
|
10
|
+
})({});
|
|
11
|
+
export {
|
|
12
|
+
n as DateRangePickerLabel,
|
|
13
|
+
r as DateRangePickerRoot
|
|
14
|
+
};
|
|
@@ -1,89 +1,88 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Schedule as
|
|
3
|
-
import { Menu as
|
|
4
|
-
import { DatePicker as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const B = M.forwardRef((l, c) => {
|
|
2
|
+
import { Schedule as C } from "@mui/icons-material";
|
|
3
|
+
import { Menu as v, MenuItem as g } from "@mui/material";
|
|
4
|
+
import { DatePicker as b } from "@mui/x-date-pickers";
|
|
5
|
+
import { useDateTimePickerLogic as x } from "./logic.js";
|
|
6
|
+
import { DateTimePickerRoot as M, DateTimePickerLabel as S, DateTimePickerContainer as Y, DateTimePickerTimeInputContainer as z, DateTimePickerTimeInput as E, DateTimePickerTimeButton as I } from "./styled.js";
|
|
7
|
+
const O = (l) => {
|
|
9
8
|
const {
|
|
10
|
-
name:
|
|
11
|
-
minDate:
|
|
12
|
-
variant:
|
|
13
|
-
label:
|
|
9
|
+
name: c,
|
|
10
|
+
minDate: s,
|
|
11
|
+
variant: h,
|
|
12
|
+
label: n,
|
|
14
13
|
labelPosition: a,
|
|
15
|
-
size:
|
|
16
|
-
pattern:
|
|
14
|
+
size: p,
|
|
15
|
+
pattern: d,
|
|
17
16
|
date: i,
|
|
18
|
-
timeOptions:
|
|
19
|
-
menu:
|
|
20
|
-
handleDateChange:
|
|
21
|
-
handleTimeChange:
|
|
22
|
-
handleTimeSelect:
|
|
17
|
+
timeOptions: u,
|
|
18
|
+
menu: o,
|
|
19
|
+
handleDateChange: f,
|
|
20
|
+
handleTimeChange: D,
|
|
21
|
+
handleTimeSelect: T,
|
|
23
22
|
ownerState: t,
|
|
24
|
-
sx:
|
|
25
|
-
other:
|
|
26
|
-
} =
|
|
27
|
-
return /* @__PURE__ */ m(
|
|
28
|
-
a === "top" &&
|
|
29
|
-
/* @__PURE__ */ m(
|
|
23
|
+
sx: k,
|
|
24
|
+
other: P
|
|
25
|
+
} = x(l);
|
|
26
|
+
return /* @__PURE__ */ m(M, { ownerState: t, sx: k, ...P, children: [
|
|
27
|
+
a === "top" && n !== void 0 && /* @__PURE__ */ e(S, { ownerState: t, children: n }),
|
|
28
|
+
/* @__PURE__ */ m(Y, { ownerState: t, children: [
|
|
30
29
|
/* @__PURE__ */ e(
|
|
31
|
-
|
|
30
|
+
b,
|
|
32
31
|
{
|
|
33
|
-
label: a === "default" ?
|
|
32
|
+
label: a === "default" ? n : void 0,
|
|
34
33
|
value: i,
|
|
35
34
|
format: "DD/MM/YYYY",
|
|
36
|
-
minDate:
|
|
37
|
-
onChange:
|
|
35
|
+
minDate: s,
|
|
36
|
+
onChange: f,
|
|
38
37
|
slotProps: {
|
|
39
38
|
textField: {
|
|
40
|
-
variant:
|
|
41
|
-
size:
|
|
39
|
+
variant: h,
|
|
40
|
+
size: p,
|
|
42
41
|
// When we render our own label above (labelPosition === "top")
|
|
43
42
|
// or there's no label at all, tell the TextField to skip
|
|
44
43
|
// reserving space for its internal floating label — otherwise
|
|
45
44
|
// the filled variant in particular renders taller than the
|
|
46
45
|
// time input next to it.
|
|
47
|
-
hiddenLabel: a !== "default" ||
|
|
46
|
+
hiddenLabel: a !== "default" || n === void 0
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
),
|
|
52
|
-
/* @__PURE__ */ m(
|
|
51
|
+
/* @__PURE__ */ m(z, { ownerState: t, children: [
|
|
53
52
|
/* @__PURE__ */ e(
|
|
54
|
-
|
|
53
|
+
E,
|
|
55
54
|
{
|
|
56
55
|
ownerState: t,
|
|
57
|
-
format:
|
|
56
|
+
format: d,
|
|
58
57
|
allowEmptyFormatting: !0,
|
|
59
58
|
value: i == null ? void 0 : i.format("HH:mm:ss"),
|
|
60
|
-
onChange:
|
|
59
|
+
onChange: D
|
|
61
60
|
}
|
|
62
61
|
),
|
|
63
62
|
/* @__PURE__ */ e(
|
|
64
|
-
|
|
63
|
+
I,
|
|
65
64
|
{
|
|
66
65
|
ownerState: t,
|
|
67
|
-
onClick:
|
|
66
|
+
onClick: o.action.open,
|
|
68
67
|
size: "small",
|
|
69
|
-
children: /* @__PURE__ */ e(
|
|
68
|
+
children: /* @__PURE__ */ e(C, { fontSize: "small" })
|
|
70
69
|
}
|
|
71
70
|
)
|
|
72
71
|
] })
|
|
73
72
|
] }),
|
|
74
73
|
/* @__PURE__ */ e(
|
|
75
|
-
|
|
74
|
+
v,
|
|
76
75
|
{
|
|
77
76
|
id: "time-menu",
|
|
78
|
-
anchorEl:
|
|
79
|
-
open:
|
|
80
|
-
onClose:
|
|
81
|
-
children:
|
|
77
|
+
anchorEl: o.state.anchorEl,
|
|
78
|
+
open: o.state.isOpen,
|
|
79
|
+
onClose: o.action.close,
|
|
80
|
+
children: u.map((r) => /* @__PURE__ */ e(g, { onClick: T(r), children: r }, r))
|
|
82
81
|
}
|
|
83
82
|
),
|
|
84
|
-
/* @__PURE__ */ e("input", { type: "hidden", name:
|
|
83
|
+
/* @__PURE__ */ e("input", { type: "hidden", name: c, value: (i == null ? void 0 : i.format()) ?? "" })
|
|
85
84
|
] });
|
|
86
|
-
}
|
|
85
|
+
};
|
|
87
86
|
export {
|
|
88
|
-
|
|
87
|
+
O as DateTimePicker
|
|
89
88
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useDividerLogic as
|
|
3
|
-
import { DividerRoot as
|
|
4
|
-
|
|
5
|
-
const { orientation: r, ownerState:
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useDividerLogic as n } from "./logic.js";
|
|
3
|
+
import { DividerRoot as s } from "./styled.js";
|
|
4
|
+
const f = (o) => {
|
|
5
|
+
const { orientation: r, ownerState: t, sx: i, other: e } = n(o);
|
|
6
|
+
return /* @__PURE__ */ m(
|
|
7
|
+
s,
|
|
8
8
|
{
|
|
9
|
-
ownerState:
|
|
9
|
+
ownerState: t,
|
|
10
10
|
orientation: r,
|
|
11
|
-
sx:
|
|
11
|
+
sx: i,
|
|
12
12
|
...e
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
f as Divider
|
|
18
18
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Subject as d, BookmarkBorder as u, PrintOutlined as a, OpenInFull as s, FileDownloadOutlined as f } from "@mui/icons-material";
|
|
3
|
+
import { Tooltip as i } from "@mui/material";
|
|
4
|
+
import { DocumentViewerActionButtonsRow as h, DocumentViewerActionButton as t, DocumentViewerActionDivider as o } from "../../styled.js";
|
|
5
|
+
const B = ({
|
|
6
6
|
onBookmark: n,
|
|
7
|
-
onDownload:
|
|
7
|
+
onDownload: l,
|
|
8
8
|
onFullScreen: r,
|
|
9
9
|
onPrint: c
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */ e(i, { title: "Bookmark Document", children: /* @__PURE__ */ e(
|
|
14
|
-
/* @__PURE__ */ e(i, { title: "Print", children: /* @__PURE__ */ e(
|
|
15
|
-
/* @__PURE__ */ e(i, { title: "Fullscreen", children: /* @__PURE__ */ e(
|
|
16
|
-
/* @__PURE__ */ e(
|
|
17
|
-
/* @__PURE__ */ e(i, { title: "Download", children: /* @__PURE__ */ e(
|
|
10
|
+
}) => /* @__PURE__ */ m(h, { children: [
|
|
11
|
+
/* @__PURE__ */ e(t, { disabled: !0, children: /* @__PURE__ */ e(d, { fontSize: "small" }) }),
|
|
12
|
+
/* @__PURE__ */ e(o, { orientation: "vertical", flexItem: !0 }),
|
|
13
|
+
/* @__PURE__ */ e(i, { title: "Bookmark Document", children: /* @__PURE__ */ e(t, { onClick: n, children: /* @__PURE__ */ e(u, { fontSize: "small" }) }) }),
|
|
14
|
+
/* @__PURE__ */ e(i, { title: "Print", children: /* @__PURE__ */ e(t, { onClick: c, children: /* @__PURE__ */ e(a, { fontSize: "small" }) }) }),
|
|
15
|
+
/* @__PURE__ */ e(i, { title: "Fullscreen", children: /* @__PURE__ */ e(t, { onClick: r, children: /* @__PURE__ */ e(s, { fontSize: "small" }) }) }),
|
|
16
|
+
/* @__PURE__ */ e(o, { orientation: "vertical", flexItem: !0 }),
|
|
17
|
+
/* @__PURE__ */ e(i, { title: "Download", children: /* @__PURE__ */ e(t, { onClick: l, children: /* @__PURE__ */ e(f, { fontSize: "small" }) }) })
|
|
18
18
|
] });
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
B as ActionButtons
|
|
21
21
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Remove as l, Add as m, ChevronLeft as a, ChevronRight as d, ZoomOutMap as c } from "@mui/icons-material";
|
|
3
|
+
import { Box as f, Divider as t, Typography as h } from "@mui/material";
|
|
4
|
+
import { DocumentViewerActionButton as i, DocumentViewerInput as p } from "../../styled.js";
|
|
5
5
|
const I = ({
|
|
6
6
|
currentPage: r,
|
|
7
7
|
totalPage: o
|
|
8
|
-
}) => /* @__PURE__ */ n(
|
|
8
|
+
}) => /* @__PURE__ */ n(f, { display: "flex", gap: 1, alignItems: "center", children: [
|
|
9
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(l, { fontSize: "small" }) }),
|
|
9
10
|
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(m, { fontSize: "small" }) }),
|
|
10
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(d, { fontSize: "small" }) }),
|
|
11
11
|
/* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
|
|
12
|
-
/* @__PURE__ */ e(i, { disabled: r === 1, children: /* @__PURE__ */ e(
|
|
12
|
+
/* @__PURE__ */ e(i, { disabled: r === 1, children: /* @__PURE__ */ e(a, {}) }),
|
|
13
13
|
/* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
|
|
14
14
|
/* @__PURE__ */ e(p, { value: r }),
|
|
15
|
-
/* @__PURE__ */ n(
|
|
15
|
+
/* @__PURE__ */ n(h, { variant: "body2", children: [
|
|
16
16
|
"/",
|
|
17
17
|
o
|
|
18
18
|
] }),
|
|
19
19
|
/* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
|
|
20
|
-
/* @__PURE__ */ e(i, { disabled: r === o, children: /* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e(i, { disabled: r === o, children: /* @__PURE__ */ e(d, {}) }),
|
|
21
21
|
/* @__PURE__ */ e(t, { orientation: "vertical", flexItem: !0 }),
|
|
22
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
22
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(c, {}) })
|
|
23
23
|
] });
|
|
24
24
|
export {
|
|
25
25
|
I as Navigation
|
|
@@ -1,38 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
zoomJump: 0.1
|
|
30
|
-
},
|
|
31
|
-
pdfVerticalScrollByDefault: !0
|
|
32
|
-
}
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { K as r, T as s, o, a as t, l as d, s as l, b as u, E as i, d as n, S as m, _ as p, e as f } from "../../../../txt-U0b7DL6j.js";
|
|
3
|
+
import '../../../../assets/index3.css';const S = (e) => e.data ? /* @__PURE__ */ a(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
documents: [{ uri: window.URL.createObjectURL(e.data) }],
|
|
7
|
+
pluginRenderers: [
|
|
8
|
+
s,
|
|
9
|
+
o,
|
|
10
|
+
t,
|
|
11
|
+
d,
|
|
12
|
+
l,
|
|
13
|
+
u,
|
|
14
|
+
i,
|
|
15
|
+
n,
|
|
16
|
+
m,
|
|
17
|
+
p,
|
|
18
|
+
f
|
|
19
|
+
],
|
|
20
|
+
config: {
|
|
21
|
+
header: {
|
|
22
|
+
disableHeader: !0
|
|
23
|
+
},
|
|
24
|
+
pdfZoom: {
|
|
25
|
+
defaultZoom: 0.5,
|
|
26
|
+
zoomJump: 0.1
|
|
27
|
+
},
|
|
28
|
+
pdfVerticalScrollByDefault: !0
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
}
|
|
31
|
+
) : null;
|
|
36
32
|
export {
|
|
37
|
-
|
|
33
|
+
S as Viewer
|
|
38
34
|
};
|
|
@@ -1,52 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
const { refs:
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { DoubleArrow as m } from "@mui/icons-material";
|
|
3
|
+
import { Toolbar as i } from "@mui/material";
|
|
4
|
+
import { ActionButtons as a } from "./components/action-buttons/index.js";
|
|
5
|
+
import { Viewer as w } from "./components/viewer/index.js";
|
|
6
|
+
import { useDocumentViewerLogic as u } from "./logic.js";
|
|
7
|
+
import { DocumentViewerRoot as d, DocumentViewerAppBar as D, DocumentViewerToolbar as h, DocumentViewerLogo as V, DocumentViewerNavigation as g, DocumentViewerActions as S, DocumentViewerContent as f, DocumentViewerViewer as s, DocumentViewerSidePanelToggleButton as P, DocumentViewerSidePanelToggleIcon as b, DocumentViewerSidePanel as k } from "./styled.js";
|
|
8
|
+
const j = (o) => {
|
|
9
|
+
const { refs: l, state: n, actions: t } = u(o);
|
|
10
|
+
return /* @__PURE__ */ r(d, { sx: n.sx, children: [
|
|
11
|
+
/* @__PURE__ */ e(D, { color: "inherit", children: /* @__PURE__ */ r(h, { children: [
|
|
12
|
+
/* @__PURE__ */ e(V, { children: o.logo }),
|
|
13
|
+
/* @__PURE__ */ e(g, {}),
|
|
14
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
15
|
+
a,
|
|
16
16
|
{
|
|
17
|
-
onBookmark:
|
|
18
|
-
onDownload:
|
|
19
|
-
onFullScreen:
|
|
20
|
-
onPrint:
|
|
17
|
+
onBookmark: o.onBookmark,
|
|
18
|
+
onDownload: t.onDownload,
|
|
19
|
+
onFullScreen: t.onFullScreen,
|
|
20
|
+
onPrint: t.onPrint
|
|
21
21
|
}
|
|
22
22
|
) })
|
|
23
23
|
] }) }),
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
24
|
+
/* @__PURE__ */ e(i, {}),
|
|
25
|
+
/* @__PURE__ */ e(f, { ownerState: n.ownerState, children: o.customContent ? o.customContent : n.blob ? /* @__PURE__ */ e(s, { ref: l.viewerRef, children: /* @__PURE__ */ e(w, { data: n.blob }) }) : null }),
|
|
26
|
+
o.rightPanel ? /* @__PURE__ */ r(c, { children: [
|
|
27
|
+
/* @__PURE__ */ e(
|
|
28
|
+
P,
|
|
29
29
|
{
|
|
30
|
-
|
|
31
|
-
onClick:
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
-
f,
|
|
34
|
-
{
|
|
35
|
-
sx: {
|
|
36
|
-
fontSize: 14,
|
|
37
|
-
transform: `rotate(${n.rightPanelWidth ? 0 : 180}deg)`
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
)
|
|
30
|
+
ownerState: n.ownerState,
|
|
31
|
+
onClick: t.toggleRightPanel,
|
|
32
|
+
children: /* @__PURE__ */ e(b, { ownerState: n.ownerState, children: /* @__PURE__ */ e(m, {}) })
|
|
41
33
|
}
|
|
42
34
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
35
|
+
/* @__PURE__ */ r(k, { ownerState: n.ownerState, children: [
|
|
36
|
+
/* @__PURE__ */ e(i, {}),
|
|
37
|
+
o.rightPanel
|
|
46
38
|
] })
|
|
47
39
|
] }) : null
|
|
48
40
|
] });
|
|
49
41
|
};
|
|
50
42
|
export {
|
|
51
|
-
|
|
43
|
+
j as DocumentViewer
|
|
52
44
|
};
|
|
@@ -1,46 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { useThemeProps as b } from "@mui/material";
|
|
2
|
+
import { useRef as w, useState as a, useEffect as R } from "react";
|
|
3
|
+
import { b64toBlob as x, printBlob as B, downloadBlob as W } from "./utils.js";
|
|
4
|
+
const F = (c) => {
|
|
5
|
+
const r = b({ props: c, name: "HCDocumentViewer" }), {
|
|
6
|
+
data: n,
|
|
7
|
+
title: u,
|
|
8
|
+
rightPanel: s,
|
|
9
|
+
rightPanelWidth: i = 450
|
|
10
|
+
} = r, o = w(null), [t, f] = a(), [e, l] = a(
|
|
11
|
+
s ? i : 0
|
|
12
|
+
);
|
|
13
|
+
R(() => ((async () => {
|
|
14
|
+
if (n) {
|
|
15
|
+
const P = await x(n, "application/pdf");
|
|
16
|
+
f(P);
|
|
14
17
|
}
|
|
15
18
|
})(), () => {
|
|
16
|
-
}), [
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
)
|
|
19
|
+
}), [n]);
|
|
20
|
+
const h = () => {
|
|
21
|
+
t && B(t);
|
|
22
|
+
}, p = () => {
|
|
23
|
+
o.current && o.current.requestFullscreen();
|
|
24
|
+
}, d = () => {
|
|
25
|
+
t && W(t, u);
|
|
26
|
+
}, g = () => {
|
|
27
|
+
l(e ? 0 : i);
|
|
28
|
+
}, m = {
|
|
29
|
+
rightPanelExpanded: e > 0,
|
|
30
|
+
rightPanelWidth: e,
|
|
31
|
+
hasRightPanel: !!s
|
|
32
|
+
};
|
|
20
33
|
return {
|
|
21
34
|
refs: {
|
|
22
|
-
|
|
35
|
+
viewerRef: o
|
|
23
36
|
},
|
|
24
37
|
state: {
|
|
25
|
-
|
|
26
|
-
|
|
38
|
+
ownerState: m,
|
|
39
|
+
blob: t,
|
|
40
|
+
rightPanelWidth: e,
|
|
41
|
+
sx: r.sx
|
|
27
42
|
},
|
|
28
|
-
|
|
29
|
-
onPrint:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
t.current && t.current.requestFullscreen();
|
|
34
|
-
},
|
|
35
|
-
onDownload: () => {
|
|
36
|
-
o && p(o, c);
|
|
37
|
-
},
|
|
38
|
-
toggleRightPanel: () => {
|
|
39
|
-
r(l ? 0 : n);
|
|
40
|
-
}
|
|
43
|
+
actions: {
|
|
44
|
+
onPrint: h,
|
|
45
|
+
onFullScreen: p,
|
|
46
|
+
onDownload: d,
|
|
47
|
+
toggleRightPanel: g
|
|
41
48
|
}
|
|
42
49
|
};
|
|
43
50
|
};
|
|
44
51
|
export {
|
|
45
|
-
|
|
52
|
+
F as useDocumentViewerLogic
|
|
46
53
|
};
|