@devtron-labs/devtron-fe-common-lib 1.22.8-beta-9 → 1.22.8-beta-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-BQuL3MJ4.js → @code-editor-D-C0F1GG.js} +11462 -11718
- package/dist/{@common-rjsf-D0gZheG0.js → @common-rjsf-lBAOmp10.js} +269 -257
- package/dist/{@framer-motion-F-ZV0kPL.js → @framer-motion-Bi7d_Mil.js} +147 -147
- package/dist/{@moment-DMLRxgRE.js → @moment-CGWt8tF2.js} +532 -501
- package/dist/@react-dates-CR-uCH60.js +7634 -0
- package/dist/{@react-select-CTafio-F.js → @react-select-C5q5RdNV.js} +3 -3
- package/dist/{@react-virtualized-sticky-tree-DX-A0tLR.js → @react-virtualized-sticky-tree-LXSXNrbc.js} +1 -1
- package/dist/@vendor-CtCMPfdc.js +81580 -0
- package/dist/Common/API/QueryClientProvider.d.ts +1 -1
- package/dist/Common/API/reactQueryHooks.d.ts +3 -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 +0 -1
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +1 -1
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +1 -1
- package/dist/Common/ClipboardButton/types.d.ts +3 -0
- package/dist/Common/Common.service.d.ts +12 -1
- package/dist/Common/Constants.d.ts +77 -2
- 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/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 +1 -1
- 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 +0 -40
- package/dist/Common/GenericDescription/types.d.ts +6 -0
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- 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/Markdown/constant.d.ts +28 -0
- package/dist/Common/Modals/Modal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +4 -4
- 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/RJSF/Form.d.ts +1 -1
- 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 +2 -3
- 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/SortableTableHeaderCell/types.d.ts +4 -0
- 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 +75 -81
- 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/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 +11 -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/Overview/Overview.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.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/InfrastructureManagement/utils.d.ts +3 -3
- 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/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -1
- 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 +29 -39
- 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/AppStatusModal/types.d.ts +4 -1
- package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.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/BulkSelectionProvider.d.ts +1 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +69 -69
- 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/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/History.components.d.ts +1 -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/constants.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +6 -8
- package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -2
- 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/types.d.ts +0 -2
- 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/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 +2 -1
- 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/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/DatePicker/DateTimePicker.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/DayPickerRangeController.d.ts +2 -0
- package/dist/Shared/Components/DatePicker/MonthlySelect.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +11 -0
- package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/constants.d.ts +112 -2
- package/dist/Shared/Components/DatePicker/index.d.ts +2 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +29 -34
- 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/DocLink/constants.d.ts +0 -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/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -7
- 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/GenericSectionErrorState/GenericSectionErrorState.component.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/Icon/Icon.d.ts +19 -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 +2 -1
- 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/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/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/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 +97 -5
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.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/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/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/Table/constants.d.ts +1 -0
- package/dist/Shared/Components/Table/types.d.ts +27 -7
- package/dist/Shared/Components/Table/utils.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/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 +13 -3
- package/dist/Shared/Hooks/UsePrompt/UsePrompt.d.ts +2 -1
- package/dist/Shared/Hooks/UsePrompt/types.d.ts +0 -1
- package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +1 -0
- 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/index.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +45 -4
- 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/Services/ToastManager/toastManager.service.d.ts +1 -1
- package/dist/Shared/Services/types.d.ts +1 -0
- package/dist/Shared/Store/IndexStore.d.ts +1 -1
- package/dist/Shared/types.d.ts +4 -176
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@react-dates.css +1 -0
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/empty-state-key.b983ece5.svg +13 -0
- package/dist/assets/ic-bell.d2aa01ec.svg +3 -0
- package/dist/assets/ic-bulb.3906a732.svg +7 -0
- package/dist/assets/ic-calender-blank.963e3423.svg +19 -0
- package/dist/assets/ic-close-circle.b39dd87d.svg +3 -0
- package/dist/assets/ic-comment.cc141b33.svg +3 -0
- package/dist/assets/ic-dot-circle.5ce1fccf.svg +3 -0
- package/dist/assets/ic-medium-megaphone.a069bf1d.svg +5 -0
- package/dist/assets/ic-new-chat.f7c90f8e.svg +5 -0
- package/dist/assets/ic-piggybank.3a4839d7.svg +3 -0
- package/dist/assets/ic-priority-high-fill.53755d8f.svg +3 -0
- package/dist/assets/ic-priority-low-fill.79e781ae.svg +4 -0
- package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +10 -0
- package/dist/assets/ic-red-bulb.25e01bfc.svg +9 -0
- package/dist/assets/ic-ses.7797b214.svg +6 -0
- package/dist/assets/ic-slack.3c916573.svg +10 -0
- package/dist/assets/ic-smtp.f6f45abc.svg +7 -0
- package/dist/assets/ic-thumb-down-fill.e3cb6362.svg +3 -0
- package/dist/assets/ic-thumb-up-fill.ddf7c8eb.svg +3 -0
- package/dist/assets/ic-webhook-config.d0dd47eb.svg +5 -0
- package/dist/index.d.ts +173 -1
- package/dist/index.js +1152 -1011
- package/package.json +22 -14
- package/dist/@vendor-zzMkp5ik.js +0 -135824
- package/dist/Pages-Devtron-2.0/Shared/Routes/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Shared/Routes/routes.d.ts +0 -563
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { j as n, aM as v, aO as J, aN as K } from "./@vendor-CtCMPfdc.js";
|
|
2
|
+
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
|
3
|
+
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
|
4
|
+
import { T as O, j as w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-D-C0F1GG.js";
|
|
5
|
+
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
|
4
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
|
5
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
|
6
8
|
import { ReactComponent as me } from "./assets/ic-cross.01e03666.svg";
|
|
7
|
-
import './assets/@common-rjsf.css';const
|
|
9
|
+
import './assets/@common-rjsf.css';const P = {
|
|
8
10
|
SELECT: "Please select an option",
|
|
9
11
|
INPUT: "Please enter an input",
|
|
10
12
|
OBJECT_KEY: "Please enter a value for the key"
|
|
11
|
-
}, pe = "Key not available",
|
|
13
|
+
}, pe = "Key not available", Je = {
|
|
12
14
|
"ui:submitButtonOptions": {
|
|
13
15
|
norender: !0
|
|
14
16
|
}
|
|
15
|
-
},
|
|
17
|
+
}, U = "rjsf-form-select-portal-target", fe = ({
|
|
16
18
|
children: e,
|
|
17
19
|
disabled: t,
|
|
18
|
-
hasToolbar:
|
|
19
|
-
hasRemove:
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
hasToolbar: s,
|
|
21
|
+
hasRemove: r,
|
|
22
|
+
index: a,
|
|
23
|
+
onDropIndexClick: i,
|
|
24
|
+
readonly: l,
|
|
22
25
|
registry: o,
|
|
23
|
-
uiSchema:
|
|
26
|
+
uiSchema: c
|
|
24
27
|
}) => {
|
|
25
|
-
const { RemoveButton:
|
|
28
|
+
const { RemoveButton: d } = o.templates.ButtonTemplates;
|
|
26
29
|
return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
|
|
27
30
|
e,
|
|
28
|
-
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children:
|
|
29
|
-
|
|
31
|
+
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: s && r && /* @__PURE__ */ n.jsx(
|
|
32
|
+
d,
|
|
30
33
|
{
|
|
31
|
-
disabled: t ||
|
|
32
|
-
onClick:
|
|
33
|
-
uiSchema:
|
|
34
|
+
disabled: t || l,
|
|
35
|
+
onClick: i(a),
|
|
36
|
+
uiSchema: c,
|
|
34
37
|
registry: o
|
|
35
38
|
}
|
|
36
39
|
) })
|
|
@@ -38,98 +41,106 @@ import './assets/@common-rjsf.css';const F = {
|
|
|
38
41
|
}, S = ({
|
|
39
42
|
showLabel: e,
|
|
40
43
|
label: t,
|
|
41
|
-
required:
|
|
42
|
-
children:
|
|
43
|
-
id:
|
|
44
|
+
required: s,
|
|
45
|
+
children: r,
|
|
46
|
+
id: a,
|
|
44
47
|
rawDescription: i,
|
|
45
|
-
shouldAlignCenter:
|
|
48
|
+
shouldAlignCenter: l = !0
|
|
46
49
|
}) => /* @__PURE__ */ n.jsxs(
|
|
47
50
|
"div",
|
|
48
51
|
{
|
|
49
|
-
className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${
|
|
52
|
+
className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${l ? "" : "rjsf-form-template__field--align-top"}` : "",
|
|
50
53
|
children: [
|
|
51
|
-
e && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor:
|
|
54
|
+
e && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: a, children: [
|
|
52
55
|
/* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!i, content: i, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${i ? "dc__underline-dotted" : ""}`, children: t || pe }) }),
|
|
53
|
-
|
|
56
|
+
s && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
|
|
54
57
|
] }),
|
|
55
|
-
|
|
58
|
+
r
|
|
56
59
|
]
|
|
57
60
|
}
|
|
58
|
-
), A = ({ label: e, canAdd: t, onAddClick:
|
|
61
|
+
), A = ({ label: e, canAdd: t, onAddClick: s, disabled: r, readonly: a, uiSchema: i, registry: l }) => {
|
|
59
62
|
const {
|
|
60
|
-
ButtonTemplates: { AddButton:
|
|
61
|
-
} =
|
|
63
|
+
ButtonTemplates: { AddButton: o }
|
|
64
|
+
} = l.templates;
|
|
62
65
|
return t && /* @__PURE__ */ n.jsx(
|
|
63
|
-
|
|
66
|
+
o,
|
|
64
67
|
{
|
|
65
68
|
label: e,
|
|
66
|
-
onClick:
|
|
67
|
-
disabled:
|
|
69
|
+
onClick: s,
|
|
70
|
+
disabled: r || a,
|
|
68
71
|
uiSchema: i,
|
|
69
|
-
registry:
|
|
72
|
+
registry: l
|
|
70
73
|
}
|
|
71
74
|
);
|
|
72
75
|
}, he = ({
|
|
73
76
|
canAdd: e,
|
|
74
77
|
className: t,
|
|
75
|
-
disabled:
|
|
76
|
-
|
|
77
|
-
uiSchema:
|
|
78
|
+
disabled: s,
|
|
79
|
+
idSchema: r,
|
|
80
|
+
uiSchema: a,
|
|
78
81
|
items: i,
|
|
79
|
-
onAddClick:
|
|
80
|
-
readonly:
|
|
82
|
+
onAddClick: l,
|
|
83
|
+
readonly: o,
|
|
81
84
|
registry: c,
|
|
82
85
|
required: d,
|
|
83
|
-
title:
|
|
86
|
+
title: f
|
|
84
87
|
}) => {
|
|
85
|
-
const
|
|
86
|
-
return /* @__PURE__ */ n.jsx("fieldset", { className: t, id:
|
|
87
|
-
i,
|
|
88
|
+
const m = B(a), h = $("ArrayFieldItemTemplate", c, m), u = m.title || f;
|
|
89
|
+
return /* @__PURE__ */ n.jsx("fieldset", { className: t, id: r.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
90
|
+
i.map(({ key: x, ...p }, j) => {
|
|
91
|
+
const _ = {
|
|
92
|
+
...p.children,
|
|
93
|
+
props: {
|
|
94
|
+
...p.children.props
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
return /* @__PURE__ */ n.jsx(h, { ...p, children: _ }, x);
|
|
98
|
+
}),
|
|
88
99
|
/* @__PURE__ */ n.jsx(
|
|
89
100
|
A,
|
|
90
101
|
{
|
|
91
102
|
label: u,
|
|
92
103
|
canAdd: e,
|
|
93
|
-
onAddClick:
|
|
94
|
-
disabled:
|
|
95
|
-
readonly:
|
|
96
|
-
uiSchema:
|
|
104
|
+
onAddClick: l,
|
|
105
|
+
disabled: s,
|
|
106
|
+
readonly: o,
|
|
107
|
+
uiSchema: a,
|
|
97
108
|
registry: c
|
|
98
109
|
}
|
|
99
110
|
)
|
|
100
|
-
] }) : /* @__PURE__ */ n.jsx(S, { label: u, required: d, showLabel: !0, id:
|
|
111
|
+
] }) : /* @__PURE__ */ n.jsx(S, { label: u, required: d, showLabel: !0, id: r.$id, children: /* @__PURE__ */ n.jsx(
|
|
101
112
|
A,
|
|
102
113
|
{
|
|
103
114
|
label: u,
|
|
104
115
|
canAdd: e,
|
|
105
|
-
onAddClick:
|
|
106
|
-
disabled:
|
|
107
|
-
readonly:
|
|
108
|
-
uiSchema:
|
|
116
|
+
onAddClick: l,
|
|
117
|
+
disabled: s,
|
|
118
|
+
readonly: o,
|
|
119
|
+
uiSchema: a,
|
|
109
120
|
registry: c
|
|
110
121
|
}
|
|
111
122
|
) }) });
|
|
112
123
|
}, {
|
|
113
124
|
templates: { BaseInputTemplate: _e }
|
|
114
|
-
} =
|
|
115
|
-
const { schema:
|
|
125
|
+
} = Q(), xe = ({ placeholder: e, ...t }) => {
|
|
126
|
+
const { schema: s } = t;
|
|
116
127
|
return /* @__PURE__ */ n.jsx(
|
|
117
128
|
_e,
|
|
118
129
|
{
|
|
119
|
-
placeholder:
|
|
130
|
+
placeholder: s.placeholder || e || P.INPUT,
|
|
120
131
|
...t,
|
|
121
132
|
className: "form__input cn-9 fs-13 lh-20 fw-4"
|
|
122
133
|
}
|
|
123
134
|
);
|
|
124
|
-
},
|
|
135
|
+
}, k = ({
|
|
125
136
|
label: e,
|
|
126
137
|
icon: t,
|
|
127
|
-
iconType:
|
|
128
|
-
registry:
|
|
129
|
-
uiSchema:
|
|
138
|
+
iconType: s,
|
|
139
|
+
registry: r,
|
|
140
|
+
uiSchema: a,
|
|
130
141
|
...i
|
|
131
142
|
}) => {
|
|
132
|
-
const
|
|
143
|
+
const l = `Add ${e}`;
|
|
133
144
|
return /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-start", children: /* @__PURE__ */ n.jsxs(
|
|
134
145
|
"button",
|
|
135
146
|
{
|
|
@@ -139,86 +150,86 @@ import './assets/@common-rjsf.css';const F = {
|
|
|
139
150
|
title: "Add",
|
|
140
151
|
children: [
|
|
141
152
|
/* @__PURE__ */ n.jsx(de, { className: "icon-dim-16 fcb-5" }),
|
|
142
|
-
/* @__PURE__ */ n.jsx(O, { placement: "right", content:
|
|
153
|
+
/* @__PURE__ */ n.jsx(O, { placement: "right", content: l, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: l }) })
|
|
143
154
|
]
|
|
144
155
|
}
|
|
145
156
|
) });
|
|
146
|
-
}, je = ({ icon: e, iconType: t, registry:
|
|
147
|
-
const { submitText: t, norender:
|
|
148
|
-
return
|
|
149
|
-
},
|
|
157
|
+
}, je = ({ icon: e, iconType: t, registry: s, uiSchema: r, ...a }) => /* @__PURE__ */ n.jsx("button", { ...a, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(me, { className: "icon-dim-16 fcn-6" }) }), ge = ({ uiSchema: e }) => {
|
|
158
|
+
const { submitText: t, norender: s, props: r = {} } = re(e);
|
|
159
|
+
return s ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...r, className: `cta ${r.className || ""}`, children: t }) });
|
|
160
|
+
}, C = ({
|
|
150
161
|
id: e,
|
|
151
162
|
title: t,
|
|
152
|
-
required:
|
|
153
|
-
description:
|
|
163
|
+
required: s,
|
|
164
|
+
description: r
|
|
154
165
|
}) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: e, children: [
|
|
155
|
-
/* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!
|
|
156
|
-
|
|
166
|
+
/* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!r, content: r, children: /* @__PURE__ */ n.jsx("span", { className: `${r ? "dc__underline-dotted" : ""}`, children: t }) }),
|
|
167
|
+
s && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
|
|
157
168
|
] }), be = (e) => {
|
|
158
169
|
const {
|
|
159
170
|
id: t,
|
|
160
|
-
label:
|
|
161
|
-
children:
|
|
162
|
-
errors:
|
|
171
|
+
label: s,
|
|
172
|
+
children: r,
|
|
173
|
+
errors: a,
|
|
163
174
|
hidden: i,
|
|
164
|
-
required:
|
|
165
|
-
displayLabel:
|
|
175
|
+
required: l,
|
|
176
|
+
displayLabel: o,
|
|
166
177
|
registry: c,
|
|
167
178
|
uiSchema: d,
|
|
168
|
-
classNames:
|
|
179
|
+
classNames: f,
|
|
169
180
|
schema: m,
|
|
170
|
-
rawDescription:
|
|
171
|
-
} = e,
|
|
181
|
+
rawDescription: h
|
|
182
|
+
} = e, u = B(d), x = $(
|
|
172
183
|
"WrapIfAdditionalTemplate",
|
|
173
184
|
c,
|
|
174
|
-
|
|
175
|
-
),
|
|
176
|
-
return i ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children:
|
|
185
|
+
u
|
|
186
|
+
), p = L in m, j = (o || m.type === "boolean") && !p, _ = m.type === "array";
|
|
187
|
+
return i ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: r }) : (
|
|
177
188
|
// NOTE: need to override the margins of default rjsf css
|
|
178
|
-
/* @__PURE__ */ n.jsxs("div", { className: `${
|
|
179
|
-
|
|
180
|
-
|
|
189
|
+
/* @__PURE__ */ n.jsxs("div", { className: `${f} mb-0`, children: [
|
|
190
|
+
_ && /* @__PURE__ */ n.jsx(
|
|
191
|
+
C,
|
|
181
192
|
{
|
|
182
193
|
id: t,
|
|
183
|
-
title:
|
|
184
|
-
required:
|
|
194
|
+
title: s,
|
|
195
|
+
required: l,
|
|
185
196
|
registry: c,
|
|
186
197
|
uiSchema: d,
|
|
187
198
|
schema: m,
|
|
188
|
-
description:
|
|
199
|
+
description: h
|
|
189
200
|
}
|
|
190
201
|
),
|
|
191
202
|
/* @__PURE__ */ n.jsx(
|
|
192
203
|
S,
|
|
193
204
|
{
|
|
194
|
-
label:
|
|
195
|
-
showLabel:
|
|
205
|
+
label: s,
|
|
206
|
+
showLabel: j,
|
|
196
207
|
id: t,
|
|
197
|
-
required:
|
|
198
|
-
rawDescription:
|
|
199
|
-
children: /* @__PURE__ */ n.jsx(
|
|
208
|
+
required: l,
|
|
209
|
+
rawDescription: h,
|
|
210
|
+
children: /* @__PURE__ */ n.jsx(x, { ...e, children: r })
|
|
200
211
|
}
|
|
201
212
|
),
|
|
202
|
-
|
|
213
|
+
a
|
|
203
214
|
] })
|
|
204
215
|
);
|
|
205
|
-
}, ye = ({ errors: e = [],
|
|
206
|
-
const
|
|
207
|
-
return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id:
|
|
216
|
+
}, ye = ({ errors: e = [], idSchema: t }) => {
|
|
217
|
+
const s = se(t);
|
|
218
|
+
return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
|
|
208
219
|
/* @__PURE__ */ n.jsx("span", {}),
|
|
209
220
|
/* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
|
|
210
221
|
/* @__PURE__ */ n.jsx(ue, { className: "form__icon form__icon--error" }),
|
|
211
|
-
|
|
222
|
+
r
|
|
212
223
|
] })
|
|
213
|
-
] },
|
|
214
|
-
},
|
|
224
|
+
] }, a)) });
|
|
225
|
+
}, Te = (e, t) => {
|
|
215
226
|
switch (e) {
|
|
216
|
-
case
|
|
227
|
+
case oe.NewStringDefault:
|
|
217
228
|
return "";
|
|
218
229
|
default:
|
|
219
|
-
return
|
|
230
|
+
return ae(e, t);
|
|
220
231
|
}
|
|
221
|
-
},
|
|
232
|
+
}, Ke = (e) => {
|
|
222
233
|
try {
|
|
223
234
|
const t = new URL(e).origin === window.location.origin;
|
|
224
235
|
return {
|
|
@@ -234,7 +245,7 @@ import './assets/@common-rjsf.css';const F = {
|
|
|
234
245
|
url: `${e} (Invalid URL)`
|
|
235
246
|
};
|
|
236
247
|
}
|
|
237
|
-
},
|
|
248
|
+
}, Ve = (e) => {
|
|
238
249
|
const t = typeof e;
|
|
239
250
|
switch (t) {
|
|
240
251
|
case "boolean":
|
|
@@ -246,274 +257,275 @@ import './assets/@common-rjsf.css';const F = {
|
|
|
246
257
|
default:
|
|
247
258
|
return "null";
|
|
248
259
|
}
|
|
249
|
-
},
|
|
260
|
+
}, T = (e) => {
|
|
250
261
|
if (!e)
|
|
251
262
|
return "";
|
|
252
|
-
const t = e.trim(),
|
|
253
|
-
return /(\/(([^/~])|(~[01]))*)/g.test(
|
|
263
|
+
const t = e.trim(), r = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
|
|
264
|
+
return /(\/(([^/~])|(~[01]))*)/g.test(r) ? r : "";
|
|
254
265
|
}, I = {
|
|
255
266
|
value: !1,
|
|
256
267
|
path: ""
|
|
257
|
-
},
|
|
268
|
+
}, ve = (e) => {
|
|
258
269
|
if (!e)
|
|
259
270
|
return null;
|
|
260
271
|
const t = structuredClone(e);
|
|
261
272
|
return typeof t == "string" ? {
|
|
262
273
|
value: !0,
|
|
263
|
-
path:
|
|
274
|
+
path: T(t)
|
|
264
275
|
} : typeof t != "object" ? structuredClone(I) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
|
|
265
276
|
value: t.condition,
|
|
266
|
-
path:
|
|
277
|
+
path: T(t.value)
|
|
267
278
|
} : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
|
|
268
279
|
value: t.value,
|
|
269
|
-
path:
|
|
280
|
+
path: T(t.path)
|
|
270
281
|
} : structuredClone(I);
|
|
271
|
-
},
|
|
272
|
-
e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([
|
|
273
|
-
|
|
274
|
-
}), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (
|
|
275
|
-
},
|
|
282
|
+
}, H = (e, t, s) => {
|
|
283
|
+
e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([r, a]) => {
|
|
284
|
+
H(a, `${t}/${r}`, s);
|
|
285
|
+
}), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] = T(e.updatePath ?? t)));
|
|
286
|
+
}, Ne = (e) => {
|
|
276
287
|
const t = {};
|
|
277
|
-
return
|
|
278
|
-
},
|
|
279
|
-
if (t >=
|
|
288
|
+
return H(e, "", t), t;
|
|
289
|
+
}, M = (e, t, s) => {
|
|
290
|
+
if (t >= s.length)
|
|
280
291
|
return e;
|
|
281
|
-
const
|
|
282
|
-
if (t ===
|
|
283
|
-
const
|
|
284
|
-
return delete r
|
|
292
|
+
const r = s[t];
|
|
293
|
+
if (t === s.length - 1) {
|
|
294
|
+
const a = structuredClone(e);
|
|
295
|
+
return delete a[r], a;
|
|
285
296
|
}
|
|
286
|
-
if (e[
|
|
287
|
-
const
|
|
288
|
-
return delete r
|
|
297
|
+
if (e[r] && (e[r] = M(e[r], t + 1, s)), Object.keys(e[r] ?? {}).length === 0) {
|
|
298
|
+
const a = structuredClone(e);
|
|
299
|
+
return delete a[r], a;
|
|
289
300
|
}
|
|
290
301
|
return e;
|
|
291
|
-
},
|
|
302
|
+
}, Se = (e, t) => {
|
|
292
303
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
293
304
|
throw new Error("Invalid object");
|
|
294
305
|
if (!t || !t.startsWith("/"))
|
|
295
306
|
throw new Error("Invalid path");
|
|
296
|
-
const
|
|
297
|
-
return
|
|
307
|
+
const s = t.split("/").slice(1);
|
|
308
|
+
return M(e, 0, s);
|
|
298
309
|
}, D = ({
|
|
299
310
|
formState: e,
|
|
300
311
|
formData: t,
|
|
301
|
-
schemaPathToUpdatePathMap:
|
|
312
|
+
schemaPathToUpdatePathMap: s
|
|
302
313
|
}) => {
|
|
303
|
-
let
|
|
304
|
-
return
|
|
305
|
-
if (
|
|
314
|
+
let r = structuredClone(e);
|
|
315
|
+
return r && (Object.entries(s).forEach(([a, i]) => {
|
|
316
|
+
if (a === i || !i)
|
|
306
317
|
return;
|
|
307
|
-
const
|
|
318
|
+
const l = v({
|
|
308
319
|
json: t,
|
|
309
|
-
path:
|
|
320
|
+
path: N(a),
|
|
310
321
|
resultType: "value",
|
|
311
322
|
wrap: !1
|
|
312
323
|
});
|
|
313
|
-
|
|
314
|
-
const
|
|
324
|
+
l === void 0 ? r = Se(r, a) : r = w([F(a, l), r]);
|
|
325
|
+
const o = v({
|
|
315
326
|
json: e,
|
|
316
|
-
path:
|
|
327
|
+
path: N(a),
|
|
317
328
|
resultType: "value",
|
|
318
329
|
wrap: !1
|
|
319
330
|
});
|
|
320
|
-
|
|
321
|
-
}), t &&
|
|
322
|
-
},
|
|
323
|
-
...Object.entries(t).map(([
|
|
324
|
-
if (
|
|
331
|
+
o !== void 0 && (r = w([F(i, o), r]));
|
|
332
|
+
}), t && r ? J(t, K(t, r), !1, !1).newDocument : r);
|
|
333
|
+
}, we = ({ formData: e, schemaPathToUpdatePathMap: t }) => w([
|
|
334
|
+
...Object.entries(t).map(([s, r]) => {
|
|
335
|
+
if (s === r || !r)
|
|
325
336
|
return {};
|
|
326
|
-
const
|
|
337
|
+
const a = v({
|
|
327
338
|
json: e,
|
|
328
|
-
path:
|
|
339
|
+
path: N(r),
|
|
329
340
|
resultType: "value",
|
|
330
341
|
wrap: !1
|
|
331
342
|
});
|
|
332
|
-
return
|
|
343
|
+
return a === void 0 ? {} : F(s, a);
|
|
333
344
|
}),
|
|
334
345
|
structuredClone(e)
|
|
335
|
-
]),
|
|
346
|
+
]), Fe = ({
|
|
336
347
|
disabled: e,
|
|
337
348
|
formData: t,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
properties:
|
|
349
|
+
idSchema: s,
|
|
350
|
+
onAddClick: r,
|
|
351
|
+
properties: a,
|
|
341
352
|
readonly: i,
|
|
342
|
-
registry:
|
|
343
|
-
required:
|
|
353
|
+
registry: l,
|
|
354
|
+
required: o,
|
|
344
355
|
schema: c,
|
|
345
356
|
title: d,
|
|
346
|
-
uiSchema:
|
|
357
|
+
uiSchema: f,
|
|
358
|
+
formContext: m
|
|
347
359
|
}) => {
|
|
348
|
-
const
|
|
349
|
-
|
|
360
|
+
const h = !!c.additionalProperties, u = ie(c, f, t) && /* @__PURE__ */ n.jsx(
|
|
361
|
+
k,
|
|
350
362
|
{
|
|
351
363
|
label: d,
|
|
352
364
|
className: "object-property-expand",
|
|
353
|
-
onClick:
|
|
365
|
+
onClick: r(c),
|
|
354
366
|
disabled: e || i,
|
|
355
|
-
uiSchema:
|
|
356
|
-
registry:
|
|
367
|
+
uiSchema: f,
|
|
368
|
+
registry: l
|
|
357
369
|
}
|
|
358
|
-
),
|
|
359
|
-
const
|
|
360
|
-
if (!
|
|
370
|
+
), x = a.filter((p) => {
|
|
371
|
+
const j = c.properties?.[p.name]?.hidden;
|
|
372
|
+
if (!j)
|
|
361
373
|
return !0;
|
|
362
374
|
try {
|
|
363
|
-
const _ =
|
|
375
|
+
const _ = ve(j);
|
|
364
376
|
if (!_.path)
|
|
365
377
|
throw new Error("Empty path property of hidden descriptor field");
|
|
366
|
-
const
|
|
367
|
-
path:
|
|
368
|
-
json:
|
|
378
|
+
const y = v({
|
|
379
|
+
path: N(_.path),
|
|
380
|
+
json: m,
|
|
369
381
|
resultType: "value",
|
|
370
382
|
wrap: !1
|
|
371
383
|
});
|
|
372
|
-
return !(
|
|
384
|
+
return !(y === void 0 || ce(_.value, y));
|
|
373
385
|
} catch {
|
|
374
386
|
return !0;
|
|
375
387
|
}
|
|
376
|
-
}).map((
|
|
377
|
-
return
|
|
388
|
+
}).map((p) => p.content);
|
|
389
|
+
return h ? a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
378
390
|
/* @__PURE__ */ n.jsx(
|
|
379
391
|
S,
|
|
380
392
|
{
|
|
381
393
|
label: d,
|
|
382
|
-
required:
|
|
394
|
+
required: o,
|
|
383
395
|
showLabel: !0,
|
|
384
|
-
id:
|
|
396
|
+
id: s.$id,
|
|
385
397
|
shouldAlignCenter: !1,
|
|
386
|
-
children: /* @__PURE__ */ n.jsx("div", { children:
|
|
398
|
+
children: /* @__PURE__ */ n.jsx("div", { children: x })
|
|
387
399
|
}
|
|
388
400
|
),
|
|
389
401
|
u
|
|
390
|
-
] }) : /* @__PURE__ */ n.jsx(S, { label: d, required:
|
|
391
|
-
|
|
402
|
+
] }) : /* @__PURE__ */ n.jsx(S, { label: d, required: o, showLabel: !0, id: s.$id, children: u }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
403
|
+
x,
|
|
392
404
|
u
|
|
393
405
|
] });
|
|
394
|
-
},
|
|
395
|
-
const {
|
|
406
|
+
}, Oe = (e) => {
|
|
407
|
+
const { idSchema: t, registry: s, required: r, schema: a, title: i, uiSchema: l, description: o } = e, c = !!a.additionalProperties, d = i && !c;
|
|
396
408
|
return /* @__PURE__ */ n.jsxs("fieldset", { id: t.$id, children: [
|
|
397
409
|
d && /* @__PURE__ */ n.jsx(
|
|
398
|
-
|
|
410
|
+
C,
|
|
399
411
|
{
|
|
400
|
-
id:
|
|
412
|
+
id: le(t),
|
|
401
413
|
title: i,
|
|
402
|
-
required:
|
|
403
|
-
schema:
|
|
404
|
-
uiSchema:
|
|
405
|
-
registry:
|
|
406
|
-
description:
|
|
414
|
+
required: r,
|
|
415
|
+
schema: a,
|
|
416
|
+
uiSchema: l,
|
|
417
|
+
registry: s,
|
|
418
|
+
description: o
|
|
407
419
|
}
|
|
408
420
|
),
|
|
409
421
|
/* @__PURE__ */ n.jsx(
|
|
410
422
|
"div",
|
|
411
423
|
{
|
|
412
|
-
className: `${
|
|
413
|
-
children: /* @__PURE__ */ n.jsx(
|
|
424
|
+
className: `${a.properties && !c && t.$id !== "root" ? "dc__border-left pl-12" : ""} ${t.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
|
|
425
|
+
children: /* @__PURE__ */ n.jsx(Fe, { ...e })
|
|
414
426
|
}
|
|
415
427
|
)
|
|
416
428
|
] });
|
|
417
429
|
}, Pe = ({
|
|
418
430
|
id: e,
|
|
419
431
|
disabled: t,
|
|
420
|
-
label:
|
|
421
|
-
|
|
422
|
-
|
|
432
|
+
label: s,
|
|
433
|
+
onKeyChange: r,
|
|
434
|
+
onDropPropertyClick: a,
|
|
423
435
|
readonly: i,
|
|
424
|
-
schema:
|
|
425
|
-
children:
|
|
436
|
+
schema: l,
|
|
437
|
+
children: o,
|
|
426
438
|
uiSchema: c,
|
|
427
439
|
registry: d
|
|
428
440
|
}) => {
|
|
429
|
-
const { templates:
|
|
430
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
441
|
+
const { templates: f } = d, { RemoveButton: m } = f.ButtonTemplates, h = L in l;
|
|
442
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: h ? /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
|
|
431
443
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
432
444
|
"input",
|
|
433
445
|
{
|
|
434
446
|
type: "text",
|
|
435
447
|
className: "form__input cn-9 fs-13 lh-20 fw-4",
|
|
436
448
|
id: `${e}-key`,
|
|
437
|
-
onBlur: (
|
|
438
|
-
placeholder:
|
|
439
|
-
defaultValue:
|
|
449
|
+
onBlur: (u) => r(u.target.value),
|
|
450
|
+
placeholder: P.OBJECT_KEY,
|
|
451
|
+
defaultValue: s
|
|
440
452
|
}
|
|
441
453
|
) }),
|
|
442
|
-
/* @__PURE__ */ n.jsx("div", { children:
|
|
454
|
+
/* @__PURE__ */ n.jsx("div", { children: o }),
|
|
443
455
|
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: /* @__PURE__ */ n.jsx(
|
|
444
456
|
m,
|
|
445
457
|
{
|
|
446
458
|
disabled: t || i,
|
|
447
|
-
onClick:
|
|
459
|
+
onClick: a(s),
|
|
448
460
|
uiSchema: c,
|
|
449
461
|
registry: d
|
|
450
462
|
}
|
|
451
463
|
) })
|
|
452
|
-
] }) :
|
|
464
|
+
] }) : o });
|
|
453
465
|
}, Ce = ({
|
|
454
466
|
id: e,
|
|
455
467
|
onChange: t,
|
|
456
|
-
value:
|
|
457
|
-
disabled:
|
|
458
|
-
readonly:
|
|
468
|
+
value: s,
|
|
469
|
+
disabled: r,
|
|
470
|
+
readonly: a,
|
|
459
471
|
autofocus: i
|
|
460
472
|
}) => {
|
|
461
|
-
const
|
|
462
|
-
t(!
|
|
473
|
+
const l = Z(s) ? !1 : s, o = () => {
|
|
474
|
+
t(!l);
|
|
463
475
|
};
|
|
464
476
|
return /* @__PURE__ */ n.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
|
465
477
|
/* @__PURE__ */ n.jsx(
|
|
466
|
-
|
|
478
|
+
X,
|
|
467
479
|
{
|
|
468
480
|
name: e,
|
|
469
481
|
ariaLabel: e,
|
|
470
|
-
onChange:
|
|
471
|
-
isChecked:
|
|
482
|
+
onChange: o,
|
|
483
|
+
isChecked: l,
|
|
472
484
|
autoFocus: i,
|
|
473
|
-
isDisabled:
|
|
485
|
+
isDisabled: r || a
|
|
474
486
|
}
|
|
475
487
|
),
|
|
476
|
-
/* @__PURE__ */ n.jsx("span", { className: "dc__capitalize", children:
|
|
488
|
+
/* @__PURE__ */ n.jsx("span", { className: "dc__capitalize", children: l.toString() })
|
|
477
489
|
] });
|
|
478
490
|
}, Ee = (e) => {
|
|
479
491
|
const {
|
|
480
492
|
id: t,
|
|
481
|
-
multiple:
|
|
482
|
-
options:
|
|
483
|
-
value:
|
|
493
|
+
multiple: s = !1,
|
|
494
|
+
options: r,
|
|
495
|
+
value: a,
|
|
484
496
|
disabled: i,
|
|
485
|
-
readonly:
|
|
486
|
-
autofocus:
|
|
497
|
+
readonly: l,
|
|
498
|
+
autofocus: o = !1,
|
|
487
499
|
onChange: c,
|
|
488
500
|
onBlur: d,
|
|
489
|
-
onFocus:
|
|
501
|
+
onFocus: f,
|
|
490
502
|
placeholder: m,
|
|
491
|
-
schema:
|
|
492
|
-
} = e, { enumOptions:
|
|
493
|
-
c(
|
|
494
|
-
}, [
|
|
495
|
-
|
|
496
|
-
|
|
503
|
+
schema: h
|
|
504
|
+
} = e, { enumOptions: u = [] } = r, x = s ? [] : null, p = (g) => {
|
|
505
|
+
c(s ? g.map((b) => b.value) : g.value);
|
|
506
|
+
}, [j, _] = q();
|
|
507
|
+
Y(() => {
|
|
508
|
+
_(ee(8));
|
|
497
509
|
}, []);
|
|
498
|
-
const
|
|
510
|
+
const y = (g) => s ? u.filter((b) => g.some((W) => R(W, b.value))) : u.find((b) => R(g, b.value));
|
|
499
511
|
return /* @__PURE__ */ n.jsx(
|
|
500
|
-
|
|
512
|
+
te,
|
|
501
513
|
{
|
|
502
514
|
inputId: `devtron-rjsf-select__${t}`,
|
|
503
515
|
name: t,
|
|
504
|
-
isMulti:
|
|
505
|
-
value: typeof
|
|
506
|
-
autoFocus:
|
|
507
|
-
onChange:
|
|
508
|
-
options:
|
|
509
|
-
onBlur: () => d(t,
|
|
510
|
-
onFocus: () =>
|
|
511
|
-
placeholder:
|
|
512
|
-
isDisabled: i ||
|
|
513
|
-
menuPortalTarget: document.getElementById(
|
|
516
|
+
isMulti: s,
|
|
517
|
+
value: typeof a > "u" ? x : y(a),
|
|
518
|
+
autoFocus: o,
|
|
519
|
+
onChange: p,
|
|
520
|
+
options: u,
|
|
521
|
+
onBlur: () => d(t, a),
|
|
522
|
+
onFocus: () => f(t, a),
|
|
523
|
+
placeholder: h.placeholder || m || P.SELECT,
|
|
524
|
+
isDisabled: i || l,
|
|
525
|
+
menuPortalTarget: document.getElementById(U),
|
|
514
526
|
menuPosition: "fixed"
|
|
515
527
|
},
|
|
516
|
-
|
|
528
|
+
j
|
|
517
529
|
);
|
|
518
530
|
}, Re = {
|
|
519
531
|
CheckboxWidget: Ce,
|
|
@@ -522,37 +534,37 @@ import './assets/@common-rjsf.css';const F = {
|
|
|
522
534
|
ArrayFieldItemTemplate: fe,
|
|
523
535
|
ArrayFieldTemplate: he,
|
|
524
536
|
BaseInputTemplate: xe,
|
|
525
|
-
ButtonTemplates: { AddButton:
|
|
537
|
+
ButtonTemplates: { AddButton: k, RemoveButton: je, SubmitButton: ge },
|
|
526
538
|
FieldTemplate: be,
|
|
527
539
|
FieldErrorTemplate: ye,
|
|
528
|
-
ObjectFieldTemplate:
|
|
529
|
-
TitleFieldTemplate:
|
|
540
|
+
ObjectFieldTemplate: Oe,
|
|
541
|
+
TitleFieldTemplate: C,
|
|
530
542
|
WrapIfAdditionalTemplate: Pe
|
|
531
|
-
}, Ie =
|
|
532
|
-
const { schemaPathToUpdatePathMap:
|
|
533
|
-
const
|
|
543
|
+
}, Ie = z, De = ne, qe = G((e, t) => {
|
|
544
|
+
const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = E(() => {
|
|
545
|
+
const o = Ne(e.schema);
|
|
534
546
|
return {
|
|
535
|
-
schemaPathToUpdatePathMap:
|
|
536
|
-
isUpdatePathKeywordPresent: Object.entries(
|
|
547
|
+
schemaPathToUpdatePathMap: o,
|
|
548
|
+
isUpdatePathKeywordPresent: Object.entries(o).some(([c, d]) => c !== d)
|
|
537
549
|
};
|
|
538
|
-
}, [e.schema]),
|
|
550
|
+
}, [e.schema]), a = E(() => r ? we({ formData: e.formData ?? {}, schemaPathToUpdatePathMap: s }) : e.formData, [e.formData, s, r]), i = (o) => {
|
|
539
551
|
if (!e.onChange)
|
|
540
552
|
return;
|
|
541
553
|
const c = D({
|
|
542
|
-
formState:
|
|
554
|
+
formState: o.formData,
|
|
543
555
|
formData: e.formData,
|
|
544
|
-
schemaPathToUpdatePathMap:
|
|
556
|
+
schemaPathToUpdatePathMap: s
|
|
545
557
|
});
|
|
546
|
-
e.onChange({ ...
|
|
547
|
-
},
|
|
558
|
+
e.onChange({ ...o, formData: c });
|
|
559
|
+
}, l = (o, c) => {
|
|
548
560
|
if (!e.onSubmit)
|
|
549
561
|
return;
|
|
550
562
|
const d = D({
|
|
551
|
-
formState:
|
|
563
|
+
formState: o.formData,
|
|
552
564
|
formData: e.formData,
|
|
553
|
-
schemaPathToUpdatePathMap:
|
|
565
|
+
schemaPathToUpdatePathMap: s
|
|
554
566
|
});
|
|
555
|
-
e.onSubmit?.({ ...
|
|
567
|
+
e.onSubmit?.({ ...o, formData: d }, c);
|
|
556
568
|
};
|
|
557
569
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
558
570
|
/* @__PURE__ */ n.jsx(
|
|
@@ -562,31 +574,31 @@ import './assets/@common-rjsf.css';const F = {
|
|
|
562
574
|
showErrorList: !1,
|
|
563
575
|
autoComplete: "off",
|
|
564
576
|
...e,
|
|
565
|
-
formData:
|
|
566
|
-
...
|
|
577
|
+
formData: a,
|
|
578
|
+
...r ? {
|
|
567
579
|
onChange: i,
|
|
568
|
-
onSubmit:
|
|
580
|
+
onSubmit: l
|
|
569
581
|
} : {},
|
|
570
582
|
className: `rjsf-form-template__container ${e.className || ""}`,
|
|
571
|
-
validator:
|
|
583
|
+
validator: De,
|
|
572
584
|
templates: {
|
|
573
585
|
...Ae,
|
|
574
586
|
...e.templates
|
|
575
587
|
},
|
|
576
|
-
formContext:
|
|
588
|
+
formContext: a,
|
|
577
589
|
widgets: { ...Re, ...e.widgets },
|
|
578
|
-
translateString:
|
|
590
|
+
translateString: Te,
|
|
579
591
|
ref: t
|
|
580
592
|
}
|
|
581
593
|
),
|
|
582
|
-
/* @__PURE__ */ n.jsx("div", { id:
|
|
594
|
+
/* @__PURE__ */ n.jsx("div", { id: U })
|
|
583
595
|
] });
|
|
584
596
|
});
|
|
585
597
|
export {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
598
|
+
Je as H,
|
|
599
|
+
qe as R,
|
|
600
|
+
Ke as a,
|
|
601
|
+
Ne as b,
|
|
602
|
+
T as c,
|
|
603
|
+
Ve as g
|
|
592
604
|
};
|