@lowdefy/blocks-table 0.0.0-experimental-20260929110023
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/LICENSE +201 -0
- package/README.md +12 -0
- package/dist/blocks/Table/Table.js +25 -0
- package/dist/blocks/Table/Table.lazy.js +33 -0
- package/dist/blocks/Table/TableFallback.js +35 -0
- package/dist/blocks/Table/e2e.js +47 -0
- package/dist/blocks/Table/gallery.yaml +836 -0
- package/dist/blocks/Table/meta.js +964 -0
- package/dist/blocks/Table/tests/Table.e2e.yaml +434 -0
- package/dist/blocks/Table/tests/TableFeatures.e2e.yaml +291 -0
- package/dist/blocks/Table/tests/TableLinkTarget.e2e.yaml +25 -0
- package/dist/blocks/Table/tests/TableParity.e2e.yaml +101 -0
- package/dist/blocks/Table/tests/bulk.e2e.yaml +271 -0
- package/dist/blocks/Table/tests/deals.yaml +30 -0
- package/dist/blocks/Table/tests/deals_columns.yaml +37 -0
- package/dist/blocks/Table/tests/editing.e2e.yaml +501 -0
- package/dist/blocks/Table/tests/expandable.e2e.yaml +87 -0
- package/dist/blocks/Table/tests/filtering.e2e.yaml +251 -0
- package/dist/blocks/Table/tests/grouping.e2e.yaml +272 -0
- package/dist/blocks/Table/tests/grouping_deals.yaml +24 -0
- package/dist/blocks/Table/tests/grouping_deals_columns.yaml +32 -0
- package/dist/blocks/Table/tests/headerMenu.e2e.yaml +134 -0
- package/dist/blocks/Table/tests/parity_properties.yaml +144 -0
- package/dist/blocks/Table/tests/people.yaml +39 -0
- package/dist/blocks/Table/tests/people_columns.yaml +22 -0
- package/dist/blocks/Table/tests/polish.e2e.yaml +372 -0
- package/dist/blocks/Table/tests/server-mongodb.e2e.yaml +169 -0
- package/dist/blocks/Table/tests/server.e2e.yaml +267 -0
- package/dist/blocks/Table/tests/toolbar.e2e.yaml +140 -0
- package/dist/blocks/Table/tests/tree.e2e.yaml +245 -0
- package/dist/blocks/Table/tests/views.e2e.yaml +235 -0
- package/dist/blocks/TableInput/TableInput.js +24 -0
- package/dist/blocks/TableInput/TableInput.lazy.js +17 -0
- package/dist/blocks/TableInput/TableInputRoot.js +65 -0
- package/dist/blocks/TableInput/e2e.js +16 -0
- package/dist/blocks/TableInput/gallery.yaml +153 -0
- package/dist/blocks/TableInput/meta.js +93 -0
- package/dist/blocks/TableInput/tests/TableInput.e2e.yaml +272 -0
- package/dist/blocks.js +16 -0
- package/dist/core/Body.js +112 -0
- package/dist/core/Cell.js +86 -0
- package/dist/core/Chevron.js +32 -0
- package/dist/core/EmptyState.js +32 -0
- package/dist/core/Grid.js +219 -0
- package/dist/core/GroupHeaderRow.js +81 -0
- package/dist/core/HeaderCell.js +58 -0
- package/dist/core/HeaderRow.js +76 -0
- package/dist/core/HeaderTitle.js +49 -0
- package/dist/core/LazyCell.js +71 -0
- package/dist/core/LoadingRows.js +38 -0
- package/dist/core/RenderProbeContext.js +19 -0
- package/dist/core/Row.js +98 -0
- package/dist/core/SkeletonRow.js +42 -0
- package/dist/core/SummaryRow.js +86 -0
- package/dist/core/TableRoot.js +195 -0
- package/dist/core/aggregateShortLabels.js +25 -0
- package/dist/core/applyLayoutVars.js +22 -0
- package/dist/core/buildGroupSegments.js +36 -0
- package/dist/core/collectBodyOverlays.js +20 -0
- package/dist/core/collectCellLeads.js +21 -0
- package/dist/core/collectClaimedViewKeys.js +26 -0
- package/dist/core/collectGridHandlers.js +29 -0
- package/dist/core/collectHeaderParts.js +20 -0
- package/dist/core/collectRowRenderers.js +21 -0
- package/dist/core/collectSliceDefinitions.js +29 -0
- package/dist/core/computeLayout.js +133 -0
- package/dist/core/createAccessor.js +39 -0
- package/dist/core/createApi.js +86 -0
- package/dist/core/createCellActivity.js +47 -0
- package/dist/core/createColumnDefs.js +42 -0
- package/dist/core/createFeatureActions.js +24 -0
- package/dist/core/createFeatureSet.js +39 -0
- package/dist/core/createInitialState.js +63 -0
- package/dist/core/createKeyIndex.js +26 -0
- package/dist/core/createMethodStubs.js +30 -0
- package/dist/core/createSliceHandlers.js +26 -0
- package/dist/core/createStableCoreRowModel.js +91 -0
- package/dist/core/createTanstackFeatures.js +24 -0
- package/dist/core/createTextMeasure.js +106 -0
- package/dist/core/densityHeights.js +20 -0
- package/dist/core/deriveValue.js +53 -0
- package/dist/core/dispatchGridEvent.js +21 -0
- package/dist/core/distributeFlex.js +28 -0
- package/dist/core/getCellFit.js +34 -0
- package/dist/core/getHeaderCellProps.js +21 -0
- package/dist/core/getHeaderLevels.js +50 -0
- package/dist/core/getRecordCount.js +23 -0
- package/dist/core/getSummaryLabel.js +35 -0
- package/dist/core/getValueSignature.js +26 -0
- package/dist/core/isDataItem.js +21 -0
- package/dist/core/isDefaultViewColumns.js +36 -0
- package/dist/core/isRowEqual.js +40 -0
- package/dist/core/isSameSignature.js +19 -0
- package/dist/core/lazyCellTypes.js +33 -0
- package/dist/core/lazyComponent.js +30 -0
- package/dist/core/loadOptionalFeature.js +35 -0
- package/dist/core/normalizeViewColumn.js +29 -0
- package/dist/core/pickViewPart.js +23 -0
- package/dist/core/renderRegion.js +21 -0
- package/dist/core/resolveMountValue.js +31 -0
- package/dist/core/resolveViewColumns.js +65 -0
- package/dist/core/someColumnConfig.js +30 -0
- package/dist/core/stabilizeData.js +90 -0
- package/dist/core/table.css +557 -0
- package/dist/core/useFeatureData.js +35 -0
- package/dist/core/useFeatureFragments.js +55 -0
- package/dist/core/useFeatureItems.js +78 -0
- package/dist/core/useFeatureMethods.js +29 -0
- package/dist/core/useFeatureRows.js +36 -0
- package/dist/core/useFeatureSet.js +54 -0
- package/dist/core/useForeignKeys.js +38 -0
- package/dist/core/useGridFeatures.js +26 -0
- package/dist/core/useStableConfig.js +34 -0
- package/dist/core/useSummary.js +73 -0
- package/dist/core/useTableConfig.js +189 -0
- package/dist/core/useTableState.js +150 -0
- package/dist/core/useViewportSize.js +40 -0
- package/dist/e2e.js +16 -0
- package/dist/features/bulk/BulkBar.js +46 -0
- package/dist/features/bulk/bulk.css +57 -0
- package/dist/features/bulk/bulkFeature.js +28 -0
- package/dist/features/bulk/countSelection.js +27 -0
- package/dist/features/bulk/createSelectAllMatching.js +43 -0
- package/dist/features/bulk/useBulkBar.js +42 -0
- package/dist/features/clipboard/clipboardFeature.js +24 -0
- package/dist/features/clipboard/createPasteCells.js +61 -0
- package/dist/features/clipboard/getCopyText.js +57 -0
- package/dist/features/clipboard/handleCopyKeyDown.js +37 -0
- package/dist/features/clipboard/parseTsv.js +70 -0
- package/dist/features/clipboard/pasteFeature.js +26 -0
- package/dist/features/clipboard/planPaste.js +101 -0
- package/dist/features/clipboard/serializeTsv.js +25 -0
- package/dist/features/clipboard/usePasteListener.js +45 -0
- package/dist/features/columnManager/ColumnManager.js +253 -0
- package/dist/features/columnManager/ColumnManagerPopover.js +37 -0
- package/dist/features/columnManager/DragHandleIcon.js +39 -0
- package/dist/features/columnManager/LazyColumnManagerPopover.js +19 -0
- package/dist/features/columnManager/applyManagerRegions.js +43 -0
- package/dist/features/columnManager/boundaryIds.js +21 -0
- package/dist/features/columnManager/buildManagerSequence.js +38 -0
- package/dist/features/columnManager/columnManager.css +155 -0
- package/dist/features/columnManager/columnManagerFeature.js +37 -0
- package/dist/features/columnManager/createCloseColumnManager.js +21 -0
- package/dist/features/columnManager/createOpenColumnManager.js +21 -0
- package/dist/features/columnManager/createResetColumns.js +43 -0
- package/dist/features/columnManager/getColumnManagerMenuItems.js +26 -0
- package/dist/features/columnManager/getListRoom.js +31 -0
- package/dist/features/columnManager/getManagerEntries.js +31 -0
- package/dist/features/columnManager/moveSequenceEntry.js +25 -0
- package/dist/features/columnManager/sequenceToRegions.js +38 -0
- package/dist/features/columnManager/snapListHeight.js +35 -0
- package/dist/features/columnManager/updateScrollHints.js +23 -0
- package/dist/features/columnManager/useColumnManager.js +36 -0
- package/dist/features/density/densityFeature.js +39 -0
- package/dist/features/density/densityToValue.js +23 -0
- package/dist/features/density/getViewWrapColumn.js +53 -0
- package/dist/features/density/initDensity.js +27 -0
- package/dist/features/density/initWrap.js +23 -0
- package/dist/features/editing/AddRowButton.js +28 -0
- package/dist/features/editing/CellEditor.js +284 -0
- package/dist/features/editing/EditMarker.js +38 -0
- package/dist/features/editing/EditingLayer.js +148 -0
- package/dist/features/editing/RowControlsCell.js +89 -0
- package/dist/features/editing/RowControlsHeader.js +18 -0
- package/dist/features/editing/SelectedTag.js +33 -0
- package/dist/features/editing/addChangeRow.js +34 -0
- package/dist/features/editing/applyChangeUpdates.js +28 -0
- package/dist/features/editing/applyChanges.js +90 -0
- package/dist/features/editing/applyMoveOverlay.js +44 -0
- package/dist/features/editing/applyMoveToChanges.js +66 -0
- package/dist/features/editing/applyOverlay.js +41 -0
- package/dist/features/editing/coerceCellValue.js +187 -0
- package/dist/features/editing/collectRawColumns.js +38 -0
- package/dist/features/editing/computeEditTargets.js +108 -0
- package/dist/features/editing/computeRowMove.js +78 -0
- package/dist/features/editing/createAddRow.js +68 -0
- package/dist/features/editing/createCancelEdit.js +29 -0
- package/dist/features/editing/createCommitEdit.js +124 -0
- package/dist/features/editing/createDeleteRow.js +39 -0
- package/dist/features/editing/createEditSpecs.js +80 -0
- package/dist/features/editing/createEmptyChanges.js +23 -0
- package/dist/features/editing/createMoveRow.js +65 -0
- package/dist/features/editing/createNewRow.js +32 -0
- package/dist/features/editing/createResetChanges.js +29 -0
- package/dist/features/editing/createSaveCellEdit.js +113 -0
- package/dist/features/editing/createSaveRowMove.js +90 -0
- package/dist/features/editing/createStartEdit.js +57 -0
- package/dist/features/editing/createStepHistory.js +33 -0
- package/dist/features/editing/createUndoStack.js +67 -0
- package/dist/features/editing/createValueStore.js +34 -0
- package/dist/features/editing/createWriteCell.js +34 -0
- package/dist/features/editing/createWriteChanges.js +43 -0
- package/dist/features/editing/editing.css +223 -0
- package/dist/features/editing/editingFeature.js +66 -0
- package/dist/features/editing/findCellByKey.js +23 -0
- package/dist/features/editing/findInvalidCells.js +41 -0
- package/dist/features/editing/findNextEditableCell.js +54 -0
- package/dist/features/editing/focusCell.js +28 -0
- package/dist/features/editing/fromDateValue.js +29 -0
- package/dist/features/editing/fromEditorDraft.js +45 -0
- package/dist/features/editing/generateRowKey.js +25 -0
- package/dist/features/editing/getDataGap.js +28 -0
- package/dist/features/editing/getEditOptions.js +33 -0
- package/dist/features/editing/getEditorKind.js +36 -0
- package/dist/features/editing/getEventError.js +24 -0
- package/dist/features/editing/getKeyField.js +23 -0
- package/dist/features/editing/getReorderBlock.js +33 -0
- package/dist/features/editing/handleEditDoubleClick.js +34 -0
- package/dist/features/editing/handleEditKeyDown.js +123 -0
- package/dist/features/editing/handleRowControlsClick.js +29 -0
- package/dist/features/editing/handleRowDragPointerDown.js +95 -0
- package/dist/features/editing/isCellEditable.js +20 -0
- package/dist/features/editing/isPrintableKey.js +22 -0
- package/dist/features/editing/isSameTargets.js +19 -0
- package/dist/features/editing/matchOption.js +21 -0
- package/dist/features/editing/needsEditing.js +26 -0
- package/dist/features/editing/normalizeChanges.js +37 -0
- package/dist/features/editing/positionBetween.js +30 -0
- package/dist/features/editing/pruneOverlay.js +39 -0
- package/dist/features/editing/removeChangeRow.js +48 -0
- package/dist/features/editing/reorderByKeys.js +34 -0
- package/dist/features/editing/rowControlsColumn.js +33 -0
- package/dist/features/editing/setChangeField.js +72 -0
- package/dist/features/editing/setRowField.js +23 -0
- package/dist/features/editing/sortByPosition.js +31 -0
- package/dist/features/editing/toDateValue.js +38 -0
- package/dist/features/editing/toEditorDraft.js +56 -0
- package/dist/features/editing/toSelectOptions.js +39 -0
- package/dist/features/editing/useEditingData.js +199 -0
- package/dist/features/editing/useEditingFragments.js +77 -0
- package/dist/features/editing/useEditingGrid.js +25 -0
- package/dist/features/editing/validateCellValue.js +25 -0
- package/dist/features/editing/valuesEqual.js +31 -0
- package/dist/features/editing/warnMissingEvent.js +23 -0
- package/dist/features/events/createActivateRow.js +54 -0
- package/dist/features/events/eventsFeature.js +35 -0
- package/dist/features/events/getBodyTarget.js +27 -0
- package/dist/features/events/getRowIndex.js +24 -0
- package/dist/features/events/handleAuxClick.js +38 -0
- package/dist/features/events/handlePointerDown.js +22 -0
- package/dist/features/events/handleRowClick.js +57 -0
- package/dist/features/events/handleRowDoubleClick.js +45 -0
- package/dist/features/events/isTextDrag.js +30 -0
- package/dist/features/events/openRowLink.js +29 -0
- package/dist/features/expandable/DetailRow.js +57 -0
- package/dist/features/expandable/ExpandToggle.js +34 -0
- package/dist/features/expandable/expandable.css +40 -0
- package/dist/features/expandable/expandableFeature.js +34 -0
- package/dist/features/expandable/handleExpandClick.js +25 -0
- package/dist/features/expandable/needsExpandable.js +20 -0
- package/dist/features/expandable/normalizeExpandable.js +52 -0
- package/dist/features/expandable/useExpandableItems.js +101 -0
- package/dist/features/expansion/createToggleRowExpanded.js +52 -0
- package/dist/features/expansion/expansionFeature.js +31 -0
- package/dist/features/expansion/getExpandedIds.js +26 -0
- package/dist/features/expansion/initExpanded.js +22 -0
- package/dist/features/export/buildCsv.js +39 -0
- package/dist/features/export/createExportCsv.js +59 -0
- package/dist/features/export/exportFeature.js +25 -0
- package/dist/features/export/toCsvField.js +20 -0
- package/dist/features/filtering/ChoiceFilter.js +30 -0
- package/dist/features/filtering/CloseIcon.js +29 -0
- package/dist/features/filtering/ColumnFilter.js +192 -0
- package/dist/features/filtering/ColumnFilterPopover.js +38 -0
- package/dist/features/filtering/DateFilter.js +80 -0
- package/dist/features/filtering/DraftInput.js +37 -0
- package/dist/features/filtering/DraftInputNumber.js +36 -0
- package/dist/features/filtering/FilterBuilder.js +45 -0
- package/dist/features/filtering/FilterGroup.js +116 -0
- package/dist/features/filtering/FilterIcon.js +26 -0
- package/dist/features/filtering/FilterIndicator.js +40 -0
- package/dist/features/filtering/FilterLeaf.js +86 -0
- package/dist/features/filtering/LazyColumnFilterPopover.js +19 -0
- package/dist/features/filtering/LazyFilterBuilder.js +19 -0
- package/dist/features/filtering/NumberFilter.js +43 -0
- package/dist/features/filtering/OptionsFilter.js +72 -0
- package/dist/features/filtering/RelativeDateEditor.js +90 -0
- package/dist/features/filtering/TextFilter.js +51 -0
- package/dist/features/filtering/ValueEditor.js +210 -0
- package/dist/features/filtering/buildColumnFilter.js +95 -0
- package/dist/features/filtering/changeLeafOperator.js +46 -0
- package/dist/features/filtering/createApplyFiltering.js +78 -0
- package/dist/features/filtering/createClearFilters.js +24 -0
- package/dist/features/filtering/createCloseColumnFilter.js +28 -0
- package/dist/features/filtering/createConditionFilteredRowModel.js +40 -0
- package/dist/features/filtering/createDefaultLeaf.js +31 -0
- package/dist/features/filtering/createOpenColumnFilter.js +25 -0
- package/dist/features/filtering/createRowTest.js +32 -0
- package/dist/features/filtering/createSearchMatcher.js +35 -0
- package/dist/features/filtering/createSetFilter.js +27 -0
- package/dist/features/filtering/createSetSearch.js +29 -0
- package/dist/features/filtering/createUpdateColumnFilter.js +29 -0
- package/dist/features/filtering/defaultRelativeDate.js +20 -0
- package/dist/features/filtering/filterRowModel.js +66 -0
- package/dist/features/filtering/filtering.css +151 -0
- package/dist/features/filtering/filteringFeature.js +82 -0
- package/dist/features/filtering/filteringToValue.js +23 -0
- package/dist/features/filtering/formatFilterDate.js +24 -0
- package/dist/features/filtering/getColumnConditions.js +24 -0
- package/dist/features/filtering/getConditionKeys.js +31 -0
- package/dist/features/filtering/getDistinctOptions.js +52 -0
- package/dist/features/filtering/getFilterKind.js +37 -0
- package/dist/features/filtering/getFilterResultKey.js +26 -0
- package/dist/features/filtering/getFilterResults.js +53 -0
- package/dist/features/filtering/getFilteredKeys.js +31 -0
- package/dist/features/filtering/getFilteringHeaderProps.js +22 -0
- package/dist/features/filtering/getFilteringMenuItems.js +42 -0
- package/dist/features/filtering/getFilteringTableOptions.js +33 -0
- package/dist/features/filtering/getGroupOperator.js +23 -0
- package/dist/features/filtering/getOperatorLabel.js +50 -0
- package/dist/features/filtering/getPlainTitle.js +26 -0
- package/dist/features/filtering/getSearchColumns.js +23 -0
- package/dist/features/filtering/getSearchKey.js +19 -0
- package/dist/features/filtering/getSearchText.js +57 -0
- package/dist/features/filtering/getTopLevelConditions.js +25 -0
- package/dist/features/filtering/getValueShape.js +30 -0
- package/dist/features/filtering/handleFilterIndicatorClick.js +25 -0
- package/dist/features/filtering/initFilter.js +25 -0
- package/dist/features/filtering/initSearch.js +24 -0
- package/dist/features/filtering/isColumnCondition.js +22 -0
- package/dist/features/filtering/isCompleteLeaf.js +45 -0
- package/dist/features/filtering/isServerMode.js +21 -0
- package/dist/features/filtering/normalizeSearch.js +21 -0
- package/dist/features/filtering/parseColumnFilter.js +128 -0
- package/dist/features/filtering/parseFilterDate.js +24 -0
- package/dist/features/filtering/prepareFilterResult.js +63 -0
- package/dist/features/filtering/pruneCondition.js +35 -0
- package/dist/features/filtering/setColumnFilter.js +51 -0
- package/dist/features/filtering/textFilterOperators.js +26 -0
- package/dist/features/filtering/toRootGroup.js +34 -0
- package/dist/features/filtering/useDraft.js +65 -0
- package/dist/features/filtering/useFilteringState.js +32 -0
- package/dist/features/filtering/useSyncedState.js +45 -0
- package/dist/features/grouping/GroupCell.js +72 -0
- package/dist/features/grouping/GroupCheckbox.js +38 -0
- package/dist/features/grouping/GroupLabel.js +73 -0
- package/dist/features/grouping/GroupRow.js +103 -0
- package/dist/features/grouping/StickyGroupRow.js +136 -0
- package/dist/features/grouping/buildGroupTree.js +138 -0
- package/dist/features/grouping/buildStickyLevels.js +35 -0
- package/dist/features/grouping/countGroupSelection.js +26 -0
- package/dist/features/grouping/createAggregateColumns.js +38 -0
- package/dist/features/grouping/createCollapseAllGroups.js +26 -0
- package/dist/features/grouping/createExpandAllGroups.js +23 -0
- package/dist/features/grouping/createGroupLevels.js +46 -0
- package/dist/features/grouping/createSetCollapsedGroups.js +27 -0
- package/dist/features/grouping/createSetGroup.js +35 -0
- package/dist/features/grouping/createSetGroupKeys.js +27 -0
- package/dist/features/grouping/createToggleGroup.js +38 -0
- package/dist/features/grouping/createToggleGroupSelected.js +49 -0
- package/dist/features/grouping/findGroupIndices.js +25 -0
- package/dist/features/grouping/flattenGroups.js +58 -0
- package/dist/features/grouping/getGroupLabel.js +34 -0
- package/dist/features/grouping/getStickyGroups.js +60 -0
- package/dist/features/grouping/groupRowsFeature.js +57 -0
- package/dist/features/grouping/grouping.css +128 -0
- package/dist/features/grouping/groupingFeature.js +48 -0
- package/dist/features/grouping/groupingHeaderMenuItems.js +44 -0
- package/dist/features/grouping/groupingToValue.js +26 -0
- package/dist/features/grouping/handleGroupClick.js +51 -0
- package/dist/features/grouping/handleGroupKeyDown.js +60 -0
- package/dist/features/grouping/initAggregates.js +36 -0
- package/dist/features/grouping/initCollapsedGroups.js +29 -0
- package/dist/features/grouping/initGrouping.js +34 -0
- package/dist/features/grouping/needsGroupRows.js +23 -0
- package/dist/features/grouping/orderGroups.js +49 -0
- package/dist/features/grouping/resolveAggregates.js +29 -0
- package/dist/features/grouping/toGroupIdentity.js +24 -0
- package/dist/features/grouping/toGroupKeys.js +24 -0
- package/dist/features/grouping/useGrouping.js +91 -0
- package/dist/features/headerMenu/HeaderMenuDropdown.js +86 -0
- package/dist/features/headerMenu/HeaderMenuTrigger.js +44 -0
- package/dist/features/headerMenu/LazyHeaderMenuDropdown.js +19 -0
- package/dist/features/headerMenu/MenuIcon.js +38 -0
- package/dist/features/headerMenu/collectHeaderMenuItems.js +69 -0
- package/dist/features/headerMenu/createAutosizeColumn.js +35 -0
- package/dist/features/headerMenu/createCloseHeaderMenu.js +28 -0
- package/dist/features/headerMenu/createOpenHeaderMenu.js +30 -0
- package/dist/features/headerMenu/focusHeaderControl.js +31 -0
- package/dist/features/headerMenu/freezeColumns.js +31 -0
- package/dist/features/headerMenu/getChromeMenuItems.js +144 -0
- package/dist/features/headerMenu/getVisibleOrder.js +19 -0
- package/dist/features/headerMenu/handleHeaderButtonPointerDown.js +27 -0
- package/dist/features/headerMenu/handleHeaderMenuClick.js +26 -0
- package/dist/features/headerMenu/handleHeaderMenuKeyDown.js +28 -0
- package/dist/features/headerMenu/headerMenu.css +122 -0
- package/dist/features/headerMenu/headerMenuFeature.js +46 -0
- package/dist/features/headerMenu/measureColumnWidth.js +51 -0
- package/dist/features/headerMenu/pinColumn.js +27 -0
- package/dist/features/headerMenu/sectionOrder.js +25 -0
- package/dist/features/headerMenu/useHeaderMenuState.js +27 -0
- package/dist/features/index.js +149 -0
- package/dist/features/keyboard/findCellElement.js +21 -0
- package/dist/features/keyboard/getNextCell.js +74 -0
- package/dist/features/keyboard/handleGridFocus.js +31 -0
- package/dist/features/keyboard/handleGridKeyDown.js +72 -0
- package/dist/features/keyboard/isCellRendered.js +22 -0
- package/dist/features/keyboard/keyboardFeature.js +26 -0
- package/dist/features/keyboard/useKeyboard.js +84 -0
- package/dist/features/lazyCells/getBodyRowKey.js +19 -0
- package/dist/features/lazyCells/handlePointerLeave.js +21 -0
- package/dist/features/lazyCells/handlePointerOver.js +22 -0
- package/dist/features/lazyCells/handleRowBlur.js +22 -0
- package/dist/features/lazyCells/handleRowFocus.js +26 -0
- package/dist/features/lazyCells/lazyCellsFeature.js +33 -0
- package/dist/features/lazyCells/useFastScroll.js +57 -0
- package/dist/features/ordering/getColumnClientBounds.js +32 -0
- package/dist/features/ordering/handleReorderPointerDown.js +137 -0
- package/dist/features/ordering/initColumnOrder.js +18 -0
- package/dist/features/ordering/moveKeys.js +27 -0
- package/dist/features/ordering/orderingFeature.js +35 -0
- package/dist/features/pagination/TablePagination.js +31 -0
- package/dist/features/pagination/initPageSize.js +28 -0
- package/dist/features/pagination/paginationFeature.js +36 -0
- package/dist/features/pagination/paginationToValue.js +24 -0
- package/dist/features/pagination/usePager.js +32 -0
- package/dist/features/pagination/usePagination.js +58 -0
- package/dist/features/pinning/initColumnPinning.js +21 -0
- package/dist/features/pinning/pinningFeature.js +33 -0
- package/dist/features/pinning/pinningToViewColumn.js +24 -0
- package/dist/features/queue/createAfterRowAction.js +40 -0
- package/dist/features/queue/findNextRowId.js +26 -0
- package/dist/features/queue/findRowAction.js +77 -0
- package/dist/features/queue/handleRowActionKey.js +44 -0
- package/dist/features/queue/queueFeature.js +27 -0
- package/dist/features/selection/SelectAllHeader.js +40 -0
- package/dist/features/selection/SelectCell.js +30 -0
- package/dist/features/selection/countSelectedRows.js +31 -0
- package/dist/features/selection/createClearSelection.js +29 -0
- package/dist/features/selection/createToggleAllRowsSelected.js +60 -0
- package/dist/features/selection/createToggleRowSelected.js +86 -0
- package/dist/features/selection/getRawRowKey.js +23 -0
- package/dist/features/selection/getSelectAllExcept.js +23 -0
- package/dist/features/selection/getSelectAllState.js +42 -0
- package/dist/features/selection/handleSelectionClick.js +30 -0
- package/dist/features/selection/initRowSelection.js +36 -0
- package/dist/features/selection/initSelectionMode.js +19 -0
- package/dist/features/selection/initSelectionView.js +35 -0
- package/dist/features/selection/isSelectAllValue.js +19 -0
- package/dist/features/selection/isSelectionViewCurrent.js +22 -0
- package/dist/features/selection/notifySelectionChange.js +32 -0
- package/dist/features/selection/pruneRowSelection.js +26 -0
- package/dist/features/selection/selectionFeature.js +69 -0
- package/dist/features/selection/selectionToValue.js +48 -0
- package/dist/features/selection/useSelection.js +77 -0
- package/dist/features/serverData/buildServerItems.js +109 -0
- package/dist/features/serverData/createBlockCache.js +205 -0
- package/dist/features/serverData/createRefresh.js +23 -0
- package/dist/features/serverData/createServerStore.js +360 -0
- package/dist/features/serverData/getBlockRange.js +29 -0
- package/dist/features/serverData/getListKey.js +20 -0
- package/dist/features/serverData/getNeededBlocks.js +45 -0
- package/dist/features/serverData/needsServerData.js +20 -0
- package/dist/features/serverData/normalizeServerData.js +41 -0
- package/dist/features/serverData/pickServerView.js +43 -0
- package/dist/features/serverData/readFetchResult.js +36 -0
- package/dist/features/serverData/serverData.css +21 -0
- package/dist/features/serverData/serverDataFeature.js +38 -0
- package/dist/features/serverData/serverRangeFeature.js +22 -0
- package/dist/features/serverData/useServerData.js +48 -0
- package/dist/features/serverData/useServerItems.js +35 -0
- package/dist/features/serverData/useServerRange.js +35 -0
- package/dist/features/serverData/useServerView.js +70 -0
- package/dist/features/sizing/ResizeHandle.js +24 -0
- package/dist/features/sizing/handleResizePointerDown.js +66 -0
- package/dist/features/sizing/initColumnSizing.js +23 -0
- package/dist/features/sizing/sizingFeature.js +39 -0
- package/dist/features/sizing/sizingToViewColumn.js +24 -0
- package/dist/features/sorting/SortIndicator.js +37 -0
- package/dist/features/sorting/buildSortKeys.js +52 -0
- package/dist/features/sorting/collectSortKeys.js +30 -0
- package/dist/features/sorting/createClearSort.js +21 -0
- package/dist/features/sorting/createIndexSortedRowModel.js +33 -0
- package/dist/features/sorting/createSetSort.js +43 -0
- package/dist/features/sorting/createSortKeyCollector.js +59 -0
- package/dist/features/sorting/createToggleSort.js +42 -0
- package/dist/features/sorting/getCachedSortKeys.js +19 -0
- package/dist/features/sorting/getSortHeaderProps.js +25 -0
- package/dist/features/sorting/getSortKeys.js +38 -0
- package/dist/features/sorting/handleSortClick.js +27 -0
- package/dist/features/sorting/initSorting.js +37 -0
- package/dist/features/sorting/isNumericSortType.js +21 -0
- package/dist/features/sorting/prepareSortKeys.js +92 -0
- package/dist/features/sorting/rankSortKeys.js +33 -0
- package/dist/features/sorting/setCachedSortKeys.js +24 -0
- package/dist/features/sorting/sortInSlices.js +69 -0
- package/dist/features/sorting/sortIndices.js +40 -0
- package/dist/features/sorting/sortKeysCache.js +19 -0
- package/dist/features/sorting/sortRowModel.js +84 -0
- package/dist/features/sorting/sortingFeature.js +62 -0
- package/dist/features/sorting/sortingToValue.js +27 -0
- package/dist/features/sorting/toFloatSortKeys.js +24 -0
- package/dist/features/sorting/yieldToMain.js +27 -0
- package/dist/features/toolbar/ColumnTitle.js +28 -0
- package/dist/features/toolbar/DensityToggle.js +53 -0
- package/dist/features/toolbar/FilterButton.js +56 -0
- package/dist/features/toolbar/GroupButton.js +51 -0
- package/dist/features/toolbar/OptionsQuickFilter.js +72 -0
- package/dist/features/toolbar/QuickFilter.js +46 -0
- package/dist/features/toolbar/RecordCount.js +27 -0
- package/dist/features/toolbar/SaveViewAs.js +66 -0
- package/dist/features/toolbar/SortButton.js +94 -0
- package/dist/features/toolbar/Toolbar.js +88 -0
- package/dist/features/toolbar/ToolbarCount.js +25 -0
- package/dist/features/toolbar/ToolbarIcon.js +28 -0
- package/dist/features/toolbar/ToolbarList.js +100 -0
- package/dist/features/toolbar/ToolbarSearch.js +63 -0
- package/dist/features/toolbar/ViewActions.js +41 -0
- package/dist/features/toolbar/ViewTabLabel.js +39 -0
- package/dist/features/toolbar/ViewTabMenu.js +48 -0
- package/dist/features/toolbar/ViewTabs.js +44 -0
- package/dist/features/toolbar/countConditions.js +25 -0
- package/dist/features/toolbar/formatRecordCount.js +19 -0
- package/dist/features/toolbar/getQuickFilterValues.js +25 -0
- package/dist/features/toolbar/getRootConditions.js +25 -0
- package/dist/features/toolbar/handleToolbarKeyDown.js +28 -0
- package/dist/features/toolbar/isDefaultSorting.js +26 -0
- package/dist/features/toolbar/isQuickFilterLeaf.js +20 -0
- package/dist/features/toolbar/moveItem.js +25 -0
- package/dist/features/toolbar/needsToolbar.js +21 -0
- package/dist/features/toolbar/normalizeToolbar.js +61 -0
- package/dist/features/toolbar/setQuickFilterValues.js +35 -0
- package/dist/features/toolbar/toolbar.css +185 -0
- package/dist/features/toolbar/toolbarFeature.js +27 -0
- package/dist/features/toolbar/useToolbar.js +41 -0
- package/dist/features/toolbar/validateQuickFilters.js +28 -0
- package/dist/features/transactions/applyTransactionToRows.js +56 -0
- package/dist/features/transactions/createApplyTransaction.js +26 -0
- package/dist/features/transactions/normalizeTransaction.js +49 -0
- package/dist/features/transactions/transactionsFeature.js +24 -0
- package/dist/features/transactions/useTransactionData.js +44 -0
- package/dist/features/tree/TreeToggle.js +39 -0
- package/dist/features/tree/buildTreeIndex.js +60 -0
- package/dist/features/tree/buildTreeItems.js +96 -0
- package/dist/features/tree/flattenTreeData.js +45 -0
- package/dist/features/tree/getDescendantIds.js +28 -0
- package/dist/features/tree/handleTreeClick.js +25 -0
- package/dist/features/tree/handleTreeKeyDown.js +58 -0
- package/dist/features/tree/needsTree.js +20 -0
- package/dist/features/tree/normalizeTree.js +41 -0
- package/dist/features/tree/rowNeedsChildren.js +25 -0
- package/dist/features/tree/tree.css +55 -0
- package/dist/features/tree/treeFeature.js +35 -0
- package/dist/features/tree/useTreeData.js +33 -0
- package/dist/features/tree/useTreeItems.js +61 -0
- package/dist/features/views/compactView.js +30 -0
- package/dist/features/views/createViewsApi.js +74 -0
- package/dist/features/views/decodeViewParam.js +30 -0
- package/dist/features/views/encodeViewParam.js +25 -0
- package/dist/features/views/findActiveView.js +23 -0
- package/dist/features/views/getStorageKey.js +20 -0
- package/dist/features/views/getViewKey.js +27 -0
- package/dist/features/views/getViewSliceDeps.js +27 -0
- package/dist/features/views/isViewDirty.js +34 -0
- package/dist/features/views/mountViewValue.js +36 -0
- package/dist/features/views/needsViews.js +23 -0
- package/dist/features/views/normalizePersist.js +27 -0
- package/dist/features/views/normalizeViews.js +41 -0
- package/dist/features/views/notifyViewSelect.js +29 -0
- package/dist/features/views/readMountPayload.js +31 -0
- package/dist/features/views/readPersistedView.js +45 -0
- package/dist/features/views/sanitizePersistedView.js +49 -0
- package/dist/features/views/stableStringify.js +27 -0
- package/dist/features/views/useViews.js +136 -0
- package/dist/features/views/viewKeys.js +28 -0
- package/dist/features/views/viewsFeature.js +26 -0
- package/dist/features/views/writePersistedView.js +42 -0
- package/dist/features/virtualization/computeRowOffsets.js +29 -0
- package/dist/features/virtualization/computeWindow.js +92 -0
- package/dist/features/virtualization/createScrollToRow.js +36 -0
- package/dist/features/virtualization/firstIndexAbove.js +30 -0
- package/dist/features/virtualization/getMeasureKey.js +23 -0
- package/dist/features/virtualization/isMeasuredColumn.js +20 -0
- package/dist/features/virtualization/isSameRange.js +18 -0
- package/dist/features/virtualization/positionedRowsFeature.js +22 -0
- package/dist/features/virtualization/scrollToCell.js +49 -0
- package/dist/features/virtualization/shiftRowOffsets.js +35 -0
- package/dist/features/virtualization/usePositionedRows.js +37 -0
- package/dist/features/virtualization/useRowOffsets.js +123 -0
- package/dist/features/virtualization/useScrollWindow.js +114 -0
- package/dist/features/virtualization/useTanstackRowWindow.js +43 -0
- package/dist/features/virtualization/useVirtualization.js +64 -0
- package/dist/features/virtualization/virtualizationFeature.js +24 -0
- package/dist/features/virtualization/writeScrollEdges.js +33 -0
- package/dist/features/visibility/initColumnVisibility.js +22 -0
- package/dist/features/visibility/visibilityFeature.js +31 -0
- package/dist/features/visibility/visibilityToViewColumn.js +20 -0
- package/dist/metas.js +16 -0
- package/dist/types.js +17 -0
- package/package.json +91 -0
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
# Copyright 2020-2026 Lowdefy, Inc
|
|
2
|
+
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
id: table-editing
|
|
16
|
+
type: Box
|
|
17
|
+
|
|
18
|
+
blocks:
|
|
19
|
+
# ============================================
|
|
20
|
+
# EVERY EDITOR TYPE (onCellEdit records the event)
|
|
21
|
+
# ============================================
|
|
22
|
+
|
|
23
|
+
- id: edit_types
|
|
24
|
+
type: Table
|
|
25
|
+
properties:
|
|
26
|
+
columns:
|
|
27
|
+
- key: name
|
|
28
|
+
editable: true
|
|
29
|
+
validate:
|
|
30
|
+
- pass: { op: notEmpty }
|
|
31
|
+
message: Name is required
|
|
32
|
+
- key: age
|
|
33
|
+
type: number
|
|
34
|
+
width: 100
|
|
35
|
+
editable: true
|
|
36
|
+
validate:
|
|
37
|
+
- pass: { op: gte, value: 0 }
|
|
38
|
+
message: Age must be positive
|
|
39
|
+
- key: joined
|
|
40
|
+
type: date
|
|
41
|
+
editable: true
|
|
42
|
+
- key: active
|
|
43
|
+
type: boolean
|
|
44
|
+
width: 100
|
|
45
|
+
editable: true
|
|
46
|
+
- key: stage
|
|
47
|
+
type: status
|
|
48
|
+
editable: true
|
|
49
|
+
options: [lead, won, lost]
|
|
50
|
+
- key: labels
|
|
51
|
+
type: tags
|
|
52
|
+
editable: true
|
|
53
|
+
options: [red, green, blue]
|
|
54
|
+
- key: score
|
|
55
|
+
type: rating
|
|
56
|
+
width: 140
|
|
57
|
+
editable: true
|
|
58
|
+
- key: city
|
|
59
|
+
editable:
|
|
60
|
+
when: { key: locked, op: isFalse }
|
|
61
|
+
- key: note
|
|
62
|
+
data:
|
|
63
|
+
- id: 1
|
|
64
|
+
name: Ann
|
|
65
|
+
age: 30
|
|
66
|
+
joined: '2026-03-01'
|
|
67
|
+
active: false
|
|
68
|
+
stage: lead
|
|
69
|
+
labels: [red]
|
|
70
|
+
score: 2
|
|
71
|
+
city: Berlin
|
|
72
|
+
note: read only
|
|
73
|
+
- id: 2
|
|
74
|
+
name: Ben
|
|
75
|
+
age: 40
|
|
76
|
+
joined: '2026-04-01'
|
|
77
|
+
active: true
|
|
78
|
+
stage: won
|
|
79
|
+
labels: []
|
|
80
|
+
score: 4
|
|
81
|
+
city: Austin
|
|
82
|
+
locked: true
|
|
83
|
+
note: read only
|
|
84
|
+
events:
|
|
85
|
+
onCellEdit:
|
|
86
|
+
- id: record_edit
|
|
87
|
+
type: SetState
|
|
88
|
+
params:
|
|
89
|
+
types_edit:
|
|
90
|
+
_event: true
|
|
91
|
+
onRowClick:
|
|
92
|
+
- id: record_row_click
|
|
93
|
+
type: SetState
|
|
94
|
+
params:
|
|
95
|
+
types_row_click:
|
|
96
|
+
_event: rowKey
|
|
97
|
+
|
|
98
|
+
- id: edit_types_value
|
|
99
|
+
type: Span
|
|
100
|
+
properties:
|
|
101
|
+
content:
|
|
102
|
+
_string.concat:
|
|
103
|
+
- 'edit='
|
|
104
|
+
- _json.stringify:
|
|
105
|
+
- rowKey:
|
|
106
|
+
_state: types_edit.rowKey
|
|
107
|
+
column:
|
|
108
|
+
_state: types_edit.column
|
|
109
|
+
value:
|
|
110
|
+
_state: types_edit.value
|
|
111
|
+
previous:
|
|
112
|
+
_state: types_edit.previous
|
|
113
|
+
- space: 0
|
|
114
|
+
- ' click='
|
|
115
|
+
- _if_none:
|
|
116
|
+
- _state: types_row_click
|
|
117
|
+
- none
|
|
118
|
+
|
|
119
|
+
# ============================================
|
|
120
|
+
# OPTIMISTIC SAVE: success (Wait) and failure (Throw)
|
|
121
|
+
# ============================================
|
|
122
|
+
|
|
123
|
+
- id: edit_save
|
|
124
|
+
type: Table
|
|
125
|
+
properties:
|
|
126
|
+
columns:
|
|
127
|
+
- key: name
|
|
128
|
+
editable: true
|
|
129
|
+
- key: city
|
|
130
|
+
data:
|
|
131
|
+
- id: 1
|
|
132
|
+
name: Ann
|
|
133
|
+
city: Berlin
|
|
134
|
+
- id: 2
|
|
135
|
+
name: Ben
|
|
136
|
+
city: Austin
|
|
137
|
+
events:
|
|
138
|
+
onCellEdit:
|
|
139
|
+
- id: save_wait
|
|
140
|
+
type: Wait
|
|
141
|
+
params:
|
|
142
|
+
ms: 800
|
|
143
|
+
- id: save_done
|
|
144
|
+
type: SetState
|
|
145
|
+
params:
|
|
146
|
+
save_done:
|
|
147
|
+
_event: value
|
|
148
|
+
|
|
149
|
+
- id: edit_save_value
|
|
150
|
+
type: Span
|
|
151
|
+
properties:
|
|
152
|
+
content:
|
|
153
|
+
_string.concat:
|
|
154
|
+
- 'saved='
|
|
155
|
+
- _if_none:
|
|
156
|
+
- _state: save_done
|
|
157
|
+
- none
|
|
158
|
+
|
|
159
|
+
- id: edit_fail
|
|
160
|
+
type: Table
|
|
161
|
+
properties:
|
|
162
|
+
columns:
|
|
163
|
+
- key: name
|
|
164
|
+
editable: true
|
|
165
|
+
- key: city
|
|
166
|
+
data:
|
|
167
|
+
- id: 1
|
|
168
|
+
name: Ann
|
|
169
|
+
city: Berlin
|
|
170
|
+
- id: 2
|
|
171
|
+
name: Ben
|
|
172
|
+
city: Austin
|
|
173
|
+
events:
|
|
174
|
+
onCellEdit:
|
|
175
|
+
- id: fail_wait
|
|
176
|
+
type: Wait
|
|
177
|
+
params:
|
|
178
|
+
ms: 400
|
|
179
|
+
- id: fail_throw
|
|
180
|
+
type: Throw
|
|
181
|
+
params:
|
|
182
|
+
throw: true
|
|
183
|
+
message: Deal is locked
|
|
184
|
+
|
|
185
|
+
# The app saves by writing the data: the overlay gives way to the new data row.
|
|
186
|
+
- id: edit_data
|
|
187
|
+
type: Table
|
|
188
|
+
properties:
|
|
189
|
+
columns:
|
|
190
|
+
- key: name
|
|
191
|
+
editable: true
|
|
192
|
+
data:
|
|
193
|
+
_if_none:
|
|
194
|
+
- _state: data_rows
|
|
195
|
+
- - id: 1
|
|
196
|
+
name: Ann
|
|
197
|
+
- id: 2
|
|
198
|
+
name: Ben
|
|
199
|
+
events:
|
|
200
|
+
onCellEdit:
|
|
201
|
+
- id: write_data
|
|
202
|
+
type: SetState
|
|
203
|
+
params:
|
|
204
|
+
data_rows:
|
|
205
|
+
- id: 1
|
|
206
|
+
name: Written by the app
|
|
207
|
+
- id: 2
|
|
208
|
+
name: Ben
|
|
209
|
+
|
|
210
|
+
- id: edit_unrelated
|
|
211
|
+
type: Table
|
|
212
|
+
properties:
|
|
213
|
+
columns:
|
|
214
|
+
- key: name
|
|
215
|
+
editable: true
|
|
216
|
+
data:
|
|
217
|
+
_if_none:
|
|
218
|
+
- _state: unrelated_rows
|
|
219
|
+
- - id: 1
|
|
220
|
+
name: Ann
|
|
221
|
+
- id: 2
|
|
222
|
+
name: Ben
|
|
223
|
+
events:
|
|
224
|
+
onCellEdit:
|
|
225
|
+
- id: unrelated_wait
|
|
226
|
+
type: Wait
|
|
227
|
+
params:
|
|
228
|
+
ms: 800
|
|
229
|
+
|
|
230
|
+
- id: edit_unrelated_touch
|
|
231
|
+
type: Button
|
|
232
|
+
properties:
|
|
233
|
+
title: Change another row
|
|
234
|
+
events:
|
|
235
|
+
onClick:
|
|
236
|
+
- id: unrelated_write
|
|
237
|
+
type: SetState
|
|
238
|
+
params:
|
|
239
|
+
unrelated_rows:
|
|
240
|
+
- id: 1
|
|
241
|
+
name: Ann
|
|
242
|
+
- id: 2
|
|
243
|
+
name: Ben changed
|
|
244
|
+
|
|
245
|
+
- id: edit_local
|
|
246
|
+
type: Table
|
|
247
|
+
properties:
|
|
248
|
+
columns:
|
|
249
|
+
- key: name
|
|
250
|
+
editable: true
|
|
251
|
+
data:
|
|
252
|
+
- id: 1
|
|
253
|
+
name: Ann
|
|
254
|
+
|
|
255
|
+
- id: copy_nokeys
|
|
256
|
+
type: Table
|
|
257
|
+
properties:
|
|
258
|
+
keyboard: false
|
|
259
|
+
columns:
|
|
260
|
+
- key: name
|
|
261
|
+
- key: age
|
|
262
|
+
type: number
|
|
263
|
+
data:
|
|
264
|
+
- id: 1
|
|
265
|
+
name: Ann
|
|
266
|
+
age: 30
|
|
267
|
+
|
|
268
|
+
# ============================================
|
|
269
|
+
# SORTED: edits go to the row by key
|
|
270
|
+
# ============================================
|
|
271
|
+
|
|
272
|
+
- id: edit_sorted
|
|
273
|
+
type: Table
|
|
274
|
+
properties:
|
|
275
|
+
defaultView:
|
|
276
|
+
sort:
|
|
277
|
+
- key: name
|
|
278
|
+
desc: true
|
|
279
|
+
columns:
|
|
280
|
+
- key: name
|
|
281
|
+
editable: true
|
|
282
|
+
- key: age
|
|
283
|
+
type: number
|
|
284
|
+
editable: true
|
|
285
|
+
data:
|
|
286
|
+
- id: a
|
|
287
|
+
name: Ann
|
|
288
|
+
age: 30
|
|
289
|
+
- id: b
|
|
290
|
+
name: Ben
|
|
291
|
+
age: 40
|
|
292
|
+
- id: c
|
|
293
|
+
name: Cat
|
|
294
|
+
age: 50
|
|
295
|
+
events:
|
|
296
|
+
onCellEdit:
|
|
297
|
+
- id: record_sorted_edit
|
|
298
|
+
type: SetState
|
|
299
|
+
params:
|
|
300
|
+
sorted_edit:
|
|
301
|
+
rowKey:
|
|
302
|
+
_event: rowKey
|
|
303
|
+
value:
|
|
304
|
+
_event: value
|
|
305
|
+
row:
|
|
306
|
+
_event: row.name
|
|
307
|
+
|
|
308
|
+
- id: edit_sorted_value
|
|
309
|
+
type: Span
|
|
310
|
+
properties:
|
|
311
|
+
content:
|
|
312
|
+
_string.concat:
|
|
313
|
+
- 'sorted='
|
|
314
|
+
- _json.stringify:
|
|
315
|
+
- _state: sorted_edit
|
|
316
|
+
- space: 0
|
|
317
|
+
|
|
318
|
+
# ============================================
|
|
319
|
+
# COPY: selected rows as TSV
|
|
320
|
+
# ============================================
|
|
321
|
+
|
|
322
|
+
- id: edit_copy
|
|
323
|
+
type: Table
|
|
324
|
+
properties:
|
|
325
|
+
rowSelection:
|
|
326
|
+
type: checkbox
|
|
327
|
+
columns:
|
|
328
|
+
- key: name
|
|
329
|
+
- key: age
|
|
330
|
+
type: number
|
|
331
|
+
data:
|
|
332
|
+
- id: 1
|
|
333
|
+
name: Ann
|
|
334
|
+
age: 30
|
|
335
|
+
- id: 2
|
|
336
|
+
name: Ben
|
|
337
|
+
age: 40
|
|
338
|
+
- id: 3
|
|
339
|
+
name: Cat
|
|
340
|
+
age: 50
|
|
341
|
+
|
|
342
|
+
# ============================================
|
|
343
|
+
# ROW MOVES: onRowMove success (Wait) and failure (Throw)
|
|
344
|
+
# ============================================
|
|
345
|
+
|
|
346
|
+
- id: move_positions
|
|
347
|
+
type: Table
|
|
348
|
+
properties:
|
|
349
|
+
rowDrag:
|
|
350
|
+
positionField: position
|
|
351
|
+
columns:
|
|
352
|
+
- key: title
|
|
353
|
+
- key: position
|
|
354
|
+
type: number
|
|
355
|
+
data:
|
|
356
|
+
- id: s1
|
|
357
|
+
title: Plan
|
|
358
|
+
position: 1024
|
|
359
|
+
- id: s2
|
|
360
|
+
title: Build
|
|
361
|
+
position: 2048
|
|
362
|
+
- id: s3
|
|
363
|
+
title: Ship
|
|
364
|
+
position: 3072
|
|
365
|
+
events:
|
|
366
|
+
onRowMove:
|
|
367
|
+
- id: move_wait
|
|
368
|
+
type: Wait
|
|
369
|
+
params:
|
|
370
|
+
ms: 600
|
|
371
|
+
- id: move_record
|
|
372
|
+
type: SetState
|
|
373
|
+
params:
|
|
374
|
+
move_event:
|
|
375
|
+
rowKey:
|
|
376
|
+
_event: rowKey
|
|
377
|
+
fromIndex:
|
|
378
|
+
_event: fromIndex
|
|
379
|
+
toIndex:
|
|
380
|
+
_event: toIndex
|
|
381
|
+
beforeKey:
|
|
382
|
+
_event: beforeKey
|
|
383
|
+
afterKey:
|
|
384
|
+
_event: afterKey
|
|
385
|
+
position:
|
|
386
|
+
_event: position
|
|
387
|
+
positions:
|
|
388
|
+
_event: positions
|
|
389
|
+
|
|
390
|
+
- id: move_positions_value
|
|
391
|
+
type: Span
|
|
392
|
+
properties:
|
|
393
|
+
content:
|
|
394
|
+
_string.concat:
|
|
395
|
+
- 'move='
|
|
396
|
+
- _json.stringify:
|
|
397
|
+
- _state: move_event
|
|
398
|
+
- space: 0
|
|
399
|
+
|
|
400
|
+
- id: move_paged
|
|
401
|
+
type: Table
|
|
402
|
+
properties:
|
|
403
|
+
pagination: true
|
|
404
|
+
pageSize: 2
|
|
405
|
+
rowDrag:
|
|
406
|
+
positionField: position
|
|
407
|
+
columns:
|
|
408
|
+
- key: title
|
|
409
|
+
- key: position
|
|
410
|
+
type: number
|
|
411
|
+
data:
|
|
412
|
+
- id: s1
|
|
413
|
+
title: Plan
|
|
414
|
+
position: 1024
|
|
415
|
+
- id: s2
|
|
416
|
+
title: Build
|
|
417
|
+
position: 2048
|
|
418
|
+
- id: s3
|
|
419
|
+
title: Test
|
|
420
|
+
position: 3072
|
|
421
|
+
- id: s4
|
|
422
|
+
title: Ship
|
|
423
|
+
position: 4096
|
|
424
|
+
- id: s5
|
|
425
|
+
title: Launch
|
|
426
|
+
position: 5120
|
|
427
|
+
events:
|
|
428
|
+
onRowMove:
|
|
429
|
+
- id: move_paged_record
|
|
430
|
+
type: SetState
|
|
431
|
+
params:
|
|
432
|
+
move_paged_event:
|
|
433
|
+
rowKey:
|
|
434
|
+
_event: rowKey
|
|
435
|
+
fromIndex:
|
|
436
|
+
_event: fromIndex
|
|
437
|
+
toIndex:
|
|
438
|
+
_event: toIndex
|
|
439
|
+
beforeKey:
|
|
440
|
+
_event: beforeKey
|
|
441
|
+
afterKey:
|
|
442
|
+
_event: afterKey
|
|
443
|
+
position:
|
|
444
|
+
_event: position
|
|
445
|
+
positions:
|
|
446
|
+
_event: positions
|
|
447
|
+
|
|
448
|
+
- id: move_paged_value
|
|
449
|
+
type: Span
|
|
450
|
+
properties:
|
|
451
|
+
content:
|
|
452
|
+
_string.concat:
|
|
453
|
+
- 'move='
|
|
454
|
+
- _json.stringify:
|
|
455
|
+
- _state: move_paged_event
|
|
456
|
+
- space: 0
|
|
457
|
+
|
|
458
|
+
- id: move_fail
|
|
459
|
+
type: Table
|
|
460
|
+
properties:
|
|
461
|
+
rowDrag: true
|
|
462
|
+
columns:
|
|
463
|
+
- key: title
|
|
464
|
+
data:
|
|
465
|
+
- id: s1
|
|
466
|
+
title: Plan
|
|
467
|
+
- id: s2
|
|
468
|
+
title: Build
|
|
469
|
+
- id: s3
|
|
470
|
+
title: Ship
|
|
471
|
+
events:
|
|
472
|
+
onRowMove:
|
|
473
|
+
- id: move_fail_wait
|
|
474
|
+
type: Wait
|
|
475
|
+
params:
|
|
476
|
+
ms: 300
|
|
477
|
+
- id: move_fail_throw
|
|
478
|
+
type: Throw
|
|
479
|
+
params:
|
|
480
|
+
throw: true
|
|
481
|
+
message: Order is locked
|
|
482
|
+
|
|
483
|
+
- id: move_sorted
|
|
484
|
+
type: Table
|
|
485
|
+
properties:
|
|
486
|
+
rowDrag:
|
|
487
|
+
positionField: position
|
|
488
|
+
defaultView:
|
|
489
|
+
sort:
|
|
490
|
+
- key: title
|
|
491
|
+
columns:
|
|
492
|
+
- key: title
|
|
493
|
+
- key: position
|
|
494
|
+
type: number
|
|
495
|
+
data:
|
|
496
|
+
- id: s1
|
|
497
|
+
title: Plan
|
|
498
|
+
position: 1024
|
|
499
|
+
- id: s2
|
|
500
|
+
title: Build
|
|
501
|
+
position: 2048
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Copyright 2020-2026 Lowdefy, Inc
|
|
2
|
+
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
id: table-expandable
|
|
16
|
+
type: Box
|
|
17
|
+
|
|
18
|
+
blocks:
|
|
19
|
+
- id: table_expandable
|
|
20
|
+
type: Table
|
|
21
|
+
properties:
|
|
22
|
+
expandable:
|
|
23
|
+
template: |
|
|
24
|
+
<div class="detail">
|
|
25
|
+
<strong>{{ row.name }}</strong> <span class="notes">{{ row.notes }}</span>
|
|
26
|
+
</div>
|
|
27
|
+
rowExpandable:
|
|
28
|
+
when:
|
|
29
|
+
key: notes
|
|
30
|
+
op: notEmpty
|
|
31
|
+
columns:
|
|
32
|
+
- key: name
|
|
33
|
+
width: 200
|
|
34
|
+
- key: city
|
|
35
|
+
data:
|
|
36
|
+
- id: 1
|
|
37
|
+
name: Ada
|
|
38
|
+
city: London
|
|
39
|
+
notes: Wrote the first program.
|
|
40
|
+
- id: 2
|
|
41
|
+
name: Grace
|
|
42
|
+
city: New York
|
|
43
|
+
notes: <b>Not bold</b>
|
|
44
|
+
- id: 3
|
|
45
|
+
name: Linus
|
|
46
|
+
city: Helsinki
|
|
47
|
+
events:
|
|
48
|
+
onRowExpand:
|
|
49
|
+
- id: set_expandable_event
|
|
50
|
+
type: SetState
|
|
51
|
+
params:
|
|
52
|
+
expandable_event:
|
|
53
|
+
_json.stringify:
|
|
54
|
+
- - _event: rowKey
|
|
55
|
+
- _event: expanded
|
|
56
|
+
- space: 0
|
|
57
|
+
|
|
58
|
+
- id: expandable_value
|
|
59
|
+
type: Span
|
|
60
|
+
properties:
|
|
61
|
+
content:
|
|
62
|
+
_string.concat:
|
|
63
|
+
- 'expanded='
|
|
64
|
+
- _json.stringify:
|
|
65
|
+
- _state: table_expandable.expanded
|
|
66
|
+
- space: 0
|
|
67
|
+
- ' event='
|
|
68
|
+
- _if_none:
|
|
69
|
+
- _state: expandable_event
|
|
70
|
+
- none
|
|
71
|
+
|
|
72
|
+
- id: table_expandable_virtual
|
|
73
|
+
type: Table
|
|
74
|
+
properties:
|
|
75
|
+
height: 400
|
|
76
|
+
expandable:
|
|
77
|
+
template: |
|
|
78
|
+
<div class="tall" style="height: 300px">Details of {{ row.name }}</div>
|
|
79
|
+
columns:
|
|
80
|
+
- key: id
|
|
81
|
+
type: number
|
|
82
|
+
- key: name
|
|
83
|
+
data:
|
|
84
|
+
_js: |
|
|
85
|
+
const rows = new Array(1000);
|
|
86
|
+
for (let i = 0; i < rows.length; i++) rows[i] = { id: i, name: 'Row ' + i };
|
|
87
|
+
return rows;
|