@canonical/dataviews-core 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -19
- package/dist/esm/lib/assertion/assertInvariant.js +14 -0
- package/dist/esm/lib/assertion/assertInvariant.js.map +1 -0
- package/dist/esm/lib/assertion/index.js +2 -0
- package/dist/esm/lib/assertion/index.js.map +1 -0
- package/dist/esm/lib/bindings/index.js +6 -20
- package/dist/esm/lib/bindings/index.js.map +1 -1
- package/dist/esm/lib/coordinator/createQueryCoordinator.js +65 -6
- package/dist/esm/lib/coordinator/createQueryCoordinator.js.map +1 -1
- package/dist/esm/lib/coordinator/index.js +2 -0
- package/dist/esm/lib/coordinator/index.js.map +1 -1
- package/dist/esm/lib/coordinator/isClauseReplaced.js +27 -0
- package/dist/esm/lib/coordinator/isClauseReplaced.js.map +1 -0
- package/dist/esm/lib/coordinator/readWithheld.js +13 -0
- package/dist/esm/lib/coordinator/readWithheld.js.map +1 -0
- package/dist/esm/lib/display/constants.js +2 -1
- package/dist/esm/lib/display/constants.js.map +1 -1
- package/dist/esm/lib/display/resolveDisplayStatus.js +24 -4
- package/dist/esm/lib/display/resolveDisplayStatus.js.map +1 -1
- package/dist/esm/lib/filter/createFilterInput.js +50 -16
- package/dist/esm/lib/filter/createFilterInput.js.map +1 -1
- package/dist/esm/lib/filter/createFilterInputs.js +116 -29
- package/dist/esm/lib/filter/createFilterInputs.js.map +1 -1
- package/dist/esm/lib/geometry/buildColumnTemplate.js +2 -2
- package/dist/esm/lib/geometry/buildColumnTemplate.js.map +1 -1
- package/dist/esm/lib/geometry/createColumnLayout.js +7 -10
- package/dist/esm/lib/geometry/createColumnLayout.js.map +1 -1
- package/dist/esm/lib/geometry/createGridInteraction.js +8 -5
- package/dist/esm/lib/geometry/createGridInteraction.js.map +1 -1
- package/dist/esm/lib/geometry/resolveColumns.js +5 -5
- package/dist/esm/lib/geometry/resolveColumns.js.map +1 -1
- package/dist/esm/lib/index.js +1 -1
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/lib/indexeddb/createIndexedDBViewStore.js +2 -2
- package/dist/esm/lib/indexeddb/createIndexedDBViewStore.js.map +1 -1
- package/dist/esm/lib/indexeddb/readSavedView.js +6 -2
- package/dist/esm/lib/indexeddb/readSavedView.js.map +1 -1
- package/dist/esm/lib/location/createMemoryLocation.js +2 -0
- package/dist/esm/lib/location/createMemoryLocation.js.map +1 -1
- package/dist/esm/lib/location/createPlatformLocation.js +3 -0
- package/dist/esm/lib/location/createPlatformLocation.js.map +1 -1
- package/dist/esm/lib/messages/composeStatus.js +10 -0
- package/dist/esm/lib/messages/composeStatus.js.map +1 -0
- package/dist/esm/lib/messages/constants.js +323 -0
- package/dist/esm/lib/messages/constants.js.map +1 -1
- package/dist/esm/lib/messages/resolveMessages.js +1 -1
- package/dist/esm/lib/messages/resolveMessages.js.map +1 -1
- package/dist/esm/lib/observable/createChannel.js +4 -2
- package/dist/esm/lib/observable/createChannel.js.map +1 -1
- package/dist/esm/lib/presentation/constants.js +5 -12
- package/dist/esm/lib/presentation/constants.js.map +1 -1
- package/dist/esm/lib/presentation/createMemoryPresentation.js +12 -0
- package/dist/esm/lib/presentation/createMemoryPresentation.js.map +1 -0
- package/dist/esm/lib/presentation/createPresentation.js +3 -3
- package/dist/esm/lib/presentation/createPresentation.js.map +1 -1
- package/dist/esm/lib/presentation/hideColumn.js +7 -6
- package/dist/esm/lib/presentation/hideColumn.js.map +1 -1
- package/dist/esm/lib/presentation/index.js +4 -1
- package/dist/esm/lib/presentation/index.js.map +1 -1
- package/dist/esm/lib/presentation/isTableKey.js +9 -0
- package/dist/esm/lib/presentation/isTableKey.js.map +1 -0
- package/dist/esm/lib/presentation/moveColumn.js +7 -7
- package/dist/esm/lib/presentation/moveColumn.js.map +1 -1
- package/dist/esm/lib/presentation/pickTableKeys.js +6 -0
- package/dist/esm/lib/presentation/pickTableKeys.js.map +1 -0
- package/dist/esm/lib/presentation/resetColumnArrangement.js +8 -12
- package/dist/esm/lib/presentation/resetColumnArrangement.js.map +1 -1
- package/dist/esm/lib/presentation/resolveArrangementParams.js +7 -12
- package/dist/esm/lib/presentation/resolveArrangementParams.js.map +1 -1
- package/dist/esm/lib/presentation/resolveColumnArrangement.js +9 -8
- package/dist/esm/lib/presentation/resolveColumnArrangement.js.map +1 -1
- package/dist/esm/lib/presentation/showColumn.js +5 -4
- package/dist/esm/lib/presentation/showColumn.js.map +1 -1
- package/dist/esm/lib/presentation/spellColumnArrangement.js +5 -9
- package/dist/esm/lib/presentation/spellColumnArrangement.js.map +1 -1
- package/dist/esm/lib/presentation/spellWidthKey.js +4 -4
- package/dist/esm/lib/presentation/spellWidthKey.js.map +1 -1
- package/dist/esm/lib/provider/constants.js +3 -22
- package/dist/esm/lib/provider/constants.js.map +1 -1
- package/dist/esm/lib/provider/createDataViewsProvider.js +46 -19
- package/dist/esm/lib/provider/createDataViewsProvider.js.map +1 -1
- package/dist/esm/lib/provider/createQueryCommands.js +32 -20
- package/dist/esm/lib/provider/createQueryCommands.js.map +1 -1
- package/dist/esm/lib/provider/createRecordTyping.js +14 -12
- package/dist/esm/lib/provider/createRecordTyping.js.map +1 -1
- package/dist/esm/lib/provider/createRequestCompleter.js +8 -3
- package/dist/esm/lib/provider/createRequestCompleter.js.map +1 -1
- package/dist/esm/lib/provider/isDataViewsProvider.js +4 -2
- package/dist/esm/lib/provider/isDataViewsProvider.js.map +1 -1
- package/dist/esm/lib/provider/isSameQuery.js +13 -0
- package/dist/esm/lib/provider/isSameQuery.js.map +1 -0
- package/dist/esm/lib/provider/listCarriedIssues.js +20 -0
- package/dist/esm/lib/provider/listCarriedIssues.js.map +1 -0
- package/dist/esm/lib/provider/observePorts.js +2 -2
- package/dist/esm/lib/provider/observePorts.js.map +1 -1
- package/dist/esm/lib/provider/readCommandCause.js +28 -0
- package/dist/esm/lib/provider/readCommandCause.js.map +1 -0
- package/dist/esm/lib/provider/readLocatedArrangement.js +15 -13
- package/dist/esm/lib/provider/readLocatedArrangement.js.map +1 -1
- package/dist/esm/lib/provider/readProviderHost.js +2 -2
- package/dist/esm/lib/provider/readProviderHost.js.map +1 -1
- package/dist/esm/lib/provider/readProviderRegistry.js +20 -0
- package/dist/esm/lib/provider/readProviderRegistry.js.map +1 -0
- package/dist/esm/lib/provider/readStartingPoint.js +2 -1
- package/dist/esm/lib/provider/readStartingPoint.js.map +1 -1
- package/dist/esm/lib/provider/registerProviderHost.js +2 -2
- package/dist/esm/lib/provider/registerProviderHost.js.map +1 -1
- package/dist/esm/lib/provider/resolveHistoryPolicy.js +7 -7
- package/dist/esm/lib/provider/resolveHistoryPolicy.js.map +1 -1
- package/dist/esm/lib/provider/runSource.js +13 -8
- package/dist/esm/lib/provider/runSource.js.map +1 -1
- package/dist/esm/lib/provider/shouldAdoptLocation.js +15 -0
- package/dist/esm/lib/provider/shouldAdoptLocation.js.map +1 -0
- package/dist/esm/lib/provider/spellLocation.js +7 -3
- package/dist/esm/lib/provider/spellLocation.js.map +1 -1
- package/dist/esm/lib/provider/syncLocation.js +61 -31
- package/dist/esm/lib/provider/syncLocation.js.map +1 -1
- package/dist/esm/lib/query/applyQueryCommand.js +129 -38
- package/dist/esm/lib/query/applyQueryCommand.js.map +1 -1
- package/dist/esm/lib/query/areListsEqual.js +1 -1
- package/dist/esm/lib/query/areListsEqual.js.map +1 -1
- package/dist/esm/lib/query/canonicalizeSlice.js +14 -17
- package/dist/esm/lib/query/canonicalizeSlice.js.map +1 -1
- package/dist/esm/lib/query/compareConjuncts.js +44 -0
- package/dist/esm/lib/query/compareConjuncts.js.map +1 -0
- package/dist/esm/lib/query/constants.js +6 -2
- package/dist/esm/lib/query/constants.js.map +1 -1
- package/dist/esm/lib/query/index.js +2 -0
- package/dist/esm/lib/query/index.js.map +1 -1
- package/dist/esm/lib/query/listConjuncts.js +13 -0
- package/dist/esm/lib/query/listConjuncts.js.map +1 -0
- package/dist/esm/lib/query/readCondition.js +36 -0
- package/dist/esm/lib/query/readCondition.js.map +1 -0
- package/dist/esm/lib/query/rejectOperandArity.js +2 -4
- package/dist/esm/lib/query/rejectOperandArity.js.map +1 -1
- package/dist/esm/lib/result/areFieldFacetsEqual.js +7 -1
- package/dist/esm/lib/result/areFieldFacetsEqual.js.map +1 -1
- package/dist/esm/lib/rows/constants.js +1 -1
- package/dist/esm/lib/rows/constants.js.map +1 -1
- package/dist/esm/lib/rows/createRowModel.js +2 -2
- package/dist/esm/lib/rows/createRowModel.js.map +1 -1
- package/dist/esm/lib/rows/createRowScopes.js +5 -2
- package/dist/esm/lib/rows/createRowScopes.js.map +1 -1
- package/dist/esm/lib/schema/createSchema.js +21 -10
- package/dist/esm/lib/schema/createSchema.js.map +1 -1
- package/dist/esm/lib/schema/parseNumberWithUnit.js +72 -0
- package/dist/esm/lib/schema/parseNumberWithUnit.js.map +1 -0
- package/dist/esm/lib/schema/resolveFieldKind.js +88 -29
- package/dist/esm/lib/schema/resolveFieldKind.js.map +1 -1
- package/dist/esm/lib/selection/createSelection.js +4 -2
- package/dist/esm/lib/selection/createSelection.js.map +1 -1
- package/dist/esm/lib/source/copyCapabilities.js +0 -1
- package/dist/esm/lib/source/copyCapabilities.js.map +1 -1
- package/dist/esm/lib/source/createArraySource.js +11 -8
- package/dist/esm/lib/source/createArraySource.js.map +1 -1
- package/dist/esm/lib/source/createPage.js +0 -1
- package/dist/esm/lib/source/createPage.js.map +1 -1
- package/dist/esm/lib/source/createQuerySource.js +32 -13
- package/dist/esm/lib/source/createQuerySource.js.map +1 -1
- package/dist/esm/lib/source/createRefusal.js +5 -0
- package/dist/esm/lib/source/createRefusal.js.map +1 -0
- package/dist/esm/lib/source/createRelaySource.js +49 -60
- package/dist/esm/lib/source/createRelaySource.js.map +1 -1
- package/dist/esm/lib/source/declareCapabilities.js +0 -1
- package/dist/esm/lib/source/declareCapabilities.js.map +1 -1
- package/dist/esm/lib/source/executeSlice.js +1 -0
- package/dist/esm/lib/source/executeSlice.js.map +1 -1
- package/dist/esm/lib/source/foldText.js +3 -0
- package/dist/esm/lib/source/foldText.js.map +1 -1
- package/dist/esm/lib/source/index.js +3 -1
- package/dist/esm/lib/source/index.js.map +1 -1
- package/dist/esm/lib/source/listFilterRefusals.js +30 -0
- package/dist/esm/lib/source/listFilterRefusals.js.map +1 -0
- package/dist/esm/lib/source/listGroupRefusals.js +22 -0
- package/dist/esm/lib/source/listGroupRefusals.js.map +1 -0
- package/dist/esm/lib/source/listOfferedOperators.js +25 -0
- package/dist/esm/lib/source/listOfferedOperators.js.map +1 -0
- package/dist/esm/lib/source/listQueryRefusals.js +35 -0
- package/dist/esm/lib/source/listQueryRefusals.js.map +1 -0
- package/dist/esm/lib/source/listSortRefusals.js +27 -0
- package/dist/esm/lib/source/listSortRefusals.js.map +1 -0
- package/dist/esm/lib/source/listWindowRefusals.js +20 -0
- package/dist/esm/lib/source/listWindowRefusals.js.map +1 -0
- package/dist/esm/lib/source/orderRows.js +36 -12
- package/dist/esm/lib/source/orderRows.js.map +1 -1
- package/dist/esm/lib/source/readFacets.js +30 -15
- package/dist/esm/lib/source/readFacets.js.map +1 -1
- package/dist/esm/lib/source/readRelayPage.js +55 -0
- package/dist/esm/lib/source/readRelayPage.js.map +1 -0
- package/dist/esm/lib/source/readSlice.js +5 -3
- package/dist/esm/lib/source/readSlice.js.map +1 -1
- package/dist/esm/lib/source/resolveErrorDelivery.js +27 -0
- package/dist/esm/lib/source/resolveErrorDelivery.js.map +1 -0
- package/dist/esm/lib/source/selectRows.js +72 -16
- package/dist/esm/lib/source/selectRows.js.map +1 -1
- package/dist/esm/lib/views/createViewCommands.js +6 -3
- package/dist/esm/lib/views/createViewCommands.js.map +1 -1
- package/dist/esm/lib/views/readStoredQuery.js +2 -1
- package/dist/esm/lib/views/readStoredQuery.js.map +1 -1
- package/dist/esm/lib/virtualization/createSizeIndex.js +19 -10
- package/dist/esm/lib/virtualization/createSizeIndex.js.map +1 -1
- package/dist/esm/lib/virtualization/createVirtualRange.js +30 -28
- package/dist/esm/lib/virtualization/createVirtualRange.js.map +1 -1
- package/dist/esm/lib/wire/areQueryIssuesEqual.js +12 -0
- package/dist/esm/lib/wire/areQueryIssuesEqual.js.map +1 -0
- package/dist/esm/lib/wire/constants.js +56 -36
- package/dist/esm/lib/wire/constants.js.map +1 -1
- package/dist/esm/lib/wire/decodeQuery.js +140 -168
- package/dist/esm/lib/wire/decodeQuery.js.map +1 -1
- package/dist/esm/lib/wire/encodeCarryingQuery.js +294 -0
- package/dist/esm/lib/wire/encodeCarryingQuery.js.map +1 -0
- package/dist/esm/lib/wire/encodeQuery.js +8 -76
- package/dist/esm/lib/wire/encodeQuery.js.map +1 -1
- package/dist/esm/lib/wire/index.js +6 -1
- package/dist/esm/lib/wire/index.js.map +1 -1
- package/dist/esm/lib/wire/isNarrowingIssue.js +15 -0
- package/dist/esm/lib/wire/isNarrowingIssue.js.map +1 -0
- package/dist/esm/lib/wire/isOwnedKey.js +6 -2
- package/dist/esm/lib/wire/isOwnedKey.js.map +1 -1
- package/dist/esm/lib/wire/isReservedKey.js +9 -0
- package/dist/esm/lib/wire/isReservedKey.js.map +1 -0
- package/dist/esm/lib/wire/readArrangementParams.js +18 -14
- package/dist/esm/lib/wire/readArrangementParams.js.map +1 -1
- package/dist/esm/lib/wire/readKeyPredicate.js +146 -0
- package/dist/esm/lib/wire/readKeyPredicate.js.map +1 -0
- package/dist/esm/lib/wire/readTableKey.js +21 -0
- package/dist/esm/lib/wire/readTableKey.js.map +1 -0
- package/dist/esm/lib/wire/readUndeclaredField.js +19 -0
- package/dist/esm/lib/wire/readUndeclaredField.js.map +1 -0
- package/dist/esm/lib/wire/readWireKey.js +38 -0
- package/dist/esm/lib/wire/readWireKey.js.map +1 -0
- package/dist/esm/lib/wire/recordConjunct.js +48 -0
- package/dist/esm/lib/wire/recordConjunct.js.map +1 -0
- package/dist/esm/lib/wire/rejectWireName.js +3 -2
- package/dist/esm/lib/wire/rejectWireName.js.map +1 -1
- package/dist/esm/lib/wire/spellArrangementKey.js +7 -0
- package/dist/esm/lib/wire/spellArrangementKey.js.map +1 -0
- package/dist/esm/lib/wire/spellArrangementParams.js +12 -15
- package/dist/esm/lib/wire/spellArrangementParams.js.map +1 -1
- package/dist/esm/lib/wire/spellOperand.js +33 -0
- package/dist/esm/lib/wire/spellOperand.js.map +1 -0
- package/dist/esm/lib/wire/spellTableId.js +12 -0
- package/dist/esm/lib/wire/spellTableId.js.map +1 -0
- package/dist/esm/lib/wire/spellWireKey.js +7 -4
- package/dist/esm/lib/wire/spellWireKey.js.map +1 -1
- package/dist/esm/lib/wire/spellWireValues.js +18 -0
- package/dist/esm/lib/wire/spellWireValues.js.map +1 -0
- package/dist/esm/testing/answerWith.js +10 -0
- package/dist/esm/testing/buildFailedResult.js +12 -0
- package/dist/esm/testing/buildPage.js +19 -0
- package/dist/esm/testing/buildRefusedResult.js +18 -0
- package/dist/esm/testing/buildRowModel.js +15 -0
- package/dist/esm/testing/buildSettledPage.js +22 -0
- package/dist/esm/testing/buildStoredView.js +19 -0
- package/dist/esm/testing/classifyInitializer.js +50 -0
- package/dist/esm/testing/countAtLeast.js +9 -0
- package/dist/esm/testing/countExactly.js +9 -0
- package/dist/esm/testing/createCountedRows.js +28 -0
- package/dist/esm/testing/createCountingViewStore.js +36 -0
- package/dist/esm/testing/createDeferred.js +9 -0
- package/dist/esm/testing/createManualSource.js +56 -0
- package/dist/esm/testing/createRecordingLocation.js +53 -0
- package/dist/esm/testing/createStandInPresentationStore.js +15 -0
- package/dist/esm/testing/createStandInViewStore.js +23 -0
- package/dist/esm/testing/declare.js +10 -0
- package/dist/esm/testing/declareSort.js +17 -0
- package/dist/esm/testing/filterStatusBy.js +13 -0
- package/dist/esm/testing/fixtures.js +694 -0
- package/dist/esm/testing/flushPresentation.js +16 -0
- package/dist/esm/testing/index.js +35 -0
- package/dist/esm/testing/installFakeClock.js +18 -0
- package/dist/esm/testing/isMovableForm.js +7 -0
- package/dist/esm/testing/isWrappedInitializer.js +33 -0
- package/dist/esm/testing/isWrapperCallee.js +10 -0
- package/dist/esm/testing/judgeExports.js +54 -0
- package/dist/esm/testing/listBracedExports.js +45 -0
- package/dist/esm/testing/listExports.js +68 -0
- package/dist/esm/testing/listFileRuleFindings.js +76 -0
- package/dist/esm/testing/listUnmarkedNames.js +40 -0
- package/dist/esm/testing/maskSource.js +149 -0
- package/dist/esm/testing/observeUntilFinished.js +15 -0
- package/dist/esm/testing/openIndexedDBTab.js +20 -0
- package/dist/esm/testing/orderNodesByName.js +31 -0
- package/dist/esm/testing/readDeclarationDoc.js +15 -0
- package/dist/esm/testing/readDeclarationExport.js +41 -0
- package/dist/esm/testing/readDefaultExport.js +55 -0
- package/dist/esm/testing/readDisplayStatus.js +14 -0
- package/dist/esm/testing/readFileRole.js +16 -0
- package/dist/esm/testing/readGroup.js +8 -0
- package/dist/esm/testing/readId.js +9 -0
- package/dist/esm/testing/readIssuedRequest.js +12 -0
- package/dist/esm/testing/readLocalBinding.js +44 -0
- package/dist/esm/testing/readSucceededPage.js +7 -0
- package/dist/esm/testing/relayTypes.js +5 -0
- package/dist/esm/testing/respellLink.js +27 -0
- package/dist/esm/testing/runFailureHandlers.js +26 -0
- package/dist/esm/testing/settleCalls.js +11 -0
- package/dist/esm/testing/skipBalanced.js +20 -0
- package/dist/esm/testing/skipTypeAnnotation.js +33 -0
- package/dist/esm/testing/types.js +2 -0
- package/dist/esm/testing/waitForState.js +40 -0
- package/dist/types/lib/assertion/assertInvariant.d.ts +9 -0
- package/dist/types/lib/assertion/assertInvariant.d.ts.map +1 -0
- package/dist/types/lib/assertion/index.d.ts +2 -0
- package/dist/types/lib/assertion/index.d.ts.map +1 -0
- package/dist/types/lib/bindings/index.d.ts +6 -20
- package/dist/types/lib/bindings/index.d.ts.map +1 -1
- package/dist/types/lib/coordinator/createQueryCoordinator.d.ts.map +1 -1
- package/dist/types/lib/coordinator/index.d.ts +2 -0
- package/dist/types/lib/coordinator/index.d.ts.map +1 -1
- package/dist/types/lib/coordinator/isClauseReplaced.d.ts +12 -0
- package/dist/types/lib/coordinator/isClauseReplaced.d.ts.map +1 -0
- package/dist/types/lib/coordinator/readWithheld.d.ts +9 -0
- package/dist/types/lib/coordinator/readWithheld.d.ts.map +1 -0
- package/dist/types/lib/coordinator/types.d.ts +34 -11
- package/dist/types/lib/coordinator/types.d.ts.map +1 -1
- package/dist/types/lib/display/constants.d.ts.map +1 -1
- package/dist/types/lib/display/resolveDisplayStatus.d.ts +6 -0
- package/dist/types/lib/display/resolveDisplayStatus.d.ts.map +1 -1
- package/dist/types/lib/display/types.d.ts +22 -16
- package/dist/types/lib/display/types.d.ts.map +1 -1
- package/dist/types/lib/filter/createFilterInput.d.ts.map +1 -1
- package/dist/types/lib/filter/createFilterInputs.d.ts +4 -2
- package/dist/types/lib/filter/createFilterInputs.d.ts.map +1 -1
- package/dist/types/lib/filter/types.d.ts +55 -2
- package/dist/types/lib/filter/types.d.ts.map +1 -1
- package/dist/types/lib/geometry/createColumnLayout.d.ts +3 -6
- package/dist/types/lib/geometry/createColumnLayout.d.ts.map +1 -1
- package/dist/types/lib/geometry/createGridInteraction.d.ts +3 -0
- package/dist/types/lib/geometry/createGridInteraction.d.ts.map +1 -1
- package/dist/types/lib/geometry/types.d.ts +3 -1
- package/dist/types/lib/geometry/types.d.ts.map +1 -1
- package/dist/types/lib/index.d.ts +7 -7
- package/dist/types/lib/index.d.ts.map +1 -1
- package/dist/types/lib/indexeddb/createIndexedDBViewStore.d.ts.map +1 -1
- package/dist/types/lib/indexeddb/readSavedView.d.ts +4 -1
- package/dist/types/lib/indexeddb/readSavedView.d.ts.map +1 -1
- package/dist/types/lib/indexeddb/types.d.ts +7 -0
- package/dist/types/lib/indexeddb/types.d.ts.map +1 -1
- package/dist/types/lib/location/createMemoryLocation.d.ts +2 -0
- package/dist/types/lib/location/createMemoryLocation.d.ts.map +1 -1
- package/dist/types/lib/location/createPlatformLocation.d.ts +3 -0
- package/dist/types/lib/location/createPlatformLocation.d.ts.map +1 -1
- package/dist/types/lib/messages/composeStatus.d.ts +6 -0
- package/dist/types/lib/messages/composeStatus.d.ts.map +1 -0
- package/dist/types/lib/messages/constants.d.ts +27 -1
- package/dist/types/lib/messages/constants.d.ts.map +1 -1
- package/dist/types/lib/messages/types.d.ts +381 -88
- package/dist/types/lib/messages/types.d.ts.map +1 -1
- package/dist/types/lib/observable/createChannel.d.ts +2 -0
- package/dist/types/lib/observable/createChannel.d.ts.map +1 -1
- package/dist/types/lib/presentation/constants.d.ts +4 -12
- package/dist/types/lib/presentation/constants.d.ts.map +1 -1
- package/dist/types/lib/presentation/createMemoryPresentation.d.ts +10 -0
- package/dist/types/lib/presentation/createMemoryPresentation.d.ts.map +1 -0
- package/dist/types/lib/presentation/hideColumn.d.ts +2 -2
- package/dist/types/lib/presentation/hideColumn.d.ts.map +1 -1
- package/dist/types/lib/presentation/index.d.ts +4 -1
- package/dist/types/lib/presentation/index.d.ts.map +1 -1
- package/dist/types/lib/presentation/isTableKey.d.ts +6 -0
- package/dist/types/lib/presentation/isTableKey.d.ts.map +1 -0
- package/dist/types/lib/presentation/moveColumn.d.ts +2 -3
- package/dist/types/lib/presentation/moveColumn.d.ts.map +1 -1
- package/dist/types/lib/presentation/pickTableKeys.d.ts +4 -0
- package/dist/types/lib/presentation/pickTableKeys.d.ts.map +1 -0
- package/dist/types/lib/presentation/resetColumnArrangement.d.ts +3 -8
- package/dist/types/lib/presentation/resetColumnArrangement.d.ts.map +1 -1
- package/dist/types/lib/presentation/resolveArrangementParams.d.ts +3 -9
- package/dist/types/lib/presentation/resolveArrangementParams.d.ts.map +1 -1
- package/dist/types/lib/presentation/resolveColumnArrangement.d.ts +3 -2
- package/dist/types/lib/presentation/resolveColumnArrangement.d.ts.map +1 -1
- package/dist/types/lib/presentation/showColumn.d.ts +1 -1
- package/dist/types/lib/presentation/showColumn.d.ts.map +1 -1
- package/dist/types/lib/presentation/spellColumnArrangement.d.ts +3 -7
- package/dist/types/lib/presentation/spellColumnArrangement.d.ts.map +1 -1
- package/dist/types/lib/presentation/spellWidthKey.d.ts +2 -2
- package/dist/types/lib/presentation/spellWidthKey.d.ts.map +1 -1
- package/dist/types/lib/presentation/types.d.ts +6 -2
- package/dist/types/lib/presentation/types.d.ts.map +1 -1
- package/dist/types/lib/provider/constants.d.ts +3 -15
- package/dist/types/lib/provider/constants.d.ts.map +1 -1
- package/dist/types/lib/provider/createDataViewsProvider.d.ts.map +1 -1
- package/dist/types/lib/provider/createQueryCommands.d.ts.map +1 -1
- package/dist/types/lib/provider/createRecordTyping.d.ts.map +1 -1
- package/dist/types/lib/provider/createRequestCompleter.d.ts.map +1 -1
- package/dist/types/lib/provider/isDataViewsProvider.d.ts.map +1 -1
- package/dist/types/lib/provider/isSameQuery.d.ts +8 -0
- package/dist/types/lib/provider/isSameQuery.d.ts.map +1 -0
- package/dist/types/lib/provider/listCarriedIssues.d.ts +10 -0
- package/dist/types/lib/provider/listCarriedIssues.d.ts.map +1 -0
- package/dist/types/lib/provider/readCommandCause.d.ts +10 -0
- package/dist/types/lib/provider/readCommandCause.d.ts.map +1 -0
- package/dist/types/lib/provider/readLocatedArrangement.d.ts +3 -5
- package/dist/types/lib/provider/readLocatedArrangement.d.ts.map +1 -1
- package/dist/types/lib/provider/readProviderRegistry.d.ts +10 -0
- package/dist/types/lib/provider/readProviderRegistry.d.ts.map +1 -0
- package/dist/types/lib/provider/readStartingPoint.d.ts.map +1 -1
- package/dist/types/lib/provider/runSource.d.ts.map +1 -1
- package/dist/types/lib/provider/shouldAdoptLocation.d.ts +19 -0
- package/dist/types/lib/provider/shouldAdoptLocation.d.ts.map +1 -0
- package/dist/types/lib/provider/spellLocation.d.ts +10 -1
- package/dist/types/lib/provider/spellLocation.d.ts.map +1 -1
- package/dist/types/lib/provider/syncLocation.d.ts.map +1 -1
- package/dist/types/lib/provider/types.d.ts +91 -36
- package/dist/types/lib/provider/types.d.ts.map +1 -1
- package/dist/types/lib/query/applyQueryCommand.d.ts +7 -2
- package/dist/types/lib/query/applyQueryCommand.d.ts.map +1 -1
- package/dist/types/lib/query/canonicalizeSlice.d.ts +4 -2
- package/dist/types/lib/query/canonicalizeSlice.d.ts.map +1 -1
- package/dist/types/lib/query/compareConjuncts.d.ts +14 -0
- package/dist/types/lib/query/compareConjuncts.d.ts.map +1 -0
- package/dist/types/lib/query/constants.d.ts +2 -2
- package/dist/types/lib/query/constants.d.ts.map +1 -1
- package/dist/types/lib/query/index.d.ts +2 -0
- package/dist/types/lib/query/index.d.ts.map +1 -1
- package/dist/types/lib/query/listConjuncts.d.ts +11 -0
- package/dist/types/lib/query/listConjuncts.d.ts.map +1 -0
- package/dist/types/lib/query/readCondition.d.ts +14 -0
- package/dist/types/lib/query/readCondition.d.ts.map +1 -0
- package/dist/types/lib/query/rejectOperandArity.d.ts +2 -2
- package/dist/types/lib/query/rejectOperandArity.d.ts.map +1 -1
- package/dist/types/lib/query/types.d.ts +89 -16
- package/dist/types/lib/query/types.d.ts.map +1 -1
- package/dist/types/lib/result/areFieldFacetsEqual.d.ts +7 -1
- package/dist/types/lib/result/areFieldFacetsEqual.d.ts.map +1 -1
- package/dist/types/lib/result/types.d.ts +66 -24
- package/dist/types/lib/result/types.d.ts.map +1 -1
- package/dist/types/lib/rows/createRowScopes.d.ts +3 -0
- package/dist/types/lib/rows/createRowScopes.d.ts.map +1 -1
- package/dist/types/lib/rows/types.d.ts +3 -3
- package/dist/types/lib/rows/types.d.ts.map +1 -1
- package/dist/types/lib/schema/createSchema.d.ts.map +1 -1
- package/dist/types/lib/schema/parseNumberWithUnit.d.ts +15 -0
- package/dist/types/lib/schema/parseNumberWithUnit.d.ts.map +1 -0
- package/dist/types/lib/schema/resolveFieldKind.d.ts.map +1 -1
- package/dist/types/lib/schema/types.d.ts +93 -29
- package/dist/types/lib/schema/types.d.ts.map +1 -1
- package/dist/types/lib/selection/createSelection.d.ts +2 -0
- package/dist/types/lib/selection/createSelection.d.ts.map +1 -1
- package/dist/types/lib/source/copyCapabilities.d.ts.map +1 -1
- package/dist/types/lib/source/createArraySource.d.ts +5 -2
- package/dist/types/lib/source/createArraySource.d.ts.map +1 -1
- package/dist/types/lib/source/createPage.d.ts.map +1 -1
- package/dist/types/lib/source/createQuerySource.d.ts +7 -0
- package/dist/types/lib/source/createQuerySource.d.ts.map +1 -1
- package/dist/types/lib/source/createRefusal.d.ts +4 -0
- package/dist/types/lib/source/createRefusal.d.ts.map +1 -0
- package/dist/types/lib/source/createRelaySource.d.ts +7 -1
- package/dist/types/lib/source/createRelaySource.d.ts.map +1 -1
- package/dist/types/lib/source/declareCapabilities.d.ts.map +1 -1
- package/dist/types/lib/source/executeSlice.d.ts.map +1 -1
- package/dist/types/lib/source/foldText.d.ts +3 -0
- package/dist/types/lib/source/foldText.d.ts.map +1 -1
- package/dist/types/lib/source/index.d.ts +3 -1
- package/dist/types/lib/source/index.d.ts.map +1 -1
- package/dist/types/lib/source/listFilterRefusals.d.ts +11 -0
- package/dist/types/lib/source/listFilterRefusals.d.ts.map +1 -0
- package/dist/types/lib/source/listGroupRefusals.d.ts +10 -0
- package/dist/types/lib/source/listGroupRefusals.d.ts.map +1 -0
- package/dist/types/lib/source/listOfferedOperators.d.ts +14 -0
- package/dist/types/lib/source/listOfferedOperators.d.ts.map +1 -0
- package/dist/types/lib/source/{refusalsOf.d.ts → listQueryRefusals.d.ts} +3 -3
- package/dist/types/lib/source/listQueryRefusals.d.ts.map +1 -0
- package/dist/types/lib/source/listSortRefusals.d.ts +10 -0
- package/dist/types/lib/source/listSortRefusals.d.ts.map +1 -0
- package/dist/types/lib/source/listWindowRefusals.d.ts +9 -0
- package/dist/types/lib/source/listWindowRefusals.d.ts.map +1 -0
- package/dist/types/lib/source/orderRows.d.ts +10 -5
- package/dist/types/lib/source/orderRows.d.ts.map +1 -1
- package/dist/types/lib/source/readFacets.d.ts +1 -1
- package/dist/types/lib/source/readFacets.d.ts.map +1 -1
- package/dist/types/lib/source/readRelayPage.d.ts +19 -0
- package/dist/types/lib/source/readRelayPage.d.ts.map +1 -0
- package/dist/types/lib/source/readSlice.d.ts +5 -3
- package/dist/types/lib/source/readSlice.d.ts.map +1 -1
- package/dist/types/lib/source/resolveErrorDelivery.d.ts +9 -0
- package/dist/types/lib/source/resolveErrorDelivery.d.ts.map +1 -0
- package/dist/types/lib/source/selectRows.d.ts +4 -2
- package/dist/types/lib/source/selectRows.d.ts.map +1 -1
- package/dist/types/lib/source/types.d.ts +36 -17
- package/dist/types/lib/source/types.d.ts.map +1 -1
- package/dist/types/lib/views/createViewCommands.d.ts.map +1 -1
- package/dist/types/lib/views/readStoredQuery.d.ts.map +1 -1
- package/dist/types/lib/views/types.d.ts +1 -1
- package/dist/types/lib/views/types.d.ts.map +1 -1
- package/dist/types/lib/virtualization/createSizeIndex.d.ts +3 -0
- package/dist/types/lib/virtualization/createSizeIndex.d.ts.map +1 -1
- package/dist/types/lib/virtualization/createVirtualRange.d.ts +4 -1
- package/dist/types/lib/virtualization/createVirtualRange.d.ts.map +1 -1
- package/dist/types/lib/virtualization/types.d.ts +4 -4
- package/dist/types/lib/virtualization/types.d.ts.map +1 -1
- package/dist/types/lib/wire/areQueryIssuesEqual.d.ts +7 -0
- package/dist/types/lib/wire/areQueryIssuesEqual.d.ts.map +1 -0
- package/dist/types/lib/wire/constants.d.ts +54 -18
- package/dist/types/lib/wire/constants.d.ts.map +1 -1
- package/dist/types/lib/wire/decodeQuery.d.ts +7 -4
- package/dist/types/lib/wire/decodeQuery.d.ts.map +1 -1
- package/dist/types/lib/wire/encodeCarryingQuery.d.ts +9 -0
- package/dist/types/lib/wire/encodeCarryingQuery.d.ts.map +1 -0
- package/dist/types/lib/wire/encodeQuery.d.ts.map +1 -1
- package/dist/types/lib/wire/index.d.ts +6 -1
- package/dist/types/lib/wire/index.d.ts.map +1 -1
- package/dist/types/lib/wire/isNarrowingIssue.d.ts +13 -0
- package/dist/types/lib/wire/isNarrowingIssue.d.ts.map +1 -0
- package/dist/types/lib/wire/isOwnedKey.d.ts +3 -1
- package/dist/types/lib/wire/isOwnedKey.d.ts.map +1 -1
- package/dist/types/lib/wire/isReservedKey.d.ts +6 -0
- package/dist/types/lib/wire/isReservedKey.d.ts.map +1 -0
- package/dist/types/lib/wire/readArrangementParams.d.ts +4 -8
- package/dist/types/lib/wire/readArrangementParams.d.ts.map +1 -1
- package/dist/types/lib/wire/readKeyPredicate.d.ts +9 -0
- package/dist/types/lib/wire/readKeyPredicate.d.ts.map +1 -0
- package/dist/types/lib/wire/readTableKey.d.ts +13 -0
- package/dist/types/lib/wire/readTableKey.d.ts.map +1 -0
- package/dist/types/lib/wire/readUndeclaredField.d.ts +11 -0
- package/dist/types/lib/wire/readUndeclaredField.d.ts.map +1 -0
- package/dist/types/lib/wire/readWireKey.d.ts +11 -0
- package/dist/types/lib/wire/readWireKey.d.ts.map +1 -0
- package/dist/types/lib/wire/recordConjunct.d.ts +10 -0
- package/dist/types/lib/wire/recordConjunct.d.ts.map +1 -0
- package/dist/types/lib/wire/rejectWireName.d.ts.map +1 -1
- package/dist/types/lib/wire/spellArrangementKey.d.ts +4 -0
- package/dist/types/lib/wire/spellArrangementKey.d.ts.map +1 -0
- package/dist/types/lib/wire/spellArrangementParams.d.ts +3 -9
- package/dist/types/lib/wire/spellArrangementParams.d.ts.map +1 -1
- package/dist/types/lib/wire/spellOperand.d.ts +4 -0
- package/dist/types/lib/wire/spellOperand.d.ts.map +1 -0
- package/dist/types/lib/wire/spellTableId.d.ts +6 -0
- package/dist/types/lib/wire/spellTableId.d.ts.map +1 -0
- package/dist/types/lib/wire/spellWireKey.d.ts +4 -4
- package/dist/types/lib/wire/spellWireKey.d.ts.map +1 -1
- package/dist/types/lib/wire/spellWireValues.d.ts +13 -0
- package/dist/types/lib/wire/spellWireValues.d.ts.map +1 -0
- package/dist/types/lib/wire/types.d.ts +68 -31
- package/dist/types/lib/wire/types.d.ts.map +1 -1
- package/dist/types/testing/answerWith.d.ts +9 -0
- package/dist/types/testing/buildFailedResult.d.ts +10 -0
- package/dist/types/testing/buildPage.d.ts +8 -0
- package/dist/types/testing/buildRefusedResult.d.ts +10 -0
- package/dist/types/testing/buildRowModel.d.ts +9 -0
- package/dist/types/testing/buildSettledPage.d.ts +17 -0
- package/dist/types/testing/buildStoredView.d.ts +8 -0
- package/dist/types/testing/classifyInitializer.d.ts +6 -0
- package/dist/types/testing/countAtLeast.d.ts +8 -0
- package/dist/types/testing/countExactly.d.ts +8 -0
- package/dist/types/testing/createCountedRows.d.ts +13 -0
- package/dist/types/testing/createCountingViewStore.d.ts +10 -0
- package/dist/types/testing/createDeferred.d.ts +8 -0
- package/dist/types/testing/createManualSource.d.ts +16 -0
- package/dist/types/testing/createRecordingLocation.d.ts +20 -0
- package/dist/types/testing/createStandInPresentationStore.d.ts +9 -0
- package/dist/types/testing/createStandInViewStore.d.ts +9 -0
- package/dist/types/testing/declare.d.ts +8 -0
- package/dist/types/testing/declareSort.d.ts +9 -0
- package/dist/types/testing/filterStatusBy.d.ts +8 -0
- package/dist/types/testing/fixtures.d.ts +117 -0
- package/dist/types/testing/flushPresentation.d.ts +13 -0
- package/dist/types/testing/index.d.ts +37 -0
- package/dist/types/testing/installFakeClock.d.ts +14 -0
- package/dist/types/testing/isMovableForm.d.ts +6 -0
- package/dist/types/testing/isWrappedInitializer.d.ts +6 -0
- package/dist/types/testing/isWrapperCallee.d.ts +2 -0
- package/dist/types/testing/judgeExports.d.ts +8 -0
- package/dist/types/testing/listBracedExports.d.ts +6 -0
- package/dist/types/testing/listExports.d.ts +7 -0
- package/dist/types/testing/listFileRuleFindings.d.ts +12 -0
- package/dist/types/testing/listUnmarkedNames.d.ts +10 -0
- package/dist/types/testing/maskSource.d.ts +6 -0
- package/dist/types/testing/observeUntilFinished.d.ts +12 -0
- package/dist/types/testing/openIndexedDBTab.d.ts +12 -0
- package/dist/types/testing/orderNodesByName.d.ts +11 -0
- package/dist/types/testing/readDeclarationDoc.d.ts +6 -0
- package/dist/types/testing/readDeclarationExport.d.ts +6 -0
- package/dist/types/testing/readDefaultExport.d.ts +6 -0
- package/dist/types/testing/readDisplayStatus.d.ts +8 -0
- package/dist/types/testing/readFileRole.d.ts +3 -0
- package/dist/types/testing/readGroup.d.ts +2 -0
- package/dist/types/testing/readId.d.ts +8 -0
- package/dist/types/testing/readIssuedRequest.d.ts +7 -0
- package/dist/types/testing/readLocalBinding.d.ts +6 -0
- package/dist/types/testing/readSucceededPage.d.ts +3 -0
- package/dist/types/testing/relayTypes.d.ts +38 -0
- package/dist/types/testing/respellLink.d.ts +12 -0
- package/dist/types/testing/runFailureHandlers.d.ts +12 -0
- package/dist/types/testing/settleCalls.d.ts +15 -0
- package/dist/types/testing/skipBalanced.d.ts +5 -0
- package/dist/types/testing/skipTypeAnnotation.d.ts +5 -0
- package/dist/types/testing/types.d.ts +228 -0
- package/dist/types/testing/waitForState.d.ts +11 -0
- package/package.json +19 -9
- package/dist/esm/lib/messages/DEFAULT_MESSAGES.js +0 -194
- package/dist/esm/lib/messages/DEFAULT_MESSAGES.js.map +0 -1
- package/dist/esm/lib/source/refusalsOf.js +0 -74
- package/dist/esm/lib/source/refusalsOf.js.map +0 -1
- package/dist/types/lib/messages/DEFAULT_MESSAGES.d.ts +0 -10
- package/dist/types/lib/messages/DEFAULT_MESSAGES.d.ts.map +0 -1
- package/dist/types/lib/source/refusalsOf.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/query/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,QAAQ,GACR,KAAK,GACL,KAAK,GACL,OAAO,GACP,UAAU,GACV,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/query/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,QAAQ,GACR,KA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EAAyE;IACzE,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,yEAAyE;IACzE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,KAAK,GAAG;IACP,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { Facet } from "./types.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Whether two facets claim the same: one kind, and the same values and
|
|
4
|
+
* counts, or range ends.
|
|
5
|
+
*
|
|
6
|
+
* @experimental Pre-release: the whole surface is still settling, and this
|
|
7
|
+
* name may change or move before the first release.
|
|
8
|
+
*/
|
|
3
9
|
export default function areFieldFacetsEqual(a: Facet, b: Facet): boolean;
|
|
4
10
|
//# sourceMappingURL=areFieldFacetsEqual.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areFieldFacetsEqual.d.ts","sourceRoot":"","sources":["../../../../src/lib/result/areFieldFacetsEqual.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"areFieldFacetsEqual.d.ts","sourceRoot":"","sources":["../../../../src/lib/result/areFieldFacetsEqual.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO,CAgBvE"}
|
|
@@ -11,8 +11,7 @@ import type { GroupPath, PredicateOperator, ResultWindow, Slice } from "../query
|
|
|
11
11
|
import type { RowRecord } from "../rows/index.js";
|
|
12
12
|
/**
|
|
13
13
|
* A number a source claims, with how much it claims. Never a bare null:
|
|
14
|
-
* "unknown" is a value, so
|
|
15
|
-
* filtered one and a missing count can never be read as zero.
|
|
14
|
+
* "unknown" is a value, so a missing count can never be read as zero.
|
|
16
15
|
*
|
|
17
16
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
18
17
|
* name may change or move before the first release.
|
|
@@ -29,27 +28,22 @@ export type Count = {
|
|
|
29
28
|
readonly kind: "unknown";
|
|
30
29
|
};
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
31
|
+
* Two counts with distinct provenance. `pageable`: rows the window pages
|
|
33
32
|
* over, after collapse — the only basis for "page n of m". `matched`: rows
|
|
34
|
-
* satisfying filter and search, before collapse.
|
|
35
|
-
* ignoring the query, which nothing displays yet. Without grouping
|
|
33
|
+
* satisfying filter and search, before collapse. Without grouping
|
|
36
34
|
* `pageable` equals `matched`.
|
|
37
35
|
*
|
|
38
|
-
* @seam summary — read by `DataViews.Summary`, which shows `total` under
|
|
39
|
-
* its own label
|
|
40
|
-
*
|
|
41
36
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
42
37
|
* name may change or move before the first release.
|
|
43
38
|
*/
|
|
44
39
|
export type SourceCounts = {
|
|
45
40
|
readonly pageable: Count;
|
|
46
41
|
readonly matched: Count;
|
|
47
|
-
readonly total: Count;
|
|
48
42
|
};
|
|
49
43
|
/**
|
|
50
44
|
* One value a discrete field holds across the records matching the query,
|
|
51
45
|
* with how many of them hold it: an option of a `choices` field, or `true`
|
|
52
|
-
* for a `
|
|
46
|
+
* for a `presence` field's records that are set.
|
|
53
47
|
*
|
|
54
48
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
55
49
|
* name may change or move before the first release.
|
|
@@ -64,11 +58,11 @@ export type FacetValue = {
|
|
|
64
58
|
* out keep their counts and a bound can widen past itself. Computed by the
|
|
65
59
|
* source over the whole matching set, never over a loaded page.
|
|
66
60
|
*
|
|
67
|
-
* - `values`, for a `choices` or `
|
|
61
|
+
* - `values`, for a `choices` or `presence` field: every distinct value held
|
|
68
62
|
* by at least one matching record, each with its count, in the field's
|
|
69
63
|
* order — a `choices` field's declared options in their order, then any
|
|
70
64
|
* other value by code unit, and where the options are the server's each
|
|
71
|
-
* value as its text; a `
|
|
65
|
+
* value as its text; a `presence` field's one value, `true`, while any
|
|
72
66
|
* record is set.
|
|
73
67
|
* - `range`, for a `number` or `date` field: the least and greatest value a
|
|
74
68
|
* matching record holds, null while none holds one — a number among the
|
|
@@ -92,7 +86,7 @@ export type Facet = {
|
|
|
92
86
|
* source declares summaries yet, so `groups` is null on every page this
|
|
93
87
|
* release delivers.
|
|
94
88
|
*
|
|
95
|
-
*
|
|
89
|
+
* The group header row reads its count from this.
|
|
96
90
|
*
|
|
97
91
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
98
92
|
* name may change or move before the first release.
|
|
@@ -143,24 +137,54 @@ export type SourcePage<TRow extends object = RowRecord> = {
|
|
|
143
137
|
readonly cursors: PageCursors | null;
|
|
144
138
|
};
|
|
145
139
|
/**
|
|
146
|
-
* Which member of a request was refused.
|
|
147
|
-
* addressing every row a query matches; nothing declares that scope, so
|
|
148
|
-
* the binding rejects such a request outright rather than answering a
|
|
149
|
-
* refusal nothing could act on.
|
|
140
|
+
* Which member of a request was refused.
|
|
150
141
|
*
|
|
151
142
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
152
143
|
* name may change or move before the first release.
|
|
153
144
|
*/
|
|
154
|
-
export type SourceRefusalPart = "filter" | "search" | "sort" | "group" | "window"
|
|
145
|
+
export type SourceRefusalPart = "filter" | "search" | "sort" | "group" | "window";
|
|
155
146
|
/**
|
|
156
147
|
* Machine-readable cause, so a control can react without reading text.
|
|
157
|
-
* `query-targets-unsupported` is the refusal a query-wide target set
|
|
158
|
-
* would carry; see `SourceRefusalPart`.
|
|
159
148
|
*
|
|
160
149
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
161
150
|
* name may change or move before the first release.
|
|
162
151
|
*/
|
|
163
|
-
export type SourceRefusalCode = "undeclared-field" | "undeclared-operator" | "too-many-terms" | "too-many-levels" | "unreachable-page" | "unsupported-collapse" | "
|
|
152
|
+
export type SourceRefusalCode = "undeclared-field" | "undeclared-operator" | "too-many-terms" | "too-many-levels" | "unreachable-page" | "unsupported-collapse" | "unsupported-combination";
|
|
153
|
+
/**
|
|
154
|
+
* Which stage refused a parameter, for a control to switch on: the
|
|
155
|
+
* source's own code where the source refused it, `malformed` where the
|
|
156
|
+
* grammar could not read it, `invalid` where the schema refused its value or
|
|
157
|
+
* its operator, and `unknown-field` where a sort term names a field the
|
|
158
|
+
* collection does not have. A filter's key spelled with an operator over a
|
|
159
|
+
* name the collection does not declare — a field since removed — is
|
|
160
|
+
* `undeclared-field`, the code a source gives a field it does not filter.
|
|
161
|
+
*
|
|
162
|
+
* @experimental Pre-release: the whole surface is still settling, and this
|
|
163
|
+
* name may change or move before the first release.
|
|
164
|
+
*/
|
|
165
|
+
export type QueryIssueCode = SourceRefusalCode | "malformed" | "invalid" | "unknown-field";
|
|
166
|
+
/**
|
|
167
|
+
* One refusal of an owned parameter — by the grammar, the schema or the
|
|
168
|
+
* source — named for a visible query error. One parameter may carry
|
|
169
|
+
* several. The code names the stage that refused it, and the reason is what
|
|
170
|
+
* a control says.
|
|
171
|
+
*
|
|
172
|
+
* @experimental Pre-release: the whole surface is still settling, and this
|
|
173
|
+
* name may change or move before the first release.
|
|
174
|
+
*/
|
|
175
|
+
export type QueryIssue = {
|
|
176
|
+
/** The parameter as it was spelled in the URL. */
|
|
177
|
+
readonly parameter: string;
|
|
178
|
+
/**
|
|
179
|
+
* The field the parameter addresses: a filter's field, declared or not, or
|
|
180
|
+
* null for every other parameter, the search `q` included.
|
|
181
|
+
*/
|
|
182
|
+
readonly field: string | null;
|
|
183
|
+
/** Which stage refused it, for a control to switch on. */
|
|
184
|
+
readonly code: QueryIssueCode;
|
|
185
|
+
/** Why it was refused: a lowercase fragment, as schema reasons are. */
|
|
186
|
+
readonly reason: string;
|
|
187
|
+
};
|
|
164
188
|
/**
|
|
165
189
|
* One structured refusal. A source reports what it cannot execute; it never
|
|
166
190
|
* rewrites the query, truncates an ordering or answers with broader rows.
|
|
@@ -208,6 +232,16 @@ export type SourceDelivery<TRow extends object = RowRecord> = {
|
|
|
208
232
|
} | {
|
|
209
233
|
readonly status: "failed";
|
|
210
234
|
readonly failure: SourceFailure;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* The request is forbidden to whoever made it. It carries no reason: a
|
|
238
|
+
* server's words about permissions are not rendered, so nothing about the
|
|
239
|
+
* denial leaks. The cause is for the application's logging, as a
|
|
240
|
+
* failure's is.
|
|
241
|
+
*/
|
|
242
|
+
| {
|
|
243
|
+
readonly status: "forbidden";
|
|
244
|
+
readonly cause: unknown;
|
|
211
245
|
};
|
|
212
246
|
/**
|
|
213
247
|
* What one request completes with: a delivery, or the binding's refusal.
|
|
@@ -234,13 +268,21 @@ export type ResultProvenance = {
|
|
|
234
268
|
};
|
|
235
269
|
/**
|
|
236
270
|
* Why the last request produced nothing, structurally: the completion it
|
|
237
|
-
* ended with, less the success
|
|
238
|
-
* same `status` the source
|
|
271
|
+
* ended with, less the success — or a followed link refused before anything
|
|
272
|
+
* ran. One shape, so a renderer switches on the same `status` the source
|
|
273
|
+
* answered with: a link's refusal is `refused` too, carrying the link's
|
|
274
|
+
* clauses, with the code each was refused for, in place of the source's
|
|
275
|
+
* refusals. Those clauses would have narrowed the result, so the query
|
|
276
|
+
* stands withheld while they do.
|
|
239
277
|
*
|
|
240
278
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
241
279
|
* name may change or move before the first release.
|
|
242
280
|
*/
|
|
243
281
|
export type ResultProblem = Exclude<Completion, {
|
|
244
282
|
readonly status: "succeeded";
|
|
245
|
-
}
|
|
283
|
+
}> | {
|
|
284
|
+
readonly status: "refused";
|
|
285
|
+
/** The link's refused clauses that would have narrowed the result. */
|
|
286
|
+
readonly issues: readonly QueryIssue[];
|
|
287
|
+
};
|
|
246
288
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/result/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/result/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GACb;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AACpD,oEAAoE;GAClE;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,KAAK,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AI,SAAS,MAAM,GAAG,SAAS,IACtD;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;CAAE,GACjE;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;CAAE;AAChE;;;;;GAKG;GACD;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,IAAI,SAAS,MAAM,GAAG,SAAS,IAClD,cAAc,CAAC,IAAI,CAAC,GACpB;IACE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CAC7C,CAAC;AAEN;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GACrB,OAAO,CAAC,UAAU,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC,GACrD;IACE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;CACxC,CAAC"}
|
|
@@ -12,6 +12,9 @@ import type { RowScopes, RowScopesConfig } from "./types.js";
|
|
|
12
12
|
* Observation is a separate step: the registry is readable as soon as it is
|
|
13
13
|
* built, and only `observe()` subscribes.
|
|
14
14
|
*
|
|
15
|
+
* @note Impure: holds a scope and its channels per row, and publishes
|
|
16
|
+
* row and selection changes into them.
|
|
17
|
+
*
|
|
15
18
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
16
19
|
* name may change or move before the first release.
|
|
17
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRowScopes.d.ts","sourceRoot":"","sources":["../../../../src/lib/rows/createRowScopes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRowScopes.d.ts","sourceRoot":"","sources":["../../../../src/lib/rows/createRowScopes.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAe,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAa1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,SAAS,MAAM,EACzD,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAkGjB"}
|
|
@@ -43,14 +43,14 @@ export type RowModel<TRow extends object = RowRecord> = {
|
|
|
43
43
|
readonly entries: readonly RowEntry<TRow>[];
|
|
44
44
|
readonly ids: readonly string[];
|
|
45
45
|
/** The record for one identity, or undefined when the row is not modelled. */
|
|
46
|
-
readonly
|
|
46
|
+
readonly findRecord: (id: string) => TRow | undefined;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* Whether a schema field applies to a row, by the field's type scoping.
|
|
50
50
|
* Value and empty are the field's own states; this is the third.
|
|
51
51
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* The body cell draws a not-applicable cell as a dash with the accessible
|
|
53
|
+
* text "not applicable".
|
|
54
54
|
*
|
|
55
55
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
56
56
|
* name may change or move before the first release.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/rows/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,K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AAC;AAEpB;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,KAAK,CAAC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EACtD,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"createSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/createSchema.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,MAAM,EACN,qBAAqB,EAEtB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,KAAK,CAAC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EACtD,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CA6IlC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NumberReading, NumberUnits } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read typed text as a number in base units: a plain decimal, optionally
|
|
4
|
+
* followed by one of the units' display symbols, matched case-insensitively
|
|
5
|
+
* and multiplied by its factor, scaled from the digits typed and the
|
|
6
|
+
* factor's, so `4.03 kB` at a factor of 1000 is exactly 4030. Where the
|
|
7
|
+
* field has units, spaces around the text are not part of it, and text on
|
|
8
|
+
* its way to a value — `16 `, `16 G`, `-`, `1.` — is incomplete rather than
|
|
9
|
+
* wrong; a whole symbol the field does not have is its own reading. The
|
|
10
|
+
* decimal point is `.` or the reader's own decimal separator, which the
|
|
11
|
+
* caller passes in, so `16,5 GiB` reads where the separator is `,`; a
|
|
12
|
+
* grouping separator is never read.
|
|
13
|
+
*/
|
|
14
|
+
export default function parseNumberWithUnit(input: string, units: NumberUnits | undefined, decimalSeparator?: string): NumberReading;
|
|
15
|
+
//# sourceMappingURL=parseNumberWithUnit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseNumberWithUnit.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/parseNumberWithUnit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAiC7D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,gBAAgB,SAAM,GACrB,aAAa,CAsCf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveFieldKind.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/resolveFieldKind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveFieldKind.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/resolveFieldKind.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAGV,SAAS,EACT,cAAc,EAQf,MAAM,YAAY,CAAC;AAyWpB;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,CAExE"}
|
|
@@ -10,7 +10,7 @@ import type { Predicate, PredicateOperand, PredicateOperator } from "../query/in
|
|
|
10
10
|
* A closed-set field, filtered by `isAny` — the value is one of the operands
|
|
11
11
|
* — and `isNone` — the value is present, a string or a number, and none of
|
|
12
12
|
* the operands. An absent or null value, or one of another type, is neither
|
|
13
|
-
* any nor none of them.
|
|
13
|
+
* any nor none of them. A list-valued field matches by element instead.
|
|
14
14
|
*
|
|
15
15
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
16
16
|
* name may change or move before the first release.
|
|
@@ -27,9 +27,40 @@ export type ChoicesField = {
|
|
|
27
27
|
* spelled on the wire reads back as the option it was.
|
|
28
28
|
*/
|
|
29
29
|
readonly options?: readonly (string | number)[];
|
|
30
|
+
/**
|
|
31
|
+
* Whether a record holds a list of options rather than one: `isAny` then
|
|
32
|
+
* matches when any element is an operand, `isNone` when a list is held
|
|
33
|
+
* and none of its elements is, and a facet counts the records holding
|
|
34
|
+
* each option. Left out, a record holds one option.
|
|
35
|
+
*/
|
|
36
|
+
readonly multiple?: true;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The units a number field's values are measured in: the base unit records,
|
|
40
|
+
* sources, the wire, facets and the field's limits use, and the units a
|
|
41
|
+
* reader may type a value in. SI and IEC symbols are data, never
|
|
42
|
+
* translated.
|
|
43
|
+
*
|
|
44
|
+
* @experimental Pre-release: the whole surface is still settling, and this
|
|
45
|
+
* name may change or move before the first release.
|
|
46
|
+
*/
|
|
47
|
+
export type NumberUnits = {
|
|
48
|
+
/** The unit the record, the source and the wire use. */
|
|
49
|
+
readonly base: string;
|
|
50
|
+
/**
|
|
51
|
+
* The units a value may be typed in, ascending, each with its size in
|
|
52
|
+
* base units; the base unit is one of them, with a factor of 1.
|
|
53
|
+
*/
|
|
54
|
+
readonly display: readonly {
|
|
55
|
+
readonly symbol: string;
|
|
56
|
+
readonly factor: number;
|
|
57
|
+
}[];
|
|
30
58
|
};
|
|
31
59
|
/**
|
|
32
|
-
* A numeric field: lower/upper bounds with optional limits
|
|
60
|
+
* A numeric field: lower/upper bounds with optional limits, and optionally
|
|
61
|
+
* the units its values are measured in. A typed value may carry one of its
|
|
62
|
+
* display units, matched case-insensitively, as `16 GiB`, and is read in
|
|
63
|
+
* base units; a value without one is in base units.
|
|
33
64
|
*
|
|
34
65
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
35
66
|
* name may change or move before the first release.
|
|
@@ -39,16 +70,20 @@ export type NumberField = {
|
|
|
39
70
|
readonly kind: "number";
|
|
40
71
|
readonly min?: number;
|
|
41
72
|
readonly max?: number;
|
|
73
|
+
readonly units?: NumberUnits;
|
|
42
74
|
};
|
|
43
75
|
/**
|
|
44
|
-
* A presence field:
|
|
76
|
+
* A presence field: whether a record sets it, filtered by `isSet` with
|
|
77
|
+
* `true` for records that set it and `false` for those that do not. Any
|
|
78
|
+
* value but an absent or null one is set, `false` included. It orders in two ranks, unset before set; `false` and `true`
|
|
79
|
+
* are both set and tie.
|
|
45
80
|
*
|
|
46
81
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
47
82
|
* name may change or move before the first release.
|
|
48
83
|
*/
|
|
49
|
-
export type
|
|
84
|
+
export type PresenceField = {
|
|
50
85
|
readonly field: string;
|
|
51
|
-
readonly kind: "
|
|
86
|
+
readonly kind: "presence";
|
|
52
87
|
};
|
|
53
88
|
/**
|
|
54
89
|
* A date field: ISO-8601 calendar-date bounds.
|
|
@@ -68,12 +103,14 @@ export type DateField = {
|
|
|
68
103
|
};
|
|
69
104
|
/**
|
|
70
105
|
* A free-text field: ordered through the source's collator, and filtered by
|
|
71
|
-
* `
|
|
72
|
-
*
|
|
73
|
-
* without a locale, final sigma
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
106
|
+
* `is` — the value equals the operand — `contains` — the value holds it —
|
|
107
|
+
* `startsWith` and `endsWith` — the value begins or ends with it — once both
|
|
108
|
+
* are folded: normalised to NFC, lowercased without a locale, final sigma
|
|
109
|
+
* read as sigma, and normalised to NFC again. `isNot` and `notContains`
|
|
110
|
+
* hold exactly where `is` and `contains` do not. The operand is literal:
|
|
111
|
+
* `%`, `_` and `\` are characters to look for, never wildcards, and nothing
|
|
112
|
+
* is trimmed. Only a string value can hold one; an absent, null or
|
|
113
|
+
* non-string value never does, so it matches both negations.
|
|
77
114
|
*
|
|
78
115
|
* @experimental Pre-release: the operators a text field accepts may change
|
|
79
116
|
* before the first release.
|
|
@@ -107,7 +144,7 @@ type TypeScoped = {
|
|
|
107
144
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
108
145
|
* name may change or move before the first release.
|
|
109
146
|
*/
|
|
110
|
-
export type SchemaFieldDefinition = TypeScoped & (ChoicesField | NumberField |
|
|
147
|
+
export type SchemaFieldDefinition = TypeScoped & (ChoicesField | NumberField | PresenceField | DateField | TextField);
|
|
111
148
|
/**
|
|
112
149
|
* Result of validating one text input against a field's kind: the operands
|
|
113
150
|
* it read, or that the input is incomplete or cannot be read.
|
|
@@ -126,8 +163,8 @@ export type FieldValidation = {
|
|
|
126
163
|
};
|
|
127
164
|
/**
|
|
128
165
|
* The applied semantic value a field's predicate carries: a `choices` set,
|
|
129
|
-
* a number or date bound, a
|
|
130
|
-
*
|
|
166
|
+
* a number or date bound, whether a presence field is set, or the text a
|
|
167
|
+
* text field's operator matches.
|
|
131
168
|
*
|
|
132
169
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
133
170
|
* name may change or move before the first release.
|
|
@@ -140,7 +177,7 @@ export type AppliedOf<TField extends SchemaFieldDefinition> = TField extends {
|
|
|
140
177
|
} ? ReadonlySet<string> : TField extends {
|
|
141
178
|
readonly kind: "number";
|
|
142
179
|
} ? number : TField extends {
|
|
143
|
-
readonly kind: "
|
|
180
|
+
readonly kind: "presence";
|
|
144
181
|
} ? boolean : TField extends {
|
|
145
182
|
readonly kind: "date" | "text";
|
|
146
183
|
} ? string : never;
|
|
@@ -169,30 +206,55 @@ export type EmptyOr<T> = {
|
|
|
169
206
|
*/
|
|
170
207
|
export type FieldKind = SchemaFieldDefinition["kind"];
|
|
171
208
|
/**
|
|
172
|
-
* The operators each kind accepts,
|
|
173
|
-
*
|
|
174
|
-
*
|
|
209
|
+
* The operators each field kind accepts, by kind: a binding names a kind's
|
|
210
|
+
* operators as `FieldKindOperators["text"]` rather than listing them, and
|
|
211
|
+
* `listOfferedOperators` answers in these terms.
|
|
212
|
+
*
|
|
213
|
+
* @experimental Pre-release: the whole surface is still settling, and this
|
|
214
|
+
* name may change or move before the first release.
|
|
175
215
|
*/
|
|
176
216
|
export type FieldKindOperators = {
|
|
177
217
|
readonly choices: "isAny" | "isNone";
|
|
178
218
|
readonly number: "gte" | "lte";
|
|
179
|
-
readonly
|
|
219
|
+
readonly presence: "isSet";
|
|
180
220
|
readonly date: "gte" | "lte";
|
|
181
|
-
readonly text: "contains" | "startsWith";
|
|
221
|
+
readonly text: "is" | "isNot" | "contains" | "notContains" | "startsWith" | "endsWith";
|
|
182
222
|
};
|
|
183
|
-
/**
|
|
223
|
+
/**
|
|
224
|
+
* One text input read as an operand, or that it is still being typed, or
|
|
225
|
+
* the reason it is not one.
|
|
226
|
+
*/
|
|
184
227
|
export type InputParse = {
|
|
185
228
|
readonly status: "valid";
|
|
186
229
|
readonly operand: PredicateOperand;
|
|
230
|
+
} | {
|
|
231
|
+
readonly status: "incomplete";
|
|
187
232
|
} | {
|
|
188
233
|
readonly status: "invalid";
|
|
189
234
|
readonly reason: string;
|
|
190
235
|
};
|
|
191
236
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
|
|
195
|
-
|
|
237
|
+
* Typed text read as a number in base units: the number, text a reader is
|
|
238
|
+
* still typing towards one, a unit the field does not have, or no number.
|
|
239
|
+
*/
|
|
240
|
+
export type NumberReading = {
|
|
241
|
+
readonly kind: "value";
|
|
242
|
+
readonly value: number;
|
|
243
|
+
} | {
|
|
244
|
+
readonly kind: "incomplete";
|
|
245
|
+
} | {
|
|
246
|
+
readonly kind: "unknown-unit";
|
|
247
|
+
readonly symbol: string;
|
|
248
|
+
/** The display symbols the field does have, in order. */
|
|
249
|
+
readonly accepted: readonly string[];
|
|
250
|
+
} | {
|
|
251
|
+
readonly kind: "not-a-number";
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* The comparison key of one value the kind orders: a rank the kind places
|
|
255
|
+
* it at, then the text that orders values sharing a rank. Numbers,
|
|
256
|
+
* instants, presence and declared options need only the rank; text needs
|
|
257
|
+
* only the text; an option the schema does not list needs both.
|
|
196
258
|
*/
|
|
197
259
|
export type OrderKey = {
|
|
198
260
|
readonly rank: number;
|
|
@@ -231,7 +293,7 @@ export type FieldKindRules<TDefinition extends SchemaFieldDefinition = SchemaFie
|
|
|
231
293
|
*/
|
|
232
294
|
readonly input: {
|
|
233
295
|
readonly kind: "text";
|
|
234
|
-
readonly parse: (definition: TDefinition, input: string) => InputParse;
|
|
296
|
+
readonly parse: (definition: TDefinition, input: string, decimalSeparator: string) => InputParse;
|
|
235
297
|
} | {
|
|
236
298
|
readonly kind: "none";
|
|
237
299
|
readonly reason: string;
|
|
@@ -291,15 +353,17 @@ export type Schema<TFields extends readonly SchemaFieldDefinition[]> = {
|
|
|
291
353
|
readonly listOperators: (name: string) => readonly PredicateOperator[];
|
|
292
354
|
/**
|
|
293
355
|
* Validate one text input for the field's single-value editing path.
|
|
294
|
-
*
|
|
356
|
+
* Presence fields do not edit through a text input. A number reads `.` as
|
|
357
|
+
* its decimal point, and `decimalSeparator` too where a reader's locale
|
|
358
|
+
* writes another, such as `,`.
|
|
295
359
|
*/
|
|
296
|
-
readonly validateInput: (name: string, input: string) => FieldValidation;
|
|
360
|
+
readonly validateInput: (name: string, input: string, decimalSeparator?: string) => FieldValidation;
|
|
297
361
|
/**
|
|
298
362
|
* Build the addressed predicate for a field, enforcing the kind's legal
|
|
299
363
|
* operators, the operator's grammar arity, and schema semantics beyond
|
|
300
364
|
* the generic grammar: option membership, numeric range and date format.
|
|
301
365
|
*/
|
|
302
|
-
readonly
|
|
366
|
+
readonly buildPredicate: (name: string, operator: PredicateOperator, operands: readonly PredicateOperand[]) => SchemaPredicateResult;
|
|
303
367
|
};
|
|
304
368
|
export {};
|
|
305
369
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,MAA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AM,MAAM,CAAC,OAAO,SAAS,SAAS,qBAAqB,EAAE,IAAI;IACrE,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,uFAAuF;IACvF,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,qBAAqB,GAAG,SAAS,CAAC;IACxE;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,iBAAiB,EAAE,CAAC;IACvE;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,CACtB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,gBAAgB,CAAC,EAAE,MAAM,KACtB,eAAe,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,CACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,SAAS,gBAAgB,EAAE,KAClC,qBAAqB,CAAC;CAC5B,CAAC"}
|
|
@@ -3,6 +3,8 @@ import type { Selection } from "./types.js";
|
|
|
3
3
|
* Create one selection record: explicit record identities with a valid
|
|
4
4
|
* empty state. The record owns only the identity set; row data, counts and
|
|
5
5
|
* operations stay with their own owners.
|
|
6
|
+
*
|
|
7
|
+
* @note Impure: holds the selected identities and publishes each change.
|
|
6
8
|
*/
|
|
7
9
|
export default function createSelection(initial?: readonly string[]): Selection;
|
|
8
10
|
//# sourceMappingURL=createSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSelection.d.ts","sourceRoot":"","sources":["../../../../src/lib/selection/createSelection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"createSelection.d.ts","sourceRoot":"","sources":["../../../../src/lib/selection/createSelection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAC;AAiB5D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAO,GAAE,SAAS,MAAM,EAAO,GAC9B,SAAS,CA6CX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/lib/source/copyCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAIV,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAuDpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,YAAY,EAAE,kBAAkB,GAC/B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"copyCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/lib/source/copyCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAIV,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAuDpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,YAAY,EAAE,kBAAkB,GAC/B,kBAAkB,CAgCpB"}
|
|
@@ -2,12 +2,15 @@ import type { RowRecord } from "../rows/index.js";
|
|
|
2
2
|
import type { ArraySource, ArraySourceConfig } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Create a source over a complete local record set. Each request is
|
|
5
|
-
* filtered, searched and ordered over every record and then windowed, so
|
|
6
|
-
*
|
|
5
|
+
* filtered, searched and ordered over every record and then windowed, so
|
|
6
|
+
* both counts are exact rather than one loaded page's, and so is every
|
|
7
7
|
* facet, which it declares for each field that is not text. Grouping is not
|
|
8
8
|
* executed here, so a grouped query is refused rather than answered with
|
|
9
9
|
* ungrouped rows.
|
|
10
10
|
*
|
|
11
|
+
* @note Impure: holds its rows and the requests delivered from them, and
|
|
12
|
+
* keeps the last slice it executed, so paging it does not run it again.
|
|
13
|
+
*
|
|
11
14
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
12
15
|
* name may change or move before the first release.
|
|
13
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createArraySource.d.ts","sourceRoot":"","sources":["../../../../src/lib/source/createArraySource.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMlD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAiB,MAAM,YAAY,CAAC;AAKhF
|
|
1
|
+
{"version":3,"file":"createArraySource.d.ts","sourceRoot":"","sources":["../../../../src/lib/source/createArraySource.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMlD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAiB,MAAM,YAAY,CAAC;AAKhF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,IAAI,SAAS,MAAM,GAAG,SAAS,EACvE,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAC9B,WAAW,CAAC,IAAI,CAAC,CAmJnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPage.d.ts","sourceRoot":"","sources":["../../../../src/lib/source/createPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,UAAU,EAAiB,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAM7C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAAI,SAAS,MAAM,GAAG,SAAS,EAChE,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,GACvB,UAAU,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"createPage.d.ts","sourceRoot":"","sources":["../../../../src/lib/source/createPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,UAAU,EAAiB,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAM7C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAAI,SAAS,MAAM,GAAG,SAAS,EAChE,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,GACvB,UAAU,CAAC,IAAI,CAAC,CAalB"}
|
|
@@ -8,9 +8,16 @@ import type { QuerySourceConfig, Source } from "./types.js";
|
|
|
8
8
|
* observation — a refetch, an invalidation, a store write — is delivered
|
|
9
9
|
* too. Releasing detaches the observer and leaves the cache alone.
|
|
10
10
|
*
|
|
11
|
+
* A query whose fetch was forbidden delivers no success, in that request or
|
|
12
|
+
* a later one, until a fetch of it completes: a write into its cache, such
|
|
13
|
+
* as an optimistic update, is no grant of access.
|
|
14
|
+
*
|
|
11
15
|
* Unchanged observations are recognised by reference, so the client must
|
|
12
16
|
* hand back the same `data` reference while the payload has not changed.
|
|
13
17
|
*
|
|
18
|
+
* @note Impure: remembers the pages a fetch was forbidden for, and each
|
|
19
|
+
* request subscribes to the query client.
|
|
20
|
+
*
|
|
14
21
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
15
22
|
* name may change or move before the first release.
|
|
16
23
|
*/
|