@itwin/grouping-mapping-widget 0.19.2 → 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExtractionStatusIcon.js","sourceRoot":"","sources":["../../../../src/widget/components/ExtractionStatusIcon.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,wDAA+E;AAC/E,kDAA0B;AAC1B,oEAAwD;AAQjD,MAAM,oBAAoB,GAAG,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAA6B,EAAE,EAAE;IACtG,OAAO,CACL,8BAAC,uBAAO,IAAC,OAAO,EAAE,WAAW;QAC3B,8BAAC,0BAAU,IAAC,SAAS,EAAC,YAAY,EAAC,OAAO,EAAE,OAAO;YACjD,8BAAC,kCAAkB,IAAC,MAAM,EAAE,UAAU;gBACpC,8BAAC,gCAAU,OAAG,CACK,CACV,CACL,CACX,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,oBAAoB,wBAU/B","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 { IconButton, NotificationMarker, Tooltip } from \"@itwin/itwinui-react\";\nimport React from \"react\";\nimport { SvgProcess } from \"@itwin/itwinui-icons-react\";\n\nexport interface ExtractionStatusIconProps {\n iconStatus: \"negative\" | \"positive\" | \"warning\";\n onClick: () => void;\n iconMessage: string;\n}\n\nexport const ExtractionStatusIcon = ({ iconStatus, onClick, iconMessage }: ExtractionStatusIconProps) => {\n return (\n <Tooltip content={iconMessage}>\n <IconButton styleType='borderless' onClick={onClick}>\n <NotificationMarker status={iconStatus}>\n <SvgProcess />\n </NotificationMarker>\n </IconButton>\n </Tooltip>\n );\n};\n"]}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GroupAction = void 0;
|
|
26
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
27
|
-
const react_1 = __importStar(require("react"));
|
|
28
|
-
const utils_1 = require("./utils");
|
|
29
|
-
require("./GroupAction.scss");
|
|
30
|
-
const useValidator_1 = __importDefault(require("../hooks/useValidator"));
|
|
31
|
-
const GroupingApiConfigContext_1 = require("./context/GroupingApiConfigContext");
|
|
32
|
-
const MappingClientContext_1 = require("./context/MappingClientContext");
|
|
33
|
-
const GroupingMappingCustomUIContext_1 = require("./context/GroupingMappingCustomUIContext");
|
|
34
|
-
const GroupingMappingCustomUI_1 = require("./customUI/GroupingMappingCustomUI");
|
|
35
|
-
const QueryBuilderStep_1 = require("./QueryBuilderStep");
|
|
36
|
-
const GroupDetailsStep_1 = require("./GroupDetailsStep");
|
|
37
|
-
const QueryBuilderActionPanel_1 = require("./QueryBuilderActionPanel");
|
|
38
|
-
const GroupDetailsActionPanel_1 = require("./GroupDetailsActionPanel");
|
|
39
|
-
const useVisualization_1 = require("../hooks/useVisualization");
|
|
40
|
-
const defaultDisplayStrings = {
|
|
41
|
-
groupDetails: "Group Details",
|
|
42
|
-
groupBy: "Group By",
|
|
43
|
-
};
|
|
44
|
-
var GroupActionStep;
|
|
45
|
-
(function (GroupActionStep) {
|
|
46
|
-
GroupActionStep[GroupActionStep["QueryBuilder"] = 0] = "QueryBuilder";
|
|
47
|
-
GroupActionStep[GroupActionStep["GroupDetails"] = 1] = "GroupDetails";
|
|
48
|
-
})(GroupActionStep || (GroupActionStep = {}));
|
|
49
|
-
const GroupAction = (props) => {
|
|
50
|
-
const { getAccessToken, iModelId, iModelConnection } = (0, GroupingApiConfigContext_1.useGroupingMappingApiConfig)();
|
|
51
|
-
if (!iModelConnection) {
|
|
52
|
-
throw new Error("This component requires an active iModelConnection.");
|
|
53
|
-
}
|
|
54
|
-
const mappingClient = (0, MappingClientContext_1.useMappingClient)();
|
|
55
|
-
const groupUIs = (0, GroupingMappingCustomUIContext_1.useGroupingMappingCustomUI)().customUIs
|
|
56
|
-
.filter((p) => p.type === GroupingMappingCustomUI_1.GroupingMappingCustomUIType.Grouping);
|
|
57
|
-
const [details, setDetails] = (0, react_1.useState)({
|
|
58
|
-
groupName: props.group?.groupName ?? "",
|
|
59
|
-
description: props.group?.description ?? "",
|
|
60
|
-
});
|
|
61
|
-
const [query, setQuery] = (0, react_1.useState)("");
|
|
62
|
-
const [queryRowCount, setQueryRowCount] = (0, react_1.useState)(0);
|
|
63
|
-
const [validator, setShowValidationMessage] = (0, useValidator_1.default)();
|
|
64
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
65
|
-
const [queryGenerationType, setQueryGenerationType] = (0, react_1.useState)(props.queryGenerationType);
|
|
66
|
-
const { isRendering, setIsRendering, simpleSelectionQuery, setSimpleSelectionQuery, clearPresentationSelection, resetView, } = (0, useVisualization_1.useVisualization)(props.shouldVisualize, iModelConnection, query, queryGenerationType);
|
|
67
|
-
const isUpdating = isLoading || isRendering;
|
|
68
|
-
const [currentStep, setCurrentStep] = react_1.default.useState(GroupActionStep.QueryBuilder);
|
|
69
|
-
const displayStrings = react_1.default.useMemo(() => ({ ...defaultDisplayStrings, ...props.displayStrings }), [props.displayStrings]);
|
|
70
|
-
(0, react_1.useEffect)(() => setQueryGenerationType(props.queryGenerationType), [props.queryGenerationType]);
|
|
71
|
-
(0, react_1.useEffect)(() => {
|
|
72
|
-
const fetchQueryRowCount = async () => {
|
|
73
|
-
try {
|
|
74
|
-
if (!query || query === "") {
|
|
75
|
-
setQueryRowCount(0);
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
setIsLoading(true);
|
|
79
|
-
const result = await iModelConnection.queryRowCount(query);
|
|
80
|
-
setQueryRowCount(result);
|
|
81
|
-
}
|
|
82
|
-
catch {
|
|
83
|
-
itwinui_react_1.toaster.negative("Query failed to resolve.");
|
|
84
|
-
}
|
|
85
|
-
finally {
|
|
86
|
-
setIsLoading(false);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
void fetchQueryRowCount();
|
|
90
|
-
}, [iModelConnection, query, setIsRendering]);
|
|
91
|
-
const isBlockingActions = !(details.groupName &&
|
|
92
|
-
(query || simpleSelectionQuery) &&
|
|
93
|
-
!isRendering &&
|
|
94
|
-
!isLoading);
|
|
95
|
-
const getOptions = (0, react_1.useMemo)(() => groupUIs.map((ui) => ({
|
|
96
|
-
label: ui.displayLabel,
|
|
97
|
-
value: ui.name,
|
|
98
|
-
icon: ui.icon,
|
|
99
|
-
})), [groupUIs]);
|
|
100
|
-
const onChange = (0, react_1.useCallback)(async (value) => {
|
|
101
|
-
setQueryGenerationType(value);
|
|
102
|
-
clearPresentationSelection();
|
|
103
|
-
setQuery("");
|
|
104
|
-
setSimpleSelectionQuery("");
|
|
105
|
-
await resetView();
|
|
106
|
-
}, [clearPresentationSelection, resetView, setSimpleSelectionQuery]);
|
|
107
|
-
const save = (0, react_1.useCallback)(async () => {
|
|
108
|
-
if (!validator.allValid()) {
|
|
109
|
-
setShowValidationMessage(true);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
try {
|
|
113
|
-
setIsLoading(true);
|
|
114
|
-
const currentQuery = query || simpleSelectionQuery;
|
|
115
|
-
const accessToken = await getAccessToken();
|
|
116
|
-
props.group
|
|
117
|
-
? await mappingClient.updateGroup(accessToken, iModelId, props.mappingId, props.group.id ?? "", { ...details, query: currentQuery })
|
|
118
|
-
: await mappingClient.createGroup(accessToken, iModelId, props.mappingId, {
|
|
119
|
-
...details,
|
|
120
|
-
query: currentQuery,
|
|
121
|
-
});
|
|
122
|
-
clearPresentationSelection();
|
|
123
|
-
setDetails({
|
|
124
|
-
groupName: props.group?.groupName ?? "",
|
|
125
|
-
description: props.group?.description ?? "",
|
|
126
|
-
});
|
|
127
|
-
setCurrentStep(GroupActionStep.QueryBuilder);
|
|
128
|
-
setShowValidationMessage(false);
|
|
129
|
-
props.onSaveSuccess();
|
|
130
|
-
}
|
|
131
|
-
catch (error) {
|
|
132
|
-
(0, utils_1.handleError)(error.status);
|
|
133
|
-
}
|
|
134
|
-
finally {
|
|
135
|
-
setIsLoading(false);
|
|
136
|
-
}
|
|
137
|
-
}, [validator, setShowValidationMessage, query, simpleSelectionQuery, getAccessToken, props, mappingClient, iModelId, details, clearPresentationSelection]);
|
|
138
|
-
const isQueryBuilderStep = currentStep === GroupActionStep.QueryBuilder;
|
|
139
|
-
const isGroupDetailsStep = currentStep === GroupActionStep.GroupDetails;
|
|
140
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
141
|
-
react_1.default.createElement("div", { className: "gmw-group-add-modify-container" },
|
|
142
|
-
react_1.default.createElement(QueryBuilderStep_1.QueryBuilderStep, { queryRowCount: queryRowCount, isHidden: !isQueryBuilderStep, queryGenerationType: queryGenerationType, groupUIs: groupUIs, isUpdating: isUpdating, resetView: resetView, setQuery: setQuery, onChange: onChange, getOptions: getOptions, displayStrings: { ...displayStrings }, group: props.group }),
|
|
143
|
-
isGroupDetailsStep && react_1.default.createElement(GroupDetailsStep_1.GroupDetailsStep, { details: details, setDetails: setDetails, validator: validator, displayStrings: { ...displayStrings } })),
|
|
144
|
-
react_1.default.createElement("div", { className: 'gmw-action-panel' },
|
|
145
|
-
isLoading &&
|
|
146
|
-
react_1.default.createElement(utils_1.LoadingSpinner, null),
|
|
147
|
-
isQueryBuilderStep && (react_1.default.createElement(QueryBuilderActionPanel_1.QueryBuilderActionPanel, { onClickNext: () => setCurrentStep(GroupActionStep.GroupDetails) })),
|
|
148
|
-
isGroupDetailsStep && (react_1.default.createElement(GroupDetailsActionPanel_1.GroupDetailsActionPanel, { isSaveDisabled: isBlockingActions, onClickSave: save, onClickBack: () => setCurrentStep(GroupActionStep.QueryBuilder) })),
|
|
149
|
-
props.onClickCancel && react_1.default.createElement(itwinui_react_1.Button, { type: 'button', id: 'cancel', onClick: () => {
|
|
150
|
-
clearPresentationSelection();
|
|
151
|
-
props.onClickCancel && props.onClickCancel();
|
|
152
|
-
} }, "Cancel"))));
|
|
153
|
-
};
|
|
154
|
-
exports.GroupAction = GroupAction;
|
|
155
|
-
//# sourceMappingURL=GroupAction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupAction.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupAction.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 type {\n SelectOption,\n} from \"@itwin/itwinui-react\";\nimport {\n Button,\n toaster,\n} from \"@itwin/itwinui-react\";\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport {\n handleError,\n LoadingSpinner,\n} from \"./utils\";\nimport \"./GroupAction.scss\";\nimport useValidator from \"../hooks/useValidator\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\nimport { useMappingClient } from \"./context/MappingClientContext\";\nimport { useGroupingMappingCustomUI } from \"./context/GroupingMappingCustomUIContext\";\nimport type { GroupingCustomUI } from \"./customUI/GroupingMappingCustomUI\";\nimport { GroupingMappingCustomUIType } from \"./customUI/GroupingMappingCustomUI\";\nimport type { Group } from \"@itwin/insights-client\";\nimport { QueryBuilderStep } from \"./QueryBuilderStep\";\nimport { GroupDetailsStep } from \"./GroupDetailsStep\";\nimport { QueryBuilderActionPanel } from \"./QueryBuilderActionPanel\";\nimport { GroupDetailsActionPanel } from \"./GroupDetailsActionPanel\";\nimport { useVisualization } from \"../hooks/useVisualization\";\n\nconst defaultDisplayStrings = {\n groupDetails: \"Group Details\",\n groupBy: \"Group By\",\n};\n\nenum GroupActionStep {\n QueryBuilder,\n GroupDetails,\n}\n\nexport interface GroupActionProps {\n mappingId: string;\n shouldVisualize: boolean;\n group?: Group;\n queryGenerationType: string;\n onSaveSuccess: () => void;\n onClickCancel?: () => void;\n displayStrings?: Partial<typeof defaultDisplayStrings>;\n}\n\nexport const GroupAction = (props: GroupActionProps) => {\n const { getAccessToken, iModelId, iModelConnection } = useGroupingMappingApiConfig();\n if (!iModelConnection) {\n throw new Error(\"This component requires an active iModelConnection.\");\n }\n const mappingClient = useMappingClient();\n const groupUIs: GroupingCustomUI[] = useGroupingMappingCustomUI().customUIs\n .filter((p) => p.type === GroupingMappingCustomUIType.Grouping) as GroupingCustomUI[];\n const [details, setDetails] = useState({\n groupName: props.group?.groupName ?? \"\",\n description: props.group?.description ?? \"\",\n });\n const [query, setQuery] = useState<string>(\"\");\n const [queryRowCount, setQueryRowCount] = useState<number>(0);\n\n const [validator, setShowValidationMessage] = useValidator();\n const [isLoading, setIsLoading] = useState<boolean>(false);\n\n const [queryGenerationType, setQueryGenerationType] = useState(\n props.queryGenerationType,\n );\n const {\n isRendering,\n setIsRendering,\n simpleSelectionQuery,\n setSimpleSelectionQuery,\n clearPresentationSelection,\n resetView,\n } = useVisualization(\n props.shouldVisualize,\n iModelConnection,\n query,\n queryGenerationType\n );\n const isUpdating = isLoading || isRendering;\n const [currentStep, setCurrentStep] = React.useState(GroupActionStep.QueryBuilder);\n\n const displayStrings = React.useMemo(\n () => ({ ...defaultDisplayStrings, ...props.displayStrings }),\n [props.displayStrings]\n );\n\n useEffect(() => setQueryGenerationType(props.queryGenerationType), [props.queryGenerationType]);\n\n useEffect(() => {\n const fetchQueryRowCount = async () => {\n try {\n if (!query || query === \"\") {\n setQueryRowCount(0);\n return;\n }\n setIsLoading(true);\n const result = await iModelConnection.queryRowCount(query);\n setQueryRowCount(result);\n } catch {\n toaster.negative(\"Query failed to resolve.\");\n } finally {\n setIsLoading(false);\n }\n };\n\n void fetchQueryRowCount();\n }, [iModelConnection, query, setIsRendering]);\n\n const isBlockingActions = !(\n details.groupName &&\n (query || simpleSelectionQuery) &&\n !isRendering &&\n !isLoading\n );\n\n const getOptions = useMemo(\n (): SelectOption<string>[] =>\n groupUIs.map((ui) => ({\n label: ui.displayLabel,\n value: ui.name,\n icon: ui.icon,\n })),\n [groupUIs]\n );\n\n const onChange = useCallback(\n async (value: string) => {\n setQueryGenerationType(value);\n clearPresentationSelection();\n setQuery(\"\");\n setSimpleSelectionQuery(\"\");\n await resetView();\n },\n [clearPresentationSelection, resetView, setSimpleSelectionQuery]\n );\n\n const save = useCallback(async () => {\n if (!validator.allValid()) {\n setShowValidationMessage(true);\n return;\n }\n try {\n setIsLoading(true);\n const currentQuery = query || simpleSelectionQuery;\n\n const accessToken = await getAccessToken();\n\n props.group\n ? await mappingClient.updateGroup(\n accessToken,\n iModelId,\n props.mappingId,\n props.group.id ?? \"\",\n { ...details, query: currentQuery },\n )\n : await mappingClient.createGroup(\n accessToken,\n iModelId,\n props.mappingId,\n {\n ...details,\n query: currentQuery,\n },\n );\n clearPresentationSelection();\n setDetails({\n groupName: props.group?.groupName ?? \"\",\n description: props.group?.description ?? \"\",\n });\n setCurrentStep(GroupActionStep.QueryBuilder);\n setShowValidationMessage(false);\n props.onSaveSuccess();\n } catch (error: any) {\n handleError(error.status);\n } finally {\n setIsLoading(false);\n }\n }, [validator, setShowValidationMessage, query, simpleSelectionQuery, getAccessToken, props, mappingClient, iModelId, details, clearPresentationSelection]);\n\n const isQueryBuilderStep = currentStep === GroupActionStep.QueryBuilder;\n const isGroupDetailsStep = currentStep === GroupActionStep.GroupDetails;\n return (\n <>\n <div className=\"gmw-group-add-modify-container\">\n <QueryBuilderStep\n queryRowCount={queryRowCount}\n isHidden={!isQueryBuilderStep}\n queryGenerationType={queryGenerationType}\n groupUIs={groupUIs}\n isUpdating={isUpdating}\n resetView={resetView}\n setQuery={setQuery}\n onChange={onChange}\n getOptions={getOptions}\n displayStrings={{ ...displayStrings }}\n group={props.group}\n />\n {isGroupDetailsStep && <GroupDetailsStep\n details={details}\n setDetails={setDetails}\n validator={validator}\n displayStrings={{ ...displayStrings }}\n />}\n </div>\n <div className='gmw-action-panel'>\n {isLoading &&\n <LoadingSpinner />\n }\n {isQueryBuilderStep && (\n <QueryBuilderActionPanel onClickNext={() => setCurrentStep(GroupActionStep.GroupDetails)} />\n )}\n {isGroupDetailsStep && (\n <GroupDetailsActionPanel\n isSaveDisabled={isBlockingActions}\n onClickSave={save}\n onClickBack={() => setCurrentStep(GroupActionStep.QueryBuilder)}\n />\n )}\n {props.onClickCancel && <Button\n type='button'\n id='cancel'\n onClick={() => {\n clearPresentationSelection();\n props.onClickCancel && props.onClickCancel();\n }}\n >\n Cancel\n </Button>}\n </div>\n </>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupColorLegend.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupColorLegend.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,kDAA0B;AAC1B,wDAAkD;AAElD,mDAAgD;AAChD,mCAAiC;AAO1B,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAyB,EAAE,EAAE,CAAC,CAC5E,8BAAC,0BAAU,IAAC,SAAS,EAAC,YAAY;IAChC,uCACE,SAAS,EAAC,kBAAkB,EAC5B,KAAK,EAAE;YACL,eAAe,EAAE,IAAA,6BAAa,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAAC;SAC3E,GACD,CACS,CACd,CAAC;AATW,QAAA,gBAAgB,oBAS3B","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 { IconButton } from \"@itwin/itwinui-react\";\nimport type { Group } from \"@itwin/insights-client\";\nimport { getGroupColor } from \"./groupsHelpers\";\nimport \"./GroupColorLegend.scss\";\n\ninterface GroupColorLegendProps {\n group: Group;\n groups: Group[];\n}\n\nexport const GroupColorLegend = ({ group, groups }: GroupColorLegendProps) => (\n <IconButton styleType=\"borderless\">\n <div\n className=\"gmw-color-legend\"\n style={{\n backgroundColor: getGroupColor(groups.findIndex((g) => g.id === group.id)),\n }}\n />\n </IconButton>\n);\n"]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.GroupColorToggle = void 0;
|
|
23
|
-
/*---------------------------------------------------------------------------------------------
|
|
24
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
|
-
*--------------------------------------------------------------------------------------------*/
|
|
27
|
-
const react_1 = __importStar(require("react"));
|
|
28
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
29
|
-
const viewerUtils_1 = require("./viewerUtils");
|
|
30
|
-
const groupsHelpers_1 = require("./groupsHelpers");
|
|
31
|
-
const presentation_frontend_1 = require("@itwin/presentation-frontend");
|
|
32
|
-
const GroupHilitedElementsContext_1 = require("./context/GroupHilitedElementsContext");
|
|
33
|
-
const PropertiesContext_1 = require("./context/PropertiesContext");
|
|
34
|
-
const GroupingApiConfigContext_1 = require("./context/GroupingApiConfigContext");
|
|
35
|
-
const GroupColorToggle = ({ color, group, ...rest }) => {
|
|
36
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
37
|
-
const { iModelConnection } = (0, GroupingApiConfigContext_1.useGroupingMappingApiConfig)();
|
|
38
|
-
if (!iModelConnection) {
|
|
39
|
-
throw new Error("This component requires an active iModelConnection.");
|
|
40
|
-
}
|
|
41
|
-
const { hilitedElementsQueryCache } = (0, GroupHilitedElementsContext_1.useGroupHilitedElementsContext)();
|
|
42
|
-
const { showGroupColor, setShowGroupColor } = (0, PropertiesContext_1.usePropertiesContext)();
|
|
43
|
-
(0, react_1.useEffect)(() => {
|
|
44
|
-
const visualize = async () => {
|
|
45
|
-
try {
|
|
46
|
-
setIsLoading(true);
|
|
47
|
-
(0, viewerUtils_1.clearEmphasizedOverriddenElements)();
|
|
48
|
-
if (showGroupColor) {
|
|
49
|
-
const result = await (0, groupsHelpers_1.getHiliteIdsAndKeysetFromGroup)(iModelConnection, group, hilitedElementsQueryCache);
|
|
50
|
-
presentation_frontend_1.Presentation.selection.clearSelection("GroupingMappingWidget", iModelConnection);
|
|
51
|
-
(0, viewerUtils_1.visualizeElements)(result.ids, color);
|
|
52
|
-
await (0, viewerUtils_1.zoomToElements)(result.ids);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (error) {
|
|
56
|
-
itwinui_react_1.toaster.negative("There was an error visualizing group.");
|
|
57
|
-
/* eslint-disable no-console */
|
|
58
|
-
console.error(error);
|
|
59
|
-
}
|
|
60
|
-
finally {
|
|
61
|
-
setIsLoading(false);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
void visualize();
|
|
65
|
-
}, [iModelConnection, group.query, group.groupName, group, hilitedElementsQueryCache, showGroupColor, color]);
|
|
66
|
-
return (react_1.default.createElement(itwinui_react_1.ToggleSwitch, { label: "Color Group", disabled: isLoading, checked: showGroupColor, onChange: () => setShowGroupColor((b) => !b), ...rest }));
|
|
67
|
-
};
|
|
68
|
-
exports.GroupColorToggle = GroupColorToggle;
|
|
69
|
-
//# sourceMappingURL=GroupColorToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupColorToggle.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupColorToggle.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,+CAAmD;AAEnD,wDAA6D;AAE7D,+CAAqG;AACrG,mDAAiE;AACjE,wEAA4D;AAC5D,uFAAuF;AACvF,mEAAmE;AACnE,iFAAiF;AAO1E,MAAM,gBAAgB,GAAG,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACe,EAAE,EAAE;IAC1B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAC3D,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,sDAA2B,GAAE,CAAC;IAC3D,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;KACxE;IACD,MAAM,EAAE,yBAAyB,EAAE,GAAG,IAAA,4DAA8B,GAAE,CAAC;IACvE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,IAAA,wCAAoB,GAAE,CAAC;IAErE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE;YAC3B,IAAI;gBACF,YAAY,CAAC,IAAI,CAAC,CAAC;gBACnB,IAAA,+CAAiC,GAAE,CAAC;gBACpC,IAAI,cAAc,EAAE;oBAClB,MAAM,MAAM,GAAG,MAAM,IAAA,8CAA8B,EAAC,gBAAgB,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC;oBACxG,oCAAY,CAAC,SAAS,CAAC,cAAc,CACnC,uBAAuB,EACvB,gBAAgB,CACjB,CAAC;oBACF,IAAA,+BAAiB,EAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;oBACrC,MAAM,IAAA,4BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC;iBAClC;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,uBAAO,CAAC,QAAQ,CAAC,uCAAuC,CAAC,CAAC;gBAC1D,+BAA+B;gBAC/B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aACtB;oBAAS;gBACR,YAAY,CAAC,KAAK,CAAC,CAAC;aACrB;QACH,CAAC,CAAC;QACF,KAAK,SAAS,EAAE,CAAC;IACnB,CAAC,EAAE,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,yBAAyB,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC,CAAC;IAE9G,OAAO,CACL,8BAAC,4BAAY,IACX,KAAK,EAAC,aAAa,EACnB,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KACxC,IAAI,GACM,CACjB,CAAC;AACJ,CAAC,CAAC;AA/CW,QAAA,gBAAgB,oBA+C3B","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, { useEffect, useState } from \"react\";\nimport type { ToggleSwitchProps } from \"@itwin/itwinui-react\";\nimport { toaster, ToggleSwitch } from \"@itwin/itwinui-react\";\nimport type { Group } from \"@itwin/insights-client\";\nimport { clearEmphasizedOverriddenElements, visualizeElements, zoomToElements } from \"./viewerUtils\";\nimport { getHiliteIdsAndKeysetFromGroup } from \"./groupsHelpers\";\nimport { Presentation } from \"@itwin/presentation-frontend\";\nimport { useGroupHilitedElementsContext } from \"./context/GroupHilitedElementsContext\";\nimport { usePropertiesContext } from \"./context/PropertiesContext\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\n\nexport type GroupColorToggleProps = Partial<ToggleSwitchProps> & {\n color: string;\n group: Group;\n};\n\nexport const GroupColorToggle = ({\n color,\n group,\n ...rest\n}: GroupColorToggleProps) => {\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const { iModelConnection } = useGroupingMappingApiConfig();\n if (!iModelConnection) {\n throw new Error(\"This component requires an active iModelConnection.\");\n }\n const { hilitedElementsQueryCache } = useGroupHilitedElementsContext();\n const { showGroupColor, setShowGroupColor } = usePropertiesContext();\n\n useEffect(() => {\n const visualize = async () => {\n try {\n setIsLoading(true);\n clearEmphasizedOverriddenElements();\n if (showGroupColor) {\n const result = await getHiliteIdsAndKeysetFromGroup(iModelConnection, group, hilitedElementsQueryCache);\n Presentation.selection.clearSelection(\n \"GroupingMappingWidget\",\n iModelConnection,\n );\n visualizeElements(result.ids, color);\n await zoomToElements(result.ids);\n }\n } catch (error) {\n toaster.negative(\"There was an error visualizing group.\");\n /* eslint-disable no-console */\n console.error(error);\n } finally {\n setIsLoading(false);\n }\n };\n void visualize();\n }, [iModelConnection, group.query, group.groupName, group, hilitedElementsQueryCache, showGroupColor, color]);\n\n return (\n <ToggleSwitch\n label=\"Color Group\"\n disabled={isLoading}\n checked={showGroupColor}\n onChange={() => setShowGroupColor((b) => !b)}\n {...rest}\n ></ToggleSwitch>\n );\n};\n"]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GroupDetails = void 0;
|
|
7
|
-
/*---------------------------------------------------------------------------------------------
|
|
8
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
|
-
*--------------------------------------------------------------------------------------------*/
|
|
11
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
12
|
-
const react_1 = __importDefault(require("react"));
|
|
13
|
-
const useValidator_1 = require("../hooks/useValidator");
|
|
14
|
-
const utils_1 = require("./utils");
|
|
15
|
-
const GroupDetails = ({ details, setDetails, validator, }) => {
|
|
16
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
17
|
-
react_1.default.createElement(itwinui_react_1.Text, { variant: "small", as: "small", className: "gmw-field-legend" }, "Asterisk * indicates mandatory fields."),
|
|
18
|
-
react_1.default.createElement(itwinui_react_1.LabeledInput, { id: "groupName", name: "groupName", label: "Name", value: details.groupName, required: true, onChange: (event) => {
|
|
19
|
-
(0, utils_1.handleInputChange)(event, details, setDetails);
|
|
20
|
-
validator.showMessageFor("groupName");
|
|
21
|
-
}, message: validator.message("groupName", details.groupName, useValidator_1.NAME_REQUIREMENTS), status: validator.message("groupName", details.groupName, useValidator_1.NAME_REQUIREMENTS)
|
|
22
|
-
? "negative"
|
|
23
|
-
: undefined, onBlur: () => {
|
|
24
|
-
validator.showMessageFor("groupName");
|
|
25
|
-
}, onBlurCapture: (event) => {
|
|
26
|
-
(0, utils_1.handleInputChange)(event, details, setDetails);
|
|
27
|
-
validator.showMessageFor("groupName");
|
|
28
|
-
} }),
|
|
29
|
-
react_1.default.createElement(itwinui_react_1.LabeledInput, { id: "description", name: "description", label: "Description", value: details.description, onChange: (event) => {
|
|
30
|
-
(0, utils_1.handleInputChange)(event, details, setDetails);
|
|
31
|
-
} })));
|
|
32
|
-
};
|
|
33
|
-
exports.GroupDetails = GroupDetails;
|
|
34
|
-
//# sourceMappingURL=GroupDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupDetails.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupDetails.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,wDAA0D;AAC1D,kDAA0B;AAE1B,wDAA0D;AAC1D,mCAA4C;AAarC,MAAM,YAAY,GAAG,CAAC,EAC3B,OAAO,EACP,UAAU,EACV,SAAS,GACS,EAAE,EAAE;IACtB,OAAO,CACL;QACE,8BAAC,oBAAI,IAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,EAAC,SAAS,EAAC,kBAAkB,6CAEtD;QACP,8BAAC,4BAAY,IACX,EAAE,EAAC,WAAW,EACd,IAAI,EAAC,WAAW,EAChB,KAAK,EAAC,MAAM,EACZ,KAAK,EAAE,OAAO,CAAC,SAAS,EACxB,QAAQ,QACR,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAClB,IAAA,yBAAiB,EAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;gBAC9C,SAAS,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YACxC,CAAC,EACD,OAAO,EAAE,SAAS,CAAC,OAAO,CACxB,WAAW,EACX,OAAO,CAAC,SAAS,EACjB,gCAAiB,CAClB,EACD,MAAM,EACJ,SAAS,CAAC,OAAO,CACf,WAAW,EACX,OAAO,CAAC,SAAS,EACjB,gCAAiB,CAClB;gBACC,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,SAAS,EAEf,MAAM,EAAE,GAAG,EAAE;gBACX,SAAS,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YACxC,CAAC,EACD,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;gBACvB,IAAA,yBAAiB,EAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;gBAC9C,SAAS,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YACxC,CAAC,GACD;QACF,8BAAC,4BAAY,IACX,EAAE,EAAC,aAAa,EAChB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,aAAa,EACnB,KAAK,EAAE,OAAO,CAAC,WAAW,EAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAClB,IAAA,yBAAiB,EAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAChD,CAAC,GACD,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AArDW,QAAA,YAAY,gBAqDvB","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 { LabeledInput, Text } from \"@itwin/itwinui-react\";\nimport React from \"react\";\nimport type SimpleReactValidator from \"simple-react-validator\";\nimport { NAME_REQUIREMENTS } from \"../hooks/useValidator\";\nimport { handleInputChange } from \"./utils\";\n\nexport interface GroupDetailsType {\n groupName: string;\n description: string;\n}\n\nexport interface GroupDetailsProps {\n details: GroupDetailsType;\n setDetails: (newDetails: GroupDetailsType) => void;\n validator: SimpleReactValidator;\n}\n\nexport const GroupDetails = ({\n details,\n setDetails,\n validator,\n}: GroupDetailsProps) => {\n return (\n <>\n <Text variant=\"small\" as=\"small\" className=\"gmw-field-legend\">\n Asterisk * indicates mandatory fields.\n </Text>\n <LabeledInput\n id=\"groupName\"\n name=\"groupName\"\n label=\"Name\"\n value={details.groupName}\n required\n onChange={(event) => {\n handleInputChange(event, details, setDetails);\n validator.showMessageFor(\"groupName\");\n }}\n message={validator.message(\n \"groupName\",\n details.groupName,\n NAME_REQUIREMENTS,\n )}\n status={\n validator.message(\n \"groupName\",\n details.groupName,\n NAME_REQUIREMENTS,\n )\n ? \"negative\"\n : undefined\n }\n onBlur={() => {\n validator.showMessageFor(\"groupName\");\n }}\n onBlurCapture={(event) => {\n handleInputChange(event, details, setDetails);\n validator.showMessageFor(\"groupName\");\n }}\n />\n <LabeledInput\n id=\"description\"\n name=\"description\"\n label=\"Description\"\n value={details.description}\n onChange={(event) => {\n handleInputChange(event, details, setDetails);\n }}\n />\n </>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupDetailsActionPanel.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupDetailsActionPanel.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,wDAA8C;AAC9C,kDAA0B;AAQnB,MAAM,uBAAuB,GAAG,CAAC,EACtC,cAAc,EACd,WAAW,EACX,WAAW,GACkB,EAAE,EAAE;IACjC,OAAO,CACL;QACE,8BAAC,sBAAM,IAAC,OAAO,EAAE,WAAW,WAAe;QAC3C,8BAAC,sBAAM,IACL,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,WAAW,WAGb,CACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,uBAAuB,2BAiBlC","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 { Button } from \"@itwin/itwinui-react\";\nimport React from \"react\";\n\nexport interface GroupDetailsActionPanelProps {\n isSaveDisabled: boolean;\n onClickBack: () => void;\n onClickSave: () => Promise<void>;\n}\n\nexport const GroupDetailsActionPanel = ({\n isSaveDisabled,\n onClickBack,\n onClickSave,\n}: GroupDetailsActionPanelProps) => {\n return (\n <>\n <Button onClick={onClickBack}>Back</Button>\n <Button\n disabled={isSaveDisabled}\n styleType=\"high-visibility\"\n onClick={onClickSave}\n >\n Save\n </Button>\n </>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupDetailsStep.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupDetailsStep.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,wDAAgD;AAChD,kDAA0B;AAC1B,8BAA4B;AAE5B,iDAA8C;AAC9C,mCAAiC;AAEjC,MAAM,qBAAqB,GAAG;IAC5B,YAAY,EAAE,eAAe;CAC9B,CAAC;AAMK,MAAM,gBAAgB,GAAG,CAAC,EAC/B,cAAc,EAAE,kBAAkB,EAClC,GAAG,IAAI,EACe,EAAE,EAAE;IAC1B,MAAM,cAAc,GAAG,eAAK,CAAC,OAAO,CAClC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,qBAAqB,EAAE,GAAG,kBAAkB,EAAE,CAAC,EAC3D,CAAC,kBAAkB,CAAC,CACrB,CAAC;IAEF,OAAO,CACL,8BAAC,wBAAQ,IACP,MAAM,EAAE,cAAc,CAAC,YAAY,EACnC,SAAS,EAAC,mBAAmB;QAE7B,8BAAC,2BAAY,OACP,IAAI,GACR,CACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,gBAAgB,oBAmB3B","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 { Fieldset } from \"@itwin/itwinui-react\";\nimport React from \"react\";\nimport \"./GroupAction.scss\";\nimport type { GroupDetailsProps } from \"./GroupDetails\";\nimport { GroupDetails } from \"./GroupDetails\";\nimport \"./GroupDetailsStep.scss\";\n\nconst defaultDisplayStrings = {\n groupDetails: \"Group Details\",\n};\n\nexport interface GroupDetailsStepProps extends GroupDetailsProps {\n displayStrings?: Partial<typeof defaultDisplayStrings>;\n}\n\nexport const GroupDetailsStep = ({\n displayStrings: userDisplayStrings,\n ...rest\n}: GroupDetailsStepProps) => {\n const displayStrings = React.useMemo(\n () => ({ ...defaultDisplayStrings, ...userDisplayStrings }),\n [userDisplayStrings]\n );\n\n return (\n <Fieldset\n legend={displayStrings.groupDetails}\n className='gmw-group-details'\n >\n <GroupDetails\n {...rest}\n />\n </Fieldset>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupInformationPanel.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupInformationPanel.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,kDAA0B;AAC1B,wDAA6H;AAC7H,wCAAsC;AAS/B,MAAM,qBAAqB,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAA8B,EAAE,EAAE;IACzG,OAAO,CACL,8BAAC,gCAAgB,IAAC,MAAM,EAAE,MAAM;QAC9B,8BAAC,sCAAsB,IAAC,OAAO,EAAE,OAAO;YACtC,8BAAC,oBAAI,IAAC,OAAO,EAAC,YAAY,IAAE,GAAG,SAAS,cAAc,CAAQ,CACvC;QACzB,8BAAC,oCAAoB;YACnB,uCAAK,SAAS,EAAC,4BAA4B;gBACzC,8BAAC,+BAAe,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,QAAC,YAAY,EAAE,KAAK,GAAI,CACrE,CACe,CACN,CACpB,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC","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 { InformationPanel, InformationPanelBody, InformationPanelHeader, LabeledTextarea, Text } from \"@itwin/itwinui-react\";\nimport \"./GroupInformationPanel.scss\";\n\nexport interface GroupInformationPanelProps {\n isOpen: boolean;\n onClose: () => void;\n groupName: string;\n query: string;\n}\n\nexport const GroupInformationPanel = ({ isOpen, onClose, groupName, query }: GroupInformationPanelProps) => {\n return (\n <InformationPanel isOpen={isOpen}>\n <InformationPanelHeader onClose={onClose}>\n <Text variant=\"subheading\">{`${groupName} Information`}</Text>\n </InformationPanelHeader>\n <InformationPanelBody>\n <div className=\"gmw-group-information-body\">\n <LabeledTextarea label=\"Query\" rows={15} readOnly defaultValue={query} />\n </div>\n </InformationPanelBody>\n </InformationPanel>\n );\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Group } from "@itwin/insights-client";
|
|
3
|
-
import type { ContextCustomUI, GroupingCustomUI } from "./customUI/GroupingMappingCustomUI";
|
|
4
|
-
import type { GroupsProps } from "./Groups";
|
|
5
|
-
export interface GroupItemProps extends Omit<GroupsProps, "onClickAddGroup"> {
|
|
6
|
-
group: Group;
|
|
7
|
-
groupUIs: GroupingCustomUI[];
|
|
8
|
-
contextUIs: ContextCustomUI[];
|
|
9
|
-
setShowDeleteModal: (showDeleteModal: Group) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const GroupItem: ({ onClickGroupTitle, disableActions, group, ...rest }: GroupItemProps) => JSX.Element;
|
|
12
|
-
//# sourceMappingURL=GroupItem.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GroupItem = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const HorizontalTile_1 = require("./HorizontalTile");
|
|
9
|
-
const GroupMenuActions_1 = require("./GroupMenuActions");
|
|
10
|
-
const GroupItem = ({ onClickGroupTitle, disableActions, group, ...rest }) => {
|
|
11
|
-
const onTitleClick = () => {
|
|
12
|
-
if (onClickGroupTitle) {
|
|
13
|
-
onClickGroupTitle(group);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
return (react_1.default.createElement(HorizontalTile_1.HorizontalTile, { title: group.groupName, subText: group.description, actionGroup: react_1.default.createElement(GroupMenuActions_1.GroupMenuActions, { group: group, disableActions: disableActions, ...rest }), onClickTitle: onClickGroupTitle && !disableActions ? onTitleClick : undefined }));
|
|
17
|
-
};
|
|
18
|
-
exports.GroupItem = GroupItem;
|
|
19
|
-
//# sourceMappingURL=GroupItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupItem.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupItem.tsx"],"names":[],"mappings":";;;;;;AAKA,kDAA0B;AAC1B,qDAAkD;AAGlD,yDAAsD;AAS/C,MAAM,SAAS,GAAG,CAAC,EACxB,iBAAiB,EACjB,cAAc,EACd,KAAK,EACL,GAAG,IAAI,EACQ,EAAE,EAAE;IAEnB,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,IAAI,iBAAiB,EAAE;YACrB,iBAAiB,CAAC,KAAK,CAAC,CAAC;SAC1B;IACH,CAAC,CAAC;IAEF,OAAO,CACL,8BAAC,+BAAc,IACb,KAAK,EAAE,KAAK,CAAC,SAAS,EACtB,OAAO,EAAE,KAAK,CAAC,WAAW,EAC1B,WAAW,EACT,8BAAC,mCAAgB,IACf,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,KAC1B,IAAI,GACR,EAEJ,YAAY,EAAE,iBAAiB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,GAC7E,CACH,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,SAAS,aA2BpB","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 } from \"@itwin/insights-client\";\nimport React from \"react\";\nimport { HorizontalTile } from \"./HorizontalTile\";\nimport type { ContextCustomUI, GroupingCustomUI } from \"./customUI/GroupingMappingCustomUI\";\nimport type { GroupsProps } from \"./Groups\";\nimport { GroupMenuActions } from \"./GroupMenuActions\";\n\nexport interface GroupItemProps extends Omit<GroupsProps, \"onClickAddGroup\"> {\n group: Group;\n groupUIs: GroupingCustomUI[];\n contextUIs: ContextCustomUI[];\n setShowDeleteModal: (showDeleteModal: Group) => void;\n}\n\nexport const GroupItem = ({\n onClickGroupTitle,\n disableActions,\n group,\n ...rest\n}: GroupItemProps) => {\n\n const onTitleClick = () => {\n if (onClickGroupTitle) {\n onClickGroupTitle(group);\n }\n };\n\n return (\n <HorizontalTile\n title={group.groupName}\n subText={group.description}\n actionGroup={\n <GroupMenuActions\n group={group}\n disableActions={disableActions}\n {...rest}\n />\n }\n onClickTitle={onClickGroupTitle && !disableActions ? onTitleClick : undefined}\n />\n );\n};\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Group } from "@itwin/insights-client";
|
|
3
|
-
import type { ContextCustomUI, GroupingCustomUI } from "./customUI/GroupingMappingCustomUI";
|
|
4
|
-
import type { GroupsProps } from "./Groups";
|
|
5
|
-
import "./GroupMenuActions.scss";
|
|
6
|
-
export interface GroupMenuActionsProps extends Omit<GroupsProps, "onClickAddGroup" | "onClickGroupTitle"> {
|
|
7
|
-
group: Group;
|
|
8
|
-
groupUIs: GroupingCustomUI[];
|
|
9
|
-
contextUIs: ContextCustomUI[];
|
|
10
|
-
setShowDeleteModal: (showDeleteModal: Group) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const GroupMenuActions: ({ mapping, group, actionButtonRenderers, onClickGroupModify, onClickRenderContextCustomUI, groupUIs, contextUIs, disableActions, setShowDeleteModal, }: GroupMenuActionsProps) => JSX.Element;
|
|
13
|
-
//# sourceMappingURL=GroupMenuActions.d.ts.map
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.GroupMenuActions = void 0;
|
|
23
|
-
const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
|
|
24
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
25
|
-
const react_1 = __importStar(require("react"));
|
|
26
|
-
const GroupingApiConfigContext_1 = require("./context/GroupingApiConfigContext");
|
|
27
|
-
require("./GroupMenuActions.scss");
|
|
28
|
-
const GroupMenuActions = ({ mapping, group, actionButtonRenderers, onClickGroupModify, onClickRenderContextCustomUI, groupUIs, contextUIs, disableActions, setShowDeleteModal, }) => {
|
|
29
|
-
const { iModelId } = (0, GroupingApiConfigContext_1.useGroupingMappingApiConfig)();
|
|
30
|
-
const onModify = (0, react_1.useCallback)(async (group, type) => {
|
|
31
|
-
if (!onClickGroupModify)
|
|
32
|
-
return;
|
|
33
|
-
onClickGroupModify(group, type);
|
|
34
|
-
}, [onClickGroupModify]);
|
|
35
|
-
return (react_1.default.createElement("div", { className: "gmw-actions" },
|
|
36
|
-
actionButtonRenderers &&
|
|
37
|
-
actionButtonRenderers.map((actionButton, index) => react_1.default.createElement(react_1.default.Fragment, { key: index }, actionButton({ group }))),
|
|
38
|
-
react_1.default.createElement(itwinui_react_1.DropdownMenu, { className: "gmw-action-dropdown", disabled: disableActions, menuItems: (close) => [
|
|
39
|
-
...(groupUIs.length > 0 && onClickGroupModify
|
|
40
|
-
? [
|
|
41
|
-
react_1.default.createElement(itwinui_react_1.MenuItem, { key: 0, icon: react_1.default.createElement(itwinui_icons_react_1.SvgEdit, null), disabled: disableActions, "data-testid": "gmw-context-menu-item", subMenuItems: groupUIs.map((p, index) => (react_1.default.createElement(itwinui_react_1.MenuItem, { key: p.name, className: "gmw-menu-item", "data-testid": `gmw-edit-${index}`, onClick: async () => {
|
|
42
|
-
await onModify(group, p.name);
|
|
43
|
-
close();
|
|
44
|
-
}, icon: p.icon }, p.displayLabel))) }, "Edit"),
|
|
45
|
-
]
|
|
46
|
-
: []),
|
|
47
|
-
...contextUIs.map((p) => {
|
|
48
|
-
return (react_1.default.createElement(itwinui_react_1.MenuItem, { key: p.name, onClick: async () => {
|
|
49
|
-
if (p.uiComponent &&
|
|
50
|
-
onClickRenderContextCustomUI) {
|
|
51
|
-
onClickRenderContextCustomUI(p.uiComponent, group, p.displayLabel);
|
|
52
|
-
}
|
|
53
|
-
if (p.onClick) {
|
|
54
|
-
p.onClick(group, mapping, iModelId);
|
|
55
|
-
}
|
|
56
|
-
close();
|
|
57
|
-
}, icon: p.icon, "data-testid": "gmw-context-menu-item" }, p.displayLabel));
|
|
58
|
-
}),
|
|
59
|
-
react_1.default.createElement(itwinui_react_1.MenuItem, { key: 2, onClick: () => {
|
|
60
|
-
setShowDeleteModal(group);
|
|
61
|
-
close();
|
|
62
|
-
}, icon: react_1.default.createElement(itwinui_icons_react_1.SvgDelete, null), "data-testid": "gmw-context-menu-item" }, "Remove"),
|
|
63
|
-
] },
|
|
64
|
-
react_1.default.createElement(itwinui_react_1.IconButton, { disabled: disableActions, styleType: "borderless", "data-testid": "gmw-more-button", title: 'Group Options' },
|
|
65
|
-
react_1.default.createElement(itwinui_icons_react_1.SvgMore, null)))));
|
|
66
|
-
};
|
|
67
|
-
exports.GroupMenuActions = GroupMenuActions;
|
|
68
|
-
//# sourceMappingURL=GroupMenuActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupMenuActions.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupMenuActions.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 type { Group } from \"@itwin/insights-client\";\nimport { SvgDelete, SvgEdit, SvgMore } from \"@itwin/itwinui-icons-react\";\nimport { DropdownMenu, IconButton, MenuItem } from \"@itwin/itwinui-react\";\nimport React, { useCallback } from \"react\";\nimport type { ContextCustomUI, GroupingCustomUI } from \"./customUI/GroupingMappingCustomUI\";\nimport type { GroupsProps } from \"./Groups\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\nimport \"./GroupMenuActions.scss\";\n\nexport interface GroupMenuActionsProps extends Omit<GroupsProps, \"onClickAddGroup\" | \"onClickGroupTitle\"> {\n group: Group;\n groupUIs: GroupingCustomUI[];\n contextUIs: ContextCustomUI[];\n setShowDeleteModal: (showDeleteModal: Group) => void;\n}\n\nexport const GroupMenuActions = ({\n mapping,\n group,\n actionButtonRenderers,\n onClickGroupModify,\n onClickRenderContextCustomUI,\n groupUIs,\n contextUIs,\n disableActions,\n setShowDeleteModal,\n}: GroupMenuActionsProps) => {\n const { iModelId } = useGroupingMappingApiConfig();\n\n const onModify = useCallback(async (group: Group, type: string) => {\n if (!onClickGroupModify) return;\n onClickGroupModify(group, type);\n }, [onClickGroupModify]);\n\n return (\n <div className=\"gmw-actions\">\n {actionButtonRenderers &&\n actionButtonRenderers.map((actionButton, index) =>\n <React.Fragment key={index}>{actionButton({ group })}</React.Fragment>\n )}\n <DropdownMenu\n className=\"gmw-action-dropdown\"\n disabled={disableActions}\n menuItems={(close: () => void) => [\n ...(groupUIs.length > 0 && onClickGroupModify\n ? [\n <MenuItem\n key={0}\n icon={<SvgEdit />}\n disabled={disableActions}\n data-testid=\"gmw-context-menu-item\"\n subMenuItems={groupUIs.map((p, index) => (\n <MenuItem\n key={p.name}\n className=\"gmw-menu-item\"\n data-testid={`gmw-edit-${index}`}\n onClick={async () => {\n await onModify(group, p.name);\n close();\n }}\n icon={p.icon}\n >\n {p.displayLabel}\n </MenuItem>\n ))}\n >\n Edit\n </MenuItem>,\n ]\n : []),\n ...contextUIs.map((p) => {\n return (\n <MenuItem\n key={p.name}\n onClick={async () => {\n if (\n p.uiComponent &&\n onClickRenderContextCustomUI\n ) {\n onClickRenderContextCustomUI(\n p.uiComponent,\n group,\n p.displayLabel\n );\n }\n if (p.onClick) {\n p.onClick(group, mapping, iModelId);\n }\n close();\n }}\n icon={p.icon}\n data-testid=\"gmw-context-menu-item\"\n >\n {p.displayLabel}\n </MenuItem>\n );\n }),\n <MenuItem\n key={2}\n onClick={() => {\n setShowDeleteModal(group);\n close();\n }}\n icon={<SvgDelete />}\n data-testid=\"gmw-context-menu-item\"\n >\n Remove\n </MenuItem>,\n ]}\n >\n <IconButton\n disabled={disableActions}\n styleType=\"borderless\"\n data-testid=\"gmw-more-button\"\n title='Group Options'\n >\n <SvgMore />\n </IconButton>\n </DropdownMenu>\n </div>\n );\n};\n"]}
|