@questpie/admin 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +245 -474
- package/dist/_virtual/rolldown_runtime.mjs +18 -0
- package/dist/augmentation.d.mts +315 -0
- package/dist/augmentation.d.mts.map +1 -0
- package/dist/client/blocks/block-registry.d.mts +199 -0
- package/dist/client/blocks/block-registry.d.mts.map +1 -0
- package/dist/client/blocks/block-registry.mjs +88 -0
- package/dist/client/blocks/block-registry.mjs.map +1 -0
- package/dist/client/blocks/block-renderer.d.mts +52 -0
- package/dist/client/blocks/block-renderer.d.mts.map +1 -0
- package/dist/client/blocks/block-renderer.mjs +71 -0
- package/dist/client/blocks/block-renderer.mjs.map +1 -0
- package/dist/client/blocks/index.d.mts +4 -0
- package/dist/client/blocks/prefetch.d.mts +45 -0
- package/dist/client/blocks/prefetch.d.mts.map +1 -0
- package/dist/client/blocks/prefetch.mjs +26 -0
- package/dist/client/blocks/prefetch.mjs.map +1 -0
- package/dist/client/blocks/types.d.mts +69 -0
- package/dist/client/blocks/types.d.mts.map +1 -0
- package/dist/client/blocks/types.mjs +20 -0
- package/dist/client/blocks/types.mjs.map +1 -0
- package/dist/client/builder/admin-builder.d.mts +112 -0
- package/dist/client/builder/admin-builder.d.mts.map +1 -0
- package/dist/client/builder/admin-builder.mjs +185 -0
- package/dist/client/builder/admin-builder.mjs.map +1 -0
- package/dist/client/builder/admin-types.d.mts +73 -0
- package/dist/client/builder/admin-types.d.mts.map +1 -0
- package/dist/client/builder/admin.d.mts +121 -0
- package/dist/client/builder/admin.d.mts.map +1 -0
- package/dist/client/builder/admin.mjs +160 -0
- package/dist/client/builder/admin.mjs.map +1 -0
- package/dist/client/builder/defaults/components.mjs +20 -0
- package/dist/client/builder/defaults/components.mjs.map +1 -0
- package/dist/client/builder/defaults/core.d.mts +354 -0
- package/dist/client/builder/defaults/core.d.mts.map +1 -0
- package/dist/client/builder/defaults/core.mjs +49 -0
- package/dist/client/builder/defaults/core.mjs.map +1 -0
- package/dist/client/builder/defaults/fields.mjs +328 -0
- package/dist/client/builder/defaults/fields.mjs.map +1 -0
- package/dist/client/builder/defaults/pages.mjs +58 -0
- package/dist/client/builder/defaults/pages.mjs.map +1 -0
- package/dist/client/builder/defaults/starter.d.mts +351 -0
- package/dist/client/builder/defaults/starter.d.mts.map +1 -0
- package/dist/client/builder/defaults/starter.mjs +28 -0
- package/dist/client/builder/defaults/starter.mjs.map +1 -0
- package/dist/client/builder/defaults/views.mjs +27 -0
- package/dist/client/builder/defaults/views.mjs.map +1 -0
- package/dist/client/builder/defaults/widgets.mjs +31 -0
- package/dist/client/builder/defaults/widgets.mjs.map +1 -0
- package/dist/client/builder/field/field.d.mts +229 -0
- package/dist/client/builder/field/field.d.mts.map +1 -0
- package/dist/client/builder/field/field.mjs +83 -0
- package/dist/client/builder/field/field.mjs.map +1 -0
- package/dist/client/builder/index.d.mts +36 -0
- package/dist/client/builder/index.d.mts.map +1 -0
- package/dist/client/builder/page/page.d.mts +36 -0
- package/dist/client/builder/page/page.d.mts.map +1 -0
- package/dist/client/builder/page/page.mjs +27 -0
- package/dist/client/builder/page/page.mjs.map +1 -0
- package/dist/client/builder/proxies.d.mts +2 -0
- package/dist/client/builder/proxies.mjs +24 -0
- package/dist/client/builder/proxies.mjs.map +1 -0
- package/dist/client/builder/qa.d.mts +50 -0
- package/dist/client/builder/qa.d.mts.map +1 -0
- package/dist/client/builder/qa.mjs +42 -0
- package/dist/client/builder/qa.mjs.map +1 -0
- package/dist/client/builder/registry.d.mts +70 -0
- package/dist/client/builder/registry.d.mts.map +1 -0
- package/dist/client/builder/types/action-registry.d.mts +2 -0
- package/dist/client/builder/types/action-registry.mjs +142 -0
- package/dist/client/builder/types/action-registry.mjs.map +1 -0
- package/dist/client/builder/types/action-types.d.mts +253 -0
- package/dist/client/builder/types/action-types.d.mts.map +1 -0
- package/dist/client/builder/types/collection-types.d.mts +199 -0
- package/dist/client/builder/types/collection-types.d.mts.map +1 -0
- package/dist/client/builder/types/collection-types.mjs +11 -0
- package/dist/client/builder/types/collection-types.mjs.map +1 -0
- package/dist/client/builder/types/common.d.mts +60 -0
- package/dist/client/builder/types/common.d.mts.map +1 -0
- package/dist/client/builder/types/field-types.d.mts +593 -0
- package/dist/client/builder/types/field-types.d.mts.map +1 -0
- package/dist/client/builder/types/field-types.mjs +19 -0
- package/dist/client/builder/types/field-types.mjs.map +1 -0
- package/dist/client/builder/types/global-types.d.mts +22 -0
- package/dist/client/builder/types/global-types.d.mts.map +1 -0
- package/dist/client/builder/types/ui-config.d.mts +160 -0
- package/dist/client/builder/types/ui-config.d.mts.map +1 -0
- package/dist/client/builder/types/views.d.mts +89 -0
- package/dist/client/builder/types/views.d.mts.map +1 -0
- package/dist/client/builder/types/widget-types.d.mts +563 -0
- package/dist/client/builder/types/widget-types.d.mts.map +1 -0
- package/dist/client/builder/validation.d.mts +3 -0
- package/dist/client/builder/validation.mjs +208 -0
- package/dist/client/builder/validation.mjs.map +1 -0
- package/dist/client/builder/view/view.d.mts +129 -0
- package/dist/client/builder/view/view.d.mts.map +1 -0
- package/dist/client/builder/view/view.mjs +109 -0
- package/dist/client/builder/view/view.mjs.map +1 -0
- package/dist/client/builder/widget/widget.d.mts +33 -0
- package/dist/client/builder/widget/widget.d.mts.map +1 -0
- package/dist/client/builder/widget/widget.mjs +26 -0
- package/dist/client/builder/widget/widget.mjs.map +1 -0
- package/dist/client/components/actions/action-button.d.mts +2 -0
- package/dist/client/components/actions/action-button.mjs +135 -0
- package/dist/client/components/actions/action-button.mjs.map +1 -0
- package/dist/client/components/actions/action-dialog.d.mts +2 -0
- package/dist/client/components/actions/action-dialog.mjs +264 -0
- package/dist/client/components/actions/action-dialog.mjs.map +1 -0
- package/dist/client/components/actions/confirmation-dialog.d.mts +2 -0
- package/dist/client/components/actions/confirmation-dialog.mjs +82 -0
- package/dist/client/components/actions/confirmation-dialog.mjs.map +1 -0
- package/dist/client/components/actions/header-actions.d.mts +2 -0
- package/dist/client/components/actions/header-actions.mjs +117 -0
- package/dist/client/components/actions/header-actions.mjs.map +1 -0
- package/dist/client/components/actions/index.d.mts +4 -0
- package/dist/client/components/admin-link.d.mts +67 -0
- package/dist/client/components/admin-link.d.mts.map +1 -0
- package/dist/client/components/admin-link.mjs +92 -0
- package/dist/client/components/admin-link.mjs.map +1 -0
- package/dist/client/components/auth/auth-guard.d.mts +51 -0
- package/dist/client/components/auth/auth-guard.d.mts.map +1 -0
- package/dist/client/components/auth/auth-guard.mjs +60 -0
- package/dist/client/components/auth/auth-guard.mjs.map +1 -0
- package/dist/client/components/auth/auth-loading.d.mts +36 -0
- package/dist/client/components/auth/auth-loading.d.mts.map +1 -0
- package/dist/client/components/auth/auth-loading.mjs +27 -0
- package/dist/client/components/auth/auth-loading.mjs.map +1 -0
- package/dist/client/components/auth/index.d.mts +2 -0
- package/dist/client/components/blocks/block-canvas.mjs +90 -0
- package/dist/client/components/blocks/block-canvas.mjs.map +1 -0
- package/dist/client/components/blocks/block-editor-context.mjs +58 -0
- package/dist/client/components/blocks/block-editor-context.mjs.map +1 -0
- package/dist/client/components/blocks/block-editor-layout.mjs +82 -0
- package/dist/client/components/blocks/block-editor-layout.mjs.map +1 -0
- package/dist/client/components/blocks/block-editor-provider.mjs +155 -0
- package/dist/client/components/blocks/block-editor-provider.mjs.map +1 -0
- package/dist/client/components/blocks/block-fields-renderer.mjs +70 -0
- package/dist/client/components/blocks/block-fields-renderer.mjs.map +1 -0
- package/dist/client/components/blocks/block-insert-button.mjs +72 -0
- package/dist/client/components/blocks/block-insert-button.mjs.map +1 -0
- package/dist/client/components/blocks/block-item-menu.mjs +161 -0
- package/dist/client/components/blocks/block-item-menu.mjs.map +1 -0
- package/dist/client/components/blocks/block-item.mjs +187 -0
- package/dist/client/components/blocks/block-item.mjs.map +1 -0
- package/dist/client/components/blocks/block-library-sidebar.mjs +190 -0
- package/dist/client/components/blocks/block-library-sidebar.mjs.map +1 -0
- package/dist/client/components/blocks/block-tree.mjs +45 -0
- package/dist/client/components/blocks/block-tree.mjs.map +1 -0
- package/dist/client/components/blocks/block-type-icon.mjs +50 -0
- package/dist/client/components/blocks/block-type-icon.mjs.map +1 -0
- package/dist/client/components/blocks/utils/tree-utils.mjs +186 -0
- package/dist/client/components/blocks/utils/tree-utils.mjs.map +1 -0
- package/dist/client/components/component-renderer.d.mts +125 -0
- package/dist/client/components/component-renderer.d.mts.map +1 -0
- package/dist/client/components/component-renderer.mjs +145 -0
- package/dist/client/components/component-renderer.mjs.map +1 -0
- package/dist/client/components/error-boundary.mjs +92 -0
- package/dist/client/components/error-boundary.mjs.map +1 -0
- package/dist/client/components/fields/array-field.d.mts +44 -0
- package/dist/client/components/fields/array-field.d.mts.map +1 -0
- package/dist/client/components/fields/array-field.mjs +231 -0
- package/dist/client/components/fields/array-field.mjs.map +1 -0
- package/dist/client/components/fields/asset-preview-field.d.mts +52 -0
- package/dist/client/components/fields/asset-preview-field.d.mts.map +1 -0
- package/dist/client/components/fields/asset-preview-field.mjs +60 -0
- package/dist/client/components/fields/asset-preview-field.mjs.map +1 -0
- package/dist/client/components/fields/blocks-field/blocks-field.d.mts +41 -0
- package/dist/client/components/fields/blocks-field/blocks-field.d.mts.map +1 -0
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +101 -0
- package/dist/client/components/fields/blocks-field/blocks-field.mjs.map +1 -0
- package/dist/client/components/fields/blocks-field/index.d.mts +1 -0
- package/dist/client/components/fields/boolean-field.d.mts +30 -0
- package/dist/client/components/fields/boolean-field.d.mts.map +1 -0
- package/dist/client/components/fields/boolean-field.mjs +47 -0
- package/dist/client/components/fields/boolean-field.mjs.map +1 -0
- package/dist/client/components/fields/custom-field.d.mts +3 -0
- package/dist/client/components/fields/date-field.d.mts +22 -0
- package/dist/client/components/fields/date-field.d.mts.map +1 -0
- package/dist/client/components/fields/date-field.mjs +42 -0
- package/dist/client/components/fields/date-field.mjs.map +1 -0
- package/dist/client/components/fields/datetime-field.d.mts +23 -0
- package/dist/client/components/fields/datetime-field.d.mts.map +1 -0
- package/dist/client/components/fields/datetime-field.mjs +43 -0
- package/dist/client/components/fields/datetime-field.mjs.map +1 -0
- package/dist/client/components/fields/email-field.d.mts +19 -0
- package/dist/client/components/fields/email-field.d.mts.map +1 -0
- package/dist/client/components/fields/email-field.mjs +38 -0
- package/dist/client/components/fields/email-field.mjs.map +1 -0
- package/dist/client/components/fields/embedded-collection.d.mts +3 -0
- package/dist/client/components/fields/field-types.d.mts +571 -0
- package/dist/client/components/fields/field-types.d.mts.map +1 -0
- package/dist/client/components/fields/field-utils.d.mts +1 -0
- package/dist/client/components/fields/field-utils.mjs +65 -0
- package/dist/client/components/fields/field-utils.mjs.map +1 -0
- package/dist/client/components/fields/field-wrapper.d.mts +3 -0
- package/dist/client/components/fields/field-wrapper.mjs +49 -0
- package/dist/client/components/fields/field-wrapper.mjs.map +1 -0
- package/dist/client/components/fields/index.d.mts +33 -0
- package/dist/client/components/fields/json-field.d.mts +84 -0
- package/dist/client/components/fields/json-field.d.mts.map +1 -0
- package/dist/client/components/fields/json-field.mjs +248 -0
- package/dist/client/components/fields/json-field.mjs.map +1 -0
- package/dist/client/components/fields/locale-badge.d.mts +1 -0
- package/dist/client/components/fields/locale-badge.mjs +17 -0
- package/dist/client/components/fields/locale-badge.mjs.map +1 -0
- package/dist/client/components/fields/number-field.d.mts +23 -0
- package/dist/client/components/fields/number-field.d.mts.map +1 -0
- package/dist/client/components/fields/number-field.mjs +40 -0
- package/dist/client/components/fields/number-field.mjs.map +1 -0
- package/dist/client/components/fields/object-array-field.d.mts +2 -0
- package/dist/client/components/fields/object-array-field.mjs +313 -0
- package/dist/client/components/fields/object-array-field.mjs.map +1 -0
- package/dist/client/components/fields/object-field.d.mts +32 -0
- package/dist/client/components/fields/object-field.d.mts.map +1 -0
- package/dist/client/components/fields/object-field.mjs +128 -0
- package/dist/client/components/fields/object-field.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/cards-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/cards-display.mjs +140 -0
- package/dist/client/components/fields/relation/displays/cards-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/chips-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/chips-display.mjs +100 -0
- package/dist/client/components/fields/relation/displays/chips-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/grid-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/grid-display.mjs +114 -0
- package/dist/client/components/fields/relation/displays/grid-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/index.d.mts +6 -0
- package/dist/client/components/fields/relation/displays/list-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/list-display.mjs +128 -0
- package/dist/client/components/fields/relation/displays/list-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/table-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/table-display.mjs +134 -0
- package/dist/client/components/fields/relation/displays/table-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/types.d.mts +22 -0
- package/dist/client/components/fields/relation/displays/types.d.mts.map +1 -0
- package/dist/client/components/fields/relation/displays/types.mjs +73 -0
- package/dist/client/components/fields/relation/displays/types.mjs.map +1 -0
- package/dist/client/components/fields/relation/index.d.mts +3 -0
- package/dist/client/components/fields/relation/relation-items-display.d.mts +5 -0
- package/dist/client/components/fields/relation/relation-items-display.mjs +47 -0
- package/dist/client/components/fields/relation/relation-items-display.mjs.map +1 -0
- package/dist/client/components/fields/relation-field.d.mts +134 -0
- package/dist/client/components/fields/relation-field.d.mts.map +1 -0
- package/dist/client/components/fields/relation-field.mjs +106 -0
- package/dist/client/components/fields/relation-field.mjs.map +1 -0
- package/dist/client/components/fields/relation-picker.d.mts +4 -0
- package/dist/client/components/fields/relation-picker.mjs +301 -0
- package/dist/client/components/fields/relation-picker.mjs.map +1 -0
- package/dist/client/components/fields/relation-select.d.mts +3 -0
- package/dist/client/components/fields/relation-select.mjs +219 -0
- package/dist/client/components/fields/relation-select.mjs.map +1 -0
- package/dist/client/components/fields/reverse-relation-field.d.mts +2 -0
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +56 -0
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/extensions.mjs +118 -0
- package/dist/client/components/fields/rich-text-editor/extensions.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +196 -0
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/index.d.mts +4 -0
- package/dist/client/components/fields/rich-text-editor/index.mjs +187 -0
- package/dist/client/components/fields/rich-text-editor/index.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs +86 -0
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/presets.d.mts +11 -0
- package/dist/client/components/fields/rich-text-editor/presets.d.mts.map +1 -0
- package/dist/client/components/fields/rich-text-editor/presets.mjs +124 -0
- package/dist/client/components/fields/rich-text-editor/presets.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +145 -0
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs +124 -0
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +280 -0
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/types.d.mts +78 -0
- package/dist/client/components/fields/rich-text-editor/types.d.mts.map +1 -0
- package/dist/client/components/fields/rich-text-editor/types.mjs +31 -0
- package/dist/client/components/fields/rich-text-editor/types.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/utils.mjs +51 -0
- package/dist/client/components/fields/rich-text-editor/utils.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/variants.d.mts +2 -0
- package/dist/client/components/fields/rich-text-field.d.mts +14 -0
- package/dist/client/components/fields/rich-text-field.d.mts.map +1 -0
- package/dist/client/components/fields/rich-text-field.mjs +26 -0
- package/dist/client/components/fields/rich-text-field.mjs.map +1 -0
- package/dist/client/components/fields/select-field.d.mts +25 -0
- package/dist/client/components/fields/select-field.d.mts.map +1 -0
- package/dist/client/components/fields/select-field.mjs +53 -0
- package/dist/client/components/fields/select-field.mjs.map +1 -0
- package/dist/client/components/fields/status-field.d.mts +2 -0
- package/dist/client/components/fields/text-field.d.mts +22 -0
- package/dist/client/components/fields/text-field.d.mts.map +1 -0
- package/dist/client/components/fields/text-field.mjs +39 -0
- package/dist/client/components/fields/text-field.mjs.map +1 -0
- package/dist/client/components/fields/textarea-field.d.mts +22 -0
- package/dist/client/components/fields/textarea-field.d.mts.map +1 -0
- package/dist/client/components/fields/textarea-field.mjs +39 -0
- package/dist/client/components/fields/textarea-field.mjs.map +1 -0
- package/dist/client/components/fields/time-field.d.mts +20 -0
- package/dist/client/components/fields/time-field.d.mts.map +1 -0
- package/dist/client/components/fields/time-field.mjs +39 -0
- package/dist/client/components/fields/time-field.mjs.map +1 -0
- package/dist/client/components/fields/upload-field.d.mts +97 -0
- package/dist/client/components/fields/upload-field.d.mts.map +1 -0
- package/dist/client/components/fields/upload-field.mjs +497 -0
- package/dist/client/components/fields/upload-field.mjs.map +1 -0
- package/dist/client/components/filter-builder/columns-tab.d.mts +1 -0
- package/dist/client/components/filter-builder/columns-tab.mjs +131 -0
- package/dist/client/components/filter-builder/columns-tab.mjs.map +1 -0
- package/dist/client/components/filter-builder/filter-builder-sheet.d.mts +1 -0
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +157 -0
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs.map +1 -0
- package/dist/client/components/filter-builder/filters-tab.d.mts +1 -0
- package/dist/client/components/filter-builder/filters-tab.mjs +380 -0
- package/dist/client/components/filter-builder/filters-tab.mjs.map +1 -0
- package/dist/client/components/filter-builder/index.d.mts +5 -0
- package/dist/client/components/filter-builder/saved-views-tab.d.mts +1 -0
- package/dist/client/components/filter-builder/saved-views-tab.mjs +125 -0
- package/dist/client/components/filter-builder/saved-views-tab.mjs.map +1 -0
- package/dist/client/components/index.d.mts +80 -0
- package/dist/client/components/locale-switcher.d.mts +2 -0
- package/dist/client/components/locale-switcher.mjs +128 -0
- package/dist/client/components/locale-switcher.mjs.map +1 -0
- package/dist/client/components/media/media-grid.mjs +139 -0
- package/dist/client/components/media/media-grid.mjs.map +1 -0
- package/dist/client/components/media/media-picker-dialog.mjs +255 -0
- package/dist/client/components/media/media-picker-dialog.mjs.map +1 -0
- package/dist/client/components/preview/live-preview-mode.mjs +211 -0
- package/dist/client/components/preview/live-preview-mode.mjs.map +1 -0
- package/dist/client/components/preview/preview-pane.mjs +179 -0
- package/dist/client/components/preview/preview-pane.mjs.map +1 -0
- package/dist/client/components/primitives/asset-preview.mjs +363 -0
- package/dist/client/components/primitives/asset-preview.mjs.map +1 -0
- package/dist/client/components/primitives/checkbox-input.mjs +33 -0
- package/dist/client/components/primitives/checkbox-input.mjs.map +1 -0
- package/dist/client/components/primitives/date-input.mjs +218 -0
- package/dist/client/components/primitives/date-input.mjs.map +1 -0
- package/dist/client/components/primitives/dropzone.mjs +239 -0
- package/dist/client/components/primitives/dropzone.mjs.map +1 -0
- package/dist/client/components/primitives/number-input.mjs +113 -0
- package/dist/client/components/primitives/number-input.mjs.map +1 -0
- package/dist/client/components/primitives/select-multi.mjs +256 -0
- package/dist/client/components/primitives/select-multi.mjs.map +1 -0
- package/dist/client/components/primitives/select-single.mjs +183 -0
- package/dist/client/components/primitives/select-single.mjs.map +1 -0
- package/dist/client/components/primitives/text-input.mjs +40 -0
- package/dist/client/components/primitives/text-input.mjs.map +1 -0
- package/dist/client/components/primitives/textarea-input.mjs +38 -0
- package/dist/client/components/primitives/textarea-input.mjs.map +1 -0
- package/dist/client/components/primitives/time-input.mjs +72 -0
- package/dist/client/components/primitives/time-input.mjs.map +1 -0
- package/dist/client/components/primitives/toggle-input.mjs +31 -0
- package/dist/client/components/primitives/toggle-input.mjs.map +1 -0
- package/dist/client/components/primitives/types.d.mts +14 -0
- package/dist/client/components/primitives/types.d.mts.map +1 -0
- package/dist/client/components/primitives/types.mjs +13 -0
- package/dist/client/components/primitives/types.mjs.map +1 -0
- package/dist/client/components/sheets/index.d.mts +1 -0
- package/dist/client/components/sheets/resource-sheet.d.mts +1 -0
- package/dist/client/components/sheets/resource-sheet.mjs +78 -0
- package/dist/client/components/sheets/resource-sheet.mjs.map +1 -0
- package/dist/client/components/ui/accordion.d.mts +2 -0
- package/dist/client/components/ui/accordion.mjs +50 -0
- package/dist/client/components/ui/accordion.mjs.map +1 -0
- package/dist/client/components/ui/alert.mjs +32 -0
- package/dist/client/components/ui/alert.mjs.map +1 -0
- package/dist/client/components/ui/avatar.d.mts +3 -0
- package/dist/client/components/ui/badge.d.mts +3 -0
- package/dist/client/components/ui/badge.mjs +35 -0
- package/dist/client/components/ui/badge.mjs.map +1 -0
- package/dist/client/components/ui/button.d.mts +3 -0
- package/dist/client/components/ui/button.mjs +49 -0
- package/dist/client/components/ui/button.mjs.map +1 -0
- package/dist/client/components/ui/card.d.mts +2 -0
- package/dist/{card-BKHjBQfw.mjs → client/components/ui/card.mjs} +3 -10
- package/dist/{card-BKHjBQfw.mjs.map → client/components/ui/card.mjs.map} +1 -1
- package/dist/client/components/ui/checkbox.d.mts +2 -0
- package/dist/client/components/ui/checkbox.mjs +27 -0
- package/dist/client/components/ui/checkbox.mjs.map +1 -0
- package/dist/client/components/ui/combobox.d.mts +3 -0
- package/dist/client/components/ui/command.mjs +69 -0
- package/dist/client/components/ui/command.mjs.map +1 -0
- package/dist/client/components/ui/dialog.d.mts +3 -0
- package/dist/client/components/ui/dialog.mjs +83 -0
- package/dist/client/components/ui/dialog.mjs.map +1 -0
- package/dist/client/components/ui/drawer.mjs +75 -0
- package/dist/client/components/ui/drawer.mjs.map +1 -0
- package/dist/client/components/ui/dropdown-menu.d.mts +3 -0
- package/dist/client/components/ui/dropdown-menu.mjs +89 -0
- package/dist/client/components/ui/dropdown-menu.mjs.map +1 -0
- package/dist/client/components/ui/empty-state.mjs +53 -0
- package/dist/client/components/ui/empty-state.mjs.map +1 -0
- package/dist/client/components/ui/field.d.mts +3 -0
- package/dist/client/components/ui/field.mjs +78 -0
- package/dist/client/components/ui/field.mjs.map +1 -0
- package/dist/client/components/ui/input-group.d.mts +4 -0
- package/dist/client/components/ui/input-group.mjs +68 -0
- package/dist/client/components/ui/input-group.mjs.map +1 -0
- package/dist/client/components/ui/input.d.mts +2 -0
- package/dist/client/components/ui/input.mjs +17 -0
- package/dist/client/components/ui/input.mjs.map +1 -0
- package/dist/client/components/ui/kbd.mjs +24 -0
- package/dist/client/components/ui/kbd.mjs.map +1 -0
- package/dist/client/components/ui/label.d.mts +2 -0
- package/dist/client/components/ui/label.mjs +15 -0
- package/dist/client/components/ui/label.mjs.map +1 -0
- package/dist/client/components/ui/popover.d.mts +3 -0
- package/dist/client/components/ui/popover.mjs +49 -0
- package/dist/client/components/ui/popover.mjs.map +1 -0
- package/dist/client/components/ui/responsive-dialog.mjs +102 -0
- package/dist/client/components/ui/responsive-dialog.mjs.map +1 -0
- package/dist/client/components/ui/scroll-area.d.mts +2 -0
- package/dist/client/components/ui/search-input.mjs +74 -0
- package/dist/client/components/ui/search-input.mjs.map +1 -0
- package/dist/client/components/ui/select.d.mts +3 -0
- package/dist/client/components/ui/select.mjs +85 -0
- package/dist/client/components/ui/select.mjs.map +1 -0
- package/dist/client/components/ui/separator.d.mts +2 -0
- package/dist/client/components/ui/separator.mjs +17 -0
- package/dist/client/components/ui/separator.mjs.map +1 -0
- package/dist/client/components/ui/sheet.d.mts +3 -0
- package/dist/client/components/ui/sheet.mjs +78 -0
- package/dist/client/components/ui/sheet.mjs.map +1 -0
- package/dist/client/components/ui/sidebar.d.mts +8 -0
- package/dist/client/components/ui/sidebar.mjs +256 -0
- package/dist/client/components/ui/sidebar.mjs.map +1 -0
- package/dist/client/components/ui/skeleton.d.mts +1 -0
- package/dist/client/components/ui/skeleton.mjs +15 -0
- package/dist/client/components/ui/skeleton.mjs.map +1 -0
- package/dist/client/components/ui/sonner.d.mts +14 -0
- package/dist/client/components/ui/sonner.d.mts.map +1 -0
- package/dist/client/components/ui/sonner.mjs +55 -0
- package/dist/client/components/ui/sonner.mjs.map +1 -0
- package/dist/client/components/ui/spinner.d.mts +1 -0
- package/dist/client/components/ui/spinner.mjs +18 -0
- package/dist/client/components/ui/spinner.mjs.map +1 -0
- package/dist/client/components/ui/switch.d.mts +2 -0
- package/dist/client/components/ui/switch.mjs +23 -0
- package/dist/client/components/ui/switch.mjs.map +1 -0
- package/dist/client/components/ui/table.d.mts +2 -0
- package/dist/client/components/ui/table.mjs +66 -0
- package/dist/client/components/ui/table.mjs.map +1 -0
- package/dist/client/components/ui/tabs.d.mts +3 -0
- package/dist/client/components/ui/tabs.mjs +49 -0
- package/dist/client/components/ui/tabs.mjs.map +1 -0
- package/dist/client/components/ui/textarea.d.mts +2 -0
- package/dist/client/components/ui/textarea.mjs +15 -0
- package/dist/client/components/ui/textarea.mjs.map +1 -0
- package/dist/client/components/ui/toolbar.mjs +54 -0
- package/dist/client/components/ui/toolbar.mjs.map +1 -0
- package/dist/client/components/ui/tooltip.d.mts +2 -0
- package/dist/client/components/ui/tooltip.mjs +45 -0
- package/dist/client/components/ui/tooltip.mjs.map +1 -0
- package/dist/client/components/widgets/chart-widget.d.mts +57 -0
- package/dist/client/components/widgets/chart-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/chart-widget.mjs +282 -0
- package/dist/client/components/widgets/chart-widget.mjs.map +1 -0
- package/dist/client/components/widgets/progress-widget.d.mts +41 -0
- package/dist/client/components/widgets/progress-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/progress-widget.mjs +110 -0
- package/dist/client/components/widgets/progress-widget.mjs.map +1 -0
- package/dist/client/components/widgets/quick-actions-widget.d.mts +29 -0
- package/dist/client/components/widgets/quick-actions-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/quick-actions-widget.mjs +121 -0
- package/dist/client/components/widgets/quick-actions-widget.mjs.map +1 -0
- package/dist/client/components/widgets/recent-items-widget.d.mts +51 -0
- package/dist/client/components/widgets/recent-items-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/recent-items-widget.mjs +101 -0
- package/dist/client/components/widgets/recent-items-widget.mjs.map +1 -0
- package/dist/client/components/widgets/stats-widget.d.mts +55 -0
- package/dist/client/components/widgets/stats-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/stats-widget.mjs +150 -0
- package/dist/client/components/widgets/stats-widget.mjs.map +1 -0
- package/dist/client/components/widgets/table-widget.d.mts +31 -0
- package/dist/client/components/widgets/table-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/table-widget.mjs +139 -0
- package/dist/client/components/widgets/table-widget.mjs.map +1 -0
- package/dist/client/components/widgets/timeline-widget.d.mts +51 -0
- package/dist/client/components/widgets/timeline-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/timeline-widget.mjs +168 -0
- package/dist/client/components/widgets/timeline-widget.mjs.map +1 -0
- package/dist/client/components/widgets/value-widget.d.mts +39 -0
- package/dist/client/components/widgets/value-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/value-widget.mjs +111 -0
- package/dist/client/components/widgets/value-widget.mjs.map +1 -0
- package/dist/client/components/widgets/widget-skeletons.mjs +145 -0
- package/dist/client/components/widgets/widget-skeletons.mjs.map +1 -0
- package/dist/client/context/focus-context.d.mts +88 -0
- package/dist/client/context/focus-context.d.mts.map +1 -0
- package/dist/client/context/focus-context.mjs +178 -0
- package/dist/client/context/focus-context.mjs.map +1 -0
- package/dist/client/contexts/breadcrumb-context.mjs +32 -0
- package/dist/client/contexts/breadcrumb-context.mjs.map +1 -0
- package/dist/client/hooks/typed-hooks.d.mts +84 -0
- package/dist/client/hooks/typed-hooks.d.mts.map +1 -0
- package/dist/client/hooks/typed-hooks.mjs +272 -0
- package/dist/client/hooks/typed-hooks.mjs.map +1 -0
- package/dist/client/hooks/use-action.mjs +201 -0
- package/dist/client/hooks/use-action.mjs.map +1 -0
- package/dist/client/hooks/use-admin-config.mjs +40 -0
- package/dist/client/hooks/use-admin-config.mjs.map +1 -0
- package/dist/client/hooks/use-admin-preferences.mjs +68 -0
- package/dist/client/hooks/use-admin-preferences.mjs.map +1 -0
- package/dist/client/hooks/use-admin-routes.mjs +97 -0
- package/dist/client/hooks/use-admin-routes.mjs.map +1 -0
- package/dist/client/hooks/use-auth.d.mts +98 -0
- package/dist/client/hooks/use-auth.d.mts.map +1 -0
- package/dist/{use-auth-BoLmWtmU.mjs → client/hooks/use-auth.mjs} +3 -3
- package/dist/client/hooks/use-auth.mjs.map +1 -0
- package/dist/client/hooks/use-collection-fields.mjs +32 -0
- package/dist/client/hooks/use-collection-fields.mjs.map +1 -0
- package/dist/client/hooks/use-collection-meta.mjs +121 -0
- package/dist/client/hooks/use-collection-meta.mjs.map +1 -0
- package/dist/client/hooks/use-collection-schema.mjs +67 -0
- package/dist/client/hooks/use-collection-schema.mjs.map +1 -0
- package/dist/client/hooks/use-collection-validation.mjs +74 -0
- package/dist/client/hooks/use-collection-validation.mjs.map +1 -0
- package/dist/client/hooks/use-collection.d.mts +86 -0
- package/dist/client/hooks/use-collection.d.mts.map +1 -0
- package/dist/client/hooks/use-collection.mjs +214 -0
- package/dist/client/hooks/use-collection.mjs.map +1 -0
- package/dist/client/hooks/use-current-user.d.mts +57 -0
- package/dist/client/hooks/use-current-user.d.mts.map +1 -0
- package/dist/client/hooks/use-current-user.mjs +79 -0
- package/dist/client/hooks/use-current-user.mjs.map +1 -0
- package/dist/client/hooks/use-field-hooks.mjs +191 -0
- package/dist/client/hooks/use-field-hooks.mjs.map +1 -0
- package/dist/client/hooks/use-field-options.d.mts +90 -0
- package/dist/client/hooks/use-field-options.d.mts.map +1 -0
- package/dist/client/hooks/use-field-options.mjs +184 -0
- package/dist/client/hooks/use-field-options.mjs.map +1 -0
- package/dist/client/hooks/use-global-fields.mjs +27 -0
- package/dist/client/hooks/use-global-fields.mjs.map +1 -0
- package/dist/client/hooks/use-global-meta.mjs +59 -0
- package/dist/client/hooks/use-global-meta.mjs.map +1 -0
- package/dist/client/hooks/use-global-schema.mjs +33 -0
- package/dist/client/hooks/use-global-schema.mjs.map +1 -0
- package/dist/client/hooks/use-global.d.mts +40 -0
- package/dist/client/hooks/use-global.d.mts.map +1 -0
- package/dist/client/hooks/use-global.mjs +74 -0
- package/dist/client/hooks/use-global.mjs.map +1 -0
- package/dist/client/hooks/use-locks.mjs +245 -0
- package/dist/client/hooks/use-locks.mjs.map +1 -0
- package/dist/client/hooks/use-media-query.d.mts +23 -0
- package/dist/client/hooks/use-media-query.d.mts.map +1 -0
- package/dist/client/hooks/use-media-query.mjs +62 -0
- package/dist/client/hooks/use-media-query.mjs.map +1 -0
- package/dist/client/hooks/use-prefill-params.mjs +47 -0
- package/dist/client/hooks/use-prefill-params.mjs.map +1 -0
- package/dist/client/hooks/use-questpie-query-options.mjs +28 -0
- package/dist/client/hooks/use-questpie-query-options.mjs.map +1 -0
- package/dist/client/hooks/use-reactive-fields.d.mts +75 -0
- package/dist/client/hooks/use-reactive-fields.d.mts.map +1 -0
- package/dist/client/hooks/use-reactive-fields.mjs +164 -0
- package/dist/client/hooks/use-reactive-fields.mjs.map +1 -0
- package/dist/client/hooks/use-realtime-highlight.mjs +96 -0
- package/dist/client/hooks/use-realtime-highlight.mjs.map +1 -0
- package/dist/client/hooks/use-saved-views.mjs +65 -0
- package/dist/client/hooks/use-saved-views.mjs.map +1 -0
- package/dist/client/hooks/use-search.mjs +147 -0
- package/dist/client/hooks/use-search.mjs.map +1 -0
- package/dist/client/hooks/use-server-validation.mjs +199 -0
- package/dist/client/hooks/use-server-validation.mjs.map +1 -0
- package/dist/client/hooks/use-server-widget-data.d.mts +26 -0
- package/dist/client/hooks/use-server-widget-data.d.mts.map +1 -0
- package/dist/client/hooks/use-server-widget-data.mjs +40 -0
- package/dist/client/hooks/use-server-widget-data.mjs.map +1 -0
- package/dist/client/hooks/use-setup-status.d.mts +39 -0
- package/dist/client/hooks/use-setup-status.d.mts.map +1 -0
- package/dist/client/hooks/use-setup-status.mjs +50 -0
- package/dist/client/hooks/use-setup-status.mjs.map +1 -0
- package/dist/client/hooks/use-upload-collection.mjs +32 -0
- package/dist/client/hooks/use-upload-collection.mjs.map +1 -0
- package/dist/client/hooks/use-upload.d.mts +23 -0
- package/dist/client/hooks/use-upload.d.mts.map +1 -0
- package/dist/client/hooks/use-upload.mjs +145 -0
- package/dist/client/hooks/use-upload.mjs.map +1 -0
- package/dist/client/hooks/use-validation-error-map.mjs +53 -0
- package/dist/client/hooks/use-validation-error-map.mjs.map +1 -0
- package/dist/client/hooks/use-view-state.mjs +261 -0
- package/dist/client/hooks/use-view-state.mjs.map +1 -0
- package/dist/client/i18n/hooks.mjs +160 -0
- package/dist/client/i18n/hooks.mjs.map +1 -0
- package/dist/client/i18n/intl-cache.mjs +65 -0
- package/dist/client/i18n/intl-cache.mjs.map +1 -0
- package/dist/client/i18n/messages.mjs +7 -0
- package/dist/client/i18n/messages.mjs.map +1 -0
- package/dist/client/i18n/simple.d.mts +22 -0
- package/dist/client/i18n/simple.d.mts.map +1 -0
- package/dist/client/i18n/simple.mjs +157 -0
- package/dist/client/i18n/simple.mjs.map +1 -0
- package/dist/client/i18n/types.d.mts +110 -0
- package/dist/client/i18n/types.d.mts.map +1 -0
- package/dist/client/lib/utils.d.mts +1 -0
- package/dist/client/lib/utils.mjs +28 -0
- package/dist/client/lib/utils.mjs.map +1 -0
- package/dist/client/preview/block-scope-context.d.mts +74 -0
- package/dist/client/preview/block-scope-context.d.mts.map +1 -0
- package/dist/client/preview/block-scope-context.mjs +93 -0
- package/dist/client/preview/block-scope-context.mjs.map +1 -0
- package/dist/client/preview/index.d.mts +5 -0
- package/dist/client/preview/preview-banner.d.mts +46 -0
- package/dist/client/preview/preview-banner.d.mts.map +1 -0
- package/dist/client/preview/preview-banner.mjs +95 -0
- package/dist/client/preview/preview-banner.mjs.map +1 -0
- package/dist/client/preview/preview-field.d.mts +108 -0
- package/dist/client/preview/preview-field.d.mts.map +1 -0
- package/dist/client/preview/preview-field.mjs +125 -0
- package/dist/client/preview/preview-field.mjs.map +1 -0
- package/dist/client/preview/types.d.mts +115 -0
- package/dist/client/preview/types.d.mts.map +1 -0
- package/dist/client/preview/types.mjs +21 -0
- package/dist/client/preview/types.mjs.map +1 -0
- package/dist/client/preview/use-collection-preview.d.mts +71 -0
- package/dist/client/preview/use-collection-preview.d.mts.map +1 -0
- package/dist/client/preview/use-collection-preview.mjs +114 -0
- package/dist/client/preview/use-collection-preview.mjs.map +1 -0
- package/dist/client/runtime/content-locales-provider.d.mts +1 -0
- package/dist/client/runtime/content-locales-provider.mjs +85 -0
- package/dist/client/runtime/content-locales-provider.mjs.map +1 -0
- package/dist/client/runtime/index.d.mts +7 -0
- package/dist/client/runtime/index.mjs +8 -0
- package/dist/client/runtime/locale-scope.d.mts +2 -0
- package/dist/{runtime-6VZM878K.mjs → client/runtime/locale-scope.mjs} +3 -4
- package/dist/client/runtime/locale-scope.mjs.map +1 -0
- package/dist/client/runtime/provider.d.mts +10107 -0
- package/dist/client/runtime/provider.d.mts.map +1 -0
- package/dist/client/runtime/provider.mjs +229 -0
- package/dist/client/runtime/provider.mjs.map +1 -0
- package/dist/client/runtime/routes.d.mts +49 -0
- package/dist/client/runtime/routes.d.mts.map +1 -0
- package/dist/client/runtime/routes.mjs +107 -0
- package/dist/client/runtime/routes.mjs.map +1 -0
- package/dist/client/runtime/translations-provider.d.mts +2 -0
- package/dist/client/runtime/translations-provider.mjs +181 -0
- package/dist/client/runtime/translations-provider.mjs.map +1 -0
- package/dist/client/scope/index.d.mts +3 -0
- package/dist/client/scope/picker.d.mts +54 -0
- package/dist/client/scope/picker.d.mts.map +1 -0
- package/dist/client/scope/picker.mjs +161 -0
- package/dist/client/scope/picker.mjs.map +1 -0
- package/dist/client/scope/provider.d.mts +104 -0
- package/dist/client/scope/provider.d.mts.map +1 -0
- package/dist/client/scope/provider.mjs +159 -0
- package/dist/client/scope/provider.mjs.map +1 -0
- package/dist/client/scope/types.d.mts +112 -0
- package/dist/client/scope/types.d.mts.map +1 -0
- package/dist/client/styles/index.css +80 -0
- package/dist/client/utils/auto-expand-fields.mjs +65 -0
- package/dist/client/utils/auto-expand-fields.mjs.map +1 -0
- package/dist/client/utils/build-field-definitions-from-schema.mjs +256 -0
- package/dist/client/utils/build-field-definitions-from-schema.mjs.map +1 -0
- package/dist/client/utils/detect-relations.mjs +46 -0
- package/dist/client/utils/detect-relations.mjs.map +1 -0
- package/dist/client/utils/locale-to-flag.d.mts +118 -0
- package/dist/client/utils/locale-to-flag.d.mts.map +1 -0
- package/dist/client/utils/locale-to-flag.mjs +130 -0
- package/dist/client/utils/locale-to-flag.mjs.map +1 -0
- package/dist/client/utils/routes.mjs +196 -0
- package/dist/client/utils/routes.mjs.map +1 -0
- package/dist/client/views/auth/accept-invite-form.d.mts +73 -0
- package/dist/client/views/auth/accept-invite-form.d.mts.map +1 -0
- package/dist/client/views/auth/accept-invite-form.mjs +180 -0
- package/dist/client/views/auth/accept-invite-form.mjs.map +1 -0
- package/dist/client/views/auth/auth-layout.d.mts +44 -0
- package/dist/client/views/auth/auth-layout.d.mts.map +1 -0
- package/dist/client/views/auth/auth-layout.mjs +53 -0
- package/dist/client/views/auth/auth-layout.mjs.map +1 -0
- package/dist/client/views/auth/forgot-password-form.d.mts +59 -0
- package/dist/client/views/auth/forgot-password-form.d.mts.map +1 -0
- package/dist/{forgot-password-page-Bcp-An4Y.mjs → client/views/auth/forgot-password-form.mjs} +22 -89
- package/dist/client/views/auth/forgot-password-form.mjs.map +1 -0
- package/dist/client/views/auth/index.d.mts +7 -0
- package/dist/client/views/auth/invite-form.d.mts +1 -0
- package/dist/client/views/auth/invite-form.mjs +155 -0
- package/dist/client/views/auth/invite-form.mjs.map +1 -0
- package/dist/client/views/auth/login-form.d.mts +76 -0
- package/dist/client/views/auth/login-form.d.mts.map +1 -0
- package/dist/client/views/auth/login-form.mjs +167 -0
- package/dist/client/views/auth/login-form.mjs.map +1 -0
- package/dist/client/views/auth/reset-password-form.d.mts +66 -0
- package/dist/client/views/auth/reset-password-form.d.mts.map +1 -0
- package/dist/client/views/auth/reset-password-form.mjs +188 -0
- package/dist/client/views/auth/reset-password-form.mjs.map +1 -0
- package/dist/client/views/auth/setup-form.d.mts +61 -0
- package/dist/client/views/auth/setup-form.d.mts.map +1 -0
- package/dist/{setup-page-YAP_fzqh.mjs → client/views/auth/setup-form.mjs} +46 -124
- package/dist/client/views/auth/setup-form.mjs.map +1 -0
- package/dist/client/views/collection/auto-form-fields.d.mts +4 -0
- package/dist/client/views/collection/auto-form-fields.mjs +453 -0
- package/dist/client/views/collection/auto-form-fields.mjs.map +1 -0
- package/dist/client/views/collection/bulk-action-toolbar.mjs +291 -0
- package/dist/client/views/collection/bulk-action-toolbar.mjs.map +1 -0
- package/dist/client/views/collection/cells/complex-cells.d.mts +46 -0
- package/dist/client/views/collection/cells/complex-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/complex-cells.mjs +327 -0
- package/dist/client/views/collection/cells/complex-cells.mjs.map +1 -0
- package/dist/client/views/collection/cells/index.d.mts +7 -0
- package/dist/client/views/collection/cells/primitive-cells.d.mts +76 -0
- package/dist/client/views/collection/cells/primitive-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/primitive-cells.mjs +165 -0
- package/dist/client/views/collection/cells/primitive-cells.mjs.map +1 -0
- package/dist/client/views/collection/cells/relation-cells.d.mts +21 -0
- package/dist/client/views/collection/cells/relation-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/relation-cells.mjs +105 -0
- package/dist/client/views/collection/cells/relation-cells.mjs.map +1 -0
- package/dist/client/views/collection/cells/shared/asset-thumbnail.d.mts +1 -0
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +189 -0
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs.map +1 -0
- package/dist/client/views/collection/cells/shared/cell-helpers.d.mts +2 -0
- package/dist/client/views/collection/cells/shared/cell-helpers.mjs +78 -0
- package/dist/client/views/collection/cells/shared/cell-helpers.mjs.map +1 -0
- package/dist/client/views/collection/cells/shared/relation-chip.d.mts +1 -0
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +37 -0
- package/dist/client/views/collection/cells/shared/relation-chip.mjs.map +1 -0
- package/dist/client/views/collection/cells/upload-cells.d.mts +25 -0
- package/dist/client/views/collection/cells/upload-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/upload-cells.mjs +20 -0
- package/dist/client/views/collection/cells/upload-cells.mjs.map +1 -0
- package/dist/client/views/collection/columns/build-columns.d.mts +2 -0
- package/dist/client/views/collection/columns/build-columns.mjs +156 -0
- package/dist/client/views/collection/columns/build-columns.mjs.map +1 -0
- package/dist/client/views/collection/columns/column-defaults.d.mts +2 -0
- package/dist/client/views/collection/columns/column-defaults.mjs +108 -0
- package/dist/client/views/collection/columns/column-defaults.mjs.map +1 -0
- package/dist/client/views/collection/columns/index.d.mts +3 -0
- package/dist/client/views/collection/columns/types.d.mts +2 -0
- package/dist/client/views/collection/field-context.mjs +127 -0
- package/dist/client/views/collection/field-context.mjs.map +1 -0
- package/dist/client/views/collection/field-renderer.mjs +171 -0
- package/dist/client/views/collection/field-renderer.mjs.map +1 -0
- package/dist/client/views/collection/form-view.d.mts +112 -0
- package/dist/client/views/collection/form-view.d.mts.map +1 -0
- package/dist/client/views/collection/form-view.mjs +903 -0
- package/dist/client/views/collection/form-view.mjs.map +1 -0
- package/dist/client/views/collection/index.d.mts +9 -0
- package/dist/client/views/collection/table-view.d.mts +102 -0
- package/dist/client/views/collection/table-view.d.mts.map +1 -0
- package/dist/client/views/collection/table-view.mjs +695 -0
- package/dist/client/views/collection/table-view.mjs.map +1 -0
- package/dist/client/views/collection/view-skeletons.mjs +121 -0
- package/dist/client/views/collection/view-skeletons.mjs.map +1 -0
- package/dist/client/views/common/global-search.d.mts +1 -0
- package/dist/client/views/common/global-search.mjs +376 -0
- package/dist/client/views/common/global-search.mjs.map +1 -0
- package/dist/client/views/common/index.d.mts +1 -0
- package/dist/client/views/dashboard/dashboard-grid.mjs +385 -0
- package/dist/client/views/dashboard/dashboard-grid.mjs.map +1 -0
- package/dist/client/views/dashboard/dashboard-widget.mjs +178 -0
- package/dist/client/views/dashboard/dashboard-widget.mjs.map +1 -0
- package/dist/client/views/dashboard/widget-card.mjs +159 -0
- package/dist/client/views/dashboard/widget-card.mjs.map +1 -0
- package/dist/client/views/globals/global-form-view.d.mts +74 -0
- package/dist/client/views/globals/global-form-view.d.mts.map +1 -0
- package/dist/client/views/globals/global-form-view.mjs +181 -0
- package/dist/client/views/globals/global-form-view.mjs.map +1 -0
- package/dist/client/views/index.d.mts +28 -0
- package/dist/client/views/layout/admin-layout-provider.d.mts +140 -0
- package/dist/client/views/layout/admin-layout-provider.d.mts.map +1 -0
- package/dist/client/views/layout/admin-layout-provider.mjs +90 -0
- package/dist/client/views/layout/admin-layout-provider.mjs.map +1 -0
- package/dist/client/views/layout/admin-layout.d.mts +151 -0
- package/dist/client/views/layout/admin-layout.d.mts.map +1 -0
- package/dist/client/views/layout/admin-layout.mjs +144 -0
- package/dist/client/views/layout/admin-layout.mjs.map +1 -0
- package/dist/client/views/layout/admin-root.d.mts +7 -0
- package/dist/client/views/layout/admin-router.d.mts +125 -0
- package/dist/client/views/layout/admin-router.d.mts.map +1 -0
- package/dist/client/views/layout/admin-router.mjs +594 -0
- package/dist/client/views/layout/admin-router.mjs.map +1 -0
- package/dist/client/views/layout/admin-sidebar.d.mts +105 -0
- package/dist/client/views/layout/admin-sidebar.d.mts.map +1 -0
- package/dist/client/views/layout/admin-sidebar.mjs +550 -0
- package/dist/client/views/layout/admin-sidebar.mjs.map +1 -0
- package/dist/client/views/layout/admin-topbar.mjs +128 -0
- package/dist/client/views/layout/admin-topbar.mjs.map +1 -0
- package/dist/client/views/layout/index.d.mts +5 -0
- package/dist/client/views/pages/accept-invite-page.d.mts +67 -0
- package/dist/client/views/pages/accept-invite-page.d.mts.map +1 -0
- package/dist/client/views/pages/accept-invite-page.mjs +143 -0
- package/dist/client/views/pages/accept-invite-page.mjs.map +1 -0
- package/dist/client/views/pages/dashboard-page.d.mts +52 -0
- package/dist/client/views/pages/dashboard-page.d.mts.map +1 -0
- package/dist/client/views/pages/dashboard-page.mjs +45 -0
- package/dist/client/views/pages/dashboard-page.mjs.map +1 -0
- package/dist/client/views/pages/forgot-password-page.d.mts +59 -0
- package/dist/client/views/pages/forgot-password-page.d.mts.map +1 -0
- package/dist/client/views/pages/forgot-password-page.mjs +80 -0
- package/dist/client/views/pages/forgot-password-page.mjs.map +1 -0
- package/dist/client/views/pages/index.d.mts +7 -0
- package/dist/client/views/pages/invite-page.d.mts +71 -0
- package/dist/client/views/pages/invite-page.d.mts.map +1 -0
- package/dist/client/views/pages/invite-page.mjs +86 -0
- package/dist/client/views/pages/invite-page.mjs.map +1 -0
- package/dist/client/views/pages/login-page.d.mts +76 -0
- package/dist/client/views/pages/login-page.d.mts.map +1 -0
- package/dist/client/views/pages/login-page.mjs +98 -0
- package/dist/client/views/pages/login-page.mjs.map +1 -0
- package/dist/client/views/pages/reset-password-page.d.mts +66 -0
- package/dist/client/views/pages/reset-password-page.d.mts.map +1 -0
- package/dist/client/views/pages/reset-password-page.mjs +105 -0
- package/dist/client/views/pages/reset-password-page.mjs.map +1 -0
- package/dist/client/views/pages/setup-page.d.mts +64 -0
- package/dist/client/views/pages/setup-page.d.mts.map +1 -0
- package/dist/client/views/pages/setup-page.mjs +91 -0
- package/dist/client/views/pages/setup-page.mjs.map +1 -0
- package/dist/client.d.mts +92 -3
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +54 -12
- package/dist/components/rich-text/index.d.mts +1 -0
- package/dist/components/rich-text/rich-text-renderer.d.mts +104 -0
- package/dist/components/rich-text/rich-text-renderer.d.mts.map +1 -0
- package/dist/components/rich-text/rich-text-renderer.mjs +210 -0
- package/dist/components/rich-text/rich-text-renderer.mjs.map +1 -0
- package/dist/index.d.mts +62 -3
- package/dist/index.mjs +54 -12
- package/dist/server/adapters/nextjs.d.mts +121 -0
- package/dist/server/adapters/nextjs.d.mts.map +1 -0
- package/dist/server/adapters/nextjs.mjs +111 -0
- package/dist/server/adapters/nextjs.mjs.map +1 -0
- package/dist/server/adapters/tanstack.d.mts +133 -0
- package/dist/server/adapters/tanstack.d.mts.map +1 -0
- package/dist/server/adapters/tanstack.mjs +90 -0
- package/dist/server/adapters/tanstack.mjs.map +1 -0
- package/dist/server/augmentation.d.mts +1523 -0
- package/dist/server/augmentation.d.mts.map +1 -0
- package/dist/server/auth-helpers.d.mts +143 -0
- package/dist/server/auth-helpers.d.mts.map +1 -0
- package/dist/server/auth-helpers.mjs +108 -0
- package/dist/server/auth-helpers.mjs.map +1 -0
- package/dist/server/block/block-builder.d.mts +319 -0
- package/dist/server/block/block-builder.d.mts.map +1 -0
- package/dist/server/block/block-builder.mjs +217 -0
- package/dist/server/block/block-builder.mjs.map +1 -0
- package/dist/server/block/index.d.mts +3 -0
- package/dist/server/block/introspection.d.mts +84 -0
- package/dist/server/block/introspection.d.mts.map +1 -0
- package/dist/server/block/introspection.mjs +89 -0
- package/dist/server/block/introspection.mjs.map +1 -0
- package/dist/server/block/prefetch.d.mts +78 -0
- package/dist/server/block/prefetch.d.mts.map +1 -0
- package/dist/server/block/prefetch.mjs +240 -0
- package/dist/server/block/prefetch.mjs.map +1 -0
- package/dist/server/fields/blocks.d.mts +139 -0
- package/dist/server/fields/blocks.d.mts.map +1 -0
- package/dist/server/fields/blocks.mjs +192 -0
- package/dist/server/fields/blocks.mjs.map +1 -0
- package/dist/server/fields/index.d.mts +48 -0
- package/dist/server/fields/index.d.mts.map +1 -0
- package/dist/server/fields/index.mjs +16 -0
- package/dist/server/fields/index.mjs.map +1 -0
- package/dist/server/fields/rich-text.d.mts +135 -0
- package/dist/server/fields/rich-text.d.mts.map +1 -0
- package/dist/server/fields/rich-text.mjs +188 -0
- package/dist/server/fields/rich-text.mjs.map +1 -0
- package/dist/server/i18n/index.d.mts +16 -0
- package/dist/server/i18n/index.d.mts.map +1 -0
- package/dist/server/i18n/index.mjs +44 -0
- package/dist/server/i18n/index.mjs.map +1 -0
- package/dist/server/i18n/messages/cs.mjs +461 -0
- package/dist/server/i18n/messages/cs.mjs.map +1 -0
- package/dist/server/i18n/messages/de.mjs +461 -0
- package/dist/server/i18n/messages/de.mjs.map +1 -0
- package/dist/server/i18n/messages/en.mjs +493 -0
- package/dist/server/i18n/messages/en.mjs.map +1 -0
- package/dist/server/i18n/messages/es.mjs +461 -0
- package/dist/server/i18n/messages/es.mjs.map +1 -0
- package/dist/server/i18n/messages/fr.mjs +461 -0
- package/dist/server/i18n/messages/fr.mjs.map +1 -0
- package/dist/server/i18n/messages/index.mjs +24 -0
- package/dist/server/i18n/messages/index.mjs.map +1 -0
- package/dist/server/i18n/messages/pl.mjs +461 -0
- package/dist/server/i18n/messages/pl.mjs.map +1 -0
- package/dist/server/i18n/messages/pt.mjs +464 -0
- package/dist/server/i18n/messages/pt.mjs.map +1 -0
- package/dist/server/i18n/messages/sk.mjs +490 -0
- package/dist/server/i18n/messages/sk.mjs.map +1 -0
- package/dist/server/index.d.mts +20 -0
- package/dist/server/modules/admin/functions/admin-config.mjs +348 -0
- package/dist/server/modules/admin/functions/admin-config.mjs.map +1 -0
- package/dist/server/modules/admin/functions/execute-action.d.mts +107 -0
- package/dist/server/modules/admin/functions/execute-action.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/execute-action.mjs +331 -0
- package/dist/server/modules/admin/functions/execute-action.mjs.map +1 -0
- package/dist/server/modules/admin/functions/locales.mjs +80 -0
- package/dist/server/modules/admin/functions/locales.mjs.map +1 -0
- package/dist/server/modules/admin/functions/preview.d.mts +70 -0
- package/dist/server/modules/admin/functions/preview.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/preview.mjs +243 -0
- package/dist/server/modules/admin/functions/preview.mjs.map +1 -0
- package/dist/server/modules/admin/functions/reactive.d.mts +99 -0
- package/dist/server/modules/admin/functions/reactive.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/reactive.mjs +378 -0
- package/dist/server/modules/admin/functions/reactive.mjs.map +1 -0
- package/dist/server/modules/admin/functions/setup.d.mts +84 -0
- package/dist/server/modules/admin/functions/setup.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/setup.mjs +131 -0
- package/dist/server/modules/admin/functions/setup.mjs.map +1 -0
- package/dist/server/modules/admin/functions/translations.mjs +125 -0
- package/dist/server/modules/admin/functions/translations.mjs.map +1 -0
- package/dist/server/modules/admin/functions/widget-data.d.mts +33 -0
- package/dist/server/modules/admin/functions/widget-data.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/widget-data.mjs +70 -0
- package/dist/server/modules/admin/functions/widget-data.mjs.map +1 -0
- package/dist/server/modules/admin/index.d.mts +16879 -0
- package/dist/server/modules/admin/index.d.mts.map +1 -0
- package/dist/server/modules/admin/index.mjs +249 -0
- package/dist/server/modules/admin/index.mjs.map +1 -0
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.d.mts +3 -0
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.mjs +48 -0
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.mjs.map +1 -0
- package/dist/server/modules/admin-preferences/collections/locks.collection.d.mts +3 -0
- package/dist/server/modules/admin-preferences/collections/locks.collection.mjs +79 -0
- package/dist/server/modules/admin-preferences/collections/locks.collection.mjs.map +1 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.d.mts +1490 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.d.mts.map +1 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.mjs +57 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.mjs.map +1 -0
- package/dist/server/patch.d.mts +100 -0
- package/dist/server/patch.d.mts.map +1 -0
- package/dist/server/patch.mjs +1062 -0
- package/dist/server/patch.mjs.map +1 -0
- package/dist/server.d.mts +21 -250
- package/dist/server.mjs +19 -832
- package/dist/shared/preview-utils.d.mts +54 -0
- package/dist/shared/preview-utils.d.mts.map +1 -0
- package/dist/{preview-utils-BKQ9-TMa.mjs → shared/preview-utils.mjs} +2 -2
- package/dist/shared/preview-utils.mjs.map +1 -0
- package/dist/{saved-views.types-BMsz5mCy.d.mts → shared/types/saved-views.types.d.mts} +7 -2
- package/dist/shared/types/saved-views.types.d.mts.map +1 -0
- package/dist/shared.d.mts +3 -57
- package/dist/shared.mjs +1 -1
- package/package.json +12 -17
- package/dist/auth-layout-M8K8_q5R.mjs +0 -181
- package/dist/auth-layout-M8K8_q5R.mjs.map +0 -1
- package/dist/bulk-upload-dialog-D7w7W1Hl.mjs +0 -273
- package/dist/bulk-upload-dialog-D7w7W1Hl.mjs.map +0 -1
- package/dist/client-D1DqawtP.d.mts +0 -13403
- package/dist/client-D1DqawtP.d.mts.map +0 -1
- package/dist/client-njX1rZmi.mjs +0 -22612
- package/dist/client-njX1rZmi.mjs.map +0 -1
- package/dist/content-locales-provider-BXvuIgfg.mjs +0 -1650
- package/dist/content-locales-provider-BXvuIgfg.mjs.map +0 -1
- package/dist/dashboard-page-B4PGEdc2.mjs +0 -2500
- package/dist/dashboard-page-B4PGEdc2.mjs.map +0 -1
- package/dist/dashboard-page-mCY0pgZv.mjs +0 -3
- package/dist/dropzone-Do3awXKd.mjs +0 -634
- package/dist/dropzone-Do3awXKd.mjs.map +0 -1
- package/dist/forgot-password-page-Bcp-An4Y.mjs.map +0 -1
- package/dist/forgot-password-page-CEwsdLwn.mjs +0 -3
- package/dist/index-B4H3amCD.d.mts +0 -2753
- package/dist/index-B4H3amCD.d.mts.map +0 -1
- package/dist/login-page-BUnpCbCa.mjs +0 -3
- package/dist/login-page-CP4gA-dl.mjs +0 -298
- package/dist/login-page-CP4gA-dl.mjs.map +0 -1
- package/dist/preview-utils-BKQ9-TMa.mjs.map +0 -1
- package/dist/reset-password-page-BqfDmLxA.mjs +0 -281
- package/dist/reset-password-page-BqfDmLxA.mjs.map +0 -1
- package/dist/reset-password-page-CufHz3h3.mjs +0 -3
- package/dist/runtime-6VZM878K.mjs.map +0 -1
- package/dist/saved-views.types-BMsz5mCy.d.mts.map +0 -1
- package/dist/server.d.mts.map +0 -1
- package/dist/server.mjs.map +0 -1
- package/dist/setup-page-BNNzt_Z6.mjs +0 -3
- package/dist/setup-page-YAP_fzqh.mjs.map +0 -1
- package/dist/shared.d.mts.map +0 -1
- package/dist/use-auth-BoLmWtmU.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-types.d.mts","names":[],"sources":["../../../../src/client/builder/types/collection-types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AA8PA;AAiCA;AA0BiB,KAzRL,YAyRK,CAAA,oBAAsB,MAAA,GAAA,MAAA,CAAA,GAxRnC,WAwRmC,GAvRnC,kBAuRmC,CAvRhB,WAuRgB,CAAA;;;;AAMpB,UAxRF,kBAwRE,CAAA,oBAAA,MAAA,GAAA,MAAA,CAAA,CAAA;EAEM;;;EAEU,KAAA,EAxR1B,WAwR0B;EAAf;;;EAIgB,MAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;SA5P3B;;;;;;;;;;;;;;;;;;UA4CQ;;;;YAIL,aAAa;;;;;;;;;WAWd;;;;;;;;;;;iBAaM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmCL;;;;;UAwEK,aAAA;;;;;;;gBAOD;;;;;;;;;;;;;;;;;;;;;;;;;UA0BC,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;UA0BA,yCACG,oBAAoB;;wBAGhB;;mBAEL;;yBAEM;kBACP,gBAAgB;oBACd,eAAe;;;qBAGd;sBACC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/client/builder/types/collection-types.ts
|
|
2
|
+
/**
|
|
3
|
+
* Helper to get column config object (normalizes string to object)
|
|
4
|
+
*/
|
|
5
|
+
function normalizeColumnConfig(column) {
|
|
6
|
+
return typeof column === "string" ? { field: column } : column;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { normalizeColumnConfig };
|
|
11
|
+
//# sourceMappingURL=collection-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-types.mjs","names":[],"sources":["../../../../src/client/builder/types/collection-types.ts"],"sourcesContent":["/**\n * Collection Builder Types\n */\n\nimport type { ComponentReference } from \"#questpie/admin/server\";\nimport type { I18nText } from \"../../i18n/types.js\";\nimport type { AdminBuilder } from \"../admin-builder\";\nimport type { FieldDefinition } from \"../field/field\";\nimport type { IconComponent, MaybeLazyComponent } from \"./common\";\nimport type { FormViewConfig } from \"./field-types\";\nimport type { ActionsConfig } from \"./action-types\";\n\n/**\n * Collection metadata for navigation and display\n */\nexport interface CollectionMeta {\n /** Display label - supports inline translations */\n label?: I18nText;\n icon?: IconComponent | ComponentReference | string;\n group?: string;\n order?: number;\n hidden?: boolean;\n}\n\n// ============================================================================\n// Column Configuration\n// ============================================================================\n\n/**\n * Column configuration for list views\n * Can be a simple field name or detailed config object\n */\nexport type ColumnConfig<TFieldNames extends string = string> =\n | TFieldNames\n | ColumnConfigObject<TFieldNames>;\n\n/**\n * Detailed column configuration object\n */\nexport interface ColumnConfigObject<TFieldNames extends string = string> {\n /**\n * Field name to display\n */\n field: TFieldNames;\n\n /**\n * Custom header label (defaults to field label)\n */\n header?: string;\n\n /**\n * Column width (CSS value like \"200px\", \"20%\", etc.)\n */\n width?: string | number;\n\n /**\n * Minimum column width\n */\n minWidth?: string | number;\n\n /**\n * Maximum column width\n */\n maxWidth?: string | number;\n\n /**\n * Enable sorting for this column\n * @default true\n */\n sortable?: boolean;\n\n /**\n * Custom cell renderer component\n * Overrides the field's default cell component\n */\n cell?: MaybeLazyComponent;\n\n /**\n * Column visibility\n * Can be a boolean or function for conditional visibility\n */\n visible?: boolean | ((row: any) => boolean);\n\n /**\n * Custom CSS class for column cells\n */\n className?: string;\n\n /**\n * Text alignment\n */\n align?: \"left\" | \"center\" | \"right\";\n}\n\n/**\n * Helper to normalize column config to field name\n */\nexport function getColumnFieldName<T extends string>(\n column: ColumnConfig<T>,\n): T {\n return typeof column === \"string\" ? column : column.field;\n}\n\n/**\n * Helper to get column config object (normalizes string to object)\n */\nexport function normalizeColumnConfig<T extends string>(\n column: ColumnConfig<T>,\n): ColumnConfigObject<T> {\n return typeof column === \"string\" ? { field: column } : column;\n}\n\n// ============================================================================\n// List View Configuration\n// ============================================================================\n\n/**\n * List view configuration\n */\nexport interface ListViewConfig<TFieldNames extends string = string> {\n /**\n * Columns to display (field names or column configs)\n */\n columns?: ColumnConfig<TFieldNames>[];\n\n /**\n * Relations to include in query\n */\n with?: string[];\n\n /**\n * Default sort\n */\n defaultSort?: {\n field: TFieldNames;\n direction: \"asc\" | \"desc\";\n };\n\n /**\n * Enable search\n * @default true\n */\n searchable?: boolean;\n\n /**\n * Searchable fields (defaults to all text-like fields)\n */\n searchFields?: TFieldNames[];\n\n /**\n * Enable row selection\n * @default false\n */\n selectable?: boolean;\n\n /**\n * Enable pagination\n * @default true\n */\n paginated?: boolean;\n\n /**\n * Enable realtime invalidation for list queries.\n * Falls back to AdminProvider realtime config when undefined.\n */\n realtime?: boolean;\n\n /**\n * Default page size\n * @default 25\n */\n pageSize?: number;\n\n /**\n * Available page size options\n * @default [10, 25, 50, 100]\n */\n pageSizeOptions?: number[];\n\n /**\n * Actions configuration for list view\n */\n actions?: ActionsConfig;\n}\n\n/**\n * Collection configuration - runtime config object\n */\nexport interface CollectionConfig<TFieldNames extends string = string> {\n /**\n * Collection name\n */\n name: string;\n\n /**\n * Collection metadata (for navigation/display)\n */\n meta?: CollectionMeta;\n\n /**\n * Display label - supports inline translations\n */\n label?: I18nText;\n\n /**\n * Icon\n */\n icon?: IconComponent | ComponentReference | string;\n\n /**\n * Description - supports inline translations\n */\n description?: I18nText;\n\n /**\n * Field configurations (FieldDefinition objects)\n *\n * @deprecated Admin UI is schema-driven. Prefer server-side schema fields.\n */\n fields?: Record<string, FieldDefinition>;\n\n /**\n * List view configuration\n *\n * @deprecated Admin UI is schema-driven. Prefer server-side schema config.\n */\n list?: ListViewConfig<TFieldNames>;\n\n /**\n * Form view configuration\n *\n * @deprecated Admin UI is schema-driven. Prefer server-side schema config.\n */\n form?: FormViewConfig;\n\n /**\n * Navigation group\n */\n group?: string;\n\n /**\n * Sort order\n */\n order?: number;\n\n /**\n * Hide from navigation\n */\n hidden?: boolean;\n}\n\n/**\n * Preview configuration for live preview in form view\n */\nexport interface PreviewConfig {\n /**\n * URL builder function that returns preview URL for current form values\n * @param values - Current form values\n * @param locale - Current content locale\n * @returns Preview URL string\n */\n url: (values: Record<string, unknown>, locale: string) => string;\n /**\n * Whether preview is enabled (default: true)\n */\n enabled?: boolean;\n /**\n * Position of the preview panel (default: \"right\")\n */\n position?: \"right\" | \"bottom\";\n /**\n * Default width/height percentage of preview panel (default: 50)\n */\n defaultWidth?: number;\n /**\n * Minimum width/height percentage (default: 30)\n */\n minWidth?: number;\n /**\n * Maximum width/height percentage (default: 70)\n */\n maxWidth?: number;\n}\n\n/**\n * Autosave configuration for form view\n */\nexport interface AutoSaveConfig {\n /**\n * Whether autosave is enabled\n * @default false\n */\n enabled?: boolean;\n /**\n * Debounce delay in milliseconds before autosave triggers\n * @default 500 (0.5s as specified)\n */\n debounce?: number;\n /**\n * Show autosave status indicator in form header\n * @default true\n */\n indicator?: boolean;\n /**\n * Warn user before navigating away with unsaved changes\n * @default true\n */\n preventNavigation?: boolean;\n}\n\n/**\n * Collection builder state - internal state during building\n */\nexport interface CollectionBuilderState<\n TAdminApp extends AdminBuilder<any> = AdminBuilder<any>,\n> {\n readonly name: string;\n readonly \"~adminApp\": TAdminApp;\n /** Display label - supports inline translations */\n readonly label?: I18nText;\n /** Description - supports inline translations */\n readonly description?: I18nText;\n readonly icon?: IconComponent | ComponentReference;\n readonly fields?: Record<string, FieldDefinition<any, any>>;\n readonly list?: any; // View result from .list() callback\n readonly form?: any; // View result from .form() callback\n readonly preview?: PreviewConfig; // Preview configuration\n readonly autoSave?: AutoSaveConfig; // Autosave configuration\n}\n"],"mappings":";;;;AA0GA,SAAgB,sBACd,QACuB;AACvB,QAAO,OAAO,WAAW,WAAW,EAAE,OAAO,QAAQ,GAAG"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { I18nText } from "../../i18n/types.mjs";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/client/builder/types/common.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Dynamic I18n text resolver (supports functions based on form values)
|
|
8
|
+
*/
|
|
9
|
+
type DynamicI18nText = I18nText | ((values: Record<string, any>) => I18nText);
|
|
10
|
+
/**
|
|
11
|
+
* Component that can be lazy-loaded or direct
|
|
12
|
+
* Supports React.lazy, dynamic imports, and direct components
|
|
13
|
+
*/
|
|
14
|
+
type MaybeLazyComponent<TProps = any> = React$1.LazyExoticComponent<React$1.ComponentType<TProps>> | (() => Promise<{
|
|
15
|
+
default: React$1.ComponentType<TProps>;
|
|
16
|
+
}>) | React$1.ComponentType<TProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Icon component type
|
|
19
|
+
* Icons are always synchronous - no lazy loading needed for small SVGs
|
|
20
|
+
*/
|
|
21
|
+
type IconComponent = React$1.ComponentType<React$1.SVGProps<SVGSVGElement> & {
|
|
22
|
+
className?: string;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Base field props that are provided by the form (runtime)
|
|
26
|
+
* These should be omitted when inferring field options from component props
|
|
27
|
+
*/
|
|
28
|
+
type BaseFieldProps = {
|
|
29
|
+
name: string;
|
|
30
|
+
value: any;
|
|
31
|
+
onChange?: (value: any) => void;
|
|
32
|
+
onBlur: () => void;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
error?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
required?: boolean;
|
|
40
|
+
localized?: boolean;
|
|
41
|
+
locale?: string;
|
|
42
|
+
control?: any;
|
|
43
|
+
className?: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Base field props for builder config (supports I18nText)
|
|
47
|
+
* These are resolved to plain strings at runtime before passing to components
|
|
48
|
+
*/
|
|
49
|
+
type BaseFieldConfigProps = {
|
|
50
|
+
/** Field label - supports inline translations and dynamic resolvers */
|
|
51
|
+
label?: DynamicI18nText;
|
|
52
|
+
/** Field description - supports inline translations and dynamic resolvers */
|
|
53
|
+
description?: DynamicI18nText;
|
|
54
|
+
/** Field placeholder - supports inline translations and dynamic resolvers */
|
|
55
|
+
placeholder?: DynamicI18nText;
|
|
56
|
+
required?: boolean;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { BaseFieldConfigProps, BaseFieldProps, DynamicI18nText, IconComponent, MaybeLazyComponent };
|
|
60
|
+
//# sourceMappingURL=common.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.mts","names":[],"sources":["../../../../src/client/builder/types/common.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAY8C,KAFlC,eAAA,GACR,QAC0C,GAAA,CAAA,CAAA,MAAA,EAAhC,MAAgC,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,GAAR,QAAQ,CAAA;AAM9C;;;;AAEkD,KAFtC,kBAEsC,CAAA,SAAA,GAAA,CAAA,GAD9C,OAAA,CAAM,mBACwC,CADpB,OAAA,CAAM,aACc,CADA,MACA,CAAA,CAAA,GAAA,CAAA,GAAA,GAAvC,OAAuC,CAAA;EAApB,OAAM,EAAN,OAAA,CAAM,aAAA,CAAc,MAAd,CAAA;CAAzB,CAAA,CAAA,GACP,OAAA,CAAM,aADC,CACa,MADb,CAAA;;;;AAOX;AACiB,KADL,aAAA,GAAgB,OAAA,CAAM,aACjB,CAAf,OAAA,CAAM,QAAS,CAAA,aAAA,CAAA,GAAA;EAAf,SAAM,CAAA,EAAA,MAAA;CADoB,CAAA;;AAQ5B;AAsBA;;AAIgB,KA1BJ,cAAA,GA0BI;EAEA,IAAA,EAAA,MAAA;EAAe,KAAA,EAAA,GAAA;;;;;;;;;;;;;;;;;;;KANnB,oBAAA;;UAEF;;gBAEM;;gBAEA"}
|
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
import { I18nText } from "../../i18n/types.mjs";
|
|
2
|
+
import { BaseFieldProps, DynamicI18nText, IconComponent, MaybeLazyComponent } from "./common.mjs";
|
|
3
|
+
import { ComponentReference } from "../../../server/augmentation.mjs";
|
|
4
|
+
import "../../../server/index.mjs";
|
|
5
|
+
import { ActionDefinition } from "./action-types.mjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
//#region src/client/builder/types/field-types.d.ts
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Validation configuration for fields
|
|
12
|
+
*
|
|
13
|
+
* These options are used to generate Zod schemas for client-side validation.
|
|
14
|
+
*/
|
|
15
|
+
interface FieldValidationConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Minimum length for strings
|
|
18
|
+
*/
|
|
19
|
+
minLength?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum length for strings
|
|
22
|
+
*/
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Minimum value for numbers
|
|
26
|
+
*/
|
|
27
|
+
min?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum value for numbers
|
|
30
|
+
*/
|
|
31
|
+
max?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Regex pattern for strings
|
|
34
|
+
*/
|
|
35
|
+
pattern?: RegExp | string;
|
|
36
|
+
/**
|
|
37
|
+
* Custom error message for pattern validation
|
|
38
|
+
*/
|
|
39
|
+
patternMessage?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Email validation (for text fields)
|
|
42
|
+
*/
|
|
43
|
+
email?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* URL validation (for text fields)
|
|
46
|
+
*/
|
|
47
|
+
url?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Custom validation function
|
|
50
|
+
* @returns Error message if invalid, undefined if valid
|
|
51
|
+
*/
|
|
52
|
+
validate?: (value: any, formValues: Record<string, any>) => string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Custom Zod refinement
|
|
55
|
+
*/
|
|
56
|
+
refine?: (schema: z.ZodTypeAny) => z.ZodTypeAny;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Props passed to field components
|
|
60
|
+
*
|
|
61
|
+
* @typeParam TValue - Type of the field value
|
|
62
|
+
*/
|
|
63
|
+
interface FieldComponentProps<TValue = any> extends BaseFieldProps {
|
|
64
|
+
/**
|
|
65
|
+
* Field value (typed)
|
|
66
|
+
*/
|
|
67
|
+
value: TValue;
|
|
68
|
+
/**
|
|
69
|
+
* Change handler (typed)
|
|
70
|
+
* Optional to support read-only/preview modes
|
|
71
|
+
*/
|
|
72
|
+
onChange?: (value: TValue) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Field configuration options
|
|
75
|
+
*/
|
|
76
|
+
config?: FieldUIConfig;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Context provided to field hooks (onChange, etc.)
|
|
80
|
+
*/
|
|
81
|
+
interface FieldHookContext {
|
|
82
|
+
/**
|
|
83
|
+
* Set value of any field in the form
|
|
84
|
+
*/
|
|
85
|
+
setValue: (name: string, value: any) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Get current values of all fields
|
|
88
|
+
*/
|
|
89
|
+
getValues: () => Record<string, any>;
|
|
90
|
+
/**
|
|
91
|
+
* Get value of a specific field
|
|
92
|
+
*/
|
|
93
|
+
getValue: (name: string) => any;
|
|
94
|
+
/**
|
|
95
|
+
* Current field name
|
|
96
|
+
*/
|
|
97
|
+
fieldName: string;
|
|
98
|
+
/**
|
|
99
|
+
* Current locale (for localized fields)
|
|
100
|
+
*/
|
|
101
|
+
locale?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Field UI configuration (per-field overrides in collection config)
|
|
105
|
+
*/
|
|
106
|
+
interface FieldUIConfig {
|
|
107
|
+
/**
|
|
108
|
+
* Display label
|
|
109
|
+
*/
|
|
110
|
+
label?: DynamicI18nText;
|
|
111
|
+
/**
|
|
112
|
+
* Description text
|
|
113
|
+
*/
|
|
114
|
+
description?: DynamicI18nText;
|
|
115
|
+
/**
|
|
116
|
+
* Placeholder text
|
|
117
|
+
*/
|
|
118
|
+
placeholder?: DynamicI18nText;
|
|
119
|
+
/**
|
|
120
|
+
* Field type override
|
|
121
|
+
*/
|
|
122
|
+
type?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Whether field is required
|
|
125
|
+
*/
|
|
126
|
+
required?: boolean | ((values: Record<string, any>) => boolean);
|
|
127
|
+
/**
|
|
128
|
+
* Whether field is read-only
|
|
129
|
+
*/
|
|
130
|
+
readOnly?: boolean | ((values: Record<string, any>) => boolean);
|
|
131
|
+
/**
|
|
132
|
+
* Whether field is disabled (grayed out, can be dynamic)
|
|
133
|
+
*/
|
|
134
|
+
disabled?: boolean | ((values: Record<string, any>) => boolean);
|
|
135
|
+
/**
|
|
136
|
+
* Whether field is hidden (can be dynamic based on form values).
|
|
137
|
+
* Hidden fields are not rendered. Default is false (visible).
|
|
138
|
+
*
|
|
139
|
+
* Note: undefined/false = visible, true = hidden.
|
|
140
|
+
* This follows JavaScript falsy semantics for better DX.
|
|
141
|
+
*/
|
|
142
|
+
hidden?: boolean | ((values: Record<string, any>) => boolean);
|
|
143
|
+
/**
|
|
144
|
+
* Whether field is localized
|
|
145
|
+
*/
|
|
146
|
+
localized?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Validation configuration for client-side validation
|
|
149
|
+
*/
|
|
150
|
+
validation?: FieldValidationConfig;
|
|
151
|
+
/**
|
|
152
|
+
* Custom field component
|
|
153
|
+
*/
|
|
154
|
+
component?: MaybeLazyComponent<FieldComponentProps>;
|
|
155
|
+
/**
|
|
156
|
+
* Additional options for field type
|
|
157
|
+
*/
|
|
158
|
+
options?: SelectOption[] | ((values: Record<string, any>) => SelectOption[]);
|
|
159
|
+
/**
|
|
160
|
+
* Relation configuration
|
|
161
|
+
*/
|
|
162
|
+
relation?: RelationFieldConfig;
|
|
163
|
+
/**
|
|
164
|
+
* Embedded collection configuration
|
|
165
|
+
*/
|
|
166
|
+
embedded?: EmbeddedFieldConfig;
|
|
167
|
+
/**
|
|
168
|
+
* Rich text configuration
|
|
169
|
+
*/
|
|
170
|
+
richText?: RichTextConfig;
|
|
171
|
+
/**
|
|
172
|
+
* Array field configuration
|
|
173
|
+
*/
|
|
174
|
+
array?: ArrayFieldConfig;
|
|
175
|
+
/**
|
|
176
|
+
* Compute field value from other fields (proxy-tracked dependencies).
|
|
177
|
+
* Makes the field read-only and virtual (not submitted to backend).
|
|
178
|
+
*
|
|
179
|
+
* Dependencies are automatically detected via Proxy tracking.
|
|
180
|
+
* Works in both forms (reactive) and tables (static).
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```ts
|
|
184
|
+
* pricePerMinute: r.number({
|
|
185
|
+
* label: "Price/Minute",
|
|
186
|
+
* compute: (values) => values.price / values.duration,
|
|
187
|
+
* })
|
|
188
|
+
*
|
|
189
|
+
* fullName: r.text({
|
|
190
|
+
* compute: (values) => `${values.firstName} ${values.lastName}`,
|
|
191
|
+
* })
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
compute?: (values: Record<string, any>) => any;
|
|
195
|
+
/**
|
|
196
|
+
* Called when field value changes.
|
|
197
|
+
* Use for side effects like updating other fields.
|
|
198
|
+
* Can be async for API calls.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```ts
|
|
202
|
+
* onChange: async (value, { setValue }) => {
|
|
203
|
+
* // Auto-generate slug from title
|
|
204
|
+
* setValue('slug', slugify(value));
|
|
205
|
+
* }
|
|
206
|
+
* ```
|
|
207
|
+
*/
|
|
208
|
+
onChange?: (value: any, ctx: FieldHookContext) => void | Promise<void>;
|
|
209
|
+
/**
|
|
210
|
+
* Dynamic default value for new records.
|
|
211
|
+
* Can be a static value, sync function, or async function.
|
|
212
|
+
* Only evaluated when creating new records (not on edit).
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```ts
|
|
216
|
+
* // Static
|
|
217
|
+
* defaultValue: "draft"
|
|
218
|
+
*
|
|
219
|
+
* // Based on other fields
|
|
220
|
+
* defaultValue: (values) => values.type === "post" ? "draft" : "published"
|
|
221
|
+
*
|
|
222
|
+
* // Async (fetch from API)
|
|
223
|
+
* defaultValue: async (values) => {
|
|
224
|
+
* const settings = await fetchSettings();
|
|
225
|
+
* return settings.defaultStatus;
|
|
226
|
+
* }
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
defaultValue?: any | ((values: Record<string, any>) => any) | ((values: Record<string, any>) => Promise<any>);
|
|
230
|
+
/**
|
|
231
|
+
* Async options loader for select-type fields.
|
|
232
|
+
* Dependencies are automatically detected via Proxy tracking.
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* ```ts
|
|
236
|
+
* subcategory: r.select({
|
|
237
|
+
* loadOptions: async (values) => {
|
|
238
|
+
* // Automatically re-fetches when values.category changes
|
|
239
|
+
* return fetchSubcategories(values.category);
|
|
240
|
+
* },
|
|
241
|
+
* })
|
|
242
|
+
* ```
|
|
243
|
+
*/
|
|
244
|
+
loadOptions?: (values: Record<string, any>) => Promise<SelectOption[]>;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Select field option
|
|
248
|
+
*/
|
|
249
|
+
interface SelectOption {
|
|
250
|
+
label: I18nText;
|
|
251
|
+
value: string | number | boolean;
|
|
252
|
+
disabled?: boolean;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Relation field configuration
|
|
256
|
+
*/
|
|
257
|
+
interface RelationFieldConfig {
|
|
258
|
+
/**
|
|
259
|
+
* Target collection name
|
|
260
|
+
*/
|
|
261
|
+
targetCollection: string;
|
|
262
|
+
/**
|
|
263
|
+
* Display mode
|
|
264
|
+
*/
|
|
265
|
+
mode?: "inline" | "picker" | "create";
|
|
266
|
+
/**
|
|
267
|
+
* Whether multiple items can be selected
|
|
268
|
+
*/
|
|
269
|
+
multiple?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Whether items can be reordered
|
|
272
|
+
*/
|
|
273
|
+
orderable?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Filter for relation options
|
|
276
|
+
*/
|
|
277
|
+
filter?: (values: Record<string, any>) => Record<string, any>;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Embedded collection configuration
|
|
281
|
+
*/
|
|
282
|
+
interface EmbeddedFieldConfig {
|
|
283
|
+
/**
|
|
284
|
+
* Target collection name
|
|
285
|
+
*/
|
|
286
|
+
collection: string;
|
|
287
|
+
/**
|
|
288
|
+
* Display mode
|
|
289
|
+
*/
|
|
290
|
+
mode?: "inline" | "modal" | "drawer";
|
|
291
|
+
/**
|
|
292
|
+
* Whether items can be reordered
|
|
293
|
+
*/
|
|
294
|
+
orderable?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Function to generate row labels
|
|
297
|
+
*/
|
|
298
|
+
rowLabel?: (item: any) => string;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Rich text editor configuration
|
|
302
|
+
*/
|
|
303
|
+
interface RichTextConfig {
|
|
304
|
+
/**
|
|
305
|
+
* Enable image uploads
|
|
306
|
+
*/
|
|
307
|
+
enableImages?: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Show character count
|
|
310
|
+
*/
|
|
311
|
+
showCharacterCount?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Maximum characters
|
|
314
|
+
*/
|
|
315
|
+
maxCharacters?: number;
|
|
316
|
+
/**
|
|
317
|
+
* Feature toggles
|
|
318
|
+
*/
|
|
319
|
+
features?: {
|
|
320
|
+
slashCommands?: boolean;
|
|
321
|
+
tableControls?: boolean;
|
|
322
|
+
bubbleMenu?: boolean;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Image upload handler
|
|
326
|
+
*/
|
|
327
|
+
onImageUpload?: (file: File) => Promise<string>;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Array field configuration
|
|
331
|
+
*/
|
|
332
|
+
interface ArrayFieldConfig {
|
|
333
|
+
/**
|
|
334
|
+
* Placeholder text for items
|
|
335
|
+
*/
|
|
336
|
+
placeholder?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Type of items in array
|
|
339
|
+
*/
|
|
340
|
+
itemType?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Options for select-type items
|
|
343
|
+
*/
|
|
344
|
+
options?: SelectOption[];
|
|
345
|
+
/**
|
|
346
|
+
* Whether items can be reordered
|
|
347
|
+
*/
|
|
348
|
+
orderable?: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* Minimum items
|
|
351
|
+
*/
|
|
352
|
+
minItems?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Maximum items
|
|
355
|
+
*/
|
|
356
|
+
maxItems?: number;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Layout mode - controls spatial arrangement of fields
|
|
360
|
+
* Mirrors ObjectFieldLayout from field components
|
|
361
|
+
*
|
|
362
|
+
* - `"stack"` - Vertical layout, each field on its own line
|
|
363
|
+
* - `"inline"` - Horizontal flexbox, fields side-by-side with wrapping
|
|
364
|
+
* - `"grid"` - CSS Grid with configurable columns
|
|
365
|
+
*
|
|
366
|
+
* @see ObjectFieldLayout in field-types.ts for detailed visual examples
|
|
367
|
+
*/
|
|
368
|
+
type LayoutMode = "stack" | "inline" | "grid";
|
|
369
|
+
/**
|
|
370
|
+
* Wrapper mode - controls container visual appearance
|
|
371
|
+
* Mirrors ObjectFieldWrapper from field components
|
|
372
|
+
*
|
|
373
|
+
* - `"flat"` - No visual container, fields render directly
|
|
374
|
+
* - `"collapsible"` - Accordion-style expandable container
|
|
375
|
+
*
|
|
376
|
+
* @see ObjectFieldWrapper in field-types.ts for detailed visual examples
|
|
377
|
+
*/
|
|
378
|
+
type WrapperMode = "flat" | "collapsible";
|
|
379
|
+
/**
|
|
380
|
+
* Section layout - universal container for grouping fields
|
|
381
|
+
*
|
|
382
|
+
* Mirrors object field API exactly:
|
|
383
|
+
* - wrapper: visual container style (flat | collapsible)
|
|
384
|
+
* - layout: field arrangement (stack | inline | grid)
|
|
385
|
+
* - columns: for grid layout
|
|
386
|
+
* - defaultCollapsed: for collapsible wrapper
|
|
387
|
+
*
|
|
388
|
+
* @example Simple section with label
|
|
389
|
+
* ```ts
|
|
390
|
+
* {
|
|
391
|
+
* type: 'section',
|
|
392
|
+
* label: 'Contact Information',
|
|
393
|
+
* fields: [f.name, f.email, f.phone]
|
|
394
|
+
* }
|
|
395
|
+
* ```
|
|
396
|
+
*
|
|
397
|
+
* @example Grid layout (acts as "row")
|
|
398
|
+
* ```ts
|
|
399
|
+
* {
|
|
400
|
+
* type: 'section',
|
|
401
|
+
* layout: 'grid',
|
|
402
|
+
* columns: 2,
|
|
403
|
+
* fields: [f.firstName, f.lastName]
|
|
404
|
+
* }
|
|
405
|
+
* ```
|
|
406
|
+
*
|
|
407
|
+
* @example Collapsible section
|
|
408
|
+
* ```ts
|
|
409
|
+
* {
|
|
410
|
+
* type: 'section',
|
|
411
|
+
* label: 'Advanced Settings',
|
|
412
|
+
* wrapper: 'collapsible',
|
|
413
|
+
* defaultCollapsed: true,
|
|
414
|
+
* fields: [f.apiKey, f.webhookUrl]
|
|
415
|
+
* }
|
|
416
|
+
* ```
|
|
417
|
+
*
|
|
418
|
+
* @example Collapsible + Grid
|
|
419
|
+
* ```ts
|
|
420
|
+
* {
|
|
421
|
+
* type: 'section',
|
|
422
|
+
* label: 'Address',
|
|
423
|
+
* wrapper: 'collapsible',
|
|
424
|
+
* layout: 'grid',
|
|
425
|
+
* columns: 2,
|
|
426
|
+
* fields: [f.street, f.city, f.zip, f.country]
|
|
427
|
+
* }
|
|
428
|
+
* ```
|
|
429
|
+
*/
|
|
430
|
+
interface SectionLayout<TData = any> {
|
|
431
|
+
type: "section";
|
|
432
|
+
label?: DynamicI18nText;
|
|
433
|
+
description?: DynamicI18nText;
|
|
434
|
+
wrapper?: WrapperMode;
|
|
435
|
+
defaultCollapsed?: boolean;
|
|
436
|
+
layout?: LayoutMode;
|
|
437
|
+
columns?: number;
|
|
438
|
+
gap?: number;
|
|
439
|
+
fields: FieldLayoutItem<TData>[];
|
|
440
|
+
hidden?: boolean | ((values: Record<string, any>) => boolean);
|
|
441
|
+
className?: string;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Tab configuration for tabbed forms
|
|
445
|
+
*/
|
|
446
|
+
interface TabConfig<TData = any> {
|
|
447
|
+
id: string;
|
|
448
|
+
label: DynamicI18nText;
|
|
449
|
+
icon?: IconComponent | ComponentReference;
|
|
450
|
+
fields: FieldLayoutItem<TData>[];
|
|
451
|
+
hidden?: boolean | ((values: Record<string, any>) => boolean);
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Tabs layout container for tabbed forms.
|
|
455
|
+
*/
|
|
456
|
+
interface TabsLayout<TData = any> {
|
|
457
|
+
type: "tabs";
|
|
458
|
+
tabs: TabConfig<TData>[];
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Context passed to reactive handlers.
|
|
462
|
+
*/
|
|
463
|
+
interface FieldReactiveContext<TData = any> {
|
|
464
|
+
data: TData;
|
|
465
|
+
sibling: Record<string, any>;
|
|
466
|
+
ctx?: Record<string, any>;
|
|
467
|
+
prev?: {
|
|
468
|
+
data: TData;
|
|
469
|
+
sibling: Record<string, any>;
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Reactive handler config (short function form or object form).
|
|
474
|
+
*/
|
|
475
|
+
type FieldReactiveHandlerConfig<TData = any, TReturn = any> = ((ctx: FieldReactiveContext<TData>) => TReturn | Promise<TReturn>) | {
|
|
476
|
+
handler: (ctx: FieldReactiveContext<TData>) => TReturn | Promise<TReturn>;
|
|
477
|
+
deps?: string[] | ((ctx: {
|
|
478
|
+
data: TData;
|
|
479
|
+
}) => any[]);
|
|
480
|
+
debounce?: number;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Serialized reactive config from server introspection.
|
|
484
|
+
*/
|
|
485
|
+
interface SerializedReactiveDepsConfig {
|
|
486
|
+
deps: string[];
|
|
487
|
+
debounce?: number;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Reactive field config for form layout.
|
|
491
|
+
* Handlers are executed server-side; deps tracked for client reactivity.
|
|
492
|
+
*/
|
|
493
|
+
interface FieldReactiveConfig<TData = any> {
|
|
494
|
+
/** Hide field conditionally */
|
|
495
|
+
hidden?: boolean | FieldReactiveHandlerConfig<TData, boolean> | SerializedReactiveDepsConfig;
|
|
496
|
+
/** Make field read-only conditionally */
|
|
497
|
+
readOnly?: boolean | FieldReactiveHandlerConfig<TData, boolean> | SerializedReactiveDepsConfig;
|
|
498
|
+
/** Disable field conditionally */
|
|
499
|
+
disabled?: boolean | FieldReactiveHandlerConfig<TData, boolean> | SerializedReactiveDepsConfig;
|
|
500
|
+
/** Auto-compute field value */
|
|
501
|
+
compute?: FieldReactiveHandlerConfig<TData, any> | SerializedReactiveDepsConfig;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Field layout item with optional reactive config
|
|
505
|
+
*/
|
|
506
|
+
interface FieldLayoutItemWithReactive<TData = any> extends FieldReactiveConfig<TData> {
|
|
507
|
+
field: string;
|
|
508
|
+
className?: string;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Field layout item - can be a simple field name, field with config, section, or tabs
|
|
512
|
+
*
|
|
513
|
+
* @example
|
|
514
|
+
* ```ts
|
|
515
|
+
* fields: [
|
|
516
|
+
* f.name, // simple field reference
|
|
517
|
+
* { field: f.email, className: 'col-span-2' }, // with className
|
|
518
|
+
* { field: f.slug, compute: { handler: ({ data }) => slugify(data.name), deps: ['name'] } }, // with compute
|
|
519
|
+
* { field: f.reason, hidden: ({ data }) => data.status !== 'cancelled' }, // with hidden
|
|
520
|
+
* { type: 'section', layout: 'grid', columns: 2, fields: [...] }, // section
|
|
521
|
+
* { type: 'tabs', tabs: [...] } // tabs
|
|
522
|
+
* ]
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
type FieldLayoutItem<TData = any> = string | FieldLayoutItemWithReactive<TData> | SectionLayout<TData> | TabsLayout<TData>;
|
|
526
|
+
/**
|
|
527
|
+
* Form sidebar configuration
|
|
528
|
+
* Uses `fields` array (same structure as main form)
|
|
529
|
+
*/
|
|
530
|
+
interface FormSidebarConfig<TData = any> {
|
|
531
|
+
position?: "left" | "right";
|
|
532
|
+
fields: FieldLayoutItem<TData>[];
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Form view configuration
|
|
536
|
+
* Uses `fields` array for main content
|
|
537
|
+
*
|
|
538
|
+
* @example
|
|
539
|
+
* ```ts
|
|
540
|
+
* .form(({ v, f }) => v.form({
|
|
541
|
+
* sidebar: {
|
|
542
|
+
* position: 'right',
|
|
543
|
+
* fields: [f.status, f.publishedAt]
|
|
544
|
+
* },
|
|
545
|
+
* fields: [
|
|
546
|
+
* { type: 'section', layout: 'grid', columns: 2, fields: [f.name, f.email] },
|
|
547
|
+
* { type: 'section', label: 'Content', fields: [f.body] }
|
|
548
|
+
* ]
|
|
549
|
+
* }))
|
|
550
|
+
* ```
|
|
551
|
+
*/
|
|
552
|
+
interface FormViewConfig<TData = any> {
|
|
553
|
+
fields: FieldLayoutItem<TData>[];
|
|
554
|
+
sidebar?: FormSidebarConfig<TData>;
|
|
555
|
+
actions?: FormViewActionsConfig;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Actions configuration for form views
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* ```ts
|
|
562
|
+
* actions: {
|
|
563
|
+
* primary: [a.action({ id: "publish", label: "Publish" })], // Buttons next to Save
|
|
564
|
+
* secondary: [a.action({ id: "delete", label: "Delete" })], // In dropdown menu (...)
|
|
565
|
+
* }
|
|
566
|
+
* ```
|
|
567
|
+
*/
|
|
568
|
+
interface FormViewActionsConfig<TItem = any> {
|
|
569
|
+
/** Actions shown as buttons (next to Save) */
|
|
570
|
+
primary?: ActionDefinition<TItem>[];
|
|
571
|
+
/** Actions shown in dropdown menu (...) */
|
|
572
|
+
secondary?: ActionDefinition<TItem>[];
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Registry for custom field and widget components
|
|
576
|
+
*/
|
|
577
|
+
interface ComponentRegistry {
|
|
578
|
+
/**
|
|
579
|
+
* Custom field components by type
|
|
580
|
+
*/
|
|
581
|
+
fields?: Record<string, MaybeLazyComponent<FieldComponentProps>>;
|
|
582
|
+
/**
|
|
583
|
+
* Custom widget components by type
|
|
584
|
+
*/
|
|
585
|
+
widgets?: Record<string, MaybeLazyComponent<any>>;
|
|
586
|
+
/**
|
|
587
|
+
* Custom named components (for component prop on fields)
|
|
588
|
+
*/
|
|
589
|
+
custom?: Record<string, MaybeLazyComponent<any>>;
|
|
590
|
+
}
|
|
591
|
+
//#endregion
|
|
592
|
+
export { ArrayFieldConfig, ComponentRegistry, EmbeddedFieldConfig, FieldComponentProps, FieldHookContext, FieldLayoutItem, FieldUIConfig, FieldValidationConfig, FormSidebarConfig, FormViewConfig, LayoutMode, RelationFieldConfig, RichTextConfig, SectionLayout, SelectOption, TabConfig, TabsLayout, WrapperMode };
|
|
593
|
+
//# sourceMappingURL=field-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-types.d.mts","names":[],"sources":["../../../../src/client/builder/types/field-types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AA2FA;AAIQ,UArES,qBAAA,CAqET;EAMY;;;EAVqD,SAAA,CAAA,EAAA,MAAA;EAkDxD;AAkCjB;;EASe,SAAA,CAAA,EAAA,MAAA;EAKA;;;EAoBiB,GAAA,CAAA,EAAA,MAAA;EASF;;;EAejB,GAAA,CAAA,EAAA,MAAA;EAKF;;;EAKC,OAAA,CAAA,EAjMD,MAiMC,GAAA,MAAA;EAKA;;;EAmCQ,cAAA,CAAA,EAAA,MAAA;EAeU;;;EAyBhB,KAAA,CAAA,EAAA,OAAA;EAAwB;;;EAgBU,GAAA,CAAA,EAAA,OAAA;EAAO;AAMvD;AASA;AA8BA;EAyBiB,QAAA,CAAA,EAAA,CAAA,KAAc,EAAA,GAAA,EAAA,UA4BP,EA5WV,MA4WmB,CAAA,MAAO,EAAA,GAAA,CAAA,EAAA,GAAA,MAAA,GAAA,SAAA;EAMvB;AA8CjB;AAWA;EAqDiB,MAAA,CAAA,EAAA,CAAA,MAAa,EA1dX,CAAA,CAAE,UA0dS,EAAA,GA1dM,CAAA,CAAE,UA0dR;;;;;;;AAoBA,UAleb,mBAkea,CAAA,SAAA,GAAA,CAAA,SAle6B,cAke7B,CAAA;EAAM;AASpC;;EAGQ,KAAA,EA1eA,MA0eA;EAAgB;;;;EAGY,QAAA,CAAA,EAAA,CAAA,KAAA,EAvehB,MAuegB,EAAA,GAAA,IAAA;EAMnB;AAQjB;;EAEU,MAAA,CAAA,EAlfA,aAkfA;;;;;AA6CqB,UA5fd,gBAAA,CA4fc;EAA3B;;;EAIA,QAAA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,GAAA,EAAA,GAAA,IAAA;EACA;;AAMJ;EAqBY,SAAA,EAAA,GAAA,GAnhBM,MAmhBS,CAAA,MAAA,EAAA,GAAA,CAAA;EAEI;;;EAC5B,QAAA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,GAAA;EACW;;;EA2CG,SAAA,EAAA,MAAA;EAuBA;;;EAEY,MAAA,CAAA,EAAA,MAAA;;;;AAe7B;AAE4B,UAnlBX,aAAA,CAmlBW;EAAjB;;;EAEkB,KAAA,CAAA,EAjlBpB,eAilBoB;EAUZ;;;EAIP,WAAA,CAAA,EA1lBK,eA0lBL;EAKgB;;;EAKhB,WAAA,CAAA,EA/lBK,eA+lBL;EAAM;;;;;;;iCArlBgB;;;;iCAKA;;;;iCAKA;;;;;;;;+BASF;;;;;;;;eAUhB;;;;cAKD,mBAAmB;;;;YAKrB,2BAA2B,wBAAwB;;;;aAKlD;;;;aAKA;;;;aAKA;;;;UAKH;;;;;;;;;;;;;;;;;;;;qBAyBW;;;;;;;;;;;;;;+BAeU,4BAA4B;;;;;;;;;;;;;;;;;;;;;iCAwB5C,yCACA,wBAAwB;;;;;;;;;;;;;;;yBAgBd,wBAAwB,QAAQ;;;;;UAMvC,YAAA;SACT;;;;;;;UAQS,mBAAA;;;;;;;;;;;;;;;;;;;;oBAwBE,wBAAwB;;;;;UAM1B,mBAAA;;;;;;;;;;;;;;;;;;;;;UAyBA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;yBA4BO,SAAS;;;;;UAMhB,gBAAA;;;;;;;;;;;;YAcN;;;;;;;;;;;;;;;;;;;;;;;;KAgCC,UAAA;;;;;;;;;;KAWA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqDK;;UAIR;gBACM;YAGJ;;WAID;;;UAKD,gBAAgB;+BAGK;;;;;;UASb;;SAET;SACA,gBAAgB;UACf,gBAAgB;+BAEK;;;;;UAMb;;QAEV,UAAU;;;;;UAMA;QACV;WACG;QACH;;UAEC;aACG;;;;;;KAOC,gEACF,qBAAqB,WAAW,UAAU,QAAQ;iBAE1C,qBAAqB,WAAW,UAAU,QAAQ;;UAChC;;;;;;;UAOnB,4BAAA;;;;;;;;UASA;;qBAIb,2BAA2B,kBAC3B;;uBAIA,2BAA2B,kBAC3B;;uBAIA,2BAA2B,kBAC3B;;YAGA,2BAA2B,cAC3B;;;;;UAMa,iDACR,oBAAoB;;;;;;;;;;;;;;;;;;;KAoBjB,wCAET,4BAA4B,SAC5B,cAAc,SACd,WAAW;;;;;UA2CG;;UAER,gBAAgB;;;;;;;;;;;;;;;;;;;;UAqBR;UACR,gBAAgB;YACd,kBAAkB;YAClB;;;;;;;;;;;;;UAcM;;YAEN,iBAAiB;;cAEf,iBAAiB;;;;;UAUb,iBAAA;;;;WAIP,eAAe,mBAAmB;;;;YAKjC,eAAe;;;;WAKhB,eAAe"}
|