@questpie/admin 1.1.0 → 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-B7r47hEd.d.mts +0 -13403
- package/dist/client-B7r47hEd.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-BYyqkWtn.d.mts +0 -2753
- package/dist/index-BYyqkWtn.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,327 @@
|
|
|
1
|
+
import { useResolveText } from "../../../i18n/hooks.mjs";
|
|
2
|
+
import { cn } from "../../../lib/utils.mjs";
|
|
3
|
+
import { useAdminConfig } from "../../../hooks/use-admin-config.mjs";
|
|
4
|
+
import { Badge } from "../../../components/ui/badge.mjs";
|
|
5
|
+
import { isBlockContent } from "../../../blocks/types.mjs";
|
|
6
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../../../components/ui/tooltip.mjs";
|
|
7
|
+
import { formatFieldLabel, formatPrimitiveValue, getFieldLabel, getItemLabel, summarizeValue } from "./shared/cell-helpers.mjs";
|
|
8
|
+
import "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/client/views/collection/cells/complex-cells.tsx
|
|
12
|
+
/**
|
|
13
|
+
* JSON cell - compact JSON display
|
|
14
|
+
*/
|
|
15
|
+
function JsonCell({ value }) {
|
|
16
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
17
|
+
className: "text-muted-foreground",
|
|
18
|
+
children: "-"
|
|
19
|
+
});
|
|
20
|
+
const json = typeof value === "string" ? value : JSON.stringify(value, null, 0);
|
|
21
|
+
return /* @__PURE__ */ jsx("span", {
|
|
22
|
+
className: "font-mono text-xs text-muted-foreground",
|
|
23
|
+
title: json,
|
|
24
|
+
children: json.length > 50 ? `${json.slice(0, 50)}...` : json
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Object cell - displays nested object with hover tooltip preview
|
|
29
|
+
*/
|
|
30
|
+
function ObjectCell({ value, fieldDef }) {
|
|
31
|
+
const resolveText = useResolveText();
|
|
32
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
33
|
+
className: "text-muted-foreground",
|
|
34
|
+
children: "-"
|
|
35
|
+
});
|
|
36
|
+
if (typeof value !== "object" || Array.isArray(value)) return /* @__PURE__ */ jsx("span", { children: String(value) });
|
|
37
|
+
const obj = value;
|
|
38
|
+
const entries = Object.entries(obj);
|
|
39
|
+
if (entries.length === 0) return /* @__PURE__ */ jsx("span", {
|
|
40
|
+
className: "text-muted-foreground",
|
|
41
|
+
children: "-"
|
|
42
|
+
});
|
|
43
|
+
const nestedFieldsOption = fieldDef?.["~options"]?.fields;
|
|
44
|
+
const nestedFields = typeof nestedFieldsOption === "function" ? void 0 : nestedFieldsOption;
|
|
45
|
+
const previewParts = entries.slice(0, 2).map(([key, val]) => {
|
|
46
|
+
return `${resolveText(getFieldLabel(key, nestedFields?.[key]))}: ${summarizeValue(val)}`;
|
|
47
|
+
});
|
|
48
|
+
const hasMore = entries.length > 2;
|
|
49
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { children: /* @__PURE__ */ jsxs("span", {
|
|
50
|
+
className: cn("inline-flex items-center gap-1 text-xs", "text-muted-foreground hover:text-foreground", "transition-colors cursor-default max-w-[220px]"),
|
|
51
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: "truncate",
|
|
53
|
+
children: previewParts.join(", ")
|
|
54
|
+
}), hasMore && /* @__PURE__ */ jsxs("span", {
|
|
55
|
+
className: "text-muted-foreground/50 shrink-0",
|
|
56
|
+
children: ["+", entries.length - 2]
|
|
57
|
+
})]
|
|
58
|
+
}) }), /* @__PURE__ */ jsxs(TooltipContent, {
|
|
59
|
+
side: "bottom",
|
|
60
|
+
align: "start",
|
|
61
|
+
className: "w-72 p-0 ",
|
|
62
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: "max-h-[300px] overflow-y-auto p-3 space-y-0.5",
|
|
64
|
+
children: entries.slice(0, 12).map(([key, val]) => {
|
|
65
|
+
const nestedDef = nestedFields?.[key];
|
|
66
|
+
const label = resolveText(getFieldLabel(key, nestedDef));
|
|
67
|
+
if (val && typeof val === "object" && !Array.isArray(val)) {
|
|
68
|
+
const nestedObj = val;
|
|
69
|
+
const nestedEntries = Object.entries(nestedObj).slice(0, 4);
|
|
70
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
71
|
+
className: "py-1",
|
|
72
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: "flex items-center gap-1.5 text-xs font-medium",
|
|
74
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-1 rounded-full bg-foreground/60" }), label]
|
|
75
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
76
|
+
className: "ml-2.5 pl-2 border-l border-border/50 mt-0.5 space-y-0.5",
|
|
77
|
+
children: nestedEntries.map(([k, v]) => /* @__PURE__ */ jsxs("div", {
|
|
78
|
+
className: "flex justify-between gap-2 text-[11px]",
|
|
79
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: "text-muted-foreground",
|
|
81
|
+
children: formatFieldLabel(k)
|
|
82
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
83
|
+
className: "truncate max-w-[120px]",
|
|
84
|
+
children: formatPrimitiveValue(v)
|
|
85
|
+
})]
|
|
86
|
+
}, k))
|
|
87
|
+
})]
|
|
88
|
+
}, key);
|
|
89
|
+
}
|
|
90
|
+
if (Array.isArray(val)) return /* @__PURE__ */ jsxs("div", {
|
|
91
|
+
className: "flex items-center justify-between gap-2 text-xs py-0.5",
|
|
92
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
93
|
+
className: "flex items-center gap-1.5",
|
|
94
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-1 rounded-full bg-foreground/60" }), /* @__PURE__ */ jsx("span", {
|
|
95
|
+
className: "text-muted-foreground",
|
|
96
|
+
children: label
|
|
97
|
+
})]
|
|
98
|
+
}), /* @__PURE__ */ jsx(Badge, {
|
|
99
|
+
variant: "secondary",
|
|
100
|
+
className: "h-4 px-1 text-[10px]",
|
|
101
|
+
children: val.length
|
|
102
|
+
})]
|
|
103
|
+
}, key);
|
|
104
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
105
|
+
className: "flex items-center justify-between gap-2 text-xs py-0.5",
|
|
106
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
107
|
+
className: "flex items-center gap-1.5",
|
|
108
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-1 rounded-full bg-foreground/60" }), /* @__PURE__ */ jsx("span", {
|
|
109
|
+
className: "text-muted-foreground",
|
|
110
|
+
children: label
|
|
111
|
+
})]
|
|
112
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
113
|
+
className: "font-medium truncate max-w-[140px]",
|
|
114
|
+
children: formatPrimitiveValue(val)
|
|
115
|
+
})]
|
|
116
|
+
}, key);
|
|
117
|
+
})
|
|
118
|
+
}), entries.length > 12 && /* @__PURE__ */ jsxs("div", {
|
|
119
|
+
className: "text-[11px] text-muted-foreground text-center py-1.5 border-t border-border/50",
|
|
120
|
+
children: [
|
|
121
|
+
"+",
|
|
122
|
+
entries.length - 12,
|
|
123
|
+
" more"
|
|
124
|
+
]
|
|
125
|
+
})]
|
|
126
|
+
})] });
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Array cell - displays array items with hover tooltip preview
|
|
130
|
+
*/
|
|
131
|
+
function ArrayCell({ value, fieldDef }) {
|
|
132
|
+
const resolveText = useResolveText();
|
|
133
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
134
|
+
className: "text-muted-foreground",
|
|
135
|
+
children: "-"
|
|
136
|
+
});
|
|
137
|
+
if (!Array.isArray(value)) return /* @__PURE__ */ jsx("span", { children: String(value) });
|
|
138
|
+
if (value.length === 0) return /* @__PURE__ */ jsx("span", {
|
|
139
|
+
className: "text-muted-foreground",
|
|
140
|
+
children: "-"
|
|
141
|
+
});
|
|
142
|
+
const fieldOptions = fieldDef?.["~options"] ?? {};
|
|
143
|
+
const itemLabelFn = fieldOptions.itemLabel;
|
|
144
|
+
const itemFieldsOption = fieldOptions.item;
|
|
145
|
+
const itemFields = typeof itemFieldsOption === "function" ? void 0 : itemFieldsOption;
|
|
146
|
+
const previewLabels = value.slice(0, 3).map((item, idx) => getItemLabel(item, idx, itemLabelFn));
|
|
147
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { render: /* @__PURE__ */ jsxs("span", {
|
|
148
|
+
className: cn("inline-flex items-center gap-1.5 text-xs", "text-muted-foreground hover:text-foreground", "transition-colors cursor-default max-w-[180px]"),
|
|
149
|
+
children: [/* @__PURE__ */ jsx(Badge, {
|
|
150
|
+
variant: "secondary",
|
|
151
|
+
className: "h-4 min-w-4 px-1 text-[10px] shrink-0",
|
|
152
|
+
children: value.length
|
|
153
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
154
|
+
className: "truncate",
|
|
155
|
+
children: [previewLabels[0], value.length > 1 && ` +${value.length - 1}`]
|
|
156
|
+
})]
|
|
157
|
+
}) }), /* @__PURE__ */ jsxs(TooltipContent, {
|
|
158
|
+
side: "bottom",
|
|
159
|
+
align: "start",
|
|
160
|
+
className: "p-0 w-64 max-w-[90vw] bg-popover/95 backdrop-blur-xl border-border",
|
|
161
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
162
|
+
className: "max-h-[280px] overflow-y-auto p-2 space-y-0.5",
|
|
163
|
+
children: value.slice(0, 10).map((item, idx) => {
|
|
164
|
+
const label = getItemLabel(item, idx, itemLabelFn);
|
|
165
|
+
if (typeof item === "object" && item !== null) {
|
|
166
|
+
const obj = item;
|
|
167
|
+
const details = Object.entries(obj).filter(([k]) => ![
|
|
168
|
+
"id",
|
|
169
|
+
"_id",
|
|
170
|
+
"name",
|
|
171
|
+
"title",
|
|
172
|
+
"label",
|
|
173
|
+
"platform",
|
|
174
|
+
"type"
|
|
175
|
+
].includes(k)).slice(0, 3);
|
|
176
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
177
|
+
className: "py-1",
|
|
178
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
179
|
+
className: "flex items-center gap-1.5 text-xs font-medium",
|
|
180
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-1 rounded-full bg-foreground/60" }), label]
|
|
181
|
+
}), details.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
182
|
+
className: "ml-2.5 pl-2 border-l border-border/50 mt-0.5 space-y-0.5",
|
|
183
|
+
children: details.map(([k, v]) => {
|
|
184
|
+
const itemFieldDef = itemFields?.[k];
|
|
185
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
186
|
+
className: "flex justify-between gap-2 text-[11px]",
|
|
187
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
188
|
+
className: "text-muted-foreground",
|
|
189
|
+
children: resolveText(getFieldLabel(k, itemFieldDef))
|
|
190
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
191
|
+
className: "truncate max-w-[100px]",
|
|
192
|
+
children: formatPrimitiveValue(v)
|
|
193
|
+
})]
|
|
194
|
+
}, k);
|
|
195
|
+
})
|
|
196
|
+
})]
|
|
197
|
+
}, idx);
|
|
198
|
+
}
|
|
199
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
200
|
+
className: "flex items-center gap-1.5 text-xs py-0.5",
|
|
201
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-1 rounded-full bg-foreground/60" }), formatPrimitiveValue(item)]
|
|
202
|
+
}, idx);
|
|
203
|
+
})
|
|
204
|
+
}), value.length > 10 && /* @__PURE__ */ jsxs("div", {
|
|
205
|
+
className: "text-[11px] text-muted-foreground text-center py-1.5 border-t border-border/50",
|
|
206
|
+
children: [
|
|
207
|
+
"+",
|
|
208
|
+
value.length - 10,
|
|
209
|
+
" more"
|
|
210
|
+
]
|
|
211
|
+
})]
|
|
212
|
+
})] });
|
|
213
|
+
}
|
|
214
|
+
function coerceBlockContent(value) {
|
|
215
|
+
if (isBlockContent(value)) return value;
|
|
216
|
+
if (value && typeof value === "object" && "$i18n" in value && isBlockContent(value.$i18n)) return value.$i18n ?? null;
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
function formatBlockType(type) {
|
|
220
|
+
return type.replace(/[-_]/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\b\w/g, (char) => char.toUpperCase()).trim();
|
|
221
|
+
}
|
|
222
|
+
function getBlockLabel(type, blockDef, resolveText) {
|
|
223
|
+
if (!blockDef) return formatBlockType(type);
|
|
224
|
+
const fallback = blockDef.name || formatBlockType(type);
|
|
225
|
+
return resolveText(blockDef.admin?.label, fallback) || fallback;
|
|
226
|
+
}
|
|
227
|
+
function collectBlockStats(tree) {
|
|
228
|
+
const counts = /* @__PURE__ */ new Map();
|
|
229
|
+
let total = 0;
|
|
230
|
+
const visit = (nodes) => {
|
|
231
|
+
for (const node of nodes) {
|
|
232
|
+
total += 1;
|
|
233
|
+
counts.set(node.type, (counts.get(node.type) ?? 0) + 1);
|
|
234
|
+
if (node.children.length) visit(node.children);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
visit(tree);
|
|
238
|
+
return {
|
|
239
|
+
total,
|
|
240
|
+
counts
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Blocks cell - summarizes block tree content with type counts
|
|
245
|
+
*/
|
|
246
|
+
function BlocksCell({ value }) {
|
|
247
|
+
const resolveText = useResolveText();
|
|
248
|
+
const { data: adminConfig } = useAdminConfig();
|
|
249
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
250
|
+
className: "text-muted-foreground",
|
|
251
|
+
children: "-"
|
|
252
|
+
});
|
|
253
|
+
const content = coerceBlockContent(value);
|
|
254
|
+
if (!content) return /* @__PURE__ */ jsx(JsonCell, { value });
|
|
255
|
+
if (!content._tree.length) return /* @__PURE__ */ jsx("span", {
|
|
256
|
+
className: "text-muted-foreground",
|
|
257
|
+
children: "-"
|
|
258
|
+
});
|
|
259
|
+
const blockDefs = adminConfig?.blocks ?? {};
|
|
260
|
+
const { total, counts } = collectBlockStats(content._tree);
|
|
261
|
+
if (total === 0) return /* @__PURE__ */ jsx("span", {
|
|
262
|
+
className: "text-muted-foreground",
|
|
263
|
+
children: "-"
|
|
264
|
+
});
|
|
265
|
+
const entries = Array.from(counts.entries()).map(([type, count]) => ({
|
|
266
|
+
type,
|
|
267
|
+
count,
|
|
268
|
+
label: getBlockLabel(type, blockDefs?.[type], resolveText)
|
|
269
|
+
}));
|
|
270
|
+
entries.sort((a, b) => {
|
|
271
|
+
if (b.count !== a.count) return b.count - a.count;
|
|
272
|
+
return a.label.localeCompare(b.label);
|
|
273
|
+
});
|
|
274
|
+
const preview = entries.slice(0, 2).map((entry) => entry.count > 1 ? `${entry.label} x${entry.count}` : entry.label);
|
|
275
|
+
const extraTypes = entries.length - preview.length;
|
|
276
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { render: /* @__PURE__ */ jsxs("span", {
|
|
277
|
+
className: cn("inline-flex items-center gap-1.5 text-xs", "text-muted-foreground hover:text-foreground", "transition-colors cursor-default max-w-[220px]"),
|
|
278
|
+
children: [/* @__PURE__ */ jsx(Badge, {
|
|
279
|
+
variant: "secondary",
|
|
280
|
+
className: "h-4 min-w-4 px-1 text-[10px] shrink-0",
|
|
281
|
+
children: total
|
|
282
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
283
|
+
className: "truncate",
|
|
284
|
+
children: [preview.join(", "), extraTypes > 0 && ` +${extraTypes}`]
|
|
285
|
+
})]
|
|
286
|
+
}) }), /* @__PURE__ */ jsxs(TooltipContent, {
|
|
287
|
+
side: "bottom",
|
|
288
|
+
align: "start",
|
|
289
|
+
className: "p-0 w-64 max-w-[90vw] bg-popover/95 backdrop-blur-xl border-border",
|
|
290
|
+
children: [
|
|
291
|
+
/* @__PURE__ */ jsxs("div", {
|
|
292
|
+
className: "flex items-center justify-between px-2 py-1.5 text-[11px] text-muted-foreground border-b border-border/50",
|
|
293
|
+
children: [/* @__PURE__ */ jsx("span", { children: "Blocks" }), /* @__PURE__ */ jsx(Badge, {
|
|
294
|
+
variant: "secondary",
|
|
295
|
+
className: "h-4 px-1 text-[10px]",
|
|
296
|
+
children: total
|
|
297
|
+
})]
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ jsx("div", {
|
|
300
|
+
className: "max-h-[280px] overflow-y-auto p-2 space-y-0.5",
|
|
301
|
+
children: entries.slice(0, 10).map((entry) => /* @__PURE__ */ jsxs("div", {
|
|
302
|
+
className: "flex items-center justify-between gap-2 text-xs py-0.5",
|
|
303
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
304
|
+
className: "truncate",
|
|
305
|
+
children: entry.label
|
|
306
|
+
}), /* @__PURE__ */ jsx(Badge, {
|
|
307
|
+
variant: "secondary",
|
|
308
|
+
className: "h-4 px-1 text-[10px]",
|
|
309
|
+
children: entry.count
|
|
310
|
+
})]
|
|
311
|
+
}, entry.type))
|
|
312
|
+
}),
|
|
313
|
+
entries.length > 10 && /* @__PURE__ */ jsxs("div", {
|
|
314
|
+
className: "text-[11px] text-muted-foreground text-center py-1.5 border-t border-border/50",
|
|
315
|
+
children: [
|
|
316
|
+
"+",
|
|
317
|
+
entries.length - 10,
|
|
318
|
+
" more"
|
|
319
|
+
]
|
|
320
|
+
})
|
|
321
|
+
]
|
|
322
|
+
})] });
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
//#endregion
|
|
326
|
+
export { ArrayCell, BlocksCell, JsonCell, ObjectCell };
|
|
327
|
+
//# sourceMappingURL=complex-cells.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complex-cells.mjs","names":["entries: BlockTypeStat[]"],"sources":["../../../../../src/client/views/collection/cells/complex-cells.tsx"],"sourcesContent":["/**\n * Complex Cell Components\n *\n * Cells for displaying complex data structures:\n * - JsonCell - simple JSON display\n * - ObjectCell - nested object with hover preview\n * - ArrayCell - array items with hover preview\n * - BlocksCell - block tree summary with tooltip\n */\n\nimport * as React from \"react\";\nimport type { BlockSchema } from \"#questpie/admin/server\";\nimport type { BlockContent, BlockNode } from \"../../../blocks/types\";\nimport { isBlockContent } from \"../../../blocks/types\";\nimport type { FieldDefinition } from \"../../../builder/field/field\";\nimport { Badge } from \"../../../components/ui/badge\";\nimport {\n\tTooltip,\n\tTooltipContent,\n\tTooltipTrigger,\n} from \"../../../components/ui/tooltip\";\nimport { useAdminConfig } from \"../../../hooks/use-admin-config\";\nimport { useResolveText } from \"../../../i18n/hooks\";\nimport { cn } from \"../../../lib/utils\";\nimport { selectAdmin, useAdminStore } from \"../../../runtime\";\nimport {\n\tformatFieldLabel,\n\tformatPrimitiveValue,\n\tgetFieldLabel,\n\tgetItemLabel,\n\tsummarizeValue,\n} from \"./shared/cell-helpers\";\n\n// ============================================================================\n// JSON Cell\n// ============================================================================\n\n/**\n * JSON cell - compact JSON display\n */\nexport function JsonCell({ value }: { value: unknown }) {\n\tif (value === null || value === undefined) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\tconst json =\n\t\ttypeof value === \"string\" ? value : JSON.stringify(value, null, 0);\n\tconst truncated = json.length > 50 ? `${json.slice(0, 50)}...` : json;\n\treturn (\n\t\t<span className=\"font-mono text-xs text-muted-foreground\" title={json}>\n\t\t\t{truncated}\n\t\t</span>\n\t);\n}\n\n// ============================================================================\n// Object Cell\n// ============================================================================\n\n/**\n * Object cell - displays nested object with hover tooltip preview\n */\nexport function ObjectCell({\n\tvalue,\n\tfieldDef,\n}: {\n\tvalue: unknown;\n\trow?: unknown;\n\tfieldDef?: FieldDefinition;\n}) {\n\tconst resolveText = useResolveText();\n\tif (value === null || value === undefined) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\tif (typeof value !== \"object\" || Array.isArray(value)) {\n\t\treturn <span>{String(value)}</span>;\n\t}\n\n\tconst obj = value as Record<string, unknown>;\n\tconst entries = Object.entries(obj);\n\n\tif (entries.length === 0) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\t// Get nested field definitions for labels\n\tconst nestedFieldsOption = fieldDef?.[\"~options\"]?.fields;\n\tconst nestedFields =\n\t\ttypeof nestedFieldsOption === \"function\" ? undefined : nestedFieldsOption;\n\n\t// Build inline preview: \"Label: value, Label: value +N\"\n\tconst previewParts = entries.slice(0, 2).map(([key, val]) => {\n\t\tconst label = resolveText(getFieldLabel(key, nestedFields?.[key]));\n\t\treturn `${label}: ${summarizeValue(val)}`;\n\t});\n\tconst hasMore = entries.length > 2;\n\n\treturn (\n\t\t<Tooltip>\n\t\t\t<TooltipTrigger>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"inline-flex items-center gap-1 text-xs\",\n\t\t\t\t\t\t\"text-muted-foreground hover:text-foreground\",\n\t\t\t\t\t\t\"transition-colors cursor-default max-w-[220px]\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<span className=\"truncate\">{previewParts.join(\", \")}</span>\n\t\t\t\t\t{hasMore && (\n\t\t\t\t\t\t<span className=\"text-muted-foreground/50 shrink-0\">\n\t\t\t\t\t\t\t+{entries.length - 2}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</TooltipTrigger>\n\t\t\t<TooltipContent side=\"bottom\" align=\"start\" className={\"w-72 p-0 \"}>\n\t\t\t\t<div className=\"max-h-[300px] overflow-y-auto p-3 space-y-0.5\">\n\t\t\t\t\t{entries.slice(0, 12).map(([key, val]) => {\n\t\t\t\t\t\tconst nestedDef = nestedFields?.[key];\n\t\t\t\t\t\tconst label = resolveText(getFieldLabel(key, nestedDef));\n\n\t\t\t\t\t\t// Nested objects - show with bullet and sub-items\n\t\t\t\t\t\tif (val && typeof val === \"object\" && !Array.isArray(val)) {\n\t\t\t\t\t\t\tconst nestedObj = val as Record<string, unknown>;\n\t\t\t\t\t\t\tconst nestedEntries = Object.entries(nestedObj).slice(0, 4);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<div key={key} className=\"py-1\">\n\t\t\t\t\t\t\t\t\t<div className=\"flex items-center gap-1.5 text-xs font-medium\">\n\t\t\t\t\t\t\t\t\t\t<span className=\"size-1 rounded-full bg-foreground/60\" />\n\t\t\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div className=\"ml-2.5 pl-2 border-l border-border/50 mt-0.5 space-y-0.5\">\n\t\t\t\t\t\t\t\t\t\t{nestedEntries.map(([k, v]) => (\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tkey={k}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"flex justify-between gap-2 text-[11px]\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{formatFieldLabel(k)}\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span className=\"truncate max-w-[120px]\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{formatPrimitiveValue(v)}\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Arrays - bullet with count\n\t\t\t\t\t\tif (Array.isArray(val)) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\tclassName=\"flex items-center justify-between gap-2 text-xs py-0.5\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span className=\"flex items-center gap-1.5\">\n\t\t\t\t\t\t\t\t\t\t<span className=\"size-1 rounded-full bg-foreground/60\" />\n\t\t\t\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">{label}</span>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\" className=\"h-4 px-1 text-[10px]\">\n\t\t\t\t\t\t\t\t\t\t{val.length}\n\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Primitives - bullet with value\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\tclassName=\"flex items-center justify-between gap-2 text-xs py-0.5\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span className=\"flex items-center gap-1.5\">\n\t\t\t\t\t\t\t\t\t<span className=\"size-1 rounded-full bg-foreground/60\" />\n\t\t\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">{label}</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span className=\"font-medium truncate max-w-[140px]\">\n\t\t\t\t\t\t\t\t\t{formatPrimitiveValue(val)}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t\t{entries.length > 12 && (\n\t\t\t\t\t<div className=\"text-[11px] text-muted-foreground text-center py-1.5 border-t border-border/50\">\n\t\t\t\t\t\t+{entries.length - 12} more\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</TooltipContent>\n\t\t</Tooltip>\n\t);\n}\n\n// ============================================================================\n// Array Cell\n// ============================================================================\n\n/**\n * Array cell - displays array items with hover tooltip preview\n */\nexport function ArrayCell({\n\tvalue,\n\tfieldDef,\n}: {\n\tvalue: unknown;\n\trow?: unknown;\n\tfieldDef?: FieldDefinition;\n}) {\n\tconst resolveText = useResolveText();\n\tif (value === null || value === undefined) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\tif (!Array.isArray(value)) {\n\t\treturn <span>{String(value)}</span>;\n\t}\n\n\tif (value.length === 0) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\tconst fieldOptions = fieldDef?.[\"~options\"] ?? {};\n\tconst itemLabelFn = fieldOptions.itemLabel as\n\t\t| ((item: unknown) => string)\n\t\t| undefined;\n\tconst itemFieldsOption = fieldOptions.item;\n\tconst itemFields =\n\t\ttypeof itemFieldsOption === \"function\" ? undefined : itemFieldsOption;\n\n\t// Get preview labels for first few items\n\tconst previewLabels = value\n\t\t.slice(0, 3)\n\t\t.map((item, idx) => getItemLabel(item, idx, itemLabelFn));\n\n\treturn (\n\t\t<Tooltip>\n\t\t\t<TooltipTrigger\n\t\t\t\trender={\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\"inline-flex items-center gap-1.5 text-xs\",\n\t\t\t\t\t\t\t\"text-muted-foreground hover:text-foreground\",\n\t\t\t\t\t\t\t\"transition-colors cursor-default max-w-[180px]\",\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Badge\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tclassName=\"h-4 min-w-4 px-1 text-[10px] shrink-0\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{value.length}\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t<span className=\"truncate\">\n\t\t\t\t\t\t\t{previewLabels[0]}\n\t\t\t\t\t\t\t{value.length > 1 && ` +${value.length - 1}`}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<TooltipContent\n\t\t\t\tside=\"bottom\"\n\t\t\t\talign=\"start\"\n\t\t\t\tclassName=\"p-0 w-64 max-w-[90vw] bg-popover/95 backdrop-blur-xl border-border\"\n\t\t\t>\n\t\t\t\t<div className=\"max-h-[280px] overflow-y-auto p-2 space-y-0.5\">\n\t\t\t\t\t{value.slice(0, 10).map((item, idx) => {\n\t\t\t\t\t\tconst label = getItemLabel(item, idx, itemLabelFn);\n\n\t\t\t\t\t\tif (typeof item === \"object\" && item !== null) {\n\t\t\t\t\t\t\tconst obj = item as Record<string, unknown>;\n\t\t\t\t\t\t\tconst details = Object.entries(obj)\n\t\t\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t\t\t([k]) =>\n\t\t\t\t\t\t\t\t\t\t![\n\t\t\t\t\t\t\t\t\t\t\t\"id\",\n\t\t\t\t\t\t\t\t\t\t\t\"_id\",\n\t\t\t\t\t\t\t\t\t\t\t\"name\",\n\t\t\t\t\t\t\t\t\t\t\t\"title\",\n\t\t\t\t\t\t\t\t\t\t\t\"label\",\n\t\t\t\t\t\t\t\t\t\t\t\"platform\",\n\t\t\t\t\t\t\t\t\t\t\t\"type\",\n\t\t\t\t\t\t\t\t\t\t].includes(k),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t.slice(0, 3);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t// biome-ignore lint/suspicious/noArrayIndexKey: stable array from backend\n\t\t\t\t\t\t\t\t<div key={idx} className=\"py-1\">\n\t\t\t\t\t\t\t\t\t<div className=\"flex items-center gap-1.5 text-xs font-medium\">\n\t\t\t\t\t\t\t\t\t\t<span className=\"size-1 rounded-full bg-foreground/60\" />\n\t\t\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t{details.length > 0 && (\n\t\t\t\t\t\t\t\t\t\t<div className=\"ml-2.5 pl-2 border-l border-border/50 mt-0.5 space-y-0.5\">\n\t\t\t\t\t\t\t\t\t\t\t{details.map(([k, v]) => {\n\t\t\t\t\t\t\t\t\t\t\t\tconst itemFieldDef = itemFields?.[k];\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tkey={k}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"flex justify-between gap-2 text-[11px]\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{resolveText(getFieldLabel(k, itemFieldDef))}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span className=\"truncate max-w-[100px]\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{formatPrimitiveValue(v)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t// biome-ignore lint/suspicious/noArrayIndexKey: stable array from backend\n\t\t\t\t\t\t\t\tkey={idx}\n\t\t\t\t\t\t\t\tclassName=\"flex items-center gap-1.5 text-xs py-0.5\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span className=\"size-1 rounded-full bg-foreground/60\" />\n\t\t\t\t\t\t\t\t{formatPrimitiveValue(item)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t\t{value.length > 10 && (\n\t\t\t\t\t<div className=\"text-[11px] text-muted-foreground text-center py-1.5 border-t border-border/50\">\n\t\t\t\t\t\t+{value.length - 10} more\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</TooltipContent>\n\t\t</Tooltip>\n\t);\n}\n\n// ============================================================================\n// Blocks Cell\n// ============================================================================\n\ntype BlockTypeStat = {\n\ttype: string;\n\tlabel: string;\n\tcount: number;\n};\n\nfunction coerceBlockContent(value: unknown): BlockContent | null {\n\tif (isBlockContent(value)) return value;\n\tif (\n\t\tvalue &&\n\t\ttypeof value === \"object\" &&\n\t\t\"$i18n\" in value &&\n\t\tisBlockContent((value as { $i18n?: unknown }).$i18n)\n\t) {\n\t\treturn (value as { $i18n?: BlockContent }).$i18n ?? null;\n\t}\n\treturn null;\n}\n\nfunction formatBlockType(type: string): string {\n\treturn type\n\t\t.replace(/[-_]/g, \" \")\n\t\t.replace(/([a-z])([A-Z])/g, \"$1 $2\")\n\t\t.replace(/\\b\\w/g, (char) => char.toUpperCase())\n\t\t.trim();\n}\n\nfunction getBlockLabel(\n\ttype: string,\n\tblockDef: BlockSchema | undefined,\n\tresolveText: ReturnType<typeof useResolveText>,\n): string {\n\tif (!blockDef) return formatBlockType(type);\n\tconst fallback = blockDef.name || formatBlockType(type);\n\treturn resolveText(blockDef.admin?.label, fallback) || fallback;\n}\n\nfunction collectBlockStats(tree: BlockNode[]): {\n\ttotal: number;\n\tcounts: Map<string, number>;\n} {\n\tconst counts = new Map<string, number>();\n\tlet total = 0;\n\n\tconst visit = (nodes: BlockNode[]) => {\n\t\tfor (const node of nodes) {\n\t\t\ttotal += 1;\n\t\t\tcounts.set(node.type, (counts.get(node.type) ?? 0) + 1);\n\t\t\tif (node.children.length) {\n\t\t\t\tvisit(node.children);\n\t\t\t}\n\t\t}\n\t};\n\n\tvisit(tree);\n\treturn { total, counts };\n}\n\n/**\n * Blocks cell - summarizes block tree content with type counts\n */\nexport function BlocksCell({ value }: { value: unknown }) {\n\tconst resolveText = useResolveText();\n\tconst { data: adminConfig } = useAdminConfig();\n\n\tif (value === null || value === undefined) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\tconst content = coerceBlockContent(value);\n\tif (!content) {\n\t\treturn <JsonCell value={value} />;\n\t}\n\n\tif (!content._tree.length) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\tconst blockDefs = adminConfig?.blocks ?? {};\n\tconst { total, counts } = collectBlockStats(content._tree);\n\tif (total === 0) {\n\t\treturn <span className=\"text-muted-foreground\">-</span>;\n\t}\n\n\tconst entries: BlockTypeStat[] = Array.from(counts.entries()).map(\n\t\t([type, count]) => ({\n\t\t\ttype,\n\t\t\tcount,\n\t\t\tlabel: getBlockLabel(type, blockDefs?.[type], resolveText),\n\t\t}),\n\t);\n\n\tentries.sort((a, b) => {\n\t\tif (b.count !== a.count) return b.count - a.count;\n\t\treturn a.label.localeCompare(b.label);\n\t});\n\n\tconst preview = entries\n\t\t.slice(0, 2)\n\t\t.map((entry) =>\n\t\t\tentry.count > 1 ? `${entry.label} x${entry.count}` : entry.label,\n\t\t);\n\tconst extraTypes = entries.length - preview.length;\n\n\treturn (\n\t\t<Tooltip>\n\t\t\t<TooltipTrigger\n\t\t\t\trender={\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\"inline-flex items-center gap-1.5 text-xs\",\n\t\t\t\t\t\t\t\"text-muted-foreground hover:text-foreground\",\n\t\t\t\t\t\t\t\"transition-colors cursor-default max-w-[220px]\",\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Badge\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tclassName=\"h-4 min-w-4 px-1 text-[10px] shrink-0\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{total}\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t<span className=\"truncate\">\n\t\t\t\t\t\t\t{preview.join(\", \")}\n\t\t\t\t\t\t\t{extraTypes > 0 && ` +${extraTypes}`}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<TooltipContent\n\t\t\t\tside=\"bottom\"\n\t\t\t\talign=\"start\"\n\t\t\t\tclassName=\"p-0 w-64 max-w-[90vw] bg-popover/95 backdrop-blur-xl border-border\"\n\t\t\t>\n\t\t\t\t<div className=\"flex items-center justify-between px-2 py-1.5 text-[11px] text-muted-foreground border-b border-border/50\">\n\t\t\t\t\t<span>Blocks</span>\n\t\t\t\t\t<Badge variant=\"secondary\" className=\"h-4 px-1 text-[10px]\">\n\t\t\t\t\t\t{total}\n\t\t\t\t\t</Badge>\n\t\t\t\t</div>\n\t\t\t\t<div className=\"max-h-[280px] overflow-y-auto p-2 space-y-0.5\">\n\t\t\t\t\t{entries.slice(0, 10).map((entry) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tkey={entry.type}\n\t\t\t\t\t\t\tclassName=\"flex items-center justify-between gap-2 text-xs py-0.5\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span className=\"truncate\">{entry.label}</span>\n\t\t\t\t\t\t\t<Badge variant=\"secondary\" className=\"h-4 px-1 text-[10px]\">\n\t\t\t\t\t\t\t\t{entry.count}\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t\t{entries.length > 10 && (\n\t\t\t\t\t<div className=\"text-[11px] text-muted-foreground text-center py-1.5 border-t border-border/50\">\n\t\t\t\t\t\t+{entries.length - 10} more\n\t\t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K;IAClB;GACD,GAEP,EACF,qBAAC;EACA,MAAK;EACL,OAAM;EACN,WAAU;;GAEV,qBAAC;IAAI,WAAU;eACd,oBAAC,oBAAK,WAAa,EACnB,oBAAC;KAAM,SAAQ;KAAY,WAAU;eACnC;MACM;KACH;GACN,oBAAC;IAAI,WAAU;cACb,QAAQ,MAAM,GAAG,GAAG,CAAC,KAAK,UAC1B,qBAAC;KAEA,WAAU;gBAEV,oBAAC;MAAK,WAAU;gBAAY,MAAM;OAAa,EAC/C,oBAAC;MAAM,SAAQ;MAAY,WAAU;gBACnC,MAAM;OACA;OANH,MAAM,KAON,CACL;KACG;GACL,QAAQ,SAAS,MACjB,qBAAC;IAAI,WAAU;;KAAiF;KAC7F,QAAQ,SAAS;KAAG;;KACjB;;GAES,IACR"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ArrayCell, BlocksCell, JsonCell, ObjectCell } from "./complex-cells.mjs";
|
|
2
|
+
import { BooleanCell, DateCell, DateTimeCell, EmailCell, NumberCell, RichTextCell, SelectCell, TextCell, TimeCell } from "./primitive-cells.mjs";
|
|
3
|
+
import { RelationCell } from "./relation-cells.mjs";
|
|
4
|
+
import "./shared/asset-thumbnail.mjs";
|
|
5
|
+
import "./shared/cell-helpers.mjs";
|
|
6
|
+
import "./shared/relation-chip.mjs";
|
|
7
|
+
import { UploadCell } from "./upload-cells.mjs";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as react_jsx_runtime187 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/client/views/collection/cells/primitive-cells.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Text cell - simple text display with truncation
|
|
7
|
+
*/
|
|
8
|
+
declare function TextCell({
|
|
9
|
+
value
|
|
10
|
+
}: {
|
|
11
|
+
value: unknown;
|
|
12
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
13
|
+
declare function RichTextCell({
|
|
14
|
+
value
|
|
15
|
+
}: {
|
|
16
|
+
value: unknown;
|
|
17
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* Number cell - right-aligned number display
|
|
20
|
+
*/
|
|
21
|
+
declare function NumberCell({
|
|
22
|
+
value
|
|
23
|
+
}: {
|
|
24
|
+
value: unknown;
|
|
25
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Boolean cell - badge display
|
|
28
|
+
*/
|
|
29
|
+
declare function BooleanCell({
|
|
30
|
+
value
|
|
31
|
+
}: {
|
|
32
|
+
value: unknown;
|
|
33
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Date cell - formatted date display
|
|
36
|
+
*/
|
|
37
|
+
declare function DateCell({
|
|
38
|
+
value
|
|
39
|
+
}: {
|
|
40
|
+
value: unknown;
|
|
41
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* DateTime cell - formatted date and time display
|
|
44
|
+
*/
|
|
45
|
+
declare function DateTimeCell({
|
|
46
|
+
value
|
|
47
|
+
}: {
|
|
48
|
+
value: unknown;
|
|
49
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Time cell - formatted time display (for time-only values stored as string)
|
|
52
|
+
*/
|
|
53
|
+
declare function TimeCell({
|
|
54
|
+
value
|
|
55
|
+
}: {
|
|
56
|
+
value: unknown;
|
|
57
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
58
|
+
/**
|
|
59
|
+
* Email cell - displays email with mailto link styling
|
|
60
|
+
*/
|
|
61
|
+
declare function EmailCell({
|
|
62
|
+
value
|
|
63
|
+
}: {
|
|
64
|
+
value: unknown;
|
|
65
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* Select/Status cell - badge display
|
|
68
|
+
*/
|
|
69
|
+
declare function SelectCell({
|
|
70
|
+
value
|
|
71
|
+
}: {
|
|
72
|
+
value: unknown;
|
|
73
|
+
}): react_jsx_runtime187.JSX.Element;
|
|
74
|
+
//#endregion
|
|
75
|
+
export { BooleanCell, DateCell, DateTimeCell, EmailCell, NumberCell, RichTextCell, SelectCell, TextCell, TimeCell };
|
|
76
|
+
//# sourceMappingURL=primitive-cells.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-cells.d.mts","names":[],"sources":["../../../../../src/client/views/collection/cells/primitive-cells.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAmCgB,QAAA;;;;IAAsC,oBAAA,CAAA,GAAA,CAAA;iBA4CtC,YAAA;;;;IAA0C,oBAAA,CAAA,GAAA,CAAA;;;;iBAmB1C,UAAA;;;;IAAwC,oBAAA,CAAA,GAAA,CAAA;;;;iBAmBxC,WAAA;;;;IAAyC,oBAAA,CAAA,GAAA,CAAA;;;;iBAezC,QAAA;;;;IAAsC,oBAAA,CAAA,GAAA,CAAA;;;;iBActC,YAAA;;;;IAA0C,oBAAA,CAAA,GAAA,CAAA;;;;iBAkB1C,QAAA;;;;IAAsC,oBAAA,CAAA,GAAA,CAAA;;;;iBAetC,SAAA;;;;IAAuC,oBAAA,CAAA,GAAA,CAAA;;;;iBAUvC,UAAA;;;;IAAwC,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Badge } from "../../../components/ui/badge.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/client/views/collection/cells/primitive-cells.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Ultra-simple default cell renderer
|
|
8
|
+
* Used as fallback when field has no .cell defined
|
|
9
|
+
*/
|
|
10
|
+
function DefaultCell({ value }) {
|
|
11
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
12
|
+
className: "text-muted-foreground",
|
|
13
|
+
children: "-"
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ jsx("span", { children: String(value) });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Text cell - simple text display with truncation
|
|
19
|
+
*/
|
|
20
|
+
function TextCell({ value }) {
|
|
21
|
+
if (value === null || value === void 0 || value === "") return /* @__PURE__ */ jsx("span", {
|
|
22
|
+
className: "text-muted-foreground",
|
|
23
|
+
children: "-"
|
|
24
|
+
});
|
|
25
|
+
const text = String(value);
|
|
26
|
+
return /* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: "truncate max-w-[300px] block",
|
|
28
|
+
title: text,
|
|
29
|
+
children: text
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function stripHtmlTags(value) {
|
|
33
|
+
return value.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
|
|
34
|
+
}
|
|
35
|
+
function extractTextFromNode(node) {
|
|
36
|
+
if (!node) return "";
|
|
37
|
+
if (Array.isArray(node)) return node.map(extractTextFromNode).filter(Boolean).join(" ");
|
|
38
|
+
if (typeof node.text === "string") return node.text;
|
|
39
|
+
if (Array.isArray(node.content)) return node.content.map(extractTextFromNode).filter(Boolean).join(" ");
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
42
|
+
function getRichTextPreview(value) {
|
|
43
|
+
if (value === null || value === void 0) return "";
|
|
44
|
+
if (typeof value === "string") return /<\/?[a-z][\s\S]*>/i.test(value) ? stripHtmlTags(value) : value.trim();
|
|
45
|
+
if (typeof value === "object") return extractTextFromNode(value).replace(/\s+/g, " ").trim();
|
|
46
|
+
return String(value);
|
|
47
|
+
}
|
|
48
|
+
function RichTextCell({ value }) {
|
|
49
|
+
const text = getRichTextPreview(value);
|
|
50
|
+
if (!text) return /* @__PURE__ */ jsx("span", {
|
|
51
|
+
className: "text-muted-foreground",
|
|
52
|
+
children: "-"
|
|
53
|
+
});
|
|
54
|
+
return /* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: "truncate max-w-[300px] block",
|
|
56
|
+
title: text,
|
|
57
|
+
children: text
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Number cell - right-aligned number display
|
|
62
|
+
*/
|
|
63
|
+
function NumberCell({ value }) {
|
|
64
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: "text-muted-foreground",
|
|
66
|
+
children: "-"
|
|
67
|
+
});
|
|
68
|
+
const num = Number(value);
|
|
69
|
+
return /* @__PURE__ */ jsx("span", {
|
|
70
|
+
className: "tabular-nums",
|
|
71
|
+
children: Number.isNaN(num) ? String(value) : num.toLocaleString()
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Boolean cell - badge display
|
|
76
|
+
*/
|
|
77
|
+
function BooleanCell({ value }) {
|
|
78
|
+
return /* @__PURE__ */ jsx(Badge, {
|
|
79
|
+
variant: value ? "default" : "secondary",
|
|
80
|
+
children: value ? "Yes" : "No"
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Date cell - formatted date display
|
|
85
|
+
*/
|
|
86
|
+
function DateCell({ value }) {
|
|
87
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
88
|
+
className: "text-muted-foreground",
|
|
89
|
+
children: "-"
|
|
90
|
+
});
|
|
91
|
+
const date = value instanceof Date ? value : new Date(String(value));
|
|
92
|
+
if (Number.isNaN(date.getTime())) return /* @__PURE__ */ jsx("span", {
|
|
93
|
+
className: "text-muted-foreground",
|
|
94
|
+
children: String(value)
|
|
95
|
+
});
|
|
96
|
+
return /* @__PURE__ */ jsx("span", {
|
|
97
|
+
className: "tabular-nums",
|
|
98
|
+
children: date.toLocaleDateString()
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* DateTime cell - formatted date and time display
|
|
103
|
+
*/
|
|
104
|
+
function DateTimeCell({ value }) {
|
|
105
|
+
if (value === null || value === void 0) return /* @__PURE__ */ jsx("span", {
|
|
106
|
+
className: "text-muted-foreground",
|
|
107
|
+
children: "-"
|
|
108
|
+
});
|
|
109
|
+
const date = value instanceof Date ? value : new Date(String(value));
|
|
110
|
+
if (Number.isNaN(date.getTime())) return /* @__PURE__ */ jsx("span", {
|
|
111
|
+
className: "text-muted-foreground",
|
|
112
|
+
children: String(value)
|
|
113
|
+
});
|
|
114
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
115
|
+
className: "tabular-nums",
|
|
116
|
+
children: [
|
|
117
|
+
date.toLocaleDateString(),
|
|
118
|
+
" ",
|
|
119
|
+
date.toLocaleTimeString()
|
|
120
|
+
]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Time cell - formatted time display (for time-only values stored as string)
|
|
125
|
+
*/
|
|
126
|
+
function TimeCell({ value }) {
|
|
127
|
+
if (value === null || value === void 0 || value === "") return /* @__PURE__ */ jsx("span", {
|
|
128
|
+
className: "text-muted-foreground",
|
|
129
|
+
children: "-"
|
|
130
|
+
});
|
|
131
|
+
return /* @__PURE__ */ jsx("span", {
|
|
132
|
+
className: "tabular-nums",
|
|
133
|
+
children: String(value)
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Email cell - displays email with mailto link styling
|
|
138
|
+
*/
|
|
139
|
+
function EmailCell({ value }) {
|
|
140
|
+
if (value === null || value === void 0 || value === "") return /* @__PURE__ */ jsx("span", {
|
|
141
|
+
className: "text-muted-foreground",
|
|
142
|
+
children: "-"
|
|
143
|
+
});
|
|
144
|
+
return /* @__PURE__ */ jsx("span", {
|
|
145
|
+
className: "text-primary",
|
|
146
|
+
children: String(value)
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Select/Status cell - badge display
|
|
151
|
+
*/
|
|
152
|
+
function SelectCell({ value }) {
|
|
153
|
+
if (value === null || value === void 0 || value === "") return /* @__PURE__ */ jsx("span", {
|
|
154
|
+
className: "text-muted-foreground",
|
|
155
|
+
children: "-"
|
|
156
|
+
});
|
|
157
|
+
return /* @__PURE__ */ jsx(Badge, {
|
|
158
|
+
variant: "outline",
|
|
159
|
+
children: String(value)
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//#endregion
|
|
164
|
+
export { BooleanCell, DateCell, DateTimeCell, DefaultCell, EmailCell, NumberCell, RichTextCell, SelectCell, TextCell, TimeCell };
|
|
165
|
+
//# sourceMappingURL=primitive-cells.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-cells.mjs","names":[],"sources":["../../../../../src/client/views/collection/cells/primitive-cells.tsx"],"sourcesContent":["/**\n * Primitive Cell Components\n *\n * Simple cell renderers for basic data types:\n * - Text, Number, Boolean\n * - Date, DateTime, Time\n * - Email, Select\n * - DefaultCell (ultra-simple fallback)\n */\n\nimport * as React from \"react\";\nimport { Badge } from \"../../../components/ui/badge\";\n\n// ============================================================================\n// Default Cell (Ultra-Simple Fallback)\n// ============================================================================\n\n/**\n * Ultra-simple default cell renderer\n * Used as fallback when field has no .cell defined\n */\nexport function DefaultCell({ value }: { value: unknown }) {\n if (value === null || value === undefined) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n return <span>{String(value)}</span>;\n}\n\n// ============================================================================\n// Text Cells\n// ============================================================================\n\n/**\n * Text cell - simple text display with truncation\n */\nexport function TextCell({ value }: { value: unknown }) {\n if (value === null || value === undefined || value === \"\") {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n const text = String(value);\n return (\n <span className=\"truncate max-w-[300px] block\" title={text}>\n {text}\n </span>\n );\n}\n\nfunction stripHtmlTags(value: string): string {\n return value\n .replace(/<[^>]*>/g, \" \")\n .replace(/\\s+/g, \" \")\n .trim();\n}\n\nfunction extractTextFromNode(node: any): string {\n if (!node) return \"\";\n if (Array.isArray(node)) {\n return node.map(extractTextFromNode).filter(Boolean).join(\" \");\n }\n if (typeof node.text === \"string\") return node.text;\n if (Array.isArray(node.content)) {\n return node.content.map(extractTextFromNode).filter(Boolean).join(\" \");\n }\n return \"\";\n}\n\nfunction getRichTextPreview(value: unknown): string {\n if (value === null || value === undefined) return \"\";\n if (typeof value === \"string\") {\n const hasHtml = /<\\/?[a-z][\\s\\S]*>/i.test(value);\n return hasHtml ? stripHtmlTags(value) : value.trim();\n }\n if (typeof value === \"object\") {\n const text = extractTextFromNode(value);\n return text.replace(/\\s+/g, \" \").trim();\n }\n return String(value);\n}\n\nexport function RichTextCell({ value }: { value: unknown }) {\n const text = getRichTextPreview(value);\n if (!text) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n return (\n <span className=\"truncate max-w-[300px] block\" title={text}>\n {text}\n </span>\n );\n}\n\n// ============================================================================\n// Number Cell\n// ============================================================================\n\n/**\n * Number cell - right-aligned number display\n */\nexport function NumberCell({ value }: { value: unknown }) {\n if (value === null || value === undefined) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n const num = Number(value);\n return (\n <span className=\"tabular-nums\">\n {Number.isNaN(num) ? String(value) : num.toLocaleString()}\n </span>\n );\n}\n\n// ============================================================================\n// Boolean Cell\n// ============================================================================\n\n/**\n * Boolean cell - badge display\n */\nexport function BooleanCell({ value }: { value: unknown }) {\n return (\n <Badge variant={value ? \"default\" : \"secondary\"}>\n {value ? \"Yes\" : \"No\"}\n </Badge>\n );\n}\n\n// ============================================================================\n// Date/Time Cells\n// ============================================================================\n\n/**\n * Date cell - formatted date display\n */\nexport function DateCell({ value }: { value: unknown }) {\n if (value === null || value === undefined) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n const date = value instanceof Date ? value : new Date(String(value));\n if (Number.isNaN(date.getTime())) {\n return <span className=\"text-muted-foreground\">{String(value)}</span>;\n }\n return <span className=\"tabular-nums\">{date.toLocaleDateString()}</span>;\n}\n\n/**\n * DateTime cell - formatted date and time display\n */\nexport function DateTimeCell({ value }: { value: unknown }) {\n if (value === null || value === undefined) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n const date = value instanceof Date ? value : new Date(String(value));\n if (Number.isNaN(date.getTime())) {\n return <span className=\"text-muted-foreground\">{String(value)}</span>;\n }\n return (\n <span className=\"tabular-nums\">\n {date.toLocaleDateString()} {date.toLocaleTimeString()}\n </span>\n );\n}\n\n/**\n * Time cell - formatted time display (for time-only values stored as string)\n */\nexport function TimeCell({ value }: { value: unknown }) {\n if (value === null || value === undefined || value === \"\") {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n // Time values are stored as \"HH:mm\" or \"HH:mm:ss\" strings\n return <span className=\"tabular-nums\">{String(value)}</span>;\n}\n\n// ============================================================================\n// Special Text Cells\n// ============================================================================\n\n/**\n * Email cell - displays email with mailto link styling\n */\nexport function EmailCell({ value }: { value: unknown }) {\n if (value === null || value === undefined || value === \"\") {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n return <span className=\"text-primary\">{String(value)}</span>;\n}\n\n/**\n * Select/Status cell - badge display\n */\nexport function SelectCell({ value }: { value: unknown }) {\n if (value === null || value === undefined || value === \"\") {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n return <Badge variant=\"outline\">{String(value)}</Badge>;\n}\n"],"mappings":";;;;;;;;;AAqBA,SAAgB,YAAY,EAAE,SAA6B;AACzD,KAAI,UAAU,QAAQ,UAAU,OAC9B,QAAO,oBAAC;EAAK,WAAU;YAAwB;GAAQ;AAEzD,QAAO,oBAAC,oBAAM,OAAO,MAAM,GAAQ;;;;;AAUrC,SAAgB,SAAS,EAAE,SAA6B;AACtD,KAAI,UAAU,QAAQ,UAAU,UAAa,UAAU,GACrD,QAAO,oBAAC;EAAK,WAAU;YAAwB;GAAQ;CAEzD,MAAM,OAAO,OAAO,MAAM;AAC1B,QACE,oBAAC;EAAK,WAAU;EAA+B,OAAO;YACnD;GACI;;AAIX,SAAS,cAAc,OAAuB;AAC5C,QAAO,MACJ,QAAQ,YAAY,IAAI,CACxB,QAAQ,QAAQ,IAAI,CACpB,MAAM;;AAGX,SAAS,oBAA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