@astrato-io/visualizations 0.10.0 → 0.10.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/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/VISUALIZATION_DEFINITIONS.md +65 -12
- package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
- package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
- package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
- package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
- package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
- package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
- package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
- package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
- package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
- package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
- package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
- package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
- package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
- package/chunks/defaults-Dtk7fg3C.js +3 -0
- package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
- package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
- package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
- package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
- package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
- package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
- package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
- package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
- package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
- package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
- package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
- package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
- package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
- package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
- package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
- package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
- package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
- package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
- package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
- package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
- package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
- package/chunks/standalone-B794g9pE.js +1012 -0
- package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
- package/chunks/standalone-BA2YXyJS.js +422 -0
- package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
- package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
- package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
- package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
- package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
- package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
- package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
- package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
- package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
- package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
- package/chunks/standalone-Cl0TSfqC.js +396 -0
- package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
- package/chunks/standalone-DH0xTEes.js +2 -0
- package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
- package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
- package/chunks/standalone-DcnHjNnC.js +2 -0
- package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
- package/chunks/standalone-DrHdGkY7.js +762 -0
- package/chunks/standalone-c_rROMtx.js +287 -0
- package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
- package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
- package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
- package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
- package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
- package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
- package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
- package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
- package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +19 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +1 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +54 -54
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -67
- package/src/definitions/index.d.ts +7 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
- package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
- package/src/types.d.ts +28 -28
- package/chunks/defaults-cyNhn37t.js +0 -3
- package/chunks/standalone-BR2JuRIC.js +0 -422
- package/chunks/standalone-BwJqDj2Z.js +0 -396
- package/chunks/standalone-CRfDOO1x.js +0 -287
- package/chunks/standalone-DZDGX3aa.js +0 -518
- package/chunks/standalone-DhfgeJIk.js +0 -1012
- package/chunks/standalone-KMQPsNsq.js +0 -2
- package/chunks/standalone-MBLSvsrY.js +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { $t as o,
|
|
3
|
-
import { At as v, Fr as y, Gt as b, Lr as x, Mr as S, Nr as C, Pr as w, Qt as T, W as E, Zt as D, a as O, c as k, ci as A, f as j, it as M, jr as N, jt as P, kt as ee, l as te, r as ne, ri as re, si as ie, sn as F, u as ae, v as I, zr as oe } from "./utils-
|
|
4
|
-
import { s as se, t as L } from "./logger-
|
|
5
|
-
import { A as ce, i as le } from "./MenuOption-
|
|
6
|
-
import { d as ue, f as de, l as fe, u as pe } from "./with-html-element-
|
|
7
|
-
import { _ as me, m as he, t as ge, v as _e } from "./react-dom-
|
|
8
|
-
import { i as ve, n as ye } from "./Title-
|
|
2
|
+
import { $t as o, Et as s, Ga as c, Gs as l, Ja as u, Ka as d, Lc as f, Na as p, Oa as m, ll as h, qa as g, ws as _ } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { At as v, Fr as y, Gt as b, Lr as x, Mr as S, Nr as C, Pr as w, Qt as T, W as E, Zt as D, a as O, c as k, ci as A, f as j, it as M, jr as N, jt as P, kt as ee, l as te, r as ne, ri as re, si as ie, sn as F, u as ae, v as I, zr as oe } from "./utils-DganVptf.js";
|
|
4
|
+
import { s as se, t as L } from "./logger-DdZpR7xZ.js";
|
|
5
|
+
import { A as ce, i as le } from "./MenuOption-Czc34u4q.js";
|
|
6
|
+
import { d as ue, f as de, l as fe, u as pe } from "./with-html-element-CiIhFEa5.js";
|
|
7
|
+
import { _ as me, m as he, t as ge, v as _e } from "./react-dom-BGP4tbXV.js";
|
|
8
|
+
import { i as ve, n as ye } from "./Title-BgYnaVTR.js";
|
|
9
9
|
import { a as be, d as xe, f as R, r as Se, t as Ce, u as we } from "./responsive.styles-FItb913l.js";
|
|
10
|
-
import { t as Te } from "./Button-
|
|
10
|
+
import { t as Te } from "./Button-Dn3rJrYf.js";
|
|
11
11
|
import { n as z, t as Ee } from "./typeof-DCq3QgvY.js";
|
|
12
|
-
import "./builder-
|
|
13
|
-
import { a as De, i as Oe, l as ke, n as Ae, r as je, t as Me, u as Ne } from "./createSimplePaletteValueFilter
|
|
12
|
+
import "./builder-C-TKA-My.js";
|
|
13
|
+
import { a as De, i as Oe, l as ke, n as Ae, r as je, t as Me, u as Ne } from "./createSimplePaletteValueFilter--zrZxRV9.js";
|
|
14
14
|
var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
15
15
|
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
16
16
|
})), Fe = /* @__PURE__ */ a(((e, t) => {
|
|
@@ -76,8 +76,8 @@ var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
|
76
76
|
}), Be = E({
|
|
77
77
|
button: ({ appearance: e, fontSize: t = 13, responsive: n }) => ({
|
|
78
78
|
alignItems: "center",
|
|
79
|
-
backgroundColor:
|
|
80
|
-
border: `1px solid ${
|
|
79
|
+
backgroundColor: m.white,
|
|
80
|
+
border: `1px solid ${m.grey3}`,
|
|
81
81
|
borderRadius: "4px",
|
|
82
82
|
cursor: "pointer",
|
|
83
83
|
display: "flex",
|
|
@@ -95,12 +95,12 @@ var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
|
95
95
|
marginBottom: "4px"
|
|
96
96
|
},
|
|
97
97
|
"&.disabled": {
|
|
98
|
-
color:
|
|
98
|
+
color: m.grey2,
|
|
99
99
|
cursor: "default",
|
|
100
100
|
opacity: .5
|
|
101
101
|
},
|
|
102
102
|
"&.readOnly": { cursor: "default" },
|
|
103
|
-
"&:focus": { boxShadow: `0px 0px 4px 3px ${
|
|
103
|
+
"&:focus": { boxShadow: `0px 0px 4px 3px ${m.mainDarkNavy}40` },
|
|
104
104
|
...n && ze
|
|
105
105
|
}),
|
|
106
106
|
selectedItem: {
|
|
@@ -117,7 +117,7 @@ var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
|
117
117
|
"&::placeholder": { color: "var(--placeholder-color)" }
|
|
118
118
|
},
|
|
119
119
|
iconChevronActive: { transform: "rotate(180deg)" },
|
|
120
|
-
invalid: { borderColor:
|
|
120
|
+
invalid: { borderColor: m.orangeWarning }
|
|
121
121
|
}), Ve = ({ appearance: e = "default", disabled: t = !1, readOnly: n = !1, fontSize: r, icon: i = null, isOpen: a, label: o, onClick: s, styles: c = {}, tooltipTitle: l = "", className: u, tabIndex: d, buttonRef: f, testId: p, isInvalid: m = !1, responsive: h }) => {
|
|
122
122
|
let g = Be({
|
|
123
123
|
appearance: e,
|
|
@@ -225,13 +225,13 @@ var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
|
225
225
|
height: 24,
|
|
226
226
|
padding: "3px 8px",
|
|
227
227
|
...ie.normal13,
|
|
228
|
-
color:
|
|
229
|
-
backgroundColor:
|
|
230
|
-
border: `1px solid ${
|
|
231
|
-
boxShadow: `0px 0.5px 1px ${
|
|
228
|
+
color: m.mainDarkNavy,
|
|
229
|
+
backgroundColor: m.white,
|
|
230
|
+
border: `1px solid ${m.grey3}`,
|
|
231
|
+
boxShadow: `0px 0.5px 1px ${m.alphaBlack(.1)}`,
|
|
232
232
|
borderRadius: 4,
|
|
233
|
-
"&::placeholder": { color:
|
|
234
|
-
"&:disabled": { color:
|
|
233
|
+
"&::placeholder": { color: m.grey2 },
|
|
234
|
+
"&:disabled": { color: m.grey2 },
|
|
235
235
|
"&.inputWithValuePicker": { paddingLeft: 35 },
|
|
236
236
|
...e && {
|
|
237
237
|
[R.md]: {
|
|
@@ -312,24 +312,24 @@ var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
|
312
312
|
cursor: "pointer",
|
|
313
313
|
"&.disabled": { cursor: "default" },
|
|
314
314
|
"&.readOnly": { cursor: "default" },
|
|
315
|
-
"&:focus": { boxShadow: `0px 0px 4px 3px ${
|
|
315
|
+
"&:focus": { boxShadow: `0px 0px 4px 3px ${m.mainDarkNavy}40` }
|
|
316
316
|
},
|
|
317
317
|
circle: {
|
|
318
318
|
borderRadius: "100%",
|
|
319
|
-
backgroundColor:
|
|
319
|
+
backgroundColor: m.grey2,
|
|
320
320
|
transition: "width 50ms linear, height 50ms linear",
|
|
321
321
|
position: "relative"
|
|
322
322
|
},
|
|
323
|
-
"circle--active": { backgroundColor:
|
|
324
|
-
"circle--inactive": { backgroundColor:
|
|
323
|
+
"circle--active": { backgroundColor: m.white },
|
|
324
|
+
"circle--inactive": { backgroundColor: m.grey2 }
|
|
325
325
|
}), qe = {
|
|
326
326
|
active: !1,
|
|
327
327
|
onClick: null,
|
|
328
|
-
activeColor:
|
|
328
|
+
activeColor: m.mainDarkNavy,
|
|
329
329
|
disabled: !1,
|
|
330
330
|
readOnly: !1,
|
|
331
331
|
height: 12,
|
|
332
|
-
inactiveColor:
|
|
332
|
+
inactiveColor: m.grey2,
|
|
333
333
|
outlined: !1,
|
|
334
334
|
width: 20,
|
|
335
335
|
overrideToggleStyles: null,
|
|
@@ -337,13 +337,13 @@ var Pe = /* @__PURE__ */ a(((e, t) => {
|
|
|
337
337
|
}, Je = ({ activeColor: e, inactiveColor: t, outlined: n, isActive: r }) => {
|
|
338
338
|
let i = r ? e : t;
|
|
339
339
|
return n ? {
|
|
340
|
-
containerBackground:
|
|
340
|
+
containerBackground: m.white,
|
|
341
341
|
containerBorder: `1px solid ${i}`,
|
|
342
342
|
circleBackground: i
|
|
343
343
|
} : {
|
|
344
344
|
containerBackground: i,
|
|
345
345
|
containerBorder: `1px solid ${i}`,
|
|
346
|
-
circleBackground:
|
|
346
|
+
circleBackground: m.white
|
|
347
347
|
};
|
|
348
348
|
}, Ye = .67, Xe = .5, Ze = (0, H.memo)((e) => {
|
|
349
349
|
let { activeColor: t = qe.activeColor, disabled: n, readOnly: r, active: i, height: a, inactiveColor: o = qe.inactiveColor, outlined: s, onClick: c, width: l, overrideToggleStyles: u, tabIndex: d } = {
|
|
@@ -3689,12 +3689,12 @@ var $a, eo, to, no, ro, io, ao, oo, so, co, lo, uo, fo, po, mo, ho, go, _o, vo,
|
|
|
3689
3689
|
} };
|
|
3690
3690
|
})), Ol = /* @__PURE__ */ r(vc()), kl = /* @__PURE__ */ r(El()), Al = /* @__PURE__ */ r(Dl()), jl = E({ datePickerWrapper: {
|
|
3691
3691
|
"&[aria-disabled=true]": {
|
|
3692
|
-
color:
|
|
3692
|
+
color: m.grey3,
|
|
3693
3693
|
pointerEvents: "none",
|
|
3694
|
-
"& .DayPicker_weekHeader": { color:
|
|
3694
|
+
"& .DayPicker_weekHeader": { color: m.grey3 }
|
|
3695
3695
|
},
|
|
3696
3696
|
"& .DateRangePickerInput.DateRangePickerInput_1, .SingleDatePicker.SingleDatePicker_1 ": {
|
|
3697
|
-
border: `1px solid ${
|
|
3697
|
+
border: `1px solid ${m.grey4}`,
|
|
3698
3698
|
borderRadius: 5
|
|
3699
3699
|
},
|
|
3700
3700
|
"& div.DateInput.DateInput_1 ": {
|
|
@@ -3703,7 +3703,7 @@ var $a, eo, to, no, ro, io, ao, oo, so, co, lo, uo, fo, po, mo, ho, go, _o, vo,
|
|
|
3703
3703
|
height: 40,
|
|
3704
3704
|
"& input": {
|
|
3705
3705
|
border: "none",
|
|
3706
|
-
color:
|
|
3706
|
+
color: m.grey1,
|
|
3707
3707
|
cursor: "pointer",
|
|
3708
3708
|
fontSize: 14,
|
|
3709
3709
|
margin: "7px auto 7px auto",
|
|
@@ -3711,14 +3711,14 @@ var $a, eo, to, no, ro, io, ao, oo, so, co, lo, uo, fo, po, mo, ho, go, _o, vo,
|
|
|
3711
3711
|
textAlign: "center",
|
|
3712
3712
|
"& :focus": {
|
|
3713
3713
|
border: "none",
|
|
3714
|
-
color:
|
|
3715
|
-
borderBottom: `solid 3px ${
|
|
3714
|
+
color: m.mainDarkNavy,
|
|
3715
|
+
borderBottom: `solid 3px ${m.mainDarkNavy}`
|
|
3716
3716
|
},
|
|
3717
|
-
"&:focus::placeholder": { color:
|
|
3717
|
+
"&:focus::placeholder": { color: m.mainDarkNavy }
|
|
3718
3718
|
},
|
|
3719
3719
|
"& :focus": {
|
|
3720
3720
|
outline: "none",
|
|
3721
|
-
borderBottom: `solid 3px ${
|
|
3721
|
+
borderBottom: `solid 3px ${m.mainDarkNavy}`
|
|
3722
3722
|
}
|
|
3723
3723
|
}
|
|
3724
3724
|
} }), Ml = /* @__PURE__ */ a(((e, t) => {
|
|
@@ -9973,9 +9973,9 @@ Wf.LastWeek, Wf.Last7Days, Wf.LastMonth, Wf.MTD, Wf.YTD, Wf.Last12Months;
|
|
|
9973
9973
|
var Gf = {
|
|
9974
9974
|
StartDate: "startDate",
|
|
9975
9975
|
EndDate: "endDate"
|
|
9976
|
-
}, Kf =
|
|
9977
|
-
|
|
9978
|
-
var qf =
|
|
9976
|
+
}, Kf = u.Monday;
|
|
9977
|
+
g.InputSingle, c.Collapsed, m.white;
|
|
9978
|
+
var qf = m.alphaBlack(.15), Jf = m.mainDarkNavy, Yf = {
|
|
9979
9979
|
Selected: "selected",
|
|
9980
9980
|
SelectedStart: "selected-start",
|
|
9981
9981
|
SelectedEnd: "selected-end",
|
|
@@ -10009,7 +10009,7 @@ var qf = c.alphaBlack(.15), Jf = c.mainDarkNavy, Yf = {
|
|
|
10009
10009
|
height: "100%",
|
|
10010
10010
|
width: "100%",
|
|
10011
10011
|
fontSize: 13,
|
|
10012
|
-
color:
|
|
10012
|
+
color: m.grey1,
|
|
10013
10013
|
zIndex: 2,
|
|
10014
10014
|
...e && {
|
|
10015
10015
|
[R.md]: { fontSize: 12 },
|
|
@@ -10021,28 +10021,28 @@ var qf = c.alphaBlack(.15), Jf = c.mainDarkNavy, Yf = {
|
|
|
10021
10021
|
cursor: "pointer",
|
|
10022
10022
|
borderRadius: "50%",
|
|
10023
10023
|
border: "1px solid transparent",
|
|
10024
|
-
"&:hover": { borderColor:
|
|
10024
|
+
"&:hover": { borderColor: m.grey3 }
|
|
10025
10025
|
},
|
|
10026
10026
|
disabledCell: {
|
|
10027
|
-
color:
|
|
10027
|
+
color: m.grey3,
|
|
10028
10028
|
cursor: "default"
|
|
10029
10029
|
},
|
|
10030
10030
|
selectedCell: {
|
|
10031
10031
|
borderRadius: "50%",
|
|
10032
|
-
backgroundColor:
|
|
10033
|
-
color:
|
|
10032
|
+
backgroundColor: m.mainDarkNavy,
|
|
10033
|
+
color: m.white
|
|
10034
10034
|
},
|
|
10035
10035
|
cellInSelection: {
|
|
10036
|
-
backgroundColor:
|
|
10037
|
-
color:
|
|
10036
|
+
backgroundColor: m.calendarCellBackgroundGrey,
|
|
10037
|
+
color: m.black
|
|
10038
10038
|
},
|
|
10039
10039
|
cellInSelectionRight: {
|
|
10040
|
-
backgroundColor:
|
|
10040
|
+
backgroundColor: m.calendarCellBackgroundGrey,
|
|
10041
10041
|
borderTopRightRadius: "50%",
|
|
10042
10042
|
borderBottomRightRadius: "50%"
|
|
10043
10043
|
},
|
|
10044
10044
|
cellInSelectionLeft: {
|
|
10045
|
-
backgroundColor:
|
|
10045
|
+
backgroundColor: m.calendarCellBackgroundGrey,
|
|
10046
10046
|
borderBottomLeftRadius: "50%",
|
|
10047
10047
|
borderTopLeftRadius: "50%"
|
|
10048
10048
|
},
|
|
@@ -10063,18 +10063,18 @@ var qf = c.alphaBlack(.15), Jf = c.mainDarkNavy, Yf = {
|
|
|
10063
10063
|
},
|
|
10064
10064
|
cellInHoverSelection: {
|
|
10065
10065
|
borderRadius: 0,
|
|
10066
|
-
borderTop: `1px dashed ${
|
|
10067
|
-
borderBottom: `1px dashed ${
|
|
10066
|
+
borderTop: `1px dashed ${m.grey4}`,
|
|
10067
|
+
borderBottom: `1px dashed ${m.grey4}`
|
|
10068
10068
|
},
|
|
10069
10069
|
cellInHoverSelectionLeft: {
|
|
10070
10070
|
borderBottomLeftRadius: "50%",
|
|
10071
10071
|
borderTopLeftRadius: "50%",
|
|
10072
|
-
borderLeft: `1px dashed ${
|
|
10072
|
+
borderLeft: `1px dashed ${m.grey4}`
|
|
10073
10073
|
},
|
|
10074
10074
|
cellInHoverSelectionRight: {
|
|
10075
10075
|
borderTopRightRadius: "50%",
|
|
10076
10076
|
borderBottomRightRadius: "50%",
|
|
10077
|
-
borderRight: `1px dashed ${
|
|
10077
|
+
borderRight: `1px dashed ${m.grey4}`
|
|
10078
10078
|
}
|
|
10079
10079
|
}), tp = ({ date: e, endDate: t, isDateAvailable: n, onCellClick: r, startDate: i, disableDateSwap: a, options: o, selection: s, responsive: c }) => {
|
|
10080
10080
|
let l = ep(c), [u, d] = (0, H.useState)(!1);
|
|
@@ -10176,7 +10176,7 @@ var rp = ({ newDate: e, setEndDate: t, startDate: n, selection: r }) => {
|
|
|
10176
10176
|
}), t;
|
|
10177
10177
|
},
|
|
10178
10178
|
resolve: (e) => {
|
|
10179
|
-
let { classNames: t, hasInlineStyles: n, inlineStyles: r } = (0, dp.default)(e.flat(Infinity)), i =
|
|
10179
|
+
let { classNames: t, hasInlineStyles: n, inlineStyles: r } = (0, dp.default)(e.flat(Infinity)), i = _({
|
|
10180
10180
|
className: t.map((e, t) => `${e} ${e}_${t + 1}`).join(" "),
|
|
10181
10181
|
style: void 0
|
|
10182
10182
|
});
|
|
@@ -10186,7 +10186,7 @@ var rp = ({ newDate: e, setEndDate: t, startDate: n, selection: r }) => {
|
|
|
10186
10186
|
};
|
|
10187
10187
|
$();
|
|
10188
10188
|
function hp(e = Kf) {
|
|
10189
|
-
let t = e ===
|
|
10189
|
+
let t = e === u.Sunday ? u.Sunday : u.Monday, n = W(), r = gp(n, t), i = _p(n, t), a = r.clone().subtract(1, "week"), o = i.clone().subtract(1, "week"), s = n.clone().subtract(1, "month").startOf("month"), c = s.clone().endOf("month"), l = n.clone().subtract(1, "quarter").startOf("quarter"), d = l.clone().endOf("quarter"), f = n.clone().subtract(1, "year").startOf("year"), m = f.clone().endOf("year");
|
|
10190
10190
|
return (0, H.useMemo)(() => [
|
|
10191
10191
|
{
|
|
10192
10192
|
label: p[V.DynamicDateCalcRangeType.Today],
|
|
@@ -10239,13 +10239,13 @@ function hp(e = Kf) {
|
|
|
10239
10239
|
{
|
|
10240
10240
|
label: p[V.DynamicDateCalcRangeType.PreviousQuarterToDate],
|
|
10241
10241
|
start: l,
|
|
10242
|
-
end: yp(n, l,
|
|
10242
|
+
end: yp(n, l, d),
|
|
10243
10243
|
dynamicDateRange: V.DynamicDateCalcRangeType.PreviousQuarterToDate
|
|
10244
10244
|
},
|
|
10245
10245
|
{
|
|
10246
10246
|
label: p[V.DynamicDateCalcRangeType.PreviousQuarter],
|
|
10247
10247
|
start: l,
|
|
10248
|
-
end:
|
|
10248
|
+
end: d,
|
|
10249
10249
|
dynamicDateRange: V.DynamicDateCalcRangeType.PreviousQuarter
|
|
10250
10250
|
},
|
|
10251
10251
|
{
|
|
@@ -10256,14 +10256,14 @@ function hp(e = Kf) {
|
|
|
10256
10256
|
},
|
|
10257
10257
|
{
|
|
10258
10258
|
label: p[V.DynamicDateCalcRangeType.PreviousYear],
|
|
10259
|
-
start:
|
|
10260
|
-
end:
|
|
10259
|
+
start: f,
|
|
10260
|
+
end: m,
|
|
10261
10261
|
dynamicDateRange: V.DynamicDateCalcRangeType.PreviousYear
|
|
10262
10262
|
},
|
|
10263
10263
|
{
|
|
10264
10264
|
label: p[V.DynamicDateCalcRangeType.PreviousYearToDate],
|
|
10265
|
-
start:
|
|
10266
|
-
end: bp(n,
|
|
10265
|
+
start: f,
|
|
10266
|
+
end: bp(n, f, m),
|
|
10267
10267
|
dynamicDateRange: V.DynamicDateCalcRangeType.PreviousYearToDate
|
|
10268
10268
|
},
|
|
10269
10269
|
{
|
|
@@ -10317,10 +10317,10 @@ function hp(e = Kf) {
|
|
|
10317
10317
|
], [e]);
|
|
10318
10318
|
}
|
|
10319
10319
|
function gp(e, t) {
|
|
10320
|
-
return t ===
|
|
10320
|
+
return t === u.Monday ? e.clone().startOf("isoWeek") : e.clone().startOf("week");
|
|
10321
10321
|
}
|
|
10322
10322
|
function _p(e, t) {
|
|
10323
|
-
return t ===
|
|
10323
|
+
return t === u.Monday ? e.clone().endOf("isoWeek") : e.clone().endOf("week");
|
|
10324
10324
|
}
|
|
10325
10325
|
function vp(e, t, n) {
|
|
10326
10326
|
return e.isSame(e.clone().endOf("month"), "day") ? n.clone() : W.min(t.clone().add(e.date() - 1, "days").endOf("day"), n.clone());
|
|
@@ -10766,7 +10766,7 @@ var Pp = () => {
|
|
|
10766
10766
|
}
|
|
10767
10767
|
}),
|
|
10768
10768
|
disabledMonthButton: { "& svg": {
|
|
10769
|
-
fill:
|
|
10769
|
+
fill: m.grey3,
|
|
10770
10770
|
cursor: "not-allowed",
|
|
10771
10771
|
pointerEvents: "none"
|
|
10772
10772
|
} },
|
|
@@ -10775,16 +10775,16 @@ var Pp = () => {
|
|
|
10775
10775
|
pointerEvents: "none"
|
|
10776
10776
|
} },
|
|
10777
10777
|
linearProgress: {
|
|
10778
|
-
background:
|
|
10778
|
+
background: m.grey3,
|
|
10779
10779
|
height: 2,
|
|
10780
|
-
"& .MuiLinearProgress-bar": { background:
|
|
10780
|
+
"& .MuiLinearProgress-bar": { background: m.mainDarkNavy }
|
|
10781
10781
|
},
|
|
10782
10782
|
divider: {
|
|
10783
10783
|
margin: "0px 8px 8px 8px",
|
|
10784
10784
|
height: 1,
|
|
10785
10785
|
borderWidth: 0,
|
|
10786
|
-
color:
|
|
10787
|
-
backgroundColor:
|
|
10786
|
+
color: m.grey4,
|
|
10787
|
+
backgroundColor: m.grey4,
|
|
10788
10788
|
width: "calc(100% - 16px)"
|
|
10789
10789
|
},
|
|
10790
10790
|
pickerTooltipContent: ({ responsive: e, type: t }) => ({
|
|
@@ -10793,7 +10793,7 @@ var Pp = () => {
|
|
|
10793
10793
|
fontSize: 14,
|
|
10794
10794
|
"& div.DayPickerNavigation_button__disabled": {
|
|
10795
10795
|
border: "none",
|
|
10796
|
-
"& svg": { fill:
|
|
10796
|
+
"& svg": { fill: m.grey3 }
|
|
10797
10797
|
},
|
|
10798
10798
|
...e && {
|
|
10799
10799
|
[R.md]: {
|
|
@@ -11088,20 +11088,20 @@ function Yp(e) {
|
|
|
11088
11088
|
});
|
|
11089
11089
|
}
|
|
11090
11090
|
$(), mp();
|
|
11091
|
-
var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCalendarDay: a = np, setEndDate: o, setStartDate: s, startDate:
|
|
11092
|
-
let v = xp(
|
|
11091
|
+
var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCalendarDay: a = np, setEndDate: o, setStartDate: s, startDate: l, selection: u, customCellClickHandler: f, disableDateSwap: p, responsive: m, closeTooltips: h, restrictToDateRange: _ = !1 }) => {
|
|
11092
|
+
let v = xp(m), y = Zf(r, n, l || e), [b, x] = (0, H.useState)(_ ? W.utc(y.valueOf()) : y), [S, C] = (0, H.useState)("initial"), w = (0, H.useRef)(!1), T = f || ((t) => op({
|
|
11093
11093
|
newDate: t,
|
|
11094
|
-
startDate:
|
|
11094
|
+
startDate: l,
|
|
11095
11095
|
setStartDate: s,
|
|
11096
11096
|
endDate: e,
|
|
11097
11097
|
setEndDate: o,
|
|
11098
|
-
selection:
|
|
11099
|
-
})), E = typeof r == "number" ? _ ? W.utc(r) : W(r) : null, D = typeof n == "number" ? _ ? W.utc(n) : W(n) : null, O = (e) => t(e.valueOf()) && (!_ || Bp(e, E, D)), k = Qf(i?.weekStart), { applyPredefinedRange: A } = Sp(i,
|
|
11098
|
+
selection: u
|
|
11099
|
+
})), E = typeof r == "number" ? _ ? W.utc(r) : W(r) : null, D = typeof n == "number" ? _ ? W.utc(n) : W(n) : null, O = (e) => t(e.valueOf()) && (!_ || Bp(e, E, D)), k = Qf(i?.weekStart), { applyPredefinedRange: A } = Sp(i, u, s, o, x), { applyCustomRange: j } = Cp(i, u, s, o, x), M = u.field?.dataType === V.FieldType.TIMESTAMP || u.field?.dataType === V.FieldType.TIMESTAMP_TZ, N = i?.timePickerVisibility === d.Always || i?.timePickerVisibility === d.WhenTimestampSelected && M, P = (0, H.useCallback)((e) => {
|
|
11100
11100
|
w.current || (w.current = !0, C((t) => t === e ? t : e));
|
|
11101
11101
|
}, []);
|
|
11102
11102
|
return /* @__PURE__ */ (0, U.jsx)(Uf.DayPickerRangeController, {
|
|
11103
11103
|
daySize: v,
|
|
11104
|
-
startDate:
|
|
11104
|
+
startDate: l ? _ ? W.utc(l) : W(l) : null,
|
|
11105
11105
|
endDate: e ? _ ? W.utc(e) : W(e) : null,
|
|
11106
11106
|
firstDayOfWeek: k,
|
|
11107
11107
|
focusedInput: Gf.StartDate,
|
|
@@ -11112,42 +11112,42 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11112
11112
|
minDate: E,
|
|
11113
11113
|
noNavPrevButton: !0,
|
|
11114
11114
|
noNavNextButton: !0,
|
|
11115
|
-
noBorder: i?.pickerState !==
|
|
11115
|
+
noBorder: i?.pickerState !== c.Expanded,
|
|
11116
11116
|
renderCalendarInfo: () => /* @__PURE__ */ (0, U.jsx)(Rp, {
|
|
11117
11117
|
selectedPredefinedRanges: i?.visibleDatePresets,
|
|
11118
11118
|
onPredefinedRangeClick: A,
|
|
11119
11119
|
onCustomRangeClick: j,
|
|
11120
|
-
responsive:
|
|
11120
|
+
responsive: m,
|
|
11121
11121
|
timezone: i?.timezone,
|
|
11122
11122
|
weekStart: i?.weekStart,
|
|
11123
|
-
dynamicDateCalcRange:
|
|
11124
|
-
dynamicDateRange:
|
|
11123
|
+
dynamicDateCalcRange: u.dynamicDateCalcRange?.type,
|
|
11124
|
+
dynamicDateRange: u.dynamicDateRange,
|
|
11125
11125
|
customDatePresets: i?.customDatePresets,
|
|
11126
11126
|
showTimePicker: N,
|
|
11127
|
-
startDate:
|
|
11127
|
+
startDate: l,
|
|
11128
11128
|
endDate: e,
|
|
11129
11129
|
setStartDate: s,
|
|
11130
11130
|
setEndDate: o,
|
|
11131
|
-
onRange:
|
|
11132
|
-
closeTooltips:
|
|
11133
|
-
isSingleDayPicker: i?.pickerType ===
|
|
11131
|
+
onRange: u.onRange,
|
|
11132
|
+
closeTooltips: h,
|
|
11133
|
+
isSingleDayPicker: i?.pickerType === g.InputSingle,
|
|
11134
11134
|
onLayoutChange: P
|
|
11135
11135
|
}),
|
|
11136
11136
|
numberOfMonths: i?.numberOfMonths || 2,
|
|
11137
11137
|
renderCalendarDay: (n) => a({
|
|
11138
11138
|
date: n,
|
|
11139
|
-
startDate:
|
|
11139
|
+
startDate: l,
|
|
11140
11140
|
endDate: e,
|
|
11141
11141
|
isDateAvailable: _ ? () => O(n.day) : t,
|
|
11142
11142
|
onCellClick: T,
|
|
11143
11143
|
options: i,
|
|
11144
11144
|
disableDateSwap: p,
|
|
11145
|
-
selection:
|
|
11146
|
-
responsive:
|
|
11145
|
+
selection: u,
|
|
11146
|
+
responsive: m
|
|
11147
11147
|
}),
|
|
11148
11148
|
renderMonthElement: (e) => /* @__PURE__ */ (0, U.jsx)(Yp, {
|
|
11149
11149
|
date: e,
|
|
11150
|
-
responsive:
|
|
11150
|
+
responsive: m,
|
|
11151
11151
|
minDate: E,
|
|
11152
11152
|
maxDate: D,
|
|
11153
11153
|
visibleMonth: b,
|
|
@@ -11189,10 +11189,10 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11189
11189
|
}
|
|
11190
11190
|
}
|
|
11191
11191
|
}),
|
|
11192
|
-
selectedDateWrapper: { borderColor:
|
|
11192
|
+
selectedDateWrapper: { borderColor: m.mainDarkNavy },
|
|
11193
11193
|
inputWrapper: (e) => ({
|
|
11194
|
-
backgroundColor:
|
|
11195
|
-
border: `1px solid ${
|
|
11194
|
+
backgroundColor: m.white,
|
|
11195
|
+
border: `1px solid ${m.grey4}`,
|
|
11196
11196
|
borderRadius: 5,
|
|
11197
11197
|
[e ? "maxHeight" : "height"]: 40,
|
|
11198
11198
|
width: "100%"
|
|
@@ -11210,7 +11210,7 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11210
11210
|
input: (e) => ({
|
|
11211
11211
|
alignItems: "center",
|
|
11212
11212
|
boxSizing: "border-box",
|
|
11213
|
-
color:
|
|
11213
|
+
color: m.grey1,
|
|
11214
11214
|
cursor: "pointer",
|
|
11215
11215
|
display: "flex",
|
|
11216
11216
|
fontFamily: "Roboto",
|
|
@@ -11225,8 +11225,8 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11225
11225
|
}
|
|
11226
11226
|
}),
|
|
11227
11227
|
selectedInput: {
|
|
11228
|
-
color:
|
|
11229
|
-
"&::placeholder": { color:
|
|
11228
|
+
color: m.mainDarkNavy,
|
|
11229
|
+
"&::placeholder": { color: m.mainDarkNavy }
|
|
11230
11230
|
}
|
|
11231
11231
|
}), Qp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, setEndDate: a, setStartDate: o, startDate: s, selection: l, responsive: u }) => {
|
|
11232
11232
|
let d = Zp(u), f = Up({
|
|
@@ -11283,7 +11283,7 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11283
11283
|
let n = s && e || !e && !s;
|
|
11284
11284
|
g(!1), n && v(!0);
|
|
11285
11285
|
}, E = i?.format && s ? i.format(s) : s, D = i?.format && e ? i.format(e) : e, O = i?.startDateLabel || "Start date", k = i?.endDateLabel || "End date";
|
|
11286
|
-
return i?.pickerState ===
|
|
11286
|
+
return i?.pickerState === c.Expanded ? /* @__PURE__ */ (0, U.jsx)("div", {
|
|
11287
11287
|
className: f.pickerTooltipContent,
|
|
11288
11288
|
children: /* @__PURE__ */ (0, U.jsx)(Xp, { ...b })
|
|
11289
11289
|
}) : /* @__PURE__ */ (0, U.jsx)("div", {
|
|
@@ -11326,7 +11326,7 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11326
11326
|
className: d.doubleIconWrapper,
|
|
11327
11327
|
children: /* @__PURE__ */ (0, U.jsx)(x, {
|
|
11328
11328
|
size: y,
|
|
11329
|
-
fill:
|
|
11329
|
+
fill: m.grey1
|
|
11330
11330
|
})
|
|
11331
11331
|
}),
|
|
11332
11332
|
/* @__PURE__ */ (0, U.jsx)("div", {
|
|
@@ -11360,16 +11360,16 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11360
11360
|
]
|
|
11361
11361
|
})
|
|
11362
11362
|
});
|
|
11363
|
-
}, $p = ({ date: e, endDate: t, isDateAvailable: n, max: r, min: i, options: a, setDate: o, setEndDate: s, selection:
|
|
11364
|
-
let
|
|
11365
|
-
responsive:
|
|
11363
|
+
}, $p = ({ date: e, endDate: t, isDateAvailable: n, max: r, min: i, options: a, setDate: o, setEndDate: s, selection: l, responsive: u }) => {
|
|
11364
|
+
let d = (0, H.useContext)(T), f = Zp(u), p = Up({
|
|
11365
|
+
responsive: u,
|
|
11366
11366
|
type: "single"
|
|
11367
|
-
}), [
|
|
11367
|
+
}), [m, h] = (0, H.useState)(!1), g = a?.format && e ? a.format(e) : e, _ = (e) => ap({
|
|
11368
11368
|
newDate: e,
|
|
11369
11369
|
setDate: o,
|
|
11370
11370
|
setEndDate: s,
|
|
11371
|
-
selection:
|
|
11372
|
-
}), v =
|
|
11371
|
+
selection: l
|
|
11372
|
+
}), v = u ? be(25, d.height, d.width) : 25, y = () => {
|
|
11373
11373
|
a?.disabled || h(!0);
|
|
11374
11374
|
}, b = {
|
|
11375
11375
|
endDate: $f(t),
|
|
@@ -11383,30 +11383,30 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11383
11383
|
...a,
|
|
11384
11384
|
numberOfMonths: 1
|
|
11385
11385
|
},
|
|
11386
|
-
selection:
|
|
11387
|
-
responsive:
|
|
11386
|
+
selection: l,
|
|
11387
|
+
responsive: u
|
|
11388
11388
|
}, x = a?.placeholder || "Select a date";
|
|
11389
|
-
return a?.pickerState ===
|
|
11390
|
-
className:
|
|
11389
|
+
return a?.pickerState === c.Expanded ? /* @__PURE__ */ (0, U.jsx)("div", {
|
|
11390
|
+
className: p.pickerTooltipContent,
|
|
11391
11391
|
children: /* @__PURE__ */ (0, U.jsx)(Xp, {
|
|
11392
11392
|
...b,
|
|
11393
11393
|
customCellClickHandler: _
|
|
11394
11394
|
})
|
|
11395
11395
|
}) : /* @__PURE__ */ (0, U.jsx)("div", {
|
|
11396
|
-
className:
|
|
11396
|
+
className: f.inputWrapper,
|
|
11397
11397
|
children: /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
11398
|
-
className:
|
|
11398
|
+
className: f.inputContentWrapper,
|
|
11399
11399
|
children: [/* @__PURE__ */ (0, U.jsx)("div", {
|
|
11400
|
-
className:
|
|
11400
|
+
className: f.input,
|
|
11401
11401
|
onClick: y,
|
|
11402
11402
|
children: /* @__PURE__ */ (0, U.jsx)(ve, {
|
|
11403
|
-
open:
|
|
11403
|
+
open: m,
|
|
11404
11404
|
placement: "bottom",
|
|
11405
|
-
classes: { popper:
|
|
11405
|
+
classes: { popper: p.tooltip },
|
|
11406
11406
|
title: /* @__PURE__ */ (0, U.jsx)(ce, {
|
|
11407
11407
|
onClickAway: () => h(!1),
|
|
11408
11408
|
children: /* @__PURE__ */ (0, U.jsx)("div", {
|
|
11409
|
-
className:
|
|
11409
|
+
className: p.pickerTooltipContent,
|
|
11410
11410
|
children: /* @__PURE__ */ (0, U.jsx)(Xp, {
|
|
11411
11411
|
...b,
|
|
11412
11412
|
customCellClickHandler: _
|
|
@@ -11414,21 +11414,21 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11414
11414
|
})
|
|
11415
11415
|
}),
|
|
11416
11416
|
children: /* @__PURE__ */ (0, U.jsx)("span", {
|
|
11417
|
-
className:
|
|
11417
|
+
className: f.dateWrapper,
|
|
11418
11418
|
"data-testid": "date-label",
|
|
11419
11419
|
children: g ?? x
|
|
11420
11420
|
})
|
|
11421
11421
|
})
|
|
11422
11422
|
}), /* @__PURE__ */ (0, U.jsx)("div", {
|
|
11423
|
-
className:
|
|
11424
|
-
children:
|
|
11425
|
-
onClick: () => h(!
|
|
11423
|
+
className: f.iconWrapper,
|
|
11424
|
+
children: m ? /* @__PURE__ */ (0, U.jsx)(N, {
|
|
11425
|
+
onClick: () => h(!m),
|
|
11426
11426
|
size: v,
|
|
11427
|
-
className:
|
|
11427
|
+
className: p.chevronIcon
|
|
11428
11428
|
}) : /* @__PURE__ */ (0, U.jsx)(w, {
|
|
11429
11429
|
onClick: y,
|
|
11430
11430
|
size: v,
|
|
11431
|
-
className:
|
|
11431
|
+
className: p.chevronIcon
|
|
11432
11432
|
})
|
|
11433
11433
|
})]
|
|
11434
11434
|
})
|
|
@@ -11442,16 +11442,16 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11442
11442
|
t?.isDateAvailable,
|
|
11443
11443
|
a,
|
|
11444
11444
|
o
|
|
11445
|
-
]), c = t?.selection ?? te, [l, u] = (0, H.useState)(t?.startDate ?? null), [d,
|
|
11445
|
+
]), c = t?.selection ?? te, [l, u] = (0, H.useState)(t?.startDate ?? null), [d, f] = (0, H.useState)(t?.endDate ?? null), p = ne();
|
|
11446
11446
|
(0, H.useEffect)(() => {
|
|
11447
|
-
!c.dynamicDateCalcRange && !c.dynamicDateRange && (u(t?.startDate ?? null),
|
|
11447
|
+
!c.dynamicDateCalcRange && !c.dynamicDateRange && (u(t?.startDate ?? null), f(t?.endDate ?? null));
|
|
11448
11448
|
}, [
|
|
11449
11449
|
c.dynamicDateCalcRange,
|
|
11450
11450
|
c.dynamicDateRange,
|
|
11451
11451
|
t?.startDate,
|
|
11452
11452
|
t?.endDate
|
|
11453
11453
|
]);
|
|
11454
|
-
let
|
|
11454
|
+
let m = (e) => e === null ? null : +e, h, _ = {
|
|
11455
11455
|
isDateAvailable: s,
|
|
11456
11456
|
max: o,
|
|
11457
11457
|
min: a,
|
|
@@ -11460,34 +11460,34 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11460
11460
|
responsive: r
|
|
11461
11461
|
};
|
|
11462
11462
|
switch (e?.pickerType) {
|
|
11463
|
-
case
|
|
11464
|
-
|
|
11465
|
-
endDate:
|
|
11466
|
-
setEndDate:
|
|
11463
|
+
case g.Range:
|
|
11464
|
+
h = /* @__PURE__ */ (0, U.jsx)(Xp, {
|
|
11465
|
+
endDate: m(d),
|
|
11466
|
+
setEndDate: f,
|
|
11467
11467
|
setStartDate: u,
|
|
11468
|
-
startDate:
|
|
11468
|
+
startDate: m(l),
|
|
11469
11469
|
..._
|
|
11470
11470
|
});
|
|
11471
11471
|
break;
|
|
11472
|
-
case
|
|
11473
|
-
|
|
11474
|
-
endDate:
|
|
11475
|
-
setEndDate:
|
|
11472
|
+
case g.InputRange:
|
|
11473
|
+
h = /* @__PURE__ */ (0, U.jsx)(Qp, {
|
|
11474
|
+
endDate: m(d),
|
|
11475
|
+
setEndDate: f,
|
|
11476
11476
|
setStartDate: u,
|
|
11477
|
-
startDate:
|
|
11477
|
+
startDate: m(l),
|
|
11478
11478
|
..._
|
|
11479
11479
|
});
|
|
11480
11480
|
break;
|
|
11481
|
-
default:
|
|
11482
|
-
date:
|
|
11483
|
-
endDate:
|
|
11481
|
+
default: h = /* @__PURE__ */ (0, U.jsx)($p, {
|
|
11482
|
+
date: m(l),
|
|
11483
|
+
endDate: m(d),
|
|
11484
11484
|
setDate: u,
|
|
11485
|
-
setEndDate:
|
|
11485
|
+
setEndDate: f,
|
|
11486
11486
|
..._
|
|
11487
11487
|
});
|
|
11488
11488
|
}
|
|
11489
11489
|
return /* @__PURE__ */ (0, U.jsx)(T.Provider, {
|
|
11490
|
-
value:
|
|
11490
|
+
value: p,
|
|
11491
11491
|
children: /* @__PURE__ */ (0, U.jsx)("div", {
|
|
11492
11492
|
className: [i.datePickerWrapper, n].filter(Boolean).join(" "),
|
|
11493
11493
|
"data-testid": "date-picker-wrapper",
|
|
@@ -11497,7 +11497,7 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11497
11497
|
stylesInterface: {},
|
|
11498
11498
|
stylesTheme: Al.default
|
|
11499
11499
|
},
|
|
11500
|
-
children:
|
|
11500
|
+
children: h
|
|
11501
11501
|
})
|
|
11502
11502
|
})
|
|
11503
11503
|
});
|
|
@@ -11506,22 +11506,22 @@ var Xp = ({ endDate: e, isDateAvailable: t, max: n, min: r, options: i, renderCa
|
|
|
11506
11506
|
if (!r) return null;
|
|
11507
11507
|
let { dateLevel: i, datePart: a } = r, { fieldKey: o } = n(r.dataItem);
|
|
11508
11508
|
if (o === null) return null;
|
|
11509
|
-
let
|
|
11509
|
+
let s = (e) => e.dateLevel === i && e.datePart === a && "fieldKey" in e && e.fieldKey === o && (e.operator === V.FilterOperator.Between || e.operator === V.FilterOperator.NotBetween || e.operator === V.FilterOperator.Equals && !!e.dynamicDateRange), c = _({
|
|
11510
11510
|
dateLevel: i ?? void 0,
|
|
11511
11511
|
datePart: a ?? void 0,
|
|
11512
11512
|
fieldKey: o,
|
|
11513
11513
|
operator: V.FilterOperator.Between,
|
|
11514
11514
|
values: []
|
|
11515
|
-
}),
|
|
11515
|
+
}), l = t.applied.find(s), u = t.pending.find(s);
|
|
11516
11516
|
return {
|
|
11517
11517
|
applied: {
|
|
11518
|
-
...
|
|
11519
|
-
...
|
|
11518
|
+
...c,
|
|
11519
|
+
...l
|
|
11520
11520
|
},
|
|
11521
11521
|
pending: {
|
|
11522
|
+
...c,
|
|
11522
11523
|
...l,
|
|
11523
|
-
...u
|
|
11524
|
-
...d
|
|
11524
|
+
...u
|
|
11525
11525
|
}
|
|
11526
11526
|
};
|
|
11527
11527
|
}, im = /*#__PURE__*/ H.createContext(void 0), am = () => H.useContext(im) ?? !1, om = { transition: "none" };
|
|
@@ -11863,7 +11863,7 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11863
11863
|
})
|
|
11864
11864
|
]
|
|
11865
11865
|
});
|
|
11866
|
-
}), km = /* @__PURE__ */ r(
|
|
11866
|
+
}), km = /* @__PURE__ */ r(s()), Am = 864e5, jm = (e) => e - e % Am, Mm = (e, t, n) => {
|
|
11867
11867
|
let { engine: r } = D(), [i, a] = (0, H.useState)([]);
|
|
11868
11868
|
(0, H.useEffect)(() => {
|
|
11869
11869
|
let i = !0;
|
|
@@ -11875,7 +11875,7 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11875
11875
|
let o = [{
|
|
11876
11876
|
columnIdx: 0,
|
|
11877
11877
|
direction: "desc"
|
|
11878
|
-
}],
|
|
11878
|
+
}], s = _({
|
|
11879
11879
|
dimensions: [{
|
|
11880
11880
|
fieldKey: e,
|
|
11881
11881
|
dateLevel: V.DateLevel.Day
|
|
@@ -11884,8 +11884,8 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11884
11884
|
limit: t,
|
|
11885
11885
|
measures: [],
|
|
11886
11886
|
orders: o
|
|
11887
|
-
}), { data:
|
|
11888
|
-
i && a(Object.values(
|
|
11887
|
+
}), { data: c } = await r.getData(s);
|
|
11888
|
+
i && a(Object.values(c));
|
|
11889
11889
|
})(), () => {
|
|
11890
11890
|
i = !1, a([]);
|
|
11891
11891
|
};
|
|
@@ -11896,7 +11896,7 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11896
11896
|
JSON.stringify(n?.staticFilters?.filterGroup),
|
|
11897
11897
|
JSON.stringify(n?.staticFilters?.filters)
|
|
11898
11898
|
]);
|
|
11899
|
-
let { min: o, max:
|
|
11899
|
+
let { min: o, max: s, valuesDict: c } = i.reduce((e, t) => {
|
|
11900
11900
|
e.valuesDict[jm(t[0])] = !0;
|
|
11901
11901
|
let n = t[0];
|
|
11902
11902
|
return n !== null && (e.min = Math.min(n, e.min ?? n), e.max = Math.max(n, e.max ?? n)), e;
|
|
@@ -11907,10 +11907,10 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11907
11907
|
});
|
|
11908
11908
|
return {
|
|
11909
11909
|
min: o,
|
|
11910
|
-
max:
|
|
11910
|
+
max: s,
|
|
11911
11911
|
isDateAvailable: (e) => {
|
|
11912
11912
|
let t = jm(e);
|
|
11913
|
-
return o !== void 0 &&
|
|
11913
|
+
return o !== void 0 && s !== void 0 && c[t] === !0 && t >= o && t <= s;
|
|
11914
11914
|
}
|
|
11915
11915
|
};
|
|
11916
11916
|
}, Nm = (e, t) => {
|
|
@@ -11926,9 +11926,9 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11926
11926
|
return { filters: de(fe(e.staticFilters.filters, n, e.referencedData), e, t) };
|
|
11927
11927
|
}, Pm = E({ loader: {
|
|
11928
11928
|
minWidth: 100,
|
|
11929
|
-
background:
|
|
11929
|
+
background: m.grey3,
|
|
11930
11930
|
height: 2,
|
|
11931
|
-
"& .MuiLinearProgress-bar": { background:
|
|
11931
|
+
"& .MuiLinearProgress-bar": { background: m.mainDarkNavy }
|
|
11932
11932
|
} }), Fm = ({ data: e, options: t = {}, vSpec: n, settings: r, responsive: i }) => {
|
|
11933
11933
|
let a = Pm(), o = I(), s = e?.applied?.operator === V.FilterOperator.NotBetween || e?.pending?.operator === V.FilterOperator.NotBetween, { field: c, fieldKey: l } = o(e?.applied), u = s ? V.FilterOperator.NotBetween : V.FilterOperator.Between, d = e?.applied?.operator, f = e?.pending?.operator;
|
|
11934
11934
|
(d === V.FilterOperator.Equals && f === V.FilterOperator.Equals || f === V.FilterOperator.Equals) && (u = V.FilterOperator.Equals);
|
|
@@ -11937,7 +11937,7 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11937
11937
|
...c,
|
|
11938
11938
|
dataType: r?.type ?? V.FieldType.STRING,
|
|
11939
11939
|
internalKey: "",
|
|
11940
|
-
type:
|
|
11940
|
+
type: h.Dimension,
|
|
11941
11941
|
uniqueSignature: ""
|
|
11942
11942
|
},
|
|
11943
11943
|
dateLevel: e?.applied.dateLevel,
|
|
@@ -11947,7 +11947,7 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11947
11947
|
disabled: !r?.type,
|
|
11948
11948
|
state: r?.quickSelect ? V.SelectionState.APPLIED : V.SelectionState.PENDING,
|
|
11949
11949
|
commitHistory: r?.quickSelect
|
|
11950
|
-
}), m = p ?? te,
|
|
11950
|
+
}), m = p ?? te, g = m.state.pending?.[0] ?? m.state.applied?.[0] ?? null, _ = m.state.pending?.[1] ?? m.state.applied?.[1] ?? null, { min: v, max: y, isDateAvailable: b } = Mm(l, r?.queryLimit, n);
|
|
11951
11951
|
if (v === void 0 && y === void 0 && c) return /* @__PURE__ */ (0, U.jsx)(Om, {
|
|
11952
11952
|
className: a.loader,
|
|
11953
11953
|
variant: "indeterminate"
|
|
@@ -11963,7 +11963,7 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11963
11963
|
maxDate: y || Date.now(),
|
|
11964
11964
|
isDateAvailable: b,
|
|
11965
11965
|
endDate: _,
|
|
11966
|
-
startDate:
|
|
11966
|
+
startDate: g,
|
|
11967
11967
|
selection: m
|
|
11968
11968
|
},
|
|
11969
11969
|
responsive: i
|
|
@@ -11971,8 +11971,8 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11971
11971
|
}, Im = ({ vSpec: e }) => {
|
|
11972
11972
|
let t = j();
|
|
11973
11973
|
return (0, H.useEffect)(() => {
|
|
11974
|
-
e &&
|
|
11975
|
-
}, [e]), !e || !
|
|
11974
|
+
e && l(e) && e.dimensions && t();
|
|
11975
|
+
}, [e]), !e || !l(e) ? null : /* @__PURE__ */ (0, U.jsx)(Lm, { vSpec: e });
|
|
11976
11976
|
}, Lm = ({ vSpec: e }) => {
|
|
11977
11977
|
let t = e.dimensions[0], n = rm(e), r = t?.formatter?.format?.timezone ?? void 0, i = e.datePickerSettings?.queryLimit ?? o(e), a = {
|
|
11978
11978
|
...e?.datePickerSettings,
|
|
@@ -11989,8 +11989,8 @@ var mm = 4, hm = {}, gm = Ne`
|
|
|
11989
11989
|
options: a,
|
|
11990
11990
|
responsive: e?.datePickerSettings?.responsive,
|
|
11991
11991
|
vSpec: e,
|
|
11992
|
-
settings:
|
|
11993
|
-
type:
|
|
11992
|
+
settings: _({
|
|
11993
|
+
type: f(t?.dataItem) ?? void 0,
|
|
11994
11994
|
queryLimit: i,
|
|
11995
11995
|
quickSelect: e?.datePickerSettings?.quickSelect
|
|
11996
11996
|
})
|