@hybridcore/ui 1.5.90 → 1.6.1
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/{AccordionDetails-DhriPVPP.js → AccordionSummary-CMg08YSA.js} +91 -95
- package/dist/{Add-CMz4N2zT.js → Add-DuVVJeQU.js} +35 -36
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-sObABYY2.js} +62 -58
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-CGJ7alb8.js} +10 -13
- package/dist/FormControl-BCurCxRj.js +1294 -0
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-_opV1iNK.js} +18 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-C7PEvvYr.js} +17 -19
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-DrE50M_p.js} +92 -69
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/TextField-DSDIEEKu.js +3161 -0
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-B-Z5Y0Xq.js} +48 -50
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-quqpGCFu.js +9 -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/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/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -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 -557
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +8 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- 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 +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- 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/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- 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/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +148 -7
- 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 +4222 -0
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- 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 +8 -8
- 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 +8 -10
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- 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 +8 -9
- package/dist/components/template-form/index.js +32 -33
- 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/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -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/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BM3-TsGy.js} +33 -36
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DX-SqL8M.js} +24 -26
- package/dist/{dialog-BE4D6swf.js → dialog-cf4HUXXl.js} +27 -28
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C8C3YXle.js +1932 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-DPKUmQnz.js} +11 -13
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +1869 -565
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-DL_dEoNn.js} +57 -62
- package/dist/{createTheme-CNnKNxwL.js → styled-Bsjp3kFh.js} +275 -278
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-B-M3dnTn.js +7993 -0
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/Button-eqWvpDuh.js +0 -356
- package/dist/CardContent-DsYqqPeJ.js +0 -74
- package/dist/Checkbox-CrU2hpWB.js +0 -420
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/FormControlLabel-BrdX4R71.js +0 -195
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/List-DOD5kSk3.js +0 -121
- package/dist/ListItem-r8PbsvCz.js +0 -429
- package/dist/Modal-CkcFEpHa.js +0 -1284
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Paper-CjqLScHA.js +0 -163
- package/dist/Select-t3ewnSdf.js +0 -2180
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/TextField-BQ8a50fA.js +0 -459
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-CNjn41Of.js +0 -16
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
- package/dist/utils-CsOZUsQj.js +0 -365
|
@@ -1,562 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { a as b, _ as P } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
10
|
-
import { u as $, c as R, a as w } from "../../useThemeProps-DRP1dikX.js";
|
|
11
|
-
import { s as B, r as Q } from "../../styled-B8ugzvji.js";
|
|
12
|
-
import { a as C } from "../../createTheme-CNnKNxwL.js";
|
|
13
|
-
import { g as Z, l as S, b as ee } from "../../listItemTextClasses-CNjn41Of.js";
|
|
14
|
-
import { T as E } from "../../Typography-D1t7XuLN.js";
|
|
15
|
-
function M(e) {
|
|
16
|
-
return e.substring(2).toLowerCase();
|
|
17
|
-
}
|
|
18
|
-
function te(e, o) {
|
|
19
|
-
return o.documentElement.clientWidth < e.clientX || o.documentElement.clientHeight < e.clientY;
|
|
20
|
-
}
|
|
21
|
-
function O(e) {
|
|
22
|
-
const {
|
|
23
|
-
children: o,
|
|
24
|
-
disableReactTree: s = !1,
|
|
25
|
-
mouseEvent: n = "onClick",
|
|
26
|
-
onClickAway: p,
|
|
27
|
-
touchEvent: c = "onTouchEnd"
|
|
28
|
-
} = e, l = d.useRef(!1), a = d.useRef(null), u = d.useRef(!1), m = d.useRef(!1);
|
|
29
|
-
d.useEffect(() => (setTimeout(() => {
|
|
30
|
-
u.current = !0;
|
|
31
|
-
}, 0), () => {
|
|
32
|
-
u.current = !1;
|
|
33
|
-
}), []);
|
|
34
|
-
const I = D(
|
|
35
|
-
// @ts-expect-error TODO upstream fix
|
|
36
|
-
o.ref,
|
|
37
|
-
a
|
|
38
|
-
), g = W((r) => {
|
|
39
|
-
const i = m.current;
|
|
40
|
-
m.current = !1;
|
|
41
|
-
const f = k(a.current);
|
|
42
|
-
if (!u.current || !a.current || "clientX" in r && te(r, f))
|
|
43
|
-
return;
|
|
44
|
-
if (l.current) {
|
|
45
|
-
l.current = !1;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
let v;
|
|
49
|
-
r.composedPath ? v = r.composedPath().indexOf(a.current) > -1 : v = !f.documentElement.contains(
|
|
50
|
-
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
51
|
-
r.target
|
|
52
|
-
) || a.current.contains(
|
|
53
|
-
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
54
|
-
r.target
|
|
55
|
-
), !v && (s || !i) && p(r);
|
|
56
|
-
}), h = (r) => (i) => {
|
|
57
|
-
m.current = !0;
|
|
58
|
-
const f = o.props[r];
|
|
59
|
-
f && f(i);
|
|
60
|
-
}, x = {
|
|
61
|
-
ref: I
|
|
62
|
-
};
|
|
63
|
-
return c !== !1 && (x[c] = h(c)), d.useEffect(() => {
|
|
64
|
-
if (c !== !1) {
|
|
65
|
-
const r = M(c), i = k(a.current), f = () => {
|
|
66
|
-
l.current = !0;
|
|
67
|
-
};
|
|
68
|
-
return i.addEventListener(r, g), i.addEventListener("touchmove", f), () => {
|
|
69
|
-
i.removeEventListener(r, g), i.removeEventListener("touchmove", f);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}, [g, c]), n !== !1 && (x[n] = h(n)), d.useEffect(() => {
|
|
73
|
-
if (n !== !1) {
|
|
74
|
-
const r = M(n), i = k(a.current);
|
|
75
|
-
return i.addEventListener(r, g), () => {
|
|
76
|
-
i.removeEventListener(r, g);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}, [g, n]), /* @__PURE__ */ y(d.Fragment, {
|
|
80
|
-
children: /* @__PURE__ */ d.cloneElement(o, x)
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
84
|
-
// ----------------------------- Warning --------------------------------
|
|
85
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
87
|
-
// ----------------------------------------------------------------------
|
|
88
|
-
/**
|
|
89
|
-
* The wrapped element.
|
|
90
|
-
*/
|
|
91
|
-
children: q.isRequired,
|
|
92
|
-
/**
|
|
93
|
-
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
94
|
-
* This prop changes how portaled elements are handled.
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
disableReactTree: t.bool,
|
|
98
|
-
/**
|
|
99
|
-
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
100
|
-
* @default 'onClick'
|
|
101
|
-
*/
|
|
102
|
-
mouseEvent: t.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
|
|
103
|
-
/**
|
|
104
|
-
* Callback fired when a "click away" event is detected.
|
|
105
|
-
*/
|
|
106
|
-
onClickAway: t.func.isRequired,
|
|
107
|
-
/**
|
|
108
|
-
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
109
|
-
* @default 'onTouchEnd'
|
|
110
|
-
*/
|
|
111
|
-
touchEvent: t.oneOf(["onTouchEnd", "onTouchStart", !1])
|
|
112
|
-
});
|
|
113
|
-
process.env.NODE_ENV !== "production" && (O.propTypes = X(O.propTypes));
|
|
114
|
-
const oe = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], se = (e, o) => {
|
|
115
|
-
const {
|
|
116
|
-
ownerState: s
|
|
117
|
-
} = e;
|
|
118
|
-
return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters];
|
|
119
|
-
}, re = (e) => {
|
|
120
|
-
const {
|
|
121
|
-
alignItems: o,
|
|
122
|
-
classes: s,
|
|
123
|
-
dense: n,
|
|
124
|
-
disabled: p,
|
|
125
|
-
disableGutters: c,
|
|
126
|
-
divider: l,
|
|
127
|
-
selected: a
|
|
128
|
-
} = e, m = w({
|
|
129
|
-
root: ["root", n && "dense", !c && "gutters", l && "divider", p && "disabled", o === "flex-start" && "alignItemsFlexStart", a && "selected"]
|
|
130
|
-
}, J, s);
|
|
131
|
-
return b({}, s, m);
|
|
132
|
-
}, ne = B(z, {
|
|
133
|
-
shouldForwardProp: (e) => Q(e) || e === "classes",
|
|
134
|
-
name: "MuiListItemButton",
|
|
135
|
-
slot: "Root",
|
|
136
|
-
overridesResolver: se
|
|
137
|
-
})(({
|
|
138
|
-
theme: e,
|
|
139
|
-
ownerState: o
|
|
140
|
-
}) => b({
|
|
141
|
-
display: "flex",
|
|
142
|
-
flexGrow: 1,
|
|
143
|
-
justifyContent: "flex-start",
|
|
144
|
-
alignItems: "center",
|
|
145
|
-
position: "relative",
|
|
146
|
-
textDecoration: "none",
|
|
147
|
-
minWidth: 0,
|
|
148
|
-
boxSizing: "border-box",
|
|
149
|
-
textAlign: "left",
|
|
150
|
-
paddingTop: 8,
|
|
151
|
-
paddingBottom: 8,
|
|
152
|
-
transition: e.transitions.create("background-color", {
|
|
153
|
-
duration: e.transitions.duration.shortest
|
|
154
|
-
}),
|
|
155
|
-
"&:hover": {
|
|
156
|
-
textDecoration: "none",
|
|
157
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
158
|
-
// Reset on touch devices, it doesn't add specificity
|
|
159
|
-
"@media (hover: none)": {
|
|
160
|
-
backgroundColor: "transparent"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
[`&.${T.selected}`]: {
|
|
164
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : C(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
165
|
-
[`&.${T.focusVisible}`]: {
|
|
166
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : C(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
[`&.${T.selected}:hover`]: {
|
|
170
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : C(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
171
|
-
// Reset on touch devices, it doesn't add specificity
|
|
172
|
-
"@media (hover: none)": {
|
|
173
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : C(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
[`&.${T.focusVisible}`]: {
|
|
177
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
178
|
-
},
|
|
179
|
-
[`&.${T.disabled}`]: {
|
|
180
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
181
|
-
}
|
|
182
|
-
}, o.divider && {
|
|
183
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
184
|
-
backgroundClip: "padding-box"
|
|
185
|
-
}, o.alignItems === "flex-start" && {
|
|
186
|
-
alignItems: "flex-start"
|
|
187
|
-
}, !o.disableGutters && {
|
|
188
|
-
paddingLeft: 16,
|
|
189
|
-
paddingRight: 16
|
|
190
|
-
}, o.dense && {
|
|
191
|
-
paddingTop: 4,
|
|
192
|
-
paddingBottom: 4
|
|
193
|
-
})), F = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
194
|
-
const n = $({
|
|
195
|
-
props: o,
|
|
196
|
-
name: "MuiListItemButton"
|
|
197
|
-
}), {
|
|
198
|
-
alignItems: p = "center",
|
|
199
|
-
autoFocus: c = !1,
|
|
200
|
-
component: l = "div",
|
|
201
|
-
children: a,
|
|
202
|
-
dense: u = !1,
|
|
203
|
-
disableGutters: m = !1,
|
|
204
|
-
divider: I = !1,
|
|
205
|
-
focusVisibleClassName: g,
|
|
206
|
-
selected: h = !1,
|
|
207
|
-
className: x
|
|
208
|
-
} = n, r = P(n, oe), i = d.useContext(L), f = d.useMemo(() => ({
|
|
209
|
-
dense: u || i.dense || !1,
|
|
210
|
-
alignItems: p,
|
|
211
|
-
disableGutters: m
|
|
212
|
-
}), [p, i.dense, u, m]), v = d.useRef(null);
|
|
213
|
-
H(() => {
|
|
214
|
-
c && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
215
|
-
}, [c]);
|
|
216
|
-
const j = b({}, n, {
|
|
217
|
-
alignItems: p,
|
|
218
|
-
dense: f.dense,
|
|
219
|
-
disableGutters: m,
|
|
220
|
-
divider: I,
|
|
221
|
-
selected: h
|
|
222
|
-
}), N = re(j), A = D(v, s);
|
|
223
|
-
return /* @__PURE__ */ y(L.Provider, {
|
|
224
|
-
value: f,
|
|
225
|
-
children: /* @__PURE__ */ y(ne, b({
|
|
226
|
-
ref: A,
|
|
227
|
-
href: r.href || r.to,
|
|
228
|
-
component: (r.href || r.to) && l === "div" ? "a" : l,
|
|
229
|
-
focusVisibleClassName: R(N.focusVisible, g),
|
|
230
|
-
ownerState: j,
|
|
231
|
-
className: R(N.root, x)
|
|
232
|
-
}, r, {
|
|
233
|
-
classes: N,
|
|
234
|
-
children: a
|
|
235
|
-
}))
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
239
|
-
// ----------------------------- Warning --------------------------------
|
|
240
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
241
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
242
|
-
// ----------------------------------------------------------------------
|
|
243
|
-
/**
|
|
244
|
-
* Defines the `align-items` style property.
|
|
245
|
-
* @default 'center'
|
|
246
|
-
*/
|
|
247
|
-
alignItems: t.oneOf(["center", "flex-start"]),
|
|
248
|
-
/**
|
|
249
|
-
* If `true`, the list item is focused during the first mount.
|
|
250
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
251
|
-
* @default false
|
|
252
|
-
*/
|
|
253
|
-
autoFocus: t.bool,
|
|
254
|
-
/**
|
|
255
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
256
|
-
* be the last child.
|
|
257
|
-
*/
|
|
258
|
-
children: t.node,
|
|
259
|
-
/**
|
|
260
|
-
* Override or extend the styles applied to the component.
|
|
261
|
-
*/
|
|
262
|
-
classes: t.object,
|
|
263
|
-
/**
|
|
264
|
-
* @ignore
|
|
265
|
-
*/
|
|
266
|
-
className: t.string,
|
|
267
|
-
/**
|
|
268
|
-
* The component used for the root node.
|
|
269
|
-
* Either a string to use a HTML element or a component.
|
|
270
|
-
*/
|
|
271
|
-
component: t.elementType,
|
|
272
|
-
/**
|
|
273
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
274
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
275
|
-
* @default false
|
|
276
|
-
*/
|
|
277
|
-
dense: t.bool,
|
|
278
|
-
/**
|
|
279
|
-
* If `true`, the component is disabled.
|
|
280
|
-
* @default false
|
|
281
|
-
*/
|
|
282
|
-
disabled: t.bool,
|
|
283
|
-
/**
|
|
284
|
-
* If `true`, the left and right padding is removed.
|
|
285
|
-
* @default false
|
|
286
|
-
*/
|
|
287
|
-
disableGutters: t.bool,
|
|
288
|
-
/**
|
|
289
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
290
|
-
* @default false
|
|
291
|
-
*/
|
|
292
|
-
divider: t.bool,
|
|
293
|
-
/**
|
|
294
|
-
* This prop can help identify which element has keyboard focus.
|
|
295
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
296
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
297
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
298
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
299
|
-
* if needed.
|
|
300
|
-
*/
|
|
301
|
-
focusVisibleClassName: t.string,
|
|
302
|
-
/**
|
|
303
|
-
* @ignore
|
|
304
|
-
*/
|
|
305
|
-
href: t.string,
|
|
306
|
-
/**
|
|
307
|
-
* Use to apply selected styling.
|
|
308
|
-
* @default false
|
|
309
|
-
*/
|
|
310
|
-
selected: t.bool,
|
|
311
|
-
/**
|
|
312
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
313
|
-
*/
|
|
314
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
315
|
-
});
|
|
316
|
-
const ae = ["className"], ie = (e) => {
|
|
317
|
-
const {
|
|
318
|
-
alignItems: o,
|
|
319
|
-
classes: s
|
|
320
|
-
} = e;
|
|
321
|
-
return w({
|
|
322
|
-
root: ["root", o === "flex-start" && "alignItemsFlexStart"]
|
|
323
|
-
}, Z, s);
|
|
324
|
-
}, ce = B("div", {
|
|
325
|
-
name: "MuiListItemIcon",
|
|
326
|
-
slot: "Root",
|
|
327
|
-
overridesResolver: (e, o) => {
|
|
328
|
-
const {
|
|
329
|
-
ownerState: s
|
|
330
|
-
} = e;
|
|
331
|
-
return [o.root, s.alignItems === "flex-start" && o.alignItemsFlexStart];
|
|
332
|
-
}
|
|
333
|
-
})(({
|
|
334
|
-
theme: e,
|
|
335
|
-
ownerState: o
|
|
336
|
-
}) => b({
|
|
337
|
-
minWidth: 56,
|
|
338
|
-
color: (e.vars || e).palette.action.active,
|
|
339
|
-
flexShrink: 0,
|
|
340
|
-
display: "inline-flex"
|
|
341
|
-
}, o.alignItems === "flex-start" && {
|
|
342
|
-
marginTop: 8
|
|
343
|
-
})), _ = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
344
|
-
const n = $({
|
|
345
|
-
props: o,
|
|
346
|
-
name: "MuiListItemIcon"
|
|
347
|
-
}), {
|
|
348
|
-
className: p
|
|
349
|
-
} = n, c = P(n, ae), l = d.useContext(L), a = b({}, n, {
|
|
350
|
-
alignItems: l.alignItems
|
|
351
|
-
}), u = ie(a);
|
|
352
|
-
return /* @__PURE__ */ y(ce, b({
|
|
353
|
-
className: R(u.root, p),
|
|
354
|
-
ownerState: a,
|
|
355
|
-
ref: s
|
|
356
|
-
}, c));
|
|
357
|
-
});
|
|
358
|
-
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
359
|
-
// ----------------------------- Warning --------------------------------
|
|
360
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
361
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
362
|
-
// ----------------------------------------------------------------------
|
|
363
|
-
/**
|
|
364
|
-
* The content of the component, normally `Icon`, `SvgIcon`,
|
|
365
|
-
* or a `@mui/icons-material` SVG icon element.
|
|
366
|
-
*/
|
|
367
|
-
children: t.node,
|
|
368
|
-
/**
|
|
369
|
-
* Override or extend the styles applied to the component.
|
|
370
|
-
*/
|
|
371
|
-
classes: t.object,
|
|
372
|
-
/**
|
|
373
|
-
* @ignore
|
|
374
|
-
*/
|
|
375
|
-
className: t.string,
|
|
376
|
-
/**
|
|
377
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
378
|
-
*/
|
|
379
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
380
|
-
});
|
|
381
|
-
const le = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], de = (e) => {
|
|
382
|
-
const {
|
|
383
|
-
classes: o,
|
|
384
|
-
inset: s,
|
|
385
|
-
primary: n,
|
|
386
|
-
secondary: p,
|
|
387
|
-
dense: c
|
|
388
|
-
} = e;
|
|
389
|
-
return w({
|
|
390
|
-
root: ["root", s && "inset", c && "dense", n && p && "multiline"],
|
|
391
|
-
primary: ["primary"],
|
|
392
|
-
secondary: ["secondary"]
|
|
393
|
-
}, ee, o);
|
|
394
|
-
}, pe = B("div", {
|
|
395
|
-
name: "MuiListItemText",
|
|
396
|
-
slot: "Root",
|
|
397
|
-
overridesResolver: (e, o) => {
|
|
398
|
-
const {
|
|
399
|
-
ownerState: s
|
|
400
|
-
} = e;
|
|
401
|
-
return [{
|
|
402
|
-
[`& .${S.primary}`]: o.primary
|
|
403
|
-
}, {
|
|
404
|
-
[`& .${S.secondary}`]: o.secondary
|
|
405
|
-
}, o.root, s.inset && o.inset, s.primary && s.secondary && o.multiline, s.dense && o.dense];
|
|
406
|
-
}
|
|
407
|
-
})(({
|
|
408
|
-
ownerState: e
|
|
409
|
-
}) => b({
|
|
410
|
-
flex: "1 1 auto",
|
|
411
|
-
minWidth: 0,
|
|
412
|
-
marginTop: 4,
|
|
413
|
-
marginBottom: 4
|
|
414
|
-
}, e.primary && e.secondary && {
|
|
415
|
-
marginTop: 6,
|
|
416
|
-
marginBottom: 6
|
|
417
|
-
}, e.inset && {
|
|
418
|
-
paddingLeft: 56
|
|
419
|
-
})), U = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
420
|
-
const n = $({
|
|
421
|
-
props: o,
|
|
422
|
-
name: "MuiListItemText"
|
|
423
|
-
}), {
|
|
424
|
-
children: p,
|
|
425
|
-
className: c,
|
|
426
|
-
disableTypography: l = !1,
|
|
427
|
-
inset: a = !1,
|
|
428
|
-
primary: u,
|
|
429
|
-
primaryTypographyProps: m,
|
|
430
|
-
secondary: I,
|
|
431
|
-
secondaryTypographyProps: g
|
|
432
|
-
} = n, h = P(n, le), {
|
|
433
|
-
dense: x
|
|
434
|
-
} = d.useContext(L);
|
|
435
|
-
let r = u ?? p, i = I;
|
|
436
|
-
const f = b({}, n, {
|
|
437
|
-
disableTypography: l,
|
|
438
|
-
inset: a,
|
|
439
|
-
primary: !!r,
|
|
440
|
-
secondary: !!i,
|
|
441
|
-
dense: x
|
|
442
|
-
}), v = de(f);
|
|
443
|
-
return r != null && r.type !== E && !l && (r = /* @__PURE__ */ y(E, b({
|
|
444
|
-
variant: x ? "body2" : "body1",
|
|
445
|
-
className: v.primary,
|
|
446
|
-
component: m != null && m.variant ? void 0 : "span",
|
|
447
|
-
display: "block"
|
|
448
|
-
}, m, {
|
|
449
|
-
children: r
|
|
450
|
-
}))), i != null && i.type !== E && !l && (i = /* @__PURE__ */ y(E, b({
|
|
451
|
-
variant: "body2",
|
|
452
|
-
className: v.secondary,
|
|
453
|
-
color: "text.secondary",
|
|
454
|
-
display: "block"
|
|
455
|
-
}, g, {
|
|
456
|
-
children: i
|
|
457
|
-
}))), /* @__PURE__ */ V(pe, b({
|
|
458
|
-
className: R(v.root, c),
|
|
459
|
-
ownerState: f,
|
|
460
|
-
ref: s
|
|
461
|
-
}, h, {
|
|
462
|
-
children: [r, i]
|
|
463
|
-
}));
|
|
464
|
-
});
|
|
465
|
-
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
466
|
-
// ----------------------------- Warning --------------------------------
|
|
467
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
468
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
469
|
-
// ----------------------------------------------------------------------
|
|
470
|
-
/**
|
|
471
|
-
* Alias for the `primary` prop.
|
|
472
|
-
*/
|
|
473
|
-
children: t.node,
|
|
474
|
-
/**
|
|
475
|
-
* Override or extend the styles applied to the component.
|
|
476
|
-
*/
|
|
477
|
-
classes: t.object,
|
|
478
|
-
/**
|
|
479
|
-
* @ignore
|
|
480
|
-
*/
|
|
481
|
-
className: t.string,
|
|
482
|
-
/**
|
|
483
|
-
* If `true`, the children won't be wrapped by a Typography component.
|
|
484
|
-
* This can be useful to render an alternative Typography variant by wrapping
|
|
485
|
-
* the `children` (or `primary`) text, and optional `secondary` text
|
|
486
|
-
* with the Typography component.
|
|
487
|
-
* @default false
|
|
488
|
-
*/
|
|
489
|
-
disableTypography: t.bool,
|
|
490
|
-
/**
|
|
491
|
-
* If `true`, the children are indented.
|
|
492
|
-
* This should be used if there is no left avatar or left icon.
|
|
493
|
-
* @default false
|
|
494
|
-
*/
|
|
495
|
-
inset: t.bool,
|
|
496
|
-
/**
|
|
497
|
-
* The main content element.
|
|
498
|
-
*/
|
|
499
|
-
primary: t.node,
|
|
500
|
-
/**
|
|
501
|
-
* These props will be forwarded to the primary typography component
|
|
502
|
-
* (as long as disableTypography is not `true`).
|
|
503
|
-
*/
|
|
504
|
-
primaryTypographyProps: t.object,
|
|
505
|
-
/**
|
|
506
|
-
* The secondary content element.
|
|
507
|
-
*/
|
|
508
|
-
secondary: t.node,
|
|
509
|
-
/**
|
|
510
|
-
* These props will be forwarded to the secondary typography component
|
|
511
|
-
* (as long as disableTypography is not `true`).
|
|
512
|
-
*/
|
|
513
|
-
secondaryTypographyProps: t.object,
|
|
514
|
-
/**
|
|
515
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
516
|
-
*/
|
|
517
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
518
|
-
});
|
|
519
|
-
const Le = ({
|
|
520
|
-
open: e,
|
|
521
|
-
buttons: o,
|
|
522
|
-
position: s,
|
|
523
|
-
width: n = 160,
|
|
524
|
-
sx: p,
|
|
525
|
-
onClose: c
|
|
526
|
-
}) => {
|
|
527
|
-
const l = () => {
|
|
528
|
-
c && c();
|
|
529
|
-
};
|
|
530
|
-
return e ? /* @__PURE__ */ y(O, { onClickAway: l, children: /* @__PURE__ */ y(
|
|
531
|
-
Y,
|
|
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,
|
|
532
9
|
{
|
|
533
|
-
|
|
534
|
-
position: "absolute",
|
|
535
|
-
zIndex: 9999999,
|
|
536
|
-
width: n,
|
|
537
|
-
maxWidth: 360,
|
|
538
|
-
bgcolor: "background.paper",
|
|
539
|
-
left: s == null ? void 0 : s.left,
|
|
540
|
-
top: s == null ? void 0 : s.top,
|
|
541
|
-
borderRadius: 0.5,
|
|
542
|
-
...p
|
|
543
|
-
},
|
|
10
|
+
secondaryAction: n.endIcon,
|
|
544
11
|
disablePadding: !0,
|
|
545
|
-
children:
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
|
|
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;
|
|
559
27
|
};
|
|
560
28
|
export {
|
|
561
|
-
|
|
29
|
+
y as ContextMenu
|
|
562
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,12 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Container as t, Button as r } from "./styled.js";
|
|
3
|
+
import { I as s, a as l } from "../../../../IconPlus-yPkff_Vj.js";
|
|
4
|
+
function m({ mapRef: n }) {
|
|
5
|
+
return n ? /* @__PURE__ */ i(t, { children: [
|
|
6
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomIn, children: /* @__PURE__ */ o(s, { size: 18 }) }),
|
|
7
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomOut, children: /* @__PURE__ */ o(l, { size: 18 }) })
|
|
8
|
+
] }) : null;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as Controls
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { styled as a, Box as n, IconButton as t } from "@mui/material";
|
|
2
|
+
const r = a(n, {
|
|
3
|
+
name: "HCDataMapControls",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(({ theme: o }) => ({
|
|
6
|
+
position: "absolute",
|
|
7
|
+
left: o.spacing(1),
|
|
8
|
+
bottom: o.spacing(1),
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: o.spacing(0.5)
|
|
12
|
+
})), p = a(t, {
|
|
13
|
+
name: "HCDataMapControls",
|
|
14
|
+
slot: "Button"
|
|
15
|
+
})(({ theme: o }) => ({
|
|
16
|
+
borderRadius: o.shape.borderRadius,
|
|
17
|
+
backgroundColor: o.palette.background.paper,
|
|
18
|
+
border: "1px solid",
|
|
19
|
+
borderColor: o.palette.divider,
|
|
20
|
+
width: o.spacing(3),
|
|
21
|
+
height: o.spacing(3),
|
|
22
|
+
padding: o.spacing(0.5),
|
|
23
|
+
".MuiSvgIcon-root": {
|
|
24
|
+
width: o.spacing(2),
|
|
25
|
+
height: o.spacing(2)
|
|
26
|
+
},
|
|
27
|
+
"&:hover": {
|
|
28
|
+
backgroundColor: o.palette.background.default
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
export {
|
|
32
|
+
p as Button,
|
|
33
|
+
r as Container
|
|
34
|
+
};
|