@questpie/admin 2.0.0 → 3.0.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/README.md +173 -143
- package/dist/augmentation.d.mts +110 -11
- package/dist/client/blocks/block-renderer.d.mts +5 -12
- package/dist/client/blocks/block-renderer.mjs +89 -55
- package/dist/client/blocks/index.d.mts +2 -4
- package/dist/client/blocks/types.d.mts +3 -4
- package/dist/client/blocks/types.mjs +1 -2
- package/dist/client/builder/admin-types.d.mts +11 -44
- package/dist/client/builder/admin.d.mts +34 -45
- package/dist/client/builder/admin.mjs +35 -44
- package/dist/client/builder/field/field.d.mts +27 -205
- package/dist/client/builder/field/field.mjs +22 -68
- package/dist/client/builder/index.d.mts +23 -28
- package/dist/client/builder/page/page.d.mts +15 -27
- package/dist/client/builder/page/page.mjs +21 -17
- package/dist/client/builder/registry.d.mts +14 -34
- package/dist/client/builder/types/action-registry.mjs +148 -14
- package/dist/client/builder/types/action-types.d.mts +8 -35
- package/dist/client/builder/types/collection-types.mjs +1 -2
- package/dist/client/builder/types/common.d.mts +6 -20
- package/dist/client/builder/types/field-types.d.mts +4 -5
- package/dist/client/builder/types/field-types.mjs +1 -2
- package/dist/client/builder/types/ui-config.d.mts +3 -5
- package/dist/client/builder/types/widget-types.d.mts +19 -20
- package/dist/client/builder/validation.d.mts +33 -3
- package/dist/client/builder/validation.mjs +169 -150
- package/dist/client/builder/view/view.d.mts +26 -106
- package/dist/client/builder/view/view.mjs +14 -96
- package/dist/client/builder/widget/widget.d.mts +16 -22
- package/dist/client/builder/widget/widget.mjs +11 -16
- package/dist/client/components/actions/action-button.mjs +207 -97
- package/dist/client/components/actions/action-dialog.mjs +471 -176
- package/dist/client/components/actions/confirmation-dialog.mjs +166 -47
- package/dist/client/components/actions/header-actions.mjs +164 -71
- package/dist/client/components/admin-link.d.mts +8 -9
- package/dist/client/components/admin-link.mjs +127 -48
- package/dist/client/components/auth/auth-guard.d.mts +6 -7
- package/dist/client/components/auth/auth-guard.mjs +9 -9
- package/dist/client/components/auth/auth-loading.d.mts +3 -4
- package/dist/client/components/auth/auth-loading.mjs +38 -10
- package/dist/client/components/blocks/block-canvas.mjs +111 -42
- package/dist/client/components/blocks/block-editor-context.mjs +90 -23
- package/dist/client/components/blocks/block-editor-layout.mjs +176 -59
- package/dist/client/components/blocks/block-editor-provider.mjs +219 -139
- package/dist/client/components/blocks/block-fields-renderer.mjs +212 -42
- package/dist/client/components/blocks/block-insert-button.mjs +168 -51
- package/dist/client/components/blocks/block-item-menu.mjs +312 -110
- package/dist/client/components/blocks/block-item.mjs +372 -125
- package/dist/client/components/blocks/block-library-sidebar.mjs +209 -114
- package/dist/client/components/blocks/block-tree.mjs +73 -15
- package/dist/client/components/blocks/block-type-icon.mjs +65 -20
- package/dist/client/components/blocks/utils/tree-utils.mjs +1 -2
- package/dist/client/components/component-renderer.d.mts +11 -22
- package/dist/client/components/component-renderer.mjs +151 -38
- package/dist/client/components/error-boundary.mjs +77 -25
- package/dist/client/components/fields/array-field.mjs +474 -199
- package/dist/client/components/fields/asset-preview-field.mjs +143 -44
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +143 -35
- package/dist/client/components/fields/boolean-field.mjs +62 -32
- package/dist/client/components/fields/date-field.mjs +46 -12
- package/dist/client/components/fields/datetime-field.mjs +42 -11
- package/dist/client/components/fields/email-field.mjs +57 -28
- package/dist/client/components/fields/field-utils.mjs +1 -2
- package/dist/client/components/fields/field-wrapper.mjs +107 -32
- package/dist/client/components/fields/json-field.mjs +323 -110
- package/dist/client/components/fields/locale-badge.mjs +16 -8
- package/dist/client/components/fields/number-field.mjs +63 -30
- package/dist/client/components/fields/object-array-field.mjs +666 -272
- package/dist/client/components/fields/object-field.mjs +656 -98
- package/dist/client/components/fields/relation/displays/cards-display.mjs +225 -111
- package/dist/client/components/fields/relation/displays/chips-display.mjs +150 -77
- package/dist/client/components/fields/relation/displays/grid-display.mjs +186 -91
- package/dist/client/components/fields/relation/displays/list-display.mjs +230 -111
- package/dist/client/components/fields/relation/displays/table-display.mjs +241 -66
- package/dist/client/components/fields/relation/displays/types.mjs +2 -3
- package/dist/client/components/fields/relation/relation-items-display.mjs +131 -35
- package/dist/client/components/fields/relation-field.mjs +70 -15
- package/dist/client/components/fields/relation-picker.mjs +93 -98
- package/dist/client/components/fields/relation-select.mjs +42 -29
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +90 -41
- package/dist/client/components/fields/rich-text-editor/extensions.mjs +33 -7
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +48 -23
- package/dist/client/components/fields/rich-text-editor/index.mjs +491 -158
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs +13 -14
- package/dist/client/components/fields/rich-text-editor/presets.mjs +1 -2
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +96 -53
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs +416 -107
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +476 -215
- package/dist/client/components/fields/rich-text-editor/types.mjs +1 -2
- package/dist/client/components/fields/rich-text-editor/utils.mjs +1 -2
- package/dist/client/components/fields/rich-text-field.mjs +55 -17
- package/dist/client/components/fields/select-field.mjs +79 -44
- package/dist/client/components/fields/text-field.mjs +62 -29
- package/dist/client/components/fields/textarea-field.mjs +61 -29
- package/dist/client/components/fields/time-field.mjs +39 -11
- package/dist/client/components/fields/upload-field.mjs +253 -129
- package/dist/client/components/filter-builder/columns-tab.mjs +287 -93
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +437 -138
- package/dist/client/components/filter-builder/filters-tab.mjs +409 -126
- package/dist/client/components/filter-builder/saved-views-tab.mjs +259 -106
- package/dist/client/components/history-sidebar.mjs +496 -0
- package/dist/client/components/layout/field-layout-renderer.mjs +301 -0
- package/dist/client/components/locale-switcher.mjs +231 -108
- package/dist/client/components/media/media-grid.mjs +259 -84
- package/dist/client/components/media/media-picker-dialog.mjs +500 -192
- package/dist/client/components/preview/live-preview-mode.mjs +416 -124
- package/dist/client/components/preview/preview-pane.mjs +353 -144
- package/dist/client/components/primitives/asset-preview.mjs +665 -257
- package/dist/client/components/primitives/checkbox-input.mjs +37 -11
- package/dist/client/components/primitives/date-input.mjs +392 -149
- package/dist/client/components/primitives/dropzone.mjs +314 -185
- package/dist/client/components/primitives/number-input.mjs +14 -10
- package/dist/client/components/primitives/select-multi.mjs +519 -185
- package/dist/client/components/primitives/select-single.mjs +416 -126
- package/dist/client/components/primitives/text-input.mjs +10 -5
- package/dist/client/components/primitives/textarea-input.mjs +10 -5
- package/dist/client/components/primitives/time-input.mjs +118 -45
- package/dist/client/components/primitives/toggle-input.mjs +31 -11
- package/dist/client/components/primitives/types.mjs +1 -2
- package/dist/client/components/sheets/resource-sheet.mjs +72 -64
- package/dist/client/components/ui/accordion.mjs +156 -37
- package/dist/client/components/ui/alert.mjs +70 -17
- package/dist/client/components/ui/badge.mjs +57 -16
- package/dist/client/components/ui/button.mjs +49 -14
- package/dist/client/components/ui/card.mjs +194 -39
- package/dist/client/components/ui/checkbox.mjs +71 -16
- package/dist/client/components/ui/command.mjs +220 -50
- package/dist/client/components/ui/dialog.mjs +265 -52
- package/dist/client/components/ui/drawer.mjs +260 -57
- package/dist/client/components/ui/dropdown-menu.mjs +293 -67
- package/dist/client/components/ui/empty-state.mjs +72 -26
- package/dist/client/components/ui/field.mjs +332 -56
- package/dist/client/components/ui/input-group.mjs +174 -41
- package/dist/client/components/ui/input.mjs +38 -9
- package/dist/client/components/ui/kbd.mjs +37 -8
- package/dist/client/components/ui/label.mjs +38 -8
- package/dist/client/components/ui/popover.mjs +162 -35
- package/dist/client/components/ui/responsive-dialog.mjs +277 -71
- package/dist/client/components/ui/search-input.mjs +101 -36
- package/dist/client/components/ui/select.mjs +297 -57
- package/dist/client/components/ui/separator.mjs +39 -9
- package/dist/client/components/ui/sheet.mjs +253 -51
- package/dist/client/components/ui/sidebar.mjs +700 -182
- package/dist/client/components/ui/skeleton.mjs +33 -8
- package/dist/client/components/ui/sonner.d.mts +2 -3
- package/dist/client/components/ui/sonner.mjs +45 -15
- package/dist/client/components/ui/spinner.mjs +44 -10
- package/dist/client/components/ui/switch.mjs +47 -12
- package/dist/client/components/ui/table.mjs +260 -50
- package/dist/client/components/ui/tabs.mjs +140 -29
- package/dist/client/components/ui/textarea.mjs +33 -8
- package/dist/client/components/ui/toolbar.mjs +105 -23
- package/dist/client/components/ui/tooltip.mjs +130 -29
- package/dist/client/components/widgets/chart-widget.mjs +456 -156
- package/dist/client/components/widgets/progress-widget.mjs +150 -60
- package/dist/client/components/widgets/quick-actions-widget.mjs +175 -87
- package/dist/client/components/widgets/recent-items-widget.mjs +157 -62
- package/dist/client/components/widgets/stats-widget.mjs +153 -42
- package/dist/client/components/widgets/table-widget.mjs +198 -64
- package/dist/client/components/widgets/timeline-widget.mjs +193 -82
- package/dist/client/components/widgets/value-widget.mjs +257 -56
- package/dist/client/components/widgets/widget-skeletons.mjs +390 -108
- package/dist/client/contexts/breadcrumb-context.mjs +44 -16
- package/dist/client/{context → contexts}/focus-context.d.mts +6 -7
- package/dist/client/{context → contexts}/focus-context.mjs +134 -62
- package/dist/client/hooks/typed-hooks.d.mts +38 -12
- package/dist/client/hooks/typed-hooks.mjs +758 -142
- package/dist/client/hooks/use-action.mjs +197 -69
- package/dist/client/hooks/use-admin-config.mjs +39 -10
- package/dist/client/hooks/use-admin-preferences.mjs +118 -15
- package/dist/client/hooks/use-admin-routes.mjs +60 -27
- package/dist/client/hooks/use-audit-history.mjs +157 -0
- package/dist/client/hooks/use-auth.d.mts +14 -15
- package/dist/client/hooks/use-auth.mjs +8 -9
- package/dist/client/hooks/use-collection-fields.mjs +58 -19
- package/dist/client/hooks/use-collection-meta.mjs +45 -13
- package/dist/client/hooks/use-collection-schema.mjs +34 -11
- package/dist/client/hooks/use-collection-validation.mjs +39 -25
- package/dist/client/hooks/use-collection.d.mts +18 -8
- package/dist/client/hooks/use-collection.mjs +560 -101
- package/dist/client/hooks/use-current-user.d.mts +6 -3
- package/dist/client/hooks/use-current-user.mjs +2 -2
- package/dist/client/hooks/use-field-hooks.mjs +73 -65
- package/dist/client/hooks/use-field-options.d.mts +1 -34
- package/dist/client/hooks/use-field-options.mjs +233 -148
- package/dist/client/hooks/use-global-fields.mjs +47 -16
- package/dist/client/hooks/use-global-meta.mjs +57 -11
- package/dist/client/hooks/use-global-schema.mjs +31 -11
- package/dist/client/hooks/use-global.d.mts +13 -2
- package/dist/client/hooks/use-global.mjs +244 -34
- package/dist/client/hooks/use-locks.mjs +331 -124
- package/dist/client/hooks/use-media-query.d.mts +1 -2
- package/dist/client/hooks/use-media-query.mjs +38 -19
- package/dist/client/hooks/use-prefill-params.mjs +2 -2
- package/dist/client/hooks/use-questpie-query-options.mjs +33 -11
- package/dist/client/hooks/use-reactive-fields.d.mts +6 -3
- package/dist/client/hooks/use-reactive-fields.mjs +130 -93
- package/dist/client/hooks/use-realtime-highlight.mjs +115 -53
- package/dist/client/hooks/use-saved-views.mjs +109 -34
- package/dist/client/hooks/use-search-param-toggle.d.mts +12 -0
- package/dist/client/hooks/use-search-param-toggle.mjs +115 -0
- package/dist/client/hooks/use-search.mjs +147 -36
- package/dist/client/hooks/use-server-actions.mjs +191 -0
- package/dist/client/hooks/use-server-validation.mjs +164 -72
- package/dist/client/hooks/use-server-widget-data.d.mts +2 -3
- package/dist/client/hooks/use-server-widget-data.mjs +36 -11
- package/dist/client/hooks/use-setup-status.d.mts +3 -4
- package/dist/client/hooks/use-setup-status.mjs +28 -16
- package/dist/client/hooks/use-sidebar-search-param.d.mts +9 -0
- package/dist/client/hooks/use-sidebar-search-param.mjs +104 -0
- package/dist/client/hooks/use-transition-stage.mjs +125 -0
- package/dist/client/hooks/use-upload-collection.mjs +1 -2
- package/dist/client/hooks/use-upload.mjs +189 -125
- package/dist/client/hooks/use-validation-error-map.mjs +10 -6
- package/dist/client/hooks/use-view-state.mjs +380 -162
- package/dist/client/i18n/hooks.mjs +191 -67
- package/dist/client/i18n/intl-cache.mjs +1 -2
- package/dist/client/i18n/messages.mjs +1 -2
- package/dist/client/i18n/simple.d.mts +1 -2
- package/dist/client/i18n/simple.mjs +1 -2
- package/dist/client/i18n/types.d.mts +1 -2
- package/dist/client/lib/cookies.mjs +9 -0
- package/dist/client/lib/events.mjs +5 -0
- package/dist/client/lib/render-profiler.mjs +51 -0
- package/dist/client/lib/utils.mjs +1 -6
- package/dist/client/preview/block-scope-context.d.mts +5 -6
- package/dist/client/preview/block-scope-context.mjs +50 -27
- package/dist/client/preview/index.d.mts +2 -2
- package/dist/client/preview/preview-banner.d.mts +3 -4
- package/dist/client/preview/preview-banner.mjs +74 -35
- package/dist/client/preview/preview-field.d.mts +9 -10
- package/dist/client/preview/preview-field.mjs +163 -61
- package/dist/client/preview/types.d.mts +1 -2
- package/dist/client/preview/types.mjs +1 -2
- package/dist/client/preview/use-collection-preview.d.mts +1 -2
- package/dist/client/preview/use-collection-preview.mjs +105 -56
- package/dist/client/runtime/content-locales-provider.mjs +87 -36
- package/dist/client/runtime/index.d.mts +1 -3
- package/dist/client/runtime/index.mjs +1 -3
- package/dist/client/runtime/locale-scope.mjs +69 -29
- package/dist/client/runtime/provider.d.mts +18 -9922
- package/dist/client/runtime/provider.mjs +250 -86
- package/dist/client/runtime/routes.d.mts +7 -7
- package/dist/client/runtime/routes.mjs +4 -20
- package/dist/client/runtime/translations-provider.mjs +114 -53
- package/dist/client/scope/picker.d.mts +3 -4
- package/dist/client/scope/picker.mjs +324 -90
- package/dist/client/scope/provider.d.mts +4 -5
- package/dist/client/scope/provider.mjs +30 -22
- package/dist/client/scope/types.d.mts +1 -2
- package/dist/client/styles/index.css +301 -225
- package/dist/client/utils/auto-expand-fields.mjs +23 -5
- package/dist/client/utils/build-field-definitions-from-schema.mjs +10 -7
- package/dist/client/utils/dependency-tracker.mjs +61 -0
- package/dist/client/utils/detect-relations.mjs +1 -2
- package/dist/client/utils/locale-to-flag.d.mts +8 -7
- package/dist/client/utils/locale-to-flag.mjs +1 -2
- package/dist/client/utils/routes.mjs +1 -2
- package/dist/client/views/auth/accept-invite-form.d.mts +3 -4
- package/dist/client/views/auth/accept-invite-form.mjs +414 -121
- package/dist/client/views/auth/auth-layout.d.mts +5 -6
- package/dist/client/views/auth/auth-layout.mjs +93 -30
- package/dist/client/views/auth/forgot-password-form.d.mts +4 -5
- package/dist/client/views/auth/forgot-password-form.mjs +332 -100
- package/dist/client/views/auth/invite-form.mjs +447 -105
- package/dist/client/views/auth/login-form.d.mts +4 -5
- package/dist/client/views/auth/login-form.mjs +340 -120
- package/dist/client/views/auth/reset-password-form.d.mts +4 -5
- package/dist/client/views/auth/reset-password-form.mjs +458 -131
- package/dist/client/views/auth/setup-form.d.mts +2 -3
- package/dist/client/views/auth/setup-form.mjs +481 -141
- package/dist/client/views/collection/auto-form-fields.mjs +686 -266
- package/dist/client/views/collection/bulk-action-toolbar.mjs +392 -203
- package/dist/client/views/collection/cells/complex-cells.mjs +635 -216
- package/dist/client/views/collection/cells/primitive-cells.mjs +332 -102
- package/dist/client/views/collection/cells/relation-cells.mjs +227 -72
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +456 -136
- package/dist/client/views/collection/cells/shared/cell-helpers.mjs +49 -2
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +109 -25
- package/dist/client/views/collection/cells/upload-cells.mjs +16 -8
- package/dist/client/views/collection/columns/build-columns.mjs +51 -12
- package/dist/client/views/collection/columns/column-defaults.mjs +17 -2
- package/dist/client/views/collection/field-context.mjs +10 -11
- package/dist/client/views/collection/field-renderer.mjs +237 -40
- package/dist/client/views/collection/form-view.mjs +1108 -445
- package/dist/client/views/collection/table-view.mjs +300 -163
- package/dist/client/views/collection/view-skeletons.mjs +181 -87
- package/dist/client/views/common/global-search.mjs +557 -233
- package/dist/client/views/dashboard/dashboard-grid.mjs +707 -211
- package/dist/client/views/dashboard/dashboard-widget.mjs +145 -58
- package/dist/client/views/dashboard/widget-card.mjs +315 -102
- package/dist/client/views/globals/global-form-view.mjs +1256 -131
- package/dist/client/views/layout/admin-layout-provider.d.mts +18 -21
- package/dist/client/views/layout/admin-layout-provider.mjs +135 -32
- package/dist/client/views/layout/admin-layout.d.mts +14 -32
- package/dist/client/views/layout/admin-layout.mjs +254 -96
- package/dist/client/views/layout/admin-router.d.mts +10 -42
- package/dist/client/views/layout/admin-router.mjs +1086 -426
- package/dist/client/views/layout/admin-sidebar.d.mts +10 -16
- package/dist/client/views/layout/admin-sidebar.mjs +1211 -382
- package/dist/client/views/layout/admin-topbar.mjs +220 -112
- package/dist/client/views/pages/accept-invite-page.d.mts +5 -6
- package/dist/client/views/pages/accept-invite-page.mjs +302 -96
- package/dist/client/views/pages/dashboard-page.d.mts +7 -16
- package/dist/client/views/pages/dashboard-page.mjs +62 -23
- package/dist/client/views/pages/forgot-password-page.d.mts +7 -10
- package/dist/client/views/pages/forgot-password-page.mjs +112 -40
- package/dist/client/views/pages/invite-page.d.mts +6 -7
- package/dist/client/views/pages/invite-page.mjs +121 -46
- package/dist/client/views/pages/login-page.d.mts +8 -15
- package/dist/client/views/pages/login-page.mjs +152 -57
- package/dist/client/views/pages/reset-password-page.d.mts +7 -10
- package/dist/client/views/pages/reset-password-page.mjs +209 -57
- package/dist/client/views/pages/setup-page.d.mts +7 -10
- package/dist/client/views/pages/setup-page.mjs +108 -43
- package/dist/client-module.d.mts +3 -0
- package/dist/client-module.mjs +3 -0
- package/dist/client.d.mts +55 -48
- package/dist/client.mjs +26 -28
- package/dist/components/rich-text/rich-text-renderer.d.mts +3 -4
- package/dist/components/rich-text/rich-text-renderer.mjs +97 -70
- package/dist/index.d.mts +36 -39
- package/dist/index.mjs +26 -28
- package/dist/plugin.d.mts +2 -0
- package/dist/plugin.mjs +3 -0
- package/dist/server/adapters/nextjs.d.mts +13 -14
- package/dist/server/adapters/nextjs.mjs +12 -13
- package/dist/server/adapters/tanstack.d.mts +10 -11
- package/dist/server/adapters/tanstack.mjs +11 -12
- package/dist/server/augmentation/actions.d.mts +279 -0
- package/dist/server/augmentation/common.d.mts +76 -0
- package/dist/server/augmentation/dashboard.d.mts +547 -0
- package/dist/server/augmentation/form-layout.d.mts +303 -0
- package/dist/server/augmentation/index.d.mts +44 -0
- package/dist/server/augmentation/index.mjs +10 -0
- package/dist/server/augmentation/sidebar.d.mts +181 -0
- package/dist/server/augmentation/views.d.mts +237 -0
- package/dist/server/augmentation.d.mts +7 -1523
- package/dist/server/block/index.d.mts +4 -3
- package/dist/server/codegen/admin-client-template.mjs +93 -0
- package/dist/server/codegen/projection-validator.mjs +67 -0
- package/dist/server/fields/blocks.d.mts +10 -78
- package/dist/server/fields/blocks.mjs +74 -115
- package/dist/server/fields/index.d.mts +6 -39
- package/dist/server/fields/index.mjs +6 -7
- package/dist/server/fields/rich-text.d.mts +10 -77
- package/dist/server/fields/rich-text.mjs +59 -100
- package/dist/server/i18n/index.mjs +8 -9
- package/dist/server/i18n/messages/cs.mjs +3 -3
- package/dist/server/i18n/messages/de.mjs +3 -3
- package/dist/server/i18n/messages/en.mjs +217 -3
- package/dist/server/i18n/messages/es.mjs +3 -3
- package/dist/server/i18n/messages/fr.mjs +3 -3
- package/dist/server/i18n/messages/index.mjs +1 -2
- package/dist/server/i18n/messages/pl.mjs +3 -3
- package/dist/server/i18n/messages/pt.mjs +3 -3
- package/dist/server/i18n/messages/sk.mjs +202 -3
- package/dist/server/modules/admin/.generated/module.d.mts +52 -0
- package/dist/server/modules/admin/.generated/module.mjs +78 -0
- package/dist/server/modules/admin/.generated/registries.d.mts +22 -0
- package/dist/server/{auth-helpers.d.mts → modules/admin/auth-helpers.d.mts} +13 -14
- package/dist/server/{auth-helpers.mjs → modules/admin/auth-helpers.mjs} +15 -16
- package/dist/server/{block → modules/admin/block}/block-builder.d.mts +96 -32
- package/dist/server/{block → modules/admin/block}/block-builder.mjs +113 -15
- package/dist/server/modules/admin/block/index.d.mts +3 -0
- package/dist/server/{block → modules/admin/block}/introspection.d.mts +10 -5
- package/dist/server/{block → modules/admin/block}/introspection.mjs +18 -7
- package/dist/server/{block → modules/admin/block}/prefetch.d.mts +21 -17
- package/dist/server/{block → modules/admin/block}/prefetch.mjs +17 -16
- package/dist/server/modules/admin/client/.generated/module.d.mts +94 -0
- package/dist/server/modules/admin/client/.generated/module.mjs +91 -0
- package/dist/server/modules/admin/client/components/badge.d.mts +1 -0
- package/dist/server/modules/admin/client/components/icon.d.mts +1 -0
- package/dist/server/modules/admin/client/fields/array.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/array.mjs +12 -0
- package/dist/server/modules/admin/client/fields/assetPreview.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/assetPreview.mjs +18 -0
- package/dist/server/modules/admin/client/fields/blocks.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/blocks.mjs +12 -0
- package/dist/server/modules/admin/client/fields/boolean.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/boolean.mjs +12 -0
- package/dist/server/modules/admin/client/fields/date.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/date.mjs +12 -0
- package/dist/server/modules/admin/client/fields/datetime.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/datetime.mjs +12 -0
- package/dist/server/modules/admin/client/fields/email.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/email.mjs +12 -0
- package/dist/server/modules/admin/client/fields/json.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/json.mjs +11 -0
- package/dist/server/modules/admin/client/fields/number.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/number.mjs +12 -0
- package/dist/server/modules/admin/client/fields/object.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/object.mjs +12 -0
- package/dist/server/modules/admin/client/fields/relation.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/relation.mjs +12 -0
- package/dist/server/modules/admin/client/fields/richText.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/richText.mjs +11 -0
- package/dist/server/modules/admin/client/fields/select.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/select.mjs +12 -0
- package/dist/server/modules/admin/client/fields/text.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/text.mjs +12 -0
- package/dist/server/modules/admin/client/fields/textarea.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/textarea.mjs +12 -0
- package/dist/server/modules/admin/client/fields/time.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/time.mjs +12 -0
- package/dist/server/modules/admin/client/fields/upload.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/upload.mjs +12 -0
- package/dist/server/modules/admin/client/fields/url.d.mts +6 -0
- package/dist/server/modules/admin/client/fields/url.mjs +12 -0
- package/dist/server/modules/admin/client/index.d.mts +1 -0
- package/dist/server/modules/admin/client/pages/dashboard.d.mts +6 -0
- package/dist/server/modules/admin/client/pages/dashboard.mjs +11 -0
- package/dist/server/modules/admin/client/pages/forgotPassword.d.mts +6 -0
- package/dist/server/modules/admin/client/pages/forgotPassword.mjs +11 -0
- package/dist/server/modules/admin/client/pages/login.d.mts +6 -0
- package/dist/server/modules/admin/client/pages/login.mjs +11 -0
- package/dist/server/modules/admin/client/pages/resetPassword.d.mts +6 -0
- package/dist/server/modules/admin/client/pages/resetPassword.mjs +11 -0
- package/dist/server/modules/admin/client/pages/setup.d.mts +6 -0
- package/dist/server/modules/admin/client/pages/setup.mjs +11 -0
- package/dist/server/modules/admin/client/views/collection-form.mjs +10 -0
- package/dist/server/modules/admin/client/views/collection-table.mjs +10 -0
- package/dist/server/modules/admin/client/views/global-form.mjs +10 -0
- package/dist/server/modules/admin/client/widgets/chart.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/chart.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/progress.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/progress.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/quickActions.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/quickActions.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/recentItems.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/recentItems.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/stats.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/stats.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/table.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/table.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/timeline.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/timeline.mjs +7 -0
- package/dist/server/modules/admin/client/widgets/value.d.mts +6 -0
- package/dist/server/modules/admin/client/widgets/value.mjs +7 -0
- package/dist/server/modules/admin/collections/account.d.mts +77 -0
- package/dist/server/modules/admin/collections/account.mjs +23 -0
- package/dist/server/modules/admin/collections/admin-locks.d.mts +90 -0
- package/dist/server/modules/admin/collections/admin-locks.mjs +16 -0
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +69 -0
- package/dist/server/modules/admin/collections/admin-preferences.mjs +16 -0
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +83 -0
- package/dist/server/modules/admin/collections/admin-saved-views.mjs +16 -0
- package/dist/server/modules/admin/collections/apikey.d.mts +99 -0
- package/dist/server/modules/admin/collections/apikey.mjs +15 -0
- package/dist/server/modules/admin/collections/assets.d.mts +72 -0
- package/dist/server/modules/admin/collections/assets.mjs +71 -0
- package/dist/server/modules/admin/collections/session.d.mts +69 -0
- package/dist/server/modules/admin/collections/session.mjs +15 -0
- package/dist/server/modules/admin/collections/user.d.mts +85 -0
- package/dist/server/modules/admin/collections/user.mjs +204 -0
- package/dist/server/modules/admin/collections/verification.d.mts +63 -0
- package/dist/server/modules/admin/collections/verification.mjs +15 -0
- package/dist/server/modules/admin/components/badge.d.mts +10 -0
- package/dist/server/modules/admin/components/badge.mjs +10 -0
- package/dist/server/modules/admin/components/icon.d.mts +9 -0
- package/dist/server/modules/admin/components/icon.mjs +11 -0
- package/dist/server/modules/admin/config/admin.mjs +34 -0
- package/dist/server/modules/admin/dto/admin-config.dto.mjs +102 -0
- package/dist/server/modules/admin/factories.mjs +172 -0
- package/dist/server/modules/admin/index.d.mts +1060 -16846
- package/dist/server/modules/admin/index.mjs +17 -240
- package/dist/server/modules/admin/modules.mjs +11 -0
- package/dist/server/modules/admin/plugin.mjs +13 -0
- package/dist/server/modules/admin/routes/admin-config.d.mts +28 -0
- package/dist/server/modules/admin/routes/admin-config.mjs +552 -0
- package/dist/server/modules/admin/{functions → routes}/execute-action.d.mts +17 -32
- package/dist/server/modules/admin/{functions → routes}/execute-action.mjs +146 -44
- package/dist/server/modules/admin/routes/locales.d.mts +18 -0
- package/dist/server/modules/admin/routes/locales.mjs +69 -0
- package/dist/server/modules/admin/{functions → routes}/preview.d.mts +25 -15
- package/dist/server/modules/admin/{functions → routes}/preview.mjs +84 -97
- package/dist/server/modules/admin/{functions → routes}/reactive.d.mts +19 -44
- package/dist/server/modules/admin/{functions → routes}/reactive.mjs +89 -117
- package/dist/server/modules/admin/routes/route-helpers.d.mts +23 -0
- package/dist/server/modules/admin/routes/route-helpers.mjs +76 -0
- package/dist/server/modules/admin/{functions → routes}/setup.d.mts +11 -32
- package/dist/server/modules/admin/routes/setup.mjs +114 -0
- package/dist/server/modules/admin/routes/translations.d.mts +26 -0
- package/dist/server/modules/admin/routes/translations.mjs +114 -0
- package/dist/server/modules/admin/routes/widget-data.d.mts +32 -0
- package/dist/server/modules/admin/routes/widget-data.mjs +62 -0
- package/dist/server/modules/admin/views/form.d.mts +8 -0
- package/dist/server/modules/admin/views/form.mjs +7 -0
- package/dist/server/modules/admin/views/global-form.d.mts +8 -0
- package/dist/server/modules/admin/views/global-form.mjs +7 -0
- package/dist/server/modules/admin/views/table.d.mts +8 -0
- package/dist/server/modules/admin/views/table.mjs +7 -0
- package/dist/server/modules/admin-preferences/collections/{admin-preferences.collection.mjs → admin-preferences.mjs} +13 -24
- package/dist/server/modules/admin-preferences/collections/locks.collection.mjs +18 -42
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +99 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.mjs +38 -0
- package/dist/server/modules/audit/.generated/module.d.mts +60 -0
- package/dist/server/modules/audit/.generated/module.mjs +30 -0
- package/dist/server/modules/audit/collections/audit-log.d.mts +214 -0
- package/dist/server/modules/audit/collections/audit-log.mjs +107 -0
- package/dist/server/modules/audit/config/admin.mjs +21 -0
- package/dist/server/modules/audit/config/app.mjs +262 -0
- package/dist/server/modules/audit/index.d.mts +2 -0
- package/dist/server/modules/audit/jobs/audit-cleanup.d.mts +13 -0
- package/dist/server/modules/audit/jobs/audit-cleanup.mjs +28 -0
- package/dist/server/plugin.d.mts +26 -0
- package/dist/server/plugin.mjs +385 -0
- package/dist/server/proxy-factories.d.mts +85 -0
- package/dist/server/proxy-factories.mjs +302 -0
- package/dist/server/registry-helpers.d.mts +83 -0
- package/dist/server/registry-helpers.mjs +104 -0
- package/dist/server.d.mts +30 -18
- package/dist/server.mjs +19 -16
- package/dist/shared/preview-utils.d.mts +2 -3
- package/dist/shared/preview-utils.mjs +2 -3
- package/dist/shared/types/saved-views.types.d.mts +2 -2
- package/package.json +51 -40
- package/dist/_virtual/rolldown_runtime.mjs +0 -18
- package/dist/augmentation.d.mts.map +0 -1
- package/dist/client/blocks/block-registry.d.mts +0 -199
- package/dist/client/blocks/block-registry.d.mts.map +0 -1
- package/dist/client/blocks/block-registry.mjs +0 -88
- package/dist/client/blocks/block-registry.mjs.map +0 -1
- package/dist/client/blocks/block-renderer.d.mts.map +0 -1
- package/dist/client/blocks/block-renderer.mjs.map +0 -1
- package/dist/client/blocks/prefetch.d.mts +0 -45
- package/dist/client/blocks/prefetch.d.mts.map +0 -1
- package/dist/client/blocks/prefetch.mjs +0 -26
- package/dist/client/blocks/prefetch.mjs.map +0 -1
- package/dist/client/blocks/types.d.mts.map +0 -1
- package/dist/client/blocks/types.mjs.map +0 -1
- package/dist/client/builder/admin-builder.d.mts +0 -112
- package/dist/client/builder/admin-builder.d.mts.map +0 -1
- package/dist/client/builder/admin-builder.mjs +0 -185
- package/dist/client/builder/admin-builder.mjs.map +0 -1
- package/dist/client/builder/admin-types.d.mts.map +0 -1
- package/dist/client/builder/admin.d.mts.map +0 -1
- package/dist/client/builder/admin.mjs.map +0 -1
- package/dist/client/builder/defaults/components.mjs +0 -20
- package/dist/client/builder/defaults/components.mjs.map +0 -1
- package/dist/client/builder/defaults/core.d.mts +0 -354
- package/dist/client/builder/defaults/core.d.mts.map +0 -1
- package/dist/client/builder/defaults/core.mjs +0 -49
- package/dist/client/builder/defaults/core.mjs.map +0 -1
- package/dist/client/builder/defaults/fields.mjs +0 -328
- package/dist/client/builder/defaults/fields.mjs.map +0 -1
- package/dist/client/builder/defaults/pages.mjs +0 -58
- package/dist/client/builder/defaults/pages.mjs.map +0 -1
- package/dist/client/builder/defaults/starter.d.mts +0 -351
- package/dist/client/builder/defaults/starter.d.mts.map +0 -1
- package/dist/client/builder/defaults/starter.mjs +0 -28
- package/dist/client/builder/defaults/starter.mjs.map +0 -1
- package/dist/client/builder/defaults/views.mjs +0 -27
- package/dist/client/builder/defaults/views.mjs.map +0 -1
- package/dist/client/builder/defaults/widgets.mjs +0 -31
- package/dist/client/builder/defaults/widgets.mjs.map +0 -1
- package/dist/client/builder/field/field.d.mts.map +0 -1
- package/dist/client/builder/field/field.mjs.map +0 -1
- package/dist/client/builder/index.d.mts.map +0 -1
- package/dist/client/builder/page/page.d.mts.map +0 -1
- package/dist/client/builder/page/page.mjs.map +0 -1
- package/dist/client/builder/proxies.d.mts +0 -2
- package/dist/client/builder/proxies.mjs +0 -24
- package/dist/client/builder/proxies.mjs.map +0 -1
- package/dist/client/builder/qa.d.mts +0 -50
- package/dist/client/builder/qa.d.mts.map +0 -1
- package/dist/client/builder/qa.mjs +0 -42
- package/dist/client/builder/qa.mjs.map +0 -1
- package/dist/client/builder/registry.d.mts.map +0 -1
- package/dist/client/builder/types/action-registry.d.mts +0 -2
- package/dist/client/builder/types/action-registry.mjs.map +0 -1
- package/dist/client/builder/types/action-types.d.mts.map +0 -1
- package/dist/client/builder/types/collection-types.d.mts +0 -199
- package/dist/client/builder/types/collection-types.d.mts.map +0 -1
- package/dist/client/builder/types/collection-types.mjs.map +0 -1
- package/dist/client/builder/types/common.d.mts.map +0 -1
- package/dist/client/builder/types/field-types.d.mts.map +0 -1
- package/dist/client/builder/types/field-types.mjs.map +0 -1
- package/dist/client/builder/types/global-types.d.mts +0 -22
- package/dist/client/builder/types/global-types.d.mts.map +0 -1
- package/dist/client/builder/types/ui-config.d.mts.map +0 -1
- package/dist/client/builder/types/views.d.mts +0 -89
- package/dist/client/builder/types/views.d.mts.map +0 -1
- package/dist/client/builder/types/widget-types.d.mts.map +0 -1
- package/dist/client/builder/validation.mjs.map +0 -1
- package/dist/client/builder/view/view.d.mts.map +0 -1
- package/dist/client/builder/view/view.mjs.map +0 -1
- package/dist/client/builder/widget/widget.d.mts.map +0 -1
- package/dist/client/builder/widget/widget.mjs.map +0 -1
- package/dist/client/components/actions/action-button.d.mts +0 -2
- package/dist/client/components/actions/action-button.mjs.map +0 -1
- package/dist/client/components/actions/action-dialog.d.mts +0 -2
- package/dist/client/components/actions/action-dialog.mjs.map +0 -1
- package/dist/client/components/actions/confirmation-dialog.d.mts +0 -2
- package/dist/client/components/actions/confirmation-dialog.mjs.map +0 -1
- package/dist/client/components/actions/header-actions.d.mts +0 -2
- package/dist/client/components/actions/header-actions.mjs.map +0 -1
- package/dist/client/components/actions/index.d.mts +0 -4
- package/dist/client/components/admin-link.d.mts.map +0 -1
- package/dist/client/components/admin-link.mjs.map +0 -1
- package/dist/client/components/auth/auth-guard.d.mts.map +0 -1
- package/dist/client/components/auth/auth-guard.mjs.map +0 -1
- package/dist/client/components/auth/auth-loading.d.mts.map +0 -1
- package/dist/client/components/auth/auth-loading.mjs.map +0 -1
- package/dist/client/components/auth/index.d.mts +0 -2
- package/dist/client/components/blocks/block-canvas.mjs.map +0 -1
- package/dist/client/components/blocks/block-editor-context.mjs.map +0 -1
- package/dist/client/components/blocks/block-editor-layout.mjs.map +0 -1
- package/dist/client/components/blocks/block-editor-provider.mjs.map +0 -1
- package/dist/client/components/blocks/block-fields-renderer.mjs.map +0 -1
- package/dist/client/components/blocks/block-insert-button.mjs.map +0 -1
- package/dist/client/components/blocks/block-item-menu.mjs.map +0 -1
- package/dist/client/components/blocks/block-item.mjs.map +0 -1
- package/dist/client/components/blocks/block-library-sidebar.mjs.map +0 -1
- package/dist/client/components/blocks/block-tree.mjs.map +0 -1
- package/dist/client/components/blocks/block-type-icon.mjs.map +0 -1
- package/dist/client/components/blocks/utils/tree-utils.mjs.map +0 -1
- package/dist/client/components/component-renderer.d.mts.map +0 -1
- package/dist/client/components/component-renderer.mjs.map +0 -1
- package/dist/client/components/error-boundary.mjs.map +0 -1
- package/dist/client/components/fields/array-field.d.mts +0 -44
- package/dist/client/components/fields/array-field.d.mts.map +0 -1
- package/dist/client/components/fields/array-field.mjs.map +0 -1
- package/dist/client/components/fields/asset-preview-field.d.mts +0 -52
- package/dist/client/components/fields/asset-preview-field.d.mts.map +0 -1
- package/dist/client/components/fields/asset-preview-field.mjs.map +0 -1
- package/dist/client/components/fields/blocks-field/blocks-field.d.mts +0 -41
- package/dist/client/components/fields/blocks-field/blocks-field.d.mts.map +0 -1
- package/dist/client/components/fields/blocks-field/blocks-field.mjs.map +0 -1
- package/dist/client/components/fields/blocks-field/index.d.mts +0 -1
- package/dist/client/components/fields/boolean-field.d.mts +0 -30
- package/dist/client/components/fields/boolean-field.d.mts.map +0 -1
- package/dist/client/components/fields/boolean-field.mjs.map +0 -1
- package/dist/client/components/fields/custom-field.d.mts +0 -3
- package/dist/client/components/fields/date-field.d.mts +0 -22
- package/dist/client/components/fields/date-field.d.mts.map +0 -1
- package/dist/client/components/fields/date-field.mjs.map +0 -1
- package/dist/client/components/fields/datetime-field.d.mts +0 -23
- package/dist/client/components/fields/datetime-field.d.mts.map +0 -1
- package/dist/client/components/fields/datetime-field.mjs.map +0 -1
- package/dist/client/components/fields/email-field.d.mts +0 -19
- package/dist/client/components/fields/email-field.d.mts.map +0 -1
- package/dist/client/components/fields/email-field.mjs.map +0 -1
- package/dist/client/components/fields/embedded-collection.d.mts +0 -3
- package/dist/client/components/fields/field-types.d.mts +0 -571
- package/dist/client/components/fields/field-types.d.mts.map +0 -1
- package/dist/client/components/fields/field-utils.d.mts +0 -1
- package/dist/client/components/fields/field-utils.mjs.map +0 -1
- package/dist/client/components/fields/field-wrapper.d.mts +0 -3
- package/dist/client/components/fields/field-wrapper.mjs.map +0 -1
- package/dist/client/components/fields/index.d.mts +0 -33
- package/dist/client/components/fields/json-field.d.mts +0 -84
- package/dist/client/components/fields/json-field.d.mts.map +0 -1
- package/dist/client/components/fields/json-field.mjs.map +0 -1
- package/dist/client/components/fields/locale-badge.d.mts +0 -1
- package/dist/client/components/fields/locale-badge.mjs.map +0 -1
- package/dist/client/components/fields/number-field.d.mts +0 -23
- package/dist/client/components/fields/number-field.d.mts.map +0 -1
- package/dist/client/components/fields/number-field.mjs.map +0 -1
- package/dist/client/components/fields/object-array-field.d.mts +0 -2
- package/dist/client/components/fields/object-array-field.mjs.map +0 -1
- package/dist/client/components/fields/object-field.d.mts +0 -32
- package/dist/client/components/fields/object-field.d.mts.map +0 -1
- package/dist/client/components/fields/object-field.mjs.map +0 -1
- package/dist/client/components/fields/relation/displays/cards-display.d.mts +0 -2
- package/dist/client/components/fields/relation/displays/cards-display.mjs.map +0 -1
- package/dist/client/components/fields/relation/displays/chips-display.d.mts +0 -2
- package/dist/client/components/fields/relation/displays/chips-display.mjs.map +0 -1
- package/dist/client/components/fields/relation/displays/grid-display.d.mts +0 -2
- package/dist/client/components/fields/relation/displays/grid-display.mjs.map +0 -1
- package/dist/client/components/fields/relation/displays/index.d.mts +0 -6
- package/dist/client/components/fields/relation/displays/list-display.d.mts +0 -2
- package/dist/client/components/fields/relation/displays/list-display.mjs.map +0 -1
- package/dist/client/components/fields/relation/displays/table-display.d.mts +0 -2
- package/dist/client/components/fields/relation/displays/table-display.mjs.map +0 -1
- package/dist/client/components/fields/relation/displays/types.d.mts +0 -22
- package/dist/client/components/fields/relation/displays/types.d.mts.map +0 -1
- package/dist/client/components/fields/relation/displays/types.mjs.map +0 -1
- package/dist/client/components/fields/relation/index.d.mts +0 -3
- package/dist/client/components/fields/relation/relation-items-display.d.mts +0 -5
- package/dist/client/components/fields/relation/relation-items-display.mjs.map +0 -1
- package/dist/client/components/fields/relation-field.d.mts +0 -134
- package/dist/client/components/fields/relation-field.d.mts.map +0 -1
- package/dist/client/components/fields/relation-field.mjs.map +0 -1
- package/dist/client/components/fields/relation-picker.d.mts +0 -4
- package/dist/client/components/fields/relation-picker.mjs.map +0 -1
- package/dist/client/components/fields/relation-select.d.mts +0 -3
- package/dist/client/components/fields/relation-select.mjs.map +0 -1
- package/dist/client/components/fields/reverse-relation-field.d.mts +0 -2
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/extensions.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/index.d.mts +0 -4
- package/dist/client/components/fields/rich-text-editor/index.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/presets.d.mts +0 -11
- package/dist/client/components/fields/rich-text-editor/presets.d.mts.map +0 -1
- package/dist/client/components/fields/rich-text-editor/presets.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/types.d.mts +0 -78
- package/dist/client/components/fields/rich-text-editor/types.d.mts.map +0 -1
- package/dist/client/components/fields/rich-text-editor/types.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/utils.mjs.map +0 -1
- package/dist/client/components/fields/rich-text-editor/variants.d.mts +0 -2
- package/dist/client/components/fields/rich-text-field.d.mts +0 -14
- package/dist/client/components/fields/rich-text-field.d.mts.map +0 -1
- package/dist/client/components/fields/rich-text-field.mjs.map +0 -1
- package/dist/client/components/fields/select-field.d.mts +0 -25
- package/dist/client/components/fields/select-field.d.mts.map +0 -1
- package/dist/client/components/fields/select-field.mjs.map +0 -1
- package/dist/client/components/fields/status-field.d.mts +0 -2
- package/dist/client/components/fields/text-field.d.mts +0 -22
- package/dist/client/components/fields/text-field.d.mts.map +0 -1
- package/dist/client/components/fields/text-field.mjs.map +0 -1
- package/dist/client/components/fields/textarea-field.d.mts +0 -22
- package/dist/client/components/fields/textarea-field.d.mts.map +0 -1
- package/dist/client/components/fields/textarea-field.mjs.map +0 -1
- package/dist/client/components/fields/time-field.d.mts +0 -20
- package/dist/client/components/fields/time-field.d.mts.map +0 -1
- package/dist/client/components/fields/time-field.mjs.map +0 -1
- package/dist/client/components/fields/upload-field.d.mts +0 -97
- package/dist/client/components/fields/upload-field.d.mts.map +0 -1
- package/dist/client/components/fields/upload-field.mjs.map +0 -1
- package/dist/client/components/filter-builder/columns-tab.d.mts +0 -1
- package/dist/client/components/filter-builder/columns-tab.mjs.map +0 -1
- package/dist/client/components/filter-builder/filter-builder-sheet.d.mts +0 -1
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs.map +0 -1
- package/dist/client/components/filter-builder/filters-tab.d.mts +0 -1
- package/dist/client/components/filter-builder/filters-tab.mjs.map +0 -1
- package/dist/client/components/filter-builder/index.d.mts +0 -5
- package/dist/client/components/filter-builder/saved-views-tab.d.mts +0 -1
- package/dist/client/components/filter-builder/saved-views-tab.mjs.map +0 -1
- package/dist/client/components/index.d.mts +0 -80
- package/dist/client/components/locale-switcher.d.mts +0 -2
- package/dist/client/components/locale-switcher.mjs.map +0 -1
- package/dist/client/components/media/media-grid.mjs.map +0 -1
- package/dist/client/components/media/media-picker-dialog.mjs.map +0 -1
- package/dist/client/components/preview/live-preview-mode.mjs.map +0 -1
- package/dist/client/components/preview/preview-pane.mjs.map +0 -1
- package/dist/client/components/primitives/asset-preview.mjs.map +0 -1
- package/dist/client/components/primitives/checkbox-input.mjs.map +0 -1
- package/dist/client/components/primitives/date-input.mjs.map +0 -1
- package/dist/client/components/primitives/dropzone.mjs.map +0 -1
- package/dist/client/components/primitives/number-input.mjs.map +0 -1
- package/dist/client/components/primitives/select-multi.mjs.map +0 -1
- package/dist/client/components/primitives/select-single.mjs.map +0 -1
- package/dist/client/components/primitives/text-input.mjs.map +0 -1
- package/dist/client/components/primitives/textarea-input.mjs.map +0 -1
- package/dist/client/components/primitives/time-input.mjs.map +0 -1
- package/dist/client/components/primitives/toggle-input.mjs.map +0 -1
- package/dist/client/components/primitives/types.d.mts +0 -14
- package/dist/client/components/primitives/types.d.mts.map +0 -1
- package/dist/client/components/primitives/types.mjs.map +0 -1
- package/dist/client/components/sheets/index.d.mts +0 -1
- package/dist/client/components/sheets/resource-sheet.d.mts +0 -1
- package/dist/client/components/sheets/resource-sheet.mjs.map +0 -1
- package/dist/client/components/ui/accordion.d.mts +0 -2
- package/dist/client/components/ui/accordion.mjs.map +0 -1
- package/dist/client/components/ui/alert.mjs.map +0 -1
- package/dist/client/components/ui/avatar.d.mts +0 -3
- package/dist/client/components/ui/badge.d.mts +0 -3
- package/dist/client/components/ui/badge.mjs.map +0 -1
- package/dist/client/components/ui/button.d.mts +0 -3
- package/dist/client/components/ui/button.mjs.map +0 -1
- package/dist/client/components/ui/card.d.mts +0 -2
- package/dist/client/components/ui/card.mjs.map +0 -1
- package/dist/client/components/ui/checkbox.d.mts +0 -2
- package/dist/client/components/ui/checkbox.mjs.map +0 -1
- package/dist/client/components/ui/combobox.d.mts +0 -3
- package/dist/client/components/ui/command.mjs.map +0 -1
- package/dist/client/components/ui/dialog.d.mts +0 -3
- package/dist/client/components/ui/dialog.mjs.map +0 -1
- package/dist/client/components/ui/drawer.mjs.map +0 -1
- package/dist/client/components/ui/dropdown-menu.d.mts +0 -3
- package/dist/client/components/ui/dropdown-menu.mjs.map +0 -1
- package/dist/client/components/ui/empty-state.mjs.map +0 -1
- package/dist/client/components/ui/field.d.mts +0 -3
- package/dist/client/components/ui/field.mjs.map +0 -1
- package/dist/client/components/ui/input-group.d.mts +0 -4
- package/dist/client/components/ui/input-group.mjs.map +0 -1
- package/dist/client/components/ui/input.d.mts +0 -2
- package/dist/client/components/ui/input.mjs.map +0 -1
- package/dist/client/components/ui/kbd.mjs.map +0 -1
- package/dist/client/components/ui/label.d.mts +0 -2
- package/dist/client/components/ui/label.mjs.map +0 -1
- package/dist/client/components/ui/popover.d.mts +0 -3
- package/dist/client/components/ui/popover.mjs.map +0 -1
- package/dist/client/components/ui/responsive-dialog.mjs.map +0 -1
- package/dist/client/components/ui/scroll-area.d.mts +0 -2
- package/dist/client/components/ui/search-input.mjs.map +0 -1
- package/dist/client/components/ui/select.d.mts +0 -3
- package/dist/client/components/ui/select.mjs.map +0 -1
- package/dist/client/components/ui/separator.d.mts +0 -2
- package/dist/client/components/ui/separator.mjs.map +0 -1
- package/dist/client/components/ui/sheet.d.mts +0 -3
- package/dist/client/components/ui/sheet.mjs.map +0 -1
- package/dist/client/components/ui/sidebar.d.mts +0 -8
- package/dist/client/components/ui/sidebar.mjs.map +0 -1
- package/dist/client/components/ui/skeleton.d.mts +0 -1
- package/dist/client/components/ui/skeleton.mjs.map +0 -1
- package/dist/client/components/ui/sonner.d.mts.map +0 -1
- package/dist/client/components/ui/sonner.mjs.map +0 -1
- package/dist/client/components/ui/spinner.d.mts +0 -1
- package/dist/client/components/ui/spinner.mjs.map +0 -1
- package/dist/client/components/ui/switch.d.mts +0 -2
- package/dist/client/components/ui/switch.mjs.map +0 -1
- package/dist/client/components/ui/table.d.mts +0 -2
- package/dist/client/components/ui/table.mjs.map +0 -1
- package/dist/client/components/ui/tabs.d.mts +0 -3
- package/dist/client/components/ui/tabs.mjs.map +0 -1
- package/dist/client/components/ui/textarea.d.mts +0 -2
- package/dist/client/components/ui/textarea.mjs.map +0 -1
- package/dist/client/components/ui/toolbar.mjs.map +0 -1
- package/dist/client/components/ui/tooltip.d.mts +0 -2
- package/dist/client/components/ui/tooltip.mjs.map +0 -1
- package/dist/client/components/widgets/chart-widget.d.mts +0 -57
- package/dist/client/components/widgets/chart-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/chart-widget.mjs.map +0 -1
- package/dist/client/components/widgets/progress-widget.d.mts +0 -41
- package/dist/client/components/widgets/progress-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/progress-widget.mjs.map +0 -1
- package/dist/client/components/widgets/quick-actions-widget.d.mts +0 -29
- package/dist/client/components/widgets/quick-actions-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/quick-actions-widget.mjs.map +0 -1
- package/dist/client/components/widgets/recent-items-widget.d.mts +0 -51
- package/dist/client/components/widgets/recent-items-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/recent-items-widget.mjs.map +0 -1
- package/dist/client/components/widgets/stats-widget.d.mts +0 -55
- package/dist/client/components/widgets/stats-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/stats-widget.mjs.map +0 -1
- package/dist/client/components/widgets/table-widget.d.mts +0 -31
- package/dist/client/components/widgets/table-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/table-widget.mjs.map +0 -1
- package/dist/client/components/widgets/timeline-widget.d.mts +0 -51
- package/dist/client/components/widgets/timeline-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/timeline-widget.mjs.map +0 -1
- package/dist/client/components/widgets/value-widget.d.mts +0 -39
- package/dist/client/components/widgets/value-widget.d.mts.map +0 -1
- package/dist/client/components/widgets/value-widget.mjs.map +0 -1
- package/dist/client/components/widgets/widget-skeletons.mjs.map +0 -1
- package/dist/client/context/focus-context.d.mts.map +0 -1
- package/dist/client/context/focus-context.mjs.map +0 -1
- package/dist/client/contexts/breadcrumb-context.mjs.map +0 -1
- package/dist/client/hooks/typed-hooks.d.mts.map +0 -1
- package/dist/client/hooks/typed-hooks.mjs.map +0 -1
- package/dist/client/hooks/use-action.mjs.map +0 -1
- package/dist/client/hooks/use-admin-config.mjs.map +0 -1
- package/dist/client/hooks/use-admin-preferences.mjs.map +0 -1
- package/dist/client/hooks/use-admin-routes.mjs.map +0 -1
- package/dist/client/hooks/use-auth.d.mts.map +0 -1
- package/dist/client/hooks/use-auth.mjs.map +0 -1
- package/dist/client/hooks/use-collection-fields.mjs.map +0 -1
- package/dist/client/hooks/use-collection-meta.mjs.map +0 -1
- package/dist/client/hooks/use-collection-schema.mjs.map +0 -1
- package/dist/client/hooks/use-collection-validation.mjs.map +0 -1
- package/dist/client/hooks/use-collection.d.mts.map +0 -1
- package/dist/client/hooks/use-collection.mjs.map +0 -1
- package/dist/client/hooks/use-current-user.d.mts.map +0 -1
- package/dist/client/hooks/use-current-user.mjs.map +0 -1
- package/dist/client/hooks/use-field-hooks.mjs.map +0 -1
- package/dist/client/hooks/use-field-options.d.mts.map +0 -1
- package/dist/client/hooks/use-field-options.mjs.map +0 -1
- package/dist/client/hooks/use-global-fields.mjs.map +0 -1
- package/dist/client/hooks/use-global-meta.mjs.map +0 -1
- package/dist/client/hooks/use-global-schema.mjs.map +0 -1
- package/dist/client/hooks/use-global.d.mts.map +0 -1
- package/dist/client/hooks/use-global.mjs.map +0 -1
- package/dist/client/hooks/use-locks.mjs.map +0 -1
- package/dist/client/hooks/use-media-query.d.mts.map +0 -1
- package/dist/client/hooks/use-media-query.mjs.map +0 -1
- package/dist/client/hooks/use-prefill-params.mjs.map +0 -1
- package/dist/client/hooks/use-questpie-query-options.mjs.map +0 -1
- package/dist/client/hooks/use-reactive-fields.d.mts.map +0 -1
- package/dist/client/hooks/use-reactive-fields.mjs.map +0 -1
- package/dist/client/hooks/use-realtime-highlight.mjs.map +0 -1
- package/dist/client/hooks/use-saved-views.mjs.map +0 -1
- package/dist/client/hooks/use-search.mjs.map +0 -1
- package/dist/client/hooks/use-server-validation.mjs.map +0 -1
- package/dist/client/hooks/use-server-widget-data.d.mts.map +0 -1
- package/dist/client/hooks/use-server-widget-data.mjs.map +0 -1
- package/dist/client/hooks/use-setup-status.d.mts.map +0 -1
- package/dist/client/hooks/use-setup-status.mjs.map +0 -1
- package/dist/client/hooks/use-upload-collection.mjs.map +0 -1
- package/dist/client/hooks/use-upload.d.mts +0 -23
- package/dist/client/hooks/use-upload.d.mts.map +0 -1
- package/dist/client/hooks/use-upload.mjs.map +0 -1
- package/dist/client/hooks/use-validation-error-map.mjs.map +0 -1
- package/dist/client/hooks/use-view-state.mjs.map +0 -1
- package/dist/client/i18n/hooks.mjs.map +0 -1
- package/dist/client/i18n/intl-cache.mjs.map +0 -1
- package/dist/client/i18n/messages.mjs.map +0 -1
- package/dist/client/i18n/simple.d.mts.map +0 -1
- package/dist/client/i18n/simple.mjs.map +0 -1
- package/dist/client/i18n/types.d.mts.map +0 -1
- package/dist/client/lib/utils.d.mts +0 -1
- package/dist/client/lib/utils.mjs.map +0 -1
- package/dist/client/preview/block-scope-context.d.mts.map +0 -1
- package/dist/client/preview/block-scope-context.mjs.map +0 -1
- package/dist/client/preview/preview-banner.d.mts.map +0 -1
- package/dist/client/preview/preview-banner.mjs.map +0 -1
- package/dist/client/preview/preview-field.d.mts.map +0 -1
- package/dist/client/preview/preview-field.mjs.map +0 -1
- package/dist/client/preview/types.d.mts.map +0 -1
- package/dist/client/preview/types.mjs.map +0 -1
- package/dist/client/preview/use-collection-preview.d.mts.map +0 -1
- package/dist/client/preview/use-collection-preview.mjs.map +0 -1
- package/dist/client/runtime/content-locales-provider.mjs.map +0 -1
- package/dist/client/runtime/locale-scope.mjs.map +0 -1
- package/dist/client/runtime/provider.d.mts.map +0 -1
- package/dist/client/runtime/provider.mjs.map +0 -1
- package/dist/client/runtime/routes.d.mts.map +0 -1
- package/dist/client/runtime/routes.mjs.map +0 -1
- package/dist/client/runtime/translations-provider.d.mts +0 -2
- package/dist/client/runtime/translations-provider.mjs.map +0 -1
- package/dist/client/scope/picker.d.mts.map +0 -1
- package/dist/client/scope/picker.mjs.map +0 -1
- package/dist/client/scope/provider.d.mts.map +0 -1
- package/dist/client/scope/provider.mjs.map +0 -1
- package/dist/client/scope/types.d.mts.map +0 -1
- package/dist/client/utils/auto-expand-fields.mjs.map +0 -1
- package/dist/client/utils/build-field-definitions-from-schema.mjs.map +0 -1
- package/dist/client/utils/detect-relations.mjs.map +0 -1
- package/dist/client/utils/locale-to-flag.d.mts.map +0 -1
- package/dist/client/utils/locale-to-flag.mjs.map +0 -1
- package/dist/client/utils/routes.mjs.map +0 -1
- package/dist/client/views/auth/accept-invite-form.d.mts.map +0 -1
- package/dist/client/views/auth/accept-invite-form.mjs.map +0 -1
- package/dist/client/views/auth/auth-layout.d.mts.map +0 -1
- package/dist/client/views/auth/auth-layout.mjs.map +0 -1
- package/dist/client/views/auth/forgot-password-form.d.mts.map +0 -1
- package/dist/client/views/auth/forgot-password-form.mjs.map +0 -1
- package/dist/client/views/auth/index.d.mts +0 -7
- package/dist/client/views/auth/invite-form.d.mts +0 -1
- package/dist/client/views/auth/invite-form.mjs.map +0 -1
- package/dist/client/views/auth/login-form.d.mts.map +0 -1
- package/dist/client/views/auth/login-form.mjs.map +0 -1
- package/dist/client/views/auth/reset-password-form.d.mts.map +0 -1
- package/dist/client/views/auth/reset-password-form.mjs.map +0 -1
- package/dist/client/views/auth/setup-form.d.mts.map +0 -1
- package/dist/client/views/auth/setup-form.mjs.map +0 -1
- package/dist/client/views/collection/auto-form-fields.d.mts +0 -4
- package/dist/client/views/collection/auto-form-fields.mjs.map +0 -1
- package/dist/client/views/collection/bulk-action-toolbar.mjs.map +0 -1
- package/dist/client/views/collection/cells/complex-cells.d.mts +0 -46
- package/dist/client/views/collection/cells/complex-cells.d.mts.map +0 -1
- package/dist/client/views/collection/cells/complex-cells.mjs.map +0 -1
- package/dist/client/views/collection/cells/index.d.mts +0 -7
- package/dist/client/views/collection/cells/primitive-cells.d.mts +0 -76
- package/dist/client/views/collection/cells/primitive-cells.d.mts.map +0 -1
- package/dist/client/views/collection/cells/primitive-cells.mjs.map +0 -1
- package/dist/client/views/collection/cells/relation-cells.d.mts +0 -21
- package/dist/client/views/collection/cells/relation-cells.d.mts.map +0 -1
- package/dist/client/views/collection/cells/relation-cells.mjs.map +0 -1
- package/dist/client/views/collection/cells/shared/asset-thumbnail.d.mts +0 -1
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs.map +0 -1
- package/dist/client/views/collection/cells/shared/cell-helpers.d.mts +0 -2
- package/dist/client/views/collection/cells/shared/cell-helpers.mjs.map +0 -1
- package/dist/client/views/collection/cells/shared/relation-chip.d.mts +0 -1
- package/dist/client/views/collection/cells/shared/relation-chip.mjs.map +0 -1
- package/dist/client/views/collection/cells/upload-cells.d.mts +0 -25
- package/dist/client/views/collection/cells/upload-cells.d.mts.map +0 -1
- package/dist/client/views/collection/cells/upload-cells.mjs.map +0 -1
- package/dist/client/views/collection/columns/build-columns.d.mts +0 -2
- package/dist/client/views/collection/columns/build-columns.mjs.map +0 -1
- package/dist/client/views/collection/columns/column-defaults.d.mts +0 -2
- package/dist/client/views/collection/columns/column-defaults.mjs.map +0 -1
- package/dist/client/views/collection/columns/index.d.mts +0 -3
- package/dist/client/views/collection/columns/types.d.mts +0 -2
- package/dist/client/views/collection/field-context.mjs.map +0 -1
- package/dist/client/views/collection/field-renderer.mjs.map +0 -1
- package/dist/client/views/collection/form-view.d.mts +0 -112
- package/dist/client/views/collection/form-view.d.mts.map +0 -1
- package/dist/client/views/collection/form-view.mjs.map +0 -1
- package/dist/client/views/collection/index.d.mts +0 -9
- package/dist/client/views/collection/table-view.d.mts +0 -102
- package/dist/client/views/collection/table-view.d.mts.map +0 -1
- package/dist/client/views/collection/table-view.mjs.map +0 -1
- package/dist/client/views/collection/view-skeletons.mjs.map +0 -1
- package/dist/client/views/common/global-search.d.mts +0 -1
- package/dist/client/views/common/global-search.mjs.map +0 -1
- package/dist/client/views/common/index.d.mts +0 -1
- package/dist/client/views/dashboard/dashboard-grid.mjs.map +0 -1
- package/dist/client/views/dashboard/dashboard-widget.mjs.map +0 -1
- package/dist/client/views/dashboard/widget-card.mjs.map +0 -1
- package/dist/client/views/globals/global-form-view.d.mts +0 -74
- package/dist/client/views/globals/global-form-view.d.mts.map +0 -1
- package/dist/client/views/globals/global-form-view.mjs.map +0 -1
- package/dist/client/views/index.d.mts +0 -28
- package/dist/client/views/layout/admin-layout-provider.d.mts.map +0 -1
- package/dist/client/views/layout/admin-layout-provider.mjs.map +0 -1
- package/dist/client/views/layout/admin-layout.d.mts.map +0 -1
- package/dist/client/views/layout/admin-layout.mjs.map +0 -1
- package/dist/client/views/layout/admin-root.d.mts +0 -7
- package/dist/client/views/layout/admin-router.d.mts.map +0 -1
- package/dist/client/views/layout/admin-router.mjs.map +0 -1
- package/dist/client/views/layout/admin-sidebar.d.mts.map +0 -1
- package/dist/client/views/layout/admin-sidebar.mjs.map +0 -1
- package/dist/client/views/layout/admin-topbar.mjs.map +0 -1
- package/dist/client/views/layout/index.d.mts +0 -5
- package/dist/client/views/pages/accept-invite-page.d.mts.map +0 -1
- package/dist/client/views/pages/accept-invite-page.mjs.map +0 -1
- package/dist/client/views/pages/dashboard-page.d.mts.map +0 -1
- package/dist/client/views/pages/dashboard-page.mjs.map +0 -1
- package/dist/client/views/pages/forgot-password-page.d.mts.map +0 -1
- package/dist/client/views/pages/forgot-password-page.mjs.map +0 -1
- package/dist/client/views/pages/index.d.mts +0 -7
- package/dist/client/views/pages/invite-page.d.mts.map +0 -1
- package/dist/client/views/pages/invite-page.mjs.map +0 -1
- package/dist/client/views/pages/login-page.d.mts.map +0 -1
- package/dist/client/views/pages/login-page.mjs.map +0 -1
- package/dist/client/views/pages/reset-password-page.d.mts.map +0 -1
- package/dist/client/views/pages/reset-password-page.mjs.map +0 -1
- package/dist/client/views/pages/setup-page.d.mts.map +0 -1
- package/dist/client/views/pages/setup-page.mjs.map +0 -1
- package/dist/client.d.mts.map +0 -1
- package/dist/components/rich-text/rich-text-renderer.d.mts.map +0 -1
- package/dist/components/rich-text/rich-text-renderer.mjs.map +0 -1
- package/dist/server/adapters/nextjs.d.mts.map +0 -1
- package/dist/server/adapters/nextjs.mjs.map +0 -1
- package/dist/server/adapters/tanstack.d.mts.map +0 -1
- package/dist/server/adapters/tanstack.mjs.map +0 -1
- package/dist/server/augmentation.d.mts.map +0 -1
- package/dist/server/auth-helpers.d.mts.map +0 -1
- package/dist/server/auth-helpers.mjs.map +0 -1
- package/dist/server/block/block-builder.d.mts.map +0 -1
- package/dist/server/block/block-builder.mjs.map +0 -1
- package/dist/server/block/introspection.d.mts.map +0 -1
- package/dist/server/block/introspection.mjs.map +0 -1
- package/dist/server/block/prefetch.d.mts.map +0 -1
- package/dist/server/block/prefetch.mjs.map +0 -1
- package/dist/server/fields/blocks.d.mts.map +0 -1
- package/dist/server/fields/blocks.mjs.map +0 -1
- package/dist/server/fields/index.d.mts.map +0 -1
- package/dist/server/fields/index.mjs.map +0 -1
- package/dist/server/fields/rich-text.d.mts.map +0 -1
- package/dist/server/fields/rich-text.mjs.map +0 -1
- package/dist/server/i18n/index.d.mts +0 -16
- package/dist/server/i18n/index.d.mts.map +0 -1
- package/dist/server/i18n/index.mjs.map +0 -1
- package/dist/server/i18n/messages/cs.mjs.map +0 -1
- package/dist/server/i18n/messages/de.mjs.map +0 -1
- package/dist/server/i18n/messages/en.mjs.map +0 -1
- package/dist/server/i18n/messages/es.mjs.map +0 -1
- package/dist/server/i18n/messages/fr.mjs.map +0 -1
- package/dist/server/i18n/messages/index.mjs.map +0 -1
- package/dist/server/i18n/messages/pl.mjs.map +0 -1
- package/dist/server/i18n/messages/pt.mjs.map +0 -1
- package/dist/server/i18n/messages/sk.mjs.map +0 -1
- package/dist/server/index.d.mts +0 -20
- package/dist/server/modules/admin/functions/admin-config.mjs +0 -348
- package/dist/server/modules/admin/functions/admin-config.mjs.map +0 -1
- package/dist/server/modules/admin/functions/execute-action.d.mts.map +0 -1
- package/dist/server/modules/admin/functions/execute-action.mjs.map +0 -1
- package/dist/server/modules/admin/functions/locales.mjs +0 -80
- package/dist/server/modules/admin/functions/locales.mjs.map +0 -1
- package/dist/server/modules/admin/functions/preview.d.mts.map +0 -1
- package/dist/server/modules/admin/functions/preview.mjs.map +0 -1
- package/dist/server/modules/admin/functions/reactive.d.mts.map +0 -1
- package/dist/server/modules/admin/functions/reactive.mjs.map +0 -1
- package/dist/server/modules/admin/functions/setup.d.mts.map +0 -1
- package/dist/server/modules/admin/functions/setup.mjs +0 -131
- package/dist/server/modules/admin/functions/setup.mjs.map +0 -1
- package/dist/server/modules/admin/functions/translations.mjs +0 -125
- package/dist/server/modules/admin/functions/translations.mjs.map +0 -1
- package/dist/server/modules/admin/functions/widget-data.d.mts +0 -33
- package/dist/server/modules/admin/functions/widget-data.d.mts.map +0 -1
- package/dist/server/modules/admin/functions/widget-data.mjs +0 -70
- package/dist/server/modules/admin/functions/widget-data.mjs.map +0 -1
- package/dist/server/modules/admin/index.d.mts.map +0 -1
- package/dist/server/modules/admin/index.mjs.map +0 -1
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.d.mts +0 -3
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.mjs.map +0 -1
- package/dist/server/modules/admin-preferences/collections/locks.collection.d.mts +0 -3
- package/dist/server/modules/admin-preferences/collections/locks.collection.mjs.map +0 -1
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.d.mts +0 -1490
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.d.mts.map +0 -1
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.mjs +0 -57
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.mjs.map +0 -1
- package/dist/server/patch.d.mts +0 -100
- package/dist/server/patch.d.mts.map +0 -1
- package/dist/server/patch.mjs +0 -1062
- package/dist/server/patch.mjs.map +0 -1
- package/dist/shared/preview-utils.d.mts.map +0 -1
- package/dist/shared/preview-utils.mjs.map +0 -1
- package/dist/shared/types/saved-views.types.d.mts.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { useResolveText } from "../../i18n/hooks.mjs";
|
|
1
|
+
import { useResolveText, useTranslation } from "../../i18n/hooks.mjs";
|
|
2
2
|
import { cn } from "../../lib/utils.mjs";
|
|
3
3
|
import { resolveIconElement } from "../../components/component-renderer.mjs";
|
|
4
4
|
import { Button } from "../../components/ui/button.mjs";
|
|
5
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../../components/ui/accordion.mjs";
|
|
6
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../components/ui/tabs.mjs";
|
|
7
5
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../components/ui/dropdown-menu.mjs";
|
|
8
6
|
import { Card, CardContent, CardHeader, CardTitle } from "../../components/ui/card.mjs";
|
|
7
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../../components/ui/accordion.mjs";
|
|
8
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../components/ui/tabs.mjs";
|
|
9
9
|
import { DashboardWidget } from "./dashboard-widget.mjs";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
10
11
|
import { Icon } from "@iconify/react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
|
|
@@ -23,8 +24,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
23
24
|
* - Recursive nesting of sections/tabs
|
|
24
25
|
*/
|
|
25
26
|
/**
|
|
26
|
-
* Grid column classes for different column counts
|
|
27
|
-
* Uses
|
|
27
|
+
* Grid column classes for different column counts.
|
|
28
|
+
* Uses CSS grid with auto rows — each widget takes its natural height.
|
|
28
29
|
*/
|
|
29
30
|
const gridClasses = {
|
|
30
31
|
1: "grid-cols-1",
|
|
@@ -36,9 +37,7 @@ const gridClasses = {
|
|
|
36
37
|
12: "grid-cols-1 @xs:grid-cols-2 @sm:grid-cols-4 @md:grid-cols-6 @lg:grid-cols-12"
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
|
-
* Span classes for widget column spanning
|
|
40
|
-
* - span:1 widgets can be 2x2 on @xs (half width each)
|
|
41
|
-
* - span:2+ widgets are full width on mobile/tablet, then expand at larger breakpoints
|
|
40
|
+
* Span classes for widget column spanning.
|
|
42
41
|
*/
|
|
43
42
|
const spanClasses = {
|
|
44
43
|
1: "col-span-1",
|
|
@@ -93,207 +92,562 @@ function getLayoutItemKey(item, index) {
|
|
|
93
92
|
if (isTabsConfig(item)) return `tabs-${item.tabs.map((t) => t.id).join("-") || index}`;
|
|
94
93
|
return `item-${index}`;
|
|
95
94
|
}
|
|
96
|
-
function DashboardHeader(
|
|
95
|
+
function DashboardHeader(t0) {
|
|
96
|
+
const $ = c(15);
|
|
97
|
+
const { title, description, actions, navigate, resolveText } = t0;
|
|
97
98
|
if (!title && !description && !actions?.length) return null;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
let t1;
|
|
100
|
+
if ($[0] !== navigate) {
|
|
101
|
+
t1 = (action) => {
|
|
102
|
+
if (action.onClick) action.onClick();
|
|
103
|
+
else if (action.href && navigate) navigate(action.href);
|
|
104
|
+
};
|
|
105
|
+
$[0] = navigate;
|
|
106
|
+
$[1] = t1;
|
|
107
|
+
} else t1 = $[1];
|
|
108
|
+
const handleActionClick = t1;
|
|
109
|
+
let t2;
|
|
110
|
+
if ($[2] !== actions || $[3] !== description || $[4] !== handleActionClick || $[5] !== resolveText || $[6] !== title) {
|
|
111
|
+
const primaryAction = actions?.find(_temp) || actions?.[0];
|
|
112
|
+
const secondaryActions = actions?.filter((a_0) => a_0 !== primaryAction) || [];
|
|
113
|
+
let t3;
|
|
114
|
+
if ($[8] !== title) {
|
|
115
|
+
t3 = title && /* @__PURE__ */ jsx("h1", {
|
|
116
|
+
className: "qa-dashboard__title text-2xl font-extrabold tracking-tight md:text-3xl",
|
|
110
117
|
children: title
|
|
111
|
-
})
|
|
112
|
-
|
|
118
|
+
});
|
|
119
|
+
$[8] = title;
|
|
120
|
+
$[9] = t3;
|
|
121
|
+
} else t3 = $[9];
|
|
122
|
+
let t4;
|
|
123
|
+
if ($[10] !== description) {
|
|
124
|
+
t4 = description && /* @__PURE__ */ jsx("p", {
|
|
125
|
+
className: "qa-dashboard__description text-muted-foreground mt-1",
|
|
113
126
|
children: description
|
|
127
|
+
});
|
|
128
|
+
$[10] = description;
|
|
129
|
+
$[11] = t4;
|
|
130
|
+
} else t4 = $[11];
|
|
131
|
+
let t5;
|
|
132
|
+
if ($[12] !== t3 || $[13] !== t4) {
|
|
133
|
+
t5 = /* @__PURE__ */ jsxs("div", {
|
|
134
|
+
className: "min-w-0 flex-1",
|
|
135
|
+
children: [t3, t4]
|
|
136
|
+
});
|
|
137
|
+
$[12] = t3;
|
|
138
|
+
$[13] = t4;
|
|
139
|
+
$[14] = t5;
|
|
140
|
+
} else t5 = $[14];
|
|
141
|
+
t2 = /* @__PURE__ */ jsxs("div", {
|
|
142
|
+
className: "qa-dashboard__header mb-8 flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
143
|
+
children: [t5, actions && actions.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
144
|
+
className: "flex shrink-0 items-center gap-2",
|
|
145
|
+
children: [
|
|
146
|
+
primaryAction && /* @__PURE__ */ jsxs(Button, {
|
|
147
|
+
variant: primaryAction.variant === "primary" ? "default" : primaryAction.variant || "default",
|
|
148
|
+
onClick: () => handleActionClick(primaryAction),
|
|
149
|
+
children: [resolveIconElement(primaryAction.icon, { "data-icon": "inline-start" }), resolveText(primaryAction.label)]
|
|
150
|
+
}, primaryAction.id),
|
|
151
|
+
secondaryActions.map((action_0) => {
|
|
152
|
+
const iconElement = resolveIconElement(action_0.icon, { "data-icon": "inline-start" });
|
|
153
|
+
const variant = action_0.variant || "default";
|
|
154
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
155
|
+
variant: variant === "primary" ? "default" : variant,
|
|
156
|
+
onClick: () => handleActionClick(action_0),
|
|
157
|
+
className: "hidden md:inline-flex",
|
|
158
|
+
children: [iconElement, resolveText(action_0.label)]
|
|
159
|
+
}, action_0.id);
|
|
160
|
+
}),
|
|
161
|
+
secondaryActions.length > 0 && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
162
|
+
variant: "outline",
|
|
163
|
+
size: "icon",
|
|
164
|
+
className: "md:hidden",
|
|
165
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
166
|
+
icon: "ph:dots-three-vertical",
|
|
167
|
+
className: "size-4"
|
|
168
|
+
})
|
|
169
|
+
}) }), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
170
|
+
align: "end",
|
|
171
|
+
children: secondaryActions.map((action_1) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
172
|
+
onClick: () => handleActionClick(action_1),
|
|
173
|
+
children: [resolveIconElement(action_1.icon, { className: "size-4 mr-2" }), resolveText(action_1.label)]
|
|
174
|
+
}, action_1.id))
|
|
175
|
+
})] })
|
|
176
|
+
]
|
|
114
177
|
})]
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const iconElement = resolveIconElement(action.icon, { "data-icon": "inline-start" });
|
|
125
|
-
const variant = action.variant || "default";
|
|
126
|
-
return /* @__PURE__ */ jsxs(Button, {
|
|
127
|
-
variant: variant === "primary" ? "default" : variant,
|
|
128
|
-
onClick: () => handleActionClick(action),
|
|
129
|
-
className: "hidden md:inline-flex",
|
|
130
|
-
children: [iconElement, resolveText(action.label)]
|
|
131
|
-
}, action.id);
|
|
132
|
-
}),
|
|
133
|
-
secondaryActions.length > 0 && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
134
|
-
variant: "outline",
|
|
135
|
-
size: "icon",
|
|
136
|
-
className: "md:hidden",
|
|
137
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
138
|
-
icon: "ph:dots-three-vertical",
|
|
139
|
-
className: "size-4"
|
|
140
|
-
})
|
|
141
|
-
}) }), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
142
|
-
align: "end",
|
|
143
|
-
children: secondaryActions.map((action) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
144
|
-
onClick: () => handleActionClick(action),
|
|
145
|
-
children: [resolveIconElement(action.icon, { className: "size-4 mr-2" }), resolveText(action.label)]
|
|
146
|
-
}, action.id))
|
|
147
|
-
})] })
|
|
148
|
-
]
|
|
149
|
-
})]
|
|
150
|
-
});
|
|
178
|
+
});
|
|
179
|
+
$[2] = actions;
|
|
180
|
+
$[3] = description;
|
|
181
|
+
$[4] = handleActionClick;
|
|
182
|
+
$[5] = resolveText;
|
|
183
|
+
$[6] = title;
|
|
184
|
+
$[7] = t2;
|
|
185
|
+
} else t2 = $[7];
|
|
186
|
+
return t2;
|
|
151
187
|
}
|
|
152
|
-
function
|
|
188
|
+
function _temp(a) {
|
|
189
|
+
return a.variant === "primary";
|
|
190
|
+
}
|
|
191
|
+
function LayoutItemRenderer(t0) {
|
|
192
|
+
const $ = c(26);
|
|
193
|
+
const { item, basePath, navigate, widgetRegistry, resolveText, dashboardRealtime } = t0;
|
|
153
194
|
if (isWidgetConfig(item)) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
195
|
+
let t1;
|
|
196
|
+
let widgetConfig;
|
|
197
|
+
if ($[0] !== dashboardRealtime || $[1] !== item) {
|
|
198
|
+
const spanClass = getSpanClass(item.span);
|
|
199
|
+
widgetConfig = dashboardRealtime !== void 0 && item.realtime === void 0 ? {
|
|
200
|
+
...item,
|
|
201
|
+
realtime: dashboardRealtime
|
|
202
|
+
} : item;
|
|
203
|
+
t1 = cn(spanClass, item.className);
|
|
204
|
+
$[0] = dashboardRealtime;
|
|
205
|
+
$[1] = item;
|
|
206
|
+
$[2] = t1;
|
|
207
|
+
$[3] = widgetConfig;
|
|
208
|
+
} else {
|
|
209
|
+
t1 = $[2];
|
|
210
|
+
widgetConfig = $[3];
|
|
211
|
+
}
|
|
212
|
+
let t2;
|
|
213
|
+
if ($[4] !== basePath || $[5] !== navigate || $[6] !== widgetConfig || $[7] !== widgetRegistry) {
|
|
214
|
+
t2 = /* @__PURE__ */ jsx(DashboardWidget, {
|
|
162
215
|
config: widgetConfig,
|
|
163
216
|
basePath,
|
|
164
217
|
navigate,
|
|
165
218
|
widgetRegistry
|
|
166
|
-
})
|
|
167
|
-
|
|
219
|
+
});
|
|
220
|
+
$[4] = basePath;
|
|
221
|
+
$[5] = navigate;
|
|
222
|
+
$[6] = widgetConfig;
|
|
223
|
+
$[7] = widgetRegistry;
|
|
224
|
+
$[8] = t2;
|
|
225
|
+
} else t2 = $[8];
|
|
226
|
+
let t3;
|
|
227
|
+
if ($[9] !== t1 || $[10] !== t2) {
|
|
228
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
229
|
+
className: t1,
|
|
230
|
+
children: t2
|
|
231
|
+
});
|
|
232
|
+
$[9] = t1;
|
|
233
|
+
$[10] = t2;
|
|
234
|
+
$[11] = t3;
|
|
235
|
+
} else t3 = $[11];
|
|
236
|
+
return t3;
|
|
237
|
+
}
|
|
238
|
+
if (isSectionConfig(item)) {
|
|
239
|
+
let t1;
|
|
240
|
+
if ($[12] !== basePath || $[13] !== dashboardRealtime || $[14] !== item || $[15] !== navigate || $[16] !== resolveText || $[17] !== widgetRegistry) {
|
|
241
|
+
t1 = /* @__PURE__ */ jsx(SectionRenderer, {
|
|
242
|
+
section: item,
|
|
243
|
+
basePath,
|
|
244
|
+
navigate,
|
|
245
|
+
widgetRegistry,
|
|
246
|
+
resolveText,
|
|
247
|
+
dashboardRealtime
|
|
248
|
+
});
|
|
249
|
+
$[12] = basePath;
|
|
250
|
+
$[13] = dashboardRealtime;
|
|
251
|
+
$[14] = item;
|
|
252
|
+
$[15] = navigate;
|
|
253
|
+
$[16] = resolveText;
|
|
254
|
+
$[17] = widgetRegistry;
|
|
255
|
+
$[18] = t1;
|
|
256
|
+
} else t1 = $[18];
|
|
257
|
+
return t1;
|
|
258
|
+
}
|
|
259
|
+
if (isTabsConfig(item)) {
|
|
260
|
+
let t1;
|
|
261
|
+
if ($[19] !== basePath || $[20] !== dashboardRealtime || $[21] !== item || $[22] !== navigate || $[23] !== resolveText || $[24] !== widgetRegistry) {
|
|
262
|
+
t1 = /* @__PURE__ */ jsx(TabsRenderer, {
|
|
263
|
+
tabs: item,
|
|
264
|
+
basePath,
|
|
265
|
+
navigate,
|
|
266
|
+
widgetRegistry,
|
|
267
|
+
resolveText,
|
|
268
|
+
dashboardRealtime
|
|
269
|
+
});
|
|
270
|
+
$[19] = basePath;
|
|
271
|
+
$[20] = dashboardRealtime;
|
|
272
|
+
$[21] = item;
|
|
273
|
+
$[22] = navigate;
|
|
274
|
+
$[23] = resolveText;
|
|
275
|
+
$[24] = widgetRegistry;
|
|
276
|
+
$[25] = t1;
|
|
277
|
+
} else t1 = $[25];
|
|
278
|
+
return t1;
|
|
168
279
|
}
|
|
169
|
-
if (isSectionConfig(item)) return /* @__PURE__ */ jsx(SectionRenderer, {
|
|
170
|
-
section: item,
|
|
171
|
-
basePath,
|
|
172
|
-
navigate,
|
|
173
|
-
widgetRegistry,
|
|
174
|
-
resolveText,
|
|
175
|
-
dashboardRealtime
|
|
176
|
-
}, `section-${index}`);
|
|
177
|
-
if (isTabsConfig(item)) return /* @__PURE__ */ jsx(TabsRenderer, {
|
|
178
|
-
tabs: item,
|
|
179
|
-
basePath,
|
|
180
|
-
navigate,
|
|
181
|
-
widgetRegistry,
|
|
182
|
-
resolveText,
|
|
183
|
-
dashboardRealtime
|
|
184
|
-
}, `tabs-${index}`);
|
|
185
280
|
return null;
|
|
186
281
|
}
|
|
187
|
-
function SectionRenderer(
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
282
|
+
function SectionRenderer(t0) {
|
|
283
|
+
const $ = c(71);
|
|
284
|
+
const { section, basePath, navigate, widgetRegistry, resolveText, dashboardRealtime } = t0;
|
|
285
|
+
const { label, description, wrapper: t1, defaultCollapsed: t2, layout: t3, columns: t4, gap, items, className } = section;
|
|
286
|
+
const wrapper = t1 === void 0 ? "flat" : t1;
|
|
287
|
+
const defaultCollapsed = t2 === void 0 ? false : t2;
|
|
288
|
+
const layout = t3 === void 0 ? "grid" : t3;
|
|
289
|
+
const columns = t4 === void 0 ? 4 : t4;
|
|
290
|
+
let t5;
|
|
291
|
+
if ($[0] !== label || $[1] !== resolveText) {
|
|
292
|
+
t5 = label ? resolveText(label) : void 0;
|
|
293
|
+
$[0] = label;
|
|
294
|
+
$[1] = resolveText;
|
|
295
|
+
$[2] = t5;
|
|
296
|
+
} else t5 = $[2];
|
|
297
|
+
const sectionLabel = t5;
|
|
298
|
+
let t6;
|
|
299
|
+
if ($[3] !== description || $[4] !== resolveText) {
|
|
300
|
+
t6 = description ? resolveText(description) : void 0;
|
|
301
|
+
$[3] = description;
|
|
302
|
+
$[4] = resolveText;
|
|
303
|
+
$[5] = t6;
|
|
304
|
+
} else t6 = $[5];
|
|
305
|
+
const sectionDescription = t6;
|
|
306
|
+
const t7 = layout === "grid" && "grid items-start gap-4";
|
|
307
|
+
let t8;
|
|
308
|
+
if ($[6] !== columns || $[7] !== layout || $[8] !== t7) {
|
|
309
|
+
t8 = cn("@container", t7, layout === "grid" && getGridClass(columns), layout === "stack" && "flex flex-col gap-4");
|
|
310
|
+
$[6] = columns;
|
|
311
|
+
$[7] = layout;
|
|
312
|
+
$[8] = t7;
|
|
313
|
+
$[9] = t8;
|
|
314
|
+
} else t8 = $[9];
|
|
315
|
+
let t9;
|
|
316
|
+
if ($[10] !== gap) {
|
|
317
|
+
t9 = gap ? { gap: `${gap * .25}rem` } : void 0;
|
|
318
|
+
$[10] = gap;
|
|
319
|
+
$[11] = t9;
|
|
320
|
+
} else t9 = $[11];
|
|
321
|
+
let t10;
|
|
322
|
+
if ($[12] !== basePath || $[13] !== columns || $[14] !== dashboardRealtime || $[15] !== items || $[16] !== navigate || $[17] !== resolveText || $[18] !== widgetRegistry) {
|
|
323
|
+
let t11$1;
|
|
324
|
+
if ($[20] !== basePath || $[21] !== columns || $[22] !== dashboardRealtime || $[23] !== navigate || $[24] !== resolveText || $[25] !== widgetRegistry) {
|
|
325
|
+
t11$1 = (item, index) => /* @__PURE__ */ jsx(LayoutItemRenderer, {
|
|
326
|
+
item,
|
|
327
|
+
index,
|
|
328
|
+
columns,
|
|
329
|
+
basePath,
|
|
330
|
+
navigate,
|
|
331
|
+
widgetRegistry,
|
|
332
|
+
resolveText,
|
|
333
|
+
dashboardRealtime
|
|
334
|
+
}, getLayoutItemKey(item, index));
|
|
335
|
+
$[20] = basePath;
|
|
336
|
+
$[21] = columns;
|
|
337
|
+
$[22] = dashboardRealtime;
|
|
338
|
+
$[23] = navigate;
|
|
339
|
+
$[24] = resolveText;
|
|
340
|
+
$[25] = widgetRegistry;
|
|
341
|
+
$[26] = t11$1;
|
|
342
|
+
} else t11$1 = $[26];
|
|
343
|
+
t10 = items.map(t11$1);
|
|
344
|
+
$[12] = basePath;
|
|
345
|
+
$[13] = columns;
|
|
346
|
+
$[14] = dashboardRealtime;
|
|
347
|
+
$[15] = items;
|
|
348
|
+
$[16] = navigate;
|
|
349
|
+
$[17] = resolveText;
|
|
350
|
+
$[18] = widgetRegistry;
|
|
351
|
+
$[19] = t10;
|
|
352
|
+
} else t10 = $[19];
|
|
353
|
+
let t11;
|
|
354
|
+
if ($[27] !== t10 || $[28] !== t8 || $[29] !== t9) {
|
|
355
|
+
t11 = /* @__PURE__ */ jsx("div", {
|
|
356
|
+
className: t8,
|
|
357
|
+
style: t9,
|
|
358
|
+
children: t10
|
|
359
|
+
});
|
|
360
|
+
$[27] = t10;
|
|
361
|
+
$[28] = t8;
|
|
362
|
+
$[29] = t9;
|
|
363
|
+
$[30] = t11;
|
|
364
|
+
} else t11 = $[30];
|
|
365
|
+
const itemsContent = t11;
|
|
366
|
+
if (wrapper === "flat") {
|
|
367
|
+
let t12;
|
|
368
|
+
if ($[31] !== className) {
|
|
369
|
+
t12 = cn("col-span-full", className);
|
|
370
|
+
$[31] = className;
|
|
371
|
+
$[32] = t12;
|
|
372
|
+
} else t12 = $[32];
|
|
373
|
+
let t13;
|
|
374
|
+
if ($[33] !== sectionDescription || $[34] !== sectionLabel) {
|
|
375
|
+
t13 = (sectionLabel || sectionDescription) && /* @__PURE__ */ jsxs("div", {
|
|
376
|
+
className: "mb-4",
|
|
377
|
+
children: [sectionLabel && /* @__PURE__ */ jsx("h2", {
|
|
378
|
+
className: "text-lg font-semibold",
|
|
379
|
+
children: sectionLabel
|
|
380
|
+
}), sectionDescription && /* @__PURE__ */ jsx("p", {
|
|
381
|
+
className: "text-muted-foreground mt-1 text-sm",
|
|
382
|
+
children: sectionDescription
|
|
383
|
+
})]
|
|
384
|
+
});
|
|
385
|
+
$[33] = sectionDescription;
|
|
386
|
+
$[34] = sectionLabel;
|
|
387
|
+
$[35] = t13;
|
|
388
|
+
} else t13 = $[35];
|
|
389
|
+
let t14;
|
|
390
|
+
if ($[36] !== itemsContent || $[37] !== t12 || $[38] !== t13) {
|
|
391
|
+
t14 = /* @__PURE__ */ jsxs("div", {
|
|
392
|
+
className: t12,
|
|
393
|
+
children: [t13, itemsContent]
|
|
394
|
+
});
|
|
395
|
+
$[36] = itemsContent;
|
|
396
|
+
$[37] = t12;
|
|
397
|
+
$[38] = t13;
|
|
398
|
+
$[39] = t14;
|
|
399
|
+
} else t14 = $[39];
|
|
400
|
+
return t14;
|
|
401
|
+
}
|
|
402
|
+
if (wrapper === "card") {
|
|
403
|
+
let t12;
|
|
404
|
+
if ($[40] !== className) {
|
|
405
|
+
t12 = cn("col-span-full", className);
|
|
406
|
+
$[40] = className;
|
|
407
|
+
$[41] = t12;
|
|
408
|
+
} else t12 = $[41];
|
|
409
|
+
let t13;
|
|
410
|
+
if ($[42] !== sectionDescription || $[43] !== sectionLabel) {
|
|
411
|
+
t13 = (sectionLabel || sectionDescription) && /* @__PURE__ */ jsxs(CardHeader, { children: [sectionLabel && /* @__PURE__ */ jsx(CardTitle, { children: sectionLabel }), sectionDescription && /* @__PURE__ */ jsx("p", {
|
|
412
|
+
className: "text-muted-foreground text-sm",
|
|
413
|
+
children: sectionDescription
|
|
414
|
+
})] });
|
|
415
|
+
$[42] = sectionDescription;
|
|
416
|
+
$[43] = sectionLabel;
|
|
417
|
+
$[44] = t13;
|
|
418
|
+
} else t13 = $[44];
|
|
419
|
+
let t14;
|
|
420
|
+
if ($[45] !== itemsContent) {
|
|
421
|
+
t14 = /* @__PURE__ */ jsx(CardContent, { children: itemsContent });
|
|
422
|
+
$[45] = itemsContent;
|
|
423
|
+
$[46] = t14;
|
|
424
|
+
} else t14 = $[46];
|
|
425
|
+
let t15;
|
|
426
|
+
if ($[47] !== t12 || $[48] !== t13 || $[49] !== t14) {
|
|
427
|
+
t15 = /* @__PURE__ */ jsxs(Card, {
|
|
428
|
+
className: t12,
|
|
429
|
+
children: [t13, t14]
|
|
430
|
+
});
|
|
431
|
+
$[47] = t12;
|
|
432
|
+
$[48] = t13;
|
|
433
|
+
$[49] = t14;
|
|
434
|
+
$[50] = t15;
|
|
435
|
+
} else t15 = $[50];
|
|
436
|
+
return t15;
|
|
437
|
+
}
|
|
438
|
+
if (wrapper === "collapsible") {
|
|
439
|
+
let t12;
|
|
440
|
+
if ($[51] !== defaultCollapsed) {
|
|
441
|
+
t12 = defaultCollapsed ? [] : [0];
|
|
442
|
+
$[51] = defaultCollapsed;
|
|
443
|
+
$[52] = t12;
|
|
444
|
+
} else t12 = $[52];
|
|
445
|
+
let t13;
|
|
446
|
+
if ($[53] !== className) {
|
|
447
|
+
t13 = cn("col-span-full", className);
|
|
448
|
+
$[53] = className;
|
|
449
|
+
$[54] = t13;
|
|
450
|
+
} else t13 = $[54];
|
|
451
|
+
let t14;
|
|
452
|
+
if ($[55] !== sectionLabel) {
|
|
453
|
+
t14 = sectionLabel && /* @__PURE__ */ jsx("span", {
|
|
210
454
|
className: "text-lg font-semibold",
|
|
211
455
|
children: sectionLabel
|
|
212
|
-
})
|
|
213
|
-
|
|
456
|
+
});
|
|
457
|
+
$[55] = sectionLabel;
|
|
458
|
+
$[56] = t14;
|
|
459
|
+
} else t14 = $[56];
|
|
460
|
+
let t15;
|
|
461
|
+
if ($[57] !== sectionDescription) {
|
|
462
|
+
t15 = sectionDescription && /* @__PURE__ */ jsx("p", {
|
|
463
|
+
className: "text-muted-foreground text-sm font-normal",
|
|
214
464
|
children: sectionDescription
|
|
215
|
-
})
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
})] }), /* @__PURE__ */ jsx(CardContent, { children: itemsContent })]
|
|
224
|
-
});
|
|
225
|
-
if (wrapper === "collapsible") return /* @__PURE__ */ jsx(Accordion, {
|
|
226
|
-
defaultValue: defaultCollapsed ? [] : [0],
|
|
227
|
-
className: cn("col-span-full", className),
|
|
228
|
-
children: /* @__PURE__ */ jsxs(AccordionItem, {
|
|
229
|
-
className: "border-none",
|
|
230
|
-
children: [/* @__PURE__ */ jsx(AccordionTrigger, {
|
|
231
|
-
className: "hover:no-underline py-2",
|
|
465
|
+
});
|
|
466
|
+
$[57] = sectionDescription;
|
|
467
|
+
$[58] = t15;
|
|
468
|
+
} else t15 = $[58];
|
|
469
|
+
let t16;
|
|
470
|
+
if ($[59] !== t14 || $[60] !== t15) {
|
|
471
|
+
t16 = /* @__PURE__ */ jsx(AccordionTrigger, {
|
|
472
|
+
className: "py-2 hover:no-underline",
|
|
232
473
|
children: /* @__PURE__ */ jsxs("div", {
|
|
233
474
|
className: "text-left",
|
|
234
|
-
children: [
|
|
235
|
-
className: "text-lg font-semibold",
|
|
236
|
-
children: sectionLabel
|
|
237
|
-
}), sectionDescription && /* @__PURE__ */ jsx("p", {
|
|
238
|
-
className: "text-sm text-muted-foreground font-normal",
|
|
239
|
-
children: sectionDescription
|
|
240
|
-
})]
|
|
475
|
+
children: [t14, t15]
|
|
241
476
|
})
|
|
242
|
-
})
|
|
477
|
+
});
|
|
478
|
+
$[59] = t14;
|
|
479
|
+
$[60] = t15;
|
|
480
|
+
$[61] = t16;
|
|
481
|
+
} else t16 = $[61];
|
|
482
|
+
let t17;
|
|
483
|
+
if ($[62] !== itemsContent) {
|
|
484
|
+
t17 = /* @__PURE__ */ jsx(AccordionContent, {
|
|
243
485
|
className: "pt-4",
|
|
244
486
|
children: itemsContent
|
|
245
|
-
})
|
|
246
|
-
|
|
247
|
-
|
|
487
|
+
});
|
|
488
|
+
$[62] = itemsContent;
|
|
489
|
+
$[63] = t17;
|
|
490
|
+
} else t17 = $[63];
|
|
491
|
+
let t18;
|
|
492
|
+
if ($[64] !== t16 || $[65] !== t17) {
|
|
493
|
+
t18 = /* @__PURE__ */ jsxs(AccordionItem, {
|
|
494
|
+
className: "border-none",
|
|
495
|
+
children: [t16, t17]
|
|
496
|
+
});
|
|
497
|
+
$[64] = t16;
|
|
498
|
+
$[65] = t17;
|
|
499
|
+
$[66] = t18;
|
|
500
|
+
} else t18 = $[66];
|
|
501
|
+
let t19;
|
|
502
|
+
if ($[67] !== t12 || $[68] !== t13 || $[69] !== t18) {
|
|
503
|
+
t19 = /* @__PURE__ */ jsx(Accordion, {
|
|
504
|
+
defaultValue: t12,
|
|
505
|
+
className: t13,
|
|
506
|
+
children: t18
|
|
507
|
+
});
|
|
508
|
+
$[67] = t12;
|
|
509
|
+
$[68] = t13;
|
|
510
|
+
$[69] = t18;
|
|
511
|
+
$[70] = t19;
|
|
512
|
+
} else t19 = $[70];
|
|
513
|
+
return t19;
|
|
514
|
+
}
|
|
248
515
|
return itemsContent;
|
|
249
516
|
}
|
|
250
|
-
function TabsRenderer(
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
517
|
+
function TabsRenderer(t0) {
|
|
518
|
+
const $ = c(25);
|
|
519
|
+
const { tabs, basePath, navigate, widgetRegistry, resolveText, dashboardRealtime } = t0;
|
|
520
|
+
const { tabs: tabConfigs, defaultTab, variant: t1 } = tabs;
|
|
521
|
+
const variant = t1 === void 0 ? "default" : t1;
|
|
522
|
+
const defaultValue = defaultTab || tabConfigs[0]?.id;
|
|
523
|
+
const t2 = variant === "line" ? "line" : "default";
|
|
524
|
+
let t3;
|
|
525
|
+
if ($[0] !== resolveText || $[1] !== tabConfigs) {
|
|
526
|
+
let t4$1;
|
|
527
|
+
if ($[3] !== resolveText) {
|
|
528
|
+
t4$1 = (tab) => /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
259
529
|
value: tab.id,
|
|
260
530
|
children: [
|
|
261
531
|
resolveIconElement(tab.icon, { className: "h-4 w-4 mr-2" }),
|
|
262
532
|
resolveText(tab.label),
|
|
263
533
|
tab.badge !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
264
|
-
className: "ml-2 rounded-full
|
|
534
|
+
className: "bg-muted ml-2 rounded-full px-2 py-0.5 text-xs",
|
|
265
535
|
children: tab.badge
|
|
266
536
|
})
|
|
267
537
|
]
|
|
268
|
-
}, tab.id)
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
538
|
+
}, tab.id);
|
|
539
|
+
$[3] = resolveText;
|
|
540
|
+
$[4] = t4$1;
|
|
541
|
+
} else t4$1 = $[4];
|
|
542
|
+
t3 = tabConfigs.map(t4$1);
|
|
543
|
+
$[0] = resolveText;
|
|
544
|
+
$[1] = tabConfigs;
|
|
545
|
+
$[2] = t3;
|
|
546
|
+
} else t3 = $[2];
|
|
547
|
+
let t4;
|
|
548
|
+
if ($[5] !== t2 || $[6] !== t3) {
|
|
549
|
+
t4 = /* @__PURE__ */ jsx(TabsList, {
|
|
550
|
+
variant: t2,
|
|
551
|
+
className: "mb-4",
|
|
552
|
+
children: t3
|
|
553
|
+
});
|
|
554
|
+
$[5] = t2;
|
|
555
|
+
$[6] = t3;
|
|
556
|
+
$[7] = t4;
|
|
557
|
+
} else t4 = $[7];
|
|
558
|
+
let t5;
|
|
559
|
+
if ($[8] !== basePath || $[9] !== dashboardRealtime || $[10] !== navigate || $[11] !== resolveText || $[12] !== tabConfigs || $[13] !== widgetRegistry) {
|
|
560
|
+
let t6$1;
|
|
561
|
+
if ($[15] !== basePath || $[16] !== dashboardRealtime || $[17] !== navigate || $[18] !== resolveText || $[19] !== widgetRegistry) {
|
|
562
|
+
t6$1 = (tab_0) => /* @__PURE__ */ jsx(TabsContent, {
|
|
563
|
+
value: tab_0.id,
|
|
564
|
+
children: /* @__PURE__ */ jsx(TabContentRenderer, {
|
|
565
|
+
tab: tab_0,
|
|
566
|
+
basePath,
|
|
567
|
+
navigate,
|
|
568
|
+
widgetRegistry,
|
|
569
|
+
resolveText,
|
|
570
|
+
dashboardRealtime
|
|
571
|
+
})
|
|
572
|
+
}, tab_0.id);
|
|
573
|
+
$[15] = basePath;
|
|
574
|
+
$[16] = dashboardRealtime;
|
|
575
|
+
$[17] = navigate;
|
|
576
|
+
$[18] = resolveText;
|
|
577
|
+
$[19] = widgetRegistry;
|
|
578
|
+
$[20] = t6$1;
|
|
579
|
+
} else t6$1 = $[20];
|
|
580
|
+
t5 = tabConfigs.map(t6$1);
|
|
581
|
+
$[8] = basePath;
|
|
582
|
+
$[9] = dashboardRealtime;
|
|
583
|
+
$[10] = navigate;
|
|
584
|
+
$[11] = resolveText;
|
|
585
|
+
$[12] = tabConfigs;
|
|
586
|
+
$[13] = widgetRegistry;
|
|
587
|
+
$[14] = t5;
|
|
588
|
+
} else t5 = $[14];
|
|
589
|
+
let t6;
|
|
590
|
+
if ($[21] !== defaultValue || $[22] !== t4 || $[23] !== t5) {
|
|
591
|
+
t6 = /* @__PURE__ */ jsxs(Tabs, {
|
|
592
|
+
defaultValue,
|
|
593
|
+
className: "col-span-full",
|
|
594
|
+
children: [t4, t5]
|
|
595
|
+
});
|
|
596
|
+
$[21] = defaultValue;
|
|
597
|
+
$[22] = t4;
|
|
598
|
+
$[23] = t5;
|
|
599
|
+
$[24] = t6;
|
|
600
|
+
} else t6 = $[24];
|
|
601
|
+
return t6;
|
|
602
|
+
}
|
|
603
|
+
function TabContentRenderer(t0) {
|
|
604
|
+
const $ = c(16);
|
|
605
|
+
const { tab, basePath, navigate, widgetRegistry, resolveText, dashboardRealtime } = t0;
|
|
606
|
+
let t1;
|
|
607
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
608
|
+
t1 = cn("@container grid items-start gap-4", getGridClass(4));
|
|
609
|
+
$[0] = t1;
|
|
610
|
+
} else t1 = $[0];
|
|
611
|
+
let t2;
|
|
612
|
+
if ($[1] !== basePath || $[2] !== dashboardRealtime || $[3] !== navigate || $[4] !== resolveText || $[5] !== tab.items || $[6] !== widgetRegistry) {
|
|
613
|
+
let t3$1;
|
|
614
|
+
if ($[8] !== basePath || $[9] !== dashboardRealtime || $[10] !== navigate || $[11] !== resolveText || $[12] !== widgetRegistry) {
|
|
615
|
+
t3$1 = (item, index) => /* @__PURE__ */ jsx(LayoutItemRenderer, {
|
|
616
|
+
item,
|
|
617
|
+
index,
|
|
618
|
+
columns: 4,
|
|
273
619
|
basePath,
|
|
274
620
|
navigate,
|
|
275
621
|
widgetRegistry,
|
|
276
622
|
resolveText,
|
|
277
623
|
dashboardRealtime
|
|
278
|
-
})
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
624
|
+
}, getLayoutItemKey(item, index));
|
|
625
|
+
$[8] = basePath;
|
|
626
|
+
$[9] = dashboardRealtime;
|
|
627
|
+
$[10] = navigate;
|
|
628
|
+
$[11] = resolveText;
|
|
629
|
+
$[12] = widgetRegistry;
|
|
630
|
+
$[13] = t3$1;
|
|
631
|
+
} else t3$1 = $[13];
|
|
632
|
+
t2 = tab.items.map(t3$1);
|
|
633
|
+
$[1] = basePath;
|
|
634
|
+
$[2] = dashboardRealtime;
|
|
635
|
+
$[3] = navigate;
|
|
636
|
+
$[4] = resolveText;
|
|
637
|
+
$[5] = tab.items;
|
|
638
|
+
$[6] = widgetRegistry;
|
|
639
|
+
$[7] = t2;
|
|
640
|
+
} else t2 = $[7];
|
|
641
|
+
let t3;
|
|
642
|
+
if ($[14] !== t2) {
|
|
643
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
644
|
+
className: t1,
|
|
645
|
+
children: t2
|
|
646
|
+
});
|
|
647
|
+
$[14] = t2;
|
|
648
|
+
$[15] = t3;
|
|
649
|
+
} else t3 = $[15];
|
|
650
|
+
return t3;
|
|
297
651
|
}
|
|
298
652
|
/**
|
|
299
653
|
* DashboardGrid - Renders a configurable grid of dashboard widgets
|
|
@@ -328,45 +682,150 @@ function TabContentRenderer({ tab, basePath, navigate, widgetRegistry, resolveTe
|
|
|
328
682
|
* <DashboardGrid config={dashboardConfig} basePath="/admin" navigate={navigate} />
|
|
329
683
|
* ```
|
|
330
684
|
*/
|
|
331
|
-
function DashboardGrid(
|
|
685
|
+
function DashboardGrid(t0) {
|
|
686
|
+
const $ = c(64);
|
|
687
|
+
const { config, basePath: t1, navigate, widgetRegistry, className } = t0;
|
|
688
|
+
const basePath = t1 === void 0 ? "/admin" : t1;
|
|
332
689
|
const resolveText = useResolveText();
|
|
333
|
-
const {
|
|
334
|
-
const
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
if (
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
690
|
+
const { t } = useTranslation();
|
|
691
|
+
const { title, description, columns: t2, realtime: dashboardRealtime } = config;
|
|
692
|
+
const columns = t2 === void 0 ? 4 : t2;
|
|
693
|
+
let t3;
|
|
694
|
+
if ($[0] !== config.items || $[1] !== config.widgets) {
|
|
695
|
+
t3 = config.items || config.widgets || [];
|
|
696
|
+
$[0] = config.items;
|
|
697
|
+
$[1] = config.widgets;
|
|
698
|
+
$[2] = t3;
|
|
699
|
+
} else t3 = $[2];
|
|
700
|
+
const layoutItems = t3;
|
|
701
|
+
let t4;
|
|
702
|
+
if ($[3] !== resolveText || $[4] !== title) {
|
|
703
|
+
t4 = title ? resolveText(title) : void 0;
|
|
704
|
+
$[3] = resolveText;
|
|
705
|
+
$[4] = title;
|
|
706
|
+
$[5] = t4;
|
|
707
|
+
} else t4 = $[5];
|
|
708
|
+
const resolvedTitle = t4;
|
|
709
|
+
let t5;
|
|
710
|
+
if ($[6] !== description || $[7] !== resolveText) {
|
|
711
|
+
t5 = description ? resolveText(description) : void 0;
|
|
712
|
+
$[6] = description;
|
|
713
|
+
$[7] = resolveText;
|
|
714
|
+
$[8] = t5;
|
|
715
|
+
} else t5 = $[8];
|
|
716
|
+
const resolvedDescription = t5;
|
|
717
|
+
if (layoutItems.length === 0) {
|
|
718
|
+
let t6$1;
|
|
719
|
+
if ($[9] !== className) {
|
|
720
|
+
t6$1 = cn("qa-dashboard @container", className);
|
|
721
|
+
$[9] = className;
|
|
722
|
+
$[10] = t6$1;
|
|
723
|
+
} else t6$1 = $[10];
|
|
724
|
+
let t7$1;
|
|
725
|
+
if ($[11] !== config.actions || $[12] !== navigate || $[13] !== resolveText || $[14] !== resolvedDescription || $[15] !== resolvedTitle) {
|
|
726
|
+
t7$1 = /* @__PURE__ */ jsx(DashboardHeader, {
|
|
727
|
+
title: resolvedTitle,
|
|
728
|
+
description: resolvedDescription,
|
|
729
|
+
actions: config.actions,
|
|
730
|
+
navigate,
|
|
731
|
+
resolveText
|
|
732
|
+
});
|
|
733
|
+
$[11] = config.actions;
|
|
734
|
+
$[12] = navigate;
|
|
735
|
+
$[13] = resolveText;
|
|
736
|
+
$[14] = resolvedDescription;
|
|
737
|
+
$[15] = resolvedTitle;
|
|
738
|
+
$[16] = t7$1;
|
|
739
|
+
} else t7$1 = $[16];
|
|
740
|
+
let t8$1;
|
|
741
|
+
if ($[17] !== t) {
|
|
742
|
+
t8$1 = t("dashboard.noWidgets");
|
|
743
|
+
$[17] = t;
|
|
744
|
+
$[18] = t8$1;
|
|
745
|
+
} else t8$1 = $[18];
|
|
746
|
+
let t9$1;
|
|
747
|
+
if ($[19] !== t8$1) {
|
|
748
|
+
t9$1 = /* @__PURE__ */ jsx("p", {
|
|
749
|
+
className: "text-muted-foreground font-medium",
|
|
750
|
+
children: t8$1
|
|
751
|
+
});
|
|
752
|
+
$[19] = t8$1;
|
|
753
|
+
$[20] = t9$1;
|
|
754
|
+
} else t9$1 = $[20];
|
|
755
|
+
let t10$1;
|
|
756
|
+
if ($[21] !== t) {
|
|
757
|
+
t10$1 = t("dashboard.noWidgetsDescription");
|
|
758
|
+
$[21] = t;
|
|
759
|
+
$[22] = t10$1;
|
|
760
|
+
} else t10$1 = $[22];
|
|
761
|
+
let t11$1;
|
|
762
|
+
if ($[23] !== t10$1) {
|
|
763
|
+
t11$1 = /* @__PURE__ */ jsx("p", {
|
|
764
|
+
className: "text-muted-foreground mt-1 text-sm",
|
|
765
|
+
children: t10$1
|
|
766
|
+
});
|
|
767
|
+
$[23] = t10$1;
|
|
768
|
+
$[24] = t11$1;
|
|
769
|
+
} else t11$1 = $[24];
|
|
770
|
+
let t12;
|
|
771
|
+
if ($[25] !== t11$1 || $[26] !== t9$1) {
|
|
772
|
+
t12 = /* @__PURE__ */ jsx("div", {
|
|
773
|
+
className: "border-border bg-card flex h-64 items-center justify-center rounded-lg border border-dashed",
|
|
774
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
775
|
+
className: "text-center",
|
|
776
|
+
children: [t9$1, t11$1]
|
|
777
|
+
})
|
|
778
|
+
});
|
|
779
|
+
$[25] = t11$1;
|
|
780
|
+
$[26] = t9$1;
|
|
781
|
+
$[27] = t12;
|
|
782
|
+
} else t12 = $[27];
|
|
783
|
+
let t13;
|
|
784
|
+
if ($[28] !== t12 || $[29] !== t6$1 || $[30] !== t7$1) {
|
|
785
|
+
t13 = /* @__PURE__ */ jsxs("div", {
|
|
786
|
+
className: t6$1,
|
|
787
|
+
children: [t7$1, t12]
|
|
788
|
+
});
|
|
789
|
+
$[28] = t12;
|
|
790
|
+
$[29] = t6$1;
|
|
791
|
+
$[30] = t7$1;
|
|
792
|
+
$[31] = t13;
|
|
793
|
+
} else t13 = $[31];
|
|
794
|
+
return t13;
|
|
795
|
+
}
|
|
796
|
+
let t6;
|
|
797
|
+
if ($[32] !== className) {
|
|
798
|
+
t6 = cn("qa-dashboard @container", className);
|
|
799
|
+
$[32] = className;
|
|
800
|
+
$[33] = t6;
|
|
801
|
+
} else t6 = $[33];
|
|
802
|
+
let t7;
|
|
803
|
+
if ($[34] !== config.actions || $[35] !== navigate || $[36] !== resolveText || $[37] !== resolvedDescription || $[38] !== resolvedTitle) {
|
|
804
|
+
t7 = /* @__PURE__ */ jsx(DashboardHeader, {
|
|
362
805
|
title: resolvedTitle,
|
|
363
806
|
description: resolvedDescription,
|
|
364
807
|
actions: config.actions,
|
|
365
808
|
navigate,
|
|
366
809
|
resolveText
|
|
367
|
-
})
|
|
368
|
-
|
|
369
|
-
|
|
810
|
+
});
|
|
811
|
+
$[34] = config.actions;
|
|
812
|
+
$[35] = navigate;
|
|
813
|
+
$[36] = resolveText;
|
|
814
|
+
$[37] = resolvedDescription;
|
|
815
|
+
$[38] = resolvedTitle;
|
|
816
|
+
$[39] = t7;
|
|
817
|
+
} else t7 = $[39];
|
|
818
|
+
let t8;
|
|
819
|
+
if ($[40] !== columns) {
|
|
820
|
+
t8 = cn("qa-dashboard__grid grid items-start gap-4", getGridClass(columns));
|
|
821
|
+
$[40] = columns;
|
|
822
|
+
$[41] = t8;
|
|
823
|
+
} else t8 = $[41];
|
|
824
|
+
let t9;
|
|
825
|
+
if ($[42] !== basePath || $[43] !== columns || $[44] !== dashboardRealtime || $[45] !== layoutItems || $[46] !== navigate || $[47] !== resolveText || $[48] !== widgetRegistry) {
|
|
826
|
+
let t10$1;
|
|
827
|
+
if ($[50] !== basePath || $[51] !== columns || $[52] !== dashboardRealtime || $[53] !== navigate || $[54] !== resolveText || $[55] !== widgetRegistry) {
|
|
828
|
+
t10$1 = (item, index) => /* @__PURE__ */ jsx(LayoutItemRenderer, {
|
|
370
829
|
item,
|
|
371
830
|
index,
|
|
372
831
|
columns,
|
|
@@ -375,11 +834,48 @@ function DashboardGrid({ config, basePath = "/admin", navigate, widgetRegistry,
|
|
|
375
834
|
widgetRegistry,
|
|
376
835
|
resolveText,
|
|
377
836
|
dashboardRealtime
|
|
378
|
-
}, getLayoutItemKey(item, index))
|
|
379
|
-
|
|
380
|
-
|
|
837
|
+
}, getLayoutItemKey(item, index));
|
|
838
|
+
$[50] = basePath;
|
|
839
|
+
$[51] = columns;
|
|
840
|
+
$[52] = dashboardRealtime;
|
|
841
|
+
$[53] = navigate;
|
|
842
|
+
$[54] = resolveText;
|
|
843
|
+
$[55] = widgetRegistry;
|
|
844
|
+
$[56] = t10$1;
|
|
845
|
+
} else t10$1 = $[56];
|
|
846
|
+
t9 = layoutItems.map(t10$1);
|
|
847
|
+
$[42] = basePath;
|
|
848
|
+
$[43] = columns;
|
|
849
|
+
$[44] = dashboardRealtime;
|
|
850
|
+
$[45] = layoutItems;
|
|
851
|
+
$[46] = navigate;
|
|
852
|
+
$[47] = resolveText;
|
|
853
|
+
$[48] = widgetRegistry;
|
|
854
|
+
$[49] = t9;
|
|
855
|
+
} else t9 = $[49];
|
|
856
|
+
let t10;
|
|
857
|
+
if ($[57] !== t8 || $[58] !== t9) {
|
|
858
|
+
t10 = /* @__PURE__ */ jsx("div", {
|
|
859
|
+
className: t8,
|
|
860
|
+
children: t9
|
|
861
|
+
});
|
|
862
|
+
$[57] = t8;
|
|
863
|
+
$[58] = t9;
|
|
864
|
+
$[59] = t10;
|
|
865
|
+
} else t10 = $[59];
|
|
866
|
+
let t11;
|
|
867
|
+
if ($[60] !== t10 || $[61] !== t6 || $[62] !== t7) {
|
|
868
|
+
t11 = /* @__PURE__ */ jsxs("div", {
|
|
869
|
+
className: t6,
|
|
870
|
+
children: [t7, t10]
|
|
871
|
+
});
|
|
872
|
+
$[60] = t10;
|
|
873
|
+
$[61] = t6;
|
|
874
|
+
$[62] = t7;
|
|
875
|
+
$[63] = t11;
|
|
876
|
+
} else t11 = $[63];
|
|
877
|
+
return t11;
|
|
381
878
|
}
|
|
382
879
|
|
|
383
880
|
//#endregion
|
|
384
|
-
export { DashboardGrid };
|
|
385
|
-
//# sourceMappingURL=dashboard-grid.mjs.map
|
|
881
|
+
export { DashboardGrid };
|