@orchestrator-ui/orchestrator-ui-components 0.2.4 → 0.2.6
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/.storybook/main.js +1 -1
- package/.turbo/turbo-build.log +9 -7
- package/.turbo/turbo-lint.log +3 -6
- package/.turbo/turbo-test.log +17 -9
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +1092 -358
- package/dist/index.js +22934 -6399
- package/jest.config.cjs +0 -1
- package/package.json +24 -8
- package/src/api/axios.ts +34 -0
- package/src/api/index.ts +170 -0
- package/src/components/WfoAuth/WfoAuth.tsx +22 -0
- package/src/components/WfoAuth/index.ts +1 -0
- package/src/components/{WFOBadges/WFOBadge/WFOBadge.stories.tsx → WfoBadges/WfoBadge/WfoBadge.stories.tsx} +5 -4
- package/src/components/{WFOBadges/WFOBadge/WFOBadge.tsx → WfoBadges/WfoBadge/WfoBadge.tsx} +4 -3
- package/src/components/WfoBadges/WfoBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.stories.tsx → WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.stories.tsx} +6 -4
- package/src/components/{WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.tsx → WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.tsx} +13 -7
- package/src/components/WfoBadges/WfoEngineStatusBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.stories.tsx → WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.stories.tsx} +6 -4
- package/src/components/{WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.tsx → WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.tsx} +8 -7
- package/src/components/WfoBadges/WfoEnvironmentBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoFailedTasksBadge/WfoFailedTasksBadge.stories.tsx +13 -0
- package/src/components/WfoBadges/WfoFailedTasksBadge/WfoFailedTasksBadge.tsx +95 -0
- package/src/components/WfoBadges/WfoFailedTasksBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOHeaderBadge/WFOHeaderBadge.stories.tsx → WfoBadges/WfoHeaderBadge/WfoHeaderBadge.stories.tsx} +6 -4
- package/src/components/{WFOBadges/WFOHeaderBadge/WFOHeaderBadge.tsx → WfoBadges/WfoHeaderBadge/WfoHeaderBadge.tsx} +6 -4
- package/src/components/WfoBadges/WfoHeaderBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOProcessStatusBadge/WFOProcessStatusBadge.tsx → WfoBadges/WfoProcessStatusBadge/WfoProcessStatusBadge.tsx} +8 -6
- package/src/components/WfoBadges/WfoProcessStatusBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoProductBlockBadge/WfoProductBlockBadge.stories.tsx +16 -0
- package/src/components/WfoBadges/WfoProductBlockBadge/WfoProductBlockBadge.tsx +70 -0
- package/src/components/WfoBadges/WfoProductBlockBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoProductStatusBadge/WfoProductStatusBadge.stories.tsx +22 -0
- package/src/components/WfoBadges/WfoProductStatusBadge/WfoProductStatusBadge.tsx +53 -0
- package/src/components/WfoBadges/WfoProductStatusBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOSubscriptionStatusBadge/WFOSubscriptionStatusBadge.stories.tsx → WfoBadges/WfoSubscriptionStatusBadge/WfoSubscriptionStatusBadge.stories.tsx} +5 -4
- package/src/components/{WFOBadges/WFOSubscriptionStatusBadge/WFOSubscriptionStatusBadge.tsx → WfoBadges/WfoSubscriptionStatusBadge/WfoSubscriptionStatusBadge.tsx} +12 -10
- package/src/components/WfoBadges/WfoSubscriptionStatusBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoWorkflowTargetBadge/WfoWorkflowTargetBadge.tsx +65 -0
- package/src/components/WfoBadges/WfoWorkflowTargetBadge/index.ts +1 -0
- package/src/components/WfoBadges/index.ts +9 -0
- package/src/components/WfoButtonComboBox/WfoButtonComboBox.tsx +76 -0
- package/src/components/WfoButtonComboBox/styles.ts +13 -0
- package/src/components/WfoDateTime/WfoDateTime.tsx +28 -0
- package/src/components/WfoDateTime/index.ts +1 -0
- package/src/components/WfoDropdownButton/WfoDropdownButton.tsx +67 -0
- package/src/components/WfoDropdownButton/index.ts +1 -0
- package/src/components/{WFOFilterTabs/WFOFilterTabs.tsx → WfoFilterTabs/WfoFilterTabs.tsx} +8 -6
- package/src/components/WfoFilterTabs/index.ts +1 -0
- package/src/components/WfoForms/AutoFieldLoader.tsx +110 -0
- package/src/components/WfoForms/AutoFields.tsx +49 -0
- package/src/components/WfoForms/CreateForm.tsx +71 -0
- package/src/components/WfoForms/UserInputForm.tsx +607 -0
- package/src/components/WfoForms/UserInputFormStyling.ts +80 -0
- package/src/components/WfoForms/UserInputFormWizard.tsx +120 -0
- package/src/components/WfoForms/formFields/AcceptField.tsx +239 -0
- package/src/components/WfoForms/formFields/AcceptFieldStyling.ts +29 -0
- package/src/components/WfoForms/formFields/BoolField.tsx +71 -0
- package/src/components/WfoForms/formFields/BoolFieldStyling.ts +68 -0
- package/src/components/WfoForms/formFields/ContactPersonAutocomplete.tsx +97 -0
- package/src/components/WfoForms/formFields/ContactPersonAutocompleteStyles.ts +40 -0
- package/src/components/WfoForms/formFields/ContactPersonNameField.tsx +253 -0
- package/src/components/WfoForms/formFields/DateField.tsx +72 -0
- package/src/components/WfoForms/formFields/DividerField.tsx +29 -0
- package/src/components/WfoForms/formFields/ErrorField.tsx +40 -0
- package/src/components/WfoForms/formFields/ErrorsField.tsx +34 -0
- package/src/components/WfoForms/formFields/ImsNodeIdField.tsx +110 -0
- package/src/components/WfoForms/formFields/IpNetworkField.tsx +128 -0
- package/src/components/WfoForms/formFields/IpPrefixTableField.tsx +454 -0
- package/src/components/WfoForms/formFields/IpPrefixTableFieldStyling.ts +117 -0
- package/src/components/WfoForms/formFields/LabelField.tsx +39 -0
- package/src/components/WfoForms/formFields/ListAddField.tsx +98 -0
- package/src/components/WfoForms/formFields/ListDelField.tsx +95 -0
- package/src/components/WfoForms/formFields/ListField.tsx +113 -0
- package/src/components/WfoForms/formFields/ListItemField.tsx +40 -0
- package/src/components/WfoForms/formFields/ListSelectField.tsx +92 -0
- package/src/components/WfoForms/formFields/LocationCodeField.tsx +66 -0
- package/src/components/WfoForms/formFields/LongTextField.tsx +68 -0
- package/src/components/WfoForms/formFields/NestField.tsx +107 -0
- package/src/components/WfoForms/formFields/NumField.tsx +75 -0
- package/src/components/WfoForms/formFields/OptGroupField.tsx +74 -0
- package/src/components/WfoForms/formFields/OrganisationField.tsx +57 -0
- package/src/components/WfoForms/formFields/ProductField.tsx +78 -0
- package/src/components/WfoForms/formFields/RadioField.tsx +87 -0
- package/src/components/WfoForms/formFields/SelectField.tsx +152 -0
- package/src/components/WfoForms/formFields/SplitPrefix.tsx +163 -0
- package/src/components/WfoForms/formFields/SplitPrefixStyling.ts +11 -0
- package/src/components/WfoForms/formFields/SubmitField.tsx +50 -0
- package/src/components/WfoForms/formFields/SubscriptionField.tsx +351 -0
- package/src/components/WfoForms/formFields/SubscriptionFieldStyling.ts +33 -0
- package/src/components/WfoForms/formFields/SubscriptionSummaryField.tsx +75 -0
- package/src/components/WfoForms/formFields/TextField.tsx +71 -0
- package/src/components/WfoForms/formFields/TimestampField.tsx +103 -0
- package/src/components/WfoForms/formFields/VlanField.tsx +297 -0
- package/src/components/WfoForms/formFields/index.ts +29 -0
- package/src/components/WfoForms/formFields/listFieldStyling.ts +86 -0
- package/src/components/WfoForms/formFields/reactSelectStyles.ts +45 -0
- package/src/components/WfoForms/formFields/surf/types.ts +53 -0
- package/src/components/WfoForms/formFields/surf/utils.ts +1 -0
- package/src/components/WfoForms/formFields/types.ts +50 -0
- package/src/components/WfoForms/formFields/utils.spec.ts +196 -0
- package/src/components/WfoForms/formFields/utils.ts +65 -0
- package/src/components/WfoForms/index.ts +5 -0
- package/src/components/WfoForms/useAxiosApiClient.ts +8 -0
- package/src/components/WfoInsyncIcon/WfoInsyncIcon.stories.tsx +21 -0
- package/src/components/WfoInsyncIcon/WfoInsyncIcon.tsx +26 -0
- package/src/components/WfoInsyncIcon/index.ts +1 -0
- package/src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx +27 -0
- package/src/components/WfoJsonCodeBlock/styles.ts +13 -0
- package/src/components/WfoKeyValueTable/WfoKeyCell.tsx +25 -0
- package/src/components/WfoKeyValueTable/WfoKeyValueTable.tsx +41 -0
- package/src/components/WfoKeyValueTable/WfoValueCell.tsx +53 -0
- package/src/components/WfoKeyValueTable/index.ts +3 -0
- package/src/components/WfoKeyValueTable/styles.ts +77 -0
- package/src/components/WfoLoading/WfoLoading.tsx +3 -0
- package/src/components/WfoLoading/index.ts +1 -0
- package/src/components/WfoNoResults/WfoNoResults.stories.tsx +19 -0
- package/src/components/WfoNoResults/WfoNoResults.tsx +22 -0
- package/src/components/WfoNoResults/index.ts +1 -0
- package/src/components/WfoNoResults/styles.ts +22 -0
- package/src/components/WfoPageHeader/WfoPageHeader.tsx +25 -0
- package/src/components/{WFOPageTemplate/WFOBreadcrumbs/WFOBreadcrumbs.tsx → WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx} +5 -2
- package/src/components/WfoPageTemplate/WfoBreadcrumbs/index.ts +1 -0
- package/src/components/{WFOPageTemplate/WFOPageHeader/WFOPageHeader.stories.tsx → WfoPageTemplate/WfoPageHeader/WfoPageHeader.stories.tsx} +7 -5
- package/src/components/{WFOPageTemplate/WFOPageHeader/WFOPageHeader.tsx → WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx} +26 -11
- package/src/components/WfoPageTemplate/WfoPageHeader/index.ts +1 -0
- package/src/components/{WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.stories.tsx → WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.stories.tsx} +8 -6
- package/src/components/{WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.tsx → WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx} +20 -10
- package/src/components/WfoPageTemplate/WfoPageTemplate/index.ts +1 -0
- package/src/components/{WFOPageTemplate/WFOSidebar/WFOSidebar.stories.tsx → WfoPageTemplate/WfoSidebar/WfoSidebar.stories.tsx} +6 -4
- package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +161 -0
- package/src/components/WfoPageTemplate/WfoSidebar/WfoStartCreateWorkflowButtonComboBox.tsx +58 -0
- package/src/components/WfoPageTemplate/WfoSidebar/index.ts +1 -0
- package/src/components/WfoPageTemplate/index.ts +4 -0
- package/src/components/{WFOPageTemplate → WfoPageTemplate}/paths.ts +1 -1
- package/src/components/WfoProcessesList/WfoProcessList.tsx +227 -0
- package/src/components/WfoProcessesList/processListObjectMappers.ts +79 -0
- package/src/components/{WFOSearchBar/WFOSearchField.tsx → WfoSearchBar/WfoSearchField.tsx} +4 -3
- package/src/components/WfoSearchBar/index.ts +1 -0
- package/src/components/WfoSettingsModal/WfoInformationModal.tsx +41 -0
- package/src/components/{WFOSettingsModal/WFOSettingsModal.tsx → WfoSettingsModal/WfoSettingsModal.tsx} +3 -2
- package/src/components/WfoSettingsModal/index.tsx +2 -0
- package/src/components/{WFOSettingsPage/WFOEngineStatusButton.tsx → WfoSettingsPage/WfoEngineStatusButton.tsx} +5 -3
- package/src/components/{WFOSettingsPage/WFOFlushSettings.tsx → WfoSettingsPage/WfoFlushSettings.tsx} +19 -30
- package/src/components/{WFOSettingsPage/WFOModifySettings.tsx → WfoSettingsPage/WfoModifySettings.tsx} +7 -5
- package/src/components/{WFOSettingsPage/WFOSettings.tsx → WfoSettingsPage/WfoSettings.tsx} +12 -8
- package/src/components/{WFOSettingsPage/WFOStatus.tsx → WfoSettingsPage/WfoStatus.tsx} +8 -6
- package/src/components/WfoSettingsPage/index.ts +1 -0
- package/src/components/{WFOStartPage/WFOFrequentlyUsed.stories.tsx → WfoStartPage/WfoFrequentlyUsed.stories.tsx} +5 -4
- package/src/components/{WFOStartPage/WFOFrequentlyUsed.tsx → WfoStartPage/WfoFrequentlyUsed.tsx} +4 -3
- package/src/components/{WFOStartPage/WFOListItemStartPage.stories.tsx → WfoStartPage/WfoListItemStartPage.stories.tsx} +6 -4
- package/src/components/{WFOStartPage/WFOListItemStartPage.tsx → WfoStartPage/WfoListItemStartPage.tsx} +9 -6
- package/src/components/{WFOStartPage/WFOListStartPage.stories.tsx → WfoStartPage/WfoListStartPage.stories.tsx} +6 -4
- package/src/components/{WFOStartPage/WFOListStartPage.tsx → WfoStartPage/WfoListStartPage.tsx} +9 -6
- package/src/components/{WFOStartPage/WFOMultiListSection.stories.tsx → WfoStartPage/WfoMultiListSection.stories.tsx} +5 -4
- package/src/components/{WFOStartPage/WFOMultiListSection.tsx → WfoStartPage/WfoMultiListSection.tsx} +9 -6
- package/src/components/WfoStartPage/WfoNewProcessPanel.stories.tsx +13 -0
- package/src/components/{WFOStartPage/WFONewProcessPanel.tsx → WfoStartPage/WfoNewProcessPanel.tsx} +5 -3
- package/src/components/WfoStartPage/WfoStatCards.stories.tsx +13 -0
- package/src/components/{WFOStartPage/WFOStatCards.tsx → WfoStartPage/WfoStatCards.tsx} +6 -4
- package/src/components/WfoStartPage/index.ts +6 -0
- package/src/components/WfoStartTaskButtonComboBox/WfoStartTaskButtonComboBox.tsx +51 -0
- package/src/components/WfoStartTaskButtonComboBox/index.ts +1 -0
- package/src/components/WfoSubscription/SubscriptionKeyValueBlock.tsx +46 -0
- package/src/components/WfoSubscription/WfoProcessesTimeline.tsx +158 -0
- package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +192 -0
- package/src/components/WfoSubscription/WfoSubscription.tsx +145 -0
- package/src/components/WfoSubscription/WfoSubscriptionActions.tsx +236 -0
- package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +161 -0
- package/src/components/WfoSubscription/WfoSubscriptionGeneral.tsx +147 -0
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock.tsx +207 -0
- package/src/components/WfoSubscription/index.ts +8 -0
- package/src/components/WfoSubscription/styles.ts +104 -0
- package/src/components/WfoSubscription/utils/index.ts +1 -0
- package/src/components/WfoSubscription/utils/utils.spec.ts +168 -0
- package/src/components/WfoSubscription/utils/utils.ts +76 -0
- package/src/components/{WFOSubscriptionsList/WFOSubscriptionsList.tsx → WfoSubscriptionsList/WfoSubscriptionsList.tsx} +63 -57
- package/src/components/{WFOSubscriptionsList → WfoSubscriptionsList}/index.ts +1 -2
- package/src/components/{WFOSubscriptionsList → WfoSubscriptionsList}/mapGrapghQlSubscriptionsResultToSubscriptionListItems.ts +16 -7
- package/src/components/{WFOSubscriptionsList → WfoSubscriptionsList}/subscriptionListTabs.ts +18 -18
- package/src/components/WfoTable/WfoBasicTable/WfoBasicTable.tsx +178 -0
- package/src/components/{WFOTable/WFOSortDirectionIcon.tsx → WfoTable/WfoBasicTable/WfoSortDirectionIcon.tsx} +8 -8
- package/src/components/WfoTable/WfoBasicTable/WfoStatusColorField.tsx +21 -0
- package/src/components/WfoTable/WfoBasicTable/WfoTableHeaderCell.tsx +120 -0
- package/src/components/WfoTable/WfoBasicTable/index.ts +4 -0
- package/src/components/WfoTable/WfoBasicTable/styles.ts +73 -0
- package/src/components/{WFOTable/WFODataGridTable/WFODataGridTable.stories.tsx → WfoTable/WfoDataGridTable/WfoDataGridTable.stories.tsx} +9 -7
- package/src/components/{WFOTable/WFODataGridTable/WFODataGridTable.tsx → WfoTable/WfoDataGridTable/WfoDataGridTable.tsx} +23 -21
- package/src/components/{WFOTable/WFODataGridTable/WFOdataGridColumns.spec.ts → WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts} +7 -7
- package/src/components/{WFOTable/WFODataGridTable/WFOdataGridColumns.ts → WfoTable/WfoDataGridTable/WfodataGridColumns.ts} +8 -7
- package/src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx +11 -0
- package/src/components/WfoTable/WfoFirstPartUUID/index.ts +1 -0
- package/src/components/WfoTable/WfoSortButtons/WfoSortButton.tsx +31 -0
- package/src/components/WfoTable/WfoSortButtons/WfoSortButtons.tsx +33 -0
- package/src/components/WfoTable/WfoSortButtons/index.ts +2 -0
- package/src/components/WfoTable/WfoSortButtons/styles.ts +20 -0
- package/src/components/{WFOTable/WFOTableSettingsModal/WFOTableSettingsModal.tsx → WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx} +5 -3
- package/src/components/WfoTable/WfoTableSettingsModal/index.ts +1 -0
- package/src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx +253 -0
- package/src/components/WfoTable/WfoTableWithFilter/index.ts +1 -0
- package/src/components/WfoTable/index.ts +15 -0
- package/src/components/{WFOTable → WfoTable}/utils/columns.ts +27 -16
- package/src/components/{WFOTable → WfoTable}/utils/constants.ts +3 -1
- package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts +52 -0
- package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.ts +21 -0
- package/src/components/{WFOTable → WfoTable}/utils/tableConfigPersistence.spec.ts +4 -4
- package/src/components/{WFOTable → WfoTable}/utils/tableConfigPersistence.ts +12 -16
- package/src/components/{WFOTable → WfoTable}/utils/tableUtils.spec.ts +1 -1
- package/src/components/{WFOTable → WfoTable}/utils/tableUtils.ts +6 -25
- package/src/components/WfoTimeline/WfoTimeline.tsx +69 -0
- package/src/components/WfoTimeline/WfoTimelineStep.tsx +57 -0
- package/src/components/WfoTimeline/index.ts +1 -0
- package/src/components/WfoTimeline/mapProcessStepStatusToEuiStepStatus.ts +23 -0
- package/src/components/WfoTimeline/styles.ts +165 -0
- package/src/components/WfoTimeline/timelineUtils.ts +14 -0
- package/src/components/WfoToastsList/WfoToastsList.tsx +22 -0
- package/src/components/WfoToastsList/index.ts +1 -0
- package/src/components/WfoTree/WfoTree.tsx +27 -0
- package/src/components/{WFOTree/WFOTreeBranch.tsx → WfoTree/WfoTreeBranch.tsx} +7 -6
- package/src/components/{WFOTree/WFOTreeNode.tsx → WfoTree/WfoTreeNode.tsx} +28 -13
- package/src/components/WfoTree/index.ts +4 -0
- package/src/components/WfoTree/styles.ts +18 -0
- package/src/components/WfoTree/treeUtils.spec.ts +100 -0
- package/src/components/WfoTree/treeUtils.ts +21 -0
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.stories.tsx +13 -0
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +167 -0
- package/src/components/WfoWorkflowSteps/WfoStep/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx +107 -0
- package/src/components/WfoWorkflowSteps/WfoStepList/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.stories.tsx +16 -0
- package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx +114 -0
- package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx +139 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.stories.tsx +56 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx +121 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/index.ts +2 -0
- package/src/components/WfoWorkflowSteps/index.ts +4 -0
- package/src/components/WfoWorkflowSteps/stepListUtils.spec.ts +26 -0
- package/src/components/WfoWorkflowSteps/stepListUtils.ts +56 -0
- package/src/components/WfoWorkflowSteps/styles.ts +121 -0
- package/src/components/confirmationDialog/ConfirmationDialogStyling.ts +12 -0
- package/src/components/confirmationDialog/WfoConfirmationDialog.tsx +112 -0
- package/src/components/confirmationDialog/index.ts +1 -0
- package/src/components/index.ts +19 -11
- package/src/contexts/ApiClientContext.tsx +30 -0
- package/src/contexts/ConfirmationDialogProvider.tsx +99 -0
- package/src/contexts/OrchestratorConfigContext.tsx +8 -3
- package/src/contexts/ToastContext.tsx +136 -0
- package/src/contexts/TreeContext.tsx +53 -32
- package/src/contexts/index.ts +3 -1
- package/src/graphqlQueries/customersQuery.ts +19 -0
- package/src/graphqlQueries/index.ts +4 -0
- package/src/graphqlQueries/processDetailQuery.ts +45 -0
- package/src/graphqlQueries/processListQuery.ts +17 -7
- package/src/graphqlQueries/productBlocksQuery.ts +13 -1
- package/src/graphqlQueries/productsQuery.ts +5 -1
- package/src/graphqlQueries/relatedSubscriptionsQuery.ts +65 -0
- package/src/graphqlQueries/resourceTypesQuery.ts +13 -2
- package/src/graphqlQueries/subscriptionDetailQuery.ts +62 -0
- package/src/graphqlQueries/subscriptionsDropdownOptionsQuery.ts +47 -0
- package/src/graphqlQueries/subscriptionsListQuery.ts +4 -0
- package/src/graphqlQueries/{workflowsQuery.ts → workflows/workflowsQuery.ts} +9 -3
- package/src/graphqlQueries/workflows/workflowsQueryForDropdownList.ts +41 -0
- package/src/hooks/DataFetchHooks.ts +72 -49
- package/src/hooks/ProcessesHooks/useDeleteProcess.ts +37 -0
- package/src/hooks/index.ts +4 -1
- package/src/hooks/surf/useGetSubscriptionDropdownOptions.ts +47 -0
- package/src/hooks/surf/useIsTaggedPort.ts +29 -0
- package/src/hooks/useDataDisplayParams.ts +1 -1
- package/src/hooks/useEngineStatusQuery.ts +20 -10
- package/src/hooks/useOrchestratorConfig.ts +6 -2
- package/src/hooks/useProcessStatusCountsQuery.ts +8 -23
- package/src/hooks/useQueryWithFetch.ts +33 -0
- package/src/hooks/useQueryWithGraphql.ts +18 -13
- package/src/hooks/useSessionWithToken.ts +14 -0
- package/src/hooks/useStoredTableConfig.ts +43 -0
- package/src/hooks/useSubscriptionActions.ts +3 -3
- package/src/hooks/useToastMessage.ts +5 -0
- package/src/hooks/useWithOrchestratorTheme.ts +10 -0
- package/src/icons/WfoArrowNarrowDown.stories.tsx +13 -0
- package/src/icons/{WFOArrowNarrowDown.tsx → WfoArrowNarrowDown.tsx} +4 -2
- package/src/icons/WfoArrowNarrowUp.stories.tsx +13 -0
- package/src/icons/{WFOArrowNarrowUp.tsx → WfoArrowNarrowUp.tsx} +4 -2
- package/src/icons/WfoArrowsExpand.stories.tsx +13 -0
- package/src/icons/WfoArrowsExpand.tsx +33 -0
- package/src/icons/WfoCheckmarkCircleFill.stories.tsx +13 -0
- package/src/icons/{WFOCheckmarkCircleFill.tsx → WfoCheckmarkCircleFill.tsx} +3 -2
- package/src/icons/WfoChevronDown.stories.tsx +13 -0
- package/src/icons/{WFOChevronDown.tsx → WfoChevronDown.tsx} +3 -2
- package/src/icons/WfoChevronUp.stories.tsx +13 -0
- package/src/icons/WfoChevronUp.tsx +33 -0
- package/src/icons/WfoClipboardCopy.stories.tsx +13 -0
- package/src/icons/WfoClipboardCopy.tsx +33 -0
- package/src/icons/WfoCode.stories.tsx +13 -0
- package/src/icons/WfoCode.tsx +35 -0
- package/src/icons/WfoCogFill.stories.tsx +13 -0
- package/src/icons/WfoCogFill.tsx +35 -0
- package/src/icons/WfoEyeFill.stories.tsx +13 -0
- package/src/icons/WfoEyeFill.tsx +35 -0
- package/src/icons/{WFOIconProps.ts → WfoIconProps.ts} +1 -1
- package/src/icons/WfoLogoutIcon.stories.tsx +13 -0
- package/src/icons/{WFOLogoutIcon.tsx → WfoLogoutIcon.tsx} +3 -2
- package/src/icons/WfoMinusCircleFill.stories.tsx +13 -0
- package/src/icons/WfoMinusCircleFill.tsx +33 -0
- package/src/icons/WfoMinusCircleOutline.stories.tsx +13 -0
- package/src/icons/{WFOMinusCircleOutline.tsx → WfoMinusCircleOutline.tsx} +3 -2
- package/src/icons/WfoPencilAlt.stories.tsx +13 -0
- package/src/icons/WfoPencilAlt.tsx +33 -0
- package/src/icons/WfoPlayFill.stories.tsx +13 -0
- package/src/icons/WfoPlayFill.tsx +35 -0
- package/src/icons/WfoPlusCircleFill.stories.tsx +13 -0
- package/src/icons/{WFOPlusCircleFill.tsx → WfoPlusCircleFill.tsx} +3 -2
- package/src/icons/WfoRefresh.stories.tsx +13 -0
- package/src/icons/WfoRefresh.tsx +35 -0
- package/src/icons/WfoSearchStrikethrough.stories.tsx +13 -0
- package/src/icons/WfoSearchStrikethrough.tsx +33 -0
- package/src/icons/WfoSortAsc.stories.tsx +13 -0
- package/src/icons/WfoSortAsc.tsx +33 -0
- package/src/icons/WfoSortDesc.stories.tsx +13 -0
- package/src/icons/WfoSortDesc.tsx +33 -0
- package/src/icons/WfoStatistic.tsx +41 -0
- package/src/icons/WfoStatusDotIcon.stories.tsx +13 -0
- package/src/icons/{WFOStatusDotIcon.tsx → WfoStatusDotIcon.tsx} +3 -2
- package/src/icons/WfoXCircleFill.stories.tsx +13 -0
- package/src/icons/{WFOXCircleFill.tsx → WfoXCircleFill.tsx} +3 -2
- package/src/icons/index.ts +22 -10
- package/src/index.ts +1 -0
- package/src/messages/en-US.json +173 -20
- package/src/messages/getTranslationMessages.spec.ts +1 -1
- package/src/messages/getTranslationMessages.ts +1 -1
- package/src/messages/nl-NL.json +177 -22
- package/src/pages/index.ts +2 -0
- package/src/pages/metadata/{WFOMetadataPageLayout.tsx → WfoMetadataPageLayout.tsx} +5 -3
- package/src/pages/metadata/WfoProductBlocksPage.tsx +239 -0
- package/src/pages/metadata/{WFOProductsPage.tsx → WfoProductsPage.tsx} +96 -54
- package/src/pages/metadata/WfoResourceTypesPage.tsx +185 -0
- package/src/pages/metadata/WfoWorkflowsPage.tsx +194 -0
- package/src/pages/metadata/index.ts +4 -4
- package/src/pages/metadata/workflowListObjectMapper.ts +43 -0
- package/src/pages/processes/WfoProcessDetail.tsx +327 -0
- package/src/pages/processes/WfoProcessDetailPage.tsx +88 -0
- package/src/pages/processes/WfoProcessListPage.tsx +106 -0
- package/src/pages/processes/WfoProcessListSubscriptionsCell.tsx +72 -0
- package/src/pages/processes/getProcessListTabTypeFromString.ts +6 -6
- package/src/pages/processes/index.ts +3 -2
- package/src/pages/processes/tabConfig.ts +28 -10
- package/src/pages/processes/timelineUtils.spec.ts +202 -0
- package/src/pages/processes/timelineUtils.ts +113 -0
- package/src/pages/subscriptions/WfoSubscriptionDetailPage.tsx +19 -0
- package/src/pages/subscriptions/{WFOSubscriptionsListPage.tsx → WfoSubscriptionsListPage.tsx} +40 -20
- package/src/pages/subscriptions/index.ts +2 -1
- package/src/pages/tasks/WfoTaskListPage.tsx +120 -0
- package/src/pages/tasks/index.ts +1 -0
- package/src/pages/workflow/WfoStartWorkflowPage.tsx +176 -0
- package/src/pages/workflow/index.ts +1 -0
- package/src/stories/Button.jsx +45 -39
- package/src/stories/Configure.mdx +48 -43
- package/src/stories/Header.jsx +59 -45
- package/src/stories/Page.jsx +81 -60
- package/src/stories/Page.stories.js +2 -1
- package/src/stories/button.css +18 -18
- package/src/stories/colors.mdx +12 -0
- package/src/stories/colors.tsx +27 -0
- package/src/stories/header.css +18 -18
- package/src/stories/page.css +40 -40
- package/src/theme/defaultOrchestratorTheme.ts +16 -0
- package/src/types/forms.ts +40 -0
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +283 -73
- package/src/utils/date.spec.ts +157 -5
- package/src/utils/date.ts +66 -5
- package/src/utils/environmentVariables.spec.ts +17 -0
- package/src/utils/environmentVariables.ts +12 -0
- package/src/utils/getDefaultTableConfig.ts +101 -0
- package/src/utils/getProductNamesFromProcess.spec.ts +133 -0
- package/src/utils/getProductNamesFromProcess.ts +16 -0
- package/src/utils/getTokenName.ts +2 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/string.spec.ts +24 -1
- package/src/utils/strings.ts +5 -0
- package/tsconfig.build.json +18 -0
- package/tsconfig.json +8 -2
- package/src/components/WFOBadges/WFOBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOEngineStatusBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOEnvironmentBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.stories.tsx +0 -12
- package/src/components/WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.tsx +0 -63
- package/src/components/WFOBadges/WFOFailedTasksBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOHeaderBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOProcessStatusBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOProductBlockBadge/WFOProductBlockBadge.stories.tsx +0 -15
- package/src/components/WFOBadges/WFOProductBlockBadge/WFOProductBlockBadge.tsx +0 -22
- package/src/components/WFOBadges/WFOProductBlockBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOSubscriptionStatusBadge/index.ts +0 -1
- package/src/components/WFOBadges/index.ts +0 -8
- package/src/components/WFOFilterTabs/index.ts +0 -1
- package/src/components/WFOLoading/WFOLoading.tsx +0 -2
- package/src/components/WFOLoading/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOBreadcrumbs/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOPageHeader/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOPageTemplate/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOSidebar/WFOSidebar.tsx +0 -161
- package/src/components/WFOPageTemplate/WFOSidebar/index.ts +0 -1
- package/src/components/WFOPageTemplate/index.ts +0 -4
- package/src/components/WFOSearchBar/index.ts +0 -1
- package/src/components/WFOSettingsModal/index.tsx +0 -1
- package/src/components/WFOSettingsPage/index.ts +0 -1
- package/src/components/WFOStartPage/WFONewProcessPanel.stories.tsx +0 -12
- package/src/components/WFOStartPage/WFOStatCards.stories.tsx +0 -12
- package/src/components/WFOStartPage/index.ts +0 -6
- package/src/components/WFOSubscription/WFOFixedInputBlock.tsx +0 -58
- package/src/components/WFOSubscription/WFOProcessesTimeline.tsx +0 -105
- package/src/components/WFOSubscription/WFOProductBlock.tsx +0 -186
- package/src/components/WFOSubscription/WFOSubscriptionActions.tsx +0 -138
- package/src/components/WFOSubscription/WFOSubscriptionBlock.tsx +0 -109
- package/src/components/WFOSubscription/WFOSubscriptionDetailTree.tsx +0 -184
- package/src/components/WFOSubscription/WFOSubscriptionGeneral.tsx +0 -53
- package/src/components/WFOSubscription/index.ts +0 -7
- package/src/components/WFOSubscription/styles.ts +0 -18
- package/src/components/WFOSubscriptionsList/types.ts +0 -11
- package/src/components/WFOTable/WFOTable.tsx +0 -85
- package/src/components/WFOTable/WFOTableHeaderCell.tsx +0 -30
- package/src/components/WFOTable/WFOTableSettingsModal/index.ts +0 -1
- package/src/components/WFOTable/WFOTableWithFilter/WFOTableWithFilter.tsx +0 -174
- package/src/components/WFOTable/WFOTableWithFilter/index.ts +0 -1
- package/src/components/WFOTable/index.ts +0 -14
- package/src/components/WFOTree/WFOTree.tsx +0 -16
- package/src/contexts/SubscriptionContext.tsx +0 -72
- package/src/hooks/useSubscriptionProcesses.ts +0 -45
- package/src/icons/WFOCheckmarkCircleFill.stories.tsx +0 -12
- package/src/icons/WFOLogoutIcon.stories.tsx +0 -12
- package/src/icons/WFOMinusCircleOutline.stories.tsx +0 -12
- package/src/icons/WFOPlusCircleFill.stories.tsx +0 -12
- package/src/icons/WFOStatusDotIcon.stories.tsx +0 -12
- package/src/icons/WFOXCircleFill.stories.tsx +0 -12
- package/src/pages/metadata/WFOProductBlocksPage.tsx +0 -166
- package/src/pages/metadata/WFOResourceTypesPage.tsx +0 -120
- package/src/pages/metadata/WFOWorkflowsPage.tsx +0 -251
- package/src/pages/processes/WFOProcessListPage.tsx +0 -213
- package/src/pages/processes/WFOProcessesListSubscriptionsCell.tsx +0 -28
- package/src/pages/processes/tableConfig.ts +0 -22
- package/src/types/subscription.ts +0 -21
- package/src/components/{WFOTable → WfoTable}/utils/columns.spec.ts +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
import { useOrchestratorTheme } from '../../../hooks';
|
|
4
|
+
import { WfoIconProps } from '../../../icons';
|
|
5
|
+
import { getStyles } from './styles';
|
|
6
|
+
|
|
7
|
+
export type WfoSortButtonProps = {
|
|
8
|
+
WfoIconComponent: FC<WfoIconProps>;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const WfoSortButton: FC<WfoSortButtonProps> = ({
|
|
14
|
+
WfoIconComponent,
|
|
15
|
+
isActive,
|
|
16
|
+
onClick,
|
|
17
|
+
}) => {
|
|
18
|
+
const { theme } = useOrchestratorTheme();
|
|
19
|
+
const { getSortButtonStyle } = getStyles();
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<button
|
|
23
|
+
css={getSortButtonStyle(isActive)}
|
|
24
|
+
onClick={() => isActive && onClick?.()}
|
|
25
|
+
>
|
|
26
|
+
<WfoIconComponent
|
|
27
|
+
color={isActive ? theme.colors.title : theme.colors.lightShade}
|
|
28
|
+
/>
|
|
29
|
+
</button>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
import { WfoSortAsc, WfoSortDesc } from '../../../icons';
|
|
4
|
+
import { SortOrder } from '../../../types';
|
|
5
|
+
import { WfoSortButton } from './WfoSortButton';
|
|
6
|
+
import { getStyles } from './styles';
|
|
7
|
+
|
|
8
|
+
export type WfoSortButtonsProps = {
|
|
9
|
+
sortOrder?: SortOrder;
|
|
10
|
+
onChangeSortOrder: (updatedSortOrder: SortOrder) => void;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const WfoSortButtons: FC<WfoSortButtonsProps> = ({
|
|
14
|
+
sortOrder,
|
|
15
|
+
onChangeSortOrder,
|
|
16
|
+
}) => {
|
|
17
|
+
const { sortButtonsContainerStyle } = getStyles();
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div css={sortButtonsContainerStyle}>
|
|
21
|
+
<WfoSortButton
|
|
22
|
+
WfoIconComponent={WfoSortAsc}
|
|
23
|
+
isActive={sortOrder !== SortOrder.ASC}
|
|
24
|
+
onClick={() => onChangeSortOrder(SortOrder.ASC)}
|
|
25
|
+
/>
|
|
26
|
+
<WfoSortButton
|
|
27
|
+
WfoIconComponent={WfoSortDesc}
|
|
28
|
+
isActive={sortOrder !== SortOrder.DESC}
|
|
29
|
+
onClick={() => onChangeSortOrder(SortOrder.DESC)}
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
export const getStyles = () => {
|
|
4
|
+
const sortButtonsContainerStyle = css({
|
|
5
|
+
display: 'flex',
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const getSortButtonStyle = (isActive: boolean) =>
|
|
10
|
+
css({
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
cursor: isActive ? 'pointer' : 'not-allowed',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
sortButtonsContainerStyle,
|
|
18
|
+
getSortButtonStyle,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
+
|
|
2
3
|
import {
|
|
3
4
|
EuiForm,
|
|
4
5
|
EuiFormRow,
|
|
@@ -7,7 +8,8 @@ import {
|
|
|
7
8
|
EuiSpacer,
|
|
8
9
|
EuiSwitch,
|
|
9
10
|
} from '@elastic/eui';
|
|
10
|
-
|
|
11
|
+
|
|
12
|
+
import { WfoSettingsModal } from '../../WfoSettingsModal';
|
|
11
13
|
|
|
12
14
|
export type ColumnConfig<T> = {
|
|
13
15
|
field: keyof T;
|
|
@@ -58,7 +60,7 @@ export const TableSettingsModal = <T,>({
|
|
|
58
60
|
};
|
|
59
61
|
|
|
60
62
|
return (
|
|
61
|
-
<
|
|
63
|
+
<WfoSettingsModal
|
|
62
64
|
title="Table settings"
|
|
63
65
|
onClose={onClose}
|
|
64
66
|
onResetToDefaults={onResetToDefaults}
|
|
@@ -109,6 +111,6 @@ export const TableSettingsModal = <T,>({
|
|
|
109
111
|
/>
|
|
110
112
|
</EuiFormRow>
|
|
111
113
|
</EuiForm>
|
|
112
|
-
</
|
|
114
|
+
</WfoSettingsModal>
|
|
113
115
|
);
|
|
114
116
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WfoTableSettingsModal';
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
Criteria,
|
|
5
|
+
EuiButton,
|
|
6
|
+
EuiFlexGroup,
|
|
7
|
+
EuiFlexItem,
|
|
8
|
+
EuiSpacer,
|
|
9
|
+
Pagination,
|
|
10
|
+
} from '@elastic/eui';
|
|
11
|
+
|
|
12
|
+
import { useOrchestratorTheme } from '../../../hooks';
|
|
13
|
+
import { WfoArrowsExpand } from '../../../icons';
|
|
14
|
+
import { getTypedFieldFromObject } from '../../../utils';
|
|
15
|
+
import {
|
|
16
|
+
WfoKeyValueTable,
|
|
17
|
+
WfoKeyValueTableDataType,
|
|
18
|
+
} from '../../WfoKeyValueTable/WfoKeyValueTable';
|
|
19
|
+
import { WfoSearchField } from '../../WfoSearchBar';
|
|
20
|
+
import { WfoInformationModal } from '../../WfoSettingsModal';
|
|
21
|
+
import {
|
|
22
|
+
WfoBasicTable,
|
|
23
|
+
WfoBasicTableColumnsWithControlColumns,
|
|
24
|
+
} from '../WfoBasicTable';
|
|
25
|
+
import {
|
|
26
|
+
ColumnConfig,
|
|
27
|
+
TableConfig,
|
|
28
|
+
TableSettingsModal,
|
|
29
|
+
} from '../WfoTableSettingsModal';
|
|
30
|
+
import {
|
|
31
|
+
TableColumnKeys,
|
|
32
|
+
WfoDataSorting,
|
|
33
|
+
WfoTableColumns,
|
|
34
|
+
WfoTableControlColumnConfig,
|
|
35
|
+
WfoTableDataColumnConfig,
|
|
36
|
+
} from '../utils/columns';
|
|
37
|
+
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES } from '../utils/constants';
|
|
38
|
+
import {
|
|
39
|
+
clearTableConfigFromLocalStorage,
|
|
40
|
+
setTableConfigToLocalStorage,
|
|
41
|
+
} from '../utils/tableConfigPersistence';
|
|
42
|
+
|
|
43
|
+
export type WfoTableWithFilterProps<T> = {
|
|
44
|
+
data: T[];
|
|
45
|
+
tableColumns: WfoTableColumns<T>;
|
|
46
|
+
leadingControlColumns?: WfoTableControlColumnConfig<T>;
|
|
47
|
+
trailingControlColumns?: WfoTableControlColumnConfig<T>;
|
|
48
|
+
defaultHiddenColumns?: TableColumnKeys<T>;
|
|
49
|
+
dataSorting: WfoDataSorting<T>;
|
|
50
|
+
pagination: Pagination;
|
|
51
|
+
esQueryString?: string;
|
|
52
|
+
isLoading: boolean;
|
|
53
|
+
localStorageKey: string;
|
|
54
|
+
detailModal?: boolean;
|
|
55
|
+
detailModalTitle?: string;
|
|
56
|
+
onUpdateEsQueryString: (esQueryString: string) => void;
|
|
57
|
+
onUpdatePage: (criterion: Criteria<T>['page']) => void;
|
|
58
|
+
onUpdateDataSort: (dataSorting: WfoDataSorting<T>) => void;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const WfoTableWithFilter = <T,>({
|
|
62
|
+
data,
|
|
63
|
+
tableColumns,
|
|
64
|
+
leadingControlColumns,
|
|
65
|
+
trailingControlColumns,
|
|
66
|
+
defaultHiddenColumns = [],
|
|
67
|
+
dataSorting,
|
|
68
|
+
pagination,
|
|
69
|
+
esQueryString,
|
|
70
|
+
isLoading,
|
|
71
|
+
localStorageKey,
|
|
72
|
+
detailModal = true,
|
|
73
|
+
detailModalTitle = 'Details',
|
|
74
|
+
onUpdateEsQueryString,
|
|
75
|
+
onUpdatePage,
|
|
76
|
+
onUpdateDataSort,
|
|
77
|
+
}: WfoTableWithFilterProps<T>) => {
|
|
78
|
+
const { theme } = useOrchestratorTheme();
|
|
79
|
+
|
|
80
|
+
const defaultPageSize = pagination.pageSize;
|
|
81
|
+
const [hiddenColumns, setHiddenColumns] =
|
|
82
|
+
useState<TableColumnKeys<T>>(defaultHiddenColumns);
|
|
83
|
+
const [showSettingsModal, setShowSettingsModal] = useState(false);
|
|
84
|
+
const [selectedDataForDetailModal, setSelectedDataForDetailModal] =
|
|
85
|
+
useState<T | undefined>(undefined);
|
|
86
|
+
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (defaultHiddenColumns) {
|
|
89
|
+
setHiddenColumns(defaultHiddenColumns);
|
|
90
|
+
}
|
|
91
|
+
}, [defaultHiddenColumns]);
|
|
92
|
+
|
|
93
|
+
const detailsIconColumn: WfoTableControlColumnConfig<T> = {
|
|
94
|
+
viewDetails: {
|
|
95
|
+
field: 'viewDetails',
|
|
96
|
+
width: '36px',
|
|
97
|
+
render: (_, row) => (
|
|
98
|
+
<EuiFlexItem
|
|
99
|
+
css={{ cursor: 'pointer' }}
|
|
100
|
+
onClick={() => setSelectedDataForDetailModal(row)}
|
|
101
|
+
>
|
|
102
|
+
<WfoArrowsExpand color={theme.colors.mediumShade} />
|
|
103
|
+
</EuiFlexItem>
|
|
104
|
+
),
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const tableColumnsWithControlColumns: WfoBasicTableColumnsWithControlColumns<T> =
|
|
109
|
+
{
|
|
110
|
+
...leadingControlColumns,
|
|
111
|
+
...tableColumns,
|
|
112
|
+
...trailingControlColumns,
|
|
113
|
+
...(detailModal ? detailsIconColumn : []),
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const tableSettingsColumns: ColumnConfig<T>[] = Object.entries<
|
|
117
|
+
WfoTableDataColumnConfig<T, keyof T>
|
|
118
|
+
>(tableColumns).map((keyValuePair) => {
|
|
119
|
+
const { field, name } = keyValuePair[1];
|
|
120
|
+
return {
|
|
121
|
+
field,
|
|
122
|
+
name,
|
|
123
|
+
isVisible: hiddenColumns.indexOf(field) === -1,
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
const rowDetailData: WfoKeyValueTableDataType[] | undefined =
|
|
128
|
+
selectedDataForDetailModal &&
|
|
129
|
+
Object.entries(tableColumns).map(([key]): WfoKeyValueTableDataType => {
|
|
130
|
+
const dataField = getTypedFieldFromObject(key, tableColumns);
|
|
131
|
+
if (dataField === null) {
|
|
132
|
+
return {
|
|
133
|
+
key,
|
|
134
|
+
value: undefined,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const { renderDetails, render, clipboardText, name } =
|
|
139
|
+
tableColumns[dataField];
|
|
140
|
+
const dataValue = selectedDataForDetailModal[dataField];
|
|
141
|
+
return {
|
|
142
|
+
key: name ?? dataField.toString(),
|
|
143
|
+
value: (renderDetails &&
|
|
144
|
+
renderDetails(dataValue, selectedDataForDetailModal)) ??
|
|
145
|
+
(render &&
|
|
146
|
+
render(dataValue, selectedDataForDetailModal)) ?? (
|
|
147
|
+
<>{dataValue}</>
|
|
148
|
+
),
|
|
149
|
+
textToCopy:
|
|
150
|
+
clipboardText?.(dataValue, selectedDataForDetailModal) ??
|
|
151
|
+
(typeof dataValue === 'string' ? dataValue : undefined),
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
const handleUpdateTableConfig = (updatedTableConfig: TableConfig<T>) => {
|
|
156
|
+
const updatedHiddenColumns = updatedTableConfig.columns
|
|
157
|
+
.filter((column) => !column.isVisible)
|
|
158
|
+
.map((hiddenColumn) => hiddenColumn.field);
|
|
159
|
+
setHiddenColumns(updatedHiddenColumns);
|
|
160
|
+
setShowSettingsModal(false);
|
|
161
|
+
setTableConfigToLocalStorage(localStorageKey, {
|
|
162
|
+
hiddenColumns: updatedHiddenColumns,
|
|
163
|
+
selectedPageSize: updatedTableConfig.selectedPageSize,
|
|
164
|
+
});
|
|
165
|
+
onUpdatePage({
|
|
166
|
+
index: 0,
|
|
167
|
+
size: updatedTableConfig.selectedPageSize,
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const handleResetToDefaults = () => {
|
|
172
|
+
setHiddenColumns(defaultHiddenColumns);
|
|
173
|
+
setShowSettingsModal(false);
|
|
174
|
+
clearTableConfigFromLocalStorage(localStorageKey);
|
|
175
|
+
onUpdatePage({
|
|
176
|
+
index: 0,
|
|
177
|
+
size: defaultPageSize ?? DEFAULT_PAGE_SIZE,
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const onCriteriaChange = (criterion: Criteria<T>) => {
|
|
182
|
+
if (criterion.page) {
|
|
183
|
+
onUpdatePage(criterion.page);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
return (
|
|
188
|
+
<>
|
|
189
|
+
<EuiFlexGroup>
|
|
190
|
+
<EuiFlexItem>
|
|
191
|
+
<WfoSearchField
|
|
192
|
+
esQueryString={esQueryString}
|
|
193
|
+
onUpdateEsQueryString={onUpdateEsQueryString}
|
|
194
|
+
/>
|
|
195
|
+
</EuiFlexItem>
|
|
196
|
+
<EuiButton onClick={() => setShowSettingsModal(true)}>
|
|
197
|
+
Edit columns
|
|
198
|
+
</EuiButton>
|
|
199
|
+
</EuiFlexGroup>
|
|
200
|
+
<EuiSpacer size="m" />
|
|
201
|
+
<WfoBasicTable
|
|
202
|
+
data={data}
|
|
203
|
+
columns={tableColumnsWithControlColumns}
|
|
204
|
+
hiddenColumns={hiddenColumns}
|
|
205
|
+
dataSorting={dataSorting}
|
|
206
|
+
onUpdateDataSorting={onUpdateDataSort}
|
|
207
|
+
pagination={pagination}
|
|
208
|
+
isLoading={isLoading}
|
|
209
|
+
onCriteriaChange={onCriteriaChange}
|
|
210
|
+
onDataSearch={({ field, searchText }) => {
|
|
211
|
+
// Todo: This is not the final implementation. Need to decide to use esquery in the frontend.
|
|
212
|
+
// In that case, string concatenation is not the best solution
|
|
213
|
+
// https://github.com/workfloworchestrator/orchestrator-ui/issues/81
|
|
214
|
+
onUpdateEsQueryString(
|
|
215
|
+
esQueryString
|
|
216
|
+
? esQueryString +
|
|
217
|
+
' AND ' +
|
|
218
|
+
`${field.toString()}:"${searchText}"`
|
|
219
|
+
: `${field.toString()}:"${searchText}"`,
|
|
220
|
+
);
|
|
221
|
+
}}
|
|
222
|
+
/>
|
|
223
|
+
|
|
224
|
+
{showSettingsModal && (
|
|
225
|
+
<TableSettingsModal
|
|
226
|
+
tableConfig={{
|
|
227
|
+
columns: tableSettingsColumns,
|
|
228
|
+
selectedPageSize:
|
|
229
|
+
pagination.pageSize ?? DEFAULT_PAGE_SIZE,
|
|
230
|
+
}}
|
|
231
|
+
pageSizeOptions={
|
|
232
|
+
pagination.pageSizeOptions ?? DEFAULT_PAGE_SIZES
|
|
233
|
+
}
|
|
234
|
+
onClose={() => setShowSettingsModal(false)}
|
|
235
|
+
onUpdateTableConfig={handleUpdateTableConfig}
|
|
236
|
+
onResetToDefaults={handleResetToDefaults}
|
|
237
|
+
/>
|
|
238
|
+
)}
|
|
239
|
+
|
|
240
|
+
{rowDetailData && (
|
|
241
|
+
<WfoInformationModal
|
|
242
|
+
title={detailModalTitle}
|
|
243
|
+
onClose={() => setSelectedDataForDetailModal(undefined)}
|
|
244
|
+
>
|
|
245
|
+
<WfoKeyValueTable
|
|
246
|
+
keyValues={rowDetailData}
|
|
247
|
+
showCopyToClipboardIcon
|
|
248
|
+
/>
|
|
249
|
+
</WfoInformationModal>
|
|
250
|
+
)}
|
|
251
|
+
</>
|
|
252
|
+
);
|
|
253
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WfoTableWithFilter';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './WfoDataGridTable/WfoDataGridTable';
|
|
2
|
+
export * from './WfoDataGridTable/WfodataGridColumns';
|
|
3
|
+
|
|
4
|
+
export * from './WfoTableSettingsModal';
|
|
5
|
+
|
|
6
|
+
export * from './utils/columns';
|
|
7
|
+
export * from './utils/constants';
|
|
8
|
+
|
|
9
|
+
export * from './utils/tableConfigPersistence';
|
|
10
|
+
export * from './utils/tableUtils';
|
|
11
|
+
|
|
12
|
+
export * from './WfoBasicTable';
|
|
13
|
+
export * from './WfoTableWithFilter';
|
|
14
|
+
|
|
15
|
+
export * from './WfoSortButtons';
|
|
@@ -1,48 +1,59 @@
|
|
|
1
|
-
import { EuiBasicTableColumn } from '@elastic/eui';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import { EuiBasicTableColumn } from '@elastic/eui';
|
|
4
|
+
|
|
3
5
|
import { SortOrder } from '../../../types';
|
|
4
6
|
|
|
5
7
|
// Todo need to Pick a few more props from EuiBasicTableColumn to prevent none-functioning props (truncateText)
|
|
6
8
|
// https://github.com/workfloworchestrator/orchestrator-ui/issues/130
|
|
7
|
-
export type
|
|
9
|
+
export type WfoEuiBasicTableColumn<T> = Omit<EuiBasicTableColumn<T>, 'render'>;
|
|
8
10
|
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export type WfoTableDataColumnConfig<T, Property> =
|
|
12
|
+
WfoEuiBasicTableColumn<T> & {
|
|
13
|
+
field: Property;
|
|
14
|
+
name: string;
|
|
15
|
+
sortable?: boolean;
|
|
16
|
+
filterable?: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const WFO_STATUS_COLOR_FIELD = 'statusColorField';
|
|
13
20
|
|
|
14
21
|
// Todo need to Pick a few props from EuiBasicTableColumn to prevent none-functioning props (truncateText)
|
|
15
|
-
export type
|
|
22
|
+
export type WfoTableColumnsWithExtraNonDataFields<T> = WfoTableColumns<T> & {
|
|
16
23
|
[key: string]: EuiBasicTableColumn<T> & {
|
|
17
24
|
field: string;
|
|
18
25
|
name?: string;
|
|
19
26
|
};
|
|
20
27
|
};
|
|
21
28
|
|
|
22
|
-
export type
|
|
23
|
-
[Property in keyof T]:
|
|
29
|
+
export type WfoTableColumns<T> = {
|
|
30
|
+
[Property in keyof T]: WfoTableDataColumnConfig<T, Property> & {
|
|
24
31
|
render?: (cellValue: T[Property], row: T) => ReactNode;
|
|
32
|
+
renderDetails?: (cellValue: T[Property], row: T) => ReactNode;
|
|
33
|
+
clipboardText?: (cellValue: T[Property], row: T) => string;
|
|
25
34
|
};
|
|
26
35
|
};
|
|
27
36
|
|
|
28
|
-
export type
|
|
29
|
-
[key: string]:
|
|
37
|
+
export type WfoTableControlColumnConfig<T> = {
|
|
38
|
+
[key: string]: WfoEuiBasicTableColumn<T> & {
|
|
30
39
|
field: string;
|
|
31
40
|
name?: string;
|
|
32
|
-
render: (row: T) => ReactNode;
|
|
41
|
+
render: (cellValue: never, row: T) => ReactNode;
|
|
33
42
|
};
|
|
34
43
|
};
|
|
35
44
|
|
|
36
|
-
export type WFOTableColumnsWithControlColumns<T> = WFOTableColumns<T> &
|
|
37
|
-
WFOTableControlColumnConfig<T>;
|
|
38
|
-
|
|
39
45
|
export type TableColumnKeys<T> = Array<keyof T>;
|
|
40
46
|
|
|
41
|
-
export type
|
|
47
|
+
export type WfoDataSorting<T> = {
|
|
42
48
|
field: keyof T;
|
|
43
49
|
sortOrder: SortOrder;
|
|
44
50
|
};
|
|
45
51
|
|
|
52
|
+
export type WfoDataSearch<T> = {
|
|
53
|
+
field: keyof T;
|
|
54
|
+
searchText: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
46
57
|
export const getSortDirectionFromString = (
|
|
47
58
|
sortOrder?: string,
|
|
48
59
|
): SortOrder | undefined => {
|
|
@@ -8,10 +8,12 @@ export const COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY =
|
|
|
8
8
|
|
|
9
9
|
export const METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY =
|
|
10
10
|
'metadataResourceTypesTable';
|
|
11
|
-
export const
|
|
11
|
+
export const METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY =
|
|
12
12
|
'metadataProductBlocksTable';
|
|
13
13
|
export const METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY = 'metadataProductTable';
|
|
14
14
|
export const METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY =
|
|
15
15
|
'metadataWorkflowsTable';
|
|
16
16
|
|
|
17
17
|
export const SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY = 'subscriptionsTable';
|
|
18
|
+
|
|
19
|
+
export const TASK_LIST_TABLE_LOCAL_STORAGE_KEY = 'taskListTable';
|
package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { WfoTableColumns } from './columns';
|
|
2
|
+
import { mapSortableAndFilterableValuesToTableColumnConfig } from './mapSortableAndFilterableValuesToTableColumnConfig';
|
|
3
|
+
|
|
4
|
+
type TestObject = {
|
|
5
|
+
name: string;
|
|
6
|
+
age: number;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const tableColumnConfig: WfoTableColumns<TestObject> = {
|
|
10
|
+
name: {
|
|
11
|
+
field: 'name',
|
|
12
|
+
name: 'tesName',
|
|
13
|
+
},
|
|
14
|
+
age: {
|
|
15
|
+
field: 'age',
|
|
16
|
+
name: 'testAge',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
describe('mapSortableAndFilterableValuesToTableColumnConfig', () => {
|
|
21
|
+
it('sets the sortable and filterable properties for the columnConfig object to true when the colum name is specified in the list', () => {
|
|
22
|
+
const sortableFieldNames = ['name', 'age', 'nonExistingFieldName'];
|
|
23
|
+
const filterableFieldNames = ['name', 'age', 'nonExistingFieldName'];
|
|
24
|
+
|
|
25
|
+
const result = mapSortableAndFilterableValuesToTableColumnConfig(
|
|
26
|
+
tableColumnConfig,
|
|
27
|
+
sortableFieldNames,
|
|
28
|
+
filterableFieldNames,
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
expect(result.name.sortable).toEqual(true);
|
|
32
|
+
expect(result.name.filterable).toEqual(true);
|
|
33
|
+
expect(result.age.sortable).toEqual(true);
|
|
34
|
+
expect(result.age.filterable).toEqual(true);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('sets the sortable and filterable properties for the columnConfig object to false when the colum name is not specified in the list', () => {
|
|
38
|
+
const sortableFieldNames = ['nonExistingFieldName'];
|
|
39
|
+
const filterableFieldNames: string[] = [];
|
|
40
|
+
|
|
41
|
+
const result = mapSortableAndFilterableValuesToTableColumnConfig(
|
|
42
|
+
tableColumnConfig,
|
|
43
|
+
sortableFieldNames,
|
|
44
|
+
filterableFieldNames,
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
expect(result.name.sortable).toEqual(false);
|
|
48
|
+
expect(result.name.filterable).toEqual(false);
|
|
49
|
+
expect(result.age.sortable).toEqual(false);
|
|
50
|
+
expect(result.age.filterable).toEqual(false);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WfoTableColumns, WfoTableDataColumnConfig } from './columns';
|
|
2
|
+
|
|
3
|
+
export function mapSortableAndFilterableValuesToTableColumnConfig<T>(
|
|
4
|
+
tableColumnConfig: WfoTableColumns<T>,
|
|
5
|
+
sortableFieldNames: string[],
|
|
6
|
+
filterableFieldNames: string[],
|
|
7
|
+
): WfoTableColumns<T> {
|
|
8
|
+
const tableConfigValues =
|
|
9
|
+
Object.values<WfoTableDataColumnConfig<T, keyof T>>(tableColumnConfig);
|
|
10
|
+
|
|
11
|
+
const updatedTableConfigEntries = tableConfigValues.map((value) => [
|
|
12
|
+
value.field,
|
|
13
|
+
{
|
|
14
|
+
...value,
|
|
15
|
+
sortable: sortableFieldNames.includes(value.field.toString()),
|
|
16
|
+
filterable: filterableFieldNames.includes(value.field.toString()),
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
return Object.fromEntries(updatedTableConfigEntries);
|
|
21
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
StoredTableConfig,
|
|
2
3
|
getTableConfigFromLocalStorage,
|
|
3
4
|
isValidLocalStorageTableConfig,
|
|
4
|
-
LocalStorageTableConfig,
|
|
5
5
|
} from './tableConfigPersistence';
|
|
6
6
|
|
|
7
7
|
// Note: for some testcases a typecast is needed on the testObject to bypass TSC errors
|
|
8
8
|
describe('tableConfigPersistence', () => {
|
|
9
9
|
describe('isValidLocalStorageTableConfig', () => {
|
|
10
10
|
it('returns true if the input-object does contain LocalStorageTableConfig properties', () => {
|
|
11
|
-
const testObject:
|
|
11
|
+
const testObject: StoredTableConfig<unknown> = {
|
|
12
12
|
hiddenColumns: [],
|
|
13
13
|
selectedPageSize: 10,
|
|
14
14
|
};
|
|
@@ -20,13 +20,13 @@ describe('tableConfigPersistence', () => {
|
|
|
20
20
|
const testObject = {
|
|
21
21
|
hiddenColumns: undefined,
|
|
22
22
|
selectedPageSize: undefined,
|
|
23
|
-
} as unknown as
|
|
23
|
+
} as unknown as StoredTableConfig<unknown>;
|
|
24
24
|
const result = isValidLocalStorageTableConfig(testObject);
|
|
25
25
|
expect(result).toEqual(false);
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
it('returns false if the input-object does not contain LocalStorageTableConfig properties', () => {
|
|
29
|
-
const testObject = {} as
|
|
29
|
+
const testObject = {} as StoredTableConfig<unknown>;
|
|
30
30
|
const result = isValidLocalStorageTableConfig(testObject);
|
|
31
31
|
expect(result).toEqual(false);
|
|
32
32
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { TableColumnKeys } from './columns';
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type StoredTableConfig<T> = {
|
|
4
4
|
hiddenColumns: TableColumnKeys<T>;
|
|
5
5
|
selectedPageSize: number;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export const isValidLocalStorageTableConfig = <T>(
|
|
9
|
-
object:
|
|
10
|
-
): object is
|
|
9
|
+
object: StoredTableConfig<T>,
|
|
10
|
+
): object is StoredTableConfig<T> =>
|
|
11
|
+
typeof object === 'object' &&
|
|
11
12
|
'hiddenColumns' in object &&
|
|
12
13
|
object.hiddenColumns !== undefined &&
|
|
13
14
|
'selectedPageSize' in object &&
|
|
@@ -15,32 +16,27 @@ export const isValidLocalStorageTableConfig = <T>(
|
|
|
15
16
|
|
|
16
17
|
export const getTableConfigFromLocalStorage = <T>(
|
|
17
18
|
key: string,
|
|
18
|
-
):
|
|
19
|
-
|
|
19
|
+
): StoredTableConfig<T> | undefined => {
|
|
20
|
+
if (typeof window !== 'undefined' && window.localStorage) {
|
|
20
21
|
const parsedJson = JSON.parse(localStorage.getItem(key) ?? '{}');
|
|
21
22
|
return isValidLocalStorageTableConfig(parsedJson)
|
|
22
23
|
? parsedJson
|
|
23
24
|
: undefined;
|
|
24
|
-
} catch (e) {
|
|
25
|
-
return undefined;
|
|
26
25
|
}
|
|
26
|
+
return undefined;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const setTableConfigToLocalStorage = <T>(
|
|
30
30
|
key: string,
|
|
31
|
-
updatedTableConfig:
|
|
31
|
+
updatedTableConfig: StoredTableConfig<T>,
|
|
32
32
|
) => {
|
|
33
|
-
|
|
33
|
+
if (typeof window !== 'undefined' && window.localStorage) {
|
|
34
34
|
localStorage.setItem(key, JSON.stringify(updatedTableConfig));
|
|
35
|
-
} catch {
|
|
36
|
-
// Todo: implement error handling
|
|
37
|
-
// https://github.com/workfloworchestrator/orchestrator-ui/issues/134
|
|
38
|
-
console.error(
|
|
39
|
-
`An error occurred while updating the default table config for "${key}" in local storage`,
|
|
40
|
-
);
|
|
41
35
|
}
|
|
42
36
|
};
|
|
43
37
|
|
|
44
38
|
export const clearTableConfigFromLocalStorage = (key: string) => {
|
|
45
|
-
localStorage
|
|
39
|
+
if (typeof window !== 'undefined' && window.localStorage) {
|
|
40
|
+
localStorage.removeItem(key);
|
|
41
|
+
}
|
|
46
42
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { determinePageIndex, determineNewSortOrder } from './tableUtils';
|
|
2
1
|
import { SortOrder } from '../../../types';
|
|
2
|
+
import { determineNewSortOrder, determinePageIndex } from './tableUtils';
|
|
3
3
|
|
|
4
4
|
describe('tableUtils', () => {
|
|
5
5
|
describe('determinePageIndex()', () => {
|