@12-apps/ui 6.82.0 → 6.84.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 +7 -0
- 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/Carousel/Carousel.chrome.js +3 -3
- package/dist/_internal/components/data-display/Carousel/Carousel.js +5 -5
- package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +2 -2
- package/dist/_internal/components/data-display/Chart/Chart.js +3 -3
- package/dist/_internal/components/data-display/Chart/SpecChart.js +6 -6
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +2 -2
- package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +20 -19
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +21 -20
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-day-input.js +7 -3
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +5 -4
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +17 -16
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +7 -6
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +5 -4
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +6 -5
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +4 -3
- package/dist/_internal/components/data-display/DataViews/data-views-range-reset.js +9 -0
- package/dist/_internal/components/data-display/DataViews/data-views-range-reset.js.map +1 -0
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-writers.js +3 -1
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +2 -2
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +8 -8
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +7 -7
- package/dist/_internal/components/data-display/FleetMap/FleetMap.fixtures.js +1 -1
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +9 -9
- package/dist/_internal/components/data-display/MapPreview/MapControlBar.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +4 -4
- package/dist/_internal/components/data-display/MapPreview/MapMarkers.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapPreview.helpers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +6 -6
- package/dist/_internal/components/data-display/index.js +29 -29
- package/dist/_internal/components/form/CepField/CepField.js +1 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.hooks.js +3 -3
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +5 -5
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.range.js +2 -2
- package/dist/_internal/components/form/DateRangePicker/DateRangePickerFields.js +3 -3
- package/dist/_internal/components/form/InputOTP/InputOTP.hooks.js +1 -1
- package/dist/_internal/components/form/InputOTP/InputOTP.js +2 -2
- package/dist/_internal/components/form/index.js +8 -8
- package/dist/_internal/components/form/total-form/Fields/CepField.js +2 -2
- package/dist/_internal/components/form/total-form/Fields/TextField.js +1 -1
- package/dist/_internal/components/form/total-form/Fields/index.js +4 -4
- package/dist/_internal/components/index.js +37 -37
- package/dist/_internal/en-US.data-display.js +1 -1
- package/dist/_internal/pt-BR.data-display.js +1 -1
- package/dist/_internal/user-avatar/user-avatar.js +4 -4
- package/dist/charts.js +11 -11
- package/dist/{chunk-HF2WLLGH.js → chunk-2XI4R6UO.js} +2 -2
- package/dist/{chunk-HF2WLLGH.js.map → chunk-2XI4R6UO.js.map} +1 -1
- package/dist/{chunk-GYFKIPR2.js → chunk-4PUCT3RX.js} +2 -2
- package/dist/{chunk-JQSF3CUR.js → chunk-6HMDUUVJ.js} +2 -1
- package/dist/{chunk-JQSF3CUR.js.map → chunk-6HMDUUVJ.js.map} +1 -1
- package/dist/{chunk-THD3N4BJ.js → chunk-6ONQTXFM.js} +24 -5
- package/dist/chunk-6ONQTXFM.js.map +1 -0
- package/dist/{chunk-C2I7NQC4.js → chunk-74KCGLOU.js} +2 -2
- package/dist/{chunk-4J62V5OE.js → chunk-7YJYIMWP.js} +2 -2
- package/dist/{chunk-MT74NRLY.js → chunk-C2OX3C7L.js} +4 -4
- package/dist/{chunk-62XVHRTX.js → chunk-D7SOXI2K.js} +70 -21
- package/dist/chunk-D7SOXI2K.js.map +1 -0
- package/dist/{chunk-BO6IMK5P.js → chunk-DPHSJLMN.js} +2 -2
- package/dist/{chunk-7XSCEHGA.js → chunk-EOQ6EKTS.js} +7 -7
- package/dist/{chunk-4OTJ66ID.js → chunk-EXTES7LP.js} +15 -4
- package/dist/chunk-EXTES7LP.js.map +1 -0
- package/dist/{chunk-4IVEBBF6.js → chunk-FYJDI5BW.js} +4 -3
- package/dist/{chunk-4IVEBBF6.js.map → chunk-FYJDI5BW.js.map} +1 -1
- package/dist/{chunk-A5U7HEBI.js → chunk-GNDIVKWF.js} +4 -2
- package/dist/chunk-GNDIVKWF.js.map +1 -0
- package/dist/{chunk-XKPV52CG.js → chunk-GPTNZ57P.js} +2 -2
- package/dist/{chunk-ZGAOA7LN.js → chunk-H56CRMCM.js} +6 -6
- package/dist/{chunk-AMLHEKSV.js → chunk-HI7JPDD6.js} +5 -5
- package/dist/{chunk-JK3QB7MO.js → chunk-I54LHHZS.js} +2 -2
- package/dist/{chunk-GLAAX5JJ.js → chunk-I5NTADBO.js} +2 -1
- package/dist/{chunk-GLAAX5JJ.js.map → chunk-I5NTADBO.js.map} +1 -1
- package/dist/{chunk-LCGK22QQ.js → chunk-IKXCAYFH.js} +5 -5
- package/dist/{chunk-MLGAGZJ3.js → chunk-ILNAPS44.js} +8 -7
- package/dist/chunk-ILNAPS44.js.map +1 -0
- package/dist/{chunk-D22FGMGU.js → chunk-JIAIPOEV.js} +2 -2
- package/dist/{chunk-HQCZT6TO.js → chunk-JVOEVTCZ.js} +5 -5
- package/dist/{chunk-76IHYINM.js → chunk-KEBYZ2MO.js} +16 -9
- package/dist/chunk-KEBYZ2MO.js.map +1 -0
- package/dist/{chunk-JJNY5MZL.js → chunk-KG7OTJ26.js} +2 -2
- package/dist/{chunk-2ZMR3TZU.js → chunk-L6UTYEUS.js} +3 -3
- package/dist/{chunk-WWB43LWU.js → chunk-LOGSJH2Q.js} +2 -2
- package/dist/{chunk-YJPBNIEM.js → chunk-MGFTHOPG.js} +2 -2
- package/dist/{chunk-RB3R6BJL.js → chunk-O4G7QKDU.js} +2 -2
- package/dist/{chunk-DYHOBKPU.js → chunk-OA6T2ME3.js} +5 -5
- package/dist/{chunk-U5FOJBLG.js → chunk-OOLES6RR.js} +14 -2
- package/dist/chunk-OOLES6RR.js.map +1 -0
- package/dist/{chunk-YHKHHSZH.js → chunk-OQ554425.js} +3 -3
- package/dist/{chunk-54OJAOXC.js → chunk-PDSZN26U.js} +2 -2
- package/dist/{chunk-MNNIOQTQ.js → chunk-PGVGCDPD.js} +3 -3
- package/dist/{chunk-RDRXTH47.js → chunk-PWXDMP7G.js} +10 -6
- package/dist/chunk-PWXDMP7G.js.map +1 -0
- package/dist/{chunk-6ATXOJVQ.js → chunk-QADTI63U.js} +4 -4
- package/dist/{chunk-UETHX57J.js → chunk-R6L376KR.js} +21 -7
- package/dist/chunk-R6L376KR.js.map +1 -0
- package/dist/{chunk-SEUJNFOD.js → chunk-RLDTV5I2.js} +2 -2
- package/dist/{chunk-4UCXJYOO.js → chunk-RUQNKOSP.js} +4 -4
- package/dist/chunk-RUQNKOSP.js.map +1 -0
- package/dist/{chunk-7RG37FVT.js → chunk-RXKFPXVH.js} +29 -2
- package/dist/chunk-RXKFPXVH.js.map +1 -0
- package/dist/{chunk-KSJBFT4G.js → chunk-SGAHME6W.js} +3 -3
- package/dist/{chunk-SB2SEGR6.js → chunk-TIM4PXWN.js} +3 -3
- package/dist/{chunk-D4LMRSY7.js → chunk-UIWVSZ6I.js} +2 -2
- package/dist/{chunk-SMANO5OD.js → chunk-V2UJEICC.js} +3 -3
- package/dist/chunk-V2UJEICC.js.map +1 -0
- package/dist/{chunk-XATRYJ4Q.js → chunk-VQBY73QH.js} +4 -4
- package/dist/{chunk-SYERREN5.js → chunk-W2JYXZC2.js} +4 -4
- package/dist/{chunk-QCNUMOTL.js → chunk-YC2QYRNE.js} +9 -3
- package/dist/chunk-YC2QYRNE.js.map +1 -0
- package/dist/chunk-YOPMXGHY.js +23 -0
- package/dist/chunk-YOPMXGHY.js.map +1 -0
- package/dist/{chunk-QK3XXPBA.js → chunk-YWJCMGTE.js} +2 -2
- package/dist/{chunk-UQ6SAIX7.js → chunk-Z47SYKRX.js} +2 -2
- package/dist/data-display/Avatar.js +3 -3
- package/dist/data-display/CardKit.js +3 -3
- package/dist/data-display/Carousel.js +5 -5
- package/dist/data-display/Chart.js +11 -11
- package/dist/data-display/DataGrid.js +2 -2
- package/dist/data-display/DataViews.js +25 -24
- package/dist/data-display/FleetMap.js +9 -9
- package/dist/data-display/MapPreview.js +6 -6
- package/dist/en-US.js +1 -1
- package/dist/form/CepField.js +1 -1
- package/dist/form/DateRangePicker.js +5 -5
- package/dist/form/InputOTP.js +2 -2
- package/dist/form/total-form.js +4 -4
- package/dist/locales.js +2 -2
- package/dist/pt-BR.js +1 -1
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts +6 -0
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-day-input.d.ts +32 -5
- package/dist/types/components/data-display/DataViews/data-views-day-input.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-filter-panel.d.ts +6 -0
- package/dist/types/components/data-display/DataViews/data-views-filter-panel.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-grid-parts.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-inline-bar.d.ts +3 -1
- package/dist/types/components/data-display/DataViews/data-views-inline-bar.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-more-filters.d.ts +3 -1
- package/dist/types/components/data-display/DataViews/data-views-more-filters.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-range-pill.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-range-reset.d.ts +16 -0
- package/dist/types/components/data-display/DataViews/data-views-range-reset.d.ts.map +1 -0
- package/dist/types/components/data-display/DataViews/data-views-writers.d.ts +13 -0
- package/dist/types/components/data-display/DataViews/data-views-writers.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/use-data-views-state.d.ts +4 -0
- package/dist/types/components/data-display/DataViews/use-data-views-state.d.ts.map +1 -1
- package/dist/types/components/form/CepField/CepField.d.ts +2 -1
- package/dist/types/components/form/CepField/CepField.d.ts.map +1 -1
- package/dist/types/components/form/CepField/CepField.types.d.ts +24 -0
- package/dist/types/components/form/CepField/CepField.types.d.ts.map +1 -1
- package/dist/types/components/form/InputOTP/InputOTP.d.ts.map +1 -1
- package/dist/types/components/form/InputOTP/InputOTP.hooks.d.ts.map +1 -1
- package/dist/types/components/form/total-form/Fields/CepField.d.ts +11 -1
- package/dist/types/components/form/total-form/Fields/CepField.d.ts.map +1 -1
- package/dist/types/components/form/total-form/Fields/TextField.d.ts +22 -1
- package/dist/types/components/form/total-form/Fields/TextField.d.ts.map +1 -1
- package/dist/types/components/form/total-form/Fields/index.d.ts +1 -1
- package/dist/types/components/form/total-form/Fields/index.d.ts.map +1 -1
- package/dist/types/components/form/total-form/index.d.ts +1 -1
- package/dist/types/components/form/total-form/index.d.ts.map +1 -1
- package/dist/types/en-US.data-display.d.ts.map +1 -1
- package/dist/types/pt-BR.data-display.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-copy.ts +6 -0
- package/src/components/data-display/DataViews/data-views-day-input.tsx +134 -38
- package/src/components/data-display/DataViews/data-views-empty.tsx +1 -1
- package/src/components/data-display/DataViews/data-views-filter-panel.tsx +8 -2
- package/src/components/data-display/DataViews/data-views-grid-parts.tsx +3 -1
- package/src/components/data-display/DataViews/data-views-inline-bar.tsx +7 -0
- package/src/components/data-display/DataViews/data-views-more-filters.tsx +4 -1
- package/src/components/data-display/DataViews/data-views-range-pill.tsx +11 -3
- package/src/components/data-display/DataViews/data-views-range-reset.ts +34 -0
- package/src/components/data-display/DataViews/data-views-writers.ts +24 -1
- package/src/components/data-display/DataViews/use-data-views-state.ts +6 -1
- package/src/components/form/CepField/CepField.md +29 -2
- package/src/components/form/CepField/CepField.tsx +44 -7
- package/src/components/form/CepField/CepField.types.ts +24 -0
- package/src/components/form/InputOTP/InputOTP.hooks.ts +48 -9
- package/src/components/form/InputOTP/InputOTP.md +6 -1
- package/src/components/form/InputOTP/InputOTP.tsx +40 -1
- package/src/components/form/total-form/Fields/CepField.tsx +16 -0
- package/src/components/form/total-form/Fields/TextField.tsx +64 -1
- package/src/components/form/total-form/Fields/index.ts +1 -1
- package/src/components/form/total-form/index.ts +1 -1
- package/src/en-US.data-display.ts +1 -0
- package/src/pt-BR.data-display.ts +1 -0
- package/dist/chunk-4OTJ66ID.js.map +0 -1
- package/dist/chunk-4UCXJYOO.js.map +0 -1
- package/dist/chunk-62XVHRTX.js.map +0 -1
- package/dist/chunk-76IHYINM.js.map +0 -1
- package/dist/chunk-7RG37FVT.js.map +0 -1
- package/dist/chunk-A5U7HEBI.js.map +0 -1
- package/dist/chunk-MLGAGZJ3.js.map +0 -1
- package/dist/chunk-QCNUMOTL.js.map +0 -1
- package/dist/chunk-RDRXTH47.js.map +0 -1
- package/dist/chunk-SMANO5OD.js.map +0 -1
- package/dist/chunk-THD3N4BJ.js.map +0 -1
- package/dist/chunk-U5FOJBLG.js.map +0 -1
- package/dist/chunk-UETHX57J.js.map +0 -1
- /package/dist/{chunk-GYFKIPR2.js.map → chunk-4PUCT3RX.js.map} +0 -0
- /package/dist/{chunk-C2I7NQC4.js.map → chunk-74KCGLOU.js.map} +0 -0
- /package/dist/{chunk-4J62V5OE.js.map → chunk-7YJYIMWP.js.map} +0 -0
- /package/dist/{chunk-MT74NRLY.js.map → chunk-C2OX3C7L.js.map} +0 -0
- /package/dist/{chunk-BO6IMK5P.js.map → chunk-DPHSJLMN.js.map} +0 -0
- /package/dist/{chunk-7XSCEHGA.js.map → chunk-EOQ6EKTS.js.map} +0 -0
- /package/dist/{chunk-XKPV52CG.js.map → chunk-GPTNZ57P.js.map} +0 -0
- /package/dist/{chunk-ZGAOA7LN.js.map → chunk-H56CRMCM.js.map} +0 -0
- /package/dist/{chunk-AMLHEKSV.js.map → chunk-HI7JPDD6.js.map} +0 -0
- /package/dist/{chunk-JK3QB7MO.js.map → chunk-I54LHHZS.js.map} +0 -0
- /package/dist/{chunk-LCGK22QQ.js.map → chunk-IKXCAYFH.js.map} +0 -0
- /package/dist/{chunk-D22FGMGU.js.map → chunk-JIAIPOEV.js.map} +0 -0
- /package/dist/{chunk-HQCZT6TO.js.map → chunk-JVOEVTCZ.js.map} +0 -0
- /package/dist/{chunk-JJNY5MZL.js.map → chunk-KG7OTJ26.js.map} +0 -0
- /package/dist/{chunk-2ZMR3TZU.js.map → chunk-L6UTYEUS.js.map} +0 -0
- /package/dist/{chunk-WWB43LWU.js.map → chunk-LOGSJH2Q.js.map} +0 -0
- /package/dist/{chunk-YJPBNIEM.js.map → chunk-MGFTHOPG.js.map} +0 -0
- /package/dist/{chunk-RB3R6BJL.js.map → chunk-O4G7QKDU.js.map} +0 -0
- /package/dist/{chunk-DYHOBKPU.js.map → chunk-OA6T2ME3.js.map} +0 -0
- /package/dist/{chunk-YHKHHSZH.js.map → chunk-OQ554425.js.map} +0 -0
- /package/dist/{chunk-54OJAOXC.js.map → chunk-PDSZN26U.js.map} +0 -0
- /package/dist/{chunk-MNNIOQTQ.js.map → chunk-PGVGCDPD.js.map} +0 -0
- /package/dist/{chunk-6ATXOJVQ.js.map → chunk-QADTI63U.js.map} +0 -0
- /package/dist/{chunk-SEUJNFOD.js.map → chunk-RLDTV5I2.js.map} +0 -0
- /package/dist/{chunk-KSJBFT4G.js.map → chunk-SGAHME6W.js.map} +0 -0
- /package/dist/{chunk-SB2SEGR6.js.map → chunk-TIM4PXWN.js.map} +0 -0
- /package/dist/{chunk-D4LMRSY7.js.map → chunk-UIWVSZ6I.js.map} +0 -0
- /package/dist/{chunk-XATRYJ4Q.js.map → chunk-VQBY73QH.js.map} +0 -0
- /package/dist/{chunk-SYERREN5.js.map → chunk-W2JYXZC2.js.map} +0 -0
- /package/dist/{chunk-QK3XXPBA.js.map → chunk-YWJCMGTE.js.map} +0 -0
- /package/dist/{chunk-UQ6SAIX7.js.map → chunk-Z47SYKRX.js.map} +0 -0
|
@@ -64,8 +64,8 @@ import "../../../chunk-ZXHODKHH.js";
|
|
|
64
64
|
import "../../../chunk-3VMXOGGI.js";
|
|
65
65
|
import {
|
|
66
66
|
InputOTP
|
|
67
|
-
} from "../../../chunk-
|
|
68
|
-
import "../../../chunk-
|
|
67
|
+
} from "../../../chunk-EXTES7LP.js";
|
|
68
|
+
import "../../../chunk-R6L376KR.js";
|
|
69
69
|
import "../../../chunk-WOSUYOAU.js";
|
|
70
70
|
import "../../../chunk-ZB4VIVRS.js";
|
|
71
71
|
import {
|
|
@@ -92,7 +92,7 @@ import "../../../chunk-IYC7NPX7.js";
|
|
|
92
92
|
import "../../../chunk-6XLMTOJ3.js";
|
|
93
93
|
import {
|
|
94
94
|
CepField
|
|
95
|
-
} from "../../../chunk-
|
|
95
|
+
} from "../../../chunk-6ONQTXFM.js";
|
|
96
96
|
import "../../../chunk-BTGXHQX3.js";
|
|
97
97
|
import "../../../chunk-IDMG332I.js";
|
|
98
98
|
import {
|
|
@@ -121,19 +121,19 @@ import "../../../chunk-KES3HNSU.js";
|
|
|
121
121
|
import "../../../chunk-BN6POCYF.js";
|
|
122
122
|
import {
|
|
123
123
|
DateRangePicker
|
|
124
|
-
} from "../../../chunk-
|
|
124
|
+
} from "../../../chunk-SGAHME6W.js";
|
|
125
125
|
import "../../../chunk-6KKQHJE7.js";
|
|
126
|
-
import "../../../chunk-
|
|
126
|
+
import "../../../chunk-L6UTYEUS.js";
|
|
127
127
|
import {
|
|
128
128
|
DEFAULT_QUICK_RANGES,
|
|
129
129
|
DEFAULT_QUICK_RANGE_LABELS,
|
|
130
130
|
QUICK_RANGE_IDS,
|
|
131
131
|
createQuickRanges
|
|
132
132
|
} from "../../../chunk-R26WP22N.js";
|
|
133
|
-
import "../../../chunk-
|
|
133
|
+
import "../../../chunk-MGFTHOPG.js";
|
|
134
134
|
import {
|
|
135
135
|
resolveDayRange
|
|
136
|
-
} from "../../../chunk-
|
|
136
|
+
} from "../../../chunk-I54LHHZS.js";
|
|
137
137
|
import "../../../chunk-SUTOAW7I.js";
|
|
138
138
|
import "../../../chunk-573PQ6C6.js";
|
|
139
139
|
import {
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
} from "../../../chunk-FLJ3RIRP.js";
|
|
209
209
|
import "../../../chunk-TZ633UZA.js";
|
|
210
210
|
import "../../../chunk-OQ4IHRXM.js";
|
|
211
|
-
import "../../../chunk-
|
|
211
|
+
import "../../../chunk-D7SOXI2K.js";
|
|
212
212
|
import "../../../chunk-C3UKR3NT.js";
|
|
213
213
|
import {
|
|
214
214
|
Form,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
CepField
|
|
4
|
-
} from "../../../../../chunk-
|
|
4
|
+
} from "../../../../../chunk-YC2QYRNE.js";
|
|
5
5
|
import "../../../../../chunk-4XK6JQ4D.js";
|
|
6
6
|
import "../../../../../chunk-6XLMTOJ3.js";
|
|
7
|
-
import "../../../../../chunk-
|
|
7
|
+
import "../../../../../chunk-6ONQTXFM.js";
|
|
8
8
|
import "../../../../../chunk-BTGXHQX3.js";
|
|
9
9
|
import "../../../../../chunk-MO4FFK62.js";
|
|
10
10
|
import "../../../../../chunk-4AJY7HMH.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../../../chunk-
|
|
1
|
+
import "../../../../../chunk-V2UJEICC.js";
|
|
2
2
|
import {
|
|
3
3
|
CategoryField
|
|
4
4
|
} from "../../../../../chunk-Y3TD7HOY.js";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "../../../../../chunk-66QQ7YQN.js";
|
|
8
8
|
import {
|
|
9
9
|
TextField
|
|
10
|
-
} from "../../../../../chunk-
|
|
10
|
+
} from "../../../../../chunk-RXKFPXVH.js";
|
|
11
11
|
import {
|
|
12
12
|
SelectField
|
|
13
13
|
} from "../../../../../chunk-6LMYQJZP.js";
|
|
14
14
|
import {
|
|
15
15
|
CepField
|
|
16
|
-
} from "../../../../../chunk-
|
|
16
|
+
} from "../../../../../chunk-YC2QYRNE.js";
|
|
17
17
|
import "../../../../../chunk-4XK6JQ4D.js";
|
|
18
18
|
import "../../../../../chunk-ONMSTW4B.js";
|
|
19
19
|
import "../../../../../chunk-TR7ZA67L.js";
|
|
@@ -24,7 +24,7 @@ import "../../../../../chunk-WNIL2KTB.js";
|
|
|
24
24
|
import "../../../../../chunk-3XZZSHE5.js";
|
|
25
25
|
import "../../../../../chunk-IYC7NPX7.js";
|
|
26
26
|
import "../../../../../chunk-6XLMTOJ3.js";
|
|
27
|
-
import "../../../../../chunk-
|
|
27
|
+
import "../../../../../chunk-6ONQTXFM.js";
|
|
28
28
|
import "../../../../../chunk-BTGXHQX3.js";
|
|
29
29
|
import "../../../../../chunk-QYKDY4EI.js";
|
|
30
30
|
import "../../../../../chunk-MWPD2BXO.js";
|
|
@@ -290,8 +290,8 @@ import "../../chunk-ZXHODKHH.js";
|
|
|
290
290
|
import "../../chunk-3VMXOGGI.js";
|
|
291
291
|
import {
|
|
292
292
|
InputOTP
|
|
293
|
-
} from "../../chunk-
|
|
294
|
-
import "../../chunk-
|
|
293
|
+
} from "../../chunk-EXTES7LP.js";
|
|
294
|
+
import "../../chunk-R6L376KR.js";
|
|
295
295
|
import "../../chunk-WOSUYOAU.js";
|
|
296
296
|
import "../../chunk-ZB4VIVRS.js";
|
|
297
297
|
import {
|
|
@@ -318,7 +318,7 @@ import "../../chunk-IYC7NPX7.js";
|
|
|
318
318
|
import "../../chunk-6XLMTOJ3.js";
|
|
319
319
|
import {
|
|
320
320
|
CepField
|
|
321
|
-
} from "../../chunk-
|
|
321
|
+
} from "../../chunk-6ONQTXFM.js";
|
|
322
322
|
import "../../chunk-BTGXHQX3.js";
|
|
323
323
|
import "../../chunk-IDMG332I.js";
|
|
324
324
|
import {
|
|
@@ -347,19 +347,19 @@ import "../../chunk-KES3HNSU.js";
|
|
|
347
347
|
import "../../chunk-BN6POCYF.js";
|
|
348
348
|
import {
|
|
349
349
|
DateRangePicker
|
|
350
|
-
} from "../../chunk-
|
|
350
|
+
} from "../../chunk-SGAHME6W.js";
|
|
351
351
|
import "../../chunk-6KKQHJE7.js";
|
|
352
|
-
import "../../chunk-
|
|
352
|
+
import "../../chunk-L6UTYEUS.js";
|
|
353
353
|
import {
|
|
354
354
|
DEFAULT_QUICK_RANGES,
|
|
355
355
|
DEFAULT_QUICK_RANGE_LABELS,
|
|
356
356
|
QUICK_RANGE_IDS,
|
|
357
357
|
createQuickRanges
|
|
358
358
|
} from "../../chunk-R26WP22N.js";
|
|
359
|
-
import "../../chunk-
|
|
359
|
+
import "../../chunk-MGFTHOPG.js";
|
|
360
360
|
import {
|
|
361
361
|
resolveDayRange
|
|
362
|
-
} from "../../chunk-
|
|
362
|
+
} from "../../chunk-I54LHHZS.js";
|
|
363
363
|
import "../../chunk-SUTOAW7I.js";
|
|
364
364
|
import "../../chunk-SIZOJNB2.js";
|
|
365
365
|
import "../../chunk-NIF4IXQU.js";
|
|
@@ -570,16 +570,16 @@ import {
|
|
|
570
570
|
import "../../chunk-62FET2BM.js";
|
|
571
571
|
import {
|
|
572
572
|
Carousel
|
|
573
|
-
} from "../../chunk-
|
|
574
|
-
import "../../chunk-
|
|
573
|
+
} from "../../chunk-IKXCAYFH.js";
|
|
574
|
+
import "../../chunk-RUIV5TVA.js";
|
|
575
|
+
import "../../chunk-74KCGLOU.js";
|
|
575
576
|
import "../../chunk-Z64TMGYT.js";
|
|
576
577
|
import "../../chunk-6FDLBWTE.js";
|
|
577
578
|
import {
|
|
578
579
|
CarouselArrows,
|
|
579
580
|
CarouselIndicators,
|
|
580
581
|
CarouselThumbnails
|
|
581
|
-
} from "../../chunk-
|
|
582
|
-
import "../../chunk-RUIV5TVA.js";
|
|
582
|
+
} from "../../chunk-YWJCMGTE.js";
|
|
583
583
|
import "../../chunk-2GTORM5E.js";
|
|
584
584
|
import {
|
|
585
585
|
Chip
|
|
@@ -664,7 +664,7 @@ import {
|
|
|
664
664
|
} from "../../chunk-FLJ3RIRP.js";
|
|
665
665
|
import "../../chunk-TZ633UZA.js";
|
|
666
666
|
import "../../chunk-OQ4IHRXM.js";
|
|
667
|
-
import "../../chunk-
|
|
667
|
+
import "../../chunk-D7SOXI2K.js";
|
|
668
668
|
import "../../chunk-CN46HGXE.js";
|
|
669
669
|
import {
|
|
670
670
|
StackedModal
|
|
@@ -720,10 +720,10 @@ import "../../chunk-LV7LSPBF.js";
|
|
|
720
720
|
import "../../chunk-L5CPOEDP.js";
|
|
721
721
|
import {
|
|
722
722
|
DataGrid
|
|
723
|
-
} from "../../chunk-
|
|
723
|
+
} from "../../chunk-OA6T2ME3.js";
|
|
724
|
+
import "../../chunk-5RYPVYWP.js";
|
|
724
725
|
import "../../chunk-EARWC6PD.js";
|
|
725
726
|
import "../../chunk-LDROG4QI.js";
|
|
726
|
-
import "../../chunk-5RYPVYWP.js";
|
|
727
727
|
import "../../chunk-K6FW4YDA.js";
|
|
728
728
|
import "../../chunk-G3E66C6J.js";
|
|
729
729
|
import "../../chunk-SNCSGLJ6.js";
|
|
@@ -733,10 +733,10 @@ import {
|
|
|
733
733
|
import "../../chunk-RQWZYD6H.js";
|
|
734
734
|
import {
|
|
735
735
|
FleetMap
|
|
736
|
-
} from "../../chunk-
|
|
736
|
+
} from "../../chunk-JIAIPOEV.js";
|
|
737
737
|
import "../../chunk-ZCPSND5Y.js";
|
|
738
|
-
import "../../chunk-
|
|
739
|
-
import "../../chunk-
|
|
738
|
+
import "../../chunk-GPTNZ57P.js";
|
|
739
|
+
import "../../chunk-4PUCT3RX.js";
|
|
740
740
|
import "../../chunk-WPFVQVQC.js";
|
|
741
741
|
import {
|
|
742
742
|
freshnessOf,
|
|
@@ -754,22 +754,22 @@ import "../../chunk-EMPVMZAB.js";
|
|
|
754
754
|
import "../../chunk-7WDPC46N.js";
|
|
755
755
|
import {
|
|
756
756
|
MapPreview
|
|
757
|
-
} from "../../chunk-
|
|
758
|
-
import "../../chunk-
|
|
759
|
-
import "../../chunk-
|
|
757
|
+
} from "../../chunk-VQBY73QH.js";
|
|
758
|
+
import "../../chunk-KG7OTJ26.js";
|
|
759
|
+
import "../../chunk-OQ554425.js";
|
|
760
760
|
import "../../chunk-ZZ4MMUBY.js";
|
|
761
|
-
import "../../chunk-
|
|
761
|
+
import "../../chunk-RLDTV5I2.js";
|
|
762
762
|
import "../../chunk-UAOE3ZPC.js";
|
|
763
763
|
import "../../chunk-LTSVYILY.js";
|
|
764
764
|
import "../../chunk-EMSMJRP3.js";
|
|
765
765
|
import "../../chunk-Y4KR4LT2.js";
|
|
766
|
-
import "../../chunk-
|
|
766
|
+
import "../../chunk-UIWVSZ6I.js";
|
|
767
767
|
import "../../chunk-QSRZOXQI.js";
|
|
768
768
|
import "../../chunk-5NT2M2JI.js";
|
|
769
769
|
import "../../chunk-H2J2MTRE.js";
|
|
770
770
|
import "../../chunk-4YYFZ6TE.js";
|
|
771
771
|
import "../../chunk-CB6DTWD5.js";
|
|
772
|
-
import "../../chunk-
|
|
772
|
+
import "../../chunk-I5NTADBO.js";
|
|
773
773
|
import "../../chunk-AA2X5GOT.js";
|
|
774
774
|
import "../../chunk-PZS7N74L.js";
|
|
775
775
|
import {
|
|
@@ -815,14 +815,11 @@ import "../../chunk-LC6ND4ET.js";
|
|
|
815
815
|
import "../../chunk-5KLSLD72.js";
|
|
816
816
|
import {
|
|
817
817
|
SpecChart
|
|
818
|
-
} from "../../chunk-
|
|
818
|
+
} from "../../chunk-TIM4PXWN.js";
|
|
819
819
|
import {
|
|
820
820
|
Chart
|
|
821
|
-
} from "../../chunk-
|
|
822
|
-
import "../../chunk-
|
|
823
|
-
import "../../chunk-TZC6KIK2.js";
|
|
824
|
-
import "../../chunk-TCWISGSS.js";
|
|
825
|
-
import "../../chunk-SOHQPPYJ.js";
|
|
821
|
+
} from "../../chunk-HI7JPDD6.js";
|
|
822
|
+
import "../../chunk-QADTI63U.js";
|
|
826
823
|
import {
|
|
827
824
|
ChartContainer,
|
|
828
825
|
ChartLegend,
|
|
@@ -830,21 +827,24 @@ import {
|
|
|
830
827
|
ChartTooltip,
|
|
831
828
|
ChartTooltipContent
|
|
832
829
|
} from "../../chunk-RIRTW5EU.js";
|
|
830
|
+
import "../../chunk-TZC6KIK2.js";
|
|
831
|
+
import "../../chunk-TCWISGSS.js";
|
|
832
|
+
import "../../chunk-SOHQPPYJ.js";
|
|
833
833
|
import {
|
|
834
834
|
CHART_SEMANTIC_COLORS,
|
|
835
835
|
ChartSpecError,
|
|
836
836
|
parseChartSpec,
|
|
837
837
|
specToChartProps
|
|
838
|
-
} from "../../chunk-
|
|
839
|
-
import {
|
|
840
|
-
chartValueFormatter,
|
|
841
|
-
formatChartValue
|
|
842
|
-
} from "../../chunk-6GPNZSAE.js";
|
|
838
|
+
} from "../../chunk-JVOEVTCZ.js";
|
|
843
839
|
import {
|
|
844
840
|
getChartSpecRenderer,
|
|
845
841
|
getRegisteredChartSpecTypes,
|
|
846
842
|
registerChartSpecRenderer
|
|
847
843
|
} from "../../chunk-WKUA6P3W.js";
|
|
844
|
+
import {
|
|
845
|
+
chartValueFormatter,
|
|
846
|
+
formatChartValue
|
|
847
|
+
} from "../../chunk-6GPNZSAE.js";
|
|
848
848
|
import "../../chunk-6GP2DOOO.js";
|
|
849
849
|
import {
|
|
850
850
|
Heading
|
|
@@ -860,11 +860,11 @@ import "../../chunk-DVRNW33K.js";
|
|
|
860
860
|
import {
|
|
861
861
|
Avatar,
|
|
862
862
|
AvatarGroup
|
|
863
|
-
} from "../../chunk-
|
|
863
|
+
} from "../../chunk-7YJYIMWP.js";
|
|
864
864
|
import "../../chunk-3ZVUNSFF.js";
|
|
865
|
-
import "../../chunk-
|
|
866
|
-
import "../../chunk-MTEQEPNY.js";
|
|
865
|
+
import "../../chunk-EOQ6EKTS.js";
|
|
867
866
|
import "../../chunk-6ZZGK5DT.js";
|
|
867
|
+
import "../../chunk-MTEQEPNY.js";
|
|
868
868
|
import "../../chunk-VUHLNYAE.js";
|
|
869
869
|
import "../../chunk-2GSIEDGN.js";
|
|
870
870
|
import {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
UserAvatar,
|
|
4
4
|
UserMenu
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-DPHSJLMN.js";
|
|
6
6
|
import "../../chunk-DQ22UKMZ.js";
|
|
7
7
|
import "../../chunk-UDQSIRAP.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-7YJYIMWP.js";
|
|
9
9
|
import "../../chunk-3ZVUNSFF.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-MTEQEPNY.js";
|
|
10
|
+
import "../../chunk-EOQ6EKTS.js";
|
|
12
11
|
import "../../chunk-6ZZGK5DT.js";
|
|
12
|
+
import "../../chunk-MTEQEPNY.js";
|
|
13
13
|
import "../../chunk-VUHLNYAE.js";
|
|
14
14
|
import "../../chunk-2GSIEDGN.js";
|
|
15
15
|
import "../../chunk-W2RXXF7K.js";
|
package/dist/charts.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import "./chunk-5KLSLD72.js";
|
|
2
2
|
import {
|
|
3
3
|
SpecChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TIM4PXWN.js";
|
|
5
5
|
import {
|
|
6
6
|
Chart
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-TZC6KIK2.js";
|
|
10
|
-
import "./chunk-TCWISGSS.js";
|
|
11
|
-
import "./chunk-SOHQPPYJ.js";
|
|
7
|
+
} from "./chunk-HI7JPDD6.js";
|
|
8
|
+
import "./chunk-QADTI63U.js";
|
|
12
9
|
import {
|
|
13
10
|
ChartContainer,
|
|
14
11
|
ChartLegend,
|
|
@@ -16,21 +13,24 @@ import {
|
|
|
16
13
|
ChartTooltip,
|
|
17
14
|
ChartTooltipContent
|
|
18
15
|
} from "./chunk-RIRTW5EU.js";
|
|
16
|
+
import "./chunk-TZC6KIK2.js";
|
|
17
|
+
import "./chunk-TCWISGSS.js";
|
|
18
|
+
import "./chunk-SOHQPPYJ.js";
|
|
19
19
|
import {
|
|
20
20
|
CHART_SEMANTIC_COLORS,
|
|
21
21
|
ChartSpecError,
|
|
22
22
|
parseChartSpec,
|
|
23
23
|
specToChartProps
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
chartValueFormatter,
|
|
27
|
-
formatChartValue
|
|
28
|
-
} from "./chunk-6GPNZSAE.js";
|
|
24
|
+
} from "./chunk-JVOEVTCZ.js";
|
|
29
25
|
import {
|
|
30
26
|
getChartSpecRenderer,
|
|
31
27
|
getRegisteredChartSpecTypes,
|
|
32
28
|
registerChartSpecRenderer
|
|
33
29
|
} from "./chunk-WKUA6P3W.js";
|
|
30
|
+
import {
|
|
31
|
+
chartValueFormatter,
|
|
32
|
+
formatChartValue
|
|
33
|
+
} from "./chunk-6GPNZSAE.js";
|
|
34
34
|
import "./chunk-B7ZHEOQQ.js";
|
|
35
35
|
import "./chunk-ENRB6PIN.js";
|
|
36
36
|
import "./chunk-25MSGLNU.js";
|
|
@@ -85,7 +85,7 @@ function ShellEmpty({
|
|
|
85
85
|
DataViewsEmpty,
|
|
86
86
|
{
|
|
87
87
|
filtered: c.activeFilterCount > 0 || c.state.search !== "",
|
|
88
|
-
onClearFilters:
|
|
88
|
+
onClearFilters: c.clearFilters,
|
|
89
89
|
emptyState,
|
|
90
90
|
testIdPrefix
|
|
91
91
|
}
|
|
@@ -96,4 +96,4 @@ export {
|
|
|
96
96
|
DataViewsEmpty,
|
|
97
97
|
ShellEmpty
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-2XI4R6UO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/data-display/DataViews/data-views-empty.tsx"],"sourcesContent":["\"use client\";\n\nimport FilterAltOffRoundedIcon from \"@mui/icons-material/FilterAltOffRounded\";\nimport InboxRoundedIcon from \"@mui/icons-material/InboxRounded\";\n\nimport { Button } from \"../../form/Button\";\nimport { Box } from \"../../../mui/Box\";\nimport { sxRem } from \"../../../tokens/relative\";\nimport { Text } from \"../../typography/Text\";\n\nimport { useDataViewsCopy } from \"./data-views-copy-context\";\nimport type { DataViewsController } from \"./use-data-views-state\";\n\n/**\n * TWO EMPTY STATES, NOT ONE.\n *\n * \"Nenhum pagamento registrado\" under an active filter is a lie, and it is the\n * expensive kind: the operator reads it as \"this store has no payments\" and\n * goes looking for the bug somewhere else. The page's own empty copy answers\n * \"there is nothing here yet\"; it cannot answer \"nothing matches what you\n * typed\", because it does not know what was typed.\n *\n * So the grid renders the FILTERED variant itself — it is the only party that\n * knows a filter is applied — and defers to the host's `emptyState` only when\n * the list is genuinely empty. The filtered one carries the way out, which is\n * the whole point: the fix is one click, and it is right there.\n */\nexport function DataViewsEmpty({\n filtered,\n onClearFilters,\n emptyState,\n testIdPrefix,\n}: {\n /** Is anything narrowing the list right now (search, pills or ranges)? */\n filtered: boolean;\n onClearFilters: () => void;\n /** The page's own copy for a genuinely empty list. */\n emptyState?: React.ReactNode;\n testIdPrefix: string;\n}): React.JSX.Element {\n const copy = useDataViewsCopy();\n const Icon = filtered ? FilterAltOffRoundedIcon : InboxRoundedIcon;\n return (\n <Box\n data-testid={`${testIdPrefix}-empty${filtered ? \"-filtered\" : \"\"}`}\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n textAlign: \"center\",\n py: 8,\n px: 2,\n }}\n >\n <Box\n sx={{\n display: \"inline-flex\",\n p: 2,\n mb: 1.5,\n borderRadius: \"50%\",\n bgcolor: \"action.hover\",\n color: \"text.disabled\",\n }}\n >\n <Icon />\n </Box>\n {filtered ? (\n <>\n <Text variant=\"body\" as=\"p\">\n <Box component=\"span\" sx={{ fontWeight: 600 }}>\n {copy.grid.emptyFilteredTitle}\n </Box>\n </Text>\n <Text variant=\"caption\" as=\"p\">\n <Box component=\"span\" sx={{ display: \"block\", mt: 0.5, mb: 2, color: \"text.secondary\", maxWidth: sxRem(380) }}>\n {copy.grid.emptyFilteredHint}\n </Box>\n </Text>\n <Button\n variant=\"outline\"\n size=\"sm\"\n color=\"secondary\"\n onClick={onClearFilters}\n dataTestId={`${testIdPrefix}-empty-clear`}\n >\n {copy.grid.emptyFilteredAction}\n </Button>\n </>\n ) : (\n // The page's own words for \"nothing here yet\" — it knows what the\n // entity is and how one comes to exist; this component does not.\n emptyState\n )}\n </Box>\n );\n}\n\n/**\n * The grid renders the FILTERED empty state itself — it is the only party that\n * knows a filter is applied. See {@link DataViewsEmpty}.\n */\nexport function ShellEmpty<T extends Record<string, unknown>>({\n c,\n emptyState,\n testIdPrefix,\n}: {\n c: DataViewsController<T>;\n emptyState?: React.ReactNode;\n testIdPrefix: string;\n}): React.JSX.Element {\n return (\n <DataViewsEmpty\n filtered={c.activeFilterCount > 0 || c.state.search !== \"\"}\n onClearFilters={
|
|
1
|
+
{"version":3,"sources":["../src/components/data-display/DataViews/data-views-empty.tsx"],"sourcesContent":["\"use client\";\n\nimport FilterAltOffRoundedIcon from \"@mui/icons-material/FilterAltOffRounded\";\nimport InboxRoundedIcon from \"@mui/icons-material/InboxRounded\";\n\nimport { Button } from \"../../form/Button\";\nimport { Box } from \"../../../mui/Box\";\nimport { sxRem } from \"../../../tokens/relative\";\nimport { Text } from \"../../typography/Text\";\n\nimport { useDataViewsCopy } from \"./data-views-copy-context\";\nimport type { DataViewsController } from \"./use-data-views-state\";\n\n/**\n * TWO EMPTY STATES, NOT ONE.\n *\n * \"Nenhum pagamento registrado\" under an active filter is a lie, and it is the\n * expensive kind: the operator reads it as \"this store has no payments\" and\n * goes looking for the bug somewhere else. The page's own empty copy answers\n * \"there is nothing here yet\"; it cannot answer \"nothing matches what you\n * typed\", because it does not know what was typed.\n *\n * So the grid renders the FILTERED variant itself — it is the only party that\n * knows a filter is applied — and defers to the host's `emptyState` only when\n * the list is genuinely empty. The filtered one carries the way out, which is\n * the whole point: the fix is one click, and it is right there.\n */\nexport function DataViewsEmpty({\n filtered,\n onClearFilters,\n emptyState,\n testIdPrefix,\n}: {\n /** Is anything narrowing the list right now (search, pills or ranges)? */\n filtered: boolean;\n onClearFilters: () => void;\n /** The page's own copy for a genuinely empty list. */\n emptyState?: React.ReactNode;\n testIdPrefix: string;\n}): React.JSX.Element {\n const copy = useDataViewsCopy();\n const Icon = filtered ? FilterAltOffRoundedIcon : InboxRoundedIcon;\n return (\n <Box\n data-testid={`${testIdPrefix}-empty${filtered ? \"-filtered\" : \"\"}`}\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n textAlign: \"center\",\n py: 8,\n px: 2,\n }}\n >\n <Box\n sx={{\n display: \"inline-flex\",\n p: 2,\n mb: 1.5,\n borderRadius: \"50%\",\n bgcolor: \"action.hover\",\n color: \"text.disabled\",\n }}\n >\n <Icon />\n </Box>\n {filtered ? (\n <>\n <Text variant=\"body\" as=\"p\">\n <Box component=\"span\" sx={{ fontWeight: 600 }}>\n {copy.grid.emptyFilteredTitle}\n </Box>\n </Text>\n <Text variant=\"caption\" as=\"p\">\n <Box component=\"span\" sx={{ display: \"block\", mt: 0.5, mb: 2, color: \"text.secondary\", maxWidth: sxRem(380) }}>\n {copy.grid.emptyFilteredHint}\n </Box>\n </Text>\n <Button\n variant=\"outline\"\n size=\"sm\"\n color=\"secondary\"\n onClick={onClearFilters}\n dataTestId={`${testIdPrefix}-empty-clear`}\n >\n {copy.grid.emptyFilteredAction}\n </Button>\n </>\n ) : (\n // The page's own words for \"nothing here yet\" — it knows what the\n // entity is and how one comes to exist; this component does not.\n emptyState\n )}\n </Box>\n );\n}\n\n/**\n * The grid renders the FILTERED empty state itself — it is the only party that\n * knows a filter is applied. See {@link DataViewsEmpty}.\n */\nexport function ShellEmpty<T extends Record<string, unknown>>({\n c,\n emptyState,\n testIdPrefix,\n}: {\n c: DataViewsController<T>;\n emptyState?: React.ReactNode;\n testIdPrefix: string;\n}): React.JSX.Element {\n return (\n <DataViewsEmpty\n filtered={c.activeFilterCount > 0 || c.state.search !== \"\"}\n onClearFilters={c.clearFilters}\n emptyState={emptyState}\n testIdPrefix={testIdPrefix}\n />\n );\n}\n\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA,OAAO,6BAA6B;AACpC,OAAO,sBAAsB;AA6DrB,SAGA,UAHA,KAGA,YAHA;AArCD,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAOsB;AACpB,QAAM,OAAO,iBAAiB;AAC9B,QAAM,OAAO,WAAW,0BAA0B;AAClD,SACE;AAAA,IAACA;AAAA,IAAA;AAAA,MACC,eAAa,GAAG,YAAY,SAAS,WAAW,cAAc,EAAE;AAAA,MAChE,IAAI;AAAA,QACF,SAAS;AAAA,QACT,eAAe;AAAA,QACf,YAAY;AAAA,Q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5
|
// src/components/data-display/FleetMap/FleetCanvas.tsx
|
|
6
6
|
import Box from "@mui/material/Box/index.js";
|
|
@@ -38,4 +38,4 @@ function FleetCanvas({
|
|
|
38
38
|
export {
|
|
39
39
|
FleetCanvas
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-4PUCT3RX.js.map
|
|
@@ -190,6 +190,7 @@ var PT_BR_DATA_VIEWS_COPY = {
|
|
|
190
190
|
rangeInclusiveNote: "Ambas as datas entram no resultado.",
|
|
191
191
|
rangeStart: "De",
|
|
192
192
|
dayMask: "dd/mm/aaaa",
|
|
193
|
+
dayInvalid: "Essa data n\xE3o existe.",
|
|
193
194
|
clearAllFilters: "Limpar todos os filtros",
|
|
194
195
|
rangePresets: {
|
|
195
196
|
hoje: "Hoje",
|
|
@@ -261,4 +262,4 @@ export {
|
|
|
261
262
|
PT_BR_DATA_STATE_COPY,
|
|
262
263
|
PT_BR_DATA_VIEWS_COPY
|
|
263
264
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
265
|
+
//# sourceMappingURL=chunk-6HMDUUVJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/pt-BR.data-display.ts"],"sourcesContent":["/**\n * The pt-BR pack for the data-display family. Split out of `pt-BR.ts`, which is a\n * barrel over this folder — see that file for why.\n */\nimport type { DataViewsCopy } from \"./components/data-display/DataViews/data-views-copy\";\nimport type {\n CarouselCopy,\n DataGridCopy,\n DataStateCopy,\n LightboxCopy,\n MapPreviewCopy,\n TimingDiagramCopy,\n} from './copy';\nimport { PT_BR_TABLE_FILTER_COPY } from './pt-BR.layout';\nimport {\n PT_BR_CATEGORY_SELECT_COPY,\n PT_BR_CONFIRM_ACTION_COPY,\n PT_BR_SAVED_VIEWS_LABELS,\n} from './pt-BR.shared';\n\nexport const PT_BR_LIGHTBOX_COPY: LightboxCopy = {\n close: \"Fechar\",\n previous: \"Anterior\",\n next: \"Próximo\",\n zoomIn: \"Aproximar\",\n zoomOut: \"Afastar\",\n resetZoom: \"Restaurar o zoom\",\n play: \"Iniciar a apresentação\",\n pause: \"Pausar a apresentação\",\n dialogLabel: \"Galeria de imagens\",\n itemPosition: (index, total) => `Item ${index} de ${total}`,\n videoFallback: (index, total) => `Vídeo ${index} de ${total}`,\n imageFallback: (index, total) => `Imagem ${index} de ${total}`,\n thumbnailFallback: (index) => `Miniatura ${index}`,\n};\n\nexport const PT_BR_DATA_GRID_COPY: DataGridCopy = {\n sortBy: (header) => `Ordenar por ${header}`,\n selectRow: (rowNumber) => `Selecionar linha ${rowNumber}`,\n selectAllRows: \"Selecionar todas as linhas\",\n expandRow: \"Expandir linha\",\n collapseRow: \"Recolher linha\",\n gridLabel: \"Grade de dados\",\n};\n\nexport const PT_BR_MAP_PREVIEW_COPY: Required<MapPreviewCopy> = {\n zoomIn: \"Aproximar\",\n zoomOut: \"Afastar\",\n center: \"Centralizar o mapa\",\n mapType: \"Trocar o tipo de mapa\",\n fullscreen: \"Tela cheia\",\n search: \"Buscar endereço\",\n searchPlaceholder: \"Buscar local...\",\n viewDescription: (lat, lng, zoom) => `Mapa centralizado em ${lat}, ${lng}, zoom ${zoom}`,\n mapTypeTitle: (name) => `Tipo de mapa: ${name}`,\n mapTypeNames: { roadmap: \"mapa\", satellite: \"satélite\", hybrid: \"híbrido\", terrain: \"relevo\" },\n coordinates: (lat, lng) => `Lat.: ${lat}, Long.: ${lng}`,\n zoomLevel: (zoom) => `Zoom: ${zoom}`,\n};\n\nexport const PT_BR_CAROUSEL_COPY: Required<CarouselCopy> = {\n previous: \"Anterior\",\n next: \"Próximo\",\n goToSlide: (position) => `Ir para o slide ${position}`,\n};\n\nexport const PT_BR_TIMING_DIAGRAM_COPY: TimingDiagramCopy = {\n regionLabel: \"Diagrama de tempos\",\n heading: \"Tempo da requisição\",\n dns: \"Busca de DNS\",\n connect: \"Conexão\",\n ssl: \"SSL/TLS\",\n request: \"Requisição\",\n response: \"Resposta\",\n total: (formatted) => `Total: ${formatted}`,\n totalTime: (formatted) => `Tempo total: ${formatted}`,\n};\n\nexport const PT_BR_DATA_STATE_COPY: DataStateCopy = {\n empty: \"Nenhum dado por aqui\",\n loading: \"Carregando…\",\n endOfList: \"Não há mais itens para carregar\",\n dismissAlert: \"Fechar o aviso\",\n dismissBanner: \"Fechar a faixa\",\n};\n\nexport const PT_BR_DATA_VIEWS_COPY: DataViewsCopy = {\n savedViewsMenu: PT_BR_SAVED_VIEWS_LABELS,\n confirmAction: PT_BR_CONFIRM_ACTION_COPY,\n categorySelect: PT_BR_CATEGORY_SELECT_COPY,\n board: {\n countOnPage: (label, count) => `${label}: ${count} nesta página`,\n onThisPage: (count) => `${count} nesta página`,\n pageSum: (sum) => `Soma desta página: ${sum}`,\n emptyColumn: \"Nada nesta etapa\",\n pageScopeNote:\n \"As contagens e somas abaixo referem-se apenas aos itens desta página.\",\n },\n deleteView: {\n title: \"Excluir visão\",\n target: (viewName) => `Excluir \"${viewName}\"?`,\n sharedWarning: \"Esta visão está compartilhada — a equipe perderá o acesso a ela.\",\n rowsUnaffected: (entityLabel) =>\n `${entityLabel} não são afetados; apenas o recorte salvo é removido.`,\n entityFallback: \"Os registros\",\n confirm: \"Excluir visão\",\n cancel: \"Cancelar\",\n },\n manageViews: {\n title: \"Gerenciar visões\",\n empty: \"Nenhuma visão salva.\",\n edit: \"Editar\",\n defaultTag: \"Padrão\",\n otherUserTag: \"De outro usuário\",\n deleteTitle: \"Excluir a visão salva?\",\n deleteBody: \"Os filtros e colunas guardados nela são perdidos. Não é possível restaurar.\",\n deleteConfirm: \"Excluir\",\n },\n saveView: {\n sharedDescription: \"Qualquer pessoa da loja poderá abrir e usar esta visão.\",\n setDefaultTitle: \"Definir como padrão\",\n setDefaultDescription: \"Esta tela abre nesta visão em vez da Visão principal.\",\n previewHeading: \"O que esta visão guarda\",\n previewUnchanged: \"Nada foi alterado — esta visão ficará igual à Visão principal.\",\n sortRowLabel: \"Ordenação\",\n saveFailed: \"Não foi possível salvar a visão.\",\n titleEditing: \"Editar visão\",\n titleCreating: \"Salvar visão\",\n descriptionLabel: \"Descrição — opcional\",\n descriptionPlaceholder: \"Para que serve esta visão\",\n submitEditing: \"Salvar alterações\",\n submitCreating: \"Salvar visão\",\n nameLabel: \"Nome\",\n cancel: \"Cancelar\",\n pinnedTitle: \"Fixar na barra lateral\",\n pinnedDescription: \"Aparece como atalho no menu, abaixo desta tela.\",\n sharedTitle: \"Compartilhar com a equipe\",\n namePlaceholder: \"Ex.: Recusados no PIX desta semana\",\n previewFilters: \"Filtros\",\n previewHiddenColumns: \"Colunas ocultas\",\n },\n columns: {\n visibleCount: (visible, total) => `${visible} de ${total} visíveis`,\n reset: \"Padrão\",\n showAll: \"Mostrar todas\",\n dragHint: \"Arraste para reordenar as colunas.\",\n moveUp: (columnLabel) => `Mover ${columnLabel} para cima`,\n moveDown: (columnLabel) => `Mover ${columnLabel} para baixo`,\n },\n display: {\n sortTab: \"Ordenar\",\n columnsTab: \"Colunas\",\n panelTab: \"Exibição\",\n direction: \"Direção\",\n layoutHints: {\n table: \"Colunas comparáveis, boa para varrer números.\",\n list: \"Uma linha por item, com os dados principais.\",\n cards: \"Blocos maiores, bom para poucos itens.\",\n board: \"Colunas por etapa, para acompanhar o que está onde.\",\n },\n densityHeadings: {\n table: \"Altura das linhas\",\n list: \"Altura das linhas\",\n cards: \"Cards por linha\",\n board: \"Largura das colunas\",\n },\n densityLabels: {\n table: { compact: \"Baixa\", cozy: \"Média\", comfortable: \"Alta\" },\n list: { compact: \"Baixa\", cozy: \"Média\", comfortable: \"Alta\" },\n cards: { compact: \"Muitos\", cozy: \"Médio\", comfortable: \"Poucos\" },\n board: { compact: \"Estreita\", cozy: \"Média\", comfortable: \"Larga\" },\n },\n boardUnavailable: \"Esta tela não declara etapas, então não oferece quadro.\",\n densityUnavailableNarrow:\n \"Um card por linha nesta largura — a densidade volta em telas maiores.\",\n trigger: \"Exibir\",\n fieldHeading: \"Campo\",\n formatHeading: \"Formato\",\n cardZoom: \"Tamanho dos cards\",\n },\n export: {\n formats: {\n json: { label: \"JSON (.json)\", hint: \"Para integrações\" },\n },\n scopeLine: (selectedCount, totalCount) =>\n selectedCount > 0\n ? `Exportando ${selectedCount} ${selectedCount === 1 ? \"item selecionado\" : \"itens selecionados\"}`\n : `Exportando ${totalCount} ${totalCount === 1 ? \"item filtrado\" : \"itens filtrados\"}`,\n visibleColumns: (columnCount) => `${columnCount} colunas visíveis, na ordem atual`,\n trigger: \"Exportar\",\n triggerLabel: \"Exportar\",\n },\n tableFilter: PT_BR_TABLE_FILTER_COPY,\n grid: {\n ...PT_BR_DATA_GRID_COPY,\n rowActions: \"Ações\",\n bulkActions: (selectedCount) => `Ações (${selectedCount}) ▾`,\n emptyFilteredTitle: \"Nenhum resultado para esses filtros\",\n emptyFilteredHint: \"Ajuste ou remova os filtros.\",\n emptyFilteredAction: \"Limpar filtros\",\n sortAscending: \"Crescente\",\n sortDescending: \"Decrescente\",\n },\n filters: {\n moreFilters: (count) => `Mais filtros: ${count} sem espaço na barra`,\n moreFiltersApplied: (count, appliedCount) =>\n `Mais filtros: ${count} sem espaço na barra, ${appliedCount} aplicado(s)`,\n moreTriggerLabel: \"Mais\",\n moreHeading: \"Mais filtros\",\n overflowNote: \"sem espaço na barra\",\n rangeEnd: \"Até\",\n rangeInvalid: \"O início precisa ser menor que o fim.\",\n rangeInclusiveNote: \"Ambas as datas entram no resultado.\",\n rangeStart: \"De\",\n dayMask: \"dd/mm/aaaa\",\n clearAllFilters: \"Limpar todos os filtros\",\n rangePresets: {\n hoje: \"Hoje\",\n ontem: \"Ontem\",\n semana: \"Esta semana\",\n mes: \"Este mês\",\n ano: \"Este ano\",\n },\n scopesLabel: \"Situação\",\n panelTitle: \"Filtros\",\n clear: \"Limpar\",\n clearAll: \"Limpar filtros\",\n clearRange: (label) => `Limpar ${label}`,\n allOption: \"Todas\",\n optionSearchPlaceholder: \"Buscar…\",\n optionsEmpty: \"Nenhum resultado\",\n optionsHeading: \"Opções\",\n },\n selection: {\n selectAllOnPage: \"Selecionar todos nesta página\",\n clearSelection: \"Limpar seleção\",\n selectAll: \"Selecionar tudo\",\n onThisPage: (count) => `${count} nesta página`,\n selectedCount: (count) => `${count} ${count === 1 ? \"selecionado\" : \"selecionados\"}`,\n selectRow: \"Selecionar\",\n expandRow: \"Expandir detalhes\",\n collapseRow: \"Recolher detalhes\",\n },\n nav: {\n mainView: \"Visão principal\",\n defaultTag: \"Padrão\",\n pinnedTag: \"Fixada\",\n sharedTag: \"Compartilhada\",\n viewOptions: (viewName) => `Opções de ${viewName}`,\n emptyHint: \"Nenhuma visão salva. Ajuste filtros, colunas ou ordenação e salve abaixo.\",\n setDefault: \"Definir como padrão\",\n deleteView: \"Excluir visão\",\n unsavedChanges: \"Alterações não salvas\",\n label: \"Visão\",\n update: \"Atualizar visão\",\n save: \"Salvar visão\",\n saveAs: \"Salvar como nova\",\n reset: \"Redefinir\",\n updateFailed: \"Não foi possível atualizar a visão\",\n dismissError: \"Fechar o aviso\",\n goBack: \"Voltar\",\n pageSize: \"Mostrar:\",\n saveFailed: \"Não foi possível salvar a alteração da visão.\",\n editView: \"Renomear e editar\",\n pinToSidebar: \"Fixar na barra lateral\",\n shareWithTeam: \"Compartilhar com a equipe\",\n },\n search: {\n placeholder: \"Buscar…\",\n allColumnsLabel: \"Buscar em todas as colunas\",\n keywordPlaceholder: \"Pressione Enter para filtrar\",\n open: \"Buscar\",\n close: \"Fechar busca\",\n clear: \"Limpar busca\",\n },\n};\n"],"mappings":";;;;;;;;;;AAoBO,IAAM,sBAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,UAAU;AAAA,EACV,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,cAAc,CAAC,OAAO,UAAU,QAAQ,KAAK,OAAO,KAAK;AAAA,EACzD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AAM;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,cAAc;AAAA,IACd,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,cAAc;AAAA,IACd,eAAe;AAAA,EACjB;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,EACT;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/pt-BR.data-display.ts"],"sourcesContent":["/**\n * The pt-BR pack for the data-display family. Split out of `pt-BR.ts`, which is a\n * barrel over this folder — see that file for why.\n */\nimport type { DataViewsCopy } from \"./components/data-display/DataViews/data-views-copy\";\nimport type {\n CarouselCopy,\n DataGridCopy,\n DataStateCopy,\n LightboxCopy,\n MapPreviewCopy,\n TimingDiagramCopy,\n} from './copy';\nimport { PT_BR_TABLE_FILTER_COPY } from './pt-BR.layout';\nimport {\n PT_BR_CATEGORY_SELECT_COPY,\n PT_BR_CONFIRM_ACTION_COPY,\n PT_BR_SAVED_VIEWS_LABELS,\n} from './pt-BR.shared';\n\nexport const PT_BR_LIGHTBOX_COPY: LightboxCopy = {\n close: \"Fechar\",\n previous: \"Anterior\",\n next: \"Próximo\",\n zoomIn: \"Aproximar\",\n zoomOut: \"Afastar\",\n resetZoom: \"Restaurar o zoom\",\n play: \"Iniciar a apresentação\",\n pause: \"Pausar a apresentação\",\n dialogLabel: \"Galeria de imagens\",\n itemPosition: (index, total) => `Item ${index} de ${total}`,\n videoFallback: (index, total) => `Vídeo ${index} de ${total}`,\n imageFallback: (index, total) => `Imagem ${index} de ${total}`,\n thumbnailFallback: (index) => `Miniatura ${index}`,\n};\n\nexport const PT_BR_DATA_GRID_COPY: DataGridCopy = {\n sortBy: (header) => `Ordenar por ${header}`,\n selectRow: (rowNumber) => `Selecionar linha ${rowNumber}`,\n selectAllRows: \"Selecionar todas as linhas\",\n expandRow: \"Expandir linha\",\n collapseRow: \"Recolher linha\",\n gridLabel: \"Grade de dados\",\n};\n\nexport const PT_BR_MAP_PREVIEW_COPY: Required<MapPreviewCopy> = {\n zoomIn: \"Aproximar\",\n zoomOut: \"Afastar\",\n center: \"Centralizar o mapa\",\n mapType: \"Trocar o tipo de mapa\",\n fullscreen: \"Tela cheia\",\n search: \"Buscar endereço\",\n searchPlaceholder: \"Buscar local...\",\n viewDescription: (lat, lng, zoom) => `Mapa centralizado em ${lat}, ${lng}, zoom ${zoom}`,\n mapTypeTitle: (name) => `Tipo de mapa: ${name}`,\n mapTypeNames: { roadmap: \"mapa\", satellite: \"satélite\", hybrid: \"híbrido\", terrain: \"relevo\" },\n coordinates: (lat, lng) => `Lat.: ${lat}, Long.: ${lng}`,\n zoomLevel: (zoom) => `Zoom: ${zoom}`,\n};\n\nexport const PT_BR_CAROUSEL_COPY: Required<CarouselCopy> = {\n previous: \"Anterior\",\n next: \"Próximo\",\n goToSlide: (position) => `Ir para o slide ${position}`,\n};\n\nexport const PT_BR_TIMING_DIAGRAM_COPY: TimingDiagramCopy = {\n regionLabel: \"Diagrama de tempos\",\n heading: \"Tempo da requisição\",\n dns: \"Busca de DNS\",\n connect: \"Conexão\",\n ssl: \"SSL/TLS\",\n request: \"Requisição\",\n response: \"Resposta\",\n total: (formatted) => `Total: ${formatted}`,\n totalTime: (formatted) => `Tempo total: ${formatted}`,\n};\n\nexport const PT_BR_DATA_STATE_COPY: DataStateCopy = {\n empty: \"Nenhum dado por aqui\",\n loading: \"Carregando…\",\n endOfList: \"Não há mais itens para carregar\",\n dismissAlert: \"Fechar o aviso\",\n dismissBanner: \"Fechar a faixa\",\n};\n\nexport const PT_BR_DATA_VIEWS_COPY: DataViewsCopy = {\n savedViewsMenu: PT_BR_SAVED_VIEWS_LABELS,\n confirmAction: PT_BR_CONFIRM_ACTION_COPY,\n categorySelect: PT_BR_CATEGORY_SELECT_COPY,\n board: {\n countOnPage: (label, count) => `${label}: ${count} nesta página`,\n onThisPage: (count) => `${count} nesta página`,\n pageSum: (sum) => `Soma desta página: ${sum}`,\n emptyColumn: \"Nada nesta etapa\",\n pageScopeNote:\n \"As contagens e somas abaixo referem-se apenas aos itens desta página.\",\n },\n deleteView: {\n title: \"Excluir visão\",\n target: (viewName) => `Excluir \"${viewName}\"?`,\n sharedWarning: \"Esta visão está compartilhada — a equipe perderá o acesso a ela.\",\n rowsUnaffected: (entityLabel) =>\n `${entityLabel} não são afetados; apenas o recorte salvo é removido.`,\n entityFallback: \"Os registros\",\n confirm: \"Excluir visão\",\n cancel: \"Cancelar\",\n },\n manageViews: {\n title: \"Gerenciar visões\",\n empty: \"Nenhuma visão salva.\",\n edit: \"Editar\",\n defaultTag: \"Padrão\",\n otherUserTag: \"De outro usuário\",\n deleteTitle: \"Excluir a visão salva?\",\n deleteBody: \"Os filtros e colunas guardados nela são perdidos. Não é possível restaurar.\",\n deleteConfirm: \"Excluir\",\n },\n saveView: {\n sharedDescription: \"Qualquer pessoa da loja poderá abrir e usar esta visão.\",\n setDefaultTitle: \"Definir como padrão\",\n setDefaultDescription: \"Esta tela abre nesta visão em vez da Visão principal.\",\n previewHeading: \"O que esta visão guarda\",\n previewUnchanged: \"Nada foi alterado — esta visão ficará igual à Visão principal.\",\n sortRowLabel: \"Ordenação\",\n saveFailed: \"Não foi possível salvar a visão.\",\n titleEditing: \"Editar visão\",\n titleCreating: \"Salvar visão\",\n descriptionLabel: \"Descrição — opcional\",\n descriptionPlaceholder: \"Para que serve esta visão\",\n submitEditing: \"Salvar alterações\",\n submitCreating: \"Salvar visão\",\n nameLabel: \"Nome\",\n cancel: \"Cancelar\",\n pinnedTitle: \"Fixar na barra lateral\",\n pinnedDescription: \"Aparece como atalho no menu, abaixo desta tela.\",\n sharedTitle: \"Compartilhar com a equipe\",\n namePlaceholder: \"Ex.: Recusados no PIX desta semana\",\n previewFilters: \"Filtros\",\n previewHiddenColumns: \"Colunas ocultas\",\n },\n columns: {\n visibleCount: (visible, total) => `${visible} de ${total} visíveis`,\n reset: \"Padrão\",\n showAll: \"Mostrar todas\",\n dragHint: \"Arraste para reordenar as colunas.\",\n moveUp: (columnLabel) => `Mover ${columnLabel} para cima`,\n moveDown: (columnLabel) => `Mover ${columnLabel} para baixo`,\n },\n display: {\n sortTab: \"Ordenar\",\n columnsTab: \"Colunas\",\n panelTab: \"Exibição\",\n direction: \"Direção\",\n layoutHints: {\n table: \"Colunas comparáveis, boa para varrer números.\",\n list: \"Uma linha por item, com os dados principais.\",\n cards: \"Blocos maiores, bom para poucos itens.\",\n board: \"Colunas por etapa, para acompanhar o que está onde.\",\n },\n densityHeadings: {\n table: \"Altura das linhas\",\n list: \"Altura das linhas\",\n cards: \"Cards por linha\",\n board: \"Largura das colunas\",\n },\n densityLabels: {\n table: { compact: \"Baixa\", cozy: \"Média\", comfortable: \"Alta\" },\n list: { compact: \"Baixa\", cozy: \"Média\", comfortable: \"Alta\" },\n cards: { compact: \"Muitos\", cozy: \"Médio\", comfortable: \"Poucos\" },\n board: { compact: \"Estreita\", cozy: \"Média\", comfortable: \"Larga\" },\n },\n boardUnavailable: \"Esta tela não declara etapas, então não oferece quadro.\",\n densityUnavailableNarrow:\n \"Um card por linha nesta largura — a densidade volta em telas maiores.\",\n trigger: \"Exibir\",\n fieldHeading: \"Campo\",\n formatHeading: \"Formato\",\n cardZoom: \"Tamanho dos cards\",\n },\n export: {\n formats: {\n json: { label: \"JSON (.json)\", hint: \"Para integrações\" },\n },\n scopeLine: (selectedCount, totalCount) =>\n selectedCount > 0\n ? `Exportando ${selectedCount} ${selectedCount === 1 ? \"item selecionado\" : \"itens selecionados\"}`\n : `Exportando ${totalCount} ${totalCount === 1 ? \"item filtrado\" : \"itens filtrados\"}`,\n visibleColumns: (columnCount) => `${columnCount} colunas visíveis, na ordem atual`,\n trigger: \"Exportar\",\n triggerLabel: \"Exportar\",\n },\n tableFilter: PT_BR_TABLE_FILTER_COPY,\n grid: {\n ...PT_BR_DATA_GRID_COPY,\n rowActions: \"Ações\",\n bulkActions: (selectedCount) => `Ações (${selectedCount}) ▾`,\n emptyFilteredTitle: \"Nenhum resultado para esses filtros\",\n emptyFilteredHint: \"Ajuste ou remova os filtros.\",\n emptyFilteredAction: \"Limpar filtros\",\n sortAscending: \"Crescente\",\n sortDescending: \"Decrescente\",\n },\n filters: {\n moreFilters: (count) => `Mais filtros: ${count} sem espaço na barra`,\n moreFiltersApplied: (count, appliedCount) =>\n `Mais filtros: ${count} sem espaço na barra, ${appliedCount} aplicado(s)`,\n moreTriggerLabel: \"Mais\",\n moreHeading: \"Mais filtros\",\n overflowNote: \"sem espaço na barra\",\n rangeEnd: \"Até\",\n rangeInvalid: \"O início precisa ser menor que o fim.\",\n rangeInclusiveNote: \"Ambas as datas entram no resultado.\",\n rangeStart: \"De\",\n dayMask: \"dd/mm/aaaa\",\n dayInvalid: \"Essa data não existe.\",\n clearAllFilters: \"Limpar todos os filtros\",\n rangePresets: {\n hoje: \"Hoje\",\n ontem: \"Ontem\",\n semana: \"Esta semana\",\n mes: \"Este mês\",\n ano: \"Este ano\",\n },\n scopesLabel: \"Situação\",\n panelTitle: \"Filtros\",\n clear: \"Limpar\",\n clearAll: \"Limpar filtros\",\n clearRange: (label) => `Limpar ${label}`,\n allOption: \"Todas\",\n optionSearchPlaceholder: \"Buscar…\",\n optionsEmpty: \"Nenhum resultado\",\n optionsHeading: \"Opções\",\n },\n selection: {\n selectAllOnPage: \"Selecionar todos nesta página\",\n clearSelection: \"Limpar seleção\",\n selectAll: \"Selecionar tudo\",\n onThisPage: (count) => `${count} nesta página`,\n selectedCount: (count) => `${count} ${count === 1 ? \"selecionado\" : \"selecionados\"}`,\n selectRow: \"Selecionar\",\n expandRow: \"Expandir detalhes\",\n collapseRow: \"Recolher detalhes\",\n },\n nav: {\n mainView: \"Visão principal\",\n defaultTag: \"Padrão\",\n pinnedTag: \"Fixada\",\n sharedTag: \"Compartilhada\",\n viewOptions: (viewName) => `Opções de ${viewName}`,\n emptyHint: \"Nenhuma visão salva. Ajuste filtros, colunas ou ordenação e salve abaixo.\",\n setDefault: \"Definir como padrão\",\n deleteView: \"Excluir visão\",\n unsavedChanges: \"Alterações não salvas\",\n label: \"Visão\",\n update: \"Atualizar visão\",\n save: \"Salvar visão\",\n saveAs: \"Salvar como nova\",\n reset: \"Redefinir\",\n updateFailed: \"Não foi possível atualizar a visão\",\n dismissError: \"Fechar o aviso\",\n goBack: \"Voltar\",\n pageSize: \"Mostrar:\",\n saveFailed: \"Não foi possível salvar a alteração da visão.\",\n editView: \"Renomear e editar\",\n pinToSidebar: \"Fixar na barra lateral\",\n shareWithTeam: \"Compartilhar com a equipe\",\n },\n search: {\n placeholder: \"Buscar…\",\n allColumnsLabel: \"Buscar em todas as colunas\",\n keywordPlaceholder: \"Pressione Enter para filtrar\",\n open: \"Buscar\",\n close: \"Fechar busca\",\n clear: \"Limpar busca\",\n },\n};\n"],"mappings":";;;;;;;;;;AAoBO,IAAM,sBAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,UAAU;AAAA,EACV,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,cAAc,CAAC,OAAO,UAAU,QAAQ,KAAK,OAAO,KAAK;AAAA,EACzD,eAAe,CAAC,OAAO,UAAU,YAAS,KAAK,OAAO,KAAK;AAAA,EAC3D,eAAe,CAAC,OAAO,UAAU,UAAU,KAAK,OAAO,KAAK;AAAA,EAC5D,mBAAmB,CAAC,UAAU,aAAa,KAAK;AAClD;AAEO,IAAM,uBAAqC;AAAA,EAChD,QAAQ,CAAC,WAAW,eAAe,MAAM;AAAA,EACzC,WAAW,CAAC,cAAc,oBAAoB,SAAS;AAAA,EACvD,eAAe;AAAA,EACf,WAAW;AAAA,EACX,aAAa;AAAA,EACb,WAAW;AACb;AAEO,IAAM,yBAAmD;AAAA,E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+62,19 @@ function CepStatus({
|
|
|
62
62
|
const visible = !suppressed && status !== "idle";
|
|
63
63
|
return /* @__PURE__ */ jsx("span", { id: `${testId}-status`, role: "status", "aria-live": "polite", children: visible && /* @__PURE__ */ jsx(FormMessage, { error: status === "notfound", dataTestId: `${testId}-${status}`, children: copy[status] }) });
|
|
64
64
|
}
|
|
65
|
+
var CEP_INPUT_PROPS = { inputMode: "numeric" };
|
|
66
|
+
var autoCompleteOf = (autoComplete) => autoComplete ?? "postal-code";
|
|
67
|
+
function AboveLabel({
|
|
68
|
+
name,
|
|
69
|
+
label,
|
|
70
|
+
error
|
|
71
|
+
}) {
|
|
72
|
+
if (!label) return null;
|
|
73
|
+
return /* @__PURE__ */ jsx(FormLabel, { htmlFor: name, error: Boolean(error), children: label });
|
|
74
|
+
}
|
|
75
|
+
function insideLabel(label, placement) {
|
|
76
|
+
return placement === "inside" ? label : void 0;
|
|
77
|
+
}
|
|
65
78
|
function CepField({
|
|
66
79
|
value,
|
|
67
80
|
onChange,
|
|
@@ -75,7 +88,11 @@ function CepField({
|
|
|
75
88
|
debounceMs = 500,
|
|
76
89
|
name = "postalCode",
|
|
77
90
|
dataTestId,
|
|
78
|
-
copy
|
|
91
|
+
copy,
|
|
92
|
+
size,
|
|
93
|
+
// undefined reaches `Input`, whose own default is `md`
|
|
94
|
+
labelPlacement = "above",
|
|
95
|
+
autoComplete
|
|
79
96
|
}) {
|
|
80
97
|
const testId = dataTestId ?? `cep-field-${name}`;
|
|
81
98
|
const status = useCepLookup({
|
|
@@ -92,15 +109,17 @@ function CepField({
|
|
|
92
109
|
[onChange]
|
|
93
110
|
);
|
|
94
111
|
return /* @__PURE__ */ jsxs(FormControl, { fullWidth: true, children: [
|
|
95
|
-
|
|
112
|
+
labelPlacement === "above" && /* @__PURE__ */ jsx(AboveLabel, { name, label, error }),
|
|
96
113
|
/* @__PURE__ */ jsx(
|
|
97
114
|
Input,
|
|
98
115
|
{
|
|
99
116
|
id: name,
|
|
100
117
|
name,
|
|
101
118
|
type: "text",
|
|
102
|
-
|
|
103
|
-
autoComplete:
|
|
119
|
+
inputProps: CEP_INPUT_PROPS,
|
|
120
|
+
autoComplete: autoCompleteOf(autoComplete),
|
|
121
|
+
size,
|
|
122
|
+
label: insideLabel(label, labelPlacement),
|
|
104
123
|
placeholder,
|
|
105
124
|
value,
|
|
106
125
|
error: Boolean(error),
|
|
@@ -122,4 +141,4 @@ export {
|
|
|
122
141
|
CepField,
|
|
123
142
|
CepField_default
|
|
124
143
|
};
|
|
125
|
-
//# sourceMappingURL=chunk-
|
|
144
|
+
//# sourceMappingURL=chunk-6ONQTXFM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/form/CepField/CepField.tsx"],"sourcesContent":["'use client';\n\nimport type { CepFieldCopy } from \"../../../copy\";\nimport React, { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { cepDigits, formatCep, isValidCep } from '@12-apps/forms-core';\n\nimport { FormControl, FormLabel, FormMessage } from '../Form';\n// The outlined entry: CepField renders no variant, and the generic one would\n// ship MUI's FilledInput and Input to every screen with a CEP field (FUT-1054).\nimport { Input } from '../Input/outlined';\nimport type { CepAddress, CepFieldProps, CepLookupStatus } from './CepField.types';\n\n/** Everything {@link useCepLookup} needs, so the hook signature stays flat. */\ninterface LookupOptions {\n digits: string;\n complete: boolean;\n disabled: boolean;\n debounceMs: number;\n onLookup?: (cep: string) => Promise<CepAddress | null>;\n onResolved?: (address: CepAddress) => void;\n onNotFound?: () => void;\n}\n\n/**\n * Debounced, race-safe CEP resolution.\n *\n * Two guards earn their keep here: a monotonic sequence id, bumped\n * synchronously on every new query, so a slow response for a since-edited CEP\n * can never land; and a \"last queried\" marker, so re-rendering (or the caller\n * re-masking the same value) never re-hits the provider.\n */\nfunction useCepLookup({\n digits,\n complete,\n disabled,\n debounceMs,\n onLookup,\n onResolved,\n onNotFound,\n}: LookupOptions): CepLookupStatus {\n const [status, setStatus] = useState<CepLookupStatus>('idle');\n const lastQueriedRef = useRef('');\n const seqRef = useRef(0);\n // Latest callbacks, read at call time — keeps them out of the effect deps so\n // an inline arrow from the caller doesn't re-trigger the lookup every render.\n const lookupRef = useRef(onLookup);\n const resolvedRef = useRef(onResolved);\n const notFoundRef = useRef(onNotFound);\n lookupRef.current = onLookup;\n resolvedRef.current = onResolved;\n notFoundRef.current = onNotFound;\n\n useEffect(() => {\n if (!complete || disabled || !lookupRef.current) {\n // Editing away from a complete CEP drops any stale status and forgets the\n // last query, so re-typing the same CEP resolves again.\n seqRef.current += 1;\n setStatus('idle');\n lastQueriedRef.current = '';\n return;\n }\n if (lastQueriedRef.current === digits) return;\n\n const mySeq = (seqRef.current += 1);\n const handle = setTimeout(() => {\n lastQueriedRef.current = digits;\n setStatus('loading');\n void (async () => {\n // A failing lookup is treated exactly like \"not found\" — the user types\n // the address instead. Never surfaced as a crash. Going through\n // `Promise.resolve().then` rather than calling directly covers the two\n // failure modes an `await … .catch()` misses: a lookup that throws\n // SYNCHRONOUSLY, and one that returns something other than a promise.\n const address = await Promise.resolve()\n .then(() => lookupRef.current?.(digits))\n .catch(() => null);\n if (seqRef.current !== mySeq) return;\n setStatus(address ? 'found' : 'notfound');\n // A miss is reported too, so a caller that filled from a PREVIOUS CEP\n // can undo it rather than leaving that address under this CEP.\n if (address) resolvedRef.current?.(address);\n else notFoundRef.current?.();\n })();\n }, debounceMs);\n\n return () => clearTimeout(handle);\n }, [digits, complete, disabled, debounceMs]);\n\n return status;\n}\n\n/**\n * The lookup outcome as a live region, so screen readers announce it without\n * stealing focus. Silent while idle, and while the caller is showing its own\n * validation error (which would otherwise stack two messages).\n */\nfunction CepStatus({\n status,\n testId,\n suppressed,\n copy,\n}: {\n status: CepLookupStatus;\n testId: string;\n suppressed: boolean;\n copy: CepFieldCopy;\n}): React.ReactElement {\n const visible = !suppressed && status !== 'idle';\n return (\n <span id={`${testId}-status`} role=\"status\" aria-live=\"polite\">\n {visible && (\n <FormMessage error={status === 'notfound'} dataTestId={`${testId}-${status}`}>\n {copy[status as Exclude<CepLookupStatus, 'idle'>]}\n </FormMessage>\n )}\n </span>\n );\n}\n\n/** What only the `<input>` can act on. Hoisted: one object for every render. */\nconst CEP_INPUT_PROPS = { inputMode: 'numeric' } as const;\n\n/** `postal-code` unless the caller said otherwise (`off` for somebody else's address). */\nconst autoCompleteOf = (autoComplete: string | undefined): string => autoComplete ?? 'postal-code';\n\n/** The stacked label over the box (`labelPlacement=\"above\"`), or nothing when there is no label. */\nfunction AboveLabel({\n name,\n label,\n error,\n}: {\n name: string;\n label?: string;\n error?: string;\n}): React.ReactElement | null {\n if (!label) return null;\n return (\n <FormLabel htmlFor={name} error={Boolean(error)}>\n {label}\n </FormLabel>\n );\n}\n\n/** The label handed to the `Input`, which draws it in the box: only for `inside`. */\nfunction insideLabel(label: string | undefined, placement: 'above' | 'inside'): string | undefined {\n return placement === 'inside' ? label : undefined;\n}\n\n/**\n * A CEP input that fills the rest of the address in.\n *\n * The pattern every Brazilian form has used for twenty years: type eight\n * digits, and logradouro/bairro/cidade/UF arrive on their own. This is the\n * reusable half — masking, validation, debouncing, race-safety and status —\n * with the actual lookup injected via `onLookup`, so the same component serves\n * a supplier form, a store-location form or a delivery checkout without\n * knowing anything about providers or auth.\n *\n * Resolution is best-effort by design. A provider outage, an unknown CEP or a\n * timeout leaves the field exactly as usable as a plain text input — the user\n * types the address themselves. Autofill never blocks.\n *\n * @example\n * ```tsx\n * <CepField\n * value={cep}\n * onChange={setCep}\n * onLookup={(c) => fetch(`/api/…/lookup/cep/${c}`).then((r) => r.json()).then((b) => b.data)}\n * onResolved={(a) => { setStreet(a.street ?? ''); setCity(a.city ?? ''); }}\n * />\n * ```\n */\nexport function CepField({\n value,\n onChange,\n onLookup,\n onResolved,\n onNotFound,\n label = 'CEP',\n placeholder = '00000-000',\n error,\n disabled = false,\n debounceMs = 500,\n name = 'postalCode',\n dataTestId,\n copy,\n size, // undefined reaches `Input`, whose own default is `md`\n labelPlacement = 'above',\n autoComplete,\n}: CepFieldProps): React.ReactElement {\n const testId = dataTestId ?? `cep-field-${name}`;\n\n const status = useCepLookup({\n digits: cepDigits(value),\n complete: isValidCep(value),\n disabled,\n debounceMs,\n onLookup,\n onResolved,\n onNotFound,\n });\n\n const handleChange = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => onChange(formatCep(event.target.value)),\n [onChange],\n );\n\n return (\n <FormControl fullWidth>\n {labelPlacement === 'above' && <AboveLabel name={name} label={label} error={error} />}\n <Input\n id={name}\n name={name}\n type=\"text\"\n // On the `<input>`, through `inputProps`: a top-level `inputMode` is a\n // prop `Input` does not recognise, so it landed on the wrapper `div`\n // and the phone kept opening the letter keyboard for eight digits\n // (FUT-1440's CepField row).\n inputProps={CEP_INPUT_PROPS}\n autoComplete={autoCompleteOf(autoComplete)}\n size={size}\n // `inside`: the label is the Input's own, drawn in the box and floating\n // up on focus or a value — what every other `Input` in the form does.\n // `above` keeps the stacked `FormLabel`, for callers that never opted in.\n label={insideLabel(label, labelPlacement)}\n placeholder={placeholder}\n value={value}\n error={Boolean(error)}\n disabled={disabled}\n loading={status === 'loading'}\n onChange={handleChange}\n data-testid={testId}\n aria-describedby={`${testId}-status`}\n aria-busy={status === 'loading'}\n />\n {error && (\n <FormMessage error dataTestId={`${testId}-message`}>\n {error}\n </FormMessage>\n )}\n <CepStatus status={status} testId={testId} suppressed={Boolean(error)} copy={copy} />\n </FormControl>\n );\n}\n\nexport default CepField;\n"],"mappings":";;;;;;;;;;AAGA,SAAgB,aAAa,WAAW,QAAQ,gBAAgB;AAEhE,SAAS,WAAW,WAAW,kBAAkB;AA2GzC,cAiGJ,YAjGI;AAhFR,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAmC;AACjC,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA0B,MAAM;AAC5D,QAAM,iBAAiB,OAAO,EAAE;AAChC,QAAM,SA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