@mgamadeus/ddd-admin-ui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/ddd-admin-ui-specialist/SKILL.md +56 -2
- package/CHANGELOG.md +217 -0
- package/README.md +262 -23
- package/STANDARDS.md +171 -2
- package/dist/components.css +27 -3
- package/dist/data/DeltaText.d.ts +29 -0
- package/dist/data/DeltaText.d.ts.map +1 -0
- package/dist/data/DeltaText.js +36 -0
- package/dist/data/DeltaText.js.map +1 -0
- package/dist/data/MetricGrid.d.ts +15 -0
- package/dist/data/MetricGrid.d.ts.map +1 -0
- package/dist/data/MetricGrid.js +17 -0
- package/dist/data/MetricGrid.js.map +1 -0
- package/dist/data/MetricTile.d.ts +32 -0
- package/dist/data/MetricTile.d.ts.map +1 -0
- package/dist/data/MetricTile.js +13 -0
- package/dist/data/MetricTile.js.map +1 -0
- package/dist/data/NoteList.d.ts +19 -0
- package/dist/data/NoteList.d.ts.map +1 -0
- package/dist/data/NoteList.js +23 -0
- package/dist/data/NoteList.js.map +1 -0
- package/dist/data/delta.d.ts +40 -0
- package/dist/data/delta.d.ts.map +1 -0
- package/dist/data/delta.js +40 -0
- package/dist/data/delta.js.map +1 -0
- package/dist/data/index.d.ts +6 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +7 -0
- package/dist/data/index.js.map +1 -0
- package/dist/design-studio/contract.d.ts +162 -0
- package/dist/design-studio/contract.d.ts.map +1 -0
- package/dist/design-studio/contract.js +2 -0
- package/dist/design-studio/contract.js.map +1 -0
- package/dist/design-studio/index.d.ts +45 -0
- package/dist/design-studio/index.d.ts.map +1 -0
- package/dist/design-studio/index.js +47 -0
- package/dist/design-studio/index.js.map +1 -0
- package/dist/form/ColorValueField.d.ts +37 -0
- package/dist/form/ColorValueField.d.ts.map +1 -0
- package/dist/form/ColorValueField.js +74 -0
- package/dist/form/ColorValueField.js.map +1 -0
- package/dist/form/FormDrawer.d.ts +11 -1
- package/dist/form/FormDrawer.d.ts.map +1 -1
- package/dist/form/FormDrawer.js +7 -2
- package/dist/form/FormDrawer.js.map +1 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.d.ts.map +1 -1
- package/dist/form/index.js +2 -0
- package/dist/form/index.js.map +1 -1
- package/dist/glass/QuickFilterPills.d.ts +7 -0
- package/dist/glass/QuickFilterPills.d.ts.map +1 -1
- package/dist/glass/QuickFilterPills.js +4 -3
- package/dist/glass/QuickFilterPills.js.map +1 -1
- package/dist/i18n/format.d.ts +3 -2
- package/dist/i18n/format.d.ts.map +1 -1
- package/dist/i18n/format.js +3 -2
- package/dist/i18n/format.js.map +1 -1
- package/dist/i18n/formatLocale.d.ts +8 -0
- package/dist/i18n/formatLocale.d.ts.map +1 -0
- package/dist/i18n/formatLocale.js +10 -0
- package/dist/i18n/formatLocale.js.map +1 -0
- package/dist/i18n/hints.json +498 -1
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +1 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n-keys.json +4444 -351
- package/dist/list/ActionsHeaderText.d.ts +5 -0
- package/dist/list/ActionsHeaderText.d.ts.map +1 -0
- package/dist/list/ActionsHeaderText.js +9 -0
- package/dist/list/ActionsHeaderText.js.map +1 -0
- package/dist/list/Combobox.d.ts +11 -1
- package/dist/list/Combobox.d.ts.map +1 -1
- package/dist/list/Combobox.js +10 -7
- package/dist/list/Combobox.js.map +1 -1
- package/dist/list/EntityListBody.d.ts +9 -1
- package/dist/list/EntityListBody.d.ts.map +1 -1
- package/dist/list/EntityListBody.js +5 -3
- package/dist/list/EntityListBody.js.map +1 -1
- package/dist/list/EntityListBulkBar.d.ts +45 -3
- package/dist/list/EntityListBulkBar.d.ts.map +1 -1
- package/dist/list/EntityListBulkBar.js +31 -5
- package/dist/list/EntityListBulkBar.js.map +1 -1
- package/dist/list/EntityListEmpty.d.ts +9 -3
- package/dist/list/EntityListEmpty.d.ts.map +1 -1
- package/dist/list/EntityListEmpty.js +3 -3
- package/dist/list/EntityListEmpty.js.map +1 -1
- package/dist/list/EntityListTable.d.ts +3 -2
- package/dist/list/EntityListTable.d.ts.map +1 -1
- package/dist/list/EntityListTable.js +12 -8
- package/dist/list/EntityListTable.js.map +1 -1
- package/dist/list/EntityListToolbar.d.ts +30 -0
- package/dist/list/EntityListToolbar.d.ts.map +1 -1
- package/dist/list/EntityListToolbar.js +18 -4
- package/dist/list/EntityListToolbar.js.map +1 -1
- package/dist/list/EntityListViewToggle.d.ts +4 -1
- package/dist/list/EntityListViewToggle.d.ts.map +1 -1
- package/dist/list/EntityListViewToggle.js +15 -4
- package/dist/list/EntityListViewToggle.js.map +1 -1
- package/dist/list/cells.d.ts +10 -2
- package/dist/list/cells.d.ts.map +1 -1
- package/dist/list/cells.js +15 -6
- package/dist/list/cells.js.map +1 -1
- package/dist/list/columns.d.ts +85 -0
- package/dist/list/columns.d.ts.map +1 -0
- package/dist/list/columns.js +88 -0
- package/dist/list/columns.js.map +1 -0
- package/dist/list/filters.d.ts +19 -1
- package/dist/list/filters.d.ts.map +1 -1
- package/dist/list/filters.js +47 -3
- package/dist/list/filters.js.map +1 -1
- package/dist/list/index.d.ts +6 -0
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.js +3 -0
- package/dist/list/index.js.map +1 -1
- package/dist/logic/browser/normalizeImage.d.ts +69 -0
- package/dist/logic/browser/normalizeImage.d.ts.map +1 -0
- package/dist/logic/browser/normalizeImage.js +147 -0
- package/dist/logic/browser/normalizeImage.js.map +1 -0
- package/dist/logic/index.d.ts +25 -2
- package/dist/logic/index.d.ts.map +1 -1
- package/dist/logic/index.js +15 -1
- package/dist/logic/index.js.map +1 -1
- package/dist/logic/pure/colorValue.d.ts +22 -0
- package/dist/logic/pure/colorValue.d.ts.map +1 -0
- package/dist/logic/pure/colorValue.js +34 -0
- package/dist/logic/pure/colorValue.js.map +1 -0
- package/dist/logic/pure/dateRangePresets.d.ts +33 -0
- package/dist/logic/pure/dateRangePresets.d.ts.map +1 -0
- package/dist/logic/pure/dateRangePresets.js +41 -0
- package/dist/logic/pure/dateRangePresets.js.map +1 -0
- package/dist/logic/pure/format.d.ts +3 -3
- package/dist/logic/pure/format.d.ts.map +1 -1
- package/dist/logic/pure/format.js +13 -12
- package/dist/logic/pure/format.js.map +1 -1
- package/dist/logic/pure/imageCrop.d.ts +99 -0
- package/dist/logic/pure/imageCrop.d.ts.map +1 -0
- package/dist/logic/pure/imageCrop.js +198 -0
- package/dist/logic/pure/imageCrop.js.map +1 -0
- package/dist/logic/pure/injectedApi.d.ts +83 -0
- package/dist/logic/pure/injectedApi.d.ts.map +1 -0
- package/dist/logic/pure/injectedApi.js +87 -0
- package/dist/logic/pure/injectedApi.js.map +1 -0
- package/dist/logic/pure/listTracks.d.ts +14 -2
- package/dist/logic/pure/listTracks.d.ts.map +1 -1
- package/dist/logic/pure/listTracks.js +15 -4
- package/dist/logic/pure/listTracks.js.map +1 -1
- package/dist/logic/pure/locales.d.ts +22 -0
- package/dist/logic/pure/locales.d.ts.map +1 -1
- package/dist/logic/pure/locales.js +43 -0
- package/dist/logic/pure/locales.js.map +1 -1
- package/dist/logic/pure/navigation.d.ts +159 -0
- package/dist/logic/pure/navigation.d.ts.map +1 -0
- package/dist/logic/pure/navigation.js +158 -0
- package/dist/logic/pure/navigation.js.map +1 -0
- package/dist/logic/pure/runSequential.d.ts +42 -0
- package/dist/logic/pure/runSequential.d.ts.map +1 -1
- package/dist/logic/pure/runSequential.js +65 -13
- package/dist/logic/pure/runSequential.js.map +1 -1
- package/dist/logic/pure/textLimits.d.ts +18 -0
- package/dist/logic/pure/textLimits.d.ts.map +1 -0
- package/dist/logic/pure/textLimits.js +14 -0
- package/dist/logic/pure/textLimits.js.map +1 -0
- package/dist/logic/react/textLimits.d.ts +8 -0
- package/dist/logic/react/textLimits.d.ts.map +1 -0
- package/dist/logic/react/textLimits.js +9 -0
- package/dist/logic/react/textLimits.js.map +1 -0
- package/dist/logic/react/useEntityTranslations.d.ts +16 -1
- package/dist/logic/react/useEntityTranslations.d.ts.map +1 -1
- package/dist/logic/react/useEntityTranslations.js +18 -4
- package/dist/logic/react/useEntityTranslations.js.map +1 -1
- package/dist/logic/react/useMediaQuery.d.ts +14 -0
- package/dist/logic/react/useMediaQuery.d.ts.map +1 -0
- package/dist/logic/react/useMediaQuery.js +24 -0
- package/dist/logic/react/useMediaQuery.js.map +1 -0
- package/dist/logic/react/useMemoryUrlState.d.ts +13 -0
- package/dist/logic/react/useMemoryUrlState.d.ts.map +1 -0
- package/dist/logic/react/useMemoryUrlState.js +41 -0
- package/dist/logic/react/useMemoryUrlState.js.map +1 -0
- package/dist/logic/react/useOptimisticRowPatches.d.ts +16 -0
- package/dist/logic/react/useOptimisticRowPatches.d.ts.map +1 -0
- package/dist/logic/react/useOptimisticRowPatches.js +39 -0
- package/dist/logic/react/useOptimisticRowPatches.js.map +1 -0
- package/dist/markdown/MarkdownEditor.d.ts +36 -0
- package/dist/markdown/MarkdownEditor.d.ts.map +1 -0
- package/dist/markdown/MarkdownEditor.js +36 -0
- package/dist/markdown/MarkdownEditor.js.map +1 -0
- package/dist/markdown/MarkdownPreview.d.ts +15 -0
- package/dist/markdown/MarkdownPreview.d.ts.map +1 -0
- package/dist/markdown/MarkdownPreview.js +17 -0
- package/dist/markdown/MarkdownPreview.js.map +1 -0
- package/dist/markdown/index.d.ts +7 -0
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/markdown/index.js +9 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/markdown/loadMarkdownLibrary.d.ts +28 -0
- package/dist/markdown/loadMarkdownLibrary.d.ts.map +1 -0
- package/dist/markdown/loadMarkdownLibrary.js +40 -0
- package/dist/markdown/loadMarkdownLibrary.js.map +1 -0
- package/dist/markdown/markdownPipeline.d.ts +20 -0
- package/dist/markdown/markdownPipeline.d.ts.map +1 -0
- package/dist/markdown/markdownPipeline.js +50 -0
- package/dist/markdown/markdownPipeline.js.map +1 -0
- package/dist/markdown/renderMarkdownEditor.d.ts +18 -0
- package/dist/markdown/renderMarkdownEditor.d.ts.map +1 -0
- package/dist/markdown/renderMarkdownEditor.js +14 -0
- package/dist/markdown/renderMarkdownEditor.js.map +1 -0
- package/dist/markdown/useMarkdownLibrary.d.ts +24 -0
- package/dist/markdown/useMarkdownLibrary.d.ts.map +1 -0
- package/dist/markdown/useMarkdownLibrary.js +47 -0
- package/dist/markdown/useMarkdownLibrary.js.map +1 -0
- package/dist/media/ImageCropDialog.d.ts +48 -0
- package/dist/media/ImageCropDialog.d.ts.map +1 -0
- package/dist/media/ImageCropDialog.js +203 -0
- package/dist/media/ImageCropDialog.js.map +1 -0
- package/dist/media/MediaItemField.d.ts.map +1 -1
- package/dist/media/MediaItemField.js +3 -1
- package/dist/media/MediaItemField.js.map +1 -1
- package/dist/media/index.d.ts +2 -0
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +2 -0
- package/dist/media/index.js.map +1 -1
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.d.ts.map +1 -1
- package/dist/next/index.js +1 -0
- package/dist/next/index.js.map +1 -1
- package/dist/next/useNextPathname.d.ts +7 -0
- package/dist/next/useNextPathname.d.ts.map +1 -0
- package/dist/next/useNextPathname.js +9 -0
- package/dist/next/useNextPathname.js.map +1 -0
- package/dist/page/DetailHeader.d.ts.map +1 -1
- package/dist/page/DetailHeader.js +3 -1
- package/dist/page/DetailHeader.js.map +1 -1
- package/dist/page/MaintenanceActionCard.d.ts +29 -0
- package/dist/page/MaintenanceActionCard.d.ts.map +1 -0
- package/dist/page/MaintenanceActionCard.js +21 -0
- package/dist/page/MaintenanceActionCard.js.map +1 -0
- package/dist/page/PageHeader.d.ts.map +1 -1
- package/dist/page/PageHeader.js +3 -1
- package/dist/page/PageHeader.js.map +1 -1
- package/dist/page/RouteError.d.ts +26 -0
- package/dist/page/RouteError.d.ts.map +1 -0
- package/dist/page/RouteError.js +35 -0
- package/dist/page/RouteError.js.map +1 -0
- package/dist/page/RouteLoading.d.ts +16 -0
- package/dist/page/RouteLoading.d.ts.map +1 -0
- package/dist/page/RouteLoading.js +17 -0
- package/dist/page/RouteLoading.js.map +1 -0
- package/dist/page/SectionHeader.d.ts.map +1 -1
- package/dist/page/SectionHeader.js +3 -1
- package/dist/page/SectionHeader.js.map +1 -1
- package/dist/page/index.d.ts +6 -0
- package/dist/page/index.d.ts.map +1 -1
- package/dist/page/index.js +5 -0
- package/dist/page/index.js.map +1 -1
- package/dist/primitives/alert.d.ts +1 -1
- package/dist/primitives/badge.d.ts +1 -1
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +1 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/pathname.d.ts +22 -0
- package/dist/primitives/pathname.d.ts.map +1 -0
- package/dist/primitives/pathname.js +23 -0
- package/dist/primitives/pathname.js.map +1 -0
- package/dist/primitives/segmented-control.d.ts +37 -3
- package/dist/primitives/segmented-control.d.ts.map +1 -1
- package/dist/primitives/segmented-control.js +45 -10
- package/dist/primitives/segmented-control.js.map +1 -1
- package/dist/provider/AdminUiProvider.d.ts +2 -2
- package/dist/provider/AdminUiProvider.d.ts.map +1 -1
- package/dist/provider/AdminUiProvider.js +14 -3
- package/dist/provider/AdminUiProvider.js.map +1 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/types.d.ts +19 -0
- package/dist/provider/types.d.ts.map +1 -1
- package/dist/scripts/check-contrast.mjs +353 -0
- package/dist/shell/AccountMenu.d.ts +51 -0
- package/dist/shell/AccountMenu.d.ts.map +1 -0
- package/dist/shell/AccountMenu.js +34 -0
- package/dist/shell/AccountMenu.js.map +1 -0
- package/dist/shell/AppShell.d.ts +68 -0
- package/dist/shell/AppShell.d.ts.map +1 -0
- package/dist/shell/AppShell.js +56 -0
- package/dist/shell/AppShell.js.map +1 -0
- package/dist/shell/LanguageMenu.d.ts +36 -0
- package/dist/shell/LanguageMenu.d.ts.map +1 -0
- package/dist/shell/LanguageMenu.js +33 -0
- package/dist/shell/LanguageMenu.js.map +1 -0
- package/dist/shell/NavItemMarks.d.ts +21 -0
- package/dist/shell/NavItemMarks.d.ts.map +1 -0
- package/dist/shell/NavItemMarks.js +30 -0
- package/dist/shell/NavItemMarks.js.map +1 -0
- package/dist/shell/ShellBreadcrumbs.d.ts +26 -0
- package/dist/shell/ShellBreadcrumbs.d.ts.map +1 -0
- package/dist/shell/ShellBreadcrumbs.js +78 -0
- package/dist/shell/ShellBreadcrumbs.js.map +1 -0
- package/dist/shell/ShellDocumentTitle.d.ts +27 -0
- package/dist/shell/ShellDocumentTitle.d.ts.map +1 -0
- package/dist/shell/ShellDocumentTitle.js +50 -0
- package/dist/shell/ShellDocumentTitle.js.map +1 -0
- package/dist/shell/ShellMobileMenu.d.ts +33 -0
- package/dist/shell/ShellMobileMenu.d.ts.map +1 -0
- package/dist/shell/ShellMobileMenu.js +33 -0
- package/dist/shell/ShellMobileMenu.js.map +1 -0
- package/dist/shell/ShellNavLink.d.ts +18 -0
- package/dist/shell/ShellNavLink.d.ts.map +1 -0
- package/dist/shell/ShellNavLink.js +16 -0
- package/dist/shell/ShellNavLink.js.map +1 -0
- package/dist/shell/ShellNavList.d.ts +18 -0
- package/dist/shell/ShellNavList.d.ts.map +1 -0
- package/dist/shell/ShellNavList.js +45 -0
- package/dist/shell/ShellNavList.js.map +1 -0
- package/dist/shell/ShellNavRail.d.ts +11 -0
- package/dist/shell/ShellNavRail.d.ts.map +1 -0
- package/dist/shell/ShellNavRail.js +97 -0
- package/dist/shell/ShellNavRail.js.map +1 -0
- package/dist/shell/ShellSidebar.d.ts +32 -0
- package/dist/shell/ShellSidebar.d.ts.map +1 -0
- package/dist/shell/ShellSidebar.js +29 -0
- package/dist/shell/ShellSidebar.js.map +1 -0
- package/dist/shell/ShellTopBar.d.ts +23 -0
- package/dist/shell/ShellTopBar.d.ts.map +1 -0
- package/dist/shell/ShellTopBar.js +25 -0
- package/dist/shell/ShellTopBar.js.map +1 -0
- package/dist/shell/index.d.ts +28 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +19 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/navClasses.d.ts +12 -0
- package/dist/shell/navClasses.d.ts.map +1 -0
- package/dist/shell/navClasses.js +14 -0
- package/dist/shell/navClasses.js.map +1 -0
- package/dist/shell/shellContext.d.ts +30 -0
- package/dist/shell/shellContext.d.ts.map +1 -0
- package/dist/shell/shellContext.js +7 -0
- package/dist/shell/shellContext.js.map +1 -0
- package/dist/shell/useShellShortcut.d.ts +12 -0
- package/dist/shell/useShellShortcut.d.ts.map +1 -0
- package/dist/shell/useShellShortcut.js +42 -0
- package/dist/shell/useShellShortcut.js.map +1 -0
- package/dist/shell/useSidebarCollapsed.d.ts +10 -0
- package/dist/shell/useSidebarCollapsed.d.ts.map +1 -0
- package/dist/shell/useSidebarCollapsed.js +49 -0
- package/dist/shell/useSidebarCollapsed.js.map +1 -0
- package/dist/shell-background/ShaderBackground.d.ts +27 -0
- package/dist/shell-background/ShaderBackground.d.ts.map +1 -0
- package/dist/shell-background/ShaderBackground.js +92 -0
- package/dist/shell-background/ShaderBackground.js.map +1 -0
- package/dist/shell-background/ShaderCanvas.d.ts +16 -0
- package/dist/shell-background/ShaderCanvas.d.ts.map +1 -0
- package/dist/shell-background/ShaderCanvas.js +197 -0
- package/dist/shell-background/ShaderCanvas.js.map +1 -0
- package/dist/shell-background/index.d.ts +5 -0
- package/dist/shell-background/index.d.ts.map +1 -0
- package/dist/shell-background/index.js +5 -0
- package/dist/shell-background/index.js.map +1 -0
- package/dist/shell-background/shader.d.ts +81 -0
- package/dist/shell-background/shader.d.ts.map +1 -0
- package/dist/shell-background/shader.js +194 -0
- package/dist/shell-background/shader.js.map +1 -0
- package/dist/showcase/Showcase.d.ts +12 -2
- package/dist/showcase/Showcase.d.ts.map +1 -1
- package/dist/showcase/Showcase.js +24 -6
- package/dist/showcase/Showcase.js.map +1 -1
- package/dist/showcase/coverage.d.ts.map +1 -1
- package/dist/showcase/coverage.js +55 -4
- package/dist/showcase/coverage.js.map +1 -1
- package/dist/showcase/fixtures.d.ts +9 -0
- package/dist/showcase/fixtures.d.ts.map +1 -0
- package/dist/showcase/fixtures.js +268 -0
- package/dist/showcase/fixtures.js.map +1 -0
- package/dist/showcase/index.d.ts +2 -0
- package/dist/showcase/index.d.ts.map +1 -1
- package/dist/showcase/index.js +1 -0
- package/dist/showcase/index.js.map +1 -1
- package/dist/showcase/sections/DataShowcase.d.ts +3 -0
- package/dist/showcase/sections/DataShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/DataShowcase.js +15 -0
- package/dist/showcase/sections/DataShowcase.js.map +1 -0
- package/dist/showcase/sections/FormAdditionsShowcase.d.ts +3 -0
- package/dist/showcase/sections/FormAdditionsShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/FormAdditionsShowcase.js +15 -0
- package/dist/showcase/sections/FormAdditionsShowcase.js.map +1 -0
- package/dist/showcase/sections/FormShowcase.d.ts.map +1 -1
- package/dist/showcase/sections/FormShowcase.js +2 -1
- package/dist/showcase/sections/FormShowcase.js.map +1 -1
- package/dist/showcase/sections/ListAdditionsShowcase.d.ts +3 -0
- package/dist/showcase/sections/ListAdditionsShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/ListAdditionsShowcase.js +61 -0
- package/dist/showcase/sections/ListAdditionsShowcase.js.map +1 -0
- package/dist/showcase/sections/ListShowcase.d.ts.map +1 -1
- package/dist/showcase/sections/ListShowcase.js +2 -1
- package/dist/showcase/sections/ListShowcase.js.map +1 -1
- package/dist/showcase/sections/MarkdownShowcase.d.ts +21 -0
- package/dist/showcase/sections/MarkdownShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/MarkdownShowcase.js +28 -0
- package/dist/showcase/sections/MarkdownShowcase.js.map +1 -0
- package/dist/showcase/sections/MediaCropShowcase.d.ts +3 -0
- package/dist/showcase/sections/MediaCropShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/MediaCropShowcase.js +56 -0
- package/dist/showcase/sections/MediaCropShowcase.js.map +1 -0
- package/dist/showcase/sections/MediaShowcase.d.ts.map +1 -1
- package/dist/showcase/sections/MediaShowcase.js +2 -1
- package/dist/showcase/sections/MediaShowcase.js.map +1 -1
- package/dist/showcase/sections/PageAdditionsShowcase.d.ts +3 -0
- package/dist/showcase/sections/PageAdditionsShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/PageAdditionsShowcase.js +7 -0
- package/dist/showcase/sections/PageAdditionsShowcase.js.map +1 -0
- package/dist/showcase/sections/PageShowcase.d.ts.map +1 -1
- package/dist/showcase/sections/PageShowcase.js +4 -3
- package/dist/showcase/sections/PageShowcase.js.map +1 -1
- package/dist/showcase/sections/PrimitivesAdditionsShowcase.d.ts +3 -0
- package/dist/showcase/sections/PrimitivesAdditionsShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/PrimitivesAdditionsShowcase.js +20 -0
- package/dist/showcase/sections/PrimitivesAdditionsShowcase.js.map +1 -0
- package/dist/showcase/sections/PrimitivesShowcase.d.ts.map +1 -1
- package/dist/showcase/sections/PrimitivesShowcase.js +3 -2
- package/dist/showcase/sections/PrimitivesShowcase.js.map +1 -1
- package/dist/showcase/sections/ShellShowcase.d.ts +3 -0
- package/dist/showcase/sections/ShellShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/ShellShowcase.js +71 -0
- package/dist/showcase/sections/ShellShowcase.js.map +1 -0
- package/dist/showcase/sections/TranslationsShowcase.d.ts +2 -0
- package/dist/showcase/sections/TranslationsShowcase.d.ts.map +1 -1
- package/dist/showcase/sections/TranslationsShowcase.js +5 -1
- package/dist/showcase/sections/TranslationsShowcase.js.map +1 -1
- package/dist/showcase/sections/WorkersShowcase.d.ts +3 -0
- package/dist/showcase/sections/WorkersShowcase.d.ts.map +1 -0
- package/dist/showcase/sections/WorkersShowcase.js +15 -0
- package/dist/showcase/sections/WorkersShowcase.js.map +1 -0
- package/dist/tokens.json +276 -5
- package/dist/translations/AppTranslationKeyDrawer.d.ts +14 -0
- package/dist/translations/AppTranslationKeyDrawer.d.ts.map +1 -0
- package/dist/translations/AppTranslationKeyDrawer.js +197 -0
- package/dist/translations/AppTranslationKeyDrawer.js.map +1 -0
- package/dist/translations/AppTranslationsScreen.d.ts +25 -0
- package/dist/translations/AppTranslationsScreen.d.ts.map +1 -0
- package/dist/translations/AppTranslationsScreen.js +139 -0
- package/dist/translations/AppTranslationsScreen.js.map +1 -0
- package/dist/translations/ConfigImportCards.d.ts +26 -0
- package/dist/translations/ConfigImportCards.d.ts.map +1 -0
- package/dist/translations/ConfigImportCards.js +59 -0
- package/dist/translations/ConfigImportCards.js.map +1 -0
- package/dist/translations/LanguagesScreen.d.ts +20 -0
- package/dist/translations/LanguagesScreen.d.ts.map +1 -0
- package/dist/translations/LanguagesScreen.js +110 -0
- package/dist/translations/LanguagesScreen.js.map +1 -0
- package/dist/translations/LocalesScreen.d.ts +22 -0
- package/dist/translations/LocalesScreen.d.ts.map +1 -0
- package/dist/translations/LocalesScreen.js +92 -0
- package/dist/translations/LocalesScreen.js.map +1 -0
- package/dist/translations/TranslatableField.d.ts +13 -2
- package/dist/translations/TranslatableField.d.ts.map +1 -1
- package/dist/translations/TranslatableField.js +23 -5
- package/dist/translations/TranslatableField.js.map +1 -1
- package/dist/translations/TranslatableInput.d.ts.map +1 -1
- package/dist/translations/TranslatableInput.js +4 -1
- package/dist/translations/TranslatableInput.js.map +1 -1
- package/dist/translations/TranslatableMarkdown.d.ts +2 -0
- package/dist/translations/TranslatableMarkdown.d.ts.map +1 -1
- package/dist/translations/TranslatableMarkdown.js +12 -7
- package/dist/translations/TranslatableMarkdown.js.map +1 -1
- package/dist/translations/TranslationCompleteness.d.ts +11 -0
- package/dist/translations/TranslationCompleteness.d.ts.map +1 -0
- package/dist/translations/TranslationCompleteness.js +73 -0
- package/dist/translations/TranslationCompleteness.js.map +1 -0
- package/dist/translations/adminFormat.d.ts +27 -0
- package/dist/translations/adminFormat.d.ts.map +1 -0
- package/dist/translations/adminFormat.js +39 -0
- package/dist/translations/adminFormat.js.map +1 -0
- package/dist/translations/adminTypes.d.ts +136 -0
- package/dist/translations/adminTypes.d.ts.map +1 -0
- package/dist/translations/adminTypes.js +9 -0
- package/dist/translations/adminTypes.js.map +1 -0
- package/dist/translations/api.d.ts +225 -0
- package/dist/translations/api.d.ts.map +1 -0
- package/dist/translations/api.js +132 -0
- package/dist/translations/api.js.map +1 -0
- package/dist/translations/focusOverLimit.d.ts +7 -0
- package/dist/translations/focusOverLimit.d.ts.map +1 -0
- package/dist/translations/focusOverLimit.js +23 -0
- package/dist/translations/focusOverLimit.js.map +1 -0
- package/dist/translations/index.d.ts +22 -0
- package/dist/translations/index.d.ts.map +1 -1
- package/dist/translations/index.js +13 -0
- package/dist/translations/index.js.map +1 -1
- package/dist/translations/useContentLocales.d.ts +17 -0
- package/dist/translations/useContentLocales.d.ts.map +1 -0
- package/dist/translations/useContentLocales.js +33 -0
- package/dist/translations/useContentLocales.js.map +1 -0
- package/dist/translations/useEntityTranslator.d.ts +34 -0
- package/dist/translations/useEntityTranslator.d.ts.map +1 -0
- package/dist/translations/useEntityTranslator.js +49 -0
- package/dist/translations/useEntityTranslator.js.map +1 -0
- package/dist/workers/WorkerRestartButton.d.ts +19 -0
- package/dist/workers/WorkerRestartButton.d.ts.map +1 -0
- package/dist/workers/WorkerRestartButton.js +59 -0
- package/dist/workers/WorkerRestartButton.js.map +1 -0
- package/dist/workers/WorkerTransportScreen.d.ts +24 -0
- package/dist/workers/WorkerTransportScreen.d.ts.map +1 -0
- package/dist/workers/WorkerTransportScreen.js +121 -0
- package/dist/workers/WorkerTransportScreen.js.map +1 -0
- package/dist/workers/WorkersOverviewScreen.d.ts +30 -0
- package/dist/workers/WorkersOverviewScreen.d.ts.map +1 -0
- package/dist/workers/WorkersOverviewScreen.js +61 -0
- package/dist/workers/WorkersOverviewScreen.js.map +1 -0
- package/dist/workers/api.d.ts +113 -0
- package/dist/workers/api.d.ts.map +1 -0
- package/dist/workers/api.js +73 -0
- package/dist/workers/api.js.map +1 -0
- package/dist/workers/charts.d.ts +94 -0
- package/dist/workers/charts.d.ts.map +1 -0
- package/dist/workers/charts.js +238 -0
- package/dist/workers/charts.js.map +1 -0
- package/dist/workers/format.d.ts +96 -0
- package/dist/workers/format.d.ts.map +1 -0
- package/dist/workers/format.js +231 -0
- package/dist/workers/format.js.map +1 -0
- package/dist/workers/history.d.ts +20 -0
- package/dist/workers/history.d.ts.map +1 -0
- package/dist/workers/history.js +84 -0
- package/dist/workers/history.js.map +1 -0
- package/dist/workers/index.d.ts +24 -0
- package/dist/workers/index.d.ts.map +1 -0
- package/dist/workers/index.js +19 -0
- package/dist/workers/index.js.map +1 -0
- package/dist/workers/overview.d.ts +72 -0
- package/dist/workers/overview.d.ts.map +1 -0
- package/dist/workers/overview.js +323 -0
- package/dist/workers/overview.js.map +1 -0
- package/dist/workers/status.d.ts +11 -0
- package/dist/workers/status.d.ts.map +1 -0
- package/dist/workers/status.js +106 -0
- package/dist/workers/status.js.map +1 -0
- package/dist/workers/transport.d.ts +78 -0
- package/dist/workers/transport.d.ts.map +1 -0
- package/dist/workers/transport.js +407 -0
- package/dist/workers/transport.js.map +1 -0
- package/dist/workers/types.d.ts +234 -0
- package/dist/workers/types.d.ts.map +1 -0
- package/dist/workers/types.js +8 -0
- package/dist/workers/types.js.map +1 -0
- package/dist/workers/useWorkersWindow.d.ts +12 -0
- package/dist/workers/useWorkersWindow.d.ts.map +1 -0
- package/dist/workers/useWorkersWindow.js +38 -0
- package/dist/workers/useWorkersWindow.js.map +1 -0
- package/dist/workers/window.d.ts +30 -0
- package/dist/workers/window.d.ts.map +1 -0
- package/dist/workers/window.js +39 -0
- package/dist/workers/window.js.map +1 -0
- package/package.json +39 -4
package/dist/list/filters.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { type DateRange, type DateRangePreset } from '../logic/pure/dateRangePresets.js';
|
|
2
3
|
import type { FilterOption } from './filterOptions.js';
|
|
3
4
|
/** @deprecated moved to list/filterClasses — the re-export is removed in a later minor */
|
|
4
5
|
export { FILTER_CONTROL_CLASS, FILTER_DATE_CONTROL_CLASS } from './filterClasses.js';
|
|
@@ -79,7 +80,24 @@ export interface FilterDateRangeProps {
|
|
|
79
80
|
/** Accessible name of the second field (default "<label> to"). */
|
|
80
81
|
toLabel?: string;
|
|
81
82
|
className?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Presets above the fields (`true`: all time, today, last 7 days, last 30 days, custom; or the host's list): a
|
|
85
|
+
* segmented control; a preset writes its bounds through `onRangeChange` (or the two callbacks), the same
|
|
86
|
+
* `YYYY-MM-DD` values typed dates give, so "Clear filters" (both bounds `''`) is "All time" again. The resolved range
|
|
87
|
+
* shows next to the label; the custom preset reveals the two date fields (no second visible label).
|
|
88
|
+
*/
|
|
89
|
+
presets?: boolean | readonly DateRangePreset[];
|
|
90
|
+
/**
|
|
91
|
+
* The picked preset, when the host keeps it (e.g. in the URL, so "Last 7 days" rolls forward). Without it the filter
|
|
92
|
+
* derives the preset from the bounds (a range equal to no preset is custom).
|
|
93
|
+
*/
|
|
94
|
+
preset?: string;
|
|
95
|
+
onPresetChange?: (preset: string) => void;
|
|
96
|
+
/** Both bounds at once (one URL write); without it a preset calls `onFromChange` and `onToChange`. */
|
|
97
|
+
onRangeChange?: (range: DateRange) => void;
|
|
98
|
+
/** The local day presets resolve from (default: the viewer's clock). */
|
|
99
|
+
today?: string;
|
|
82
100
|
}
|
|
83
101
|
/** Two calendar-day bounds (`YYYY-MM-DD`); each bound limits the other. Build the filter with `ge` / `le`. */
|
|
84
|
-
export declare const FilterDateRange: ({ label, from, to, onFromChange, onToChange, hideLabel, fromLabel, toLabel, className, }: FilterDateRangeProps) => import("react").JSX.Element;
|
|
102
|
+
export declare const FilterDateRange: ({ label, from, to, onFromChange, onToChange, hideLabel, fromLabel, toLabel, className, presets, preset, onPresetChange, onRangeChange, today, }: FilterDateRangeProps) => import("react").JSX.Element;
|
|
85
103
|
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/list/filters.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/list/filters.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAaxD,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EAGrB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,0FAA0F;AAC1F,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACrF,0FAA0F;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,0FAA0F;AAC1F,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAOvD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,0GAA0G;IAC1G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0FAA0F;AAC1F,eAAO,MAAM,WAAW,GAAI,yCAAyC,gBAAgB,gCAOpF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,yBAAyB,gBAAgB,gCAEpE,CAAC;AAIF,MAAM,WAAW,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pB;AAED,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,GAAI,yFAS/B,sBAAsB,gCAkBxB,CAAC;AAIF,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,sGAAsG;IACtG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,eAAe,EAAE,CAAC;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,sGAAsG;IACtG,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,8GAA8G;AAC9G,eAAO,MAAM,eAAe,GAAI,iJAe7B,oBAAoB,gCAoDtB,CAAC"}
|
package/dist/list/filters.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { X } from 'lucide-react';
|
|
4
|
-
import { useId } from 'react';
|
|
5
|
-
import { Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../primitives/index.js";
|
|
4
|
+
import { useId, useState } from 'react';
|
|
5
|
+
import { Input, Label, SegmentedControl, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "../primitives/index.js";
|
|
6
|
+
import { formatDate } from "../logic/pure/format.js";
|
|
7
|
+
import { CUSTOM_DATE_RANGE_PRESET, DEFAULT_DATE_RANGE_PRESETS, dateRangePresetOf, localToday, } from "../logic/pure/dateRangePresets.js";
|
|
6
8
|
import { useTranslate } from "../i18n/index.js";
|
|
7
9
|
import { cn } from "../primitives/cn.js";
|
|
8
10
|
import { Combobox } from "./Combobox.js";
|
|
@@ -46,12 +48,54 @@ export const FilterMultiSelect = ({ label, value, onChange, options, allLabel, s
|
|
|
46
48
|
return (_jsx(FilterField, { label: label, children: _jsx(MultiSelect, { options: options, value: value, onChange: onChange, placeholder: allLabel ?? t('All', { context: 'filter-option' }), searchPlaceholder: searchPlaceholder, isLoading: isLoading, "aria-label": label, size: "sm", maxChips: 2, className: cn('min-h-8 w-full text-[13px] font-bold sm:w-64', className) }) }));
|
|
47
49
|
};
|
|
48
50
|
/** Two calendar-day bounds (`YYYY-MM-DD`); each bound limits the other. Build the filter with `ge` / `le`. */
|
|
49
|
-
export const FilterDateRange = ({ label, from, to, onFromChange, onToChange, hideLabel = false, fromLabel, toLabel, className, }) => {
|
|
51
|
+
export const FilterDateRange = ({ label, from, to, onFromChange, onToChange, hideLabel = false, fromLabel, toLabel, className, presets, preset, onPresetChange, onRangeChange, today, }) => {
|
|
50
52
|
const id = useId();
|
|
51
53
|
const { t } = useTranslate();
|
|
54
|
+
if (presets) {
|
|
55
|
+
return (_jsx(FilterDateRangePresets, { label: label, from: from, to: to, onFromChange: onFromChange, onToChange: onToChange, fromLabel: fromLabel, toLabel: toLabel, className: className, presets: presets === true ? DEFAULT_DATE_RANGE_PRESETS : presets, preset: preset, onPresetChange: onPresetChange, onRangeChange: onRangeChange, today: today }));
|
|
56
|
+
}
|
|
52
57
|
const fields = (_jsxs("div", { className: cn('flex items-center gap-1.5', hideLabel && className), role: hideLabel ? 'group' : undefined, "aria-label": hideLabel ? t(label) : undefined, children: [_jsx(Input, { id: id, type: "date", value: from, max: to || undefined, onChange: event => onFromChange(event.target.value), "aria-label": fromLabel ? t(fromLabel) : t('%label% from', { replacements: { label } }), className: FILTER_DATE_CONTROL_CLASS }), _jsx("span", { className: "text-muted-foreground", "aria-hidden": true, children: "\u2013" }), _jsx(Input, { type: "date", value: to, min: from || undefined, onChange: event => onToChange(event.target.value), "aria-label": toLabel ? t(toLabel) : t('%label% to', { replacements: { label } }), className: FILTER_DATE_CONTROL_CLASS })] }));
|
|
53
58
|
if (hideLabel)
|
|
54
59
|
return fields;
|
|
55
60
|
return (_jsx(FilterField, { label: label, htmlFor: id, className: className, children: fields }));
|
|
56
61
|
};
|
|
62
|
+
/** The preset form of `FilterDateRange`: label with the resolved range, a segmented control, the fields under custom. */
|
|
63
|
+
const FilterDateRangePresets = ({ label, from, to, onFromChange, onToChange, fromLabel, toLabel, className, presets, preset: hostPreset, onPresetChange, onRangeChange, today: fixedToday, }) => {
|
|
64
|
+
const { t } = useTranslate();
|
|
65
|
+
const labelId = useId();
|
|
66
|
+
const today = fixedToday ?? localToday();
|
|
67
|
+
const customId = presets.find(item => !item.resolve)?.id ?? CUSTOM_DATE_RANGE_PRESET;
|
|
68
|
+
// "Custom" picked while the bounds still equal a preset: kept until the bounds change from outside
|
|
69
|
+
const [customPickedFor, setCustomPickedFor] = useState(null);
|
|
70
|
+
const derived = dateRangePresetOf({ from, to }, presets, today);
|
|
71
|
+
const rangeKey = `${from}|${to}`;
|
|
72
|
+
const active = hostPreset ?? (customPickedFor === rangeKey ? customId : derived);
|
|
73
|
+
const isCustom = !presets.find(item => item.id === active)?.resolve;
|
|
74
|
+
const writeRange = (range) => {
|
|
75
|
+
if (onRangeChange)
|
|
76
|
+
onRangeChange(range);
|
|
77
|
+
else {
|
|
78
|
+
if (range.from !== from)
|
|
79
|
+
onFromChange(range.from);
|
|
80
|
+
if (range.to !== to)
|
|
81
|
+
onToChange(range.to);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const pick = (next) => {
|
|
85
|
+
onPresetChange?.(next);
|
|
86
|
+
const resolved = presets.find(item => item.id === next)?.resolve?.(today);
|
|
87
|
+
if (resolved) {
|
|
88
|
+
setCustomPickedFor(null);
|
|
89
|
+
writeRange(resolved);
|
|
90
|
+
}
|
|
91
|
+
else
|
|
92
|
+
setCustomPickedFor(rangeKey);
|
|
93
|
+
};
|
|
94
|
+
const rangeText = isCustom || (from === '' && to === '')
|
|
95
|
+
? null
|
|
96
|
+
: from === to
|
|
97
|
+
? formatDate(from)
|
|
98
|
+
: `${from ? formatDate(from) : '…'} – ${to ? formatDate(to) : '…'}`;
|
|
99
|
+
return (_jsxs("div", { className: cn('grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1.5', className), role: "group", "aria-labelledby": labelId, children: [_jsxs("div", { className: "flex min-w-0 items-baseline gap-2", children: [_jsx("span", { id: labelId, className: "text-[12.5px] font-bold text-muted-foreground", children: label }), rangeText && _jsx("span", { className: "truncate text-[12px] text-muted-foreground tabular-nums", children: rangeText })] }), _jsx(SegmentedControl, { "aria-label": label, value: active, onValueChange: pick, options: presets.map(item => ({ value: item.id, label: item.label, context: item.context })), className: "max-w-full" }), isCustom && (_jsx(FilterDateRange, { label: label, from: from, to: to, onFromChange: onFromChange, onToChange: onToChange, hideLabel: true, fromLabel: fromLabel, toLabel: toLabel }))] }));
|
|
100
|
+
};
|
|
57
101
|
//# sourceMappingURL=filters.js.map
|
package/dist/list/filters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/list/filters.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,EAAkB,KAAK,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/list/filters.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;A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E,OAAO,GAChB,CACH,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/list/index.d.ts
CHANGED
|
@@ -88,4 +88,10 @@ export type { UrlStateAdapter } from '../logic/pure/urlListState.js';
|
|
|
88
88
|
export { useUrlListState } from '../logic/react/useUrlListState.js';
|
|
89
89
|
/** @deprecated moved to logic/react/useUrlListState — the re-export is removed in a later minor */
|
|
90
90
|
export type { UrlListState, UseUrlListStateOptions } from '../logic/react/useUrlListState.js';
|
|
91
|
+
export { actionsColumn, booleanColumn, dateColumn, idColumn, imageColumn, moneyColumn, numberColumn, statusColumn, textColumn, } from './columns.js';
|
|
92
|
+
export type { ColumnFactoryOptions } from './columns.js';
|
|
93
|
+
export { ClearFiltersButton, FilterCountBadge, FilterToggleButton } from './EntityListToolbar.js';
|
|
94
|
+
export type { ClearFiltersButtonProps, FilterCountBadgeProps, FilterToggleButtonProps } from './EntityListToolbar.js';
|
|
95
|
+
export type { EntityListBulkActionChoice, EntityListBulkActionConfirm } from './EntityListBulkBar.js';
|
|
96
|
+
export type { ListTableBreakpoint } from './EntityListBody.js';
|
|
91
97
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/list/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,YAAY,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,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACnG,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvH,YAAY,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACvG,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/list/index.js
CHANGED
|
@@ -49,4 +49,7 @@ export { useRowSelection } from "../logic/react/useRowSelection.js";
|
|
|
49
49
|
export { LIST_STATE_DEBOUNCE_MS } from "../logic/pure/urlListState.js";
|
|
50
50
|
/** @deprecated moved to logic/react/useUrlListState — the re-export is removed in a later minor */
|
|
51
51
|
export { useUrlListState } from "../logic/react/useUrlListState.js";
|
|
52
|
+
// Column factories, toolbar parts outside the toolbar, bulk action menus, the table breakpoint (0.2.0).
|
|
53
|
+
export { actionsColumn, booleanColumn, dateColumn, idColumn, imageColumn, moneyColumn, numberColumn, statusColumn, textColumn, } from "./columns.js";
|
|
54
|
+
export { ClearFiltersButton, FilterCountBadge, FilterToggleButton } from "./EntityListToolbar.js";
|
|
52
55
|
//# sourceMappingURL=index.js.map
|
package/dist/list/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAsB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAsB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,qBAAsB,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAA0B,CAAC;AAE9D,2FAA2F;AAC3F,qHAAqH;AACrH,OAAO,EAAE,cAAc,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EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAmB,CAAC;AAEhD,gGAAgG;AAChG,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAGzF,yFAAyF;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAmB,CAAC;AAEhD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAW,CAAC;AAEhC,sGAAsG;AACtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,mGAAmG;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGpE,+FAA+F;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,mGAAmG;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIpE,wGAAwG;AACxG,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,GACX,MAAM,cAAe,CAAC;AAEvB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAyB,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type CropRect, type ImageNormalizationPlan, type ImageOutputType, type PlanImageNormalizationOptions } from '../pure/imageCrop.js';
|
|
2
|
+
/** Why a normalisation failed: `decode` (not an image this browser reads, or a corrupt file), `too-large` (above
|
|
3
|
+
* `maxInputPixels`), `encode` (the browser could not write the output), `unsupported` (no canvas). */
|
|
4
|
+
export type ImageNormalizeErrorCode = 'decode' | 'too-large' | 'encode' | 'unsupported';
|
|
5
|
+
/** The one error type of the normaliser; `code` says which step failed, `message` is translated. */
|
|
6
|
+
export declare class ImageNormalizeError extends Error {
|
|
7
|
+
readonly code: ImageNormalizeErrorCode;
|
|
8
|
+
constructor(code: ImageNormalizeErrorCode, message: string, options?: {
|
|
9
|
+
cause?: unknown;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export declare const isImageNormalizeError: (error: unknown) => error is ImageNormalizeError;
|
|
13
|
+
/** A decoded, oriented source image. `close()` frees it (an `ImageBitmap`'s memory, an object URL). */
|
|
14
|
+
export interface DecodedImage {
|
|
15
|
+
source: CanvasImageSource;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
type: string;
|
|
19
|
+
close: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Renders a plan in a host's worker and returns the encoded blob. The package ships no worker file (a worker URL is
|
|
23
|
+
* bundler-specific); a host passes a function that transfers `bitmap` to its own worker, which calls
|
|
24
|
+
* `renderNormalizedImage(bitmap, plan)` on an `OffscreenCanvas`. A rejection falls back to the main thread.
|
|
25
|
+
*/
|
|
26
|
+
export type NormalizeImageWorkerRunner = (bitmap: ImageBitmap, plan: ImageNormalizationPlan) => Promise<Blob>;
|
|
27
|
+
export interface NormalizeImageOptions extends Omit<PlanImageNormalizationOptions, 'type'> {
|
|
28
|
+
/** Output type; default: PNG for alpha sources and round crops, WebP stays WebP, JPEG otherwise. */
|
|
29
|
+
type?: ImageOutputType;
|
|
30
|
+
/** Refuse a source above this many pixels before drawing it (default 100 million; `Infinity` turns it off). */
|
|
31
|
+
maxInputPixels?: number;
|
|
32
|
+
/** Optional worker adapter; without it (or when it fails) the image is drawn on the main thread. */
|
|
33
|
+
runInWorker?: NormalizeImageWorkerRunner;
|
|
34
|
+
}
|
|
35
|
+
/** A normalised image ready for an upload adapter. */
|
|
36
|
+
export interface NormalizedImage {
|
|
37
|
+
blob: Blob;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
/** The type actually written (a browser without a WebP encoder writes PNG). */
|
|
41
|
+
type: string;
|
|
42
|
+
sourceWidth: number;
|
|
43
|
+
sourceHeight: number;
|
|
44
|
+
/** The source rectangle used, in whole oriented source pixels. */
|
|
45
|
+
crop: CropRect;
|
|
46
|
+
/** Whether the host's worker rendered it (false: main thread, also after a worker failure). */
|
|
47
|
+
renderedInWorker: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Decodes a file or blob with its EXIF orientation applied (`createImageBitmap(…, { imageOrientation: 'from-image' })`,
|
|
51
|
+
* an `<img>` where that fails, e.g. for SVG). Throws `ImageNormalizeError` with `code: 'decode'` for a corrupt or
|
|
52
|
+
* unreadable file. Browser-only; call `close()` when done.
|
|
53
|
+
*/
|
|
54
|
+
export declare const decodeImage: (blob: Blob) => Promise<DecodedImage>;
|
|
55
|
+
/**
|
|
56
|
+
* Draws a plan from an oriented source and encodes it: crop, resize (high quality smoothing), round clip, background
|
|
57
|
+
* for JPEG. Runs on the main thread and inside a worker (`OffscreenCanvas`): a host's worker imports it from
|
|
58
|
+
* `./logic`.
|
|
59
|
+
*/
|
|
60
|
+
export declare const renderNormalizedImage: (source: CanvasImageSource, plan: ImageNormalizationPlan) => Promise<Blob>;
|
|
61
|
+
/**
|
|
62
|
+
* Normalises an image in the browser: decodes it with its orientation, refuses a source above `maxInputPixels`, crops
|
|
63
|
+
* (`crop`, `round`), shrinks into `maxWidth` / `maxHeight` / `maxPixels` (never upscales) and encodes (`type`,
|
|
64
|
+
* `quality`; alpha kept unless JPEG is asked for). With `runInWorker` the drawing runs in the host's worker and falls
|
|
65
|
+
* back to the main thread when it fails. Every failure is an `ImageNormalizeError`; validation, presets and the upload
|
|
66
|
+
* stay with the host.
|
|
67
|
+
*/
|
|
68
|
+
export declare const normalizeImage: (blob: Blob, options?: NormalizeImageOptions) => Promise<NormalizedImage>;
|
|
69
|
+
//# sourceMappingURL=normalizeImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeImage.d.ts","sourceRoot":"","sources":["../../../src/logic/browser/normalizeImage.ts"],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+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,IAAI,EAAE,QAAQ,CAAC;IACf,+FAA+F;IAC/F,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AA2BD;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAU,MAAM,IAAI,KAAG,OAAO,CAAC,YAAY,CAYlE,CAAC;AAkBF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAU,QAAQ,iBAAiB,EAAE,MAAM,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAoBjH,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAU,MAAM,IAAI,EAAE,UAAS,qBAA0B,KAAG,OAAO,CAAC,eAAe,CAwC7G,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { translateText } from "../../i18n/store.js";
|
|
2
|
+
import { planImageNormalization, } from "../pure/imageCrop.js";
|
|
3
|
+
/** The one error type of the normaliser; `code` says which step failed, `message` is translated. */
|
|
4
|
+
export class ImageNormalizeError extends Error {
|
|
5
|
+
code;
|
|
6
|
+
constructor(code, message, options) {
|
|
7
|
+
super(message, options);
|
|
8
|
+
this.name = 'ImageNormalizeError';
|
|
9
|
+
this.code = code;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export const isImageNormalizeError = (error) => error instanceof ImageNormalizeError;
|
|
13
|
+
const DEFAULT_MAX_INPUT_PIXELS = 100_000_000;
|
|
14
|
+
const decodeError = (cause) => new ImageNormalizeError('decode', translateText('The file is not an image this browser can read'), { cause });
|
|
15
|
+
const loadImageElement = (blob) => new Promise((resolve, reject) => {
|
|
16
|
+
const url = URL.createObjectURL(blob);
|
|
17
|
+
const image = new Image();
|
|
18
|
+
image.onload = () => {
|
|
19
|
+
// an SVG without a size decodes to 0 × 0
|
|
20
|
+
if (!image.naturalWidth || !image.naturalHeight) {
|
|
21
|
+
URL.revokeObjectURL(url);
|
|
22
|
+
reject(decodeError());
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
resolve({ source: image, width: image.naturalWidth, height: image.naturalHeight, type: blob.type, close: () => URL.revokeObjectURL(url) });
|
|
26
|
+
};
|
|
27
|
+
image.onerror = event => {
|
|
28
|
+
URL.revokeObjectURL(url);
|
|
29
|
+
reject(decodeError(event));
|
|
30
|
+
};
|
|
31
|
+
image.src = url;
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Decodes a file or blob with its EXIF orientation applied (`createImageBitmap(…, { imageOrientation: 'from-image' })`,
|
|
35
|
+
* an `<img>` where that fails, e.g. for SVG). Throws `ImageNormalizeError` with `code: 'decode'` for a corrupt or
|
|
36
|
+
* unreadable file. Browser-only; call `close()` when done.
|
|
37
|
+
*/
|
|
38
|
+
export const decodeImage = async (blob) => {
|
|
39
|
+
if (blob.type && !blob.type.startsWith('image/'))
|
|
40
|
+
throw decodeError();
|
|
41
|
+
if (typeof createImageBitmap === 'function' && blob.type !== 'image/svg+xml') {
|
|
42
|
+
try {
|
|
43
|
+
const bitmap = await createImageBitmap(blob, { imageOrientation: 'from-image' });
|
|
44
|
+
return { source: bitmap, width: bitmap.width, height: bitmap.height, type: blob.type, close: () => bitmap.close() };
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
// fall through to <img>: some browsers decode formats only there
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (typeof Image === 'undefined')
|
|
51
|
+
throw new ImageNormalizeError('unsupported', translateText('This browser cannot process images'));
|
|
52
|
+
return loadImageElement(blob);
|
|
53
|
+
};
|
|
54
|
+
const createCanvas = (width, height) => {
|
|
55
|
+
if (typeof OffscreenCanvas !== 'undefined')
|
|
56
|
+
return new OffscreenCanvas(width, height);
|
|
57
|
+
if (typeof document === 'undefined')
|
|
58
|
+
throw new ImageNormalizeError('unsupported', translateText('This browser cannot process images'));
|
|
59
|
+
const canvas = document.createElement('canvas');
|
|
60
|
+
canvas.width = width;
|
|
61
|
+
canvas.height = height;
|
|
62
|
+
return canvas;
|
|
63
|
+
};
|
|
64
|
+
const encode = (canvas, type, quality) => {
|
|
65
|
+
if ('convertToBlob' in canvas)
|
|
66
|
+
return canvas.convertToBlob({ type, quality }).catch(() => null);
|
|
67
|
+
return new Promise(resolve => canvas.toBlob(resolve, type, quality));
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Draws a plan from an oriented source and encodes it: crop, resize (high quality smoothing), round clip, background
|
|
71
|
+
* for JPEG. Runs on the main thread and inside a worker (`OffscreenCanvas`): a host's worker imports it from
|
|
72
|
+
* `./logic`.
|
|
73
|
+
*/
|
|
74
|
+
export const renderNormalizedImage = async (source, plan) => {
|
|
75
|
+
const canvas = createCanvas(plan.width, plan.height);
|
|
76
|
+
const context = canvas.getContext('2d');
|
|
77
|
+
if (!context)
|
|
78
|
+
throw new ImageNormalizeError('unsupported', translateText('This browser cannot process images'));
|
|
79
|
+
context.imageSmoothingEnabled = true;
|
|
80
|
+
context.imageSmoothingQuality = 'high';
|
|
81
|
+
if (plan.background) {
|
|
82
|
+
context.fillStyle = plan.background;
|
|
83
|
+
context.fillRect(0, 0, plan.width, plan.height);
|
|
84
|
+
}
|
|
85
|
+
if (plan.round) {
|
|
86
|
+
context.beginPath();
|
|
87
|
+
context.ellipse(plan.width / 2, plan.height / 2, plan.width / 2, plan.height / 2, 0, 0, Math.PI * 2);
|
|
88
|
+
context.clip();
|
|
89
|
+
}
|
|
90
|
+
const { x, y, width, height } = plan.source;
|
|
91
|
+
context.drawImage(source, x, y, width, height, 0, 0, plan.width, plan.height);
|
|
92
|
+
const blob = await encode(canvas, plan.type, plan.quality);
|
|
93
|
+
if (!blob)
|
|
94
|
+
throw new ImageNormalizeError('encode', translateText('The image could not be encoded'));
|
|
95
|
+
return blob;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Normalises an image in the browser: decodes it with its orientation, refuses a source above `maxInputPixels`, crops
|
|
99
|
+
* (`crop`, `round`), shrinks into `maxWidth` / `maxHeight` / `maxPixels` (never upscales) and encodes (`type`,
|
|
100
|
+
* `quality`; alpha kept unless JPEG is asked for). With `runInWorker` the drawing runs in the host's worker and falls
|
|
101
|
+
* back to the main thread when it fails. Every failure is an `ImageNormalizeError`; validation, presets and the upload
|
|
102
|
+
* stay with the host.
|
|
103
|
+
*/
|
|
104
|
+
export const normalizeImage = async (blob, options = {}) => {
|
|
105
|
+
const decoded = await decodeImage(blob);
|
|
106
|
+
try {
|
|
107
|
+
const maxInputPixels = options.maxInputPixels ?? DEFAULT_MAX_INPUT_PIXELS;
|
|
108
|
+
if (decoded.width * decoded.height > maxInputPixels) {
|
|
109
|
+
throw new ImageNormalizeError('too-large', translateText('The image is too large (%width% × %height% px)', { replacements: { width: decoded.width, height: decoded.height } }));
|
|
110
|
+
}
|
|
111
|
+
const plan = planImageNormalization(decoded.width, decoded.height, decoded.type || blob.type, options);
|
|
112
|
+
let output = null;
|
|
113
|
+
let renderedInWorker = false;
|
|
114
|
+
if (options.runInWorker && typeof createImageBitmap === 'function') {
|
|
115
|
+
try {
|
|
116
|
+
// the worker gets its own bitmap (a transfer detaches it); the main-thread source stays usable for the fallback
|
|
117
|
+
const bitmap = await createImageBitmap(decoded.source);
|
|
118
|
+
output = await options.runInWorker(bitmap, plan);
|
|
119
|
+
renderedInWorker = true;
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
output = null;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (!output)
|
|
126
|
+
output = await renderNormalizedImage(decoded.source, plan);
|
|
127
|
+
return {
|
|
128
|
+
blob: output,
|
|
129
|
+
width: plan.width,
|
|
130
|
+
height: plan.height,
|
|
131
|
+
type: output.type || plan.type,
|
|
132
|
+
sourceWidth: decoded.width,
|
|
133
|
+
sourceHeight: decoded.height,
|
|
134
|
+
crop: plan.source,
|
|
135
|
+
renderedInWorker,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
if (error instanceof ImageNormalizeError)
|
|
140
|
+
throw error;
|
|
141
|
+
throw new ImageNormalizeError('encode', translateText('The image could not be encoded'), { cause: error });
|
|
142
|
+
}
|
|
143
|
+
finally {
|
|
144
|
+
decoded.close();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
//# sourceMappingURL=normalizeImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeImage.js","sourceRoot":"","sources":["../../../src/logic/browser/normalizeImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAKL,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAM9B,oGAAoG;AACpG,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACnC,IAAI,CAA0B;IACvC,YAAY,IAA6B,EAAE,OAAe,EAAE,OAA6B;QACvF,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAc,EAAgC,EAAE,CAAC,KAAK,YAAY,mBAAmB,CAAC;AA0C5H,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAE7C,MAAM,WAAW,GAAG,CAAC,KAAe,EAAE,EAAE,CACtC,IAAI,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,gDAAgD,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;AAEhH,MAAM,gBAAgB,GAAG,CAAC,IAAU,EAAyB,EAAE,CAC7D,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAAM,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACtC,MAAM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MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,MAA2B,CAAC,CAAC;gBAC5E,MAAM,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;gBACjD,gBAAgB,GAAG,IAAI,CAAC;YAC1B,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,GAAG,IAAI,CAAC;YAChB,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM;YAAE,MAAM,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACxE,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI;YAC9B,WAAW,EAAE,OAAO,CAAC,KAAK;YAC1B,YAAY,EAAE,OAAO,CAAC,MAAM;YAC5B,IAAI,EAAE,IAAI,CAAC,MAAM;YACjB,gBAAgB;SACjB,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,mBAAmB;YAAE,MAAM,KAAK,CAAC;QACtD,MAAM,IAAI,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,gCAAgC,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7G,CAAC;YAAS,CAAC;QACT,OAAO,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;AACH,CAAC,CAAC"}
|
package/dist/logic/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export type { TranslatableLocale } from './pure/locales.js';
|
|
|
18
18
|
export { INTERACTIVE_SELECTOR } from './pure/rowActivation.js';
|
|
19
19
|
export { notify, setNotificationAdapter } from './pure/notify.js';
|
|
20
20
|
export type { NotificationAdapter, NotifyAction, NotifyOptions } from './pure/notify.js';
|
|
21
|
-
export { runSequential, runSequentialWithSummary } from './pure/runSequential.js';
|
|
22
|
-
export type { SequentialFailure, SequentialOutcome, SequentialSummaryLabels } from './pure/runSequential.js';
|
|
21
|
+
export { bulkOutcomeCounts, bulkSummaryText, runSequential, runSequentialWithSummary, skipSequential, summarizeSkipReasons, } from './pure/runSequential.js';
|
|
22
|
+
export type { BulkOutcomeCounts, SequentialFailure, SequentialOutcome, SequentialSkip, SequentialSkipMark, SequentialSummaryLabels, } from './pure/runSequential.js';
|
|
23
23
|
export { mediaItemValueSchema, propertyTranslationsSchema } from './pure/schemas.js';
|
|
24
24
|
export type { MediaItemValue } from './pure/schemas.js';
|
|
25
25
|
export { parseValidationErrors } from './pure/serverViolations.js';
|
|
@@ -30,12 +30,16 @@ export { formatListSort, nextListSort, parseListSort } from './pure/listSort.js'
|
|
|
30
30
|
export type { EntityListSort, ListSortCycle, ListSortDirection } from './pure/listSort.js';
|
|
31
31
|
export { computeListTracks, hasListTracks, LIST_COLUMN_MIN_WIDTH, LIST_PIN_MAX_VISIBLE_SHARE, LIST_PIN_MIN_OVERFLOW, listTrackTemplate, minimumListWidth, resolveListPins, shouldHonourStartPins, } from './pure/listTracks.js';
|
|
32
32
|
export type { ListColumnAlign, ListColumnPin, ListColumnWidth, ListPinLayout, ListPinMeasure, ListPinPlacement, ListPinRequest, ListTrack, ListTrackLayout, } from './pure/listTracks.js';
|
|
33
|
+
export { documentTitleParts, filterNavigation, findActiveNavigation, isNavigationGroup, isNavigationGroupActive, isNavigationLeafActive, normalisePathname, resolveCrumbs, resolveDocumentTitle, } from './pure/navigation.js';
|
|
34
|
+
export type { ActiveNavigation, CrumbLabel, CrumbParams, CrumbRoute, DocumentTitleOptions, NavigationAccess, NavigationGroup, NavigationIcon, NavigationItem, NavigationLeaf, ResolveCrumbsOptions, ResolvedCrumb, } from './pure/navigation.js';
|
|
33
35
|
export { narrowWriteAccess, WRITE_ACCESS_ALLOWED } from './pure/writeAccess.js';
|
|
34
36
|
export type { WriteAccess } from './pure/writeAccess.js';
|
|
35
37
|
export { toFormSubmitError } from './pure/submitError.js';
|
|
36
38
|
export type { FormSubmitError } from './pure/submitError.js';
|
|
37
39
|
export { blankTranslations, buildTranslationInfos, hydrateTranslations, mergeTranslatedStore, TRANSLATION_INFOS_OBJECT_TYPE, } from './pure/translationState.js';
|
|
38
40
|
export type { FieldTranslations, HydratedTranslations } from './pure/translationState.js';
|
|
41
|
+
export { injectEndpointsOnce, injectedHookName, staticMutationHook, staticQueryHook, toQueryString, trimApiPrefix, } from './pure/injectedApi.js';
|
|
42
|
+
export type { ApiMutationCall, ApiMutationHook, ApiMutationState, ApiQueryHook, ApiQueryOptions, ApiQueryResult, InjectableBaseApi, InjectedEndpointDefinition, InjectedRequest, InjectedTag, } from './pure/injectedApi.js';
|
|
39
43
|
export { LIST_STATE_DEBOUNCE_MS } from './pure/urlListState.js';
|
|
40
44
|
export type { UrlStateAdapter } from './pure/urlListState.js';
|
|
41
45
|
export { useCondition, useDisabledWhen, useRequiredWhen, useResetWhen, useVisibleWhen } from './react/conditionHooks.js';
|
|
@@ -66,10 +70,29 @@ export { UnsavedChangesContext, useUnsavedChangesBoundary, useUnsavedChangesGuar
|
|
|
66
70
|
export type { ConfirmFn, UnsavedChangesRegistry } from './react/useUnsavedChangesGuard.js';
|
|
67
71
|
export { useWriteAccess, WriteAccessContext, WriteAccessProvider } from './react/writeAccess.js';
|
|
68
72
|
export type { WriteAccessProviderProps } from './react/writeAccess.js';
|
|
73
|
+
export { useMemoryUrlState } from './react/useMemoryUrlState.js';
|
|
74
|
+
export { useOptimisticRowPatches } from './react/useOptimisticRowPatches.js';
|
|
75
|
+
export type { OptimisticRowPatches } from './react/useOptimisticRowPatches.js';
|
|
69
76
|
export { useUrlListState } from './react/useUrlListState.js';
|
|
70
77
|
export type { UrlListState, UseUrlListStateOptions } from './react/useUrlListState.js';
|
|
71
78
|
export { prepareImageFile } from './browser/prepareImageFile.js';
|
|
72
79
|
export type { PreparedImage } from './browser/prepareImageFile.js';
|
|
73
80
|
export { buildStorageKey, readStored, writeStored } from './browser/storage.js';
|
|
74
81
|
export type { StorageArea } from './browser/storage.js';
|
|
82
|
+
export { addCalendarDays, CUSTOM_DATE_RANGE_PRESET, DEFAULT_DATE_RANGE_PRESETS, dateRangePresetOf, localToday, resolveDateRangePreset, } from './pure/dateRangePresets.js';
|
|
83
|
+
export type { DateRange, DateRangePreset } from './pure/dateRangePresets.js';
|
|
84
|
+
export { isContentTrack, listTrackLayoutTemplate } from './pure/listTracks.js';
|
|
85
|
+
export { mergeLanguageTabs, translationLanguageOf } from './pure/locales.js';
|
|
86
|
+
export type { LanguageTabsOptions } from './pure/locales.js';
|
|
87
|
+
export { countCodePoints, overLimitKeys } from './pure/textLimits.js';
|
|
88
|
+
export type { TextCounter, TextLimits } from './pure/textLimits.js';
|
|
89
|
+
export { TextLimitsContext, useTextLimits } from './react/textLimits.js';
|
|
90
|
+
export { BREAKPOINT_QUERIES, useMediaQuery } from './react/useMediaQuery.js';
|
|
91
|
+
export type { BreakpointName } from './react/useMediaQuery.js';
|
|
92
|
+
export { chooseImageOutputType, cropHandleAt, cropRatioOf, fitImageSize, initialCrop, moveCrop, planImageNormalization, resizeCrop, roundCrop, zoomCrop, } from './pure/imageCrop.js';
|
|
93
|
+
export type { CropAspectOption, CropHandle, CropRect, ImageNormalizationPlan, ImageOutputType, ImageSizeLimits, PlanImageNormalizationOptions, ResizeCropOptions, } from './pure/imageCrop.js';
|
|
94
|
+
export { decodeImage, ImageNormalizeError, isImageNormalizeError, normalizeImage, renderNormalizedImage } from './browser/normalizeImage.js';
|
|
95
|
+
export type { DecodedImage, ImageNormalizeErrorCode, NormalizedImage, NormalizeImageOptions, NormalizeImageWorkerRunner, } from './browser/normalizeImage.js';
|
|
96
|
+
export { formatHexColor, normalizeColorValue, parseHexColor } from './pure/colorValue.js';
|
|
97
|
+
export type { ColorValueFormat, RgbaValue } from './pure/colorValue.js';
|
|
75
98
|
//# sourceMappingURL=index.d.ts.map
|
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O,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1F,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/logic/index.js
CHANGED
|
@@ -14,15 +14,17 @@ export { formValuesEqual, isBlankFormValue } from "./pure/formValues.js";
|
|
|
14
14
|
export { localeDisplayName, mergeLocaleKeys, toTranslatableLocale } from "./pure/locales.js";
|
|
15
15
|
export { INTERACTIVE_SELECTOR } from "./pure/rowActivation.js";
|
|
16
16
|
export { notify, setNotificationAdapter } from "./pure/notify.js";
|
|
17
|
-
export { runSequential, runSequentialWithSummary } from "./pure/runSequential.js";
|
|
17
|
+
export { bulkOutcomeCounts, bulkSummaryText, runSequential, runSequentialWithSummary, skipSequential, summarizeSkipReasons, } from "./pure/runSequential.js";
|
|
18
18
|
export { mediaItemValueSchema, propertyTranslationsSchema } from "./pure/schemas.js";
|
|
19
19
|
export { parseValidationErrors } from "./pure/serverViolations.js";
|
|
20
20
|
export { defineStatusMap } from "./pure/status.js";
|
|
21
21
|
export { formatListSort, nextListSort, parseListSort } from "./pure/listSort.js";
|
|
22
22
|
export { computeListTracks, hasListTracks, LIST_COLUMN_MIN_WIDTH, LIST_PIN_MAX_VISIBLE_SHARE, LIST_PIN_MIN_OVERFLOW, listTrackTemplate, minimumListWidth, resolveListPins, shouldHonourStartPins, } from "./pure/listTracks.js";
|
|
23
|
+
export { documentTitleParts, filterNavigation, findActiveNavigation, isNavigationGroup, isNavigationGroupActive, isNavigationLeafActive, normalisePathname, resolveCrumbs, resolveDocumentTitle, } from "./pure/navigation.js";
|
|
23
24
|
export { narrowWriteAccess, WRITE_ACCESS_ALLOWED } from "./pure/writeAccess.js";
|
|
24
25
|
export { toFormSubmitError } from "./pure/submitError.js";
|
|
25
26
|
export { blankTranslations, buildTranslationInfos, hydrateTranslations, mergeTranslatedStore, TRANSLATION_INFOS_OBJECT_TYPE, } from "./pure/translationState.js";
|
|
27
|
+
export { injectEndpointsOnce, injectedHookName, staticMutationHook, staticQueryHook, toQueryString, trimApiPrefix, } from "./pure/injectedApi.js";
|
|
26
28
|
export { LIST_STATE_DEBOUNCE_MS } from "./pure/urlListState.js";
|
|
27
29
|
// React
|
|
28
30
|
export { useCondition, useDisabledWhen, useRequiredWhen, useResetWhen, useVisibleWhen } from "./react/conditionHooks.js";
|
|
@@ -42,8 +44,20 @@ export { useRowSelection } from "./react/useRowSelection.js";
|
|
|
42
44
|
export { useTranslationRunner } from "./react/useTranslationRunner.js";
|
|
43
45
|
export { UnsavedChangesContext, useUnsavedChangesBoundary, useUnsavedChangesGuard } from "./react/useUnsavedChangesGuard.js";
|
|
44
46
|
export { useWriteAccess, WriteAccessContext, WriteAccessProvider } from "./react/writeAccess.js";
|
|
47
|
+
export { useMemoryUrlState } from "./react/useMemoryUrlState.js";
|
|
48
|
+
export { useOptimisticRowPatches } from "./react/useOptimisticRowPatches.js";
|
|
45
49
|
export { useUrlListState } from "./react/useUrlListState.js";
|
|
46
50
|
// Browser
|
|
47
51
|
export { prepareImageFile } from "./browser/prepareImageFile.js";
|
|
48
52
|
export { buildStorageKey, readStored, writeStored } from "./browser/storage.js";
|
|
53
|
+
// Lists, bulk runs, date ranges, translatable limits, images (0.2.0)
|
|
54
|
+
export { addCalendarDays, CUSTOM_DATE_RANGE_PRESET, DEFAULT_DATE_RANGE_PRESETS, dateRangePresetOf, localToday, resolveDateRangePreset, } from "./pure/dateRangePresets.js";
|
|
55
|
+
export { isContentTrack, listTrackLayoutTemplate } from "./pure/listTracks.js";
|
|
56
|
+
export { mergeLanguageTabs, translationLanguageOf } from "./pure/locales.js";
|
|
57
|
+
export { countCodePoints, overLimitKeys } from "./pure/textLimits.js";
|
|
58
|
+
export { TextLimitsContext, useTextLimits } from "./react/textLimits.js";
|
|
59
|
+
export { BREAKPOINT_QUERIES, useMediaQuery } from "./react/useMediaQuery.js";
|
|
60
|
+
export { chooseImageOutputType, cropHandleAt, cropRatioOf, fitImageSize, initialCrop, moveCrop, planImageNormalization, resizeCrop, roundCrop, zoomCrop, } from "./pure/imageCrop.js";
|
|
61
|
+
export { decodeImage, ImageNormalizeError, isImageNormalizeError, normalizeImage, renderNormalizedImage } from "./browser/normalizeImage.js";
|
|
62
|
+
export { formatHexColor, normalizeColorValue, parseHexColor } from "./pure/colorValue.js";
|
|
49
63
|
//# sourceMappingURL=index.js.map
|
package/dist/logic/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/logic/index.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,kHAAkH;AAClH,cAAc;AAEd,OAAO;AACP,OAAO,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,EACT,GAAG,EACH,YAAY,EACZ,SAAS,GACV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEzH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAGjF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAAE,oBAAoB,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