@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,144 @@
|
|
|
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
|
+
# One TableLight config, rendered by TableParity.e2e.yaml under both `type: TableLight` and
|
|
16
|
+
# `type: Table`: every key here is valid on both blocks with the same meaning.
|
|
17
|
+
user:
|
|
18
|
+
role: admin
|
|
19
|
+
rowRules:
|
|
20
|
+
- when: { key: overdue, op: isTrue }
|
|
21
|
+
className: parity-overdue
|
|
22
|
+
columns:
|
|
23
|
+
- name
|
|
24
|
+
- key: amount
|
|
25
|
+
type: currency
|
|
26
|
+
cell: { currency: EUR, locale: en-US }
|
|
27
|
+
aggregate: sum
|
|
28
|
+
- title: Rates
|
|
29
|
+
children:
|
|
30
|
+
- { key: rate, type: percent, cell: { locale: en-US } }
|
|
31
|
+
- key: score
|
|
32
|
+
type: number
|
|
33
|
+
cell: { locale: en-US, decimals: 1 }
|
|
34
|
+
aggregate: avg
|
|
35
|
+
rules:
|
|
36
|
+
- when: { op: lt, value: 5 }
|
|
37
|
+
className: parity-low
|
|
38
|
+
- { key: created, type: date }
|
|
39
|
+
- { key: active, type: boolean, cell: { trueLabel: Active, falseLabel: Idle } }
|
|
40
|
+
- key: stage
|
|
41
|
+
type: tag
|
|
42
|
+
options:
|
|
43
|
+
- { value: lead, label: Lead }
|
|
44
|
+
- { value: won, label: Won, color: success }
|
|
45
|
+
- { key: labels, type: tags, cell: { max: 2 } }
|
|
46
|
+
- key: state
|
|
47
|
+
type: status
|
|
48
|
+
options:
|
|
49
|
+
open: { label: Open, color: processing }
|
|
50
|
+
closed: { label: Closed, color: error }
|
|
51
|
+
- { key: owner, type: avatar }
|
|
52
|
+
- { key: team, type: people }
|
|
53
|
+
- { key: profile, type: link, cell: { pageId: table-link-target, urlQuery: { id: _id } } }
|
|
54
|
+
- { key: email, type: email }
|
|
55
|
+
- { key: site, type: url }
|
|
56
|
+
- { key: progress, type: progress }
|
|
57
|
+
- { key: stars, type: rating }
|
|
58
|
+
- key: bio
|
|
59
|
+
type: html
|
|
60
|
+
cell:
|
|
61
|
+
template: '<b>{{ value }}</b> in {{ row.city }}'
|
|
62
|
+
- { key: meta, type: json }
|
|
63
|
+
- key: note
|
|
64
|
+
tooltip: '{{ row.name }}: {{ value }}'
|
|
65
|
+
- key: actions
|
|
66
|
+
type: buttons
|
|
67
|
+
cell:
|
|
68
|
+
buttons:
|
|
69
|
+
- eventName: onEdit
|
|
70
|
+
title: Edit
|
|
71
|
+
- eventName: onPromote
|
|
72
|
+
title: Promote
|
|
73
|
+
hidden:
|
|
74
|
+
when: { key: role, op: ne, value: { $user: role } }
|
|
75
|
+
data:
|
|
76
|
+
- _id: a
|
|
77
|
+
name: Alice
|
|
78
|
+
amount: 1200.5
|
|
79
|
+
rate: 0.125
|
|
80
|
+
score: 8.25
|
|
81
|
+
created: '2026-03-01'
|
|
82
|
+
active: true
|
|
83
|
+
stage: won
|
|
84
|
+
labels: [red, green, blue]
|
|
85
|
+
state: open
|
|
86
|
+
owner: Alice Adams
|
|
87
|
+
team: [{ name: Ann Lee }, { name: Bo Kim }]
|
|
88
|
+
profile: Alice profile
|
|
89
|
+
email: alice@example.com
|
|
90
|
+
site: example.com
|
|
91
|
+
progress: 40
|
|
92
|
+
stars: 4
|
|
93
|
+
bio: Engineer
|
|
94
|
+
city: Paarl
|
|
95
|
+
meta: { a: 1 }
|
|
96
|
+
note: First
|
|
97
|
+
role: admin
|
|
98
|
+
overdue: true
|
|
99
|
+
- _id: b
|
|
100
|
+
name: bob
|
|
101
|
+
amount: 99
|
|
102
|
+
rate: 0.5
|
|
103
|
+
score: 3
|
|
104
|
+
created: '2025-12-31'
|
|
105
|
+
active: false
|
|
106
|
+
stage: lead
|
|
107
|
+
labels: [green]
|
|
108
|
+
state: closed
|
|
109
|
+
owner: Bob Brown
|
|
110
|
+
team: [{ name: Cy Dunn }]
|
|
111
|
+
profile: Bob profile
|
|
112
|
+
email: bob@example.com
|
|
113
|
+
site: https://example.org/path
|
|
114
|
+
progress: 100
|
|
115
|
+
stars: 2
|
|
116
|
+
bio: Designer
|
|
117
|
+
city: Durban
|
|
118
|
+
meta: [1, 2]
|
|
119
|
+
note: Second
|
|
120
|
+
role: viewer
|
|
121
|
+
overdue: false
|
|
122
|
+
- _id: c
|
|
123
|
+
name: Charlie
|
|
124
|
+
amount: null
|
|
125
|
+
rate: null
|
|
126
|
+
score: null
|
|
127
|
+
created: null
|
|
128
|
+
active: null
|
|
129
|
+
stage: unknown
|
|
130
|
+
labels: []
|
|
131
|
+
state: null
|
|
132
|
+
owner: null
|
|
133
|
+
team: []
|
|
134
|
+
profile: null
|
|
135
|
+
email: null
|
|
136
|
+
site: null
|
|
137
|
+
progress: null
|
|
138
|
+
stars: null
|
|
139
|
+
bio: null
|
|
140
|
+
city: Cape Town
|
|
141
|
+
meta: null
|
|
142
|
+
note: null
|
|
143
|
+
role: admin
|
|
144
|
+
overdue: false
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
# Rows shared by the Table e2e tables.
|
|
16
|
+
- id: 1
|
|
17
|
+
name: Charlie
|
|
18
|
+
team: Blue
|
|
19
|
+
age: 35
|
|
20
|
+
city: Cape Town
|
|
21
|
+
- id: 2
|
|
22
|
+
name: alice
|
|
23
|
+
team: Red
|
|
24
|
+
age: 30
|
|
25
|
+
city: Berlin
|
|
26
|
+
- id: 3
|
|
27
|
+
name: Bob
|
|
28
|
+
team: Blue
|
|
29
|
+
age: 25
|
|
30
|
+
city: Austin
|
|
31
|
+
- id: 4
|
|
32
|
+
name: Dana
|
|
33
|
+
team: Red
|
|
34
|
+
age: 41
|
|
35
|
+
city: Durban
|
|
36
|
+
- id: 5
|
|
37
|
+
name: Eve
|
|
38
|
+
team: Blue
|
|
39
|
+
age: 30
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
# Columns shared by the Table e2e tables.
|
|
16
|
+
- key: name
|
|
17
|
+
title: Name
|
|
18
|
+
- key: team
|
|
19
|
+
- key: age
|
|
20
|
+
type: number
|
|
21
|
+
width: 100
|
|
22
|
+
- key: city
|
|
@@ -0,0 +1,372 @@
|
|
|
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
|
+
# Visual checks (polish.e2e.spec.js): summary footer fitting, group row backgrounds, slot layout,
|
|
16
|
+
# header alignment, tag and avatar fitting, row separators, the column manager, pinned edges,
|
|
17
|
+
# stacked sticky groups, the select editor and the toolbar counts.
|
|
18
|
+
id: polish
|
|
19
|
+
type: Box
|
|
20
|
+
|
|
21
|
+
blocks:
|
|
22
|
+
# ============================================
|
|
23
|
+
# CRM LIST: toolbar, slots, pinned columns, rich cells, summary footer
|
|
24
|
+
# ============================================
|
|
25
|
+
|
|
26
|
+
- id: crm
|
|
27
|
+
type: Table
|
|
28
|
+
properties:
|
|
29
|
+
maxHeight: 420
|
|
30
|
+
rowSelection:
|
|
31
|
+
type: checkbox
|
|
32
|
+
toolbar:
|
|
33
|
+
search: true
|
|
34
|
+
filter: true
|
|
35
|
+
sort: true
|
|
36
|
+
group: true
|
|
37
|
+
columns: true
|
|
38
|
+
defaultView:
|
|
39
|
+
sort:
|
|
40
|
+
- key: amount
|
|
41
|
+
desc: true
|
|
42
|
+
filter:
|
|
43
|
+
and:
|
|
44
|
+
- key: amount
|
|
45
|
+
op: gt
|
|
46
|
+
value: 0
|
|
47
|
+
- key: name
|
|
48
|
+
op: notEmpty
|
|
49
|
+
columns:
|
|
50
|
+
- key: company
|
|
51
|
+
hidden: true
|
|
52
|
+
- key: region
|
|
53
|
+
hidden: true
|
|
54
|
+
- key: email
|
|
55
|
+
hidden: true
|
|
56
|
+
columns:
|
|
57
|
+
- key: name
|
|
58
|
+
title: Deal
|
|
59
|
+
width: 180
|
|
60
|
+
pinned: start
|
|
61
|
+
- key: stage
|
|
62
|
+
type: status
|
|
63
|
+
width: 130
|
|
64
|
+
editable: true
|
|
65
|
+
options:
|
|
66
|
+
lead: Lead
|
|
67
|
+
qualified:
|
|
68
|
+
label: Qualified
|
|
69
|
+
color: processing
|
|
70
|
+
won:
|
|
71
|
+
label: Won
|
|
72
|
+
color: success
|
|
73
|
+
lost:
|
|
74
|
+
label: Lost
|
|
75
|
+
color: error
|
|
76
|
+
- key: labels
|
|
77
|
+
title: Tags
|
|
78
|
+
type: tags
|
|
79
|
+
width: 150
|
|
80
|
+
editable: true
|
|
81
|
+
options:
|
|
82
|
+
- value: renewal
|
|
83
|
+
label: Renewal
|
|
84
|
+
color: blue
|
|
85
|
+
- value: strategic
|
|
86
|
+
label: Strategic
|
|
87
|
+
color: purple
|
|
88
|
+
- value: at-risk
|
|
89
|
+
label: At risk
|
|
90
|
+
color: red
|
|
91
|
+
- value: inbound
|
|
92
|
+
label: Inbound
|
|
93
|
+
color: green
|
|
94
|
+
- key: contacts
|
|
95
|
+
type: people
|
|
96
|
+
width: 120
|
|
97
|
+
- key: owner
|
|
98
|
+
type: people
|
|
99
|
+
width: 150
|
|
100
|
+
- key: amount
|
|
101
|
+
type: currency
|
|
102
|
+
width: 110
|
|
103
|
+
aggregate: sum
|
|
104
|
+
cell:
|
|
105
|
+
currency: USD
|
|
106
|
+
decimals: 0
|
|
107
|
+
- key: win
|
|
108
|
+
title: Win chance
|
|
109
|
+
type: number
|
|
110
|
+
width: 110
|
|
111
|
+
- key: company
|
|
112
|
+
- key: region
|
|
113
|
+
- key: email
|
|
114
|
+
type: email
|
|
115
|
+
- key: actions
|
|
116
|
+
title: ''
|
|
117
|
+
type: buttons
|
|
118
|
+
width: 110
|
|
119
|
+
pinned: end
|
|
120
|
+
cell:
|
|
121
|
+
showOn: hover
|
|
122
|
+
buttons:
|
|
123
|
+
- eventName: onMail
|
|
124
|
+
title: Mail
|
|
125
|
+
- eventName: onCall
|
|
126
|
+
title: Call
|
|
127
|
+
data:
|
|
128
|
+
_js: |
|
|
129
|
+
const names = ['Brightwater Analytics pilot', 'Marigold Hospitality multi-year renewal', 'Kestrel Aerospace fleet rollout', 'Wren & Finch Books analytics add-on', 'Stonebridge Legal seat upgrade'];
|
|
130
|
+
const people = ['Ada Tran', 'Theo Lindqvist', 'Priya Raman', 'Maya Okafor', 'Ingrid Olsen', 'Samuel Adeyemi'];
|
|
131
|
+
const stages = ['lead', 'qualified', 'won', 'lost'];
|
|
132
|
+
const labels = [['inbound', 'at-risk', 'strategic'], ['at-risk'], ['renewal', 'strategic'], ['inbound', 'renewal', 'strategic', 'at-risk'], []];
|
|
133
|
+
const rows = [];
|
|
134
|
+
for (let i = 0; i < 60; i++) {
|
|
135
|
+
rows.push({
|
|
136
|
+
id: i + 1,
|
|
137
|
+
name: names[i % names.length] + ' ' + (i + 1),
|
|
138
|
+
stage: stages[i % 4],
|
|
139
|
+
labels: labels[i % labels.length],
|
|
140
|
+
contacts: i % 3 === 0 ? [people[(i + 1) % 6]] : [people[i % 6], people[(i + 2) % 6], people[(i + 3) % 6], people[(i + 4) % 6]].slice(0, 2 + (i % 3)),
|
|
141
|
+
owner: people[i % 6],
|
|
142
|
+
amount: 900000 + i * 13579,
|
|
143
|
+
win: (i * 7) % 100,
|
|
144
|
+
company: 'Company ' + i,
|
|
145
|
+
region: i % 2 === 0 ? 'EMEA' : 'APAC',
|
|
146
|
+
email: 'deal' + i + '@example.com',
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
return rows;
|
|
150
|
+
slots:
|
|
151
|
+
toolbarStart:
|
|
152
|
+
blocks:
|
|
153
|
+
- id: crm_new
|
|
154
|
+
type: Button
|
|
155
|
+
properties:
|
|
156
|
+
title: New deal
|
|
157
|
+
size: small
|
|
158
|
+
- id: crm_import
|
|
159
|
+
type: Button
|
|
160
|
+
properties:
|
|
161
|
+
title: Import
|
|
162
|
+
size: small
|
|
163
|
+
toolbarEnd:
|
|
164
|
+
blocks:
|
|
165
|
+
- id: crm_end_a
|
|
166
|
+
type: Button
|
|
167
|
+
properties:
|
|
168
|
+
title: Share
|
|
169
|
+
size: small
|
|
170
|
+
- id: crm_end_b
|
|
171
|
+
type: Button
|
|
172
|
+
properties:
|
|
173
|
+
title: Help
|
|
174
|
+
size: small
|
|
175
|
+
bulkActions:
|
|
176
|
+
blocks:
|
|
177
|
+
- id: crm_assign
|
|
178
|
+
type: Button
|
|
179
|
+
properties:
|
|
180
|
+
title: Assign owner
|
|
181
|
+
size: small
|
|
182
|
+
- id: crm_move
|
|
183
|
+
type: Button
|
|
184
|
+
properties:
|
|
185
|
+
title: Move stage
|
|
186
|
+
size: small
|
|
187
|
+
- id: crm_delete
|
|
188
|
+
type: Button
|
|
189
|
+
properties:
|
|
190
|
+
title: Delete
|
|
191
|
+
size: small
|
|
192
|
+
danger: true
|
|
193
|
+
events:
|
|
194
|
+
onCellEdit:
|
|
195
|
+
- id: crm_edit
|
|
196
|
+
type: SetState
|
|
197
|
+
params:
|
|
198
|
+
crm_edit:
|
|
199
|
+
_event: value
|
|
200
|
+
|
|
201
|
+
# ============================================
|
|
202
|
+
# NARROW COLUMNS: the table is wider than its columns
|
|
203
|
+
# ============================================
|
|
204
|
+
|
|
205
|
+
- id: narrow
|
|
206
|
+
type: Table
|
|
207
|
+
properties:
|
|
208
|
+
columns:
|
|
209
|
+
- key: name
|
|
210
|
+
width: 120
|
|
211
|
+
- key: amount
|
|
212
|
+
type: number
|
|
213
|
+
width: 100
|
|
214
|
+
aggregate: sum
|
|
215
|
+
- key: big
|
|
216
|
+
type: number
|
|
217
|
+
width: 70
|
|
218
|
+
aggregate: sum
|
|
219
|
+
- key: rate
|
|
220
|
+
type: number
|
|
221
|
+
width: 70
|
|
222
|
+
aggregate: avg
|
|
223
|
+
- key: more
|
|
224
|
+
title: ''
|
|
225
|
+
type: menu
|
|
226
|
+
width: 48
|
|
227
|
+
cell:
|
|
228
|
+
items:
|
|
229
|
+
- eventName: onSnooze
|
|
230
|
+
title: Snooze
|
|
231
|
+
- key: actions
|
|
232
|
+
title: ''
|
|
233
|
+
type: buttons
|
|
234
|
+
width: 90
|
|
235
|
+
pinned: end
|
|
236
|
+
cell:
|
|
237
|
+
buttons:
|
|
238
|
+
- eventName: onOpen
|
|
239
|
+
title: Open
|
|
240
|
+
data:
|
|
241
|
+
- { id: 1, name: Acme, amount: 100, big: 1000000000, rate: 10 }
|
|
242
|
+
- { id: 2, name: Bolt, amount: 200, big: 2000000000, rate: 42 }
|
|
243
|
+
- { id: 3, name: Core, amount: 300, big: 3000000000, rate: 71 }
|
|
244
|
+
|
|
245
|
+
# ============================================
|
|
246
|
+
# TWO GROUP LEVELS
|
|
247
|
+
# ============================================
|
|
248
|
+
|
|
249
|
+
- id: grouped
|
|
250
|
+
type: Table
|
|
251
|
+
properties:
|
|
252
|
+
maxHeight: 300
|
|
253
|
+
columns:
|
|
254
|
+
- key: name
|
|
255
|
+
- key: region
|
|
256
|
+
groupable: true
|
|
257
|
+
- key: rep
|
|
258
|
+
groupable: true
|
|
259
|
+
- key: amount
|
|
260
|
+
type: number
|
|
261
|
+
aggregate: sum
|
|
262
|
+
defaultView:
|
|
263
|
+
group:
|
|
264
|
+
- key: region
|
|
265
|
+
- key: rep
|
|
266
|
+
data:
|
|
267
|
+
_js: |
|
|
268
|
+
const regions = ['EMEA', 'APAC'];
|
|
269
|
+
const reps = ['Ada', 'Ken', 'Grace'];
|
|
270
|
+
const rows = [];
|
|
271
|
+
for (let i = 0; i < 60; i++) {
|
|
272
|
+
rows.push({ id: i + 1, name: 'Deal ' + (i + 1), region: regions[Math.floor(i / 30)], rep: reps[Math.floor(i / 10) % 3], amount: 100 * (i + 1) });
|
|
273
|
+
}
|
|
274
|
+
return rows;
|
|
275
|
+
|
|
276
|
+
# ============================================
|
|
277
|
+
# TABLELIGHT AND TABLE WITH ONE CONFIG
|
|
278
|
+
# ============================================
|
|
279
|
+
|
|
280
|
+
- id: light
|
|
281
|
+
type: TableLight
|
|
282
|
+
properties:
|
|
283
|
+
columns:
|
|
284
|
+
- key: invoice
|
|
285
|
+
type: link
|
|
286
|
+
cell:
|
|
287
|
+
pageId: polish
|
|
288
|
+
- key: customer
|
|
289
|
+
type: avatar
|
|
290
|
+
- key: status
|
|
291
|
+
type: tag
|
|
292
|
+
- key: note
|
|
293
|
+
- key: amount
|
|
294
|
+
type: number
|
|
295
|
+
aggregate: sum
|
|
296
|
+
- key: due
|
|
297
|
+
type: date
|
|
298
|
+
data:
|
|
299
|
+
- {
|
|
300
|
+
id: 1,
|
|
301
|
+
invoice: INV-2041,
|
|
302
|
+
customer: Halcyon Freight,
|
|
303
|
+
status: Paid,
|
|
304
|
+
note: Net 30,
|
|
305
|
+
amount: 12480,
|
|
306
|
+
due: '2026-09-12',
|
|
307
|
+
}
|
|
308
|
+
- {
|
|
309
|
+
id: 2,
|
|
310
|
+
invoice: INV-2042,
|
|
311
|
+
customer: Tessellate Labs,
|
|
312
|
+
status: Overdue,
|
|
313
|
+
note: Net 30,
|
|
314
|
+
amount: 4350,
|
|
315
|
+
due: '2026-09-18',
|
|
316
|
+
}
|
|
317
|
+
- {
|
|
318
|
+
id: 3,
|
|
319
|
+
invoice: INV-2043,
|
|
320
|
+
customer: Copperleaf Health,
|
|
321
|
+
status: Due,
|
|
322
|
+
note: Net 60,
|
|
323
|
+
amount: 8920,
|
|
324
|
+
due: '2026-10-06',
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
- id: light_table
|
|
328
|
+
type: Table
|
|
329
|
+
properties:
|
|
330
|
+
columns:
|
|
331
|
+
- key: invoice
|
|
332
|
+
type: link
|
|
333
|
+
cell:
|
|
334
|
+
pageId: polish
|
|
335
|
+
- key: customer
|
|
336
|
+
type: avatar
|
|
337
|
+
- key: status
|
|
338
|
+
type: tag
|
|
339
|
+
- key: note
|
|
340
|
+
- key: amount
|
|
341
|
+
type: number
|
|
342
|
+
aggregate: sum
|
|
343
|
+
- key: due
|
|
344
|
+
type: date
|
|
345
|
+
data:
|
|
346
|
+
- {
|
|
347
|
+
id: 1,
|
|
348
|
+
invoice: INV-2041,
|
|
349
|
+
customer: Halcyon Freight,
|
|
350
|
+
status: Paid,
|
|
351
|
+
note: Net 30,
|
|
352
|
+
amount: 12480,
|
|
353
|
+
due: '2026-09-12',
|
|
354
|
+
}
|
|
355
|
+
- {
|
|
356
|
+
id: 2,
|
|
357
|
+
invoice: INV-2042,
|
|
358
|
+
customer: Tessellate Labs,
|
|
359
|
+
status: Overdue,
|
|
360
|
+
note: Net 30,
|
|
361
|
+
amount: 4350,
|
|
362
|
+
due: '2026-09-18',
|
|
363
|
+
}
|
|
364
|
+
- {
|
|
365
|
+
id: 3,
|
|
366
|
+
invoice: INV-2043,
|
|
367
|
+
customer: Copperleaf Health,
|
|
368
|
+
status: Due,
|
|
369
|
+
note: Net 60,
|
|
370
|
+
amount: 8920,
|
|
371
|
+
due: '2026-10-06',
|
|
372
|
+
}
|