@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,19 @@
|
|
|
1
|
+
//#region src/client/builder/types/field-types.ts
|
|
2
|
+
/**
|
|
3
|
+
* Helper to check if item is a field reference (string or object with field)
|
|
4
|
+
*/
|
|
5
|
+
function isFieldReference(item) {
|
|
6
|
+
return typeof item === "string" || "field" in item && !("type" in item);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Helper to get field name from layout item
|
|
10
|
+
*/
|
|
11
|
+
function getFieldName(item) {
|
|
12
|
+
if (typeof item === "string") return item;
|
|
13
|
+
if ("field" in item && typeof item.field === "string") return item.field;
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { getFieldName, isFieldReference };
|
|
19
|
+
//# sourceMappingURL=field-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-types.mjs","names":[],"sources":["../../../../src/client/builder/types/field-types.ts"],"sourcesContent":["/**\n * Field Component Types\n *\n * Types for field components, form views, and field configuration.\n */\n\nimport type { z } from \"zod\";\nimport type { ComponentReference } from \"#questpie/admin/server\";\nimport type { I18nText } from \"../../i18n/types.js\";\nimport type { ActionDefinition } from \"./action-types\";\nimport type {\n\tBaseFieldProps,\n\tDynamicI18nText,\n\tIconComponent,\n\tMaybeLazyComponent,\n} from \"./common\";\n\n// ============================================================================\n// Validation Configuration\n// ============================================================================\n\n/**\n * Validation configuration for fields\n *\n * These options are used to generate Zod schemas for client-side validation.\n */\nexport interface FieldValidationConfig {\n\t/**\n\t * Minimum length for strings\n\t */\n\tminLength?: number;\n\n\t/**\n\t * Maximum length for strings\n\t */\n\tmaxLength?: number;\n\n\t/**\n\t * Minimum value for numbers\n\t */\n\tmin?: number;\n\n\t/**\n\t * Maximum value for numbers\n\t */\n\tmax?: number;\n\n\t/**\n\t * Regex pattern for strings\n\t */\n\tpattern?: RegExp | string;\n\n\t/**\n\t * Custom error message for pattern validation\n\t */\n\tpatternMessage?: string;\n\n\t/**\n\t * Email validation (for text fields)\n\t */\n\temail?: boolean;\n\n\t/**\n\t * URL validation (for text fields)\n\t */\n\turl?: boolean;\n\n\t/**\n\t * Custom validation function\n\t * @returns Error message if invalid, undefined if valid\n\t */\n\tvalidate?: (\n\t\tvalue: any,\n\t\tformValues: Record<string, any>,\n\t) => string | undefined;\n\n\t/**\n\t * Custom Zod refinement\n\t */\n\trefine?: (schema: z.ZodTypeAny) => z.ZodTypeAny;\n}\n\n// ============================================================================\n// Field Component Props\n// ============================================================================\n\n/**\n * Props passed to field components\n *\n * @typeParam TValue - Type of the field value\n */\nexport interface FieldComponentProps<TValue = any> extends BaseFieldProps {\n\t/**\n\t * Field value (typed)\n\t */\n\tvalue: TValue;\n\n\t/**\n\t * Change handler (typed)\n\t * Optional to support read-only/preview modes\n\t */\n\tonChange?: (value: TValue) => void;\n\n\t/**\n\t * Field configuration options\n\t */\n\tconfig?: FieldUIConfig;\n}\n\n/**\n * Props for embedded collection fields\n */\nexport interface EmbeddedCollectionProps extends BaseFieldProps {\n\t/**\n\t * Target collection name\n\t */\n\tcollection: string;\n\n\t/**\n\t * Display mode\n\t */\n\tmode?: \"inline\" | \"modal\" | \"drawer\";\n\n\t/**\n\t * Whether items can be reordered\n\t */\n\torderable?: boolean;\n\n\t/**\n\t * Function to generate row labels\n\t */\n\trowLabel?: (item: any) => string;\n}\n\n// ============================================================================\n// Field Hooks Context\n// ============================================================================\n\n/**\n * Context provided to field hooks (onChange, etc.)\n */\nexport interface FieldHookContext {\n\t/**\n\t * Set value of any field in the form\n\t */\n\tsetValue: (name: string, value: any) => void;\n\n\t/**\n\t * Get current values of all fields\n\t */\n\tgetValues: () => Record<string, any>;\n\n\t/**\n\t * Get value of a specific field\n\t */\n\tgetValue: (name: string) => any;\n\n\t/**\n\t * Current field name\n\t */\n\tfieldName: string;\n\n\t/**\n\t * Current locale (for localized fields)\n\t */\n\tlocale?: string;\n}\n\n// ============================================================================\n// Field UI Configuration\n// ============================================================================\n\n/**\n * Field UI configuration (per-field overrides in collection config)\n */\nexport interface FieldUIConfig {\n\t/**\n\t * Display label\n\t */\n\tlabel?: DynamicI18nText;\n\n\t/**\n\t * Description text\n\t */\n\tdescription?: DynamicI18nText;\n\n\t/**\n\t * Placeholder text\n\t */\n\tplaceholder?: DynamicI18nText;\n\n\t/**\n\t * Field type override\n\t */\n\ttype?: string;\n\n\t/**\n\t * Whether field is required\n\t */\n\trequired?: boolean | ((values: Record<string, any>) => boolean);\n\n\t/**\n\t * Whether field is read-only\n\t */\n\treadOnly?: boolean | ((values: Record<string, any>) => boolean);\n\n\t/**\n\t * Whether field is disabled (grayed out, can be dynamic)\n\t */\n\tdisabled?: boolean | ((values: Record<string, any>) => boolean);\n\n\t/**\n\t * Whether field is hidden (can be dynamic based on form values).\n\t * Hidden fields are not rendered. Default is false (visible).\n\t *\n\t * Note: undefined/false = visible, true = hidden.\n\t * This follows JavaScript falsy semantics for better DX.\n\t */\n\thidden?: boolean | ((values: Record<string, any>) => boolean);\n\n\t/**\n\t * Whether field is localized\n\t */\n\tlocalized?: boolean;\n\n\t/**\n\t * Validation configuration for client-side validation\n\t */\n\tvalidation?: FieldValidationConfig;\n\n\t/**\n\t * Custom field component\n\t */\n\tcomponent?: MaybeLazyComponent<FieldComponentProps>;\n\n\t/**\n\t * Additional options for field type\n\t */\n\toptions?: SelectOption[] | ((values: Record<string, any>) => SelectOption[]);\n\n\t/**\n\t * Relation configuration\n\t */\n\trelation?: RelationFieldConfig;\n\n\t/**\n\t * Embedded collection configuration\n\t */\n\tembedded?: EmbeddedFieldConfig;\n\n\t/**\n\t * Rich text configuration\n\t */\n\trichText?: RichTextConfig;\n\n\t/**\n\t * Array field configuration\n\t */\n\tarray?: ArrayFieldConfig;\n\n\t// ========================================================================\n\t// Field Hooks\n\t// ========================================================================\n\n\t/**\n\t * Compute field value from other fields (proxy-tracked dependencies).\n\t * Makes the field read-only and virtual (not submitted to backend).\n\t *\n\t * Dependencies are automatically detected via Proxy tracking.\n\t * Works in both forms (reactive) and tables (static).\n\t *\n\t * @example\n\t * ```ts\n\t * pricePerMinute: r.number({\n\t * label: \"Price/Minute\",\n\t * compute: (values) => values.price / values.duration,\n\t * })\n\t *\n\t * fullName: r.text({\n\t * compute: (values) => `${values.firstName} ${values.lastName}`,\n\t * })\n\t * ```\n\t */\n\tcompute?: (values: Record<string, any>) => any;\n\n\t/**\n\t * Called when field value changes.\n\t * Use for side effects like updating other fields.\n\t * Can be async for API calls.\n\t *\n\t * @example\n\t * ```ts\n\t * onChange: async (value, { setValue }) => {\n\t * // Auto-generate slug from title\n\t * setValue('slug', slugify(value));\n\t * }\n\t * ```\n\t */\n\tonChange?: (value: any, ctx: FieldHookContext) => void | Promise<void>;\n\n\t/**\n\t * Dynamic default value for new records.\n\t * Can be a static value, sync function, or async function.\n\t * Only evaluated when creating new records (not on edit).\n\t *\n\t * @example\n\t * ```ts\n\t * // Static\n\t * defaultValue: \"draft\"\n\t *\n\t * // Based on other fields\n\t * defaultValue: (values) => values.type === \"post\" ? \"draft\" : \"published\"\n\t *\n\t * // Async (fetch from API)\n\t * defaultValue: async (values) => {\n\t * const settings = await fetchSettings();\n\t * return settings.defaultStatus;\n\t * }\n\t * ```\n\t */\n\tdefaultValue?:\n\t\t| any\n\t\t| ((values: Record<string, any>) => any)\n\t\t| ((values: Record<string, any>) => Promise<any>);\n\n\t/**\n\t * Async options loader for select-type fields.\n\t * Dependencies are automatically detected via Proxy tracking.\n\t *\n\t * @example\n\t * ```ts\n\t * subcategory: r.select({\n\t * loadOptions: async (values) => {\n\t * // Automatically re-fetches when values.category changes\n\t * return fetchSubcategories(values.category);\n\t * },\n\t * })\n\t * ```\n\t */\n\tloadOptions?: (values: Record<string, any>) => Promise<SelectOption[]>;\n}\n\n/**\n * Select field option\n */\nexport interface SelectOption {\n\tlabel: I18nText;\n\tvalue: string | number | boolean;\n\tdisabled?: boolean;\n}\n\n/**\n * Relation field configuration\n */\nexport interface RelationFieldConfig {\n\t/**\n\t * Target collection name\n\t */\n\ttargetCollection: string;\n\n\t/**\n\t * Display mode\n\t */\n\tmode?: \"inline\" | \"picker\" | \"create\";\n\n\t/**\n\t * Whether multiple items can be selected\n\t */\n\tmultiple?: boolean;\n\n\t/**\n\t * Whether items can be reordered\n\t */\n\torderable?: boolean;\n\n\t/**\n\t * Filter for relation options\n\t */\n\tfilter?: (values: Record<string, any>) => Record<string, any>;\n}\n\n/**\n * Embedded collection configuration\n */\nexport interface EmbeddedFieldConfig {\n\t/**\n\t * Target collection name\n\t */\n\tcollection: string;\n\n\t/**\n\t * Display mode\n\t */\n\tmode?: \"inline\" | \"modal\" | \"drawer\";\n\n\t/**\n\t * Whether items can be reordered\n\t */\n\torderable?: boolean;\n\n\t/**\n\t * Function to generate row labels\n\t */\n\trowLabel?: (item: any) => string;\n}\n\n/**\n * Rich text editor configuration\n */\nexport interface RichTextConfig {\n\t/**\n\t * Enable image uploads\n\t */\n\tenableImages?: boolean;\n\n\t/**\n\t * Show character count\n\t */\n\tshowCharacterCount?: boolean;\n\n\t/**\n\t * Maximum characters\n\t */\n\tmaxCharacters?: number;\n\n\t/**\n\t * Feature toggles\n\t */\n\tfeatures?: {\n\t\tslashCommands?: boolean;\n\t\ttableControls?: boolean;\n\t\tbubbleMenu?: boolean;\n\t};\n\n\t/**\n\t * Image upload handler\n\t */\n\tonImageUpload?: (file: File) => Promise<string>;\n}\n\n/**\n * Array field configuration\n */\nexport interface ArrayFieldConfig {\n\t/**\n\t * Placeholder text for items\n\t */\n\tplaceholder?: string;\n\n\t/**\n\t * Type of items in array\n\t */\n\titemType?: string;\n\n\t/**\n\t * Options for select-type items\n\t */\n\toptions?: SelectOption[];\n\n\t/**\n\t * Whether items can be reordered\n\t */\n\torderable?: boolean;\n\n\t/**\n\t * Minimum items\n\t */\n\tminItems?: number;\n\n\t/**\n\t * Maximum items\n\t */\n\tmaxItems?: number;\n}\n\n// ============================================================================\n// Field Layout Configuration - Mirrors Object Field API\n// ============================================================================\n\n/**\n * Layout mode - controls spatial arrangement of fields\n * Mirrors ObjectFieldLayout from field components\n *\n * - `\"stack\"` - Vertical layout, each field on its own line\n * - `\"inline\"` - Horizontal flexbox, fields side-by-side with wrapping\n * - `\"grid\"` - CSS Grid with configurable columns\n *\n * @see ObjectFieldLayout in field-types.ts for detailed visual examples\n */\nexport type LayoutMode = \"stack\" | \"inline\" | \"grid\";\n\n/**\n * Wrapper mode - controls container visual appearance\n * Mirrors ObjectFieldWrapper from field components\n *\n * - `\"flat\"` - No visual container, fields render directly\n * - `\"collapsible\"` - Accordion-style expandable container\n *\n * @see ObjectFieldWrapper in field-types.ts for detailed visual examples\n */\nexport type WrapperMode = \"flat\" | \"collapsible\";\n\n/**\n * Section layout - universal container for grouping fields\n *\n * Mirrors object field API exactly:\n * - wrapper: visual container style (flat | collapsible)\n * - layout: field arrangement (stack | inline | grid)\n * - columns: for grid layout\n * - defaultCollapsed: for collapsible wrapper\n *\n * @example Simple section with label\n * ```ts\n * {\n * type: 'section',\n * label: 'Contact Information',\n * fields: [f.name, f.email, f.phone]\n * }\n * ```\n *\n * @example Grid layout (acts as \"row\")\n * ```ts\n * {\n * type: 'section',\n * layout: 'grid',\n * columns: 2,\n * fields: [f.firstName, f.lastName]\n * }\n * ```\n *\n * @example Collapsible section\n * ```ts\n * {\n * type: 'section',\n * label: 'Advanced Settings',\n * wrapper: 'collapsible',\n * defaultCollapsed: true,\n * fields: [f.apiKey, f.webhookUrl]\n * }\n * ```\n *\n * @example Collapsible + Grid\n * ```ts\n * {\n * type: 'section',\n * label: 'Address',\n * wrapper: 'collapsible',\n * layout: 'grid',\n * columns: 2,\n * fields: [f.street, f.city, f.zip, f.country]\n * }\n * ```\n */\nexport interface SectionLayout<TData = any> {\n\ttype: \"section\";\n\n\t// Visual grouping\n\tlabel?: DynamicI18nText;\n\tdescription?: DynamicI18nText;\n\n\t// Wrapper (mirrors object field)\n\twrapper?: WrapperMode;\n\tdefaultCollapsed?: boolean;\n\n\t// Layout (mirrors object field)\n\tlayout?: LayoutMode;\n\tcolumns?: number;\n\tgap?: number;\n\n\t// Content\n\tfields: FieldLayoutItem<TData>[];\n\n\t// Conditional visibility (hidden: false/undefined = visible, true = hidden)\n\thidden?: boolean | ((values: Record<string, any>) => boolean);\n\n\t// Custom styling\n\tclassName?: string;\n}\n\n/**\n * Tab configuration for tabbed forms\n */\nexport interface TabConfig<TData = any> {\n\tid: string;\n\tlabel: DynamicI18nText;\n\ticon?: IconComponent | ComponentReference;\n\tfields: FieldLayoutItem<TData>[];\n\t// Conditional visibility (hidden: false/undefined = visible, true = hidden)\n\thidden?: boolean | ((values: Record<string, any>) => boolean);\n}\n\n/**\n * Tabs layout container for tabbed forms.\n */\nexport interface TabsLayout<TData = any> {\n\ttype: \"tabs\";\n\ttabs: TabConfig<TData>[];\n}\n\n/**\n * Context passed to reactive handlers.\n */\nexport interface FieldReactiveContext<TData = any> {\n\tdata: TData;\n\tsibling: Record<string, any>;\n\tctx?: Record<string, any>;\n\tprev?: {\n\t\tdata: TData;\n\t\tsibling: Record<string, any>;\n\t};\n}\n\n/**\n * Reactive handler config (short function form or object form).\n */\nexport type FieldReactiveHandlerConfig<TData = any, TReturn = any> =\n\t| ((ctx: FieldReactiveContext<TData>) => TReturn | Promise<TReturn>)\n\t| {\n\t\t\thandler: (ctx: FieldReactiveContext<TData>) => TReturn | Promise<TReturn>;\n\t\t\tdeps?: string[] | ((ctx: { data: TData }) => any[]);\n\t\t\tdebounce?: number;\n\t };\n\n/**\n * Serialized reactive config from server introspection.\n */\nexport interface SerializedReactiveDepsConfig {\n\tdeps: string[];\n\tdebounce?: number;\n}\n\n/**\n * Reactive field config for form layout.\n * Handlers are executed server-side; deps tracked for client reactivity.\n */\nexport interface FieldReactiveConfig<TData = any> {\n\t/** Hide field conditionally */\n\thidden?:\n\t\t| boolean\n\t\t| FieldReactiveHandlerConfig<TData, boolean>\n\t\t| SerializedReactiveDepsConfig;\n\t/** Make field read-only conditionally */\n\treadOnly?:\n\t\t| boolean\n\t\t| FieldReactiveHandlerConfig<TData, boolean>\n\t\t| SerializedReactiveDepsConfig;\n\t/** Disable field conditionally */\n\tdisabled?:\n\t\t| boolean\n\t\t| FieldReactiveHandlerConfig<TData, boolean>\n\t\t| SerializedReactiveDepsConfig;\n\t/** Auto-compute field value */\n\tcompute?:\n\t\t| FieldReactiveHandlerConfig<TData, any>\n\t\t| SerializedReactiveDepsConfig;\n}\n\n/**\n * Field layout item with optional reactive config\n */\nexport interface FieldLayoutItemWithReactive<TData = any>\n\textends FieldReactiveConfig<TData> {\n\tfield: string;\n\tclassName?: string;\n}\n\n/**\n * Field layout item - can be a simple field name, field with config, section, or tabs\n *\n * @example\n * ```ts\n * fields: [\n * f.name, // simple field reference\n * { field: f.email, className: 'col-span-2' }, // with className\n * { field: f.slug, compute: { handler: ({ data }) => slugify(data.name), deps: ['name'] } }, // with compute\n * { field: f.reason, hidden: ({ data }) => data.status !== 'cancelled' }, // with hidden\n * { type: 'section', layout: 'grid', columns: 2, fields: [...] }, // section\n * { type: 'tabs', tabs: [...] } // tabs\n * ]\n * ```\n */\nexport type FieldLayoutItem<TData = any> =\n\t| string\n\t| FieldLayoutItemWithReactive<TData>\n\t| SectionLayout<TData>\n\t| TabsLayout<TData>;\n\n/**\n * Helper to check if item is a field reference (string or object with field)\n */\nexport function isFieldReference<TData = any>(\n\titem: FieldLayoutItem<TData>,\n): item is string | FieldLayoutItemWithReactive<TData> {\n\treturn typeof item === \"string\" || (\"field\" in item && !(\"type\" in item));\n}\n\n/**\n * Helper to get field name from layout item\n */\nexport function getFieldName<TData = any>(\n\titem: FieldLayoutItem<TData>,\n): string | null {\n\tif (typeof item === \"string\") return item;\n\tif (\"field\" in item && typeof item.field === \"string\") return item.field;\n\treturn null;\n}\n\n/**\n * Helper to get className from field layout item\n */\nexport function getFieldClassName<TData = any>(\n\titem: FieldLayoutItem<TData>,\n): string | undefined {\n\treturn typeof item === \"string\"\n\t\t? undefined\n\t\t: \"className\" in item\n\t\t\t? item.className\n\t\t\t: undefined;\n}\n\n// ============================================================================\n// Form View Configuration\n// ============================================================================\n\n/**\n * Form sidebar configuration\n * Uses `fields` array (same structure as main form)\n */\nexport interface FormSidebarConfig<TData = any> {\n\tposition?: \"left\" | \"right\";\n\tfields: FieldLayoutItem<TData>[];\n}\n\n/**\n * Form view configuration\n * Uses `fields` array for main content\n *\n * @example\n * ```ts\n * .form(({ v, f }) => v.form({\n * sidebar: {\n * position: 'right',\n * fields: [f.status, f.publishedAt]\n * },\n * fields: [\n * { type: 'section', layout: 'grid', columns: 2, fields: [f.name, f.email] },\n * { type: 'section', label: 'Content', fields: [f.body] }\n * ]\n * }))\n * ```\n */\nexport interface FormViewConfig<TData = any> {\n\tfields: FieldLayoutItem<TData>[];\n\tsidebar?: FormSidebarConfig<TData>;\n\tactions?: FormViewActionsConfig;\n}\n\n/**\n * Actions configuration for form views\n *\n * @example\n * ```ts\n * actions: {\n * primary: [a.action({ id: \"publish\", label: \"Publish\" })], // Buttons next to Save\n * secondary: [a.action({ id: \"delete\", label: \"Delete\" })], // In dropdown menu (...)\n * }\n * ```\n */\nexport interface FormViewActionsConfig<TItem = any> {\n\t/** Actions shown as buttons (next to Save) */\n\tprimary?: ActionDefinition<TItem>[];\n\t/** Actions shown in dropdown menu (...) */\n\tsecondary?: ActionDefinition<TItem>[];\n}\n\n// ============================================================================\n// Component Registry\n// ============================================================================\n\n/**\n * Registry for custom field and widget components\n */\nexport interface ComponentRegistry {\n\t/**\n\t * Custom field components by type\n\t */\n\tfields?: Record<string, MaybeLazyComponent<FieldComponentProps>>;\n\n\t/**\n\t * Custom widget components by type\n\t */\n\twidgets?: Record<string, MaybeLazyComponent<any>>;\n\n\t/**\n\t * Custom named components (for component prop on fields)\n\t */\n\tcustom?: Record<string, MaybeLazyComponent<any>>;\n}\n"],"mappings":";;;;AAkrBA,SAAgB,iBACf,MACsD;AACtD,QAAO,OAAO,SAAS,YAAa,WAAW,QAAQ,EAAE,UAAU;;;;;AAMpE,SAAgB,aACf,MACgB;AAChB,KAAI,OAAO,SAAS,SAAU,QAAO;AACrC,KAAI,WAAW,QAAQ,OAAO,KAAK,UAAU,SAAU,QAAO,KAAK;AACnE,QAAO"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { I18nText } from "../../i18n/types.mjs";
|
|
2
|
+
import { IconComponent } from "./common.mjs";
|
|
3
|
+
import { ComponentReference } from "../../../server/augmentation.mjs";
|
|
4
|
+
import "../../../server/index.mjs";
|
|
5
|
+
import { AdminBuilder } from "../admin-builder.mjs";
|
|
6
|
+
|
|
7
|
+
//#region src/client/builder/types/global-types.d.ts
|
|
8
|
+
|
|
9
|
+
interface GlobalBuilderState<TAdminApp extends AdminBuilder<any> = AdminBuilder<any>> {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly "~adminApp": TAdminApp;
|
|
12
|
+
/** Display label - supports inline translations */
|
|
13
|
+
readonly label?: I18nText;
|
|
14
|
+
/** Description - supports inline translations */
|
|
15
|
+
readonly description?: I18nText;
|
|
16
|
+
readonly icon?: IconComponent | ComponentReference;
|
|
17
|
+
readonly fields?: Record<string, any>;
|
|
18
|
+
readonly form?: any;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { GlobalBuilderState };
|
|
22
|
+
//# sourceMappingURL=global-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-types.d.mts","names":[],"sources":["../../../../src/client/builder/types/global-types.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAsEiB,qCACG,oBAAoB;;wBAGhB;;mBAEL;;yBAEM;kBACP,gBAAgB;oBACd"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import "../../i18n/types.mjs";
|
|
2
|
+
import { DynamicI18nText, IconComponent } from "./common.mjs";
|
|
3
|
+
import { ComponentReference } from "../../../server/augmentation.mjs";
|
|
4
|
+
import "../../../server/index.mjs";
|
|
5
|
+
import { WidgetConfig } from "./widget-types.mjs";
|
|
6
|
+
|
|
7
|
+
//#region src/client/builder/types/ui-config.d.ts
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Dashboard action item - simplified action for dashboard header
|
|
11
|
+
*/
|
|
12
|
+
interface DashboardAction {
|
|
13
|
+
/** Unique action ID */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Action label */
|
|
16
|
+
label: DynamicI18nText;
|
|
17
|
+
/** Action icon */
|
|
18
|
+
icon?: IconComponent | ComponentReference;
|
|
19
|
+
/** Link URL */
|
|
20
|
+
href?: string;
|
|
21
|
+
/** Click handler */
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/** Visual variant */
|
|
24
|
+
variant?: "default" | "primary" | "secondary" | "outline" | "ghost";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Widget card visual variant
|
|
28
|
+
*/
|
|
29
|
+
type WidgetCardVariant = "default" | "compact" | "featured";
|
|
30
|
+
/**
|
|
31
|
+
* Dashboard layout item - can be a widget, section, or tabs
|
|
32
|
+
*/
|
|
33
|
+
type DashboardLayoutItem = WidgetConfig | DashboardSection | DashboardTabs;
|
|
34
|
+
/**
|
|
35
|
+
* Dashboard section - groups widgets together
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* {
|
|
40
|
+
* type: "section",
|
|
41
|
+
* label: { en: "Sales Overview", sk: "Prehľad predaja" },
|
|
42
|
+
* layout: "grid",
|
|
43
|
+
* columns: 3,
|
|
44
|
+
* items: [
|
|
45
|
+
* { type: "stats", ... },
|
|
46
|
+
* { type: "chart", ... },
|
|
47
|
+
* ]
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
interface DashboardSection {
|
|
52
|
+
type: "section";
|
|
53
|
+
/** Section label */
|
|
54
|
+
label?: DynamicI18nText;
|
|
55
|
+
/** Section description */
|
|
56
|
+
description?: DynamicI18nText;
|
|
57
|
+
/** Section icon */
|
|
58
|
+
icon?: IconComponent | ComponentReference;
|
|
59
|
+
/** Wrapper style */
|
|
60
|
+
wrapper?: "flat" | "card" | "collapsible";
|
|
61
|
+
/** Whether collapsed by default (for collapsible wrapper) */
|
|
62
|
+
defaultCollapsed?: boolean;
|
|
63
|
+
/** Layout mode */
|
|
64
|
+
layout?: "grid" | "stack";
|
|
65
|
+
/** Grid columns (for grid layout) */
|
|
66
|
+
columns?: number;
|
|
67
|
+
/** Gap between items */
|
|
68
|
+
gap?: number;
|
|
69
|
+
/** Section items */
|
|
70
|
+
items: DashboardLayoutItem[];
|
|
71
|
+
/** Custom CSS class */
|
|
72
|
+
className?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Dashboard tabs - tabbed widget groups
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* {
|
|
80
|
+
* type: "tabs",
|
|
81
|
+
* tabs: [
|
|
82
|
+
* {
|
|
83
|
+
* id: "overview",
|
|
84
|
+
* label: { en: "Overview", sk: "Prehľad" },
|
|
85
|
+
* items: [...widgets]
|
|
86
|
+
* },
|
|
87
|
+
* {
|
|
88
|
+
* id: "analytics",
|
|
89
|
+
* label: { en: "Analytics", sk: "Analytika" },
|
|
90
|
+
* items: [...widgets]
|
|
91
|
+
* }
|
|
92
|
+
* ]
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
interface DashboardTabs {
|
|
97
|
+
type: "tabs";
|
|
98
|
+
/** Tab configurations */
|
|
99
|
+
tabs: DashboardTabConfig[];
|
|
100
|
+
/** Default active tab ID */
|
|
101
|
+
defaultTab?: string;
|
|
102
|
+
/** Tabs visual variant */
|
|
103
|
+
variant?: "default" | "line" | "pills";
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Single tab configuration
|
|
107
|
+
*/
|
|
108
|
+
interface DashboardTabConfig {
|
|
109
|
+
/** Unique tab ID */
|
|
110
|
+
id: string;
|
|
111
|
+
/** Tab label */
|
|
112
|
+
label: DynamicI18nText;
|
|
113
|
+
/** Tab icon */
|
|
114
|
+
icon?: IconComponent | ComponentReference;
|
|
115
|
+
/** Tab items (widgets or sections) */
|
|
116
|
+
items: DashboardLayoutItem[];
|
|
117
|
+
/** Badge text (e.g., count) */
|
|
118
|
+
badge?: string | number;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Dashboard configuration
|
|
122
|
+
*/
|
|
123
|
+
interface DashboardConfig {
|
|
124
|
+
/** Dashboard layout mode */
|
|
125
|
+
layout?: "grid" | "list";
|
|
126
|
+
/** Dashboard title - supports inline translations */
|
|
127
|
+
title?: DynamicI18nText;
|
|
128
|
+
/** Dashboard description - supports inline translations */
|
|
129
|
+
description?: DynamicI18nText;
|
|
130
|
+
/** Grid columns (default: 4) */
|
|
131
|
+
columns?: number;
|
|
132
|
+
/** Gap between widgets */
|
|
133
|
+
gap?: number;
|
|
134
|
+
/** Dashboard items - widgets, sections, or tabs */
|
|
135
|
+
items?: DashboardLayoutItem[];
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated Use `items` instead
|
|
138
|
+
*/
|
|
139
|
+
widgets?: WidgetConfig[];
|
|
140
|
+
/** Default widget card variant */
|
|
141
|
+
defaultCardVariant?: WidgetCardVariant;
|
|
142
|
+
/** Show refresh button in header */
|
|
143
|
+
showRefresh?: boolean;
|
|
144
|
+
/** Auto-refresh interval in milliseconds */
|
|
145
|
+
refreshInterval?: number;
|
|
146
|
+
/** Enable realtime invalidation for dashboard widgets by default */
|
|
147
|
+
realtime?: boolean;
|
|
148
|
+
/** Header actions (buttons in dashboard header) */
|
|
149
|
+
actions?: DashboardAction[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Locale configuration
|
|
153
|
+
*/
|
|
154
|
+
interface LocaleConfig {
|
|
155
|
+
default?: string;
|
|
156
|
+
supported?: string[];
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { DashboardAction, DashboardConfig, DashboardLayoutItem, DashboardSection, DashboardTabConfig, DashboardTabs, LocaleConfig };
|
|
160
|
+
//# sourceMappingURL=ui-config.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-config.d.mts","names":[],"sources":["../../../../src/client/builder/types/ui-config.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAwCY,UAtBK,eAAA,CAsBY;EAKjB;EACT,EAAA,EAAA,MAAA;EACA;EACA,KAAA,EA1BK,eA0BL;EAAa;EAmBC,IAAA,CAAA,EA3CT,aA2CyB,GA3CT,kBA2CS;EAGxB;EAEM,IAAA,CAAA,EAAA,MAAA;EAEP;EAAgB,OAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAYhB;EAAmB,OAAA,CAAA,EAAA,SAAA,GAAA,SAAA,GAAA,WAAA,GAAA,SAAA,GAAA,OAAA;AA2B3B;AAaA;;;AAMwB,KA5FZ,iBAAA,GA4FY,SAAA,GAAA,SAAA,GAAA,UAAA;;;AAUxB;AAIS,KArGG,mBAAA,GACT,YAoGM,GAnGN,gBAmGM,GAlGN,aAkGM;;;;;;;AA4HT;;;;;;;;;;;UA3MiB,gBAAA;;;UAGR;;gBAEM;;SAEP,gBAAgB;;;;;;;;;;;;SAYhB;;;;;;;;;;;;;;;;;;;;;;;;;;UA2BS,aAAA;;;QAGV;;;;;;;;;UAUU,kBAAA;;;;SAIT;;SAEA,gBAAgB;;SAEhB;;;;;;;UAQS,eAAA;;;;UAIR;;gBAEM;;;;;;UAMN;;;;YAIE;;uBAEW;;;;;;;;YAQX;;;;;UAsGM,YAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ComponentRegistry, FormViewConfig } from "./field-types.mjs";
|
|
2
|
+
import { ListViewConfig } from "./collection-types.mjs";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/client/builder/types/views.d.ts
|
|
6
|
+
type ViewBaseProps = {
|
|
7
|
+
navigate: (path: string) => void;
|
|
8
|
+
basePath?: string;
|
|
9
|
+
config?: Record<string, any>;
|
|
10
|
+
viewConfig?: ListViewConfig | FormViewConfig;
|
|
11
|
+
registry?: ComponentRegistry;
|
|
12
|
+
};
|
|
13
|
+
interface CollectionListViewProps {
|
|
14
|
+
collection: string;
|
|
15
|
+
baseFindOptions?: any;
|
|
16
|
+
realtime?: boolean;
|
|
17
|
+
headerActions?: React$1.ReactNode;
|
|
18
|
+
onRowClick?: (item: any) => void;
|
|
19
|
+
config?: ViewBaseProps["config"];
|
|
20
|
+
viewConfig?: ListViewConfig;
|
|
21
|
+
navigate: ViewBaseProps["navigate"];
|
|
22
|
+
basePath?: ViewBaseProps["basePath"];
|
|
23
|
+
}
|
|
24
|
+
interface CollectionFormViewProps {
|
|
25
|
+
collection: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
headerActions?: React$1.ReactNode;
|
|
29
|
+
onSuccess?: (data?: any) => void;
|
|
30
|
+
onCancel?: () => void;
|
|
31
|
+
onError?: (error: Error) => void;
|
|
32
|
+
defaultValues?: Record<string, any>;
|
|
33
|
+
allCollectionsConfig?: Record<string, any>;
|
|
34
|
+
config?: ViewBaseProps["config"];
|
|
35
|
+
viewConfig?: FormViewConfig;
|
|
36
|
+
navigate: ViewBaseProps["navigate"];
|
|
37
|
+
basePath?: ViewBaseProps["basePath"];
|
|
38
|
+
registry?: ViewBaseProps["registry"];
|
|
39
|
+
children?: React$1.ReactNode;
|
|
40
|
+
}
|
|
41
|
+
interface GlobalFormViewProps {
|
|
42
|
+
global: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
headerActions?: React$1.ReactNode;
|
|
46
|
+
onSuccess?: (data?: any) => void;
|
|
47
|
+
onError?: (error: Error) => void;
|
|
48
|
+
allGlobalsConfig?: Record<string, any>;
|
|
49
|
+
config?: ViewBaseProps["config"];
|
|
50
|
+
viewConfig?: FormViewConfig;
|
|
51
|
+
navigate: ViewBaseProps["navigate"];
|
|
52
|
+
basePath?: ViewBaseProps["basePath"];
|
|
53
|
+
registry?: ViewBaseProps["registry"];
|
|
54
|
+
children?: React$1.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
interface DefaultViewsConfig {
|
|
57
|
+
dashboard?: {
|
|
58
|
+
component?: React$1.ComponentType;
|
|
59
|
+
header?: {
|
|
60
|
+
title?: string;
|
|
61
|
+
showDate?: boolean;
|
|
62
|
+
};
|
|
63
|
+
welcomeCard?: {
|
|
64
|
+
title?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
collectionList?: {
|
|
69
|
+
component?: React$1.ComponentType<CollectionListViewProps>;
|
|
70
|
+
showSearch?: boolean;
|
|
71
|
+
showFilters?: boolean;
|
|
72
|
+
showToolbar?: boolean;
|
|
73
|
+
realtime?: boolean;
|
|
74
|
+
emptyState?: React$1.ComponentType;
|
|
75
|
+
};
|
|
76
|
+
collectionForm?: {
|
|
77
|
+
component?: React$1.ComponentType<CollectionFormViewProps>;
|
|
78
|
+
showMeta?: boolean;
|
|
79
|
+
showStatus?: boolean;
|
|
80
|
+
sidebarFields?: string[];
|
|
81
|
+
};
|
|
82
|
+
globalForm?: {
|
|
83
|
+
component?: React$1.ComponentType<GlobalFormViewProps>;
|
|
84
|
+
layout?: "single" | "sidebar";
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { DefaultViewsConfig };
|
|
89
|
+
//# sourceMappingURL=views.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.d.mts","names":[],"sources":["../../../../src/client/builder/types/views.ts"],"sourcesContent":[],"mappings":";;;;;KAIK,aAAA;;EAAA,QAAA,CAAA,EAAA,MAAa;EAGR,MAAA,CAAA,EAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA;EACI,UAAA,CAAA,EAAA,cAAA,GAAiB,cAAjB;EAAiB,QAAA,CAAA,EACnB,iBADmB;CACnB;AAAiB,UAGZ,uBAAA,CAHY;EAGZ,UAAA,EAAA,MAAA;EAIA,eAAM,CAAA,EAAA,GAAA;EAEb,QAAA,CAAA,EAAA,OAAA;EACI,aAAA,CAAA,EAHG,OAAA,CAAM,SAGT;EACH,UAAA,CAAA,EAAA,CAAA,IAAA,EAAA,GAAA,EAAA,GAAA,IAAA;EACC,MAAA,CAAA,EAHF,aAGE,CAAA,QAAA,CAAA;EAAa,UAAA,CAAA,EAFX,cAEW;EAGR,QAAA,EAJN,aAIM,CAAA,UAAuB,CAAA;EAIvB,QAAM,CAAA,EAPX,aAOW,CAAA,UAAA,CAAA;;AAIN,UARA,uBAAA,CAQA;EACO,UAAA,EAAA,MAAA;EACd,EAAA,CAAA,EAAA,MAAA;EACI,KAAA,CAAA,EAAA,MAAA;EACH,aAAA,CAAA,EARM,OAAA,CAAM,SAQZ;EACC,SAAA,CAAA,EAAA,CAAA,IAAA,CAAA,EAAA,GAAA,EAAA,GAAA,IAAA;EACA,QAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EACA,OAAM,CAAA,EAAA,CAAA,KAAA,EARC,KAQD,EAAA,GAAA,IAAA;EAAS,aAAA,CAAA,EAPV,MAOU,CAAA,MAAA,EAAA,GAAA,CAAA;EAGV,oBAAA,CAAA,EATO,MASY,CAAA,MAAA,EAAA,GAAA,CAAA;EAInB,MAAM,CAAA,EAZb,aAYa,CAAA,QAAA,CAAA;EAEJ,UAAA,CAAA,EAbL,cAaK;EACC,QAAA,EAbT,aAaS,CAAA,UAAA,CAAA;EACV,QAAA,CAAA,EAbE,aAaF,CAAA,UAAA,CAAA;EACI,QAAA,CAAA,EAbF,aAaE,CAAA,UAAA,CAAA;EACH,QAAA,CAAA,EAbC,OAAA,CAAM,SAaP;;AAEC,UAZK,mBAAA,CAYL;EACA,MAAM,EAAA,MAAA;EAAS,KAAA,CAAA,EAAA,MAAA;EAGV,WAAA,CAAA,EAAA,MAAA;EAEH,aAAM,CAAA,EAdH,OAAA,CAAM,SAcH;EAYc,SAAA,CAAA,EAAA,CAAA,IAAA,CAAA,EAAA,GAAA,EAAA,GAAA,IAAA;EAApB,OAAM,CAAA,EAAA,CAAA,KAAA,EAxBD,KAwBC,EAAA,GAAA,IAAA;EAKL,gBAAM,CAAA,EA5BD,MA4BC,CAAA,MAAA,EAAA,GAAA,CAAA;EAIa,MAAA,CAAA,EA/BxB,aA+BwB,CAAA,QAAA,CAAA;EAApB,UAAM,CAAA,EA9BN,cA8BM;EAOc,QAAA,EApCvB,aAoCuB,CAAA,UAAA,CAAA;EAApB,QAAM,CAAA,EAnCR,aAmCQ,CAAA,UAAA,CAAA;EAAa,QAAA,CAAA,EAlCrB,aAkCqB,CAAA,UAAA,CAAA;aAjCrB,OAAA,CAAM;;UAGD,kBAAA;;gBAEH,OAAA,CAAM;;;;;;;;;;;gBAYN,OAAA,CAAM,cAAc;;;;;iBAKnB,OAAA,CAAM;;;gBAIP,OAAA,CAAM,cAAc;;;;;;gBAOpB,OAAA,CAAM,cAAc"}
|