@hybridcore/ui 1.5.90 → 1.6.0
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-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- 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-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- 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-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- 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-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- 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 +7 -7
- package/dist/components/context-menu/index.js +153 -253
- 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 +5 -5
- 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 +7 -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 +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- 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/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/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/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 +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- 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/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- 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 +9 -9
- 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 +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- 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 +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- 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-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- 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/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- 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/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/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
|
@@ -1,148 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
iconSize: n = "medium",
|
|
18
|
-
sx: D,
|
|
19
|
-
onChange: y,
|
|
20
|
-
onSubmit: a
|
|
21
|
-
}, F) => {
|
|
22
|
-
const [r, h] = O(x), c = (o) => {
|
|
23
|
-
h(o.target.value), y && y(o.target.value);
|
|
24
|
-
}, d = (o) => {
|
|
25
|
-
a && a(r);
|
|
26
|
-
}, p = (o) => {
|
|
27
|
-
o.key === "Enter" && d();
|
|
28
|
-
}, K = () => {
|
|
29
|
-
h("");
|
|
30
|
-
};
|
|
31
|
-
k.useImperativeHandle(F, () => ({
|
|
32
|
-
reset() {
|
|
33
|
-
K();
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
const f = () => {
|
|
37
|
-
h(""), a && a("");
|
|
38
|
-
};
|
|
39
|
-
return /* @__PURE__ */ s(_, { sx: D, size: A, variant: l, fullWidth: w, children: [
|
|
40
|
-
!C && /* @__PURE__ */ e(j, { htmlFor: "search-input", children: I }),
|
|
41
|
-
l === "outlined" && /* @__PURE__ */ e(
|
|
42
|
-
v,
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Close as I, Search as b } from "@mui/icons-material";
|
|
3
|
+
import { useSearchInputLogic as g } from "./logic.js";
|
|
4
|
+
import { SearchEndAdornment as x, SearchIconButton as h, SearchInputRoot as z, SearchInputLabel as C, OutlinedSearchInput as w, FilledSearchInput as y, StandardSearchInput as L } from "./styled.js";
|
|
5
|
+
const D = (r) => {
|
|
6
|
+
const { state: s, actions: n } = g(r), { ownerState: u, value: o } = s, {
|
|
7
|
+
label: i = "Search",
|
|
8
|
+
placeholder: S,
|
|
9
|
+
disableLabel: c = !1,
|
|
10
|
+
fullWidth: m = !1,
|
|
11
|
+
variant: a = "outlined",
|
|
12
|
+
size: p = "small",
|
|
13
|
+
iconSize: t = "medium"
|
|
14
|
+
} = r, f = /* @__PURE__ */ d(x, { position: "end", children: [
|
|
15
|
+
o.length > 0 && /* @__PURE__ */ e(
|
|
16
|
+
h,
|
|
43
17
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
onKeyDown: p,
|
|
51
|
-
endAdornment: /* @__PURE__ */ s(g, { position: "end", children: [
|
|
52
|
-
r.length > 0 && /* @__PURE__ */ e(
|
|
53
|
-
t,
|
|
54
|
-
{
|
|
55
|
-
"aria-label": "search",
|
|
56
|
-
onClick: f,
|
|
57
|
-
edge: "end",
|
|
58
|
-
size: n,
|
|
59
|
-
color: "error",
|
|
60
|
-
children: /* @__PURE__ */ e(m, { fontSize: n })
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
/* @__PURE__ */ e(
|
|
64
|
-
t,
|
|
65
|
-
{
|
|
66
|
-
"aria-label": "search",
|
|
67
|
-
onClick: d,
|
|
68
|
-
edge: "end",
|
|
69
|
-
size: n,
|
|
70
|
-
children: /* @__PURE__ */ e(u, { fontSize: n })
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] })
|
|
18
|
+
"aria-label": "clear",
|
|
19
|
+
onClick: n.handleClear,
|
|
20
|
+
edge: "end",
|
|
21
|
+
size: t,
|
|
22
|
+
color: "error",
|
|
23
|
+
children: /* @__PURE__ */ e(I, { fontSize: t })
|
|
74
24
|
}
|
|
75
25
|
),
|
|
76
|
-
|
|
77
|
-
|
|
26
|
+
/* @__PURE__ */ e(
|
|
27
|
+
h,
|
|
78
28
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
onKeyDown: p,
|
|
85
|
-
endAdornment: /* @__PURE__ */ s(g, { position: "end", children: [
|
|
86
|
-
r.length > 0 && /* @__PURE__ */ e(
|
|
87
|
-
t,
|
|
88
|
-
{
|
|
89
|
-
"aria-label": "search",
|
|
90
|
-
onClick: f,
|
|
91
|
-
edge: "end",
|
|
92
|
-
size: n,
|
|
93
|
-
color: "error",
|
|
94
|
-
children: /* @__PURE__ */ e(m, { fontSize: n })
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
/* @__PURE__ */ e(
|
|
98
|
-
t,
|
|
99
|
-
{
|
|
100
|
-
"aria-label": "search",
|
|
101
|
-
onClick: d,
|
|
102
|
-
edge: "end",
|
|
103
|
-
size: n,
|
|
104
|
-
children: /* @__PURE__ */ e(u, { fontSize: n })
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
] })
|
|
108
|
-
}
|
|
109
|
-
),
|
|
110
|
-
l === "standard" && /* @__PURE__ */ e(
|
|
111
|
-
R,
|
|
112
|
-
{
|
|
113
|
-
id: "search-input",
|
|
114
|
-
type: "text",
|
|
115
|
-
value: r,
|
|
116
|
-
placeholder: i,
|
|
117
|
-
onChange: c,
|
|
118
|
-
onKeyDown: p,
|
|
119
|
-
endAdornment: /* @__PURE__ */ s(g, { position: "end", children: [
|
|
120
|
-
r.length > 0 && /* @__PURE__ */ e(
|
|
121
|
-
t,
|
|
122
|
-
{
|
|
123
|
-
"aria-label": "search",
|
|
124
|
-
onClick: f,
|
|
125
|
-
edge: "end",
|
|
126
|
-
size: n,
|
|
127
|
-
color: "error",
|
|
128
|
-
children: /* @__PURE__ */ e(m, { fontSize: n })
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
/* @__PURE__ */ e(
|
|
132
|
-
t,
|
|
133
|
-
{
|
|
134
|
-
"aria-label": "search",
|
|
135
|
-
onClick: d,
|
|
136
|
-
edge: "end",
|
|
137
|
-
size: n,
|
|
138
|
-
children: /* @__PURE__ */ e(u, { fontSize: n })
|
|
139
|
-
}
|
|
140
|
-
)
|
|
141
|
-
] })
|
|
29
|
+
"aria-label": "search",
|
|
30
|
+
onClick: n.handleSubmit,
|
|
31
|
+
edge: "end",
|
|
32
|
+
size: t,
|
|
33
|
+
children: /* @__PURE__ */ e(b, { fontSize: t })
|
|
142
34
|
}
|
|
143
35
|
)
|
|
144
|
-
] })
|
|
145
|
-
|
|
36
|
+
] }), l = {
|
|
37
|
+
id: "search-input",
|
|
38
|
+
type: "text",
|
|
39
|
+
value: o,
|
|
40
|
+
placeholder: S,
|
|
41
|
+
onChange: n.handleChange,
|
|
42
|
+
onKeyDown: n.handleKeyDown,
|
|
43
|
+
endAdornment: f
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ d(
|
|
46
|
+
z,
|
|
47
|
+
{
|
|
48
|
+
ownerState: u,
|
|
49
|
+
sx: r.sx,
|
|
50
|
+
size: p,
|
|
51
|
+
variant: a,
|
|
52
|
+
fullWidth: m,
|
|
53
|
+
children: [
|
|
54
|
+
!c && /* @__PURE__ */ e(C, { htmlFor: "search-input", children: i }),
|
|
55
|
+
a === "outlined" && /* @__PURE__ */ e(
|
|
56
|
+
w,
|
|
57
|
+
{
|
|
58
|
+
...l,
|
|
59
|
+
label: c ? "" : i
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
a === "filled" && /* @__PURE__ */ e(y, { ...l }),
|
|
63
|
+
a === "standard" && /* @__PURE__ */ e(L, { ...l })
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
};
|
|
146
68
|
export {
|
|
147
|
-
|
|
69
|
+
D as SearchInput
|
|
148
70
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useThemeProps as g } from "@mui/material";
|
|
2
|
+
import { useState as C } from "react";
|
|
3
|
+
const D = (r) => {
|
|
4
|
+
const i = g({ props: r, name: "HCSearchInput" }), {
|
|
5
|
+
defaultValue: t = "",
|
|
6
|
+
label: u = "Search",
|
|
7
|
+
placeholder: c,
|
|
8
|
+
disableLabel: h = !1,
|
|
9
|
+
fullWidth: d = !1,
|
|
10
|
+
variant: f = "outlined",
|
|
11
|
+
size: m = "small",
|
|
12
|
+
iconSize: p = "medium",
|
|
13
|
+
sx: S,
|
|
14
|
+
onChange: n,
|
|
15
|
+
onSubmit: a
|
|
16
|
+
} = i, [o, l] = C(t), b = (e) => {
|
|
17
|
+
l(e.target.value), n && n(e.target.value);
|
|
18
|
+
}, s = (e) => {
|
|
19
|
+
a && a(o);
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
refs: {},
|
|
23
|
+
state: { ownerState: {
|
|
24
|
+
defaultValue: t,
|
|
25
|
+
label: u,
|
|
26
|
+
placeholder: c,
|
|
27
|
+
disableLabel: h,
|
|
28
|
+
fullWidth: d,
|
|
29
|
+
variant: f,
|
|
30
|
+
size: m,
|
|
31
|
+
iconSize: p,
|
|
32
|
+
sx: S
|
|
33
|
+
}, value: o },
|
|
34
|
+
actions: { handleChange: b, handleSubmit: s, handleKeyDown: (e) => {
|
|
35
|
+
e.key === "Enter" && s();
|
|
36
|
+
}, handleClear: () => {
|
|
37
|
+
l(""), a && a("");
|
|
38
|
+
} }
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
D as useSearchInputLogic
|
|
43
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { styled as t, FormControl as o, InputLabel as e, OutlinedInput as a, FilledInput as r, Input as u, InputAdornment as c, IconButton as p } from "@mui/material";
|
|
2
|
+
const l = (n) => n !== "ownerState", s = t(o, {
|
|
3
|
+
name: "HCSearchInput",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: l
|
|
6
|
+
})({}), S = t(e, {
|
|
7
|
+
name: "HCSearchInput",
|
|
8
|
+
slot: "label"
|
|
9
|
+
})({}), h = t(a, {
|
|
10
|
+
name: "HCSearchInput",
|
|
11
|
+
slot: "input"
|
|
12
|
+
})({}), d = t(r, {
|
|
13
|
+
name: "HCSearchInput",
|
|
14
|
+
slot: "input"
|
|
15
|
+
})({}), m = t(u, {
|
|
16
|
+
name: "HCSearchInput",
|
|
17
|
+
slot: "input"
|
|
18
|
+
})({}), i = t(c, {
|
|
19
|
+
name: "HCSearchInput",
|
|
20
|
+
slot: "endAdornment"
|
|
21
|
+
})({}), C = t(p, {
|
|
22
|
+
name: "HCSearchInput",
|
|
23
|
+
slot: "iconButton"
|
|
24
|
+
})({});
|
|
25
|
+
export {
|
|
26
|
+
d as FilledSearchInput,
|
|
27
|
+
h as OutlinedSearchInput,
|
|
28
|
+
i as SearchEndAdornment,
|
|
29
|
+
C as SearchIconButton,
|
|
30
|
+
S as SearchInputLabel,
|
|
31
|
+
s as SearchInputRoot,
|
|
32
|
+
m as StandardSearchInput
|
|
33
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as r, Divider as s, TableContainer as S, Table as u, TableBody as x, TableRow as y, TableCell as b } from "@mui/material";
|
|
3
|
+
import { useSimplePivotTableLogic as P } from "./logic.js";
|
|
4
|
+
import { SimplePivotTableRoot as C, SimplePivotTableHeader as F, SimplePivotTableContent as N, SimplePivotTableFooter as j } from "./styled.js";
|
|
5
|
+
function z(n) {
|
|
6
|
+
const {
|
|
7
|
+
title: d,
|
|
8
|
+
dimensions: m,
|
|
9
|
+
values: c,
|
|
10
|
+
data: h,
|
|
11
|
+
aggregations: p,
|
|
12
|
+
formatCell: v,
|
|
13
|
+
ownerState: a,
|
|
14
|
+
sx: T,
|
|
15
|
+
other: g
|
|
16
|
+
} = P(n), f = {
|
|
17
|
+
title: d,
|
|
18
|
+
description: n.description,
|
|
19
|
+
dimensions: m,
|
|
20
|
+
values: c,
|
|
21
|
+
data: h,
|
|
22
|
+
aggregations: p
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
|
+
C,
|
|
26
|
+
{
|
|
27
|
+
ownerState: a,
|
|
28
|
+
sx: T,
|
|
29
|
+
"data-snapshot": JSON.stringify(f),
|
|
30
|
+
...g,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ e(F, { ownerState: a, children: /* @__PURE__ */ e(r, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: d }) }),
|
|
33
|
+
/* @__PURE__ */ e(s, {}),
|
|
34
|
+
/* @__PURE__ */ e(N, { ownerState: a, children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(u, { size: "small", children: /* @__PURE__ */ e(x, { children: h.map((i, o) => /* @__PURE__ */ l(
|
|
35
|
+
y,
|
|
36
|
+
{
|
|
37
|
+
hover: !0,
|
|
38
|
+
sx: { "&:last-child td": { borderBottom: 0 } },
|
|
39
|
+
children: [
|
|
40
|
+
m.map((t) => /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(r, { variant: "body2", children: i[t.value] ?? "—" }) }, t.value)),
|
|
41
|
+
c.map((t) => /* @__PURE__ */ e(b, { align: "right", children: /* @__PURE__ */ e(
|
|
42
|
+
r,
|
|
43
|
+
{
|
|
44
|
+
variant: "body2",
|
|
45
|
+
fontWeight: 500,
|
|
46
|
+
color: "primary.main",
|
|
47
|
+
children: v(i[t.dataFieldName])
|
|
48
|
+
}
|
|
49
|
+
) }, t.dataFieldName))
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
o
|
|
53
|
+
)) }) }) }) }),
|
|
54
|
+
/* @__PURE__ */ e(s, {}),
|
|
55
|
+
/* @__PURE__ */ e(j, { ownerState: a, children: p.map(({ label: i, value: o }) => /* @__PURE__ */ l(r, { variant: "caption", color: "text.disabled", children: [
|
|
56
|
+
i,
|
|
57
|
+
": ",
|
|
58
|
+
o
|
|
59
|
+
] }, i)) })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
z as SimplePivotTable
|
|
66
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useThemeProps as h } from "@mui/material";
|
|
2
|
+
import { useMemo as S } from "react";
|
|
3
|
+
const e = new Intl.NumberFormat("en-US", {
|
|
4
|
+
maximumFractionDigits: 2
|
|
5
|
+
}), w = (s) => {
|
|
6
|
+
const l = h({ props: s, name: "HCSimplePivotTable" }), {
|
|
7
|
+
title: u,
|
|
8
|
+
description: c,
|
|
9
|
+
data: a = [],
|
|
10
|
+
dimensions: b = [],
|
|
11
|
+
values: r = [],
|
|
12
|
+
sx: f,
|
|
13
|
+
...p
|
|
14
|
+
} = l, g = S(() => {
|
|
15
|
+
if (a.length === 0)
|
|
16
|
+
return [
|
|
17
|
+
{ label: "Total", value: e.format(0) },
|
|
18
|
+
{ label: "Avg", value: e.format(0) },
|
|
19
|
+
{ label: "Max", value: e.format(0) },
|
|
20
|
+
{ label: "Min", value: e.format(0) }
|
|
21
|
+
];
|
|
22
|
+
const t = a.map(
|
|
23
|
+
(n) => r.reduce((m, N) => m + (Number(n[N.dataFieldName]) || 0), 0)
|
|
24
|
+
), o = Math.max(...t, 1), x = Math.min(...t, o), i = t.reduce((n, m) => n + m, 0), M = i / a.length;
|
|
25
|
+
return [
|
|
26
|
+
{ label: "Total", value: e.format(i) },
|
|
27
|
+
{ label: "Avg", value: e.format(M) },
|
|
28
|
+
{ label: "Max", value: e.format(o) },
|
|
29
|
+
{ label: "Min", value: e.format(x) }
|
|
30
|
+
];
|
|
31
|
+
}, [a, r]), v = (t) => {
|
|
32
|
+
if (t == null || t === "") return "—";
|
|
33
|
+
const o = Number(t);
|
|
34
|
+
return Number.isNaN(o) ? String(t) : e.format(o);
|
|
35
|
+
}, d = { ...l };
|
|
36
|
+
return {
|
|
37
|
+
title: u,
|
|
38
|
+
description: c,
|
|
39
|
+
dimensions: b,
|
|
40
|
+
values: r,
|
|
41
|
+
data: a,
|
|
42
|
+
aggregations: g,
|
|
43
|
+
formatCell: v,
|
|
44
|
+
ownerState: d,
|
|
45
|
+
sx: f,
|
|
46
|
+
other: p
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
w as useSimplePivotTableLogic
|
|
51
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { styled as e, Paper as l, Box as t } from "@mui/material";
|
|
2
|
+
const i = e(l, {
|
|
3
|
+
name: "HCSimplePivotTable",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
6
|
+
})(() => ({
|
|
7
|
+
height: "100%",
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column"
|
|
10
|
+
})), n = e(t, {
|
|
11
|
+
name: "HCSimplePivotTable",
|
|
12
|
+
slot: "Header",
|
|
13
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
14
|
+
})(({ theme: o }) => ({
|
|
15
|
+
flex: "0 0 auto",
|
|
16
|
+
padding: o.spacing(1.25, 2)
|
|
17
|
+
})), r = e(t, {
|
|
18
|
+
name: "HCSimplePivotTable",
|
|
19
|
+
slot: "Content",
|
|
20
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
21
|
+
})(() => ({
|
|
22
|
+
position: "relative",
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
flex: "1 1 auto",
|
|
26
|
+
minHeight: 0,
|
|
27
|
+
overflow: "auto"
|
|
28
|
+
})), p = e(t, {
|
|
29
|
+
name: "HCSimplePivotTable",
|
|
30
|
+
slot: "Footer",
|
|
31
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
32
|
+
})(({ theme: o }) => ({
|
|
33
|
+
flex: "0 0 auto",
|
|
34
|
+
padding: o.spacing(1.25, 2),
|
|
35
|
+
display: "flex",
|
|
36
|
+
justifyContent: "flex-end",
|
|
37
|
+
alignItems: "flex-end",
|
|
38
|
+
gap: o.spacing(1)
|
|
39
|
+
}));
|
|
40
|
+
export {
|
|
41
|
+
r as SimplePivotTableContent,
|
|
42
|
+
p as SimplePivotTableFooter,
|
|
43
|
+
n as SimplePivotTableHeader,
|
|
44
|
+
i as SimplePivotTableRoot
|
|
45
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useStaticTextLogic as n } from "./logic.js";
|
|
3
|
+
import { StaticTextRoot as c } from "./styled.js";
|
|
4
|
+
function S(t) {
|
|
5
|
+
const { html: o, ownerState: r, sx: e, other: i } = n(t);
|
|
6
|
+
return /* @__PURE__ */ m(
|
|
7
|
+
c,
|
|
8
|
+
{
|
|
9
|
+
ownerState: r,
|
|
10
|
+
sx: e,
|
|
11
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
12
|
+
...i
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
S as StaticText
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useThemeProps as p } from "@mui/material";
|
|
2
|
+
const a = (o) => {
|
|
3
|
+
const t = p({ props: o, name: "HCStaticText" }), { content: e, sx: s, ...n } = t, r = e ?? "", c = { ...t };
|
|
4
|
+
return {
|
|
5
|
+
html: r,
|
|
6
|
+
ownerState: c,
|
|
7
|
+
sx: s,
|
|
8
|
+
other: n
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as useStaticTextLogic
|
|
13
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { styled as t, Box as a } from "@mui/material";
|
|
2
|
+
const i = t(a, {
|
|
3
|
+
name: "HCStaticText",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
6
|
+
})(({ theme: o }) => ({
|
|
7
|
+
...o.typography.body2,
|
|
8
|
+
color: o.palette.text.primary,
|
|
9
|
+
"& h1": {
|
|
10
|
+
...o.typography.h5,
|
|
11
|
+
marginBottom: o.spacing(0.75)
|
|
12
|
+
},
|
|
13
|
+
"& h2": {
|
|
14
|
+
...o.typography.h6,
|
|
15
|
+
marginBottom: o.spacing(0.5)
|
|
16
|
+
},
|
|
17
|
+
"& h3": {
|
|
18
|
+
...o.typography.subtitle1,
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
marginBottom: o.spacing(0.5)
|
|
21
|
+
},
|
|
22
|
+
"& p": {
|
|
23
|
+
margin: 0,
|
|
24
|
+
"& + p": { marginTop: o.spacing(0.5) }
|
|
25
|
+
},
|
|
26
|
+
"& ul, & ol": {
|
|
27
|
+
paddingLeft: o.spacing(3),
|
|
28
|
+
margin: 0
|
|
29
|
+
},
|
|
30
|
+
"& li": { marginBottom: o.spacing(0.25) },
|
|
31
|
+
"& a": {
|
|
32
|
+
color: o.palette.primary.main,
|
|
33
|
+
textDecoration: "underline"
|
|
34
|
+
},
|
|
35
|
+
"& hr": {
|
|
36
|
+
border: "none",
|
|
37
|
+
borderTop: `1px solid ${o.palette.divider}`,
|
|
38
|
+
margin: o.spacing(1, 0)
|
|
39
|
+
},
|
|
40
|
+
"& strong": { fontWeight: 600 },
|
|
41
|
+
"& em": { fontStyle: "italic" }
|
|
42
|
+
}));
|
|
43
|
+
export {
|
|
44
|
+
i as StaticTextRoot
|
|
45
|
+
};
|