@itwin/components-react 3.6.0-dev.7 → 4.0.0-dev.1
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/CHANGELOG.md +26 -1
- package/LICENSE.md +1 -1
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.d.ts +5 -5
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.js +3 -3
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.d.ts +2 -2
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.js +1 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.js.map +1 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.d.ts +3 -3
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.js +2 -2
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.js.map +1 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts +1 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.js +1 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.js.map +1 -1
- package/lib/cjs/components-react/common/UseDebouncedAsyncValue.d.ts +4 -1
- package/lib/cjs/components-react/common/UseDebouncedAsyncValue.d.ts.map +1 -1
- package/lib/cjs/components-react/common/UseDebouncedAsyncValue.js +4 -1
- package/lib/cjs/components-react/common/UseDebouncedAsyncValue.js.map +1 -1
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.d.ts +2 -2
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.js +1 -1
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.js.map +1 -1
- package/lib/cjs/components-react/common/showhide/ShowHideItem.d.ts +2 -2
- package/lib/cjs/components-react/common/showhide/ShowHideItem.js.map +1 -1
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.d.ts +2 -2
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.js +1 -1
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.js.map +1 -1
- package/lib/cjs/components-react/converters/TypeConverterManager.d.ts.map +1 -1
- package/lib/cjs/components-react/converters/TypeConverterManager.js +3 -4
- package/lib/cjs/components-react/converters/TypeConverterManager.js.map +1 -1
- package/lib/cjs/components-react/editors/ThemedEnumEditor.d.ts +3 -3
- package/lib/cjs/components-react/editors/ThemedEnumEditor.js +2 -2
- package/lib/cjs/components-react/editors/ThemedEnumEditor.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilder.d.ts +22 -24
- package/lib/cjs/components-react/filter-builder/FilterBuilder.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilder.js +24 -83
- package/lib/cjs/components-react/filter-builder/FilterBuilder.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderContext.d.ts +80 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderContext.d.ts.map +1 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderContext.js +83 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderContext.js.map +1 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.d.ts +14 -3
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.js +22 -12
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.scss +4 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.d.ts +25 -16
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.js +22 -14
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.d.ts +14 -2
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.js +11 -5
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.d.ts +16 -2
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js +11 -5
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.d.ts +14 -2
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.js +11 -5
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderState.d.ts +52 -8
- package/lib/cjs/components-react/filter-builder/FilterBuilderState.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderState.js +102 -12
- package/lib/cjs/components-react/filter-builder/FilterBuilderState.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/Operators.d.ts +23 -5
- package/lib/cjs/components-react/filter-builder/Operators.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/Operators.js +25 -7
- package/lib/cjs/components-react/filter-builder/Operators.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/Types.d.ts +24 -4
- package/lib/cjs/components-react/filter-builder/Types.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/Types.js +11 -1
- package/lib/cjs/components-react/filter-builder/Types.js.map +1 -1
- package/lib/cjs/components-react/filtering/FilteringInput.js +1 -1
- package/lib/cjs/components-react/filtering/FilteringInput.js.map +1 -1
- package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts +2 -2
- package/lib/cjs/components-react/iconpicker/IconPickerButton.js +2 -2
- package/lib/cjs/components-react/iconpicker/IconPickerButton.js.map +1 -1
- package/lib/cjs/components-react/properties/LinkHandler.d.ts +2 -2
- package/lib/cjs/components-react/properties/LinkHandler.js +1 -1
- package/lib/cjs/components-react/properties/LinkHandler.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.d.ts +3 -3
- package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.js +1 -1
- package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/PropertyDataProvider.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/PropertyDataProvider.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.d.ts +3 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.js +1 -0
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.d.ts +5 -10
- package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts +3 -3
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.js +1 -1
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +11 -0
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.js +1 -1
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridEventHandler.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridEventHandler.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridEventHandler.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridHooks.d.ts +3 -3
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridHooks.js +3 -3
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridHooks.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModel.d.ts +3 -3
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModel.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModel.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelChangeEvent.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelChangeEvent.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelChangeEvent.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +6 -6
- package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.d.ts +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.d.ts +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.d.ts +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +10 -10
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js +3 -3
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.d.ts +2 -2
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts +3 -6
- package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js.map +1 -1
- package/lib/cjs/components-react/table/SimpleTableDataProvider.d.ts +1 -1
- package/lib/cjs/components-react/table/SimpleTableDataProvider.js +1 -1
- package/lib/cjs/components-react/table/SimpleTableDataProvider.js.map +1 -1
- package/lib/cjs/components-react/table/TableDataProvider.d.ts +8 -8
- package/lib/cjs/components-react/table/TableDataProvider.js +2 -2
- package/lib/cjs/components-react/table/TableDataProvider.js.map +1 -1
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.d.ts +16 -16
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.js +6 -6
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.js.map +1 -1
- package/lib/cjs/components-react/table/component/ColumnDragLayer.d.ts +1 -1
- package/lib/cjs/components-react/table/component/ColumnDragLayer.js +1 -1
- package/lib/cjs/components-react/table/component/ColumnDragLayer.js.map +1 -1
- package/lib/cjs/components-react/table/component/Table.d.ts +9 -9
- package/lib/cjs/components-react/table/component/Table.d.ts.map +1 -1
- package/lib/cjs/components-react/table/component/Table.js +2 -2
- package/lib/cjs/components-react/table/component/Table.js.map +1 -1
- package/lib/cjs/components-react/table/component/TableCell.d.ts +6 -6
- package/lib/cjs/components-react/table/component/TableCell.js +3 -3
- package/lib/cjs/components-react/table/component/TableCell.js.map +1 -1
- package/lib/cjs/components-react/table/component/TableColumn.d.ts +1 -1
- package/lib/cjs/components-react/table/component/TableColumn.js.map +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.d.ts +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.js +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.js.map +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.d.ts +8 -8
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.js +2 -2
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.js.map +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.d.ts +2 -2
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.js +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.js.map +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.d.ts +2 -2
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.js +1 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.js.map +1 -1
- package/lib/cjs/components-react/toolbar/Toolbar.d.ts +1 -1
- package/lib/cjs/components-react/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/cjs/components-react/toolbar/Toolbar.js.map +1 -1
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts +2 -2
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/cjs/components-react/tree/TreeDataProvider.d.ts +2 -2
- package/lib/cjs/components-react/tree/TreeDataProvider.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/TreeDataProvider.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.d.ts +1 -4
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.d.ts +2 -5
- package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.js.map +1 -1
- package/lib/cjs/components-react.d.ts +4 -6
- package/lib/cjs/components-react.d.ts.map +1 -1
- package/lib/cjs/components-react.js +4 -6
- package/lib/cjs/components-react.js.map +1 -1
- package/lib/esm/components-react/breadcrumb/Breadcrumb.d.ts +5 -5
- package/lib/esm/components-react/breadcrumb/Breadcrumb.js +3 -3
- package/lib/esm/components-react/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.d.ts +2 -2
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.js +1 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.js.map +1 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.d.ts +3 -3
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.js +2 -2
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.js.map +1 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts +1 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.js +1 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.js.map +1 -1
- package/lib/esm/components-react/common/UseDebouncedAsyncValue.d.ts +4 -1
- package/lib/esm/components-react/common/UseDebouncedAsyncValue.d.ts.map +1 -1
- package/lib/esm/components-react/common/UseDebouncedAsyncValue.js +4 -1
- package/lib/esm/components-react/common/UseDebouncedAsyncValue.js.map +1 -1
- package/lib/esm/components-react/common/showhide/ShowHideDialog.d.ts +2 -2
- package/lib/esm/components-react/common/showhide/ShowHideDialog.js +1 -1
- package/lib/esm/components-react/common/showhide/ShowHideDialog.js.map +1 -1
- package/lib/esm/components-react/common/showhide/ShowHideItem.d.ts +2 -2
- package/lib/esm/components-react/common/showhide/ShowHideItem.js.map +1 -1
- package/lib/esm/components-react/common/showhide/ShowHideMenu.d.ts +2 -2
- package/lib/esm/components-react/common/showhide/ShowHideMenu.js +1 -1
- package/lib/esm/components-react/common/showhide/ShowHideMenu.js.map +1 -1
- package/lib/esm/components-react/converters/TypeConverterManager.d.ts.map +1 -1
- package/lib/esm/components-react/converters/TypeConverterManager.js +3 -4
- package/lib/esm/components-react/converters/TypeConverterManager.js.map +1 -1
- package/lib/esm/components-react/editors/ThemedEnumEditor.d.ts +3 -3
- package/lib/esm/components-react/editors/ThemedEnumEditor.js +2 -2
- package/lib/esm/components-react/editors/ThemedEnumEditor.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilder.d.ts +22 -24
- package/lib/esm/components-react/filter-builder/FilterBuilder.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilder.js +17 -75
- package/lib/esm/components-react/filter-builder/FilterBuilder.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderContext.d.ts +80 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderContext.d.ts.map +1 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderContext.js +60 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderContext.js.map +1 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.d.ts +14 -3
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.js +17 -7
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.scss +4 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.d.ts +25 -16
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.js +15 -7
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.d.ts +14 -2
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.js +7 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.d.ts +16 -2
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js +7 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.d.ts +14 -2
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.js +7 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderState.d.ts +52 -8
- package/lib/esm/components-react/filter-builder/FilterBuilderState.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderState.js +96 -7
- package/lib/esm/components-react/filter-builder/FilterBuilderState.js.map +1 -1
- package/lib/esm/components-react/filter-builder/Operators.d.ts +23 -5
- package/lib/esm/components-react/filter-builder/Operators.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/Operators.js +23 -5
- package/lib/esm/components-react/filter-builder/Operators.js.map +1 -1
- package/lib/esm/components-react/filter-builder/Types.d.ts +24 -4
- package/lib/esm/components-react/filter-builder/Types.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/Types.js +11 -1
- package/lib/esm/components-react/filter-builder/Types.js.map +1 -1
- package/lib/esm/components-react/filtering/FilteringInput.js +1 -1
- package/lib/esm/components-react/filtering/FilteringInput.js.map +1 -1
- package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts +2 -2
- package/lib/esm/components-react/iconpicker/IconPickerButton.js +2 -2
- package/lib/esm/components-react/iconpicker/IconPickerButton.js.map +1 -1
- package/lib/esm/components-react/properties/LinkHandler.d.ts +2 -2
- package/lib/esm/components-react/properties/LinkHandler.js +1 -1
- package/lib/esm/components-react/properties/LinkHandler.js.map +1 -1
- package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.d.ts +3 -3
- package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.js +1 -1
- package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.js.map +1 -1
- package/lib/esm/components-react/propertygrid/PropertyDataProvider.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/PropertyDataProvider.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.d.ts +3 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.js +1 -0
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.d.ts +5 -10
- package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts +3 -3
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.js +1 -1
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +11 -0
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.js +1 -1
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridEventHandler.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/internal/PropertyGridEventHandler.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridEventHandler.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridHooks.d.ts +3 -3
- package/lib/esm/components-react/propertygrid/internal/PropertyGridHooks.js +3 -3
- package/lib/esm/components-react/propertygrid/internal/PropertyGridHooks.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModel.d.ts +3 -3
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModel.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModel.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelChangeEvent.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelChangeEvent.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelChangeEvent.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +6 -6
- package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.d.ts +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.d.ts +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.d.ts +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +10 -10
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js +3 -3
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.d.ts +2 -2
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts +3 -6
- package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js.map +1 -1
- package/lib/esm/components-react/table/SimpleTableDataProvider.d.ts +1 -1
- package/lib/esm/components-react/table/SimpleTableDataProvider.js +1 -1
- package/lib/esm/components-react/table/SimpleTableDataProvider.js.map +1 -1
- package/lib/esm/components-react/table/TableDataProvider.d.ts +8 -8
- package/lib/esm/components-react/table/TableDataProvider.js +2 -2
- package/lib/esm/components-react/table/TableDataProvider.js.map +1 -1
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.d.ts +16 -16
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.js +6 -6
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.js.map +1 -1
- package/lib/esm/components-react/table/component/ColumnDragLayer.d.ts +1 -1
- package/lib/esm/components-react/table/component/ColumnDragLayer.js +1 -1
- package/lib/esm/components-react/table/component/ColumnDragLayer.js.map +1 -1
- package/lib/esm/components-react/table/component/Table.d.ts +9 -9
- package/lib/esm/components-react/table/component/Table.d.ts.map +1 -1
- package/lib/esm/components-react/table/component/Table.js +2 -2
- package/lib/esm/components-react/table/component/Table.js.map +1 -1
- package/lib/esm/components-react/table/component/TableCell.d.ts +6 -6
- package/lib/esm/components-react/table/component/TableCell.js +3 -3
- package/lib/esm/components-react/table/component/TableCell.js.map +1 -1
- package/lib/esm/components-react/table/component/TableColumn.d.ts +1 -1
- package/lib/esm/components-react/table/component/TableColumn.js.map +1 -1
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.d.ts +1 -1
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.js +1 -1
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.js.map +1 -1
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.d.ts +8 -8
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.js +2 -2
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.js.map +1 -1
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.d.ts +2 -2
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.js +1 -1
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.js.map +1 -1
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.d.ts +2 -2
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.js +1 -1
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.js.map +1 -1
- package/lib/esm/components-react/toolbar/Toolbar.d.ts +1 -1
- package/lib/esm/components-react/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/esm/components-react/toolbar/Toolbar.js.map +1 -1
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts +2 -2
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/esm/components-react/tree/TreeDataProvider.d.ts +2 -2
- package/lib/esm/components-react/tree/TreeDataProvider.d.ts.map +1 -1
- package/lib/esm/components-react/tree/TreeDataProvider.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.d.ts +1 -4
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/TreeRenderer.d.ts +2 -5
- package/lib/esm/components-react/tree/controlled/component/TreeRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/TreeRenderer.js.map +1 -1
- package/lib/esm/components-react.d.ts +4 -6
- package/lib/esm/components-react.d.ts.map +1 -1
- package/lib/esm/components-react.js +4 -6
- package/lib/esm/components-react.js.map +1 -1
- package/package.json +22 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/SimpleTableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0DAAiG;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eAAe,EAAE,CAAC;YAEvB,IAAI,qBAAqB;gBACvB,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;SACnC;IACH,CAAC;IAED,qCAAqC;IAC9B,OAAO,CAAC,OAAgB,EAAE,QAAgB;QAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,QAAQ,IAAI,CAAC,EAAE;YACjB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAE/B,IAAI,QAAQ,GAAG,QAAQ;gBACrB,QAAQ,EAAE,CAAC,CAAK,8CAA8C;YAEhE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;SAC1C;QAED,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;IAEO,YAAY,CAAC,IAAa;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC3C,IAAI,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;gBACzB,OAAO,CAAC,CAAC;SACZ;QACD,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;CACF;AApSD,0DAoSC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport { Primitives, PropertyRecord, PropertyValueFormat, UiError } from \"@itwin/appui-abstract\";\r\nimport { SortDirection } from \"@itwin/core-react\";\r\nimport { TypeConverterManager } from \"../converters/TypeConverterManager\";\r\nimport { UiComponents } from \"../UiComponents\";\r\nimport { CompositeFilterDescriptorCollection, DistinctValueCollection, TableDistinctValue } from \"./columnfiltering/ColumnFiltering\";\r\nimport { ColumnDescription, MutableTableDataProvider, RowItem, TableDataChangeEvent } from \"./TableDataProvider\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cSpell:ignore columnfiltering\r\n\r\n/**\r\n * A Table Data Provider using an array of items.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class SimpleTableDataProvider implements MutableTableDataProvider {\r\n private _items: RowItem[];\r\n private _rowItemIndices: number[]; // Used for both filtering and sorting\r\n private _columns: ColumnDescription[];\r\n private _secondarySortColumnStack?: number[];\r\n private _sortDirection: SortDirection = SortDirection.NoSort;\r\n private _sortColumnIndex: number = -1;\r\n private _filterDescriptors?: CompositeFilterDescriptorCollection;\r\n\r\n /** Event emitted by the data provider when column data changes */\r\n public onColumnsChanged = new TableDataChangeEvent();\r\n /** Event emitted by the data provider when row data changes */\r\n public onRowsChanged = new TableDataChangeEvent();\r\n\r\n constructor(columns: ColumnDescription[]) {\r\n this._columns = columns;\r\n this._items = [];\r\n this._rowItemIndices = [];\r\n this._secondarySortColumnStack = [];\r\n }\r\n\r\n /** Sets the row items based on an array */\r\n public setItems(items: RowItem[]): void {\r\n this._items = items;\r\n this._rowItemIndices = [];\r\n this.resetRowIndices();\r\n this.onRowsChanged.raiseEvent();\r\n }\r\n\r\n private resetRowIndices(): void {\r\n this._rowItemIndices.splice(0);\r\n\r\n for (let rowIndex = 0; rowIndex < this._items.length; rowIndex++) {\r\n this._rowItemIndices.push(rowIndex);\r\n }\r\n }\r\n\r\n /** Retrieves the column descriptions */\r\n public async getColumns(): Promise<ColumnDescription[]> {\r\n return this._columns;\r\n }\r\n\r\n /** Retrieves the row count */\r\n public async getRowsCount(): Promise<number> {\r\n return this._rowItemIndices.length;\r\n }\r\n\r\n /** Retrieves a specific row by index */\r\n public async getRow(rowIndex: number, unfiltered?: boolean): Promise<RowItem> {\r\n let realRowIndex: number = -1;\r\n\r\n if (unfiltered) {\r\n // istanbul ignore else\r\n if (0 <= rowIndex && rowIndex < this._items.length)\r\n realRowIndex = rowIndex;\r\n } else {\r\n if (0 <= rowIndex && rowIndex < this._rowItemIndices.length)\r\n realRowIndex = this.getRowIndexFromFilteredRowIndex(rowIndex);\r\n }\r\n\r\n if (0 <= realRowIndex && realRowIndex < this._items.length)\r\n return this._items[realRowIndex];\r\n\r\n throw new UiError(UiComponents.loggerCategory(this), `getRow: Invalid row index - ${rowIndex}`);\r\n }\r\n\r\n private getRowIndexFromFilteredRowIndex(filteredRowIndex: number): number {\r\n // istanbul ignore next\r\n if (filteredRowIndex === undefined)\r\n return filteredRowIndex;\r\n\r\n // istanbul ignore next\r\n if (filteredRowIndex < 0 || filteredRowIndex >= this._rowItemIndices.length)\r\n return -1;\r\n\r\n return this._rowItemIndices[filteredRowIndex];\r\n }\r\n\r\n /** Sorts the rows based on the value in a specific column */\r\n public async sort(columnIndex: number, sortDirection: SortDirection): Promise<void> {\r\n // istanbul ignore next\r\n if (columnIndex < 0 || columnIndex >= this._columns.length)\r\n return;\r\n\r\n this._sortColumnIndex = columnIndex;\r\n this._sortDirection = sortDirection;\r\n\r\n if (sortDirection === SortDirection.NoSort) {\r\n if (this._filterDescriptors)\r\n await this.applyFilterDescriptors(this._filterDescriptors);\r\n else\r\n this.resetRowIndices();\r\n return;\r\n }\r\n\r\n this._secondarySortColumnStack = [];\r\n this._secondarySortColumnStack.push(columnIndex);\r\n\r\n // Sort by the column\r\n // eslint-disable-next-line @typescript-eslint/no-this-alias\r\n const dataProvider = this;\r\n this._rowItemIndices.sort((a: number, b: number) => {\r\n return dataProvider.sortDispatcher(dataProvider._items[a], dataProvider._items[b], columnIndex, sortDirection);\r\n });\r\n\r\n delete this._secondarySortColumnStack;\r\n\r\n return;\r\n }\r\n\r\n private sortDispatcher(a: RowItem, b: RowItem, columnIndex: number, sortDirection: SortDirection): number {\r\n let result = this.sortRows(a, b, columnIndex, sortDirection);\r\n\r\n if (result !== 0)\r\n return result;\r\n\r\n // Secondary sort column support\r\n // istanbul ignore else\r\n const column = this._columns[columnIndex];\r\n if (this._secondarySortColumnStack !== undefined &&\r\n column.secondarySortColumn !== undefined &&\r\n column.secondarySortColumn !== columnIndex &&\r\n this._secondarySortColumnStack.indexOf(column.secondarySortColumn) < 0) {\r\n\r\n this._secondarySortColumnStack.push(column.secondarySortColumn);\r\n result = this.sortDispatcher(a, b, column.secondarySortColumn, sortDirection);\r\n this._secondarySortColumnStack.pop();\r\n }\r\n\r\n return result;\r\n }\r\n\r\n private getPrimitiveValue(record: PropertyRecord) {\r\n let primitiveValue: Primitives.Value | undefined;\r\n const recordValue = record.value;\r\n // istanbul ignore else\r\n if (recordValue.valueFormat === PropertyValueFormat.Primitive)\r\n primitiveValue = recordValue.value;\r\n return primitiveValue;\r\n }\r\n\r\n private sortRows(a: RowItem, b: RowItem, columnIndex: number, sortDirection: SortDirection): number {\r\n const aCell = a.cells[columnIndex];\r\n const bCell = b.cells[columnIndex];\r\n\r\n let result: number = 0;\r\n const column = this._columns[columnIndex];\r\n\r\n const propertyDescription = column.propertyDescription;\r\n const valueA = this.getPrimitiveValue(aCell.record as PropertyRecord);\r\n const valueB = this.getPrimitiveValue(bCell.record as PropertyRecord);\r\n // istanbul ignore else\r\n if (valueA !== undefined && valueB !== undefined && propertyDescription)\r\n result = TypeConverterManager.getConverter(propertyDescription.typename, propertyDescription.converter?.name).sortCompare(valueA, valueB, column.sortIgnoreCase);\r\n\r\n if (sortDirection === SortDirection.Descending)\r\n result *= -1;\r\n\r\n return result;\r\n }\r\n\r\n /** Gets distinct values in a column\r\n * @public\r\n */\r\n public async getDistinctValues(columnKey: string, maximumValueCount?: number): Promise<DistinctValueCollection> {\r\n const distinctValues = new DistinctValueCollection();\r\n const columnIndex = this._columns.findIndex((description: ColumnDescription) => description.key === columnKey);\r\n if (columnIndex < 0 || columnIndex >= this._columns.length)\r\n return distinctValues;\r\n\r\n const columnDescription = this._columns[columnIndex];\r\n const propertyDescription = columnDescription.propertyDescription;\r\n const uniqueKeysMap: { [key: string]: TableDistinctValue } = {};\r\n const uniqueValues: any[] = [];\r\n\r\n // istanbul ignore next\r\n if (!propertyDescription)\r\n return distinctValues;\r\n\r\n for (const row of this._items) {\r\n const cell = row.cells[columnIndex];\r\n const record = cell.record;\r\n\r\n // istanbul ignore next\r\n if (record === undefined)\r\n continue;\r\n\r\n const value = this.getPrimitiveValue(record);\r\n const displayValue = await TypeConverterManager\r\n .getConverter(propertyDescription.typename, propertyDescription.converter?.name)\r\n .convertPropertyToString(propertyDescription, value);\r\n\r\n // istanbul ignore next\r\n if (value === undefined || typeof displayValue !== \"string\")\r\n continue;\r\n\r\n const valueKey = value.toString();\r\n if (!uniqueKeysMap.hasOwnProperty(valueKey)) {\r\n const propertyValue: TableDistinctValue = { value, label: displayValue };\r\n\r\n uniqueKeysMap[valueKey] = propertyValue;\r\n uniqueValues.push(propertyValue);\r\n }\r\n }\r\n\r\n distinctValues.values = uniqueValues;\r\n\r\n distinctValues.values.sort((a: TableDistinctValue, b: TableDistinctValue) => {\r\n if (a.value && b.value)\r\n return TypeConverterManager.getConverter(propertyDescription.typename, propertyDescription.converter?.name).sortCompare(a.value, b.value);\r\n return 0;\r\n });\r\n\r\n if (maximumValueCount !== undefined && distinctValues.values.length > maximumValueCount)\r\n distinctValues.values.splice(maximumValueCount);\r\n\r\n return distinctValues;\r\n }\r\n\r\n /** Apply a filter descriptor collection\r\n * @public\r\n */\r\n public async applyFilterDescriptors(filterDescriptors: CompositeFilterDescriptorCollection): Promise<void> {\r\n this._filterDescriptors = filterDescriptors;\r\n\r\n this._rowItemIndices.splice(0);\r\n\r\n this._items.forEach((row: RowItem, i: number) => {\r\n if (filterDescriptors.evaluateRow(row))\r\n this._rowItemIndices.push(i);\r\n });\r\n\r\n if (this._sortDirection !== SortDirection.NoSort) {\r\n await this.sort(this._sortColumnIndex, this._sortDirection);\r\n }\r\n }\r\n\r\n /** Adds a row to the end */\r\n public addRow(rowItem: RowItem): number {\r\n return this.insertRow(rowItem, -1);\r\n }\r\n\r\n /** Inserts a row at a given row index */\r\n public insertRow(rowItem: RowItem, index: number): number {\r\n let newIdx = index;\r\n\r\n if (index < 0 || index >= this._items.length)\r\n newIdx = this._items.push(rowItem) - 1;\r\n else\r\n this._items.splice(newIdx, 0, rowItem);\r\n\r\n this.resetRowIndices();\r\n this.onRowsChanged.raiseEvent();\r\n\r\n return newIdx;\r\n }\r\n\r\n /** Deletes a row */\r\n public deleteRow(rowItem: RowItem, raiseRowsChangedEvent: boolean = true): void {\r\n const rowIndex = this.findRowIndex(rowItem);\r\n if (rowIndex >= 0) {\r\n this._items.splice(rowIndex, 1);\r\n\r\n this.resetRowIndices();\r\n\r\n if (raiseRowsChangedEvent)\r\n this.onRowsChanged.raiseEvent();\r\n }\r\n }\r\n\r\n /** Moves a row to a new row index */\r\n public moveRow(rowItem: RowItem, newIndex: number): number {\r\n const oldIndex = this.findRowIndex(rowItem);\r\n if (oldIndex >= 0) {\r\n this.deleteRow(rowItem, false);\r\n\r\n if (newIndex > oldIndex)\r\n newIndex--; // removing the row will shrink the count by 1\r\n\r\n return this.insertRow(rowItem, newIndex);\r\n }\r\n\r\n return -1;\r\n }\r\n\r\n private findRowIndex(item: RowItem): number {\r\n for (let i = 0; i < this._items.length; i++) {\r\n if (item === this._items[i])\r\n return i;\r\n }\r\n return -1;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"SimpleTableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/SimpleTableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0DAAiG;AACjG,kDAAkD;AAClD,6EAA0E;AAC1E,kDAA+C;AAC/C,uEAAqI;AACrI,2DAAiH;AAEjH,4CAA4C;AAC5C,gCAAgC;AAEhC;;;;GAIG;AACH,MAAa,uBAAuB;IAclC,YAAY,OAA4B;QAThC,mBAAc,GAAkB,0BAAa,CAAC,MAAM,CAAC;QACrD,qBAAgB,GAAW,CAAC,CAAC,CAAC;QAGtC,kEAAkE;QAC3D,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jB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAE/B,IAAI,QAAQ,GAAG,QAAQ;gBACrB,QAAQ,EAAE,CAAC,CAAK,8CAA8C;YAEhE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;SAC1C;QAED,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;IAEO,YAAY,CAAC,IAAa;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC3C,IAAI,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;gBACzB,OAAO,CAAC,CAAC;SACZ;QACD,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;CACF;AApSD,0DAoSC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport { Primitives, PropertyRecord, PropertyValueFormat, UiError } from \"@itwin/appui-abstract\";\r\nimport { SortDirection } from \"@itwin/core-react\";\r\nimport { TypeConverterManager } from \"../converters/TypeConverterManager\";\r\nimport { UiComponents } from \"../UiComponents\";\r\nimport { CompositeFilterDescriptorCollection, DistinctValueCollection, TableDistinctValue } from \"./columnfiltering/ColumnFiltering\";\r\nimport { ColumnDescription, MutableTableDataProvider, RowItem, TableDataChangeEvent } from \"./TableDataProvider\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cSpell:ignore columnfiltering\r\n\r\n/**\r\n * A Table Data Provider using an array of items.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class SimpleTableDataProvider implements MutableTableDataProvider {\r\n private _items: RowItem[];\r\n private _rowItemIndices: number[]; // Used for both filtering and sorting\r\n private _columns: ColumnDescription[];\r\n private _secondarySortColumnStack?: number[];\r\n private _sortDirection: SortDirection = SortDirection.NoSort;\r\n private _sortColumnIndex: number = -1;\r\n private _filterDescriptors?: CompositeFilterDescriptorCollection;\r\n\r\n /** Event emitted by the data provider when column data changes */\r\n public onColumnsChanged = new TableDataChangeEvent();\r\n /** Event emitted by the data provider when row data changes */\r\n public onRowsChanged = new TableDataChangeEvent();\r\n\r\n constructor(columns: ColumnDescription[]) {\r\n this._columns = columns;\r\n this._items = [];\r\n this._rowItemIndices = [];\r\n this._secondarySortColumnStack = [];\r\n }\r\n\r\n /** Sets the row items based on an array */\r\n public setItems(items: RowItem[]): void {\r\n this._items = items;\r\n this._rowItemIndices = [];\r\n this.resetRowIndices();\r\n this.onRowsChanged.raiseEvent();\r\n }\r\n\r\n private resetRowIndices(): void {\r\n this._rowItemIndices.splice(0);\r\n\r\n for (let rowIndex = 0; rowIndex < this._items.length; rowIndex++) {\r\n this._rowItemIndices.push(rowIndex);\r\n }\r\n }\r\n\r\n /** Retrieves the column descriptions */\r\n public async getColumns(): Promise<ColumnDescription[]> {\r\n return this._columns;\r\n }\r\n\r\n /** Retrieves the row count */\r\n public async getRowsCount(): Promise<number> {\r\n return this._rowItemIndices.length;\r\n }\r\n\r\n /** Retrieves a specific row by index */\r\n public async getRow(rowIndex: number, unfiltered?: boolean): Promise<RowItem> {\r\n let realRowIndex: number = -1;\r\n\r\n if (unfiltered) {\r\n // istanbul ignore else\r\n if (0 <= rowIndex && rowIndex < this._items.length)\r\n realRowIndex = rowIndex;\r\n } else {\r\n if (0 <= rowIndex && rowIndex < this._rowItemIndices.length)\r\n realRowIndex = this.getRowIndexFromFilteredRowIndex(rowIndex);\r\n }\r\n\r\n if (0 <= realRowIndex && realRowIndex < this._items.length)\r\n return this._items[realRowIndex];\r\n\r\n throw new UiError(UiComponents.loggerCategory(this), `getRow: Invalid row index - ${rowIndex}`);\r\n }\r\n\r\n private getRowIndexFromFilteredRowIndex(filteredRowIndex: number): number {\r\n // istanbul ignore next\r\n if (filteredRowIndex === undefined)\r\n return filteredRowIndex;\r\n\r\n // istanbul ignore next\r\n if (filteredRowIndex < 0 || filteredRowIndex >= this._rowItemIndices.length)\r\n return -1;\r\n\r\n return this._rowItemIndices[filteredRowIndex];\r\n }\r\n\r\n /** Sorts the rows based on the value in a specific column */\r\n public async sort(columnIndex: number, sortDirection: SortDirection): Promise<void> {\r\n // istanbul ignore next\r\n if (columnIndex < 0 || columnIndex >= this._columns.length)\r\n return;\r\n\r\n this._sortColumnIndex = columnIndex;\r\n this._sortDirection = sortDirection;\r\n\r\n if (sortDirection === SortDirection.NoSort) {\r\n if (this._filterDescriptors)\r\n await this.applyFilterDescriptors(this._filterDescriptors);\r\n else\r\n this.resetRowIndices();\r\n return;\r\n }\r\n\r\n this._secondarySortColumnStack = [];\r\n this._secondarySortColumnStack.push(columnIndex);\r\n\r\n // Sort by the column\r\n // eslint-disable-next-line @typescript-eslint/no-this-alias\r\n const dataProvider = this;\r\n this._rowItemIndices.sort((a: number, b: number) => {\r\n return dataProvider.sortDispatcher(dataProvider._items[a], dataProvider._items[b], columnIndex, sortDirection);\r\n });\r\n\r\n delete this._secondarySortColumnStack;\r\n\r\n return;\r\n }\r\n\r\n private sortDispatcher(a: RowItem, b: RowItem, columnIndex: number, sortDirection: SortDirection): number {\r\n let result = this.sortRows(a, b, columnIndex, sortDirection);\r\n\r\n if (result !== 0)\r\n return result;\r\n\r\n // Secondary sort column support\r\n // istanbul ignore else\r\n const column = this._columns[columnIndex];\r\n if (this._secondarySortColumnStack !== undefined &&\r\n column.secondarySortColumn !== undefined &&\r\n column.secondarySortColumn !== columnIndex &&\r\n this._secondarySortColumnStack.indexOf(column.secondarySortColumn) < 0) {\r\n\r\n this._secondarySortColumnStack.push(column.secondarySortColumn);\r\n result = this.sortDispatcher(a, b, column.secondarySortColumn, sortDirection);\r\n this._secondarySortColumnStack.pop();\r\n }\r\n\r\n return result;\r\n }\r\n\r\n private getPrimitiveValue(record: PropertyRecord) {\r\n let primitiveValue: Primitives.Value | undefined;\r\n const recordValue = record.value;\r\n // istanbul ignore else\r\n if (recordValue.valueFormat === PropertyValueFormat.Primitive)\r\n primitiveValue = recordValue.value;\r\n return primitiveValue;\r\n }\r\n\r\n private sortRows(a: RowItem, b: RowItem, columnIndex: number, sortDirection: SortDirection): number {\r\n const aCell = a.cells[columnIndex];\r\n const bCell = b.cells[columnIndex];\r\n\r\n let result: number = 0;\r\n const column = this._columns[columnIndex];\r\n\r\n const propertyDescription = column.propertyDescription;\r\n const valueA = this.getPrimitiveValue(aCell.record as PropertyRecord);\r\n const valueB = this.getPrimitiveValue(bCell.record as PropertyRecord);\r\n // istanbul ignore else\r\n if (valueA !== undefined && valueB !== undefined && propertyDescription)\r\n result = TypeConverterManager.getConverter(propertyDescription.typename, propertyDescription.converter?.name).sortCompare(valueA, valueB, column.sortIgnoreCase);\r\n\r\n if (sortDirection === SortDirection.Descending)\r\n result *= -1;\r\n\r\n return result;\r\n }\r\n\r\n /** Gets distinct values in a column\r\n * @public\r\n */\r\n public async getDistinctValues(columnKey: string, maximumValueCount?: number): Promise<DistinctValueCollection> {\r\n const distinctValues = new DistinctValueCollection();\r\n const columnIndex = this._columns.findIndex((description: ColumnDescription) => description.key === columnKey);\r\n if (columnIndex < 0 || columnIndex >= this._columns.length)\r\n return distinctValues;\r\n\r\n const columnDescription = this._columns[columnIndex];\r\n const propertyDescription = columnDescription.propertyDescription;\r\n const uniqueKeysMap: { [key: string]: TableDistinctValue } = {};\r\n const uniqueValues: any[] = [];\r\n\r\n // istanbul ignore next\r\n if (!propertyDescription)\r\n return distinctValues;\r\n\r\n for (const row of this._items) {\r\n const cell = row.cells[columnIndex];\r\n const record = cell.record;\r\n\r\n // istanbul ignore next\r\n if (record === undefined)\r\n continue;\r\n\r\n const value = this.getPrimitiveValue(record);\r\n const displayValue = await TypeConverterManager\r\n .getConverter(propertyDescription.typename, propertyDescription.converter?.name)\r\n .convertPropertyToString(propertyDescription, value);\r\n\r\n // istanbul ignore next\r\n if (value === undefined || typeof displayValue !== \"string\")\r\n continue;\r\n\r\n const valueKey = value.toString();\r\n if (!uniqueKeysMap.hasOwnProperty(valueKey)) {\r\n const propertyValue: TableDistinctValue = { value, label: displayValue };\r\n\r\n uniqueKeysMap[valueKey] = propertyValue;\r\n uniqueValues.push(propertyValue);\r\n }\r\n }\r\n\r\n distinctValues.values = uniqueValues;\r\n\r\n distinctValues.values.sort((a: TableDistinctValue, b: TableDistinctValue) => {\r\n if (a.value && b.value)\r\n return TypeConverterManager.getConverter(propertyDescription.typename, propertyDescription.converter?.name).sortCompare(a.value, b.value);\r\n return 0;\r\n });\r\n\r\n if (maximumValueCount !== undefined && distinctValues.values.length > maximumValueCount)\r\n distinctValues.values.splice(maximumValueCount);\r\n\r\n return distinctValues;\r\n }\r\n\r\n /** Apply a filter descriptor collection\r\n * @public\r\n */\r\n public async applyFilterDescriptors(filterDescriptors: CompositeFilterDescriptorCollection): Promise<void> {\r\n this._filterDescriptors = filterDescriptors;\r\n\r\n this._rowItemIndices.splice(0);\r\n\r\n this._items.forEach((row: RowItem, i: number) => {\r\n if (filterDescriptors.evaluateRow(row))\r\n this._rowItemIndices.push(i);\r\n });\r\n\r\n if (this._sortDirection !== SortDirection.NoSort) {\r\n await this.sort(this._sortColumnIndex, this._sortDirection);\r\n }\r\n }\r\n\r\n /** Adds a row to the end */\r\n public addRow(rowItem: RowItem): number {\r\n return this.insertRow(rowItem, -1);\r\n }\r\n\r\n /** Inserts a row at a given row index */\r\n public insertRow(rowItem: RowItem, index: number): number {\r\n let newIdx = index;\r\n\r\n if (index < 0 || index >= this._items.length)\r\n newIdx = this._items.push(rowItem) - 1;\r\n else\r\n this._items.splice(newIdx, 0, rowItem);\r\n\r\n this.resetRowIndices();\r\n this.onRowsChanged.raiseEvent();\r\n\r\n return newIdx;\r\n }\r\n\r\n /** Deletes a row */\r\n public deleteRow(rowItem: RowItem, raiseRowsChangedEvent: boolean = true): void {\r\n const rowIndex = this.findRowIndex(rowItem);\r\n if (rowIndex >= 0) {\r\n this._items.splice(rowIndex, 1);\r\n\r\n this.resetRowIndices();\r\n\r\n if (raiseRowsChangedEvent)\r\n this.onRowsChanged.raiseEvent();\r\n }\r\n }\r\n\r\n /** Moves a row to a new row index */\r\n public moveRow(rowItem: RowItem, newIndex: number): number {\r\n const oldIndex = this.findRowIndex(rowItem);\r\n if (oldIndex >= 0) {\r\n this.deleteRow(rowItem, false);\r\n\r\n if (newIndex > oldIndex)\r\n newIndex--; // removing the row will shrink the count by 1\r\n\r\n return this.insertRow(rowItem, newIndex);\r\n }\r\n\r\n return -1;\r\n }\r\n\r\n private findRowIndex(item: RowItem): number {\r\n for (let i = 0; i < this._items.length; i++) {\r\n if (item === this._items[i])\r\n return i;\r\n }\r\n return -1;\r\n }\r\n}\r\n"]}
|
|
@@ -7,7 +7,7 @@ import { HorizontalAlignment, SortDirection } from "@itwin/core-react";
|
|
|
7
7
|
import { ItemColorOverrides, ItemStyle } from "../properties/ItemStyle";
|
|
8
8
|
import { CompositeFilterDescriptorCollection, DistinctValueCollection } from "./columnfiltering/ColumnFiltering";
|
|
9
9
|
/** Filter Renderer for a Table column
|
|
10
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
10
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
export declare enum FilterRenderer {
|
|
@@ -19,7 +19,7 @@ export declare enum FilterRenderer {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Column definition provided to Table.
|
|
22
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
22
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
export interface ColumnDescription {
|
|
@@ -58,7 +58,7 @@ export interface ColumnDescription {
|
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Cell definition provided to Table.
|
|
61
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
61
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
export interface CellItem {
|
|
@@ -81,7 +81,7 @@ export interface CellItem {
|
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Row definition provided to Table.
|
|
84
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
84
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
87
87
|
export interface RowItem {
|
|
@@ -107,12 +107,12 @@ export interface RowItem {
|
|
|
107
107
|
getValueFromCell?: (columnKey: string) => any;
|
|
108
108
|
}
|
|
109
109
|
/** An interface table data change listeners
|
|
110
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this type.
|
|
110
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this type.
|
|
111
111
|
* @public
|
|
112
112
|
*/
|
|
113
113
|
export declare type TableDataChangesListener = () => void;
|
|
114
114
|
/** An event broadcasted on table data changes
|
|
115
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
115
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
116
116
|
* @public
|
|
117
117
|
*/
|
|
118
118
|
export declare class TableDataChangeEvent extends BeEvent<TableDataChangesListener> {
|
|
@@ -120,7 +120,7 @@ export declare class TableDataChangeEvent extends BeEvent<TableDataChangesListen
|
|
|
120
120
|
/**
|
|
121
121
|
* TableDataProvider provides data to the Table.
|
|
122
122
|
* It also provides support for data Sorting & Filtering.
|
|
123
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
123
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
124
124
|
* @public
|
|
125
125
|
*/
|
|
126
126
|
export interface TableDataProvider {
|
|
@@ -150,7 +150,7 @@ export interface TableDataProvider {
|
|
|
150
150
|
/**
|
|
151
151
|
* MutableTableDataProvider provides mutation methods for data in the Table.
|
|
152
152
|
* Useful for Drag & Drop processing.
|
|
153
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
153
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
154
154
|
* @public
|
|
155
155
|
*/
|
|
156
156
|
export interface MutableTableDataProvider extends TableDataProvider {
|
|
@@ -12,7 +12,7 @@ const core_bentley_1 = require("@itwin/core-bentley");
|
|
|
12
12
|
/* eslint-disable deprecation/deprecation */
|
|
13
13
|
// cSpell:ignore columnfiltering
|
|
14
14
|
/** Filter Renderer for a Table column
|
|
15
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
15
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
18
|
var FilterRenderer;
|
|
@@ -24,7 +24,7 @@ var FilterRenderer;
|
|
|
24
24
|
FilterRenderer[FilterRenderer["MultiValue"] = 5] = "MultiValue";
|
|
25
25
|
})(FilterRenderer = exports.FilterRenderer || (exports.FilterRenderer = {}));
|
|
26
26
|
/** An event broadcasted on table data changes
|
|
27
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
27
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
30
|
class TableDataChangeEvent extends core_bentley_1.BeEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/TableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA8C;AAM9C,4CAA4C;AAC5C,gCAAgC;AAEhC;;;GAGG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,mDAAI,CAAA;IACJ,+DAAU,CAAA;AACZ,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AA8GD;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,sBAAiC;CAAI;AAA/E,oDAA+E","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport { BeEvent } from \"@itwin/core-bentley\";\r\nimport { PropertyDescription, PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { HorizontalAlignment, SortDirection } from \"@itwin/core-react\";\r\nimport { ItemColorOverrides, ItemStyle } from \"../properties/ItemStyle\";\r\nimport { CompositeFilterDescriptorCollection, DistinctValueCollection } from \"./columnfiltering/ColumnFiltering\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cSpell:ignore columnfiltering\r\n\r\n/** Filter Renderer for a Table column\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport enum FilterRenderer {\r\n Numeric = 1,\r\n MultiSelect,\r\n SingleSelect,\r\n Text,\r\n MultiValue,\r\n}\r\n\r\n/**\r\n * Column definition provided to Table.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface ColumnDescription {\r\n /** A unique key for this column. */\r\n key: string;\r\n\r\n /** Column header label */\r\n label: string;\r\n /** Property description for all cells in the column */\r\n propertyDescription?: PropertyDescription;\r\n\r\n /** Preferred initial width of the column */\r\n width?: number;\r\n\r\n /** Indicates whether the cells in the column are editable. Defaults to false. */\r\n editable?: boolean;\r\n /** Indicates whether the column is resizable. Defaults to false. */\r\n resizable?: boolean;\r\n /** Indicates whether the display value for the cell is treated as an icon spec. Defaults to false. */\r\n icon?: boolean;\r\n\r\n /** Indicates whether the column is sortable. Defaults to false. */\r\n sortable?: boolean;\r\n /** Specifies a secondary sort column to use when cell values are the same. */\r\n secondarySortColumn?: number;\r\n /** Indicates whether the column sorting ignores case. Defaults to false. */\r\n sortIgnoreCase?: boolean;\r\n\r\n /** Indicates whether the column is filterable. Defaults to false. */\r\n filterable?: boolean;\r\n /** Specifies the filter renderer for the column. */\r\n filterRenderer?: FilterRenderer;\r\n\r\n /** Show field filters in Multi-Value column filtering popup. Defaults to true. */\r\n showFieldFilters?: boolean;\r\n /** Show distinct value checkboxes in Multi-Value column filtering popup. Defaults to true. */\r\n showDistinctValueFilters?: boolean;\r\n /** Filtering is case-sensitive in Multi-Value column filtering popup. Defaults to false. */\r\n filterCaseSensitive?: boolean;\r\n\r\n /** Sort type for react-table */\r\n sortType?: string;\r\n}\r\n\r\n/**\r\n * Cell definition provided to Table.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CellItem {\r\n /** Key for the column containing the cell */\r\n key: string;\r\n /** Property record for the cell */\r\n record?: PropertyRecord;\r\n\r\n /** Indicates whether the cell is disabled */\r\n isDisabled?: boolean;\r\n /** Specifies the horizontal alignment of the contents of the cell */\r\n alignment?: HorizontalAlignment;\r\n\r\n /** Style properties for the contents of the cell */\r\n style?: ItemStyle;\r\n\r\n /**\r\n * Property to specify how many cells were merged to create this cell.\r\n * Default value is 1.\r\n * @alpha\r\n */\r\n mergedCellsCount?: number;\r\n}\r\n\r\n/**\r\n * Row definition provided to Table.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface RowItem {\r\n /** A unique key for this row */\r\n key: string;\r\n /** Array of cells in the row */\r\n cells: CellItem[];\r\n /** Indicates whether the row is disabled */\r\n isDisabled?: boolean;\r\n /** Color overrides for all cells in the row */\r\n colorOverrides?: ItemColorOverrides;\r\n\r\n /**\r\n * A key-value pairs data structure that can be used by data provider\r\n * to store some custom data for this node item.\r\n */\r\n extendedData?: { [key: string]: any };\r\n\r\n /**\r\n * Get the value from the cell for filtering purposes.\r\n * If not specified and the value is a primitive, the recordValue.value is returned.\r\n */\r\n getValueFromCell?: (columnKey: string) => any;\r\n}\r\n\r\n/** An interface table data change listeners\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this type.\r\n * @public\r\n */\r\nexport declare type TableDataChangesListener = () => void;\r\n\r\n/** An event broadcasted on table data changes\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class TableDataChangeEvent extends BeEvent<TableDataChangesListener> { }\r\n\r\n/**\r\n * TableDataProvider provides data to the Table.\r\n * It also provides support for data Sorting & Filtering.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface TableDataProvider {\r\n /** Event emitted by the data provider when column data changes */\r\n onColumnsChanged: TableDataChangeEvent;\r\n /** Event emitted by the data provider when row data changes */\r\n onRowsChanged: TableDataChangeEvent;\r\n\r\n /** Retrieves the column descriptions */\r\n getColumns(): Promise<ColumnDescription[]>;\r\n /** Retrieves the row count */\r\n getRowsCount(): Promise<number>;\r\n /** Retrieves a specific row by index */\r\n getRow(rowIndex: number, unfiltered?: boolean): Promise<RowItem>;\r\n\r\n /** Sorts the rows based on the value in a specific column */\r\n sort(columnIndex: number, sortDirection: SortDirection): Promise<void>;\r\n\r\n // Column Filtering methods\r\n\r\n /** Apply a filter descriptor collection\r\n */\r\n applyFilterDescriptors?: (filterDescriptors: CompositeFilterDescriptorCollection) => Promise<void>;\r\n\r\n /** Gets distinct values in a column\r\n */\r\n getDistinctValues?: (columnKey: string, maximumValueCount?: number) => Promise<DistinctValueCollection>;\r\n\r\n /** Gets property display value expression\r\n * @alpha\r\n */\r\n getPropertyDisplayValueExpression?: (property: string) => string;\r\n}\r\n\r\n/**\r\n * MutableTableDataProvider provides mutation methods for data in the Table.\r\n * Useful for Drag & Drop processing.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface MutableTableDataProvider extends TableDataProvider {\r\n /** Adds a row to the end */\r\n addRow(rowItem: RowItem): number;\r\n /** Inserts a row at a given row index */\r\n insertRow(rowItem: RowItem, index: number): number;\r\n /** Deletes a row */\r\n deleteRow(rowItem: RowItem): void;\r\n /** Moves a row to a new row index */\r\n moveRow(rowItem: RowItem, newIndex: number): number;\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"TableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/TableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA8C;AAM9C,4CAA4C;AAC5C,gCAAgC;AAEhC;;;GAGG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,mDAAI,CAAA;IACJ,+DAAU,CAAA;AACZ,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AA8GD;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,sBAAiC;CAAI;AAA/E,oDAA+E","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport { BeEvent } from \"@itwin/core-bentley\";\r\nimport { PropertyDescription, PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { HorizontalAlignment, SortDirection } from \"@itwin/core-react\";\r\nimport { ItemColorOverrides, ItemStyle } from \"../properties/ItemStyle\";\r\nimport { CompositeFilterDescriptorCollection, DistinctValueCollection } from \"./columnfiltering/ColumnFiltering\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cSpell:ignore columnfiltering\r\n\r\n/** Filter Renderer for a Table column\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport enum FilterRenderer {\r\n Numeric = 1,\r\n MultiSelect,\r\n SingleSelect,\r\n Text,\r\n MultiValue,\r\n}\r\n\r\n/**\r\n * Column definition provided to Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface ColumnDescription {\r\n /** A unique key for this column. */\r\n key: string;\r\n\r\n /** Column header label */\r\n label: string;\r\n /** Property description for all cells in the column */\r\n propertyDescription?: PropertyDescription;\r\n\r\n /** Preferred initial width of the column */\r\n width?: number;\r\n\r\n /** Indicates whether the cells in the column are editable. Defaults to false. */\r\n editable?: boolean;\r\n /** Indicates whether the column is resizable. Defaults to false. */\r\n resizable?: boolean;\r\n /** Indicates whether the display value for the cell is treated as an icon spec. Defaults to false. */\r\n icon?: boolean;\r\n\r\n /** Indicates whether the column is sortable. Defaults to false. */\r\n sortable?: boolean;\r\n /** Specifies a secondary sort column to use when cell values are the same. */\r\n secondarySortColumn?: number;\r\n /** Indicates whether the column sorting ignores case. Defaults to false. */\r\n sortIgnoreCase?: boolean;\r\n\r\n /** Indicates whether the column is filterable. Defaults to false. */\r\n filterable?: boolean;\r\n /** Specifies the filter renderer for the column. */\r\n filterRenderer?: FilterRenderer;\r\n\r\n /** Show field filters in Multi-Value column filtering popup. Defaults to true. */\r\n showFieldFilters?: boolean;\r\n /** Show distinct value checkboxes in Multi-Value column filtering popup. Defaults to true. */\r\n showDistinctValueFilters?: boolean;\r\n /** Filtering is case-sensitive in Multi-Value column filtering popup. Defaults to false. */\r\n filterCaseSensitive?: boolean;\r\n\r\n /** Sort type for react-table */\r\n sortType?: string;\r\n}\r\n\r\n/**\r\n * Cell definition provided to Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CellItem {\r\n /** Key for the column containing the cell */\r\n key: string;\r\n /** Property record for the cell */\r\n record?: PropertyRecord;\r\n\r\n /** Indicates whether the cell is disabled */\r\n isDisabled?: boolean;\r\n /** Specifies the horizontal alignment of the contents of the cell */\r\n alignment?: HorizontalAlignment;\r\n\r\n /** Style properties for the contents of the cell */\r\n style?: ItemStyle;\r\n\r\n /**\r\n * Property to specify how many cells were merged to create this cell.\r\n * Default value is 1.\r\n * @alpha\r\n */\r\n mergedCellsCount?: number;\r\n}\r\n\r\n/**\r\n * Row definition provided to Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface RowItem {\r\n /** A unique key for this row */\r\n key: string;\r\n /** Array of cells in the row */\r\n cells: CellItem[];\r\n /** Indicates whether the row is disabled */\r\n isDisabled?: boolean;\r\n /** Color overrides for all cells in the row */\r\n colorOverrides?: ItemColorOverrides;\r\n\r\n /**\r\n * A key-value pairs data structure that can be used by data provider\r\n * to store some custom data for this node item.\r\n */\r\n extendedData?: { [key: string]: any };\r\n\r\n /**\r\n * Get the value from the cell for filtering purposes.\r\n * If not specified and the value is a primitive, the recordValue.value is returned.\r\n */\r\n getValueFromCell?: (columnKey: string) => any;\r\n}\r\n\r\n/** An interface table data change listeners\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this type.\r\n * @public\r\n */\r\nexport declare type TableDataChangesListener = () => void;\r\n\r\n/** An event broadcasted on table data changes\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class TableDataChangeEvent extends BeEvent<TableDataChangesListener> { }\r\n\r\n/**\r\n * TableDataProvider provides data to the Table.\r\n * It also provides support for data Sorting & Filtering.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface TableDataProvider {\r\n /** Event emitted by the data provider when column data changes */\r\n onColumnsChanged: TableDataChangeEvent;\r\n /** Event emitted by the data provider when row data changes */\r\n onRowsChanged: TableDataChangeEvent;\r\n\r\n /** Retrieves the column descriptions */\r\n getColumns(): Promise<ColumnDescription[]>;\r\n /** Retrieves the row count */\r\n getRowsCount(): Promise<number>;\r\n /** Retrieves a specific row by index */\r\n getRow(rowIndex: number, unfiltered?: boolean): Promise<RowItem>;\r\n\r\n /** Sorts the rows based on the value in a specific column */\r\n sort(columnIndex: number, sortDirection: SortDirection): Promise<void>;\r\n\r\n // Column Filtering methods\r\n\r\n /** Apply a filter descriptor collection\r\n */\r\n applyFilterDescriptors?: (filterDescriptors: CompositeFilterDescriptorCollection) => Promise<void>;\r\n\r\n /** Gets distinct values in a column\r\n */\r\n getDistinctValues?: (columnKey: string, maximumValueCount?: number) => Promise<DistinctValueCollection>;\r\n\r\n /** Gets property display value expression\r\n * @alpha\r\n */\r\n getPropertyDisplayValueExpression?: (property: string) => string;\r\n}\r\n\r\n/**\r\n * MutableTableDataProvider provides mutation methods for data in the Table.\r\n * Useful for Drag & Drop processing.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface MutableTableDataProvider extends TableDataProvider {\r\n /** Adds a row to the end */\r\n addRow(rowItem: RowItem): number;\r\n /** Inserts a row at a given row index */\r\n insertRow(rowItem: RowItem, index: number): number;\r\n /** Deletes a row */\r\n deleteRow(rowItem: RowItem): void;\r\n /** Moves a row to a new row index */\r\n moveRow(rowItem: RowItem, newIndex: number): number;\r\n}\r\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Primitives } from "@itwin/appui-abstract";
|
|
5
5
|
import { RowItem } from "../TableDataProvider";
|
|
6
6
|
/** Operator used in FilterDescriptor
|
|
7
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
7
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export declare enum FilterOperator {
|
|
@@ -27,7 +27,7 @@ export declare enum FilterOperator {
|
|
|
27
27
|
IsNotNull = 16
|
|
28
28
|
}
|
|
29
29
|
/** Logical operator used for filter descriptor composition
|
|
30
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
30
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
33
|
export declare enum FilterCompositionLogicalOperator {
|
|
@@ -35,7 +35,7 @@ export declare enum FilterCompositionLogicalOperator {
|
|
|
35
35
|
Or = 1
|
|
36
36
|
}
|
|
37
37
|
/** FilterableTable contains the properties and methods provided by a filterable Table.
|
|
38
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
38
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
41
|
export interface FilterableTable {
|
|
@@ -45,7 +45,7 @@ export interface FilterableTable {
|
|
|
45
45
|
getPropertyDisplayValueExpression(property: string): string;
|
|
46
46
|
}
|
|
47
47
|
/** Represents a column that is filterable.
|
|
48
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
48
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
49
49
|
* @public
|
|
50
50
|
*/
|
|
51
51
|
export interface FilterableColumn {
|
|
@@ -71,7 +71,7 @@ export interface FilterableColumn {
|
|
|
71
71
|
getDistinctValues(maximumValueCount?: number): Promise<DistinctValueCollection>;
|
|
72
72
|
}
|
|
73
73
|
/** A filtering abstraction that knows how to create predicate filtering expression.
|
|
74
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
74
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
75
75
|
* @public
|
|
76
76
|
*/
|
|
77
77
|
export interface FilterDescriptor {
|
|
@@ -88,7 +88,7 @@ export interface FilterDescriptor {
|
|
|
88
88
|
getFilterExpression(): string;
|
|
89
89
|
}
|
|
90
90
|
/** An abstraction for all filter descriptors that have an operator and a value
|
|
91
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
91
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
92
92
|
* @public
|
|
93
93
|
*/
|
|
94
94
|
export interface OperatorValueFilterDescriptor extends FilterDescriptor {
|
|
@@ -104,7 +104,7 @@ export interface OperatorValueFilterDescriptor extends FilterDescriptor {
|
|
|
104
104
|
isCaseSensitive: boolean;
|
|
105
105
|
}
|
|
106
106
|
/** Represents the distinct filter descriptor of a column filter descriptor.
|
|
107
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
107
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
108
108
|
* @public
|
|
109
109
|
*/
|
|
110
110
|
export interface DistinctValuesFilterDescriptor extends FilterDescriptor {
|
|
@@ -124,7 +124,7 @@ export interface DistinctValuesFilterDescriptor extends FilterDescriptor {
|
|
|
124
124
|
distinctValuesComparisonOperator: FilterOperator;
|
|
125
125
|
}
|
|
126
126
|
/** Represents the field filter descriptor of a column filter descriptor.
|
|
127
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
127
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
130
|
export interface FieldFilterDescriptor extends FilterDescriptor {
|
|
@@ -140,7 +140,7 @@ export interface FieldFilterDescriptor extends FilterDescriptor {
|
|
|
140
140
|
logicalOperator: FilterCompositionLogicalOperator;
|
|
141
141
|
}
|
|
142
142
|
/** Represents a column filter descriptor associated with a specific column.
|
|
143
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
143
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
146
146
|
export interface ColumnFilterDescriptor extends FilterDescriptor {
|
|
@@ -150,7 +150,7 @@ export interface ColumnFilterDescriptor extends FilterDescriptor {
|
|
|
150
150
|
fieldFilter: FieldFilterDescriptor;
|
|
151
151
|
}
|
|
152
152
|
/** Distinct Value for Table filtering purposes
|
|
153
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
153
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
154
154
|
* @public
|
|
155
155
|
*/
|
|
156
156
|
export interface TableDistinctValue {
|
|
@@ -158,7 +158,7 @@ export interface TableDistinctValue {
|
|
|
158
158
|
label: string;
|
|
159
159
|
}
|
|
160
160
|
/** A set of distinct values for a column.
|
|
161
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
161
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
162
162
|
* @public
|
|
163
163
|
*/
|
|
164
164
|
export declare class DistinctValueCollection {
|
|
@@ -169,7 +169,7 @@ export declare class DistinctValueCollection {
|
|
|
169
169
|
}
|
|
170
170
|
/** Represents a composite filtering abstraction which has a collection of
|
|
171
171
|
* filter descriptors combined together by a logical operator.
|
|
172
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
172
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
173
173
|
* @public
|
|
174
174
|
*/
|
|
175
175
|
export interface CompositeFilterDescriptor extends FilterDescriptor {
|
|
@@ -179,7 +179,7 @@ export interface CompositeFilterDescriptor extends FilterDescriptor {
|
|
|
179
179
|
filterDescriptorCollection: FilterDescriptorCollection;
|
|
180
180
|
}
|
|
181
181
|
/** Collection of FilterDescriptor objects composed together by a logical operator.
|
|
182
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
182
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
183
183
|
* @public
|
|
184
184
|
*/
|
|
185
185
|
export interface CompositeFilterDescriptorCollection {
|
|
@@ -202,7 +202,7 @@ export interface CompositeFilterDescriptorCollection {
|
|
|
202
202
|
getFilterExpression(): string;
|
|
203
203
|
}
|
|
204
204
|
/** Collection of filter descriptors.
|
|
205
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
205
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
206
206
|
* @public
|
|
207
207
|
*/
|
|
208
208
|
export declare abstract class FilterDescriptorCollectionBase<TDescriptor extends FilterDescriptor> {
|
|
@@ -228,13 +228,13 @@ export declare abstract class FilterDescriptorCollectionBase<TDescriptor extends
|
|
|
228
228
|
get count(): number;
|
|
229
229
|
}
|
|
230
230
|
/** Collection of filter descriptors.
|
|
231
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
231
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
232
232
|
* @public
|
|
233
233
|
*/
|
|
234
234
|
export declare class FilterDescriptorCollection extends FilterDescriptorCollectionBase<FilterDescriptor> {
|
|
235
235
|
}
|
|
236
236
|
/** Collection of OperatorValue filter descriptors.
|
|
237
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
237
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
238
238
|
* @public
|
|
239
239
|
*/
|
|
240
240
|
export declare class OperatorValueFilterDescriptorCollection extends FilterDescriptorCollectionBase<OperatorValueFilterDescriptor> {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.OperatorValueFilterDescriptorCollection = exports.FilterDescriptorCollection = exports.FilterDescriptorCollectionBase = exports.DistinctValueCollection = exports.FilterCompositionLogicalOperator = exports.FilterOperator = void 0;
|
|
8
8
|
/* eslint-disable deprecation/deprecation */
|
|
9
9
|
/** Operator used in FilterDescriptor
|
|
10
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
10
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
var FilterOperator;
|
|
@@ -35,7 +35,7 @@ var FilterOperator;
|
|
|
35
35
|
FilterOperator[FilterOperator["IsNotNull"] = 16] = "IsNotNull";
|
|
36
36
|
})(FilterOperator = exports.FilterOperator || (exports.FilterOperator = {}));
|
|
37
37
|
/** Logical operator used for filter descriptor composition
|
|
38
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
38
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
41
|
var FilterCompositionLogicalOperator;
|
|
@@ -44,7 +44,7 @@ var FilterCompositionLogicalOperator;
|
|
|
44
44
|
FilterCompositionLogicalOperator[FilterCompositionLogicalOperator["Or"] = 1] = "Or";
|
|
45
45
|
})(FilterCompositionLogicalOperator = exports.FilterCompositionLogicalOperator || (exports.FilterCompositionLogicalOperator = {}));
|
|
46
46
|
/** A set of distinct values for a column.
|
|
47
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
47
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
50
|
class DistinctValueCollection {
|
|
@@ -56,7 +56,7 @@ class DistinctValueCollection {
|
|
|
56
56
|
}
|
|
57
57
|
exports.DistinctValueCollection = DistinctValueCollection;
|
|
58
58
|
/** Collection of filter descriptors.
|
|
59
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
59
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
60
60
|
* @public
|
|
61
61
|
*/
|
|
62
62
|
class FilterDescriptorCollectionBase {
|
|
@@ -99,14 +99,14 @@ class FilterDescriptorCollectionBase {
|
|
|
99
99
|
}
|
|
100
100
|
exports.FilterDescriptorCollectionBase = FilterDescriptorCollectionBase;
|
|
101
101
|
/** Collection of filter descriptors.
|
|
102
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
102
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
105
|
class FilterDescriptorCollection extends FilterDescriptorCollectionBase {
|
|
106
106
|
}
|
|
107
107
|
exports.FilterDescriptorCollection = FilterDescriptorCollection;
|
|
108
108
|
/** Collection of OperatorValue filter descriptors.
|
|
109
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
109
|
+
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
class OperatorValueFilterDescriptorCollection extends FilterDescriptorCollectionBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnFiltering.js","sourceRoot":"","sources":["../../../../../src/components-react/table/columnfiltering/ColumnFiltering.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAQ/F,4CAA4C;AAE5C;;;GAGG;AACH,IAAY,cAyBX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,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,KAAK,IAAI,CAAC,EAAE;YACd,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED;OACG;IACI,KAAK;QACV,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED;OACG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED;OACG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;IACjC,CAAC;CACF;AA7CD,wEA6CC;AAED;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,8BAAgD;CAC/F;AADD,gEACC;AAED;;;GAGG;AACH,MAAa,uCAAwC,SAAQ,8BAA6D;CACzH;AADD,0FACC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport { Primitives } from \"@itwin/appui-abstract\";\r\nimport { RowItem } from \"../TableDataProvider\";\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Operator used in FilterDescriptor\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.\r\n * @public\r\n */\r\nexport enum FilterOperator {\r\n // All filterable types\r\n IsEqualTo,\r\n IsNotEqualTo,\r\n\r\n // Numeric types, Date, all types that implement these methods\r\n IsLessThan,\r\n IsLessThanOrEqualTo,\r\n IsGreaterThan,\r\n IsGreaterThanOrEqualTo,\r\n Range,\r\n\r\n // Strings\r\n StartsWith,\r\n EndsWith,\r\n Contains,\r\n DoesNotContain,\r\n IsContainedIn,\r\n IsNotContainedIn,\r\n IsEmpty,\r\n IsNotEmpty,\r\n\r\n // All filterable null-able types\r\n IsNull,\r\n IsNotNull,\r\n}\r\n\r\n/** Logical operator used for filter descriptor composition\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.\r\n * @public\r\n */\r\nexport enum FilterCompositionLogicalOperator {\r\n And,\r\n Or,\r\n}\r\n\r\n/** FilterableTable contains the properties and methods provided by a filterable Table.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FilterableTable {\r\n /** Gets the filter descriptors for the table. */\r\n filterDescriptors: CompositeFilterDescriptorCollection;\r\n\r\n /** Gets ECExpression to get property display value. */\r\n getPropertyDisplayValueExpression(property: string): string;\r\n}\r\n\r\n/** Represents a column that is filterable.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FilterableColumn {\r\n /** Gets the owning Table for this column. */\r\n filterableTable: FilterableTable;\r\n\r\n /** Gets the filter descriptor. */\r\n columnFilterDescriptor: ColumnFilterDescriptor;\r\n\r\n /** Gets the member (key). */\r\n filterMemberKey: string;\r\n\r\n /** Gets the member type. */\r\n filterMemberType: string;\r\n\r\n /** Determines if the filter for this column is active. */\r\n isFilterActive: boolean;\r\n\r\n /** Determines if the filter should show distinct values as a filter option */\r\n showDistinctValueFilters: boolean;\r\n\r\n /** Determines if the filter should show field filter options */\r\n showFieldFilters: boolean;\r\n\r\n /** Determines if the filter is case-sensitive */\r\n filterCaseSensitive: boolean;\r\n\r\n /** Allows the column to create a filter descriptor for use in the filter descriptor collection. */\r\n createSimpleFilterDescriptor(value: any, filterOperator: FilterOperator): OperatorValueFilterDescriptor;\r\n\r\n /** Gets the distinct values within the columns in the table. */\r\n getDistinctValues(maximumValueCount?: number): Promise<DistinctValueCollection>;\r\n}\r\n\r\n/** A filtering abstraction that knows how to create predicate filtering expression.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FilterDescriptor {\r\n /** Gets a value indicating whether this filter is active. */\r\n isActive: boolean;\r\n\r\n /** Clears the filter descriptor and sets it to inactive. */\r\n clear(): void;\r\n\r\n /** Evaluates a row for filtering. */\r\n evaluateRow(row: RowItem): boolean;\r\n\r\n /** Determines if this filter is for a particular column. */\r\n isFilterForColumn(columnKey: string): boolean;\r\n\r\n /** Returns filter as ECExpression.\r\n * @alpha */\r\n getFilterExpression(): string;\r\n}\r\n\r\n/** An abstraction for all filter descriptors that have an operator and a value\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface OperatorValueFilterDescriptor extends FilterDescriptor {\r\n /** Gets the operator for the filter. */\r\n operator: FilterOperator;\r\n\r\n /** Gets the value for the filter. */\r\n value: any;\r\n\r\n /** Gets the member (key). */\r\n memberKey: string;\r\n\r\n /** Gets the member type. */\r\n memberType: string;\r\n\r\n /** Determines if the filtering is case sensitive. */\r\n isCaseSensitive: boolean;\r\n}\r\n\r\n/** Represents the distinct filter descriptor of a column filter descriptor.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface DistinctValuesFilterDescriptor extends FilterDescriptor {\r\n /** Gets the distinct values. */\r\n distinctValues: DistinctValueCollection;\r\n\r\n /** Gets the filter descriptors. */\r\n filterDescriptorCollection: OperatorValueFilterDescriptorCollection;\r\n\r\n /** Tries to find descriptor. */\r\n tryFindDescriptor(distinctValue: any): FilterDescriptor | undefined;\r\n\r\n /** Adds the distinct value. */\r\n addDistinctValue(distinctValue: any): void;\r\n\r\n /** Removes the distinct value. */\r\n removeDistinctValue(distinctValue: any): boolean;\r\n\r\n /** Gets or sets the FilterOperator used for comparing actual data values with checked distinct values.\r\n * The default is FilterOperator.IsEqualTo.\r\n */\r\n distinctValuesComparisonOperator: FilterOperator;\r\n}\r\n\r\n/** Represents the field filter descriptor of a column filter descriptor.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FieldFilterDescriptor extends FilterDescriptor {\r\n\r\n /** Gets the filter descriptors. */\r\n filterDescriptorCollection: OperatorValueFilterDescriptorCollection;\r\n\r\n /** Tries to find descriptor. */\r\n tryFindDescriptor(fieldValue: any, operator: FilterOperator): FilterDescriptor | undefined;\r\n\r\n /** Adds the field value. */\r\n addFieldValue(fieldValue: any, operator: FilterOperator, isCaseSensitive?: boolean): void;\r\n\r\n /** Removes the field value. */\r\n removeFieldValue(fieldValue: any, operator: FilterOperator): boolean;\r\n\r\n /** Gets or sets the logical operator. */\r\n logicalOperator: FilterCompositionLogicalOperator;\r\n}\r\n\r\n/** Represents a column filter descriptor associated with a specific column.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface ColumnFilterDescriptor extends FilterDescriptor {\r\n /** Gets the Distinct Values filter descriptor. */\r\n distinctFilter: DistinctValuesFilterDescriptor;\r\n\r\n /** Gets the Field filter descriptor. */\r\n fieldFilter: FieldFilterDescriptor;\r\n}\r\n\r\n/** Distinct Value for Table filtering purposes\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface TableDistinctValue {\r\n value: Primitives.Value;\r\n label: string;\r\n}\r\n\r\n/** A set of distinct values for a column.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport class DistinctValueCollection {\r\n private _values: TableDistinctValue[];\r\n\r\n constructor() {\r\n this._values = new Array<TableDistinctValue>();\r\n }\r\n\r\n public get values() { return this._values; }\r\n public set values(values: TableDistinctValue[]) { this._values = values; }\r\n}\r\n\r\n/** Represents a composite filtering abstraction which has a collection of\r\n * filter descriptors combined together by a logical operator.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CompositeFilterDescriptor extends FilterDescriptor {\r\n /** Gets or sets the logical operator. */\r\n logicalOperator: FilterCompositionLogicalOperator;\r\n\r\n /** Gets filter descriptors that will be used for composition. */\r\n filterDescriptorCollection: FilterDescriptorCollection;\r\n}\r\n\r\n/** Collection of FilterDescriptor objects composed together by a logical operator.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CompositeFilterDescriptorCollection {\r\n /** Gets the number of filter descriptors in the collection */\r\n count: number;\r\n\r\n /** Gets and sets the logical operator. */\r\n logicalOperator: FilterCompositionLogicalOperator;\r\n\r\n /** Evaluates a row for filtering */\r\n evaluateRow(row: RowItem): boolean;\r\n\r\n /** Determines if a filter is active for a particular column */\r\n isColumnFilterActive(columnKey: string): boolean;\r\n\r\n /** Gets the filter for a particular column */\r\n getColumnFilterDescriptor(columnKey: string): ColumnFilterDescriptor | undefined;\r\n\r\n /** Adds a filter descriptor to the collection */\r\n add(item: FilterDescriptor): void;\r\n\r\n /** Clears the filter descriptor. */\r\n clear(): void;\r\n\r\n /** Returns filter as ECExpression.\r\n * @alpha */\r\n getFilterExpression(): string;\r\n}\r\n\r\n/** Collection of filter descriptors.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport abstract class FilterDescriptorCollectionBase<TDescriptor extends FilterDescriptor> {\r\n private _descriptors: TDescriptor[];\r\n\r\n constructor() {\r\n this._descriptors = new Array<TDescriptor>();\r\n }\r\n\r\n public get descriptors() { return this._descriptors; }\r\n\r\n /** Adds an FilterDescriptor to the collection.\r\n * @param item The FilterDescriptor to add.\r\n */\r\n public add(item: TDescriptor): void {\r\n this.descriptors.push(item);\r\n }\r\n\r\n /** Removes a particular FilterDescriptor from the collection.\r\n * @param item The FilterDescriptor to remove.\r\n */\r\n public remove(item: TDescriptor): boolean {\r\n const index = this.descriptors.indexOf(item);\r\n if (index >= 0) {\r\n this.descriptors.splice(index, 1);\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n /** Clears the collection.\r\n */\r\n public clear(): void {\r\n this.descriptors.splice(0);\r\n }\r\n\r\n /** Determines if the collection is active.\r\n */\r\n public get isActive(): boolean {\r\n return this.descriptors.some((fd: TDescriptor) => fd.isActive);\r\n }\r\n\r\n /** Gets the count of items in the collection.\r\n */\r\n public get count(): number {\r\n return this.descriptors.length;\r\n }\r\n}\r\n\r\n/** Collection of filter descriptors.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport class FilterDescriptorCollection extends FilterDescriptorCollectionBase<FilterDescriptor> {\r\n}\r\n\r\n/** Collection of OperatorValue filter descriptors.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport class OperatorValueFilterDescriptorCollection extends FilterDescriptorCollectionBase<OperatorValueFilterDescriptor> {\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"ColumnFiltering.js","sourceRoot":"","sources":["../../../../../src/components-react/table/columnfiltering/ColumnFiltering.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAQ/F,4CAA4C;AAE5C;;;GAGG;AACH,IAAY,cAyBX;AAzBD,WAAY,cAAc;IACxB,uBAAuB;IACvB,6DAAS,CAAA;IACT,mEAAY,CAAA;IAEZ,8DAA8D;IAC9D,+DAAU,CAAA;IACV,iFAAmB,CAAA;IACnB,qEAAa,CAAA;IACb,uFAAsB,CAAA;IACtB,qDAAK,CAAA;IAEL,UAAU;IACV,+DAAU,CAAA;IACV,2DAAQ,CAAA;IACR,2DAAQ,CAAA;IACR,wEAAc,CAAA;IACd,sEAAa,CAAA;IACb,4EAAgB,CAAA;IAChB,0DAAO,CAAA;IACP,gEAAU,CAAA;IAEV,iCAAiC;IACjC,wDAAM,CAAA;IACN,8DAAS,CA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CAAC,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED;OACG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;IACjC,CAAC;CACF;AA7CD,wEA6CC;AAED;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,8BAAgD;CAC/F;AADD,gEACC;AAED;;;GAGG;AACH,MAAa,uCAAwC,SAAQ,8BAA6D;CACzH;AADD,0FACC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport { Primitives } from \"@itwin/appui-abstract\";\r\nimport { RowItem } from \"../TableDataProvider\";\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Operator used in FilterDescriptor\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.\r\n * @public\r\n */\r\nexport enum FilterOperator {\r\n // All filterable types\r\n IsEqualTo,\r\n IsNotEqualTo,\r\n\r\n // Numeric types, Date, all types that implement these methods\r\n IsLessThan,\r\n IsLessThanOrEqualTo,\r\n IsGreaterThan,\r\n IsGreaterThanOrEqualTo,\r\n Range,\r\n\r\n // Strings\r\n StartsWith,\r\n EndsWith,\r\n Contains,\r\n DoesNotContain,\r\n IsContainedIn,\r\n IsNotContainedIn,\r\n IsEmpty,\r\n IsNotEmpty,\r\n\r\n // All filterable null-able types\r\n IsNull,\r\n IsNotNull,\r\n}\r\n\r\n/** Logical operator used for filter descriptor composition\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.\r\n * @public\r\n */\r\nexport enum FilterCompositionLogicalOperator {\r\n And,\r\n Or,\r\n}\r\n\r\n/** FilterableTable contains the properties and methods provided by a filterable Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FilterableTable {\r\n /** Gets the filter descriptors for the table. */\r\n filterDescriptors: CompositeFilterDescriptorCollection;\r\n\r\n /** Gets ECExpression to get property display value. */\r\n getPropertyDisplayValueExpression(property: string): string;\r\n}\r\n\r\n/** Represents a column that is filterable.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FilterableColumn {\r\n /** Gets the owning Table for this column. */\r\n filterableTable: FilterableTable;\r\n\r\n /** Gets the filter descriptor. */\r\n columnFilterDescriptor: ColumnFilterDescriptor;\r\n\r\n /** Gets the member (key). */\r\n filterMemberKey: string;\r\n\r\n /** Gets the member type. */\r\n filterMemberType: string;\r\n\r\n /** Determines if the filter for this column is active. */\r\n isFilterActive: boolean;\r\n\r\n /** Determines if the filter should show distinct values as a filter option */\r\n showDistinctValueFilters: boolean;\r\n\r\n /** Determines if the filter should show field filter options */\r\n showFieldFilters: boolean;\r\n\r\n /** Determines if the filter is case-sensitive */\r\n filterCaseSensitive: boolean;\r\n\r\n /** Allows the column to create a filter descriptor for use in the filter descriptor collection. */\r\n createSimpleFilterDescriptor(value: any, filterOperator: FilterOperator): OperatorValueFilterDescriptor;\r\n\r\n /** Gets the distinct values within the columns in the table. */\r\n getDistinctValues(maximumValueCount?: number): Promise<DistinctValueCollection>;\r\n}\r\n\r\n/** A filtering abstraction that knows how to create predicate filtering expression.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FilterDescriptor {\r\n /** Gets a value indicating whether this filter is active. */\r\n isActive: boolean;\r\n\r\n /** Clears the filter descriptor and sets it to inactive. */\r\n clear(): void;\r\n\r\n /** Evaluates a row for filtering. */\r\n evaluateRow(row: RowItem): boolean;\r\n\r\n /** Determines if this filter is for a particular column. */\r\n isFilterForColumn(columnKey: string): boolean;\r\n\r\n /** Returns filter as ECExpression.\r\n * @alpha */\r\n getFilterExpression(): string;\r\n}\r\n\r\n/** An abstraction for all filter descriptors that have an operator and a value\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface OperatorValueFilterDescriptor extends FilterDescriptor {\r\n /** Gets the operator for the filter. */\r\n operator: FilterOperator;\r\n\r\n /** Gets the value for the filter. */\r\n value: any;\r\n\r\n /** Gets the member (key). */\r\n memberKey: string;\r\n\r\n /** Gets the member type. */\r\n memberType: string;\r\n\r\n /** Determines if the filtering is case sensitive. */\r\n isCaseSensitive: boolean;\r\n}\r\n\r\n/** Represents the distinct filter descriptor of a column filter descriptor.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface DistinctValuesFilterDescriptor extends FilterDescriptor {\r\n /** Gets the distinct values. */\r\n distinctValues: DistinctValueCollection;\r\n\r\n /** Gets the filter descriptors. */\r\n filterDescriptorCollection: OperatorValueFilterDescriptorCollection;\r\n\r\n /** Tries to find descriptor. */\r\n tryFindDescriptor(distinctValue: any): FilterDescriptor | undefined;\r\n\r\n /** Adds the distinct value. */\r\n addDistinctValue(distinctValue: any): void;\r\n\r\n /** Removes the distinct value. */\r\n removeDistinctValue(distinctValue: any): boolean;\r\n\r\n /** Gets or sets the FilterOperator used for comparing actual data values with checked distinct values.\r\n * The default is FilterOperator.IsEqualTo.\r\n */\r\n distinctValuesComparisonOperator: FilterOperator;\r\n}\r\n\r\n/** Represents the field filter descriptor of a column filter descriptor.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface FieldFilterDescriptor extends FilterDescriptor {\r\n\r\n /** Gets the filter descriptors. */\r\n filterDescriptorCollection: OperatorValueFilterDescriptorCollection;\r\n\r\n /** Tries to find descriptor. */\r\n tryFindDescriptor(fieldValue: any, operator: FilterOperator): FilterDescriptor | undefined;\r\n\r\n /** Adds the field value. */\r\n addFieldValue(fieldValue: any, operator: FilterOperator, isCaseSensitive?: boolean): void;\r\n\r\n /** Removes the field value. */\r\n removeFieldValue(fieldValue: any, operator: FilterOperator): boolean;\r\n\r\n /** Gets or sets the logical operator. */\r\n logicalOperator: FilterCompositionLogicalOperator;\r\n}\r\n\r\n/** Represents a column filter descriptor associated with a specific column.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface ColumnFilterDescriptor extends FilterDescriptor {\r\n /** Gets the Distinct Values filter descriptor. */\r\n distinctFilter: DistinctValuesFilterDescriptor;\r\n\r\n /** Gets the Field filter descriptor. */\r\n fieldFilter: FieldFilterDescriptor;\r\n}\r\n\r\n/** Distinct Value for Table filtering purposes\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface TableDistinctValue {\r\n value: Primitives.Value;\r\n label: string;\r\n}\r\n\r\n/** A set of distinct values for a column.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport class DistinctValueCollection {\r\n private _values: TableDistinctValue[];\r\n\r\n constructor() {\r\n this._values = new Array<TableDistinctValue>();\r\n }\r\n\r\n public get values() { return this._values; }\r\n public set values(values: TableDistinctValue[]) { this._values = values; }\r\n}\r\n\r\n/** Represents a composite filtering abstraction which has a collection of\r\n * filter descriptors combined together by a logical operator.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CompositeFilterDescriptor extends FilterDescriptor {\r\n /** Gets or sets the logical operator. */\r\n logicalOperator: FilterCompositionLogicalOperator;\r\n\r\n /** Gets filter descriptors that will be used for composition. */\r\n filterDescriptorCollection: FilterDescriptorCollection;\r\n}\r\n\r\n/** Collection of FilterDescriptor objects composed together by a logical operator.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CompositeFilterDescriptorCollection {\r\n /** Gets the number of filter descriptors in the collection */\r\n count: number;\r\n\r\n /** Gets and sets the logical operator. */\r\n logicalOperator: FilterCompositionLogicalOperator;\r\n\r\n /** Evaluates a row for filtering */\r\n evaluateRow(row: RowItem): boolean;\r\n\r\n /** Determines if a filter is active for a particular column */\r\n isColumnFilterActive(columnKey: string): boolean;\r\n\r\n /** Gets the filter for a particular column */\r\n getColumnFilterDescriptor(columnKey: string): ColumnFilterDescriptor | undefined;\r\n\r\n /** Adds a filter descriptor to the collection */\r\n add(item: FilterDescriptor): void;\r\n\r\n /** Clears the filter descriptor. */\r\n clear(): void;\r\n\r\n /** Returns filter as ECExpression.\r\n * @alpha */\r\n getFilterExpression(): string;\r\n}\r\n\r\n/** Collection of filter descriptors.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport abstract class FilterDescriptorCollectionBase<TDescriptor extends FilterDescriptor> {\r\n private _descriptors: TDescriptor[];\r\n\r\n constructor() {\r\n this._descriptors = new Array<TDescriptor>();\r\n }\r\n\r\n public get descriptors() { return this._descriptors; }\r\n\r\n /** Adds an FilterDescriptor to the collection.\r\n * @param item The FilterDescriptor to add.\r\n */\r\n public add(item: TDescriptor): void {\r\n this.descriptors.push(item);\r\n }\r\n\r\n /** Removes a particular FilterDescriptor from the collection.\r\n * @param item The FilterDescriptor to remove.\r\n */\r\n public remove(item: TDescriptor): boolean {\r\n const index = this.descriptors.indexOf(item);\r\n if (index >= 0) {\r\n this.descriptors.splice(index, 1);\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n /** Clears the collection.\r\n */\r\n public clear(): void {\r\n this.descriptors.splice(0);\r\n }\r\n\r\n /** Determines if the collection is active.\r\n */\r\n public get isActive(): boolean {\r\n return this.descriptors.some((fd: TDescriptor) => fd.isActive);\r\n }\r\n\r\n /** Gets the count of items in the collection.\r\n */\r\n public get count(): number {\r\n return this.descriptors.length;\r\n }\r\n}\r\n\r\n/** Collection of filter descriptors.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport class FilterDescriptorCollection extends FilterDescriptorCollectionBase<FilterDescriptor> {\r\n}\r\n\r\n/** Collection of OperatorValue filter descriptors.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport class OperatorValueFilterDescriptorCollection extends FilterDescriptorCollectionBase<OperatorValueFilterDescriptor> {\r\n}\r\n"]}
|
|
@@ -5,7 +5,7 @@ import * as React from "react";
|
|
|
5
5
|
import { DragLayerProps } from "./dragdrop/DragDropDef";
|
|
6
6
|
/**
|
|
7
7
|
* React component used to portray a column being dragged during Table column reordering.
|
|
8
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
8
|
+
* @deprecated in 2.x. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
export declare class ColumnDragLayer extends React.Component<DragLayerProps> {
|
|
@@ -34,7 +34,7 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
/**
|
|
36
36
|
* React component used to portray a column being dragged during Table column reordering.
|
|
37
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
37
|
+
* @deprecated in 2.x. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
40
|
class ColumnDragLayer extends React.Component {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnDragLayer.js","sourceRoot":"","sources":["../../../../../src/components-react/table/component/ColumnDragLayer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,4DAAoC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AAC,IAAI,CACR,CACP,CAAC;IACJ,CAAC;CACF;AAlCD,0CAkCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { DragLayerProps } from \"./dragdrop/DragDropDef\";\r\n\r\n/**\r\n * React component used to portray a column being dragged during Table column reordering.\r\n * @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class ColumnDragLayer extends React.Component<DragLayerProps> { // eslint-disable-line deprecation/deprecation\r\n constructor(props: DragLayerProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n if (this.props.args === undefined)\r\n return null;\r\n\r\n const args = this.props.args;\r\n const spos = args.sourceClientOffset || { x: -1000, y: -1000 };\r\n const ispos = args.initialSourceClientOffset || { x: -1000, y: -1000 };\r\n\r\n const data = args.dataObject || /* istanbul ignore next */ {};\r\n const column = data.column || {};\r\n const width = column.width || {};\r\n\r\n const x = spos.x + (column && column.left);\r\n const y = ispos.y;\r\n\r\n const translate = `translate(${x}px, ${y}px)`;\r\n\r\n const dragLayerStyle: React.CSSProperties = {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n width,\r\n ...this.props.style,\r\n };\r\n return (\r\n <div className={classnames(\"components-column-drag-layer\", this.props.className)} style={dragLayerStyle}>\r\n {column.name}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"ColumnDragLayer.js","sourceRoot":"","sources":["../../../../../src/components-react/table/component/ColumnDragLayer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,4DAAoC;AACpC,6CAA+B;AAG/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CAAC;IACJ,CAAC;CACF;AAlCD,0CAkCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Table\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { DragLayerProps } from \"./dragdrop/DragDropDef\";\r\n\r\n/**\r\n * React component used to portray a column being dragged during Table column reordering.\r\n * @deprecated in 2.x. Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class ColumnDragLayer extends React.Component<DragLayerProps> { // eslint-disable-line deprecation/deprecation\r\n constructor(props: DragLayerProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n }\r\n\r\n public override render(): React.ReactNode {\r\n if (this.props.args === undefined)\r\n return null;\r\n\r\n const args = this.props.args;\r\n const spos = args.sourceClientOffset || { x: -1000, y: -1000 };\r\n const ispos = args.initialSourceClientOffset || { x: -1000, y: -1000 };\r\n\r\n const data = args.dataObject || /* istanbul ignore next */ {};\r\n const column = data.column || {};\r\n const width = column.width || {};\r\n\r\n const x = spos.x + (column && column.left);\r\n const y = ispos.y;\r\n\r\n const translate = `translate(${x}px, ${y}px)`;\r\n\r\n const dragLayerStyle: React.CSSProperties = {\r\n transform: translate,\r\n WebkitTransform: translate,\r\n width,\r\n ...this.props.style,\r\n };\r\n return (\r\n <div className={classnames(\"components-column-drag-layer\", this.props.className)} style={dragLayerStyle}>\r\n {column.name}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -13,7 +13,7 @@ import { CellItem, RowItem, TableDataProvider } from "../TableDataProvider";
|
|
|
13
13
|
import { TableColumn } from "./TableColumn";
|
|
14
14
|
/**
|
|
15
15
|
* Specifies table selection target.
|
|
16
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
16
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
19
|
export declare enum TableSelectionTarget {
|
|
@@ -21,7 +21,7 @@ export declare enum TableSelectionTarget {
|
|
|
21
21
|
Cell = 1
|
|
22
22
|
}
|
|
23
23
|
/** Properties for the Table React component
|
|
24
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
24
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
27
27
|
export interface TableProps extends CommonProps {
|
|
@@ -60,7 +60,7 @@ export interface TableProps extends CommonProps {
|
|
|
60
60
|
/** Optional parameter for persistent UI settings. Used for column reordering and show persistency. */
|
|
61
61
|
settingsStorage?: UiStateStorage;
|
|
62
62
|
/** Optional parameter for persistent UI settings. Used for column reordering and show persistency.
|
|
63
|
-
* @deprecated
|
|
63
|
+
* @deprecated in 3.0. Use settingsStorage property */
|
|
64
64
|
uiStateStorage?: UiStateStorage;
|
|
65
65
|
/** Identifying string used for persistent state. */
|
|
66
66
|
settingsIdentifier?: string;
|
|
@@ -87,7 +87,7 @@ export interface TableProps extends CommonProps {
|
|
|
87
87
|
maximumDistinctValues?: number;
|
|
88
88
|
}
|
|
89
89
|
/** Properties for a Table cell
|
|
90
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
90
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
91
91
|
* @public
|
|
92
92
|
*/
|
|
93
93
|
export interface CellProps {
|
|
@@ -98,7 +98,7 @@ export interface CellProps {
|
|
|
98
98
|
}>;
|
|
99
99
|
}
|
|
100
100
|
/** Properties for a Table row
|
|
101
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
101
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
export interface RowProps {
|
|
@@ -111,7 +111,7 @@ export interface RowProps {
|
|
|
111
111
|
style?: React.CSSProperties;
|
|
112
112
|
}
|
|
113
113
|
/** Cell/Property Editor state
|
|
114
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
114
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
115
115
|
* @public
|
|
116
116
|
*/
|
|
117
117
|
export interface TableCellEditorState {
|
|
@@ -121,7 +121,7 @@ export interface TableCellEditorState {
|
|
|
121
121
|
cellKey?: string;
|
|
122
122
|
}
|
|
123
123
|
/** Cell/Property Updated Args
|
|
124
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
124
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
125
125
|
* @public
|
|
126
126
|
*/
|
|
127
127
|
export interface TableCellUpdatedArgs {
|
|
@@ -130,7 +130,7 @@ export interface TableCellUpdatedArgs {
|
|
|
130
130
|
cellKey: string;
|
|
131
131
|
}
|
|
132
132
|
/** Arguments for `TableProps.onCellContextMenu` callback
|
|
133
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
133
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
export interface TableCellContextMenuArgs {
|
|
@@ -165,7 +165,7 @@ declare const enum UpdateStatus {
|
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Table React component that displays rows and columns in a grid along with a header
|
|
168
|
-
* @deprecated Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
168
|
+
* @deprecated in 3.0. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
169
169
|
* @public
|
|
170
170
|
*/
|
|
171
171
|
export declare class Table extends React.Component<TableProps, TableState> {
|