@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
|
@@ -23,18 +23,17 @@ import type { Count } from "../result/index.js";
|
|
|
23
23
|
*/
|
|
24
24
|
export type DisplayStatus = {
|
|
25
25
|
readonly status: "pending";
|
|
26
|
+
} | {
|
|
27
|
+
readonly status: "failed";
|
|
28
|
+
readonly reason: string;
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* @seam grouping — read by the grouping renderer, which withholds the
|
|
32
|
-
* rows behind it and reveals them under `stale` should the request fail
|
|
31
|
+
* The query was refused before anything ran — a followed link's clause
|
|
32
|
+
* that would have narrowed the result, or a query the source cannot
|
|
33
|
+
* execute — and the reasons it was refused for.
|
|
33
34
|
*/
|
|
34
35
|
| {
|
|
35
|
-
readonly status: "
|
|
36
|
-
} | {
|
|
37
|
-
readonly status: "failed";
|
|
36
|
+
readonly status: "refused";
|
|
38
37
|
readonly reason: string;
|
|
39
38
|
} | {
|
|
40
39
|
readonly status: "refresh-failed";
|
|
@@ -42,6 +41,13 @@ export type DisplayStatus = {
|
|
|
42
41
|
} | {
|
|
43
42
|
readonly status: "stale";
|
|
44
43
|
readonly reason: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The source answered that the request is forbidden: every row, count and
|
|
47
|
+
* facet is withdrawn, and nothing about the denial is said.
|
|
48
|
+
*/
|
|
49
|
+
| {
|
|
50
|
+
readonly status: "no-access";
|
|
45
51
|
} | {
|
|
46
52
|
readonly status: "no-data";
|
|
47
53
|
} | {
|
|
@@ -67,16 +73,16 @@ type DisplayEntryBase = {
|
|
|
67
73
|
* header row is 1 and the entries follow in display order. Worked out
|
|
68
74
|
* once, here, so every binding reports the same position.
|
|
69
75
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
76
|
+
* The group header row reads this. The rows of a collapsed group are not
|
|
77
|
+
* displayed, so they take no position.
|
|
72
78
|
*/
|
|
73
79
|
readonly index: number;
|
|
74
80
|
/**
|
|
75
81
|
* The entry id of the group the entry belongs to, or null at the top
|
|
76
82
|
* level. Every entry is top-level until grouping lands.
|
|
77
83
|
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
84
|
+
* The group header row reads an entry's owning group from here and never
|
|
85
|
+
* recomputes it.
|
|
80
86
|
*/
|
|
81
87
|
readonly parent: string | null;
|
|
82
88
|
};
|
|
@@ -85,8 +91,8 @@ type DisplayEntryBase = {
|
|
|
85
91
|
* row. An open union: the virtual range's estimates are keyed by its kinds,
|
|
86
92
|
* so a kind added here is a compile error until every reader knows it.
|
|
87
93
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
94
|
+
* The group header row will join this union as `"group"`, with its path
|
|
95
|
+
* and nesting level.
|
|
90
96
|
*
|
|
91
97
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
92
98
|
* name may change or move before the first release.
|
|
@@ -101,8 +107,8 @@ export type DisplayEntry = (DisplayEntryBase & {
|
|
|
101
107
|
* Why there are no rows, or what stands over the rows after it. The
|
|
102
108
|
* table's own status is the only one today.
|
|
103
109
|
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
110
|
+
* The group header row reads this: a group still pending is another
|
|
111
|
+
* entry of this kind, whose parent is that group.
|
|
106
112
|
*/
|
|
107
113
|
readonly status: DisplayStatus;
|
|
108
114
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/display/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;CAAE;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/display/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AACxD;;;;GAIG;GACD;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACvD;IAAE,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,QAAQ,CAAC,MAAM,EAA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vC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,oEAAoE;IACpE,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFilterInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/filter/createFilterInput.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createFilterInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/filter/createFilterInput.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,WAAW,EACX,iBAAiB,EAElB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,MAAM,EAAE,iBAAiB,GACxB,WAAW,CA6Kb"}
|
|
@@ -7,12 +7,14 @@ import type { FilterInputs, FilterInputsConfig } from "./types.js";
|
|
|
7
7
|
* its host. The records are the root's, not the provider's — two roots on
|
|
8
8
|
* one provider share the applied query and never each other's half-typed
|
|
9
9
|
* input — and `observe()` keeps every applied mirror in step with the
|
|
10
|
-
* query as the location, a saved view or a reset moves it.
|
|
10
|
+
* query as the location, a saved view or a reset moves it. A move of the
|
|
11
|
+
* location — Back, Forward, a pasted URL — also ends every input session:
|
|
12
|
+
* what was being typed goes, and each input shows what is applied.
|
|
11
13
|
*
|
|
12
14
|
* Construction reads the query once and subscribes to nothing.
|
|
13
15
|
*
|
|
14
16
|
* @note Impure by design: the records hold what a person is typing, and
|
|
15
|
-
* observing subscribes to the provider's state.
|
|
17
|
+
* observing subscribes to the provider's state and its transitions.
|
|
16
18
|
*
|
|
17
19
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
18
20
|
* name may change or move before the first release.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFilterInputs.d.ts","sourceRoot":"","sources":["../../../../src/lib/filter/createFilterInputs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createFilterInputs.d.ts","sourceRoot":"","sources":["../../../../src/lib/filter/createFilterInputs.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,KAAK,EAGV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AA0CpB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,EAC/B,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,CAuKlE"}
|
|
@@ -71,6 +71,26 @@ export type FilterHandle<TApplied> = {
|
|
|
71
71
|
readonly set: (operands: readonly PredicateOperand[]) => readonly SourceRefusal[];
|
|
72
72
|
/** Remove the predicate, distinct from an empty edit. */
|
|
73
73
|
readonly clear: () => readonly SourceRefusal[];
|
|
74
|
+
/**
|
|
75
|
+
* The further conjuncts at the handle's address — those it does not
|
|
76
|
+
* edit — in canonical order, each with its `nth` there. Empty while the
|
|
77
|
+
* address holds one conjunct or none.
|
|
78
|
+
*/
|
|
79
|
+
readonly others: ReadonlyChannel<readonly FurtherConjunct[]>;
|
|
80
|
+
/** The `nth` of the conjunct the handle edits, 0 while none stands. */
|
|
81
|
+
readonly nth: ReadonlyChannel<number>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* One conjunct at a filter address that its handle does not edit: its
|
|
85
|
+
* place among the address's conjuncts in canonical order, what a command
|
|
86
|
+
* names it by, and its canonical operands.
|
|
87
|
+
*
|
|
88
|
+
* @experimental Pre-release: the whole surface is still settling, and this
|
|
89
|
+
* name may change or move before the first release.
|
|
90
|
+
*/
|
|
91
|
+
export type FurtherConjunct = {
|
|
92
|
+
readonly nth: number;
|
|
93
|
+
readonly operands: readonly PredicateOperand[];
|
|
74
94
|
};
|
|
75
95
|
/** Configuration of one filter record. */
|
|
76
96
|
export type FilterInputConfig = {
|
|
@@ -82,10 +102,18 @@ export type FilterInputConfig = {
|
|
|
82
102
|
readonly operator: PredicateOperator;
|
|
83
103
|
/** Where an applied predicate goes: the provider's two predicate commands. */
|
|
84
104
|
readonly host: Pick<ProviderHost, "setPredicate" | "removePredicate">;
|
|
105
|
+
/**
|
|
106
|
+
* The conjuncts at the record's address as the query stands, in canonical
|
|
107
|
+
* order: where the record finds the place of the conjunct it edits.
|
|
108
|
+
*/
|
|
109
|
+
readonly readConjuncts: () => readonly Predicate[];
|
|
85
110
|
};
|
|
86
111
|
/** One filter record, with what only its owner reads and calls. */
|
|
87
|
-
export type FilterInput = FilterHandle<unknown> & {
|
|
88
|
-
/**
|
|
112
|
+
export type FilterInput = Omit<FilterHandle<unknown>, "others" | "nth"> & {
|
|
113
|
+
/**
|
|
114
|
+
* The predicate the record has applied, as it built it, or the one it is
|
|
115
|
+
* applying while the host hears it.
|
|
116
|
+
*/
|
|
89
117
|
readonly predicate: Predicate | null;
|
|
90
118
|
/**
|
|
91
119
|
* Adopt the authoritative applied predicate — the query moved under the
|
|
@@ -93,6 +121,19 @@ export type FilterInput = FilterHandle<unknown> & {
|
|
|
93
121
|
* predicate must address this record's field and operator.
|
|
94
122
|
*/
|
|
95
123
|
readonly setApplied: (applied: Predicate | null) => void;
|
|
124
|
+
/**
|
|
125
|
+
* End the input session, as leaving the input or submitting its form
|
|
126
|
+
* does. Within one session, the first typed edit that moves the query
|
|
127
|
+
* enters history as the policy says and every later one replaces that
|
|
128
|
+
* entry; the next edit after the session ends is a step of its own. A
|
|
129
|
+
* discrete `set`, a `clear` and a move of the query under the record end
|
|
130
|
+
* it too.
|
|
131
|
+
*
|
|
132
|
+
* @note Typing back to the value applied before the session began still
|
|
133
|
+
* leaves its one entry, identical to the one before it, so Back takes one
|
|
134
|
+
* step more than it seems to need.
|
|
135
|
+
*/
|
|
136
|
+
readonly endSession: () => void;
|
|
96
137
|
};
|
|
97
138
|
/**
|
|
98
139
|
* One field's handles, keyed by the operators the field kind table declares
|
|
@@ -140,6 +181,18 @@ export type FilterInputs<TFields extends readonly SchemaFieldDefinition[]> = {
|
|
|
140
181
|
* The release stops following.
|
|
141
182
|
*/
|
|
142
183
|
readonly observe: () => () => void;
|
|
184
|
+
/**
|
|
185
|
+
* End every record's input session, as leaving an input or submitting
|
|
186
|
+
* the form does: the next edit of each typed value — text, a number or a
|
|
187
|
+
* date — is a history step of its own, where a session's later edits
|
|
188
|
+
* replace its first.
|
|
189
|
+
*
|
|
190
|
+
* @note A session that types back to the value applied before it began
|
|
191
|
+
* still leaves its one entry, identical to the one before it, so Back
|
|
192
|
+
* takes one step more than it seems to need; stepping back over it needs
|
|
193
|
+
* a location that can move back through history.
|
|
194
|
+
*/
|
|
195
|
+
readonly endSessions: () => void;
|
|
143
196
|
};
|
|
144
197
|
export {};
|
|
145
198
|
//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
|
|
4
4
|
* with the widths the collection's presentation holds for them applied as
|
|
5
5
|
* fixed overrides, each held to its declared bounds.
|
|
6
6
|
*
|
|
7
|
-
* The presentation is the one authority:
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* and a view opened re-layers every table at once. `state` is a read-only
|
|
11
|
-
* channel over that derivation; subscribing to it subscribes to the
|
|
12
|
-
* presentation, and construction subscribes to nothing.
|
|
7
|
+
* The presentation is the one authority: a resize is written to it under
|
|
8
|
+
* the table's id. `state` derives from it, and construction subscribes to
|
|
9
|
+
* nothing.
|
|
13
10
|
*
|
|
14
11
|
* @note Impure: keeps the last arrangement it derived from and the snapshot
|
|
15
12
|
* it derived, so a read of an unchanged arrangement answers the same object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createColumnLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/geometry/createColumnLayout.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAInB,MAAM,YAAY,CAAC;AAcpB
|
|
1
|
+
{"version":3,"file":"createColumnLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/geometry/createColumnLayout.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAInB,MAAM,YAAY,CAAC;AAcpB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,MAAM,EAAE,kBAAkB,GACzB,YAAY,CAgHd"}
|
|
@@ -6,6 +6,9 @@ import type { ColumnLayout, GridInteraction } from "./types.js";
|
|
|
6
6
|
* Preview coalescing to animation frames is the renderer's concern — the
|
|
7
7
|
* machine clamps and publishes per preview call.
|
|
8
8
|
*
|
|
9
|
+
* @note Impure: holds the sizing a resize started from, writes the
|
|
10
|
+
* column layout, and subscribes to it while observed.
|
|
11
|
+
*
|
|
9
12
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
10
13
|
* name may change or move before the first release.
|
|
11
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createGridInteraction.d.ts","sourceRoot":"","sources":["../../../../src/lib/geometry/createGridInteraction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEZ,eAAe,EAEhB,MAAM,YAAY,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"createGridInteraction.d.ts","sourceRoot":"","sources":["../../../../src/lib/geometry/createGridInteraction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEZ,eAAe,EAEhB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,MAAM,EAAE,YAAY,GACnB,eAAe,CAyFjB"}
|
|
@@ -91,6 +91,8 @@ export type ColumnLayoutState = {
|
|
|
91
91
|
* name may change or move before the first release.
|
|
92
92
|
*/
|
|
93
93
|
export type ColumnLayoutConfig = {
|
|
94
|
+
/** The id of the table whose widths are read and written. */
|
|
95
|
+
readonly table: string;
|
|
94
96
|
readonly columns: readonly ColumnToSize[];
|
|
95
97
|
readonly presentation: Presentation;
|
|
96
98
|
};
|
|
@@ -108,7 +110,7 @@ export type ColumnLayout = {
|
|
|
108
110
|
/** The declared sizing of one column, which every column of the layout has. */
|
|
109
111
|
readonly readDeclared: (id: string) => ColumnSizing;
|
|
110
112
|
/** The effective sizing of one column: its override, else its declared sizing. */
|
|
111
|
-
readonly
|
|
113
|
+
readonly readEffective: (id: string) => ColumnSizing;
|
|
112
114
|
/** Write a fixed width to the presentation (a resize commit). */
|
|
113
115
|
readonly setOverride: (id: string, sizing: FixedSizing) => void;
|
|
114
116
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/geometry/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CA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GAKG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC3B;IACE,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC;IACtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,CACpB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,KACf,IAAI,CAAC;IACV,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,uFAAuF;IACvF,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,MAAM,IAAI,CAAC;CACpC,CAAC"}
|
|
@@ -14,25 +14,25 @@ export type { Collection, CollectionConfig, RecordTypes, } from "./collection/in
|
|
|
14
14
|
export { createCollection } from "./collection/index.js";
|
|
15
15
|
export type { DataViewsState, ResultState, ResultStatus, } from "./coordinator/index.js";
|
|
16
16
|
export type { DisplayStatus } from "./display/index.js";
|
|
17
|
-
export type { FilterFeedback, FilterHandle, FilterHandles, FilterInputState, } from "./filter/index.js";
|
|
17
|
+
export type { FilterFeedback, FilterHandle, FilterHandles, FilterInputState, FurtherConjunct, } from "./filter/index.js";
|
|
18
18
|
export type { HistoryMode, MemoryLocationConfig, PlatformLocation, QueryLocation, } from "./location/index.js";
|
|
19
19
|
export { createMemoryLocation, createPlatformLocation, } from "./location/index.js";
|
|
20
|
-
export type { DataViewsMessages, FacetCountWords,
|
|
20
|
+
export type { DataViewsMessages, FacetCountWords, RecordNoun, } from "./messages/index.js";
|
|
21
21
|
export type { ReadonlyChannel } from "./observable/index.js";
|
|
22
22
|
export type { JsonValue, PreferenceResult, Presentation, PresentationPatch, PresentationState, PresentationStore, PresentationTarget, ViewPresentation, } from "./presentation/index.js";
|
|
23
23
|
export type { DataViewsProvider, DataViewsProviderConfig, HistoryPolicy, QueryTransition, } from "./provider/index.js";
|
|
24
24
|
export { createDataViewsProvider } from "./provider/index.js";
|
|
25
|
-
export type { GroupPath, GroupTerm, Predicate, PredicateOperand, PredicateOperator, Query, ResultWindow, Slice, SortDirection, SortTerm, WindowNavigation, } from "./query/index.js";
|
|
26
|
-
export { DEFAULT_WINDOW, EMPTY_SLICE } from "./query/index.js";
|
|
27
|
-
export type { Completion, Count, Facet, GroupSummary, PageCursors, ResultProblem, ResultProvenance, SourceCounts, SourceDelivery, SourceFailure, SourcePage, SourceRefusal, SourceRefusalCode, SourceRefusalPart, } from "./result/index.js";
|
|
25
|
+
export type { GroupPath, GroupTerm, Predicate, PredicateCondition, PredicateEdit, PredicateOperand, PredicateOperator, PredicateRef, Query, QueryClearPath, ResultWindow, Slice, SortDirection, SortTerm, WindowNavigation, } from "./query/index.js";
|
|
26
|
+
export { DEFAULT_WINDOW, EMPTY_SLICE, readCondition, } from "./query/index.js";
|
|
27
|
+
export type { Completion, Count, Facet, FacetValue, GroupSummary, PageCursors, QueryIssue, QueryIssueCode, ResultProblem, ResultProvenance, SourceCounts, SourceDelivery, SourceFailure, SourcePage, SourceRefusal, SourceRefusalCode, SourceRefusalPart, } from "./result/index.js";
|
|
28
28
|
export type { RowEntry, RowIdentifier, RowModel, RowRecord, } from "./rows/index.js";
|
|
29
|
-
export type { AppliedOf, ChoicesField, DateField, EmptyOr, FieldKind,
|
|
29
|
+
export type { AppliedOf, ChoicesField, DateField, EmptyOr, FieldKind, FieldKindOperators, FieldValidation, NumberField, NumberUnits, PresenceField, Schema, SchemaFieldDefinition, SchemaPredicateResult, TextField, } from "./schema/index.js";
|
|
30
30
|
export { createSchema } from "./schema/index.js";
|
|
31
31
|
export type { Selection, SelectionState } from "./selection/index.js";
|
|
32
32
|
export type { DataViewsSnapshot } from "./snapshot/index.js";
|
|
33
33
|
export type { ActionCapabilities, ActionTargets, ArraySource, ArraySourceConfig, CapabilityDeclaration, CountCapabilities, CountSupport, EmptyPlacement, GroupCapabilities, PageConfig, PaginationCapabilities, QuerySourceConfig, RelaySourceConfig, SliceReading, SortCapabilities, SortTiebreak, Source, SourceActionRequest, SourceActionRunner, SourceCapabilities, SourceRequest, } from "./source/index.js";
|
|
34
34
|
export { createArraySource, createPage, createQuerySource, createRelaySource, declareCapabilities, readSlice, } from "./source/index.js";
|
|
35
35
|
export type { SavedView, SavedViews, UnreadableView, ViewChanges, ViewCommand, ViewCommandState, ViewCreateResult, ViewDraft, ViewGetResult, ViewList, ViewOutcome, ViewRemoveResult, ViewRevision, ViewSettledOutcome, ViewStore, ViewsState, ViewUpdateResult, } from "./views/index.js";
|
|
36
|
-
export type { DecodedQuery, DecodeQueryConfig, EncodeQueryConfig,
|
|
36
|
+
export type { DecodedQuery, DecodeQueryConfig, EncodeQueryConfig, } from "./wire/index.js";
|
|
37
37
|
export { decodeQuery, encodeQuery } from "./wire/index.js";
|
|
38
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EACV,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EACV,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,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ACd,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIndexedDBViewStore.d.ts","sourceRoot":"","sources":["../../../../src/lib/indexeddb/createIndexedDBViewStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"createIndexedDBViewStore.d.ts","sourceRoot":"","sources":["../../../../src/lib/indexeddb/createIndexedDBViewStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAOV,SAAS,EAEV,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,KAAK,EACV,wBAAwB,EAKzB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,MAAM,EAAE,wBAAwB,GAC/B,SAAS,GAAG,iBAAiB,CAkS/B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { SavedView } from "../views/index.js";
|
|
2
2
|
import type { StoredView } from "./types.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* A stored saved view as this viewer sees it, with whether it is pinned;
|
|
5
|
+
* its tables' keys alone, so an old key is dropped.
|
|
6
|
+
*/
|
|
4
7
|
export default function readSavedView(record: StoredView, pinned: boolean): SavedView;
|
|
5
8
|
//# sourceMappingURL=readSavedView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readSavedView.d.ts","sourceRoot":"","sources":["../../../../src/lib/indexeddb/readSavedView.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readSavedView.d.ts","sourceRoot":"","sources":["../../../../src/lib/indexeddb/readSavedView.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,OAAO,GACd,SAAS,CAWX"}
|
|
@@ -18,6 +18,7 @@ export type IndexedDBRequest<TResult> = {
|
|
|
18
18
|
readonly result: TResult;
|
|
19
19
|
onsuccess: Handler;
|
|
20
20
|
};
|
|
21
|
+
/** One object store: the reads, writes and indexes the store uses. */
|
|
21
22
|
export type IndexedDBObjectStore = {
|
|
22
23
|
get(key: unknown): IndexedDBRequest<unknown>;
|
|
23
24
|
put(value: unknown): IndexedDBRequest<unknown>;
|
|
@@ -28,6 +29,7 @@ export type IndexedDBObjectStore = {
|
|
|
28
29
|
getAllKeys(key: unknown): IndexedDBRequest<readonly unknown[]>;
|
|
29
30
|
};
|
|
30
31
|
};
|
|
32
|
+
/** One transaction: its stores, its failure and how it ends. */
|
|
31
33
|
export type IndexedDBTransaction = {
|
|
32
34
|
readonly error: unknown;
|
|
33
35
|
objectStore(name: string): IndexedDBObjectStore;
|
|
@@ -35,6 +37,10 @@ export type IndexedDBTransaction = {
|
|
|
35
37
|
oncomplete: Handler;
|
|
36
38
|
onabort: Handler;
|
|
37
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* One open database: creating stores on upgrade, starting transactions and
|
|
42
|
+
* hearing it close.
|
|
43
|
+
*/
|
|
38
44
|
export type IndexedDBDatabase = {
|
|
39
45
|
createObjectStore(name: string, options: {
|
|
40
46
|
keyPath: string[];
|
|
@@ -44,6 +50,7 @@ export type IndexedDBDatabase = {
|
|
|
44
50
|
onversionchange: Handler;
|
|
45
51
|
onclose: Handler;
|
|
46
52
|
};
|
|
53
|
+
/** The request opening a database, which may first ask to upgrade it. */
|
|
47
54
|
export type IndexedDBOpenRequest = IndexedDBRequest<IndexedDBDatabase> & {
|
|
48
55
|
readonly error: unknown;
|
|
49
56
|
onerror: Handler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/indexeddb/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;AAEtD,2DAA2D;AAC3D,MAAM,MAAM,gBAAgB,CAAC,OAAO,IAAI;IACtC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,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,GAAG,IAAI,CAC1C,wBAAwB,EACxB,WAAW,GAAG,UAAU,CACzB,GAAG;IACF,iEAAiE;IACjE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAC1B,IAAI,EAAE,UAAU,GAAG,WAAW,EAC9B,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,EAC/B,KAAK,CAAC,EAAE,gBAAgB,KACrB,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,CAAC,QAAQ,EACtB,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,EAC/B,KAAK,CAAC,EAAE,gBAAgB,KACrB,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC"}
|
|
@@ -7,6 +7,8 @@ import type { MemoryLocationConfig, QueryLocation } from "./types.js";
|
|
|
7
7
|
* the port. There is no history stack; the write `history` option is
|
|
8
8
|
* accepted and ignored.
|
|
9
9
|
*
|
|
10
|
+
* @note Impure: holds the current URL and notifies its subscribers.
|
|
11
|
+
*
|
|
10
12
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
11
13
|
* name may change or move before the first release.
|
|
12
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMemoryLocation.d.ts","sourceRoot":"","sources":["../../../../src/lib/location/createMemoryLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,aAAa,EACd,MAAM,YAAY,CAAC;AAKpB
|
|
1
|
+
{"version":3,"file":"createMemoryLocation.d.ts","sourceRoot":"","sources":["../../../../src/lib/location/createMemoryLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,aAAa,EACd,MAAM,YAAY,CAAC;AAKpB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,MAAM,GAAE,oBAAyB,GAChC,aAAa,CA6Bf"}
|
|
@@ -5,6 +5,9 @@ import type { PlatformLocation, QueryLocation } from "./types.js";
|
|
|
5
5
|
* — and writes navigate the raw href, so the host's own subscription loop
|
|
6
6
|
* picks the change up like any other navigation.
|
|
7
7
|
*
|
|
8
|
+
* @note Impure by design: reads and writes the platform's history and
|
|
9
|
+
* subscribes to its navigations.
|
|
10
|
+
*
|
|
8
11
|
* @experimental Pre-release: the whole surface is still settling, and this
|
|
9
12
|
* name may change or move before the first release.
|
|
10
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPlatformLocation.d.ts","sourceRoot":"","sources":["../../../../src/lib/location/createPlatformLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAY/E
|
|
1
|
+
{"version":3,"file":"createPlatformLocation.d.ts","sourceRoot":"","sources":["../../../../src/lib/location/createPlatformLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAY/E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,QAAQ,EAAE,gBAAgB,GACzB,aAAa,CAwBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeStatus.d.ts","sourceRoot":"","sources":["../../../../src/lib/messages/composeStatus.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,MAAM,CAGR"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The messages domain's constants: the English record DataViews ships with,
|
|
3
|
+
* and the words its messages are built from — each direction, each
|
|
4
|
+
* operator as a chip shows and speaks it, what a
|
|
5
|
+
* saved-view command not done or in flight says, and the note an edit that
|
|
6
|
+
* cannot apply ends with.
|
|
7
|
+
*/
|
|
8
|
+
import type { PredicateOperand, PredicateOperator, SortDirection } from "../query/index.js";
|
|
2
9
|
import type { ViewCommand } from "../views/index.js";
|
|
10
|
+
import type { DataViewsMessages } from "./types.js";
|
|
3
11
|
/** The word each direction reads as in English. */
|
|
4
12
|
export declare const DIRECTIONS: Readonly<Record<SortDirection, string>>;
|
|
5
13
|
/** How an English message starts when a saved-view command did not happen. */
|
|
@@ -8,4 +16,22 @@ export declare const NOT_DONE: Readonly<Record<ViewCommand, string>>;
|
|
|
8
16
|
export declare const PENDING: Readonly<Record<ViewCommand, string>>;
|
|
9
17
|
/** What the earlier restriction does while an edit cannot apply. */
|
|
10
18
|
export declare const STILL_APPLIES = "The previous restriction still applies.";
|
|
19
|
+
/** Each operator's words, as they read from its operands. */
|
|
20
|
+
type OperatorWords = Readonly<Record<PredicateOperator, (operands: readonly PredicateOperand[]) => string>>;
|
|
21
|
+
/**
|
|
22
|
+
* How each operator is worded, from its operands: the one table of
|
|
23
|
+
* English operator words. Keyed by operator, so an operator the grammar
|
|
24
|
+
* gains fails to compile until it is worded.
|
|
25
|
+
*/
|
|
26
|
+
export declare const OPERATORS_SPOKEN: OperatorWords;
|
|
27
|
+
/**
|
|
28
|
+
* What a chip shows for each operator: its symbol, or, where it has none,
|
|
29
|
+
* the words it is spoken by, so a control's name holds what it shows.
|
|
30
|
+
*/
|
|
31
|
+
export declare const OPERATORS_SHOWN: OperatorWords;
|
|
32
|
+
/**
|
|
33
|
+
* The words DataViews ships with: English, a `MessageRecord`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const DEFAULT_MESSAGES: DataViewsMessages;
|
|
36
|
+
export {};
|
|
11
37
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/messages/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/messages/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,YAAY,CAAC;AAEpB,mDAAmD;AACnD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAG9D,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAM1D,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAMzD,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,aAAa,4CAA4C,CAAC;AAEvE,6DAA6D;AAC7D,KAAK,aAAa,GAAG,QAAQ,CAC3B,MAAM,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,KAAK,MAAM,CAAC,CAC7E,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAY9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,aAY7B,CAAC;AAmCF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,iBAsTuB,CAAC"}
|