@farm.js/react 0.1.0-beta.22 → 0.1.0-beta.24
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 +8 -2
- package/dist/compiler-runtime.cjs +145 -23
- package/dist/compiler-runtime.cjs.map +1 -1
- package/dist/compiler-runtime.d.mts +2 -1
- package/dist/compiler-runtime.d.ts +2 -1
- package/dist/compiler-runtime.mjs +145 -24
- package/dist/compiler-runtime.mjs.map +1 -1
- package/dist/vite.cjs +109 -33
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +109 -33
- package/dist/vite.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -360,6 +360,7 @@ declare const keyedRowsIdentityRuntimeFeature: CompilerRuntimeFeature;
|
|
|
360
360
|
declare const keyedRowsMembershipRuntimeFeature: CompilerRuntimeFeature;
|
|
361
361
|
declare const keyedRowsMapLookupRuntimeFeature: CompilerRuntimeFeature;
|
|
362
362
|
declare const keyedRowsHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
363
|
+
declare const keyedRowsAppendOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
363
364
|
declare const keyedRowsPositionHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
364
365
|
declare const keyedRowsBatchPositionHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
365
366
|
declare const keyedRowsWindowPositionHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
@@ -451,4 +452,4 @@ declare function createCompiledComponentWithFeatures<Props>(definition: Compiled
|
|
|
451
452
|
*/
|
|
452
453
|
declare function createCompiledComponent<Props>(definition: CompiledComponentDefinition<Props>): React.ComponentType<Props>;
|
|
453
454
|
|
|
454
|
-
export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeFeature, type CompilerRuntimeFeatureOwner, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
455
|
+
export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeFeature, type CompilerRuntimeFeatureOwner, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
@@ -360,6 +360,7 @@ declare const keyedRowsIdentityRuntimeFeature: CompilerRuntimeFeature;
|
|
|
360
360
|
declare const keyedRowsMembershipRuntimeFeature: CompilerRuntimeFeature;
|
|
361
361
|
declare const keyedRowsMapLookupRuntimeFeature: CompilerRuntimeFeature;
|
|
362
362
|
declare const keyedRowsHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
363
|
+
declare const keyedRowsAppendOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
363
364
|
declare const keyedRowsPositionHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
364
365
|
declare const keyedRowsBatchPositionHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
365
366
|
declare const keyedRowsWindowPositionHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
@@ -451,4 +452,4 @@ declare function createCompiledComponentWithFeatures<Props>(definition: Compiled
|
|
|
451
452
|
*/
|
|
452
453
|
declare function createCompiledComponent<Props>(definition: CompiledComponentDefinition<Props>): React.ComponentType<Props>;
|
|
453
454
|
|
|
454
|
-
export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeFeature, type CompilerRuntimeFeatureOwner, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
455
|
+
export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeFeature, type CompilerRuntimeFeatureOwner, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
@@ -2022,16 +2022,25 @@ function applyStaticRangeBindings(bindings, segments, values) {
|
|
|
2022
2022
|
return true;
|
|
2023
2023
|
}
|
|
2024
2024
|
var COMPILER_KEYED_ROLLING_WINDOW_DELTAS = /* @__PURE__ */ new WeakMap();
|
|
2025
|
+
var COMPILER_KEYED_APPEND_DELTAS = /* @__PURE__ */ new WeakMap();
|
|
2025
2026
|
function keyedRowInstancesByKey(instances) {
|
|
2026
2027
|
return new Map(instances.map((instance) => [instance.key, instance]));
|
|
2027
2028
|
}
|
|
2028
2029
|
var UNSET_KEYED_ROW_BINDING = /* @__PURE__ */ Symbol("unset interactive keyed-row binding");
|
|
2030
|
+
var KEYED_ROWS_MAX_MOVED = 64;
|
|
2029
2031
|
function keyedRowIdentity(key) {
|
|
2030
|
-
|
|
2032
|
+
if (typeof key === "number") return key;
|
|
2033
|
+
const text = String(key);
|
|
2034
|
+
const first = text.charCodeAt(0);
|
|
2035
|
+
if (first >= 48 && first <= 57 || first === 45 || first === 73 || first === 78) {
|
|
2036
|
+
const number = Number(text);
|
|
2037
|
+
if (String(number) === text) return number;
|
|
2038
|
+
}
|
|
2039
|
+
return text;
|
|
2031
2040
|
}
|
|
2032
2041
|
function keyedIdentityTargetSnapshot(value) {
|
|
2033
2042
|
const kind = typeof value;
|
|
2034
|
-
return value === null || value === void 0 || kind === "string" || kind === "number" || kind === "bigint" ? { eligible: true, key:
|
|
2043
|
+
return value === null || value === void 0 || kind === "string" || kind === "number" || kind === "bigint" ? { eligible: true, key: keyedRowIdentity(value) } : { eligible: false };
|
|
2035
2044
|
}
|
|
2036
2045
|
var NATIVE_SET_PROTOTYPE = Set.prototype;
|
|
2037
2046
|
var NATIVE_SET_ADD = Set.prototype.add;
|
|
@@ -2077,7 +2086,7 @@ function keyedMembershipDeltaSnapshot(value, previous) {
|
|
|
2077
2086
|
const before = keyedMembershipSnapshotHas(previous, key);
|
|
2078
2087
|
if (before === void 0) return void 0;
|
|
2079
2088
|
changes.set(key, present);
|
|
2080
|
-
if (before !== present) NATIVE_SET_ADD.call(targetedKeys,
|
|
2089
|
+
if (before !== present) NATIVE_SET_ADD.call(targetedKeys, keyedRowIdentity(key));
|
|
2081
2090
|
}
|
|
2082
2091
|
} catch {
|
|
2083
2092
|
return void 0;
|
|
@@ -2131,10 +2140,10 @@ function keyedMembershipChangedKeys(previousSnapshot, nextSnapshot) {
|
|
|
2131
2140
|
const keys = /* @__PURE__ */ new Set();
|
|
2132
2141
|
if (!previous || !next) return keys;
|
|
2133
2142
|
for (const value of previous) {
|
|
2134
|
-
if (!NATIVE_SET_HAS.call(next, value)) NATIVE_SET_ADD.call(keys,
|
|
2143
|
+
if (!NATIVE_SET_HAS.call(next, value)) NATIVE_SET_ADD.call(keys, keyedRowIdentity(value));
|
|
2135
2144
|
}
|
|
2136
2145
|
for (const value of next) {
|
|
2137
|
-
if (!NATIVE_SET_HAS.call(previous, value)) NATIVE_SET_ADD.call(keys,
|
|
2146
|
+
if (!NATIVE_SET_HAS.call(previous, value)) NATIVE_SET_ADD.call(keys, keyedRowIdentity(value));
|
|
2138
2147
|
}
|
|
2139
2148
|
return keys;
|
|
2140
2149
|
}
|
|
@@ -2195,7 +2204,7 @@ function keyedMapLookupDeltaSnapshot(value, previous) {
|
|
|
2195
2204
|
if (!before) return void 0;
|
|
2196
2205
|
changes.set(key, { present, ...present ? { value: entry } : {} });
|
|
2197
2206
|
if (before.present !== present || !Object.is(before.value, entry)) {
|
|
2198
|
-
NATIVE_SET_ADD.call(targetedKeys,
|
|
2207
|
+
NATIVE_SET_ADD.call(targetedKeys, keyedRowIdentity(key));
|
|
2199
2208
|
}
|
|
2200
2209
|
}
|
|
2201
2210
|
} catch {
|
|
@@ -2253,12 +2262,12 @@ function keyedMapLookupChangedKeys(previousSnapshot, nextSnapshot) {
|
|
|
2253
2262
|
if (!previous || !next) return keys;
|
|
2254
2263
|
for (const [key, value] of previous) {
|
|
2255
2264
|
if (!Object.is(value, NATIVE_MAP_GET.call(next, key))) {
|
|
2256
|
-
NATIVE_SET_ADD.call(keys,
|
|
2265
|
+
NATIVE_SET_ADD.call(keys, keyedRowIdentity(key));
|
|
2257
2266
|
}
|
|
2258
2267
|
}
|
|
2259
2268
|
for (const [key, value] of next) {
|
|
2260
2269
|
if (!Object.is(value, NATIVE_MAP_GET.call(previous, key))) {
|
|
2261
|
-
NATIVE_SET_ADD.call(keys,
|
|
2270
|
+
NATIVE_SET_ADD.call(keys, keyedRowIdentity(key));
|
|
2262
2271
|
}
|
|
2263
2272
|
}
|
|
2264
2273
|
return keys;
|
|
@@ -3914,7 +3923,7 @@ function createHostConditionalBlockComponent(owner) {
|
|
|
3914
3923
|
schedulePropSync() {
|
|
3915
3924
|
if (this.propSyncQueued) return;
|
|
3916
3925
|
this.propSyncQueued = true;
|
|
3917
|
-
|
|
3926
|
+
scheduleCompilerMicrotask(() => {
|
|
3918
3927
|
this.propSyncQueued = false;
|
|
3919
3928
|
if (this.mounted && !this.state.fallback) {
|
|
3920
3929
|
this.listen();
|
|
@@ -4372,6 +4381,18 @@ function reorderCompilerKeyedRows(root, instances, sequence, anchor) {
|
|
|
4372
4381
|
}
|
|
4373
4382
|
restoreCompilerFocus(activeElement);
|
|
4374
4383
|
}
|
|
4384
|
+
var RESOLVED_COMPILER_MICROTASK = Promise.resolve();
|
|
4385
|
+
function scheduleCompilerMicrotask(callback) {
|
|
4386
|
+
void RESOLVED_COMPILER_MICROTASK.then(() => {
|
|
4387
|
+
try {
|
|
4388
|
+
callback();
|
|
4389
|
+
} catch (error) {
|
|
4390
|
+
queueMicrotask(() => {
|
|
4391
|
+
throw error;
|
|
4392
|
+
});
|
|
4393
|
+
}
|
|
4394
|
+
});
|
|
4395
|
+
}
|
|
4375
4396
|
function compilerFocusedElement(root) {
|
|
4376
4397
|
const activeElement = root.ownerDocument.activeElement;
|
|
4377
4398
|
return activeElement && root.contains(activeElement) ? activeElement : null;
|
|
@@ -4400,6 +4421,11 @@ var keyedUpdateRuntime = {
|
|
|
4400
4421
|
commit: commitCompilerKeyedCollection,
|
|
4401
4422
|
reconcile: reconcileCompilerKeyedMapUpdate
|
|
4402
4423
|
};
|
|
4424
|
+
var keyedAppendOnlyUpdateRuntime = {
|
|
4425
|
+
append: reconcileCompilerKeyedArrayAppend,
|
|
4426
|
+
commit: commitCompilerKeyedCollection,
|
|
4427
|
+
reconcile: () => void 0
|
|
4428
|
+
};
|
|
4403
4429
|
var keyedFilterUpdateRuntime = {
|
|
4404
4430
|
...keyedUpdateRuntime,
|
|
4405
4431
|
filter: reconcileCompilerKeyedArrayFilter
|
|
@@ -4625,13 +4651,14 @@ function reconcileCompilerKeyedArrayAppend(props, dirtyState, collectionToken, i
|
|
|
4625
4651
|
const finalValue = props.items();
|
|
4626
4652
|
const startIndex = compilerKeyedArrayAppendStart(finalValue, collectionToken, instances.size);
|
|
4627
4653
|
if (startIndex === void 0 || !Array.isArray(finalValue)) return void 0;
|
|
4628
|
-
const
|
|
4654
|
+
const appendedKeys = /* @__PURE__ */ new Set();
|
|
4629
4655
|
const appended = [];
|
|
4630
4656
|
try {
|
|
4631
4657
|
for (let index = startIndex; index < finalValue.length; index += 1) {
|
|
4632
4658
|
const item = finalValue[index];
|
|
4633
4659
|
const key = keyedRowIdentity(props.rowKey(item, index));
|
|
4634
|
-
if (
|
|
4660
|
+
if (instances.has(key) || appendedKeys.has(key)) return void 0;
|
|
4661
|
+
appendedKeys.add(key);
|
|
4635
4662
|
const instance = createKeyedRowInstance(
|
|
4636
4663
|
props,
|
|
4637
4664
|
root.ownerDocument,
|
|
@@ -4640,7 +4667,6 @@ function reconcileCompilerKeyedArrayAppend(props, dirtyState, collectionToken, i
|
|
|
4640
4667
|
index
|
|
4641
4668
|
);
|
|
4642
4669
|
appended.push(instance);
|
|
4643
|
-
nextInstances.set(key, instance);
|
|
4644
4670
|
}
|
|
4645
4671
|
} catch {
|
|
4646
4672
|
return void 0;
|
|
@@ -4650,7 +4676,10 @@ function reconcileCompilerKeyedArrayAppend(props, dirtyState, collectionToken, i
|
|
|
4650
4676
|
for (const instance of appended) fragment.append(instance.element);
|
|
4651
4677
|
root.append(fragment);
|
|
4652
4678
|
}
|
|
4653
|
-
|
|
4679
|
+
const mutableInstances = instances;
|
|
4680
|
+
for (const instance of appended) mutableInstances.set(instance.key, instance);
|
|
4681
|
+
COMPILER_KEYED_APPEND_DELTAS.set(mutableInstances, appended);
|
|
4682
|
+
return mutableInstances;
|
|
4654
4683
|
}
|
|
4655
4684
|
function reconcileCompilerKeyedArrayStructuralAppend(props, dirtyState, collectionToken, instances, root, reactOwnedRows) {
|
|
4656
4685
|
if (reactOwnedRows || props.hostBlocks || (props.conditionals?.length || 0) > 0 || !props.filterIndexIndependent || props.collectionDependency === void 0) {
|
|
@@ -6133,8 +6162,16 @@ function createKeyedRowsBlockComponentCore(owner, options = {}) {
|
|
|
6133
6162
|
this.hasReactOwnedRows()
|
|
6134
6163
|
);
|
|
6135
6164
|
if (appendedInstances) {
|
|
6165
|
+
const appended = COMPILER_KEYED_APPEND_DELTAS.get(appendedInstances);
|
|
6166
|
+
COMPILER_KEYED_APPEND_DELTAS.delete(appendedInstances);
|
|
6136
6167
|
this.instances = appendedInstances instanceof Map ? appendedInstances : new Map(appendedInstances);
|
|
6137
|
-
|
|
6168
|
+
if (appended && this.elementIndexComplete) {
|
|
6169
|
+
for (const instance of appended) {
|
|
6170
|
+
this.instancesByElement.set(instance.element, instance);
|
|
6171
|
+
}
|
|
6172
|
+
} else {
|
|
6173
|
+
this.rebuildElementIndex(this.instances);
|
|
6174
|
+
}
|
|
6138
6175
|
this.commitCurrentCollection(dirtyState);
|
|
6139
6176
|
afterCommit?.();
|
|
6140
6177
|
return;
|
|
@@ -6250,15 +6287,41 @@ function createKeyedRowsBlockComponentCore(owner, options = {}) {
|
|
|
6250
6287
|
const keys = [];
|
|
6251
6288
|
const committedSize = this.instances.size;
|
|
6252
6289
|
let prefix = 0;
|
|
6290
|
+
let tracking = true;
|
|
6291
|
+
let moved;
|
|
6292
|
+
let displaced;
|
|
6253
6293
|
const committed = this.instances.keys();
|
|
6254
6294
|
for (let index = 0; index < items.length; index += 1) {
|
|
6255
6295
|
const key = keyedRowIdentity(props.rowKey(items[index], index));
|
|
6256
6296
|
keys.push(key);
|
|
6257
|
-
if (
|
|
6258
|
-
|
|
6297
|
+
if (!tracking || index >= committedSize) continue;
|
|
6298
|
+
const committedKey = committed.next().value;
|
|
6299
|
+
if (committedKey === key) {
|
|
6300
|
+
if (prefix === index) prefix += 1;
|
|
6301
|
+
continue;
|
|
6259
6302
|
}
|
|
6303
|
+
if (items.length !== committedSize || moved && moved.length === KEYED_ROWS_MAX_MOVED) {
|
|
6304
|
+
tracking = false;
|
|
6305
|
+
moved = displaced = void 0;
|
|
6306
|
+
continue;
|
|
6307
|
+
}
|
|
6308
|
+
(moved ?? (moved = [])).push(index);
|
|
6309
|
+
(displaced ?? (displaced = [])).push(committedKey);
|
|
6260
6310
|
}
|
|
6261
6311
|
if (prefix === committedSize && keys.length === committedSize) return { items, keys };
|
|
6312
|
+
if (moved && displaced) {
|
|
6313
|
+
const pending = /* @__PURE__ */ new Map();
|
|
6314
|
+
for (let index = 0; index < moved.length; index += 1) pending.set(displaced[index], index);
|
|
6315
|
+
const sources = [];
|
|
6316
|
+
for (const position of moved) {
|
|
6317
|
+
const source = pending.get(keys[position]);
|
|
6318
|
+
if (source === void 0) break;
|
|
6319
|
+
pending.delete(keys[position]);
|
|
6320
|
+
sources.push(source);
|
|
6321
|
+
}
|
|
6322
|
+
if (sources.length === moved.length)
|
|
6323
|
+
return { items, keys, moved: { positions: moved, sources } };
|
|
6324
|
+
}
|
|
6262
6325
|
if (prefix === committedSize && committedSize > 0) {
|
|
6263
6326
|
const tail = /* @__PURE__ */ new Set();
|
|
6264
6327
|
for (let index = committedSize; index < keys.length; index += 1) {
|
|
@@ -6520,22 +6583,35 @@ function createKeyedRowsBlockComponentCore(owner, options = {}) {
|
|
|
6520
6583
|
if (rows.keys[index] !== key) return false;
|
|
6521
6584
|
index += 1;
|
|
6522
6585
|
}
|
|
6586
|
+
const conditionalChanges = this.patchOrderedRows(
|
|
6587
|
+
rows,
|
|
6588
|
+
[...this.instances.values()],
|
|
6589
|
+
afterCommit
|
|
6590
|
+
);
|
|
6591
|
+
if (!conditionalChanges) return true;
|
|
6592
|
+
this.commitCurrentCollection(dirtyState);
|
|
6593
|
+
this.notifyConditionalChanges(conditionalChanges, afterCommit);
|
|
6594
|
+
return true;
|
|
6595
|
+
}
|
|
6596
|
+
// Rereads and patches every row as React would rerender it. `ordered` holds
|
|
6597
|
+
// the existing instance for each row. Returns undefined after activating
|
|
6598
|
+
// the fallback.
|
|
6599
|
+
patchOrderedRows(rows, ordered, afterCommit) {
|
|
6523
6600
|
const shouldPrepareBindings = rows.items.length > 1 && this.currentProps.bindings.length > 0 && !this.currentProps.hostBlocks;
|
|
6524
|
-
const ordered = [...this.instances.values()];
|
|
6525
6601
|
const preparedBindings = shouldPrepareBindings ? prepareKeyedRowBindingSetUpdates(this.currentProps, this.instances, rows, ordered) : void 0;
|
|
6526
6602
|
if (shouldPrepareBindings && !preparedBindings) {
|
|
6527
6603
|
this.activateFallback(afterCommit);
|
|
6528
|
-
return
|
|
6604
|
+
return void 0;
|
|
6529
6605
|
}
|
|
6530
6606
|
const conditionalChanges = [];
|
|
6531
|
-
for (index = 0; index < rows.items.length; index += 1) {
|
|
6607
|
+
for (let index = 0; index < rows.items.length; index += 1) {
|
|
6532
6608
|
const key = rows.keys[index];
|
|
6533
6609
|
const existing = ordered[index];
|
|
6534
6610
|
if (this.currentProps.hostBlocks) {
|
|
6535
6611
|
const descriptor = this.currentProps.create(rows.items[index], index);
|
|
6536
6612
|
if (!existing.scope?.update(descriptor)) {
|
|
6537
6613
|
this.activateFallback(afterCommit);
|
|
6538
|
-
return
|
|
6614
|
+
return void 0;
|
|
6539
6615
|
}
|
|
6540
6616
|
}
|
|
6541
6617
|
const bindingUpdates = preparedBindings?.[index];
|
|
@@ -6563,9 +6639,36 @@ function createKeyedRowsBlockComponentCore(owner, options = {}) {
|
|
|
6563
6639
|
existing.item = rows.items[index];
|
|
6564
6640
|
existing.index = index;
|
|
6565
6641
|
}
|
|
6642
|
+
return conditionalChanges;
|
|
6643
|
+
}
|
|
6644
|
+
// The same rows in a new order that differs only at the ascending `moved`
|
|
6645
|
+
// positions: patch every row, then move only moved rows outside a stable
|
|
6646
|
+
// subsequence. A moved row may stay put only when every position between
|
|
6647
|
+
// its committed and final place also moved; otherwise an unmoved row lies
|
|
6648
|
+
// between them and the order would be wrong. Inserting the rest from the
|
|
6649
|
+
// last position down puts each before its final next sibling.
|
|
6650
|
+
reconcileMovedRows(rows, moved, sources, afterCommit, dirtyState) {
|
|
6651
|
+
const ordered = [...this.instances.values()];
|
|
6652
|
+
for (const position of moved) ordered[position] = this.instances.get(rows.keys[position]);
|
|
6653
|
+
const conditionalChanges = this.patchOrderedRows(rows, ordered, afterCommit);
|
|
6654
|
+
if (!conditionalChanges) return;
|
|
6655
|
+
const sequence = sources.map(
|
|
6656
|
+
(source, index) => Math.abs(moved[source] - moved[index]) === Math.abs(source - index) ? source : -1
|
|
6657
|
+
);
|
|
6658
|
+
const stays = longestIncreasingSubsequencePositions(sequence);
|
|
6659
|
+
const root = this.root;
|
|
6660
|
+
const activeElement = compilerFocusedElement(root);
|
|
6661
|
+
for (let index = moved.length - 1; index >= 0; index -= 1) {
|
|
6662
|
+
if (stays[index]) continue;
|
|
6663
|
+
const position = moved[index];
|
|
6664
|
+
const element = ordered[position].element;
|
|
6665
|
+
const anchor = position + 1 < ordered.length ? ordered[position + 1].element : null;
|
|
6666
|
+
if (element.nextSibling !== anchor) root.insertBefore(element, anchor);
|
|
6667
|
+
}
|
|
6668
|
+
restoreCompilerFocus(activeElement);
|
|
6669
|
+
this.instances = keyedRowInstancesByKey(ordered);
|
|
6566
6670
|
this.commitCurrentCollection(dirtyState);
|
|
6567
6671
|
this.notifyConditionalChanges(conditionalChanges, afterCommit);
|
|
6568
|
-
return true;
|
|
6569
6672
|
}
|
|
6570
6673
|
// Keys are the committed keys plus new ones: patch every existing row like
|
|
6571
6674
|
// the complete path does, then create and append only the new rows.
|
|
@@ -6710,6 +6813,16 @@ function createKeyedRowsBlockComponentCore(owner, options = {}) {
|
|
|
6710
6813
|
return;
|
|
6711
6814
|
}
|
|
6712
6815
|
if (this.reconcileStableRows(rows, afterCommit, dirtyState)) return;
|
|
6816
|
+
if (rows.moved && !this.currentProps.hostBlocks) {
|
|
6817
|
+
this.reconcileMovedRows(
|
|
6818
|
+
rows,
|
|
6819
|
+
rows.moved.positions,
|
|
6820
|
+
rows.moved.sources,
|
|
6821
|
+
afterCommit,
|
|
6822
|
+
dirtyState
|
|
6823
|
+
);
|
|
6824
|
+
return;
|
|
6825
|
+
}
|
|
6713
6826
|
if (this.reconcileRemovals(rows, afterCommit, dirtyState)) return;
|
|
6714
6827
|
if (rows.appended && !this.currentProps.hostBlocks) {
|
|
6715
6828
|
this.reconcileAppendedRows(rows, afterCommit, dirtyState);
|
|
@@ -6849,7 +6962,7 @@ function createKeyedRowsBlockComponentCore(owner, options = {}) {
|
|
|
6849
6962
|
schedulePropSync() {
|
|
6850
6963
|
if (this.propSyncQueued) return;
|
|
6851
6964
|
this.propSyncQueued = true;
|
|
6852
|
-
|
|
6965
|
+
scheduleCompilerMicrotask(() => {
|
|
6853
6966
|
this.propSyncQueued = false;
|
|
6854
6967
|
if (this.mounted && !this.state.fallback) {
|
|
6855
6968
|
this.listen();
|
|
@@ -7437,6 +7550,14 @@ var keyedRowsHintedRuntimeFeature = {
|
|
|
7437
7550
|
})
|
|
7438
7551
|
})
|
|
7439
7552
|
};
|
|
7553
|
+
var keyedRowsAppendOnlyRuntimeFeature = {
|
|
7554
|
+
name: "keyed-rows:append-only",
|
|
7555
|
+
create: (owner) => ({
|
|
7556
|
+
KeyedRows: createKeyedRowsBlockComponentCore(owner, {
|
|
7557
|
+
keyedUpdates: keyedAppendOnlyUpdateRuntime
|
|
7558
|
+
})
|
|
7559
|
+
})
|
|
7560
|
+
};
|
|
7440
7561
|
var keyedRowsPositionHintedRuntimeFeature = {
|
|
7441
7562
|
name: "keyed-rows:position-hinted",
|
|
7442
7563
|
create: (owner) => ({
|
|
@@ -8368,7 +8489,7 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8368
8489
|
this.captureInputSelection();
|
|
8369
8490
|
if (!this.mounted || this.flushQueued) return;
|
|
8370
8491
|
this.flushQueued = true;
|
|
8371
|
-
|
|
8492
|
+
scheduleCompilerMicrotask(() => {
|
|
8372
8493
|
this.flushQueued = false;
|
|
8373
8494
|
this.flushBindingUpdates();
|
|
8374
8495
|
});
|
|
@@ -8581,6 +8702,6 @@ function createCompiledComponent(definition) {
|
|
|
8581
8702
|
return createCompiledComponentWithFeatures(definition, COMPLETE_RUNTIME_FEATURES);
|
|
8582
8703
|
}
|
|
8583
8704
|
|
|
8584
|
-
export { applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
8705
|
+
export { applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
8585
8706
|
//# sourceMappingURL=compiler-runtime.mjs.map
|
|
8586
8707
|
//# sourceMappingURL=compiler-runtime.mjs.map
|