@hybridcore/ui 1.6.12 → 1.6.14
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/{AccordionSummary-CJppWeqF.js → AccordionSummary-DUtr16g6.js} +7 -7
- package/dist/{Add-CqcD1PWb.js → Add-Bk8R160M.js} +9 -9
- package/dist/{Button-C5yquWAB.js → Button-Cem3nbwc.js} +12 -12
- package/dist/{ButtonBase-BEF7oTOe.js → ButtonBase-DObmf4Q_.js} +4 -5
- package/dist/{IconButton-BoGwbvrP.js → Delete-CVJ6FeDn.js} +91 -72
- package/dist/{FormGroup-CpBsIyYR.js → FormGroup-BRj1o7-E.js} +3 -3
- package/dist/{InputLabel-Dd8RrneV.js → InputLabel-CjD30ZHz.js} +3 -3
- package/dist/{MenuItem-DwqJqzuM.js → MenuItem-BKvRGLvM.js} +6 -6
- package/dist/{Modal-MUZygjmQ.js → Modal-BVYydOr5.js} +7 -9
- package/dist/{Paper-BkQLdsCI.js → Paper-B1HV8GyO.js} +37 -37
- package/dist/{Select-DHUl_uG3.js → Select-Bfhvigsx.js} +2793 -2795
- package/dist/{SwitchBase-DTndTqI8.js → SwitchBase-BEK49kdS.js} +5 -5
- package/dist/{TextField-e2oKaUN1.js → TextField-Ca9ykixI.js} +166 -139
- package/dist/{TransitionGroupContext-BDAp2T0O.js → TransitionGroupContext-Ja2CgIob.js} +1 -1
- package/dist/{Typography-DgsSLCFC.js → Typography-D3X-Y5fh.js} +3 -3
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +193 -41
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/collapsible-card/index.js +2 -2
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7 -7
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -4
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +2 -2
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +5 -5
- package/dist/components/template-form/components/property-list/index.js +11 -12
- package/dist/components/template-form/components/property-list/property-list-columns.js +4 -5
- package/dist/components/template-form/components/property-list/property-list-form.js +25 -26
- package/dist/components/template-form/components/recognition-property-list/index.js +16 -17
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +3 -4
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +21 -22
- package/dist/components/tree-select/index.js +1 -1
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/{createSvgIcon-Ch_cT8az.js → createSvgIcon-D7U1nd99.js} +3 -3
- package/dist/{DialogContent-BvVjD9z3.js → dialog-BtJhjyF5.js} +326 -185
- package/dist/{generateUtilityClasses-C3ivN9Ie.js → generateUtilityClasses-Cc-owZ4J.js} +9 -11
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/{index.esm-BLLrbTzY.js → index.esm-DAf19hyR.js} +1 -1
- package/dist/main.d.ts +54 -8
- package/dist/main.js +176 -175
- package/dist/{styled-SoqbyrkW.js → styled-DD4BkuVf.js} +6 -6
- package/dist/{useSlot-B_Q4vnX5.js → useSlot-u4t0X96G.js} +3 -3
- package/package.json +1 -1
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/{objectWithoutPropertiesLoose-DJteAcBH.js → extends-C3382pL0.js} +9 -9
|
@@ -1,99 +1,96 @@
|
|
|
1
1
|
import { useThemeProps as K } from "@mui/material";
|
|
2
|
-
import { formatValue as
|
|
3
|
-
import { c as
|
|
2
|
+
import { formatValue as B, resolveConditionalStyle as D } from "../charts/_common/format.js";
|
|
3
|
+
import { c as m } from "../../createReactComponent-C7L-DMHj.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W =
|
|
10
|
+
const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W = m("outline", "arrow-right", "ArrowRight", Q);
|
|
11
11
|
/**
|
|
12
12
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y =
|
|
17
|
+
const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y = m("outline", "trending-down", "TrendingDown", X);
|
|
18
18
|
/**
|
|
19
19
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license.
|
|
22
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe =
|
|
25
|
-
const
|
|
24
|
+
const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe = m("outline", "trending-up", "TrendingUp", ee), ce = (F) => {
|
|
25
|
+
const i = K({ props: F, name: "HCMetricCard" }), {
|
|
26
26
|
value: c = [],
|
|
27
|
-
secondValue:
|
|
28
|
-
secondValueFormat:
|
|
29
|
-
variant:
|
|
27
|
+
secondValue: y = [],
|
|
28
|
+
secondValueFormat: P,
|
|
29
|
+
variant: R = "default",
|
|
30
30
|
layout: w = "overlay",
|
|
31
31
|
valuePrefix: A,
|
|
32
32
|
valueSuffix: O,
|
|
33
|
-
format:
|
|
33
|
+
format: o,
|
|
34
34
|
showChange: U = !1,
|
|
35
|
-
changeType:
|
|
35
|
+
changeType: a = "percentage",
|
|
36
36
|
showTrend: Z = !1,
|
|
37
|
-
showIcon:
|
|
37
|
+
showIcon: C = !1,
|
|
38
38
|
icon: d,
|
|
39
39
|
iconPosition: u = "right"
|
|
40
|
-
} =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
color: e == null ? void 0 : e.color,
|
|
45
|
-
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
46
|
-
conditionalRules: e == null ? void 0 : e.conditionalRules
|
|
40
|
+
} = i, H = c.length > 0, g = c[c.length - 1], S = c[c.length - 2], e = g ? Number(g.v) : NaN, t = S ? Number(S.v) : NaN, b = !isNaN(e) && !isNaN(t), p = {
|
|
41
|
+
...o,
|
|
42
|
+
prefix: (o == null ? void 0 : o.prefix) ?? A,
|
|
43
|
+
suffix: (o == null ? void 0 : o.suffix) ?? O
|
|
47
44
|
};
|
|
48
|
-
let
|
|
49
|
-
if (!isNaN(
|
|
50
|
-
|
|
51
|
-
const l =
|
|
52
|
-
|
|
45
|
+
let r = "—", M = "", V, k;
|
|
46
|
+
if (!isNaN(e)) {
|
|
47
|
+
r = B(e, p), M = g.t;
|
|
48
|
+
const l = D(e, p);
|
|
49
|
+
V = l.color, k = l.backgroundColor;
|
|
53
50
|
}
|
|
54
|
-
const I =
|
|
51
|
+
const I = P ?? p;
|
|
55
52
|
let h, T, x;
|
|
56
|
-
const _ =
|
|
53
|
+
const _ = y[y.length - 1], f = _ ? Number(_.v) : NaN;
|
|
57
54
|
if (!isNaN(f)) {
|
|
58
|
-
h =
|
|
59
|
-
const l =
|
|
55
|
+
h = B(f, I);
|
|
56
|
+
const l = D(f, I);
|
|
60
57
|
T = l.color, x = l.backgroundColor;
|
|
61
58
|
}
|
|
62
|
-
let
|
|
59
|
+
let s;
|
|
63
60
|
if (U)
|
|
64
|
-
if (
|
|
65
|
-
const N =
|
|
66
|
-
|
|
61
|
+
if (b && !(t === 0 && a === "percentage")) {
|
|
62
|
+
const N = a === "absolute" ? e - t : (e - t) / t * 100, z = N > 0 ? "+" : N < 0 ? "−" : "", E = a === "percentage" ? 1 : 2, G = a === "percentage" ? "%" : "";
|
|
63
|
+
s = `${z}${Math.abs(N).toFixed(E)}${G}`;
|
|
67
64
|
} else
|
|
68
|
-
|
|
65
|
+
s = "—";
|
|
69
66
|
let n;
|
|
70
|
-
Z &&
|
|
67
|
+
Z && b && (e > t ? n = "up" : e < t ? n = "down" : n = "neutral");
|
|
71
68
|
let v = W;
|
|
72
69
|
n === "up" ? v = oe : n === "down" && (v = Y);
|
|
73
|
-
const
|
|
70
|
+
const $ = [
|
|
74
71
|
"top-left",
|
|
75
72
|
"top-right",
|
|
76
73
|
"bottom-left",
|
|
77
74
|
"bottom-right"
|
|
78
|
-
].includes(u), J =
|
|
79
|
-
metric:
|
|
80
|
-
value:
|
|
81
|
-
change:
|
|
82
|
-
asOf:
|
|
75
|
+
].includes(u), J = C && !!d && $, L = C && !!d && !$, j = JSON.stringify({
|
|
76
|
+
metric: i.label,
|
|
77
|
+
value: r,
|
|
78
|
+
change: s,
|
|
79
|
+
asOf: M
|
|
83
80
|
}), q = {
|
|
84
|
-
...
|
|
85
|
-
variant:
|
|
81
|
+
...i,
|
|
82
|
+
variant: R,
|
|
86
83
|
layout: w,
|
|
87
|
-
changeType:
|
|
84
|
+
changeType: a,
|
|
88
85
|
iconPosition: u,
|
|
89
|
-
calculatedValue:
|
|
86
|
+
calculatedValue: r,
|
|
90
87
|
calculatedSecondValue: h,
|
|
91
88
|
calculatedSecondValueColor: T,
|
|
92
89
|
calculatedSecondValueBg: x,
|
|
93
|
-
calculatedChange:
|
|
90
|
+
calculatedChange: s,
|
|
94
91
|
calculatedTrend: n,
|
|
95
|
-
calculatedValueColor:
|
|
96
|
-
calculatedValueBg:
|
|
92
|
+
calculatedValueColor: V,
|
|
93
|
+
calculatedValueBg: k,
|
|
97
94
|
hasData: H
|
|
98
95
|
};
|
|
99
96
|
return {
|
|
@@ -101,9 +98,9 @@ const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d:
|
|
|
101
98
|
state: {
|
|
102
99
|
ownerState: q,
|
|
103
100
|
layout: w,
|
|
104
|
-
calculatedValue:
|
|
101
|
+
calculatedValue: r,
|
|
105
102
|
calculatedSecondValue: h,
|
|
106
|
-
calculatedChange:
|
|
103
|
+
calculatedChange: s,
|
|
107
104
|
TrendIcon: v,
|
|
108
105
|
Icon: d,
|
|
109
106
|
showCornerIcon: J,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as c } from "@mui/material";
|
|
3
3
|
import { useEffect as l } from "react";
|
|
4
|
-
import { u } from "../../index.esm-
|
|
4
|
+
import { u } from "../../index.esm-DAf19hyR.js";
|
|
5
5
|
import { Map as d } from "../map/index.js";
|
|
6
6
|
import { Controls as h } from "./components/controls/index.js";
|
|
7
7
|
import { Legend as M } from "./components/legend/index.js";
|