@columnus/sdk 0.0.0-stage → 0.3.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/dist/blocknote-editor-547WFBXP.js +7 -0
- package/dist/blocknote-editor-547WFBXP.js.map +1 -0
- package/dist/blocknote-editor-YZEFMXLC.css +47 -0
- package/dist/blocknote-editor-YZEFMXLC.css.map +1 -0
- package/dist/blocknote-preview-6WRENQZD.css +47 -0
- package/dist/blocknote-preview-6WRENQZD.css.map +1 -0
- package/dist/blocknote-preview-CTMNUSYX.js +7 -0
- package/dist/blocknote-preview-CTMNUSYX.js.map +1 -0
- package/dist/chunk-5IPH2A64.js +23337 -0
- package/dist/chunk-5IPH2A64.js.map +1 -0
- package/dist/chunk-BQCD5MEV.js +225 -0
- package/dist/chunk-BQCD5MEV.js.map +1 -0
- package/dist/chunk-BXTTCBIK.js +11 -0
- package/dist/chunk-BXTTCBIK.js.map +1 -0
- package/dist/chunk-ICKWVUW7.js +134 -0
- package/dist/chunk-ICKWVUW7.js.map +1 -0
- package/dist/chunk-IMYSQX2X.js +58 -0
- package/dist/chunk-IMYSQX2X.js.map +1 -0
- package/dist/chunk-JYSABU33.js +494 -0
- package/dist/chunk-JYSABU33.js.map +1 -0
- package/dist/chunk-PX6F3LHL.js +37 -0
- package/dist/chunk-PX6F3LHL.js.map +1 -0
- package/dist/chunk-QPQRNIKG.js +142 -0
- package/dist/chunk-QPQRNIKG.js.map +1 -0
- package/dist/chunk-SKE2RDD2.js +4217 -0
- package/dist/chunk-SKE2RDD2.js.map +1 -0
- package/dist/chunk-XWMTXQF3.js +18727 -0
- package/dist/chunk-XWMTXQF3.js.map +1 -0
- package/dist/chunk-ZTWPGA37.js +68 -0
- package/dist/chunk-ZTWPGA37.js.map +1 -0
- package/dist/cms/builder/diff-view.js +70 -0
- package/dist/cms/builder/diff-view.js.map +1 -0
- package/dist/cms/builder/panel.js +1316 -0
- package/dist/cms/builder/panel.js.map +1 -0
- package/dist/cms/convex/index.css +47 -0
- package/dist/cms/convex/index.css.map +1 -0
- package/dist/cms/convex/index.js +370 -0
- package/dist/cms/convex/index.js.map +1 -0
- package/dist/cms/index.css +47 -0
- package/dist/cms/index.css.map +1 -0
- package/dist/cms/index.js +9 -0
- package/dist/cms/index.js.map +1 -0
- package/dist/cms/server/index.js +5 -0
- package/dist/cms/server/index.js.map +1 -0
- package/dist/cms/tables/tables-dialog.css +47 -0
- package/dist/cms/tables/tables-dialog.css.map +1 -0
- package/dist/cms/tables/tables-dialog.js +590 -0
- package/dist/cms/tables/tables-dialog.js.map +1 -0
- package/dist/cms/tailwind.css +4 -0
- package/dist/editor-543ARQ6S.js +427 -0
- package/dist/editor-543ARQ6S.js.map +1 -0
- package/dist/editor-54UG7BSP.css +47 -0
- package/dist/editor-54UG7BSP.css.map +1 -0
- package/dist/mcp-cli.js +61218 -0
- package/dist/primitives.css +143 -0
- package/dist/rich-text-editor/blocknote-preview-studio.css +54 -0
- package/dist/richtext.css +4 -0
- package/dist/types/cms/src/adapters/default-richtext.d.ts +24 -0
- package/dist/types/cms/src/adapters/projected-fields-adapter.d.ts +22 -0
- package/dist/types/cms/src/adapters/table-rows-context.d.ts +4 -0
- package/dist/types/cms/src/adapters/table-rows-richtext.d.ts +8 -0
- package/dist/types/cms/src/builder/annotate.d.ts +13 -0
- package/dist/types/cms/src/builder/diff-view.d.ts +10 -0
- package/dist/types/cms/src/builder/inspect.d.ts +32 -0
- package/dist/types/cms/src/builder/panel.d.ts +11 -0
- package/dist/types/cms/src/builder/sessions-menu.d.ts +37 -0
- package/dist/types/cms/src/builder/sidecar-json.d.ts +2 -0
- package/dist/types/cms/src/cache/html-cache.d.ts +12 -0
- package/dist/types/cms/src/chrome/changes-view.d.ts +15 -0
- package/dist/types/cms/src/chrome/confirm-panel.d.ts +10 -0
- package/dist/types/cms/src/chrome/floating-toolbar.d.ts +25 -0
- package/dist/types/cms/src/chrome/icons.d.ts +13 -0
- package/dist/types/cms/src/chrome/overlay-styles.d.ts +38 -0
- package/dist/types/cms/src/chrome/resolve-dialog.d.ts +26 -0
- package/dist/types/cms/src/chrome/session-storage.d.ts +3 -0
- package/dist/types/cms/src/convex/cms-convex-proposals.d.ts +19 -0
- package/dist/types/cms/src/convex/cms-convex-shell.d.ts +8 -0
- package/dist/types/cms/src/convex/cms-host-refs.d.ts +15 -0
- package/dist/types/cms/src/convex/index.d.ts +7 -0
- package/dist/types/cms/src/convex/proposal-refs.d.ts +20 -0
- package/dist/types/cms/src/convex/use-cms-display-fields-adapter.d.ts +17 -0
- package/dist/types/cms/src/convex/use-cms-display-values.d.ts +12 -0
- package/dist/types/cms/src/convex/use-cms-editor-auth.d.ts +12 -0
- package/dist/types/cms/src/convex/use-cms-storage-display.d.ts +19 -0
- package/dist/types/cms/src/convex/use-cms-storage-fields-adapter.d.ts +63 -0
- package/dist/types/cms/src/convex/use-fields-adapter-host.d.ts +4 -0
- package/dist/types/cms/src/create/compound-create.d.ts +56 -0
- package/dist/types/cms/src/draft/merge-draft.d.ts +31 -0
- package/dist/types/cms/src/edit/cms-compound-create.d.ts +12 -0
- package/dist/types/cms/src/edit/cms-create-button.d.ts +9 -0
- package/dist/types/cms/src/edit/edit-surface.d.ts +16 -0
- package/dist/types/cms/src/edit/field-editor-dialog.d.ts +22 -0
- package/dist/types/cms/src/edit/inplace-field-editor.d.ts +21 -0
- package/dist/types/cms/src/edit/inplace-switch-modal.d.ts +5 -0
- package/dist/types/cms/src/edit/insert-row-dialog.d.ts +20 -0
- package/dist/types/cms/src/index.d.ts +35 -0
- package/dist/types/cms/src/list/build-insert-draft.d.ts +13 -0
- package/dist/types/cms/src/manifest-index.d.ts +5 -0
- package/dist/types/cms/src/nav/content-ref-integrity.d.ts +18 -0
- package/dist/types/cms/src/nav/content-ref.d.ts +6 -0
- package/dist/types/cms/src/nav/infer-navigation-table.d.ts +20 -0
- package/dist/types/cms/src/nav/slugify-de.d.ts +4 -0
- package/dist/types/cms/src/pages/login-page.d.ts +5 -0
- package/dist/types/cms/src/profile/propose-gates.d.ts +12 -0
- package/dist/types/cms/src/profile/readable-tables.d.ts +13 -0
- package/dist/types/cms/src/projection/cms-projection.d.ts +63 -0
- package/dist/types/cms/src/proposals/types.d.ts +59 -0
- package/dist/types/cms/src/provider/builder-draft.d.ts +14 -0
- package/dist/types/cms/src/provider/cms-provider.d.ts +240 -0
- package/dist/types/cms/src/rich-doc/cms-rich-doc-view.d.ts +4 -0
- package/dist/types/cms/src/server/cookie.d.ts +11 -0
- package/dist/types/cms/src/server/index.d.ts +2 -0
- package/dist/types/cms/src/server/session.d.ts +53 -0
- package/dist/types/cms/src/stamps/attrs.d.ts +17 -0
- package/dist/types/cms/src/stamps/related.d.ts +11 -0
- package/dist/types/cms/src/stamps/resolve-display.d.ts +41 -0
- package/dist/types/cms/src/stamps/row.d.ts +41 -0
- package/dist/types/cms/src/stamps/stamp-media-drop.d.ts +23 -0
- package/dist/types/cms/src/stamps/stamp.d.ts +44 -0
- package/dist/types/cms/src/stamps/storage-display.d.ts +4 -0
- package/dist/types/cms/src/stamps/use-cms-projected-field.d.ts +6 -0
- package/dist/types/cms/src/stamps/use-cms-projected-table.d.ts +7 -0
- package/dist/types/cms/src/stamps/use-cms-related-row.d.ts +2 -0
- package/dist/types/cms/src/tables/tables-dialog.d.ts +6 -0
- package/dist/types/cms/src/tables/use-cms-grid.d.ts +78 -0
- package/dist/types/cms/src/tables/use-draft-commands.d.ts +35 -0
- package/dist/types/data-grid/src/components/balanced-preview-columns.d.ts +7 -0
- package/dist/types/data-grid/src/components/cell-formula-bar.d.ts +40 -0
- package/dist/types/data-grid/src/components/cell-renderer.d.ts +10 -0
- package/dist/types/data-grid/src/components/cell-selection.d.ts +72 -0
- package/dist/types/data-grid/src/components/column-filter-popover.d.ts +29 -0
- package/dist/types/data-grid/src/components/context-menu-selection.d.ts +24 -0
- package/dist/types/data-grid/src/components/data-grid-table.d.ts +49 -0
- package/dist/types/data-grid/src/components/delete-confirm-copy.d.ts +6 -0
- package/dist/types/data-grid/src/components/display-search-scope-notice.d.ts +4 -0
- package/dist/types/data-grid/src/components/draft-rows.d.ts +14 -0
- package/dist/types/data-grid/src/components/field-condition-editor.d.ts +71 -0
- package/dist/types/data-grid/src/components/fill-handle.d.ts +22 -0
- package/dist/types/data-grid/src/components/grid-action-bar.d.ts +8 -0
- package/dist/types/data-grid/src/components/grid-body-layout.d.ts +27 -0
- package/dist/types/data-grid/src/components/grid-body-row.d.ts +83 -0
- package/dist/types/data-grid/src/components/grid-editing.d.ts +158 -0
- package/dist/types/data-grid/src/components/grid-event-utils.d.ts +10 -0
- package/dist/types/data-grid/src/components/grid-filter-search-chips.d.ts +7 -0
- package/dist/types/data-grid/src/components/grid-filter-search-context.d.ts +135 -0
- package/dist/types/data-grid/src/components/grid-filter-search.d.ts +6 -0
- package/dist/types/data-grid/src/components/grid-row-menu.d.ts +23 -0
- package/dist/types/data-grid/src/components/grid-seam-island.d.ts +23 -0
- package/dist/types/data-grid/src/components/grid-sort-group.d.ts +25 -0
- package/dist/types/data-grid/src/components/grid-toolbar.d.ts +54 -0
- package/dist/types/data-grid/src/components/index-suggestion-banner.d.ts +11 -0
- package/dist/types/data-grid/src/components/inline-edit-draft.d.ts +18 -0
- package/dist/types/data-grid/src/components/keyboard-shortcuts-overlay.d.ts +7 -0
- package/dist/types/data-grid/src/components/measure-column-auto-width.d.ts +6 -0
- package/dist/types/data-grid/src/components/pending-edits.d.ts +25 -0
- package/dist/types/data-grid/src/components/perform-grid-row-delete.d.ts +27 -0
- package/dist/types/data-grid/src/components/query-plan-banner.d.ts +13 -0
- package/dist/types/data-grid/src/components/query-predicate-builder.d.ts +53 -0
- package/dist/types/data-grid/src/components/row-detail-dialog.d.ts +17 -0
- package/dist/types/data-grid/src/components/row-preview-content.d.ts +21 -0
- package/dist/types/data-grid/src/components/row-preview-drawer.d.ts +24 -0
- package/dist/types/data-grid/src/components/selection-value-chips.d.ts +12 -0
- package/dist/types/data-grid/src/components/selection.d.ts +46 -0
- package/dist/types/data-grid/src/components/table-cell-overlays.d.ts +33 -0
- package/dist/types/data-grid/src/components/table-color-marker.d.ts +10 -0
- package/dist/types/data-grid/src/components/use-column-visibility.d.ts +5 -0
- package/dist/types/data-grid/src/components/use-column-widths.d.ts +6 -0
- package/dist/types/data-grid/src/components/use-undo-redo.d.ts +46 -0
- package/dist/types/data-grid/src/hooks/plan-pending-edits.d.ts +41 -0
- package/dist/types/data-grid/src/hooks/use-grid-interactions.d.ts +100 -0
- package/dist/types/data-grid/src/hooks/use-grid-pending-state.d.ts +41 -0
- package/dist/types/data-grid/src/hooks/use-grid-selection-model.d.ts +28 -0
- package/dist/types/data-grid/src/hooks/use-grid-table-layout.d.ts +39 -0
- package/dist/types/data-grid/src/hooks/use-true-after-delay.d.ts +10 -0
- package/dist/types/data-grid/src/index.d.ts +47 -0
- package/dist/types/data-grid/src/lib/column-filter.d.ts +43 -0
- package/dist/types/data-grid/src/lib/display-search-scope.d.ts +2 -0
- package/dist/types/data-grid/src/lib/format-query-chips.d.ts +28 -0
- package/dist/types/data-grid/src/lib/grid-items.d.ts +63 -0
- package/dist/types/data-grid/src/lib/persistent-state.d.ts +6 -0
- package/dist/types/data-grid/src/lib/query-editor-draft.d.ts +15 -0
- package/dist/types/data-grid/src/lib/use-row-preview-collapsed.d.ts +9 -0
- package/dist/types/data-grid/src/lib/use-row-preview-title.d.ts +1 -0
- package/dist/types/fields/src/components/batch-edit-sheet.d.ts +10 -0
- package/dist/types/fields/src/components/cell-editor.d.ts +29 -0
- package/dist/types/fields/src/components/date-time-input.d.ts +21 -0
- package/dist/types/fields/src/components/date-time-picker-logic.d.ts +13 -0
- package/dist/types/fields/src/components/field-input-chrome.d.ts +11 -0
- package/dist/types/fields/src/components/field-input-inline.d.ts +30 -0
- package/dist/types/fields/src/components/field-input.d.ts +36 -0
- package/dist/types/fields/src/components/field-value-view.d.ts +10 -0
- package/dist/types/fields/src/components/file-array-cell.d.ts +5 -0
- package/dist/types/fields/src/components/file-array-upload-dialog.d.ts +19 -0
- package/dist/types/fields/src/components/file-cell.d.ts +5 -0
- package/dist/types/fields/src/components/file-input.d.ts +21 -0
- package/dist/types/fields/src/components/file-upload-dialog.d.ts +19 -0
- package/dist/types/fields/src/components/focus-text-input.d.ts +5 -0
- package/dist/types/fields/src/components/id-array-cell.d.ts +9 -0
- package/dist/types/fields/src/components/id-array-values.d.ts +1 -0
- package/dist/types/fields/src/components/id-cell.d.ts +4 -0
- package/dist/types/fields/src/components/id-picker.d.ts +28 -0
- package/dist/types/fields/src/components/image-array-cell.d.ts +7 -0
- package/dist/types/fields/src/components/image-cell.d.ts +7 -0
- package/dist/types/fields/src/components/image-preview-dialog.d.ts +8 -0
- package/dist/types/fields/src/components/media-compact-preview.d.ts +17 -0
- package/dist/types/fields/src/components/media-library-picker-dialog.d.ts +16 -0
- package/dist/types/fields/src/components/multi-id-picker.d.ts +24 -0
- package/dist/types/fields/src/components/picker-chrome.d.ts +28 -0
- package/dist/types/fields/src/components/picker-density.d.ts +5 -0
- package/dist/types/fields/src/components/picker-list-placeholder.d.ts +13 -0
- package/dist/types/fields/src/components/picker-menu-keyboard.d.ts +16 -0
- package/dist/types/fields/src/components/picker-menu-layout.d.ts +12 -0
- package/dist/types/fields/src/components/picker-menu-portal.d.ts +19 -0
- package/dist/types/fields/src/components/picker-option-row.d.ts +10 -0
- package/dist/types/fields/src/components/picker-overlay.d.ts +35 -0
- package/dist/types/fields/src/components/record-link-chip.d.ts +21 -0
- package/dist/types/fields/src/components/row-edit-panel.d.ts +36 -0
- package/dist/types/fields/src/components/row-editor.d.ts +19 -0
- package/dist/types/fields/src/components/row-popover.d.ts +11 -0
- package/dist/types/fields/src/components/use-flush-ref.d.ts +3 -0
- package/dist/types/fields/src/components/use-picker-combobox.d.ts +86 -0
- package/dist/types/fields/src/components/use-picker-highlight-scroll.d.ts +4 -0
- package/dist/types/fields/src/components/use-picker-menu-overlay.d.ts +7 -0
- package/dist/types/fields/src/fields-data-adapter.d.ts +111 -0
- package/dist/types/fields/src/fields-data-provider.d.ts +45 -0
- package/dist/types/fields/src/hooks/use-debounced-value.d.ts +1 -0
- package/dist/types/fields/src/hooks/use-row-edit-shortcuts.d.ts +15 -0
- package/dist/types/fields/src/index.d.ts +38 -0
- package/dist/types/fields/src/lib/is-row-doc-dirty.d.ts +2 -0
- package/dist/types/fields/src/lib/scroll-to-form-field.d.ts +6 -0
- package/dist/types/fields/src/media-library-query.d.ts +34 -0
- package/dist/types/fields/src/media-upload-limits.d.ts +18 -0
- package/dist/types/fields/src/record-actions-context.d.ts +17 -0
- package/dist/types/fields/src/storage-upload.d.ts +21 -0
- package/dist/types/primitives/src/components/ui/accordion.d.ts +6 -0
- package/dist/types/primitives/src/components/ui/alert-dialog.d.ts +12 -0
- package/dist/types/primitives/src/components/ui/badge.d.ts +9 -0
- package/dist/types/primitives/src/components/ui/button.d.ts +11 -0
- package/dist/types/primitives/src/components/ui/calendar.d.ts +8 -0
- package/dist/types/primitives/src/components/ui/card.d.ts +7 -0
- package/dist/types/primitives/src/components/ui/checkbox.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/dialog.d.ts +15 -0
- package/dist/types/primitives/src/components/ui/dropdown-menu.d.ts +10 -0
- package/dist/types/primitives/src/components/ui/info-hint.d.ts +37 -0
- package/dist/types/primitives/src/components/ui/input.d.ts +2 -0
- package/dist/types/primitives/src/components/ui/label.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/popover.d.ts +6 -0
- package/dist/types/primitives/src/components/ui/save-bar.d.ts +43 -0
- package/dist/types/primitives/src/components/ui/select.d.ts +8 -0
- package/dist/types/primitives/src/components/ui/separator.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/sheet.d.ts +18 -0
- package/dist/types/primitives/src/components/ui/sonner.d.ts +1 -0
- package/dist/types/primitives/src/components/ui/switch.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/table.d.ts +7 -0
- package/dist/types/primitives/src/components/ui/tabs.d.ts +6 -0
- package/dist/types/primitives/src/components/ui/tooltip.d.ts +6 -0
- package/dist/types/primitives/src/index.d.ts +28 -0
- package/dist/types/primitives/src/lib/animation-frame-batcher.d.ts +11 -0
- package/dist/types/primitives/src/lib/locale-week-start.d.ts +5 -0
- package/dist/types/primitives/src/lib/save-bar-logic.d.ts +52 -0
- package/dist/types/primitives/src/lib/use-raf-batched-pointer-drag.d.ts +31 -0
- package/dist/types/primitives/src/lib/use-save-bar.d.ts +36 -0
- package/dist/types/primitives/src/lib/use-unsaved-changes-guard.d.ts +15 -0
- package/dist/types/primitives/src/lib/utils.d.ts +6 -0
- package/dist/types/richtext/src/editor.d.ts +16 -0
- package/dist/types/richtext/src/host-adapter.d.ts +66 -0
- package/dist/types/richtext/src/index.d.ts +11 -0
- package/dist/types/richtext/src/markdown-editor/editor-styles.d.ts +7 -0
- package/dist/types/richtext/src/markdown-editor/markdown-editor-dialog.d.ts +16 -0
- package/dist/types/richtext/src/markdown-editor/markdown-editor.d.ts +2 -0
- package/dist/types/richtext/src/markdown-editor/markdown-field-input.d.ts +11 -0
- package/dist/types/richtext/src/markdown-editor/markdown-field-trigger.d.ts +8 -0
- package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers-session.d.ts +5 -0
- package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers.d.ts +9 -0
- package/dist/types/richtext/src/markdown-editor/markdown-preview.d.ts +7 -0
- package/dist/types/richtext/src/markdown-editor/markdown-rich-preview.d.ts +5 -0
- package/dist/types/richtext/src/markdown-editor/record-link-picker-session.d.ts +7 -0
- package/dist/types/richtext/src/markdown-editor/record-link-picker.d.ts +9 -0
- package/dist/types/richtext/src/markdown-editor/record-table-picker.d.ts +21 -0
- package/dist/types/richtext/src/markdown-editor/use-markdown-insert-pickers.d.ts +33 -0
- package/dist/types/richtext/src/record-table-view.d.ts +17 -0
- package/dist/types/richtext/src/rich-doc-view.d.ts +30 -0
- package/dist/types/richtext/src/rich-text-editor/blocknote-editor.d.ts +25 -0
- package/dist/types/richtext/src/rich-text-editor/blocknote-portaled-dropdown.d.ts +2 -0
- package/dist/types/richtext/src/rich-text-editor/blocknote-preview.d.ts +12 -0
- package/dist/types/richtext/src/rich-text-editor/record-link-inline.d.ts +15 -0
- package/dist/types/richtext/src/rich-text-editor/record-link-rows-context.d.ts +9 -0
- package/dist/types/richtext/src/rich-text-editor/record-table-block.d.ts +18 -0
- package/dist/types/richtext/src/rich-text-editor/studio-schema.d.ts +283 -0
- package/dist/types/richtext/src/rich-text-editor/studio-slash-menu.d.ts +8 -0
- package/dist/types/richtext/src/rich-text-editor/use-sync-blocknote-value.d.ts +2 -0
- package/dist/types/shared/src/apiProfile.d.ts +164 -0
- package/dist/types/shared/src/apiProfileDiscovery.d.ts +88 -0
- package/dist/types/shared/src/apiProfileSlug.d.ts +11 -0
- package/dist/types/shared/src/apiProfileSources.d.ts +112 -0
- package/dist/types/shared/src/apiProfileValidators.d.ts +310 -0
- package/dist/types/shared/src/apiToken.d.ts +6 -0
- package/dist/types/shared/src/assetFamily.d.ts +38 -0
- package/dist/types/shared/src/assetFieldValues.d.ts +21 -0
- package/dist/types/shared/src/assetGraph.d.ts +221 -0
- package/dist/types/shared/src/assetJobs.d.ts +99 -0
- package/dist/types/shared/src/assetSettings.d.ts +147 -0
- package/dist/types/shared/src/auditRedact.d.ts +36 -0
- package/dist/types/shared/src/betterAuthSession.d.ts +12 -0
- package/dist/types/shared/src/bffHost.d.ts +36 -0
- package/dist/types/shared/src/bffProtocol.d.ts +563 -0
- package/dist/types/shared/src/bffRedact.d.ts +30 -0
- package/dist/types/shared/src/ciPreviewEnv.d.ts +21 -0
- package/dist/types/shared/src/clipboardTransfer.d.ts +25 -0
- package/dist/types/shared/src/convexFacade.d.ts +44 -0
- package/dist/types/shared/src/convexSiteUrl.d.ts +73 -0
- package/dist/types/shared/src/csv.d.ts +65 -0
- package/dist/types/shared/src/dataTransfer.d.ts +21 -0
- package/dist/types/shared/src/dateValues.d.ts +21 -0
- package/dist/types/shared/src/deployOutput.d.ts +3 -0
- package/dist/types/shared/src/displayLabel.d.ts +17 -0
- package/dist/types/shared/src/displayTemplateGenerator.d.ts +11 -0
- package/dist/types/shared/src/displayTypes.d.ts +10 -0
- package/dist/types/shared/src/erdLayout.d.ts +27 -0
- package/dist/types/shared/src/facets.d.ts +109 -0
- package/dist/types/shared/src/failureMessage.d.ts +5 -0
- package/dist/types/shared/src/fieldTypeMeta.d.ts +110 -0
- package/dist/types/shared/src/fieldTypeText.d.ts +34 -0
- package/dist/types/shared/src/fieldValueEqual.d.ts +10 -0
- package/dist/types/shared/src/fieldValueShape.d.ts +24 -0
- package/dist/types/shared/src/fieldValueText.d.ts +32 -0
- package/dist/types/shared/src/gridQuery.d.ts +103 -0
- package/dist/types/shared/src/importMatch.d.ts +80 -0
- package/dist/types/shared/src/index.d.ts +78 -0
- package/dist/types/shared/src/inferIdentifier.d.ts +18 -0
- package/dist/types/shared/src/keyboard.d.ts +16 -0
- package/dist/types/shared/src/manifestDeploy.d.ts +31 -0
- package/dist/types/shared/src/manifestHash.d.ts +12 -0
- package/dist/types/shared/src/mcpOAuth.d.ts +182 -0
- package/dist/types/shared/src/postLoginPath.d.ts +21 -0
- package/dist/types/shared/src/previewDeployName.d.ts +27 -0
- package/dist/types/shared/src/proposalDraftMerge.d.ts +35 -0
- package/dist/types/shared/src/proposePolicy.d.ts +17 -0
- package/dist/types/shared/src/proposeRateLimit.d.ts +27 -0
- package/dist/types/shared/src/queryBetween.d.ts +21 -0
- package/dist/types/shared/src/queryConditions.d.ts +46 -0
- package/dist/types/shared/src/queryExecution.d.ts +12 -0
- package/dist/types/shared/src/queryFieldOps.d.ts +123 -0
- package/dist/types/shared/src/queryMerge.d.ts +30 -0
- package/dist/types/shared/src/queryPlan.d.ts +86 -0
- package/dist/types/shared/src/queryStudio.d.ts +28 -0
- package/dist/types/shared/src/queryTypes.d.ts +184 -0
- package/dist/types/shared/src/queryValidators.d.ts +233 -0
- package/dist/types/shared/src/readApiQuery.d.ts +10 -0
- package/dist/types/shared/src/readModelLimits.d.ts +23 -0
- package/dist/types/shared/src/recordTableColumns.d.ts +24 -0
- package/dist/types/shared/src/recordTablePreload.d.ts +19 -0
- package/dist/types/shared/src/refDisplayRequests.d.ts +17 -0
- package/dist/types/shared/src/refGraph.d.ts +97 -0
- package/dist/types/shared/src/refsRecompute.d.ts +16 -0
- package/dist/types/shared/src/richDoc.d.ts +80 -0
- package/dist/types/shared/src/rowPatchWire.d.ts +12 -0
- package/dist/types/shared/src/rowTrash.d.ts +26 -0
- package/dist/types/shared/src/savedView.d.ts +37 -0
- package/dist/types/shared/src/schemaGenerator.d.ts +36 -0
- package/dist/types/shared/src/schemaShrink.d.ts +82 -0
- package/dist/types/shared/src/schemaShrinkValidators.d.ts +72 -0
- package/dist/types/shared/src/schemaTypes.d.ts +311 -0
- package/dist/types/shared/src/share.d.ts +8 -0
- package/dist/types/shared/src/shareApiBridge.d.ts +13 -0
- package/dist/types/shared/src/shareGuestPolicy.d.ts +14 -0
- package/dist/types/shared/src/shareProposal.d.ts +141 -0
- package/dist/types/shared/src/shareProposalDiff.d.ts +13 -0
- package/dist/types/shared/src/shareScopes.d.ts +19 -0
- package/dist/types/shared/src/shareTokenCrypto.d.ts +9 -0
- package/dist/types/shared/src/shareTokens.d.ts +6 -0
- package/dist/types/shared/src/shareTypes.d.ts +113 -0
- package/dist/types/shared/src/shareWizard.d.ts +23 -0
- package/dist/types/shared/src/spaceBundle.d.ts +89 -0
- package/dist/types/shared/src/stagedApiAccess.d.ts +104 -0
- package/dist/types/shared/src/studioBoot.d.ts +63 -0
- package/dist/types/shared/src/syncChannel.d.ts +25 -0
- package/dist/types/shared/src/syncClampMembership.d.ts +22 -0
- package/dist/types/shared/src/tableSearch.d.ts +52 -0
- package/dist/types/shared/src/tenantHosts.d.ts +34 -0
- package/dist/types/shared/src/tenantSecretsCrypto.d.ts +31 -0
- package/dist/types/shared/src/useDebouncedCommit.d.ts +15 -0
- package/dist/types/shared/src/useDebouncedValue.d.ts +1 -0
- package/dist/types/shared/src/useModifierHeld.d.ts +2 -0
- package/package.json +85 -3
- package/README.md +0 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type RowPatchWire } from "../../../shared/src/index.js";
|
|
2
|
+
export type UpdatePatch = {
|
|
3
|
+
id: string;
|
|
4
|
+
} & RowPatchWire;
|
|
5
|
+
export type UndoEntry = {
|
|
6
|
+
kind: "update";
|
|
7
|
+
table: string;
|
|
8
|
+
label: string;
|
|
9
|
+
before: UpdatePatch[];
|
|
10
|
+
after: UpdatePatch[];
|
|
11
|
+
} | {
|
|
12
|
+
kind: "insert" | "delete";
|
|
13
|
+
table: string;
|
|
14
|
+
label: string;
|
|
15
|
+
ids: string[];
|
|
16
|
+
};
|
|
17
|
+
export type Mutations = {
|
|
18
|
+
batchUpdate: (args: {
|
|
19
|
+
table: string;
|
|
20
|
+
patches: UpdatePatch[];
|
|
21
|
+
}) => Promise<unknown>;
|
|
22
|
+
batchDelete: (args: {
|
|
23
|
+
table: string;
|
|
24
|
+
ids: string[];
|
|
25
|
+
}) => Promise<unknown>;
|
|
26
|
+
restoreRows: (args: {
|
|
27
|
+
table: string;
|
|
28
|
+
ids: string[];
|
|
29
|
+
}) => Promise<unknown>;
|
|
30
|
+
};
|
|
31
|
+
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
|
|
32
|
+
export type UndoEntryInput = DistributiveOmit<UndoEntry, "table">;
|
|
33
|
+
export declare function buildInversePatches(rows: Record<string, unknown>[], patches: UpdatePatch[]): UpdatePatch[];
|
|
34
|
+
export declare function useUndoRedo(opts: {
|
|
35
|
+
tableName: string;
|
|
36
|
+
mutations: Mutations;
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
}): {
|
|
39
|
+
push: (entry: UndoEntryInput) => void;
|
|
40
|
+
undo: () => Promise<void>;
|
|
41
|
+
redo: () => Promise<void>;
|
|
42
|
+
canUndo: boolean;
|
|
43
|
+
canRedo: boolean;
|
|
44
|
+
clear: () => void;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decide what a grid's pending edits amount to, before anything is written.
|
|
3
|
+
*
|
|
4
|
+
* The grid keeps every uncommitted change in one map — real rows, draft rows
|
|
5
|
+
* and the entry row together — and a save has to sort them out: which are
|
|
6
|
+
* genuine changes, which are complete enough to insert, and whether anything
|
|
7
|
+
* is wrong enough to stop the whole save. That reasoning is the same wherever
|
|
8
|
+
* the grid runs; only what happens next differs, so it stops at the plan.
|
|
9
|
+
*
|
|
10
|
+
* Kept pure and separate because it used to be inlined at each call site, and
|
|
11
|
+
* the Storybook workbench behind the grid's own stories carried its own copy —
|
|
12
|
+
* meaning those stories exercised a replica of the save rules rather than the
|
|
13
|
+
* ones that ship.
|
|
14
|
+
*/
|
|
15
|
+
import { type Field, type RowPatchWire } from "../../../shared/src/index.js";
|
|
16
|
+
export type PendingEditPlan =
|
|
17
|
+
/** Nothing to write and nothing to say about it. */
|
|
18
|
+
{
|
|
19
|
+
status: "idle";
|
|
20
|
+
}
|
|
21
|
+
/** Nothing should be written, and the user needs to know why. */
|
|
22
|
+
| {
|
|
23
|
+
status: "blocked";
|
|
24
|
+
message: string;
|
|
25
|
+
} | {
|
|
26
|
+
status: "ready";
|
|
27
|
+
updates: ({
|
|
28
|
+
id: string;
|
|
29
|
+
} & RowPatchWire)[];
|
|
30
|
+
inserts: Record<string, unknown>[];
|
|
31
|
+
/** Per insert, the draft or entry row it came from, for the caller to retire. */
|
|
32
|
+
insertedFrom: string[];
|
|
33
|
+
/** Drafts too incomplete to insert — worth a mention, not a refusal. */
|
|
34
|
+
skippedDraftCount: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function planPendingEdits(args: {
|
|
37
|
+
pendingEdits: ReadonlyMap<string, Record<string, unknown>>;
|
|
38
|
+
serverRowById: ReadonlyMap<string, Record<string, unknown>>;
|
|
39
|
+
fields: readonly Field[];
|
|
40
|
+
draftRowIds: readonly string[];
|
|
41
|
+
}): PendingEditPlan;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { type Dispatch, type RefObject, type SetStateAction } from "react";
|
|
2
|
+
import { type Field, type FieldType, type Table } from "../../../shared/src/index.js";
|
|
3
|
+
import { type CellCoord, type CellSelection } from "../components/cell-selection.ts";
|
|
4
|
+
import { type FillDragState } from "../components/fill-handle.ts";
|
|
5
|
+
import { type Selection } from "../components/selection.ts";
|
|
6
|
+
import type { GridPendingRefs } from "./use-grid-pending-state.ts";
|
|
7
|
+
import type { PendingHistoryAction } from "../components/pending-edits.ts";
|
|
8
|
+
import type { GridEditing } from "../components/grid-editing.ts";
|
|
9
|
+
export type GridFieldEditHandlers = {
|
|
10
|
+
openMarkdownEditor?: (rowId: string, fieldName: string) => void;
|
|
11
|
+
openFileUploadEditor?: (rowId: string, fieldName: string, type: FieldType) => void;
|
|
12
|
+
openFileArrayUploadEditor?: (rowId: string, fieldName: string, type: FieldType) => void;
|
|
13
|
+
onMobileCellTap?: (rowId: string, fieldName?: string) => boolean;
|
|
14
|
+
onMobileCellEditStart?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export type GridKeyboardHistory = {
|
|
17
|
+
undo?: () => void;
|
|
18
|
+
redo?: () => void;
|
|
19
|
+
};
|
|
20
|
+
export declare function useGridInteractions({ table, orderedIds, visibleFieldNames, displayRows, gridRef, scrollToRow, pending, setDraftRowIds, setEntryRowId, entryRowId, dataRowCount, editing, isMdUp, fieldEdit, selectOnPointerDown, useWindowFillDragListeners, dialogsBlockKeyboard, history, readOnly, isCellEditable, formulaBarOnly, }: {
|
|
21
|
+
table: Table;
|
|
22
|
+
orderedIds: readonly string[];
|
|
23
|
+
visibleFieldNames: readonly string[];
|
|
24
|
+
displayRows: Record<string, unknown>[];
|
|
25
|
+
gridRef: RefObject<HTMLDivElement | null>;
|
|
26
|
+
/** Scrolls a row index into view (the virtualizer counts items, not rows). */
|
|
27
|
+
scrollToRow: (rowIdx: number, options?: {
|
|
28
|
+
align: "start" | "center" | "end" | "auto";
|
|
29
|
+
}) => void;
|
|
30
|
+
pending: GridPendingRefs & {
|
|
31
|
+
pendingDispatch: Dispatch<PendingHistoryAction>;
|
|
32
|
+
canUndoPending: boolean;
|
|
33
|
+
canRedoPending: boolean;
|
|
34
|
+
};
|
|
35
|
+
setDraftRowIds: Dispatch<SetStateAction<string[]>>;
|
|
36
|
+
setEntryRowId: Dispatch<SetStateAction<string>>;
|
|
37
|
+
entryRowId: string;
|
|
38
|
+
dataRowCount: number;
|
|
39
|
+
/** From `useGridEditing`: the inline editor, and the row-preview flush on selection changes. */
|
|
40
|
+
editing: GridEditing;
|
|
41
|
+
isMdUp?: boolean;
|
|
42
|
+
fieldEdit?: GridFieldEditHandlers;
|
|
43
|
+
selectOnPointerDown?: boolean;
|
|
44
|
+
useWindowFillDragListeners?: boolean;
|
|
45
|
+
dialogsBlockKeyboard: boolean;
|
|
46
|
+
history?: GridKeyboardHistory;
|
|
47
|
+
/** Cells select but never edit (the trash view). */
|
|
48
|
+
readOnly?: boolean;
|
|
49
|
+
/** Cells the host can't edit; `readOnly` still overrides. */
|
|
50
|
+
isCellEditable?: (rowId: string, field: Field) => boolean;
|
|
51
|
+
/** Enter, F2 and typing edit in the formula bar, never inline in the cell. */
|
|
52
|
+
formulaBarOnly?: boolean;
|
|
53
|
+
}): {
|
|
54
|
+
selectedIds: Selection;
|
|
55
|
+
setSelectedIds: Dispatch<SetStateAction<Selection>>;
|
|
56
|
+
lastAnchorId: string | null;
|
|
57
|
+
setLastAnchorId: Dispatch<SetStateAction<string | null>>;
|
|
58
|
+
cellSelection: CellSelection | null;
|
|
59
|
+
setCellSelection: Dispatch<SetStateAction<CellSelection | null>>;
|
|
60
|
+
cellSelectionRef: RefObject<CellSelection | null>;
|
|
61
|
+
fillDrag: FillDragState | null;
|
|
62
|
+
selectionDrag: boolean;
|
|
63
|
+
formulaBarFocusRequest: {
|
|
64
|
+
openPicker?: boolean;
|
|
65
|
+
key: number;
|
|
66
|
+
initialChar?: string;
|
|
67
|
+
} | null;
|
|
68
|
+
setFormulaBarFocusRequest: Dispatch<SetStateAction<{
|
|
69
|
+
openPicker?: boolean;
|
|
70
|
+
key: number;
|
|
71
|
+
initialChar?: string;
|
|
72
|
+
} | null>>;
|
|
73
|
+
preferFormulaBarFocusRef: RefObject<number>;
|
|
74
|
+
suppressCellClickUntilRef: RefObject<number>;
|
|
75
|
+
focusCellDom: (rowId: string, fieldName: string) => void;
|
|
76
|
+
beginCellEdit: (coord: CellCoord, opts?: {
|
|
77
|
+
initialChar?: string;
|
|
78
|
+
}) => void;
|
|
79
|
+
appendDraftRow: (fieldName: string) => void;
|
|
80
|
+
navigateSelection: (dRow: number, dCol: number, extend: boolean, appendDraftRowOnLastRow?: boolean, options?: {
|
|
81
|
+
wrapRows?: boolean;
|
|
82
|
+
}) => boolean;
|
|
83
|
+
navigateSelectionFromCell: (coord: CellCoord, direction: -1 | 1) => boolean;
|
|
84
|
+
onCellPointerDown: (e: React.PointerEvent, rowId: string, fieldName: string, type: FieldType) => void;
|
|
85
|
+
onCellClick: (e: React.MouseEvent, rowId: string, fieldName: string) => void;
|
|
86
|
+
onCellDoubleClick: (rowId: string, fieldName: string, type: FieldType) => void;
|
|
87
|
+
onCellKeyDown: (e: Pick<KeyboardEvent, "key" | "preventDefault">, rowId: string, fieldName: string) => void;
|
|
88
|
+
onIdClick: (e: React.MouseEvent, row: Record<string, unknown>) => void;
|
|
89
|
+
onToggleSelectAll: () => void;
|
|
90
|
+
selectAllChecked: boolean;
|
|
91
|
+
selectAllIndeterminate: boolean;
|
|
92
|
+
onRowContextMenu: (e: React.MouseEvent, row: Record<string, unknown>, fieldName?: string) => Selection;
|
|
93
|
+
onFillHandlePointerDown: (e: React.PointerEvent, fieldName: string, sourceRowMin: number, sourceRowMax: number) => void;
|
|
94
|
+
onRowMouseEnter: (rowIdx: number) => void;
|
|
95
|
+
onEditRows: (rows: Record<string, unknown>[], openSingle: (row: Record<string, unknown>) => void, openBatch: () => void) => void;
|
|
96
|
+
onEditSelected: (openSingle: (row: Record<string, unknown>) => void, openBatch: () => void) => void;
|
|
97
|
+
onClearSelection: () => void;
|
|
98
|
+
commitFill: () => void;
|
|
99
|
+
commitFillRef: RefObject<() => void>;
|
|
100
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
+
import { type PendingHistoryAction, type PendingMap } from "../components/pending-edits.ts";
|
|
3
|
+
import type { PendingEditPlan } from "./plan-pending-edits.ts";
|
|
4
|
+
export declare function useGridPendingState({ serverRowById, draftRowIds: _draftRowIds, setDraftRowIds, newRowDefaults, }: {
|
|
5
|
+
serverRowById: Map<string, Record<string, unknown>>;
|
|
6
|
+
draftRowIds: readonly string[];
|
|
7
|
+
setDraftRowIds: Dispatch<SetStateAction<string[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* Values a new row starts from (a group's entry row and drafts). Its first edit copies them
|
|
10
|
+
* into its patch, so a save, a copy and a cleared value all read the patch alone; until then
|
|
11
|
+
* the row is empty.
|
|
12
|
+
*/
|
|
13
|
+
newRowDefaults?: (id: string) => Record<string, unknown> | undefined;
|
|
14
|
+
}): {
|
|
15
|
+
pendingEdits: PendingMap;
|
|
16
|
+
pendingDispatch: Dispatch<PendingHistoryAction>;
|
|
17
|
+
pendingEditsRef: import("react").RefObject<PendingMap>;
|
|
18
|
+
canUndoPending: boolean;
|
|
19
|
+
canRedoPending: boolean;
|
|
20
|
+
changedCellsByRow: Map<string, Set<string>>;
|
|
21
|
+
pendingChangeCount: number;
|
|
22
|
+
pendingCellCount: number;
|
|
23
|
+
runPendingUpdate: (updater: (prev: PendingMap) => PendingMap) => void;
|
|
24
|
+
setCellPending: (rowId: string, fieldName: string, value: unknown) => void;
|
|
25
|
+
resolveCellValue: (rowId: string, fieldName: string) => unknown;
|
|
26
|
+
unsavedRow: (id: string) => Record<string, unknown>;
|
|
27
|
+
startingRow: (id: string) => Record<string, unknown> | undefined;
|
|
28
|
+
setSelectionPending: (fieldName: string, rowIds: readonly string[], value: unknown) => void;
|
|
29
|
+
setCellsPending: (fieldName: string, cells: readonly {
|
|
30
|
+
rowId: string;
|
|
31
|
+
value: unknown;
|
|
32
|
+
}[]) => void;
|
|
33
|
+
clearAllPending: () => () => void;
|
|
34
|
+
clearSavedEdits: ({ updates, insertedFrom }: Extract<PendingEditPlan, {
|
|
35
|
+
status: "ready";
|
|
36
|
+
}>) => void;
|
|
37
|
+
getBaseline: (rowId: string, fieldName: string) => unknown;
|
|
38
|
+
};
|
|
39
|
+
export type GridPendingState = ReturnType<typeof useGridPendingState>;
|
|
40
|
+
/** The pending-state slice grid interactions and the editing coordinator write through. */
|
|
41
|
+
export type GridPendingRefs = Pick<GridPendingState, "pendingEditsRef" | "runPendingUpdate" | "setCellPending" | "setSelectionPending" | "setCellsPending" | "resolveCellValue">;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type CellSelection } from "../components/cell-selection.ts";
|
|
2
|
+
import type { FormulaBarSelectionSummary } from "../components/cell-formula-bar.tsx";
|
|
3
|
+
import { type DisplayValueMap } from "../../../fields/src/index.js";
|
|
4
|
+
import { type Field, type Table } from "../../../shared/src/index.js";
|
|
5
|
+
export declare function useGridSelectionModel({ cellSelection, orderedIds, visibleFieldNames, visibleFields, table, displayRows, pendingEdits, selectionDrag, selectedCount, resolveCellValue, refDisplay, }: {
|
|
6
|
+
cellSelection: CellSelection | null;
|
|
7
|
+
orderedIds: readonly string[];
|
|
8
|
+
visibleFieldNames: readonly string[];
|
|
9
|
+
visibleFields: Field[];
|
|
10
|
+
table: Table;
|
|
11
|
+
displayRows: Record<string, unknown>[];
|
|
12
|
+
pendingEdits: Map<string, Record<string, unknown>>;
|
|
13
|
+
selectionDrag: boolean;
|
|
14
|
+
selectedCount: number;
|
|
15
|
+
resolveCellValue: (rowId: string, fieldName: string) => unknown;
|
|
16
|
+
refDisplay?: Map<string, DisplayValueMap>;
|
|
17
|
+
}): {
|
|
18
|
+
focusCell: import("../index.ts").CellCoord | null;
|
|
19
|
+
canSyncRowToUrl: boolean;
|
|
20
|
+
selectionBounds: import("../index.ts").SelectionBounds | null;
|
|
21
|
+
singleColumnMultiSelect: boolean;
|
|
22
|
+
multiEditCells: import("../index.ts").SelectionCell[];
|
|
23
|
+
multiEditField: Field | null;
|
|
24
|
+
multiEditValueSummary: import("../index.ts").SelectionValueSummary | null;
|
|
25
|
+
focusField: Field | null;
|
|
26
|
+
focusValue: unknown;
|
|
27
|
+
formulaBarSelectionSummary: FormulaBarSelectionSummary | null;
|
|
28
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import { type Table } from "../../../shared/src/index.js";
|
|
3
|
+
import type { useColumnVisibility } from "../components/use-column-visibility.ts";
|
|
4
|
+
import { type GridItems } from "../lib/grid-items.ts";
|
|
5
|
+
/** Which columns are hidden; the route owns the source (local storage, or a saved view). */
|
|
6
|
+
export type ColumnVisibility = ReturnType<typeof useColumnVisibility>;
|
|
7
|
+
/**
|
|
8
|
+
* Columns and the virtualized body of a grid. The virtualizer counts items (`items`, or one per
|
|
9
|
+
* row when the grid has no groups); `scrollToRow` maps a row index to its item.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useGridTableLayout({ table, tableKey, visibility, rowCount, items: grouped, gridRef, }: {
|
|
12
|
+
table: Table;
|
|
13
|
+
tableKey: string;
|
|
14
|
+
visibility: ColumnVisibility;
|
|
15
|
+
rowCount: number;
|
|
16
|
+
items?: GridItems;
|
|
17
|
+
gridRef: RefObject<HTMLDivElement | null>;
|
|
18
|
+
}): {
|
|
19
|
+
scrollToRow: (rowIdx: number, options?: {
|
|
20
|
+
align: "start" | "center" | "end" | "auto";
|
|
21
|
+
}) => void;
|
|
22
|
+
layout: {
|
|
23
|
+
colWidths: Record<string, number>;
|
|
24
|
+
startResize: (field: string, e: React.PointerEvent<HTMLElement>, fieldMeta?: import("../../../shared/src/index.js").Field) => void;
|
|
25
|
+
autoSizeColumn: (field: string, fieldMeta: import("../../../shared/src/index.js").Field | undefined, table: HTMLElement | null) => void;
|
|
26
|
+
toggleColumn: (column: string) => void;
|
|
27
|
+
visibleFields: import("../../../shared/src/index.js").Field[];
|
|
28
|
+
visibleFieldNames: string[];
|
|
29
|
+
showIdColumn: boolean;
|
|
30
|
+
columnMenuItems: {
|
|
31
|
+
name: string;
|
|
32
|
+
label: string;
|
|
33
|
+
hidden: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
items: readonly import("../index.ts").GridItem[];
|
|
36
|
+
virtualItems: import("@tanstack/virtual-core").VirtualItem[];
|
|
37
|
+
totalSize: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delay before mounting the preview drawer after row selection.
|
|
3
|
+
* Long enough that a double-click's second pointerdown still hits the same cell
|
|
4
|
+
* (opening the drawer on the first click shrinks the grid and steals the target).
|
|
5
|
+
* The seam island is an h-0 overlay and can show selection immediately.
|
|
6
|
+
* Shorter than a noticeable pause on a single click.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SELECTION_CHROME_OPEN_DELAY_MS = 280;
|
|
9
|
+
/** `true` only after `active` has stayed true for `delayMs`. Drops immediately when `active` is false. */
|
|
10
|
+
export declare function useTrueAfterDelay(active: boolean, delayMs: number): boolean;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export { DataGridTable, type DataGridTableRowController } from "./components/data-grid-table.tsx";
|
|
2
|
+
export { GridBodyRow, type GridBodyRowActionsCapability, type GridBodyRowController, type GridBodyRowFileDropCapability, type GridBodyRowGuestInteraction, type GridBodyRowInteraction, type GridBodyRowProps, type GridBodyRowStudioInteraction, } from "./components/grid-body-row.tsx";
|
|
3
|
+
export { GridToolbar } from "./components/grid-toolbar.tsx";
|
|
4
|
+
export { filterBuilderOpener, GridFilterSearch, GridFilterSearchProvider, useGridFilterChips, type SearchSuggestion, type SearchSuggestions, } from "./components/grid-filter-search.tsx";
|
|
5
|
+
export { ColumnFilterButton, type ColumnFiltersConfig, } from "./components/column-filter-popover.tsx";
|
|
6
|
+
export { type FieldCounts, FieldConditionEditor, fieldConditionKind, } from "./components/field-condition-editor.tsx";
|
|
7
|
+
export { filterStateKey, filtersActive } from "./lib/column-filter.ts";
|
|
8
|
+
export { DisplaySearchScopeNotice } from "./components/display-search-scope-notice.tsx";
|
|
9
|
+
export { displaySearchScopeMessage } from "./lib/display-search-scope.ts";
|
|
10
|
+
export { QueryPlanBanner } from "./components/query-plan-banner.tsx";
|
|
11
|
+
export { IndexSuggestionBanner } from "./components/index-suggestion-banner.tsx";
|
|
12
|
+
export { QueryPredicateBuilder, useQueryEditorState, } from "./components/query-predicate-builder.tsx";
|
|
13
|
+
export { queryEditorDraftIsCommittable } from "./lib/query-editor-draft.ts";
|
|
14
|
+
export { clearChipableQueryConstraints } from "./lib/format-query-chips.ts";
|
|
15
|
+
export { GridActionBar, type GridActionBarProps } from "./components/grid-action-bar.tsx";
|
|
16
|
+
export { GridSeamIsland, type GridSeamIslandProps } from "./components/grid-seam-island.tsx";
|
|
17
|
+
export { SELECTION_CHROME_OPEN_DELAY_MS, useTrueAfterDelay } from "./hooks/use-true-after-delay.ts";
|
|
18
|
+
export { CellFormulaBar, type FormulaBarSelectionSummary } from "./components/cell-formula-bar.tsx";
|
|
19
|
+
export { CellRenderer } from "./components/cell-renderer.tsx";
|
|
20
|
+
export { RowPreviewDrawer } from "./components/row-preview-drawer.tsx";
|
|
21
|
+
export { RowDetailDialog } from "./components/row-detail-dialog.tsx";
|
|
22
|
+
export { RowPreviewContent, RowPreviewMultiContent, primaryMarkdownFieldForTable, } from "./components/row-preview-content.tsx";
|
|
23
|
+
export { TableCellOverlays } from "./components/table-cell-overlays.tsx";
|
|
24
|
+
export { KeyboardShortcutsOverlay, useModifierHeld, } from "./components/keyboard-shortcuts-overlay.tsx";
|
|
25
|
+
export { useGridEditing, useGridEditState, type CommitOutcome, type DraftTarget, type GridEditPending, type GridEditing, type RowPreviewPort, } from "./components/grid-editing.ts";
|
|
26
|
+
export { DEFAULT_HIDDEN_COLUMNS, useColumnVisibility } from "./components/use-column-visibility.ts";
|
|
27
|
+
export { useColumnWidths } from "./components/use-column-widths.ts";
|
|
28
|
+
export { useUndoRedo, buildInversePatches, type UndoEntryInput, } from "./components/use-undo-redo.ts";
|
|
29
|
+
export { planPendingEdits, type PendingEditPlan } from "./hooks/plan-pending-edits.ts";
|
|
30
|
+
export { deleteConfirmCopy } from "./components/delete-confirm-copy.ts";
|
|
31
|
+
export { performGridRowDelete } from "./components/perform-grid-row-delete.ts";
|
|
32
|
+
export { resolveContextMenuSelection } from "./components/context-menu-selection.ts";
|
|
33
|
+
export { computeFillAssignments, type FillDragState } from "./components/fill-handle.ts";
|
|
34
|
+
export { createDraftRowId, createEntryRowId, isDraftRowId, isEntryRowId, isUnsavedRowId, rowScope, scopedEntryRowId, } from "./components/draft-rows.ts";
|
|
35
|
+
export { pendingHistoryReducer, type PendingHistoryAction, type PendingMap, } from "./components/pending-edits.ts";
|
|
36
|
+
export { BODY_ROW_CLASS, BODY_ROW_CELL_CLASS, BODY_CELL_CHROME_CLASS, BODY_CELL_INNER_CLASS, BODY_ROW_HEIGHT_PX, headerLabelMinWidthPx, toolbarColumnWidthStyle, } from "./components/grid-body-layout.ts";
|
|
37
|
+
export { isOwnEvent } from "./components/grid-event-utils.ts";
|
|
38
|
+
export { type CellCoord, type EditingCell, type CellSelection, type SelectionBounds, type SelectionValueSummary, coordsEqual, enumerateSelectionCells, extendSelection, getSelectionBounds, isFocusCell, isInSelection, isSingleColumnSelection, deriveMultiColumnEditSelection, type MultiColumnEditSelection, moveSelection, moveSelectionSkipping, rowIdsInBounds, rowNumberFor, selectCell, selectionEdgeFlags, fieldValueSummaryForRows, selectionValueSummary, type SelectionCell, } from "./components/cell-selection.ts";
|
|
39
|
+
export { type Selection, applyRowCheckboxSelection, applyRowClickSelection, clear, nextSelectedIdsForKeyboardCellMove, primaryPreviewRowId, selectOnly, selectRange, selectedDisplayRows, selectedIdsEqual, toggle, } from "./components/selection.ts";
|
|
40
|
+
export { useRowPreviewTitle } from "./lib/use-row-preview-title.ts";
|
|
41
|
+
export { useGridPendingState, type GridPendingState } from "./hooks/use-grid-pending-state.ts";
|
|
42
|
+
export { useGridSelectionModel } from "./hooks/use-grid-selection-model.ts";
|
|
43
|
+
export { useGridInteractions, type GridFieldEditHandlers, type GridKeyboardHistory, } from "./hooks/use-grid-interactions.ts";
|
|
44
|
+
export { type ColumnVisibility, useGridTableLayout } from "./hooks/use-grid-table-layout.ts";
|
|
45
|
+
export { gridItems, loadingRow, type GridEntry, type GridGroupItem, type GridItem, type GridItems, type GridMoreItem, } from "./lib/grid-items.ts";
|
|
46
|
+
export { AddMenu, GridSortGroupControls, RemoveButton } from "./components/grid-sort-group.tsx";
|
|
47
|
+
export { TABLE_COLOR_DETAILS, TableColorMarker } from "./components/table-color-marker.tsx";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type Condition, type GridQuery } from "../../../shared/src/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* `pred` is one of the baseline's predicates: same field, operator and value (membership lists
|
|
4
|
+
* compared as sets). The baseline is a saved view's own filter, which is not highlighted as
|
|
5
|
+
* filtered (plan 097 slice 9).
|
|
6
|
+
*/
|
|
7
|
+
export declare function predicateInBaseline(pred: Condition, baseline?: GridQuery | null): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Predicates that would show as a chip and are not in the baseline (a view's own filter, plan
|
|
10
|
+
* 097 slice 9); without one, every such predicate.
|
|
11
|
+
*/
|
|
12
|
+
export declare function changedPredicates(query: GridQuery | null, baseline?: GridQuery | null): Condition[];
|
|
13
|
+
/**
|
|
14
|
+
* A predicate chip outside the baseline, or a display search, is active ("filtered" badge,
|
|
15
|
+
* no-match state).
|
|
16
|
+
*/
|
|
17
|
+
export declare function filtersActive(query: GridQuery | null, displayQuery: string, baseline?: GridQuery | null): boolean;
|
|
18
|
+
/** Changes whenever filters, sort or display search change (announcements, row-lifecycle). */
|
|
19
|
+
export declare function filterStateKey(query: GridQuery | null, displayQuery: string): string;
|
|
20
|
+
export type DatePreset = "today" | "last7Days" | "thisMonth";
|
|
21
|
+
export declare const DATE_PRESETS: readonly {
|
|
22
|
+
preset: DatePreset;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
25
|
+
/** Inclusive epoch-ms window in the viewer's local time zone (stored absolute, never rolling). */
|
|
26
|
+
export declare function datePresetRange(preset: DatePreset, now: Date): {
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
};
|
|
30
|
+
export declare function matchingDatePreset(value: {
|
|
31
|
+
min?: unknown;
|
|
32
|
+
max?: unknown;
|
|
33
|
+
}, now: Date): DatePreset | null;
|
|
34
|
+
/** Result line for the toolbar and live region; loaded rows only — there is no total count. */
|
|
35
|
+
export declare function filterResultLine({ count, canLoadMore, filtered, best, wordsOnly, }: {
|
|
36
|
+
count: number;
|
|
37
|
+
canLoadMore: boolean;
|
|
38
|
+
filtered: boolean;
|
|
39
|
+
/** The `count` rows are a Meaning search's hits, at most this many (plan 106 D16). */
|
|
40
|
+
best?: number;
|
|
41
|
+
/** A search that would use Meaning matched words only (plan 106 slice 15). */
|
|
42
|
+
wordsOnly?: boolean;
|
|
43
|
+
}): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Condition, type GridQuery, type Predicate, type Table } from "../../../shared/src/index.js";
|
|
2
|
+
/** A chip's text is its `title`; the chip truncates it with CSS and shows it whole on hover. */
|
|
3
|
+
export type QueryChip = {
|
|
4
|
+
kind: "predicate";
|
|
5
|
+
index: number;
|
|
6
|
+
title: string;
|
|
7
|
+
} | {
|
|
8
|
+
kind: "displaySearch";
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
export type DisplayLabelLookup = (table: string, documentId: string) => string | null;
|
|
12
|
+
export declare function formatPredicateChipLabel(table: Table, pred: Predicate, resolveDisplay?: DisplayLabelLookup): string;
|
|
13
|
+
/**
|
|
14
|
+
* A top-level item as text: a predicate as its chip, a group as "(A OR B)" or "((A AND B) OR C)"
|
|
15
|
+
* (bracketed, as the chips beside it are ANDed), and a group on one field as
|
|
16
|
+
* "Genre: Drama OR (Empty)".
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatConditionLabel(table: Table, condition: Condition, resolveDisplay?: DisplayLabelLookup): string;
|
|
19
|
+
/** Collect id-field document ids from chipable predicates for display-value batching. */
|
|
20
|
+
export declare function collectPredicateRefRequests(table: Table, query: GridQuery | null): {
|
|
21
|
+
table: string;
|
|
22
|
+
ids: string[];
|
|
23
|
+
}[];
|
|
24
|
+
export declare function buildQueryChips(table: Table, query: GridQuery | null, displayQuery: string, resolveDisplay?: DisplayLabelLookup): QueryChip[];
|
|
25
|
+
/** Remove predicates and filter hints; keep sort and groups only. */
|
|
26
|
+
export declare function clearChipableQueryConstraints<Q extends GridQuery>(query: Q | null): Q | null;
|
|
27
|
+
/** Drop the top-level item at `index`; null when nothing (not even sort) is left. */
|
|
28
|
+
export declare function removePredicateAt<Q extends GridQuery>(query: Q | null, index: number): Q | null;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The grid body as a virtualized item list (plan 098): rows, group header rows and "load more"
|
|
3
|
+
* rows. Selection, fill and keyboard work on row indexes (`orderedIds`); only the virtualizer and
|
|
4
|
+
* the body renderer see item indexes, mapped through {@link GridItems.itemOfRow}.
|
|
5
|
+
*/
|
|
6
|
+
/** Marks a row listed before its values arrived: its cells show skeletons and don't edit. */
|
|
7
|
+
export declare const LOADING_ROW: unique symbol;
|
|
8
|
+
export declare const loadingRow: (id: string) => Record<string, unknown>;
|
|
9
|
+
/** A group header: level (`depth`), the field grouped by, the group's label and row count. */
|
|
10
|
+
export type GridGroupItem = {
|
|
11
|
+
kind: "group";
|
|
12
|
+
/** Unique among the items. */
|
|
13
|
+
key: string;
|
|
14
|
+
/** 0 for the top level. */
|
|
15
|
+
depth: number;
|
|
16
|
+
field: string;
|
|
17
|
+
label: string;
|
|
18
|
+
count: number;
|
|
19
|
+
expanded: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** "Load more" inside a group; `depth` is its indentation (the header above sits at `depth - 1`). */
|
|
22
|
+
export type GridMoreItem = {
|
|
23
|
+
kind: "more";
|
|
24
|
+
key: string;
|
|
25
|
+
depth: number;
|
|
26
|
+
label: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A `repeat` lists a row again (a document in two tag groups): it shows row `rowIdx` read-only;
|
|
30
|
+
* the row's first listing owns the row index.
|
|
31
|
+
*/
|
|
32
|
+
export type GridItem = {
|
|
33
|
+
kind: "row";
|
|
34
|
+
rowIdx: number;
|
|
35
|
+
repeat?: true;
|
|
36
|
+
} | GridGroupItem | GridMoreItem;
|
|
37
|
+
/**
|
|
38
|
+
* What {@link gridItems} lays out: rows carry the row itself. An `ungrouped` row (a draft) sits
|
|
39
|
+
* below every group: it closes the open headers.
|
|
40
|
+
*/
|
|
41
|
+
export type GridEntry<R> = {
|
|
42
|
+
kind: "row";
|
|
43
|
+
row: R;
|
|
44
|
+
ungrouped?: true;
|
|
45
|
+
} | GridGroupItem | GridMoreItem;
|
|
46
|
+
export type GridItems = {
|
|
47
|
+
items: readonly GridItem[];
|
|
48
|
+
/** Item index of each row index. */
|
|
49
|
+
itemOfRow: readonly number[];
|
|
50
|
+
/** Per item, the item index of the group header it sits under (-1: none). */
|
|
51
|
+
headerOf: readonly number[];
|
|
52
|
+
};
|
|
53
|
+
/** Rows only: item `i` is row `i`. */
|
|
54
|
+
export declare function rowGridItems(count: number): GridItems;
|
|
55
|
+
/**
|
|
56
|
+
* Rows numbered in list order, skipping headers and "load more" rows. A row whose `idOf` was
|
|
57
|
+
* listed before is a repeat of that row, so `rows` holds each row once.
|
|
58
|
+
*/
|
|
59
|
+
export declare function gridItems<R>(entries: readonly GridEntry<R>[], idOf: (row: R) => string): GridItems & {
|
|
60
|
+
rows: R[];
|
|
61
|
+
};
|
|
62
|
+
/** `range` plus the headers the first visible item sits under, so they can stick. */
|
|
63
|
+
export declare function withStickyHeaders(indexes: readonly number[], startIndex: number, headerOf: readonly number[]): number[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Condition, type Query } from "../../../shared/src/index.js";
|
|
2
|
+
/** True when a condition has a value to apply and show: a group when any predicate in it does. */
|
|
3
|
+
export declare function predicateHasMeaningfulValue(pred: Condition): boolean;
|
|
4
|
+
/** `conditions` without predicates that have no value yet, nor the groups that leaves empty. */
|
|
5
|
+
export declare function meaningfulConditions(conditions: readonly Condition[]): Condition[];
|
|
6
|
+
/** Comma-separated `in` operand text → trimmed, non-empty values. */
|
|
7
|
+
export declare function parseInListText(text: string): string[];
|
|
8
|
+
export declare function formatInListText(values: readonly unknown[]): string;
|
|
9
|
+
/**
|
|
10
|
+
* The part of a draft that applies: rows without a value, and groups left empty, are dropped;
|
|
11
|
+
* null when nothing is left.
|
|
12
|
+
*/
|
|
13
|
+
export declare function committedPart(query: Query): Query | null;
|
|
14
|
+
/** Whether a draft is finished: no row without a value and no empty group, at any depth. */
|
|
15
|
+
export declare function queryEditorDraftIsCommittable(query: Query): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ROW_PREVIEW_COLLAPSED_STORAGE_PREFIX = "studio.rowPreviewCollapsed.";
|
|
2
|
+
export declare function rowPreviewCollapsedStorageKey(tableName: string): string;
|
|
3
|
+
export declare function readRowPreviewCollapsed(tableName: string): boolean;
|
|
4
|
+
export declare function writeRowPreviewCollapsed(tableName: string, collapsed: boolean): void;
|
|
5
|
+
export declare function useRowPreviewCollapsed(tableName: string): {
|
|
6
|
+
collapsed: boolean;
|
|
7
|
+
toggle: () => void;
|
|
8
|
+
expand: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRowPreviewTitle(tableName: string, rowId: string | null, fallback?: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Table } from "../../../shared/src/index.js";
|
|
2
|
+
interface Props {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
table: Table;
|
|
6
|
+
count: number;
|
|
7
|
+
onSubmit: (patch: Record<string, unknown>) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function BatchEditSheet({ open, onOpenChange, table, count, onSubmit }: Props): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type MutableRefObject } from "react";
|
|
2
|
+
import { type FieldType } from "../../../shared/src/index.js";
|
|
3
|
+
import type { AssetUploadTarget } from "../fields-data-adapter.ts";
|
|
4
|
+
interface Props {
|
|
5
|
+
/** Top-level image/file field receiving uploads from this cell editor. */
|
|
6
|
+
uploadTarget?: AssetUploadTarget;
|
|
7
|
+
type: FieldType;
|
|
8
|
+
value: unknown;
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
/** Element used as the anchor for the popover (complex types only). */
|
|
11
|
+
anchor: React.ReactNode;
|
|
12
|
+
onCommit: (value: unknown) => void;
|
|
13
|
+
onCommitAndNavigate?: (value: unknown, direction: -1 | 1) => void;
|
|
14
|
+
onCancel: () => void;
|
|
15
|
+
/** Update pending edits without exiting inline edit (reference fields). */
|
|
16
|
+
onPendingChange?: (value: unknown) => void;
|
|
17
|
+
/** The draft as it is typed (inline primitives), for display elsewhere; `null` once the editor closes. */
|
|
18
|
+
onDraftChange?: (draft: {
|
|
19
|
+
value: unknown;
|
|
20
|
+
} | null) => void;
|
|
21
|
+
/** Parent commits before navigation; same contract as formula bar flushRef. */
|
|
22
|
+
flushRef?: MutableRefObject<(() => void) | null>;
|
|
23
|
+
/** First keystroke when opening via type-to-edit (replaces cell value). */
|
|
24
|
+
initialChar?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function CellEditor(props: Props): import("react").JSX.Element;
|
|
27
|
+
export declare const errorInputClass = "ring-1 ring-inset ring-destructive";
|
|
28
|
+
export declare const errorWrapperClass = "rounded-md ring-1 ring-destructive";
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** Epoch ms; date-only values are local midnight. */
|
|
3
|
+
value: number | undefined;
|
|
4
|
+
/** Every new value: typed in the inputs or confirmed in the picker. */
|
|
5
|
+
onChange: (ms: number | undefined) => void;
|
|
6
|
+
/** The picker confirmed the value `onChange` just carried (Apply, a day click without time, Clear). */
|
|
7
|
+
onApply?: () => void;
|
|
8
|
+
/** Edit a time of day too; the picker then confirms with Apply instead of on day click. */
|
|
9
|
+
withTime?: boolean;
|
|
10
|
+
/** Offer Clear in the picker. */
|
|
11
|
+
optional?: boolean;
|
|
12
|
+
inputId?: string;
|
|
13
|
+
/** Field chrome for the typeable inputs. */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Chip chrome: the inputs hug their content. */
|
|
16
|
+
contentSized?: boolean;
|
|
17
|
+
/** Borderless chrome (grid cell, formula bar): a filled date hugs its digits so the time sits beside it. */
|
|
18
|
+
flush?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function DateTimeInput({ value, onChange, onApply, withTime, optional, inputId, className, contentSized, flush, }: Props): import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Time shown when a picker opens on an empty datetime field. */
|
|
2
|
+
export declare const EMPTY_TIME_INPUT_VALUE = "00:00";
|
|
3
|
+
/** Value for `<input type="time">` from epoch ms (local time, minute precision). */
|
|
4
|
+
export declare function timeInputValue(ms: number): string;
|
|
5
|
+
/** Local midnight of the day containing `ms`. */
|
|
6
|
+
export declare function startOfLocalDay(ms: number): Date;
|
|
7
|
+
/** Combine a picked day with an `HH:mm` time into epoch ms; null when the time is incomplete. */
|
|
8
|
+
export declare function combineDayAndTime(day: Date, time: string): number | null;
|
|
9
|
+
/**
|
|
10
|
+
* The picker's unapplied datetime: `day` at `time`, or `opened` itself while they still show
|
|
11
|
+
* its minute, so an untouched value keeps its seconds.
|
|
12
|
+
*/
|
|
13
|
+
export declare function draftDateTime(day: Date, time: string, opened: number | undefined): number | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Flat chrome for inputs embedded in the cell formula bar (no border/shadow). */
|
|
2
|
+
export declare const INLINE_FIELD_INPUT_CLASS = "h-8 rounded-none border-0 bg-transparent px-0 shadow-none focus:border-0 focus:ring-0 focus:ring-offset-0 focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0";
|
|
3
|
+
export declare const INLINE_SELECT_TRIGGER_CLASS = "h-8 rounded-none border-0 bg-transparent shadow-none focus:ring-0 focus-visible:ring-0";
|
|
4
|
+
export declare const INLINE_MULTI_ID_PICKER_CLASS = "min-h-8 rounded-none border-0 bg-transparent px-0 py-0 shadow-none focus-within:ring-0 focus-within:ring-offset-0";
|
|
5
|
+
/** Formula-bar array item: borderless, content-sized, one line inside a chip. */
|
|
6
|
+
export declare const CHIP_FIELD_INPUT_CLASS = "h-6 min-w-[3ch] max-w-[13rem] rounded-none border-0 bg-transparent px-0 text-xs shadow-none [field-sizing:content] focus:border-0 focus:ring-0 focus:ring-offset-0 focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0";
|
|
7
|
+
export declare const CHIP_SELECT_TRIGGER_CLASS = "h-6 w-auto rounded-none border-0 bg-transparent px-0 text-xs shadow-none focus:ring-0 focus-visible:ring-0";
|
|
8
|
+
/** Date inputs stay typeable, but our popover replaces the browser's own picker. */
|
|
9
|
+
export declare const NATIVE_DATE_PICKER_HIDDEN_CLASS = "[&::-webkit-calendar-picker-indicator]:hidden";
|
|
10
|
+
/** Number chips hide the spinner so the chip hugs the digits. */
|
|
11
|
+
export declare const CHIP_NUMBER_INPUT_CLASS = "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none";
|