@itwin/grouping-mapping-widget 0.19.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/cjs/WidgetShell/GroupingMapping.d.ts +34 -0
- package/lib/cjs/WidgetShell/GroupingMapping.js +79 -0
- package/lib/cjs/WidgetShell/GroupingMapping.js.map +1 -0
- package/lib/cjs/WidgetShell/GroupingMappingContent.js +51 -0
- package/lib/cjs/WidgetShell/GroupingMappingContent.js.map +1 -0
- package/lib/cjs/WidgetShell/GroupingMappingHeader.js +24 -0
- package/lib/cjs/WidgetShell/GroupingMappingHeader.js.map +1 -0
- package/lib/cjs/WidgetShell/GroupingMappingWidget.d.ts +10 -0
- package/lib/cjs/WidgetShell/GroupingMappingWidget.js +31 -0
- package/lib/cjs/WidgetShell/GroupingMappingWidget.js.map +1 -0
- package/lib/cjs/WidgetShell/Router/GroupingMappingRouter.d.ts +8 -0
- package/lib/cjs/WidgetShell/Router/GroupingMappingRouter.js +107 -0
- package/lib/cjs/WidgetShell/Router/GroupingMappingRouter.js.map +1 -0
- package/lib/cjs/WidgetShell/WidgetHeader/WidgetHeader.js.map +1 -0
- package/lib/cjs/common/utils.d.ts +11 -0
- package/lib/cjs/common/utils.js +89 -0
- package/lib/cjs/common/utils.js.map +1 -0
- package/lib/cjs/common/viewerUtils.d.ts +30 -0
- package/lib/cjs/common/viewerUtils.js +293 -0
- package/lib/cjs/common/viewerUtils.js.map +1 -0
- package/lib/cjs/components/GroupingMappingContext.d.ts +39 -0
- package/lib/cjs/components/GroupingMappingContext.js +123 -0
- package/lib/cjs/components/GroupingMappingContext.js.map +1 -0
- package/lib/cjs/components/Groups/Editing/GroupAction.js +156 -0
- package/lib/cjs/components/Groups/Editing/GroupAction.js.map +1 -0
- package/lib/cjs/components/Groups/Editing/GroupDetails.js +34 -0
- package/lib/cjs/components/Groups/Editing/GroupDetails.js.map +1 -0
- package/lib/cjs/components/Groups/Editing/GroupDetailsActionPanel.js.map +1 -0
- package/lib/cjs/components/Groups/Editing/GroupDetailsStep.js.map +1 -0
- package/lib/cjs/components/Groups/GroupColorLegend.js.map +1 -0
- package/lib/cjs/components/Groups/GroupItem.d.ts +13 -0
- package/lib/cjs/components/Groups/GroupItem.js +23 -0
- package/lib/cjs/components/Groups/GroupItem.js.map +1 -0
- package/lib/cjs/components/Groups/GroupMenuActions.d.ts +14 -0
- package/lib/cjs/components/Groups/GroupMenuActions.js +80 -0
- package/lib/cjs/components/Groups/GroupMenuActions.js.map +1 -0
- package/lib/cjs/components/Groups/GroupOverlapProgressBar.d.ts +11 -0
- package/lib/cjs/components/Groups/GroupOverlapProgressBar.js +18 -0
- package/lib/cjs/components/Groups/GroupOverlapProgressBar.js.map +1 -0
- package/lib/cjs/components/Groups/Groups.d.ts +18 -0
- package/lib/cjs/components/Groups/Groups.js +47 -0
- package/lib/cjs/components/Groups/Groups.js.map +1 -0
- package/lib/cjs/components/Groups/GroupsAddButton.d.ts +10 -0
- package/lib/cjs/components/Groups/GroupsAddButton.js.map +1 -0
- package/lib/cjs/components/Groups/GroupsShowHideButtons.js +45 -0
- package/lib/cjs/components/Groups/GroupsShowHideButtons.js.map +1 -0
- package/lib/cjs/components/Groups/GroupsView.d.ts +43 -0
- package/lib/cjs/components/Groups/GroupsView.js +49 -0
- package/lib/cjs/components/Groups/GroupsView.js.map +1 -0
- package/lib/cjs/components/Groups/GroupsView.scss +53 -0
- package/lib/cjs/components/Groups/GroupsVisualization.js +153 -0
- package/lib/cjs/components/Groups/GroupsVisualization.js.map +1 -0
- package/lib/cjs/components/Groups/GroupsVisualization.scss +18 -0
- package/lib/cjs/components/Groups/GroupsVisualizationActions.js +27 -0
- package/lib/cjs/components/Groups/GroupsVisualizationActions.js.map +1 -0
- package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.d.ts +17 -0
- package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.js +91 -0
- package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.js.map +1 -0
- package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.scss +14 -0
- package/lib/cjs/components/Groups/QueryBuilder/QueryBuilder.js.map +1 -0
- package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderActionPanel.js.map +1 -0
- package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +13 -0
- package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.js +28 -0
- package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -0
- package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderStep.js.map +1 -0
- package/lib/cjs/components/Groups/ToggleGroupVisibility.js.map +1 -0
- package/lib/cjs/components/Groups/groupsHelpers.d.ts +11 -0
- package/lib/cjs/components/Groups/groupsHelpers.js +202 -0
- package/lib/cjs/components/Groups/groupsHelpers.js.map +1 -0
- package/lib/cjs/components/Groups/hooks/useGroupsOperations.d.ts +26 -0
- package/lib/cjs/components/Groups/hooks/useGroupsOperations.js +71 -0
- package/lib/cjs/components/Groups/hooks/useGroupsOperations.js.map +1 -0
- package/lib/cjs/components/Groups/hooks/useVisualization.js +68 -0
- package/lib/cjs/components/Groups/hooks/useVisualization.js.map +1 -0
- package/lib/cjs/components/Mappings/BlockingOverlay.js +20 -0
- package/lib/cjs/components/Mappings/BlockingOverlay.js.map +1 -0
- package/lib/cjs/components/Mappings/ConfirmMappingsImport.js +134 -0
- package/lib/cjs/components/Mappings/ConfirmMappingsImport.js.map +1 -0
- package/lib/cjs/components/Mappings/Editing/MappingAction.js +109 -0
- package/lib/cjs/components/Mappings/Editing/MappingAction.js.map +1 -0
- package/lib/cjs/components/Mappings/Extraction/ExtractionLogCustomFilter.js +42 -0
- package/lib/cjs/components/Mappings/Extraction/ExtractionLogCustomFilter.js.map +1 -0
- package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.d.ts +11 -0
- package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js +129 -0
- package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -0
- package/lib/cjs/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -0
- package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js +125 -0
- package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js.map +1 -0
- package/lib/cjs/components/Mappings/Import/SelectIModel.js +102 -0
- package/lib/cjs/components/Mappings/Import/SelectIModel.js.map +1 -0
- package/lib/cjs/components/Mappings/Import/SelectITwin.js +115 -0
- package/lib/cjs/components/Mappings/Import/SelectITwin.js.map +1 -0
- package/lib/cjs/components/Mappings/Import/SelectMappings.d.ts +16 -0
- package/lib/cjs/components/Mappings/Import/SelectMappings.js +88 -0
- package/lib/cjs/components/Mappings/Import/SelectMappings.js.map +1 -0
- package/lib/cjs/components/Mappings/MappingViewActionGroup.js.map +1 -0
- package/lib/cjs/components/Mappings/Mappings.d.ts +13 -0
- package/lib/cjs/components/Mappings/Mappings.js +45 -0
- package/lib/cjs/components/Mappings/Mappings.js.map +1 -0
- package/lib/cjs/components/Mappings/MappingsView.js +64 -0
- package/lib/cjs/components/Mappings/MappingsView.js.map +1 -0
- package/lib/cjs/components/Mappings/hooks/useMappingsOperations.d.ts +35 -0
- package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js +120 -0
- package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js.map +1 -0
- package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +84 -0
- package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -0
- package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +150 -0
- package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -0
- package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +84 -0
- package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -0
- package/lib/cjs/components/Properties/CalculatedProperties/SharedCalculatedPropertyForms.js.map +1 -0
- package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +12 -0
- package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js +185 -0
- package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -0
- package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js +84 -0
- package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -0
- package/lib/cjs/components/Properties/GroupColorToggle.js +69 -0
- package/lib/cjs/components/Properties/GroupColorToggle.js.map +1 -0
- package/lib/cjs/components/Properties/GroupInformationPanel.js.map +1 -0
- package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js +287 -0
- package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -0
- package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js +81 -0
- package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -0
- package/lib/cjs/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -0
- package/lib/cjs/components/Properties/GroupProperties/SaveModal.js.map +1 -0
- package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.d.ts +8 -0
- package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.js +52 -0
- package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.js.map +1 -0
- package/lib/cjs/components/Properties/PropertyAction.js +99 -0
- package/lib/cjs/components/Properties/PropertyAction.js.map +1 -0
- package/lib/cjs/components/Properties/PropertyMenu.js +60 -0
- package/lib/cjs/components/Properties/PropertyMenu.js.map +1 -0
- package/lib/cjs/components/Properties/PropertyMenuWithVisualization.js.map +1 -0
- package/lib/cjs/components/Properties/PropertyNameCell.js.map +1 -0
- package/lib/cjs/components/Properties/PropertyTable.js +53 -0
- package/lib/cjs/components/Properties/PropertyTable.js.map +1 -0
- package/lib/cjs/components/Properties/PropertyTableToolbar.js.map +1 -0
- package/lib/cjs/components/Properties/hooks/useFetchData.js +43 -0
- package/lib/cjs/components/Properties/hooks/useFetchData.js.map +1 -0
- package/lib/cjs/components/Properties/hooks/useFormulaValidation.d.ts +6 -0
- package/lib/cjs/components/Properties/hooks/useFormulaValidation.js +29 -0
- package/lib/cjs/components/Properties/hooks/useFormulaValidation.js.map +1 -0
- package/lib/cjs/components/Properties/hooks/useValidator.js.map +1 -0
- package/lib/cjs/components/SharedComponents/ActionPanel.js +39 -0
- package/lib/cjs/components/SharedComponents/ActionPanel.js.map +1 -0
- package/lib/cjs/components/SharedComponents/DeleteModal.js +62 -0
- package/lib/cjs/components/SharedComponents/DeleteModal.js.map +1 -0
- package/lib/cjs/components/SharedComponents/EmptyMessage.d.ts +7 -0
- package/lib/cjs/components/SharedComponents/EmptyMessage.js +17 -0
- package/lib/cjs/components/SharedComponents/EmptyMessage.js.map +1 -0
- package/lib/cjs/components/SharedComponents/EmptyMessage.scss +12 -0
- package/lib/cjs/components/SharedComponents/HorizontalTile.d.ts +19 -0
- package/lib/cjs/components/SharedComponents/HorizontalTile.js +27 -0
- package/lib/cjs/components/SharedComponents/HorizontalTile.js.map +1 -0
- package/lib/cjs/components/SharedComponents/HorizontalTile.scss +58 -0
- package/lib/cjs/components/SharedComponents/LoadingOverlay.d.ts +4 -0
- package/lib/cjs/components/SharedComponents/LoadingOverlay.js +19 -0
- package/lib/cjs/components/SharedComponents/LoadingOverlay.js.map +1 -0
- package/lib/cjs/components/SharedComponents/LoadingOverlay.scss +13 -0
- package/lib/cjs/components/SharedComponents/LoadingSpinner.d.ts +4 -0
- package/lib/cjs/components/SharedComponents/LoadingSpinner.js +19 -0
- package/lib/cjs/components/SharedComponents/LoadingSpinner.js.map +1 -0
- package/lib/cjs/components/SharedComponents/LoadingSpinner.scss +8 -0
- package/lib/cjs/components/SharedComponents/StatusIcon.js.map +1 -0
- package/lib/cjs/components/context/ExtractionClientContext.js.map +1 -0
- package/lib/cjs/components/context/GroupHilitedElementsContext.d.ts +38 -0
- package/lib/cjs/components/context/GroupHilitedElementsContext.js +55 -0
- package/lib/cjs/components/context/GroupHilitedElementsContext.js.map +1 -0
- package/lib/cjs/components/context/GroupingApiConfigContext.js.map +1 -0
- package/lib/cjs/components/context/GroupingMappingCustomUIContext.js.map +1 -0
- package/lib/cjs/components/context/IModelsClientContext.js.map +1 -0
- package/lib/cjs/components/context/ITwinsClientContext.js.map +1 -0
- package/lib/cjs/components/context/MappingClientContext.js.map +1 -0
- package/lib/cjs/components/context/PropertiesContext.js.map +1 -0
- package/lib/cjs/components/context/PropertyGridWrapperContext.d.ts +13 -0
- package/lib/cjs/components/context/PropertyGridWrapperContext.js.map +1 -0
- package/lib/cjs/components/customUI/DefaultGroupingUI.js.map +1 -0
- package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js +107 -0
- package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -0
- package/lib/cjs/components/customUI/GroupingMappingCustomUI.js.map +1 -0
- package/lib/cjs/components/customUI/ManualGroupingCustomUI.js +32 -0
- package/lib/cjs/components/customUI/ManualGroupingCustomUI.js.map +1 -0
- package/lib/cjs/components/customUI/SearchGroupingCustomUI.js +98 -0
- package/lib/cjs/components/customUI/SearchGroupingCustomUI.js.map +1 -0
- package/lib/cjs/grouping-mapping-widget.d.ts +23 -23
- package/lib/cjs/grouping-mapping-widget.js +23 -23
- package/lib/cjs/grouping-mapping-widget.js.map +1 -1
- package/lib/cjs/test/GroupPropertyUtils.test.js +1 -1
- package/lib/cjs/test/GroupPropertyUtils.test.js.map +1 -1
- package/lib/cjs/test/GroupingMappingCustomUI.test.js +4 -4
- package/lib/cjs/test/GroupingMappingCustomUI.test.js.map +1 -1
- package/lib/cjs/test/QueryBuilder.test.js +1 -1
- package/lib/cjs/test/QueryBuilder.test.js.map +1 -1
- package/lib/cjs/test/WidgetHeader.test.js +1 -1
- package/lib/cjs/test/WidgetHeader.test.js.map +1 -1
- package/lib/cjs/test/test-utils.js +1 -1
- package/lib/cjs/test/test-utils.js.map +1 -1
- package/lib/esm/WidgetShell/GroupingMapping.d.ts +34 -0
- package/lib/esm/WidgetShell/GroupingMapping.js +57 -0
- package/lib/esm/WidgetShell/GroupingMapping.js.map +1 -0
- package/lib/esm/WidgetShell/GroupingMappingContent.js +28 -0
- package/lib/esm/WidgetShell/GroupingMappingContent.js.map +1 -0
- package/lib/esm/WidgetShell/GroupingMappingHeader.js +17 -0
- package/lib/esm/WidgetShell/GroupingMappingHeader.js.map +1 -0
- package/lib/esm/WidgetShell/GroupingMappingWidget.d.ts +10 -0
- package/lib/esm/WidgetShell/GroupingMappingWidget.js +24 -0
- package/lib/esm/WidgetShell/GroupingMappingWidget.js.map +1 -0
- package/lib/esm/WidgetShell/Router/GroupingMappingRouter.d.ts +8 -0
- package/lib/esm/WidgetShell/Router/GroupingMappingRouter.js +100 -0
- package/lib/esm/WidgetShell/Router/GroupingMappingRouter.js.map +1 -0
- package/lib/esm/WidgetShell/WidgetHeader/WidgetHeader.js.map +1 -0
- package/lib/esm/common/utils.d.ts +11 -0
- package/lib/esm/common/utils.js +80 -0
- package/lib/esm/common/utils.js.map +1 -0
- package/lib/esm/common/viewerUtils.d.ts +30 -0
- package/lib/esm/common/viewerUtils.js +268 -0
- package/lib/esm/common/viewerUtils.js.map +1 -0
- package/lib/esm/components/GroupingMappingContext.d.ts +39 -0
- package/lib/esm/components/GroupingMappingContext.js +100 -0
- package/lib/esm/components/GroupingMappingContext.js.map +1 -0
- package/lib/esm/components/Groups/Editing/GroupAction.js +130 -0
- package/lib/esm/components/Groups/Editing/GroupAction.js.map +1 -0
- package/lib/esm/components/Groups/Editing/GroupDetails.js +27 -0
- package/lib/esm/components/Groups/Editing/GroupDetails.js.map +1 -0
- package/lib/esm/components/Groups/Editing/GroupDetailsActionPanel.js.map +1 -0
- package/lib/esm/components/Groups/Editing/GroupDetailsStep.js.map +1 -0
- package/lib/esm/components/Groups/GroupColorLegend.js.map +1 -0
- package/lib/esm/components/Groups/GroupItem.d.ts +13 -0
- package/lib/esm/components/Groups/GroupItem.js +16 -0
- package/lib/esm/components/Groups/GroupItem.js.map +1 -0
- package/lib/esm/components/Groups/GroupMenuActions.d.ts +14 -0
- package/lib/esm/components/Groups/GroupMenuActions.js +57 -0
- package/lib/esm/components/Groups/GroupMenuActions.js.map +1 -0
- package/lib/esm/components/Groups/GroupOverlapProgressBar.d.ts +11 -0
- package/lib/esm/components/Groups/GroupOverlapProgressBar.js +11 -0
- package/lib/esm/components/Groups/GroupOverlapProgressBar.js.map +1 -0
- package/lib/esm/components/Groups/Groups.d.ts +18 -0
- package/lib/esm/components/Groups/Groups.js +24 -0
- package/lib/esm/components/Groups/Groups.js.map +1 -0
- package/lib/esm/components/Groups/GroupsAddButton.d.ts +10 -0
- package/lib/esm/components/Groups/GroupsAddButton.js.map +1 -0
- package/lib/esm/components/Groups/GroupsShowHideButtons.js +22 -0
- package/lib/esm/components/Groups/GroupsShowHideButtons.js.map +1 -0
- package/lib/esm/components/Groups/GroupsView.d.ts +43 -0
- package/lib/esm/components/Groups/GroupsView.js +42 -0
- package/lib/esm/components/Groups/GroupsView.js.map +1 -0
- package/lib/esm/components/Groups/GroupsView.scss +53 -0
- package/lib/esm/components/Groups/GroupsVisualization.js +130 -0
- package/lib/esm/components/Groups/GroupsVisualization.js.map +1 -0
- package/lib/esm/components/Groups/GroupsVisualization.scss +18 -0
- package/lib/esm/components/Groups/GroupsVisualizationActions.js +20 -0
- package/lib/esm/components/Groups/GroupsVisualizationActions.js.map +1 -0
- package/lib/esm/components/Groups/OverlappedElementsInformationPanel.d.ts +17 -0
- package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js +84 -0
- package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js.map +1 -0
- package/lib/esm/components/Groups/OverlappedElementsInformationPanel.scss +14 -0
- package/lib/esm/components/Groups/QueryBuilder/QueryBuilder.js.map +1 -0
- package/lib/esm/components/Groups/QueryBuilder/QueryBuilderActionPanel.js.map +1 -0
- package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +13 -0
- package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js +21 -0
- package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -0
- package/lib/esm/components/Groups/QueryBuilder/QueryBuilderStep.js.map +1 -0
- package/lib/esm/components/Groups/ToggleGroupVisibility.js.map +1 -0
- package/lib/esm/components/Groups/groupsHelpers.d.ts +11 -0
- package/lib/esm/components/Groups/groupsHelpers.js +192 -0
- package/lib/esm/components/Groups/groupsHelpers.js.map +1 -0
- package/lib/esm/components/Groups/hooks/useGroupsOperations.d.ts +26 -0
- package/lib/esm/components/Groups/hooks/useGroupsOperations.js +67 -0
- package/lib/esm/components/Groups/hooks/useGroupsOperations.js.map +1 -0
- package/lib/esm/components/Groups/hooks/useVisualization.js +64 -0
- package/lib/esm/components/Groups/hooks/useVisualization.js.map +1 -0
- package/lib/esm/components/Mappings/BlockingOverlay.js +13 -0
- package/lib/esm/components/Mappings/BlockingOverlay.js.map +1 -0
- package/lib/esm/components/Mappings/ConfirmMappingsImport.js +113 -0
- package/lib/esm/components/Mappings/ConfirmMappingsImport.js.map +1 -0
- package/lib/esm/components/Mappings/Editing/MappingAction.js +83 -0
- package/lib/esm/components/Mappings/Editing/MappingAction.js.map +1 -0
- package/lib/esm/components/Mappings/Extraction/ExtractionLogCustomFilter.js +19 -0
- package/lib/esm/components/Mappings/Extraction/ExtractionLogCustomFilter.js.map +1 -0
- package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.d.ts +11 -0
- package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js +106 -0
- package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -0
- package/lib/esm/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -0
- package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js +99 -0
- package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js.map +1 -0
- package/lib/esm/components/Mappings/Import/SelectIModel.js +81 -0
- package/lib/esm/components/Mappings/Import/SelectIModel.js.map +1 -0
- package/lib/esm/components/Mappings/Import/SelectITwin.js +94 -0
- package/lib/esm/components/Mappings/Import/SelectITwin.js.map +1 -0
- package/lib/esm/components/Mappings/Import/SelectMappings.d.ts +16 -0
- package/lib/esm/components/Mappings/Import/SelectMappings.js +67 -0
- package/lib/esm/components/Mappings/Import/SelectMappings.js.map +1 -0
- package/lib/esm/components/Mappings/MappingViewActionGroup.js.map +1 -0
- package/lib/esm/components/Mappings/Mappings.d.ts +13 -0
- package/lib/esm/components/Mappings/Mappings.js +22 -0
- package/lib/esm/components/Mappings/Mappings.js.map +1 -0
- package/lib/esm/components/Mappings/MappingsView.js +57 -0
- package/lib/esm/components/Mappings/MappingsView.js.map +1 -0
- package/lib/esm/components/Mappings/hooks/useMappingsOperations.d.ts +35 -0
- package/lib/esm/components/Mappings/hooks/useMappingsOperations.js +116 -0
- package/lib/esm/components/Mappings/hooks/useMappingsOperations.js.map +1 -0
- package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +58 -0
- package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -0
- package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +124 -0
- package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -0
- package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +61 -0
- package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -0
- package/lib/esm/components/Properties/CalculatedProperties/SharedCalculatedPropertyForms.js.map +1 -0
- package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +12 -0
- package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js +159 -0
- package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -0
- package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js +61 -0
- package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -0
- package/lib/esm/components/Properties/GroupColorToggle.js +46 -0
- package/lib/esm/components/Properties/GroupColorToggle.js.map +1 -0
- package/lib/esm/components/Properties/GroupInformationPanel.js.map +1 -0
- package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js +261 -0
- package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -0
- package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js +58 -0
- package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -0
- package/lib/esm/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -0
- package/lib/esm/components/Properties/GroupProperties/SaveModal.js.map +1 -0
- package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.d.ts +8 -0
- package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.js +31 -0
- package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.js.map +1 -0
- package/lib/esm/components/Properties/PropertyAction.js +76 -0
- package/lib/esm/components/Properties/PropertyAction.js.map +1 -0
- package/lib/esm/components/Properties/PropertyMenu.js +37 -0
- package/lib/esm/components/Properties/PropertyMenu.js.map +1 -0
- package/lib/esm/components/Properties/PropertyMenuWithVisualization.js.map +1 -0
- package/lib/esm/components/Properties/PropertyNameCell.js.map +1 -0
- package/lib/esm/components/Properties/PropertyTable.js +27 -0
- package/lib/esm/components/Properties/PropertyTable.js.map +1 -0
- package/lib/esm/components/Properties/PropertyTableToolbar.js.map +1 -0
- package/lib/esm/components/Properties/hooks/useFetchData.js +37 -0
- package/lib/esm/components/Properties/hooks/useFetchData.js.map +1 -0
- package/lib/esm/components/Properties/hooks/useFormulaValidation.d.ts +6 -0
- package/lib/esm/components/Properties/hooks/useFormulaValidation.js +25 -0
- package/lib/esm/components/Properties/hooks/useFormulaValidation.js.map +1 -0
- package/lib/esm/components/Properties/hooks/useValidator.js.map +1 -0
- package/lib/esm/components/SharedComponents/ActionPanel.js +18 -0
- package/lib/esm/components/SharedComponents/ActionPanel.js.map +1 -0
- package/lib/esm/components/SharedComponents/DeleteModal.js +39 -0
- package/lib/esm/components/SharedComponents/DeleteModal.js.map +1 -0
- package/lib/esm/components/SharedComponents/EmptyMessage.d.ts +7 -0
- package/lib/esm/components/SharedComponents/EmptyMessage.js +10 -0
- package/lib/esm/components/SharedComponents/EmptyMessage.js.map +1 -0
- package/lib/esm/components/SharedComponents/EmptyMessage.scss +12 -0
- package/lib/esm/components/SharedComponents/HorizontalTile.d.ts +19 -0
- package/lib/esm/components/SharedComponents/HorizontalTile.js +20 -0
- package/lib/esm/components/SharedComponents/HorizontalTile.js.map +1 -0
- package/lib/esm/components/SharedComponents/HorizontalTile.scss +58 -0
- package/lib/esm/components/SharedComponents/LoadingOverlay.d.ts +4 -0
- package/lib/esm/components/SharedComponents/LoadingOverlay.js +12 -0
- package/lib/esm/components/SharedComponents/LoadingOverlay.js.map +1 -0
- package/lib/esm/components/SharedComponents/LoadingOverlay.scss +13 -0
- package/lib/esm/components/SharedComponents/LoadingSpinner.d.ts +4 -0
- package/lib/esm/components/SharedComponents/LoadingSpinner.js +12 -0
- package/lib/esm/components/SharedComponents/LoadingSpinner.js.map +1 -0
- package/lib/esm/components/SharedComponents/LoadingSpinner.scss +8 -0
- package/lib/esm/components/SharedComponents/StatusIcon.js.map +1 -0
- package/lib/esm/components/context/ExtractionClientContext.js.map +1 -0
- package/lib/esm/components/context/GroupHilitedElementsContext.d.ts +38 -0
- package/lib/esm/components/context/GroupHilitedElementsContext.js +32 -0
- package/lib/esm/components/context/GroupHilitedElementsContext.js.map +1 -0
- package/lib/esm/components/context/GroupingApiConfigContext.js.map +1 -0
- package/lib/esm/components/context/GroupingMappingCustomUIContext.js.map +1 -0
- package/lib/esm/components/context/IModelsClientContext.js.map +1 -0
- package/lib/esm/components/context/ITwinsClientContext.js.map +1 -0
- package/lib/esm/components/context/MappingClientContext.js.map +1 -0
- package/lib/esm/components/context/PropertiesContext.js.map +1 -0
- package/lib/esm/components/context/PropertyGridWrapperContext.d.ts +13 -0
- package/lib/esm/components/context/PropertyGridWrapperContext.js.map +1 -0
- package/lib/esm/components/customUI/DefaultGroupingUI.js.map +1 -0
- package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js +84 -0
- package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -0
- package/lib/esm/components/customUI/GroupingMappingCustomUI.js.map +1 -0
- package/lib/esm/components/customUI/ManualGroupingCustomUI.js +25 -0
- package/lib/esm/components/customUI/ManualGroupingCustomUI.js.map +1 -0
- package/lib/esm/components/customUI/SearchGroupingCustomUI.js +91 -0
- package/lib/esm/components/customUI/SearchGroupingCustomUI.js.map +1 -0
- package/lib/esm/grouping-mapping-widget.d.ts +23 -23
- package/lib/esm/grouping-mapping-widget.js +23 -23
- package/lib/esm/grouping-mapping-widget.js.map +1 -1
- package/lib/esm/test/GroupPropertyUtils.test.js +1 -1
- package/lib/esm/test/GroupPropertyUtils.test.js.map +1 -1
- package/lib/esm/test/GroupingMappingCustomUI.test.js +4 -4
- package/lib/esm/test/GroupingMappingCustomUI.test.js.map +1 -1
- package/lib/esm/test/QueryBuilder.test.js +1 -1
- package/lib/esm/test/QueryBuilder.test.js.map +1 -1
- package/lib/esm/test/WidgetHeader.test.js +1 -1
- package/lib/esm/test/WidgetHeader.test.js.map +1 -1
- package/lib/esm/test/test-utils.js +1 -1
- package/lib/esm/test/test-utils.js.map +1 -1
- package/package.json +2 -2
- package/lib/cjs/widget/GroupingMappingWidget.d.ts +0 -10
- package/lib/cjs/widget/GroupingMappingWidget.js +0 -31
- package/lib/cjs/widget/GroupingMappingWidget.js.map +0 -1
- package/lib/cjs/widget/components/ActionPanel.js +0 -39
- package/lib/cjs/widget/components/ActionPanel.js.map +0 -1
- package/lib/cjs/widget/components/BlockingOverlay.js +0 -20
- package/lib/cjs/widget/components/BlockingOverlay.js.map +0 -1
- package/lib/cjs/widget/components/CalculatedPropertyAction.js +0 -84
- package/lib/cjs/widget/components/CalculatedPropertyAction.js.map +0 -1
- package/lib/cjs/widget/components/CalculatedPropertyActionWithVisuals.js +0 -150
- package/lib/cjs/widget/components/CalculatedPropertyActionWithVisuals.js.map +0 -1
- package/lib/cjs/widget/components/CalculatedPropertyTable.js +0 -84
- package/lib/cjs/widget/components/CalculatedPropertyTable.js.map +0 -1
- package/lib/cjs/widget/components/ConfirmMappingsImport.js +0 -134
- package/lib/cjs/widget/components/ConfirmMappingsImport.js.map +0 -1
- package/lib/cjs/widget/components/CustomCalculationAction.d.ts +0 -13
- package/lib/cjs/widget/components/CustomCalculationAction.js +0 -186
- package/lib/cjs/widget/components/CustomCalculationAction.js.map +0 -1
- package/lib/cjs/widget/components/CustomCalculationTable.js +0 -84
- package/lib/cjs/widget/components/CustomCalculationTable.js.map +0 -1
- package/lib/cjs/widget/components/DeleteModal.js +0 -61
- package/lib/cjs/widget/components/DeleteModal.js.map +0 -1
- package/lib/cjs/widget/components/ExtractionLogCustomFilter.js +0 -42
- package/lib/cjs/widget/components/ExtractionLogCustomFilter.js.map +0 -1
- package/lib/cjs/widget/components/ExtractionMessageModal.d.ts +0 -11
- package/lib/cjs/widget/components/ExtractionMessageModal.js +0 -87
- package/lib/cjs/widget/components/ExtractionMessageModal.js.map +0 -1
- package/lib/cjs/widget/components/ExtractionStatusIcon.js.map +0 -1
- package/lib/cjs/widget/components/GroupAction.js +0 -155
- package/lib/cjs/widget/components/GroupAction.js.map +0 -1
- package/lib/cjs/widget/components/GroupColorLegend.js.map +0 -1
- package/lib/cjs/widget/components/GroupColorToggle.js +0 -69
- package/lib/cjs/widget/components/GroupColorToggle.js.map +0 -1
- package/lib/cjs/widget/components/GroupDetails.js +0 -34
- package/lib/cjs/widget/components/GroupDetails.js.map +0 -1
- package/lib/cjs/widget/components/GroupDetailsActionPanel.js.map +0 -1
- package/lib/cjs/widget/components/GroupDetailsStep.js.map +0 -1
- package/lib/cjs/widget/components/GroupInformationPanel.js.map +0 -1
- package/lib/cjs/widget/components/GroupItem.d.ts +0 -12
- package/lib/cjs/widget/components/GroupItem.js +0 -19
- package/lib/cjs/widget/components/GroupItem.js.map +0 -1
- package/lib/cjs/widget/components/GroupMenuActions.d.ts +0 -13
- package/lib/cjs/widget/components/GroupMenuActions.js +0 -68
- package/lib/cjs/widget/components/GroupMenuActions.js.map +0 -1
- package/lib/cjs/widget/components/GroupPropertyAction.js +0 -287
- package/lib/cjs/widget/components/GroupPropertyAction.js.map +0 -1
- package/lib/cjs/widget/components/GroupPropertyTable.js +0 -81
- package/lib/cjs/widget/components/GroupPropertyTable.js.map +0 -1
- package/lib/cjs/widget/components/GroupPropertyUtils.js.map +0 -1
- package/lib/cjs/widget/components/GroupingMapping.d.ts +0 -34
- package/lib/cjs/widget/components/GroupingMapping.js +0 -79
- package/lib/cjs/widget/components/GroupingMapping.js.map +0 -1
- package/lib/cjs/widget/components/GroupingMappingContent.js +0 -51
- package/lib/cjs/widget/components/GroupingMappingContent.js.map +0 -1
- package/lib/cjs/widget/components/GroupingMappingContext.d.ts +0 -40
- package/lib/cjs/widget/components/GroupingMappingContext.js +0 -109
- package/lib/cjs/widget/components/GroupingMappingContext.js.map +0 -1
- package/lib/cjs/widget/components/GroupingMappingHeader.js +0 -24
- package/lib/cjs/widget/components/GroupingMappingHeader.js.map +0 -1
- package/lib/cjs/widget/components/GroupingMappingRouter.d.ts +0 -8
- package/lib/cjs/widget/components/GroupingMappingRouter.js +0 -107
- package/lib/cjs/widget/components/GroupingMappingRouter.js.map +0 -1
- package/lib/cjs/widget/components/Groups.d.ts +0 -16
- package/lib/cjs/widget/components/Groups.js +0 -46
- package/lib/cjs/widget/components/Groups.js.map +0 -1
- package/lib/cjs/widget/components/GroupsAddButton.d.ts +0 -10
- package/lib/cjs/widget/components/GroupsAddButton.js.map +0 -1
- package/lib/cjs/widget/components/GroupsShowHideButtons.js +0 -45
- package/lib/cjs/widget/components/GroupsShowHideButtons.js.map +0 -1
- package/lib/cjs/widget/components/GroupsView.d.ts +0 -31
- package/lib/cjs/widget/components/GroupsView.js +0 -37
- package/lib/cjs/widget/components/GroupsView.js.map +0 -1
- package/lib/cjs/widget/components/GroupsView.scss +0 -49
- package/lib/cjs/widget/components/GroupsVisualization.js +0 -141
- package/lib/cjs/widget/components/GroupsVisualization.js.map +0 -1
- package/lib/cjs/widget/components/GroupsVisualization.scss +0 -12
- package/lib/cjs/widget/components/GroupsVisualizationActions.js +0 -27
- package/lib/cjs/widget/components/GroupsVisualizationActions.js.map +0 -1
- package/lib/cjs/widget/components/HorizontalTile.d.ts +0 -15
- package/lib/cjs/widget/components/HorizontalTile.js +0 -24
- package/lib/cjs/widget/components/HorizontalTile.js.map +0 -1
- package/lib/cjs/widget/components/HorizontalTile.scss +0 -57
- package/lib/cjs/widget/components/MappingAction.js +0 -109
- package/lib/cjs/widget/components/MappingAction.js.map +0 -1
- package/lib/cjs/widget/components/MappingImportWizardModal.js +0 -125
- package/lib/cjs/widget/components/MappingImportWizardModal.js.map +0 -1
- package/lib/cjs/widget/components/MappingViewActionGroup.js.map +0 -1
- package/lib/cjs/widget/components/Mappings.d.ts +0 -13
- package/lib/cjs/widget/components/Mappings.js +0 -45
- package/lib/cjs/widget/components/Mappings.js.map +0 -1
- package/lib/cjs/widget/components/MappingsView.js +0 -63
- package/lib/cjs/widget/components/MappingsView.js.map +0 -1
- package/lib/cjs/widget/components/PropertyAction.js +0 -99
- package/lib/cjs/widget/components/PropertyAction.js.map +0 -1
- package/lib/cjs/widget/components/PropertyMenu.js +0 -60
- package/lib/cjs/widget/components/PropertyMenu.js.map +0 -1
- package/lib/cjs/widget/components/PropertyMenuWithVisualization.js.map +0 -1
- package/lib/cjs/widget/components/PropertyNameCell.js.map +0 -1
- package/lib/cjs/widget/components/PropertyTable.js +0 -53
- package/lib/cjs/widget/components/PropertyTable.js.map +0 -1
- package/lib/cjs/widget/components/PropertyTableToolbar.js.map +0 -1
- package/lib/cjs/widget/components/QueryBuilder.js.map +0 -1
- package/lib/cjs/widget/components/QueryBuilderActionPanel.js.map +0 -1
- package/lib/cjs/widget/components/QueryBuilderCustomUI.d.ts +0 -13
- package/lib/cjs/widget/components/QueryBuilderCustomUI.js +0 -28
- package/lib/cjs/widget/components/QueryBuilderCustomUI.js.map +0 -1
- package/lib/cjs/widget/components/QueryBuilderStep.js.map +0 -1
- package/lib/cjs/widget/components/SaveModal.js.map +0 -1
- package/lib/cjs/widget/components/SelectIModel.js +0 -102
- package/lib/cjs/widget/components/SelectIModel.js.map +0 -1
- package/lib/cjs/widget/components/SelectITwin.js +0 -115
- package/lib/cjs/widget/components/SelectITwin.js.map +0 -1
- package/lib/cjs/widget/components/SelectMappings.d.ts +0 -16
- package/lib/cjs/widget/components/SelectMappings.js +0 -88
- package/lib/cjs/widget/components/SelectMappings.js.map +0 -1
- package/lib/cjs/widget/components/SharedCalculatedPropertyForms.js.map +0 -1
- package/lib/cjs/widget/components/SortableHorizontalTile.d.ts +0 -8
- package/lib/cjs/widget/components/SortableHorizontalTile.js +0 -52
- package/lib/cjs/widget/components/SortableHorizontalTile.js.map +0 -1
- package/lib/cjs/widget/components/StatusIcon.js.map +0 -1
- package/lib/cjs/widget/components/ToggleGroupVisibility.js.map +0 -1
- package/lib/cjs/widget/components/WidgetHeader.js.map +0 -1
- package/lib/cjs/widget/components/context/ExtractionClientContext.js.map +0 -1
- package/lib/cjs/widget/components/context/GroupHilitedElementsContext.d.ts +0 -22
- package/lib/cjs/widget/components/context/GroupHilitedElementsContext.js +0 -47
- package/lib/cjs/widget/components/context/GroupHilitedElementsContext.js.map +0 -1
- package/lib/cjs/widget/components/context/GroupingApiConfigContext.js.map +0 -1
- package/lib/cjs/widget/components/context/GroupingMappingCustomUIContext.js.map +0 -1
- package/lib/cjs/widget/components/context/IModelsClientContext.js.map +0 -1
- package/lib/cjs/widget/components/context/ITwinsClientContext.js.map +0 -1
- package/lib/cjs/widget/components/context/MappingClientContext.js.map +0 -1
- package/lib/cjs/widget/components/context/PropertiesContext.js.map +0 -1
- package/lib/cjs/widget/components/context/PropertyGridWrapperContext.d.ts +0 -13
- package/lib/cjs/widget/components/context/PropertyGridWrapperContext.js.map +0 -1
- package/lib/cjs/widget/components/customUI/DefaultGroupingUI.js.map +0 -1
- package/lib/cjs/widget/components/customUI/GroupQueryBuilderCustomUI.js +0 -107
- package/lib/cjs/widget/components/customUI/GroupQueryBuilderCustomUI.js.map +0 -1
- package/lib/cjs/widget/components/customUI/GroupingMappingCustomUI.js.map +0 -1
- package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js +0 -32
- package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js.map +0 -1
- package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js +0 -98
- package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js.map +0 -1
- package/lib/cjs/widget/components/groupsHelpers.d.ts +0 -10
- package/lib/cjs/widget/components/groupsHelpers.js +0 -84
- package/lib/cjs/widget/components/groupsHelpers.js.map +0 -1
- package/lib/cjs/widget/components/hooks/useGroupsOperations.d.ts +0 -20
- package/lib/cjs/widget/components/hooks/useGroupsOperations.js +0 -67
- package/lib/cjs/widget/components/hooks/useGroupsOperations.js.map +0 -1
- package/lib/cjs/widget/components/hooks/useMappingsOperations.d.ts +0 -35
- package/lib/cjs/widget/components/hooks/useMappingsOperations.js +0 -120
- package/lib/cjs/widget/components/hooks/useMappingsOperations.js.map +0 -1
- package/lib/cjs/widget/components/utils.d.ts +0 -16
- package/lib/cjs/widget/components/utils.js +0 -99
- package/lib/cjs/widget/components/utils.js.map +0 -1
- package/lib/cjs/widget/components/utils.scss +0 -18
- package/lib/cjs/widget/components/viewerUtils.d.ts +0 -30
- package/lib/cjs/widget/components/viewerUtils.js +0 -293
- package/lib/cjs/widget/components/viewerUtils.js.map +0 -1
- package/lib/cjs/widget/hooks/useFetchData.js +0 -43
- package/lib/cjs/widget/hooks/useFetchData.js.map +0 -1
- package/lib/cjs/widget/hooks/useFormulaValidation.d.ts +0 -6
- package/lib/cjs/widget/hooks/useFormulaValidation.js +0 -29
- package/lib/cjs/widget/hooks/useFormulaValidation.js.map +0 -1
- package/lib/cjs/widget/hooks/useValidator.js.map +0 -1
- package/lib/cjs/widget/hooks/useVisualization.js +0 -68
- package/lib/cjs/widget/hooks/useVisualization.js.map +0 -1
- package/lib/cjs/widget/utils.d.ts +0 -5
- package/lib/cjs/widget/utils.js +0 -12
- package/lib/cjs/widget/utils.js.map +0 -1
- package/lib/esm/widget/GroupingMappingWidget.d.ts +0 -10
- package/lib/esm/widget/GroupingMappingWidget.js +0 -24
- package/lib/esm/widget/GroupingMappingWidget.js.map +0 -1
- package/lib/esm/widget/components/ActionPanel.js +0 -18
- package/lib/esm/widget/components/ActionPanel.js.map +0 -1
- package/lib/esm/widget/components/BlockingOverlay.js +0 -13
- package/lib/esm/widget/components/BlockingOverlay.js.map +0 -1
- package/lib/esm/widget/components/CalculatedPropertyAction.js +0 -58
- package/lib/esm/widget/components/CalculatedPropertyAction.js.map +0 -1
- package/lib/esm/widget/components/CalculatedPropertyActionWithVisuals.js +0 -124
- package/lib/esm/widget/components/CalculatedPropertyActionWithVisuals.js.map +0 -1
- package/lib/esm/widget/components/CalculatedPropertyTable.js +0 -61
- package/lib/esm/widget/components/CalculatedPropertyTable.js.map +0 -1
- package/lib/esm/widget/components/ConfirmMappingsImport.js +0 -113
- package/lib/esm/widget/components/ConfirmMappingsImport.js.map +0 -1
- package/lib/esm/widget/components/CustomCalculationAction.d.ts +0 -13
- package/lib/esm/widget/components/CustomCalculationAction.js +0 -160
- package/lib/esm/widget/components/CustomCalculationAction.js.map +0 -1
- package/lib/esm/widget/components/CustomCalculationTable.js +0 -61
- package/lib/esm/widget/components/CustomCalculationTable.js.map +0 -1
- package/lib/esm/widget/components/DeleteModal.js +0 -38
- package/lib/esm/widget/components/DeleteModal.js.map +0 -1
- package/lib/esm/widget/components/ExtractionLogCustomFilter.js +0 -19
- package/lib/esm/widget/components/ExtractionLogCustomFilter.js.map +0 -1
- package/lib/esm/widget/components/ExtractionMessageModal.d.ts +0 -11
- package/lib/esm/widget/components/ExtractionMessageModal.js +0 -64
- package/lib/esm/widget/components/ExtractionMessageModal.js.map +0 -1
- package/lib/esm/widget/components/ExtractionStatusIcon.js.map +0 -1
- package/lib/esm/widget/components/GroupAction.js +0 -129
- package/lib/esm/widget/components/GroupAction.js.map +0 -1
- package/lib/esm/widget/components/GroupColorLegend.js.map +0 -1
- package/lib/esm/widget/components/GroupColorToggle.js +0 -46
- package/lib/esm/widget/components/GroupColorToggle.js.map +0 -1
- package/lib/esm/widget/components/GroupDetails.js +0 -27
- package/lib/esm/widget/components/GroupDetails.js.map +0 -1
- package/lib/esm/widget/components/GroupDetailsActionPanel.js.map +0 -1
- package/lib/esm/widget/components/GroupDetailsStep.js.map +0 -1
- package/lib/esm/widget/components/GroupInformationPanel.js.map +0 -1
- package/lib/esm/widget/components/GroupItem.d.ts +0 -12
- package/lib/esm/widget/components/GroupItem.js +0 -12
- package/lib/esm/widget/components/GroupItem.js.map +0 -1
- package/lib/esm/widget/components/GroupMenuActions.d.ts +0 -13
- package/lib/esm/widget/components/GroupMenuActions.js +0 -45
- package/lib/esm/widget/components/GroupMenuActions.js.map +0 -1
- package/lib/esm/widget/components/GroupPropertyAction.js +0 -261
- package/lib/esm/widget/components/GroupPropertyAction.js.map +0 -1
- package/lib/esm/widget/components/GroupPropertyTable.js +0 -58
- package/lib/esm/widget/components/GroupPropertyTable.js.map +0 -1
- package/lib/esm/widget/components/GroupPropertyUtils.js.map +0 -1
- package/lib/esm/widget/components/GroupingMapping.d.ts +0 -34
- package/lib/esm/widget/components/GroupingMapping.js +0 -57
- package/lib/esm/widget/components/GroupingMapping.js.map +0 -1
- package/lib/esm/widget/components/GroupingMappingContent.js +0 -28
- package/lib/esm/widget/components/GroupingMappingContent.js.map +0 -1
- package/lib/esm/widget/components/GroupingMappingContext.d.ts +0 -40
- package/lib/esm/widget/components/GroupingMappingContext.js +0 -86
- package/lib/esm/widget/components/GroupingMappingContext.js.map +0 -1
- package/lib/esm/widget/components/GroupingMappingHeader.js +0 -17
- package/lib/esm/widget/components/GroupingMappingHeader.js.map +0 -1
- package/lib/esm/widget/components/GroupingMappingRouter.d.ts +0 -8
- package/lib/esm/widget/components/GroupingMappingRouter.js +0 -100
- package/lib/esm/widget/components/GroupingMappingRouter.js.map +0 -1
- package/lib/esm/widget/components/Groups.d.ts +0 -16
- package/lib/esm/widget/components/Groups.js +0 -23
- package/lib/esm/widget/components/Groups.js.map +0 -1
- package/lib/esm/widget/components/GroupsAddButton.d.ts +0 -10
- package/lib/esm/widget/components/GroupsAddButton.js.map +0 -1
- package/lib/esm/widget/components/GroupsShowHideButtons.js +0 -22
- package/lib/esm/widget/components/GroupsShowHideButtons.js.map +0 -1
- package/lib/esm/widget/components/GroupsView.d.ts +0 -31
- package/lib/esm/widget/components/GroupsView.js +0 -30
- package/lib/esm/widget/components/GroupsView.js.map +0 -1
- package/lib/esm/widget/components/GroupsView.scss +0 -49
- package/lib/esm/widget/components/GroupsVisualization.js +0 -118
- package/lib/esm/widget/components/GroupsVisualization.js.map +0 -1
- package/lib/esm/widget/components/GroupsVisualization.scss +0 -12
- package/lib/esm/widget/components/GroupsVisualizationActions.js +0 -20
- package/lib/esm/widget/components/GroupsVisualizationActions.js.map +0 -1
- package/lib/esm/widget/components/HorizontalTile.d.ts +0 -15
- package/lib/esm/widget/components/HorizontalTile.js +0 -17
- package/lib/esm/widget/components/HorizontalTile.js.map +0 -1
- package/lib/esm/widget/components/HorizontalTile.scss +0 -57
- package/lib/esm/widget/components/MappingAction.js +0 -83
- package/lib/esm/widget/components/MappingAction.js.map +0 -1
- package/lib/esm/widget/components/MappingImportWizardModal.js +0 -99
- package/lib/esm/widget/components/MappingImportWizardModal.js.map +0 -1
- package/lib/esm/widget/components/MappingViewActionGroup.js.map +0 -1
- package/lib/esm/widget/components/Mappings.d.ts +0 -13
- package/lib/esm/widget/components/Mappings.js +0 -22
- package/lib/esm/widget/components/Mappings.js.map +0 -1
- package/lib/esm/widget/components/MappingsView.js +0 -56
- package/lib/esm/widget/components/MappingsView.js.map +0 -1
- package/lib/esm/widget/components/PropertyAction.js +0 -76
- package/lib/esm/widget/components/PropertyAction.js.map +0 -1
- package/lib/esm/widget/components/PropertyMenu.js +0 -37
- package/lib/esm/widget/components/PropertyMenu.js.map +0 -1
- package/lib/esm/widget/components/PropertyMenuWithVisualization.js.map +0 -1
- package/lib/esm/widget/components/PropertyNameCell.js.map +0 -1
- package/lib/esm/widget/components/PropertyTable.js +0 -27
- package/lib/esm/widget/components/PropertyTable.js.map +0 -1
- package/lib/esm/widget/components/PropertyTableToolbar.js.map +0 -1
- package/lib/esm/widget/components/QueryBuilder.js.map +0 -1
- package/lib/esm/widget/components/QueryBuilderActionPanel.js.map +0 -1
- package/lib/esm/widget/components/QueryBuilderCustomUI.d.ts +0 -13
- package/lib/esm/widget/components/QueryBuilderCustomUI.js +0 -21
- package/lib/esm/widget/components/QueryBuilderCustomUI.js.map +0 -1
- package/lib/esm/widget/components/QueryBuilderStep.js.map +0 -1
- package/lib/esm/widget/components/SaveModal.js.map +0 -1
- package/lib/esm/widget/components/SelectIModel.js +0 -81
- package/lib/esm/widget/components/SelectIModel.js.map +0 -1
- package/lib/esm/widget/components/SelectITwin.js +0 -94
- package/lib/esm/widget/components/SelectITwin.js.map +0 -1
- package/lib/esm/widget/components/SelectMappings.d.ts +0 -16
- package/lib/esm/widget/components/SelectMappings.js +0 -67
- package/lib/esm/widget/components/SelectMappings.js.map +0 -1
- package/lib/esm/widget/components/SharedCalculatedPropertyForms.js.map +0 -1
- package/lib/esm/widget/components/SortableHorizontalTile.d.ts +0 -8
- package/lib/esm/widget/components/SortableHorizontalTile.js +0 -31
- package/lib/esm/widget/components/SortableHorizontalTile.js.map +0 -1
- package/lib/esm/widget/components/StatusIcon.js.map +0 -1
- package/lib/esm/widget/components/ToggleGroupVisibility.js.map +0 -1
- package/lib/esm/widget/components/WidgetHeader.js.map +0 -1
- package/lib/esm/widget/components/context/ExtractionClientContext.js.map +0 -1
- package/lib/esm/widget/components/context/GroupHilitedElementsContext.d.ts +0 -22
- package/lib/esm/widget/components/context/GroupHilitedElementsContext.js +0 -24
- package/lib/esm/widget/components/context/GroupHilitedElementsContext.js.map +0 -1
- package/lib/esm/widget/components/context/GroupingApiConfigContext.js.map +0 -1
- package/lib/esm/widget/components/context/GroupingMappingCustomUIContext.js.map +0 -1
- package/lib/esm/widget/components/context/IModelsClientContext.js.map +0 -1
- package/lib/esm/widget/components/context/ITwinsClientContext.js.map +0 -1
- package/lib/esm/widget/components/context/MappingClientContext.js.map +0 -1
- package/lib/esm/widget/components/context/PropertiesContext.js.map +0 -1
- package/lib/esm/widget/components/context/PropertyGridWrapperContext.d.ts +0 -13
- package/lib/esm/widget/components/context/PropertyGridWrapperContext.js.map +0 -1
- package/lib/esm/widget/components/customUI/DefaultGroupingUI.js.map +0 -1
- package/lib/esm/widget/components/customUI/GroupQueryBuilderCustomUI.js +0 -84
- package/lib/esm/widget/components/customUI/GroupQueryBuilderCustomUI.js.map +0 -1
- package/lib/esm/widget/components/customUI/GroupingMappingCustomUI.js.map +0 -1
- package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js +0 -25
- package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js.map +0 -1
- package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js +0 -91
- package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js.map +0 -1
- package/lib/esm/widget/components/groupsHelpers.d.ts +0 -10
- package/lib/esm/widget/components/groupsHelpers.js +0 -75
- package/lib/esm/widget/components/groupsHelpers.js.map +0 -1
- package/lib/esm/widget/components/hooks/useGroupsOperations.d.ts +0 -20
- package/lib/esm/widget/components/hooks/useGroupsOperations.js +0 -63
- package/lib/esm/widget/components/hooks/useGroupsOperations.js.map +0 -1
- package/lib/esm/widget/components/hooks/useMappingsOperations.d.ts +0 -35
- package/lib/esm/widget/components/hooks/useMappingsOperations.js +0 -116
- package/lib/esm/widget/components/hooks/useMappingsOperations.js.map +0 -1
- package/lib/esm/widget/components/utils.d.ts +0 -16
- package/lib/esm/widget/components/utils.js +0 -85
- package/lib/esm/widget/components/utils.js.map +0 -1
- package/lib/esm/widget/components/utils.scss +0 -18
- package/lib/esm/widget/components/viewerUtils.d.ts +0 -30
- package/lib/esm/widget/components/viewerUtils.js +0 -268
- package/lib/esm/widget/components/viewerUtils.js.map +0 -1
- package/lib/esm/widget/hooks/useFetchData.js +0 -37
- package/lib/esm/widget/hooks/useFetchData.js.map +0 -1
- package/lib/esm/widget/hooks/useFormulaValidation.d.ts +0 -6
- package/lib/esm/widget/hooks/useFormulaValidation.js +0 -25
- package/lib/esm/widget/hooks/useFormulaValidation.js.map +0 -1
- package/lib/esm/widget/hooks/useValidator.js.map +0 -1
- package/lib/esm/widget/hooks/useVisualization.js +0 -64
- package/lib/esm/widget/hooks/useVisualization.js.map +0 -1
- package/lib/esm/widget/utils.d.ts +0 -5
- package/lib/esm/widget/utils.js +0 -8
- package/lib/esm/widget/utils.js.map +0 -1
- /package/lib/cjs/{widget/components → WidgetShell}/GroupingMapping.scss +0 -0
- /package/lib/cjs/{widget/components → WidgetShell}/GroupingMappingContent.d.ts +0 -0
- /package/lib/cjs/{widget/components → WidgetShell}/GroupingMappingHeader.d.ts +0 -0
- /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.d.ts +0 -0
- /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.js +0 -0
- /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupAction.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupAction.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetails.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupMenuActions.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupsAddButton.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupsAddButton.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupsShowHideButtons.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualization.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualizationActions.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualizationActions.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.scss +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.js +0 -0
- /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.scss +0 -0
- /package/lib/cjs/{widget → components/Groups}/hooks/useVisualization.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/BlockingOverlay.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/BlockingOverlay.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/ConfirmMappingsImport.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/ConfirmMappingsImport.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Editing}/MappingAction.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Editing}/MappingAction.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionLogCustomFilter.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionMessageModal.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.js +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/MappingImportWizardModal.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/MappingImportWizardModal.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectIModel.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectIModel.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectITwin.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectITwin.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectMapping.scss +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/MappingViewActionGroup.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/MappingViewActionGroup.js +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/MappingsView.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Mappings}/MappingsView.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CustomCalculations}/CustomCalculationAction.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/CustomCalculations}/CustomCalculationTable.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/GroupColorToggle.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyTable.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/SaveModal.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/SaveModal.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyAction.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyAction.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyMenu.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyMenu.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyNameCell.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyNameCell.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyTable.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyTable.scss +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.js +0 -0
- /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.scss +0 -0
- /package/lib/cjs/{widget → components/Properties}/hooks/useFetchData.d.ts +0 -0
- /package/lib/cjs/{widget → components/Properties}/hooks/useValidator.d.ts +0 -0
- /package/lib/cjs/{widget → components/Properties}/hooks/useValidator.js +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/ActionPanel.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/ActionPanel.scss +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/DeleteModal.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/DeleteModal.scss +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.d.ts +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.js +0 -0
- /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.scss +0 -0
- /package/lib/cjs/{widget/components → components}/context/ExtractionClientContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/ExtractionClientContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/GroupingApiConfigContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/GroupingApiConfigContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/GroupingMappingCustomUIContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/GroupingMappingCustomUIContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/IModelsClientContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/IModelsClientContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/ITwinsClientContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/ITwinsClientContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/MappingClientContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/MappingClientContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/PropertiesContext.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/context/PropertiesContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/context/PropertyGridWrapperContext.js +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/DefaultGroupingUI.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/DefaultGroupingUI.js +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.scss +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/GroupingMappingCustomUI.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/GroupingMappingCustomUI.js +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/ManualGroupingCustomUI.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/ManualGroupingCustomUI.scss +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/SearchGroupingCustomUI.d.ts +0 -0
- /package/lib/cjs/{widget/components → components}/customUI/SearchGroupingCustomUI.scss +0 -0
- /package/lib/esm/{widget/components → WidgetShell}/GroupingMapping.scss +0 -0
- /package/lib/esm/{widget/components → WidgetShell}/GroupingMappingContent.d.ts +0 -0
- /package/lib/esm/{widget/components → WidgetShell}/GroupingMappingHeader.d.ts +0 -0
- /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.d.ts +0 -0
- /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.js +0 -0
- /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupAction.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupAction.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetails.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.js +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.js +0 -0
- /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.js +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupMenuActions.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupsAddButton.js +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupsAddButton.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupsShowHideButtons.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupsVisualization.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupsVisualizationActions.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups}/GroupsVisualizationActions.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.js +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.js +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.js +0 -0
- /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.scss +0 -0
- /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.js +0 -0
- /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.scss +0 -0
- /package/lib/esm/{widget → components/Groups}/hooks/useVisualization.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/BlockingOverlay.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/BlockingOverlay.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/ConfirmMappingsImport.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/ConfirmMappingsImport.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Editing}/MappingAction.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Editing}/MappingAction.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionLogCustomFilter.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionMessageModal.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.js +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/MappingImportWizardModal.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/MappingImportWizardModal.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/SelectIModel.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/SelectIModel.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/SelectITwin.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/SelectITwin.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings/Import}/SelectMapping.scss +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/MappingViewActionGroup.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/MappingViewActionGroup.js +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/MappingsView.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Mappings}/MappingsView.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.js +0 -0
- /package/lib/esm/{widget/components → components/Properties/CustomCalculations}/CustomCalculationAction.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/CustomCalculations}/CustomCalculationTable.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/GroupColorToggle.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.js +0 -0
- /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyTable.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.js +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/SaveModal.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties/GroupProperties}/SaveModal.js +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyAction.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyAction.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyMenu.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyMenu.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.js +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyNameCell.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyNameCell.js +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyTable.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyTable.scss +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.d.ts +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.js +0 -0
- /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.scss +0 -0
- /package/lib/esm/{widget → components/Properties}/hooks/useFetchData.d.ts +0 -0
- /package/lib/esm/{widget → components/Properties}/hooks/useValidator.d.ts +0 -0
- /package/lib/esm/{widget → components/Properties}/hooks/useValidator.js +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/ActionPanel.d.ts +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/ActionPanel.scss +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/DeleteModal.d.ts +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/DeleteModal.scss +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.d.ts +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.js +0 -0
- /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.scss +0 -0
- /package/lib/esm/{widget/components → components}/context/ExtractionClientContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/ExtractionClientContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/GroupingApiConfigContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/GroupingApiConfigContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/GroupingMappingCustomUIContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/GroupingMappingCustomUIContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/IModelsClientContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/IModelsClientContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/ITwinsClientContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/ITwinsClientContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/MappingClientContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/MappingClientContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/PropertiesContext.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/context/PropertiesContext.js +0 -0
- /package/lib/esm/{widget/components → components}/context/PropertyGridWrapperContext.js +0 -0
- /package/lib/esm/{widget/components → components}/customUI/DefaultGroupingUI.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/customUI/DefaultGroupingUI.js +0 -0
- /package/lib/esm/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.scss +0 -0
- /package/lib/esm/{widget/components → components}/customUI/GroupingMappingCustomUI.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/customUI/GroupingMappingCustomUI.js +0 -0
- /package/lib/esm/{widget/components → components}/customUI/ManualGroupingCustomUI.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/customUI/ManualGroupingCustomUI.scss +0 -0
- /package/lib/esm/{widget/components → components}/customUI/SearchGroupingCustomUI.d.ts +0 -0
- /package/lib/esm/{widget/components → components}/customUI/SearchGroupingCustomUI.scss +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { MutableRefObject } from "react";
|
|
3
|
+
import type { Group } from "@itwin/insights-client";
|
|
4
|
+
import type { KeySet } from "@itwin/presentation-common";
|
|
5
|
+
export interface QueryCacheItem {
|
|
6
|
+
keySet: KeySet;
|
|
7
|
+
ids: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface OverlappedInfo {
|
|
10
|
+
groupIds: string[];
|
|
11
|
+
elements: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface OverlappedElementGroupPairs {
|
|
14
|
+
elementIds: Set<string>;
|
|
15
|
+
groupIds: Set<string>;
|
|
16
|
+
}
|
|
17
|
+
export interface GroupHilitedElements {
|
|
18
|
+
hilitedElementsQueryCache: MutableRefObject<Map<string, QueryCacheItem>>;
|
|
19
|
+
hiddenGroupsIds: Set<string>;
|
|
20
|
+
showGroupColor: boolean;
|
|
21
|
+
groups: Group[];
|
|
22
|
+
currentHilitedGroups: number;
|
|
23
|
+
overlappedElementsInfo: Map<string, OverlappedInfo[]>;
|
|
24
|
+
groupElementsInfo: Map<string, number>;
|
|
25
|
+
isOverlappedColored: boolean;
|
|
26
|
+
overlappedElementGroupPairs: OverlappedElementGroupPairs[];
|
|
27
|
+
setGroups: (groups: Group[]) => void;
|
|
28
|
+
setHiddenGroupsIds: (hiddenGroupIds: Set<string>) => void;
|
|
29
|
+
setShowGroupColor: (showGroupColor: boolean | ((showGroupColor: boolean) => boolean)) => void;
|
|
30
|
+
setNumberOfVisualizedGroups: (numberOfVisualizedGroups: number | ((numberOfVisualizedGroups: number) => number)) => void;
|
|
31
|
+
setOverlappedElementsInfo: (overlappedElementsInfo: Map<string, OverlappedInfo[]> | ((overlappedElementsInfo: Map<string, OverlappedInfo[]>) => Map<string, OverlappedInfo[]>)) => void;
|
|
32
|
+
setGroupElementsInfo: (groupElementsInfo: Map<string, number> | ((groupElementsInfo: Map<string, number>) => Map<string, number>)) => void;
|
|
33
|
+
setIsOverlappedColored: (isOverlappedColored: boolean | ((isOverlappedColored: boolean) => boolean)) => void;
|
|
34
|
+
setOverlappedElementGroupPairs: (overlappedElementGroupPairs: OverlappedElementGroupPairs[]) => void;
|
|
35
|
+
}
|
|
36
|
+
export declare const GroupHilitedElementsContext: React.Context<GroupHilitedElements>;
|
|
37
|
+
export declare const useGroupHilitedElementsContext: () => GroupHilitedElements;
|
|
38
|
+
//# sourceMappingURL=GroupHilitedElementsContext.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
export const GroupHilitedElementsContext = React.createContext({
|
|
7
|
+
hilitedElementsQueryCache: { current: new Map() },
|
|
8
|
+
hiddenGroupsIds: new Set(),
|
|
9
|
+
showGroupColor: false,
|
|
10
|
+
groups: [],
|
|
11
|
+
currentHilitedGroups: 0,
|
|
12
|
+
overlappedElementsInfo: new Map(),
|
|
13
|
+
groupElementsInfo: new Map(),
|
|
14
|
+
isOverlappedColored: false,
|
|
15
|
+
overlappedElementGroupPairs: [],
|
|
16
|
+
setGroups: () => { },
|
|
17
|
+
setHiddenGroupsIds: () => { },
|
|
18
|
+
setShowGroupColor: () => { },
|
|
19
|
+
setNumberOfVisualizedGroups: () => { },
|
|
20
|
+
setOverlappedElementsInfo: () => { },
|
|
21
|
+
setGroupElementsInfo: () => { },
|
|
22
|
+
setIsOverlappedColored: () => { },
|
|
23
|
+
setOverlappedElementGroupPairs: () => { },
|
|
24
|
+
});
|
|
25
|
+
export const useGroupHilitedElementsContext = () => {
|
|
26
|
+
const context = React.useContext(GroupHilitedElementsContext);
|
|
27
|
+
if (!context) {
|
|
28
|
+
throw new Error("useGroupHilitedElementsContext should be used within a GroupHilitedElementsContext provider");
|
|
29
|
+
}
|
|
30
|
+
return context;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=GroupHilitedElementsContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupHilitedElementsContext.js","sourceRoot":"","sources":["../../../../src/components/context/GroupHilitedElementsContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsC/B,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC,aAAa,CAAuB;IACnF,yBAAyB,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE;IACjD,eAAe,EAAE,IAAI,GAAG,EAAE;IAC1B,cAAc,EAAE,KAAK;IACrB,MAAM,EAAE,EAAE;IACV,oBAAoB,EAAE,CAAC;IACvB,sBAAsB,EAAE,IAAI,GAAG,EAAE;IACjC,iBAAiB,EAAE,IAAI,GAAG,EAAE;IAC5B,mBAAmB,EAAE,KAAK;IAC1B,2BAA2B,EAAE,EAAE;IAC/B,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,kBAAkB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC7B,iBAAiB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC5B,2BAA2B,EAAE,GAAG,EAAE,GAAG,CAAC;IACtC,yBAAyB,EAAE,GAAG,EAAE,GAAG,CAAC;IACpC,oBAAoB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/B,sBAAsB,EAAE,GAAG,EAAE,GAAG,CAAC;IACjC,8BAA8B,EAAE,GAAG,EAAE,GAAG,CAAC;CAC1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAyB,EAAE;IACvE,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAC9D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,6FAA6F,CAC9F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { MutableRefObject } from \"react\";\nimport type { Group } from \"@itwin/insights-client\";\nimport type { KeySet } from \"@itwin/presentation-common\";\nexport interface QueryCacheItem {\n keySet: KeySet;\n ids: string[];\n}\nexport interface OverlappedInfo {\n groupIds: string[];\n elements: string[];\n}\n\nexport interface OverlappedElementGroupPairs {\n elementIds: Set<string>;\n groupIds: Set<string>;\n}\n\nexport interface GroupHilitedElements {\n hilitedElementsQueryCache: MutableRefObject<Map<string, QueryCacheItem>>;\n hiddenGroupsIds: Set<string>;\n showGroupColor: boolean;\n groups: Group[];\n currentHilitedGroups: number;\n overlappedElementsInfo: Map<string, OverlappedInfo[]>;\n groupElementsInfo: Map<string, number>;\n isOverlappedColored: boolean;\n overlappedElementGroupPairs: OverlappedElementGroupPairs[];\n setGroups: (groups: Group[]) => void;\n setHiddenGroupsIds: (hiddenGroupIds: Set<string>) => void;\n setShowGroupColor: (showGroupColor: boolean | ((showGroupColor: boolean) => boolean)) => void;\n setNumberOfVisualizedGroups: (numberOfVisualizedGroups: number | ((numberOfVisualizedGroups: number) => number)) => void;\n setOverlappedElementsInfo: (overlappedElementsInfo: Map<string, OverlappedInfo[]> | ((overlappedElementsInfo: Map<string, OverlappedInfo[]>) => Map<string, OverlappedInfo[]>)) => void;\n setGroupElementsInfo: (groupElementsInfo: Map<string, number> | ((groupElementsInfo: Map<string, number>) => Map<string, number>)) => void;\n setIsOverlappedColored: (isOverlappedColored: boolean | ((isOverlappedColored: boolean) => boolean)) => void;\n setOverlappedElementGroupPairs: (overlappedElementGroupPairs: OverlappedElementGroupPairs[]) => void;\n}\n\nexport const GroupHilitedElementsContext = React.createContext<GroupHilitedElements>({\n hilitedElementsQueryCache: { current: new Map() },\n hiddenGroupsIds: new Set(),\n showGroupColor: false,\n groups: [],\n currentHilitedGroups: 0,\n overlappedElementsInfo: new Map(),\n groupElementsInfo: new Map(),\n isOverlappedColored: false,\n overlappedElementGroupPairs: [],\n setGroups: () => { },\n setHiddenGroupsIds: () => { },\n setShowGroupColor: () => { },\n setNumberOfVisualizedGroups: () => { },\n setOverlappedElementsInfo: () => { },\n setGroupElementsInfo: () => { },\n setIsOverlappedColored: () => { },\n setOverlappedElementGroupPairs: () => { },\n});\n\nexport const useGroupHilitedElementsContext = (): GroupHilitedElements => {\n const context = React.useContext(GroupHilitedElementsContext);\n if (!context) {\n throw new Error(\n \"useGroupHilitedElementsContext should be used within a GroupHilitedElementsContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupingApiConfigContext.js","sourceRoot":"","sources":["../../../../src/components/context/GroupingApiConfigContext.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAWtC,MAAM,CAAC,MAAM,+BAA+B,GAC1C,aAAa,CAA2B;IACtC,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,EAAE;IAC9B,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,SAAS;IACjB,gBAAgB,EAAE,SAAS;CAC5B,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;IAClE,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { AccessToken } from \"@itwin/core-bentley\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport * as React from \"react\";\nimport { createContext } from \"react\";\n\nexport type ClientPrefix = \"\" | \"dev\" | \"qa\" | undefined;\nexport type GetAccessTokenFn = () => Promise<AccessToken>;\nexport interface GroupingMappingApiConfig {\n getAccessToken: GetAccessTokenFn;\n iModelId: string;\n iModelConnection?: IModelConnection;\n prefix?: ClientPrefix;\n}\n\nexport const GroupingMappingApiConfigContext =\n createContext<GroupingMappingApiConfig>({\n getAccessToken: async () => \"\",\n iModelId: \"\",\n prefix: undefined,\n iModelConnection: undefined,\n });\n\nexport const useGroupingMappingApiConfig = () => {\n const context = React.useContext(GroupingMappingApiConfigContext);\n if (!context) {\n throw new Error(\n \"useGroupingMappingApiConfig should be used within a GroupingMappingApiConfigContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupingMappingCustomUIContext.js","sourceRoot":"","sources":["../../../../src/components/context/GroupingMappingCustomUIContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,SAAgD,EACrB,EAAE;IAC7B,OAAO,SAAS,IAAI,EAAE,CAAC;AACzB,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,8BAA8B,GAAG,aAAa,CAA2B;IACpF,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC7C,MAAM,OAAO,GAAG,UAAU,CAAC,8BAA8B,CAAC,CAAC;IAC3D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,4FAA4F,CAC7F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { createContext, useContext } from \"react\";\nimport type { GroupingMappingCustomUI } from \"../customUI/GroupingMappingCustomUI\";\n\nexport const createGroupingMappingCustomUI = (\n customUIs: GroupingMappingCustomUI[] | undefined,\n): GroupingMappingCustomUI[] => {\n return customUIs ?? [];\n};\n\nexport interface IGroupingMappingCustomUI {\n customUIs: GroupingMappingCustomUI[];\n setCustomUIs: (customUI: GroupingMappingCustomUI[] | ((customUI: GroupingMappingCustomUI[]) => GroupingMappingCustomUI[])) => void;\n}\n\nexport const GroupingMappingCustomUIContext = createContext<IGroupingMappingCustomUI>({\n customUIs: [],\n setCustomUIs: () => { },\n});\n\nexport const useGroupingMappingCustomUI = () => {\n const context = useContext(GroupingMappingCustomUIContext);\n if (!context) {\n throw new Error(\n \"useGroupingMappingCustomUI should be used within a GroupingMappingCustomUIContext provider\",\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IModelsClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/IModelsClientContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,OAAO,GAAW,iCAAiC,CAAC;AAE1D,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAqB,EAAiB,EAAE;IAC1E,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACvC,MAAM,OAAO,GAAyB;QACpC,GAAG,EAAE;YACH,OAAO,EAAE,GAAG;SACb;KACF,CAAC;IACF,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAgB,mBAAmB,EAAE,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACjD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { IModelsClientOptions } from \"@itwin/imodels-client-management\";\nimport { IModelsClient } from \"@itwin/imodels-client-management\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst baseUrl: string = \"https://api.bentley.com/imodels\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createIModelsClient = (prefix?: ClientPrefix): IModelsClient => {\n const url = prefixUrl(baseUrl, prefix);\n const options: IModelsClientOptions = {\n api: {\n baseUrl: url,\n },\n };\n return new IModelsClient(options);\n};\n\nexport const IModelsClientContext = createContext<IModelsClient>(createIModelsClient());\n\nexport const useIModelsClient = () => {\n const context = useContext(IModelsClientContext);\n if (!context) {\n throw new Error(\n \"useIModelsClient should be used within an IModelsClientContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITwinsClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/ITwinsClientContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,OAAO,GAAW,gCAAgC,CAAC;AAEzD,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAqB,EAAsB,EAAE;IAC9E,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACvC,OAAO,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAqB,kBAAkB,EAAE,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAChD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { ITwinsAccessClient } from \"@itwin/itwins-client\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst baseUrl: string = \"https://api.bentley.com/itwins\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createITwinsClient = (prefix?: ClientPrefix): ITwinsAccessClient => {\n const url = prefixUrl(baseUrl, prefix);\n return new ITwinsAccessClient(url);\n};\n\nexport const ITwinsClientContext = createContext<ITwinsAccessClient>(createITwinsClient());\n\nexport const useITwinsClient = () => {\n const context = useContext(ITwinsClientContext);\n if (!context) {\n throw new Error(\n \"useITwinsClient should be used within an ITwinsClientContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MappingClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/MappingClientContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,MAAqB,EAAmB,EAAE;IACnF,MAAM,GAAG,GAAG,SAAS,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO,IAAI,cAAc,CAAC,GAAG,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAA0C,EAAE,EAAE;IAChF,IAAI,SAAS,KAAK,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAC9D,OAAO,0BAA0B,CAAC,UAA0B,CAAC,CAAC;KAC/D;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAkB,0BAA0B,EAAE,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACjD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { IMappingsClient} from \"@itwin/insights-client\";\nimport { MappingsClient, REPORTING_BASE_PATH } from \"@itwin/insights-client\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createDefaultMappingClient = (prefix?: ClientPrefix): IMappingsClient => {\n const url = prefixUrl(REPORTING_BASE_PATH, prefix);\n return new MappingsClient(url);\n};\n\nexport const createMappingClient = (clientProp: IMappingsClient | ClientPrefix) => {\n if (undefined === clientProp || typeof clientProp === \"string\") {\n return createDefaultMappingClient(clientProp as ClientPrefix);\n }\n return clientProp;\n};\nexport const MappingClientContext = createContext<IMappingsClient>(createDefaultMappingClient());\n\nexport const useMappingClient = () => {\n const context = useContext(MappingClientContext);\n if (!context) {\n throw new Error(\n \"useMappingClient should be used within a MappingClientContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertiesContext.js","sourceRoot":"","sources":["../../../../src/components/context/PropertiesContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAa;IAC/D,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC7B,uBAAuB,EAAE,GAAG,EAAE,GAAG,CAAC;IAClC,8BAA8B,EAAE,GAAG,EAAE,GAAG,CAAC;IACzC,iBAAiB,EAAE,GAAG,EAAE,GAAG,CAAC;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAe,EAAE;IACnD,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;IACpD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { CalculatedProperty, CustomCalculation, GroupProperty } from \"@itwin/insights-client\";\n\nexport interface Properties {\n showGroupColor: boolean;\n groupProperties?: GroupProperty[];\n calculatedProperties?: CalculatedProperty[];\n customCalculationProperties?: CustomCalculation[];\n setGroupProperties: (groupProperties: GroupProperty[]) => void;\n setCalculatedProperties: (calculatedProperties: CalculatedProperty[]) => void;\n setCustomCalculationProperties: (customCalculationProperties: CustomCalculation[]) => void;\n setShowGroupColor: (showGroupColor: boolean | ((showGroupColor: boolean) => boolean)) => void;\n}\n\nexport const PropertiesContext = React.createContext<Properties>({\n showGroupColor: false,\n setGroupProperties: () => { },\n setCalculatedProperties: () => { },\n setCustomCalculationProperties: () => { },\n setShowGroupColor: () => { },\n});\n\nexport const usePropertiesContext = (): Properties => {\n const context = React.useContext(PropertiesContext);\n if (!context) {\n throw new Error(\n \"usePropertiesContext should be used within a PropertiesContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PropertyRecord } from "@itwin/appui-abstract";
|
|
3
|
+
import type { QueryBuilder } from "../Groups/QueryBuilder/QueryBuilder";
|
|
4
|
+
export interface PropertySelection {
|
|
5
|
+
currentPropertyList: PropertyRecord[];
|
|
6
|
+
setCurrentPropertyList: (value: PropertyRecord[] | ((value: PropertyRecord[]) => PropertyRecord[])) => void;
|
|
7
|
+
setQuery: (value: string) => void;
|
|
8
|
+
queryBuilder?: QueryBuilder;
|
|
9
|
+
isUpdating: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const PropertyGridWrapperContext: React.Context<PropertySelection>;
|
|
12
|
+
export declare const usePropertyGridWrapper: () => PropertySelection;
|
|
13
|
+
//# sourceMappingURL=PropertyGridWrapperContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyGridWrapperContext.js","sourceRoot":"","sources":["../../../../src/components/context/PropertyGridWrapperContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC,aAAa,CAAoB;IAC/E,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,GAAG,EAAE,CAAC,EAAE;IAChC,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE;IAClB,UAAU,EAAE,KAAK;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAsB,EAAE;IAC5D,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;IAC7D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,2FAA2F,CAC5F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport type { QueryBuilder } from \"../Groups/QueryBuilder/QueryBuilder\";\n\nexport interface PropertySelection {\n currentPropertyList: PropertyRecord[];\n setCurrentPropertyList: (value: PropertyRecord[] | ((value: PropertyRecord[]) => PropertyRecord[])) => void;\n setQuery: (value: string) => void;\n queryBuilder?: QueryBuilder;\n isUpdating: boolean;\n}\n\nexport const PropertyGridWrapperContext = React.createContext<PropertySelection>({\n currentPropertyList: [],\n setCurrentPropertyList: () => [],\n setQuery: () => \"\",\n isUpdating: false,\n});\n\nexport const usePropertyGridWrapper = (): PropertySelection => {\n const context = React.useContext(PropertyGridWrapperContext);\n if (!context) {\n throw new Error(\n \"usePropertyGridWrapperContext should be used within a PropertyGridWrapperContext provider\"\n );\n }\n return context;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultGroupingUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/DefaultGroupingUI.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D;QACE,IAAI,EAAE,WAAW;QACjB,YAAY,EAAE,WAAW;QACzB,IAAI,EAAE,2BAA2B,CAAC,QAAQ;QAC1C,IAAI,EAAE,oBAAC,SAAS,OAAG;QACnB,WAAW,EAAE,yBAAyB;KACvC;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,YAAY,EAAE,gBAAgB;QAC9B,IAAI,EAAE,2BAA2B,CAAC,QAAQ;QAC1C,IAAI,EAAE,oBAAC,SAAS,OAAG;QACnB,WAAW,EAAE,sBAAsB;KACpC;IACD;QACE,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,QAAQ;QACtB,IAAI,EAAE,2BAA2B,CAAC,QAAQ;QAC1C,IAAI,EAAE,oBAAC,OAAO,OAAG;QACjB,WAAW,EAAE,sBAAsB;KACpC;CACF,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport { SvgCursor, SvgDraw, SvgSearch } from \"@itwin/itwinui-icons-react\";\nimport type { GroupingMappingCustomUI } from \"./GroupingMappingCustomUI\";\nimport { GroupingMappingCustomUIType } from \"./GroupingMappingCustomUI\";\nimport { GroupQueryBuilderCustomUI } from \"./GroupQueryBuilderCustomUI\";\nimport { ManualGroupingCustomUI } from \"./ManualGroupingCustomUI\";\nimport { SearchGroupingCustomUI } from \"./SearchGroupingCustomUI\";\n\nexport const defaultGroupingUI: GroupingMappingCustomUI[] = [\n {\n name: \"Selection\",\n displayLabel: \"Selection\",\n type: GroupingMappingCustomUIType.Grouping,\n icon: <SvgCursor />,\n uiComponent: GroupQueryBuilderCustomUI,\n },\n {\n name: \"Query Keywords\",\n displayLabel: \"Query Keywords\",\n type: GroupingMappingCustomUIType.Grouping,\n icon: <SvgSearch />,\n uiComponent: SearchGroupingCustomUI,\n },\n {\n name: \"Manual\",\n displayLabel: \"Manual\",\n type: GroupingMappingCustomUIType.Grouping,\n icon: <SvgDraw />,\n uiComponent: ManualGroupingCustomUI,\n },\n];\n"]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
6
|
+
import { Presentation } from "@itwin/presentation-frontend";
|
|
7
|
+
import { KeySet } from "@itwin/presentation-common";
|
|
8
|
+
import "./GroupQueryBuilderCustomUI.scss";
|
|
9
|
+
import { QueryBuilder } from "../Groups/QueryBuilder/QueryBuilder";
|
|
10
|
+
import { DEFAULT_PROPERTY_GRID_RULESET, PresentationPropertyDataProvider, } from "@itwin/presentation-components";
|
|
11
|
+
import { VirtualizedPropertyGridWithDataProvider } from "@itwin/components-react";
|
|
12
|
+
import { ResizableContainerObserver } from "@itwin/core-react";
|
|
13
|
+
import { PropertyGridWrapperContext } from "../context/PropertyGridWrapperContext";
|
|
14
|
+
import { PropertyAction } from "../Properties/PropertyAction";
|
|
15
|
+
import { Alert, Button } from "@itwin/itwinui-react";
|
|
16
|
+
import { useGroupingMappingApiConfig } from "../context/GroupingApiConfigContext";
|
|
17
|
+
import { IModelApp } from "@itwin/core-frontend";
|
|
18
|
+
const createPropertyDataProvider = async (keys, iModelConnection) => {
|
|
19
|
+
const dataProvider = new PresentationPropertyDataProvider({
|
|
20
|
+
imodel: iModelConnection,
|
|
21
|
+
ruleset: DEFAULT_PROPERTY_GRID_RULESET,
|
|
22
|
+
});
|
|
23
|
+
dataProvider.keys = keys;
|
|
24
|
+
dataProvider.isNestedPropertyCategoryGroupingEnabled = true;
|
|
25
|
+
const data = await dataProvider.getData();
|
|
26
|
+
const selectedCategory = data.categories.find((category) => category.label === IModelApp.localization.getLocalizedString("Presentation:selectedItems.categoryLabel"));
|
|
27
|
+
if (selectedCategory) {
|
|
28
|
+
selectedCategory.expand = true;
|
|
29
|
+
}
|
|
30
|
+
return dataProvider;
|
|
31
|
+
};
|
|
32
|
+
export const GroupQueryBuilderCustomUI = ({ updateQuery, isUpdating, resetView, }) => {
|
|
33
|
+
const { iModelConnection } = useGroupingMappingApiConfig();
|
|
34
|
+
if (!iModelConnection) {
|
|
35
|
+
throw new Error("This component requires an active iModelConnection.");
|
|
36
|
+
}
|
|
37
|
+
const [size, setSize] = useState({ width: 0, height: 0 });
|
|
38
|
+
const [dataProvider, setDataProvider] = useState(undefined);
|
|
39
|
+
const [currentPropertyList, setCurrentPropertyList] = useState([]);
|
|
40
|
+
const [selectionKeySet, setSelectionKeyset] = useState(new KeySet());
|
|
41
|
+
const [queryBuilder, setQueryBuilder] = useState();
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
const onSelectionChanged = async (evt, selectionProvider) => {
|
|
44
|
+
const selection = selectionProvider.getSelection(evt.imodel, evt.level);
|
|
45
|
+
const keys = new KeySet(selection);
|
|
46
|
+
setSelectionKeyset(keys);
|
|
47
|
+
const dataProvider = await createPropertyDataProvider(keys, iModelConnection);
|
|
48
|
+
setDataProvider(dataProvider);
|
|
49
|
+
setQueryBuilder(new QueryBuilder(dataProvider));
|
|
50
|
+
};
|
|
51
|
+
return iModelConnection
|
|
52
|
+
? Presentation.selection.selectionChange.addListener(onSelectionChanged)
|
|
53
|
+
: () => { };
|
|
54
|
+
}, [iModelConnection]);
|
|
55
|
+
const onClickResetButton = async () => {
|
|
56
|
+
queryBuilder?.resetQueryBuilder();
|
|
57
|
+
updateQuery("");
|
|
58
|
+
setCurrentPropertyList([]);
|
|
59
|
+
if (resetView)
|
|
60
|
+
await resetView().catch((e) =>
|
|
61
|
+
/* eslint-disable no-console */
|
|
62
|
+
console.error(e));
|
|
63
|
+
};
|
|
64
|
+
const resize = useCallback((width, height) => setSize({ width, height }), []);
|
|
65
|
+
const propertyContextValues = useMemo(() => ({
|
|
66
|
+
currentPropertyList,
|
|
67
|
+
setCurrentPropertyList,
|
|
68
|
+
queryBuilder,
|
|
69
|
+
setQuery: updateQuery,
|
|
70
|
+
isUpdating: isUpdating ?? false,
|
|
71
|
+
}), [currentPropertyList, isUpdating, queryBuilder, updateQuery]);
|
|
72
|
+
const actionButtonRenderers = useMemo(() => [
|
|
73
|
+
({ property }) => (React.createElement(PropertyAction, { property: property })),
|
|
74
|
+
], []);
|
|
75
|
+
return (React.createElement("div", { className: "gmw-select-query-generator-container" }, !dataProvider || selectionKeySet.size === 0 ? (React.createElement(Alert, { type: 'informational' }, "Please select on an element within the viewer first, then select properties to generate a group query.")) :
|
|
76
|
+
React.createElement(React.Fragment, null,
|
|
77
|
+
React.createElement("div", { className: "gmw-select-property-grid-container" },
|
|
78
|
+
React.createElement(ResizableContainerObserver, { onResize: resize }),
|
|
79
|
+
React.createElement(PropertyGridWrapperContext.Provider, { value: propertyContextValues },
|
|
80
|
+
React.createElement(VirtualizedPropertyGridWithDataProvider, { dataProvider: dataProvider, width: size.width, height: size.height, actionButtonRenderers: actionButtonRenderers }))),
|
|
81
|
+
React.createElement("div", { className: "gmw-select-reset-button" },
|
|
82
|
+
React.createElement(Button, { styleType: "default", size: "small", onClick: onClickResetButton }, "Reset")))));
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=GroupQueryBuilderCustomUI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupQueryBuilderCustomUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/GroupQueryBuilderCustomUI.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Presentation } from \"@itwin/presentation-frontend\";\nimport type {\n ISelectionProvider,\n SelectionChangeEventArgs,\n} from \"@itwin/presentation-frontend\";\nimport { KeySet } from \"@itwin/presentation-common\";\nimport \"./GroupQueryBuilderCustomUI.scss\";\nimport { QueryBuilder } from \"../Groups/QueryBuilder/QueryBuilder\";\nimport type { GroupingCustomUIProps } from \"./GroupingMappingCustomUI\";\nimport {\n DEFAULT_PROPERTY_GRID_RULESET,\n PresentationPropertyDataProvider,\n} from \"@itwin/presentation-components\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport type { ActionButtonRendererProps } from \"@itwin/components-react\";\nimport { VirtualizedPropertyGridWithDataProvider } from \"@itwin/components-react\";\nimport { ResizableContainerObserver } from \"@itwin/core-react\";\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport { PropertyGridWrapperContext } from \"../context/PropertyGridWrapperContext\";\nimport { PropertyAction } from \"../Properties/PropertyAction\";\nimport { Alert, Button } from \"@itwin/itwinui-react\";\nimport { useGroupingMappingApiConfig } from \"../context/GroupingApiConfigContext\";\nimport { IModelApp } from \"@itwin/core-frontend\";\n\nconst createPropertyDataProvider = async (\n keys: KeySet,\n iModelConnection: IModelConnection\n): Promise<PresentationPropertyDataProvider> => {\n const dataProvider = new PresentationPropertyDataProvider({\n imodel: iModelConnection,\n ruleset: DEFAULT_PROPERTY_GRID_RULESET,\n });\n dataProvider.keys = keys;\n dataProvider.isNestedPropertyCategoryGroupingEnabled = true;\n const data = await dataProvider.getData();\n const selectedCategory = data.categories.find((category) => category.label === IModelApp.localization.getLocalizedString(\"Presentation:selectedItems.categoryLabel\"));\n if (selectedCategory) {\n selectedCategory.expand = true;\n }\n return dataProvider;\n};\n\ninterface ContainerDimensions {\n width: number;\n height: number;\n}\n\nexport const GroupQueryBuilderCustomUI = ({\n updateQuery,\n isUpdating,\n resetView,\n}: GroupingCustomUIProps) => {\n const { iModelConnection } = useGroupingMappingApiConfig();\n if (!iModelConnection) {\n throw new Error(\"This component requires an active iModelConnection.\");\n }\n const [size, setSize] = useState<ContainerDimensions>({ width: 0, height: 0 });\n const [dataProvider, setDataProvider] =\n useState<PresentationPropertyDataProvider | undefined>(undefined);\n const [currentPropertyList, setCurrentPropertyList] = useState<PropertyRecord[]>([]);\n const [selectionKeySet, setSelectionKeyset] = useState<KeySet>(new KeySet());\n const [queryBuilder, setQueryBuilder] = useState<QueryBuilder | undefined>();\n\n useEffect(() => {\n const onSelectionChanged = async (\n evt: SelectionChangeEventArgs,\n selectionProvider: ISelectionProvider\n ) => {\n const selection = selectionProvider.getSelection(evt.imodel, evt.level);\n const keys = new KeySet(selection);\n setSelectionKeyset(keys);\n const dataProvider = await createPropertyDataProvider(keys, iModelConnection);\n setDataProvider(dataProvider);\n setQueryBuilder(new QueryBuilder(dataProvider));\n };\n\n return iModelConnection\n ? Presentation.selection.selectionChange.addListener(onSelectionChanged)\n : () => { };\n }, [iModelConnection]);\n\n const onClickResetButton = async () => {\n queryBuilder?.resetQueryBuilder();\n updateQuery(\"\");\n setCurrentPropertyList([]);\n if (resetView)\n await resetView().catch((e) =>\n /* eslint-disable no-console */\n console.error(e)\n );\n };\n\n const resize = useCallback((width, height) => setSize({ width, height }), []);\n\n const propertyContextValues = useMemo(\n () => ({\n currentPropertyList,\n setCurrentPropertyList,\n queryBuilder,\n setQuery: updateQuery,\n isUpdating: isUpdating ?? false,\n }),\n [currentPropertyList, isUpdating, queryBuilder, updateQuery]\n );\n\n const actionButtonRenderers = useMemo(\n () => [\n ({ property }: ActionButtonRendererProps) => (\n <PropertyAction property={property} />\n ),\n ],\n []\n );\n\n return (\n <div className=\"gmw-select-query-generator-container\">\n {!dataProvider || selectionKeySet.size === 0 ? (\n <Alert type='informational'>\n Please select on an element within the viewer first, then select properties to generate a group query.\n </Alert>\n ) :\n <>\n <div className=\"gmw-select-property-grid-container\">\n <ResizableContainerObserver onResize={resize} />\n <PropertyGridWrapperContext.Provider value={propertyContextValues}>\n <VirtualizedPropertyGridWithDataProvider\n dataProvider={dataProvider}\n width={size.width}\n height={size.height}\n actionButtonRenderers={actionButtonRenderers}\n />\n </PropertyGridWrapperContext.Provider>\n </div>\n <div className=\"gmw-select-reset-button\">\n <Button\n styleType=\"default\"\n size=\"small\"\n onClick={onClickResetButton}\n >\n Reset\n </Button>\n </div>\n </>\n }\n </div>\n );\n};\n\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupingMappingCustomUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/GroupingMappingCustomUI.ts"],"names":[],"mappings":"AAOA,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,qFAAQ,CAAA;IACR,mFAAO,CAAA;AACT,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { Group, Mapping } from \"@itwin/insights-client\";\nimport type { ReactElement } from \"react\";\n\nexport enum GroupingMappingCustomUIType {\n Grouping,\n Context,\n}\n\nexport type GroupingMappingCustomUI = GroupingCustomUI | ContextCustomUI;\n\n/** Custom UI Definitions. */\n\nexport interface IGroupingMappingCustomUI {\n /**\n * See GroupingMappingCustomUIType.\n */\n type: GroupingMappingCustomUIType;\n /**\n * Unique identifier of the custom UI.\n */\n name: string;\n /**\n * Display label in the widget.\n */\n displayLabel: string;\n /**\n * Optional icon, will be shown before display label in widget.\n */\n icon?: ReactElement;\n}\n\n/**\n * Context custom UI type definition.\n */\nexport interface ContextCustomUI extends IGroupingMappingCustomUI {\n /**\n * See GroupingMappingCustomUIType.\n */\n type: GroupingMappingCustomUIType.Context;\n /**\n * User defined component for UI interaction with grouping mapping widget.\n */\n uiComponent?: React.ComponentType<ContextCustomUIProps>;\n /**\n * Callback function for context custom UI menu item click event.\n */\n onClick?: (group: Group, mapping: Mapping, iModelId: string) => void;\n}\n\n/**\n * Group custom UI type definition.\n */\nexport interface GroupingCustomUI extends IGroupingMappingCustomUI {\n /**\n * See GroupingMappingCustomUIType.\n */\n type: GroupingMappingCustomUIType.Grouping;\n /**\n * Custom UI Component to build query interactively. Refer to SearchGroupingCustomUI/ManualGroupingCustomUI.\n */\n uiComponent: (props: GroupingCustomUIProps) => JSX.Element;\n}\n\n/** Custom UI Component props definitions. */\n\n/**\n * Context custom UI component arguments definition.\n */\nexport interface ContextCustomUIProps {\n /**\n * IModel Id.\n */\n iModelId: string;\n /**\n * Mapping Id.\n */\n mappingId: string;\n /**\n * Group Id.\n */\n groupId: string;\n}\n\n/**\n * Group custom UI component arguments definition.\n */\nexport interface GroupingCustomUIProps {\n /**\n * To validate and update current query.\n */\n updateQuery: (query: string) => void;\n /**\n * To get the query loading status.\n */\n isUpdating?: boolean;\n /**\n * To reset the viewer.\n */\n resetView?: () => Promise<void>;\n /**\n * The initial query for the Group being edited.\n */\n initialEditModeQuery?: string;\n\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Alert, Button, LabeledTextarea } from "@itwin/itwinui-react";
|
|
7
|
+
import { LoadingSpinner } from "../SharedComponents/LoadingSpinner";
|
|
8
|
+
import "./ManualGroupingCustomUI.scss";
|
|
9
|
+
export const ManualGroupingCustomUI = ({ updateQuery, isUpdating, resetView, initialEditModeQuery, }) => {
|
|
10
|
+
const [manualInput, setManualInput] = React.useState(initialEditModeQuery ?? "");
|
|
11
|
+
return (React.createElement("div", { className: 'gmw-manual-form' },
|
|
12
|
+
React.createElement(Alert, { type: 'informational' }, "Generate group using an ECSQL query. Please select ECInstanceId and ECClassId columns in the query."),
|
|
13
|
+
React.createElement(LabeledTextarea, { label: 'Query', required: true, value: manualInput, onChange: (event) => setManualInput(event.target.value), disabled: isUpdating, placeholder: `E.g. "SELECT ECInstanceId, ECClassId FROM BisCore:PhysicalElement"` }),
|
|
14
|
+
React.createElement("div", { className: 'gmw-manual-actions' },
|
|
15
|
+
isUpdating && React.createElement(LoadingSpinner, null),
|
|
16
|
+
React.createElement(Button, { disabled: isUpdating, onClick: () => updateQuery(manualInput) }, "Apply"),
|
|
17
|
+
React.createElement(Button, { disabled: isUpdating, onClick: async () => {
|
|
18
|
+
updateQuery("");
|
|
19
|
+
setManualInput("");
|
|
20
|
+
if (resetView) {
|
|
21
|
+
await resetView();
|
|
22
|
+
}
|
|
23
|
+
} }, "Clear"))));
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=ManualGroupingCustomUI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManualGroupingCustomUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/ManualGroupingCustomUI.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,+BAA+B,CAAC;AAGvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,WAAW,EACX,UAAU,EACV,SAAS,EACT,oBAAoB,GACE,EAAE,EAAE;IAC1B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IAEjF,OAAO,CACL,6BAAK,SAAS,EAAC,iBAAiB;QAC9B,oBAAC,KAAK,IAAC,IAAI,EAAC,eAAe,0GAEnB;QACR,oBAAC,eAAe,IACd,KAAK,EAAC,OAAO,EACb,QAAQ,QACR,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EACvD,QAAQ,EAAE,UAAU,EACpB,WAAW,EAAE,oEAAoE,GACjF;QACF,6BAAK,SAAS,EAAC,oBAAoB;YAChC,UAAU,IAAI,oBAAC,cAAc,OAAG;YACjC,oBAAC,MAAM,IAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,YAE5D;YACT,oBAAC,MAAM,IACL,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,KAAK,IAAI,EAAE;oBAClB,WAAW,CAAC,EAAE,CAAC,CAAC;oBAChB,cAAc,CAAC,EAAE,CAAC,CAAC;oBACnB,IAAI,SAAS,EAAE;wBACb,MAAM,SAAS,EAAE,CAAC;qBACnB;gBACH,CAAC,YAGM,CACL,CACF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport { Alert, Button, LabeledTextarea } from \"@itwin/itwinui-react\";\nimport { LoadingSpinner } from \"../SharedComponents/LoadingSpinner\";\nimport \"./ManualGroupingCustomUI.scss\";\nimport type { GroupingCustomUIProps } from \"./GroupingMappingCustomUI\";\n\nexport const ManualGroupingCustomUI = ({\n updateQuery,\n isUpdating,\n resetView,\n initialEditModeQuery,\n}: GroupingCustomUIProps) => {\n const [manualInput, setManualInput] = React.useState(initialEditModeQuery ?? \"\");\n\n return (\n <div className='gmw-manual-form'>\n <Alert type='informational'>\n Generate group using an ECSQL query. Please select ECInstanceId and ECClassId columns in the query.\n </Alert>\n <LabeledTextarea\n label='Query'\n required\n value={manualInput}\n onChange={(event) => setManualInput(event.target.value)}\n disabled={isUpdating}\n placeholder={`E.g. \"SELECT ECInstanceId, ECClassId FROM BisCore:PhysicalElement\"`}\n />\n <div className='gmw-manual-actions'>\n {isUpdating && <LoadingSpinner />}\n <Button disabled={isUpdating} onClick={() => updateQuery(manualInput)}>\n Apply\n </Button>\n <Button\n disabled={isUpdating}\n onClick={async () => {\n updateQuery(\"\");\n setManualInput(\"\");\n if (resetView) {\n await resetView();\n }\n }}\n >\n Clear\n </Button>\n </div>\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Alert, Button, LabeledTextarea } from "@itwin/itwinui-react";
|
|
7
|
+
import { LoadingSpinner } from "../SharedComponents/LoadingSpinner";
|
|
8
|
+
import "./SearchGroupingCustomUI.scss";
|
|
9
|
+
export const SearchGroupingCustomUI = ({ updateQuery, isUpdating, resetView, }) => {
|
|
10
|
+
const [searchInput, setSearchInput] = React.useState("");
|
|
11
|
+
const isWrappedInQuotes = (text) => {
|
|
12
|
+
return text.startsWith(`"`) && text.endsWith(`"`);
|
|
13
|
+
};
|
|
14
|
+
const needsAndOperator = (token, index, searchQuery) => isWrappedInQuotes(token) ||
|
|
15
|
+
(index === 1 && isWrappedInQuotes(searchQuery[0]));
|
|
16
|
+
const generateSearchQuery = (searchQuery) => {
|
|
17
|
+
if (searchQuery.length === 0) {
|
|
18
|
+
updateQuery("");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let generatedSearchQuery = `SELECT be.ECInstanceId, be.ECClassId FROM bis.geometricelement3d be `;
|
|
22
|
+
generatedSearchQuery += `LEFT JOIN bis.SpatialCategory cat ON be.Category.Id = cat.ECInstanceID LEFT JOIN ecdbmeta.ECClassDef ecc ON be.ECClassId = ecc.ECInstanceId `;
|
|
23
|
+
generatedSearchQuery += `LEFT JOIN bis.PhysicalType pt ON be.TypeDefinition.Id = pt.ECInstanceID`;
|
|
24
|
+
generatedSearchQuery += ` WHERE `;
|
|
25
|
+
generatedSearchQuery += `((${searchQuery
|
|
26
|
+
.map((token, index) => `${index === 0
|
|
27
|
+
? ""
|
|
28
|
+
: needsAndOperator(token, index, searchQuery)
|
|
29
|
+
? "AND"
|
|
30
|
+
: "OR"} be.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
31
|
+
.join(" ")}) OR (${searchQuery
|
|
32
|
+
.map((token, index) => `${index === 0
|
|
33
|
+
? ""
|
|
34
|
+
: needsAndOperator(token, index, searchQuery)
|
|
35
|
+
? "AND"
|
|
36
|
+
: "OR"} be.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
37
|
+
.join(" ")})) OR ((${searchQuery
|
|
38
|
+
.map((token, index) => `${index === 0
|
|
39
|
+
? ""
|
|
40
|
+
: needsAndOperator(token, index, searchQuery)
|
|
41
|
+
? "AND"
|
|
42
|
+
: "OR"} cat.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
43
|
+
.join(" ")}) OR (${searchQuery
|
|
44
|
+
.map((token, index) => `${index === 0
|
|
45
|
+
? ""
|
|
46
|
+
: needsAndOperator(token, index, searchQuery)
|
|
47
|
+
? "AND"
|
|
48
|
+
: "OR"} cat.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
49
|
+
.join(" ")})) OR (${searchQuery
|
|
50
|
+
.map((token, index) => `${index === 0
|
|
51
|
+
? ""
|
|
52
|
+
: needsAndOperator(token, index, searchQuery)
|
|
53
|
+
? "AND"
|
|
54
|
+
: "OR"} ecc.name LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
55
|
+
.join(" ")})`;
|
|
56
|
+
// Physical Types
|
|
57
|
+
generatedSearchQuery += ` OR ((${searchQuery
|
|
58
|
+
.map((token, index) => `${index === 0
|
|
59
|
+
? ""
|
|
60
|
+
: needsAndOperator(token, index, searchQuery)
|
|
61
|
+
? "AND"
|
|
62
|
+
: "OR"} pt.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
63
|
+
.join(" ")}) OR (${searchQuery
|
|
64
|
+
.map((token, index) => `${index === 0
|
|
65
|
+
? ""
|
|
66
|
+
: needsAndOperator(token, index, searchQuery)
|
|
67
|
+
? "AND"
|
|
68
|
+
: "OR"} pt.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token}%'`)
|
|
69
|
+
.join(" ")})) `;
|
|
70
|
+
updateQuery(generatedSearchQuery);
|
|
71
|
+
};
|
|
72
|
+
return (React.createElement("div", { className: 'gmw-search-form' },
|
|
73
|
+
React.createElement(Alert, { type: 'informational' }, "Generate a query by keywords. Keywords wrapped in double quotes will be considered a required criteria."),
|
|
74
|
+
React.createElement(LabeledTextarea, { label: 'Query Keywords', required: true, value: searchInput, onChange: (event) => setSearchInput(event.target.value), disabled: isUpdating, placeholder: `E.g. "red" chair` }),
|
|
75
|
+
React.createElement("div", { className: 'gmw-search-actions' },
|
|
76
|
+
isUpdating && React.createElement(LoadingSpinner, null),
|
|
77
|
+
React.createElement(Button, { disabled: isUpdating, onClick: () => generateSearchQuery(searchInput
|
|
78
|
+
? searchInput
|
|
79
|
+
.replace(/(\r\n|\n|\r)/gm, "")
|
|
80
|
+
.trim()
|
|
81
|
+
.split(" ")
|
|
82
|
+
: []) }, "Apply"),
|
|
83
|
+
React.createElement(Button, { disabled: isUpdating, onClick: async () => {
|
|
84
|
+
updateQuery("");
|
|
85
|
+
setSearchInput("");
|
|
86
|
+
if (resetView) {
|
|
87
|
+
await resetView();
|
|
88
|
+
}
|
|
89
|
+
} }, "Clear"))));
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=SearchGroupingCustomUI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchGroupingCustomUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/SearchGroupingCustomUI.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport { Alert, Button, LabeledTextarea } from \"@itwin/itwinui-react\";\nimport type { GroupingCustomUIProps } from \"./GroupingMappingCustomUI\";\nimport { LoadingSpinner } from \"../SharedComponents/LoadingSpinner\";\nimport \"./SearchGroupingCustomUI.scss\";\n\nexport const SearchGroupingCustomUI = ({\n updateQuery,\n isUpdating,\n resetView,\n}: GroupingCustomUIProps) => {\n const [searchInput, setSearchInput] = React.useState(\"\");\n const isWrappedInQuotes = (text: string) => {\n return text.startsWith(`\"`) && text.endsWith(`\"`);\n };\n\n const needsAndOperator = (\n token: string,\n index: number,\n searchQuery: string[],\n ) =>\n isWrappedInQuotes(token) ||\n (index === 1 && isWrappedInQuotes(searchQuery[0]));\n\n const generateSearchQuery = (searchQuery: string[]) => {\n if (searchQuery.length === 0) {\n updateQuery(\"\");\n return;\n }\n\n let generatedSearchQuery = `SELECT be.ECInstanceId, be.ECClassId FROM bis.geometricelement3d be `;\n generatedSearchQuery += `LEFT JOIN bis.SpatialCategory cat ON be.Category.Id = cat.ECInstanceID LEFT JOIN ecdbmeta.ECClassDef ecc ON be.ECClassId = ecc.ECInstanceId `;\n generatedSearchQuery += `LEFT JOIN bis.PhysicalType pt ON be.TypeDefinition.Id = pt.ECInstanceID`;\n generatedSearchQuery += ` WHERE `;\n generatedSearchQuery += `((${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } be.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")}) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } be.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})) OR ((${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } cat.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")}) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } cat.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } ecc.name LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})`;\n // Physical Types\n generatedSearchQuery += ` OR ((${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } pt.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")}) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } pt.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})) `;\n\n updateQuery(generatedSearchQuery);\n };\n\n return (\n <div className='gmw-search-form'>\n <Alert type='informational'>\n Generate a query by keywords. Keywords wrapped in double quotes will be\n considered a required criteria.\n </Alert>\n <LabeledTextarea\n label='Query Keywords'\n required\n value={searchInput}\n onChange={(event) => setSearchInput(event.target.value)}\n disabled={isUpdating}\n placeholder={`E.g. \"red\" chair`}\n />\n <div className='gmw-search-actions'>\n {isUpdating && <LoadingSpinner />}\n <Button\n disabled={isUpdating}\n onClick={() =>\n generateSearchQuery(\n searchInput\n ? searchInput\n .replace(/(\\r\\n|\\n|\\r)/gm, \"\")\n .trim()\n .split(\" \")\n : [],\n )\n }\n >\n Apply\n </Button>\n <Button\n disabled={isUpdating}\n onClick={async () => {\n updateQuery(\"\");\n setSearchInput(\"\");\n if (resetView) {\n await resetView();\n }\n }}\n >\n Clear\n </Button>\n </div>\n </div>\n );\n};\n\n"]}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/** UI Provider for iTwin Viewer Applications */
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./WidgetShell/GroupingMappingWidget";
|
|
3
3
|
/** Interfaces for providing custom MappingClient and API configuration */
|
|
4
|
-
export { createDefaultMappingClient, createMappingClient, MappingClientContext, useMappingClient } from "./
|
|
5
|
-
export { ClientPrefix, GetAccessTokenFn, GroupingMappingApiConfig, GroupingMappingApiConfigContext, useGroupingMappingApiConfig } from "./
|
|
4
|
+
export { createDefaultMappingClient, createMappingClient, MappingClientContext, useMappingClient } from "./components/context/MappingClientContext";
|
|
5
|
+
export { ClientPrefix, GetAccessTokenFn, GroupingMappingApiConfig, GroupingMappingApiConfigContext, useGroupingMappingApiConfig } from "./components/context/GroupingApiConfigContext";
|
|
6
6
|
export * from "@itwin/insights-client";
|
|
7
7
|
/** Internal components for custom UIs */
|
|
8
|
-
export { Mappings, MappingsProps } from "./
|
|
9
|
-
export { useMappingsOperations, MappingsOperationsProps } from "./
|
|
10
|
-
export { MappingAction, MappingActionProps } from "./
|
|
11
|
-
export { MappingsView, MappingsViewProps } from "./
|
|
12
|
-
export { useGroupsOperations, GroupsOperationsProps } from "./
|
|
13
|
-
export { GroupsView, GroupsViewProps } from "./
|
|
14
|
-
export { GroupingMappingContext, GroupingMappingContextProps } from "./
|
|
15
|
-
export { Groups, GroupsProps } from "./
|
|
16
|
-
export { GroupsVisualization, GroupsVisualizationProps } from "./
|
|
17
|
-
export { GroupAction, GroupActionProps } from "./
|
|
18
|
-
export { PropertyMenu, PropertyMenuProps } from "./
|
|
19
|
-
export { PropertyMenuWithVisualization, PropertyMenuWithVisualizationProps } from "./
|
|
20
|
-
export { GroupPropertyAction, GroupPropertyActionProps } from "./
|
|
21
|
-
export { CalculatedPropertyAction, CalculatedPropertyActionProps } from "./
|
|
22
|
-
export { CalculatedPropertyActionWithVisuals, CalculatedPropertyActionWithVisualsProps } from "./
|
|
23
|
-
export { CustomCalculationAction, CustomCalculationActionProps } from "./
|
|
24
|
-
export { SearchGroupingCustomUI } from "./
|
|
25
|
-
export { ManualGroupingCustomUI } from "./
|
|
26
|
-
export { GroupQueryBuilderCustomUI } from "./
|
|
27
|
-
export { GroupingMappingCustomUI, GroupingMappingCustomUIType, ContextCustomUI, GroupingCustomUI, GroupingCustomUIProps, ContextCustomUIProps } from "./
|
|
8
|
+
export { Mappings, MappingsProps } from "./components/Mappings/Mappings";
|
|
9
|
+
export { useMappingsOperations, MappingsOperationsProps } from "./components/Mappings/hooks/useMappingsOperations";
|
|
10
|
+
export { MappingAction, MappingActionProps } from "./components/Mappings/Editing/MappingAction";
|
|
11
|
+
export { MappingsView, MappingsViewProps } from "./components/Mappings/MappingsView";
|
|
12
|
+
export { useGroupsOperations, GroupsOperationsProps } from "./components/Groups/hooks/useGroupsOperations";
|
|
13
|
+
export { GroupsView, GroupsViewProps } from "./components/Groups/GroupsView";
|
|
14
|
+
export { GroupingMappingContext, GroupingMappingContextProps } from "./components/GroupingMappingContext";
|
|
15
|
+
export { Groups, GroupsProps } from "./components/Groups/Groups";
|
|
16
|
+
export { GroupsVisualization, GroupsVisualizationProps } from "./components/Groups/GroupsVisualization";
|
|
17
|
+
export { GroupAction, GroupActionProps } from "./components/Groups/Editing/GroupAction";
|
|
18
|
+
export { PropertyMenu, PropertyMenuProps } from "./components/Properties/PropertyMenu";
|
|
19
|
+
export { PropertyMenuWithVisualization, PropertyMenuWithVisualizationProps } from "./components/Properties/PropertyMenuWithVisualization";
|
|
20
|
+
export { GroupPropertyAction, GroupPropertyActionProps } from "./components/Properties/GroupProperties/GroupPropertyAction";
|
|
21
|
+
export { CalculatedPropertyAction, CalculatedPropertyActionProps } from "./components/Properties/CalculatedProperties/CalculatedPropertyAction";
|
|
22
|
+
export { CalculatedPropertyActionWithVisuals, CalculatedPropertyActionWithVisualsProps } from "./components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals";
|
|
23
|
+
export { CustomCalculationAction, CustomCalculationActionProps } from "./components/Properties/CustomCalculations/CustomCalculationAction";
|
|
24
|
+
export { SearchGroupingCustomUI } from "./components/customUI/SearchGroupingCustomUI";
|
|
25
|
+
export { ManualGroupingCustomUI } from "./components/customUI/ManualGroupingCustomUI";
|
|
26
|
+
export { GroupQueryBuilderCustomUI } from "./components/customUI/GroupQueryBuilderCustomUI";
|
|
27
|
+
export { GroupingMappingCustomUI, GroupingMappingCustomUIType, ContextCustomUI, GroupingCustomUI, GroupingCustomUIProps, ContextCustomUIProps } from "./components/customUI/GroupingMappingCustomUI";
|
|
28
28
|
/** Formula DataType resolver */
|
|
29
29
|
export { resolveFormulaDataType } from "./formula/FormulaDataTypeResolver";
|
|
30
30
|
export { DataType, PropertyMap } from "./formula/Types";
|
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
/** UI Provider for iTwin Viewer Applications */
|
|
6
|
-
export * from "./
|
|
6
|
+
export * from "./WidgetShell/GroupingMappingWidget";
|
|
7
7
|
/** Interfaces for providing custom MappingClient and API configuration */
|
|
8
|
-
export { createDefaultMappingClient, createMappingClient, MappingClientContext, useMappingClient } from "./
|
|
9
|
-
export { GroupingMappingApiConfigContext, useGroupingMappingApiConfig } from "./
|
|
8
|
+
export { createDefaultMappingClient, createMappingClient, MappingClientContext, useMappingClient } from "./components/context/MappingClientContext";
|
|
9
|
+
export { GroupingMappingApiConfigContext, useGroupingMappingApiConfig } from "./components/context/GroupingApiConfigContext";
|
|
10
10
|
export * from "@itwin/insights-client";
|
|
11
11
|
/** Internal components for custom UIs */
|
|
12
|
-
export { Mappings } from "./
|
|
13
|
-
export { useMappingsOperations } from "./
|
|
14
|
-
export { MappingAction } from "./
|
|
15
|
-
export { MappingsView } from "./
|
|
16
|
-
export { useGroupsOperations } from "./
|
|
17
|
-
export { GroupsView } from "./
|
|
18
|
-
export { GroupingMappingContext } from "./
|
|
19
|
-
export { Groups } from "./
|
|
20
|
-
export { GroupsVisualization } from "./
|
|
21
|
-
export { GroupAction } from "./
|
|
22
|
-
export { PropertyMenu } from "./
|
|
23
|
-
export { PropertyMenuWithVisualization } from "./
|
|
24
|
-
export { GroupPropertyAction } from "./
|
|
25
|
-
export { CalculatedPropertyAction } from "./
|
|
26
|
-
export { CalculatedPropertyActionWithVisuals } from "./
|
|
27
|
-
export { CustomCalculationAction } from "./
|
|
28
|
-
export { SearchGroupingCustomUI } from "./
|
|
29
|
-
export { ManualGroupingCustomUI } from "./
|
|
30
|
-
export { GroupQueryBuilderCustomUI } from "./
|
|
31
|
-
export { GroupingMappingCustomUIType } from "./
|
|
12
|
+
export { Mappings } from "./components/Mappings/Mappings";
|
|
13
|
+
export { useMappingsOperations } from "./components/Mappings/hooks/useMappingsOperations";
|
|
14
|
+
export { MappingAction } from "./components/Mappings/Editing/MappingAction";
|
|
15
|
+
export { MappingsView } from "./components/Mappings/MappingsView";
|
|
16
|
+
export { useGroupsOperations } from "./components/Groups/hooks/useGroupsOperations";
|
|
17
|
+
export { GroupsView } from "./components/Groups/GroupsView";
|
|
18
|
+
export { GroupingMappingContext } from "./components/GroupingMappingContext";
|
|
19
|
+
export { Groups } from "./components/Groups/Groups";
|
|
20
|
+
export { GroupsVisualization } from "./components/Groups/GroupsVisualization";
|
|
21
|
+
export { GroupAction } from "./components/Groups/Editing/GroupAction";
|
|
22
|
+
export { PropertyMenu } from "./components/Properties/PropertyMenu";
|
|
23
|
+
export { PropertyMenuWithVisualization } from "./components/Properties/PropertyMenuWithVisualization";
|
|
24
|
+
export { GroupPropertyAction } from "./components/Properties/GroupProperties/GroupPropertyAction";
|
|
25
|
+
export { CalculatedPropertyAction } from "./components/Properties/CalculatedProperties/CalculatedPropertyAction";
|
|
26
|
+
export { CalculatedPropertyActionWithVisuals } from "./components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals";
|
|
27
|
+
export { CustomCalculationAction } from "./components/Properties/CustomCalculations/CustomCalculationAction";
|
|
28
|
+
export { SearchGroupingCustomUI } from "./components/customUI/SearchGroupingCustomUI";
|
|
29
|
+
export { ManualGroupingCustomUI } from "./components/customUI/ManualGroupingCustomUI";
|
|
30
|
+
export { GroupQueryBuilderCustomUI } from "./components/customUI/GroupQueryBuilderCustomUI";
|
|
31
|
+
export { GroupingMappingCustomUIType } from "./components/customUI/GroupingMappingCustomUI";
|
|
32
32
|
/** Formula DataType resolver */
|
|
33
33
|
export { resolveFormulaDataType } from "./formula/FormulaDataTypeResolver";
|
|
34
34
|
//# sourceMappingURL=grouping-mapping-widget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping-mapping-widget.js","sourceRoot":"","sources":["../../src/grouping-mapping-widget.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,gDAAgD;AAChD,cAAc,
|
|
1
|
+
{"version":3,"file":"grouping-mapping-widget.js","sourceRoot":"","sources":["../../src/grouping-mapping-widget.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,gDAAgD;AAChD,cAAc,qCAAqC,CAAC;AAEpD,0EAA0E;AAC1E,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AACpJ,OAAO,EAA4D,+BAA+B,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACvL,cAAc,wBAAwB,CAAC;AAEvC,yCAAyC;AACzC,OAAO,EAAE,QAAQ,EAAiB,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAA2B,MAAM,mDAAmD,CAAC;AACnH,OAAO,EAAE,aAAa,EAAsB,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,YAAY,EAAqB,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAyB,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAmB,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAA+B,MAAM,qCAAqC,CAAC;AAC1G,OAAO,EAAE,MAAM,EAAe,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAA4B,MAAM,yCAAyC,CAAC;AACxG,OAAO,EAAE,WAAW,EAAoB,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,YAAY,EAAqB,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAsC,MAAM,uDAAuD,CAAC;AAC1I,OAAO,EAAE,mBAAmB,EAA4B,MAAM,6DAA6D,CAAC;AAC5H,OAAO,EAAE,wBAAwB,EAAiC,MAAM,uEAAuE,CAAC;AAChJ,OAAO,EAAE,mCAAmC,EAA4C,MAAM,kFAAkF,CAAC;AACjL,OAAO,EAAE,uBAAuB,EAAgC,MAAM,oEAAoE,CAAC;AAC3I,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAA2B,2BAA2B,EAAkF,MAAM,+CAA+C,CAAC;AAErM,gCAAgC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** UI Provider for iTwin Viewer Applications */\nexport * from \"./WidgetShell/GroupingMappingWidget\";\n\n/** Interfaces for providing custom MappingClient and API configuration */\nexport { createDefaultMappingClient, createMappingClient, MappingClientContext, useMappingClient } from \"./components/context/MappingClientContext\";\nexport { ClientPrefix, GetAccessTokenFn, GroupingMappingApiConfig, GroupingMappingApiConfigContext, useGroupingMappingApiConfig } from \"./components/context/GroupingApiConfigContext\";\nexport * from \"@itwin/insights-client\";\n\n/** Internal components for custom UIs */\nexport { Mappings, MappingsProps } from \"./components/Mappings/Mappings\";\nexport { useMappingsOperations, MappingsOperationsProps } from \"./components/Mappings/hooks/useMappingsOperations\";\nexport { MappingAction, MappingActionProps } from \"./components/Mappings/Editing/MappingAction\";\nexport { MappingsView, MappingsViewProps } from \"./components/Mappings/MappingsView\";\nexport { useGroupsOperations, GroupsOperationsProps } from \"./components/Groups/hooks/useGroupsOperations\";\nexport { GroupsView, GroupsViewProps } from \"./components/Groups/GroupsView\";\nexport { GroupingMappingContext, GroupingMappingContextProps } from \"./components/GroupingMappingContext\";\nexport { Groups, GroupsProps } from \"./components/Groups/Groups\";\nexport { GroupsVisualization, GroupsVisualizationProps } from \"./components/Groups/GroupsVisualization\";\nexport { GroupAction, GroupActionProps } from \"./components/Groups/Editing/GroupAction\";\nexport { PropertyMenu, PropertyMenuProps } from \"./components/Properties/PropertyMenu\";\nexport { PropertyMenuWithVisualization, PropertyMenuWithVisualizationProps } from \"./components/Properties/PropertyMenuWithVisualization\";\nexport { GroupPropertyAction, GroupPropertyActionProps } from \"./components/Properties/GroupProperties/GroupPropertyAction\";\nexport { CalculatedPropertyAction, CalculatedPropertyActionProps } from \"./components/Properties/CalculatedProperties/CalculatedPropertyAction\";\nexport { CalculatedPropertyActionWithVisuals, CalculatedPropertyActionWithVisualsProps } from \"./components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals\";\nexport { CustomCalculationAction, CustomCalculationActionProps } from \"./components/Properties/CustomCalculations/CustomCalculationAction\";\nexport { SearchGroupingCustomUI } from \"./components/customUI/SearchGroupingCustomUI\";\nexport { ManualGroupingCustomUI } from \"./components/customUI/ManualGroupingCustomUI\";\nexport { GroupQueryBuilderCustomUI } from \"./components/customUI/GroupQueryBuilderCustomUI\";\nexport { GroupingMappingCustomUI, GroupingMappingCustomUIType, ContextCustomUI, GroupingCustomUI, GroupingCustomUIProps, ContextCustomUIProps } from \"./components/customUI/GroupingMappingCustomUI\";\n\n/** Formula DataType resolver */\nexport { resolveFormulaDataType } from \"./formula/FormulaDataTypeResolver\";\nexport { DataType, PropertyMap } from \"./formula/Types\";\nexport { IResult } from \"./formula/IResult\";\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataType } from "@itwin/insights-client";
|
|
2
|
-
import { convertPresentationFields, convertToECProperties, findProperties } from "../
|
|
2
|
+
import { convertPresentationFields, convertToECProperties, findProperties } from "../components/Properties/GroupProperties/GroupPropertyUtils";
|
|
3
3
|
import { createTestECClassInfo, createTestNestedContentField, createTestPropertiesContentField, createTestPropertyInfo, createTestRelatedClassInfo } from "./PropertyFieldsHelpers";
|
|
4
4
|
import { assert, expect } from "chai";
|
|
5
5
|
import { PropertyValueFormat, RelationshipMeaning } from "@itwin/presentation-common";
|