@itwin/components-react 4.0.0-dev.1 → 4.0.0-dev.11
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 +1 -99
- package/lib/cjs/components-react/UiComponents.d.ts +1 -1
- package/lib/cjs/components-react/UiComponents.js +1 -1
- package/lib/cjs/components-react/UiComponents.js.map +1 -1
- package/lib/cjs/components-react/common/ImageRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/common/ImageRenderer.js +1 -0
- package/lib/cjs/components-react/common/ImageRenderer.js.map +1 -1
- package/lib/cjs/components-react/common/selection/SelectionModes.d.ts +2 -2
- package/lib/cjs/components-react/common/selection/SelectionModes.js +2 -2
- package/lib/cjs/components-react/common/selection/SelectionModes.js.map +1 -1
- package/lib/cjs/components-react/converters/TypeConverterManager.d.ts.map +1 -1
- package/lib/cjs/components-react/converters/TypeConverterManager.js +4 -3
- package/lib/cjs/components-react/converters/TypeConverterManager.js.map +1 -1
- package/lib/cjs/components-react/datepicker/DateField.scss +1 -1
- package/lib/cjs/components-react/datepicker/DatePicker.d.ts.map +1 -1
- package/lib/cjs/components-react/datepicker/DatePicker.js +11 -3
- package/lib/cjs/components-react/datepicker/DatePicker.js.map +1 -1
- package/lib/cjs/components-react/datepicker/DatePicker.scss +36 -30
- package/lib/cjs/components-react/datepicker/DatePickerPopupButton.d.ts.map +1 -1
- package/lib/cjs/components-react/datepicker/DatePickerPopupButton.js +2 -1
- package/lib/cjs/components-react/datepicker/DatePickerPopupButton.js.map +1 -1
- package/lib/cjs/components-react/datepicker/DatePickerPopupButton.scss +6 -7
- package/lib/cjs/components-react/datepicker/TimeField.scss +12 -10
- package/lib/cjs/components-react/editors/BooleanEditor.d.ts +1 -0
- package/lib/cjs/components-react/editors/BooleanEditor.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/BooleanEditor.js +9 -14
- package/lib/cjs/components-react/editors/BooleanEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/BooleanEditor.scss +5 -7
- package/lib/cjs/components-react/editors/DateTimeEditor.js +2 -2
- package/lib/cjs/components-react/editors/DateTimeEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/EditorContainer.d.ts +11 -1
- package/lib/cjs/components-react/editors/EditorContainer.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/EditorContainer.js +2 -1
- package/lib/cjs/components-react/editors/EditorContainer.js.map +1 -1
- package/lib/cjs/components-react/editors/EnumButtonGroupEditor.d.ts +1 -0
- package/lib/cjs/components-react/editors/EnumButtonGroupEditor.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/EnumButtonGroupEditor.js +3 -1
- package/lib/cjs/components-react/editors/EnumButtonGroupEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/EnumButtonGroupEditor.scss +30 -72
- package/lib/cjs/components-react/editors/IconEditor.scss +4 -5
- package/lib/cjs/components-react/editors/ImageCheckBoxEditor.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/ImageCheckBoxEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/ImageCheckBoxEditor.scss +6 -5
- package/lib/cjs/components-react/editors/NumericInputEditor.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/NumericInputEditor.js +1 -1
- package/lib/cjs/components-react/editors/NumericInputEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/PopupButton.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/PopupButton.js +5 -3
- package/lib/cjs/components-react/editors/PopupButton.js.map +1 -1
- package/lib/cjs/components-react/editors/PopupButton.scss +24 -28
- package/lib/cjs/components-react/editors/TextEditor.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/TextEditor.js +7 -0
- package/lib/cjs/components-react/editors/TextEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/TextareaEditor.js +1 -1
- package/lib/cjs/components-react/editors/TextareaEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/ToggleEditor.d.ts.map +1 -1
- package/lib/cjs/components-react/editors/ToggleEditor.js +1 -9
- package/lib/cjs/components-react/editors/ToggleEditor.js.map +1 -1
- package/lib/cjs/components-react/editors/ToggleEditor.scss +4 -6
- package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.d.ts +25 -1
- package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.js +24 -2
- package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.scss +3 -10
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.scss +12 -17
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js +1 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.d.ts.map +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.js +1 -1
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.js.map +1 -1
- package/lib/cjs/components-react/filtering/FilteringInput.d.ts.map +1 -1
- package/lib/cjs/components-react/filtering/FilteringInput.js +10 -3
- package/lib/cjs/components-react/filtering/FilteringInput.js.map +1 -1
- package/lib/cjs/components-react/filtering/FilteringInput.scss +2 -11
- package/lib/cjs/components-react/filtering/ResultSelector.d.ts.map +1 -1
- package/lib/cjs/components-react/filtering/ResultSelector.js +6 -2
- package/lib/cjs/components-react/filtering/ResultSelector.js.map +1 -1
- package/lib/cjs/components-react/filtering/ResultSelector.scss +4 -9
- package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts +2 -2
- package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts.map +1 -1
- package/lib/cjs/components-react/iconpicker/IconPickerButton.js +9 -5
- package/lib/cjs/components-react/iconpicker/IconPickerButton.js.map +1 -1
- package/lib/cjs/components-react/iconpicker/IconPickerButton.scss +10 -10
- package/lib/cjs/components-react/inputs/ParsedInput.scss +2 -2
- package/lib/cjs/components-react/properties/ItemStyle.d.ts +2 -2
- package/lib/cjs/components-react/properties/ItemStyle.js +1 -1
- package/lib/cjs/components-react/properties/ItemStyle.js.map +1 -1
- package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.js +1 -1
- package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.js.map +1 -1
- package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +2 -2
- package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.js +1 -1
- package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.js.map +1 -1
- package/lib/cjs/components-react/properties/renderers/PropertyRenderer.js +1 -1
- package/lib/cjs/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
- package/lib/cjs/components-react/properties/renderers/PropertyView.scss +7 -8
- package/lib/cjs/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.js +3 -1
- package/lib/cjs/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.js.map +1 -1
- package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.scss +8 -8
- package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts +2 -0
- package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js.map +1 -1
- package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts +0 -1
- package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts.map +1 -1
- package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js +0 -1
- package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.d.ts +2 -0
- package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.d.ts +0 -9
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.scss +8 -7
- 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 +16 -18
- package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +0 -4
- 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/MutableCustomGridCategory.d.ts +0 -2
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js +0 -6
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +0 -8
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts.map +1 -1
- 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 +0 -6
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +2 -14
- package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js +1 -1
- package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js.map +1 -1
- package/lib/cjs/components-react/selectable-content/SelectableContent.scss +0 -1
- package/lib/cjs/components-react/table/TableDataProvider.d.ts +2 -158
- package/lib/cjs/components-react/table/TableDataProvider.d.ts.map +1 -1
- package/lib/cjs/components-react/table/TableDataProvider.js +2 -17
- package/lib/cjs/components-react/table/TableDataProvider.js.map +1 -1
- package/lib/cjs/components-react/toolbar/Item.scss +20 -51
- package/lib/cjs/components-react/toolbar/Items.scss +13 -12
- package/lib/cjs/components-react/toolbar/Overflow.scss +5 -5
- package/lib/cjs/components-react/toolbar/OverflowPanel.scss +5 -5
- package/lib/cjs/components-react/toolbar/PopupItem.scss +14 -12
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts +0 -17
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js +6 -14
- package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/cjs/components-react/toolbar/_variables.scss +6 -7
- package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.scss +2 -2
- package/lib/cjs/components-react/toolbar/groupPanel/Panel.scss +3 -5
- package/lib/cjs/components-react/toolbar/groupPanel/Title.scss +1 -2
- package/lib/cjs/components-react/toolbar/groupPanel/_variables.scss +1 -1
- package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.scss +15 -45
- package/lib/cjs/components-react/tree/ImageLoader.d.ts +1 -1
- package/lib/cjs/components-react/tree/ImageLoader.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/ImageLoader.js +1 -1
- package/lib/cjs/components-react/tree/ImageLoader.js.map +1 -1
- package/lib/cjs/components-react/tree/SimpleTreeDataProvider.d.ts +1 -3
- package/lib/cjs/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/SimpleTreeDataProvider.js +0 -2
- package/lib/cjs/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
- package/lib/cjs/components-react/tree/TreeDataProvider.d.ts +1 -22
- package/lib/cjs/components-react/tree/TreeDataProvider.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/TreeDataProvider.js +1 -0
- package/lib/cjs/components-react/tree/TreeDataProvider.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/Observable.d.ts +12 -2
- package/lib/cjs/components-react/tree/controlled/Observable.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/Observable.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeHooks.js +2 -4
- package/lib/cjs/components-react/tree/controlled/TreeHooks.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeModel.d.ts +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeModel.js +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeModel.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.d.ts +4 -12
- package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.js +0 -14
- package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.js +1 -2
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.scss +7 -7
- package/lib/cjs/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/NodeContent.js +5 -4
- package/lib/cjs/components-react/tree/controlled/component/NodeContent.js.map +1 -1
- package/lib/cjs/components-react/tree/controlled/component/NodeContent.scss +4 -6
- package/lib/cjs/components-react.d.ts +5 -16
- package/lib/cjs/components-react.d.ts.map +1 -1
- package/lib/cjs/components-react.js +6 -16
- package/lib/cjs/components-react.js.map +1 -1
- package/lib/esm/components-react/UiComponents.d.ts +1 -1
- package/lib/esm/components-react/UiComponents.js +1 -1
- package/lib/esm/components-react/UiComponents.js.map +1 -1
- package/lib/esm/components-react/common/ImageRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/common/ImageRenderer.js +1 -0
- package/lib/esm/components-react/common/ImageRenderer.js.map +1 -1
- package/lib/esm/components-react/common/selection/SelectionModes.d.ts +2 -2
- package/lib/esm/components-react/common/selection/SelectionModes.js +2 -2
- package/lib/esm/components-react/common/selection/SelectionModes.js.map +1 -1
- package/lib/esm/components-react/converters/TypeConverterManager.d.ts.map +1 -1
- package/lib/esm/components-react/converters/TypeConverterManager.js +4 -3
- package/lib/esm/components-react/converters/TypeConverterManager.js.map +1 -1
- package/lib/esm/components-react/datepicker/DateField.scss +1 -1
- package/lib/esm/components-react/datepicker/DatePicker.d.ts.map +1 -1
- package/lib/esm/components-react/datepicker/DatePicker.js +11 -3
- package/lib/esm/components-react/datepicker/DatePicker.js.map +1 -1
- package/lib/esm/components-react/datepicker/DatePicker.scss +36 -30
- package/lib/esm/components-react/datepicker/DatePickerPopupButton.d.ts.map +1 -1
- package/lib/esm/components-react/datepicker/DatePickerPopupButton.js +3 -2
- package/lib/esm/components-react/datepicker/DatePickerPopupButton.js.map +1 -1
- package/lib/esm/components-react/datepicker/DatePickerPopupButton.scss +6 -7
- package/lib/esm/components-react/datepicker/TimeField.scss +12 -10
- package/lib/esm/components-react/editors/BooleanEditor.d.ts +1 -0
- package/lib/esm/components-react/editors/BooleanEditor.d.ts.map +1 -1
- package/lib/esm/components-react/editors/BooleanEditor.js +9 -14
- package/lib/esm/components-react/editors/BooleanEditor.js.map +1 -1
- package/lib/esm/components-react/editors/BooleanEditor.scss +5 -7
- package/lib/esm/components-react/editors/DateTimeEditor.js +2 -2
- package/lib/esm/components-react/editors/DateTimeEditor.js.map +1 -1
- package/lib/esm/components-react/editors/EditorContainer.d.ts +11 -1
- package/lib/esm/components-react/editors/EditorContainer.d.ts.map +1 -1
- package/lib/esm/components-react/editors/EditorContainer.js +2 -1
- package/lib/esm/components-react/editors/EditorContainer.js.map +1 -1
- package/lib/esm/components-react/editors/EnumButtonGroupEditor.d.ts +1 -0
- package/lib/esm/components-react/editors/EnumButtonGroupEditor.d.ts.map +1 -1
- package/lib/esm/components-react/editors/EnumButtonGroupEditor.js +4 -2
- package/lib/esm/components-react/editors/EnumButtonGroupEditor.js.map +1 -1
- package/lib/esm/components-react/editors/EnumButtonGroupEditor.scss +30 -72
- package/lib/esm/components-react/editors/IconEditor.scss +4 -5
- package/lib/esm/components-react/editors/ImageCheckBoxEditor.d.ts.map +1 -1
- package/lib/esm/components-react/editors/ImageCheckBoxEditor.js.map +1 -1
- package/lib/esm/components-react/editors/ImageCheckBoxEditor.scss +6 -5
- package/lib/esm/components-react/editors/NumericInputEditor.d.ts.map +1 -1
- package/lib/esm/components-react/editors/NumericInputEditor.js +1 -1
- package/lib/esm/components-react/editors/NumericInputEditor.js.map +1 -1
- package/lib/esm/components-react/editors/PopupButton.d.ts.map +1 -1
- package/lib/esm/components-react/editors/PopupButton.js +5 -3
- package/lib/esm/components-react/editors/PopupButton.js.map +1 -1
- package/lib/esm/components-react/editors/PopupButton.scss +24 -28
- package/lib/esm/components-react/editors/TextEditor.d.ts.map +1 -1
- package/lib/esm/components-react/editors/TextEditor.js +7 -0
- package/lib/esm/components-react/editors/TextEditor.js.map +1 -1
- package/lib/esm/components-react/editors/TextareaEditor.js +1 -1
- package/lib/esm/components-react/editors/TextareaEditor.js.map +1 -1
- package/lib/esm/components-react/editors/ToggleEditor.d.ts.map +1 -1
- package/lib/esm/components-react/editors/ToggleEditor.js +1 -9
- package/lib/esm/components-react/editors/ToggleEditor.js.map +1 -1
- package/lib/esm/components-react/editors/ToggleEditor.scss +4 -6
- package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.d.ts +25 -1
- package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.js +24 -2
- package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.scss +3 -10
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.scss +12 -17
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js +1 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.d.ts.map +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.js +1 -1
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.js.map +1 -1
- package/lib/esm/components-react/filtering/FilteringInput.d.ts.map +1 -1
- package/lib/esm/components-react/filtering/FilteringInput.js +11 -4
- package/lib/esm/components-react/filtering/FilteringInput.js.map +1 -1
- package/lib/esm/components-react/filtering/FilteringInput.scss +2 -11
- package/lib/esm/components-react/filtering/ResultSelector.d.ts.map +1 -1
- package/lib/esm/components-react/filtering/ResultSelector.js +6 -2
- package/lib/esm/components-react/filtering/ResultSelector.js.map +1 -1
- package/lib/esm/components-react/filtering/ResultSelector.scss +4 -9
- package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts +2 -2
- package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts.map +1 -1
- package/lib/esm/components-react/iconpicker/IconPickerButton.js +10 -6
- package/lib/esm/components-react/iconpicker/IconPickerButton.js.map +1 -1
- package/lib/esm/components-react/iconpicker/IconPickerButton.scss +10 -10
- package/lib/esm/components-react/inputs/ParsedInput.scss +2 -2
- package/lib/esm/components-react/properties/ItemStyle.d.ts +2 -2
- package/lib/esm/components-react/properties/ItemStyle.js +1 -1
- package/lib/esm/components-react/properties/ItemStyle.js.map +1 -1
- package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.js +1 -1
- package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.js.map +1 -1
- package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +2 -2
- package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.js +1 -1
- package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.js.map +1 -1
- package/lib/esm/components-react/properties/renderers/PropertyRenderer.js +1 -1
- package/lib/esm/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
- package/lib/esm/components-react/properties/renderers/PropertyView.scss +7 -8
- package/lib/esm/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.js +3 -1
- package/lib/esm/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.js.map +1 -1
- package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.scss +8 -8
- package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts +2 -0
- package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js.map +1 -1
- package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts +0 -1
- package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts.map +1 -1
- package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js +0 -1
- package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.d.ts +2 -0
- package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.d.ts +0 -9
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.js.map +1 -1
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.scss +8 -7
- 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 +16 -18
- package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +0 -4
- 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/MutableCustomGridCategory.d.ts +0 -2
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js +0 -6
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +0 -8
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts.map +1 -1
- 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 +0 -6
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +2 -14
- package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js +1 -1
- package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js.map +1 -1
- package/lib/esm/components-react/selectable-content/SelectableContent.scss +0 -1
- package/lib/esm/components-react/table/TableDataProvider.d.ts +2 -158
- package/lib/esm/components-react/table/TableDataProvider.d.ts.map +1 -1
- package/lib/esm/components-react/table/TableDataProvider.js +1 -16
- package/lib/esm/components-react/table/TableDataProvider.js.map +1 -1
- package/lib/esm/components-react/toolbar/Item.scss +20 -51
- package/lib/esm/components-react/toolbar/Items.scss +13 -12
- package/lib/esm/components-react/toolbar/Overflow.scss +5 -5
- package/lib/esm/components-react/toolbar/OverflowPanel.scss +5 -5
- package/lib/esm/components-react/toolbar/PopupItem.scss +14 -12
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts +0 -17
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js +9 -14
- package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/esm/components-react/toolbar/_variables.scss +6 -7
- package/lib/esm/components-react/toolbar/groupPanel/BackArrow.scss +2 -2
- package/lib/esm/components-react/toolbar/groupPanel/Panel.scss +3 -5
- package/lib/esm/components-react/toolbar/groupPanel/Title.scss +1 -2
- package/lib/esm/components-react/toolbar/groupPanel/_variables.scss +1 -1
- package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.scss +15 -45
- package/lib/esm/components-react/tree/ImageLoader.d.ts +1 -1
- package/lib/esm/components-react/tree/ImageLoader.d.ts.map +1 -1
- package/lib/esm/components-react/tree/ImageLoader.js +1 -1
- package/lib/esm/components-react/tree/ImageLoader.js.map +1 -1
- package/lib/esm/components-react/tree/SimpleTreeDataProvider.d.ts +1 -3
- package/lib/esm/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
- package/lib/esm/components-react/tree/SimpleTreeDataProvider.js +0 -2
- package/lib/esm/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
- package/lib/esm/components-react/tree/TreeDataProvider.d.ts +1 -22
- package/lib/esm/components-react/tree/TreeDataProvider.d.ts.map +1 -1
- package/lib/esm/components-react/tree/TreeDataProvider.js +1 -0
- package/lib/esm/components-react/tree/TreeDataProvider.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/Observable.d.ts +12 -2
- package/lib/esm/components-react/tree/controlled/Observable.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/Observable.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/TreeHooks.js +2 -4
- package/lib/esm/components-react/tree/controlled/TreeHooks.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/TreeModel.d.ts +1 -1
- package/lib/esm/components-react/tree/controlled/TreeModel.js +1 -1
- package/lib/esm/components-react/tree/controlled/TreeModel.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/TreeNodeLoader.d.ts +4 -12
- package/lib/esm/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/TreeNodeLoader.js +0 -14
- package/lib/esm/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.js +1 -2
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.scss +7 -7
- package/lib/esm/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/NodeContent.js +5 -4
- package/lib/esm/components-react/tree/controlled/component/NodeContent.js.map +1 -1
- package/lib/esm/components-react/tree/controlled/component/NodeContent.scss +4 -6
- package/lib/esm/components-react.d.ts +5 -16
- package/lib/esm/components-react.d.ts.map +1 -1
- package/lib/esm/components-react.js +6 -16
- package/lib/esm/components-react.js.map +1 -1
- package/package.json +25 -51
- package/lib/cjs/components-react/breadcrumb/BeInspireTree.d.ts +0 -263
- package/lib/cjs/components-react/breadcrumb/BeInspireTree.d.ts.map +0 -1
- package/lib/cjs/components-react/breadcrumb/BeInspireTree.js +0 -902
- package/lib/cjs/components-react/breadcrumb/BeInspireTree.js.map +0 -1
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.d.ts +0 -198
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.d.ts.map +0 -1
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.js +0 -652
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.js.map +0 -1
- package/lib/cjs/components-react/breadcrumb/Breadcrumb.scss +0 -197
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.d.ts +0 -66
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.d.ts.map +0 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.js +0 -232
- package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.js.map +0 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.d.ts +0 -36
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.d.ts.map +0 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.js +0 -47
- package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.js.map +0 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts +0 -30
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts.map +0 -1
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.js +0 -136
- package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.js.map +0 -1
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.d.ts +0 -39
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.d.ts.map +0 -1
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.js +0 -91
- package/lib/cjs/components-react/common/showhide/ShowHideDialog.js.map +0 -1
- package/lib/cjs/components-react/common/showhide/ShowHideItem.d.ts +0 -15
- package/lib/cjs/components-react/common/showhide/ShowHideItem.d.ts.map +0 -1
- package/lib/cjs/components-react/common/showhide/ShowHideItem.js +0 -10
- package/lib/cjs/components-react/common/showhide/ShowHideItem.js.map +0 -1
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.d.ts +0 -54
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.d.ts.map +0 -1
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.js +0 -124
- package/lib/cjs/components-react/common/showhide/ShowHideMenu.js.map +0 -1
- package/lib/cjs/components-react/editors/ThemedEnumEditor.d.ts +0 -63
- package/lib/cjs/components-react/editors/ThemedEnumEditor.d.ts.map +0 -1
- package/lib/cjs/components-react/editors/ThemedEnumEditor.js +0 -207
- package/lib/cjs/components-react/editors/ThemedEnumEditor.js.map +0 -1
- package/lib/cjs/components-react/editors/ThemedEnumEditor.scss +0 -83
- package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.scss +0 -11
- package/lib/cjs/components-react/table/SimpleTableDataProvider.d.ts +0 -58
- package/lib/cjs/components-react/table/SimpleTableDataProvider.d.ts.map +0 -1
- package/lib/cjs/components-react/table/SimpleTableDataProvider.js +0 -255
- package/lib/cjs/components-react/table/SimpleTableDataProvider.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.d.ts +0 -242
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.js +0 -115
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.scss +0 -79
- package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts +0 -14
- package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.js +0 -37
- package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.d.ts +0 -88
- package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.js +0 -193
- package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.d.ts +0 -58
- package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.js +0 -104
- package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts +0 -57
- package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.js +0 -364
- package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.d.ts +0 -86
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.js +0 -404
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts +0 -29
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.js +0 -88
- package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts +0 -29
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js +0 -75
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts +0 -5
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js +0 -23
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts +0 -22
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js +0 -88
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts +0 -5
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js +0 -23
- package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts +0 -19
- package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js +0 -184
- package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js.map +0 -1
- package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.scss +0 -36
- package/lib/cjs/components-react/table/component/ColumnDragLayer.d.ts +0 -15
- package/lib/cjs/components-react/table/component/ColumnDragLayer.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/ColumnDragLayer.js +0 -66
- package/lib/cjs/components-react/table/component/ColumnDragLayer.js.map +0 -1
- package/lib/cjs/components-react/table/component/DragDropHeaderCell.d.ts +0 -27
- package/lib/cjs/components-react/table/component/DragDropHeaderCell.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/DragDropHeaderCell.js +0 -102
- package/lib/cjs/components-react/table/component/DragDropHeaderCell.js.map +0 -1
- package/lib/cjs/components-react/table/component/Table.d.ts +0 -308
- package/lib/cjs/components-react/table/component/Table.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/Table.js +0 -1335
- package/lib/cjs/components-react/table/component/Table.js.map +0 -1
- package/lib/cjs/components-react/table/component/Table.scss +0 -201
- package/lib/cjs/components-react/table/component/TableCell.d.ts +0 -101
- package/lib/cjs/components-react/table/component/TableCell.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/TableCell.js +0 -137
- package/lib/cjs/components-react/table/component/TableCell.js.map +0 -1
- package/lib/cjs/components-react/table/component/TableCell.scss +0 -49
- package/lib/cjs/components-react/table/component/TableColumn.d.ts +0 -31
- package/lib/cjs/components-react/table/component/TableColumn.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/TableColumn.js +0 -33
- package/lib/cjs/components-react/table/component/TableColumn.js.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.d.ts +0 -13
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.js +0 -42
- package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.js.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.d.ts +0 -155
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.js +0 -33
- package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.js.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.d.ts +0 -42
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.js +0 -189
- package/lib/cjs/components-react/table/component/dragdrop/withDragSource.js.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.d.ts +0 -36
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.d.ts.map +0 -1
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.js +0 -150
- package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.js.map +0 -1
- package/lib/esm/components-react/breadcrumb/BeInspireTree.d.ts +0 -263
- package/lib/esm/components-react/breadcrumb/BeInspireTree.d.ts.map +0 -1
- package/lib/esm/components-react/breadcrumb/BeInspireTree.js +0 -892
- package/lib/esm/components-react/breadcrumb/BeInspireTree.js.map +0 -1
- package/lib/esm/components-react/breadcrumb/Breadcrumb.d.ts +0 -198
- package/lib/esm/components-react/breadcrumb/Breadcrumb.d.ts.map +0 -1
- package/lib/esm/components-react/breadcrumb/Breadcrumb.js +0 -623
- package/lib/esm/components-react/breadcrumb/Breadcrumb.js.map +0 -1
- package/lib/esm/components-react/breadcrumb/Breadcrumb.scss +0 -197
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.d.ts +0 -66
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.d.ts.map +0 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.js +0 -206
- package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.js.map +0 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.d.ts +0 -36
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.d.ts.map +0 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.js +0 -42
- package/lib/esm/components-react/breadcrumb/BreadcrumbPath.js.map +0 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts +0 -30
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts.map +0 -1
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.js +0 -131
- package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.js.map +0 -1
- package/lib/esm/components-react/common/showhide/ShowHideDialog.d.ts +0 -39
- package/lib/esm/components-react/common/showhide/ShowHideDialog.d.ts.map +0 -1
- package/lib/esm/components-react/common/showhide/ShowHideDialog.js +0 -68
- package/lib/esm/components-react/common/showhide/ShowHideDialog.js.map +0 -1
- package/lib/esm/components-react/common/showhide/ShowHideItem.d.ts +0 -15
- package/lib/esm/components-react/common/showhide/ShowHideItem.d.ts.map +0 -1
- package/lib/esm/components-react/common/showhide/ShowHideItem.js +0 -9
- package/lib/esm/components-react/common/showhide/ShowHideItem.js.map +0 -1
- package/lib/esm/components-react/common/showhide/ShowHideMenu.d.ts +0 -54
- package/lib/esm/components-react/common/showhide/ShowHideMenu.d.ts.map +0 -1
- package/lib/esm/components-react/common/showhide/ShowHideMenu.js +0 -101
- package/lib/esm/components-react/common/showhide/ShowHideMenu.js.map +0 -1
- package/lib/esm/components-react/editors/ThemedEnumEditor.d.ts +0 -63
- package/lib/esm/components-react/editors/ThemedEnumEditor.d.ts.map +0 -1
- package/lib/esm/components-react/editors/ThemedEnumEditor.js +0 -180
- package/lib/esm/components-react/editors/ThemedEnumEditor.js.map +0 -1
- package/lib/esm/components-react/editors/ThemedEnumEditor.scss +0 -83
- package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.scss +0 -11
- package/lib/esm/components-react/table/SimpleTableDataProvider.d.ts +0 -58
- package/lib/esm/components-react/table/SimpleTableDataProvider.d.ts.map +0 -1
- package/lib/esm/components-react/table/SimpleTableDataProvider.js +0 -251
- package/lib/esm/components-react/table/SimpleTableDataProvider.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.d.ts +0 -242
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.js +0 -108
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.scss +0 -79
- package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts +0 -14
- package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.js +0 -33
- package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.d.ts +0 -88
- package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.js +0 -189
- package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.d.ts +0 -58
- package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.js +0 -100
- package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts +0 -57
- package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.js +0 -360
- package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.d.ts +0 -86
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.js +0 -400
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts +0 -29
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.js +0 -84
- package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts +0 -29
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js +0 -49
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts +0 -5
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js +0 -16
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts +0 -22
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js +0 -81
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts +0 -5
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js +0 -16
- package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts +0 -19
- package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js +0 -177
- package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js.map +0 -1
- package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.scss +0 -36
- package/lib/esm/components-react/table/component/ColumnDragLayer.d.ts +0 -15
- package/lib/esm/components-react/table/component/ColumnDragLayer.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/ColumnDragLayer.js +0 -40
- package/lib/esm/components-react/table/component/ColumnDragLayer.js.map +0 -1
- package/lib/esm/components-react/table/component/DragDropHeaderCell.d.ts +0 -27
- package/lib/esm/components-react/table/component/DragDropHeaderCell.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/DragDropHeaderCell.js +0 -76
- package/lib/esm/components-react/table/component/DragDropHeaderCell.js.map +0 -1
- package/lib/esm/components-react/table/component/Table.d.ts +0 -308
- package/lib/esm/components-react/table/component/Table.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/Table.js +0 -1308
- package/lib/esm/components-react/table/component/Table.js.map +0 -1
- package/lib/esm/components-react/table/component/Table.scss +0 -201
- package/lib/esm/components-react/table/component/TableCell.d.ts +0 -101
- package/lib/esm/components-react/table/component/TableCell.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/TableCell.js +0 -109
- package/lib/esm/components-react/table/component/TableCell.js.map +0 -1
- package/lib/esm/components-react/table/component/TableCell.scss +0 -49
- package/lib/esm/components-react/table/component/TableColumn.d.ts +0 -31
- package/lib/esm/components-react/table/component/TableColumn.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/TableColumn.js +0 -29
- package/lib/esm/components-react/table/component/TableColumn.js.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.d.ts +0 -13
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.js +0 -19
- package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.js.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.d.ts +0 -155
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.js +0 -30
- package/lib/esm/components-react/table/component/dragdrop/DragDropDef.js.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.d.ts +0 -42
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.js +0 -166
- package/lib/esm/components-react/table/component/dragdrop/withDragSource.js.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.d.ts +0 -36
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.d.ts.map +0 -1
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.js +0 -127
- package/lib/esm/components-react/table/component/dragdrop/withDropTarget.js.map +0 -1
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Table
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SimpleTableDataProvider = void 0;
|
|
11
|
-
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
12
|
-
const core_react_1 = require("@itwin/core-react");
|
|
13
|
-
const TypeConverterManager_1 = require("../converters/TypeConverterManager");
|
|
14
|
-
const UiComponents_1 = require("../UiComponents");
|
|
15
|
-
const ColumnFiltering_1 = require("./columnfiltering/ColumnFiltering");
|
|
16
|
-
const TableDataProvider_1 = require("./TableDataProvider");
|
|
17
|
-
/* eslint-disable deprecation/deprecation */
|
|
18
|
-
// cSpell:ignore columnfiltering
|
|
19
|
-
/**
|
|
20
|
-
* A Table Data Provider using an array of items.
|
|
21
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
class SimpleTableDataProvider {
|
|
25
|
-
constructor(columns) {
|
|
26
|
-
this._sortDirection = core_react_1.SortDirection.NoSort;
|
|
27
|
-
this._sortColumnIndex = -1;
|
|
28
|
-
/** Event emitted by the data provider when column data changes */
|
|
29
|
-
this.onColumnsChanged = new TableDataProvider_1.TableDataChangeEvent();
|
|
30
|
-
/** Event emitted by the data provider when row data changes */
|
|
31
|
-
this.onRowsChanged = new TableDataProvider_1.TableDataChangeEvent();
|
|
32
|
-
this._columns = columns;
|
|
33
|
-
this._items = [];
|
|
34
|
-
this._rowItemIndices = [];
|
|
35
|
-
this._secondarySortColumnStack = [];
|
|
36
|
-
}
|
|
37
|
-
/** Sets the row items based on an array */
|
|
38
|
-
setItems(items) {
|
|
39
|
-
this._items = items;
|
|
40
|
-
this._rowItemIndices = [];
|
|
41
|
-
this.resetRowIndices();
|
|
42
|
-
this.onRowsChanged.raiseEvent();
|
|
43
|
-
}
|
|
44
|
-
resetRowIndices() {
|
|
45
|
-
this._rowItemIndices.splice(0);
|
|
46
|
-
for (let rowIndex = 0; rowIndex < this._items.length; rowIndex++) {
|
|
47
|
-
this._rowItemIndices.push(rowIndex);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/** Retrieves the column descriptions */
|
|
51
|
-
async getColumns() {
|
|
52
|
-
return this._columns;
|
|
53
|
-
}
|
|
54
|
-
/** Retrieves the row count */
|
|
55
|
-
async getRowsCount() {
|
|
56
|
-
return this._rowItemIndices.length;
|
|
57
|
-
}
|
|
58
|
-
/** Retrieves a specific row by index */
|
|
59
|
-
async getRow(rowIndex, unfiltered) {
|
|
60
|
-
let realRowIndex = -1;
|
|
61
|
-
if (unfiltered) {
|
|
62
|
-
// istanbul ignore else
|
|
63
|
-
if (0 <= rowIndex && rowIndex < this._items.length)
|
|
64
|
-
realRowIndex = rowIndex;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
if (0 <= rowIndex && rowIndex < this._rowItemIndices.length)
|
|
68
|
-
realRowIndex = this.getRowIndexFromFilteredRowIndex(rowIndex);
|
|
69
|
-
}
|
|
70
|
-
if (0 <= realRowIndex && realRowIndex < this._items.length)
|
|
71
|
-
return this._items[realRowIndex];
|
|
72
|
-
throw new appui_abstract_1.UiError(UiComponents_1.UiComponents.loggerCategory(this), `getRow: Invalid row index - ${rowIndex}`);
|
|
73
|
-
}
|
|
74
|
-
getRowIndexFromFilteredRowIndex(filteredRowIndex) {
|
|
75
|
-
// istanbul ignore next
|
|
76
|
-
if (filteredRowIndex === undefined)
|
|
77
|
-
return filteredRowIndex;
|
|
78
|
-
// istanbul ignore next
|
|
79
|
-
if (filteredRowIndex < 0 || filteredRowIndex >= this._rowItemIndices.length)
|
|
80
|
-
return -1;
|
|
81
|
-
return this._rowItemIndices[filteredRowIndex];
|
|
82
|
-
}
|
|
83
|
-
/** Sorts the rows based on the value in a specific column */
|
|
84
|
-
async sort(columnIndex, sortDirection) {
|
|
85
|
-
// istanbul ignore next
|
|
86
|
-
if (columnIndex < 0 || columnIndex >= this._columns.length)
|
|
87
|
-
return;
|
|
88
|
-
this._sortColumnIndex = columnIndex;
|
|
89
|
-
this._sortDirection = sortDirection;
|
|
90
|
-
if (sortDirection === core_react_1.SortDirection.NoSort) {
|
|
91
|
-
if (this._filterDescriptors)
|
|
92
|
-
await this.applyFilterDescriptors(this._filterDescriptors);
|
|
93
|
-
else
|
|
94
|
-
this.resetRowIndices();
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
this._secondarySortColumnStack = [];
|
|
98
|
-
this._secondarySortColumnStack.push(columnIndex);
|
|
99
|
-
// Sort by the column
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
101
|
-
const dataProvider = this;
|
|
102
|
-
this._rowItemIndices.sort((a, b) => {
|
|
103
|
-
return dataProvider.sortDispatcher(dataProvider._items[a], dataProvider._items[b], columnIndex, sortDirection);
|
|
104
|
-
});
|
|
105
|
-
delete this._secondarySortColumnStack;
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
sortDispatcher(a, b, columnIndex, sortDirection) {
|
|
109
|
-
let result = this.sortRows(a, b, columnIndex, sortDirection);
|
|
110
|
-
if (result !== 0)
|
|
111
|
-
return result;
|
|
112
|
-
// Secondary sort column support
|
|
113
|
-
// istanbul ignore else
|
|
114
|
-
const column = this._columns[columnIndex];
|
|
115
|
-
if (this._secondarySortColumnStack !== undefined &&
|
|
116
|
-
column.secondarySortColumn !== undefined &&
|
|
117
|
-
column.secondarySortColumn !== columnIndex &&
|
|
118
|
-
this._secondarySortColumnStack.indexOf(column.secondarySortColumn) < 0) {
|
|
119
|
-
this._secondarySortColumnStack.push(column.secondarySortColumn);
|
|
120
|
-
result = this.sortDispatcher(a, b, column.secondarySortColumn, sortDirection);
|
|
121
|
-
this._secondarySortColumnStack.pop();
|
|
122
|
-
}
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
getPrimitiveValue(record) {
|
|
126
|
-
let primitiveValue;
|
|
127
|
-
const recordValue = record.value;
|
|
128
|
-
// istanbul ignore else
|
|
129
|
-
if (recordValue.valueFormat === appui_abstract_1.PropertyValueFormat.Primitive)
|
|
130
|
-
primitiveValue = recordValue.value;
|
|
131
|
-
return primitiveValue;
|
|
132
|
-
}
|
|
133
|
-
sortRows(a, b, columnIndex, sortDirection) {
|
|
134
|
-
var _a;
|
|
135
|
-
const aCell = a.cells[columnIndex];
|
|
136
|
-
const bCell = b.cells[columnIndex];
|
|
137
|
-
let result = 0;
|
|
138
|
-
const column = this._columns[columnIndex];
|
|
139
|
-
const propertyDescription = column.propertyDescription;
|
|
140
|
-
const valueA = this.getPrimitiveValue(aCell.record);
|
|
141
|
-
const valueB = this.getPrimitiveValue(bCell.record);
|
|
142
|
-
// istanbul ignore else
|
|
143
|
-
if (valueA !== undefined && valueB !== undefined && propertyDescription)
|
|
144
|
-
result = TypeConverterManager_1.TypeConverterManager.getConverter(propertyDescription.typename, (_a = propertyDescription.converter) === null || _a === void 0 ? void 0 : _a.name).sortCompare(valueA, valueB, column.sortIgnoreCase);
|
|
145
|
-
if (sortDirection === core_react_1.SortDirection.Descending)
|
|
146
|
-
result *= -1;
|
|
147
|
-
return result;
|
|
148
|
-
}
|
|
149
|
-
/** Gets distinct values in a column
|
|
150
|
-
* @public
|
|
151
|
-
*/
|
|
152
|
-
async getDistinctValues(columnKey, maximumValueCount) {
|
|
153
|
-
var _a;
|
|
154
|
-
const distinctValues = new ColumnFiltering_1.DistinctValueCollection();
|
|
155
|
-
const columnIndex = this._columns.findIndex((description) => description.key === columnKey);
|
|
156
|
-
if (columnIndex < 0 || columnIndex >= this._columns.length)
|
|
157
|
-
return distinctValues;
|
|
158
|
-
const columnDescription = this._columns[columnIndex];
|
|
159
|
-
const propertyDescription = columnDescription.propertyDescription;
|
|
160
|
-
const uniqueKeysMap = {};
|
|
161
|
-
const uniqueValues = [];
|
|
162
|
-
// istanbul ignore next
|
|
163
|
-
if (!propertyDescription)
|
|
164
|
-
return distinctValues;
|
|
165
|
-
for (const row of this._items) {
|
|
166
|
-
const cell = row.cells[columnIndex];
|
|
167
|
-
const record = cell.record;
|
|
168
|
-
// istanbul ignore next
|
|
169
|
-
if (record === undefined)
|
|
170
|
-
continue;
|
|
171
|
-
const value = this.getPrimitiveValue(record);
|
|
172
|
-
const displayValue = await TypeConverterManager_1.TypeConverterManager
|
|
173
|
-
.getConverter(propertyDescription.typename, (_a = propertyDescription.converter) === null || _a === void 0 ? void 0 : _a.name)
|
|
174
|
-
.convertPropertyToString(propertyDescription, value);
|
|
175
|
-
// istanbul ignore next
|
|
176
|
-
if (value === undefined || typeof displayValue !== "string")
|
|
177
|
-
continue;
|
|
178
|
-
const valueKey = value.toString();
|
|
179
|
-
if (!uniqueKeysMap.hasOwnProperty(valueKey)) {
|
|
180
|
-
const propertyValue = { value, label: displayValue };
|
|
181
|
-
uniqueKeysMap[valueKey] = propertyValue;
|
|
182
|
-
uniqueValues.push(propertyValue);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
distinctValues.values = uniqueValues;
|
|
186
|
-
distinctValues.values.sort((a, b) => {
|
|
187
|
-
var _a;
|
|
188
|
-
if (a.value && b.value)
|
|
189
|
-
return TypeConverterManager_1.TypeConverterManager.getConverter(propertyDescription.typename, (_a = propertyDescription.converter) === null || _a === void 0 ? void 0 : _a.name).sortCompare(a.value, b.value);
|
|
190
|
-
return 0;
|
|
191
|
-
});
|
|
192
|
-
if (maximumValueCount !== undefined && distinctValues.values.length > maximumValueCount)
|
|
193
|
-
distinctValues.values.splice(maximumValueCount);
|
|
194
|
-
return distinctValues;
|
|
195
|
-
}
|
|
196
|
-
/** Apply a filter descriptor collection
|
|
197
|
-
* @public
|
|
198
|
-
*/
|
|
199
|
-
async applyFilterDescriptors(filterDescriptors) {
|
|
200
|
-
this._filterDescriptors = filterDescriptors;
|
|
201
|
-
this._rowItemIndices.splice(0);
|
|
202
|
-
this._items.forEach((row, i) => {
|
|
203
|
-
if (filterDescriptors.evaluateRow(row))
|
|
204
|
-
this._rowItemIndices.push(i);
|
|
205
|
-
});
|
|
206
|
-
if (this._sortDirection !== core_react_1.SortDirection.NoSort) {
|
|
207
|
-
await this.sort(this._sortColumnIndex, this._sortDirection);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
/** Adds a row to the end */
|
|
211
|
-
addRow(rowItem) {
|
|
212
|
-
return this.insertRow(rowItem, -1);
|
|
213
|
-
}
|
|
214
|
-
/** Inserts a row at a given row index */
|
|
215
|
-
insertRow(rowItem, index) {
|
|
216
|
-
let newIdx = index;
|
|
217
|
-
if (index < 0 || index >= this._items.length)
|
|
218
|
-
newIdx = this._items.push(rowItem) - 1;
|
|
219
|
-
else
|
|
220
|
-
this._items.splice(newIdx, 0, rowItem);
|
|
221
|
-
this.resetRowIndices();
|
|
222
|
-
this.onRowsChanged.raiseEvent();
|
|
223
|
-
return newIdx;
|
|
224
|
-
}
|
|
225
|
-
/** Deletes a row */
|
|
226
|
-
deleteRow(rowItem, raiseRowsChangedEvent = true) {
|
|
227
|
-
const rowIndex = this.findRowIndex(rowItem);
|
|
228
|
-
if (rowIndex >= 0) {
|
|
229
|
-
this._items.splice(rowIndex, 1);
|
|
230
|
-
this.resetRowIndices();
|
|
231
|
-
if (raiseRowsChangedEvent)
|
|
232
|
-
this.onRowsChanged.raiseEvent();
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
/** Moves a row to a new row index */
|
|
236
|
-
moveRow(rowItem, newIndex) {
|
|
237
|
-
const oldIndex = this.findRowIndex(rowItem);
|
|
238
|
-
if (oldIndex >= 0) {
|
|
239
|
-
this.deleteRow(rowItem, false);
|
|
240
|
-
if (newIndex > oldIndex)
|
|
241
|
-
newIndex--; // removing the row will shrink the count by 1
|
|
242
|
-
return this.insertRow(rowItem, newIndex);
|
|
243
|
-
}
|
|
244
|
-
return -1;
|
|
245
|
-
}
|
|
246
|
-
findRowIndex(item) {
|
|
247
|
-
for (let i = 0; i < this._items.length; i++) {
|
|
248
|
-
if (item === this._items[i])
|
|
249
|
-
return i;
|
|
250
|
-
}
|
|
251
|
-
return -1;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
exports.SimpleTableDataProvider = SimpleTableDataProvider;
|
|
255
|
-
//# sourceMappingURL=SimpleTableDataProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/SimpleTableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+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C,CAAC,CAAC;YAEhC,IAAI,CAAC,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 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"]}
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Table
|
|
3
|
-
*/
|
|
4
|
-
import { Primitives } from "@itwin/appui-abstract";
|
|
5
|
-
import { RowItem } from "../TableDataProvider";
|
|
6
|
-
/** Operator used in FilterDescriptor
|
|
7
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export declare enum FilterOperator {
|
|
11
|
-
IsEqualTo = 0,
|
|
12
|
-
IsNotEqualTo = 1,
|
|
13
|
-
IsLessThan = 2,
|
|
14
|
-
IsLessThanOrEqualTo = 3,
|
|
15
|
-
IsGreaterThan = 4,
|
|
16
|
-
IsGreaterThanOrEqualTo = 5,
|
|
17
|
-
Range = 6,
|
|
18
|
-
StartsWith = 7,
|
|
19
|
-
EndsWith = 8,
|
|
20
|
-
Contains = 9,
|
|
21
|
-
DoesNotContain = 10,
|
|
22
|
-
IsContainedIn = 11,
|
|
23
|
-
IsNotContainedIn = 12,
|
|
24
|
-
IsEmpty = 13,
|
|
25
|
-
IsNotEmpty = 14,
|
|
26
|
-
IsNull = 15,
|
|
27
|
-
IsNotNull = 16
|
|
28
|
-
}
|
|
29
|
-
/** Logical operator used for filter descriptor composition
|
|
30
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare enum FilterCompositionLogicalOperator {
|
|
34
|
-
And = 0,
|
|
35
|
-
Or = 1
|
|
36
|
-
}
|
|
37
|
-
/** FilterableTable contains the properties and methods provided by a filterable Table.
|
|
38
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
export interface FilterableTable {
|
|
42
|
-
/** Gets the filter descriptors for the table. */
|
|
43
|
-
filterDescriptors: CompositeFilterDescriptorCollection;
|
|
44
|
-
/** Gets ECExpression to get property display value. */
|
|
45
|
-
getPropertyDisplayValueExpression(property: string): string;
|
|
46
|
-
}
|
|
47
|
-
/** Represents a column that is filterable.
|
|
48
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
49
|
-
* @public
|
|
50
|
-
*/
|
|
51
|
-
export interface FilterableColumn {
|
|
52
|
-
/** Gets the owning Table for this column. */
|
|
53
|
-
filterableTable: FilterableTable;
|
|
54
|
-
/** Gets the filter descriptor. */
|
|
55
|
-
columnFilterDescriptor: ColumnFilterDescriptor;
|
|
56
|
-
/** Gets the member (key). */
|
|
57
|
-
filterMemberKey: string;
|
|
58
|
-
/** Gets the member type. */
|
|
59
|
-
filterMemberType: string;
|
|
60
|
-
/** Determines if the filter for this column is active. */
|
|
61
|
-
isFilterActive: boolean;
|
|
62
|
-
/** Determines if the filter should show distinct values as a filter option */
|
|
63
|
-
showDistinctValueFilters: boolean;
|
|
64
|
-
/** Determines if the filter should show field filter options */
|
|
65
|
-
showFieldFilters: boolean;
|
|
66
|
-
/** Determines if the filter is case-sensitive */
|
|
67
|
-
filterCaseSensitive: boolean;
|
|
68
|
-
/** Allows the column to create a filter descriptor for use in the filter descriptor collection. */
|
|
69
|
-
createSimpleFilterDescriptor(value: any, filterOperator: FilterOperator): OperatorValueFilterDescriptor;
|
|
70
|
-
/** Gets the distinct values within the columns in the table. */
|
|
71
|
-
getDistinctValues(maximumValueCount?: number): Promise<DistinctValueCollection>;
|
|
72
|
-
}
|
|
73
|
-
/** A filtering abstraction that knows how to create predicate filtering expression.
|
|
74
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
export interface FilterDescriptor {
|
|
78
|
-
/** Gets a value indicating whether this filter is active. */
|
|
79
|
-
isActive: boolean;
|
|
80
|
-
/** Clears the filter descriptor and sets it to inactive. */
|
|
81
|
-
clear(): void;
|
|
82
|
-
/** Evaluates a row for filtering. */
|
|
83
|
-
evaluateRow(row: RowItem): boolean;
|
|
84
|
-
/** Determines if this filter is for a particular column. */
|
|
85
|
-
isFilterForColumn(columnKey: string): boolean;
|
|
86
|
-
/** Returns filter as ECExpression.
|
|
87
|
-
* @alpha */
|
|
88
|
-
getFilterExpression(): string;
|
|
89
|
-
}
|
|
90
|
-
/** An abstraction for all filter descriptors that have an operator and a value
|
|
91
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
export interface OperatorValueFilterDescriptor extends FilterDescriptor {
|
|
95
|
-
/** Gets the operator for the filter. */
|
|
96
|
-
operator: FilterOperator;
|
|
97
|
-
/** Gets the value for the filter. */
|
|
98
|
-
value: any;
|
|
99
|
-
/** Gets the member (key). */
|
|
100
|
-
memberKey: string;
|
|
101
|
-
/** Gets the member type. */
|
|
102
|
-
memberType: string;
|
|
103
|
-
/** Determines if the filtering is case sensitive. */
|
|
104
|
-
isCaseSensitive: boolean;
|
|
105
|
-
}
|
|
106
|
-
/** Represents the distinct filter descriptor of a column filter descriptor.
|
|
107
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
export interface DistinctValuesFilterDescriptor extends FilterDescriptor {
|
|
111
|
-
/** Gets the distinct values. */
|
|
112
|
-
distinctValues: DistinctValueCollection;
|
|
113
|
-
/** Gets the filter descriptors. */
|
|
114
|
-
filterDescriptorCollection: OperatorValueFilterDescriptorCollection;
|
|
115
|
-
/** Tries to find descriptor. */
|
|
116
|
-
tryFindDescriptor(distinctValue: any): FilterDescriptor | undefined;
|
|
117
|
-
/** Adds the distinct value. */
|
|
118
|
-
addDistinctValue(distinctValue: any): void;
|
|
119
|
-
/** Removes the distinct value. */
|
|
120
|
-
removeDistinctValue(distinctValue: any): boolean;
|
|
121
|
-
/** Gets or sets the FilterOperator used for comparing actual data values with checked distinct values.
|
|
122
|
-
* The default is FilterOperator.IsEqualTo.
|
|
123
|
-
*/
|
|
124
|
-
distinctValuesComparisonOperator: FilterOperator;
|
|
125
|
-
}
|
|
126
|
-
/** Represents the field filter descriptor of a column filter descriptor.
|
|
127
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
128
|
-
* @public
|
|
129
|
-
*/
|
|
130
|
-
export interface FieldFilterDescriptor extends FilterDescriptor {
|
|
131
|
-
/** Gets the filter descriptors. */
|
|
132
|
-
filterDescriptorCollection: OperatorValueFilterDescriptorCollection;
|
|
133
|
-
/** Tries to find descriptor. */
|
|
134
|
-
tryFindDescriptor(fieldValue: any, operator: FilterOperator): FilterDescriptor | undefined;
|
|
135
|
-
/** Adds the field value. */
|
|
136
|
-
addFieldValue(fieldValue: any, operator: FilterOperator, isCaseSensitive?: boolean): void;
|
|
137
|
-
/** Removes the field value. */
|
|
138
|
-
removeFieldValue(fieldValue: any, operator: FilterOperator): boolean;
|
|
139
|
-
/** Gets or sets the logical operator. */
|
|
140
|
-
logicalOperator: FilterCompositionLogicalOperator;
|
|
141
|
-
}
|
|
142
|
-
/** Represents a column filter descriptor associated with a specific column.
|
|
143
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
144
|
-
* @public
|
|
145
|
-
*/
|
|
146
|
-
export interface ColumnFilterDescriptor extends FilterDescriptor {
|
|
147
|
-
/** Gets the Distinct Values filter descriptor. */
|
|
148
|
-
distinctFilter: DistinctValuesFilterDescriptor;
|
|
149
|
-
/** Gets the Field filter descriptor. */
|
|
150
|
-
fieldFilter: FieldFilterDescriptor;
|
|
151
|
-
}
|
|
152
|
-
/** Distinct Value for Table filtering purposes
|
|
153
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
154
|
-
* @public
|
|
155
|
-
*/
|
|
156
|
-
export interface TableDistinctValue {
|
|
157
|
-
value: Primitives.Value;
|
|
158
|
-
label: string;
|
|
159
|
-
}
|
|
160
|
-
/** A set of distinct values for a column.
|
|
161
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
162
|
-
* @public
|
|
163
|
-
*/
|
|
164
|
-
export declare class DistinctValueCollection {
|
|
165
|
-
private _values;
|
|
166
|
-
constructor();
|
|
167
|
-
get values(): TableDistinctValue[];
|
|
168
|
-
set values(values: TableDistinctValue[]);
|
|
169
|
-
}
|
|
170
|
-
/** Represents a composite filtering abstraction which has a collection of
|
|
171
|
-
* filter descriptors combined together by a logical operator.
|
|
172
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
173
|
-
* @public
|
|
174
|
-
*/
|
|
175
|
-
export interface CompositeFilterDescriptor extends FilterDescriptor {
|
|
176
|
-
/** Gets or sets the logical operator. */
|
|
177
|
-
logicalOperator: FilterCompositionLogicalOperator;
|
|
178
|
-
/** Gets filter descriptors that will be used for composition. */
|
|
179
|
-
filterDescriptorCollection: FilterDescriptorCollection;
|
|
180
|
-
}
|
|
181
|
-
/** Collection of FilterDescriptor objects composed together by a logical operator.
|
|
182
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
183
|
-
* @public
|
|
184
|
-
*/
|
|
185
|
-
export interface CompositeFilterDescriptorCollection {
|
|
186
|
-
/** Gets the number of filter descriptors in the collection */
|
|
187
|
-
count: number;
|
|
188
|
-
/** Gets and sets the logical operator. */
|
|
189
|
-
logicalOperator: FilterCompositionLogicalOperator;
|
|
190
|
-
/** Evaluates a row for filtering */
|
|
191
|
-
evaluateRow(row: RowItem): boolean;
|
|
192
|
-
/** Determines if a filter is active for a particular column */
|
|
193
|
-
isColumnFilterActive(columnKey: string): boolean;
|
|
194
|
-
/** Gets the filter for a particular column */
|
|
195
|
-
getColumnFilterDescriptor(columnKey: string): ColumnFilterDescriptor | undefined;
|
|
196
|
-
/** Adds a filter descriptor to the collection */
|
|
197
|
-
add(item: FilterDescriptor): void;
|
|
198
|
-
/** Clears the filter descriptor. */
|
|
199
|
-
clear(): void;
|
|
200
|
-
/** Returns filter as ECExpression.
|
|
201
|
-
* @alpha */
|
|
202
|
-
getFilterExpression(): string;
|
|
203
|
-
}
|
|
204
|
-
/** Collection of filter descriptors.
|
|
205
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
206
|
-
* @public
|
|
207
|
-
*/
|
|
208
|
-
export declare abstract class FilterDescriptorCollectionBase<TDescriptor extends FilterDescriptor> {
|
|
209
|
-
private _descriptors;
|
|
210
|
-
constructor();
|
|
211
|
-
get descriptors(): TDescriptor[];
|
|
212
|
-
/** Adds an FilterDescriptor to the collection.
|
|
213
|
-
* @param item The FilterDescriptor to add.
|
|
214
|
-
*/
|
|
215
|
-
add(item: TDescriptor): void;
|
|
216
|
-
/** Removes a particular FilterDescriptor from the collection.
|
|
217
|
-
* @param item The FilterDescriptor to remove.
|
|
218
|
-
*/
|
|
219
|
-
remove(item: TDescriptor): boolean;
|
|
220
|
-
/** Clears the collection.
|
|
221
|
-
*/
|
|
222
|
-
clear(): void;
|
|
223
|
-
/** Determines if the collection is active.
|
|
224
|
-
*/
|
|
225
|
-
get isActive(): boolean;
|
|
226
|
-
/** Gets the count of items in the collection.
|
|
227
|
-
*/
|
|
228
|
-
get count(): number;
|
|
229
|
-
}
|
|
230
|
-
/** Collection of filter descriptors.
|
|
231
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
232
|
-
* @public
|
|
233
|
-
*/
|
|
234
|
-
export declare class FilterDescriptorCollection extends FilterDescriptorCollectionBase<FilterDescriptor> {
|
|
235
|
-
}
|
|
236
|
-
/** Collection of OperatorValue filter descriptors.
|
|
237
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
238
|
-
* @public
|
|
239
|
-
*/
|
|
240
|
-
export declare class OperatorValueFilterDescriptorCollection extends FilterDescriptorCollectionBase<OperatorValueFilterDescriptor> {
|
|
241
|
-
}
|
|
242
|
-
//# sourceMappingURL=ColumnFiltering.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnFiltering.d.ts","sourceRoot":"","sources":["../../../../../src/components-react/table/columnfiltering/ColumnFiltering.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM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EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAAC;IAEjF,iDAAiD;IACjD,GAAG,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAElC,oCAAoC;IACpC,KAAK,IAAI,IAAI,CAAC;IAEd;gBACY;IACZ,mBAAmB,IAAI,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,8BAAsB,8BAA8B,CAAC,WAAW,SAAS,gBAAgB;IACvF,OAAO,CAAC,YAAY,CAAgB;;IAMpC,IAAW,WAAW,kBAAgC;IAEtD;;OAEG;IACI,GAAG,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAInC;;OAEG;IACI,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO;IASzC;OACG;IACI,KAAK,IAAI,IAAI;IAIpB;OACG;IACH,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;OACG;IACH,IAAW,KAAK,IAAI,MAAM,CAEzB;CACF;AAED;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,8BAA8B,CAAC,gBAAgB,CAAC;CAC/F;AAED;;;GAGG;AACH,qBAAa,uCAAwC,SAAQ,8BAA8B,CAAC,6BAA6B,CAAC;CACzH"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.OperatorValueFilterDescriptorCollection = exports.FilterDescriptorCollection = exports.FilterDescriptorCollectionBase = exports.DistinctValueCollection = exports.FilterCompositionLogicalOperator = exports.FilterOperator = void 0;
|
|
8
|
-
/* eslint-disable deprecation/deprecation */
|
|
9
|
-
/** Operator used in FilterDescriptor
|
|
10
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
var FilterOperator;
|
|
14
|
-
(function (FilterOperator) {
|
|
15
|
-
// All filterable types
|
|
16
|
-
FilterOperator[FilterOperator["IsEqualTo"] = 0] = "IsEqualTo";
|
|
17
|
-
FilterOperator[FilterOperator["IsNotEqualTo"] = 1] = "IsNotEqualTo";
|
|
18
|
-
// Numeric types, Date, all types that implement these methods
|
|
19
|
-
FilterOperator[FilterOperator["IsLessThan"] = 2] = "IsLessThan";
|
|
20
|
-
FilterOperator[FilterOperator["IsLessThanOrEqualTo"] = 3] = "IsLessThanOrEqualTo";
|
|
21
|
-
FilterOperator[FilterOperator["IsGreaterThan"] = 4] = "IsGreaterThan";
|
|
22
|
-
FilterOperator[FilterOperator["IsGreaterThanOrEqualTo"] = 5] = "IsGreaterThanOrEqualTo";
|
|
23
|
-
FilterOperator[FilterOperator["Range"] = 6] = "Range";
|
|
24
|
-
// Strings
|
|
25
|
-
FilterOperator[FilterOperator["StartsWith"] = 7] = "StartsWith";
|
|
26
|
-
FilterOperator[FilterOperator["EndsWith"] = 8] = "EndsWith";
|
|
27
|
-
FilterOperator[FilterOperator["Contains"] = 9] = "Contains";
|
|
28
|
-
FilterOperator[FilterOperator["DoesNotContain"] = 10] = "DoesNotContain";
|
|
29
|
-
FilterOperator[FilterOperator["IsContainedIn"] = 11] = "IsContainedIn";
|
|
30
|
-
FilterOperator[FilterOperator["IsNotContainedIn"] = 12] = "IsNotContainedIn";
|
|
31
|
-
FilterOperator[FilterOperator["IsEmpty"] = 13] = "IsEmpty";
|
|
32
|
-
FilterOperator[FilterOperator["IsNotEmpty"] = 14] = "IsNotEmpty";
|
|
33
|
-
// All filterable null-able types
|
|
34
|
-
FilterOperator[FilterOperator["IsNull"] = 15] = "IsNull";
|
|
35
|
-
FilterOperator[FilterOperator["IsNotNull"] = 16] = "IsNotNull";
|
|
36
|
-
})(FilterOperator = exports.FilterOperator || (exports.FilterOperator = {}));
|
|
37
|
-
/** Logical operator used for filter descriptor composition
|
|
38
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this enum.
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
var FilterCompositionLogicalOperator;
|
|
42
|
-
(function (FilterCompositionLogicalOperator) {
|
|
43
|
-
FilterCompositionLogicalOperator[FilterCompositionLogicalOperator["And"] = 0] = "And";
|
|
44
|
-
FilterCompositionLogicalOperator[FilterCompositionLogicalOperator["Or"] = 1] = "Or";
|
|
45
|
-
})(FilterCompositionLogicalOperator = exports.FilterCompositionLogicalOperator || (exports.FilterCompositionLogicalOperator = {}));
|
|
46
|
-
/** A set of distinct values for a column.
|
|
47
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
class DistinctValueCollection {
|
|
51
|
-
constructor() {
|
|
52
|
-
this._values = new Array();
|
|
53
|
-
}
|
|
54
|
-
get values() { return this._values; }
|
|
55
|
-
set values(values) { this._values = values; }
|
|
56
|
-
}
|
|
57
|
-
exports.DistinctValueCollection = DistinctValueCollection;
|
|
58
|
-
/** Collection of filter descriptors.
|
|
59
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
class FilterDescriptorCollectionBase {
|
|
63
|
-
constructor() {
|
|
64
|
-
this._descriptors = new Array();
|
|
65
|
-
}
|
|
66
|
-
get descriptors() { return this._descriptors; }
|
|
67
|
-
/** Adds an FilterDescriptor to the collection.
|
|
68
|
-
* @param item The FilterDescriptor to add.
|
|
69
|
-
*/
|
|
70
|
-
add(item) {
|
|
71
|
-
this.descriptors.push(item);
|
|
72
|
-
}
|
|
73
|
-
/** Removes a particular FilterDescriptor from the collection.
|
|
74
|
-
* @param item The FilterDescriptor to remove.
|
|
75
|
-
*/
|
|
76
|
-
remove(item) {
|
|
77
|
-
const index = this.descriptors.indexOf(item);
|
|
78
|
-
if (index >= 0) {
|
|
79
|
-
this.descriptors.splice(index, 1);
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
/** Clears the collection.
|
|
85
|
-
*/
|
|
86
|
-
clear() {
|
|
87
|
-
this.descriptors.splice(0);
|
|
88
|
-
}
|
|
89
|
-
/** Determines if the collection is active.
|
|
90
|
-
*/
|
|
91
|
-
get isActive() {
|
|
92
|
-
return this.descriptors.some((fd) => fd.isActive);
|
|
93
|
-
}
|
|
94
|
-
/** Gets the count of items in the collection.
|
|
95
|
-
*/
|
|
96
|
-
get count() {
|
|
97
|
-
return this.descriptors.length;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.FilterDescriptorCollectionBase = FilterDescriptorCollectionBase;
|
|
101
|
-
/** Collection of filter descriptors.
|
|
102
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
class FilterDescriptorCollection extends FilterDescriptorCollectionBase {
|
|
106
|
-
}
|
|
107
|
-
exports.FilterDescriptorCollection = FilterDescriptorCollection;
|
|
108
|
-
/** Collection of OperatorValue filter descriptors.
|
|
109
|
-
* @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
|
|
110
|
-
* @public
|
|
111
|
-
*/
|
|
112
|
-
class OperatorValueFilterDescriptorCollection extends FilterDescriptorCollectionBase {
|
|
113
|
-
}
|
|
114
|
-
exports.OperatorValueFilterDescriptorCollection = OperatorValueFilterDescriptorCollection;
|
|
115
|
-
//# sourceMappingURL=ColumnFiltering.js.map
|