@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,247 +1,187 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
),
|
|
32
|
-
[s]: n
|
|
33
|
-
});
|
|
34
|
-
}, g = (l) => (n) => {
|
|
35
|
-
let o = { ...a };
|
|
36
|
-
o[l] = f(n).format("YYYY-MM-DD"), p({
|
|
37
|
-
[e.propertyId]: o
|
|
38
|
-
});
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { KeyboardArrowUp as D, KeyboardArrowDown as F } from "@mui/icons-material";
|
|
3
|
+
import { TextField as y, FormControlLabel as R, Checkbox as E, FormControl as A, FormGroup as B } from "@mui/material";
|
|
4
|
+
import { DatePicker as S } from "@mui/x-date-pickers";
|
|
5
|
+
import d from "dayjs";
|
|
6
|
+
import { useState as W } from "react";
|
|
7
|
+
import { PropertyContainer as m, PropertyLabel as f, INPUT_FONT_SX as O, PropertyRangeRow as T, PropertyRangeSeparator as V, DATE_PICKER_SLOT_PROPS as _, PropertyEnumLabel as z, PropertyEnumItem as N, PropertyEnumCheckbox as j, PropertyShowMoreButton as K, SHOW_MORE_ICON_SX as M } from "./styled.js";
|
|
8
|
+
const v = 10, H = {
|
|
9
|
+
typography: { variant: "body2", fontSize: 13 }
|
|
10
|
+
}, U = {
|
|
11
|
+
typography: { fontSize: 13 }
|
|
12
|
+
}, ee = (w) => {
|
|
13
|
+
var P, b, g, I, C;
|
|
14
|
+
const {
|
|
15
|
+
property: e,
|
|
16
|
+
value: r,
|
|
17
|
+
size: s = "medium",
|
|
18
|
+
variant: u = "outlined",
|
|
19
|
+
onChange: h
|
|
20
|
+
} = w, c = (o) => (n) => {
|
|
21
|
+
const a = { ...r }, l = n.target.type === "checkbox" ? n.target.checked : n.target.value;
|
|
22
|
+
a[o] = String(l), h({ [n.target.name]: a });
|
|
23
|
+
}, Y = (o) => {
|
|
24
|
+
var L;
|
|
25
|
+
const n = { ...r }, { value: a, checked: l, name: p } = o.target;
|
|
26
|
+
l ? (n.atLeastOneOf || (n.atLeastOneOf = []), n.atLeastOneOf.push(a)) : n.atLeastOneOf = (L = n.atLeastOneOf) == null ? void 0 : L.filter(
|
|
27
|
+
(k) => k !== a
|
|
28
|
+
), h({ [p]: n });
|
|
29
|
+
}, x = (o) => (n) => {
|
|
30
|
+
const a = { ...r };
|
|
31
|
+
a[o] = d(n).format("YYYY-MM-DD"), h({ [e.propertyId]: a });
|
|
39
32
|
};
|
|
40
33
|
if (["string", "text", "list"].includes(e.type))
|
|
41
|
-
return /* @__PURE__ */ m
|
|
42
|
-
/* @__PURE__ */ t(
|
|
34
|
+
return /* @__PURE__ */ i(m, { children: [
|
|
35
|
+
/* @__PURE__ */ t(f, { variant: "caption", children: e.name }),
|
|
43
36
|
/* @__PURE__ */ t(
|
|
44
|
-
|
|
37
|
+
y,
|
|
45
38
|
{
|
|
46
39
|
name: e.propertyId,
|
|
47
|
-
value:
|
|
48
|
-
size:
|
|
49
|
-
onChange:
|
|
40
|
+
value: r.exact ?? e.defaultValue ?? "",
|
|
41
|
+
size: s,
|
|
42
|
+
onChange: c("exact"),
|
|
50
43
|
variant: u,
|
|
51
44
|
type: "text",
|
|
52
45
|
multiline: e.type === "text",
|
|
53
46
|
disabled: !e.editable,
|
|
54
47
|
fullWidth: !0,
|
|
55
|
-
InputProps: {
|
|
56
|
-
sx: { fontSize: 12 }
|
|
57
|
-
}
|
|
48
|
+
InputProps: { sx: O }
|
|
58
49
|
}
|
|
59
50
|
)
|
|
60
51
|
] });
|
|
61
52
|
if (["integer", "double", "long", "byte"].includes(e.type))
|
|
62
|
-
return /* @__PURE__ */ m
|
|
63
|
-
/* @__PURE__ */ t(
|
|
64
|
-
/* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ i(m, { children: [
|
|
54
|
+
/* @__PURE__ */ t(f, { variant: "caption", children: e.name }),
|
|
55
|
+
/* @__PURE__ */ i(T, { children: [
|
|
65
56
|
/* @__PURE__ */ t(
|
|
66
|
-
|
|
57
|
+
y,
|
|
67
58
|
{
|
|
68
59
|
name: e.propertyId,
|
|
69
|
-
value:
|
|
70
|
-
size:
|
|
71
|
-
onChange:
|
|
60
|
+
value: r.min ?? e.defaultValue ?? "",
|
|
61
|
+
size: s,
|
|
62
|
+
onChange: c("min"),
|
|
72
63
|
variant: u,
|
|
73
64
|
type: "number",
|
|
74
65
|
disabled: !e.editable,
|
|
75
66
|
fullWidth: !0,
|
|
76
|
-
InputProps: {
|
|
77
|
-
placeholder: "Min",
|
|
78
|
-
sx: { fontSize: 12 }
|
|
79
|
-
}
|
|
67
|
+
InputProps: { placeholder: "Min", sx: O }
|
|
80
68
|
}
|
|
81
69
|
),
|
|
82
|
-
/* @__PURE__ */ t(
|
|
70
|
+
/* @__PURE__ */ t(V, { children: "-" }),
|
|
83
71
|
/* @__PURE__ */ t(
|
|
84
|
-
|
|
72
|
+
y,
|
|
85
73
|
{
|
|
86
74
|
name: e.propertyId,
|
|
87
|
-
value:
|
|
88
|
-
size:
|
|
89
|
-
onChange:
|
|
75
|
+
value: r.max ?? e.defaultValue ?? "",
|
|
76
|
+
size: s,
|
|
77
|
+
onChange: c("max"),
|
|
90
78
|
variant: u,
|
|
91
79
|
type: "number",
|
|
92
80
|
disabled: !e.editable,
|
|
93
81
|
fullWidth: !0,
|
|
94
|
-
InputProps: {
|
|
95
|
-
placeholder: "Max",
|
|
96
|
-
sx: { fontSize: 12 }
|
|
97
|
-
}
|
|
82
|
+
InputProps: { placeholder: "Max", sx: O }
|
|
98
83
|
}
|
|
99
84
|
)
|
|
100
85
|
] })
|
|
101
86
|
] });
|
|
102
87
|
if (e.type === "date") {
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
88
|
+
const o = "YYYY-MM-DD", n = "DD/MM/YYYY", a = r.min && d(r.min, o, !0).isValid() ? d(r.min, o) : null, l = r.max && d(r.max, o, !0).isValid() ? d(r.max, o) : null, p = {
|
|
89
|
+
..._,
|
|
90
|
+
textField: {
|
|
91
|
+
..._.textField,
|
|
92
|
+
variant: u,
|
|
93
|
+
name: e.propertyId,
|
|
94
|
+
size: s
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
return /* @__PURE__ */ i(m, { children: [
|
|
98
|
+
/* @__PURE__ */ t(f, { variant: "caption", children: e.name }),
|
|
99
|
+
/* @__PURE__ */ i(T, { children: [
|
|
107
100
|
/* @__PURE__ */ t(
|
|
108
|
-
|
|
101
|
+
S,
|
|
109
102
|
{
|
|
110
103
|
label: "From",
|
|
111
|
-
value:
|
|
112
|
-
format:
|
|
104
|
+
value: a,
|
|
105
|
+
format: n,
|
|
113
106
|
views: ["year", "month", "day"],
|
|
114
|
-
slotProps:
|
|
115
|
-
|
|
116
|
-
variant: u,
|
|
117
|
-
name: e.propertyId,
|
|
118
|
-
size: d,
|
|
119
|
-
fullWidth: !0,
|
|
120
|
-
inputProps: { sx: { fontSize: 12 } },
|
|
121
|
-
InputLabelProps: { sx: { fontSize: 12 } }
|
|
122
|
-
},
|
|
123
|
-
inputAdornment: {
|
|
124
|
-
sx: {
|
|
125
|
-
"& .MuiSvgIcon-root": {
|
|
126
|
-
fontSize: 16
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
onChange: g("min")
|
|
107
|
+
slotProps: p,
|
|
108
|
+
onChange: x("min")
|
|
132
109
|
}
|
|
133
110
|
),
|
|
134
|
-
/* @__PURE__ */ t(
|
|
111
|
+
/* @__PURE__ */ t(V, { children: "-" }),
|
|
135
112
|
/* @__PURE__ */ t(
|
|
136
|
-
|
|
113
|
+
S,
|
|
137
114
|
{
|
|
138
115
|
label: "To",
|
|
139
|
-
value:
|
|
140
|
-
format:
|
|
141
|
-
minDate:
|
|
116
|
+
value: l,
|
|
117
|
+
format: n,
|
|
118
|
+
minDate: a !== null ? a : void 0,
|
|
142
119
|
views: ["year", "month", "day"],
|
|
143
|
-
slotProps:
|
|
144
|
-
|
|
145
|
-
variant: u,
|
|
146
|
-
name: e.propertyId,
|
|
147
|
-
size: d,
|
|
148
|
-
fullWidth: !0,
|
|
149
|
-
inputProps: { sx: { fontSize: 12 } },
|
|
150
|
-
InputLabelProps: { sx: { fontSize: 12 } }
|
|
151
|
-
},
|
|
152
|
-
inputAdornment: {
|
|
153
|
-
sx: {
|
|
154
|
-
"& .MuiSvgIcon-root": {
|
|
155
|
-
fontSize: 16
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
onChange: g("max")
|
|
120
|
+
slotProps: p,
|
|
121
|
+
onChange: x("max")
|
|
161
122
|
}
|
|
162
123
|
)
|
|
163
124
|
] })
|
|
164
125
|
] });
|
|
165
126
|
}
|
|
166
127
|
if (e.type === "boolean")
|
|
167
|
-
return /* @__PURE__ */ t(
|
|
168
|
-
|
|
128
|
+
return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(
|
|
129
|
+
R,
|
|
169
130
|
{
|
|
170
131
|
label: e.name,
|
|
171
132
|
control: /* @__PURE__ */ t(
|
|
172
|
-
|
|
133
|
+
E,
|
|
173
134
|
{
|
|
174
|
-
size:
|
|
135
|
+
size: s,
|
|
175
136
|
name: e.propertyId,
|
|
176
|
-
checked: !!
|
|
177
|
-
onChange:
|
|
137
|
+
checked: !!r,
|
|
138
|
+
onChange: c("exact")
|
|
178
139
|
}
|
|
179
140
|
),
|
|
180
|
-
slotProps:
|
|
181
|
-
typography: {
|
|
182
|
-
fontSize: 13
|
|
183
|
-
}
|
|
184
|
-
}
|
|
141
|
+
slotProps: U
|
|
185
142
|
}
|
|
186
143
|
) });
|
|
187
|
-
if (e.type === "enum" || e.type === "composite-list" && ((
|
|
188
|
-
const [
|
|
189
|
-
let
|
|
190
|
-
return (
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */ t(
|
|
193
|
-
/* @__PURE__ */ t(
|
|
194
|
-
|
|
144
|
+
if (e.type === "enum" || e.type === "composite-list" && ((b = (P = e.dataTypeInfo) == null ? void 0 : P.innerType) == null ? void 0 : b.type) === "enum") {
|
|
145
|
+
const [o, n] = W(!1);
|
|
146
|
+
let a = [];
|
|
147
|
+
return (g = e.dataTypeInfo) != null && g.enumValues && (a = e.dataTypeInfo.enumValues), (C = (I = e.dataTypeInfo) == null ? void 0 : I.innerType) != null && C.enumValues && (a = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ i(m, { children: [
|
|
148
|
+
/* @__PURE__ */ i(A, { fullWidth: !0, component: "fieldset", variant: u, children: [
|
|
149
|
+
/* @__PURE__ */ t(z, { children: e.name }),
|
|
150
|
+
/* @__PURE__ */ t(B, { children: a.slice(0, o ? 9999 : v).map((l, p) => /* @__PURE__ */ t(
|
|
151
|
+
N,
|
|
195
152
|
{
|
|
196
|
-
label:
|
|
153
|
+
label: l,
|
|
197
154
|
control: /* @__PURE__ */ t(
|
|
198
|
-
|
|
155
|
+
j,
|
|
199
156
|
{
|
|
200
157
|
name: e.propertyId,
|
|
201
|
-
value:
|
|
158
|
+
value: l,
|
|
202
159
|
size: "small",
|
|
203
|
-
checked:
|
|
204
|
-
onChange:
|
|
205
|
-
sx: {
|
|
206
|
-
p: 0,
|
|
207
|
-
mr: 1,
|
|
208
|
-
"& .MuiSvgIcon-root": {
|
|
209
|
-
fontSize: 16
|
|
210
|
-
}
|
|
211
|
-
}
|
|
160
|
+
checked: r.atLeastOneOf ? r.atLeastOneOf.includes(l) : !1,
|
|
161
|
+
onChange: Y
|
|
212
162
|
}
|
|
213
163
|
),
|
|
214
|
-
componentsProps:
|
|
215
|
-
typography: {
|
|
216
|
-
variant: "body2",
|
|
217
|
-
fontSize: 13
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
sx: {
|
|
221
|
-
m: 0,
|
|
222
|
-
mb: 1
|
|
223
|
-
}
|
|
164
|
+
componentsProps: H
|
|
224
165
|
},
|
|
225
|
-
|
|
166
|
+
p
|
|
226
167
|
)) })
|
|
227
168
|
] }),
|
|
228
|
-
|
|
229
|
-
|
|
169
|
+
a.length > v && /* @__PURE__ */ i(
|
|
170
|
+
K,
|
|
230
171
|
{
|
|
231
172
|
size: "small",
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
onClick: () => n((s) => !s),
|
|
173
|
+
endIcon: o ? /* @__PURE__ */ t(D, { sx: M }) : /* @__PURE__ */ t(F, { sx: M }),
|
|
174
|
+
onClick: () => n((l) => !l),
|
|
235
175
|
children: [
|
|
236
176
|
"Show ",
|
|
237
|
-
|
|
177
|
+
o ? "Less" : "More"
|
|
238
178
|
]
|
|
239
179
|
}
|
|
240
180
|
)
|
|
241
181
|
] });
|
|
242
182
|
}
|
|
243
|
-
return
|
|
183
|
+
return null;
|
|
244
184
|
};
|
|
245
185
|
export {
|
|
246
|
-
|
|
186
|
+
ee as Property
|
|
247
187
|
};
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Add as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { styled as t, Box as e, Accordion as a, AccordionSummary as p, alpha as i, Typography as r, AccordionDetails as l, FormLabel as c, FormControlLabel as s, Checkbox as m, Button as d } from "@mui/material";
|
|
2
|
+
import { Add as y, Remove as g } from "@mui/icons-material";
|
|
3
|
+
const u = (o) => o !== "ownerState", T = t(e, {
|
|
4
|
+
name: "HCTemplatePropertyFilters",
|
|
5
|
+
slot: "root",
|
|
6
|
+
shouldForwardProp: u
|
|
7
|
+
})({
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column"
|
|
10
|
+
}), f = t(a, {
|
|
11
|
+
name: "HCTemplatePropertyFilters",
|
|
12
|
+
slot: "accordion"
|
|
13
|
+
})(({ theme: o }) => ({
|
|
5
14
|
borderTop: `1px solid ${o.palette.divider}`,
|
|
6
15
|
"&:last-of-type": {
|
|
7
16
|
borderBottom: `1px solid ${o.palette.divider}`
|
|
@@ -9,21 +18,15 @@ const g = a((o) => /* @__PURE__ */ n(e, { disableGutters: !0, elevation: 0, squa
|
|
|
9
18
|
"&::before": {
|
|
10
19
|
display: "none"
|
|
11
20
|
}
|
|
12
|
-
})), x =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ n(r, { className: "expandIcon", sx: { fontSize: 16 } }),
|
|
17
|
-
/* @__PURE__ */ n(d, { className: "collapseIcon", sx: { fontSize: 16 } })
|
|
18
|
-
] }),
|
|
19
|
-
...o
|
|
20
|
-
}
|
|
21
|
-
))(({ theme: o }) => ({
|
|
21
|
+
})), x = t(p, {
|
|
22
|
+
name: "HCTemplatePropertyFilters",
|
|
23
|
+
slot: "accordionSummary"
|
|
24
|
+
})(({ theme: o }) => ({
|
|
22
25
|
minHeight: 30,
|
|
23
26
|
paddingLeft: o.spacing(1),
|
|
24
27
|
paddingRight: o.spacing(1),
|
|
25
28
|
"&.Mui-expanded": {
|
|
26
|
-
backgroundColor:
|
|
29
|
+
backgroundColor: i(o.palette.primary.main, 0.1),
|
|
27
30
|
"& .MuiAccordionSummary-content": {
|
|
28
31
|
color: o.palette.primary.main
|
|
29
32
|
}
|
|
@@ -49,16 +52,114 @@ const g = a((o) => /* @__PURE__ */ n(e, { disableGutters: !0, elevation: 0, squa
|
|
|
49
52
|
display: "block"
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
|
-
})),
|
|
55
|
+
})), C = t(r, {
|
|
56
|
+
name: "HCTemplatePropertyFilters",
|
|
57
|
+
slot: "accordionTitle"
|
|
58
|
+
})({
|
|
59
|
+
fontSize: 12
|
|
60
|
+
}), F = t(l, {
|
|
61
|
+
name: "HCTemplatePropertyFilters",
|
|
62
|
+
slot: "accordionDetails"
|
|
63
|
+
})(({ theme: o }) => ({
|
|
53
64
|
display: "flex",
|
|
54
65
|
flexDirection: "column",
|
|
55
66
|
paddingLeft: o.spacing(1),
|
|
56
67
|
paddingRight: o.spacing(1),
|
|
57
68
|
paddingTop: o.spacing(1.5),
|
|
58
69
|
paddingBottom: o.spacing(1.5)
|
|
59
|
-
}))
|
|
70
|
+
})), I = t(e, {
|
|
71
|
+
name: "HCTemplatePropertyFilters",
|
|
72
|
+
slot: "propertyContainer"
|
|
73
|
+
})(({ theme: o }) => ({
|
|
74
|
+
marginBottom: o.spacing(1)
|
|
75
|
+
})), b = t(r, {
|
|
76
|
+
name: "HCTemplatePropertyFilters",
|
|
77
|
+
slot: "propertyLabel"
|
|
78
|
+
})(({ theme: o }) => ({
|
|
79
|
+
marginBottom: o.spacing(0.5),
|
|
80
|
+
display: "block"
|
|
81
|
+
})), A = t(e, {
|
|
82
|
+
name: "HCTemplatePropertyFilters",
|
|
83
|
+
slot: "propertyRangeRow"
|
|
84
|
+
})(({ theme: o }) => ({
|
|
85
|
+
display: "flex",
|
|
86
|
+
alignItems: "center",
|
|
87
|
+
marginBottom: o.spacing(2)
|
|
88
|
+
})), H = t(r, {
|
|
89
|
+
name: "HCTemplatePropertyFilters",
|
|
90
|
+
slot: "propertyRangeSeparator"
|
|
91
|
+
})(({ theme: o }) => ({
|
|
92
|
+
paddingLeft: o.spacing(1),
|
|
93
|
+
paddingRight: o.spacing(1)
|
|
94
|
+
})), R = t(c, {
|
|
95
|
+
name: "HCTemplatePropertyFilters",
|
|
96
|
+
slot: "propertyEnumLabel"
|
|
97
|
+
})(({ theme: o }) => ({
|
|
98
|
+
marginBottom: o.spacing(1),
|
|
99
|
+
fontSize: 12
|
|
100
|
+
})), B = t(s, {
|
|
101
|
+
name: "HCTemplatePropertyFilters",
|
|
102
|
+
slot: "propertyEnumItem"
|
|
103
|
+
})(({ theme: o }) => ({
|
|
104
|
+
margin: 0,
|
|
105
|
+
marginBottom: o.spacing(1)
|
|
106
|
+
})), L = t(m, {
|
|
107
|
+
name: "HCTemplatePropertyFilters",
|
|
108
|
+
slot: "propertyEnumCheckbox"
|
|
109
|
+
})(({ theme: o }) => ({
|
|
110
|
+
padding: 0,
|
|
111
|
+
marginRight: o.spacing(1),
|
|
112
|
+
"& .MuiSvgIcon-root": {
|
|
113
|
+
fontSize: 16
|
|
114
|
+
}
|
|
115
|
+
})), M = t(d, {
|
|
116
|
+
name: "HCTemplatePropertyFilters",
|
|
117
|
+
slot: "propertyShowMoreButton"
|
|
118
|
+
})({
|
|
119
|
+
padding: 0,
|
|
120
|
+
textTransform: "none",
|
|
121
|
+
fontSize: 12
|
|
122
|
+
}), E = t(y, {
|
|
123
|
+
name: "HCTemplatePropertyFilters",
|
|
124
|
+
slot: "expandIcon"
|
|
125
|
+
})({
|
|
126
|
+
fontSize: 16
|
|
127
|
+
}), z = t(g, {
|
|
128
|
+
name: "HCTemplatePropertyFilters",
|
|
129
|
+
slot: "collapseIcon"
|
|
130
|
+
})({
|
|
131
|
+
fontSize: 16
|
|
132
|
+
}), n = { fontSize: 12 }, _ = { fontSize: 14 }, k = {
|
|
133
|
+
textField: {
|
|
134
|
+
fullWidth: !0,
|
|
135
|
+
inputProps: { sx: n },
|
|
136
|
+
InputLabelProps: { sx: n }
|
|
137
|
+
},
|
|
138
|
+
inputAdornment: {
|
|
139
|
+
sx: {
|
|
140
|
+
"& .MuiSvgIcon-root": {
|
|
141
|
+
fontSize: 16
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
60
146
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
x as AccordionSummary
|
|
147
|
+
f as Accordion,
|
|
148
|
+
F as AccordionDetails,
|
|
149
|
+
x as AccordionSummary,
|
|
150
|
+
C as AccordionTitle,
|
|
151
|
+
z as CollapseIcon,
|
|
152
|
+
k as DATE_PICKER_SLOT_PROPS,
|
|
153
|
+
E as ExpandIcon,
|
|
154
|
+
n as INPUT_FONT_SX,
|
|
155
|
+
I as PropertyContainer,
|
|
156
|
+
L as PropertyEnumCheckbox,
|
|
157
|
+
B as PropertyEnumItem,
|
|
158
|
+
R as PropertyEnumLabel,
|
|
159
|
+
b as PropertyLabel,
|
|
160
|
+
A as PropertyRangeRow,
|
|
161
|
+
H as PropertyRangeSeparator,
|
|
162
|
+
M as PropertyShowMoreButton,
|
|
163
|
+
_ as SHOW_MORE_ICON_SX,
|
|
164
|
+
T as TemplatePropertyFiltersRoot
|
|
64
165
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Timeline as C, TimelineItem as v, TimelineOppositeContent as M, TimelineSeparator as S, TimelineConnector as d, TimelineContent as W } from "@mui/lab";
|
|
3
|
+
import { Skeleton as b, Typography as o, Divider as c, Box as k, Button as w } from "@mui/material";
|
|
4
|
+
import { useTimelineLogic as D } from "./logic.js";
|
|
5
|
+
import { TimelineRoot as h, TimelineContentWrap as m, TimelineHeader as L, TimelineDotStyled as j, LoadMoreWrap as B } from "./styled.js";
|
|
6
|
+
function q(p) {
|
|
7
|
+
const {
|
|
8
|
+
items: s,
|
|
9
|
+
hasMore: T,
|
|
10
|
+
loadMore: x,
|
|
11
|
+
formatDate: g,
|
|
12
|
+
title: t,
|
|
13
|
+
loading: u,
|
|
14
|
+
dotIcon: f,
|
|
15
|
+
ownerState: i,
|
|
16
|
+
sx: l,
|
|
17
|
+
other: a
|
|
18
|
+
} = D(p);
|
|
19
|
+
return u ? /* @__PURE__ */ e(h, { ownerState: i, sx: l, ...a, children: /* @__PURE__ */ e(m, { ownerState: i, children: /* @__PURE__ */ e(b, { variant: "rectangular", width: "100%", height: "100%" }) }) }) : /* @__PURE__ */ n(h, { ownerState: i, sx: l, ...a, children: [
|
|
20
|
+
t && /* @__PURE__ */ e(L, { ownerState: i, children: /* @__PURE__ */ e(o, { variant: "h2", children: t }) }),
|
|
21
|
+
/* @__PURE__ */ n(m, { ownerState: i, children: [
|
|
22
|
+
/* @__PURE__ */ e(c, {}),
|
|
23
|
+
/* @__PURE__ */ e(C, { children: s.map((r) => /* @__PURE__ */ n(v, { children: [
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
M,
|
|
26
|
+
{
|
|
27
|
+
sx: { m: "auto 0", flex: 0.5 },
|
|
28
|
+
align: "right",
|
|
29
|
+
variant: "caption",
|
|
30
|
+
color: "text.secondary",
|
|
31
|
+
children: g(r)
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ n(S, { children: [
|
|
35
|
+
/* @__PURE__ */ e(d, {}),
|
|
36
|
+
/* @__PURE__ */ e(j, { children: f || /* @__PURE__ */ e(
|
|
37
|
+
k,
|
|
38
|
+
{
|
|
39
|
+
sx: (y) => ({
|
|
40
|
+
width: 12,
|
|
41
|
+
height: 12,
|
|
42
|
+
borderRadius: "50%",
|
|
43
|
+
backgroundColor: y.palette.primary.main
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
) }),
|
|
47
|
+
/* @__PURE__ */ e(d, {})
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ n(W, { sx: { py: "12px", px: 2 }, children: [
|
|
50
|
+
/* @__PURE__ */ e(o, { variant: "body2", component: "span", children: r.title }),
|
|
51
|
+
/* @__PURE__ */ e(o, { component: "span", children: r.description })
|
|
52
|
+
] })
|
|
53
|
+
] }, r.id)) }),
|
|
54
|
+
/* @__PURE__ */ e(c, {}),
|
|
55
|
+
T && /* @__PURE__ */ e(B, { ownerState: i, children: /* @__PURE__ */ e(w, { onClick: x, fullWidth: !0, size: "large", children: "Load More" }) })
|
|
56
|
+
] })
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
q as TimelineWidget
|
|
61
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useThemeProps as M } from "@mui/material";
|
|
2
|
+
import w from "lodash";
|
|
3
|
+
import { useState as y, useMemo as C } from "react";
|
|
4
|
+
const i = {
|
|
5
|
+
day: "numeric",
|
|
6
|
+
month: "long",
|
|
7
|
+
year: "numeric",
|
|
8
|
+
hour: "numeric",
|
|
9
|
+
minute: "2-digit",
|
|
10
|
+
hour12: !0
|
|
11
|
+
}, x = (c) => {
|
|
12
|
+
const e = M({ props: c, name: "HCTimeline" }), {
|
|
13
|
+
data: o,
|
|
14
|
+
title: m,
|
|
15
|
+
loading: u,
|
|
16
|
+
pageSize: r = 5,
|
|
17
|
+
dotIcon: l,
|
|
18
|
+
locale: n = "en-US",
|
|
19
|
+
sx: p,
|
|
20
|
+
...d
|
|
21
|
+
} = e, [s, g] = y(r), a = C(
|
|
22
|
+
() => w.orderBy(o ?? [], ["startDate"], ["desc"]),
|
|
23
|
+
[o]
|
|
24
|
+
), S = a.slice(0, s), h = s < a.length, D = () => g((t) => t + r), f = (t) => t.startDate ? new Date(t.startDate).toLocaleString(n, i) : t.timestamp ? new Date(t.timestamp).toLocaleString(n, i) : "No date", T = { ...e };
|
|
25
|
+
return {
|
|
26
|
+
items: S,
|
|
27
|
+
hasMore: h,
|
|
28
|
+
loadMore: D,
|
|
29
|
+
formatDate: f,
|
|
30
|
+
title: m,
|
|
31
|
+
loading: u,
|
|
32
|
+
dotIcon: l,
|
|
33
|
+
ownerState: T,
|
|
34
|
+
sx: p,
|
|
35
|
+
other: d
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
x as useTimelineLogic
|
|
40
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TimelineDot as n } from "@mui/lab";
|
|
2
|
+
import { styled as o, Paper as r, Box as t } from "@mui/material";
|
|
3
|
+
const a = o(r, {
|
|
4
|
+
name: "HCTimeline",
|
|
5
|
+
slot: "Root",
|
|
6
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
7
|
+
})(() => ({
|
|
8
|
+
height: "100%",
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column"
|
|
11
|
+
})), d = o(t, {
|
|
12
|
+
name: "HCTimeline",
|
|
13
|
+
slot: "Header",
|
|
14
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
15
|
+
})(({ theme: e }) => ({
|
|
16
|
+
flex: "0 0 auto",
|
|
17
|
+
padding: e.spacing(1.25, 2)
|
|
18
|
+
})), m = o(t, {
|
|
19
|
+
name: "HCTimeline",
|
|
20
|
+
slot: "Content",
|
|
21
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
22
|
+
})(() => ({
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
flex: "1 1 auto",
|
|
26
|
+
minHeight: 0,
|
|
27
|
+
overflow: "auto"
|
|
28
|
+
})), s = o(n, {
|
|
29
|
+
name: "HCTimeline",
|
|
30
|
+
slot: "Dot"
|
|
31
|
+
})(() => ({
|
|
32
|
+
padding: 0,
|
|
33
|
+
backgroundColor: "transparent",
|
|
34
|
+
boxShadow: "none"
|
|
35
|
+
})), p = o(t, {
|
|
36
|
+
name: "HCTimeline",
|
|
37
|
+
slot: "LoadMore",
|
|
38
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
39
|
+
})(() => ({
|
|
40
|
+
textAlign: "center"
|
|
41
|
+
}));
|
|
42
|
+
export {
|
|
43
|
+
p as LoadMoreWrap,
|
|
44
|
+
m as TimelineContentWrap,
|
|
45
|
+
s as TimelineDotStyled,
|
|
46
|
+
d as TimelineHeader,
|
|
47
|
+
a as TimelineRoot
|
|
48
|
+
};
|