@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { styled as o, Paper as a, Box as t } from "@mui/material";
|
|
2
|
+
const r = o(a, {
|
|
3
|
+
name: "HCHeatMap",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
6
|
+
})(() => ({
|
|
7
|
+
height: "100%",
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column"
|
|
10
|
+
})), l = o(t, {
|
|
11
|
+
name: "HCHeatMap",
|
|
12
|
+
slot: "Header",
|
|
13
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
14
|
+
})(({ theme: e }) => ({
|
|
15
|
+
flex: "0 0 auto",
|
|
16
|
+
padding: e.spacing(1.25, 2)
|
|
17
|
+
})), p = o(t, {
|
|
18
|
+
name: "HCHeatMap",
|
|
19
|
+
slot: "Content",
|
|
20
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
21
|
+
})(() => ({
|
|
22
|
+
position: "relative",
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
flex: "1 1 auto",
|
|
26
|
+
minHeight: 0
|
|
27
|
+
}));
|
|
28
|
+
export {
|
|
29
|
+
p as HeatMapContent,
|
|
30
|
+
l as HeatMapHeader,
|
|
31
|
+
r as HeatMapRoot
|
|
32
|
+
};
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useIconButtonLogic as m } from "./logic.js";
|
|
3
|
+
import { VerticalRoot as l, MiniRoot as u, DefaultRoot as f } from "./styled.js";
|
|
4
|
+
const x = (i) => {
|
|
5
|
+
const { state: e } = m(i), { ownerState: t, variant: c } = e, { startIcon: a, children: o, variant: v, ...r } = i;
|
|
6
|
+
if (c === "vertical")
|
|
7
|
+
return /* @__PURE__ */ n(l, { ownerState: t, ...r, children: o });
|
|
8
|
+
if (c === "mini") {
|
|
9
|
+
const { color: R, ...s } = r;
|
|
10
|
+
return /* @__PURE__ */ n(
|
|
11
|
+
u,
|
|
12
|
+
{
|
|
13
|
+
ownerState: t,
|
|
14
|
+
color: "inherit",
|
|
15
|
+
startIcon: a,
|
|
16
|
+
...s,
|
|
17
|
+
children: o
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ n(f, { ownerState: t, ...r, children: o });
|
|
15
22
|
};
|
|
16
23
|
export {
|
|
17
|
-
|
|
24
|
+
x as IconButton
|
|
18
25
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useThemeProps as s } from "@mui/material";
|
|
2
|
+
const c = (n) => {
|
|
3
|
+
const t = s({ props: n, name: "HCIconButton" }), { variant: o = "default" } = t, e = {
|
|
4
|
+
...t,
|
|
5
|
+
variant: o
|
|
6
|
+
};
|
|
7
|
+
return {
|
|
8
|
+
refs: {},
|
|
9
|
+
state: { ownerState: e, variant: o },
|
|
10
|
+
actions: {}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
c as useIconButtonLogic
|
|
15
|
+
};
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
1
|
+
import { styled as i, IconButton as r, ButtonBase as a, Button as l } from "@mui/material";
|
|
2
|
+
const n = (o) => o !== "ownerState", c = i(r, {
|
|
3
|
+
name: "HCIconButton",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: n
|
|
6
|
+
})({}), s = i(a, {
|
|
7
|
+
name: "HCIconButton",
|
|
8
|
+
slot: "verticalRoot",
|
|
9
|
+
shouldForwardProp: n
|
|
10
|
+
})(({ ownerState: o, theme: t }) => ({
|
|
3
11
|
position: "relative",
|
|
4
12
|
display: "flex",
|
|
5
13
|
flexDirection: "column",
|
|
6
14
|
width: 130,
|
|
7
15
|
height: 140,
|
|
8
|
-
color:
|
|
16
|
+
color: o.color ? t.palette.text.primary : "inherit",
|
|
9
17
|
borderRadius: 10,
|
|
10
18
|
transition: "all .3s",
|
|
11
19
|
"&:after": {
|
|
@@ -15,15 +23,14 @@ const r = o(n)(({ theme: t, color: i }) => ({
|
|
|
15
23
|
left: 30,
|
|
16
24
|
right: 30,
|
|
17
25
|
height: 2,
|
|
18
|
-
|
|
19
|
-
backgroundColor: i ? t.palette[i].dark : "inherit",
|
|
26
|
+
backgroundColor: o.color && o.color !== "inherit" && o.color !== "default" ? t.palette[o.color].dark : "inherit",
|
|
20
27
|
borderRadius: 2,
|
|
21
28
|
opacity: 0,
|
|
22
29
|
transition: "all .3s"
|
|
23
30
|
},
|
|
24
31
|
"&:hover": {
|
|
25
32
|
boxShadow: t.shadows[4],
|
|
26
|
-
color:
|
|
33
|
+
color: o.color ? t.palette.text.primary : "inherit",
|
|
27
34
|
"&:after": {
|
|
28
35
|
opacity: 1
|
|
29
36
|
}
|
|
@@ -31,11 +38,15 @@ const r = o(n)(({ theme: t, color: i }) => ({
|
|
|
31
38
|
"& .MuiSvgIcon-root": {
|
|
32
39
|
fontSize: 50
|
|
33
40
|
}
|
|
34
|
-
})),
|
|
41
|
+
})), d = i(l, {
|
|
42
|
+
name: "HCIconButton",
|
|
43
|
+
slot: "miniRoot",
|
|
44
|
+
shouldForwardProp: n
|
|
45
|
+
})(({ theme: o }) => ({
|
|
35
46
|
fontSize: 10,
|
|
36
47
|
padding: "2px 6px",
|
|
37
48
|
minWidth: "auto",
|
|
38
|
-
boxShadow:
|
|
49
|
+
boxShadow: o.shadows[1],
|
|
39
50
|
"& .MuiButton-startIcon": {
|
|
40
51
|
marginRight: 0.25,
|
|
41
52
|
"& > :nth-of-type(1)": {
|
|
@@ -44,6 +55,7 @@ const r = o(n)(({ theme: t, color: i }) => ({
|
|
|
44
55
|
}
|
|
45
56
|
}));
|
|
46
57
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
c as DefaultRoot,
|
|
59
|
+
d as MiniRoot,
|
|
60
|
+
s as VerticalRoot
|
|
49
61
|
};
|
|
@@ -6,7 +6,7 @@ import "lodash";
|
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../../../hooks/useToggle.js";
|
|
8
8
|
import "../../../conditional-wrapper/index.js";
|
|
9
|
-
import { C as s } from "../../../../index-
|
|
9
|
+
import { C as s } from "../../../../index-DPKUmQnz.js";
|
|
10
10
|
import "./styled.js";
|
|
11
11
|
export {
|
|
12
12
|
s as default
|
package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as io, jsx as Ii } from "react/jsx-runtime";
|
|
2
|
-
import { c as Ne, a as na
|
|
3
|
-
import
|
|
2
|
+
import { c as Ne, a as na } from "../../../../../../_commonjsHelpers-BVfed4GL.js";
|
|
3
|
+
import qi, { useState as ro } from "react";
|
|
4
|
+
import { p as er } from "../../../../../../index-C__OZmYy.js";
|
|
4
5
|
import { Alert as ia, AlertTitle as ra, Box as oa } from "@mui/material";
|
|
5
6
|
import { FlexCol as sa } from "../../../../../flex-col/index.js";
|
|
6
7
|
var Bi = { exports: {} }, Po = {}, gt = {}, vn = {}, Bn = {}, me = {}, zn = {};
|
|
@@ -18527,7 +18528,7 @@ var Cu = Ne && Ne.__extends || /* @__PURE__ */ function() {
|
|
|
18527
18528
|
}, Xi.apply(this, arguments);
|
|
18528
18529
|
};
|
|
18529
18530
|
Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
18530
|
-
var _u = vi, ae =
|
|
18531
|
+
var _u = vi, ae = er, To = qi, ai = Es, pn = pt, ko = (0, pn.getAceInstance)(), Au = (
|
|
18531
18532
|
/** @class */
|
|
18532
18533
|
function(u) {
|
|
18533
18534
|
Cu(f, u);
|
|
@@ -19067,7 +19068,7 @@ var Cd = Sd, _d = Ne && Ne.__extends || /* @__PURE__ */ function() {
|
|
|
19067
19068
|
}, Ji.apply(this, arguments);
|
|
19068
19069
|
};
|
|
19069
19070
|
Object.defineProperty(_i, "__esModule", { value: !0 });
|
|
19070
|
-
var Xt = pt, zi = (0, Xt.getAceInstance)(), Ad = vi, Ed = Eu, le =
|
|
19071
|
+
var Xt = pt, zi = (0, Xt.getAceInstance)(), Ad = vi, Ed = Eu, le = er, Oo = qi, Hi = Es, kt = Cd, Md = (
|
|
19071
19072
|
/** @class */
|
|
19072
19073
|
function(u) {
|
|
19073
19074
|
_d(f, u);
|
|
@@ -19931,7 +19932,7 @@ var Td = Ns.exports, kd = Ne && Ne.__extends || /* @__PURE__ */ function() {
|
|
|
19931
19932
|
};
|
|
19932
19933
|
}();
|
|
19933
19934
|
Object.defineProperty(Ur, "__esModule", { value: !0 });
|
|
19934
|
-
var $e =
|
|
19935
|
+
var $e = er, Do = qi, Ld = _i, Rd = Td, xd = (
|
|
19935
19936
|
/** @class */
|
|
19936
19937
|
function(u) {
|
|
19937
19938
|
kd(f, u);
|
|
@@ -20495,7 +20496,7 @@ const No = new yu({ allErrors: !0 }), Wd = {
|
|
|
20495
20496
|
};
|
|
20496
20497
|
return { valid: !0 };
|
|
20497
20498
|
};
|
|
20498
|
-
function
|
|
20499
|
+
function Kd({ data: u, onChange: f }) {
|
|
20499
20500
|
const [h, g] = ro(JSON.stringify(u, null, 2)), [_, d] = ro(
|
|
20500
20501
|
null
|
|
20501
20502
|
), m = No.compile(Wd), v = (s) => {
|
|
@@ -20547,5 +20548,5 @@ function Gd({ data: u, onChange: f }) {
|
|
|
20547
20548
|
] });
|
|
20548
20549
|
}
|
|
20549
20550
|
export {
|
|
20550
|
-
|
|
20551
|
+
Kd as default
|
|
20551
20552
|
};
|
|
@@ -3,20 +3,18 @@ import "@mui/icons-material";
|
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "lodash";
|
|
6
|
-
import { V as
|
|
6
|
+
import { V as h } from "../../../../index-DPKUmQnz.js";
|
|
7
7
|
import "../../../date-time-picker/index.js";
|
|
8
8
|
import "../../../geometry-picker/index.js";
|
|
9
9
|
import "../../../phone-input/index.js";
|
|
10
10
|
import "../../../conditional-wrapper/index.js";
|
|
11
11
|
import "../TopLabelWrapper.js";
|
|
12
12
|
import "../composite-matrix/index.js";
|
|
13
|
-
import "../../../../
|
|
14
|
-
import "../../../../TextField-
|
|
15
|
-
import "../../../../FormControlLabel-
|
|
16
|
-
import "../../../../
|
|
17
|
-
import "../../../../InputLabel-
|
|
18
|
-
import "../../../../Select-t3ewnSdf.js";
|
|
19
|
-
import "../../../../MenuItem-C6qlUyV3.js";
|
|
13
|
+
import "../../../../MenuItem-DrE50M_p.js";
|
|
14
|
+
import "../../../../TextField-DSDIEEKu.js";
|
|
15
|
+
import "../../../../FormControlLabel-BkRfrhNy.js";
|
|
16
|
+
import "../../../../FormControl-BCurCxRj.js";
|
|
17
|
+
import "../../../../InputLabel-rEwwnD4_.js";
|
|
20
18
|
export {
|
|
21
|
-
|
|
19
|
+
h as default
|
|
22
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u, Fragment as I, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import b from "react";
|
|
3
|
-
import { V as g } from "../../../../index-
|
|
3
|
+
import { V as g } from "../../../../index-DPKUmQnz.js";
|
|
4
4
|
import p from "lodash";
|
|
5
5
|
import { Box as i } from "@mui/material";
|
|
6
6
|
function C({
|
|
@@ -8,7 +8,7 @@ import { ConditionalWrapper as m } from "../conditional-wrapper/index.js";
|
|
|
8
8
|
import { Container as Be } from "../container/index.js";
|
|
9
9
|
import { DisseminationList as Ae } from "../data-security-selectors/dissemination-list/index.js";
|
|
10
10
|
import { SecurityLevel as De } from "../data-security-selectors/security-level/index.js";
|
|
11
|
-
import { i as Ne, d as _e } from "../../utils-
|
|
11
|
+
import { i as Ne, d as _e } from "../../utils-Cxu-fHjQ.js";
|
|
12
12
|
import { TreeSelect as We } from "../tree-select/index.js";
|
|
13
13
|
import qe from "./components/policy-list/index.js";
|
|
14
14
|
import L from "./components/TopLabelWrapper.js";
|
|
@@ -1,58 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
data:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (!e) return /* @__PURE__ */ r(c, {});
|
|
16
|
-
const a = I(i, e.id);
|
|
17
|
-
return /* @__PURE__ */ m(
|
|
18
|
-
d,
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight as h } from "@mui/icons-material";
|
|
3
|
+
import { getPageIcon as I } from "../../utils/ontology.js";
|
|
4
|
+
import { InstanceTable as f } from "../instance-table/index.js";
|
|
5
|
+
import { useInstanceHierarchyTableLogic as x } from "./logic.js";
|
|
6
|
+
import { HierarchyRoot as y, Accordion as b, AccordionSummary as g, TemplateIcon as H, TemplateName as T, CountChip as C, HierarchyLabel as v, AccordionDetails as A } from "./styled.js";
|
|
7
|
+
const z = (r) => {
|
|
8
|
+
const { state: l, actions: s } = x(r), { ownerState: m } = l, { data: a, templates: o, ...d } = r;
|
|
9
|
+
return !a || !a.results ? null : /* @__PURE__ */ e(y, { ownerState: m, sx: r.sx, children: a.results.map((n, p) => {
|
|
10
|
+
const t = o.get(n.templateId);
|
|
11
|
+
if (!t) return null;
|
|
12
|
+
const c = I(o, t.id);
|
|
13
|
+
return /* @__PURE__ */ i(
|
|
14
|
+
b,
|
|
19
15
|
{
|
|
20
16
|
defaultExpanded: !0,
|
|
21
17
|
disableGutters: !0,
|
|
22
18
|
elevation: 0,
|
|
23
19
|
square: !0,
|
|
24
20
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
21
|
+
/* @__PURE__ */ i(g, { expandIcon: /* @__PURE__ */ e(h, {}), children: [
|
|
22
|
+
/* @__PURE__ */ e(H, { src: c }),
|
|
23
|
+
/* @__PURE__ */ e(T, { children: t.name }),
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
C,
|
|
30
26
|
{
|
|
31
27
|
color: "primary",
|
|
32
|
-
label:
|
|
33
|
-
size: "small"
|
|
34
|
-
sx: { height: 20, ml: 1 }
|
|
28
|
+
label: n.totalInstanceCount,
|
|
29
|
+
size: "small"
|
|
35
30
|
}
|
|
36
31
|
),
|
|
37
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ e(v, { variant: "caption", children: s.getHierarchy(t) })
|
|
38
33
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
34
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(
|
|
35
|
+
f,
|
|
41
36
|
{
|
|
42
|
-
data:
|
|
43
|
-
...
|
|
44
|
-
templateId:
|
|
37
|
+
data: n.instances.map((u) => ({
|
|
38
|
+
...u,
|
|
39
|
+
templateId: t.id
|
|
45
40
|
})),
|
|
46
|
-
template: { ...
|
|
47
|
-
...
|
|
41
|
+
template: { ...t, icon: c },
|
|
42
|
+
...d
|
|
48
43
|
}
|
|
49
44
|
) })
|
|
50
45
|
]
|
|
51
46
|
},
|
|
52
|
-
|
|
47
|
+
p
|
|
53
48
|
);
|
|
54
|
-
});
|
|
49
|
+
}) });
|
|
55
50
|
};
|
|
56
51
|
export {
|
|
57
|
-
|
|
52
|
+
z as InstanceHierarchyTable
|
|
58
53
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useThemeProps as o } from "@mui/material";
|
|
2
|
+
import { getTemplateHierarchy as c } from "../../utils/ontology.js";
|
|
3
|
+
const m = (t) => {
|
|
4
|
+
const e = o({
|
|
5
|
+
props: t,
|
|
6
|
+
name: "HCInstanceHierarchyTable"
|
|
7
|
+
}), a = { ...e };
|
|
8
|
+
return {
|
|
9
|
+
refs: {},
|
|
10
|
+
state: { ownerState: a },
|
|
11
|
+
actions: { getHierarchy: (r) => r ? c(e.templates, r).map((n) => n.name).join(" / ") : " " }
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
m as useInstanceHierarchyTableLogic
|
|
16
|
+
};
|
|
@@ -1,29 +1,70 @@
|
|
|
1
|
-
import { styled as r } from "@mui/material";
|
|
2
|
-
import { A as
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { styled as a, Box as n, Typography as o, Chip as r } from "@mui/material";
|
|
2
|
+
import { A as t, a as c, b as i } from "../../AccordionSummary-CMg08YSA.js";
|
|
3
|
+
const s = (e) => e !== "ownerState", l = a(n, {
|
|
4
|
+
name: "HCInstanceHierarchyTable",
|
|
5
|
+
slot: "root",
|
|
6
|
+
shouldForwardProp: s
|
|
7
|
+
})({}), p = a(t, {
|
|
8
|
+
name: "HCInstanceHierarchyTable",
|
|
9
|
+
slot: "accordion"
|
|
10
|
+
})(({ theme: e }) => ({
|
|
11
|
+
borderBottom: `1px solid ${e.palette.divider}`,
|
|
5
12
|
"&:before": {
|
|
6
13
|
display: "none"
|
|
7
14
|
}
|
|
8
|
-
})),
|
|
15
|
+
})), g = a(c, {
|
|
16
|
+
name: "HCInstanceHierarchyTable",
|
|
17
|
+
slot: "summary"
|
|
18
|
+
})(({ theme: e }) => ({
|
|
9
19
|
flexDirection: "row-reverse",
|
|
10
20
|
paddingLeft: 0,
|
|
11
21
|
"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded": {
|
|
12
22
|
transform: "rotate(90deg)"
|
|
13
23
|
},
|
|
14
24
|
"& .MuiAccordionSummary-content": {
|
|
15
|
-
marginLeft:
|
|
25
|
+
marginLeft: e.spacing(1),
|
|
16
26
|
alignItems: "center"
|
|
17
27
|
}
|
|
18
|
-
})),
|
|
19
|
-
|
|
28
|
+
})), h = a(i, {
|
|
29
|
+
name: "HCInstanceHierarchyTable",
|
|
30
|
+
slot: "details"
|
|
31
|
+
})(({ theme: e }) => ({
|
|
32
|
+
padding: e.spacing(2),
|
|
20
33
|
paddingTop: 0,
|
|
21
34
|
paddingBottom: 0,
|
|
22
35
|
borderTop: "1px solid rgba(0, 0, 0, .125)",
|
|
23
|
-
background:
|
|
36
|
+
background: e.palette.grey[100]
|
|
37
|
+
})), y = a("img", {
|
|
38
|
+
name: "HCInstanceHierarchyTable",
|
|
39
|
+
slot: "templateIcon"
|
|
40
|
+
})({
|
|
41
|
+
height: 22,
|
|
42
|
+
maxWidth: 22
|
|
43
|
+
}), H = a(o, {
|
|
44
|
+
name: "HCInstanceHierarchyTable",
|
|
45
|
+
slot: "templateName"
|
|
46
|
+
})(({ theme: e }) => ({
|
|
47
|
+
fontWeight: 500,
|
|
48
|
+
marginLeft: e.spacing(2)
|
|
49
|
+
})), b = a(r, {
|
|
50
|
+
name: "HCInstanceHierarchyTable",
|
|
51
|
+
slot: "countChip"
|
|
52
|
+
})(({ theme: e }) => ({
|
|
53
|
+
height: 20,
|
|
54
|
+
marginLeft: e.spacing(1)
|
|
55
|
+
})), T = a(o, {
|
|
56
|
+
name: "HCInstanceHierarchyTable",
|
|
57
|
+
slot: "hierarchyLabel"
|
|
58
|
+
})(({ theme: e }) => ({
|
|
59
|
+
marginLeft: e.spacing(2)
|
|
24
60
|
}));
|
|
25
61
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
62
|
+
p as Accordion,
|
|
63
|
+
h as AccordionDetails,
|
|
64
|
+
g as AccordionSummary,
|
|
65
|
+
b as CountChip,
|
|
66
|
+
T as HierarchyLabel,
|
|
67
|
+
l as HierarchyRoot,
|
|
68
|
+
y as TemplateIcon,
|
|
69
|
+
H as TemplateName
|
|
29
70
|
};
|
|
@@ -1,160 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fieldOptions: e,
|
|
17
|
-
onSelect: s,
|
|
18
|
-
onTitleClick: C
|
|
19
|
-
}) => {
|
|
20
|
-
const k = j(() => {
|
|
21
|
-
var l, c, d, g, v, b, x, I;
|
|
22
|
-
return [
|
|
23
|
-
...(l = e == null ? void 0 : e.templateIcon) != null && l.hidden ? [] : [
|
|
24
|
-
{
|
|
25
|
-
field: "template",
|
|
26
|
-
headerName: "",
|
|
27
|
-
sortable: !1,
|
|
28
|
-
filterable: !1,
|
|
29
|
-
align: "center",
|
|
30
|
-
width: 30,
|
|
31
|
-
renderCell: (c = e == null ? void 0 : e.templateIcon) != null && c.renderCell ? (d = e == null ? void 0 : e.templateIcon) == null ? void 0 : d.renderCell : () => n ? /* @__PURE__ */ o(
|
|
32
|
-
"img",
|
|
33
|
-
{
|
|
34
|
-
src: n.icon,
|
|
35
|
-
height: 20,
|
|
36
|
-
style: { display: "inline", maxWidth: 20 }
|
|
37
|
-
}
|
|
38
|
-
) : /* @__PURE__ */ o(D, {})
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
...(g = e == null ? void 0 : e.title) != null && g.hidden ? [] : [
|
|
42
|
-
{
|
|
43
|
-
field: "title",
|
|
44
|
-
headerName: "Title",
|
|
45
|
-
width: 400,
|
|
46
|
-
sortable: !1,
|
|
47
|
-
filterable: !1,
|
|
48
|
-
valueGetter: (r) => r.row.title,
|
|
49
|
-
renderCell: (v = e == null ? void 0 : e.title) != null && v.renderCell ? (b = e == null ? void 0 : e.title) == null ? void 0 : b.renderCell : (r) => {
|
|
50
|
-
const { row: a, value: u } = r;
|
|
51
|
-
return C ? /* @__PURE__ */ o(
|
|
52
|
-
B,
|
|
53
|
-
{
|
|
54
|
-
onClick: () => C(a),
|
|
55
|
-
sx: { "&:hover": { textDecoration: "underline" } },
|
|
56
|
-
disableRipple: !0,
|
|
57
|
-
children: u
|
|
58
|
-
}
|
|
59
|
-
) : u;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
...(x = e == null ? void 0 : e.description) != null && x.hidden ? [] : [
|
|
64
|
-
{
|
|
65
|
-
field: "description",
|
|
66
|
-
headerName: "Description",
|
|
67
|
-
width: 400,
|
|
68
|
-
sortable: !1,
|
|
69
|
-
filterable: !1,
|
|
70
|
-
valueGetter: (r) => r.row.description,
|
|
71
|
-
renderCell: (I = e == null ? void 0 : e.description) == null ? void 0 : I.renderCell
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
...n ? [
|
|
75
|
-
...n.properties.filter(
|
|
76
|
-
(r) => (!e || !e[r.propertyId] || !e[r.propertyId].hidden) && r.visible && r.type !== "geometry" && r.type !== "coordinate"
|
|
77
|
-
).sort(
|
|
78
|
-
(r, a) => N === "type" ? r.type < a.type ? -1 : r.type > a.type ? 1 : 0 : r.name < a.name ? -1 : 1
|
|
79
|
-
).map((r) => {
|
|
80
|
-
var u;
|
|
81
|
-
const a = `variables.${r.type}.${r.propertyId}`;
|
|
82
|
-
return {
|
|
83
|
-
field: a,
|
|
84
|
-
headerName: r.name,
|
|
85
|
-
sortable: !1,
|
|
86
|
-
filterable: !1,
|
|
87
|
-
width: 150,
|
|
88
|
-
valueFormatter: (m) => m.value && r.type === "date" ? i(m.value).format("DD/MM/YYYY HH:mm") : m.value,
|
|
89
|
-
valueGetter: (m) => E.get(m.row, a),
|
|
90
|
-
renderCell: e && ((u = e[r.propertyId]) == null ? void 0 : u.renderCell)
|
|
91
|
-
};
|
|
92
|
-
})
|
|
93
|
-
] : []
|
|
94
|
-
];
|
|
95
|
-
}, [n]), F = (t) => {
|
|
96
|
-
s && s(t);
|
|
97
|
-
}, H = (t) => h ? h.map((l) => {
|
|
98
|
-
const { showInMenu: c, ...d } = l;
|
|
99
|
-
return /* @__PURE__ */ o(
|
|
100
|
-
A,
|
|
101
|
-
{
|
|
102
|
-
...d,
|
|
103
|
-
...c ? { showInMenu: c } : void 0,
|
|
104
|
-
onClick: () => {
|
|
105
|
-
l.onClick && l.onClick(t);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
}) : [];
|
|
110
|
-
return /* @__PURE__ */ Y(S, { position: "relative", children: [
|
|
111
|
-
/* @__PURE__ */ o(
|
|
112
|
-
G,
|
|
1
|
+
import { jsxs as h, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useInstanceTableLogic as u } from "./logic.js";
|
|
3
|
+
import { InstanceTableRoot as m, InstanceDataGrid as w, ActionsContainer as g, ActionsDataGrid as x } from "./styled.js";
|
|
4
|
+
const I = () => null, A = (e) => {
|
|
5
|
+
const { state: s, actions: i } = u(e), {
|
|
6
|
+
ownerState: t,
|
|
7
|
+
columns: a,
|
|
8
|
+
selectedIds: c,
|
|
9
|
+
enableCheckboxSelection: r,
|
|
10
|
+
hasActions: d,
|
|
11
|
+
resolvedActionsWidth: l
|
|
12
|
+
} = s;
|
|
13
|
+
return /* @__PURE__ */ h(m, { ownerState: t, sx: e.sx, children: [
|
|
14
|
+
/* @__PURE__ */ n(
|
|
15
|
+
w,
|
|
113
16
|
{
|
|
114
|
-
|
|
115
|
-
|
|
17
|
+
ownerState: t,
|
|
18
|
+
columns: a,
|
|
19
|
+
rows: e.data,
|
|
116
20
|
autoHeight: !0,
|
|
117
21
|
density: "compact",
|
|
118
|
-
|
|
119
|
-
border: "none",
|
|
120
|
-
"& .MuiDataGrid-main": {
|
|
121
|
-
marginRight: h ? `${y}px` : 0
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
getRowId: (t) => t.id,
|
|
22
|
+
getRowId: (o) => o.id,
|
|
125
23
|
hideFooterPagination: !0,
|
|
126
24
|
hideFooter: !0,
|
|
127
|
-
checkboxSelection:
|
|
128
|
-
rowSelectionModel:
|
|
129
|
-
onRowSelectionModelChange:
|
|
25
|
+
checkboxSelection: r,
|
|
26
|
+
rowSelectionModel: c,
|
|
27
|
+
onRowSelectionModelChange: i.onRowSelectionModelChange,
|
|
130
28
|
keepNonExistentRowsSelected: !0
|
|
131
29
|
}
|
|
132
30
|
),
|
|
133
|
-
|
|
134
|
-
|
|
31
|
+
d && /* @__PURE__ */ n(g, { ownerState: t, children: /* @__PURE__ */ n(
|
|
32
|
+
x,
|
|
135
33
|
{
|
|
136
34
|
columns: [
|
|
137
35
|
{
|
|
138
36
|
field: "actions",
|
|
139
37
|
type: "actions",
|
|
140
|
-
width:
|
|
38
|
+
width: l,
|
|
141
39
|
headerClassName: "pinned",
|
|
142
|
-
getActions:
|
|
40
|
+
getActions: i.getActions
|
|
143
41
|
}
|
|
144
42
|
],
|
|
145
|
-
rows:
|
|
43
|
+
rows: e.data,
|
|
146
44
|
autoHeight: !0,
|
|
147
45
|
density: "compact",
|
|
148
46
|
hideFooter: !0,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
noRowsOverlay: () => /* @__PURE__ */ o(D, {})
|
|
152
|
-
},
|
|
153
|
-
getRowId: (t) => t.id
|
|
47
|
+
slots: { noRowsOverlay: I },
|
|
48
|
+
getRowId: (o) => o.id
|
|
154
49
|
}
|
|
155
50
|
) })
|
|
156
51
|
] });
|
|
157
52
|
};
|
|
158
53
|
export {
|
|
159
|
-
|
|
54
|
+
A as InstanceTable
|
|
160
55
|
};
|