@alepha/ui 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -2
- package/dist/components/account/account-connections.d.ts.map +1 -1
- package/dist/components/account/account-connections.js +4 -1
- package/dist/components/account/account-connections.js.map +1 -1
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -1
- package/dist/components/account/account-delete-dialog.js +12 -15
- package/dist/components/account/account-delete-dialog.js.map +1 -1
- package/dist/components/account/account-keys.d.ts.map +1 -1
- package/dist/components/account/account-keys.js +22 -28
- package/dist/components/account/account-keys.js.map +1 -1
- package/dist/components/account/account-mfa-dialog.js +1 -4
- package/dist/components/account/account-mfa-dialog.js.map +1 -1
- package/dist/components/account/account-password-dialog.d.ts.map +1 -1
- package/dist/components/account/account-password-dialog.js +11 -14
- package/dist/components/account/account-password-dialog.js.map +1 -1
- package/dist/components/account/account-profile.js +3 -2
- package/dist/components/account/account-profile.js.map +1 -1
- package/dist/components/account/account-router-options.d.ts +38 -0
- package/dist/components/account/account-router-options.d.ts.map +1 -1
- package/dist/components/account/account-router-options.js.map +1 -1
- package/dist/components/account/account-router-page.d.ts +11 -1
- package/dist/components/account/account-router-page.d.ts.map +1 -1
- package/dist/components/account/account-router-page.js +11 -1
- package/dist/components/account/account-router-page.js.map +1 -1
- package/dist/components/account/account-router.d.ts +11 -0
- package/dist/components/account/account-router.d.ts.map +1 -1
- package/dist/components/account/account-router.js +16 -5
- package/dist/components/account/account-router.js.map +1 -1
- package/dist/components/admin/admin-audits.d.ts.map +1 -1
- package/dist/components/admin/admin-audits.js +91 -34
- package/dist/components/admin/admin-audits.js.map +1 -1
- package/dist/components/admin/admin-files.d.ts.map +1 -1
- package/dist/components/admin/admin-files.js +6 -17
- package/dist/components/admin/admin-files.js.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.js +39 -8
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-jobs-payload-dialog.d.ts +19 -0
- package/dist/components/admin/admin-jobs-payload-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-payload-dialog.js +33 -0
- package/dist/components/admin/admin-jobs-payload-dialog.js.map +1 -0
- package/dist/components/admin/admin-keys.d.ts.map +1 -1
- package/dist/components/admin/admin-keys.js +5 -4
- package/dist/components/admin/admin-keys.js.map +1 -1
- package/dist/components/admin/admin-notifications-channel-label.d.ts +14 -0
- package/dist/components/admin/admin-notifications-channel-label.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-channel-label.js +26 -0
- package/dist/components/admin/admin-notifications-channel-label.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications-preview-body.js +23 -13
- package/dist/components/admin/admin-notifications-preview-body.js.map +1 -1
- package/dist/components/admin/admin-notifications.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications.js +11 -12
- package/dist/components/admin/admin-notifications.js.map +1 -1
- package/dist/components/admin/admin-payments.d.ts.map +1 -1
- package/dist/components/admin/admin-payments.js +9 -7
- package/dist/components/admin/admin-payments.js.map +1 -1
- package/dist/components/admin/admin-router-options.d.ts +12 -0
- package/dist/components/admin/admin-router-options.d.ts.map +1 -1
- package/dist/components/admin/admin-router-options.js.map +1 -1
- package/dist/components/admin/admin-router.d.ts +5 -8
- package/dist/components/admin/admin-router.d.ts.map +1 -1
- package/dist/components/admin/admin-router.js +6 -29
- package/dist/components/admin/admin-router.js.map +1 -1
- package/dist/components/admin/admin-sessions.d.ts.map +1 -1
- package/dist/components/admin/admin-sessions.js +9 -7
- package/dist/components/admin/admin-sessions.js.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.js +5 -4
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js +7 -5
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail.js +3 -2
- package/dist/components/admin/admin-user-detail.js.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -1
- package/dist/components/admin/admin-users.d.ts.map +1 -1
- package/dist/components/admin/admin-users.js +6 -4
- package/dist/components/admin/admin-users.js.map +1 -1
- package/dist/components/admin/analytics/AnalyticsChartBars.js +2 -1
- package/dist/components/admin/analytics/AnalyticsChartBars.js.map +1 -1
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -1
- package/dist/components/admin/parameter-history-item.js +3 -2
- package/dist/components/admin/parameter-history-item.js.map +1 -1
- package/dist/components/alepha-table/alepha-table-bulk-menu.js +2 -1
- package/dist/components/alepha-table/alepha-table-bulk-menu.js.map +1 -1
- package/dist/components/alepha-table/alepha-table-filter-dialog.d.ts +60 -0
- package/dist/components/alepha-table/alepha-table-filter-dialog.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table-filter-dialog.js +88 -0
- package/dist/components/alepha-table/alepha-table-filter-dialog.js.map +1 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.d.ts +35 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.js +54 -0
- package/dist/components/alepha-table/alepha-table-filter-menu.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +188 -3
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -1
- package/dist/components/alepha-table/alepha-table.js +551 -162
- package/dist/components/alepha-table/alepha-table.js.map +1 -1
- package/dist/components/alepha-table/query-filters.d.ts +73 -0
- package/dist/components/alepha-table/query-filters.d.ts.map +1 -0
- package/dist/components/alepha-table/query-filters.js +118 -0
- package/dist/components/alepha-table/query-filters.js.map +1 -0
- package/dist/components/app-actions/app-actions.d.ts +21 -0
- package/dist/components/app-actions/app-actions.d.ts.map +1 -1
- package/dist/components/app-actions/app-actions.js +11 -5
- package/dist/components/app-actions/app-actions.js.map +1 -1
- package/dist/components/app-shell/app-shell.d.ts +45 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +119 -16
- package/dist/components/app-shell/app-shell.js.map +1 -1
- package/dist/components/auth/auth-register.js +31 -30
- package/dist/components/auth/auth-register.js.map +1 -1
- package/dist/components/auto-form/auto-form.d.ts.map +1 -1
- package/dist/components/auto-form/auto-form.js +68 -30
- package/dist/components/auto-form/auto-form.js.map +1 -1
- package/dist/components/button-dark/button-dark.d.ts.map +1 -1
- package/dist/components/button-dark/button-dark.js +39 -8
- package/dist/components/button-dark/button-dark.js.map +1 -1
- package/dist/components/button-inbox/button-inbox.d.ts +66 -0
- package/dist/components/button-inbox/button-inbox.d.ts.map +1 -0
- package/dist/components/button-inbox/button-inbox.js +167 -0
- package/dist/components/button-inbox/button-inbox.js.map +1 -0
- package/dist/components/button-inbox/inbox-unread-atom.d.ts +22 -0
- package/dist/components/button-inbox/inbox-unread-atom.d.ts.map +1 -0
- package/dist/components/button-inbox/inbox-unread-atom.js +29 -0
- package/dist/components/button-inbox/inbox-unread-atom.js.map +1 -0
- package/dist/components/button-theme/button-theme.d.ts +4 -3
- package/dist/components/button-theme/button-theme.d.ts.map +1 -1
- package/dist/components/button-theme/button-theme.js +8 -25
- package/dist/components/button-theme/button-theme.js.map +1 -1
- package/dist/components/button-user/button-user.d.ts +19 -0
- package/dist/components/button-user/button-user.d.ts.map +1 -1
- package/dist/components/button-user/button-user.js +1 -1
- package/dist/components/button-user/button-user.js.map +1 -1
- package/dist/components/control/control.d.ts +51 -0
- package/dist/components/control/control.d.ts.map +1 -1
- package/dist/components/control/control.js +49 -5
- package/dist/components/control/control.js.map +1 -1
- package/dist/components/control-array/control-array.js +2 -1
- package/dist/components/control-array/control-array.js.map +1 -1
- package/dist/components/control-date/control-date.d.ts +27 -0
- package/dist/components/control-date/control-date.d.ts.map +1 -1
- package/dist/components/control-date/control-date.js +15 -19
- package/dist/components/control-date/control-date.js.map +1 -1
- package/dist/components/control-date/date-only.d.ts +18 -0
- package/dist/components/control-date/date-only.d.ts.map +1 -0
- package/dist/components/control-date/date-only.js +29 -0
- package/dist/components/control-date/date-only.js.map +1 -0
- package/dist/components/control-date-range/control-date-range.d.ts +56 -0
- package/dist/components/control-date-range/control-date-range.d.ts.map +1 -0
- package/dist/components/control-date-range/control-date-range.js +148 -0
- package/dist/components/control-date-range/control-date-range.js.map +1 -0
- package/dist/components/control-object/control-object.js +2 -1
- package/dist/components/control-object/control-object.js.map +1 -1
- package/dist/components/control-select/control-select.d.ts.map +1 -1
- package/dist/components/control-select/control-select.js +177 -37
- package/dist/components/control-select/control-select.js.map +1 -1
- package/dist/components/control-upload/control-upload.d.ts.map +1 -1
- package/dist/components/control-upload/control-upload.js +1 -11
- package/dist/components/control-upload/control-upload.js.map +1 -1
- package/dist/components/detail/detail-aside.d.ts.map +1 -1
- package/dist/components/detail/detail-aside.js +4 -3
- package/dist/components/detail/detail-aside.js.map +1 -1
- package/dist/components/file-image/file-image.js +2 -1
- package/dist/components/file-image/file-image.js.map +1 -1
- package/dist/components/markdown-view/SpoilerSpan.d.ts +28 -0
- package/dist/components/markdown-view/SpoilerSpan.d.ts.map +1 -0
- package/dist/components/markdown-view/SpoilerSpan.js +53 -0
- package/dist/components/markdown-view/SpoilerSpan.js.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js +13 -23
- package/dist/components/markdown-view/diagram/layoutSequence.js.map +1 -1
- package/dist/components/markdown-view/diagram/textMetrics.js +2 -2
- package/dist/components/markdown-view/diagram/textMetrics.js.map +1 -1
- package/dist/components/markdown-view/markdown-view.css +44 -0
- package/dist/components/markdown-view/markdown-view.d.ts +12 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view/markdown-view.js +22 -1
- package/dist/components/markdown-view/markdown-view.js.map +1 -1
- package/dist/components/markdown-view/remarkSpoiler.d.ts +17 -0
- package/dist/components/markdown-view/remarkSpoiler.d.ts.map +1 -0
- package/dist/components/markdown-view/remarkSpoiler.js +117 -0
- package/dist/components/markdown-view/remarkSpoiler.js.map +1 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.d.ts +34 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.d.ts.map +1 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.js +109 -0
- package/dist/components/permission-matrix/permission-matrix-group-rows.js.map +1 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +145 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts.map +1 -0
- package/dist/components/permission-matrix/permission-matrix.js +113 -0
- package/dist/components/permission-matrix/permission-matrix.js.map +1 -0
- package/dist/components/plate-layout/plate-layout.d.ts +5 -0
- package/dist/components/plate-layout/plate-layout.d.ts.map +1 -1
- package/dist/components/plate-layout/plate-layout.js +2 -1
- package/dist/components/plate-layout/plate-layout.js.map +1 -1
- package/dist/components/plate-layout/plate-tab-bar.d.ts +10 -0
- package/dist/components/plate-layout/plate-tab-bar.d.ts.map +1 -1
- package/dist/components/plate-layout/plate-tab-bar.js +1 -1
- package/dist/components/plate-layout/plate-tab-bar.js.map +1 -1
- package/dist/components/settings/settings-nav.js +2 -1
- package/dist/components/settings/settings-nav.js.map +1 -1
- package/dist/components/time-ago/time-ago.d.ts +57 -0
- package/dist/components/time-ago/time-ago.d.ts.map +1 -0
- package/dist/components/time-ago/time-ago.js +60 -0
- package/dist/components/time-ago/time-ago.js.map +1 -0
- package/dist/components/tree-view/tree-model.d.ts +128 -0
- package/dist/components/tree-view/tree-model.d.ts.map +1 -0
- package/dist/components/tree-view/tree-model.js +226 -0
- package/dist/components/tree-view/tree-model.js.map +1 -0
- package/dist/components/tree-view/tree-view-rename-input.d.ts +31 -0
- package/dist/components/tree-view/tree-view-rename-input.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view-rename-input.js +68 -0
- package/dist/components/tree-view/tree-view-rename-input.js.map +1 -0
- package/dist/components/tree-view/tree-view-resizer.d.ts +38 -0
- package/dist/components/tree-view/tree-view-resizer.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view-resizer.js +73 -0
- package/dist/components/tree-view/tree-view-resizer.js.map +1 -0
- package/dist/components/tree-view/tree-view-row.d.ts +177 -0
- package/dist/components/tree-view/tree-view-row.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view-row.js +241 -0
- package/dist/components/tree-view/tree-view-row.js.map +1 -0
- package/dist/components/tree-view/tree-view.d.ts +186 -0
- package/dist/components/tree-view/tree-view.d.ts.map +1 -0
- package/dist/components/tree-view/tree-view.js +112 -0
- package/dist/components/tree-view/tree-view.js.map +1 -0
- package/dist/components/tree-view/use-tree-state.d.ts +79 -0
- package/dist/components/tree-view/use-tree-state.d.ts.map +1 -0
- package/dist/components/tree-view/use-tree-state.js +93 -0
- package/dist/components/tree-view/use-tree-state.js.map +1 -0
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/select.d.ts +7 -0
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +7 -0
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/lib/i18n-fr.d.ts.map +1 -1
- package/dist/lib/i18n-fr.js +31 -47
- package/dist/lib/i18n-fr.js.map +1 -1
- package/dist/lib/utils.d.ts +22 -2
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +29 -5
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles.css +255 -0
- package/package.json +13 -14
- package/src/components/account/__tests__/account-router.spec.ts +95 -0
- package/src/components/account/account-connections.tsx +14 -1
- package/src/components/account/account-delete-dialog.tsx +3 -2
- package/src/components/account/account-keys.tsx +11 -4
- package/src/components/account/account-mfa-dialog.tsx +1 -1
- package/src/components/account/account-password-dialog.tsx +3 -2
- package/src/components/account/account-profile.tsx +1 -1
- package/src/components/account/account-router-options.tsx +45 -0
- package/src/components/account/account-router-page.tsx +11 -1
- package/src/components/account/account-router.tsx +23 -6
- package/src/components/admin/__tests__/admin-jobs-payload-dialog.browser.spec.tsx +68 -0
- package/src/components/admin/__tests__/admin-notifications-preview-body.browser.spec.tsx +20 -4
- package/src/components/admin/__tests__/admin-status-labels.browser.spec.tsx +0 -31
- package/src/components/admin/admin-audits.tsx +99 -5
- package/src/components/admin/admin-files.tsx +7 -16
- package/src/components/admin/admin-jobs-executions-panel.tsx +152 -114
- package/src/components/admin/admin-jobs-payload-dialog.tsx +57 -0
- package/src/components/admin/admin-keys.tsx +7 -4
- package/src/components/admin/admin-notifications-channel-label.ts +18 -0
- package/src/components/admin/admin-notifications-preview-body.tsx +7 -2
- package/src/components/admin/admin-notifications.tsx +19 -8
- package/src/components/admin/admin-payments.tsx +7 -4
- package/src/components/admin/admin-router-options.tsx +12 -0
- package/src/components/admin/admin-router.tsx +5 -27
- package/src/components/admin/admin-sessions.tsx +10 -6
- package/src/components/admin/admin-user-detail-audits-tab.tsx +7 -4
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +7 -4
- package/src/components/admin/admin-users-roles-picker.tsx +4 -0
- package/src/components/admin/admin-users.tsx +6 -3
- package/src/components/admin/parameter-history-item.tsx +4 -2
- package/src/components/alepha-table/__tests__/alepha-table-default-hidden.browser.spec.tsx +108 -0
- package/src/components/alepha-table/__tests__/alepha-table-empty-state.browser.spec.tsx +233 -0
- package/src/components/alepha-table/__tests__/alepha-table-persist-facets.browser.spec.tsx +177 -0
- package/src/components/alepha-table/__tests__/alepha-table-persisted-filters.browser.spec.tsx +182 -0
- package/src/components/alepha-table/__tests__/alepha-table-query-seed.browser.spec.tsx +170 -0
- package/src/components/alepha-table/__tests__/alepha-table-row-action-checked.browser.spec.tsx +210 -0
- package/src/components/alepha-table/__tests__/alepha-table-row-action-group.browser.spec.tsx +202 -0
- package/src/components/alepha-table/__tests__/alepha-table-scope.browser.spec.tsx +161 -0
- package/src/components/alepha-table/__tests__/alepha-table-share-filters.browser.spec.tsx +309 -0
- package/src/components/alepha-table/__tests__/query-filters.spec.ts +212 -0
- package/src/components/alepha-table/alepha-table-filter-dialog.tsx +162 -0
- package/src/components/alepha-table/alepha-table-filter-menu.tsx +77 -0
- package/src/components/alepha-table/alepha-table.tsx +1113 -207
- package/src/components/alepha-table/query-filters.ts +159 -0
- package/src/components/app-actions/app-actions.tsx +32 -3
- package/src/components/app-shell/__tests__/sidebar-nav-accordion.browser.spec.tsx +163 -0
- package/src/components/app-shell/app-shell.tsx +255 -12
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +1 -1
- package/src/components/auto-form/auto-form.tsx +98 -30
- package/src/components/button-dark/button-dark.tsx +47 -8
- package/src/components/button-inbox/__tests__/button-inbox.browser.spec.tsx +247 -0
- package/src/components/button-inbox/button-inbox.tsx +303 -0
- package/src/components/button-inbox/inbox-unread-atom.ts +27 -0
- package/src/components/button-theme/button-theme.tsx +16 -29
- package/src/components/button-user/__tests__/button-user-avatar.browser.spec.tsx +88 -0
- package/src/components/button-user/button-user.tsx +24 -1
- package/src/components/control/__tests__/control-date-range.browser.spec.tsx +177 -0
- package/src/components/control/control.tsx +119 -12
- package/src/components/control-date/control-date.tsx +117 -22
- package/src/components/control-date/date-only.ts +26 -0
- package/src/components/control-date-range/control-date-range.tsx +250 -0
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +129 -15
- package/src/components/control-select/__tests__/control-select-deselect.browser.spec.tsx +27 -6
- package/src/components/control-select/__tests__/control-select-multi.browser.spec.tsx +204 -1
- package/src/components/control-select/__tests__/control-select-size-minimal.browser.spec.tsx +77 -1
- package/src/components/control-select/control-select.tsx +317 -83
- package/src/components/control-upload/control-upload.tsx +1 -10
- package/src/components/detail/detail-aside.tsx +30 -6
- package/src/components/markdown-view/SpoilerSpan.tsx +66 -0
- package/src/components/markdown-view/__tests__/markdown-view-spoiler.browser.spec.tsx +165 -0
- package/src/components/markdown-view/diagram/textMetrics.spec.ts +1 -1
- package/src/components/markdown-view/diagram/textMetrics.ts +2 -2
- package/src/components/markdown-view/markdown-view.css +44 -0
- package/src/components/markdown-view/markdown-view.tsx +37 -1
- package/src/components/markdown-view/remarkSpoiler.ts +150 -0
- package/src/components/permission-matrix/__tests__/permission-matrix.browser.spec.tsx +237 -0
- package/src/components/permission-matrix/permission-matrix-group-rows.tsx +240 -0
- package/src/components/permission-matrix/permission-matrix.tsx +286 -0
- package/src/components/plate-layout/__tests__/plate-layout.browser.spec.tsx +22 -0
- package/src/components/plate-layout/plate-layout.tsx +6 -0
- package/src/components/plate-layout/plate-tab-bar.tsx +27 -1
- package/src/components/time-ago/time-ago.browser.spec.tsx +110 -0
- package/src/components/time-ago/time-ago.tsx +80 -0
- package/src/components/tree-view/__tests__/tree-model.spec.ts +441 -0
- package/src/components/tree-view/__tests__/tree-view-drag.browser.spec.tsx +295 -0
- package/src/components/tree-view/__tests__/tree-view-rename.browser.spec.tsx +278 -0
- package/src/components/tree-view/__tests__/tree-view-resizer.browser.spec.tsx +112 -0
- package/src/components/tree-view/__tests__/tree-view.browser.spec.tsx +260 -0
- package/src/components/tree-view/__tests__/use-tree-state.browser.spec.tsx +238 -0
- package/src/components/tree-view/tree-model.ts +369 -0
- package/src/components/tree-view/tree-view-rename-input.tsx +95 -0
- package/src/components/tree-view/tree-view-resizer.tsx +83 -0
- package/src/components/tree-view/tree-view-row.tsx +414 -0
- package/src/components/tree-view/tree-view.tsx +300 -0
- package/src/components/tree-view/use-tree-state.ts +184 -0
- package/src/components/ui/button.tsx +79 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/select.tsx +7 -0
- package/src/components/ui/table.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/lib/i18n-fr.ts +34 -51
- package/src/lib/utils.ts +32 -4
- package/src/styles.css +255 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +0 -11
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-execution-sheet.js +0 -190
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +0 -1
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +0 -9
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-executions-panel.js +0 -121
- package/dist/components/admin/admin-workflows-executions-panel.js.map +0 -1
- package/dist/components/admin/admin-workflows-status-badge.d.ts +0 -12
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-status-badge.js +0 -30
- package/dist/components/admin/admin-workflows-status-badge.js.map +0 -1
- package/dist/components/admin/admin-workflows-status-labels.d.ts +0 -19
- package/dist/components/admin/admin-workflows-status-labels.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows-status-labels.js +0 -48
- package/dist/components/admin/admin-workflows-status-labels.js.map +0 -1
- package/dist/components/admin/admin-workflows.d.ts +0 -4
- package/dist/components/admin/admin-workflows.d.ts.map +0 -1
- package/dist/components/admin/admin-workflows.js +0 -145
- package/dist/components/admin/admin-workflows.js.map +0 -1
- package/src/components/admin/admin-workflows-execution-sheet.tsx +0 -285
- package/src/components/admin/admin-workflows-executions-panel.tsx +0 -169
- package/src/components/admin/admin-workflows-status-badge.tsx +0 -41
- package/src/components/admin/admin-workflows-status-labels.ts +0 -51
- package/src/components/admin/admin-workflows.tsx +0 -209
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface AlephaTableFilterMenuProps {
|
|
2
|
+
/**
|
|
3
|
+
* How many filters currently narrow the list. Gates both items: neither
|
|
4
|
+
* sharing nor clearing means anything with nothing set.
|
|
5
|
+
*
|
|
6
|
+
* It is deliberately NOT drawn on the trigger, unlike
|
|
7
|
+
* {@link AlephaTableFilterDialog}'s. That dialog badges its trigger because
|
|
8
|
+
* the filter bar is not on screen behind it; out here the bar IS the
|
|
9
|
+
* indicator, holding the values themselves a few pixels to the left, so a
|
|
10
|
+
* count beside it says the same thing twice and reads as a notification.
|
|
11
|
+
*/
|
|
12
|
+
activeCount: number;
|
|
13
|
+
onShare: () => void;
|
|
14
|
+
onReset: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The filter menu in the toolbar, on anything wider than a phone.
|
|
18
|
+
*
|
|
19
|
+
* It replaces the bare "Reset filters" icon button, for two reasons that
|
|
20
|
+
* arrived together:
|
|
21
|
+
*
|
|
22
|
+
* - **Share needed somewhere to live.** A filtered table is a view worth
|
|
23
|
+
* sending to someone, and the address bar cannot carry it: the filters are
|
|
24
|
+
* never written back to the URL (see `fromQuery`, and Lore incident #156).
|
|
25
|
+
* So the link has to be something the reader asks for, which means an item
|
|
26
|
+
* in a menu rather than a bar that writes as you type.
|
|
27
|
+
* - **Clear belongs beside it.** The two are one decision - this view, kept
|
|
28
|
+
* or dropped - and a menu is where a reader looks for both.
|
|
29
|
+
*
|
|
30
|
+
* The same `Funnel` icon as {@link AlephaTableFilterDialog}, on purpose: one
|
|
31
|
+
* affordance for filters, whatever the width. Not its badge, though - see
|
|
32
|
+
* `activeCount` for why the count stops at the phone.
|
|
33
|
+
*/
|
|
34
|
+
export declare const AlephaTableFilterMenu: (props: AlephaTableFilterMenuProps) => import("react").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=alepha-table-filter-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alepha-table-filter-menu.d.ts","sourceRoot":"","sources":["../../../src/components/alepha-table/alepha-table-filter-menu.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,0BAA0B;IACzC;;;;;;;;;OASG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,UAAW,0BAA0B,gCAgCtE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Button } from "../ui/button.js";
|
|
2
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Funnel, FunnelX, Share2 } from "lucide-react";
|
|
5
|
+
import { useI18n } from "alepha/react/i18n";
|
|
6
|
+
//#region src/components/alepha-table/alepha-table-filter-menu.tsx
|
|
7
|
+
/**
|
|
8
|
+
* The filter menu in the toolbar, on anything wider than a phone.
|
|
9
|
+
*
|
|
10
|
+
* It replaces the bare "Reset filters" icon button, for two reasons that
|
|
11
|
+
* arrived together:
|
|
12
|
+
*
|
|
13
|
+
* - **Share needed somewhere to live.** A filtered table is a view worth
|
|
14
|
+
* sending to someone, and the address bar cannot carry it: the filters are
|
|
15
|
+
* never written back to the URL (see `fromQuery`, and Lore incident #156).
|
|
16
|
+
* So the link has to be something the reader asks for, which means an item
|
|
17
|
+
* in a menu rather than a bar that writes as you type.
|
|
18
|
+
* - **Clear belongs beside it.** The two are one decision - this view, kept
|
|
19
|
+
* or dropped - and a menu is where a reader looks for both.
|
|
20
|
+
*
|
|
21
|
+
* The same `Funnel` icon as {@link AlephaTableFilterDialog}, on purpose: one
|
|
22
|
+
* affordance for filters, whatever the width. Not its badge, though - see
|
|
23
|
+
* `activeCount` for why the count stops at the phone.
|
|
24
|
+
*/
|
|
25
|
+
const AlephaTableFilterMenu = (props) => {
|
|
26
|
+
const { tr } = useI18n();
|
|
27
|
+
const label = tr("alephaTable.filters", { default: "Filters" });
|
|
28
|
+
const idle = props.activeCount === 0;
|
|
29
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
30
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
31
|
+
type: "button",
|
|
32
|
+
size: "sm",
|
|
33
|
+
variant: "ghost",
|
|
34
|
+
className: "h-9 w-9 p-0",
|
|
35
|
+
"aria-label": label
|
|
36
|
+
}),
|
|
37
|
+
children: /* @__PURE__ */ jsx(Funnel, { className: "size-4" })
|
|
38
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
39
|
+
align: "end",
|
|
40
|
+
children: [/* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
41
|
+
disabled: idle,
|
|
42
|
+
onClick: props.onShare,
|
|
43
|
+
children: [/* @__PURE__ */ jsx(Share2, { className: "size-4" }), tr("alephaTable.shareFilters", { default: "Share filters" })]
|
|
44
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
45
|
+
disabled: idle,
|
|
46
|
+
onClick: props.onReset,
|
|
47
|
+
children: [/* @__PURE__ */ jsx(FunnelX, { className: "size-4" }), tr("alephaTable.resetFilters", { default: "Reset filters" })]
|
|
48
|
+
})]
|
|
49
|
+
})] });
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { AlephaTableFilterMenu };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=alepha-table-filter-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alepha-table-filter-menu.js","names":[],"sources":["../../../src/components/alepha-table/alepha-table-filter-menu.tsx"],"sourcesContent":["import { Button } from \"@alepha/ui/components/ui/button\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@alepha/ui/components/ui/dropdown-menu\";\nimport { useI18n } from \"alepha/react/i18n\";\nimport { Funnel, FunnelX, Share2 } from \"lucide-react\";\n\nexport interface AlephaTableFilterMenuProps {\n /**\n * How many filters currently narrow the list. Gates both items: neither\n * sharing nor clearing means anything with nothing set.\n *\n * It is deliberately NOT drawn on the trigger, unlike\n * {@link AlephaTableFilterDialog}'s. That dialog badges its trigger because\n * the filter bar is not on screen behind it; out here the bar IS the\n * indicator, holding the values themselves a few pixels to the left, so a\n * count beside it says the same thing twice and reads as a notification.\n */\n activeCount: number;\n onShare: () => void;\n onReset: () => void;\n}\n\n/**\n * The filter menu in the toolbar, on anything wider than a phone.\n *\n * It replaces the bare \"Reset filters\" icon button, for two reasons that\n * arrived together:\n *\n * - **Share needed somewhere to live.** A filtered table is a view worth\n * sending to someone, and the address bar cannot carry it: the filters are\n * never written back to the URL (see `fromQuery`, and Lore incident #156).\n * So the link has to be something the reader asks for, which means an item\n * in a menu rather than a bar that writes as you type.\n * - **Clear belongs beside it.** The two are one decision - this view, kept\n * or dropped - and a menu is where a reader looks for both.\n *\n * The same `Funnel` icon as {@link AlephaTableFilterDialog}, on purpose: one\n * affordance for filters, whatever the width. Not its badge, though - see\n * `activeCount` for why the count stops at the phone.\n */\nexport const AlephaTableFilterMenu = (props: AlephaTableFilterMenuProps) => {\n const { tr } = useI18n();\n const label = tr(\"alephaTable.filters\", { default: \"Filters\" });\n const idle = props.activeCount === 0;\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"ghost\"\n className=\"h-9 w-9 p-0\"\n aria-label={label}\n />\n }\n >\n <Funnel className=\"size-4\" />\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n <DropdownMenuItem disabled={idle} onClick={props.onShare}>\n <Share2 className=\"size-4\" />\n {tr(\"alephaTable.shareFilters\", { default: \"Share filters\" })}\n </DropdownMenuItem>\n <DropdownMenuItem disabled={idle} onClick={props.onReset}>\n <FunnelX className=\"size-4\" />\n {tr(\"alephaTable.resetFilters\", { default: \"Reset filters\" })}\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAa,yBAAyB,UAAsC;CAC1E,MAAM,EAAE,OAAO,QAAQ;CACvB,MAAM,QAAQ,GAAG,uBAAuB,EAAE,SAAS,UAAU,CAAC;CAC9D,MAAM,OAAO,MAAM,gBAAgB;CAEnC,OACE,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,qBAAD;EACE,QACE,oBAAC,QAAD;GACE,MAAK;GACL,MAAK;GACL,SAAQ;GACR,WAAU;GACV,cAAY;EACb,CAAA;EAGH,UAAA,oBAAC,QAAD,EAAQ,WAAU,SAAU,CAAA;CACT,CAAA,GACrB,qBAAC,qBAAD;EAAqB,OAAM;EAA3B,UAAA,CACE,qBAAC,kBAAD;GAAkB,UAAU;GAAM,SAAS,MAAM;GAAjD,UAAA,CACE,oBAAC,QAAD,EAAQ,WAAU,SAAU,CAAA,GAC3B,GAAG,4BAA4B,EAAE,SAAS,gBAAgB,CAAC,CAC5C;EAClB,CAAA,GAAA,qBAAC,kBAAD;GAAkB,UAAU;GAAM,SAAS,MAAM;GAAjD,UAAA,CACE,oBAAC,SAAD,EAAS,WAAU,SAAU,CAAA,GAC5B,GAAG,4BAA4B,EAAE,SAAS,gBAAgB,CAAC,CAC5C;EACC,CAAA,CAAA;CACT,CAAA,CAAA,EAAA,CAAA;AAElB"}
|
|
@@ -47,7 +47,41 @@ export interface RowAction<T> {
|
|
|
47
47
|
onClick: (item: T, ctx: RowActionContext) => void | Promise<void>;
|
|
48
48
|
destructive?: boolean;
|
|
49
49
|
disabled?: (item: T) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether this entry is the row's current value, for a group that picks
|
|
52
|
+
* one of several - which release the row ships in, which area it sits in.
|
|
53
|
+
* Declaring it renders the entry as a checkbox item, so the check mark and
|
|
54
|
+
* the `aria-checked` both come from the primitive rather than from a
|
|
55
|
+
* marker glued into the label.
|
|
56
|
+
*
|
|
57
|
+
* ⚠️ Omitting it is not the same as returning false. An entry with no
|
|
58
|
+
* `checked` stays an ordinary `menuitem`; one that returns false is a
|
|
59
|
+
* `menuitemcheckbox` that happens to be unchecked, which is what a query
|
|
60
|
+
* by role has to account for.
|
|
61
|
+
*
|
|
62
|
+
* `destructive` is ignored on a checked entry: nothing that picks a value
|
|
63
|
+
* out of a list is also a delete.
|
|
64
|
+
*/
|
|
65
|
+
checked?: (item: T) => boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A row action that is a submenu: a label, an icon, and the actions it
|
|
69
|
+
* holds. One level only: a group's children are actions, never groups.
|
|
70
|
+
*
|
|
71
|
+
* The discriminant is the presence of `children`, so every caller that
|
|
72
|
+
* returns a plain `RowAction[]` keeps compiling unchanged.
|
|
73
|
+
*
|
|
74
|
+
* ⚠️ A group with no children renders nothing, and does not count towards
|
|
75
|
+
* the row menu existing at all: a row whose only entry is an empty group
|
|
76
|
+
* gets no three-dots trigger. That lets a caller build `children`
|
|
77
|
+
* conditionally without checking whether anything survived.
|
|
78
|
+
*/
|
|
79
|
+
export interface RowActionGroup<T> {
|
|
80
|
+
label: string;
|
|
81
|
+
icon?: IconType;
|
|
82
|
+
children: RowAction<T>[];
|
|
50
83
|
}
|
|
84
|
+
export type RowActionEntry<T> = RowAction<T> | RowActionGroup<T>;
|
|
51
85
|
/**
|
|
52
86
|
* Context passed to every bulk-action `onClick`. `clearSelection()`
|
|
53
87
|
* empties the checkbox set; `refresh()` re-fires the current fetch.
|
|
@@ -159,6 +193,74 @@ export interface TableAction {
|
|
|
159
193
|
*/
|
|
160
194
|
primary?: boolean;
|
|
161
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* One of the table's two empty states: an icon, a title and a description,
|
|
198
|
+
* centred in the body.
|
|
199
|
+
*
|
|
200
|
+
* Which one is shown is decided by the table, not the caller: a page that
|
|
201
|
+
* came back empty with no filter set means "there is nothing here", and the
|
|
202
|
+
* same page with a filter set means "nothing matched". Those ask the reader
|
|
203
|
+
* for opposite things - create something, or widen the filter - so one
|
|
204
|
+
* sentence for both sends half of them the wrong way. Override the wording
|
|
205
|
+
* per mode, never the choice between them.
|
|
206
|
+
*/
|
|
207
|
+
export interface AlephaTableEmptyState {
|
|
208
|
+
icon?: IconType;
|
|
209
|
+
title?: ReactNode;
|
|
210
|
+
description?: ReactNode;
|
|
211
|
+
/**
|
|
212
|
+
* A call to action under the description, typically one `<Button>`.
|
|
213
|
+
*
|
|
214
|
+
* A slot rather than a `{ label, onClick }` pair, because the button an
|
|
215
|
+
* empty state wants is rarely just a button: it opens a dialog, it is a
|
|
216
|
+
* `<Link>`, it is disabled while a permission is loading. The table owns the
|
|
217
|
+
* layout and centring and nothing else.
|
|
218
|
+
*
|
|
219
|
+
* Most useful on {@link AlephaTableBaseProps.emptyState}, where "there is
|
|
220
|
+
* nothing here" has an obvious answer - create the first one. The no-match
|
|
221
|
+
* side takes it too, for a "Clear filters" button.
|
|
222
|
+
*/
|
|
223
|
+
action?: ReactNode;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Which of the preferences {@link AlephaTableBaseProps.persistenceKey} stores
|
|
227
|
+
* are actually stored.
|
|
228
|
+
*
|
|
229
|
+
* Every facet defaults to ON, so a table that sets a key and nothing else
|
|
230
|
+
* behaves exactly as it always has. Only name the ones you want OFF.
|
|
231
|
+
*
|
|
232
|
+
* The facets are genuinely different kinds of preference, which is why one
|
|
233
|
+
* switch over all three was the wrong shape. Column layout and sort are what
|
|
234
|
+
* a reader arranged and expects to find again; a filter is what they were
|
|
235
|
+
* looking for last time, and restoring it opens the page narrowed by a
|
|
236
|
+
* question they have already answered - the hazard
|
|
237
|
+
* {@link AlephaTableFilters.seedValues} names as "landing on last week's
|
|
238
|
+
* stored filter".
|
|
239
|
+
*
|
|
240
|
+
* ⚠️ The footer's page SIZE is not one of these and is always stored with the
|
|
241
|
+
* key. It is a fourth thing, nothing has asked to separate it, and leaving it
|
|
242
|
+
* alone is what keeps this addition invisible to every existing caller.
|
|
243
|
+
*
|
|
244
|
+
* ⚠️ Read where `persistenceKey` is, so treat it as static per call site.
|
|
245
|
+
* Turning a facet off does not delete what it previously wrote: the stored
|
|
246
|
+
* value is simply never read again, because writing on mount is the bug the
|
|
247
|
+
* column and filter effects exist to avoid.
|
|
248
|
+
*/
|
|
249
|
+
export interface AlephaTablePersistedFacets {
|
|
250
|
+
/**
|
|
251
|
+
* The filter form's values. Off means the table opens unfiltered every
|
|
252
|
+
* time, whatever the reader last typed.
|
|
253
|
+
*/
|
|
254
|
+
filters?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Which columns are visible, and in what order.
|
|
257
|
+
*/
|
|
258
|
+
columns?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* The sorted column and its direction.
|
|
261
|
+
*/
|
|
262
|
+
sort?: boolean;
|
|
263
|
+
}
|
|
162
264
|
/**
|
|
163
265
|
* High-level filter slot. AlephaTable creates the `useForm` internally,
|
|
164
266
|
* wraps `render`'s output in a `<form>` element, persists values under
|
|
@@ -192,6 +294,32 @@ export interface AlephaTableFilters {
|
|
|
192
294
|
* the right moment for it: that is the reader choosing.
|
|
193
295
|
*/
|
|
194
296
|
seedValues?: Record<string, any>;
|
|
297
|
+
/**
|
|
298
|
+
* Fill the filters from the URL query on arrival.
|
|
299
|
+
*
|
|
300
|
+
* `true` reads every param whose name matches a key of `schema`; an array
|
|
301
|
+
* narrows that to the keys it names. Params the schema does not declare are
|
|
302
|
+
* ignored, so the page keeps owning its own (`?tab=`, a locale, a tracking
|
|
303
|
+
* param). Multi-value filters are comma-joined: `?status=new,triaged`.
|
|
304
|
+
*
|
|
305
|
+
* Read once, at mount, and landed in the same slot as {@link seedValues} —
|
|
306
|
+
* above the reader's stored filters, below an explicit `seedValues` the
|
|
307
|
+
* caller passes for a case of its own.
|
|
308
|
+
*
|
|
309
|
+
* ⚠️ **One-directional, and it has to stay that way.** The URL seeds the
|
|
310
|
+
* filters; the filters NEVER write back. Lore's `?view=kanban` was removed
|
|
311
|
+
* for exactly this (#156): an effect that restored a missing param keyed on
|
|
312
|
+
* the router state, which is a global store, so the render on the way *out*
|
|
313
|
+
* of the page saw the next route's query and bounced the reader straight
|
|
314
|
+
* back. A page cannot tell "nobody has chosen yet" from "we are leaving"
|
|
315
|
+
* while the state lives in the URL. The toolbar's Share item is the write
|
|
316
|
+
* side, and it writes to the clipboard on a click, never to the address bar
|
|
317
|
+
* on a keystroke.
|
|
318
|
+
*
|
|
319
|
+
* Off by default. A page's query params are not its table's filters until
|
|
320
|
+
* the page says so.
|
|
321
|
+
*/
|
|
322
|
+
fromQuery?: boolean | readonly string[];
|
|
195
323
|
render: (form: FormModel<ZObject>) => ReactNode;
|
|
196
324
|
}
|
|
197
325
|
interface SortState {
|
|
@@ -300,8 +428,11 @@ export interface AlephaTableBaseProps<T> {
|
|
|
300
428
|
/**
|
|
301
429
|
* Per-row action menu builder. Return an array of `RowAction` per
|
|
302
430
|
* item. Each `onClick` receives `(item, { refresh })`.
|
|
431
|
+
*
|
|
432
|
+
* An entry may also be a {@link RowActionGroup}: a label, an icon and
|
|
433
|
+
* the actions it holds, rendered as a submenu one level deep.
|
|
303
434
|
*/
|
|
304
|
-
rowActions?: (item: T) =>
|
|
435
|
+
rowActions?: (item: T) => RowActionEntry<T>[];
|
|
305
436
|
/**
|
|
306
437
|
* Actions applied to selected rows (enables checkbox column). A
|
|
307
438
|
* {@link BulkAction} is a button whose `onClick` receives
|
|
@@ -369,8 +500,22 @@ export interface AlephaTableBaseProps<T> {
|
|
|
369
500
|
* persisted to `localStorage` under this key. Pick a key that's
|
|
370
501
|
* unique per page and per scope (e.g. `"admin.users"`,
|
|
371
502
|
* `\`lor.board.${campaignId}\``).
|
|
503
|
+
*
|
|
504
|
+
* Narrow what it stores with {@link persist}.
|
|
372
505
|
*/
|
|
373
506
|
persistenceKey?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Which facets {@link persistenceKey} stores. All three by default, so this
|
|
509
|
+
* is only ever worth passing to turn one OFF.
|
|
510
|
+
*
|
|
511
|
+
* The case it exists for: a list whose column layout is worth remembering
|
|
512
|
+
* and whose filters are not. Lore's Apps page had to give up persistence
|
|
513
|
+
* entirely to avoid opening narrowed by last week's search, because the
|
|
514
|
+
* three were one switch.
|
|
515
|
+
*
|
|
516
|
+
* Ignored without a `persistenceKey`, which stores nothing either way.
|
|
517
|
+
*/
|
|
518
|
+
persist?: AlephaTablePersistedFacets;
|
|
374
519
|
/**
|
|
375
520
|
* Hide the built-in column visibility dropdown in the toolbar.
|
|
376
521
|
*/
|
|
@@ -404,12 +549,52 @@ export interface AlephaTableBaseProps<T> {
|
|
|
404
549
|
*/
|
|
405
550
|
className?: string;
|
|
406
551
|
/**
|
|
407
|
-
*
|
|
552
|
+
* Title shown in both empty states, replacing their defaults.
|
|
553
|
+
*
|
|
554
|
+
* Kept as the one-line escape hatch it has always been, so it also
|
|
555
|
+
* suppresses the default description: a caller who wrote the whole message
|
|
556
|
+
* in here does not want "Nothing here yet." underneath it. For a title AND
|
|
557
|
+
* a description, or for wording that differs between the two states, use
|
|
558
|
+
* {@link emptyState} and {@link noMatchState}.
|
|
408
559
|
*/
|
|
409
560
|
emptyMessage?: string;
|
|
561
|
+
/**
|
|
562
|
+
* The empty state shown when the page came back empty and NO filter is set.
|
|
563
|
+
* Defaults to an inbox icon, "No items" and "Nothing here yet.".
|
|
564
|
+
*/
|
|
565
|
+
emptyState?: AlephaTableEmptyState;
|
|
566
|
+
/**
|
|
567
|
+
* The empty state shown when the page came back empty and at least one
|
|
568
|
+
* filter IS set. Defaults to a struck-through search icon, "No match" and
|
|
569
|
+
* "Try adjusting or clearing the filters.".
|
|
570
|
+
*
|
|
571
|
+
* Only reachable when `filters` is set: with no filter form there is
|
|
572
|
+
* nothing to be filtered by, so an empty page can only mean {@link
|
|
573
|
+
* emptyState}.
|
|
574
|
+
*/
|
|
575
|
+
noMatchState?: AlephaTableEmptyState;
|
|
410
576
|
/**
|
|
411
577
|
* Rich empty-state node rendered when the page is empty — e.g. an icon +
|
|
412
|
-
* message + optional call-to-action.
|
|
578
|
+
* message + optional call-to-action. Replaces the whole thing, both states
|
|
579
|
+
* included, so it outranks every prop above.
|
|
580
|
+
*
|
|
581
|
+
* ⚠️ **Only for a table with no {@link filters}.** Replacing both states
|
|
582
|
+
* with one node makes the table structurally incapable of telling them
|
|
583
|
+
* apart, whatever the node says: a filter that matched nothing renders the
|
|
584
|
+
* "there is nothing here" message, with the filter that produced it still
|
|
585
|
+
* sitting in the toolbar above. Lore's Apps page shipped exactly that and
|
|
586
|
+
* offered to create the first app to a reader who had just searched for
|
|
587
|
+
* one (feedback #P2160); its Releases page had the same defect, unreported
|
|
588
|
+
* only because nobody had filtered it to zero.
|
|
589
|
+
*
|
|
590
|
+
* With `filters` set, reach for {@link emptyState} and {@link noMatchState}
|
|
591
|
+
* instead. They take the same three pieces - `icon`, `title`,
|
|
592
|
+
* `description` - plus an `action` slot for the button, and the table keeps
|
|
593
|
+
* the choice between the two, which is the part a caller cannot get right
|
|
594
|
+
* from the outside.
|
|
595
|
+
*
|
|
596
|
+
* Not type-enforced: the combination is a live one downstream, so the rule
|
|
597
|
+
* is stated here rather than made uncompilable.
|
|
413
598
|
*/
|
|
414
599
|
empty?: ReactNode;
|
|
415
600
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alepha-table.d.ts","sourceRoot":"","sources":["../../../src/components/alepha-table/alepha-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"alepha-table.d.ts","sourceRoot":"","sources":["../../../src/components/alepha-table/alepha-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqD/B,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,OAAO,EAAK,MAAM,QAAQ,CAAC;AAEpD,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,mBAAmB,CAAC;AAsB5D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SA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