viewkitjs 0.31.0 → 0.33.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/CHANGELOG.md +198 -0
- package/MIGRATION.md +40 -6
- package/README.md +1 -1
- package/fields/dist/index.d.ts +1 -1
- package/fields/dist/index.js +1 -1
- package/fields/dist/query/evaluate.d.ts +7 -0
- package/fields/dist/query/exact-number.d.ts +8 -2
- package/fields/dist/query/exact-number.js +14 -1
- package/fields/dist/query/index.d.ts +2 -0
- package/fields/dist/query/index.js +2 -0
- package/fields/dist/query/list-request.d.ts +148 -0
- package/fields/dist/query/list-request.js +125 -0
- package/fields/dist/query/saved-view.d.ts +15 -0
- package/fields/dist/query/saved-view.js +11 -0
- package/fields/dist/query/settings.d.ts +9 -0
- package/fields/dist/query/settings.js +9 -0
- package/fields/dist/query/sort.js +13 -10
- package/fields/dist/registry.js +5 -1
- package/fields/dist/types.d.ts +4 -1
- package/fields/dist/zod.d.ts +5 -0
- package/fields/dist/zod.js +10 -1
- package/fields/docs/guides/contact-values.md +12 -0
- package/fields/docs/guides/field-types.md +1 -1
- package/fields/docs/guides/queries.md +3 -1
- package/fields/docs/reference/fields.md +1 -0
- package/fields/docs/reference/query.md +66 -0
- package/package.json +5 -1
- package/postgres/README.md +1 -0
- package/postgres/dist/check.js +4 -1
- package/postgres/dist/definitions/formula-forms.js +3 -1
- package/postgres/dist/definitions/money.js +2 -1
- package/postgres/dist/handler.d.ts +53 -0
- package/postgres/dist/handler.js +211 -0
- package/postgres/dist/ids.d.ts +1 -1
- package/postgres/dist/ids.js +19 -1
- package/postgres/dist/index.d.ts +1 -0
- package/postgres/dist/index.js +1 -0
- package/postgres/dist/limits.d.ts +3 -1
- package/postgres/dist/limits.js +1 -1
- package/postgres/dist/list-fields.d.ts +10 -0
- package/postgres/dist/list-fields.js +36 -0
- package/postgres/dist/page.js +6 -3
- package/postgres/dist/readable.d.ts +4 -0
- package/postgres/dist/readable.js +4 -0
- package/postgres/dist/refusals.d.ts +9 -2
- package/postgres/dist/refusals.js +6 -0
- package/postgres/dist/rules.d.ts +15 -1
- package/postgres/dist/rules.js +16 -0
- package/postgres/dist/sort.js +7 -2
- package/postgres/docs/guides/definitions.md +1 -1
- package/postgres/docs/guides/field-map.md +3 -3
- package/postgres/docs/guides/list-handler.md +99 -0
- package/postgres/docs/index.md +1 -0
- package/postgres/docs/reference/definitions.md +1 -1
- package/postgres/docs/reference/postgres.md +12 -4
- package/views/README.md +2 -2
- package/views/dist/atoms/RowMenu.d.ts +7 -0
- package/views/dist/atoms/RowMenu.js +18 -16
- package/views/dist/atoms/ToolbarButton.d.ts +1 -1
- package/views/dist/atoms/ToolbarButton.js +4 -3
- package/views/dist/atoms/carried.d.ts +5 -0
- package/views/dist/atoms/carried.js +7 -0
- package/views/dist/atoms/frame-parts.d.ts +6 -0
- package/views/dist/atoms/frame-parts.js +15 -0
- package/views/dist/atoms/types.d.ts +19 -7
- package/views/dist/cells/cell-title.d.ts +3 -1
- package/views/dist/cells/cell-title.js +2 -2
- package/views/dist/cells/cell-values.js +2 -2
- package/views/dist/contract.d.ts +56 -11
- package/views/dist/contract.js +148 -0
- package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
- package/views/dist/controls/atoms.d.ts +2 -0
- package/views/dist/controls/atoms.js +2 -0
- package/views/dist/controls/avatar/avatar.d.ts +3 -3
- package/views/dist/controls/avatar/avatar.js +1 -1
- package/views/dist/controls/avatar/tokens.d.ts +44 -0
- package/views/dist/controls/avatar/tokens.js +11 -0
- package/views/dist/controls/avatar.css +22 -5
- package/views/dist/controls/button/map-button.js +2 -0
- package/views/dist/controls/checkbox/checkbox.d.ts +3 -2
- package/views/dist/controls/checkbox/checkbox.js +2 -2
- package/views/dist/controls/choice/tokens.d.ts +0 -4
- package/views/dist/controls/choice/tokens.js +0 -1
- package/views/dist/controls/choice.css +3 -3
- package/views/dist/controls/compound-editor/compound-editor.d.ts +1 -1
- package/views/dist/controls/compound-editor/name-parts.js +4 -4
- package/views/dist/controls/compound-editor/place-parts.js +19 -19
- package/views/dist/controls/compound-editor/range-parts.js +14 -14
- package/views/dist/controls/compound-editor/row.d.ts +3 -1
- package/views/dist/controls/compound-editor/row.js +2 -2
- package/views/dist/controls/controls.d.ts +8 -0
- package/views/dist/controls/controls.js +12 -2
- package/views/dist/controls/customize/customize.js +37 -35
- package/views/dist/controls/customize/map-customize-body.d.ts +2 -0
- package/views/dist/controls/customize/map-customize-body.js +5 -1
- package/views/dist/controls/date-editor/date-days.js +2 -2
- package/views/dist/controls/date-editor/date-editor.js +18 -18
- package/views/dist/controls/date-editor/date-parts.js +6 -6
- package/views/dist/controls/date-editor/map-calendar.js +1 -1
- package/views/dist/controls/date-editor.css +2 -2
- package/views/dist/controls/field/field.d.ts +22 -4
- package/views/dist/controls/field/field.js +63 -5
- package/views/dist/controls/field/tokens.d.ts +4 -0
- package/views/dist/controls/field/tokens.js +1 -0
- package/views/dist/controls/field.css +41 -16
- package/views/dist/controls/filter-editor/block.d.ts +2 -2
- package/views/dist/controls/filter-editor/block.js +5 -5
- package/views/dist/controls/filter-editor/filter-editor.js +31 -33
- package/views/dist/controls/filter-editor/how.d.ts +3 -1
- package/views/dist/controls/filter-editor/map-filter-body.d.ts +1 -0
- package/views/dist/controls/filter-editor/map-filter-body.js +7 -3
- package/views/dist/controls/filter-editor/map-rules.js +1 -1
- package/views/dist/controls/filter-editor/parts.js +2 -1
- package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
- package/views/dist/controls/glyphs/glyphs.js +173 -0
- package/views/dist/controls/group-editor/group-editor.js +15 -13
- package/views/dist/controls/index.d.ts +4 -1
- package/views/dist/controls/index.js +3 -1
- package/views/dist/controls/input/input.js +6 -3
- package/views/dist/controls/input/map-input.js +2 -0
- package/views/dist/controls/input/tokens.d.ts +4 -0
- package/views/dist/controls/input/tokens.js +1 -0
- package/views/dist/controls/input.css +31 -3
- package/views/dist/controls/internal/editor-parts.js +1 -1
- package/views/dist/controls/internal/icons.js +10 -0
- package/views/dist/controls/internal/keep-focus.d.ts +2 -0
- package/views/dist/controls/internal/keep-focus.js +17 -0
- package/views/dist/controls/internal/map-panel-controls.d.ts +8 -0
- package/views/dist/controls/internal/map-panel-controls.js +20 -0
- package/views/dist/controls/internal/panel-controls.d.ts +50 -0
- package/views/dist/controls/internal/panel-controls.js +197 -0
- package/views/dist/controls/internal/part-slot.d.ts +12 -0
- package/views/dist/controls/internal/part-slot.js +5 -0
- package/views/dist/controls/internal/watch-frame.d.ts +2 -0
- package/views/dist/controls/internal/watch-frame.js +33 -0
- package/views/dist/controls/links-editor/links-editor.d.ts +1 -1
- package/views/dist/controls/links-editor/links-editor.js +27 -27
- package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
- package/views/dist/controls/markdown/map-markdown.js +5 -0
- package/views/dist/controls/menu/map-menu.d.ts +2 -2
- package/views/dist/controls/menu/map-menu.js +15 -12
- package/views/dist/controls/menu/menu.d.ts +2 -0
- package/views/dist/controls/menu/menu.js +3 -3
- package/views/dist/controls/menu-list/menu-list.d.ts +17 -4
- package/views/dist/controls/menu-list/menu-list.js +27 -25
- package/views/dist/controls/modal/modal.js +5 -1
- package/views/dist/controls/notice/notice.d.ts +3 -1
- package/views/dist/controls/notice/notice.js +2 -2
- package/views/dist/controls/number-editor/number-editor.d.ts +1 -1
- package/views/dist/controls/number-editor/number-editor.js +13 -13
- package/views/dist/controls/number-field/number-field.js +5 -3
- package/views/dist/controls/pane/pane.d.ts +4 -2
- package/views/dist/controls/pane/pane.js +6 -5
- package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
- package/views/dist/controls/phone-header/header-bar.js +2 -2
- package/views/dist/controls/phone-header.css +11 -1
- package/views/dist/controls/picker/map-picker.js +3 -0
- package/views/dist/controls/picker/picker.d.ts +16 -0
- package/views/dist/controls/picker/picker.js +61 -40
- package/views/dist/controls/picker/rows.d.ts +4 -0
- package/views/dist/controls/picker.css +2 -0
- package/views/dist/controls/popover/map-popover.d.ts +1 -1
- package/views/dist/controls/popover/map-popover.js +4 -2
- package/views/dist/controls/popover/popover.js +2 -1
- package/views/dist/controls/quick-filters/quick-filters.js +4 -4
- package/views/dist/controls/radio/radio.d.ts +8 -3
- package/views/dist/controls/radio/radio.js +22 -5
- package/views/dist/controls/radio/tokens.d.ts +44 -0
- package/views/dist/controls/radio/tokens.js +11 -0
- package/views/dist/controls/radio.css +79 -1
- package/views/dist/controls/select/map-select.d.ts +3 -0
- package/views/dist/controls/select/map-select.js +8 -0
- package/views/dist/controls/select/select.d.ts +7 -0
- package/views/dist/controls/select/select.js +12 -6
- package/views/dist/controls/select/tokens.d.ts +8 -0
- package/views/dist/controls/select/tokens.js +2 -0
- package/views/dist/controls/select.css +17 -0
- package/views/dist/controls/setting-row/looks.d.ts +1 -1
- package/views/dist/controls/setting-row/looks.js +9 -4
- package/views/dist/controls/setting-row/setting-row.d.ts +45 -10
- package/views/dist/controls/setting-row/setting-row.js +82 -15
- package/views/dist/controls/setting-row/tokens.d.ts +74 -2
- package/views/dist/controls/setting-row/tokens.js +19 -1
- package/views/dist/controls/setting-row.css +135 -14
- package/views/dist/controls/sheet/bottom-sheet.d.ts +14 -2
- package/views/dist/controls/sheet/bottom-sheet.js +6 -3
- package/views/dist/controls/sheet/map-sheet.js +1 -1
- package/views/dist/controls/sheet.css +4 -1
- package/views/dist/controls/sort-editor/map-sort-body.d.ts +1 -0
- package/views/dist/controls/sort-editor/map-sort-body.js +7 -3
- package/views/dist/controls/sort-editor/sort-editor.js +25 -26
- package/views/dist/controls/sort-editor.css +13 -2
- package/views/dist/controls/switch-row/tokens.d.ts +0 -12
- package/views/dist/controls/switch-row/tokens.js +0 -3
- package/views/dist/controls/switch-row.css +3 -7
- package/views/dist/controls/switch.css +17 -7
- package/views/dist/controls/tag/tag.d.ts +3 -1
- package/views/dist/controls/tag/tag.js +2 -2
- package/views/dist/controls/tag/tokens.d.ts +4 -0
- package/views/dist/controls/tag/tokens.js +1 -0
- package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
- package/views/dist/controls/tag-field/tag-field.js +11 -5
- package/views/dist/controls/tag-field/tokens.d.ts +16 -0
- package/views/dist/controls/tag-field/tokens.js +4 -0
- package/views/dist/controls/tag-field.css +19 -0
- package/views/dist/controls/tag.css +2 -0
- package/views/dist/controls/text-editor/text-editor.d.ts +1 -1
- package/views/dist/controls/text-editor/text-editor.js +8 -8
- package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
- package/views/dist/controls/toolbar/toolbar.js +22 -15
- package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
- package/views/dist/controls/toolbar-button/atom-toolbar-button.js +52 -0
- package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
- package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
- package/views/dist/controls/toolbar-button.css +4 -0
- package/views/dist/controls/toolbar.css +5 -0
- package/views/dist/controls/values-editor/values-editor.d.ts +1 -1
- package/views/dist/controls/values-editor/values-editor.js +22 -22
- package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
- package/views/dist/controls/views-list/map-view-menu.js +25 -0
- package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
- package/views/dist/controls/views-list/map-views-list-body.js +39 -21
- package/views/dist/controls/views-list/rules.d.ts +2 -0
- package/views/dist/controls/views-list/view-menu.d.ts +7 -0
- package/views/dist/controls/views-list/view-menu.js +33 -29
- package/views/dist/controls/views-list/views-list.js +4 -4
- package/views/dist/controls/views-list/words.d.ts +2 -0
- package/views/dist/controls/views-list/words.js +1 -1
- package/views/dist/editors/EditorPanel.js +3 -2
- package/views/dist/editors/edit-session.js +2 -5
- package/views/dist/field-row/FieldRow.d.ts +4 -2
- package/views/dist/field-row/FieldRow.js +80 -20
- package/views/dist/field-row/FieldRowLane.d.ts +7 -2
- package/views/dist/field-row/FieldRowLane.js +4 -3
- package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
- package/views/dist/field-row/editors/RowEditor.js +31 -1
- package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
- package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
- package/views/dist/field-row/field-row-button.d.ts +5 -0
- package/views/dist/field-row/field-row-button.js +2 -0
- package/views/dist/fields/binding.d.ts +3 -2
- package/views/dist/fields/binding.js +38 -5
- package/views/dist/fields/money.d.ts +5 -2
- package/views/dist/fields/money.js +14 -2
- package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
- package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
- package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
- package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
- package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
- package/views/dist/grid/chrome/GridHeader.js +2 -2
- package/views/dist/grid/chrome/GridRow.js +6 -5
- package/views/dist/grid/chrome/GridRowCells.js +6 -9
- package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
- package/views/dist/grid/chrome/GridStructure.js +4 -4
- package/views/dist/grid/chrome/GridTable.js +9 -3
- package/views/dist/grid/chrome/cell-clipboard.d.ts +4 -2
- package/views/dist/grid/chrome/cell-clipboard.js +2 -2
- package/views/dist/grid/chrome/cells.js +3 -1
- package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
- package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
- package/views/dist/grid/chrome/grid-row-menu-items.js +93 -7
- package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
- package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
- package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
- package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
- package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
- package/views/dist/grid/chrome/useGridKeyboard.d.ts +7 -2
- package/views/dist/grid/chrome/useGridKeyboard.js +43 -14
- package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
- package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +20 -7
- package/views/dist/grid/core/clipboard-model.d.ts +3 -1
- package/views/dist/grid/core/clipboard-model.js +9 -8
- package/views/dist/grid/core/commit-model.d.ts +20 -2
- package/views/dist/grid/core/editing-controller.d.ts +21 -0
- package/views/dist/grid/core/editing-controller.js +194 -42
- package/views/dist/grid/core/editing-model.d.ts +3 -0
- package/views/dist/grid/core/editing-model.js +3 -0
- package/views/dist/grid/core/edits-sink.d.ts +19 -0
- package/views/dist/grid/core/edits-sink.js +2 -0
- package/views/dist/grid/core/save-path.d.ts +24 -0
- package/views/dist/grid/core/save-path.js +122 -0
- package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
- package/views/dist/grid/core/spreadsheet-operations.js +24 -1
- package/views/dist/grid/core/useGridEditing.d.ts +5 -0
- package/views/dist/grid/core/useGridEditing.js +6 -0
- package/views/dist/grid/index.d.ts +3 -2
- package/views/dist/grid/index.js +1 -0
- package/views/dist/internal/field-rows.d.ts +26 -0
- package/views/dist/internal/field-rows.js +8 -0
- package/views/dist/internal/page-close.d.ts +7 -0
- package/views/dist/internal/page-close.js +43 -0
- package/views/dist/list/answer.d.ts +40 -0
- package/views/dist/list/answer.js +43 -0
- package/views/dist/list/browser-views-store.d.ts +10 -0
- package/views/dist/list/browser-views-store.js +182 -0
- package/views/dist/list/bulk-bar.d.ts +7 -0
- package/views/dist/list/bulk-bar.js +10 -0
- package/views/dist/list/columns.d.ts +24 -0
- package/views/dist/list/columns.js +27 -0
- package/views/dist/list/edits.d.ts +19 -0
- package/views/dist/list/edits.js +56 -0
- package/views/dist/list/grid.d.ts +11 -0
- package/views/dist/list/grid.js +76 -0
- package/views/dist/list/index.d.ts +36 -0
- package/views/dist/list/index.js +11 -0
- package/views/dist/list/link.d.ts +8 -0
- package/views/dist/list/link.js +78 -0
- package/views/dist/list/list.d.ts +70 -0
- package/views/dist/list/list.js +14 -0
- package/views/dist/list/menu.d.ts +31 -0
- package/views/dist/list/menu.js +76 -0
- package/views/dist/list/parts.d.ts +6 -0
- package/views/dist/list/parts.js +66 -0
- package/views/dist/list/registry.d.ts +11 -0
- package/views/dist/list/registry.js +31 -0
- package/views/dist/list/root-base.d.ts +46 -0
- package/views/dist/list/root-base.js +137 -0
- package/views/dist/list/root.d.ts +41 -0
- package/views/dist/list/root.js +168 -0
- package/views/dist/list/slot.d.ts +14 -0
- package/views/dist/list/slot.js +22 -0
- package/views/dist/list/source-answers.d.ts +39 -0
- package/views/dist/list/source-answers.js +225 -0
- package/views/dist/list/source.d.ts +11 -0
- package/views/dist/list/source.js +31 -0
- package/views/dist/list/store.d.ts +119 -0
- package/views/dist/list/store.js +146 -0
- package/views/dist/list/toolbar.d.ts +7 -0
- package/views/dist/list/toolbar.js +371 -0
- package/views/dist/list/views-axis.d.ts +5 -0
- package/views/dist/list/views-axis.js +98 -0
- package/views/dist/list/views-store.d.ts +41 -0
- package/views/dist/list/views-store.js +1 -0
- package/views/dist/list/views.d.ts +72 -0
- package/views/dist/list/views.js +411 -0
- package/views/dist/model/column-capabilities.d.ts +13 -0
- package/views/dist/model/column-capabilities.js +23 -2
- package/views/dist/model/column-schema.d.ts +11 -1
- package/views/dist/model/preferences.js +1 -1
- package/views/dist/model/prefs-buckets.js +1 -1
- package/views/dist/model/view-rules.js +1 -0
- package/views/dist/panels/index.d.ts +3 -1
- package/views/dist/panels/index.js +1 -0
- package/views/dist/panels/model.d.ts +2 -0
- package/views/dist/panels/react/customize-body.js +1 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +47 -4
- package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
- package/views/dist/panels/react/toolbar/Toolbar.d.ts +17 -2
- package/views/dist/panels/react/toolbar/Toolbar.js +43 -23
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -4
- package/views/dist/panels/react/toolbar/ToolbarButton.js +7 -1
- package/views/dist/panels/react/toolbar/ToolbarFilter.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarFilters.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarNew.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
- package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarSort.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarSortPill.js +6 -4
- package/views/dist/panels/react/toolbar/context.d.ts +20 -3
- package/views/dist/panels/react/toolbar/context.js +3 -1
- package/views/dist/panels/react/toolbar/panel-part.d.ts +4 -1
- package/views/dist/panels/react/toolbar/panel-part.js +5 -3
- package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
- package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
- package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
- package/views/dist/panels/react/views-row/PillGroup.js +16 -7
- package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
- package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
- package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
- package/views/dist/panels/react.d.ts +2 -2
- package/views/dist/panels/settings/filter-groups.js +6 -1
- package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
- package/views/dist/panels/toolbar/edit-view.js +14 -0
- package/views/dist/panels/toolbar/model.d.ts +5 -0
- package/views/dist/panels/toolbar/model.js +7 -3
- package/views/dist/panels/view-state.d.ts +5 -3
- package/views/dist/panels/views-row/model.d.ts +19 -2
- package/views/dist/panels/views-row/model.js +14 -0
- package/views/dist/provider/ViewsProvider.d.ts +21 -8
- package/views/dist/provider/ViewsProvider.js +40 -5
- package/views/dist/provider/components.d.ts +102 -2
- package/views/dist/provider/components.js +1 -1
- package/views/dist/provider/context.d.ts +6 -2
- package/views/dist/provider/context.js +1 -1
- package/views/dist/provider/own-control.d.ts +4 -0
- package/views/dist/provider/own-control.js +7 -0
- package/views/dist/provider/ports.d.ts +19 -12
- package/views/dist/provider/ports.js +69 -1
- package/views/dist/provider/select-items.d.ts +3 -0
- package/views/dist/provider/select-items.js +6 -0
- package/views/dist/react.d.ts +4 -2
- package/views/dist/react.js +2 -0
- package/views/dist/styles.css +503 -136
- package/views/dist/styles.unlayered.css +503 -136
- package/views/docs/contract.md +292 -34
- package/views/docs/controls/avatar.md +11 -0
- package/views/docs/controls/choice.md +0 -1
- package/views/docs/controls/compound-editor.md +4 -0
- package/views/docs/controls/customize.md +6 -0
- package/views/docs/controls/date-editor.md +4 -0
- package/views/docs/controls/field.md +7 -0
- package/views/docs/controls/filter-editor.md +8 -0
- package/views/docs/controls/group-editor.md +6 -0
- package/views/docs/controls/input.md +5 -0
- package/views/docs/controls/links-editor.md +4 -0
- package/views/docs/controls/menu-list.md +8 -0
- package/views/docs/controls/menu.md +4 -0
- package/views/docs/controls/notice.md +4 -0
- package/views/docs/controls/number-editor.md +4 -0
- package/views/docs/controls/pane.md +4 -0
- package/views/docs/controls/picker.md +8 -0
- package/views/docs/controls/quick-filters.md +6 -0
- package/views/docs/controls/radio.md +20 -1
- package/views/docs/controls/select.md +10 -0
- package/views/docs/controls/setting-row.md +18 -0
- package/views/docs/controls/sheet.md +4 -0
- package/views/docs/controls/sort-editor.md +8 -0
- package/views/docs/controls/switch-row.md +0 -3
- package/views/docs/controls/tag-field.md +4 -0
- package/views/docs/controls/tag.md +1 -0
- package/views/docs/controls/text-editor.md +4 -0
- package/views/docs/controls/values-editor.md +4 -0
- package/views/docs/controls/views-list.md +6 -0
- package/views/docs/getting-started.md +2 -2
- package/views/docs/guides/atoms.md +2 -2
- package/views/docs/guides/columns.md +1 -1
- package/views/docs/guides/ports.md +1 -1
- package/views/docs/guides/the-grid.md +36 -9
- package/views/docs/guides/the-provider.md +22 -3
- package/views/docs/index.md +1 -0
- package/views/docs/reference/controls.md +41 -29
- package/views/docs/reference/editors-session.md +1 -1
- package/views/docs/reference/field-row.md +9 -1
- package/views/docs/reference/grid.md +15 -9
- package/views/docs/reference/list.md +357 -0
- package/views/docs/reference/looks.md +1 -1
- package/views/docs/reference/panels-react.md +17 -12
- package/views/docs/reference/panels.md +8 -5
- package/views/docs/reference/react.md +24 -16
- package/views/docs/reference/views.md +10 -6
- package/views/docs/reshaping.md +6 -1
- package/views/skills/views/SKILL.md +9 -6
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type FilterTree } from "./filter.js";
|
|
3
|
+
import { type ListHold } from "./hold.js";
|
|
4
|
+
import { type ListRequestSettings } from "./settings.js";
|
|
5
|
+
/** The version every request carries. */
|
|
6
|
+
export declare const LIST_REQUEST_VERSION = 1;
|
|
7
|
+
/** The parts a list asks for: a page of rows (or of groups), one group's next page, every matching id, option counts,
|
|
8
|
+
* one field's values, and each saved view's count. */
|
|
9
|
+
export declare const LIST_PARTS: readonly ["rows", "group", "ids", "counts", "values", "view-counts"];
|
|
10
|
+
export type ListPart = (typeof LIST_PARTS)[number];
|
|
11
|
+
/** The bounds a request is held to beside the settings' own: a page's rows (postgres answers at most 1000), a
|
|
12
|
+
* cursor's and a group key's length, the fields a row is asked for, the fields counted at once, the views counted. */
|
|
13
|
+
export declare const LIST_REQUEST_LIMITS: {
|
|
14
|
+
readonly pageSize: 1000;
|
|
15
|
+
readonly cursor: 16384;
|
|
16
|
+
readonly groupKey: 512;
|
|
17
|
+
readonly fields: 200;
|
|
18
|
+
readonly countFields: 50;
|
|
19
|
+
readonly views: 100;
|
|
20
|
+
};
|
|
21
|
+
/** The reader's context: the moment a relative date reads from (an ISO instant with its offset), the time zone a day
|
|
22
|
+
* is read in, the locale and the names language. Each absent is the server's own. */
|
|
23
|
+
export type ListContext = {
|
|
24
|
+
now?: string;
|
|
25
|
+
timeZone?: string;
|
|
26
|
+
locale?: string;
|
|
27
|
+
language?: string;
|
|
28
|
+
};
|
|
29
|
+
/** A page asked for: how many rows, and the cursor the page before handed back (absent or null: the first). */
|
|
30
|
+
export type ListPageAsk = {
|
|
31
|
+
size: number;
|
|
32
|
+
after?: string | null;
|
|
33
|
+
};
|
|
34
|
+
type Base = {
|
|
35
|
+
version: 1;
|
|
36
|
+
settings: ListRequestSettings;
|
|
37
|
+
hold?: ListHold;
|
|
38
|
+
context?: ListContext;
|
|
39
|
+
};
|
|
40
|
+
/** A list request, one member per part. `fields`: the fields each row carries; absent, every field the reader may
|
|
41
|
+
* read. `group.key`: the group's key, `""` for the rows with no value. `counts.of`: `"filter"` counts a filter's
|
|
42
|
+
* options (the field's own rules left out), `"hold"` a quick filter's (the hold's other fields applied). */
|
|
43
|
+
export type ListRequest = (Base & {
|
|
44
|
+
part: "rows";
|
|
45
|
+
page: ListPageAsk;
|
|
46
|
+
fields?: readonly string[];
|
|
47
|
+
}) | (Base & {
|
|
48
|
+
part: "group";
|
|
49
|
+
group: {
|
|
50
|
+
key: string;
|
|
51
|
+
};
|
|
52
|
+
page: ListPageAsk;
|
|
53
|
+
fields?: readonly string[];
|
|
54
|
+
}) | (Base & {
|
|
55
|
+
part: "ids";
|
|
56
|
+
}) | (Base & {
|
|
57
|
+
part: "counts";
|
|
58
|
+
counts: {
|
|
59
|
+
of: "filter" | "hold";
|
|
60
|
+
fields: readonly string[];
|
|
61
|
+
};
|
|
62
|
+
}) | (Base & {
|
|
63
|
+
part: "values";
|
|
64
|
+
field: string;
|
|
65
|
+
}) | (Base & {
|
|
66
|
+
part: "view-counts";
|
|
67
|
+
views: readonly {
|
|
68
|
+
id: string;
|
|
69
|
+
filter: FilterTree;
|
|
70
|
+
}[];
|
|
71
|
+
});
|
|
72
|
+
/** The request of one part. */
|
|
73
|
+
export type ListRequestOf<P extends ListPart> = Extract<ListRequest, {
|
|
74
|
+
part: P;
|
|
75
|
+
}>;
|
|
76
|
+
/** The one schema of a list request, the same in the browser and on a server. */
|
|
77
|
+
export declare const listRequestSchema: z.ZodType<ListRequest>;
|
|
78
|
+
/** One row of an answer: the app's own flat row, its record's key as text under `id`. */
|
|
79
|
+
export type ListRow = {
|
|
80
|
+
id: string;
|
|
81
|
+
} & Record<string, unknown>;
|
|
82
|
+
/** How many rows match: `count` exactly, or, not `exact`, as far as the server counted. */
|
|
83
|
+
export type ListTotal = {
|
|
84
|
+
count: number;
|
|
85
|
+
exact: boolean;
|
|
86
|
+
};
|
|
87
|
+
/** One group of a grouped answer: its key (`""` for the rows with no value), the name the server read for it (null:
|
|
88
|
+
* the list names it), how many rows it holds, and whether it is hidden. Carrying `rows`, it is loaded, and `next` is
|
|
89
|
+
* its next page's cursor; without them, a `group` request loads it. */
|
|
90
|
+
export type ListAnswerGroup<Row extends ListRow = ListRow> = {
|
|
91
|
+
key: string;
|
|
92
|
+
label: string | null;
|
|
93
|
+
count: number;
|
|
94
|
+
hidden: boolean;
|
|
95
|
+
rows?: Row[];
|
|
96
|
+
next?: string | null;
|
|
97
|
+
};
|
|
98
|
+
/** A refused request: its code and the sentence that says why. A value, never a throw, so a server action hands it
|
|
99
|
+
* back as it is. */
|
|
100
|
+
export type ListRefused = {
|
|
101
|
+
refused: {
|
|
102
|
+
code: string;
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
/** An answer, one member per part, or a refusal. A grouped `rows` answer holds its rows in its groups: its own `rows`
|
|
107
|
+
* is `[]` and its `next` null, and its `total` is the whole list's. `total` is null where the server didn't count. */
|
|
108
|
+
export type ListAnswer<Row extends ListRow = ListRow> = {
|
|
109
|
+
part: "rows";
|
|
110
|
+
rows: Row[];
|
|
111
|
+
next: string | null;
|
|
112
|
+
total: ListTotal | null;
|
|
113
|
+
groups: ListAnswerGroup<Row>[] | null;
|
|
114
|
+
} | {
|
|
115
|
+
part: "group";
|
|
116
|
+
key: string;
|
|
117
|
+
rows: Row[];
|
|
118
|
+
next: string | null;
|
|
119
|
+
} | {
|
|
120
|
+
part: "ids";
|
|
121
|
+
ids: string[];
|
|
122
|
+
} | {
|
|
123
|
+
part: "counts";
|
|
124
|
+
counts: Record<string, {
|
|
125
|
+
counts: Record<string, number>;
|
|
126
|
+
labels: Record<string, string>;
|
|
127
|
+
}>;
|
|
128
|
+
} | {
|
|
129
|
+
part: "values";
|
|
130
|
+
field: string;
|
|
131
|
+
values: string[];
|
|
132
|
+
labels: Record<string, string>;
|
|
133
|
+
} | {
|
|
134
|
+
part: "view-counts";
|
|
135
|
+
counts: Record<string, number>;
|
|
136
|
+
} | ListRefused;
|
|
137
|
+
/** The answer of one part. */
|
|
138
|
+
export type ListAnswerOf<P extends ListPart, Row extends ListRow = ListRow> = Extract<ListAnswer<Row>, {
|
|
139
|
+
part: P;
|
|
140
|
+
}>;
|
|
141
|
+
/** The one schema of an answer, the same on a server and in the browser. */
|
|
142
|
+
export declare const listAnswerSchema: z.ZodType<ListAnswer>;
|
|
143
|
+
/** Whether an answer is a refusal. */
|
|
144
|
+
export declare function isRefused<Row extends ListRow>(answer: ListAnswer<Row>): answer is ListRefused;
|
|
145
|
+
/** The answer to `request`, checked to be its part's or a refusal: an answer to another part throws, naming both. Every
|
|
146
|
+
* source's answer passes through it, a server action's as `fetchSource`'s. */
|
|
147
|
+
export declare function answerFor<R extends ListRequest, Row extends ListRow = ListRow>(request: R, answer: ListAnswer<Row>): ListAnswerOf<R["part"], Row> | ListRefused;
|
|
148
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { filterTreeSchema } from "./filter.js";
|
|
3
|
+
import { listHoldSchema } from "./hold.js";
|
|
4
|
+
import { LIST_SETTINGS_LIMITS, listRequestSettingsSchema } from "./settings.js";
|
|
5
|
+
export const LIST_REQUEST_VERSION = 1;
|
|
6
|
+
export const LIST_PARTS = ["rows", "group", "ids", "counts", "values", "view-counts"];
|
|
7
|
+
export const LIST_REQUEST_LIMITS = {
|
|
8
|
+
pageSize: 1000,
|
|
9
|
+
cursor: 16_384,
|
|
10
|
+
groupKey: 512,
|
|
11
|
+
fields: LIST_SETTINGS_LIMITS.columns,
|
|
12
|
+
countFields: 50,
|
|
13
|
+
views: 100,
|
|
14
|
+
};
|
|
15
|
+
const L = LIST_REQUEST_LIMITS;
|
|
16
|
+
const ID_REASON = `"id" is the record's id, never a field's key`;
|
|
17
|
+
const key = z.string().min(1).max(LIST_SETTINGS_LIMITS.key);
|
|
18
|
+
const fieldKey = key.refine((value) => value !== "id", ID_REASON);
|
|
19
|
+
const cursor = z.string().min(1).max(L.cursor);
|
|
20
|
+
const groupKey = z.string().max(L.groupKey);
|
|
21
|
+
const fieldKeys = (most) => z
|
|
22
|
+
.array(fieldKey)
|
|
23
|
+
.max(most)
|
|
24
|
+
.superRefine((keys, ctx) => {
|
|
25
|
+
const seen = new Set();
|
|
26
|
+
for (const one of keys) {
|
|
27
|
+
if (seen.has(one))
|
|
28
|
+
ctx.addIssue({ code: "custom", message: `"${one}" is asked twice` });
|
|
29
|
+
seen.add(one);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const base = {
|
|
33
|
+
version: z.literal(LIST_REQUEST_VERSION, { error: "a list request is version 1" }),
|
|
34
|
+
settings: listRequestSettingsSchema,
|
|
35
|
+
hold: listHoldSchema.optional(),
|
|
36
|
+
context: z
|
|
37
|
+
.strictObject({
|
|
38
|
+
now: z.iso.datetime({ offset: true }).optional(),
|
|
39
|
+
timeZone: z.string().min(1).max(64).optional(),
|
|
40
|
+
locale: z.string().min(1).max(35).optional(),
|
|
41
|
+
language: z.string().min(1).max(35).optional(),
|
|
42
|
+
})
|
|
43
|
+
.optional(),
|
|
44
|
+
};
|
|
45
|
+
const page = z.strictObject({ size: z.number().int().min(1).max(L.pageSize), after: cursor.nullable().optional() });
|
|
46
|
+
const PART_REASON = `a list request's part is one of ${LIST_PARTS.join(", ")}`;
|
|
47
|
+
export const listRequestSchema = z.discriminatedUnion("part", [
|
|
48
|
+
z.strictObject({ ...base, part: z.literal("rows"), page, fields: fieldKeys(L.fields).optional() }),
|
|
49
|
+
z.strictObject({
|
|
50
|
+
...base,
|
|
51
|
+
part: z.literal("group"),
|
|
52
|
+
group: z.strictObject({ key: groupKey }),
|
|
53
|
+
page,
|
|
54
|
+
fields: fieldKeys(L.fields).optional(),
|
|
55
|
+
}),
|
|
56
|
+
z.strictObject({ ...base, part: z.literal("ids") }),
|
|
57
|
+
z.strictObject({
|
|
58
|
+
...base,
|
|
59
|
+
part: z.literal("counts"),
|
|
60
|
+
counts: z.strictObject({ of: z.enum(["filter", "hold"]), fields: fieldKeys(L.countFields).min(1) }),
|
|
61
|
+
}),
|
|
62
|
+
z.strictObject({ ...base, part: z.literal("values"), field: fieldKey }),
|
|
63
|
+
z.strictObject({
|
|
64
|
+
...base,
|
|
65
|
+
part: z.literal("view-counts"),
|
|
66
|
+
views: z
|
|
67
|
+
.array(z.strictObject({ id: key, filter: filterTreeSchema }))
|
|
68
|
+
.max(L.views)
|
|
69
|
+
.superRefine((views, ctx) => {
|
|
70
|
+
const seen = new Set();
|
|
71
|
+
for (const view of views) {
|
|
72
|
+
if (seen.has(view.id))
|
|
73
|
+
ctx.addIssue({ code: "custom", message: `view "${view.id}" is counted twice` });
|
|
74
|
+
seen.add(view.id);
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
}),
|
|
78
|
+
], { error: (issue) => (issue.code === "invalid_union" ? PART_REASON : undefined) });
|
|
79
|
+
const count = z.number().int().min(0);
|
|
80
|
+
const row = z.looseObject({ id: z.string().min(1) });
|
|
81
|
+
const rows = z.array(row);
|
|
82
|
+
const next = z.string().min(1).nullable();
|
|
83
|
+
const labels = z.record(z.string(), z.string());
|
|
84
|
+
const answered = z.discriminatedUnion("part", [
|
|
85
|
+
z
|
|
86
|
+
.object({
|
|
87
|
+
part: z.literal("rows"),
|
|
88
|
+
rows,
|
|
89
|
+
next,
|
|
90
|
+
total: z.object({ count, exact: z.boolean() }).nullable(),
|
|
91
|
+
groups: z
|
|
92
|
+
.array(z.object({
|
|
93
|
+
key: groupKey,
|
|
94
|
+
label: z.string().nullable(),
|
|
95
|
+
count,
|
|
96
|
+
hidden: z.boolean(),
|
|
97
|
+
rows: rows.optional(),
|
|
98
|
+
next: next.optional(),
|
|
99
|
+
}))
|
|
100
|
+
.nullable(),
|
|
101
|
+
})
|
|
102
|
+
.refine((answer) => answer.groups === null || (answer.rows.length === 0 && answer.next === null), {
|
|
103
|
+
message: "a grouped answer holds its rows in its groups",
|
|
104
|
+
}),
|
|
105
|
+
z.object({ part: z.literal("group"), key: groupKey, rows, next }),
|
|
106
|
+
z.object({ part: z.literal("ids"), ids: z.array(z.string().min(1)) }),
|
|
107
|
+
z.object({
|
|
108
|
+
part: z.literal("counts"),
|
|
109
|
+
counts: z.record(z.string(), z.object({ counts: z.record(z.string(), count), labels })),
|
|
110
|
+
}),
|
|
111
|
+
z.object({ part: z.literal("values"), field: z.string(), values: z.array(z.string()), labels }),
|
|
112
|
+
z.object({ part: z.literal("view-counts"), counts: z.record(z.string(), count) }),
|
|
113
|
+
]);
|
|
114
|
+
const refused = z.object({ refused: z.object({ code: z.string().min(1), message: z.string() }) });
|
|
115
|
+
export const listAnswerSchema = z.union([answered, refused]);
|
|
116
|
+
export function isRefused(answer) {
|
|
117
|
+
return "refused" in answer;
|
|
118
|
+
}
|
|
119
|
+
export function answerFor(request, answer) {
|
|
120
|
+
if (isRefused(answer))
|
|
121
|
+
return answer;
|
|
122
|
+
if (answer.part !== request.part)
|
|
123
|
+
throw new Error(`answered part ${answer.part} to a ${request.part} request`);
|
|
124
|
+
return answer;
|
|
125
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type SavedListSettings } from "./settings.js";
|
|
3
|
+
/** One saved view: shared with everyone or a person's own, its settings without the search, its place in its scope's
|
|
4
|
+
* row and when it last changed (an ISO instant). `readOnly`: a view the app declares in its code. */
|
|
5
|
+
export type SavedView = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
scope: "shared" | "personal";
|
|
9
|
+
settings: SavedListSettings;
|
|
10
|
+
position: number;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/** The one schema of a saved view. Strict: an unknown key, and a search in its settings, are refused. */
|
|
15
|
+
export declare const savedViewSchema: z.ZodType<SavedView>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { LIST_SETTINGS_LIMITS, savedSettingsSchema } from "./settings.js";
|
|
3
|
+
export const savedViewSchema = z.strictObject({
|
|
4
|
+
id: z.string().min(1).max(LIST_SETTINGS_LIMITS.key),
|
|
5
|
+
name: z.string().min(1).max(200),
|
|
6
|
+
scope: z.enum(["shared", "personal"]),
|
|
7
|
+
settings: savedSettingsSchema,
|
|
8
|
+
position: z.number().finite(),
|
|
9
|
+
updatedAt: z.iso.datetime({ offset: true }),
|
|
10
|
+
readOnly: z.boolean().optional(),
|
|
11
|
+
});
|
|
@@ -75,6 +75,15 @@ export type ListSettingsChange = {
|
|
|
75
75
|
/** The schema of a change, built part by part from the settings' own, so every part the settings hold is a part a
|
|
76
76
|
* change may carry, checked the same way. Strict: an unknown part is refused. */
|
|
77
77
|
export declare const listSettingsChangeSchema: z.ZodType<ListSettingsChange>;
|
|
78
|
+
/** The settings' parts a list request carries (`listRequestSchema`): what narrows, orders and groups its rows. */
|
|
79
|
+
export type ListRequestSettings = Pick<ListSettings, "search" | "filter" | "sorts" | "group" | "rowOrderMode" | "itemPositions">;
|
|
80
|
+
/** The schema of a request's settings: the settings' own parts, picked, so each is checked as the settings check it.
|
|
81
|
+
* Strict: a part the request doesn't carry (the layout, the columns, the board) is refused. */
|
|
82
|
+
export declare const listRequestSettingsSchema: z.ZodType<ListRequestSettings>;
|
|
83
|
+
/** The settings a saved view keeps: every part but the search. */
|
|
84
|
+
export type SavedListSettings = Omit<ListSettings, "search">;
|
|
85
|
+
/** The schema of a saved view's settings: the settings' own, the search refused. */
|
|
86
|
+
export declare const savedSettingsSchema: z.ZodType<SavedListSettings>;
|
|
78
87
|
/** A list with nothing set: a table of every column the app declares, unfiltered, unsorted, ungrouped. */
|
|
79
88
|
export declare const LIST_SETTINGS_DEFAULTS: ListSettings;
|
|
80
89
|
/** The settings a saved view keeps: all of them but the search. The value handed in is left as it is. */
|
|
@@ -103,6 +103,15 @@ export const listSettingsChangeSchema = z.strictObject(Object.fromEntries(Object
|
|
|
103
103
|
part,
|
|
104
104
|
schema.isOptional() ? schema.nullable() : schema.optional(),
|
|
105
105
|
])));
|
|
106
|
+
export const listRequestSettingsSchema = settingsObject.pick({
|
|
107
|
+
search: true,
|
|
108
|
+
filter: true,
|
|
109
|
+
sorts: true,
|
|
110
|
+
group: true,
|
|
111
|
+
rowOrderMode: true,
|
|
112
|
+
itemPositions: true,
|
|
113
|
+
});
|
|
114
|
+
export const savedSettingsSchema = settingsObject.omit({ search: true });
|
|
106
115
|
export const LIST_SETTINGS_DEFAULTS = {
|
|
107
116
|
layout: "table",
|
|
108
117
|
filter: emptyTree(),
|
|
@@ -8,7 +8,7 @@ import { LOCATION_ORDERS, locationSortText } from "./location.js";
|
|
|
8
8
|
import { isOpenVocabulary, statusOptionOrder } from "../options.js";
|
|
9
9
|
import { phoneMatchText } from "../phone.js";
|
|
10
10
|
import { compareDecimalText } from "../parse-number.js";
|
|
11
|
-
import { exactNumberText, readsAsNoNumber } from "./exact-number.js";
|
|
11
|
+
import { exactNumberText, nonFiniteSide, readsAsNoNumber } from "./exact-number.js";
|
|
12
12
|
import { textOrderOf } from "./collate.js";
|
|
13
13
|
import { mainItem, valueItems } from "../value-list.js";
|
|
14
14
|
const NUMBER_TYPES = new Set(["number", "percent", "currency"]);
|
|
@@ -37,16 +37,16 @@ function mainOf(v) {
|
|
|
37
37
|
function firstOf(v) {
|
|
38
38
|
return Array.isArray(v) ? v[0] : v;
|
|
39
39
|
}
|
|
40
|
-
const infinitySide = (v) => (typeof v === "number" && (v === Infinity || v === -Infinity) ? Math.sign(v) : 0);
|
|
41
40
|
const number = (a, b) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
const ia = nonFiniteSide(a), ib = nonFiniteSide(b);
|
|
42
|
+
if (ia === 0 && ib === 0 && typeof a === "number" && typeof b === "number")
|
|
43
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
44
|
+
const ta = ia === 0 ? exactNumberText(a) : null, tb = ib === 0 ? exactNumberText(b) : null;
|
|
45
|
+
const noneA = ia === 0 && ta === null, noneB = ib === 0 && tb === null;
|
|
46
|
+
if (noneA || noneB)
|
|
47
|
+
return noneA === noneB ? 0 : noneA ? 1 : -1;
|
|
45
48
|
if (ia !== 0 || ib !== 0)
|
|
46
49
|
return ia - ib;
|
|
47
|
-
const ta = exactNumberText(a), tb = exactNumberText(b);
|
|
48
|
-
if (ta === null || tb === null)
|
|
49
|
-
return ta === tb ? 0 : ta === null ? 1 : -1;
|
|
50
50
|
return compareDecimalText(ta, tb);
|
|
51
51
|
};
|
|
52
52
|
const instant = nullsLast((a, b) => new Date(String(a)).getTime() - new Date(String(b)).getTime());
|
|
@@ -250,17 +250,20 @@ export function compareBy(sorts, reader, cv = DEFAULT_CONVENTIONS) {
|
|
|
250
250
|
emptyName: valueTypeOf(field) === "name",
|
|
251
251
|
emptyRange: valueTypeOf(field) === "range",
|
|
252
252
|
emptyNumber: NUMBER_TYPES.has(valueTypeOf(field)) && !isPerCodeCurrency(presented),
|
|
253
|
+
sortAmountOf: money && reader.sortAmountOf,
|
|
253
254
|
denominationOf: money && denominationReader(reader, spec.fieldKey, money),
|
|
254
255
|
codeOrder: money && codeOrderFor(reader, money, cv),
|
|
255
256
|
};
|
|
256
257
|
});
|
|
257
258
|
return (a, b) => {
|
|
258
259
|
for (const step of steps) {
|
|
259
|
-
const
|
|
260
|
+
const sa = step.sortAmountOf?.(a, step.key), sb = step.sortAmountOf?.(b, step.key);
|
|
261
|
+
const converted = sa !== undefined && sb !== undefined;
|
|
262
|
+
const va = converted ? sa : scalarOf(step.field, reader.read(a, step.key)), vb = converted ? sb : scalarOf(step.field, reader.read(b, step.key));
|
|
260
263
|
const ea = isEmpty(va) || (step.emptyName && isEmptyName(firstOf(va))) || (step.emptyRange && isEmptyRange(va)) || (step.emptyNumber && readsAsNoNumber(va)), eb = isEmpty(vb) || (step.emptyName && isEmptyName(firstOf(vb))) || (step.emptyRange && isEmptyRange(vb)) || (step.emptyNumber && readsAsNoNumber(vb));
|
|
261
264
|
if (ea !== eb)
|
|
262
265
|
return ea ? 1 : -1;
|
|
263
|
-
if (!ea && step.denominationOf && step.codeOrder) {
|
|
266
|
+
if (!ea && !converted && step.denominationOf && step.codeOrder) {
|
|
264
267
|
const ca = step.denominationOf(a), cb = step.denominationOf(b);
|
|
265
268
|
if ((ca === undefined) !== (cb === undefined))
|
|
266
269
|
return ca === undefined ? 1 : -1;
|
package/fields/dist/registry.js
CHANGED
|
@@ -1047,7 +1047,11 @@ const STORED = [
|
|
|
1047
1047
|
MULTISELECT,
|
|
1048
1048
|
RELATION,
|
|
1049
1049
|
{ type: z.literal("user") },
|
|
1050
|
-
{
|
|
1050
|
+
{
|
|
1051
|
+
type: z.literal("url"),
|
|
1052
|
+
bareHost: z.literal("https").optional(),
|
|
1053
|
+
validation: z.strictObject({ maxLength: finite.optional(), maxItems: finite.optional() }).optional(),
|
|
1054
|
+
},
|
|
1051
1055
|
{ type: z.literal("domain"), ...ruledValidation },
|
|
1052
1056
|
{ type: z.literal("email"), validation: listMax.optional() },
|
|
1053
1057
|
{ type: z.literal("phone"), ...ruledValidation },
|
package/fields/dist/types.d.ts
CHANGED
|
@@ -444,9 +444,12 @@ export type FieldDef = (FieldBase & TextSpec & {
|
|
|
444
444
|
| (FieldBase & {
|
|
445
445
|
type: "user";
|
|
446
446
|
})
|
|
447
|
-
/** `multiple`: several links, each a `{ value, label, main }` (`ValueItem`), at most one main.
|
|
447
|
+
/** `multiple`: several links, each a `{ value, label, main }` (`ValueItem`), at most one main. `bareHost: "https"`: a
|
|
448
|
+
* host typed with no scheme (`acme.ro`, `acme.ro/work`) is stored with `https://` before it, by every commit and by
|
|
449
|
+
* `zodFor` alike (`withUrlScheme`); absent, it is refused for naming no scheme. */
|
|
448
450
|
| (FieldBase & UrlSpec & {
|
|
449
451
|
multiple?: true;
|
|
452
|
+
bareHost?: "https";
|
|
450
453
|
validation?: {
|
|
451
454
|
maxItems?: number;
|
|
452
455
|
};
|
package/fields/dist/zod.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ type KeptKeys = {
|
|
|
22
22
|
/** Internal: the key a relation link's stored role is kept under: the link it rides on and the role, so the role
|
|
23
23
|
* passes on that link alone. */
|
|
24
24
|
export declare function linkRoleKey(kind: string, id: string, role: string): string;
|
|
25
|
+
/** A url as a field with `bareHost: "https"` stores it: trimmed text that names no scheme, whose host (the text before
|
|
26
|
+
* its first `/`, `?` or `#`, after a leading `//`) holds a dot and no space, with `https://` before it. Anything else
|
|
27
|
+
* comes back trimmed and is judged as typed: an address with its scheme, `mailto:`, a host with a port (which reads
|
|
28
|
+
* as a scheme, as a cell's link reads it), or a word that is no host (`hello`). */
|
|
29
|
+
export declare function withUrlScheme(text: string): string;
|
|
25
30
|
/** Internal: whether a stored url is one a url cell links — an absolute web address, or text naming no scheme that
|
|
26
31
|
* is one once `https://` is put before it. What a kept url is held to (`accept.ts`). Text with a space or a control
|
|
27
32
|
* character inside is none: a split `java\tscript:` would hide its scheme here and lose it in the address parser. */
|
package/fields/dist/zod.js
CHANGED
|
@@ -22,6 +22,14 @@ export function linkRoleKey(kind, id, role) {
|
|
|
22
22
|
}
|
|
23
23
|
const NO_KEPT = { has: () => false };
|
|
24
24
|
const WEB_ADDRESS = z.url().refine((u) => /^https?:\/\//i.test(u));
|
|
25
|
+
export function withUrlScheme(text) {
|
|
26
|
+
const trimmed = text.trim();
|
|
27
|
+
if (/^[a-z][a-z\d+.-]*:/i.test(trimmed))
|
|
28
|
+
return trimmed;
|
|
29
|
+
const rest = trimmed.startsWith("//") ? trimmed.slice(2) : trimmed;
|
|
30
|
+
const host = rest.split(/[/?#]/, 1)[0] ?? "";
|
|
31
|
+
return /^[^\s.]+(\.[^\s.]+)+$/.test(host) ? `https://${rest}` : trimmed;
|
|
32
|
+
}
|
|
25
33
|
export function readsAsLink(value) {
|
|
26
34
|
if (typeof value !== "string")
|
|
27
35
|
return false;
|
|
@@ -347,13 +355,14 @@ function build(field, cv, say, kept = NO_KEPT) {
|
|
|
347
355
|
error: () => say({ key: "validation.url" }),
|
|
348
356
|
});
|
|
349
357
|
const max = field.validation?.maxLength;
|
|
350
|
-
const
|
|
358
|
+
const ruled = max === undefined
|
|
351
359
|
? address
|
|
352
360
|
: z
|
|
353
361
|
.string({ error: () => say({ key: "validation.url" }) })
|
|
354
362
|
.trim()
|
|
355
363
|
.max(max, { error: () => say({ key: "validation.max-length", values: { max } }) })
|
|
356
364
|
.pipe(address);
|
|
365
|
+
const checked = field.bareHost === "https" ? z.preprocess((v) => (typeof v === "string" ? withUrlScheme(v) : v), ruled) : ruled;
|
|
357
366
|
const one = kept === NO_KEPT
|
|
358
367
|
? checked
|
|
359
368
|
: z.unknown().transform((v, ctx) => {
|
|
@@ -21,6 +21,7 @@ const PERSON = defineFields({
|
|
|
21
21
|
phones: { type: "phone", label: "Phones", multiple: true },
|
|
22
22
|
website: { type: "url", label: "Website", validation: { maxLength: 300 } },
|
|
23
23
|
links: { type: "url", label: "Links", multiple: true, emptiable: true },
|
|
24
|
+
blog: { type: "url", label: "Blog", bareHost: "https" },
|
|
24
25
|
},
|
|
25
26
|
});
|
|
26
27
|
|
|
@@ -141,6 +142,17 @@ const long = acceptFieldCommit(PERSON.website, `https://ana.example/${"a".repeat
|
|
|
141
142
|
assert.equal(long.ok ? "" : long.reason, "Too long — at most 300 characters");
|
|
142
143
|
```
|
|
143
144
|
|
|
145
|
+
A url field with `bareHost: "https"` takes a host typed with no scheme and stores it with `https://` before it: `ana.example` is stored as `https://ana.example`, its path kept. Every commit does it the same way: `acceptFieldCommit`, `zodFor` on your route, and the grid's own check. `withUrlScheme` is the rule they share. An address that names its scheme is kept as typed, and text that is no host (`hello`, a host with a port, `mailto:`) is still refused in the url's words. The ceiling counts what is stored, the scheme included. A url kept as stored (`stored`, below) comes back as it was. Without the key, a bare host is refused.
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
import { withUrlScheme, zodFor } from "viewkitjs/fields";
|
|
149
|
+
|
|
150
|
+
assert.deepEqual(acceptFieldCommit(PERSON.blog, " ana.example/notes "), { ok: true, value: "https://ana.example/notes" });
|
|
151
|
+
assert.equal(zodFor(PERSON.blog).parse("ana.example"), "https://ana.example");
|
|
152
|
+
assert.equal(acceptFieldCommit(PERSON.blog, "hello").ok, false);
|
|
153
|
+
assert.equal(withUrlScheme("http://ana.example"), "http://ana.example");
|
|
154
|
+
```
|
|
155
|
+
|
|
144
156
|
A link's platform is read from its address whenever it is asked for, and never stored. A platform a host adds later reaches every link already stored. `linkPlatform` gives `{ key, name }`: the first platform that answers on the link's host, else a website (`WEBSITE`, the key `"website"`), or null for a value that is no web link. A platform's host matches itself and every subdomain of it, as whole labels. `LINK_PLATFORMS` lists the library's own.
|
|
145
157
|
|
|
146
158
|
```ts
|
|
@@ -516,7 +516,7 @@ assert.throws(
|
|
|
516
516
|
|
|
517
517
|
Six types hold a value with a shape of its own. In brief:
|
|
518
518
|
|
|
519
|
-
- `url`: a web address with its scheme, stored as text. Its platform (LinkedIn, GitHub, a website…) is read from the address when asked for, never stored.
|
|
519
|
+
- `url`: a web address with its scheme, stored as text; `bareHost: "https"` stores a host typed without one with `https://` before it. Its platform (LinkedIn, GitHub, a website…) is read from the address when asked for, never stored.
|
|
520
520
|
- `email`: an address, stored as text.
|
|
521
521
|
- `domain`: a company's domain, kept clean: no scheme, `www.`, path or port; lower case; subdomains kept. It takes no validation of its own.
|
|
522
522
|
- `phone`: `{ number, extension }`, the number in its international form (`+40722123456`). The phone library is its whole check.
|
|
@@ -561,6 +561,8 @@ const inEuros: ViewFieldReader<Deal> = {
|
|
|
561
561
|
assert.deepEqual(sortedBy(DEALS, [{ fieldKey: "value", direction: "asc" }], inEuros), ["d5", "d3", "d2", "d4", "d1", "d6"]);
|
|
562
562
|
```
|
|
563
563
|
|
|
564
|
+
A reader whose cells show each row's own currency can still sort them as one: `sortAmountOf(row, key)` answers the amount converted into one currency for the whole list (`null` for none). Where it answers both rows, they order by those numbers, with no code clusters, so the order flips with the direction; `undefined` leaves the rule above in charge.
|
|
565
|
+
|
|
564
566
|
## Groups and buckets
|
|
565
567
|
|
|
566
568
|
A `GroupSpec` splits a list into sections by one field. `canGroupBy(type, by?)` says whether a type can: a select, a status, a relation, a user, an actor, a yes or no, a date and a range group as a whole, a multiselect under every value it holds, so a row tagged twice sits in both buckets, and a many relation by its first link; text, numbers and names do not. A place groups only by one part, named by `by`, which `groupOrdersFor(type)` lists. `bucketRows(rows, spec, field, read, options?)` makes the buckets, each with its key, its label, its rows and whether it is hidden.
|
|
@@ -746,7 +748,7 @@ assert.deepEqual(columns.map((c) => [c.key, c.items.length, c.hidden]), [
|
|
|
746
748
|
|
|
747
749
|
`evaluateView(rows, query, reader, options?)` runs a whole `ViewQuery`: it filters, sorts, and then groups the sorted rows, so each bucket's rows keep the sort. It returns the rows and the buckets, `null` when the query has no group or groups by a field the reader does not know. Pass `now` and `conventions` so today and every day are the host's.
|
|
748
750
|
|
|
749
|
-
The reader is the one `compareBy` takes. `fieldOf(key)` gives a field's definition and `read(row, key)` its value as drawn. `decimalsOf(key)` gives a number column's decimals for equality,
|
|
751
|
+
The reader is the one `compareBy` takes. `fieldOf(key)` gives a field's definition and `read(row, key)` its value as drawn. `decimalsOf(key)` gives a number column's decimals for equality, `codeOf(row, key)` the currency a converted amount is in, and `sortAmountOf(row, key)` the amount a money field sorts by when its cells show each row's own currency. A rollup with a breakdown is filtered, sorted and grouped by its headline.
|
|
750
752
|
|
|
751
753
|
```ts
|
|
752
754
|
import type { ViewQuery } from "viewkitjs/fields/query";
|
|
@@ -63,6 +63,7 @@ Guide: [conventions](../guides/conventions.md).
|
|
|
63
63
|
|
|
64
64
|
Guide: [validation and acceptance](../guides/validation-and-acceptance.md).
|
|
65
65
|
|
|
66
|
+
- `withUrlScheme` — a url as a field with `bareHost: "https"` stores it: trimmed text naming no scheme, whose host holds a dot, with `https://` before it (`acme.ro/work` → `https://acme.ro/work`, `//acme.ro` → `https://acme.ro`); anything else trimmed and unchanged, to be judged as typed. `acceptFieldCommit`, `zodFor` and the grid's check all read it.
|
|
66
67
|
- `zodFor` — the Zod schema of a field's stored value, worded in the host's messages. Input and output keep the stored type and nothing is coerced between types, so a form resolver keeps the row's literal types. Its JSON Schema (`z.toJSONSchema`) names each type's stored shape; a phone's is an object of an E.164 `number` and an `extension` of digits or `null`, while the phone library judges the number itself.
|
|
67
68
|
- `acceptFieldCommit` — judges the value a field's editor commits and returns the value to store or a refusal: an empty commit becomes null or the type's empty value, or is refused; typed text is trimmed, a domain cleaned, a phone read in the record's or the person's region. It judges the value only, never who may change the field (that is `lockReason` and the field's mutability): an actor and a non-empty commit to a derived field are refused, and an empty commit to a nullable derived field is accepted as null.
|
|
68
69
|
- `acceptStoredFieldValue` — judges the value a binding says it will store, as the last gate before a write: null only for a nullable field, no blank for a required one, then the stored-value schema.
|
|
@@ -174,6 +174,72 @@ A link's platform is read through `matchesRule` with the part `platform`, from t
|
|
|
174
174
|
- `LIST_SETTINGS_DEFAULTS` — a list with nothing set: a table, unfiltered, unsorted, ungrouped, its columns and look the app's own.
|
|
175
175
|
- `settingsForSaving` — the settings a saved view keeps: all of them but the search. The value handed in is left as it is.
|
|
176
176
|
- `listLookSchema` — the look's schema, shared by the settings and a person's own layer.
|
|
177
|
+
- `ListRequestSettings` — the settings' parts a list request carries: the search, the filter, the sorts, the group, the row order's mode and its hand-placed records.
|
|
178
|
+
- `listRequestSettingsSchema` — their schema, the settings' own parts picked, so each is checked as the settings check it. It refuses any other part (the layout, the columns, the board).
|
|
179
|
+
- `SavedListSettings` — the settings a saved view keeps: every part but the search.
|
|
180
|
+
- `savedSettingsSchema` — their schema, the settings' own, refusing a search.
|
|
181
|
+
|
|
182
|
+
## A list request and its answer
|
|
183
|
+
|
|
184
|
+
What a list asks its server for, and what comes back, checked the same way in the browser and on a server. The views side sends it through a source (`viewkitjs/views/list`), and the server answers it.
|
|
185
|
+
|
|
186
|
+
- `ListRequest` — one list request, by its `part`. Every part carries:
|
|
187
|
+
- `version: 1`;
|
|
188
|
+
- its `settings` (`ListRequestSettings`);
|
|
189
|
+
- an optional `hold` (`ListHold`);
|
|
190
|
+
- an optional `context` (`ListContext`).
|
|
191
|
+
|
|
192
|
+
Each part also carries only its own keys:
|
|
193
|
+
- `rows`: a `page`, and optionally the `fields` each row carries (absent: every field the reader may read);
|
|
194
|
+
- `group`: one group's next page, as `group: { key }` (`""` for the rows with no value), a `page` and optional `fields`;
|
|
195
|
+
- `ids`: nothing more, for every matching row's id;
|
|
196
|
+
- `counts`: `{ of, fields }`, the options of up to 50 fields counted. `of: "filter"` leaves each field's own rules out, as a filter's picker counts; `of: "hold"` applies the hold's other fields, as a quick filter counts;
|
|
197
|
+
- `values`: one open field's values, by `field`;
|
|
198
|
+
- `view-counts`: each view's count, by `views`, at most 100 of `{ id, filter }`.
|
|
199
|
+
- `ListRequestOf` — the request of one part.
|
|
200
|
+
- `ListPart` — one part a request names.
|
|
201
|
+
- `LIST_PARTS` — the parts: `rows`, `group`, `ids`, `counts`, `values` and `view-counts`.
|
|
202
|
+
- `LIST_REQUEST_VERSION` — the version a request carries, 1. A later part joins without changing it: no request that holds today changes its meaning.
|
|
203
|
+
- `LIST_REQUEST_LIMITS` — the bounds beside the settings' own:
|
|
204
|
+
- a page of 1 to 1,000 rows;
|
|
205
|
+
- a cursor of 16,384 characters and a group key of 512;
|
|
206
|
+
- 200 fields asked, 50 fields counted and 100 views counted.
|
|
207
|
+
- `ListContext` — the reader's context: `now` (an ISO instant with its offset), `timeZone`, `locale` and `language`. Each one left out is the server's own.
|
|
208
|
+
- `ListPageAsk` — a page asked for: its `size`, and the `after` cursor the page before handed back (absent or `null`: the first).
|
|
209
|
+
- `listRequestSchema` — the one Zod schema of a request. Each part is strict. It refuses, each with its reason:
|
|
210
|
+
- another version: "a list request is version 1";
|
|
211
|
+
- a part it has no word for: "a list request's part is one of rows, group, ids, counts, values, view-counts";
|
|
212
|
+
- another part's key, and a settings part a request doesn't carry;
|
|
213
|
+
- what the settings' own rules refuse;
|
|
214
|
+
- a page past 1,000 rows;
|
|
215
|
+
- `"id"` as a field's key: `"id" is the record's id, never a field's key`;
|
|
216
|
+
- a field asked twice, and a view counted twice.
|
|
217
|
+
- `ListRow` — one row of an answer: your own flat row, `{ id, ...values }`, its record's key as text under `id`.
|
|
218
|
+
- `ListTotal` — how many rows match: `{ count, exact }`, `exact` false where the server stopped counting.
|
|
219
|
+
- `ListAnswerGroup` — one group of a grouped answer: `key`, `label` (the name the server read, or `null`), `count` and `hidden`. With `rows` it is loaded, and `next` is its next page's cursor; without them, a `group` request loads it.
|
|
220
|
+
- `ListRefused` — a refused request: `{ refused: { code, message } }`. It is a value, never a throw.
|
|
221
|
+
- `ListAnswer` — an answer, by its `part`, or a `ListRefused`:
|
|
222
|
+
- `rows`: `rows`, `next`, `total` (counted on a first page, `null` after) and `groups` (`null` when the list isn't grouped). A grouped answer holds its rows in its groups: its own `rows` is `[]`, its `next` is `null` and its `total` is the whole list's;
|
|
223
|
+
- `group`: `key`, `rows` and `next`;
|
|
224
|
+
- `ids`: `ids`;
|
|
225
|
+
- `counts`: each field's `{ counts, labels }`;
|
|
226
|
+
- `values`: `field`, `values` and `labels`;
|
|
227
|
+
- `view-counts`: each view's count by its id.
|
|
228
|
+
- `ListAnswerOf` — the answer of one part.
|
|
229
|
+
- `listAnswerSchema` — the one Zod schema of an answer. It reads loosely, dropping a key it doesn't know, so an answer may carry more later. It refuses a row without a text `id`, and a grouped answer with rows of its own.
|
|
230
|
+
- `isRefused` — whether an answer is a refusal.
|
|
231
|
+
- `answerFor` — `answerFor(request, answer)`: the answer, typed as the request's part's, or the refusal. It throws "answered part … to a … request" on an answer to another part.
|
|
232
|
+
|
|
233
|
+
## A saved view
|
|
234
|
+
|
|
235
|
+
- `SavedView` — one saved view:
|
|
236
|
+
- `id` and `name`;
|
|
237
|
+
- `scope`: `"shared"` with everyone, or a person's own `"personal"`;
|
|
238
|
+
- its `settings`, without the search;
|
|
239
|
+
- its `position` in its scope's row;
|
|
240
|
+
- `updatedAt`, an ISO instant;
|
|
241
|
+
- `readOnly`, for a view your app declares in its code.
|
|
242
|
+
- `savedViewSchema` — the one Zod schema of a saved view, what a views store keeps and your route checks. Strict: it refuses an unknown key, a search in its settings, a scope it has no word for and an `updatedAt` that isn't an instant.
|
|
177
243
|
|
|
178
244
|
## A quick-filter hold
|
|
179
245
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viewkitjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "ViewKit — typed fields, the grid and its editors, and a list's SQL for record lists, in one package: viewkitjs/fields, viewkitjs/views and viewkitjs/postgres. By Sheaf.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -184,6 +184,10 @@
|
|
|
184
184
|
"types": "./views/dist/panels/react.d.ts",
|
|
185
185
|
"default": "./views/dist/panels/react.js"
|
|
186
186
|
},
|
|
187
|
+
"./views/list": {
|
|
188
|
+
"types": "./views/dist/list/index.d.ts",
|
|
189
|
+
"default": "./views/dist/list/index.js"
|
|
190
|
+
},
|
|
187
191
|
"./views/styles.css": "./views/dist/styles.css",
|
|
188
192
|
"./views/styles.unlayered.css": "./views/dist/styles.unlayered.css",
|
|
189
193
|
"./views/controls/*.css": "./views/dist/controls/*.css",
|
package/postgres/README.md
CHANGED
|
@@ -31,5 +31,6 @@ assert.deepEqual(query.values, [workspaceId]);
|
|
|
31
31
|
|
|
32
32
|
- [The field map and the permission condition](docs/guides/field-map.md)
|
|
33
33
|
- [A field map from your definitions](docs/guides/definitions.md)
|
|
34
|
+
- [Answering a list's requests](docs/guides/list-handler.md)
|
|
34
35
|
- [Proving your answers with the test kit](docs/guides/test-kit.md)
|
|
35
36
|
- [Every export](docs/reference/postgres.md)
|