@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
|
@@ -1,462 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ClickAwayListener as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { alpha as I } from "@mui/system";
|
|
10
|
-
import { s as B, r as A } from "../../styled-eZwjUruw.js";
|
|
11
|
-
import { B as z, u as q, a as H } from "../../ButtonBase-2bPw77UP.js";
|
|
12
|
-
import { g as J, l as w, b as K } from "../../listItemTextClasses-C3lndiXO.js";
|
|
13
|
-
import { T as C } from "../../Typography-CxbneZy_.js";
|
|
14
|
-
const Q = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], X = (e, o) => {
|
|
15
|
-
const {
|
|
16
|
-
ownerState: s
|
|
17
|
-
} = e;
|
|
18
|
-
return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters];
|
|
19
|
-
}, Y = (e) => {
|
|
20
|
-
const {
|
|
21
|
-
alignItems: o,
|
|
22
|
-
classes: s,
|
|
23
|
-
dense: a,
|
|
24
|
-
disabled: n,
|
|
25
|
-
disableGutters: i,
|
|
26
|
-
divider: c,
|
|
27
|
-
selected: r
|
|
28
|
-
} = e, u = P({
|
|
29
|
-
root: ["root", a && "dense", !i && "gutters", c && "divider", n && "disabled", o === "flex-start" && "alignItemsFlexStart", r && "selected"]
|
|
30
|
-
}, D, s);
|
|
31
|
-
return d({}, s, u);
|
|
32
|
-
}, Z = B(z, {
|
|
33
|
-
shouldForwardProp: (e) => A(e) || e === "classes",
|
|
34
|
-
name: "MuiListItemButton",
|
|
35
|
-
slot: "Root",
|
|
36
|
-
overridesResolver: X
|
|
37
|
-
})(({
|
|
38
|
-
theme: e,
|
|
39
|
-
ownerState: o
|
|
40
|
-
}) => d({
|
|
41
|
-
display: "flex",
|
|
42
|
-
flexGrow: 1,
|
|
43
|
-
justifyContent: "flex-start",
|
|
44
|
-
alignItems: "center",
|
|
45
|
-
position: "relative",
|
|
46
|
-
textDecoration: "none",
|
|
47
|
-
minWidth: 0,
|
|
48
|
-
boxSizing: "border-box",
|
|
49
|
-
textAlign: "left",
|
|
50
|
-
paddingTop: 8,
|
|
51
|
-
paddingBottom: 8,
|
|
52
|
-
transition: e.transitions.create("background-color", {
|
|
53
|
-
duration: e.transitions.duration.shortest
|
|
54
|
-
}),
|
|
55
|
-
"&:hover": {
|
|
56
|
-
textDecoration: "none",
|
|
57
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
58
|
-
// Reset on touch devices, it doesn't add specificity
|
|
59
|
-
"@media (hover: none)": {
|
|
60
|
-
backgroundColor: "transparent"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
[`&.${v.selected}`]: {
|
|
64
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : I(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
65
|
-
[`&.${v.focusVisible}`]: {
|
|
66
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : I(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
[`&.${v.selected}:hover`]: {
|
|
70
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : I(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
71
|
-
// Reset on touch devices, it doesn't add specificity
|
|
72
|
-
"@media (hover: none)": {
|
|
73
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : I(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
[`&.${v.focusVisible}`]: {
|
|
77
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
78
|
-
},
|
|
79
|
-
[`&.${v.disabled}`]: {
|
|
80
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
81
|
-
}
|
|
82
|
-
}, o.divider && {
|
|
83
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
84
|
-
backgroundClip: "padding-box"
|
|
85
|
-
}, o.alignItems === "flex-start" && {
|
|
86
|
-
alignItems: "flex-start"
|
|
87
|
-
}, !o.disableGutters && {
|
|
88
|
-
paddingLeft: 16,
|
|
89
|
-
paddingRight: 16
|
|
90
|
-
}, o.dense && {
|
|
91
|
-
paddingTop: 4,
|
|
92
|
-
paddingBottom: 4
|
|
93
|
-
})), F = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
94
|
-
const a = R({
|
|
95
|
-
props: o,
|
|
96
|
-
name: "MuiListItemButton"
|
|
97
|
-
}), {
|
|
98
|
-
alignItems: n = "center",
|
|
99
|
-
autoFocus: i = !1,
|
|
100
|
-
component: c = "div",
|
|
101
|
-
children: r,
|
|
102
|
-
dense: m = !1,
|
|
103
|
-
disableGutters: u = !1,
|
|
104
|
-
divider: L = !1,
|
|
105
|
-
focusVisibleClassName: O,
|
|
106
|
-
selected: N = !1,
|
|
107
|
-
className: x
|
|
108
|
-
} = a, l = k(a, Q), y = f.useContext(T), g = f.useMemo(() => ({
|
|
109
|
-
dense: m || y.dense || !1,
|
|
110
|
-
alignItems: n,
|
|
111
|
-
disableGutters: u
|
|
112
|
-
}), [n, y.dense, m, u]), b = f.useRef(null);
|
|
113
|
-
q(() => {
|
|
114
|
-
i && (b.current ? b.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
115
|
-
}, [i]);
|
|
116
|
-
const j = d({}, a, {
|
|
117
|
-
alignItems: n,
|
|
118
|
-
dense: g.dense,
|
|
119
|
-
disableGutters: u,
|
|
120
|
-
divider: L,
|
|
121
|
-
selected: N
|
|
122
|
-
}), $ = Y(j), _ = H(b, s);
|
|
123
|
-
return /* @__PURE__ */ p(T.Provider, {
|
|
124
|
-
value: g,
|
|
125
|
-
children: /* @__PURE__ */ p(Z, d({
|
|
126
|
-
ref: _,
|
|
127
|
-
href: l.href || l.to,
|
|
128
|
-
component: (l.href || l.to) && c === "div" ? "a" : c,
|
|
129
|
-
focusVisibleClassName: h($.focusVisible, O),
|
|
130
|
-
ownerState: j,
|
|
131
|
-
className: h($.root, x)
|
|
132
|
-
}, l, {
|
|
133
|
-
classes: $,
|
|
134
|
-
children: r
|
|
135
|
-
}))
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
139
|
-
// ----------------------------- Warning --------------------------------
|
|
140
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
141
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
142
|
-
// ----------------------------------------------------------------------
|
|
143
|
-
/**
|
|
144
|
-
* Defines the `align-items` style property.
|
|
145
|
-
* @default 'center'
|
|
146
|
-
*/
|
|
147
|
-
alignItems: t.oneOf(["center", "flex-start"]),
|
|
148
|
-
/**
|
|
149
|
-
* If `true`, the list item is focused during the first mount.
|
|
150
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
151
|
-
* @default false
|
|
152
|
-
*/
|
|
153
|
-
autoFocus: t.bool,
|
|
154
|
-
/**
|
|
155
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
156
|
-
* be the last child.
|
|
157
|
-
*/
|
|
158
|
-
children: t.node,
|
|
159
|
-
/**
|
|
160
|
-
* Override or extend the styles applied to the component.
|
|
161
|
-
*/
|
|
162
|
-
classes: t.object,
|
|
163
|
-
/**
|
|
164
|
-
* @ignore
|
|
165
|
-
*/
|
|
166
|
-
className: t.string,
|
|
167
|
-
/**
|
|
168
|
-
* The component used for the root node.
|
|
169
|
-
* Either a string to use a HTML element or a component.
|
|
170
|
-
*/
|
|
171
|
-
component: t.elementType,
|
|
172
|
-
/**
|
|
173
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
174
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
dense: t.bool,
|
|
178
|
-
/**
|
|
179
|
-
* If `true`, the component is disabled.
|
|
180
|
-
* @default false
|
|
181
|
-
*/
|
|
182
|
-
disabled: t.bool,
|
|
183
|
-
/**
|
|
184
|
-
* If `true`, the left and right padding is removed.
|
|
185
|
-
* @default false
|
|
186
|
-
*/
|
|
187
|
-
disableGutters: t.bool,
|
|
188
|
-
/**
|
|
189
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
190
|
-
* @default false
|
|
191
|
-
*/
|
|
192
|
-
divider: t.bool,
|
|
193
|
-
/**
|
|
194
|
-
* This prop can help identify which element has keyboard focus.
|
|
195
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
196
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
197
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
198
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
199
|
-
* if needed.
|
|
200
|
-
*/
|
|
201
|
-
focusVisibleClassName: t.string,
|
|
202
|
-
/**
|
|
203
|
-
* @ignore
|
|
204
|
-
*/
|
|
205
|
-
href: t.string,
|
|
206
|
-
/**
|
|
207
|
-
* Use to apply selected styling.
|
|
208
|
-
* @default false
|
|
209
|
-
*/
|
|
210
|
-
selected: t.bool,
|
|
211
|
-
/**
|
|
212
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
213
|
-
*/
|
|
214
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
215
|
-
});
|
|
216
|
-
const ee = ["className"], te = (e) => {
|
|
217
|
-
const {
|
|
218
|
-
alignItems: o,
|
|
219
|
-
classes: s
|
|
220
|
-
} = e;
|
|
221
|
-
return P({
|
|
222
|
-
root: ["root", o === "flex-start" && "alignItemsFlexStart"]
|
|
223
|
-
}, J, s);
|
|
224
|
-
}, oe = B("div", {
|
|
225
|
-
name: "MuiListItemIcon",
|
|
226
|
-
slot: "Root",
|
|
227
|
-
overridesResolver: (e, o) => {
|
|
228
|
-
const {
|
|
229
|
-
ownerState: s
|
|
230
|
-
} = e;
|
|
231
|
-
return [o.root, s.alignItems === "flex-start" && o.alignItemsFlexStart];
|
|
232
|
-
}
|
|
233
|
-
})(({
|
|
234
|
-
theme: e,
|
|
235
|
-
ownerState: o
|
|
236
|
-
}) => d({
|
|
237
|
-
minWidth: 56,
|
|
238
|
-
color: (e.vars || e).palette.action.active,
|
|
239
|
-
flexShrink: 0,
|
|
240
|
-
display: "inline-flex"
|
|
241
|
-
}, o.alignItems === "flex-start" && {
|
|
242
|
-
marginTop: 8
|
|
243
|
-
})), V = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
244
|
-
const a = R({
|
|
245
|
-
props: o,
|
|
246
|
-
name: "MuiListItemIcon"
|
|
247
|
-
}), {
|
|
248
|
-
className: n
|
|
249
|
-
} = a, i = k(a, ee), c = f.useContext(T), r = d({}, a, {
|
|
250
|
-
alignItems: c.alignItems
|
|
251
|
-
}), m = te(r);
|
|
252
|
-
return /* @__PURE__ */ p(oe, d({
|
|
253
|
-
className: h(m.root, n),
|
|
254
|
-
ownerState: r,
|
|
255
|
-
ref: s
|
|
256
|
-
}, i));
|
|
257
|
-
});
|
|
258
|
-
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
259
|
-
// ----------------------------- Warning --------------------------------
|
|
260
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
261
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
262
|
-
// ----------------------------------------------------------------------
|
|
263
|
-
/**
|
|
264
|
-
* The content of the component, normally `Icon`, `SvgIcon`,
|
|
265
|
-
* or a `@mui/icons-material` SVG icon element.
|
|
266
|
-
*/
|
|
267
|
-
children: t.node,
|
|
268
|
-
/**
|
|
269
|
-
* Override or extend the styles applied to the component.
|
|
270
|
-
*/
|
|
271
|
-
classes: t.object,
|
|
272
|
-
/**
|
|
273
|
-
* @ignore
|
|
274
|
-
*/
|
|
275
|
-
className: t.string,
|
|
276
|
-
/**
|
|
277
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
278
|
-
*/
|
|
279
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
280
|
-
});
|
|
281
|
-
const se = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], ae = (e) => {
|
|
282
|
-
const {
|
|
283
|
-
classes: o,
|
|
284
|
-
inset: s,
|
|
285
|
-
primary: a,
|
|
286
|
-
secondary: n,
|
|
287
|
-
dense: i
|
|
288
|
-
} = e;
|
|
289
|
-
return P({
|
|
290
|
-
root: ["root", s && "inset", i && "dense", a && n && "multiline"],
|
|
291
|
-
primary: ["primary"],
|
|
292
|
-
secondary: ["secondary"]
|
|
293
|
-
}, K, o);
|
|
294
|
-
}, re = B("div", {
|
|
295
|
-
name: "MuiListItemText",
|
|
296
|
-
slot: "Root",
|
|
297
|
-
overridesResolver: (e, o) => {
|
|
298
|
-
const {
|
|
299
|
-
ownerState: s
|
|
300
|
-
} = e;
|
|
301
|
-
return [{
|
|
302
|
-
[`& .${w.primary}`]: o.primary
|
|
303
|
-
}, {
|
|
304
|
-
[`& .${w.secondary}`]: o.secondary
|
|
305
|
-
}, o.root, s.inset && o.inset, s.primary && s.secondary && o.multiline, s.dense && o.dense];
|
|
306
|
-
}
|
|
307
|
-
})(({
|
|
308
|
-
ownerState: e
|
|
309
|
-
}) => d({
|
|
310
|
-
flex: "1 1 auto",
|
|
311
|
-
minWidth: 0,
|
|
312
|
-
marginTop: 4,
|
|
313
|
-
marginBottom: 4
|
|
314
|
-
}, e.primary && e.secondary && {
|
|
315
|
-
marginTop: 6,
|
|
316
|
-
marginBottom: 6
|
|
317
|
-
}, e.inset && {
|
|
318
|
-
paddingLeft: 56
|
|
319
|
-
})), E = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
320
|
-
const a = R({
|
|
321
|
-
props: o,
|
|
322
|
-
name: "MuiListItemText"
|
|
323
|
-
}), {
|
|
324
|
-
children: n,
|
|
325
|
-
className: i,
|
|
326
|
-
disableTypography: c = !1,
|
|
327
|
-
inset: r = !1,
|
|
328
|
-
primary: m,
|
|
329
|
-
primaryTypographyProps: u,
|
|
330
|
-
secondary: L,
|
|
331
|
-
secondaryTypographyProps: O
|
|
332
|
-
} = a, N = k(a, se), {
|
|
333
|
-
dense: x
|
|
334
|
-
} = f.useContext(T);
|
|
335
|
-
let l = m ?? n, y = L;
|
|
336
|
-
const g = d({}, a, {
|
|
337
|
-
disableTypography: c,
|
|
338
|
-
inset: r,
|
|
339
|
-
primary: !!l,
|
|
340
|
-
secondary: !!y,
|
|
341
|
-
dense: x
|
|
342
|
-
}), b = ae(g);
|
|
343
|
-
return l != null && l.type !== C && !c && (l = /* @__PURE__ */ p(C, d({
|
|
344
|
-
variant: x ? "body2" : "body1",
|
|
345
|
-
className: b.primary,
|
|
346
|
-
component: u != null && u.variant ? void 0 : "span",
|
|
347
|
-
display: "block"
|
|
348
|
-
}, u, {
|
|
349
|
-
children: l
|
|
350
|
-
}))), y != null && y.type !== C && !c && (y = /* @__PURE__ */ p(C, d({
|
|
351
|
-
variant: "body2",
|
|
352
|
-
className: b.secondary,
|
|
353
|
-
color: "text.secondary",
|
|
354
|
-
display: "block"
|
|
355
|
-
}, O, {
|
|
356
|
-
children: y
|
|
357
|
-
}))), /* @__PURE__ */ S(re, d({
|
|
358
|
-
className: h(b.root, i),
|
|
359
|
-
ownerState: g,
|
|
360
|
-
ref: s
|
|
361
|
-
}, N, {
|
|
362
|
-
children: [l, y]
|
|
363
|
-
}));
|
|
364
|
-
});
|
|
365
|
-
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
366
|
-
// ----------------------------- Warning --------------------------------
|
|
367
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
368
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
369
|
-
// ----------------------------------------------------------------------
|
|
370
|
-
/**
|
|
371
|
-
* Alias for the `primary` prop.
|
|
372
|
-
*/
|
|
373
|
-
children: t.node,
|
|
374
|
-
/**
|
|
375
|
-
* Override or extend the styles applied to the component.
|
|
376
|
-
*/
|
|
377
|
-
classes: t.object,
|
|
378
|
-
/**
|
|
379
|
-
* @ignore
|
|
380
|
-
*/
|
|
381
|
-
className: t.string,
|
|
382
|
-
/**
|
|
383
|
-
* If `true`, the children won't be wrapped by a Typography component.
|
|
384
|
-
* This can be useful to render an alternative Typography variant by wrapping
|
|
385
|
-
* the `children` (or `primary`) text, and optional `secondary` text
|
|
386
|
-
* with the Typography component.
|
|
387
|
-
* @default false
|
|
388
|
-
*/
|
|
389
|
-
disableTypography: t.bool,
|
|
390
|
-
/**
|
|
391
|
-
* If `true`, the children are indented.
|
|
392
|
-
* This should be used if there is no left avatar or left icon.
|
|
393
|
-
* @default false
|
|
394
|
-
*/
|
|
395
|
-
inset: t.bool,
|
|
396
|
-
/**
|
|
397
|
-
* The main content element.
|
|
398
|
-
*/
|
|
399
|
-
primary: t.node,
|
|
400
|
-
/**
|
|
401
|
-
* These props will be forwarded to the primary typography component
|
|
402
|
-
* (as long as disableTypography is not `true`).
|
|
403
|
-
*/
|
|
404
|
-
primaryTypographyProps: t.object,
|
|
405
|
-
/**
|
|
406
|
-
* The secondary content element.
|
|
407
|
-
*/
|
|
408
|
-
secondary: t.node,
|
|
409
|
-
/**
|
|
410
|
-
* These props will be forwarded to the secondary typography component
|
|
411
|
-
* (as long as disableTypography is not `true`).
|
|
412
|
-
*/
|
|
413
|
-
secondaryTypographyProps: t.object,
|
|
414
|
-
/**
|
|
415
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
416
|
-
*/
|
|
417
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
418
|
-
});
|
|
419
|
-
const ve = ({
|
|
420
|
-
open: e,
|
|
421
|
-
buttons: o,
|
|
422
|
-
position: s,
|
|
423
|
-
width: a = 160,
|
|
424
|
-
sx: n,
|
|
425
|
-
onClose: i
|
|
426
|
-
}) => {
|
|
427
|
-
const c = () => {
|
|
428
|
-
i && i();
|
|
429
|
-
};
|
|
430
|
-
return e ? /* @__PURE__ */ p(U, { onClickAway: c, children: /* @__PURE__ */ p(
|
|
431
|
-
G,
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { ClickAwayListener as a } from "@mui/material";
|
|
3
|
+
import { useContextMenuLogic as d } from "./logic.js";
|
|
4
|
+
import { ContextMenuList as u, ContextMenuItem as x, ContextMenuItemButton as C, ContextMenuItemIcon as m, ContextMenuItemText as I } from "./styled.js";
|
|
5
|
+
const y = (e) => {
|
|
6
|
+
const { state: o, actions: r } = d(e), { ownerState: i, open: c } = o;
|
|
7
|
+
return c ? /* @__PURE__ */ t(a, { onClickAway: r.handleClickAway, children: /* @__PURE__ */ t(u, { ownerState: i, sx: e.sx, disablePadding: !0, children: e.buttons.map((n, l) => /* @__PURE__ */ t(
|
|
8
|
+
x,
|
|
432
9
|
{
|
|
433
|
-
|
|
434
|
-
position: "absolute",
|
|
435
|
-
zIndex: 9999999,
|
|
436
|
-
width: a,
|
|
437
|
-
maxWidth: 360,
|
|
438
|
-
bgcolor: "background.paper",
|
|
439
|
-
left: s == null ? void 0 : s.left,
|
|
440
|
-
top: s == null ? void 0 : s.top,
|
|
441
|
-
borderRadius: 0.5,
|
|
442
|
-
...n
|
|
443
|
-
},
|
|
10
|
+
secondaryAction: n.endIcon,
|
|
444
11
|
disablePadding: !0,
|
|
445
|
-
children:
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
|
|
12
|
+
children: /* @__PURE__ */ s(
|
|
13
|
+
C,
|
|
14
|
+
{
|
|
15
|
+
role: void 0,
|
|
16
|
+
onClick: n.onClick,
|
|
17
|
+
dense: !0,
|
|
18
|
+
children: [
|
|
19
|
+
n.startIcon !== void 0 && /* @__PURE__ */ t(m, { children: n.startIcon }),
|
|
20
|
+
/* @__PURE__ */ t(I, { primary: n.label })
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
},
|
|
25
|
+
l
|
|
26
|
+
)) }) }) : null;
|
|
459
27
|
};
|
|
460
28
|
export {
|
|
461
|
-
|
|
29
|
+
y as ContextMenu
|
|
462
30
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useThemeProps as p } from "@mui/material";
|
|
2
|
+
const a = (t) => {
|
|
3
|
+
const o = p({ props: t, name: "HCContextMenu" }), { width: n = 160, onClose: e } = o, s = { ...o, width: n }, r = () => {
|
|
4
|
+
e && e();
|
|
5
|
+
};
|
|
6
|
+
return {
|
|
7
|
+
refs: {},
|
|
8
|
+
state: { ownerState: s, open: o.open },
|
|
9
|
+
actions: { handleClickAway: r }
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as useContextMenuLogic
|
|
14
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { styled as o, List as n, ListItem as i, ListItemButton as s, ListItemIcon as m, ListItemText as u } from "@mui/material";
|
|
2
|
+
const a = (t) => t !== "ownerState", C = o(n, {
|
|
3
|
+
name: "HCContextMenu",
|
|
4
|
+
slot: "list",
|
|
5
|
+
shouldForwardProp: a
|
|
6
|
+
})(({ theme: t, ownerState: e }) => ({
|
|
7
|
+
position: "absolute",
|
|
8
|
+
zIndex: 9999999,
|
|
9
|
+
width: e.width ?? 160,
|
|
10
|
+
maxWidth: 360,
|
|
11
|
+
backgroundColor: t.palette.background.paper,
|
|
12
|
+
borderRadius: t.shape.borderRadius * 0.5,
|
|
13
|
+
...e.position ? { left: e.position.left, top: e.position.top } : {}
|
|
14
|
+
})), p = o(i, {
|
|
15
|
+
name: "HCContextMenu",
|
|
16
|
+
slot: "item"
|
|
17
|
+
})({}), r = o(s, {
|
|
18
|
+
name: "HCContextMenu",
|
|
19
|
+
slot: "itemButton"
|
|
20
|
+
})({}), d = o(m, {
|
|
21
|
+
name: "HCContextMenu",
|
|
22
|
+
slot: "itemIcon"
|
|
23
|
+
})(({ theme: t }) => ({
|
|
24
|
+
minWidth: "auto",
|
|
25
|
+
marginRight: t.spacing(1)
|
|
26
|
+
})), l = o(u, {
|
|
27
|
+
name: "HCContextMenu",
|
|
28
|
+
slot: "itemText"
|
|
29
|
+
})({
|
|
30
|
+
"& .MuiListItemText-primary": {
|
|
31
|
+
fontSize: 12
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
p as ContextMenuItem,
|
|
36
|
+
r as ContextMenuItemButton,
|
|
37
|
+
d as ContextMenuItemIcon,
|
|
38
|
+
l as ContextMenuItemText,
|
|
39
|
+
C as ContextMenuList
|
|
40
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useDataGridLogic as i } from "./logic.js";
|
|
3
|
+
import { DataGridRoot as s } from "./styled.js";
|
|
4
|
+
const u = (o) => {
|
|
5
|
+
const { state: e } = i(o), { props: t } = e;
|
|
6
|
+
return /* @__PURE__ */ r(
|
|
7
|
+
s,
|
|
8
|
+
{
|
|
9
|
+
...t,
|
|
10
|
+
columns: t.columns,
|
|
11
|
+
density: t.density ?? "standard",
|
|
12
|
+
hideFooter: t.hideFooter ?? !0,
|
|
13
|
+
autoHeight: t.autoHeight ?? !0,
|
|
14
|
+
loading: t.loading ?? !1,
|
|
15
|
+
disableRowSelectionOnClick: !0,
|
|
16
|
+
sx: t.sx
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
u as DataGrid
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useThemeProps as e } from "@mui/material";
|
|
2
|
+
const a = (o) => {
|
|
3
|
+
const t = e({
|
|
4
|
+
props: o,
|
|
5
|
+
name: "HCDataGrid"
|
|
6
|
+
}), r = { ...t };
|
|
7
|
+
return {
|
|
8
|
+
refs: {},
|
|
9
|
+
state: { ownerState: r, props: t },
|
|
10
|
+
actions: {}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
a as useDataGridLogic
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material";
|
|
2
|
+
import { DataGrid as t } from "@mui/x-data-grid";
|
|
3
|
+
const d = r(t, {
|
|
4
|
+
name: "HCDataGrid",
|
|
5
|
+
slot: "root"
|
|
6
|
+
})(({ theme: o }) => ({
|
|
7
|
+
border: `1px solid ${o.palette.divider}`,
|
|
8
|
+
"& .MuiDataGrid-columnHeaders": {
|
|
9
|
+
borderBottom: `1px solid ${o.palette.divider}`
|
|
10
|
+
},
|
|
11
|
+
"& .MuiDataGrid-footerContainer": {
|
|
12
|
+
borderTop: `1px solid ${o.palette.divider}`
|
|
13
|
+
},
|
|
14
|
+
"& .MuiDataGrid-row:hover": {
|
|
15
|
+
backgroundColor: o.palette.action.hover
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
export {
|
|
19
|
+
d as DataGridRoot
|
|
20
|
+
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Container as t, Button as r } from "./styled.js";
|
|
3
3
|
import { I as s, a as l } from "../../../../IconPlus-yPkff_Vj.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
] }) : null;
|
|
9
|
-
}
|
|
4
|
+
const m = ({ mapRef: n }) => n ? /* @__PURE__ */ i(t, { children: [
|
|
5
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomIn, children: /* @__PURE__ */ o(s, { size: 18 }) }),
|
|
6
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomOut, children: /* @__PURE__ */ o(l, { size: 18 }) })
|
|
7
|
+
] }) : null;
|
|
10
8
|
export {
|
|
11
9
|
m as Controls
|
|
12
10
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { u
|
|
5
|
-
import {
|
|
2
|
+
import { Typography as m, Paper as d } from "@mui/material";
|
|
3
|
+
import { useEffect as h } from "react";
|
|
4
|
+
import { u } from "../../index.esm-BLLrbTzY.js";
|
|
5
|
+
import { Map as x } from "../map/index.js";
|
|
6
6
|
import { Controls as M } from "./components/controls/index.js";
|
|
7
7
|
import { useDataMapLogic as R } from "./logic.js";
|
|
8
8
|
import { DataMapRoot as z, DataMapHeader as D, DataMapContent as y } from "./styled.js";
|
|
9
|
-
|
|
10
|
-
const { refs: e, actions: a, state: o, ownerState: r, sx:
|
|
11
|
-
return
|
|
12
|
-
}), [n, p]), /* @__PURE__ */ s(z, { ownerState: r, sx:
|
|
13
|
-
/* @__PURE__ */ t(D, { ownerState: r, children: /* @__PURE__ */ t(
|
|
9
|
+
const H = (i) => {
|
|
10
|
+
const { refs: e, actions: a, state: o, ownerState: r, sx: f, other: l } = R(i), { width: n, height: p, ref: c } = u();
|
|
11
|
+
return h(() => (n && p && a.onMapResize(), () => {
|
|
12
|
+
}), [n, p]), /* @__PURE__ */ s(z, { ownerState: r, sx: f, ref: c, ...l, children: [
|
|
13
|
+
/* @__PURE__ */ t(D, { ownerState: r, children: /* @__PURE__ */ t(m, { variant: "h3", children: i.title }) }),
|
|
14
14
|
/* @__PURE__ */ s(y, { ownerState: r, children: [
|
|
15
15
|
/* @__PURE__ */ t(
|
|
16
16
|
x,
|
|
@@ -40,12 +40,12 @@ function H(i) {
|
|
|
40
40
|
pointerEvents: "none",
|
|
41
41
|
zIndex: 1e3
|
|
42
42
|
},
|
|
43
|
-
children: /* @__PURE__ */ t(
|
|
43
|
+
children: /* @__PURE__ */ t(m, { variant: "body2", children: o.tooltip.text })
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
] })
|
|
47
47
|
] });
|
|
48
|
-
}
|
|
48
|
+
};
|
|
49
49
|
export {
|
|
50
50
|
H as DataMap
|
|
51
51
|
};
|