@portnet/ui 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +737 -0
- package/dist/esm/index.js +90 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/v2/__tests__/AppMain.test.js +130 -0
- package/dist/esm/v2/__tests__/AppMain.test.js.map +1 -0
- package/dist/esm/v2/__tests__/ChartFigure.test.js +180 -0
- package/dist/esm/v2/__tests__/ChartFigure.test.js.map +1 -0
- package/dist/esm/v2/__tests__/DataGridRowActionsPropagation.test.js +150 -0
- package/dist/esm/v2/__tests__/DataGridRowActionsPropagation.test.js.map +1 -0
- package/dist/esm/v2/__tests__/DrawerTactileTargets.test.js +93 -0
- package/dist/esm/v2/__tests__/DrawerTactileTargets.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FieldError.test.js +71 -39
- package/dist/esm/v2/__tests__/FieldError.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FieldNaming.test.js +160 -0
- package/dist/esm/v2/__tests__/FieldNaming.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FieldWidth.test.js +146 -0
- package/dist/esm/v2/__tests__/FieldWidth.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FileCard.test.js +18 -18
- package/dist/esm/v2/__tests__/FileCard.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FormikCheckbox.test.js +173 -0
- package/dist/esm/v2/__tests__/FormikCheckbox.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js +236 -0
- package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FormikDisplayWidth.test.js +101 -0
- package/dist/esm/v2/__tests__/FormikDisplayWidth.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FormikRadioGroup.test.js +299 -0
- package/dist/esm/v2/__tests__/FormikRadioGroup.test.js.map +1 -0
- package/dist/esm/v2/__tests__/MobileRowCard.test.js +44 -43
- package/dist/esm/v2/__tests__/MobileRowCard.test.js.map +1 -1
- package/dist/esm/v2/__tests__/PreviewDrawer.test.js +165 -0
- package/dist/esm/v2/__tests__/PreviewDrawer.test.js.map +1 -0
- package/dist/esm/v2/__tests__/ReferentielFieldContainer.test.js +156 -0
- package/dist/esm/v2/__tests__/ReferentielFieldContainer.test.js.map +1 -0
- package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js +37 -52
- package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
- package/dist/esm/v2/__tests__/apiError.test.js +50 -69
- package/dist/esm/v2/__tests__/apiError.test.js.map +1 -1
- package/dist/esm/v2/__tests__/banned-patterns.test.js +41 -122
- package/dist/esm/v2/__tests__/banned-patterns.test.js.map +1 -1
- package/dist/esm/v2/__tests__/chart-palette.test.js +204 -0
- package/dist/esm/v2/__tests__/chart-palette.test.js.map +1 -0
- package/dist/esm/v2/__tests__/contrast-palette.test.js +42 -74
- package/dist/esm/v2/__tests__/contrast-palette.test.js.map +1 -1
- package/dist/esm/v2/__tests__/cssVariables.test.js +44 -51
- package/dist/esm/v2/__tests__/cssVariables.test.js.map +1 -1
- package/dist/esm/v2/__tests__/fileValidation.test.js +134 -0
- package/dist/esm/v2/__tests__/fileValidation.test.js.map +1 -0
- package/dist/esm/v2/__tests__/filterCriteria.test.js +321 -0
- package/dist/esm/v2/__tests__/filterCriteria.test.js.map +1 -0
- package/dist/esm/v2/__tests__/fmtDate.test.js +68 -0
- package/dist/esm/v2/__tests__/fmtDate.test.js.map +1 -0
- package/dist/esm/v2/__tests__/gap-leakage-refonte.test.js +218 -0
- package/dist/esm/v2/__tests__/gap-leakage-refonte.test.js.map +1 -0
- package/dist/esm/v2/__tests__/labels-merge.test.js +17 -22
- package/dist/esm/v2/__tests__/labels-merge.test.js.map +1 -1
- package/dist/esm/v2/__tests__/locale-fallback.test.js +35 -40
- package/dist/esm/v2/__tests__/locale-fallback.test.js.map +1 -1
- package/dist/esm/v2/__tests__/reviveSavedCriteria.test.js +143 -0
- package/dist/esm/v2/__tests__/reviveSavedCriteria.test.js.map +1 -0
- package/dist/esm/v2/__tests__/rowActions.test.js +182 -0
- package/dist/esm/v2/__tests__/rowActions.test.js.map +1 -0
- package/dist/esm/v2/__tests__/useFocusOnRouteChange.test.js +155 -0
- package/dist/esm/v2/__tests__/useFocusOnRouteChange.test.js.map +1 -0
- package/dist/esm/v2/__tests__/useFocusTrap.test.js +266 -402
- package/dist/esm/v2/__tests__/useFocusTrap.test.js.map +1 -1
- package/dist/esm/v2/__tests__/usePrefersReducedMotion.test.js +120 -0
- package/dist/esm/v2/__tests__/usePrefersReducedMotion.test.js.map +1 -0
- package/dist/esm/v2/components/Accordion.js +48 -70
- package/dist/esm/v2/components/Accordion.js.map +1 -1
- package/dist/esm/v2/components/ActionStrip.js +31 -43
- package/dist/esm/v2/components/ActionStrip.js.map +1 -1
- package/dist/esm/v2/components/Banner.js +25 -22
- package/dist/esm/v2/components/Banner.js.map +1 -1
- package/dist/esm/v2/components/Busy.js +14 -19
- package/dist/esm/v2/components/Busy.js.map +1 -1
- package/dist/esm/v2/components/Button.js +34 -45
- package/dist/esm/v2/components/Button.js.map +1 -1
- package/dist/esm/v2/components/CategoryTag.js +44 -27
- package/dist/esm/v2/components/CategoryTag.js.map +1 -1
- package/dist/esm/v2/components/Checkbox.js +32 -38
- package/dist/esm/v2/components/Checkbox.js.map +1 -1
- package/dist/esm/v2/components/Chip.js +23 -36
- package/dist/esm/v2/components/Chip.js.map +1 -1
- package/dist/esm/v2/components/Combobox.js +112 -136
- package/dist/esm/v2/components/Combobox.js.map +1 -1
- package/dist/esm/v2/components/CommandPalette.js +113 -198
- package/dist/esm/v2/components/CommandPalette.js.map +1 -1
- package/dist/esm/v2/components/ConfirmDialog.js +36 -45
- package/dist/esm/v2/components/ConfirmDialog.js.map +1 -1
- package/dist/esm/v2/components/DatePicker.js +78 -81
- package/dist/esm/v2/components/DatePicker.js.map +1 -1
- package/dist/esm/v2/components/DateRangePicker.js +63 -74
- package/dist/esm/v2/components/DateRangePicker.js.map +1 -1
- package/dist/esm/v2/components/DateTimePicker.js +118 -90
- package/dist/esm/v2/components/DateTimePicker.js.map +1 -1
- package/dist/esm/v2/components/Drawer.js +71 -65
- package/dist/esm/v2/components/Drawer.js.map +1 -1
- package/dist/esm/v2/components/Dropzone.js +130 -177
- package/dist/esm/v2/components/Dropzone.js.map +1 -1
- package/dist/esm/v2/components/EmptyState.js +9 -9
- package/dist/esm/v2/components/EmptyState.js.map +1 -1
- package/dist/esm/v2/components/FavoriteToggle.js +24 -33
- package/dist/esm/v2/components/FavoriteToggle.js.map +1 -1
- package/dist/esm/v2/components/Field.js +210 -52
- package/dist/esm/v2/components/Field.js.map +1 -1
- package/dist/esm/v2/components/FieldError.js +9 -13
- package/dist/esm/v2/components/FieldError.js.map +1 -1
- package/dist/esm/v2/components/FieldHelp.js +28 -49
- package/dist/esm/v2/components/FieldHelp.js.map +1 -1
- package/dist/esm/v2/components/FileCard.js +14 -19
- package/dist/esm/v2/components/FileCard.js.map +1 -1
- package/dist/esm/v2/components/FilterTab.js +22 -31
- package/dist/esm/v2/components/FilterTab.js.map +1 -1
- package/dist/esm/v2/components/ForbiddenPage.js +28 -8
- package/dist/esm/v2/components/ForbiddenPage.js.map +1 -1
- package/dist/esm/v2/components/FormGrid.js +48 -54
- package/dist/esm/v2/components/FormGrid.js.map +1 -1
- package/dist/esm/v2/components/FormikDisplay.js +98 -24
- package/dist/esm/v2/components/FormikDisplay.js.map +1 -1
- package/dist/esm/v2/components/Input.js +75 -34
- package/dist/esm/v2/components/Input.js.map +1 -1
- package/dist/esm/v2/components/KPICard.js +42 -51
- package/dist/esm/v2/components/KPICard.js.map +1 -1
- package/dist/esm/v2/components/KPIStrip.js +9 -15
- package/dist/esm/v2/components/KPIStrip.js.map +1 -1
- package/dist/esm/v2/components/KV.js +16 -23
- package/dist/esm/v2/components/KV.js.map +1 -1
- package/dist/esm/v2/components/KVGrid.js +15 -23
- package/dist/esm/v2/components/KVGrid.js.map +1 -1
- package/dist/esm/v2/components/Layout.js +81 -117
- package/dist/esm/v2/components/Layout.js.map +1 -1
- package/dist/esm/v2/components/MobileRowCard.js +64 -75
- package/dist/esm/v2/components/MobileRowCard.js.map +1 -1
- package/dist/esm/v2/components/Modal.js +44 -53
- package/dist/esm/v2/components/Modal.js.map +1 -1
- package/dist/esm/v2/components/NetworkErrorPage.js +28 -11
- package/dist/esm/v2/components/NetworkErrorPage.js.map +1 -1
- package/dist/esm/v2/components/NotFoundPage.js +28 -9
- package/dist/esm/v2/components/NotFoundPage.js.map +1 -1
- package/dist/esm/v2/components/NumberInput.js +77 -107
- package/dist/esm/v2/components/NumberInput.js.map +1 -1
- package/dist/esm/v2/components/OverflowMenu.js +24 -42
- package/dist/esm/v2/components/OverflowMenu.js.map +1 -1
- package/dist/esm/v2/components/PdfViewer.js +24 -33
- package/dist/esm/v2/components/PdfViewer.js.map +1 -1
- package/dist/esm/v2/components/ProgressBar.js +28 -36
- package/dist/esm/v2/components/ProgressBar.js.map +1 -1
- package/dist/esm/v2/components/Radio.js +49 -57
- package/dist/esm/v2/components/Radio.js.map +1 -1
- package/dist/esm/v2/components/SectionErrorBoundary.js +84 -130
- package/dist/esm/v2/components/SectionErrorBoundary.js.map +1 -1
- package/dist/esm/v2/components/SectionHeader.js +24 -31
- package/dist/esm/v2/components/SectionHeader.js.map +1 -1
- package/dist/esm/v2/components/Segmented.js +59 -84
- package/dist/esm/v2/components/Segmented.js.map +1 -1
- package/dist/esm/v2/components/Select.js +100 -138
- package/dist/esm/v2/components/Select.js.map +1 -1
- package/dist/esm/v2/components/ServerErrorPage.js +27 -10
- package/dist/esm/v2/components/ServerErrorPage.js.map +1 -1
- package/dist/esm/v2/components/Skeleton.js +81 -96
- package/dist/esm/v2/components/Skeleton.js.map +1 -1
- package/dist/esm/v2/components/SkipLink.js +6 -7
- package/dist/esm/v2/components/SkipLink.js.map +1 -1
- package/dist/esm/v2/components/Spinner.js +13 -22
- package/dist/esm/v2/components/Spinner.js.map +1 -1
- package/dist/esm/v2/components/Status.js +14 -25
- package/dist/esm/v2/components/Status.js.map +1 -1
- package/dist/esm/v2/components/Stepper.js +68 -71
- package/dist/esm/v2/components/Stepper.js.map +1 -1
- package/dist/esm/v2/components/Surface.js +25 -44
- package/dist/esm/v2/components/Surface.js.map +1 -1
- package/dist/esm/v2/components/Switch.js +21 -29
- package/dist/esm/v2/components/Switch.js.map +1 -1
- package/dist/esm/v2/components/TabPanel.js +84 -0
- package/dist/esm/v2/components/TabPanel.js.map +1 -0
- package/dist/esm/v2/components/Tabs.js +43 -19
- package/dist/esm/v2/components/Tabs.js.map +1 -1
- package/dist/esm/v2/components/TelInput.js +75 -108
- package/dist/esm/v2/components/TelInput.js.map +1 -1
- package/dist/esm/v2/components/Textarea.js +21 -30
- package/dist/esm/v2/components/Textarea.js.map +1 -1
- package/dist/esm/v2/components/TimePicker.js +59 -69
- package/dist/esm/v2/components/TimePicker.js.map +1 -1
- package/dist/esm/v2/components/Toast.js +109 -163
- package/dist/esm/v2/components/Toast.js.map +1 -1
- package/dist/esm/v2/components/Tooltip.js +18 -31
- package/dist/esm/v2/components/Tooltip.js.map +1 -1
- package/dist/esm/v2/components/_ErrorPageBody.js +6 -5
- package/dist/esm/v2/components/_ErrorPageBody.js.map +1 -1
- package/dist/esm/v2/components/_pickerShared.js +2 -2
- package/dist/esm/v2/components/_pickerShared.js.map +1 -1
- package/dist/esm/v2/components/index.js +64 -0
- package/dist/esm/v2/components/index.js.map +1 -1
- package/dist/esm/v2/hooks/index.js +62 -0
- package/dist/esm/v2/hooks/index.js.map +1 -1
- package/dist/esm/v2/hooks/useAppliedFilters.js +112 -0
- package/dist/esm/v2/hooks/useAppliedFilters.js.map +1 -0
- package/dist/esm/v2/hooks/useDebouncedCallback.js +82 -0
- package/dist/esm/v2/hooks/useDebouncedCallback.js.map +1 -0
- package/dist/esm/v2/hooks/useDelayedFlag.js +5 -19
- package/dist/esm/v2/hooks/useDelayedFlag.js.map +1 -1
- package/dist/esm/v2/hooks/useDensity.js +13 -17
- package/dist/esm/v2/hooks/useDensity.js.map +1 -1
- package/dist/esm/v2/hooks/useFocusFirstError.js +25 -33
- package/dist/esm/v2/hooks/useFocusFirstError.js.map +1 -1
- package/dist/esm/v2/hooks/useFocusOnRouteChange.js +81 -0
- package/dist/esm/v2/hooks/useFocusOnRouteChange.js.map +1 -0
- package/dist/esm/v2/hooks/useFocusTrap.js +19 -23
- package/dist/esm/v2/hooks/useFocusTrap.js.map +1 -1
- package/dist/esm/v2/hooks/useFormAutoSave.js +38 -53
- package/dist/esm/v2/hooks/useFormAutoSave.js.map +1 -1
- package/dist/esm/v2/hooks/useFormCompletionProgress.js +32 -51
- package/dist/esm/v2/hooks/useFormCompletionProgress.js.map +1 -1
- package/dist/esm/v2/hooks/useKeyboardShortcuts.js +125 -0
- package/dist/esm/v2/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/esm/v2/hooks/usePrefersReducedMotion.js +99 -0
- package/dist/esm/v2/hooks/usePrefersReducedMotion.js.map +1 -0
- package/dist/esm/v2/hooks/useResolvedDensity.js +2 -10
- package/dist/esm/v2/hooks/useResolvedDensity.js.map +1 -1
- package/dist/esm/v2/hooks/useSortedRows.js +3 -5
- package/dist/esm/v2/hooks/useSortedRows.js.map +1 -1
- package/dist/esm/v2/hooks/useTabLoading.js +6 -21
- package/dist/esm/v2/hooks/useTabLoading.js.map +1 -1
- package/dist/esm/v2/index.js +14 -4
- package/dist/esm/v2/index.js.map +1 -1
- package/dist/esm/v2/modalContext.js +2 -2
- package/dist/esm/v2/modalContext.js.map +1 -1
- package/dist/esm/v2/models/favorite.js.map +1 -1
- package/dist/esm/v2/models/personalization.js.map +1 -1
- package/dist/esm/v2/models/referentiel.js.map +1 -1
- package/dist/esm/v2/models/savedFilter.js.map +1 -1
- package/dist/esm/v2/patterns/ActionBar.js +115 -159
- package/dist/esm/v2/patterns/ActionBar.js.map +1 -1
- package/dist/esm/v2/patterns/AppMain.js +108 -0
- package/dist/esm/v2/patterns/AppMain.js.map +1 -0
- package/dist/esm/v2/patterns/BulkActionBar.js +31 -34
- package/dist/esm/v2/patterns/BulkActionBar.js.map +1 -1
- package/dist/esm/v2/patterns/ChartFigure.js +151 -0
- package/dist/esm/v2/patterns/ChartFigure.js.map +1 -0
- package/dist/esm/v2/patterns/CollapsibleDataGrid.js +111 -152
- package/dist/esm/v2/patterns/CollapsibleDataGrid.js.map +1 -1
- package/dist/esm/v2/patterns/ColumnsToggle.js +43 -77
- package/dist/esm/v2/patterns/ColumnsToggle.js.map +1 -1
- package/dist/esm/v2/patterns/DataGrid.js +221 -255
- package/dist/esm/v2/patterns/DataGrid.js.map +1 -1
- package/dist/esm/v2/patterns/DataGridSettingsMenu.js +76 -94
- package/dist/esm/v2/patterns/DataGridSettingsMenu.js.map +1 -1
- package/dist/esm/v2/patterns/DataGridToolbar.js +85 -89
- package/dist/esm/v2/patterns/DataGridToolbar.js.map +1 -1
- package/dist/esm/v2/patterns/DataGridVirtualized.js +141 -182
- package/dist/esm/v2/patterns/DataGridVirtualized.js.map +1 -1
- package/dist/esm/v2/patterns/DeleteResourceConfirmDialog.js +26 -30
- package/dist/esm/v2/patterns/DeleteResourceConfirmDialog.js.map +1 -1
- package/dist/esm/v2/patterns/DetailSplit.js +108 -0
- package/dist/esm/v2/patterns/DetailSplit.js.map +1 -0
- package/dist/esm/v2/patterns/FavoriteColumn.js +26 -75
- package/dist/esm/v2/patterns/FavoriteColumn.js.map +1 -1
- package/dist/esm/v2/patterns/FavoritesFilter.js +30 -39
- package/dist/esm/v2/patterns/FavoritesFilter.js.map +1 -1
- package/dist/esm/v2/patterns/FilterTabBar.js +112 -0
- package/dist/esm/v2/patterns/FilterTabBar.js.map +1 -0
- package/dist/esm/v2/patterns/FormErrorSummary.js +12 -13
- package/dist/esm/v2/patterns/FormErrorSummary.js.map +1 -1
- package/dist/esm/v2/patterns/FormPageShell.js +43 -41
- package/dist/esm/v2/patterns/FormPageShell.js.map +1 -1
- package/dist/esm/v2/patterns/FormSection.js +30 -38
- package/dist/esm/v2/patterns/FormSection.js.map +1 -1
- package/dist/esm/v2/patterns/FormikCheckbox.js +130 -0
- package/dist/esm/v2/patterns/FormikCheckbox.js.map +1 -0
- package/dist/esm/v2/patterns/FormikCheckboxGroup.js +56 -60
- package/dist/esm/v2/patterns/FormikCheckboxGroup.js.map +1 -1
- package/dist/esm/v2/patterns/FormikCombobox.js +51 -66
- package/dist/esm/v2/patterns/FormikCombobox.js.map +1 -1
- package/dist/esm/v2/patterns/FormikDatePicker.js +51 -99
- package/dist/esm/v2/patterns/FormikDatePicker.js.map +1 -1
- package/dist/esm/v2/patterns/FormikDateTimePicker.js +136 -0
- package/dist/esm/v2/patterns/FormikDateTimePicker.js.map +1 -0
- package/dist/esm/v2/patterns/FormikErrorFocus.js +22 -23
- package/dist/esm/v2/patterns/FormikErrorFocus.js.map +1 -1
- package/dist/esm/v2/patterns/FormikErrorSummary.js +89 -0
- package/dist/esm/v2/patterns/FormikErrorSummary.js.map +1 -0
- package/dist/esm/v2/patterns/FormikFile.js +94 -78
- package/dist/esm/v2/patterns/FormikFile.js.map +1 -1
- package/dist/esm/v2/patterns/FormikInput.js +40 -50
- package/dist/esm/v2/patterns/FormikInput.js.map +1 -1
- package/dist/esm/v2/patterns/FormikRadioGroup.js +129 -0
- package/dist/esm/v2/patterns/FormikRadioGroup.js.map +1 -0
- package/dist/esm/v2/patterns/FormikReferentielField.js +49 -59
- package/dist/esm/v2/patterns/FormikReferentielField.js.map +1 -1
- package/dist/esm/v2/patterns/FormikSelect.js +64 -84
- package/dist/esm/v2/patterns/FormikSelect.js.map +1 -1
- package/dist/esm/v2/patterns/FormikTextarea.js +30 -43
- package/dist/esm/v2/patterns/FormikTextarea.js.map +1 -1
- package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js +64 -65
- package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
- package/dist/esm/v2/patterns/NetworkErrorBanner.js +6 -7
- package/dist/esm/v2/patterns/NetworkErrorBanner.js.map +1 -1
- package/dist/esm/v2/patterns/PageContent.js +10 -14
- package/dist/esm/v2/patterns/PageContent.js.map +1 -1
- package/dist/esm/v2/patterns/PreviewDrawer.js +153 -0
- package/dist/esm/v2/patterns/PreviewDrawer.js.map +1 -0
- package/dist/esm/v2/patterns/ReferentielField.js +327 -312
- package/dist/esm/v2/patterns/ReferentielField.js.map +1 -1
- package/dist/esm/v2/patterns/RowFavoriteToggle.js +127 -0
- package/dist/esm/v2/patterns/RowFavoriteToggle.js.map +1 -0
- package/dist/esm/v2/patterns/SaveFilterDialog.js +38 -66
- package/dist/esm/v2/patterns/SaveFilterDialog.js.map +1 -1
- package/dist/esm/v2/patterns/SavedFiltersMenu.js +62 -81
- package/dist/esm/v2/patterns/SavedFiltersMenu.js.map +1 -1
- package/dist/esm/v2/patterns/SkeletonPageShell.js +106 -129
- package/dist/esm/v2/patterns/SkeletonPageShell.js.map +1 -1
- package/dist/esm/v2/patterns/SortableHeader.js +22 -45
- package/dist/esm/v2/patterns/SortableHeader.js.map +1 -1
- package/dist/esm/v2/patterns/Tour.js +94 -120
- package/dist/esm/v2/patterns/Tour.js.map +1 -1
- package/dist/esm/v2/patterns/_dataGridShared.js +107 -128
- package/dist/esm/v2/patterns/_dataGridShared.js.map +1 -1
- package/dist/esm/v2/patterns/_pickerSerialisation.js +72 -0
- package/dist/esm/v2/patterns/_pickerSerialisation.js.map +1 -0
- package/dist/esm/v2/patterns/_sort.js +17 -33
- package/dist/esm/v2/patterns/_sort.js.map +1 -1
- package/dist/esm/v2/patterns/_useColumnReorder.js +122 -160
- package/dist/esm/v2/patterns/_useColumnReorder.js.map +1 -1
- package/dist/esm/v2/patterns/_useColumnResize.js +78 -96
- package/dist/esm/v2/patterns/_useColumnResize.js.map +1 -1
- package/dist/esm/v2/patterns/filterCriteria.js +102 -0
- package/dist/esm/v2/patterns/filterCriteria.js.map +1 -0
- package/dist/esm/v2/patterns/index.js +235 -0
- package/dist/esm/v2/patterns/index.js.map +1 -1
- package/dist/esm/v2/patterns/rowActions.js +223 -0
- package/dist/esm/v2/patterns/rowActions.js.map +1 -0
- package/dist/esm/v2/personalization/PersonalizationProvider.js +50 -47
- package/dist/esm/v2/personalization/PersonalizationProvider.js.map +1 -1
- package/dist/esm/v2/personalization/adapters/_storageKey.js +5 -5
- package/dist/esm/v2/personalization/adapters/_storageKey.js.map +1 -1
- package/dist/esm/v2/personalization/adapters/createLocalStorageAdapter.js +22 -23
- package/dist/esm/v2/personalization/adapters/createLocalStorageAdapter.js.map +1 -1
- package/dist/esm/v2/personalization/adapters/createMemoryAdapter.js +13 -13
- package/dist/esm/v2/personalization/adapters/createMemoryAdapter.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/favorites.js +36 -60
- package/dist/esm/v2/personalization/capabilities/favorites.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/favoritesView.js +22 -34
- package/dist/esm/v2/personalization/capabilities/favoritesView.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/gridPreferences.js +203 -0
- package/dist/esm/v2/personalization/capabilities/gridPreferences.js.map +1 -0
- package/dist/esm/v2/personalization/capabilities/index.js +5 -0
- package/dist/esm/v2/personalization/capabilities/index.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/reviveSavedCriteria.js +119 -0
- package/dist/esm/v2/personalization/capabilities/reviveSavedCriteria.js.map +1 -0
- package/dist/esm/v2/personalization/capabilities/savedFilters.js +90 -98
- package/dist/esm/v2/personalization/capabilities/savedFilters.js.map +1 -1
- package/dist/esm/v2/personalization/createPersonalizationStore.js +78 -181
- package/dist/esm/v2/personalization/createPersonalizationStore.js.map +1 -1
- package/dist/esm/v2/personalization/index.js +35 -0
- package/dist/esm/v2/personalization/index.js.map +1 -1
- package/dist/esm/v2/personalization/personalizationContext.js +9 -9
- package/dist/esm/v2/personalization/personalizationContext.js.map +1 -1
- package/dist/esm/v2/personalization/schema.js +8 -9
- package/dist/esm/v2/personalization/schema.js.map +1 -1
- package/dist/esm/v2/referentiel/ReferentielProvider.js +27 -42
- package/dist/esm/v2/referentiel/ReferentielProvider.js.map +1 -1
- package/dist/esm/v2/referentiel/types.js +2 -0
- package/dist/esm/v2/referentiel/types.js.map +1 -0
- package/dist/esm/v2/referentiel/useReferentielClient.js +10 -11
- package/dist/esm/v2/referentiel/useReferentielClient.js.map +1 -1
- package/dist/esm/v2/referentiel/useReferentielOptions.js +60 -117
- package/dist/esm/v2/referentiel/useReferentielOptions.js.map +1 -1
- package/dist/esm/v2/referentiel/useReferentielSearch.js +37 -91
- package/dist/esm/v2/referentiel/useReferentielSearch.js.map +1 -1
- package/dist/esm/v2/theme/_brand.js +8 -24
- package/dist/esm/v2/theme/_brand.js.map +1 -1
- package/dist/esm/v2/theme/_brandSecondary.js +8 -24
- package/dist/esm/v2/theme/_brandSecondary.js.map +1 -1
- package/dist/esm/v2/theme/createPortnetTheme.js +51 -61
- package/dist/esm/v2/theme/createPortnetTheme.js.map +1 -1
- package/dist/esm/v2/theme/cssVariables.js +62 -69
- package/dist/esm/v2/theme/cssVariables.js.map +1 -1
- package/dist/esm/v2/theme/index.js +5 -5
- package/dist/esm/v2/theme/index.js.map +1 -1
- package/dist/esm/v2/tokens/breakpoints.js +14 -14
- package/dist/esm/v2/tokens/breakpoints.js.map +1 -1
- package/dist/esm/v2/tokens/chart.js +261 -0
- package/dist/esm/v2/tokens/chart.js.map +1 -0
- package/dist/esm/v2/tokens/colors.js +22 -22
- package/dist/esm/v2/tokens/colors.js.map +1 -1
- package/dist/esm/v2/tokens/density.js +62 -7
- package/dist/esm/v2/tokens/density.js.map +1 -1
- package/dist/esm/v2/tokens/index.js +49 -34
- package/dist/esm/v2/tokens/index.js.map +1 -1
- package/dist/esm/v2/tokens/motion.js +12 -20
- package/dist/esm/v2/tokens/motion.js.map +1 -1
- package/dist/esm/v2/tokens/radius.js +1 -1
- package/dist/esm/v2/tokens/radius.js.map +1 -1
- package/dist/esm/v2/tokens/shadows.js +6 -6
- package/dist/esm/v2/tokens/shadows.js.map +1 -1
- package/dist/esm/v2/tokens/spacing.js +2 -2
- package/dist/esm/v2/tokens/spacing.js.map +1 -1
- package/dist/esm/v2/tokens/state.js +1 -1
- package/dist/esm/v2/tokens/state.js.map +1 -1
- package/dist/esm/v2/tokens/statusPalette.js +17 -21
- package/dist/esm/v2/tokens/statusPalette.js.map +1 -1
- package/dist/esm/v2/tokens/tokens.json +6 -1
- package/dist/esm/v2/tokens/typography.js +13 -13
- package/dist/esm/v2/tokens/typography.js.map +1 -1
- package/dist/esm/v2/tokens/zIndex.js +1 -1
- package/dist/esm/v2/tokens/zIndex.js.map +1 -1
- package/dist/esm/v2/types/datagrid.js.map +1 -1
- package/dist/esm/v2/utils/apiError.js +16 -37
- package/dist/esm/v2/utils/apiError.js.map +1 -1
- package/dist/esm/v2/utils/contrast.js +31 -32
- package/dist/esm/v2/utils/contrast.js.map +1 -1
- package/dist/esm/v2/utils/cx.js +5 -25
- package/dist/esm/v2/utils/cx.js.map +1 -1
- package/dist/esm/v2/utils/fileDownload.js +23 -26
- package/dist/esm/v2/utils/fileDownload.js.map +1 -1
- package/dist/esm/v2/utils/fileValidation.js +209 -0
- package/dist/esm/v2/utils/fileValidation.js.map +1 -0
- package/dist/esm/v2/utils/fmtDate.js +111 -0
- package/dist/esm/v2/utils/fmtDate.js.map +1 -0
- package/dist/esm/v2/utils/fmtMoney.js +8 -10
- package/dist/esm/v2/utils/fmtMoney.js.map +1 -1
- package/dist/esm/v2/utils/formikErrors.js +78 -0
- package/dist/esm/v2/utils/formikErrors.js.map +1 -0
- package/dist/esm/v2/utils/index.js +35 -2
- package/dist/esm/v2/utils/index.js.map +1 -1
- package/dist/esm/v2/utils/mergeLabels.js +7 -12
- package/dist/esm/v2/utils/mergeLabels.js.map +1 -1
- package/dist/esm/v2/utils/networkStatus.js +12 -12
- package/dist/esm/v2/utils/networkStatus.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +122 -47
- package/dist/index.js.map +1 -1
- package/dist/v2/__tests__/AppMain.test.js +133 -0
- package/dist/v2/__tests__/AppMain.test.js.map +1 -0
- package/dist/v2/__tests__/ChartFigure.test.js +183 -0
- package/dist/v2/__tests__/ChartFigure.test.js.map +1 -0
- package/dist/v2/__tests__/DataGridRowActionsPropagation.test.js +153 -0
- package/dist/v2/__tests__/DataGridRowActionsPropagation.test.js.map +1 -0
- package/dist/v2/__tests__/DrawerTactileTargets.test.js +94 -0
- package/dist/v2/__tests__/DrawerTactileTargets.test.js.map +1 -0
- package/dist/v2/__tests__/FieldError.test.js +98 -69
- package/dist/v2/__tests__/FieldError.test.js.map +1 -1
- package/dist/v2/__tests__/FieldNaming.test.js +161 -0
- package/dist/v2/__tests__/FieldNaming.test.js.map +1 -0
- package/dist/v2/__tests__/FieldWidth.test.js +148 -0
- package/dist/v2/__tests__/FieldWidth.test.js.map +1 -0
- package/dist/v2/__tests__/FileCard.test.js +45 -48
- package/dist/v2/__tests__/FileCard.test.js.map +1 -1
- package/dist/v2/__tests__/FormikCheckbox.test.js +175 -0
- package/dist/v2/__tests__/FormikCheckbox.test.js.map +1 -0
- package/dist/v2/__tests__/FormikDateTimePicker.test.js +237 -0
- package/dist/v2/__tests__/FormikDateTimePicker.test.js.map +1 -0
- package/dist/v2/__tests__/FormikDisplayWidth.test.js +102 -0
- package/dist/v2/__tests__/FormikDisplayWidth.test.js.map +1 -0
- package/dist/v2/__tests__/FormikRadioGroup.test.js +300 -0
- package/dist/v2/__tests__/FormikRadioGroup.test.js.map +1 -0
- package/dist/v2/__tests__/MobileRowCard.test.js +100 -102
- package/dist/v2/__tests__/MobileRowCard.test.js.map +1 -1
- package/dist/v2/__tests__/PreviewDrawer.test.js +169 -0
- package/dist/v2/__tests__/PreviewDrawer.test.js.map +1 -0
- package/dist/v2/__tests__/ReferentielFieldContainer.test.js +159 -0
- package/dist/v2/__tests__/ReferentielFieldContainer.test.js.map +1 -0
- package/dist/v2/__tests__/SectionErrorBoundary.test.js +53 -68
- package/dist/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
- package/dist/v2/__tests__/apiError.test.js +50 -69
- package/dist/v2/__tests__/apiError.test.js.map +1 -1
- package/dist/v2/__tests__/banned-patterns.test.js +42 -123
- package/dist/v2/__tests__/banned-patterns.test.js.map +1 -1
- package/dist/v2/__tests__/chart-palette.test.js +205 -0
- package/dist/v2/__tests__/chart-palette.test.js.map +1 -0
- package/dist/v2/__tests__/contrast-palette.test.js +42 -74
- package/dist/v2/__tests__/contrast-palette.test.js.map +1 -1
- package/dist/v2/__tests__/cssVariables.test.js +44 -51
- package/dist/v2/__tests__/cssVariables.test.js.map +1 -1
- package/dist/v2/__tests__/fileValidation.test.js +136 -0
- package/dist/v2/__tests__/fileValidation.test.js.map +1 -0
- package/dist/v2/__tests__/filterCriteria.test.js +324 -0
- package/dist/v2/__tests__/filterCriteria.test.js.map +1 -0
- package/dist/v2/__tests__/fmtDate.test.js +69 -0
- package/dist/v2/__tests__/fmtDate.test.js.map +1 -0
- package/dist/v2/__tests__/gap-leakage-refonte.test.js +221 -0
- package/dist/v2/__tests__/gap-leakage-refonte.test.js.map +1 -0
- package/dist/v2/__tests__/labels-merge.test.js +38 -46
- package/dist/v2/__tests__/labels-merge.test.js.map +1 -1
- package/dist/v2/__tests__/locale-fallback.test.js +47 -52
- package/dist/v2/__tests__/locale-fallback.test.js.map +1 -1
- package/dist/v2/__tests__/reviveSavedCriteria.test.js +144 -0
- package/dist/v2/__tests__/reviveSavedCriteria.test.js.map +1 -0
- package/dist/v2/__tests__/rowActions.test.js +186 -0
- package/dist/v2/__tests__/rowActions.test.js.map +1 -0
- package/dist/v2/__tests__/useFocusOnRouteChange.test.js +156 -0
- package/dist/v2/__tests__/useFocusOnRouteChange.test.js.map +1 -0
- package/dist/v2/__tests__/useFocusTrap.test.js +270 -407
- package/dist/v2/__tests__/useFocusTrap.test.js.map +1 -1
- package/dist/v2/__tests__/usePrefersReducedMotion.test.js +123 -0
- package/dist/v2/__tests__/usePrefersReducedMotion.test.js.map +1 -0
- package/dist/v2/components/Accordion.js +60 -82
- package/dist/v2/components/Accordion.js.map +1 -1
- package/dist/v2/components/ActionStrip.js +40 -52
- package/dist/v2/components/ActionStrip.js.map +1 -1
- package/dist/v2/components/Banner.js +42 -41
- package/dist/v2/components/Banner.js.map +1 -1
- package/dist/v2/components/Busy.js +22 -27
- package/dist/v2/components/Busy.js.map +1 -1
- package/dist/v2/components/Button.js +39 -50
- package/dist/v2/components/Button.js.map +1 -1
- package/dist/v2/components/CategoryTag.d.ts.map +1 -1
- package/dist/v2/components/CategoryTag.js +49 -32
- package/dist/v2/components/CategoryTag.js.map +1 -1
- package/dist/v2/components/Checkbox.js +39 -45
- package/dist/v2/components/Checkbox.js.map +1 -1
- package/dist/v2/components/Chip.js +29 -42
- package/dist/v2/components/Chip.js.map +1 -1
- package/dist/v2/components/Combobox.js +122 -144
- package/dist/v2/components/Combobox.js.map +1 -1
- package/dist/v2/components/CommandPalette.js +138 -225
- package/dist/v2/components/CommandPalette.js.map +1 -1
- package/dist/v2/components/ConfirmDialog.js +46 -56
- package/dist/v2/components/ConfirmDialog.js.map +1 -1
- package/dist/v2/components/DatePicker.js +81 -86
- package/dist/v2/components/DatePicker.js.map +1 -1
- package/dist/v2/components/DateRangePicker.js +77 -87
- package/dist/v2/components/DateRangePicker.js.map +1 -1
- package/dist/v2/components/DateTimePicker.d.ts.map +1 -1
- package/dist/v2/components/DateTimePicker.js +121 -95
- package/dist/v2/components/DateTimePicker.js.map +1 -1
- package/dist/v2/components/Drawer.d.ts.map +1 -1
- package/dist/v2/components/Drawer.js +93 -88
- package/dist/v2/components/Drawer.js.map +1 -1
- package/dist/v2/components/Dropzone.js +150 -196
- package/dist/v2/components/Dropzone.js.map +1 -1
- package/dist/v2/components/EmptyState.js +18 -20
- package/dist/v2/components/EmptyState.js.map +1 -1
- package/dist/v2/components/FavoriteToggle.js +28 -39
- package/dist/v2/components/FavoriteToggle.js.map +1 -1
- package/dist/v2/components/Field.d.ts +121 -5
- package/dist/v2/components/Field.d.ts.map +1 -1
- package/dist/v2/components/Field.js +221 -62
- package/dist/v2/components/Field.js.map +1 -1
- package/dist/v2/components/FieldError.js +18 -21
- package/dist/v2/components/FieldError.js.map +1 -1
- package/dist/v2/components/FieldHelp.js +40 -60
- package/dist/v2/components/FieldHelp.js.map +1 -1
- package/dist/v2/components/FileCard.js +27 -31
- package/dist/v2/components/FileCard.js.map +1 -1
- package/dist/v2/components/FilterTab.js +30 -38
- package/dist/v2/components/FilterTab.js.map +1 -1
- package/dist/v2/components/ForbiddenPage.d.ts +25 -1
- package/dist/v2/components/ForbiddenPage.d.ts.map +1 -1
- package/dist/v2/components/ForbiddenPage.js +37 -17
- package/dist/v2/components/ForbiddenPage.js.map +1 -1
- package/dist/v2/components/FormGrid.js +53 -59
- package/dist/v2/components/FormGrid.js.map +1 -1
- package/dist/v2/components/FormikDisplay.d.ts +50 -1
- package/dist/v2/components/FormikDisplay.d.ts.map +1 -1
- package/dist/v2/components/FormikDisplay.js +108 -33
- package/dist/v2/components/FormikDisplay.js.map +1 -1
- package/dist/v2/components/Input.d.ts +40 -0
- package/dist/v2/components/Input.d.ts.map +1 -1
- package/dist/v2/components/Input.js +81 -41
- package/dist/v2/components/Input.js.map +1 -1
- package/dist/v2/components/KPICard.js +57 -67
- package/dist/v2/components/KPICard.js.map +1 -1
- package/dist/v2/components/KPIStrip.js +16 -22
- package/dist/v2/components/KPIStrip.js.map +1 -1
- package/dist/v2/components/KV.js +25 -31
- package/dist/v2/components/KV.js.map +1 -1
- package/dist/v2/components/KVGrid.js +19 -26
- package/dist/v2/components/KVGrid.js.map +1 -1
- package/dist/v2/components/Layout.js +91 -120
- package/dist/v2/components/Layout.js.map +1 -1
- package/dist/v2/components/MobileRowCard.js +79 -91
- package/dist/v2/components/MobileRowCard.js.map +1 -1
- package/dist/v2/components/Modal.js +61 -69
- package/dist/v2/components/Modal.js.map +1 -1
- package/dist/v2/components/NetworkErrorPage.d.ts +19 -1
- package/dist/v2/components/NetworkErrorPage.d.ts.map +1 -1
- package/dist/v2/components/NetworkErrorPage.js +38 -21
- package/dist/v2/components/NetworkErrorPage.js.map +1 -1
- package/dist/v2/components/NotFoundPage.d.ts +17 -1
- package/dist/v2/components/NotFoundPage.d.ts.map +1 -1
- package/dist/v2/components/NotFoundPage.js +37 -18
- package/dist/v2/components/NotFoundPage.js.map +1 -1
- package/dist/v2/components/NumberInput.js +88 -118
- package/dist/v2/components/NumberInput.js.map +1 -1
- package/dist/v2/components/OverflowMenu.js +38 -56
- package/dist/v2/components/OverflowMenu.js.map +1 -1
- package/dist/v2/components/PdfViewer.js +34 -45
- package/dist/v2/components/PdfViewer.js.map +1 -1
- package/dist/v2/components/ProgressBar.js +42 -49
- package/dist/v2/components/ProgressBar.js.map +1 -1
- package/dist/v2/components/Radio.js +59 -67
- package/dist/v2/components/Radio.js.map +1 -1
- package/dist/v2/components/SectionErrorBoundary.js +90 -135
- package/dist/v2/components/SectionErrorBoundary.js.map +1 -1
- package/dist/v2/components/SectionHeader.js +34 -41
- package/dist/v2/components/SectionHeader.js.map +1 -1
- package/dist/v2/components/Segmented.js +69 -93
- package/dist/v2/components/Segmented.js.map +1 -1
- package/dist/v2/components/Select.d.ts +26 -2
- package/dist/v2/components/Select.d.ts.map +1 -1
- package/dist/v2/components/Select.js +120 -155
- package/dist/v2/components/Select.js.map +1 -1
- package/dist/v2/components/ServerErrorPage.d.ts +27 -1
- package/dist/v2/components/ServerErrorPage.d.ts.map +1 -1
- package/dist/v2/components/ServerErrorPage.js +37 -20
- package/dist/v2/components/ServerErrorPage.js.map +1 -1
- package/dist/v2/components/Skeleton.js +86 -100
- package/dist/v2/components/Skeleton.js.map +1 -1
- package/dist/v2/components/SkipLink.js +9 -12
- package/dist/v2/components/SkipLink.js.map +1 -1
- package/dist/v2/components/Spinner.js +16 -25
- package/dist/v2/components/Spinner.js.map +1 -1
- package/dist/v2/components/Status.js +18 -29
- package/dist/v2/components/Status.js.map +1 -1
- package/dist/v2/components/Stepper.js +80 -82
- package/dist/v2/components/Stepper.js.map +1 -1
- package/dist/v2/components/Surface.js +34 -49
- package/dist/v2/components/Surface.js.map +1 -1
- package/dist/v2/components/Switch.js +29 -37
- package/dist/v2/components/Switch.js.map +1 -1
- package/dist/v2/components/TabPanel.d.ts +17 -0
- package/dist/v2/components/TabPanel.d.ts.map +1 -0
- package/dist/v2/components/TabPanel.js +90 -0
- package/dist/v2/components/TabPanel.js.map +1 -0
- package/dist/v2/components/Tabs.d.ts +25 -0
- package/dist/v2/components/Tabs.d.ts.map +1 -1
- package/dist/v2/components/Tabs.js +53 -29
- package/dist/v2/components/Tabs.js.map +1 -1
- package/dist/v2/components/TelInput.js +80 -115
- package/dist/v2/components/TelInput.js.map +1 -1
- package/dist/v2/components/Textarea.js +26 -35
- package/dist/v2/components/Textarea.js.map +1 -1
- package/dist/v2/components/TimePicker.js +62 -74
- package/dist/v2/components/TimePicker.js.map +1 -1
- package/dist/v2/components/Toast.js +119 -174
- package/dist/v2/components/Toast.js.map +1 -1
- package/dist/v2/components/Tooltip.js +23 -38
- package/dist/v2/components/Tooltip.js.map +1 -1
- package/dist/v2/components/_ErrorPageBody.js +15 -16
- package/dist/v2/components/_ErrorPageBody.js.map +1 -1
- package/dist/v2/components/_pickerShared.js +5 -5
- package/dist/v2/components/_pickerShared.js.map +1 -1
- package/dist/v2/components/index.d.ts +67 -1
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/components/index.js +153 -136
- package/dist/v2/components/index.js.map +1 -1
- package/dist/v2/hooks/index.d.ts +65 -0
- package/dist/v2/hooks/index.d.ts.map +1 -1
- package/dist/v2/hooks/index.js +63 -24
- package/dist/v2/hooks/index.js.map +1 -1
- package/dist/v2/hooks/useAppliedFilters.d.ts +102 -0
- package/dist/v2/hooks/useAppliedFilters.d.ts.map +1 -0
- package/dist/v2/hooks/useAppliedFilters.js +117 -0
- package/dist/v2/hooks/useAppliedFilters.js.map +1 -0
- package/dist/v2/hooks/useDebouncedCallback.d.ts +64 -0
- package/dist/v2/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/v2/hooks/useDebouncedCallback.js +87 -0
- package/dist/v2/hooks/useDebouncedCallback.js.map +1 -0
- package/dist/v2/hooks/useDelayedFlag.js +6 -20
- package/dist/v2/hooks/useDelayedFlag.js.map +1 -1
- package/dist/v2/hooks/useDensity.d.ts.map +1 -1
- package/dist/v2/hooks/useDensity.js +14 -18
- package/dist/v2/hooks/useDensity.js.map +1 -1
- package/dist/v2/hooks/useFocusFirstError.js +26 -34
- package/dist/v2/hooks/useFocusFirstError.js.map +1 -1
- package/dist/v2/hooks/useFocusOnRouteChange.d.ts +65 -0
- package/dist/v2/hooks/useFocusOnRouteChange.d.ts.map +1 -0
- package/dist/v2/hooks/useFocusOnRouteChange.js +88 -0
- package/dist/v2/hooks/useFocusOnRouteChange.js.map +1 -0
- package/dist/v2/hooks/useFocusTrap.js +20 -24
- package/dist/v2/hooks/useFocusTrap.js.map +1 -1
- package/dist/v2/hooks/useFormAutoSave.d.ts +4 -4
- package/dist/v2/hooks/useFormAutoSave.d.ts.map +1 -1
- package/dist/v2/hooks/useFormAutoSave.js +39 -54
- package/dist/v2/hooks/useFormAutoSave.js.map +1 -1
- package/dist/v2/hooks/useFormCompletionProgress.d.ts +1 -1
- package/dist/v2/hooks/useFormCompletionProgress.d.ts.map +1 -1
- package/dist/v2/hooks/useFormCompletionProgress.js +33 -52
- package/dist/v2/hooks/useFormCompletionProgress.js.map +1 -1
- package/dist/v2/hooks/useKeyboardShortcuts.d.ts +25 -0
- package/dist/v2/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/v2/hooks/useKeyboardShortcuts.js +132 -0
- package/dist/v2/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/v2/hooks/usePrefersReducedMotion.d.ts +56 -0
- package/dist/v2/hooks/usePrefersReducedMotion.d.ts.map +1 -0
- package/dist/v2/hooks/usePrefersReducedMotion.js +105 -0
- package/dist/v2/hooks/usePrefersReducedMotion.js.map +1 -0
- package/dist/v2/hooks/useResolvedDensity.js +5 -13
- package/dist/v2/hooks/useResolvedDensity.js.map +1 -1
- package/dist/v2/hooks/useSortedRows.js +4 -6
- package/dist/v2/hooks/useSortedRows.js.map +1 -1
- package/dist/v2/hooks/useTabLoading.js +7 -22
- package/dist/v2/hooks/useTabLoading.js.map +1 -1
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/index.js +143 -145
- package/dist/v2/index.js.map +1 -1
- package/dist/v2/modalContext.js +2 -2
- package/dist/v2/modalContext.js.map +1 -1
- package/dist/v2/models/favorite.d.ts +8 -9
- package/dist/v2/models/favorite.d.ts.map +1 -1
- package/dist/v2/models/favorite.js.map +1 -1
- package/dist/v2/models/index.js +4 -4
- package/dist/v2/models/index.js.map +1 -1
- package/dist/v2/models/personalization.d.ts +44 -48
- package/dist/v2/models/personalization.d.ts.map +1 -1
- package/dist/v2/models/personalization.js.map +1 -1
- package/dist/v2/models/referentiel.d.ts +32 -50
- package/dist/v2/models/referentiel.d.ts.map +1 -1
- package/dist/v2/models/referentiel.js.map +1 -1
- package/dist/v2/models/savedFilter.d.ts +8 -17
- package/dist/v2/models/savedFilter.d.ts.map +1 -1
- package/dist/v2/models/savedFilter.js.map +1 -1
- package/dist/v2/patterns/ActionBar.js +152 -187
- package/dist/v2/patterns/ActionBar.js.map +1 -1
- package/dist/v2/patterns/AppMain.d.ts +109 -0
- package/dist/v2/patterns/AppMain.d.ts.map +1 -0
- package/dist/v2/patterns/AppMain.js +115 -0
- package/dist/v2/patterns/AppMain.js.map +1 -0
- package/dist/v2/patterns/BulkActionBar.js +40 -42
- package/dist/v2/patterns/BulkActionBar.js.map +1 -1
- package/dist/v2/patterns/ChartFigure.d.ts +124 -0
- package/dist/v2/patterns/ChartFigure.d.ts.map +1 -0
- package/dist/v2/patterns/ChartFigure.js +159 -0
- package/dist/v2/patterns/ChartFigure.js.map +1 -0
- package/dist/v2/patterns/CollapsibleDataGrid.js +138 -174
- package/dist/v2/patterns/CollapsibleDataGrid.js.map +1 -1
- package/dist/v2/patterns/ColumnsToggle.js +60 -94
- package/dist/v2/patterns/ColumnsToggle.js.map +1 -1
- package/dist/v2/patterns/DataGrid.d.ts.map +1 -1
- package/dist/v2/patterns/DataGrid.js +262 -297
- package/dist/v2/patterns/DataGrid.js.map +1 -1
- package/dist/v2/patterns/DataGridSettingsMenu.d.ts +12 -0
- package/dist/v2/patterns/DataGridSettingsMenu.d.ts.map +1 -1
- package/dist/v2/patterns/DataGridSettingsMenu.js +104 -121
- package/dist/v2/patterns/DataGridSettingsMenu.js.map +1 -1
- package/dist/v2/patterns/DataGridToolbar.js +103 -106
- package/dist/v2/patterns/DataGridToolbar.js.map +1 -1
- package/dist/v2/patterns/DataGridVirtualized.js +179 -217
- package/dist/v2/patterns/DataGridVirtualized.js.map +1 -1
- package/dist/v2/patterns/DeleteResourceConfirmDialog.js +32 -35
- package/dist/v2/patterns/DeleteResourceConfirmDialog.js.map +1 -1
- package/dist/v2/patterns/DetailSplit.d.ts +87 -0
- package/dist/v2/patterns/DetailSplit.d.ts.map +1 -0
- package/dist/v2/patterns/DetailSplit.js +116 -0
- package/dist/v2/patterns/DetailSplit.js.map +1 -0
- package/dist/v2/patterns/FavoriteColumn.d.ts +9 -9
- package/dist/v2/patterns/FavoriteColumn.d.ts.map +1 -1
- package/dist/v2/patterns/FavoriteColumn.js +32 -80
- package/dist/v2/patterns/FavoriteColumn.js.map +1 -1
- package/dist/v2/patterns/FavoritesFilter.js +36 -44
- package/dist/v2/patterns/FavoritesFilter.js.map +1 -1
- package/dist/v2/patterns/FilterTabBar.d.ts +28 -0
- package/dist/v2/patterns/FilterTabBar.d.ts.map +1 -0
- package/dist/v2/patterns/FilterTabBar.js +120 -0
- package/dist/v2/patterns/FilterTabBar.js.map +1 -0
- package/dist/v2/patterns/FormErrorSummary.js +20 -23
- package/dist/v2/patterns/FormErrorSummary.js.map +1 -1
- package/dist/v2/patterns/FormPageShell.js +53 -50
- package/dist/v2/patterns/FormPageShell.js.map +1 -1
- package/dist/v2/patterns/FormSection.d.ts +8 -3
- package/dist/v2/patterns/FormSection.d.ts.map +1 -1
- package/dist/v2/patterns/FormSection.js +44 -51
- package/dist/v2/patterns/FormSection.js.map +1 -1
- package/dist/v2/patterns/FormikCheckbox.d.ts +77 -0
- package/dist/v2/patterns/FormikCheckbox.d.ts.map +1 -0
- package/dist/v2/patterns/FormikCheckbox.js +138 -0
- package/dist/v2/patterns/FormikCheckbox.js.map +1 -0
- package/dist/v2/patterns/FormikCheckboxGroup.d.ts +17 -1
- package/dist/v2/patterns/FormikCheckboxGroup.d.ts.map +1 -1
- package/dist/v2/patterns/FormikCheckboxGroup.js +62 -65
- package/dist/v2/patterns/FormikCheckboxGroup.js.map +1 -1
- package/dist/v2/patterns/FormikCombobox.d.ts +7 -1
- package/dist/v2/patterns/FormikCombobox.d.ts.map +1 -1
- package/dist/v2/patterns/FormikCombobox.js +55 -69
- package/dist/v2/patterns/FormikCombobox.js.map +1 -1
- package/dist/v2/patterns/FormikDatePicker.d.ts +13 -1
- package/dist/v2/patterns/FormikDatePicker.d.ts.map +1 -1
- package/dist/v2/patterns/FormikDatePicker.js +59 -106
- package/dist/v2/patterns/FormikDatePicker.js.map +1 -1
- package/dist/v2/patterns/FormikDateTimePicker.d.ts +111 -0
- package/dist/v2/patterns/FormikDateTimePicker.d.ts.map +1 -0
- package/dist/v2/patterns/FormikDateTimePicker.js +144 -0
- package/dist/v2/patterns/FormikDateTimePicker.js.map +1 -0
- package/dist/v2/patterns/FormikErrorFocus.js +25 -26
- package/dist/v2/patterns/FormikErrorFocus.js.map +1 -1
- package/dist/v2/patterns/FormikErrorSummary.d.ts +74 -0
- package/dist/v2/patterns/FormikErrorSummary.d.ts.map +1 -0
- package/dist/v2/patterns/FormikErrorSummary.js +97 -0
- package/dist/v2/patterns/FormikErrorSummary.js.map +1 -0
- package/dist/v2/patterns/FormikFile.d.ts +14 -1
- package/dist/v2/patterns/FormikFile.d.ts.map +1 -1
- package/dist/v2/patterns/FormikFile.js +99 -83
- package/dist/v2/patterns/FormikFile.js.map +1 -1
- package/dist/v2/patterns/FormikInput.d.ts +11 -1
- package/dist/v2/patterns/FormikInput.d.ts.map +1 -1
- package/dist/v2/patterns/FormikInput.js +45 -55
- package/dist/v2/patterns/FormikInput.js.map +1 -1
- package/dist/v2/patterns/FormikRadioGroup.d.ts +80 -0
- package/dist/v2/patterns/FormikRadioGroup.d.ts.map +1 -0
- package/dist/v2/patterns/FormikRadioGroup.js +137 -0
- package/dist/v2/patterns/FormikRadioGroup.js.map +1 -0
- package/dist/v2/patterns/FormikReferentielField.d.ts +12 -1
- package/dist/v2/patterns/FormikReferentielField.d.ts.map +1 -1
- package/dist/v2/patterns/FormikReferentielField.js +54 -64
- package/dist/v2/patterns/FormikReferentielField.js.map +1 -1
- package/dist/v2/patterns/FormikSelect.d.ts +9 -1
- package/dist/v2/patterns/FormikSelect.d.ts.map +1 -1
- package/dist/v2/patterns/FormikSelect.js +70 -89
- package/dist/v2/patterns/FormikSelect.js.map +1 -1
- package/dist/v2/patterns/FormikTextarea.d.ts +9 -1
- package/dist/v2/patterns/FormikTextarea.d.ts.map +1 -1
- package/dist/v2/patterns/FormikTextarea.js +35 -48
- package/dist/v2/patterns/FormikTextarea.js.map +1 -1
- package/dist/v2/patterns/KeyboardShortcutsHelp.d.ts +14 -1
- package/dist/v2/patterns/KeyboardShortcutsHelp.d.ts.map +1 -1
- package/dist/v2/patterns/KeyboardShortcutsHelp.js +71 -74
- package/dist/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
- package/dist/v2/patterns/NetworkErrorBanner.js +13 -16
- package/dist/v2/patterns/NetworkErrorBanner.js.map +1 -1
- package/dist/v2/patterns/PageContent.js +17 -20
- package/dist/v2/patterns/PageContent.js.map +1 -1
- package/dist/v2/patterns/PreviewDrawer.d.ts +49 -0
- package/dist/v2/patterns/PreviewDrawer.d.ts.map +1 -0
- package/dist/v2/patterns/PreviewDrawer.js +159 -0
- package/dist/v2/patterns/PreviewDrawer.js.map +1 -0
- package/dist/v2/patterns/ReferentielField.d.ts +86 -2
- package/dist/v2/patterns/ReferentielField.d.ts.map +1 -1
- package/dist/v2/patterns/ReferentielField.js +347 -327
- package/dist/v2/patterns/ReferentielField.js.map +1 -1
- package/dist/v2/patterns/RowFavoriteToggle.d.ts +98 -0
- package/dist/v2/patterns/RowFavoriteToggle.d.ts.map +1 -0
- package/dist/v2/patterns/RowFavoriteToggle.js +135 -0
- package/dist/v2/patterns/RowFavoriteToggle.js.map +1 -0
- package/dist/v2/patterns/SaveFilterDialog.js +50 -77
- package/dist/v2/patterns/SaveFilterDialog.js.map +1 -1
- package/dist/v2/patterns/SavedFiltersMenu.js +89 -107
- package/dist/v2/patterns/SavedFiltersMenu.js.map +1 -1
- package/dist/v2/patterns/SkeletonPageShell.js +122 -143
- package/dist/v2/patterns/SkeletonPageShell.js.map +1 -1
- package/dist/v2/patterns/SortableHeader.js +35 -57
- package/dist/v2/patterns/SortableHeader.js.map +1 -1
- package/dist/v2/patterns/Tour.js +121 -142
- package/dist/v2/patterns/Tour.js.map +1 -1
- package/dist/v2/patterns/_dataGridShared.d.ts.map +1 -1
- package/dist/v2/patterns/_dataGridShared.js +131 -147
- package/dist/v2/patterns/_dataGridShared.js.map +1 -1
- package/dist/v2/patterns/_pickerSerialisation.d.ts +44 -0
- package/dist/v2/patterns/_pickerSerialisation.d.ts.map +1 -0
- package/dist/v2/patterns/_pickerSerialisation.js +80 -0
- package/dist/v2/patterns/_pickerSerialisation.js.map +1 -0
- package/dist/v2/patterns/_sort.js +17 -33
- package/dist/v2/patterns/_sort.js.map +1 -1
- package/dist/v2/patterns/_useColumnReorder.js +124 -163
- package/dist/v2/patterns/_useColumnReorder.js.map +1 -1
- package/dist/v2/patterns/_useColumnResize.js +80 -99
- package/dist/v2/patterns/_useColumnResize.js.map +1 -1
- package/dist/v2/patterns/filterCriteria.d.ts +78 -0
- package/dist/v2/patterns/filterCriteria.d.ts.map +1 -0
- package/dist/v2/patterns/filterCriteria.js +110 -0
- package/dist/v2/patterns/filterCriteria.js.map +1 -0
- package/dist/v2/patterns/index.d.ts +247 -0
- package/dist/v2/patterns/index.d.ts.map +1 -1
- package/dist/v2/patterns/index.js +182 -70
- package/dist/v2/patterns/index.js.map +1 -1
- package/dist/v2/patterns/rowActions.d.ts +150 -0
- package/dist/v2/patterns/rowActions.d.ts.map +1 -0
- package/dist/v2/patterns/rowActions.js +232 -0
- package/dist/v2/patterns/rowActions.js.map +1 -0
- package/dist/v2/personalization/PersonalizationProvider.d.ts.map +1 -1
- package/dist/v2/personalization/PersonalizationProvider.js +57 -53
- package/dist/v2/personalization/PersonalizationProvider.js.map +1 -1
- package/dist/v2/personalization/adapters/_storageKey.js +5 -5
- package/dist/v2/personalization/adapters/_storageKey.js.map +1 -1
- package/dist/v2/personalization/adapters/createLocalStorageAdapter.js +25 -24
- package/dist/v2/personalization/adapters/createLocalStorageAdapter.js.map +1 -1
- package/dist/v2/personalization/adapters/createMemoryAdapter.js +14 -14
- package/dist/v2/personalization/adapters/createMemoryAdapter.js.map +1 -1
- package/dist/v2/personalization/adapters/index.js +5 -5
- package/dist/v2/personalization/adapters/index.js.map +1 -1
- package/dist/v2/personalization/capabilities/favorites.js +39 -62
- package/dist/v2/personalization/capabilities/favorites.js.map +1 -1
- package/dist/v2/personalization/capabilities/favoritesView.js +25 -37
- package/dist/v2/personalization/capabilities/favoritesView.js.map +1 -1
- package/dist/v2/personalization/capabilities/gridPreferences.d.ts +100 -0
- package/dist/v2/personalization/capabilities/gridPreferences.d.ts.map +1 -0
- package/dist/v2/personalization/capabilities/gridPreferences.js +210 -0
- package/dist/v2/personalization/capabilities/gridPreferences.js.map +1 -0
- package/dist/v2/personalization/capabilities/index.d.ts +6 -0
- package/dist/v2/personalization/capabilities/index.d.ts.map +1 -1
- package/dist/v2/personalization/capabilities/index.js +23 -10
- package/dist/v2/personalization/capabilities/index.js.map +1 -1
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.d.ts +88 -0
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.d.ts.map +1 -0
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.js +126 -0
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.js.map +1 -0
- package/dist/v2/personalization/capabilities/savedFilters.js +93 -100
- package/dist/v2/personalization/capabilities/savedFilters.js.map +1 -1
- package/dist/v2/personalization/createPersonalizationStore.d.ts.map +1 -1
- package/dist/v2/personalization/createPersonalizationStore.js +81 -182
- package/dist/v2/personalization/createPersonalizationStore.js.map +1 -1
- package/dist/v2/personalization/index.d.ts +34 -0
- package/dist/v2/personalization/index.d.ts.map +1 -1
- package/dist/v2/personalization/index.js +41 -21
- package/dist/v2/personalization/index.js.map +1 -1
- package/dist/v2/personalization/personalizationContext.js +10 -12
- package/dist/v2/personalization/personalizationContext.js.map +1 -1
- package/dist/v2/personalization/schema.js +8 -9
- package/dist/v2/personalization/schema.js.map +1 -1
- package/dist/v2/referentiel/ReferentielProvider.js +31 -45
- package/dist/v2/referentiel/ReferentielProvider.js.map +1 -1
- package/dist/v2/referentiel/index.js +11 -13
- package/dist/v2/referentiel/index.js.map +1 -1
- package/dist/v2/referentiel/types.d.ts +105 -0
- package/dist/v2/referentiel/types.d.ts.map +1 -0
- package/dist/v2/referentiel/types.js +6 -0
- package/dist/v2/referentiel/types.js.map +1 -0
- package/dist/v2/referentiel/useReferentielClient.js +13 -16
- package/dist/v2/referentiel/useReferentielClient.js.map +1 -1
- package/dist/v2/referentiel/useReferentielOptions.d.ts +7 -17
- package/dist/v2/referentiel/useReferentielOptions.d.ts.map +1 -1
- package/dist/v2/referentiel/useReferentielOptions.js +63 -120
- package/dist/v2/referentiel/useReferentielOptions.js.map +1 -1
- package/dist/v2/referentiel/useReferentielSearch.d.ts +7 -48
- package/dist/v2/referentiel/useReferentielSearch.d.ts.map +1 -1
- package/dist/v2/referentiel/useReferentielSearch.js +40 -95
- package/dist/v2/referentiel/useReferentielSearch.js.map +1 -1
- package/dist/v2/theme/_brand.js +12 -26
- package/dist/v2/theme/_brand.js.map +1 -1
- package/dist/v2/theme/_brandSecondary.js +12 -26
- package/dist/v2/theme/_brandSecondary.js.map +1 -1
- package/dist/v2/theme/createPortnetTheme.js +41 -49
- package/dist/v2/theme/createPortnetTheme.js.map +1 -1
- package/dist/v2/theme/cssVariables.d.ts +3 -3
- package/dist/v2/theme/cssVariables.d.ts.map +1 -1
- package/dist/v2/theme/cssVariables.js +65 -70
- package/dist/v2/theme/cssVariables.js.map +1 -1
- package/dist/v2/theme/index.js +10 -10
- package/dist/v2/theme/index.js.map +1 -1
- package/dist/v2/tokens/breakpoints.js +16 -16
- package/dist/v2/tokens/breakpoints.js.map +1 -1
- package/dist/v2/tokens/chart.d.ts +103 -0
- package/dist/v2/tokens/chart.d.ts.map +1 -0
- package/dist/v2/tokens/chart.js +270 -0
- package/dist/v2/tokens/chart.js.map +1 -0
- package/dist/v2/tokens/colors.js +24 -24
- package/dist/v2/tokens/colors.js.map +1 -1
- package/dist/v2/tokens/density.d.ts +104 -0
- package/dist/v2/tokens/density.d.ts.map +1 -1
- package/dist/v2/tokens/density.js +67 -12
- package/dist/v2/tokens/density.js.map +1 -1
- package/dist/v2/tokens/index.d.ts +50 -1
- package/dist/v2/tokens/index.d.ts.map +1 -1
- package/dist/v2/tokens/index.js +116 -68
- package/dist/v2/tokens/index.js.map +1 -1
- package/dist/v2/tokens/motion.js +16 -22
- package/dist/v2/tokens/motion.js.map +1 -1
- package/dist/v2/tokens/radius.js +3 -3
- package/dist/v2/tokens/radius.js.map +1 -1
- package/dist/v2/tokens/shadows.js +8 -8
- package/dist/v2/tokens/shadows.js.map +1 -1
- package/dist/v2/tokens/spacing.js +4 -4
- package/dist/v2/tokens/spacing.js.map +1 -1
- package/dist/v2/tokens/state.js +3 -3
- package/dist/v2/tokens/state.js.map +1 -1
- package/dist/v2/tokens/statusPalette.js +21 -23
- package/dist/v2/tokens/statusPalette.js.map +1 -1
- package/dist/v2/tokens/tokens.json +6 -1
- package/dist/v2/tokens/typography.js +15 -15
- package/dist/v2/tokens/typography.js.map +1 -1
- package/dist/v2/tokens/zIndex.js +3 -3
- package/dist/v2/tokens/zIndex.js.map +1 -1
- package/dist/v2/types/datagrid.d.ts +9 -1
- package/dist/v2/types/datagrid.d.ts.map +1 -1
- package/dist/v2/types/datagrid.js.map +1 -1
- package/dist/v2/types/index.js +2 -2
- package/dist/v2/types/index.js.map +1 -1
- package/dist/v2/utils/apiError.js +16 -37
- package/dist/v2/utils/apiError.js.map +1 -1
- package/dist/v2/utils/contrast.js +31 -32
- package/dist/v2/utils/contrast.js.map +1 -1
- package/dist/v2/utils/cx.js +7 -27
- package/dist/v2/utils/cx.js.map +1 -1
- package/dist/v2/utils/fileDownload.js +25 -28
- package/dist/v2/utils/fileDownload.js.map +1 -1
- package/dist/v2/utils/fileValidation.d.ts +116 -0
- package/dist/v2/utils/fileValidation.d.ts.map +1 -0
- package/dist/v2/utils/fileValidation.js +220 -0
- package/dist/v2/utils/fileValidation.js.map +1 -0
- package/dist/v2/utils/fmtDate.d.ts +103 -0
- package/dist/v2/utils/fmtDate.d.ts.map +1 -0
- package/dist/v2/utils/fmtDate.js +119 -0
- package/dist/v2/utils/fmtDate.js.map +1 -0
- package/dist/v2/utils/fmtMoney.d.ts +3 -3
- package/dist/v2/utils/fmtMoney.d.ts.map +1 -1
- package/dist/v2/utils/fmtMoney.js +9 -11
- package/dist/v2/utils/fmtMoney.js.map +1 -1
- package/dist/v2/utils/formikErrors.d.ts +67 -0
- package/dist/v2/utils/formikErrors.d.ts.map +1 -0
- package/dist/v2/utils/formikErrors.js +85 -0
- package/dist/v2/utils/formikErrors.js.map +1 -0
- package/dist/v2/utils/index.d.ts +5 -0
- package/dist/v2/utils/index.d.ts.map +1 -1
- package/dist/v2/utils/index.js +67 -18
- package/dist/v2/utils/index.js.map +1 -1
- package/dist/v2/utils/mergeLabels.js +9 -14
- package/dist/v2/utils/mergeLabels.js.map +1 -1
- package/dist/v2/utils/networkStatus.js +14 -14
- package/dist/v2/utils/networkStatus.js.map +1 -1
- package/package.json +26 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Spinner","_interopRequireDefault","require","_Button","_Field","_FieldError","_Input","_Select","_Textarea","_Checkbox","_interopRequireWildcard","_Radio","_Switch","_Combobox","_TelInput","_NumberInput","_DatePicker","_DateTimePicker","_TimePicker","_DateRangePicker","_Status","_Chip","_Skeleton","_Modal","_Drawer","_ConfirmDialog","_Tabs","_Stepper","_FilterTab","_EmptyState","_Banner","_SectionErrorBoundary","_Toast","_KV","_KPICard","_KPIStrip","_MobileRowCard","_OverflowMenu","_FieldHelp","_SkipLink","_ProgressBar","_Segmented","_Dropzone","_CommandPalette","_Busy","_FormGrid","_KVGrid","_Surface","_FileCard","_Layout","_SectionHeader","_Accordion","_Tooltip","_ActionStrip","_CategoryTag","_FavoriteToggle","_PdfViewer","_ForbiddenPage","_NotFoundPage","_ServerErrorPage","_NetworkErrorPage","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["../../../src/lib/v2/components/index.ts"],"sourcesContent":["export { default as Spinner } from \"./Spinner\";\r\nexport { default as Button } from \"./Button\";\r\nexport { default as Field } from \"./Field\";\r\n/**\r\n * FieldError — the message renderer `Field` uses, exported standalone\r\n * (capability gap G-18).\r\n *\r\n * Charter R-4.1 MUST requires a field error to carry an ICON; `Field` rendered a\r\n * bare red helper text without one, so the canonical field wrapper missed a MUST\r\n * on every form of every module. And a LIST-level error (a Formik array, an\r\n * upload slot) has no single control to wrap in a `Field` at all — addpe-fe's\r\n * local `InlineFieldAlert` reimplemented the recipe and was, ironically, more\r\n * charter-compliant than the shared component it could not reuse.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FieldError } from \"./FieldError\";\r\nexport type { FieldErrorProps } from \"./FieldError\";\r\nexport { default as Input } from \"./Input\";\r\nexport { default as Select } from \"./Select\";\r\nexport type { SelectOption, SelectOptionObject, SelectOptionValue, SelectValue, SelectChangeLike, SelectLabels } from \"./Select\";\r\nexport { default as Textarea } from \"./Textarea\";\r\nexport { default as Checkbox, CheckboxGroup } from \"./Checkbox\";\r\nexport { default as Radio, RadioGroup } from \"./Radio\";\r\nexport { default as Switch } from \"./Switch\";\r\nexport { default as Combobox } from \"./Combobox\";\r\nexport type { ComboboxOption, ComboboxOptionValue, ComboboxValue, ComboboxLabels, ComboboxProps } from \"./Combobox\";\r\nexport { default as TelInput } from \"./TelInput\";\r\nexport {\r\n default as NumberInput,\r\n FR_DECIMAL_SEPARATOR,\r\n FR_THOUSAND_SEPARATOR,\r\n} from \"./NumberInput\";\r\nexport {\r\n default as DatePicker,\r\n DATE_FORMAT_CHARTER,\r\n} from \"./DatePicker\";\r\nexport {\r\n default as DateTimePicker,\r\n DATETIME_FORMAT_CHARTER,\r\n} from \"./DateTimePicker\";\r\nexport {\r\n default as TimePicker,\r\n TIME_FORMAT_CHARTER,\r\n} from \"./TimePicker\";\r\nexport { default as DateRangePicker } from \"./DateRangePicker\";\r\nexport { default as Status } from \"./Status\";\r\n/**\r\n * Status contracts — public typed surface (capability gap G-31).\r\n *\r\n * Same defect as the `StepStatus` and `FieldHelp` blocks below: `Status` was\r\n * exported as a VALUE while the types describing it were not re-exported here,\r\n * so a host mapping its own business codes onto the six canonical workflow\r\n * tones had to hand-write the union at the call site — which the Platform\r\n * TypeScript Guidelines forbid (\"Reusable types belong inside Shared UI\r\n * Library … Never duplicate\"). caution-ui carried exactly that local twin\r\n * (`CautionStatusKind`, six members, structurally identical) plus five\r\n * `as ComponentProps<typeof Status>` assertions at the render sites — casts\r\n * that were never needed for anything except reaching an unreachable type.\r\n *\r\n * `StatusProps` travels with it: a consumer building the chip props as an\r\n * object (mobile card, KV value slot, DataGrid cell renderer) needs the prop\r\n * contract, and re-declaring it is the same duplication one level down.\r\n *\r\n * KNOWN DEBT: `StatusKind` is currently derived as\r\n * `keyof typeof STATUS_LABELS_FR`, and STATUS_LABELS_FR is itself marked\r\n * `@deprecated … Will be removed in v0.3` (we are at 0.8.0). Deleting that\r\n * const would delete the public type with it. Re-anchoring `StatusKind` to a\r\n * literal tuple form of STATUS_KEYS — which is typed `readonly string[]` and\r\n * so cannot currently derive a union — is tracked separately; surfacing the\r\n * type now does not deepen that debt, it only makes it visible to consumers.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StatusKind } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StatusKind, StatusProps } from \"./Status\";\r\nexport { default as Chip } from \"./Chip\";\r\nexport {\r\n default as Skeleton,\r\n SkeletonKPI,\r\n SkeletonRow,\r\n SkeletonDetailHero,\r\n SkeletonTabContent,\r\n SkeletonText,\r\n} from \"./Skeleton\";\r\nexport { default as Modal } from \"./Modal\";\r\nexport { default as Drawer } from \"./Drawer\";\r\nexport type { DrawerProps, DrawerLabels, DrawerAnchor } from \"./Drawer\";\r\nexport { default as ConfirmDialog } from \"./ConfirmDialog\";\r\nexport { default as Tabs } from \"./Tabs\";\r\nexport { default as HStepper, VStepper } from \"./Stepper\";\r\n/**\r\n * Stepper data contracts — public typed surface.\r\n *\r\n * `StepStatus` is the literal union `HStepper`/`VStepper` accept on each\r\n * step. It was exported from ./Stepper but never re-exported here, so a host\r\n * building a step array had to hand-write the union at the call site — which\r\n * the Platform TypeScript Guidelines forbid (\"Reusable types belong inside\r\n * Shared UI Library … Never duplicate\"). ms_licenceexportation's\r\n * ExportationDetailProgress carried exactly that duplicate, with a comment\r\n * recording why. `VStepperItem` is surfaced alongside it because the same\r\n * consumer constructs the item objects the union lives in.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StepStatus } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StepStatus, StepState, VStepperItem } from \"./Stepper\";\r\nexport { default as FilterTab } from \"./FilterTab\";\r\nexport type { FilterTabVariant, FilterTabLabels } from \"./FilterTab\";\r\nexport { default as EmptyState } from \"./EmptyState\";\r\nexport { default as Banner } from \"./Banner\";\r\nexport type { BannerVariant, BannerAction } from \"./Banner\";\r\n/**\r\n * SectionErrorBoundary — fault tolerance by import, not by copy (gap G-30).\r\n *\r\n * ISO/IEC 25010 § Reliability requires a system to keep operating despite a\r\n * fault; React unmounts the WHOLE tree on a render exception, so one failing\r\n * section replaces the page with a blank screen. `ms-ti-fe` wrapped 13 sections\r\n * in a boundary of its own while `addpe-fe` and this library had none — a\r\n * platform guarantee living as one module's private safeguard.\r\n *\r\n * Declared after Banner because it renders one as its fallback.\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as SectionErrorBoundary } from \"./SectionErrorBoundary\";\r\nexport type { SectionErrorBoundaryProps } from \"./SectionErrorBoundary\";\r\nexport { default as ToastProvider, useToast } from \"./Toast\";\r\nexport type { ToastVariant, ToastProviderLabels, ToastUndoOptions, ToastProgressHandle, ToastApi } from \"./Toast\";\r\nexport { default as KV } from \"./KV\";\r\nexport { default as KPICard } from \"./KPICard\";\r\nexport type { KPICardProps, KPICardLabels } from \"./KPICard\";\r\n/**\r\n * KPIStrip — the metric-tile row (capability gap G-11).\r\n *\r\n * Charter §07 names this zone in the canonical page template (« ③ FILTERS / KPI\r\n * STRIP ») but the library shipped only the TILE. So every screen wrote the\r\n * grid, and the two in addpe-fe disagree on the desktop ladder — a KPI row that\r\n * reflows differently per screen for no reason a user could name.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as KPIStrip } from \"./KPIStrip\";\r\nexport type { KPIStripProps } from \"./KPIStrip\";\r\nexport { default as MobileRowCard } from \"./MobileRowCard\";\r\nexport type { MobileRowCardProps } from \"./MobileRowCard\";\r\nexport { default as OverflowMenu } from \"./OverflowMenu\";\r\nexport type { OverflowMenuAction, OverflowMenuProps, OverflowMenuLabels } from \"./OverflowMenu\";\r\nexport { default as FieldHelp } from \"./FieldHelp\";\r\n/**\r\n * FieldHelp contracts — public typed surface (capability gap G-16).\r\n *\r\n * Same defect as the `StepStatus` block above: `FieldHelp` was exported as a\r\n * VALUE while the types describing what it accepts were not re-exported here,\r\n * so a host maintaining a help-copy dictionary had to hand-declare the entry\r\n * shape — which the Platform TypeScript Guidelines forbid (\"Reusable types\r\n * belong inside Shared UI Library … Never duplicate\"). addpe-fe's `HELP_TEXTS`\r\n * carries exactly that local twin (`HelpTextEntry`), with a comment recording\r\n * that `FieldHelpProps` was unreachable.\r\n *\r\n * `FieldHelpVariant` / `FieldHelpIcon` travel with it: a dictionary that sets\r\n * `variant` per entry needs the union, and re-declaring `\"tooltip\" | \"popover\"`\r\n * at the call site is the same duplication one level down.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { FieldHelpProps, FieldHelpVariant, FieldHelpIcon } from \"./FieldHelp\";\r\nexport { default as SkipLink } from \"./SkipLink\";\r\nexport { default as ProgressBar } from \"./ProgressBar\";\r\nexport { default as Segmented } from \"./Segmented\";\r\nexport { default as Dropzone } from \"./Dropzone\";\r\nexport type {\r\n DropzoneProps,\r\n DropzoneFile,\r\n DropzoneFileStatus,\r\n DropzoneRejection,\r\n DropzoneRejectReason,\r\n DropzoneReasons,\r\n DropzoneLabels,\r\n} from \"./Dropzone\";\r\nexport { default as CommandPalette } from \"./CommandPalette\";\r\n\r\n// Loading-overlay primitives (Charter §04.4). See ./Busy.js.\r\n// Replaces the PAGE_OVERLAY_SX inline block that host modules\r\n// previously froze in 15+ feature pages.\r\nexport { default as SectionBusy, PageBusy } from \"./Busy\";\r\n\r\n// Layout primitives (Charter §03). Replace local FormGrid / KVGrid\r\n// wrappers that host modules previously inlined.\r\nexport { default as FormGrid } from \"./FormGrid\";\r\nexport { default as KVGrid } from \"./KVGrid\";\r\n\r\n/**\r\n * Surface — the bare card container (capability gap G-10).\r\n *\r\n * The card recipe (--surface + --border + -r-lg + --shadow-*) existed only\r\n * WELDED INSIDE FormSection, which also imposes a numbered heading and an inner\r\n * FormGrid. A consumer needing just the container — a DataGrid shell, a hero\r\n * card, a sticky side rail, a nested file row — could not reach it and rewrote\r\n * the recipe: three copies in addpe-fe plus a document card repeated across\r\n * three files, each having picked its own elevation and radius from memory.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as Surface } from \"./Surface\";\r\nexport type {\r\n SurfaceProps,\r\n SurfaceTone,\r\n SurfaceElevation,\r\n SurfaceRadius,\r\n SurfacePadding,\r\n} from \"./Surface\";\r\n\r\n/**\r\n * FileCard — an attached document, displayed (capability gap G-12).\r\n *\r\n * The library shipped `Dropzone`, the UPLOAD affordance, and nothing for the\r\n * state immediately after it. So every screen showing an attachment rebuilt the\r\n * same row: three copies in addpe-fe, with THREE different paddings for one\r\n * concept — accidental drift, exactly what R-2.1 forbids. Composes `Surface`.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FileCard } from \"./FileCard\";\r\nexport type { FileCardProps } from \"./FileCard\";\r\n\r\n// Generic flex container + stack shorthand (B17). Drop-in\r\n// replacement for the common MUI Box/Stack usage pattern when no\r\n// breakpoint variation is required. See ./Layout.js.\r\nexport { Box, Stack } from \"./Layout\";\r\n\r\n// Section-header primitive (Charter §03). Standalone heading row;\r\n// see SectionHeader.js for how it differs from FormSection.\r\nexport { default as SectionHeader } from \"./SectionHeader\";\r\n\r\n// Disclosure primitives (Charter §03). Accordion uses native\r\n// <details>/<summary>; Tooltip wraps MuiTooltip with token theming\r\n// and aria-label mirroring for icon-only triggers.\r\nexport { default as Accordion } from \"./Accordion\";\r\nexport { default as Tooltip } from \"./Tooltip\";\r\n\r\n// Footer action strip (Charter §03). Distinct from ActionBar\r\n// (page header) and BulkActionBar (selection toolbar).\r\nexport { default as ActionStrip } from \"./ActionStrip\";\r\n\r\n// Taxonomy chip — reuses the 6-tone status palette but distinct\r\n// from v2.Status (category != workflow state).\r\nexport { default as CategoryTag } from \"./CategoryTag\";\r\n\r\n// Favorite toggle (☆/★) — presentational, controlled leaf primitive\r\n// used by the User Personalization Foundation's favorites capability\r\n// (v2/personalization). Provider-free: wire with useIsFavorite /\r\n// useFavorites, or drive manually via pressed/onChange.\r\nexport { default as FavoriteToggle } from \"./FavoriteToggle\";\r\n\r\n// Document viewer (Charter §07). Presentational pdf.js wrapper; the host\r\n// owns fetching (fileUrl|base64 + loading/error + workerUrl). Pulls the\r\n// @react-pdf-viewer / pdfjs-dist OPTIONAL peer deps — installed only by\r\n// PDF-consuming modules.\r\nexport { default as PdfViewer } from \"./PdfViewer\";\r\nexport type { PdfViewerProps } from \"./PdfViewer\";\r\n\r\n// Error pages — Charter §07. Router-agnostic; the lib accepts\r\n// onBack / onHome / onRetry callback props rather than importing\r\n// any router hook. NB: the internal _ErrorPageBody helper is NOT\r\n// re-exported (underscore-prefix convention).\r\nexport { default as ForbiddenPage } from \"./ForbiddenPage\";\r\nexport { default as NotFoundPage } from \"./NotFoundPage\";\r\nexport { default as ServerErrorPage } from \"./ServerErrorPage\";\r\nexport { default as NetworkErrorPage } from \"./NetworkErrorPage\";\r\n/**\r\n * Error-page prop contracts — public typed surface (capability gap G-32).\r\n *\r\n * The four pages are deliberately router-agnostic: they take `onBack` /\r\n * `onHome` / `onRetry` callbacks instead of importing a router hook. That\r\n * design REQUIRES every consumer to write a thin adapter binding its own\r\n * router to those callbacks — and each adapter needs the prop type to declare\r\n * what it is producing. The types existed on each module but were not\r\n * re-exported here, so the adapters could not reach them: caution-ui's\r\n * ErrorPages.tsx carried four\r\n * `as React.ComponentProps<typeof V2ForbiddenPage>` assertions for no reason\r\n * other than that `ForbiddenPageProps` was unreachable.\r\n *\r\n * A router adapter is the single most-repeated consumer of these components\r\n * across the fleet — one per module — so leaving the contract unreachable\r\n * guaranteed the same four casts in every repository.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { ForbiddenPageProps } from \"./ForbiddenPage\";\r\nexport type { NotFoundPageProps } from \"./NotFoundPage\";\r\nexport type { ServerErrorPageProps } from \"./ServerErrorPage\";\r\nexport type { NetworkErrorPageProps } from \"./NetworkErrorPage\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAcA,IAAAG,WAAA,GAAAJ,sBAA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;AAAA,SAAAvE,uBAAAiE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Spinner","_interopRequireDefault","require","_Button","_Field","_FieldError","_Input","_Select","_Textarea","_Checkbox","_interopRequireWildcard","_Radio","_Switch","_Combobox","_TelInput","_NumberInput","_DatePicker","_DateTimePicker","_TimePicker","_DateRangePicker","_Status","_Chip","_Skeleton","_Modal","_Drawer","_ConfirmDialog","_Tabs","_TabPanel","_Stepper","_FilterTab","_EmptyState","_Banner","_SectionErrorBoundary","_Toast","_KV","_KPICard","_KPIStrip","_MobileRowCard","_OverflowMenu","_FieldHelp","_SkipLink","_ProgressBar","_Segmented","_Dropzone","_CommandPalette","_Busy","_FormGrid","_KVGrid","_Surface","_FileCard","_Layout","_SectionHeader","_Accordion","_Tooltip","_ActionStrip","_CategoryTag","_FavoriteToggle","_PdfViewer","_ForbiddenPage","_NotFoundPage","_ServerErrorPage","_NetworkErrorPage","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sources":["../../../src/lib/v2/components/index.ts"],"sourcesContent":["export { default as Spinner } from \"./Spinner\";\r\nexport { default as Button } from \"./Button\";\r\nexport { default as Field } from \"./Field\";\r\n/**\r\n * Field contracts — public typed surface (gap G-H).\r\n *\r\n * Meme defaut que les blocs `StepStatus`, `FieldHelp` et `Status` plus bas :\r\n * `Field` etait exporte comme VALEUR, sans aucun de ses types. `FieldWidth` est\r\n * le plus necessaire des deux : la section « Form Field Width & Layout\r\n * Standards » des Platform Mandatory UX Patterns impose de rattacher CHAQUE\r\n * champ d'un formulaire a l'un des cinq gabarits, et un module qui fait ce\r\n * mappage a l'echelle d'un ecran ecrit naturellement un dictionnaire :\r\n *\r\n * const LARGEURS: Record<string, FieldWidth> = { ifu: \"s\", adresse: \"l\", ... }\r\n *\r\n * Sans le type, il doit reecrire l'union au point d'appel — ce que les Platform\r\n * TypeScript Guidelines interdisent (« Reusable types belong inside Shared UI\r\n * Library … Never duplicate »). C'est le cas signale depuis `refonte-frontend`\r\n * (lot 8), ou ~60 champs sont a mapper.\r\n *\r\n * `FIELD_MAX_WIDTH` n'est PAS surfacee, deliberement : les cinq largeurs sont\r\n * une decision de design, et les exposer inviterait les hotes a poser les\r\n * plafonds eux-memes plutot que par `width` — donc a recreer les « arbitrary\r\n * input field widths » que le standard interdit. Elle reste atteignable par\r\n * chemin interne pour le test qui les epingle.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { FieldProps, FieldWidth } from \"./Field\";\r\n/**\r\n * FieldError — the message renderer `Field` uses, exported standalone\r\n * (capability gap G-18).\r\n *\r\n * Charter R-4.1 MUST requires a field error to carry an ICON; `Field` rendered a\r\n * bare red helper text without one, so the canonical field wrapper missed a MUST\r\n * on every form of every module. And a LIST-level error (a Formik array, an\r\n * upload slot) has no single control to wrap in a `Field` at all — addpe-fe's\r\n * local `InlineFieldAlert` reimplemented the recipe and was, ironically, more\r\n * charter-compliant than the shared component it could not reuse.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FieldError } from \"./FieldError\";\r\nexport type { FieldErrorProps } from \"./FieldError\";\r\nexport { default as Input } from \"./Input\";\r\nexport { default as Select } from \"./Select\";\r\nexport type { SelectOption, SelectOptionObject, SelectOptionValue, SelectValue, SelectChangeLike, SelectLabels } from \"./Select\";\r\nexport { default as Textarea } from \"./Textarea\";\r\nexport { default as Checkbox, CheckboxGroup } from \"./Checkbox\";\r\nexport { default as Radio, RadioGroup } from \"./Radio\";\r\nexport { default as Switch } from \"./Switch\";\r\nexport { default as Combobox } from \"./Combobox\";\r\nexport type { ComboboxOption, ComboboxOptionValue, ComboboxValue, ComboboxLabels, ComboboxProps } from \"./Combobox\";\r\nexport { default as TelInput } from \"./TelInput\";\r\nexport {\r\n default as NumberInput,\r\n FR_DECIMAL_SEPARATOR,\r\n FR_THOUSAND_SEPARATOR,\r\n} from \"./NumberInput\";\r\nexport {\r\n default as DatePicker,\r\n DATE_FORMAT_CHARTER,\r\n} from \"./DatePicker\";\r\nexport {\r\n default as DateTimePicker,\r\n DATETIME_FORMAT_CHARTER,\r\n} from \"./DateTimePicker\";\r\nexport {\r\n default as TimePicker,\r\n TIME_FORMAT_CHARTER,\r\n} from \"./TimePicker\";\r\nexport { default as DateRangePicker } from \"./DateRangePicker\";\r\nexport { default as Status } from \"./Status\";\r\n/**\r\n * Status contracts — public typed surface (capability gap G-31).\r\n *\r\n * Same defect as the `StepStatus` and `FieldHelp` blocks below: `Status` was\r\n * exported as a VALUE while the types describing it were not re-exported here,\r\n * so a host mapping its own business codes onto the six canonical workflow\r\n * tones had to hand-write the union at the call site — which the Platform\r\n * TypeScript Guidelines forbid (\"Reusable types belong inside Shared UI\r\n * Library … Never duplicate\"). caution-ui carried exactly that local twin\r\n * (`CautionStatusKind`, six members, structurally identical) plus five\r\n * `as ComponentProps<typeof Status>` assertions at the render sites — casts\r\n * that were never needed for anything except reaching an unreachable type.\r\n *\r\n * `StatusProps` travels with it: a consumer building the chip props as an\r\n * object (mobile card, KV value slot, DataGrid cell renderer) needs the prop\r\n * contract, and re-declaring it is the same duplication one level down.\r\n *\r\n * KNOWN DEBT: `StatusKind` is currently derived as\r\n * `keyof typeof STATUS_LABELS_FR`, and STATUS_LABELS_FR is itself marked\r\n * `@deprecated … Will be removed in v0.3` (we are at 0.8.0). Deleting that\r\n * const would delete the public type with it. Re-anchoring `StatusKind` to a\r\n * literal tuple form of STATUS_KEYS — which is typed `readonly string[]` and\r\n * so cannot currently derive a union — is tracked separately; surfacing the\r\n * type now does not deepen that debt, it only makes it visible to consumers.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StatusKind } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StatusKind, StatusProps } from \"./Status\";\r\nexport { default as Chip } from \"./Chip\";\r\nexport {\r\n default as Skeleton,\r\n SkeletonKPI,\r\n SkeletonRow,\r\n SkeletonDetailHero,\r\n SkeletonTabContent,\r\n SkeletonText,\r\n} from \"./Skeleton\";\r\nexport { default as Modal } from \"./Modal\";\r\nexport { default as Drawer } from \"./Drawer\";\r\nexport type { DrawerProps, DrawerLabels, DrawerAnchor } from \"./Drawer\";\r\nexport { default as ConfirmDialog } from \"./ConfirmDialog\";\r\nexport { default as Tabs } from \"./Tabs\";\r\n/**\r\n * TabPanel + the two id builders — the OTHER HALF of the Tabs contract\r\n * (capability gap G-46).\r\n *\r\n * `Tabs` advertises `aria-controls=\"pui-panel-<id>\"` on every tab and ships\r\n * nothing that carries that id. The format was therefore private knowledge each\r\n * host re-spelled as a literal, and a typo there is invisible: the markup stays\r\n * valid while the tab points at an element that does not exist — a broken\r\n * `aria-controls` being worse than none, since AT offers a relationship it\r\n * cannot follow.\r\n *\r\n * `tabDomId` / `tabPanelDomId` are exported alongside so a host with its own\r\n * panel implementation (a virtualised or animated one) still derives the ids\r\n * from the SAME definition `Tabs` uses, instead of a second copy of the string.\r\n *\r\n * Raised from `addm-fe` (Area 5), whose consultation page had written a local\r\n * `TabPanel` by reading the convention out of Tabs.tsx.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as TabPanel } from \"./TabPanel\";\r\nexport type { TabPanelProps } from \"./TabPanel\";\r\nexport { tabDomId, tabPanelDomId } from \"./Tabs\";\r\nexport type { TabItem, TabsProps } from \"./Tabs\";\r\nexport { default as HStepper, VStepper } from \"./Stepper\";\r\n/**\r\n * Stepper data contracts — public typed surface.\r\n *\r\n * `StepStatus` is the literal union `HStepper`/`VStepper` accept on each\r\n * step. It was exported from ./Stepper but never re-exported here, so a host\r\n * building a step array had to hand-write the union at the call site — which\r\n * the Platform TypeScript Guidelines forbid (\"Reusable types belong inside\r\n * Shared UI Library … Never duplicate\"). ms_licenceexportation's\r\n * ExportationDetailProgress carried exactly that duplicate, with a comment\r\n * recording why. `VStepperItem` is surfaced alongside it because the same\r\n * consumer constructs the item objects the union lives in.\r\n *\r\n * `HStepperRichStep` / `HStepperStep` close an ASYMMETRY in that reasoning,\r\n * surfaced from addm-fe (Area 2). The V side got both its union and its ITEM\r\n * type; the H side got only the union — yet the argument for `VStepperItem` is\r\n * word for word the argument for the rich H step: a host driving HStepper in\r\n * rich mode builds `{ id, label, status }` objects, and `status` widens to\r\n * `string` in a `.map()` unless the mapped return type is annotated. Without\r\n * the item type, the only ways out were to redeclare the shape locally (the\r\n * duplication this block exists to prevent) or to reach it by\r\n * `ComponentProps<typeof HStepper>[\"steps\"][number]` — an indexed access that\r\n * says nothing about intent.\r\n *\r\n * `HStepperStep` travels with it because it is what the `steps` PROP actually\r\n * takes: the union of a plain label and a rich step, so a host typing the whole\r\n * array variable rather than the map callback needs that one.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StepStatus } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type {\r\n StepStatus,\r\n StepState,\r\n VStepperItem,\r\n HStepperRichStep,\r\n HStepperStep,\r\n} from \"./Stepper\";\r\nexport { default as FilterTab } from \"./FilterTab\";\r\nexport type { FilterTabVariant, FilterTabLabels } from \"./FilterTab\";\r\nexport { default as EmptyState } from \"./EmptyState\";\r\nexport { default as Banner } from \"./Banner\";\r\nexport type { BannerVariant, BannerAction } from \"./Banner\";\r\n/**\r\n * SectionErrorBoundary — fault tolerance by import, not by copy (gap G-30).\r\n *\r\n * ISO/IEC 25010 § Reliability requires a system to keep operating despite a\r\n * fault; React unmounts the WHOLE tree on a render exception, so one failing\r\n * section replaces the page with a blank screen. `ms-ti-fe` wrapped 13 sections\r\n * in a boundary of its own while `addpe-fe` and this library had none — a\r\n * platform guarantee living as one module's private safeguard.\r\n *\r\n * Declared after Banner because it renders one as its fallback.\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as SectionErrorBoundary } from \"./SectionErrorBoundary\";\r\nexport type { SectionErrorBoundaryProps } from \"./SectionErrorBoundary\";\r\nexport { default as ToastProvider, useToast } from \"./Toast\";\r\nexport type { ToastVariant, ToastProviderLabels, ToastUndoOptions, ToastProgressHandle, ToastApi } from \"./Toast\";\r\nexport { default as KV } from \"./KV\";\r\nexport { default as KPICard } from \"./KPICard\";\r\nexport type { KPICardProps, KPICardLabels } from \"./KPICard\";\r\n/**\r\n * KPIStrip — the metric-tile row (capability gap G-11).\r\n *\r\n * Charter §07 names this zone in the canonical page template (« ③ FILTERS / KPI\r\n * STRIP ») but the library shipped only the TILE. So every screen wrote the\r\n * grid, and the two in addpe-fe disagree on the desktop ladder — a KPI row that\r\n * reflows differently per screen for no reason a user could name.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as KPIStrip } from \"./KPIStrip\";\r\nexport type { KPIStripProps } from \"./KPIStrip\";\r\nexport { default as MobileRowCard } from \"./MobileRowCard\";\r\nexport type { MobileRowCardProps } from \"./MobileRowCard\";\r\nexport { default as OverflowMenu } from \"./OverflowMenu\";\r\nexport type { OverflowMenuAction, OverflowMenuProps, OverflowMenuLabels } from \"./OverflowMenu\";\r\nexport { default as FieldHelp } from \"./FieldHelp\";\r\n/**\r\n * FieldHelp contracts — public typed surface (capability gap G-16).\r\n *\r\n * Same defect as the `StepStatus` block above: `FieldHelp` was exported as a\r\n * VALUE while the types describing what it accepts were not re-exported here,\r\n * so a host maintaining a help-copy dictionary had to hand-declare the entry\r\n * shape — which the Platform TypeScript Guidelines forbid (\"Reusable types\r\n * belong inside Shared UI Library … Never duplicate\"). addpe-fe's `HELP_TEXTS`\r\n * carries exactly that local twin (`HelpTextEntry`), with a comment recording\r\n * that `FieldHelpProps` was unreachable.\r\n *\r\n * `FieldHelpVariant` / `FieldHelpIcon` travel with it: a dictionary that sets\r\n * `variant` per entry needs the union, and re-declaring `\"tooltip\" | \"popover\"`\r\n * at the call site is the same duplication one level down.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { FieldHelpProps, FieldHelpVariant, FieldHelpIcon } from \"./FieldHelp\";\r\nexport { default as SkipLink } from \"./SkipLink\";\r\nexport { default as ProgressBar } from \"./ProgressBar\";\r\nexport { default as Segmented } from \"./Segmented\";\r\nexport { default as Dropzone } from \"./Dropzone\";\r\nexport type {\r\n DropzoneProps,\r\n DropzoneFile,\r\n DropzoneFileStatus,\r\n DropzoneRejection,\r\n DropzoneRejectReason,\r\n DropzoneReasons,\r\n DropzoneLabels,\r\n} from \"./Dropzone\";\r\nexport { default as CommandPalette } from \"./CommandPalette\";\r\n\r\n// Loading-overlay primitives (Charter §04.4). See ./Busy.js.\r\n// Replaces the PAGE_OVERLAY_SX inline block that host modules\r\n// previously froze in 15+ feature pages.\r\nexport { default as SectionBusy, PageBusy } from \"./Busy\";\r\n\r\n// Layout primitives (Charter §03). Replace local FormGrid / KVGrid\r\n// wrappers that host modules previously inlined.\r\nexport { default as FormGrid } from \"./FormGrid\";\r\nexport { default as KVGrid } from \"./KVGrid\";\r\n\r\n/**\r\n * Surface — the bare card container (capability gap G-10).\r\n *\r\n * The card recipe (--surface + --border + -r-lg + --shadow-*) existed only\r\n * WELDED INSIDE FormSection, which also imposes a numbered heading and an inner\r\n * FormGrid. A consumer needing just the container — a DataGrid shell, a hero\r\n * card, a sticky side rail, a nested file row — could not reach it and rewrote\r\n * the recipe: three copies in addpe-fe plus a document card repeated across\r\n * three files, each having picked its own elevation and radius from memory.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as Surface } from \"./Surface\";\r\nexport type {\r\n SurfaceProps,\r\n SurfaceTone,\r\n SurfaceElevation,\r\n SurfaceRadius,\r\n SurfacePadding,\r\n} from \"./Surface\";\r\n\r\n/**\r\n * FileCard — an attached document, displayed (capability gap G-12).\r\n *\r\n * The library shipped `Dropzone`, the UPLOAD affordance, and nothing for the\r\n * state immediately after it. So every screen showing an attachment rebuilt the\r\n * same row: three copies in addpe-fe, with THREE different paddings for one\r\n * concept — accidental drift, exactly what R-2.1 forbids. Composes `Surface`.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FileCard } from \"./FileCard\";\r\nexport type { FileCardProps } from \"./FileCard\";\r\n\r\n// Generic flex container + stack shorthand (B17). Drop-in\r\n// replacement for the common MUI Box/Stack usage pattern when no\r\n// breakpoint variation is required. See ./Layout.js.\r\nexport { Box, Stack } from \"./Layout\";\r\n\r\n// Section-header primitive (Charter §03). Standalone heading row;\r\n// see SectionHeader.js for how it differs from FormSection.\r\nexport { default as SectionHeader } from \"./SectionHeader\";\r\n\r\n// Disclosure primitives (Charter §03). Accordion uses native\r\n// <details>/<summary>; Tooltip wraps MuiTooltip with token theming\r\n// and aria-label mirroring for icon-only triggers.\r\nexport { default as Accordion } from \"./Accordion\";\r\nexport { default as Tooltip } from \"./Tooltip\";\r\n\r\n// Footer action strip (Charter §03). Distinct from ActionBar\r\n// (page header) and BulkActionBar (selection toolbar).\r\nexport { default as ActionStrip } from \"./ActionStrip\";\r\n\r\n// Taxonomy chip — reuses the 6-tone status palette but distinct\r\n// from v2.Status (category != workflow state).\r\nexport { default as CategoryTag } from \"./CategoryTag\";\r\n\r\n// Favorite toggle (☆/★) — presentational, controlled leaf primitive\r\n// used by the User Personalization Foundation's favorites capability\r\n// (v2/personalization). Provider-free: wire with useIsFavorite /\r\n// useFavorites, or drive manually via pressed/onChange.\r\nexport { default as FavoriteToggle } from \"./FavoriteToggle\";\r\n\r\n// Document viewer (Charter §07). Presentational pdf.js wrapper; the host\r\n// owns fetching (fileUrl|base64 + loading/error + workerUrl). Pulls the\r\n// @react-pdf-viewer / pdfjs-dist OPTIONAL peer deps — installed only by\r\n// PDF-consuming modules.\r\nexport { default as PdfViewer } from \"./PdfViewer\";\r\nexport type { PdfViewerProps } from \"./PdfViewer\";\r\n\r\n// Error pages — Charter §07. Router-agnostic; the lib accepts\r\n// onBack / onHome / onRetry callback props rather than importing\r\n// any router hook. NB: the internal _ErrorPageBody helper is NOT\r\n// re-exported (underscore-prefix convention).\r\nexport { default as ForbiddenPage } from \"./ForbiddenPage\";\r\nexport { default as NotFoundPage } from \"./NotFoundPage\";\r\nexport { default as ServerErrorPage } from \"./ServerErrorPage\";\r\nexport { default as NetworkErrorPage } from \"./NetworkErrorPage\";\r\n/**\r\n * Error-page prop contracts — public typed surface (capability gap G-32).\r\n *\r\n * The four pages are deliberately router-agnostic: they take `onBack` /\r\n * `onHome` / `onRetry` callbacks instead of importing a router hook. That\r\n * design REQUIRES every consumer to write a thin adapter binding its own\r\n * router to those callbacks — and each adapter needs the prop type to declare\r\n * what it is producing. The types existed on each module but were not\r\n * re-exported here, so the adapters could not reach them: caution-ui's\r\n * ErrorPages.tsx carried four\r\n * `as React.ComponentProps<typeof V2ForbiddenPage>` assertions for no reason\r\n * other than that `ForbiddenPageProps` was unreachable.\r\n *\r\n * A router adapter is the single most-repeated consumer of these components\r\n * across the fleet — one per module — so leaving the contract unreachable\r\n * guaranteed the same four casts in every repository.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { ForbiddenPageProps } from \"./ForbiddenPage\";\r\nexport type { NotFoundPageProps } from \"./NotFoundPage\";\r\nexport type { ServerErrorPageProps } from \"./ServerErrorPage\";\r\nexport type { NetworkErrorPageProps } from \"./NetworkErrorPage\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAA9D,uBAAA6D,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA","ignoreList":[]}
|
package/dist/v2/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
export { default as useFocusTrap } from "./useFocusTrap";
|
|
2
|
+
/**
|
|
3
|
+
* Raccourcis clavier de page — l'autre moitié de `KeyboardShortcutsHelp`
|
|
4
|
+
* (gap G-48).
|
|
5
|
+
*
|
|
6
|
+
* La library possédait les DEUX BOUTS et pas l'écouteur entre eux : le
|
|
7
|
+
* dialogue « ? » qui LISTE les raccourcis, et l'attribut
|
|
8
|
+
* `data-v2-overlay-open` qu'elle POSE sur le `body` et que les raccourcis
|
|
9
|
+
* doivent respecter.
|
|
10
|
+
*
|
|
11
|
+
* Un hôte qui les câblait devait donc lire cet attribut lui-même — un module
|
|
12
|
+
* dépendant d'un détail d'implémentation du composant qu'il rend, et qui
|
|
13
|
+
* casserait EN SILENCE s'il était renommé : les raccourcis se mettraient à
|
|
14
|
+
* tirer derrière les modales ouvertes, ce que rien ne teste.
|
|
15
|
+
*
|
|
16
|
+
* Relevé depuis `addm-fe` (Area 14), dont les listings portaient un
|
|
17
|
+
* `searchInputRef` déclaré et transmis POUR le raccourci « / » — un câblage
|
|
18
|
+
* qui attendait un écouteur jamais écrit.
|
|
19
|
+
*/
|
|
20
|
+
export { default as useKeyboardShortcuts } from "./useKeyboardShortcuts";
|
|
21
|
+
export type { KeyboardShortcut, UseKeyboardShortcutsOptions, } from "./useKeyboardShortcuts";
|
|
2
22
|
export { default as useTabLoading, PERCEPTION_THRESHOLD_MS, } from "./useTabLoading";
|
|
3
23
|
export { default as useDelayedFlag } from "./useDelayedFlag";
|
|
24
|
+
/**
|
|
25
|
+
* Defers a CALL until the input settles — the companion `useDelayedFlag` is
|
|
26
|
+
* not: that one flips a boolean after a delay. Gap G-39; see the file header
|
|
27
|
+
* for the three defects the `lodash.debounce` era produced in every host.
|
|
28
|
+
*/
|
|
29
|
+
export { default as useDebouncedCallback } from "./useDebouncedCallback";
|
|
30
|
+
/**
|
|
31
|
+
* Tracks the criteria ACTUALLY applied to a listing (gap G-43), so chips
|
|
32
|
+
* cannot announce a filter that is only being typed. Companion to
|
|
33
|
+
* `buildFilterChips`. Promoted from `refonte-frontend` (Area 5).
|
|
34
|
+
*/
|
|
35
|
+
export { default as useAppliedFilters, } from "./useAppliedFilters";
|
|
36
|
+
export type { AppliedFiltersForm, UseAppliedFiltersOptions, UseAppliedFiltersResult, } from "./useAppliedFilters";
|
|
37
|
+
/**
|
|
38
|
+
* Runtime read of `prefers-reduced-motion` (gap G-49), for animation the
|
|
39
|
+
* library does not own — charts, canvases, imperative scroll, third-party
|
|
40
|
+
* widgets configured in JS. CSS cannot answer those, so every host wrote the
|
|
41
|
+
* same one-line snapshot helper, which never subscribed: turning the
|
|
42
|
+
* preference on left the animations running. See the file header.
|
|
43
|
+
*/
|
|
44
|
+
export { default as usePrefersReducedMotion } from "./usePrefersReducedMotion";
|
|
45
|
+
export { PREFERS_REDUCED_MOTION_QUERY } from "./usePrefersReducedMotion";
|
|
4
46
|
export { default as useDensity } from "./useDensity";
|
|
5
47
|
export { default as useResolvedDensity } from "./useResolvedDensity";
|
|
6
48
|
export { default as useSortedRows } from "./useSortedRows";
|
|
@@ -8,4 +50,27 @@ export { default as useFormAutoSave } from "./useFormAutoSave";
|
|
|
8
50
|
export { default as useFormCompletionProgress } from "./useFormCompletionProgress";
|
|
9
51
|
export { default as useFocusFirstError, focusFieldByName, } from "./useFocusFirstError";
|
|
10
52
|
export type { FocusFieldOptions, UseFocusFirstErrorOptions, } from "./useFocusFirstError";
|
|
53
|
+
/**
|
|
54
|
+
* Déplace le focus sur le landmark principal à chaque changement de PAGE
|
|
55
|
+
* (gap G-60).
|
|
56
|
+
*
|
|
57
|
+
* Dans une application à page unique, naviguer ne déplace PAS le focus — le
|
|
58
|
+
* navigateur ne le fait qu'au chargement d'un vrai document. Le focus reste
|
|
59
|
+
* donc sur ce qui a été cliqué, ou tombe sur `document.body` quand cet élément
|
|
60
|
+
* est démonté par la navigation qu'il vient de déclencher. Depuis `body`, le
|
|
61
|
+
* Tab suivant repart du haut du NAVIGATEUR : l'utilisateur au clavier retraverse
|
|
62
|
+
* la barre d'adresse à chaque écran, et le lecteur d'écran n'annonce rien.
|
|
63
|
+
*
|
|
64
|
+
* Agnostique du routeur : l'hôte passe la clé qu'il veut surveiller — et doit
|
|
65
|
+
* passer le CHEMIN, pas `location.key`, sinon un changement de filtre dans la
|
|
66
|
+
* query string vole le focus au champ en cours de saisie.
|
|
67
|
+
*
|
|
68
|
+
* La library est le bon endroit même sans connaître de routeur : `AppMain` est
|
|
69
|
+
* la cible, et c'est lui qui porte le `tabIndex={-1}` qui rend la région
|
|
70
|
+
* focalisable. Relevé depuis `autorisation-admis-pour-conforme-fe` (Area 10),
|
|
71
|
+
* où archiver un dossier ferme un dialogue et navigue en arrière — le piège de
|
|
72
|
+
* focus restituant alors le focus à un bouton qui n'existe plus.
|
|
73
|
+
*/
|
|
74
|
+
export { default as useFocusOnRouteChange } from "./useFocusOnRouteChange";
|
|
75
|
+
export type { UseFocusOnRouteChangeOptions } from "./useFocusOnRouteChange";
|
|
11
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/v2/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,OAAO,IAAI,kBAAkB,EAC7B,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/v2/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,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1,85 +1,124 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
Object.defineProperty(exports, "PERCEPTION_THRESHOLD_MS", {
|
|
8
7
|
enumerable: true,
|
|
9
|
-
get: function
|
|
8
|
+
get: function () {
|
|
10
9
|
return _useTabLoading.PERCEPTION_THRESHOLD_MS;
|
|
11
10
|
}
|
|
12
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "PREFERS_REDUCED_MOTION_QUERY", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _usePrefersReducedMotion.PREFERS_REDUCED_MOTION_QUERY;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
13
18
|
Object.defineProperty(exports, "focusFieldByName", {
|
|
14
19
|
enumerable: true,
|
|
15
|
-
get: function
|
|
20
|
+
get: function () {
|
|
16
21
|
return _useFocusFirstError.focusFieldByName;
|
|
17
22
|
}
|
|
18
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "useAppliedFilters", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _useAppliedFilters.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "useDebouncedCallback", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _useDebouncedCallback.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
19
36
|
Object.defineProperty(exports, "useDelayedFlag", {
|
|
20
37
|
enumerable: true,
|
|
21
|
-
get: function
|
|
22
|
-
return _useDelayedFlag
|
|
38
|
+
get: function () {
|
|
39
|
+
return _useDelayedFlag.default;
|
|
23
40
|
}
|
|
24
41
|
});
|
|
25
42
|
Object.defineProperty(exports, "useDensity", {
|
|
26
43
|
enumerable: true,
|
|
27
|
-
get: function
|
|
28
|
-
return _useDensity
|
|
44
|
+
get: function () {
|
|
45
|
+
return _useDensity.default;
|
|
29
46
|
}
|
|
30
47
|
});
|
|
31
48
|
Object.defineProperty(exports, "useFocusFirstError", {
|
|
32
49
|
enumerable: true,
|
|
33
|
-
get: function
|
|
34
|
-
return _useFocusFirstError
|
|
50
|
+
get: function () {
|
|
51
|
+
return _useFocusFirstError.default;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "useFocusOnRouteChange", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _useFocusOnRouteChange.default;
|
|
35
58
|
}
|
|
36
59
|
});
|
|
37
60
|
Object.defineProperty(exports, "useFocusTrap", {
|
|
38
61
|
enumerable: true,
|
|
39
|
-
get: function
|
|
40
|
-
return _useFocusTrap
|
|
62
|
+
get: function () {
|
|
63
|
+
return _useFocusTrap.default;
|
|
41
64
|
}
|
|
42
65
|
});
|
|
43
66
|
Object.defineProperty(exports, "useFormAutoSave", {
|
|
44
67
|
enumerable: true,
|
|
45
|
-
get: function
|
|
46
|
-
return _useFormAutoSave
|
|
68
|
+
get: function () {
|
|
69
|
+
return _useFormAutoSave.default;
|
|
47
70
|
}
|
|
48
71
|
});
|
|
49
72
|
Object.defineProperty(exports, "useFormCompletionProgress", {
|
|
50
73
|
enumerable: true,
|
|
51
|
-
get: function
|
|
52
|
-
return _useFormCompletionProgress
|
|
74
|
+
get: function () {
|
|
75
|
+
return _useFormCompletionProgress.default;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "useKeyboardShortcuts", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _useKeyboardShortcuts.default;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "usePrefersReducedMotion", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _usePrefersReducedMotion.default;
|
|
53
88
|
}
|
|
54
89
|
});
|
|
55
90
|
Object.defineProperty(exports, "useResolvedDensity", {
|
|
56
91
|
enumerable: true,
|
|
57
|
-
get: function
|
|
58
|
-
return _useResolvedDensity
|
|
92
|
+
get: function () {
|
|
93
|
+
return _useResolvedDensity.default;
|
|
59
94
|
}
|
|
60
95
|
});
|
|
61
96
|
Object.defineProperty(exports, "useSortedRows", {
|
|
62
97
|
enumerable: true,
|
|
63
|
-
get: function
|
|
64
|
-
return _useSortedRows
|
|
98
|
+
get: function () {
|
|
99
|
+
return _useSortedRows.default;
|
|
65
100
|
}
|
|
66
101
|
});
|
|
67
102
|
Object.defineProperty(exports, "useTabLoading", {
|
|
68
103
|
enumerable: true,
|
|
69
|
-
get: function
|
|
70
|
-
return _useTabLoading
|
|
104
|
+
get: function () {
|
|
105
|
+
return _useTabLoading.default;
|
|
71
106
|
}
|
|
72
107
|
});
|
|
73
108
|
var _useFocusTrap = _interopRequireDefault(require("./useFocusTrap"));
|
|
109
|
+
var _useKeyboardShortcuts = _interopRequireDefault(require("./useKeyboardShortcuts"));
|
|
74
110
|
var _useTabLoading = _interopRequireWildcard(require("./useTabLoading"));
|
|
75
111
|
var _useDelayedFlag = _interopRequireDefault(require("./useDelayedFlag"));
|
|
112
|
+
var _useDebouncedCallback = _interopRequireDefault(require("./useDebouncedCallback"));
|
|
113
|
+
var _useAppliedFilters = _interopRequireDefault(require("./useAppliedFilters"));
|
|
114
|
+
var _usePrefersReducedMotion = _interopRequireWildcard(require("./usePrefersReducedMotion"));
|
|
76
115
|
var _useDensity = _interopRequireDefault(require("./useDensity"));
|
|
77
116
|
var _useResolvedDensity = _interopRequireDefault(require("./useResolvedDensity"));
|
|
78
117
|
var _useSortedRows = _interopRequireDefault(require("./useSortedRows"));
|
|
79
118
|
var _useFormAutoSave = _interopRequireDefault(require("./useFormAutoSave"));
|
|
80
119
|
var _useFormCompletionProgress = _interopRequireDefault(require("./useFormCompletionProgress"));
|
|
81
120
|
var _useFocusFirstError = _interopRequireWildcard(require("./useFocusFirstError"));
|
|
82
|
-
|
|
83
|
-
function _interopRequireWildcard(
|
|
84
|
-
function _interopRequireDefault(
|
|
121
|
+
var _useFocusOnRouteChange = _interopRequireDefault(require("./useFocusOnRouteChange"));
|
|
122
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
123
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
85
124
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_useFocusTrap","_interopRequireDefault","require","_useTabLoading","_interopRequireWildcard","_useDelayedFlag","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_useFocusTrap","_interopRequireDefault","require","_useKeyboardShortcuts","_useTabLoading","_interopRequireWildcard","_useDelayedFlag","_useDebouncedCallback","_useAppliedFilters","_usePrefersReducedMotion","_useDensity","_useResolvedDensity","_useSortedRows","_useFormAutoSave","_useFormCompletionProgress","_useFocusFirstError","_useFocusOnRouteChange","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sources":["../../../src/lib/v2/hooks/index.ts"],"sourcesContent":["export { default as useFocusTrap } from \"./useFocusTrap\";\r\n/**\r\n * Raccourcis clavier de page — l'autre moitié de `KeyboardShortcutsHelp`\r\n * (gap G-48).\r\n *\r\n * La library possédait les DEUX BOUTS et pas l'écouteur entre eux : le\r\n * dialogue « ? » qui LISTE les raccourcis, et l'attribut\r\n * `data-v2-overlay-open` qu'elle POSE sur le `body` et que les raccourcis\r\n * doivent respecter.\r\n *\r\n * Un hôte qui les câblait devait donc lire cet attribut lui-même — un module\r\n * dépendant d'un détail d'implémentation du composant qu'il rend, et qui\r\n * casserait EN SILENCE s'il était renommé : les raccourcis se mettraient à\r\n * tirer derrière les modales ouvertes, ce que rien ne teste.\r\n *\r\n * Relevé depuis `addm-fe` (Area 14), dont les listings portaient un\r\n * `searchInputRef` déclaré et transmis POUR le raccourci « / » — un câblage\r\n * qui attendait un écouteur jamais écrit.\r\n */\r\nexport { default as useKeyboardShortcuts } from \"./useKeyboardShortcuts\";\r\nexport type {\r\n KeyboardShortcut,\r\n UseKeyboardShortcutsOptions,\r\n} from \"./useKeyboardShortcuts\";\r\nexport {\r\n default as useTabLoading,\r\n PERCEPTION_THRESHOLD_MS,\r\n} from \"./useTabLoading\";\r\nexport { default as useDelayedFlag } from \"./useDelayedFlag\";\r\n/**\r\n * Defers a CALL until the input settles — the companion `useDelayedFlag` is\r\n * not: that one flips a boolean after a delay. Gap G-39; see the file header\r\n * for the three defects the `lodash.debounce` era produced in every host.\r\n */\r\nexport { default as useDebouncedCallback } from \"./useDebouncedCallback\";\r\n/**\r\n * Tracks the criteria ACTUALLY applied to a listing (gap G-43), so chips\r\n * cannot announce a filter that is only being typed. Companion to\r\n * `buildFilterChips`. Promoted from `refonte-frontend` (Area 5).\r\n */\r\nexport {\r\n default as useAppliedFilters,\r\n} from \"./useAppliedFilters\";\r\nexport type {\r\n AppliedFiltersForm,\r\n UseAppliedFiltersOptions,\r\n UseAppliedFiltersResult,\r\n} from \"./useAppliedFilters\";\r\n/**\r\n * Runtime read of `prefers-reduced-motion` (gap G-49), for animation the\r\n * library does not own — charts, canvases, imperative scroll, third-party\r\n * widgets configured in JS. CSS cannot answer those, so every host wrote the\r\n * same one-line snapshot helper, which never subscribed: turning the\r\n * preference on left the animations running. See the file header.\r\n */\r\nexport { default as usePrefersReducedMotion } from \"./usePrefersReducedMotion\";\r\nexport { PREFERS_REDUCED_MOTION_QUERY } from \"./usePrefersReducedMotion\";\r\nexport { default as useDensity } from \"./useDensity\";\r\nexport { default as useResolvedDensity } from \"./useResolvedDensity\";\r\nexport { default as useSortedRows } from \"./useSortedRows\";\r\nexport { default as useFormAutoSave } from \"./useFormAutoSave\";\r\nexport { default as useFormCompletionProgress } from \"./useFormCompletionProgress\";\r\nexport {\r\n default as useFocusFirstError,\r\n focusFieldByName,\r\n} from \"./useFocusFirstError\";\r\nexport type {\r\n FocusFieldOptions,\r\n UseFocusFirstErrorOptions,\r\n} from \"./useFocusFirstError\";\r\n/**\r\n * Déplace le focus sur le landmark principal à chaque changement de PAGE\r\n * (gap G-60).\r\n *\r\n * Dans une application à page unique, naviguer ne déplace PAS le focus — le\r\n * navigateur ne le fait qu'au chargement d'un vrai document. Le focus reste\r\n * donc sur ce qui a été cliqué, ou tombe sur `document.body` quand cet élément\r\n * est démonté par la navigation qu'il vient de déclencher. Depuis `body`, le\r\n * Tab suivant repart du haut du NAVIGATEUR : l'utilisateur au clavier retraverse\r\n * la barre d'adresse à chaque écran, et le lecteur d'écran n'annonce rien.\r\n *\r\n * Agnostique du routeur : l'hôte passe la clé qu'il veut surveiller — et doit\r\n * passer le CHEMIN, pas `location.key`, sinon un changement de filtre dans la\r\n * query string vole le focus au champ en cours de saisie.\r\n *\r\n * La library est le bon endroit même sans connaître de routeur : `AppMain` est\r\n * la cible, et c'est lui qui porte le `tabIndex={-1}` qui rend la région\r\n * focalisable. Relevé depuis `autorisation-admis-pour-conforme-fe` (Area 10),\r\n * où archiver un dossier ferme un dialogue et navigue en arrière — le piège de\r\n * focus restituant alors le focus à un bouton qui n'existe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,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAAjB,uBAAAgB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useAppliedFilters — tracks the criteria ACTUALLY applied to a listing
|
|
3
|
+
* (capability gap G-43).
|
|
4
|
+
*
|
|
5
|
+
* Companion to `buildFilterChips`: that one builds the chips, this one decides
|
|
6
|
+
* what they are allowed to show.
|
|
7
|
+
*
|
|
8
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
9
|
+
* THE DEFECT IT PREVENTS — AND IT WAS SHIPPED TWICE BEFORE BEING UNDERSTOOD
|
|
10
|
+
*
|
|
11
|
+
* Chips CANNOT be built from live form values. `DataGridToolbar`'s search input
|
|
12
|
+
* writes into them ON EVERY KEYSTROKE, so a chip "Référence : ABC" appears
|
|
13
|
+
* while the user is still typing — announcing an active criterion that filters
|
|
14
|
+
* nothing. Active criteria are the ones filtering the DISPLAYED list.
|
|
15
|
+
*
|
|
16
|
+
* Two distinct states are therefore required, and the split is counter-intuitive
|
|
17
|
+
* enough that it was got wrong twice: form values track TYPING, this snapshot
|
|
18
|
+
* tracks APPLICATION.
|
|
19
|
+
*
|
|
20
|
+
* The mirror-image defect is just as real: a snapshot left full after a "clear
|
|
21
|
+
* criteria" shows chips for criteria that no longer filter anything. Both
|
|
22
|
+
* failures are one forgotten line away, in opposite directions — which is the
|
|
23
|
+
* argument for one hook rather than three lines per screen.
|
|
24
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
25
|
+
*
|
|
26
|
+
* IT BUILDS NO PAYLOAD. Every screen has its own — key names, scope flags, page
|
|
27
|
+
* value — and `onRemove` hands the turn back with the REMAINING criteria. This
|
|
28
|
+
* hook knows only the cycle typing → application → removal.
|
|
29
|
+
*
|
|
30
|
+
* `setApplied`: THE THREE PATHS THAT BYPASS `apply()`. The snapshot is not only
|
|
31
|
+
* filled by a click on "Search". Three other gestures change what actually
|
|
32
|
+
* filters the list, and each one used to leave the chips lying:
|
|
33
|
+
*
|
|
34
|
+
* 1. RESTORING A SAVED FILTER. `SavedFiltersMenu` re-injects values and
|
|
35
|
+
* payload: the list is filtered, the snapshot stays empty, so NO chip
|
|
36
|
+
* appears. Observed on a real screen before this existed.
|
|
37
|
+
* 2. CLICKING A STATUS CHIP. Screens with `FilterTab` write the payload
|
|
38
|
+
* directly — on purpose, to avoid the async `setFieldValue` followed by a
|
|
39
|
+
* submit that reads the previous render's values. Without updating the
|
|
40
|
+
* snapshot, a later chip removal rebuilds the payload from a stale
|
|
41
|
+
* snapshot and LOSES the active status.
|
|
42
|
+
* 3. Any other direct payload write by the screen.
|
|
43
|
+
*
|
|
44
|
+
* Hence a function that SETS the snapshot, distinct from the one that freezes it
|
|
45
|
+
* from the form. The screen alone knows when what-filters has changed; the hook
|
|
46
|
+
* cannot guess it.
|
|
47
|
+
*
|
|
48
|
+
* Promoted from `refonte-frontend` (Area 5), where three listings consumed it.
|
|
49
|
+
*
|
|
50
|
+
* WHAT WAS NOT PROMOTED WITH IT. The original exported a ready-made
|
|
51
|
+
* `videAvecMiroirsNumeriques` helper — "id mirrors clear to `0`, everything
|
|
52
|
+
* else to `""`" — and a measurement of its call sites found NONE: the three
|
|
53
|
+
* hosts each passed their own inline strategy, and they disagree (`0` / `null`
|
|
54
|
+
* / `""`, per field). Codifying one of the three as the library's convention
|
|
55
|
+
* would have blessed a rule no host follows, and the disagreement is exactly
|
|
56
|
+
* why `emptyValueFor` is a parameter rather than a constant.
|
|
57
|
+
*/
|
|
58
|
+
/** What a search form must expose to this hook — Formik satisfies it. */
|
|
59
|
+
export interface AppliedFiltersForm {
|
|
60
|
+
values: Record<string, unknown>;
|
|
61
|
+
setFieldValue: (field: string, value: unknown, shouldValidate?: boolean) => unknown;
|
|
62
|
+
}
|
|
63
|
+
export interface UseAppliedFiltersOptions {
|
|
64
|
+
/** Applies the current search (the screen's existing function). */
|
|
65
|
+
onApply: () => void;
|
|
66
|
+
/** Resets the search (the screen's existing function). */
|
|
67
|
+
onReset: () => void;
|
|
68
|
+
/**
|
|
69
|
+
* Rebuilds and re-runs the payload after a removal, from the REMAINING
|
|
70
|
+
* criteria. Only the screen knows the shape of its payload.
|
|
71
|
+
*/
|
|
72
|
+
onRemove: (remaining: Record<string, unknown>) => void;
|
|
73
|
+
/**
|
|
74
|
+
* The value that means "empty" for a given field. Hosts disagree, and the
|
|
75
|
+
* disagreement is legitimate: some clear to `null`, others to `""`, and
|
|
76
|
+
* reference-id mirrors to `0`. A convention imposed here would have broken
|
|
77
|
+
* half the payloads. @default `null`
|
|
78
|
+
*/
|
|
79
|
+
emptyValueFor?: ((key: string) => unknown) | undefined;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Explicit return type: §Hooks requires it ("Every hook must expose explicit
|
|
83
|
+
* return types"), and inference left this surface implicit while four screens
|
|
84
|
+
* consumed it.
|
|
85
|
+
*/
|
|
86
|
+
export interface UseAppliedFiltersResult {
|
|
87
|
+
/** Criteria ACTUALLY applied to the displayed list. */
|
|
88
|
+
appliedFilters: Record<string, unknown>;
|
|
89
|
+
/** Freezes the snapshot from the form, then runs the screen's search. */
|
|
90
|
+
apply: () => void;
|
|
91
|
+
/** Clears the snapshot, then resets the screen. */
|
|
92
|
+
resetAll: () => void;
|
|
93
|
+
/** Removes one or more criteria and hands the turn back to `onRemove`. */
|
|
94
|
+
removeCriteria: (keys: string[]) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the snapshot from values SUPPLIED by the screen, for the three paths
|
|
97
|
+
* that bypass `apply` — see the note above.
|
|
98
|
+
*/
|
|
99
|
+
setApplied: (values: Record<string, unknown>) => void;
|
|
100
|
+
}
|
|
101
|
+
export default function useAppliedFilters(form: AppliedFiltersForm, options: UseAppliedFiltersOptions): UseAppliedFiltersResult;
|
|
102
|
+
//# sourceMappingURL=useAppliedFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppliedFilters.d.ts","sourceRoot":"","sources":["../../../src/lib/v2/hooks/useAppliedFilters.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH,yEAAyE;AACzE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,aAAa,EAAE,CACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,OAAO,EACd,cAAc,CAAC,EAAE,OAAO,KACrB,OAAO,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,mEAAmE;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACvD;;;;;OAKG;IACH,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACxD;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,yEAAyE;IACzE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,mDAAmD;IACnD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0EAA0E;IAC1E,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC;;;OAGG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACvD;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,wBAAwB,GAChC,uBAAuB,CA4CzB"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = useAppliedFilters;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/**
|
|
9
|
+
* useAppliedFilters — tracks the criteria ACTUALLY applied to a listing
|
|
10
|
+
* (capability gap G-43).
|
|
11
|
+
*
|
|
12
|
+
* Companion to `buildFilterChips`: that one builds the chips, this one decides
|
|
13
|
+
* what they are allowed to show.
|
|
14
|
+
*
|
|
15
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
16
|
+
* THE DEFECT IT PREVENTS — AND IT WAS SHIPPED TWICE BEFORE BEING UNDERSTOOD
|
|
17
|
+
*
|
|
18
|
+
* Chips CANNOT be built from live form values. `DataGridToolbar`'s search input
|
|
19
|
+
* writes into them ON EVERY KEYSTROKE, so a chip "Référence : ABC" appears
|
|
20
|
+
* while the user is still typing — announcing an active criterion that filters
|
|
21
|
+
* nothing. Active criteria are the ones filtering the DISPLAYED list.
|
|
22
|
+
*
|
|
23
|
+
* Two distinct states are therefore required, and the split is counter-intuitive
|
|
24
|
+
* enough that it was got wrong twice: form values track TYPING, this snapshot
|
|
25
|
+
* tracks APPLICATION.
|
|
26
|
+
*
|
|
27
|
+
* The mirror-image defect is just as real: a snapshot left full after a "clear
|
|
28
|
+
* criteria" shows chips for criteria that no longer filter anything. Both
|
|
29
|
+
* failures are one forgotten line away, in opposite directions — which is the
|
|
30
|
+
* argument for one hook rather than three lines per screen.
|
|
31
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
32
|
+
*
|
|
33
|
+
* IT BUILDS NO PAYLOAD. Every screen has its own — key names, scope flags, page
|
|
34
|
+
* value — and `onRemove` hands the turn back with the REMAINING criteria. This
|
|
35
|
+
* hook knows only the cycle typing → application → removal.
|
|
36
|
+
*
|
|
37
|
+
* `setApplied`: THE THREE PATHS THAT BYPASS `apply()`. The snapshot is not only
|
|
38
|
+
* filled by a click on "Search". Three other gestures change what actually
|
|
39
|
+
* filters the list, and each one used to leave the chips lying:
|
|
40
|
+
*
|
|
41
|
+
* 1. RESTORING A SAVED FILTER. `SavedFiltersMenu` re-injects values and
|
|
42
|
+
* payload: the list is filtered, the snapshot stays empty, so NO chip
|
|
43
|
+
* appears. Observed on a real screen before this existed.
|
|
44
|
+
* 2. CLICKING A STATUS CHIP. Screens with `FilterTab` write the payload
|
|
45
|
+
* directly — on purpose, to avoid the async `setFieldValue` followed by a
|
|
46
|
+
* submit that reads the previous render's values. Without updating the
|
|
47
|
+
* snapshot, a later chip removal rebuilds the payload from a stale
|
|
48
|
+
* snapshot and LOSES the active status.
|
|
49
|
+
* 3. Any other direct payload write by the screen.
|
|
50
|
+
*
|
|
51
|
+
* Hence a function that SETS the snapshot, distinct from the one that freezes it
|
|
52
|
+
* from the form. The screen alone knows when what-filters has changed; the hook
|
|
53
|
+
* cannot guess it.
|
|
54
|
+
*
|
|
55
|
+
* Promoted from `refonte-frontend` (Area 5), where three listings consumed it.
|
|
56
|
+
*
|
|
57
|
+
* WHAT WAS NOT PROMOTED WITH IT. The original exported a ready-made
|
|
58
|
+
* `videAvecMiroirsNumeriques` helper — "id mirrors clear to `0`, everything
|
|
59
|
+
* else to `""`" — and a measurement of its call sites found NONE: the three
|
|
60
|
+
* hosts each passed their own inline strategy, and they disagree (`0` / `null`
|
|
61
|
+
* / `""`, per field). Codifying one of the three as the library's convention
|
|
62
|
+
* would have blessed a rule no host follows, and the disagreement is exactly
|
|
63
|
+
* why `emptyValueFor` is a parameter rather than a constant.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/** What a search form must expose to this hook — Formik satisfies it. */
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Explicit return type: §Hooks requires it ("Every hook must expose explicit
|
|
70
|
+
* return types"), and inference left this surface implicit while four screens
|
|
71
|
+
* consumed it.
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
function useAppliedFilters(form, options) {
|
|
75
|
+
const [appliedFilters, setAppliedFilters] = (0, _react.useState)({});
|
|
76
|
+
const empty = options.emptyValueFor ?? (() => null);
|
|
77
|
+
return {
|
|
78
|
+
appliedFilters,
|
|
79
|
+
apply: () => {
|
|
80
|
+
setAppliedFilters({
|
|
81
|
+
...form.values
|
|
82
|
+
});
|
|
83
|
+
options.onApply();
|
|
84
|
+
},
|
|
85
|
+
resetAll: () => {
|
|
86
|
+
setAppliedFilters({});
|
|
87
|
+
options.onReset();
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* Clears the fields and the snapshot, then hands the turn back so the
|
|
91
|
+
* screen can rebuild its payload.
|
|
92
|
+
*
|
|
93
|
+
* The payload is rebuilt from the AMPUTATED SNAPSHOT, never re-read from
|
|
94
|
+
* the form afterwards: `setFieldValue` is asynchronous, so reading values
|
|
95
|
+
* back would give the criteria as they were BEFORE the removal.
|
|
96
|
+
*/
|
|
97
|
+
removeCriteria: keys => {
|
|
98
|
+
keys.forEach(key => {
|
|
99
|
+
void form.setFieldValue(key, empty(key));
|
|
100
|
+
});
|
|
101
|
+
const remaining = {
|
|
102
|
+
...appliedFilters
|
|
103
|
+
};
|
|
104
|
+
keys.forEach(key => {
|
|
105
|
+
remaining[key] = empty(key);
|
|
106
|
+
});
|
|
107
|
+
setAppliedFilters(remaining);
|
|
108
|
+
options.onRemove(remaining);
|
|
109
|
+
},
|
|
110
|
+
setApplied: values => {
|
|
111
|
+
setAppliedFilters({
|
|
112
|
+
...values
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=useAppliedFilters.js.map
|