@12-apps/ui 6.92.1 → 6.93.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/components-catalog.md +1 -1
- package/dist/_internal/components/data-display/Alert/Alert.js +2 -2
- package/dist/_internal/components/data-display/Avatar/Avatar.js +3 -3
- package/dist/_internal/components/data-display/Avatar/Avatar.view.js +2 -2
- package/dist/_internal/components/data-display/CardKit/card-actions-context.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +5 -5
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +1 -1
- package/dist/_internal/components/data-display/Chart/SpecChart.js +3 -3
- package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +9 -9
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +16 -16
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +1 -1
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +1 -1
- package/dist/_internal/components/data-display/DataViews/base-list-card-layout.js +1 -1
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +10 -4
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +4 -4
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +2 -2
- package/dist/_internal/components/data-display/DayRuler/DayRuler.js +6 -6
- package/dist/_internal/components/data-display/DayRuler/DayRuler.keyboard.js +2 -2
- package/dist/_internal/components/data-display/DayRuler/DayRuler.parts.js +2 -2
- package/dist/_internal/components/data-display/DayRuler/useRulerDrag.js +2 -2
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +1 -1
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +5 -5
- package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/LightboxThumbnails.js +2 -2
- package/dist/_internal/components/data-display/RegionMap/RegionMap.js +2 -2
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.js +1 -1
- package/dist/_internal/components/data-display/Sheet/Sheet.hooks.js +2 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.js +3 -3
- package/dist/_internal/components/data-display/Table/Table.js +3 -3
- package/dist/_internal/components/data-display/index.js +35 -35
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +3 -3
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.frame.js +48 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.frame.js.map +1 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.js +6 -5
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.overview.js +4 -4
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.parts.js +3 -3
- package/dist/_internal/components/feedback/index.js +10 -9
- package/dist/_internal/components/index.js +44 -43
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +4 -4
- package/dist/_internal/components/navigation/index.js +4 -4
- package/dist/_internal/user-avatar/user-avatar.js +4 -4
- package/dist/charts.js +6 -6
- package/dist/{chunk-DBPFKGXX.js → chunk-3YFDGFEK.js} +2 -2
- package/dist/{chunk-Y3F2F36I.js → chunk-4QGKR65P.js} +4 -4
- package/dist/{chunk-YE7M7URT.js → chunk-6D5AMANO.js} +2 -2
- package/dist/{chunk-UDBOGSFO.js → chunk-6HPVCDVU.js} +4 -4
- package/dist/{chunk-EOQ6EKTS.js → chunk-7XSCEHGA.js} +7 -7
- package/dist/{chunk-B5STMM3R.js → chunk-ALMGYCHY.js} +2 -2
- package/dist/{chunk-64UNVW6D.js → chunk-BP3ZKIPE.js} +4 -4
- package/dist/{chunk-OCT5VCLP.js → chunk-BQBEN44R.js} +2 -2
- package/dist/chunk-CPQJFHNZ.js +63 -0
- package/dist/chunk-CPQJFHNZ.js.map +1 -0
- package/dist/{chunk-Q3SILZTQ.js → chunk-E2UOEI7N.js} +2 -2
- package/dist/{chunk-RZWU2KYP.js → chunk-F5H3WDG7.js} +4 -3
- package/dist/chunk-F5H3WDG7.js.map +1 -0
- package/dist/{chunk-JVOEVTCZ.js → chunk-HQCZT6TO.js} +5 -5
- package/dist/{chunk-ZVHHFLYY.js → chunk-HSVSU7I2.js} +6 -6
- package/dist/{chunk-4QR7LM5F.js → chunk-JIEVKHOH.js} +2 -2
- package/dist/{chunk-FWTVIRZZ.js → chunk-JVQ56E3U.js} +6 -6
- package/dist/{chunk-YOLLISEY.js → chunk-JXK53XJW.js} +9 -9
- package/dist/{chunk-PCQ5JWLF.js → chunk-KPUUHAK6.js} +7 -7
- package/dist/{chunk-56JF5PZK.js → chunk-LYVTJLCF.js} +4 -4
- package/dist/{chunk-NXQ6PXLJ.js → chunk-LZ5PGB7U.js} +2 -2
- package/dist/{chunk-EKSJES5E.js → chunk-MAYAJXO6.js} +4 -4
- package/dist/{chunk-OCGPOACB.js → chunk-MFX4ASX5.js} +3 -3
- package/dist/{chunk-5I75WRXT.js → chunk-N3GLX64O.js} +4 -4
- package/dist/{chunk-PEAUGQKU.js → chunk-NQCTANF3.js} +7 -7
- package/dist/{chunk-IEUVP6UV.js → chunk-OM6ZT64U.js} +5 -5
- package/dist/{chunk-W676GY42.js → chunk-P772HCHI.js} +4 -4
- package/dist/{chunk-VWRXSBT2.js → chunk-R52N5UCS.js} +2 -2
- package/dist/{chunk-FQNDJITD.js → chunk-RCTHCXS6.js} +2 -2
- package/dist/{chunk-WLLUARTC.js → chunk-T2G4LDU5.js} +2 -2
- package/dist/{chunk-VCJ72ODU.js → chunk-VJIJCLUX.js} +68 -18
- package/dist/chunk-VJIJCLUX.js.map +1 -0
- package/dist/{chunk-66VKX6JE.js → chunk-WJMSND5Q.js} +2 -2
- package/dist/{chunk-ZCNR4DN5.js → chunk-XBWW3QSI.js} +4 -4
- package/dist/{chunk-BXZMV6QC.js → chunk-XFZDO2KB.js} +2 -2
- package/dist/{chunk-BOADHYTA.js → chunk-YNZUYZ2O.js} +2 -2
- package/dist/{chunk-XRV4QFEQ.js → chunk-ZBUMGMWP.js} +83 -65
- package/dist/chunk-ZBUMGMWP.js.map +1 -0
- package/dist/data-display/Alert.js +2 -2
- package/dist/data-display/Avatar.js +3 -3
- package/dist/data-display/CardKit.js +10 -10
- package/dist/data-display/Chart.js +6 -6
- package/dist/data-display/DataViews.js +21 -21
- package/dist/data-display/DayRuler.js +6 -6
- package/dist/data-display/HoverCard.js +1 -1
- package/dist/data-display/Lightbox.js +5 -5
- package/dist/data-display/RegionMap.js +2 -2
- package/dist/data-display/ScheduleGrid.js +5 -5
- package/dist/data-display/Sheet.js +3 -3
- package/dist/data-display/Table.js +3 -3
- package/dist/feedback/ConfirmAction.js +3 -3
- package/dist/feedback/NotificationStatusNotice.js +3 -3
- package/dist/feedback/SequenceResolver.js +6 -5
- package/dist/navigation/AppHeader.js +4 -4
- package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts +80 -0
- package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-more-filters.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.d.ts +55 -2
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.frame.d.ts +16 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.frame.d.ts.map +1 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.types.d.ts +10 -4
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.types.d.ts.map +1 -1
- package/dist/user-avatar.js +4 -4
- package/package.json +1 -1
- package/src/components/data-display/DataViews/data-views-more-fields.tsx +90 -14
- package/src/components/data-display/DataViews/data-views-more-filters.tsx +2 -2
- package/src/components/feedback/SequenceResolver/SequenceResolver.frame.tsx +71 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.md +2 -2
- package/src/components/feedback/SequenceResolver/SequenceResolver.tsx +122 -61
- package/src/components/feedback/SequenceResolver/SequenceResolver.types.ts +10 -4
- package/dist/chunk-RZWU2KYP.js.map +0 -1
- package/dist/chunk-VCJ72ODU.js.map +0 -1
- package/dist/chunk-XRV4QFEQ.js.map +0 -1
- /package/dist/{chunk-DBPFKGXX.js.map → chunk-3YFDGFEK.js.map} +0 -0
- /package/dist/{chunk-Y3F2F36I.js.map → chunk-4QGKR65P.js.map} +0 -0
- /package/dist/{chunk-YE7M7URT.js.map → chunk-6D5AMANO.js.map} +0 -0
- /package/dist/{chunk-UDBOGSFO.js.map → chunk-6HPVCDVU.js.map} +0 -0
- /package/dist/{chunk-EOQ6EKTS.js.map → chunk-7XSCEHGA.js.map} +0 -0
- /package/dist/{chunk-B5STMM3R.js.map → chunk-ALMGYCHY.js.map} +0 -0
- /package/dist/{chunk-64UNVW6D.js.map → chunk-BP3ZKIPE.js.map} +0 -0
- /package/dist/{chunk-OCT5VCLP.js.map → chunk-BQBEN44R.js.map} +0 -0
- /package/dist/{chunk-Q3SILZTQ.js.map → chunk-E2UOEI7N.js.map} +0 -0
- /package/dist/{chunk-JVOEVTCZ.js.map → chunk-HQCZT6TO.js.map} +0 -0
- /package/dist/{chunk-ZVHHFLYY.js.map → chunk-HSVSU7I2.js.map} +0 -0
- /package/dist/{chunk-4QR7LM5F.js.map → chunk-JIEVKHOH.js.map} +0 -0
- /package/dist/{chunk-FWTVIRZZ.js.map → chunk-JVQ56E3U.js.map} +0 -0
- /package/dist/{chunk-YOLLISEY.js.map → chunk-JXK53XJW.js.map} +0 -0
- /package/dist/{chunk-PCQ5JWLF.js.map → chunk-KPUUHAK6.js.map} +0 -0
- /package/dist/{chunk-56JF5PZK.js.map → chunk-LYVTJLCF.js.map} +0 -0
- /package/dist/{chunk-NXQ6PXLJ.js.map → chunk-LZ5PGB7U.js.map} +0 -0
- /package/dist/{chunk-EKSJES5E.js.map → chunk-MAYAJXO6.js.map} +0 -0
- /package/dist/{chunk-OCGPOACB.js.map → chunk-MFX4ASX5.js.map} +0 -0
- /package/dist/{chunk-5I75WRXT.js.map → chunk-N3GLX64O.js.map} +0 -0
- /package/dist/{chunk-PEAUGQKU.js.map → chunk-NQCTANF3.js.map} +0 -0
- /package/dist/{chunk-IEUVP6UV.js.map → chunk-OM6ZT64U.js.map} +0 -0
- /package/dist/{chunk-W676GY42.js.map → chunk-P772HCHI.js.map} +0 -0
- /package/dist/{chunk-VWRXSBT2.js.map → chunk-R52N5UCS.js.map} +0 -0
- /package/dist/{chunk-FQNDJITD.js.map → chunk-RCTHCXS6.js.map} +0 -0
- /package/dist/{chunk-WLLUARTC.js.map → chunk-T2G4LDU5.js.map} +0 -0
- /package/dist/{chunk-66VKX6JE.js.map → chunk-WJMSND5Q.js.map} +0 -0
- /package/dist/{chunk-ZCNR4DN5.js.map → chunk-XBWW3QSI.js.map} +0 -0
- /package/dist/{chunk-BXZMV6QC.js.map → chunk-XFZDO2KB.js.map} +0 -0
- /package/dist/{chunk-BOADHYTA.js.map → chunk-YNZUYZ2O.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getChartSpecRenderer,
|
|
3
|
-
getRegisteredChartSpecTypes
|
|
4
|
-
} from "./chunk-WKUA6P3W.js";
|
|
5
1
|
import {
|
|
6
2
|
chartAxisValueFormatter,
|
|
7
3
|
chartValueFormatter
|
|
8
4
|
} from "./chunk-6GPNZSAE.js";
|
|
5
|
+
import {
|
|
6
|
+
getChartSpecRenderer,
|
|
7
|
+
getRegisteredChartSpecTypes
|
|
8
|
+
} from "./chunk-WKUA6P3W.js";
|
|
9
9
|
|
|
10
10
|
// src/components/data-display/Chart/chart-spec.ts
|
|
11
11
|
var CHART_SEMANTIC_COLORS = [
|
|
@@ -151,4 +151,4 @@ export {
|
|
|
151
151
|
parseChartSpec,
|
|
152
152
|
specToChartProps
|
|
153
153
|
};
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-HQCZT6TO.js.map
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-YNVTUQ5B.js";
|
|
4
4
|
import {
|
|
5
5
|
DataViewsGrid
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MFX4ASX5.js";
|
|
7
7
|
import {
|
|
8
8
|
viewStateKey
|
|
9
9
|
} from "./chunk-ZOLAYP2D.js";
|
|
10
|
-
import {
|
|
11
|
-
ViewDialogs,
|
|
12
|
-
ViewMutationErrorAlert
|
|
13
|
-
} from "./chunk-66VKX6JE.js";
|
|
14
10
|
import {
|
|
15
11
|
useUrlEchoGuard,
|
|
16
12
|
useUrlSyncState
|
|
17
13
|
} from "./chunk-G6EJLEVV.js";
|
|
14
|
+
import {
|
|
15
|
+
ViewDialogs,
|
|
16
|
+
ViewMutationErrorAlert
|
|
17
|
+
} from "./chunk-WJMSND5Q.js";
|
|
18
18
|
import {
|
|
19
19
|
useSavedViewsController
|
|
20
20
|
} from "./chunk-B2JSUFDX.js";
|
|
@@ -166,4 +166,4 @@ function renderViewDialogs(ctl, fields, columns, views, testIdPrefix, onSaved) {
|
|
|
166
166
|
export {
|
|
167
167
|
DataViewsTableBase
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-HSVSU7I2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AvatarView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7XSCEHGA.js";
|
|
4
4
|
import {
|
|
5
5
|
BORDER_WIDTH,
|
|
6
6
|
GROUP_HOVER,
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
Avatar,
|
|
179
179
|
AvatarGroup
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-JIEVKHOH.js.map
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
} from "./chunk-UOS7DEQZ.js";
|
|
4
4
|
import {
|
|
5
5
|
LightboxThumbnails
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BP3ZKIPE.js";
|
|
7
7
|
import {
|
|
8
8
|
LightboxStage
|
|
9
9
|
} from "./chunk-SYGM4SHY.js";
|
|
10
10
|
import {
|
|
11
11
|
LightboxOverlay
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T2G4LDU5.js";
|
|
13
13
|
import {
|
|
14
14
|
LightboxCurrentMedia
|
|
15
15
|
} from "./chunk-RBGUS7WO.js";
|
|
16
|
+
import {
|
|
17
|
+
LightboxCopyProvider
|
|
18
|
+
} from "./chunk-TEQYTEM2.js";
|
|
16
19
|
import {
|
|
17
20
|
useLightbox
|
|
18
21
|
} from "./chunk-HZBDTPPV.js";
|
|
19
22
|
import {
|
|
20
23
|
makeTestId
|
|
21
24
|
} from "./chunk-VQU3CBAL.js";
|
|
22
|
-
import {
|
|
23
|
-
LightboxCopyProvider
|
|
24
|
-
} from "./chunk-TEQYTEM2.js";
|
|
25
25
|
import {
|
|
26
26
|
scrim
|
|
27
27
|
} from "./chunk-XJAD6E3V.js";
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
Lightbox,
|
|
149
149
|
Lightbox_default
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-JVQ56E3U.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EnhancedTableBody,
|
|
3
|
+
EnhancedTableHeader
|
|
4
|
+
} from "./chunk-L5KPBMMF.js";
|
|
1
5
|
import {
|
|
2
6
|
tableStyles
|
|
3
7
|
} from "./chunk-BVHIKXCN.js";
|
|
@@ -5,14 +9,6 @@ import {
|
|
|
5
9
|
useTableSelection,
|
|
6
10
|
useVirtualScrolling
|
|
7
11
|
} from "./chunk-RZSMRBOX.js";
|
|
8
|
-
import {
|
|
9
|
-
EmptyRow,
|
|
10
|
-
NoDataPlaceholder
|
|
11
|
-
} from "./chunk-XIXR2L3L.js";
|
|
12
|
-
import {
|
|
13
|
-
EnhancedTableBody,
|
|
14
|
-
EnhancedTableHeader
|
|
15
|
-
} from "./chunk-L5KPBMMF.js";
|
|
16
12
|
import {
|
|
17
13
|
TABLE_DEFAULTS,
|
|
18
14
|
containerStyle,
|
|
@@ -24,6 +20,10 @@ import {
|
|
|
24
20
|
tableRowHeight,
|
|
25
21
|
virtualHeight
|
|
26
22
|
} from "./chunk-Y3DV7LGC.js";
|
|
23
|
+
import {
|
|
24
|
+
EmptyRow,
|
|
25
|
+
NoDataPlaceholder
|
|
26
|
+
} from "./chunk-XIXR2L3L.js";
|
|
27
27
|
import {
|
|
28
28
|
rem
|
|
29
29
|
} from "./chunk-YKCAJ2TN.js";
|
|
@@ -310,4 +310,4 @@ Table.displayName = "Table";
|
|
|
310
310
|
export {
|
|
311
311
|
Table
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-JXK53XJW.js.map
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleBlockKey,
|
|
3
|
+
keyCreateSpan
|
|
4
|
+
} from "./chunk-4QGKR65P.js";
|
|
1
5
|
import {
|
|
2
6
|
Axis,
|
|
3
7
|
Coverage,
|
|
4
8
|
GroupFooter,
|
|
5
9
|
RulerRow
|
|
6
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6HPVCDVU.js";
|
|
7
11
|
import {
|
|
8
12
|
groupTitleSx,
|
|
9
13
|
rootSx,
|
|
@@ -14,13 +18,9 @@ import {
|
|
|
14
18
|
import {
|
|
15
19
|
EN_US_DAY_RULER_LABELS
|
|
16
20
|
} from "./chunk-F2ZUUEXC.js";
|
|
17
|
-
import {
|
|
18
|
-
handleBlockKey,
|
|
19
|
-
keyCreateSpan
|
|
20
|
-
} from "./chunk-Y3F2F36I.js";
|
|
21
21
|
import {
|
|
22
22
|
useRulerDrag
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MAYAJXO6.js";
|
|
24
24
|
import {
|
|
25
25
|
DAY_RULER_METRICS
|
|
26
26
|
} from "./chunk-7ZQ3KQ7J.js";
|
|
@@ -125,4 +125,4 @@ function DayRuler(props) {
|
|
|
125
125
|
export {
|
|
126
126
|
DayRuler
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-KPUUHAK6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SPRING_CONFIG
|
|
3
|
-
} from "./chunk-IM4DMKH4.js";
|
|
4
1
|
import {
|
|
5
2
|
useDragGestures
|
|
6
3
|
} from "./chunk-CRN4KKNI.js";
|
|
4
|
+
import {
|
|
5
|
+
SPRING_CONFIG
|
|
6
|
+
} from "./chunk-IM4DMKH4.js";
|
|
7
7
|
|
|
8
8
|
// src/components/data-display/Sheet/Sheet.hooks.ts
|
|
9
9
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
useSheetDrag,
|
|
214
214
|
useSheetOpen
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-LYVTJLCF.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
useSheetDrag,
|
|
12
12
|
useSheetOpen
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LYVTJLCF.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_DRAG_RESISTANCE,
|
|
16
16
|
DEFAULT_VELOCITY_THRESHOLD,
|
|
@@ -143,4 +143,4 @@ var Sheet = (props) => {
|
|
|
143
143
|
export {
|
|
144
144
|
Sheet
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=chunk-
|
|
146
|
+
//# sourceMappingURL=chunk-LZ5PGB7U.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DAY_RULER_METRICS
|
|
3
|
-
} from "./chunk-7ZQ3KQ7J.js";
|
|
4
1
|
import {
|
|
5
2
|
createdSpan,
|
|
6
3
|
hourAt,
|
|
7
4
|
moved,
|
|
8
5
|
resized
|
|
9
6
|
} from "./chunk-LE5JYNR7.js";
|
|
7
|
+
import {
|
|
8
|
+
DAY_RULER_METRICS
|
|
9
|
+
} from "./chunk-7ZQ3KQ7J.js";
|
|
10
10
|
import {
|
|
11
11
|
useDragWindow,
|
|
12
12
|
useTrailingClick
|
|
@@ -101,4 +101,4 @@ function useRulerDrag(scale, handlers) {
|
|
|
101
101
|
export {
|
|
102
102
|
useRulerDrag
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-MAYAJXO6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GridShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XFZDO2KB.js";
|
|
4
4
|
import {
|
|
5
5
|
useDataViewsState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XBWW3QSI.js";
|
|
7
7
|
|
|
8
8
|
// src/components/data-display/DataViews/DataViewsGrid.tsx
|
|
9
9
|
import { useEffect, useRef } from "react";
|
|
@@ -27,4 +27,4 @@ function DataViewsGrid(props) {
|
|
|
27
27
|
export {
|
|
28
28
|
DataViewsGrid
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-MFX4ASX5.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RegionMapList
|
|
3
|
+
} from "./chunk-BRZKOUEL.js";
|
|
1
4
|
import {
|
|
2
5
|
RegionMapLegend
|
|
3
6
|
} from "./chunk-PBRCKHN3.js";
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
import {
|
|
8
11
|
useRegionMap
|
|
9
12
|
} from "./chunk-G2NVBCF7.js";
|
|
10
|
-
import {
|
|
11
|
-
RegionMapList
|
|
12
|
-
} from "./chunk-BRZKOUEL.js";
|
|
13
13
|
|
|
14
14
|
// src/components/data-display/RegionMap/RegionMap.tsx
|
|
15
15
|
import Box from "@mui/material/Box/index.js";
|
|
@@ -80,4 +80,4 @@ function RegionMap({
|
|
|
80
80
|
export {
|
|
81
81
|
RegionMap
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-N3GLX64O.js.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveIconPlacement
|
|
3
|
-
} from "./chunk-QXUXO22M.js";
|
|
4
|
-
import {
|
|
5
|
-
AlertContent
|
|
6
|
-
} from "./chunk-7HZ36QDH.js";
|
|
7
1
|
import {
|
|
8
2
|
alertEmphasisStyles,
|
|
9
3
|
alertLayoutStyles,
|
|
@@ -12,6 +6,12 @@ import {
|
|
|
12
6
|
getColorFromTheme,
|
|
13
7
|
getVariantIcon
|
|
14
8
|
} from "./chunk-L5RS6QAT.js";
|
|
9
|
+
import {
|
|
10
|
+
resolveIconPlacement
|
|
11
|
+
} from "./chunk-QXUXO22M.js";
|
|
12
|
+
import {
|
|
13
|
+
AlertContent
|
|
14
|
+
} from "./chunk-7HZ36QDH.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveAlertProps,
|
|
17
17
|
resolveAnnouncement,
|
|
@@ -277,4 +277,4 @@ export {
|
|
|
277
277
|
Alert,
|
|
278
278
|
ALERT_ONLY_PROPS
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=chunk-
|
|
280
|
+
//# sourceMappingURL=chunk-NQCTANF3.js.map
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
} from "./chunk-T7OIVPCO.js";
|
|
6
6
|
import {
|
|
7
7
|
MoreFilters
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F5H3WDG7.js";
|
|
9
9
|
import {
|
|
10
10
|
PillControl
|
|
11
11
|
} from "./chunk-AJ6KFHEE.js";
|
|
12
|
+
import {
|
|
13
|
+
QuickChip
|
|
14
|
+
} from "./chunk-AT6UKTH4.js";
|
|
12
15
|
import {
|
|
13
16
|
isQuickActive
|
|
14
17
|
} from "./chunk-KYUEO2IO.js";
|
|
15
18
|
import {
|
|
16
19
|
RangePill
|
|
17
20
|
} from "./chunk-3WYEENUH.js";
|
|
18
|
-
import {
|
|
19
|
-
QuickChip
|
|
20
|
-
} from "./chunk-AT6UKTH4.js";
|
|
21
21
|
import {
|
|
22
22
|
CollapsedSearch,
|
|
23
23
|
InlineKeyword
|
|
@@ -251,4 +251,4 @@ function FilterSlots({
|
|
|
251
251
|
export {
|
|
252
252
|
InlineFilterControls
|
|
253
253
|
};
|
|
254
|
-
//# sourceMappingURL=chunk-
|
|
254
|
+
//# sourceMappingURL=chunk-OM6ZT64U.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useLightboxCopy
|
|
3
|
+
} from "./chunk-TEQYTEM2.js";
|
|
1
4
|
import {
|
|
2
5
|
OVERLAY_Z_INDEX,
|
|
3
6
|
navButtonSx,
|
|
4
7
|
overlayButtonSx
|
|
5
8
|
} from "./chunk-VQU3CBAL.js";
|
|
6
|
-
import {
|
|
7
|
-
useLightboxCopy
|
|
8
|
-
} from "./chunk-TEQYTEM2.js";
|
|
9
9
|
import {
|
|
10
10
|
sxRem
|
|
11
11
|
} from "./chunk-YKCAJ2TN.js";
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
LightboxZoomControls,
|
|
157
157
|
LightboxAutoplayButton
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-P772HCHI.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
CHART_SEMANTIC_COLORS,
|
|
6
6
|
specToChartProps
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HQCZT6TO.js";
|
|
8
8
|
import {
|
|
9
9
|
accentFor
|
|
10
10
|
} from "./chunk-B7ZHEOQQ.js";
|
|
@@ -46,4 +46,4 @@ var SpecChart = ({
|
|
|
46
46
|
export {
|
|
47
47
|
SpecChart
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-R52N5UCS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Alert
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NQCTANF3.js";
|
|
4
4
|
|
|
5
5
|
// src/components/data-display/CardKit/card-actions-context.tsx
|
|
6
6
|
import { createContext, useCallback, useContext, useState } from "react";
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
CardActionsProvider,
|
|
59
59
|
useCardActions
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
61
|
+
//# sourceMappingURL=chunk-RCTHCXS6.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
LightboxCloseButton,
|
|
4
4
|
LightboxNavButtons,
|
|
5
5
|
LightboxZoomControls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P772HCHI.js";
|
|
7
7
|
|
|
8
8
|
// src/components/data-display/Lightbox/LightboxOverlay.tsx
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -60,4 +60,4 @@ var LightboxOverlay = ({
|
|
|
60
60
|
export {
|
|
61
61
|
LightboxOverlay
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-T2G4LDU5.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PillControl
|
|
3
3
|
} from "./chunk-AJ6KFHEE.js";
|
|
4
|
+
import {
|
|
5
|
+
QuickRow
|
|
6
|
+
} from "./chunk-AT6UKTH4.js";
|
|
4
7
|
import {
|
|
5
8
|
isQuickActive
|
|
6
9
|
} from "./chunk-KYUEO2IO.js";
|
|
7
10
|
import {
|
|
8
11
|
RangeBounds
|
|
9
12
|
} from "./chunk-FC7UCFFA.js";
|
|
10
|
-
import {
|
|
11
|
-
QuickRow
|
|
12
|
-
} from "./chunk-AT6UKTH4.js";
|
|
13
13
|
import {
|
|
14
14
|
isRangeSet
|
|
15
15
|
} from "./chunk-GCZJH4XL.js";
|
|
@@ -148,13 +148,18 @@ function fieldClearing({
|
|
|
148
148
|
clear: () => values.forEach((value) => onTogglePill(field.id, value, false))
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
+
var quickSx = (theme) => ({
|
|
152
|
+
mb: MORE_SPACING.underQuick,
|
|
153
|
+
[theme.breakpoints.up("sm")]: { mb: 1 },
|
|
154
|
+
"&:last-of-type": { mb: 0 }
|
|
155
|
+
});
|
|
151
156
|
function MoreQuick({
|
|
152
157
|
quick,
|
|
153
158
|
pills,
|
|
154
159
|
onToggleQuick,
|
|
155
160
|
testIdPrefix
|
|
156
161
|
}) {
|
|
157
|
-
return /* @__PURE__ */ jsx(default2, { sx:
|
|
162
|
+
return /* @__PURE__ */ jsx(default2, { sx: quickSx, children: /* @__PURE__ */ jsx(
|
|
158
163
|
QuickRow,
|
|
159
164
|
{
|
|
160
165
|
quick,
|
|
@@ -164,6 +169,45 @@ function MoreQuick({
|
|
|
164
169
|
}
|
|
165
170
|
) });
|
|
166
171
|
}
|
|
172
|
+
var MORE_SPACING = {
|
|
173
|
+
/** Under a group. */
|
|
174
|
+
underGroup: 1.5,
|
|
175
|
+
/** Under a shed quick chip, below `sm` (8px from `sm` up, as before). */
|
|
176
|
+
underQuick: 1.5,
|
|
177
|
+
/**
|
|
178
|
+
* The scroller's top inset (`data-views-more-filters.tsx`), at every width:
|
|
179
|
+
* the first group's overlay reaches into it. Not part of a responsive `p`,
|
|
180
|
+
* whose `xs` value is emitted as a media query and would win over it.
|
|
181
|
+
*/
|
|
182
|
+
aboveFirst: 1.5,
|
|
183
|
+
/** Under a group's header, below `sm`, applied or not, so nothing moves on apply. */
|
|
184
|
+
underHeader: 1.25,
|
|
185
|
+
/** Under a group's header from `sm` up, as it always was. */
|
|
186
|
+
underHeaderFromSm: 0.5,
|
|
187
|
+
reachUp: 1.5,
|
|
188
|
+
reachDown: 1.25,
|
|
189
|
+
reachSide: 0.25
|
|
190
|
+
};
|
|
191
|
+
var moreHeaderSx = (theme) => ({
|
|
192
|
+
display: "flex",
|
|
193
|
+
alignItems: "center",
|
|
194
|
+
gap: 1,
|
|
195
|
+
mb: MORE_SPACING.underHeader,
|
|
196
|
+
[theme.breakpoints.up("sm")]: { mb: MORE_SPACING.underHeaderFromSm }
|
|
197
|
+
});
|
|
198
|
+
var clearTargetSx = (theme) => ({
|
|
199
|
+
position: "relative",
|
|
200
|
+
[theme.breakpoints.up("sm")]: { position: "static" },
|
|
201
|
+
"&::before": {
|
|
202
|
+
content: '""',
|
|
203
|
+
position: "absolute",
|
|
204
|
+
top: `-${theme.spacing(MORE_SPACING.reachUp)}`,
|
|
205
|
+
bottom: `-${theme.spacing(MORE_SPACING.reachDown)}`,
|
|
206
|
+
left: `-${theme.spacing(MORE_SPACING.reachSide)}`,
|
|
207
|
+
right: `-${theme.spacing(MORE_SPACING.reachSide)}`,
|
|
208
|
+
[theme.breakpoints.up("sm")]: { display: "none" }
|
|
209
|
+
}
|
|
210
|
+
});
|
|
167
211
|
function MoreGroup({
|
|
168
212
|
field,
|
|
169
213
|
pills,
|
|
@@ -174,8 +218,8 @@ function MoreGroup({
|
|
|
174
218
|
}) {
|
|
175
219
|
const copy = useDataViewsCopy();
|
|
176
220
|
const { applied, clear } = fieldClearing({ field, pills, ranges, onTogglePill, onChangeRange });
|
|
177
|
-
return /* @__PURE__ */ jsxs(default2, { sx: { mb:
|
|
178
|
-
/* @__PURE__ */ jsxs(default2, { sx:
|
|
221
|
+
return /* @__PURE__ */ jsxs(default2, { sx: { mb: MORE_SPACING.underGroup, "&:last-of-type": { mb: 0 } }, children: [
|
|
222
|
+
/* @__PURE__ */ jsxs(default2, { sx: moreHeaderSx, children: [
|
|
179
223
|
/* @__PURE__ */ jsx(Text, { variant: "caption", as: "span", children: /* @__PURE__ */ jsxs(default2, { component: "span", sx: { color: "text.secondary" }, children: [
|
|
180
224
|
field.label,
|
|
181
225
|
field.group === "range" && isRangeSet(ranges[field.id] ?? {}) ? " \u2022" : ""
|
|
@@ -187,17 +231,20 @@ function MoreGroup({
|
|
|
187
231
|
type: "button",
|
|
188
232
|
onClick: clear,
|
|
189
233
|
"data-testid": `${testIdPrefix}-more-${field.id}-clear`,
|
|
190
|
-
sx:
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
234
|
+
sx: [
|
|
235
|
+
{
|
|
236
|
+
ml: "auto",
|
|
237
|
+
border: 0,
|
|
238
|
+
p: 0,
|
|
239
|
+
bgcolor: "transparent",
|
|
240
|
+
cursor: "pointer",
|
|
241
|
+
font: "inherit",
|
|
242
|
+
fontSize: sxRem(12),
|
|
243
|
+
color: "primary.main",
|
|
244
|
+
"&:hover": { textDecoration: "underline" }
|
|
245
|
+
},
|
|
246
|
+
clearTargetSx
|
|
247
|
+
],
|
|
201
248
|
children: copy.filters.clear
|
|
202
249
|
}
|
|
203
250
|
)
|
|
@@ -226,6 +273,9 @@ function MoreGroup({
|
|
|
226
273
|
export {
|
|
227
274
|
fieldClearing,
|
|
228
275
|
MoreQuick,
|
|
276
|
+
MORE_SPACING,
|
|
277
|
+
moreHeaderSx,
|
|
278
|
+
clearTargetSx,
|
|
229
279
|
MoreGroup
|
|
230
280
|
};
|
|
231
|
-
//# sourceMappingURL=chunk-
|
|
281
|
+
//# sourceMappingURL=chunk-VJIJCLUX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/data-display/DataViews/data-views-more-fields.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * ONE FIELD, RENDERED INSIDE THE \"MAIS\" PANEL.\n *\n * Split from `data-views-more-filters` at the file-size gate, along the seam\n * that was already there: that module is the trigger, the panel and its\n * footer — the chrome — and this is what goes in it.\n *\n * A field with one or two options renders FLAT: inside a panel there is no\n * space to win back, and two labelled checkboxes are faster than a dropdown\n * needing a second click. Past that — or whenever the field asks for a tree or\n * a search — it is the bar's own {@link PillControl}; see `sharesBarControl`.\n */\nimport Checkbox from \"@mui/material/Checkbox/index.js\";\nimport type { Theme } from \"@mui/material/styles/index.js\";\n\nimport { Box } from \"../../../mui/Box\";\nimport { Text } from \"../../typography/Text\";\n\nimport { PillControl } from \"./data-views-category-pill\";\nimport type { OverflowField } from \"./data-views-overflow\";\nimport { RangeBounds } from \"./data-views-range-pill\";\nimport { isRangeSet } from \"./data-views-range-values\";\nimport type { QuickFilterConfig, RangeValue } from \"./data-views-types\";\nimport { QuickRow } from \"./data-views-quick-chip\";\nimport { isQuickActive } from \"./data-views-overflow-fields\";\nimport { useDataViewsCopy } from \"./data-views-copy-context\";\nimport { fieldRadiusPx } from \"../../../tokens/field-radius\";\nimport { fieldHeight } from \"../../../tokens/field-height\";\nimport { fieldEdge } from \"../../../tokens/field-edge\";\nimport { sxRem } from \"../../../tokens/relative\";\n\n/** What each field's control needs, minus the panel's own chrome. */\nexport interface MoreFieldProps {\n pills: Record<string, string[]>;\n ranges: Record<string, RangeValue>;\n onTogglePill: (fieldId: string, value: string, checked: boolean) => void;\n onChangeRange: (fieldId: string, range: RangeValue) => void;\n /** Presses or releases a quick chip shed into the panel. */\n onToggleQuick?: (quick: QuickFilterConfig) => void;\n testIdPrefix: string;\n}\n\n/**\n * Above this many options a field is a DROPDOWN rather than a flat row of\n * checkboxes. Two options cost two lines and read faster laid out; a \"Cliente\"\n * with a dozen turns the panel into a scrolling wall and buries every field\n * under it, which is exactly what the overflow was meant to avoid.\n */\nconst INLINE_OPTION_LIMIT = 2;\n\n/**\n * Whether an overflowed pill keeps the SAME control it has on the bar.\n *\n * The panel used to build its own flat dropdown for every field past two\n * options, so a field's config only held while it fitted: `control:\n * \"category\"` lost its tree (subcategories flattened into one list, no\n * \"Marcar tudo\", no count footer) and `searchEnabled` lost its search, on\n * exactly the phone widths where most filters live in here. Anything the bar\n * would render as a dropdown now renders as the bar's own {@link PillControl};\n * only a plain two-option field — one that did not ask for a dropdown, a tree\n * or a search — stays a flat checkbox row, which is a panel layout rather than\n * a different control (the filter panel draws the same line).\n */\nfunction sharesBarControl<T extends Record<string, unknown>>(field: OverflowField<T>): boolean {\n const pill = field.pill;\n if (!pill) return false;\n return (\n pill.control === \"category\" ||\n pill.control === \"multiselect\" ||\n pill.searchEnabled === true ||\n pill.options.length > INLINE_OPTION_LIMIT\n );\n}\n\n/** One overflowed pill: the bar's control, or its options as checkboxes. */\nfunction OverflowPill<T extends Record<string, unknown>>({\n field,\n values,\n onTogglePill,\n onClear,\n testIdPrefix,\n}: {\n field: OverflowField<T>;\n values: string[];\n onTogglePill: (fieldId: string, value: string, checked: boolean) => void;\n onClear: () => void;\n testIdPrefix: string;\n}): React.JSX.Element {\n const testId = `${testIdPrefix}-more-${field.id}`;\n if (field.pill && sharesBarControl(field)) {\n return (\n <PillControl\n fieldId={field.id}\n pill={field.pill}\n selected={values}\n onTogglePill={onTogglePill}\n onClearField={onClear}\n testIdPrefix={testIdPrefix}\n testId={testId}\n />\n );\n }\n const onToggle = (value: string, checked: boolean) => onTogglePill(field.id, value, checked);\n return (\n <Box sx={{ display: \"flex\", flexWrap: \"wrap\", gap: 0.75 }}>\n {(field.pill?.options ?? []).map((option) => {\n const checked = values.includes(option.value);\n return (\n <Box\n key={option.value}\n component=\"label\"\n data-testid={`${testId}-${option.value}`}\n sx={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 0.25,\n pr: 1,\n border: 1,\n borderStyle: \"solid\",\n minHeight: fieldHeight,\n borderColor: (theme) => (checked ? theme.palette.primary.main : fieldEdge(theme)),\n bgcolor: checked ? \"action.selected\" : \"transparent\",\n borderRadius: fieldRadiusPx,\n cursor: \"pointer\",\n fontSize: sxRem(13),\n color: checked ? \"primary.main\" : \"text.secondary\",\n }}\n >\n <Checkbox\n size=\"small\"\n checked={checked}\n onChange={(event) => onToggle(option.value, event.target.checked)}\n inputProps={{ \"aria-label\": `${field.label}: ${option.label}` }}\n />\n {option.label}\n </Box>\n );\n })}\n </Box>\n );\n}\n\n\n/**\n * One overflowed range: its presets and its two bounds, as the same controls\n * the pill uses.\n *\n * The whole control DELEGATES to {@link RangeBounds} rather than being built\n * here, which is the point — this panel used to render a raw\n * `<input type=\"date\">`, so the masked `dd/mm/aaaa` field existed only while\n * the filter FITTED on the bar. The moment \"Data\" overflowed it reverted to the\n * native control the mask replaced, and a merchant on a narrow screen never saw\n * the fix at all (FUT-744). `Valor` had the twin bug: a bare `type=\"number\"`\n * plus `Number(raw)` dropped the decimal comma this panel is meant to accept.\n *\n * That also retires the intrinsic-width workaround this pair used to need — a\n * native date input reports a wide minimum (its own mask plus the picker\n * glyph), which is what made two of them refuse to shrink and scrolled the\n * panel sideways. A text input has no such minimum.\n *\n * `RangeBounds` renders the preset chips ITSELF, above the inputs. This panel\n * must NOT render its own row as well: when the delegation above landed, the\n * chips it used to draw by hand stayed behind, and \"Data\" showed Hoje/Ontem/\n * Esta semana/Este mês/Este ano twice — two rows, duplicated test ids, and half\n * the panel's height spent saying the same thing (FUT-751).\n */\nfunction OverflowRange<T extends Record<string, unknown>>({\n field,\n value,\n onChange,\n testIdPrefix,\n}: {\n field: OverflowField<T>;\n value: RangeValue;\n onChange: (range: RangeValue) => void;\n testIdPrefix: string;\n}): React.JSX.Element | null {\n // `group === \"range\"` is what selects this component, so `range` is always\n // set; the guard is for the type, not for a state the caller can reach.\n if (!field.range) return null;\n return (\n <RangeBounds\n field={field.range}\n value={value}\n onChange={onChange}\n testId={`${testIdPrefix}-more-${field.id}`}\n fillRow\n />\n );\n}\n\n/**\n * Whether a field has anything applied, and how to unapply it — the two shapes\n * (a pill's selected values, a range's bounds) answered in one place so the\n * group that renders them stays a renderer.\n */\nexport function fieldClearing<T extends Record<string, unknown>>({\n field,\n pills,\n ranges,\n onTogglePill,\n onChangeRange,\n}: {\n field: OverflowField<T>;\n} & Pick<MoreFieldProps, \"pills\" | \"ranges\" | \"onTogglePill\" | \"onChangeRange\">): {\n applied: boolean;\n clear: () => void;\n} {\n if (field.group === \"quick\" && field.quick) {\n const quick = field.quick;\n // A `default` chip lit by an empty field has nothing to clear.\n const applied = isQuickActive(quick, pills) && (pills[quick.fieldId]?.length ?? 0) > 0;\n return { applied, clear: () => onTogglePill(quick.fieldId, quick.value, false) };\n }\n if (field.group === \"range\") {\n return {\n applied: isRangeSet(ranges[field.id] ?? {}),\n clear: () => onChangeRange(field.id, {}),\n };\n }\n const values = pills[field.id] ?? [];\n return {\n applied: values.length > 0,\n clear: () => values.forEach((value) => onTogglePill(field.id, value, false)),\n };\n}\n\n\n/**\n * Under a shed quick chip: 12px below `sm`, the gap a following group's\n * \"Limpar\" target reaches into (its 8px let the target cover the chip's\n * label); 8px from `sm` up, as before.\n */\nconst quickSx = (theme: Theme) => ({\n mb: MORE_SPACING.underQuick,\n [theme.breakpoints.up(\"sm\")]: { mb: 1 },\n \"&:last-of-type\": { mb: 0 },\n});\n\n/**\n * A quick chip shed into the panel: its own line, because label and count are\n * already the whole control — no heading above it, no \"Limpar\" beside it.\n */\nexport function MoreQuick({\n quick,\n pills,\n onToggleQuick,\n testIdPrefix,\n}: {\n quick: QuickFilterConfig;\n} & Pick<MoreFieldProps, \"pills\" | \"onToggleQuick\" | \"testIdPrefix\">): React.JSX.Element {\n return (\n <Box sx={quickSx}>\n <QuickRow\n quick={quick}\n active={isQuickActive(quick, pills)}\n onToggle={() => onToggleQuick?.(quick)}\n testIdPrefix={testIdPrefix}\n />\n </Box>\n );\n}\n\n/**\n * The \"Mais\" panel's vertical rhythm, in the theme's spacing units: the unit\n * the header \"Limpar\"'s phone target reaches into (FUT-4144). The target is\n * the button's 18px of text plus `reachUp` and `reachDown`, 40px at the\n * default type scale, and it may never reach further than the gap that is\n * there: under the group or quick chip above it (or the scroller's own top\n * inset, for the first group) and under its own header. Sideways it reaches\n * into the header row's empty gap and the scroller's padding, so a 37px\n * \"Limpar\" is 41px wide.\n */\nexport const MORE_SPACING = {\n /** Under a group. */\n underGroup: 1.5,\n /** Under a shed quick chip, below `sm` (8px from `sm` up, as before). */\n underQuick: 1.5,\n /**\n * The scroller's top inset (`data-views-more-filters.tsx`), at every width:\n * the first group's overlay reaches into it. Not part of a responsive `p`,\n * whose `xs` value is emitted as a media query and would win over it.\n */\n aboveFirst: 1.5,\n /** Under a group's header, below `sm`, applied or not, so nothing moves on apply. */\n underHeader: 1.25,\n /** Under a group's header from `sm` up, as it always was. */\n underHeaderFromSm: 0.5,\n reachUp: 1.5,\n reachDown: 1.25,\n reachSide: 0.25,\n} as const;\n\n/** A group's header row: the field's name, and \"Limpar\" while it is applied. */\nexport const moreHeaderSx = (theme: Theme) => ({\n display: \"flex\",\n alignItems: \"center\",\n gap: 1,\n mb: MORE_SPACING.underHeader,\n [theme.breakpoints.up(\"sm\")]: { mb: MORE_SPACING.underHeaderFromSm },\n});\n\n/**\n * \"Limpar\" is 12px text, a 37×18 button: on a phone that was the whole target\n * (FUT-4144, measured in the admin at 320–900). Below `sm` an overlay makes it\n * at least 40×40 without moving the text, reaching only into gaps\n * {@link MORE_SPACING} guarantees, in the same unit, so it grows and shrinks\n * with them and covers nothing else. From `sm` up there is no overlay and the\n * button is exactly as it was.\n */\nexport const clearTargetSx = (theme: Theme) => ({\n position: \"relative\" as const,\n [theme.breakpoints.up(\"sm\")]: { position: \"static\" as const },\n \"&::before\": {\n content: '\"\"',\n position: \"absolute\" as const,\n top: `-${theme.spacing(MORE_SPACING.reachUp)}`,\n bottom: `-${theme.spacing(MORE_SPACING.reachDown)}`,\n left: `-${theme.spacing(MORE_SPACING.reachSide)}`,\n right: `-${theme.spacing(MORE_SPACING.reachSide)}`,\n [theme.breakpoints.up(\"sm\")]: { display: \"none\" },\n },\n});\n\n/** One labelled group in the panel: the field's name, then its control. */\nexport function MoreGroup<T extends Record<string, unknown>>({\n field,\n pills,\n ranges,\n onTogglePill,\n onChangeRange,\n testIdPrefix,\n}: {\n field: OverflowField<T>;\n} & MoreFieldProps): React.JSX.Element {\n const copy = useDataViewsCopy();\n const { applied, clear } = fieldClearing({ field, pills, ranges, onTogglePill, onChangeRange });\n return (\n <Box sx={{ mb: MORE_SPACING.underGroup, \"&:last-of-type\": { mb: 0 } }}>\n <Box sx={moreHeaderSx}>\n <Text variant=\"caption\" as=\"span\">\n <Box component=\"span\" sx={{ color: \"text.secondary\" }}>\n {field.label}\n {field.group === \"range\" && isRangeSet(ranges[field.id] ?? {}) ? \" •\" : \"\"}\n </Box>\n </Text>\n {/* The panel's equivalent of the pill's ✕. Without it a field applied\n in here could only be cleared by finding it again on the bar —\n which is where it goes the moment it becomes active, so the\n operator has to close this panel to undo what they just did. */}\n {applied && (\n <Box\n component=\"button\"\n type=\"button\"\n onClick={clear}\n data-testid={`${testIdPrefix}-more-${field.id}-clear`}\n sx={[\n {\n ml: \"auto\",\n border: 0,\n p: 0,\n bgcolor: \"transparent\",\n cursor: \"pointer\",\n font: \"inherit\",\n fontSize: sxRem(12),\n color: \"primary.main\",\n \"&:hover\": { textDecoration: \"underline\" },\n },\n clearTargetSx,\n ]}\n >\n {copy.filters.clear}\n </Box>\n )}\n </Box>\n {field.group === \"pill\" ? (\n <OverflowPill\n field={field}\n values={pills[field.id] ?? []}\n onTogglePill={onTogglePill}\n onClear={() => (pills[field.id] ?? []).forEach((v) => onTogglePill(field.id, v, false))}\n testIdPrefix={testIdPrefix}\n />\n ) : (\n <OverflowRange\n field={field}\n value={ranges[field.id] ?? {}}\n onChange={(range) => onChangeRange(field.id, range)}\n testIdPrefix={testIdPrefix}\n />\n )}\n </Box>\n );\n}\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,OAAO,cAAc;AA+Ef,cAiBI,YAjBJ;AA3CN,IAAM,sBAAsB;AAe5B,SAAS,iBAAoD,OAAkC;AAC7F,QAAM,OAAO,MAAM;AACnB,MAAI,CAAC,KAAM,QAAO;AAClB,SACE,KAAK,YAAY,cACjB,KAAK,YAAY,iBACjB,KAAK,kBAAkB,QACvB,KAAK,QAAQ,SAAS;AAE1B;AAGA,SAAS,aAAgD;AAAA,EACvD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAMsB;AACpB,QAAM,SAAS,GAAG,YAAY,SAAS,MAAM,EAAE;AAC/C,MAAI,MAAM,QAAQ,iBAAiB,KAAK,GAAG;AACzC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM;AAAA,QACf,MAAM,MAAM;AAAA,QACZ,UAAU;AAAA,QACV;AAAA,QACA,cAAc;AAAA,QACd;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AACA,QAAM,WAAW,CAAC,OAAe,YAAqB,aAAa,MAAM,IAAI,OAAO,OAAO;AAC3F,SACE,oBAACA,UAAA,EAAI,IAAI,EAAE,SAAS,QAAQ,UAAU,QAAQ,KAAK,KAAK,GACpD,iBAAM,MAAM,WAAW,CAAC,GAAG,IAAI,CAAC,WAAW;AAC3C,UAAM,UAAU,OAAO,SAAS,OAAO,KAAK;AAC5C,WACE;AAAA,MAACA;AA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V,MAAK;AAAA,UACL,SAAS;AAAA,UACT,eAAa,GAAG,YAAY,SAAS,MAAM,EAAE;AAAA,UAC7C,IAAI;AAAA,YACF;AAAA,cACE,IAAI;AAAA,cACJ,QAAQ;AAAA,cACR,GAAG;AAAA,cACH,SAAS;AAAA,cACT,QAAQ;AAAA,cACR,MAAM;AAAA,cACN,UAAU,MAAM,EAAE;AAAA,cAClB,OAAO;AAAA,cACP,WAAW,EAAE,gBAAgB,YAAY;AAAA,YAC3C;AAAA,YACA;AAAA,UACF;AAAA,UAEC,eAAK,QAAQ;AAAA;AAAA,MAChB;AAAA,OAEJ;AAAA,IACC,MAAM,UAAU,SACf;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,QAAQ,MAAM,MAAM,EAAE,KAAK,CAAC;AAAA,QAC5B;AAAA,QACA,SAAS,OAAO,MAAM,MAAM,EAAE,KAAK,CAAC,GAAG,QAAQ,CAAC,MAAM,aAAa,MAAM,IAAI,GAAG,KAAK,CAAC;AAAA,QACtF;AAAA;AAAA,IACF,IAEA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,OAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,QAC5B,UAAU,CAAC,UAAU,cAAc,MAAM,IAAI,KAAK;AAAA,QAClD;AAAA;AAAA,IACF;AAAA,KAEJ;AAEJ;","names":["default"]}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-4SQ2WCZA.js";
|
|
13
13
|
import {
|
|
14
14
|
Alert
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NQCTANF3.js";
|
|
16
16
|
|
|
17
17
|
// src/components/data-display/DataViews/data-views-table-parts.tsx
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
ViewsMenuSlot,
|
|
122
122
|
ViewDialogs
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-WJMSND5Q.js.map
|
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
filterRows
|
|
7
7
|
} from "./chunk-YGQX7BNI.js";
|
|
8
|
+
import {
|
|
9
|
+
useSelection
|
|
10
|
+
} from "./chunk-LLZWB32X.js";
|
|
8
11
|
import {
|
|
9
12
|
resolveScope,
|
|
10
13
|
useScopeConfigChecks
|
|
@@ -17,9 +20,6 @@ import {
|
|
|
17
20
|
serverDerived,
|
|
18
21
|
useServerQuery
|
|
19
22
|
} from "./chunk-IMLIIW77.js";
|
|
20
|
-
import {
|
|
21
|
-
useSelection
|
|
22
|
-
} from "./chunk-LLZWB32X.js";
|
|
23
23
|
import {
|
|
24
24
|
useClearFilters,
|
|
25
25
|
useStateWriters
|
|
@@ -178,4 +178,4 @@ function useDataViewsState({
|
|
|
178
178
|
export {
|
|
179
179
|
useDataViewsState
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-XBWW3QSI.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-MKVDHR3B.js";
|
|
8
8
|
import {
|
|
9
9
|
InlineFilterControls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OM6ZT64U.js";
|
|
11
11
|
import {
|
|
12
12
|
GridHeaderRow
|
|
13
13
|
} from "./chunk-X3AFXHY5.js";
|
|
@@ -252,4 +252,4 @@ function GridShell(props) {
|
|
|
252
252
|
export {
|
|
253
253
|
GridShell
|
|
254
254
|
};
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
255
|
+
//# sourceMappingURL=chunk-XFZDO2KB.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-L7BRU4UF.js";
|
|
9
9
|
import {
|
|
10
10
|
Alert
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQCTANF3.js";
|
|
12
12
|
import {
|
|
13
13
|
Button
|
|
14
14
|
} from "./chunk-YOXYSAUI.js";
|
|
@@ -106,4 +106,4 @@ NotificationStatusNotice.displayName = "NotificationStatusNotice";
|
|
|
106
106
|
export {
|
|
107
107
|
NotificationStatusNotice
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-YNZUYZ2O.js.map
|