@devtron-labs/devtron-fe-common-lib 1.23.3-beta-4 → 1.23.3-beta-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/dist/{@code-editor-D6qrr0WG.js → @code-editor-y9ySXF0A.js} +12090 -11681
- package/dist/@common-rjsf-BYQSt2lY.js +585 -0
- package/dist/@framer-motion-Cu-u_ITL.js +4961 -0
- package/dist/{@moment-CGWt8tF2.js → @moment-DxWRjRhI.js} +504 -547
- package/dist/{@react-select-C5q5RdNV.js → @react-select-wm1PF2qL.js} +3 -3
- package/dist/{@react-virtualized-sticky-tree-LXSXNrbc.js → @react-virtualized-sticky-tree-BUPoedBX.js} +1 -1
- package/dist/@vendor-BGJoS6R0.js +204114 -0
- package/dist/Common/API/QueryClientProvider.d.ts +1 -1
- package/dist/Common/API/reactQueryHooks.d.ts +2 -2
- package/dist/Common/AddCDButton/AddCDButton.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +3 -3
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +1 -1
- package/dist/Common/BreadCrumb/Types.d.ts +1 -0
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +1 -1
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -71
- package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +1 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -1
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +1 -1
- package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +1 -1
- package/dist/Common/DevtronCopyright.d.ts +1 -1
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -0
- package/dist/Common/Dialogs/DialogForm.d.ts +6 -6
- package/dist/Common/DraggableWrapper/DraggableButton.d.ts +1 -1
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
- package/dist/Common/Drawer/Drawer.d.ts +2 -2
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -0
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +1 -1
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/ErrorScreenNotAuthorized.d.ts +1 -1
- package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
- package/dist/Common/GenericDescription/constant.d.ts +40 -0
- package/dist/Common/GenericDescription/types.d.ts +1 -6
- package/dist/Common/GenericDescription/utils.d.ts +0 -1
- package/dist/Common/Grid/Grid.d.ts +1 -1
- package/dist/Common/Helper.d.ts +4 -4
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/ImageTags.d.ts +2 -2
- package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +1 -1
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +4 -5
- package/dist/Common/Modals/VisibleModal2.d.ts +4 -4
- package/dist/Common/MultiSelectCustomization.d.ts +7 -7
- package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -1
- package/dist/Common/Pagination/Pagination.d.ts +1 -1
- package/dist/Common/PopupMenu.d.ts +2 -2
- package/dist/Common/Progressing.d.ts +1 -0
- package/dist/Common/RJSF/Form.d.ts +1 -2
- package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +2 -2
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -1
- package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -1
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/Field.d.ts +1 -1
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -1
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -1
- package/dist/Common/RJSF/templates/TitleField.d.ts +3 -2
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +1 -1
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
- package/dist/Common/RJSF/widgets/Select.d.ts +1 -1
- package/dist/Common/RadioGroup.d.ts +1 -1
- package/dist/Common/RadioGroupItem.d.ts +1 -1
- package/dist/Common/Reload.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Tooltip/ShortcutKeyComboTooltipContent.d.ts +1 -1
- package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Common/Types.d.ts +84 -77
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/FileConfigTippy.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +7 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/ScopedVariables/types.d.ts +2 -2
- package/dist/Pages/ResourceBrowser/ClusterMap/ClusterMap.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ForceDeleteOption.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/NodeDrainOptions.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/constants.d.ts +1 -11
- package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/AutomationEnablementIcon/AutomationEnablementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/AutomationEnablementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/AutomationEnablementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +2 -2
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/SecurityCenterIcon.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/utils.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/Shared/Overview/components.d.ts +4 -4
- package/dist/Pages-Devtron-2.0/Shared/Routes/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Shared/Routes/routes.d.ts +569 -0
- package/dist/Pages-Devtron-2.0/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/index.d.ts +1 -0
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -1
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -1
- package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -1
- package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +1 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +66 -41
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedTimer/AnimatedTimer.component.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +1 -1
- package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Badge/Badge.d.ts +1 -1
- package/dist/Shared/Components/BulkOperations/BulkOperations.component.d.ts +1 -1
- package/dist/Shared/Components/BulkOperations/BulkOperationsResultModal.d.ts +1 -1
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +2 -0
- package/dist/Shared/Components/Button/Button.component.d.ts +2 -388
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/ConflictedResourcesTable.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +6 -6
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/ResourceConflictDeployDialog.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/ResourceConflictDetailsModal.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +9 -7
- package/dist/Shared/Components/CICDHistory/utils.d.ts +3 -3
- package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +1 -1
- package/dist/Shared/Components/CMCS/helpers.d.ts +1 -1
- package/dist/Shared/Components/Card/Card.component.d.ts +1 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +1 -1
- package/dist/Shared/Components/Charts/utils.d.ts +1 -1
- package/dist/Shared/Components/Chip/Chip.component.d.ts +1 -1
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.components.d.ts +6 -6
- package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +7 -7
- package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/Extensions/DiffMinimap.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/types.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
- package/dist/Shared/Components/Collapse/Collapse.d.ts +1 -1
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +1 -1
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -2
- package/dist/Shared/Components/CommitChipCell/CommitChipCell.d.ts +1 -1
- package/dist/Shared/Components/Confetti/Confetti.component.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/CannotDeleteModal.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/ConfirmationModalContext.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -1
- package/dist/Shared/Components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
- package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/PasswordField.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -1
- package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/MonthlySelect.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/constants.d.ts +2 -112
- package/dist/Shared/Components/DatePicker/index.d.ts +0 -2
- package/dist/Shared/Components/DatePicker/types.d.ts +34 -29
- package/dist/Shared/Components/DatePicker/utils.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +1 -1
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +1 -1
- package/dist/Shared/Components/DocLink/DocLink.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
- package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +1 -1
- package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +1 -1
- package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +1 -1
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/utils.d.ts +1 -1
- package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +1 -1
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +1 -1
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +1 -1
- package/dist/Shared/Components/ExportToCsv/types.d.ts +1 -0
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +7 -2
- package/dist/Shared/Components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
- package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +1 -1
- package/dist/Shared/Components/FormFieldWrapper/FormFieldInfo.d.ts +1 -1
- package/dist/Shared/Components/FormFieldWrapper/FormFieldLabel.d.ts +1 -1
- package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +4 -4
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/types.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +1 -1
- package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +3 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +1 -1
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/IframePromoButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/ProfileMenu.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -1
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/IframeContainer/IframeContainer.component.d.ts +1 -1
- package/dist/Shared/Components/IframeContainer/IframeElement.d.ts +1 -1
- package/dist/Shared/Components/Illustration/Illustration.d.ts +3 -2
- package/dist/Shared/Components/Illustration/IllustrationBase.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/ImageCard.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +1 -1
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
- package/dist/Shared/Components/InfoBlock/InfoBlock.component.d.ts +1 -1
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +1 -1
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +1 -1
- package/dist/Shared/Components/License/ActivateLicenseDialog.d.ts +1 -1
- package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
- package/dist/Shared/Components/License/License.components.d.ts +3 -3
- package/dist/Shared/Components/LoadingCard.d.ts +1 -1
- package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +1 -1
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +1 -1
- package/dist/Shared/Components/LoginBanner/types.d.ts +1 -1
- package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/NumbersCount/NumbersCount.component.d.ts +1 -1
- package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginCard.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginCardSkeletonList.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginImageContainer.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginList.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginListContainer.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginTagsContainer.d.ts +1 -1
- package/dist/Shared/Components/Plugin/types.d.ts +2 -2
- package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +0 -4
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/ProgressBar/ProgressBar.component.d.ts +1 -1
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
- package/dist/Shared/Components/QRCode.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/constants.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -4
- package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
- package/dist/Shared/Components/SSOProviderIcon/SSOProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityDetailsCards.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +5 -97
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
- package/dist/Shared/Components/Security/SeverityChip.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/FilterSelectPicker.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPickerTextArea.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +12 -12
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -19
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +1 -1
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +1 -1
- package/dist/Shared/Components/StatusComponent/AppStatus.d.ts +1 -1
- package/dist/Shared/Components/StatusComponent/DeploymentStatus.d.ts +1 -1
- package/dist/Shared/Components/StatusComponent/StatusComponent.d.ts +1 -1
- package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
- package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.component.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +4 -4
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -0
- package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/Table.component.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/TagsKeyValueTable/TagsContainer.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformBadgeList.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
- package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +1 -1
- package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
- package/dist/Shared/Components/TrailingItem/TrailingItem.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/types.d.ts +1 -1
- package/dist/Shared/Components/Typewriter/BlinkingCursor.d.ts +1 -1
- package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +1 -1
- package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +1 -1
- package/dist/Shared/Components/UserIdentifier/UserIdentifier.d.ts +1 -1
- package/dist/Shared/Components/VirtualizedList/VirtualizedList.component.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +3 -3
- package/dist/Shared/Helpers.d.ts +4 -14
- package/dist/Shared/Hooks/UsePrompt/UsePrompt.d.ts +1 -2
- package/dist/Shared/Hooks/UsePrompt/types.d.ts +1 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -1
- package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/MainContextProvider.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +1 -1
- package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +3 -3
- package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -2
- package/dist/Shared/Store/IndexStore.d.ts +1 -1
- package/dist/Shared/types.d.ts +174 -3
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/img-folder-create.a6a63325.svg +63 -0
- package/dist/assets/img-user-groups.08883eeb.svg +199 -0
- package/dist/index.d.ts +16 -185
- package/dist/index.js +1019 -1152
- package/package.json +29 -32
- package/dist/@common-rjsf-5PXacsvc.js +0 -604
- package/dist/@framer-motion-Bi7d_Mil.js +0 -3606
- package/dist/@react-dates-CR-uCH60.js +0 -7634
- package/dist/@vendor-CtCMPfdc.js +0 -81580
- package/dist/Common/Markdown/constant.d.ts +0 -28
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +0 -11
- package/dist/Shared/Components/DatePicker/DayPickerRangeController.d.ts +0 -2
- package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +0 -11
- package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +0 -80
- package/dist/assets/@react-dates.css +0 -1
- package/dist/assets/cmd-bar-visual.340d6226.webp +0 -0
- package/dist/assets/ic-calender-blank.963e3423.svg +0 -19
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
import { j as n, bW as D, bX as W, bY as J, bZ as K, b_ as B, b$ as V, bw as v, c0 as Y, c1 as q, bt as G, bs as z, c2 as X, c3 as Z, Y as Q, c4 as ee } from "./@vendor-BGJoS6R0.js";
|
|
2
|
+
import te, { useState as ne, useEffect as se, useMemo as E } from "react";
|
|
3
|
+
import { T as O, j as w, c as T, b as N, S as ae, i as re, g as oe, a as le, d as R, e as ie } from "./@code-editor-y9ySXF0A.js";
|
|
4
|
+
import { ReactComponent as ce } from "./assets/ic-add.cfaa779b.svg";
|
|
5
|
+
import { ReactComponent as de } from "./assets/ic-warning.ecf7ff97.svg";
|
|
6
|
+
import { ReactComponent as ue } from "./assets/ic-cross.01e03666.svg";
|
|
7
|
+
import './assets/@common-rjsf.css';const F = {
|
|
8
|
+
SELECT: "Please select an option",
|
|
9
|
+
INPUT: "Please enter an input",
|
|
10
|
+
OBJECT_KEY: "Please enter a value for the key"
|
|
11
|
+
}, me = "Key not available", ke = {
|
|
12
|
+
"ui:submitButtonOptions": {
|
|
13
|
+
norender: !0
|
|
14
|
+
}
|
|
15
|
+
}, L = "rjsf-form-select-portal-target", pe = ({
|
|
16
|
+
children: t,
|
|
17
|
+
disabled: e,
|
|
18
|
+
hasToolbar: a,
|
|
19
|
+
hasRemove: s,
|
|
20
|
+
onRemoveItem: r,
|
|
21
|
+
readonly: i,
|
|
22
|
+
registry: o,
|
|
23
|
+
uiSchema: l
|
|
24
|
+
}) => {
|
|
25
|
+
const { RemoveButton: c } = o.templates.ButtonTemplates;
|
|
26
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
|
|
27
|
+
t,
|
|
28
|
+
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: a && s && /* @__PURE__ */ n.jsx(
|
|
29
|
+
c,
|
|
30
|
+
{
|
|
31
|
+
disabled: e || i,
|
|
32
|
+
onClick: r,
|
|
33
|
+
uiSchema: l,
|
|
34
|
+
registry: o
|
|
35
|
+
}
|
|
36
|
+
) })
|
|
37
|
+
] });
|
|
38
|
+
}, S = ({
|
|
39
|
+
showLabel: t,
|
|
40
|
+
label: e,
|
|
41
|
+
required: a,
|
|
42
|
+
children: s,
|
|
43
|
+
id: r,
|
|
44
|
+
rawDescription: i,
|
|
45
|
+
shouldAlignCenter: o = !0
|
|
46
|
+
}) => /* @__PURE__ */ n.jsxs(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: t ? `display-grid dc__gap-12 rjsf-form-template__field ${o ? "" : "rjsf-form-template__field--align-top"}` : "",
|
|
50
|
+
children: [
|
|
51
|
+
t && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
|
|
52
|
+
/* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!i, content: i, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${i ? "dc__underline-dotted" : ""}`, children: e || me }) }),
|
|
53
|
+
a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
|
|
54
|
+
] }),
|
|
55
|
+
s
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
), A = ({ label: t, canAdd: e, onAddClick: a, disabled: s, readonly: r, uiSchema: i, registry: o }) => {
|
|
59
|
+
const {
|
|
60
|
+
ButtonTemplates: { AddButton: l }
|
|
61
|
+
} = o.templates;
|
|
62
|
+
return e && /* @__PURE__ */ n.jsx(
|
|
63
|
+
l,
|
|
64
|
+
{
|
|
65
|
+
label: t,
|
|
66
|
+
onClick: a,
|
|
67
|
+
disabled: s || r,
|
|
68
|
+
uiSchema: i,
|
|
69
|
+
registry: o
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}, fe = ({
|
|
73
|
+
canAdd: t,
|
|
74
|
+
className: e,
|
|
75
|
+
disabled: a,
|
|
76
|
+
fieldPathId: s,
|
|
77
|
+
uiSchema: r,
|
|
78
|
+
items: i,
|
|
79
|
+
onAddClick: o,
|
|
80
|
+
readonly: l,
|
|
81
|
+
registry: c,
|
|
82
|
+
required: d,
|
|
83
|
+
title: p
|
|
84
|
+
}) => {
|
|
85
|
+
const u = D(r).title || p;
|
|
86
|
+
return /* @__PURE__ */ n.jsx("fieldset", { className: e, id: s.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
87
|
+
i,
|
|
88
|
+
/* @__PURE__ */ n.jsx(
|
|
89
|
+
A,
|
|
90
|
+
{
|
|
91
|
+
label: u,
|
|
92
|
+
canAdd: t,
|
|
93
|
+
onAddClick: o,
|
|
94
|
+
disabled: a,
|
|
95
|
+
readonly: l,
|
|
96
|
+
uiSchema: r,
|
|
97
|
+
registry: c
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }) : /* @__PURE__ */ n.jsx(S, { label: u, required: d, showLabel: !0, id: s.$id, children: /* @__PURE__ */ n.jsx(
|
|
101
|
+
A,
|
|
102
|
+
{
|
|
103
|
+
label: u,
|
|
104
|
+
canAdd: t,
|
|
105
|
+
onAddClick: o,
|
|
106
|
+
disabled: a,
|
|
107
|
+
readonly: l,
|
|
108
|
+
uiSchema: r,
|
|
109
|
+
registry: c
|
|
110
|
+
}
|
|
111
|
+
) }) });
|
|
112
|
+
}, {
|
|
113
|
+
templates: { BaseInputTemplate: he }
|
|
114
|
+
} = W(), _e = ({ placeholder: t, ...e }) => {
|
|
115
|
+
const { schema: a } = e;
|
|
116
|
+
return /* @__PURE__ */ n.jsx(
|
|
117
|
+
he,
|
|
118
|
+
{
|
|
119
|
+
placeholder: a.placeholder || t || F.INPUT,
|
|
120
|
+
...e,
|
|
121
|
+
className: "form__input cn-9 fs-13 lh-20 fw-4"
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}, U = ({
|
|
125
|
+
label: t,
|
|
126
|
+
icon: e,
|
|
127
|
+
iconType: a,
|
|
128
|
+
registry: s,
|
|
129
|
+
uiSchema: r,
|
|
130
|
+
...i
|
|
131
|
+
}) => {
|
|
132
|
+
const o = `Add ${t}`;
|
|
133
|
+
return /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-start", children: /* @__PURE__ */ n.jsxs(
|
|
134
|
+
"button",
|
|
135
|
+
{
|
|
136
|
+
...i,
|
|
137
|
+
type: "button",
|
|
138
|
+
className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor dc__mxw-250",
|
|
139
|
+
title: "Add",
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ n.jsx(ce, { className: "icon-dim-16 fcb-5" }),
|
|
142
|
+
/* @__PURE__ */ n.jsx(O, { placement: "right", content: o, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: o }) })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
) });
|
|
146
|
+
}, xe = ({ icon: t, iconType: e, registry: a, uiSchema: s, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(ue, { className: "icon-dim-16 fcn-6" }) }), je = ({ uiSchema: t }) => {
|
|
147
|
+
const { submitText: e, norender: a, props: s = {} } = J(t);
|
|
148
|
+
return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...s, className: `cta ${s.className || ""}`, children: e }) });
|
|
149
|
+
}, P = ({
|
|
150
|
+
id: t,
|
|
151
|
+
title: e,
|
|
152
|
+
required: a,
|
|
153
|
+
description: s
|
|
154
|
+
}) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: t, children: [
|
|
155
|
+
/* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!s, content: s, children: /* @__PURE__ */ n.jsx("span", { className: `${s ? "dc__underline-dotted" : ""}`, children: e }) }),
|
|
156
|
+
a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
|
|
157
|
+
] }), be = (t) => {
|
|
158
|
+
const {
|
|
159
|
+
id: e,
|
|
160
|
+
label: a,
|
|
161
|
+
children: s,
|
|
162
|
+
errors: r,
|
|
163
|
+
hidden: i,
|
|
164
|
+
required: o,
|
|
165
|
+
displayLabel: l,
|
|
166
|
+
registry: c,
|
|
167
|
+
uiSchema: d,
|
|
168
|
+
classNames: p,
|
|
169
|
+
schema: m,
|
|
170
|
+
rawDescription: u
|
|
171
|
+
} = t, f = D(d), h = K(
|
|
172
|
+
"WrapIfAdditionalTemplate",
|
|
173
|
+
c,
|
|
174
|
+
f
|
|
175
|
+
), x = B in m, _ = (l || m.type === "boolean") && !x, j = m.type === "array";
|
|
176
|
+
return i ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: s }) : (
|
|
177
|
+
// NOTE: need to override the margins of default rjsf css
|
|
178
|
+
/* @__PURE__ */ n.jsxs("div", { className: `${p} mb-0`, children: [
|
|
179
|
+
j && /* @__PURE__ */ n.jsx(
|
|
180
|
+
P,
|
|
181
|
+
{
|
|
182
|
+
id: e,
|
|
183
|
+
title: a,
|
|
184
|
+
required: o,
|
|
185
|
+
registry: c,
|
|
186
|
+
uiSchema: d,
|
|
187
|
+
schema: m,
|
|
188
|
+
description: u
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
/* @__PURE__ */ n.jsx(
|
|
192
|
+
S,
|
|
193
|
+
{
|
|
194
|
+
label: a,
|
|
195
|
+
showLabel: _,
|
|
196
|
+
id: e,
|
|
197
|
+
required: o,
|
|
198
|
+
rawDescription: u,
|
|
199
|
+
children: /* @__PURE__ */ n.jsx(h, { ...t, children: s })
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
r
|
|
203
|
+
] })
|
|
204
|
+
);
|
|
205
|
+
}, ge = ({ errors: t = [], fieldPathId: e }) => {
|
|
206
|
+
const a = V(e);
|
|
207
|
+
return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: t.filter((s) => !!s).map((s, r) => /* @__PURE__ */ n.jsxs(te.Fragment, { children: [
|
|
208
|
+
/* @__PURE__ */ n.jsx("span", {}),
|
|
209
|
+
/* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
|
|
210
|
+
/* @__PURE__ */ n.jsx(de, { className: "form__icon form__icon--error" }),
|
|
211
|
+
s
|
|
212
|
+
] })
|
|
213
|
+
] }, r)) });
|
|
214
|
+
}, ye = (t, e) => t === q.NewStringDefault ? "" : Y(t, e), He = (t) => {
|
|
215
|
+
try {
|
|
216
|
+
const e = new URL(t).origin === window.location.origin;
|
|
217
|
+
return {
|
|
218
|
+
href: t,
|
|
219
|
+
target: e ? "_self" : "_blank",
|
|
220
|
+
rel: e ? void 0 : "external noreferrer",
|
|
221
|
+
url: t
|
|
222
|
+
};
|
|
223
|
+
} catch {
|
|
224
|
+
return {
|
|
225
|
+
href: t,
|
|
226
|
+
target: "_blank",
|
|
227
|
+
url: `${t} (Invalid URL)`
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}, Me = (t) => {
|
|
231
|
+
const e = typeof t;
|
|
232
|
+
switch (e) {
|
|
233
|
+
case "boolean":
|
|
234
|
+
case "string":
|
|
235
|
+
case "number":
|
|
236
|
+
return e;
|
|
237
|
+
case "object":
|
|
238
|
+
return Array.isArray(t) ? "array" : t === null ? "null" : e;
|
|
239
|
+
default:
|
|
240
|
+
return "null";
|
|
241
|
+
}
|
|
242
|
+
}, y = (t) => {
|
|
243
|
+
if (!t)
|
|
244
|
+
return "";
|
|
245
|
+
const e = t.trim(), s = (/^\/.+$/g.test(e) ? e : `/${e}`).replaceAll(/\./g, "/");
|
|
246
|
+
return /(\/(([^/~])|(~[01]))*)/g.test(s) ? s : "";
|
|
247
|
+
}, I = {
|
|
248
|
+
value: !1,
|
|
249
|
+
path: ""
|
|
250
|
+
}, ve = (t) => {
|
|
251
|
+
if (!t)
|
|
252
|
+
return null;
|
|
253
|
+
const e = structuredClone(t);
|
|
254
|
+
return typeof e == "string" ? {
|
|
255
|
+
value: !0,
|
|
256
|
+
path: y(e)
|
|
257
|
+
} : typeof e != "object" ? structuredClone(I) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
|
|
258
|
+
value: e.condition,
|
|
259
|
+
path: y(e.value)
|
|
260
|
+
} : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
|
|
261
|
+
value: e.value,
|
|
262
|
+
path: y(e.path)
|
|
263
|
+
} : structuredClone(I);
|
|
264
|
+
}, k = (t, e, a) => {
|
|
265
|
+
t && (t.type === "object" && t.properties && typeof t.properties == "object" && Object.entries(t.properties).forEach(([s, r]) => {
|
|
266
|
+
k(r, `${e}/${s}`, a);
|
|
267
|
+
}), (t.type === "boolean" || t.type === "string" || t.type === "number" || t.type === "integer") && (a[e] = y(t.updatePath ?? e)));
|
|
268
|
+
}, Te = (t) => {
|
|
269
|
+
const e = {};
|
|
270
|
+
return k(t, "", e), e;
|
|
271
|
+
}, H = (t, e, a) => {
|
|
272
|
+
if (e >= a.length)
|
|
273
|
+
return t;
|
|
274
|
+
const s = a[e];
|
|
275
|
+
if (e === a.length - 1) {
|
|
276
|
+
const r = structuredClone(t);
|
|
277
|
+
return delete r[s], r;
|
|
278
|
+
}
|
|
279
|
+
if (t[s] && (t[s] = H(t[s], e + 1, a)), Object.keys(t[s] ?? {}).length === 0) {
|
|
280
|
+
const r = structuredClone(t);
|
|
281
|
+
return delete r[s], r;
|
|
282
|
+
}
|
|
283
|
+
return t;
|
|
284
|
+
}, Se = (t, e) => {
|
|
285
|
+
if (!t || typeof t != "object" || Array.isArray(t))
|
|
286
|
+
throw new Error("Invalid object");
|
|
287
|
+
if (!e || !e.startsWith("/"))
|
|
288
|
+
throw new Error("Invalid path");
|
|
289
|
+
const a = e.split("/").slice(1);
|
|
290
|
+
return H(t, 0, a);
|
|
291
|
+
}, $ = ({
|
|
292
|
+
formState: t,
|
|
293
|
+
formData: e,
|
|
294
|
+
schemaPathToUpdatePathMap: a
|
|
295
|
+
}) => {
|
|
296
|
+
let s = structuredClone(t);
|
|
297
|
+
return s && (Object.entries(a).forEach(([r, i]) => {
|
|
298
|
+
if (r === i || !i)
|
|
299
|
+
return;
|
|
300
|
+
const o = v({
|
|
301
|
+
json: e,
|
|
302
|
+
path: T(r),
|
|
303
|
+
resultType: "value",
|
|
304
|
+
wrap: !1
|
|
305
|
+
});
|
|
306
|
+
o === void 0 ? s = Se(s, r) : s = w([N(r, o), s]);
|
|
307
|
+
const l = v({
|
|
308
|
+
json: t,
|
|
309
|
+
path: T(r),
|
|
310
|
+
resultType: "value",
|
|
311
|
+
wrap: !1
|
|
312
|
+
});
|
|
313
|
+
l !== void 0 && (s = w([N(i, l), s]));
|
|
314
|
+
}), e && s ? G(e, z(e, s), !1, !1).newDocument : s);
|
|
315
|
+
}, we = ({ formData: t, schemaPathToUpdatePathMap: e }) => w([
|
|
316
|
+
...Object.entries(e).map(([a, s]) => {
|
|
317
|
+
if (a === s || !s)
|
|
318
|
+
return {};
|
|
319
|
+
const r = v({
|
|
320
|
+
json: t,
|
|
321
|
+
path: T(s),
|
|
322
|
+
resultType: "value",
|
|
323
|
+
wrap: !1
|
|
324
|
+
});
|
|
325
|
+
return r === void 0 ? {} : N(a, r);
|
|
326
|
+
}),
|
|
327
|
+
structuredClone(t)
|
|
328
|
+
]), Ne = ({
|
|
329
|
+
disabled: t,
|
|
330
|
+
formData: e,
|
|
331
|
+
fieldPathId: a,
|
|
332
|
+
onAddProperty: s,
|
|
333
|
+
properties: r,
|
|
334
|
+
readonly: i,
|
|
335
|
+
registry: o,
|
|
336
|
+
required: l,
|
|
337
|
+
schema: c,
|
|
338
|
+
title: d,
|
|
339
|
+
uiSchema: p
|
|
340
|
+
}) => {
|
|
341
|
+
const m = !!c.additionalProperties, u = Z(c, p, e) && /* @__PURE__ */ n.jsx(
|
|
342
|
+
U,
|
|
343
|
+
{
|
|
344
|
+
label: d,
|
|
345
|
+
className: "object-property-expand",
|
|
346
|
+
onClick: s,
|
|
347
|
+
disabled: t || i,
|
|
348
|
+
uiSchema: p,
|
|
349
|
+
registry: o
|
|
350
|
+
}
|
|
351
|
+
), f = r.filter((h) => {
|
|
352
|
+
const x = c.properties?.[h.name]?.hidden;
|
|
353
|
+
if (!x)
|
|
354
|
+
return !0;
|
|
355
|
+
try {
|
|
356
|
+
const _ = ve(x);
|
|
357
|
+
if (!_.path)
|
|
358
|
+
throw new Error("Empty path property of hidden descriptor field");
|
|
359
|
+
const j = v({
|
|
360
|
+
path: T(_.path),
|
|
361
|
+
json: o.formContext,
|
|
362
|
+
resultType: "value",
|
|
363
|
+
wrap: !1
|
|
364
|
+
});
|
|
365
|
+
return !(j === void 0 || Q(_.value, j));
|
|
366
|
+
} catch {
|
|
367
|
+
return !0;
|
|
368
|
+
}
|
|
369
|
+
}).map((h) => h.content);
|
|
370
|
+
return m ? r.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
371
|
+
/* @__PURE__ */ n.jsx(
|
|
372
|
+
S,
|
|
373
|
+
{
|
|
374
|
+
label: d,
|
|
375
|
+
required: l,
|
|
376
|
+
showLabel: !0,
|
|
377
|
+
id: a.$id,
|
|
378
|
+
shouldAlignCenter: !1,
|
|
379
|
+
children: /* @__PURE__ */ n.jsx("div", { children: f })
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
u
|
|
383
|
+
] }) : /* @__PURE__ */ n.jsx(S, { label: d, required: l, showLabel: !0, id: a.$id, children: u }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
384
|
+
f,
|
|
385
|
+
u
|
|
386
|
+
] });
|
|
387
|
+
}, Oe = (t) => {
|
|
388
|
+
const { fieldPathId: e, registry: a, required: s, schema: r, title: i, uiSchema: o, description: l } = t, c = !!r.additionalProperties, d = i && !c;
|
|
389
|
+
return /* @__PURE__ */ n.jsxs("fieldset", { id: e.$id, children: [
|
|
390
|
+
d && /* @__PURE__ */ n.jsx(
|
|
391
|
+
P,
|
|
392
|
+
{
|
|
393
|
+
id: X(e),
|
|
394
|
+
title: i,
|
|
395
|
+
required: s,
|
|
396
|
+
schema: r,
|
|
397
|
+
uiSchema: o,
|
|
398
|
+
registry: a,
|
|
399
|
+
description: l
|
|
400
|
+
}
|
|
401
|
+
),
|
|
402
|
+
/* @__PURE__ */ n.jsx(
|
|
403
|
+
"div",
|
|
404
|
+
{
|
|
405
|
+
className: `${r.properties && !c && e.$id !== "root" ? "dc__border-left pl-12" : ""} ${e.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
|
|
406
|
+
children: /* @__PURE__ */ n.jsx(Ne, { ...t })
|
|
407
|
+
}
|
|
408
|
+
)
|
|
409
|
+
] });
|
|
410
|
+
}, Fe = ({
|
|
411
|
+
id: t,
|
|
412
|
+
disabled: e,
|
|
413
|
+
label: a,
|
|
414
|
+
onKeyRename: s,
|
|
415
|
+
onRemoveProperty: r,
|
|
416
|
+
readonly: i,
|
|
417
|
+
schema: o,
|
|
418
|
+
children: l,
|
|
419
|
+
uiSchema: c,
|
|
420
|
+
registry: d
|
|
421
|
+
}) => {
|
|
422
|
+
const { templates: p } = d, { RemoveButton: m } = p.ButtonTemplates, u = B in o;
|
|
423
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: u ? /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
|
|
424
|
+
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
425
|
+
"input",
|
|
426
|
+
{
|
|
427
|
+
type: "text",
|
|
428
|
+
className: "form__input cn-9 fs-13 lh-20 fw-4",
|
|
429
|
+
id: `${t}-key`,
|
|
430
|
+
onBlur: (f) => s(f.target.value),
|
|
431
|
+
placeholder: F.OBJECT_KEY,
|
|
432
|
+
defaultValue: a
|
|
433
|
+
}
|
|
434
|
+
) }),
|
|
435
|
+
/* @__PURE__ */ n.jsx("div", { children: l }),
|
|
436
|
+
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: /* @__PURE__ */ n.jsx(
|
|
437
|
+
m,
|
|
438
|
+
{
|
|
439
|
+
disabled: e || i,
|
|
440
|
+
onClick: r,
|
|
441
|
+
uiSchema: c,
|
|
442
|
+
registry: d
|
|
443
|
+
}
|
|
444
|
+
) })
|
|
445
|
+
] }) : l });
|
|
446
|
+
}, Pe = ({
|
|
447
|
+
id: t,
|
|
448
|
+
onChange: e,
|
|
449
|
+
value: a,
|
|
450
|
+
disabled: s,
|
|
451
|
+
readonly: r,
|
|
452
|
+
autofocus: i
|
|
453
|
+
}) => {
|
|
454
|
+
const o = re(a) ? !1 : a, l = () => {
|
|
455
|
+
e(!o);
|
|
456
|
+
};
|
|
457
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
|
458
|
+
/* @__PURE__ */ n.jsx(
|
|
459
|
+
ae,
|
|
460
|
+
{
|
|
461
|
+
name: t,
|
|
462
|
+
ariaLabel: t,
|
|
463
|
+
onChange: l,
|
|
464
|
+
isChecked: o,
|
|
465
|
+
autoFocus: i,
|
|
466
|
+
isDisabled: s || r
|
|
467
|
+
}
|
|
468
|
+
),
|
|
469
|
+
/* @__PURE__ */ n.jsx("span", { className: "dc__capitalize", children: o.toString() })
|
|
470
|
+
] });
|
|
471
|
+
}, Ce = (t) => {
|
|
472
|
+
const {
|
|
473
|
+
id: e,
|
|
474
|
+
multiple: a = !1,
|
|
475
|
+
options: s,
|
|
476
|
+
value: r,
|
|
477
|
+
disabled: i,
|
|
478
|
+
readonly: o,
|
|
479
|
+
autofocus: l = !1,
|
|
480
|
+
onChange: c,
|
|
481
|
+
onBlur: d,
|
|
482
|
+
onFocus: p,
|
|
483
|
+
placeholder: m,
|
|
484
|
+
schema: u
|
|
485
|
+
} = t, { enumOptions: f = [] } = s, h = a ? [] : null, x = (b) => {
|
|
486
|
+
c(a ? b.map((g) => g.value) : b.value);
|
|
487
|
+
}, [_, j] = ne();
|
|
488
|
+
se(() => {
|
|
489
|
+
j(oe(8));
|
|
490
|
+
}, []);
|
|
491
|
+
const C = (b) => a ? f.filter((g) => b.some((M) => R(M, g.value))) : f.find((g) => R(b, g.value));
|
|
492
|
+
return /* @__PURE__ */ n.jsx(
|
|
493
|
+
le,
|
|
494
|
+
{
|
|
495
|
+
inputId: `devtron-rjsf-select__${e}`,
|
|
496
|
+
name: e,
|
|
497
|
+
isMulti: a,
|
|
498
|
+
value: typeof r > "u" ? h : C(r),
|
|
499
|
+
autoFocus: l,
|
|
500
|
+
onChange: x,
|
|
501
|
+
options: f,
|
|
502
|
+
onBlur: () => d(e, r),
|
|
503
|
+
onFocus: () => p(e, r),
|
|
504
|
+
placeholder: u.placeholder || m || F.SELECT,
|
|
505
|
+
isDisabled: i || o,
|
|
506
|
+
menuPortalTarget: document.getElementById(L),
|
|
507
|
+
menuPosition: "fixed"
|
|
508
|
+
},
|
|
509
|
+
_
|
|
510
|
+
);
|
|
511
|
+
}, Ee = {
|
|
512
|
+
CheckboxWidget: Pe,
|
|
513
|
+
SelectWidget: Ce
|
|
514
|
+
}, Re = {
|
|
515
|
+
ArrayFieldItemTemplate: pe,
|
|
516
|
+
ArrayFieldTemplate: fe,
|
|
517
|
+
BaseInputTemplate: _e,
|
|
518
|
+
ButtonTemplates: { AddButton: U, RemoveButton: xe, SubmitButton: je },
|
|
519
|
+
FieldTemplate: be,
|
|
520
|
+
FieldErrorTemplate: ge,
|
|
521
|
+
ObjectFieldTemplate: Oe,
|
|
522
|
+
TitleFieldTemplate: P,
|
|
523
|
+
WrapIfAdditionalTemplate: Fe
|
|
524
|
+
}, Ae = ee, We = ({ ref: t, ...e }) => {
|
|
525
|
+
const { schemaPathToUpdatePathMap: a, isUpdatePathKeywordPresent: s } = E(() => {
|
|
526
|
+
const l = Te(e.schema);
|
|
527
|
+
return {
|
|
528
|
+
schemaPathToUpdatePathMap: l,
|
|
529
|
+
isUpdatePathKeywordPresent: Object.entries(l).some(([c, d]) => c !== d)
|
|
530
|
+
};
|
|
531
|
+
}, [e.schema]), r = E(() => s ? we({ formData: e.formData ?? {}, schemaPathToUpdatePathMap: a }) : e.formData, [e.formData, a, s]), i = (l) => {
|
|
532
|
+
if (!e.onChange)
|
|
533
|
+
return;
|
|
534
|
+
const c = $({
|
|
535
|
+
formState: l.formData,
|
|
536
|
+
formData: e.formData,
|
|
537
|
+
schemaPathToUpdatePathMap: a
|
|
538
|
+
});
|
|
539
|
+
e.onChange({ ...l, formData: c });
|
|
540
|
+
}, o = (l, c) => {
|
|
541
|
+
if (!e.onSubmit)
|
|
542
|
+
return;
|
|
543
|
+
const d = $({
|
|
544
|
+
formState: l.formData,
|
|
545
|
+
formData: e.formData,
|
|
546
|
+
schemaPathToUpdatePathMap: a
|
|
547
|
+
});
|
|
548
|
+
e.onSubmit?.({ ...l, formData: d }, c);
|
|
549
|
+
};
|
|
550
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
551
|
+
/* @__PURE__ */ n.jsx(
|
|
552
|
+
Ae,
|
|
553
|
+
{
|
|
554
|
+
noHtml5Validate: !0,
|
|
555
|
+
showErrorList: !1,
|
|
556
|
+
autoComplete: "off",
|
|
557
|
+
...e,
|
|
558
|
+
formData: r,
|
|
559
|
+
...s ? {
|
|
560
|
+
onChange: i,
|
|
561
|
+
onSubmit: o
|
|
562
|
+
} : {},
|
|
563
|
+
className: `rjsf-form-template__container ${e.className || ""}`,
|
|
564
|
+
validator: ie,
|
|
565
|
+
templates: {
|
|
566
|
+
...Re,
|
|
567
|
+
...e.templates
|
|
568
|
+
},
|
|
569
|
+
formContext: r,
|
|
570
|
+
widgets: { ...Ee, ...e.widgets },
|
|
571
|
+
translateString: ye,
|
|
572
|
+
ref: t
|
|
573
|
+
}
|
|
574
|
+
),
|
|
575
|
+
/* @__PURE__ */ n.jsx("div", { id: L })
|
|
576
|
+
] });
|
|
577
|
+
};
|
|
578
|
+
export {
|
|
579
|
+
ke as H,
|
|
580
|
+
We as R,
|
|
581
|
+
He as a,
|
|
582
|
+
Te as b,
|
|
583
|
+
y as c,
|
|
584
|
+
Me as g
|
|
585
|
+
};
|