@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
|
@@ -2,18 +2,30 @@ import { useResolveText, useTranslation } from "../../i18n/hooks.mjs";
|
|
|
2
2
|
import { useSafeContentLocales } from "../../runtime/content-locales-provider.mjs";
|
|
3
3
|
import { useScopedLocale } from "../../runtime/locale-scope.mjs";
|
|
4
4
|
import { Button } from "../../components/ui/button.mjs";
|
|
5
|
+
import { Badge } from "../../components/ui/badge.mjs";
|
|
6
|
+
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "../../components/ui/dialog.mjs";
|
|
7
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../components/ui/dropdown-menu.mjs";
|
|
8
|
+
import { LocaleSwitcher } from "../../components/locale-switcher.mjs";
|
|
9
|
+
import { Label } from "../../components/ui/label.mjs";
|
|
10
|
+
import { Checkbox } from "../../components/ui/checkbox.mjs";
|
|
11
|
+
import { DateTimeInput } from "../../components/primitives/date-input.mjs";
|
|
12
|
+
import { ConfirmationDialog } from "../../components/actions/confirmation-dialog.mjs";
|
|
5
13
|
import { useGlobalFields } from "../../hooks/use-global-fields.mjs";
|
|
6
14
|
import { AutoFormFields } from "../collection/auto-form-fields.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { useGlobal, useGlobalUpdate } from "../../hooks/use-global.mjs";
|
|
15
|
+
import { HistorySidebar } from "../../components/history-sidebar.mjs";
|
|
16
|
+
import { useGlobal, useGlobalRevertVersion, useGlobalUpdate, useGlobalVersions } from "../../hooks/use-global.mjs";
|
|
9
17
|
import { useGlobalServerValidation } from "../../hooks/use-server-validation.mjs";
|
|
18
|
+
import { useSidebarSearchParam } from "../../hooks/use-sidebar-search-param.mjs";
|
|
19
|
+
import { useGlobalAuditHistory } from "../../hooks/use-audit-history.mjs";
|
|
10
20
|
import { useReactiveFields } from "../../hooks/use-reactive-fields.mjs";
|
|
21
|
+
import { useTransitionStage } from "../../hooks/use-transition-stage.mjs";
|
|
22
|
+
import { c } from "react/compiler-runtime";
|
|
11
23
|
import { Icon } from "@iconify/react";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
24
|
+
import * as React from "react";
|
|
25
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
26
|
import { FormProvider, useForm } from "react-hook-form";
|
|
15
27
|
import { toast } from "sonner";
|
|
16
|
-
import {
|
|
28
|
+
import { QuestpieClientError } from "questpie/client";
|
|
17
29
|
|
|
18
30
|
//#region src/client/views/globals/global-form-view.tsx
|
|
19
31
|
/**
|
|
@@ -23,7 +35,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
23
35
|
* Renders global settings form with sections, tabs, sidebar, validation.
|
|
24
36
|
*/
|
|
25
37
|
/**
|
|
26
|
-
* Extract reactive configs from global schema
|
|
38
|
+
* Extract reactive configs from global schema.
|
|
27
39
|
* Used to determine which fields have server-side reactive behaviors.
|
|
28
40
|
*/
|
|
29
41
|
function extractReactiveConfigs(schema) {
|
|
@@ -35,147 +47,1260 @@ function extractReactiveConfigs(schema) {
|
|
|
35
47
|
/**
|
|
36
48
|
* GlobalFormView - Default form-based edit view for globals
|
|
37
49
|
*/
|
|
38
|
-
function GlobalFormView(
|
|
50
|
+
function GlobalFormView(t0) {
|
|
51
|
+
const $ = c(307);
|
|
52
|
+
const { global: globalName, config, viewConfig, registry, showMeta: t1, headerActions, onSuccess, onError } = t0;
|
|
53
|
+
const showMeta = t1 === void 0 ? true : t1;
|
|
39
54
|
const { t } = useTranslation();
|
|
40
55
|
const resolveText = useResolveText();
|
|
41
|
-
const { data: globalData, isLoading: dataLoading } = useGlobal(globalName);
|
|
42
|
-
const { fields: schemaFields } = useGlobalFields(globalName);
|
|
56
|
+
const { data: globalData, isLoading: dataLoading, error: dataError } = useGlobal(globalName);
|
|
57
|
+
const { fields: schemaFields, schema: globalSchema } = useGlobalFields(globalName);
|
|
43
58
|
const { locale: contentLocale, setLocale: setContentLocale } = useScopedLocale();
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
const contentLocales = useSafeContentLocales();
|
|
60
|
+
let t2;
|
|
61
|
+
if ($[0] !== contentLocales?.locales) {
|
|
62
|
+
t2 = contentLocales?.locales ?? [];
|
|
63
|
+
$[0] = contentLocales?.locales;
|
|
64
|
+
$[1] = t2;
|
|
65
|
+
} else t2 = $[1];
|
|
66
|
+
const localeOptions = t2;
|
|
67
|
+
let t3;
|
|
68
|
+
if ($[2] !== onSuccess || $[3] !== t) {
|
|
69
|
+
t3 = (data) => {
|
|
47
70
|
toast.success(t("toast.saveSuccess"));
|
|
48
71
|
onSuccess?.(data);
|
|
49
|
-
}
|
|
50
|
-
|
|
72
|
+
};
|
|
73
|
+
$[2] = onSuccess;
|
|
74
|
+
$[3] = t;
|
|
75
|
+
$[4] = t3;
|
|
76
|
+
} else t3 = $[4];
|
|
77
|
+
let t4;
|
|
78
|
+
if ($[5] !== onError) {
|
|
79
|
+
t4 = (error) => {
|
|
51
80
|
onError?.(error);
|
|
81
|
+
};
|
|
82
|
+
$[5] = onError;
|
|
83
|
+
$[6] = t4;
|
|
84
|
+
} else t4 = $[6];
|
|
85
|
+
let t5;
|
|
86
|
+
if ($[7] !== t3 || $[8] !== t4) {
|
|
87
|
+
t5 = {
|
|
88
|
+
onSuccess: t3,
|
|
89
|
+
onError: t4
|
|
90
|
+
};
|
|
91
|
+
$[7] = t3;
|
|
92
|
+
$[8] = t4;
|
|
93
|
+
$[9] = t5;
|
|
94
|
+
} else t5 = $[9];
|
|
95
|
+
const updateMutation = useGlobalUpdate(globalName, t5);
|
|
96
|
+
const revertVersionMutation = useGlobalRevertVersion(globalName);
|
|
97
|
+
let t6;
|
|
98
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
99
|
+
t6 = { legacyKey: "history" };
|
|
100
|
+
$[10] = t6;
|
|
101
|
+
} else t6 = $[10];
|
|
102
|
+
const [isHistoryOpen, setIsHistoryOpen] = useSidebarSearchParam("history", t6);
|
|
103
|
+
const [pendingRevertVersion, setPendingRevertVersion] = React.useState(null);
|
|
104
|
+
const t7 = globalData?.id;
|
|
105
|
+
let t8;
|
|
106
|
+
if ($[11] !== t7) {
|
|
107
|
+
t8 = {
|
|
108
|
+
id: t7,
|
|
109
|
+
limit: 50
|
|
110
|
+
};
|
|
111
|
+
$[11] = t7;
|
|
112
|
+
$[12] = t8;
|
|
113
|
+
} else t8 = $[12];
|
|
114
|
+
const t9 = isHistoryOpen && !!globalSchema?.options?.versioning;
|
|
115
|
+
let t10;
|
|
116
|
+
if ($[13] !== t9) {
|
|
117
|
+
t10 = { enabled: t9 };
|
|
118
|
+
$[13] = t9;
|
|
119
|
+
$[14] = t10;
|
|
120
|
+
} else t10 = $[14];
|
|
121
|
+
const { data: versionsData, isLoading: versionsLoading } = useGlobalVersions(globalName, t8, t10);
|
|
122
|
+
let t11;
|
|
123
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
124
|
+
t11 = { limit: 50 };
|
|
125
|
+
$[15] = t11;
|
|
126
|
+
} else t11 = $[15];
|
|
127
|
+
let t12;
|
|
128
|
+
if ($[16] !== isHistoryOpen) {
|
|
129
|
+
t12 = { enabled: isHistoryOpen };
|
|
130
|
+
$[16] = isHistoryOpen;
|
|
131
|
+
$[17] = t12;
|
|
132
|
+
} else t12 = $[17];
|
|
133
|
+
const { data: auditData, isLoading: auditLoading } = useGlobalAuditHistory(globalName, t11, t12);
|
|
134
|
+
const workflowConfig = globalSchema?.options?.workflow;
|
|
135
|
+
const workflowEnabled = !!workflowConfig?.enabled;
|
|
136
|
+
const t13 = globalData?.id;
|
|
137
|
+
let t14;
|
|
138
|
+
if ($[18] !== t13) {
|
|
139
|
+
t14 = {
|
|
140
|
+
id: t13,
|
|
141
|
+
limit: 1
|
|
142
|
+
};
|
|
143
|
+
$[18] = t13;
|
|
144
|
+
$[19] = t14;
|
|
145
|
+
} else t14 = $[19];
|
|
146
|
+
const t15 = workflowEnabled && !!globalData?.id;
|
|
147
|
+
let t16;
|
|
148
|
+
if ($[20] !== t15) {
|
|
149
|
+
t16 = { enabled: t15 };
|
|
150
|
+
$[20] = t15;
|
|
151
|
+
$[21] = t16;
|
|
152
|
+
} else t16 = $[21];
|
|
153
|
+
const { data: latestVersionData } = useGlobalVersions(globalName, t14, t16);
|
|
154
|
+
const currentStage = latestVersionData?.[0]?.versionStage ?? workflowConfig?.initialStage ?? null;
|
|
155
|
+
workflowConfig?.stages;
|
|
156
|
+
let t17;
|
|
157
|
+
if ($[22] !== currentStage || $[23] !== workflowConfig?.stages) {
|
|
158
|
+
t17 = workflowConfig?.stages?.find((s) => s.name === currentStage) ?? null;
|
|
159
|
+
$[22] = currentStage;
|
|
160
|
+
$[23] = workflowConfig?.stages;
|
|
161
|
+
$[24] = t17;
|
|
162
|
+
} else t17 = $[24];
|
|
163
|
+
const currentStageConfig = t17;
|
|
164
|
+
const currentStageLabel = currentStageConfig?.label ?? currentStage ?? "";
|
|
165
|
+
let t18;
|
|
166
|
+
bb0: {
|
|
167
|
+
if (!workflowConfig?.stages || !currentStage) {
|
|
168
|
+
let t19$2;
|
|
169
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
170
|
+
t19$2 = [];
|
|
171
|
+
$[25] = t19$2;
|
|
172
|
+
} else t19$2 = $[25];
|
|
173
|
+
t18 = t19$2;
|
|
174
|
+
break bb0;
|
|
52
175
|
}
|
|
53
|
-
|
|
176
|
+
const stageNames = currentStageConfig?.transitions;
|
|
177
|
+
if (stageNames && stageNames.length > 0) {
|
|
178
|
+
let t19$2;
|
|
179
|
+
if ($[26] !== stageNames || $[27] !== workflowConfig) {
|
|
180
|
+
let t20$1;
|
|
181
|
+
if ($[29] !== workflowConfig) {
|
|
182
|
+
t20$1 = (name) => workflowConfig.stages.find((s_0) => s_0.name === name);
|
|
183
|
+
$[29] = workflowConfig;
|
|
184
|
+
$[30] = t20$1;
|
|
185
|
+
} else t20$1 = $[30];
|
|
186
|
+
t19$2 = stageNames.map(t20$1).filter(Boolean);
|
|
187
|
+
$[26] = stageNames;
|
|
188
|
+
$[27] = workflowConfig;
|
|
189
|
+
$[28] = t19$2;
|
|
190
|
+
} else t19$2 = $[28];
|
|
191
|
+
t18 = t19$2;
|
|
192
|
+
break bb0;
|
|
193
|
+
}
|
|
194
|
+
let t19$1;
|
|
195
|
+
if ($[31] !== currentStage || $[32] !== workflowConfig.stages) {
|
|
196
|
+
let t20$1;
|
|
197
|
+
if ($[34] !== currentStage) {
|
|
198
|
+
t20$1 = (s_1) => s_1.name !== currentStage;
|
|
199
|
+
$[34] = currentStage;
|
|
200
|
+
$[35] = t20$1;
|
|
201
|
+
} else t20$1 = $[35];
|
|
202
|
+
t19$1 = workflowConfig.stages.filter(t20$1);
|
|
203
|
+
$[31] = currentStage;
|
|
204
|
+
$[32] = workflowConfig.stages;
|
|
205
|
+
$[33] = t19$1;
|
|
206
|
+
} else t19$1 = $[33];
|
|
207
|
+
t18 = t19$1;
|
|
208
|
+
}
|
|
209
|
+
const allowedTransitions = t18;
|
|
210
|
+
let t19;
|
|
211
|
+
if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
|
|
212
|
+
t19 = { mode: "global" };
|
|
213
|
+
$[36] = t19;
|
|
214
|
+
} else t19 = $[36];
|
|
215
|
+
const transitionMutation = useTransitionStage(globalName, t19);
|
|
216
|
+
const [transitionTarget, setTransitionTarget] = React.useState(null);
|
|
217
|
+
const [transitionSchedule, setTransitionSchedule] = React.useState(false);
|
|
218
|
+
const [transitionScheduledAt, setTransitionScheduledAt] = React.useState(null);
|
|
54
219
|
const { resolver } = useGlobalServerValidation(globalName);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
220
|
+
let t20;
|
|
221
|
+
if ($[37] !== globalData) {
|
|
222
|
+
t20 = globalData ?? {};
|
|
223
|
+
$[37] = globalData;
|
|
224
|
+
$[38] = t20;
|
|
225
|
+
} else t20 = $[38];
|
|
226
|
+
const t21 = t20;
|
|
227
|
+
let t22;
|
|
228
|
+
if ($[39] !== resolver || $[40] !== t21) {
|
|
229
|
+
t22 = {
|
|
230
|
+
defaultValues: t21,
|
|
231
|
+
resolver
|
|
232
|
+
};
|
|
233
|
+
$[39] = resolver;
|
|
234
|
+
$[40] = t21;
|
|
235
|
+
$[41] = t22;
|
|
236
|
+
} else t22 = $[41];
|
|
237
|
+
const form = useForm(t22);
|
|
238
|
+
let t23;
|
|
239
|
+
if ($[42] !== form || $[43] !== t || $[44] !== transitionMutation || $[45] !== transitionSchedule || $[46] !== transitionScheduledAt || $[47] !== transitionTarget) {
|
|
240
|
+
t23 = () => {
|
|
241
|
+
if (!transitionTarget) return;
|
|
242
|
+
const params = { stage: transitionTarget.name };
|
|
243
|
+
if (transitionSchedule) {
|
|
244
|
+
if (transitionScheduledAt) params.scheduledAt = transitionScheduledAt;
|
|
245
|
+
}
|
|
246
|
+
const stageLabel = transitionTarget.label ? transitionTarget.label : transitionTarget.name;
|
|
247
|
+
const resetTransitionState = () => {
|
|
248
|
+
setTransitionTarget(null);
|
|
249
|
+
setTransitionSchedule(false);
|
|
250
|
+
setTransitionScheduledAt(null);
|
|
251
|
+
};
|
|
252
|
+
transitionMutation.mutateAsync(params).then((result) => {
|
|
253
|
+
if (result) {
|
|
254
|
+
if (typeof result === "object") form.reset(result);
|
|
255
|
+
}
|
|
256
|
+
if (transitionSchedule) if (transitionScheduledAt) toast.success(t("workflow.scheduledSuccess", {
|
|
257
|
+
stage: stageLabel,
|
|
258
|
+
date: transitionScheduledAt.toLocaleString()
|
|
259
|
+
}));
|
|
260
|
+
else toast.success(t("workflow.transitionSuccess", { stage: stageLabel }));
|
|
261
|
+
else toast.success(t("workflow.transitionSuccess", { stage: stageLabel }));
|
|
262
|
+
resetTransitionState();
|
|
263
|
+
}, (err) => {
|
|
264
|
+
let description;
|
|
265
|
+
if (err instanceof Error) description = err.message;
|
|
266
|
+
else description = t("error.unknown");
|
|
267
|
+
toast.error(t("workflow.transitionFailed"), { description });
|
|
268
|
+
resetTransitionState();
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
$[42] = form;
|
|
272
|
+
$[43] = t;
|
|
273
|
+
$[44] = transitionMutation;
|
|
274
|
+
$[45] = transitionSchedule;
|
|
275
|
+
$[46] = transitionScheduledAt;
|
|
276
|
+
$[47] = transitionTarget;
|
|
277
|
+
$[48] = t23;
|
|
278
|
+
} else t23 = $[48];
|
|
279
|
+
const confirmTransition = t23;
|
|
280
|
+
const prevLocaleRef = React.useRef(contentLocale);
|
|
281
|
+
const skipResetRef = React.useRef(false);
|
|
282
|
+
const localeSnapshotRef = React.useRef(null);
|
|
283
|
+
let t24;
|
|
284
|
+
if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
|
|
285
|
+
t24 = {
|
|
286
|
+
open: false,
|
|
287
|
+
pendingLocale: null
|
|
288
|
+
};
|
|
289
|
+
$[49] = t24;
|
|
290
|
+
} else t24 = $[49];
|
|
291
|
+
const [localeChangeDialog, setLocaleChangeDialog] = React.useState(t24);
|
|
292
|
+
let t25;
|
|
293
|
+
let t26;
|
|
294
|
+
if ($[50] !== contentLocale || $[51] !== form || $[52] !== localeChangeDialog.open || $[53] !== setContentLocale) {
|
|
295
|
+
t25 = () => {
|
|
296
|
+
if (prevLocaleRef.current !== contentLocale) if (form.formState.isDirty && !localeChangeDialog.open) {
|
|
297
|
+
skipResetRef.current = true;
|
|
298
|
+
localeSnapshotRef.current = form.getValues();
|
|
299
|
+
setLocaleChangeDialog({
|
|
300
|
+
open: true,
|
|
301
|
+
pendingLocale: contentLocale
|
|
86
302
|
});
|
|
87
|
-
|
|
88
|
-
|
|
303
|
+
setContentLocale(prevLocaleRef.current);
|
|
304
|
+
} else {
|
|
305
|
+
prevLocaleRef.current = contentLocale;
|
|
306
|
+
skipResetRef.current = false;
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
t26 = [
|
|
310
|
+
contentLocale,
|
|
311
|
+
form.formState.isDirty,
|
|
312
|
+
localeChangeDialog.open,
|
|
313
|
+
setContentLocale,
|
|
314
|
+
form
|
|
315
|
+
];
|
|
316
|
+
$[50] = contentLocale;
|
|
317
|
+
$[51] = form;
|
|
318
|
+
$[52] = localeChangeDialog.open;
|
|
319
|
+
$[53] = setContentLocale;
|
|
320
|
+
$[54] = t25;
|
|
321
|
+
$[55] = t26;
|
|
322
|
+
} else {
|
|
323
|
+
t25 = $[54];
|
|
324
|
+
t26 = $[55];
|
|
325
|
+
}
|
|
326
|
+
React.useEffect(t25, t26);
|
|
327
|
+
let t27;
|
|
328
|
+
if ($[56] !== localeChangeDialog.pendingLocale || $[57] !== setContentLocale) {
|
|
329
|
+
t27 = () => {
|
|
330
|
+
skipResetRef.current = false;
|
|
331
|
+
localeSnapshotRef.current = null;
|
|
332
|
+
if (localeChangeDialog.pendingLocale) {
|
|
333
|
+
prevLocaleRef.current = localeChangeDialog.pendingLocale;
|
|
334
|
+
setContentLocale(localeChangeDialog.pendingLocale);
|
|
89
335
|
}
|
|
90
|
-
|
|
91
|
-
|
|
336
|
+
setLocaleChangeDialog({
|
|
337
|
+
open: false,
|
|
338
|
+
pendingLocale: null
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
$[56] = localeChangeDialog.pendingLocale;
|
|
342
|
+
$[57] = setContentLocale;
|
|
343
|
+
$[58] = t27;
|
|
344
|
+
} else t27 = $[58];
|
|
345
|
+
const handleLocaleChangeConfirm = t27;
|
|
346
|
+
let t28;
|
|
347
|
+
if ($[59] !== form) {
|
|
348
|
+
t28 = () => {
|
|
349
|
+
skipResetRef.current = false;
|
|
350
|
+
if (localeSnapshotRef.current) form.reset(localeSnapshotRef.current, {
|
|
351
|
+
keepDirty: true,
|
|
352
|
+
keepDirtyValues: true,
|
|
353
|
+
keepErrors: true,
|
|
354
|
+
keepTouched: true
|
|
355
|
+
});
|
|
356
|
+
localeSnapshotRef.current = null;
|
|
357
|
+
setLocaleChangeDialog({
|
|
358
|
+
open: false,
|
|
359
|
+
pendingLocale: null
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
$[59] = form;
|
|
363
|
+
$[60] = t28;
|
|
364
|
+
} else t28 = $[60];
|
|
365
|
+
const handleLocaleChangeCancel = t28;
|
|
366
|
+
let t29;
|
|
367
|
+
let t30;
|
|
368
|
+
if ($[61] !== form || $[62] !== globalData) {
|
|
369
|
+
t29 = () => {
|
|
370
|
+
if (skipResetRef.current) return;
|
|
371
|
+
if (globalData) form.reset(globalData);
|
|
372
|
+
};
|
|
373
|
+
t30 = [form, globalData];
|
|
374
|
+
$[61] = form;
|
|
375
|
+
$[62] = globalData;
|
|
376
|
+
$[63] = t29;
|
|
377
|
+
$[64] = t30;
|
|
378
|
+
} else {
|
|
379
|
+
t29 = $[63];
|
|
380
|
+
t30 = $[64];
|
|
381
|
+
}
|
|
382
|
+
React.useEffect(t29, t30);
|
|
383
|
+
let t31;
|
|
384
|
+
if ($[65] !== globalSchema) {
|
|
385
|
+
t31 = extractReactiveConfigs(globalSchema);
|
|
386
|
+
$[65] = globalSchema;
|
|
387
|
+
$[66] = t31;
|
|
388
|
+
} else t31 = $[66];
|
|
389
|
+
const reactiveConfigs = t31;
|
|
390
|
+
let t32;
|
|
391
|
+
if ($[67] !== dataLoading || $[68] !== reactiveConfigs) {
|
|
392
|
+
t32 = !dataLoading && Object.keys(reactiveConfigs).length > 0;
|
|
393
|
+
$[67] = dataLoading;
|
|
394
|
+
$[68] = reactiveConfigs;
|
|
395
|
+
$[69] = t32;
|
|
396
|
+
} else t32 = $[69];
|
|
397
|
+
let t33;
|
|
398
|
+
if ($[70] !== form || $[71] !== globalName || $[72] !== reactiveConfigs || $[73] !== t32) {
|
|
399
|
+
t33 = {
|
|
400
|
+
collection: globalName,
|
|
401
|
+
mode: "global",
|
|
402
|
+
reactiveConfigs,
|
|
403
|
+
enabled: t32,
|
|
404
|
+
debounce: 300,
|
|
405
|
+
form
|
|
406
|
+
};
|
|
407
|
+
$[70] = form;
|
|
408
|
+
$[71] = globalName;
|
|
409
|
+
$[72] = reactiveConfigs;
|
|
410
|
+
$[73] = t32;
|
|
411
|
+
$[74] = t33;
|
|
412
|
+
} else t33 = $[74];
|
|
413
|
+
useReactiveFields(t33);
|
|
414
|
+
let t34;
|
|
415
|
+
bb1: {
|
|
416
|
+
if (!viewConfig) {
|
|
417
|
+
t34 = config;
|
|
418
|
+
break bb1;
|
|
92
419
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
420
|
+
let t35$1;
|
|
421
|
+
if ($[75] !== config) {
|
|
422
|
+
t35$1 = config ?? {};
|
|
423
|
+
$[75] = config;
|
|
424
|
+
$[76] = t35$1;
|
|
425
|
+
} else t35$1 = $[76];
|
|
426
|
+
let t36$1;
|
|
427
|
+
if ($[77] !== t35$1 || $[78] !== viewConfig) {
|
|
428
|
+
t36$1 = {
|
|
429
|
+
...t35$1,
|
|
430
|
+
form: viewConfig
|
|
431
|
+
};
|
|
432
|
+
$[77] = t35$1;
|
|
433
|
+
$[78] = viewConfig;
|
|
434
|
+
$[79] = t36$1;
|
|
435
|
+
} else t36$1 = $[79];
|
|
436
|
+
t34 = t36$1;
|
|
437
|
+
}
|
|
438
|
+
const resolvedConfig = t34;
|
|
439
|
+
let t35;
|
|
440
|
+
if ($[80] !== form || $[81] !== t || $[82] !== updateMutation) {
|
|
441
|
+
t35 = async (data_0) => {
|
|
442
|
+
try {
|
|
443
|
+
const result_0 = await updateMutation.mutateAsync({ data: data_0 });
|
|
444
|
+
if (result_0) form.reset(result_0);
|
|
445
|
+
} catch (t36$1) {
|
|
446
|
+
const error_0 = t36$1;
|
|
447
|
+
if (error_0 instanceof QuestpieClientError && error_0.fieldErrors && error_0.fieldErrors.length > 0) {
|
|
448
|
+
for (const fieldError of error_0.fieldErrors) form.setError(fieldError.path, {
|
|
449
|
+
type: "server",
|
|
450
|
+
message: fieldError.message
|
|
451
|
+
});
|
|
452
|
+
toast.error(t("toast.validationFailed"), { description: t("toast.validationDescription") });
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
455
|
+
const message = error_0 instanceof Error ? error_0.message : t("error.unknown");
|
|
456
|
+
toast.error(t("toast.settingsSaveFailed") || "Failed to save settings", { description: message });
|
|
103
457
|
}
|
|
104
458
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
459
|
+
$[80] = form;
|
|
460
|
+
$[81] = t;
|
|
461
|
+
$[82] = updateMutation;
|
|
462
|
+
$[83] = t35;
|
|
463
|
+
} else t35 = $[83];
|
|
464
|
+
const onSubmit = t35;
|
|
465
|
+
let t36;
|
|
466
|
+
let t37;
|
|
467
|
+
if ($[84] !== form || $[85] !== onSubmit) {
|
|
468
|
+
t36 = () => {
|
|
469
|
+
const handleKeyDown = (e) => {
|
|
470
|
+
if ((e.metaKey || e.ctrlKey) && e.key === "s") {
|
|
471
|
+
e.preventDefault();
|
|
472
|
+
form.handleSubmit(onSubmit)();
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
476
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
477
|
+
};
|
|
478
|
+
t37 = [form, onSubmit];
|
|
479
|
+
$[84] = form;
|
|
480
|
+
$[85] = onSubmit;
|
|
481
|
+
$[86] = t36;
|
|
482
|
+
$[87] = t37;
|
|
483
|
+
} else {
|
|
484
|
+
t36 = $[86];
|
|
485
|
+
t37 = $[87];
|
|
486
|
+
}
|
|
487
|
+
React.useEffect(t36, t37);
|
|
108
488
|
const isSubmitting = updateMutation.isPending || form.formState.isSubmitting;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
489
|
+
let t38;
|
|
490
|
+
if ($[88] !== form || $[89] !== globalData || $[90] !== pendingRevertVersion || $[91] !== revertVersionMutation || $[92] !== t) {
|
|
491
|
+
t38 = async () => {
|
|
492
|
+
if (!pendingRevertVersion) return;
|
|
493
|
+
const payload = {};
|
|
494
|
+
if (typeof globalData?.id === "string") payload.id = globalData.id;
|
|
495
|
+
if (typeof pendingRevertVersion.versionId === "string") payload.versionId = pendingRevertVersion.versionId;
|
|
496
|
+
else if (typeof pendingRevertVersion.versionNumber === "number") payload.version = pendingRevertVersion.versionNumber;
|
|
497
|
+
const result_1 = await revertVersionMutation.mutateAsync(payload);
|
|
498
|
+
form.reset(result_1);
|
|
499
|
+
toast.success(t("version.revertSuccess"));
|
|
500
|
+
setPendingRevertVersion(null);
|
|
501
|
+
};
|
|
502
|
+
$[88] = form;
|
|
503
|
+
$[89] = globalData;
|
|
504
|
+
$[90] = pendingRevertVersion;
|
|
505
|
+
$[91] = revertVersionMutation;
|
|
506
|
+
$[92] = t;
|
|
507
|
+
$[93] = t38;
|
|
508
|
+
} else t38 = $[93];
|
|
509
|
+
const confirmRevertVersion = t38;
|
|
510
|
+
const formatDate = _temp;
|
|
511
|
+
if (dataError) {
|
|
512
|
+
let t39$1;
|
|
513
|
+
if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
|
|
514
|
+
t39$1 = /* @__PURE__ */ jsx(Icon, {
|
|
515
|
+
icon: "ph:warning-circle",
|
|
516
|
+
className: "text-destructive size-8"
|
|
517
|
+
});
|
|
518
|
+
$[94] = t39$1;
|
|
519
|
+
} else t39$1 = $[94];
|
|
520
|
+
let t40$1;
|
|
521
|
+
if ($[95] !== dataError || $[96] !== t) {
|
|
522
|
+
t40$1 = dataError instanceof Error ? dataError.message : t("errors.failedToLoad");
|
|
523
|
+
$[95] = dataError;
|
|
524
|
+
$[96] = t;
|
|
525
|
+
$[97] = t40$1;
|
|
526
|
+
} else t40$1 = $[97];
|
|
527
|
+
let t41$1;
|
|
528
|
+
if ($[98] !== t40$1) {
|
|
529
|
+
t41$1 = /* @__PURE__ */ jsx("p", {
|
|
530
|
+
className: "text-sm",
|
|
531
|
+
children: t40$1
|
|
532
|
+
});
|
|
533
|
+
$[98] = t40$1;
|
|
534
|
+
$[99] = t41$1;
|
|
535
|
+
} else t41$1 = $[99];
|
|
536
|
+
let t42$1;
|
|
537
|
+
if ($[100] !== t) {
|
|
538
|
+
t42$1 = t("common.retry");
|
|
539
|
+
$[100] = t;
|
|
540
|
+
$[101] = t42$1;
|
|
541
|
+
} else t42$1 = $[101];
|
|
542
|
+
let t43$1;
|
|
543
|
+
if ($[102] !== t42$1) {
|
|
544
|
+
t43$1 = /* @__PURE__ */ jsx("button", {
|
|
545
|
+
type: "button",
|
|
546
|
+
className: "hover:text-foreground text-sm underline",
|
|
547
|
+
onClick: _temp2,
|
|
548
|
+
children: t42$1
|
|
549
|
+
});
|
|
550
|
+
$[102] = t42$1;
|
|
551
|
+
$[103] = t43$1;
|
|
552
|
+
} else t43$1 = $[103];
|
|
553
|
+
let t44$1;
|
|
554
|
+
if ($[104] !== t41$1 || $[105] !== t43$1) {
|
|
555
|
+
t44$1 = /* @__PURE__ */ jsxs("div", {
|
|
556
|
+
className: "text-muted-foreground flex h-64 flex-col items-center justify-center gap-3",
|
|
557
|
+
children: [
|
|
558
|
+
t39$1,
|
|
559
|
+
t41$1,
|
|
560
|
+
t43$1
|
|
561
|
+
]
|
|
562
|
+
});
|
|
563
|
+
$[104] = t41$1;
|
|
564
|
+
$[105] = t43$1;
|
|
565
|
+
$[106] = t44$1;
|
|
566
|
+
} else t44$1 = $[106];
|
|
567
|
+
return t44$1;
|
|
568
|
+
}
|
|
569
|
+
if (dataLoading) {
|
|
570
|
+
let t39$1;
|
|
571
|
+
if ($[107] === Symbol.for("react.memo_cache_sentinel")) {
|
|
572
|
+
t39$1 = /* @__PURE__ */ jsx("div", {
|
|
573
|
+
className: "text-muted-foreground flex h-64 items-center justify-center",
|
|
574
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
575
|
+
icon: "ph:spinner-gap",
|
|
576
|
+
className: "size-6 animate-spin"
|
|
577
|
+
})
|
|
578
|
+
});
|
|
579
|
+
$[107] = t39$1;
|
|
580
|
+
} else t39$1 = $[107];
|
|
581
|
+
return t39$1;
|
|
582
|
+
}
|
|
583
|
+
const t39 = resolvedConfig?.label ?? schemaFields?._globalLabel;
|
|
584
|
+
let t40;
|
|
585
|
+
if ($[108] !== globalName || $[109] !== resolveText || $[110] !== t39) {
|
|
586
|
+
t40 = resolveText(t39, globalName);
|
|
587
|
+
$[108] = globalName;
|
|
588
|
+
$[109] = resolveText;
|
|
589
|
+
$[110] = t39;
|
|
590
|
+
$[111] = t40;
|
|
591
|
+
} else t40 = $[111];
|
|
592
|
+
const globalLabel = t40;
|
|
593
|
+
let t41;
|
|
594
|
+
if ($[112] !== form || $[113] !== onSubmit) {
|
|
595
|
+
t41 = form.handleSubmit(onSubmit);
|
|
596
|
+
$[112] = form;
|
|
597
|
+
$[113] = onSubmit;
|
|
598
|
+
$[114] = t41;
|
|
599
|
+
} else t41 = $[114];
|
|
600
|
+
let t42;
|
|
601
|
+
if ($[115] !== globalLabel) {
|
|
602
|
+
t42 = /* @__PURE__ */ jsx("h1", {
|
|
603
|
+
className: "qa-global-form__title text-2xl font-extrabold tracking-tight md:text-3xl",
|
|
604
|
+
children: globalLabel
|
|
605
|
+
});
|
|
606
|
+
$[115] = globalLabel;
|
|
607
|
+
$[116] = t42;
|
|
608
|
+
} else t42 = $[116];
|
|
609
|
+
let t43;
|
|
610
|
+
if ($[117] !== contentLocale || $[118] !== localeOptions || $[119] !== setContentLocale) {
|
|
611
|
+
t43 = localeOptions.length > 0 && /* @__PURE__ */ jsx(LocaleSwitcher, {
|
|
612
|
+
locales: localeOptions,
|
|
613
|
+
value: contentLocale,
|
|
614
|
+
onChange: setContentLocale
|
|
615
|
+
});
|
|
616
|
+
$[117] = contentLocale;
|
|
617
|
+
$[118] = localeOptions;
|
|
618
|
+
$[119] = setContentLocale;
|
|
619
|
+
$[120] = t43;
|
|
620
|
+
} else t43 = $[120];
|
|
621
|
+
let t44;
|
|
622
|
+
if ($[121] !== currentStage || $[122] !== currentStageLabel || $[123] !== workflowEnabled) {
|
|
623
|
+
t44 = workflowEnabled && currentStage && /* @__PURE__ */ jsxs(Badge, {
|
|
624
|
+
variant: "outline",
|
|
625
|
+
className: "gap-1.5",
|
|
626
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
627
|
+
icon: "ph:git-branch",
|
|
628
|
+
className: "size-3"
|
|
629
|
+
}), currentStageLabel]
|
|
630
|
+
});
|
|
631
|
+
$[121] = currentStage;
|
|
632
|
+
$[122] = currentStageLabel;
|
|
633
|
+
$[123] = workflowEnabled;
|
|
634
|
+
$[124] = t44;
|
|
635
|
+
} else t44 = $[124];
|
|
636
|
+
let t45;
|
|
637
|
+
if ($[125] !== t42 || $[126] !== t43 || $[127] !== t44) {
|
|
638
|
+
t45 = /* @__PURE__ */ jsxs("div", {
|
|
639
|
+
className: "flex flex-wrap items-center gap-3",
|
|
640
|
+
children: [
|
|
641
|
+
t42,
|
|
642
|
+
t43,
|
|
643
|
+
t44
|
|
644
|
+
]
|
|
645
|
+
});
|
|
646
|
+
$[125] = t42;
|
|
647
|
+
$[126] = t43;
|
|
648
|
+
$[127] = t44;
|
|
649
|
+
$[128] = t45;
|
|
650
|
+
} else t45 = $[128];
|
|
651
|
+
let t46;
|
|
652
|
+
if ($[129] !== globalData || $[130] !== showMeta || $[131] !== t) {
|
|
653
|
+
t46 = showMeta && globalData?.updatedAt && /* @__PURE__ */ jsxs("p", {
|
|
654
|
+
className: "qa-global-form__meta text-muted-foreground mt-1 text-xs",
|
|
655
|
+
children: [
|
|
656
|
+
t("form.lastUpdated"),
|
|
657
|
+
": ",
|
|
658
|
+
formatDate(globalData.updatedAt)
|
|
659
|
+
]
|
|
660
|
+
});
|
|
661
|
+
$[129] = globalData;
|
|
662
|
+
$[130] = showMeta;
|
|
663
|
+
$[131] = t;
|
|
664
|
+
$[132] = t46;
|
|
665
|
+
} else t46 = $[132];
|
|
666
|
+
let t47;
|
|
667
|
+
if ($[133] !== t45 || $[134] !== t46) {
|
|
668
|
+
t47 = /* @__PURE__ */ jsxs("div", {
|
|
669
|
+
className: "min-w-0 flex-1",
|
|
670
|
+
children: [t45, t46]
|
|
671
|
+
});
|
|
672
|
+
$[133] = t45;
|
|
673
|
+
$[134] = t46;
|
|
674
|
+
$[135] = t47;
|
|
675
|
+
} else t47 = $[135];
|
|
676
|
+
let t48;
|
|
677
|
+
if ($[136] !== allowedTransitions || $[137] !== t || $[138] !== workflowEnabled) {
|
|
678
|
+
t48 = workflowEnabled && allowedTransitions.length > 0 && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsxs(DropdownMenuTrigger, {
|
|
679
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
680
|
+
type: "button",
|
|
681
|
+
variant: "outline",
|
|
682
|
+
className: "gap-2"
|
|
683
|
+
}),
|
|
684
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
685
|
+
icon: "ph:arrows-left-right",
|
|
686
|
+
className: "size-4"
|
|
687
|
+
}), t("workflow.transition")]
|
|
688
|
+
}), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
689
|
+
align: "end",
|
|
690
|
+
children: allowedTransitions.map((stage) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
691
|
+
onClick: () => setTransitionTarget({
|
|
692
|
+
name: stage.name,
|
|
693
|
+
label: stage.label
|
|
694
|
+
}),
|
|
695
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
696
|
+
icon: "ph:arrow-right",
|
|
697
|
+
className: "mr-2 size-4"
|
|
698
|
+
}), stage.label || stage.name]
|
|
699
|
+
}, stage.name))
|
|
700
|
+
})] });
|
|
701
|
+
$[136] = allowedTransitions;
|
|
702
|
+
$[137] = t;
|
|
703
|
+
$[138] = workflowEnabled;
|
|
704
|
+
$[139] = t48;
|
|
705
|
+
} else t48 = $[139];
|
|
706
|
+
let t49;
|
|
707
|
+
if ($[140] !== setIsHistoryOpen) {
|
|
708
|
+
t49 = () => setIsHistoryOpen(true);
|
|
709
|
+
$[140] = setIsHistoryOpen;
|
|
710
|
+
$[141] = t49;
|
|
711
|
+
} else t49 = $[141];
|
|
712
|
+
let t50;
|
|
713
|
+
if ($[142] !== t) {
|
|
714
|
+
t50 = t("history.title");
|
|
715
|
+
$[142] = t;
|
|
716
|
+
$[143] = t50;
|
|
717
|
+
} else t50 = $[143];
|
|
718
|
+
let t51;
|
|
719
|
+
if ($[144] === Symbol.for("react.memo_cache_sentinel")) {
|
|
720
|
+
t51 = /* @__PURE__ */ jsx(Icon, {
|
|
721
|
+
icon: "ph:clock-counter-clockwise",
|
|
722
|
+
className: "size-4"
|
|
723
|
+
});
|
|
724
|
+
$[144] = t51;
|
|
725
|
+
} else t51 = $[144];
|
|
726
|
+
let t52;
|
|
727
|
+
if ($[145] !== t) {
|
|
728
|
+
t52 = t("history.title");
|
|
729
|
+
$[145] = t;
|
|
730
|
+
$[146] = t52;
|
|
731
|
+
} else t52 = $[146];
|
|
732
|
+
let t53;
|
|
733
|
+
if ($[147] !== t52) {
|
|
734
|
+
t53 = /* @__PURE__ */ jsx("span", {
|
|
735
|
+
className: "sr-only",
|
|
736
|
+
children: t52
|
|
737
|
+
});
|
|
738
|
+
$[147] = t52;
|
|
739
|
+
$[148] = t53;
|
|
740
|
+
} else t53 = $[148];
|
|
741
|
+
let t54;
|
|
742
|
+
if ($[149] !== t49 || $[150] !== t50 || $[151] !== t53) {
|
|
743
|
+
t54 = /* @__PURE__ */ jsxs(Button, {
|
|
744
|
+
type: "button",
|
|
745
|
+
variant: "outline",
|
|
746
|
+
size: "icon",
|
|
747
|
+
className: "size-9",
|
|
748
|
+
onClick: t49,
|
|
749
|
+
title: t50,
|
|
750
|
+
children: [t51, t53]
|
|
751
|
+
});
|
|
752
|
+
$[149] = t49;
|
|
753
|
+
$[150] = t50;
|
|
754
|
+
$[151] = t53;
|
|
755
|
+
$[152] = t54;
|
|
756
|
+
} else t54 = $[152];
|
|
757
|
+
let t55;
|
|
758
|
+
if ($[153] !== isSubmitting || $[154] !== t) {
|
|
759
|
+
t55 = isSubmitting ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
121
760
|
icon: "ph:spinner-gap",
|
|
122
|
-
className: "size-
|
|
123
|
-
})
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
761
|
+
className: "size-4 animate-spin"
|
|
762
|
+
}), t("common.loading")] }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
763
|
+
icon: "ph:check",
|
|
764
|
+
width: 16,
|
|
765
|
+
height: 16
|
|
766
|
+
}), t("common.save")] });
|
|
767
|
+
$[153] = isSubmitting;
|
|
768
|
+
$[154] = t;
|
|
769
|
+
$[155] = t55;
|
|
770
|
+
} else t55 = $[155];
|
|
771
|
+
let t56;
|
|
772
|
+
if ($[156] !== isSubmitting || $[157] !== t55) {
|
|
773
|
+
t56 = /* @__PURE__ */ jsx(Button, {
|
|
774
|
+
type: "submit",
|
|
775
|
+
disabled: isSubmitting,
|
|
776
|
+
className: "gap-2",
|
|
777
|
+
children: t55
|
|
778
|
+
});
|
|
779
|
+
$[156] = isSubmitting;
|
|
780
|
+
$[157] = t55;
|
|
781
|
+
$[158] = t56;
|
|
782
|
+
} else t56 = $[158];
|
|
783
|
+
let t57;
|
|
784
|
+
if ($[159] !== headerActions || $[160] !== t48 || $[161] !== t54 || $[162] !== t56) {
|
|
785
|
+
t57 = /* @__PURE__ */ jsxs("div", {
|
|
786
|
+
className: "qa-global-form__actions flex shrink-0 items-center gap-2",
|
|
787
|
+
children: [
|
|
788
|
+
headerActions,
|
|
789
|
+
t48,
|
|
790
|
+
t54,
|
|
791
|
+
t56
|
|
792
|
+
]
|
|
793
|
+
});
|
|
794
|
+
$[159] = headerActions;
|
|
795
|
+
$[160] = t48;
|
|
796
|
+
$[161] = t54;
|
|
797
|
+
$[162] = t56;
|
|
798
|
+
$[163] = t57;
|
|
799
|
+
} else t57 = $[163];
|
|
800
|
+
let t58;
|
|
801
|
+
if ($[164] !== t47 || $[165] !== t57) {
|
|
802
|
+
t58 = /* @__PURE__ */ jsxs("div", {
|
|
803
|
+
className: "qa-global-form__header flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
|
|
804
|
+
children: [t47, t57]
|
|
805
|
+
});
|
|
806
|
+
$[164] = t47;
|
|
807
|
+
$[165] = t57;
|
|
808
|
+
$[166] = t58;
|
|
809
|
+
} else t58 = $[166];
|
|
810
|
+
let t59;
|
|
811
|
+
if ($[167] !== globalName || $[168] !== registry || $[169] !== resolvedConfig) {
|
|
812
|
+
t59 = /* @__PURE__ */ jsx(AutoFormFields, {
|
|
813
|
+
collection: globalName,
|
|
814
|
+
mode: "global",
|
|
815
|
+
config: resolvedConfig,
|
|
816
|
+
registry
|
|
817
|
+
});
|
|
818
|
+
$[167] = globalName;
|
|
819
|
+
$[168] = registry;
|
|
820
|
+
$[169] = resolvedConfig;
|
|
821
|
+
$[170] = t59;
|
|
822
|
+
} else t59 = $[170];
|
|
823
|
+
let t60;
|
|
824
|
+
if ($[171] !== t41 || $[172] !== t58 || $[173] !== t59) {
|
|
825
|
+
t60 = /* @__PURE__ */ jsxs("form", {
|
|
826
|
+
onSubmit: t41,
|
|
827
|
+
className: "qa-global-form w-full space-y-4",
|
|
828
|
+
children: [t58, t59]
|
|
829
|
+
});
|
|
830
|
+
$[171] = t41;
|
|
831
|
+
$[172] = t58;
|
|
832
|
+
$[173] = t59;
|
|
833
|
+
$[174] = t60;
|
|
834
|
+
} else t60 = $[174];
|
|
835
|
+
let t61;
|
|
836
|
+
if ($[175] !== auditData) {
|
|
837
|
+
t61 = auditData ?? [];
|
|
838
|
+
$[175] = auditData;
|
|
839
|
+
$[176] = t61;
|
|
840
|
+
} else t61 = $[176];
|
|
841
|
+
let t62;
|
|
842
|
+
if ($[177] !== versionsData) {
|
|
843
|
+
t62 = versionsData ?? [];
|
|
844
|
+
$[177] = versionsData;
|
|
845
|
+
$[178] = t62;
|
|
846
|
+
} else t62 = $[178];
|
|
847
|
+
const t63 = t62;
|
|
848
|
+
let t64;
|
|
849
|
+
if ($[179] === Symbol.for("react.memo_cache_sentinel")) {
|
|
850
|
+
t64 = async (version) => {
|
|
851
|
+
setPendingRevertVersion(version);
|
|
852
|
+
};
|
|
853
|
+
$[179] = t64;
|
|
854
|
+
} else t64 = $[179];
|
|
855
|
+
const t65 = !!globalSchema?.options?.versioning;
|
|
856
|
+
let t66;
|
|
857
|
+
if ($[180] !== auditLoading || $[181] !== isHistoryOpen || $[182] !== revertVersionMutation.isPending || $[183] !== setIsHistoryOpen || $[184] !== t61 || $[185] !== t63 || $[186] !== t65 || $[187] !== versionsLoading) {
|
|
858
|
+
t66 = /* @__PURE__ */ jsx(HistorySidebar, {
|
|
859
|
+
open: isHistoryOpen,
|
|
860
|
+
onOpenChange: setIsHistoryOpen,
|
|
861
|
+
auditEntries: t61,
|
|
862
|
+
isLoadingAudit: auditLoading,
|
|
863
|
+
versions: t63,
|
|
864
|
+
isLoadingVersions: versionsLoading,
|
|
865
|
+
isReverting: revertVersionMutation.isPending,
|
|
866
|
+
onRevert: t64,
|
|
867
|
+
showVersionsTab: t65
|
|
868
|
+
});
|
|
869
|
+
$[180] = auditLoading;
|
|
870
|
+
$[181] = isHistoryOpen;
|
|
871
|
+
$[182] = revertVersionMutation.isPending;
|
|
872
|
+
$[183] = setIsHistoryOpen;
|
|
873
|
+
$[184] = t61;
|
|
874
|
+
$[185] = t63;
|
|
875
|
+
$[186] = t65;
|
|
876
|
+
$[187] = versionsLoading;
|
|
877
|
+
$[188] = t66;
|
|
878
|
+
} else t66 = $[188];
|
|
879
|
+
const t67 = !!pendingRevertVersion;
|
|
880
|
+
let t68;
|
|
881
|
+
if ($[189] === Symbol.for("react.memo_cache_sentinel")) {
|
|
882
|
+
t68 = (open) => {
|
|
883
|
+
if (!open) setPendingRevertVersion(null);
|
|
884
|
+
};
|
|
885
|
+
$[189] = t68;
|
|
886
|
+
} else t68 = $[189];
|
|
887
|
+
let t69;
|
|
888
|
+
if ($[190] !== t) {
|
|
889
|
+
t69 = t("version.revertConfirmTitle");
|
|
890
|
+
$[190] = t;
|
|
891
|
+
$[191] = t69;
|
|
892
|
+
} else t69 = $[191];
|
|
893
|
+
const t70 = pendingRevertVersion?.versionNumber ?? pendingRevertVersion?.versionId ?? "-";
|
|
894
|
+
let t71;
|
|
895
|
+
if ($[192] !== t || $[193] !== t70) {
|
|
896
|
+
t71 = t("version.revertConfirmDescription", { number: t70 });
|
|
897
|
+
$[192] = t;
|
|
898
|
+
$[193] = t70;
|
|
899
|
+
$[194] = t71;
|
|
900
|
+
} else t71 = $[194];
|
|
901
|
+
let t72;
|
|
902
|
+
if ($[195] !== t) {
|
|
903
|
+
t72 = t("version.revert");
|
|
904
|
+
$[195] = t;
|
|
905
|
+
$[196] = t72;
|
|
906
|
+
} else t72 = $[196];
|
|
907
|
+
let t73;
|
|
908
|
+
if ($[197] !== t) {
|
|
909
|
+
t73 = t("common.cancel");
|
|
910
|
+
$[197] = t;
|
|
911
|
+
$[198] = t73;
|
|
912
|
+
} else t73 = $[198];
|
|
913
|
+
let t74;
|
|
914
|
+
if ($[199] !== t69 || $[200] !== t71 || $[201] !== t72 || $[202] !== t73) {
|
|
915
|
+
t74 = {
|
|
916
|
+
title: t69,
|
|
917
|
+
description: t71,
|
|
918
|
+
confirmLabel: t72,
|
|
919
|
+
cancelLabel: t73,
|
|
920
|
+
destructive: false
|
|
921
|
+
};
|
|
922
|
+
$[199] = t69;
|
|
923
|
+
$[200] = t71;
|
|
924
|
+
$[201] = t72;
|
|
925
|
+
$[202] = t73;
|
|
926
|
+
$[203] = t74;
|
|
927
|
+
} else t74 = $[203];
|
|
928
|
+
let t75;
|
|
929
|
+
if ($[204] !== confirmRevertVersion || $[205] !== revertVersionMutation.isPending || $[206] !== t67 || $[207] !== t74) {
|
|
930
|
+
t75 = /* @__PURE__ */ jsx(ConfirmationDialog, {
|
|
931
|
+
open: t67,
|
|
932
|
+
onOpenChange: t68,
|
|
933
|
+
config: t74,
|
|
934
|
+
onConfirm: confirmRevertVersion,
|
|
935
|
+
loading: revertVersionMutation.isPending
|
|
936
|
+
});
|
|
937
|
+
$[204] = confirmRevertVersion;
|
|
938
|
+
$[205] = revertVersionMutation.isPending;
|
|
939
|
+
$[206] = t67;
|
|
940
|
+
$[207] = t74;
|
|
941
|
+
$[208] = t75;
|
|
942
|
+
} else t75 = $[208];
|
|
943
|
+
const t76 = !!transitionTarget;
|
|
944
|
+
let t77;
|
|
945
|
+
if ($[209] === Symbol.for("react.memo_cache_sentinel")) {
|
|
946
|
+
t77 = (open_0) => {
|
|
947
|
+
if (!open_0) {
|
|
948
|
+
setTransitionTarget(null);
|
|
949
|
+
setTransitionSchedule(false);
|
|
950
|
+
setTransitionScheduledAt(null);
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
$[209] = t77;
|
|
954
|
+
} else t77 = $[209];
|
|
955
|
+
let t78;
|
|
956
|
+
if ($[210] === Symbol.for("react.memo_cache_sentinel")) {
|
|
957
|
+
t78 = /* @__PURE__ */ jsx(Icon, {
|
|
958
|
+
icon: "ph:arrows-left-right",
|
|
959
|
+
className: "size-5"
|
|
960
|
+
});
|
|
961
|
+
$[210] = t78;
|
|
962
|
+
} else t78 = $[210];
|
|
963
|
+
const t79 = transitionTarget?.label ?? transitionTarget?.name ?? "";
|
|
964
|
+
let t80;
|
|
965
|
+
if ($[211] !== t || $[212] !== t79) {
|
|
966
|
+
t80 = t("workflow.transitionTo", { stage: t79 });
|
|
967
|
+
$[211] = t;
|
|
968
|
+
$[212] = t79;
|
|
969
|
+
$[213] = t80;
|
|
970
|
+
} else t80 = $[213];
|
|
971
|
+
let t81;
|
|
972
|
+
if ($[214] !== t80) {
|
|
973
|
+
t81 = /* @__PURE__ */ jsxs(DialogTitle, {
|
|
974
|
+
className: "flex items-center gap-2",
|
|
975
|
+
children: [t78, t80]
|
|
976
|
+
});
|
|
977
|
+
$[214] = t80;
|
|
978
|
+
$[215] = t81;
|
|
979
|
+
} else t81 = $[215];
|
|
980
|
+
const t82 = transitionTarget?.label ?? transitionTarget?.name ?? "";
|
|
981
|
+
let t83;
|
|
982
|
+
if ($[216] !== currentStageLabel || $[217] !== t || $[218] !== t82) {
|
|
983
|
+
t83 = t("workflow.transitionDescription", {
|
|
984
|
+
from: currentStageLabel,
|
|
985
|
+
to: t82
|
|
986
|
+
});
|
|
987
|
+
$[216] = currentStageLabel;
|
|
988
|
+
$[217] = t;
|
|
989
|
+
$[218] = t82;
|
|
990
|
+
$[219] = t83;
|
|
991
|
+
} else t83 = $[219];
|
|
992
|
+
let t84;
|
|
993
|
+
if ($[220] !== t83) {
|
|
994
|
+
t84 = /* @__PURE__ */ jsx(DialogDescription, { children: t83 });
|
|
995
|
+
$[220] = t83;
|
|
996
|
+
$[221] = t84;
|
|
997
|
+
} else t84 = $[221];
|
|
998
|
+
let t85;
|
|
999
|
+
if ($[222] !== t81 || $[223] !== t84) {
|
|
1000
|
+
t85 = /* @__PURE__ */ jsxs(DialogHeader, { children: [t81, t84] });
|
|
1001
|
+
$[222] = t81;
|
|
1002
|
+
$[223] = t84;
|
|
1003
|
+
$[224] = t85;
|
|
1004
|
+
} else t85 = $[224];
|
|
1005
|
+
let t86;
|
|
1006
|
+
if ($[225] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1007
|
+
t86 = (val) => {
|
|
1008
|
+
setTransitionSchedule(!!val);
|
|
1009
|
+
if (!val) setTransitionScheduledAt(null);
|
|
1010
|
+
};
|
|
1011
|
+
$[225] = t86;
|
|
1012
|
+
} else t86 = $[225];
|
|
1013
|
+
let t87;
|
|
1014
|
+
if ($[226] !== transitionSchedule) {
|
|
1015
|
+
t87 = /* @__PURE__ */ jsx(Checkbox, {
|
|
1016
|
+
checked: transitionSchedule,
|
|
1017
|
+
onCheckedChange: t86,
|
|
1018
|
+
id: "global-transition-schedule"
|
|
1019
|
+
});
|
|
1020
|
+
$[226] = transitionSchedule;
|
|
1021
|
+
$[227] = t87;
|
|
1022
|
+
} else t87 = $[227];
|
|
1023
|
+
let t88;
|
|
1024
|
+
if ($[228] !== t) {
|
|
1025
|
+
t88 = t("workflow.scheduleLabel");
|
|
1026
|
+
$[228] = t;
|
|
1027
|
+
$[229] = t88;
|
|
1028
|
+
} else t88 = $[229];
|
|
1029
|
+
let t89;
|
|
1030
|
+
if ($[230] !== t88) {
|
|
1031
|
+
t89 = /* @__PURE__ */ jsx(Label, {
|
|
1032
|
+
htmlFor: "global-transition-schedule",
|
|
1033
|
+
className: "cursor-pointer text-sm",
|
|
1034
|
+
children: t88
|
|
1035
|
+
});
|
|
1036
|
+
$[230] = t88;
|
|
1037
|
+
$[231] = t89;
|
|
1038
|
+
} else t89 = $[231];
|
|
1039
|
+
let t90;
|
|
1040
|
+
if ($[232] !== t87 || $[233] !== t89) {
|
|
1041
|
+
t90 = /* @__PURE__ */ jsxs("div", {
|
|
1042
|
+
className: "flex items-center gap-2",
|
|
1043
|
+
children: [t87, t89]
|
|
1044
|
+
});
|
|
1045
|
+
$[232] = t87;
|
|
1046
|
+
$[233] = t89;
|
|
1047
|
+
$[234] = t90;
|
|
1048
|
+
} else t90 = $[234];
|
|
1049
|
+
let t91;
|
|
1050
|
+
if ($[235] !== t || $[236] !== transitionSchedule || $[237] !== transitionScheduledAt) {
|
|
1051
|
+
t91 = transitionSchedule && /* @__PURE__ */ jsxs("div", {
|
|
1052
|
+
className: "space-y-1.5 pl-6",
|
|
1053
|
+
children: [
|
|
1054
|
+
/* @__PURE__ */ jsx(Label, {
|
|
1055
|
+
className: "text-muted-foreground text-xs",
|
|
1056
|
+
children: t("workflow.scheduledAt")
|
|
1057
|
+
}),
|
|
1058
|
+
/* @__PURE__ */ jsx(DateTimeInput, {
|
|
1059
|
+
value: transitionScheduledAt,
|
|
1060
|
+
onChange: setTransitionScheduledAt,
|
|
1061
|
+
minDate: /* @__PURE__ */ new Date()
|
|
1062
|
+
}),
|
|
1063
|
+
/* @__PURE__ */ jsx("p", {
|
|
1064
|
+
className: "text-muted-foreground text-xs",
|
|
1065
|
+
children: t("workflow.scheduledDescription")
|
|
1066
|
+
})
|
|
1067
|
+
]
|
|
1068
|
+
});
|
|
1069
|
+
$[235] = t;
|
|
1070
|
+
$[236] = transitionSchedule;
|
|
1071
|
+
$[237] = transitionScheduledAt;
|
|
1072
|
+
$[238] = t91;
|
|
1073
|
+
} else t91 = $[238];
|
|
1074
|
+
let t92;
|
|
1075
|
+
if ($[239] !== t90 || $[240] !== t91) {
|
|
1076
|
+
t92 = /* @__PURE__ */ jsxs("div", {
|
|
1077
|
+
className: "space-y-3 py-2",
|
|
1078
|
+
children: [t90, t91]
|
|
1079
|
+
});
|
|
1080
|
+
$[239] = t90;
|
|
1081
|
+
$[240] = t91;
|
|
1082
|
+
$[241] = t92;
|
|
1083
|
+
} else t92 = $[241];
|
|
1084
|
+
let t93;
|
|
1085
|
+
if ($[242] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1086
|
+
t93 = () => {
|
|
1087
|
+
setTransitionTarget(null);
|
|
1088
|
+
setTransitionSchedule(false);
|
|
1089
|
+
setTransitionScheduledAt(null);
|
|
1090
|
+
};
|
|
1091
|
+
$[242] = t93;
|
|
1092
|
+
} else t93 = $[242];
|
|
1093
|
+
let t94;
|
|
1094
|
+
if ($[243] !== t) {
|
|
1095
|
+
t94 = t("common.cancel");
|
|
1096
|
+
$[243] = t;
|
|
1097
|
+
$[244] = t94;
|
|
1098
|
+
} else t94 = $[244];
|
|
1099
|
+
let t95;
|
|
1100
|
+
if ($[245] !== t94) {
|
|
1101
|
+
t95 = /* @__PURE__ */ jsx(Button, {
|
|
1102
|
+
type: "button",
|
|
1103
|
+
variant: "outline",
|
|
1104
|
+
onClick: t93,
|
|
1105
|
+
children: t94
|
|
1106
|
+
});
|
|
1107
|
+
$[245] = t94;
|
|
1108
|
+
$[246] = t95;
|
|
1109
|
+
} else t95 = $[246];
|
|
1110
|
+
const t96 = transitionMutation.isPending || transitionSchedule && !transitionScheduledAt;
|
|
1111
|
+
let t97;
|
|
1112
|
+
if ($[247] !== transitionMutation.isPending) {
|
|
1113
|
+
t97 = transitionMutation.isPending && /* @__PURE__ */ jsx(Icon, {
|
|
1114
|
+
icon: "ph:spinner-gap",
|
|
1115
|
+
className: "size-4 animate-spin"
|
|
1116
|
+
});
|
|
1117
|
+
$[247] = transitionMutation.isPending;
|
|
1118
|
+
$[248] = t97;
|
|
1119
|
+
} else t97 = $[248];
|
|
1120
|
+
let t98;
|
|
1121
|
+
if ($[249] !== t || $[250] !== transitionSchedule) {
|
|
1122
|
+
t98 = transitionSchedule ? t("workflow.scheduleLabel") : t("workflow.transition");
|
|
1123
|
+
$[249] = t;
|
|
1124
|
+
$[250] = transitionSchedule;
|
|
1125
|
+
$[251] = t98;
|
|
1126
|
+
} else t98 = $[251];
|
|
1127
|
+
let t99;
|
|
1128
|
+
if ($[252] !== confirmTransition || $[253] !== t96 || $[254] !== t97 || $[255] !== t98) {
|
|
1129
|
+
t99 = /* @__PURE__ */ jsxs(Button, {
|
|
1130
|
+
type: "button",
|
|
1131
|
+
onClick: confirmTransition,
|
|
1132
|
+
disabled: t96,
|
|
1133
|
+
className: "gap-2",
|
|
1134
|
+
children: [t97, t98]
|
|
1135
|
+
});
|
|
1136
|
+
$[252] = confirmTransition;
|
|
1137
|
+
$[253] = t96;
|
|
1138
|
+
$[254] = t97;
|
|
1139
|
+
$[255] = t98;
|
|
1140
|
+
$[256] = t99;
|
|
1141
|
+
} else t99 = $[256];
|
|
1142
|
+
let t100;
|
|
1143
|
+
if ($[257] !== t95 || $[258] !== t99) {
|
|
1144
|
+
t100 = /* @__PURE__ */ jsxs(DialogFooter, { children: [t95, t99] });
|
|
1145
|
+
$[257] = t95;
|
|
1146
|
+
$[258] = t99;
|
|
1147
|
+
$[259] = t100;
|
|
1148
|
+
} else t100 = $[259];
|
|
1149
|
+
let t101;
|
|
1150
|
+
if ($[260] !== t100 || $[261] !== t85 || $[262] !== t92) {
|
|
1151
|
+
t101 = /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
1152
|
+
t85,
|
|
1153
|
+
t92,
|
|
1154
|
+
t100
|
|
1155
|
+
] });
|
|
1156
|
+
$[260] = t100;
|
|
1157
|
+
$[261] = t85;
|
|
1158
|
+
$[262] = t92;
|
|
1159
|
+
$[263] = t101;
|
|
1160
|
+
} else t101 = $[263];
|
|
1161
|
+
let t102;
|
|
1162
|
+
if ($[264] !== t101 || $[265] !== t76) {
|
|
1163
|
+
t102 = /* @__PURE__ */ jsx(Dialog, {
|
|
1164
|
+
open: t76,
|
|
1165
|
+
onOpenChange: t77,
|
|
1166
|
+
children: t101
|
|
1167
|
+
});
|
|
1168
|
+
$[264] = t101;
|
|
1169
|
+
$[265] = t76;
|
|
1170
|
+
$[266] = t102;
|
|
1171
|
+
} else t102 = $[266];
|
|
1172
|
+
const t103 = localeChangeDialog.open;
|
|
1173
|
+
let t104;
|
|
1174
|
+
if ($[267] !== handleLocaleChangeCancel) {
|
|
1175
|
+
t104 = (open_1) => !open_1 && handleLocaleChangeCancel();
|
|
1176
|
+
$[267] = handleLocaleChangeCancel;
|
|
1177
|
+
$[268] = t104;
|
|
1178
|
+
} else t104 = $[268];
|
|
1179
|
+
let t105;
|
|
1180
|
+
if ($[269] !== t) {
|
|
1181
|
+
t105 = t("locale.unsavedChanges");
|
|
1182
|
+
$[269] = t;
|
|
1183
|
+
$[270] = t105;
|
|
1184
|
+
} else t105 = $[270];
|
|
1185
|
+
let t106;
|
|
1186
|
+
if ($[271] !== t105) {
|
|
1187
|
+
t106 = /* @__PURE__ */ jsx(DialogTitle, { children: t105 });
|
|
1188
|
+
$[271] = t105;
|
|
1189
|
+
$[272] = t106;
|
|
1190
|
+
} else t106 = $[272];
|
|
1191
|
+
let t107;
|
|
1192
|
+
if ($[273] !== t) {
|
|
1193
|
+
t107 = t("locale.unsavedChangesDescription");
|
|
1194
|
+
$[273] = t;
|
|
1195
|
+
$[274] = t107;
|
|
1196
|
+
} else t107 = $[274];
|
|
1197
|
+
let t108;
|
|
1198
|
+
if ($[275] !== t107) {
|
|
1199
|
+
t108 = /* @__PURE__ */ jsx(DialogDescription, { children: t107 });
|
|
1200
|
+
$[275] = t107;
|
|
1201
|
+
$[276] = t108;
|
|
1202
|
+
} else t108 = $[276];
|
|
1203
|
+
let t109;
|
|
1204
|
+
if ($[277] !== t106 || $[278] !== t108) {
|
|
1205
|
+
t109 = /* @__PURE__ */ jsxs(DialogHeader, { children: [t106, t108] });
|
|
1206
|
+
$[277] = t106;
|
|
1207
|
+
$[278] = t108;
|
|
1208
|
+
$[279] = t109;
|
|
1209
|
+
} else t109 = $[279];
|
|
1210
|
+
let t110;
|
|
1211
|
+
if ($[280] !== t) {
|
|
1212
|
+
t110 = t("common.cancel");
|
|
1213
|
+
$[280] = t;
|
|
1214
|
+
$[281] = t110;
|
|
1215
|
+
} else t110 = $[281];
|
|
1216
|
+
let t111;
|
|
1217
|
+
if ($[282] !== handleLocaleChangeCancel || $[283] !== t110) {
|
|
1218
|
+
t111 = /* @__PURE__ */ jsx(Button, {
|
|
1219
|
+
variant: "outline",
|
|
1220
|
+
onClick: handleLocaleChangeCancel,
|
|
1221
|
+
children: t110
|
|
1222
|
+
});
|
|
1223
|
+
$[282] = handleLocaleChangeCancel;
|
|
1224
|
+
$[283] = t110;
|
|
1225
|
+
$[284] = t111;
|
|
1226
|
+
} else t111 = $[284];
|
|
1227
|
+
let t112;
|
|
1228
|
+
if ($[285] !== t) {
|
|
1229
|
+
t112 = t("locale.discardChanges");
|
|
1230
|
+
$[285] = t;
|
|
1231
|
+
$[286] = t112;
|
|
1232
|
+
} else t112 = $[286];
|
|
1233
|
+
let t113;
|
|
1234
|
+
if ($[287] !== handleLocaleChangeConfirm || $[288] !== t112) {
|
|
1235
|
+
t113 = /* @__PURE__ */ jsx(Button, {
|
|
1236
|
+
variant: "default",
|
|
1237
|
+
onClick: handleLocaleChangeConfirm,
|
|
1238
|
+
children: t112
|
|
1239
|
+
});
|
|
1240
|
+
$[287] = handleLocaleChangeConfirm;
|
|
1241
|
+
$[288] = t112;
|
|
1242
|
+
$[289] = t113;
|
|
1243
|
+
} else t113 = $[289];
|
|
1244
|
+
let t114;
|
|
1245
|
+
if ($[290] !== t111 || $[291] !== t113) {
|
|
1246
|
+
t114 = /* @__PURE__ */ jsxs(DialogFooter, { children: [t111, t113] });
|
|
1247
|
+
$[290] = t111;
|
|
1248
|
+
$[291] = t113;
|
|
1249
|
+
$[292] = t114;
|
|
1250
|
+
} else t114 = $[292];
|
|
1251
|
+
let t115;
|
|
1252
|
+
if ($[293] !== t109 || $[294] !== t114) {
|
|
1253
|
+
t115 = /* @__PURE__ */ jsxs(DialogContent, { children: [t109, t114] });
|
|
1254
|
+
$[293] = t109;
|
|
1255
|
+
$[294] = t114;
|
|
1256
|
+
$[295] = t115;
|
|
1257
|
+
} else t115 = $[295];
|
|
1258
|
+
let t116;
|
|
1259
|
+
if ($[296] !== localeChangeDialog.open || $[297] !== t104 || $[298] !== t115) {
|
|
1260
|
+
t116 = /* @__PURE__ */ jsx(Dialog, {
|
|
1261
|
+
open: t103,
|
|
1262
|
+
onOpenChange: t104,
|
|
1263
|
+
children: t115
|
|
1264
|
+
});
|
|
1265
|
+
$[296] = localeChangeDialog.open;
|
|
1266
|
+
$[297] = t104;
|
|
1267
|
+
$[298] = t115;
|
|
1268
|
+
$[299] = t116;
|
|
1269
|
+
} else t116 = $[299];
|
|
1270
|
+
let t117;
|
|
1271
|
+
if ($[300] !== form || $[301] !== t102 || $[302] !== t116 || $[303] !== t60 || $[304] !== t66 || $[305] !== t75) {
|
|
1272
|
+
t117 = /* @__PURE__ */ jsxs(FormProvider, {
|
|
1273
|
+
...form,
|
|
1274
|
+
children: [
|
|
1275
|
+
t60,
|
|
1276
|
+
t66,
|
|
1277
|
+
t75,
|
|
1278
|
+
t102,
|
|
1279
|
+
t116
|
|
1280
|
+
]
|
|
1281
|
+
});
|
|
1282
|
+
$[300] = form;
|
|
1283
|
+
$[301] = t102;
|
|
1284
|
+
$[302] = t116;
|
|
1285
|
+
$[303] = t60;
|
|
1286
|
+
$[304] = t66;
|
|
1287
|
+
$[305] = t75;
|
|
1288
|
+
$[306] = t117;
|
|
1289
|
+
} else t117 = $[306];
|
|
1290
|
+
return t117;
|
|
1291
|
+
}
|
|
1292
|
+
function _temp2() {
|
|
1293
|
+
return window.location.reload();
|
|
1294
|
+
}
|
|
1295
|
+
function _temp(date) {
|
|
1296
|
+
return new Date(date).toLocaleDateString(void 0, {
|
|
1297
|
+
year: "numeric",
|
|
1298
|
+
month: "short",
|
|
1299
|
+
day: "numeric",
|
|
1300
|
+
hour: "2-digit",
|
|
1301
|
+
minute: "2-digit"
|
|
176
1302
|
});
|
|
177
1303
|
}
|
|
178
1304
|
|
|
179
1305
|
//#endregion
|
|
180
|
-
export { GlobalFormView as default };
|
|
181
|
-
//# sourceMappingURL=global-form-view.mjs.map
|
|
1306
|
+
export { GlobalFormView as default };
|