@hybridcore/ui 1.6.11 → 1.6.13

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.
Files changed (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,89 +0,0 @@
1
- import { a, _ as f } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as w from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { c as d } from "./clsx-OuTLNxxd.js";
5
- import { g as F, a as x, s as y, u as C, c as G } from "./generateUtilityClasses-C3ivN9Ie.js";
6
- import { u as b } from "./useFormControl-CatNKXAi.js";
7
- import { f as N } from "./formControlState-vgaj2ksH.js";
8
- import { jsx as g } from "react/jsx-runtime";
9
- function j(r) {
10
- return x("MuiFormGroup", r);
11
- }
12
- F("MuiFormGroup", ["root", "row", "error"]);
13
- const v = ["className", "row"], R = (r) => {
14
- const {
15
- classes: s,
16
- row: t,
17
- error: e
18
- } = r;
19
- return G({
20
- root: ["root", t && "row", e && "error"]
21
- }, j, s);
22
- }, _ = y("div", {
23
- name: "MuiFormGroup",
24
- slot: "Root",
25
- overridesResolver: (r, s) => {
26
- const {
27
- ownerState: t
28
- } = r;
29
- return [s.root, t.row && s.row];
30
- }
31
- })(({
32
- ownerState: r
33
- }) => a({
34
- display: "flex",
35
- flexDirection: "column",
36
- flexWrap: "wrap"
37
- }, r.row && {
38
- flexDirection: "row"
39
- })), D = /* @__PURE__ */ w.forwardRef(function(s, t) {
40
- const e = C({
41
- props: s,
42
- name: "MuiFormGroup"
43
- }), {
44
- className: n,
45
- row: i = !1
46
- } = e, l = f(e, v), m = b(), p = N({
47
- props: e,
48
- muiFormControl: m,
49
- states: ["error"]
50
- }), c = a({}, e, {
51
- row: i,
52
- error: p.error
53
- }), u = R(c);
54
- return /* @__PURE__ */ g(_, a({
55
- className: d(u.root, n),
56
- ownerState: c,
57
- ref: t
58
- }, l));
59
- });
60
- process.env.NODE_ENV !== "production" && (D.propTypes = {
61
- // ┌────────────────────────────── Warning ──────────────────────────────┐
62
- // │ These PropTypes are generated from the TypeScript type definitions. │
63
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
64
- // └─────────────────────────────────────────────────────────────────────┘
65
- /**
66
- * The content of the component.
67
- */
68
- children: o.node,
69
- /**
70
- * Override or extend the styles applied to the component.
71
- */
72
- classes: o.object,
73
- /**
74
- * @ignore
75
- */
76
- className: o.string,
77
- /**
78
- * Display group of elements in a compact row.
79
- * @default false
80
- */
81
- row: o.bool,
82
- /**
83
- * The system prop that allows defining system overrides as well as additional CSS styles.
84
- */
85
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
86
- });
87
- export {
88
- D as F
89
- };
@@ -1,296 +0,0 @@
1
- import { D as Q } from "./DateAxis-lJZjbAS-.js";
2
- import { g as V, r as x, c as it, a as S, D as J, b as st, d as at } from "./AnimatedTheme-D3VZKKNV.js";
3
- import { n as y, o as A, q as nt, e as v, f as U, r as K, u as rt } from "./Entity-4Lr2piVN.js";
4
- import { f as W } from "./Tooltip-RhAldW7s.js";
5
- class Z extends Q {
6
- constructor() {
7
- super(...arguments), Object.defineProperty(this, "_frequency", {
8
- enumerable: !0,
9
- configurable: !0,
10
- writable: !0,
11
- value: 1
12
- }), Object.defineProperty(this, "_m", {
13
- enumerable: !0,
14
- configurable: !0,
15
- writable: !0,
16
- value: 0
17
- }), Object.defineProperty(this, "_dates", {
18
- enumerable: !0,
19
- configurable: !0,
20
- writable: !0,
21
- value: []
22
- }), Object.defineProperty(this, "_customDates", {
23
- enumerable: !0,
24
- configurable: !0,
25
- writable: !0,
26
- value: void 0
27
- });
28
- }
29
- _afterNew() {
30
- this.valueFields.push("date"), this.addTag("gapless"), super._afterNew();
31
- }
32
- _getDates() {
33
- return this._customDates ? this._customDates : this._dates;
34
- }
35
- _updateDates(t, a) {
36
- if (!a.get("ignoreMinMax")) {
37
- const n = this._getDates(), s = y(n, (r) => A(r, t));
38
- s.found || nt(n, s.index, t);
39
- }
40
- }
41
- _updateAllDates() {
42
- if (!this._customDates) {
43
- const t = this._dates;
44
- t.length = 0, v(this.series, (h) => {
45
- let o = "valueX";
46
- h.get("yAxis") == this && (o = "valueY"), v(h.dataItems, (l) => {
47
- let d = l.get(o);
48
- U(d) && l.open && this._updateDates(l.open[o], h);
49
- });
50
- });
51
- const a = this.get("extraMax", 0), n = this.get("extraMin", 0);
52
- let s = t.length;
53
- const r = this.getPrivate("baseInterval"), i = r.count, e = r.timeUnit;
54
- if (a > 0) {
55
- const h = s * a;
56
- let o = t[s - 1];
57
- if (U(o))
58
- for (let l = s - 1; l < s + h; l++)
59
- o += V(e, i * this._getM(e)), o = x(o, e, i, this._root), t.push(o);
60
- }
61
- if (n > 0) {
62
- const h = s * n;
63
- let o = t[0];
64
- if (U(o))
65
- for (let l = 0; l < h; l++)
66
- o -= V(e, i), o = x(o, e, i, this._root), t.unshift(o);
67
- }
68
- }
69
- }
70
- /**
71
- * Convers value to a relative position on axis.
72
- *
73
- * @param value Value
74
- * @return Relative position
75
- */
76
- valueToPosition(t) {
77
- const a = this._getDates(), n = this.get("startLocation", 0), s = this.get("endLocation", 1), r = a.length - n - (1 - s), i = y(a, (h) => A(h, t));
78
- let e = i.index;
79
- if (i.found)
80
- return (e - n) / r;
81
- {
82
- e > 0 && (e -= 1);
83
- let h = a[e];
84
- const o = a[e + 1];
85
- if (o) {
86
- let d = o;
87
- Math.abs(d - t) < Math.abs(h - t) && (h = d, e++);
88
- }
89
- let l = t - h;
90
- return (e - n) / r + l / this.baseDuration() / r;
91
- }
92
- }
93
- /**
94
- * Converts numeric value from axis scale to index.
95
- *
96
- * @param value Value
97
- * @return Index
98
- */
99
- valueToIndex(t) {
100
- const a = this._getDates(), n = y(a, (r) => A(r, t));
101
- let s = n.index;
102
- return n.found || s > 0 && (s -= 1), s;
103
- }
104
- /**
105
- * Converts a relative position to a corresponding numeric value from axis
106
- * scale.
107
- *
108
- * @param position Relative position
109
- * @return Value
110
- */
111
- positionToValue(t) {
112
- const a = this.get("startLocation", 0), n = this.get("endLocation", 1), s = this._getDates();
113
- let r = Math.round(s.length - a - (1 - n)), i = t * r, e = Math.floor(i);
114
- return e < 0 && (e = 0), e > r - 1 && (e = r - 1), s[e] + (i - e + a) * this.baseDuration();
115
- }
116
- _fixZoomFactor() {
117
- this.setPrivateRaw("maxZoomFactor", this._getDates().length - this.get("startLocation", 0) - (1 - this.get("endLocation", 1)));
118
- }
119
- /**
120
- * Zooms the axis to specific `start` and `end` dates.
121
- *
122
- * Optional `duration` specifies duration of zoom animation in milliseconds.
123
- *
124
- * @param start Start Date
125
- * @param end End Date
126
- * @param duration Duration in milliseconds
127
- */
128
- zoomToDates(t, a, n) {
129
- const s = this._getDates(), r = s.length;
130
- let i = y(s, (o) => A(o, t.getTime())), e = s[Math.min(i.index, r - 1)];
131
- i = y(s, (o) => A(o, a.getTime()));
132
- let h = s[i.index];
133
- i.index >= r && (h = s[r - 1] + this.baseDuration()), this.zoomToValues(e, h, n);
134
- }
135
- /**
136
- * Zooms the axis to specific `start` and `end` values.
137
- *
138
- * Optional `duration` specifies duration of zoom animation in milliseconds.
139
- *
140
- * @param start Start value
141
- * @param end End value
142
- * @param duration Duration in milliseconds
143
- */
144
- zoomToValues(t, a, n) {
145
- const s = this.getPrivate("min", 0), r = this.getPrivate("max", 0);
146
- t = W(t, s, r), a = W(a, s, r), this.zoom(this.valueToPosition(t), this.valueToPosition(a), n);
147
- }
148
- _prepareAxisItems() {
149
- let t = this.getPrivate("selectionMin", 0), a = this.getPrivate("selectionMax", 0);
150
- if (U(t) && U(a)) {
151
- this._seriesValuesDirty && (this._seriesValuesDirty = !1, this._updateAllDates());
152
- const n = this._root, s = n.utc, r = n.timezone, i = this._getDates(), e = this.get("renderer"), h = i.length, o = this.baseDuration();
153
- let l = this.valueToIndex(t);
154
- l > 0 && l--;
155
- let d = this.valueToIndex(a);
156
- d < h - 1 && d++;
157
- let u = e.axisLength() / Math.max(e.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), f = Math.min(h, Math.ceil((d - l) / u));
158
- f = Math.max(1, f), l = Math.floor(l / f) * f, this._frequency = f, v(this.dataItems, (_) => {
159
- this._toggleDataItem(_, !1);
160
- }), v(this.minorDataItems, (_) => {
161
- this._toggleDataItem(_, !1);
162
- });
163
- let w = a - t - ((a - t) / o - (d - l)) * o, m = it(0, w, u, this.get("gridIntervals"));
164
- const z = this.getPrivate("baseInterval");
165
- let g = S(m);
166
- g < o && (m = Object.assign({}, z), g = S(m)), this._intervalDuration = g;
167
- const b = m.timeUnit, M = this.get("dateFormats");
168
- let E = Date.now();
169
- i[0] && (E = i[0]);
170
- let R = x(this.getPrivate("selectionMin", 0), b, m.count, n, E);
171
- const $ = e.get("minorLabelsEnabled"), Y = e.get("minorGridEnabled", $);
172
- let P, F = 0, N;
173
- Y && (P = this._getMinorInterval(m), F = S(P));
174
- let L = this._getIndexes(R, this.getPrivate("selectionMax", R) + g, m, this.getPrivate("min", R));
175
- if (L.length > 0) {
176
- let _ = 0;
177
- this._m = 0;
178
- let C = R - g * 10;
179
- const B = at(b);
180
- if (P) {
181
- let k = i[L[0]];
182
- this._addMinorGrid(k - g, k, F, P);
183
- }
184
- let tt = e.axisLength() / e.gridCount() * 0.5;
185
- v(L, (k) => {
186
- var q;
187
- let c;
188
- this.dataItems.length < _ + 1 ? (c = new J(this, void 0, {}), this._dataItems.push(c), this.processDataItem(c)) : c = this.dataItems[_];
189
- let D = i[k], et = new Date(D), j = D;
190
- _ < L.length - 1 ? j = i[L[_ + 1]] : j += g, c.setRaw("value", D), c.setRaw("endValue", j), c.setRaw("index", _), c.setRaw("labelEndValue", void 0);
191
- let H = M[b];
192
- B && this.get("markUnitChange") && U(C) && b != "year" && st(D, C, B, s, r) && (H = this.get("periodChangeDateFormats")[b]), this._createAssets(c, []);
193
- const T = c.get("label");
194
- T && T.set("text", n.dateFormatter.format(et, H)), this._toggleDataItem(c, !0);
195
- let X = m.count;
196
- if (b == "week" && c.setRaw("labelEndValue", D), Y) {
197
- let I = m.timeUnit;
198
- if (I == "week" && (I = "day"), X > 1 || m.timeUnit == "week") {
199
- let p = x(D, I, 1, n) + V(I, this._getM(I)), O = this.valueToIndex(p);
200
- if (p = i[O], p == D) {
201
- let G = i[O + 1];
202
- G ? p = G : p += F;
203
- }
204
- c.setRaw("labelEndValue", p);
205
- }
206
- X = 1;
207
- }
208
- if (this._prepareDataItem(c, X), T && N && e.getPrivate("letter") == "X") {
209
- let I = N.get("label");
210
- if (I) {
211
- let p = T.x(), O = I.x();
212
- if (p - O < tt) {
213
- let G = this._pickWorse(N, c, m);
214
- G && ((q = G.get("label")) === null || q === void 0 || q.setPrivate("visible", !1));
215
- }
216
- }
217
- }
218
- P && this._addMinorGrid(D, j, F, P), _++, T && T.getPrivate("visible") && (N = c), C = D;
219
- });
220
- }
221
- v(this.series, (_) => {
222
- _.inited && _._markDirtyAxes();
223
- });
224
- }
225
- this._updateGhost();
226
- }
227
- _pickWorse(t, a, n) {
228
- const s = n.timeUnit, r = t.get("value", 0), i = a.get("value", 0);
229
- return s == "hour" && new Date(r).getDate() != new Date(i).getDate() ? t : a;
230
- }
231
- _addMinorGrid(t, a, n, s) {
232
- const r = this.get("minorDateFormats", this.get("dateFormats")), i = s.timeUnit;
233
- let e = t + V(i, this._getM(i));
234
- e = x(e, i, 1, this._root);
235
- let h = a - n * 0.5, o = this._getIndexes(e, h, s, e);
236
- const l = this._getDates();
237
- v(o, (d) => {
238
- let u;
239
- this.minorDataItems.length < this._m + 1 ? (u = new J(this, void 0, {}), this.minorDataItems.push(u), this.processDataItem(u)) : u = this.minorDataItems[this._m], e = l[d], u.setRaw("value", e), u.setRaw("endValue", e + n), u.setRaw("index", d), this._createAssets(u, ["minor"], !0);
240
- const f = u.get("label");
241
- if (f)
242
- if (this.get("renderer").get("minorLabelsEnabled")) {
243
- let w = new Date(e), m = r[i];
244
- f.set("text", this._root.dateFormatter.format(w, m));
245
- } else
246
- f.setPrivate("visible", !1);
247
- this._toggleDataItem(u, !0), this._prepareDataItem(u, 1), this._m++;
248
- });
249
- }
250
- _getIndexes(t, a, n, s) {
251
- const r = [], i = n.timeUnit, e = n.count, h = this._getM(i), o = this.getPrivate("baseInterval"), l = this._root, d = this._getDates();
252
- let u = e - 1, f = -1 / 0, w = V(i, h), m = V(i, e * h), z = t;
253
- for (i == "day" && (t = s); t <= a; ) {
254
- t = x(t, i, e, l);
255
- let g = this.valueToIndex(t), b = d[g];
256
- if (i == "day" && o.timeUnit == "day")
257
- this._hasDate(t) && u++, u == e && (t >= z - m * 2 && K(r, g), u = 0), t += w, t = x(t, i, 1, l);
258
- else {
259
- if (b < t) {
260
- for (let M = g, E = d.length; M < E; M++)
261
- if (b = d[M], b >= t) {
262
- g = M;
263
- break;
264
- }
265
- }
266
- K(r, g), t += m, t = x(t, i, e, l);
267
- }
268
- if (t == f && (t += m + w, t = x(t, i, e, l)), t == f)
269
- break;
270
- f = t;
271
- }
272
- return r;
273
- }
274
- _hasDate(t) {
275
- return y(this._getDates(), (n) => rt(n, t)).found;
276
- }
277
- _nextTime(t, a, n) {
278
- let s = W(this.valueToIndex(t) + a, 0, this._dates.length - 1);
279
- return this._dates[s];
280
- }
281
- }
282
- Object.defineProperty(Z, "className", {
283
- enumerable: !0,
284
- configurable: !0,
285
- writable: !0,
286
- value: "GaplessDateAxis"
287
- });
288
- Object.defineProperty(Z, "classNames", {
289
- enumerable: !0,
290
- configurable: !0,
291
- writable: !0,
292
- value: Q.classNames.concat([Z.className])
293
- });
294
- export {
295
- Z as G
296
- };
@@ -1,184 +0,0 @@
1
- import { a as t, _ as h } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as d from "react";
3
- import { P as r } from "./index-C__OZmYy.js";
4
- import { c as z } from "./clsx-OuTLNxxd.js";
5
- import { g as R, a as C, s as B, b as n, f as g, u as I, c as O } from "./generateUtilityClasses-C3ivN9Ie.js";
6
- import { jsx as x } from "react/jsx-runtime";
7
- import { B as T } from "./ButtonBase-BEF7oTOe.js";
8
- import { c as $ } from "./TransitionGroupContext-BDAp2T0O.js";
9
- function k(o) {
10
- return C("MuiIconButton", o);
11
- }
12
- const P = R("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), _ = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], j = (o) => {
13
- const {
14
- classes: e,
15
- disabled: a,
16
- color: s,
17
- edge: i,
18
- size: l
19
- } = o, c = {
20
- root: ["root", a && "disabled", s !== "default" && `color${n(s)}`, i && `edge${n(i)}`, `size${n(l)}`]
21
- };
22
- return O(c, k, e);
23
- }, E = B(T, {
24
- name: "MuiIconButton",
25
- slot: "Root",
26
- overridesResolver: (o, e) => {
27
- const {
28
- ownerState: a
29
- } = o;
30
- return [e.root, a.color !== "default" && e[`color${n(a.color)}`], a.edge && e[`edge${n(a.edge)}`], e[`size${n(a.size)}`]];
31
- }
32
- })(({
33
- theme: o,
34
- ownerState: e
35
- }) => t({
36
- textAlign: "center",
37
- flex: "0 0 auto",
38
- fontSize: o.typography.pxToRem(24),
39
- padding: 8,
40
- borderRadius: "50%",
41
- overflow: "visible",
42
- // Explicitly set the default value to solve a bug on IE11.
43
- color: (o.vars || o).palette.action.active,
44
- transition: o.transitions.create("background-color", {
45
- duration: o.transitions.duration.shortest
46
- })
47
- }, !e.disableRipple && {
48
- "&:hover": {
49
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.action.active, o.palette.action.hoverOpacity),
50
- // Reset on touch devices, it doesn't add specificity
51
- "@media (hover: none)": {
52
- backgroundColor: "transparent"
53
- }
54
- }
55
- }, e.edge === "start" && {
56
- marginLeft: e.size === "small" ? -3 : -12
57
- }, e.edge === "end" && {
58
- marginRight: e.size === "small" ? -3 : -12
59
- }), ({
60
- theme: o,
61
- ownerState: e
62
- }) => {
63
- var a;
64
- const s = (a = (o.vars || o).palette) == null ? void 0 : a[e.color];
65
- return t({}, e.color === "inherit" && {
66
- color: "inherit"
67
- }, e.color !== "inherit" && e.color !== "default" && t({
68
- color: s == null ? void 0 : s.main
69
- }, !e.disableRipple && {
70
- "&:hover": t({}, s && {
71
- backgroundColor: o.vars ? `rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(s.main, o.palette.action.hoverOpacity)
72
- }, {
73
- // Reset on touch devices, it doesn't add specificity
74
- "@media (hover: none)": {
75
- backgroundColor: "transparent"
76
- }
77
- })
78
- }), e.size === "small" && {
79
- padding: 5,
80
- fontSize: o.typography.pxToRem(18)
81
- }, e.size === "large" && {
82
- padding: 12,
83
- fontSize: o.typography.pxToRem(28)
84
- }, {
85
- [`&.${P.disabled}`]: {
86
- backgroundColor: "transparent",
87
- color: (o.vars || o).palette.action.disabled
88
- }
89
- });
90
- }), M = /* @__PURE__ */ d.forwardRef(function(e, a) {
91
- const s = I({
92
- props: e,
93
- name: "MuiIconButton"
94
- }), {
95
- edge: i = !1,
96
- children: l,
97
- className: c,
98
- color: b = "default",
99
- disabled: p = !1,
100
- disableFocusRipple: u = !1,
101
- size: v = "medium"
102
- } = s, m = h(s, _), f = t({}, s, {
103
- edge: i,
104
- color: b,
105
- disabled: p,
106
- disableFocusRipple: u,
107
- size: v
108
- }), y = j(f);
109
- return /* @__PURE__ */ x(E, t({
110
- className: z(y.root, c),
111
- centerRipple: !0,
112
- focusRipple: !u,
113
- disabled: p,
114
- ref: a
115
- }, m, {
116
- ownerState: f,
117
- children: l
118
- }));
119
- });
120
- process.env.NODE_ENV !== "production" && (M.propTypes = {
121
- // ┌────────────────────────────── Warning ──────────────────────────────┐
122
- // │ These PropTypes are generated from the TypeScript type definitions. │
123
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
124
- // └─────────────────────────────────────────────────────────────────────┘
125
- /**
126
- * The icon to display.
127
- */
128
- children: $(r.node, (o) => d.Children.toArray(o.children).some((a) => /* @__PURE__ */ d.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
129
- `)) : null),
130
- /**
131
- * Override or extend the styles applied to the component.
132
- */
133
- classes: r.object,
134
- /**
135
- * @ignore
136
- */
137
- className: r.string,
138
- /**
139
- * The color of the component.
140
- * It supports both default and custom theme colors, which can be added as shown in the
141
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
142
- * @default 'default'
143
- */
144
- color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
145
- /**
146
- * If `true`, the component is disabled.
147
- * @default false
148
- */
149
- disabled: r.bool,
150
- /**
151
- * If `true`, the keyboard focus ripple is disabled.
152
- * @default false
153
- */
154
- disableFocusRipple: r.bool,
155
- /**
156
- * If `true`, the ripple effect is disabled.
157
- *
158
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
159
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
160
- * @default false
161
- */
162
- disableRipple: r.bool,
163
- /**
164
- * If given, uses a negative margin to counteract the padding on one
165
- * side (this is often helpful for aligning the left or right
166
- * side of the icon with content above or below, without ruining the border
167
- * size and shape).
168
- * @default false
169
- */
170
- edge: r.oneOf(["end", "start", !1]),
171
- /**
172
- * The size of the component.
173
- * `small` is equivalent to the dense button styling.
174
- * @default 'medium'
175
- */
176
- size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
177
- /**
178
- * The system prop that allows defining system overrides as well as additional CSS styles.
179
- */
180
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
181
- });
182
- export {
183
- M as I
184
- };