@devtron-labs/devtron-fe-common-lib 1.21.0-beta-2 → 1.21.0-beta-4
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-BeRIvMlJ.js → @code-editor-BfqG9Eov.js} +17535 -18946
- package/dist/{@common-rjsf-DlmUYaoA.js → @common-rjsf-B20unqUl.js} +30 -30
- package/dist/{@framer-motion-DiccRE_m.js → @framer-motion-DZveCoIL.js} +194 -196
- package/dist/{@moment-CwOqp704.js → @moment-CGWt8tF2.js} +524 -493
- package/dist/@react-dates-CZ1bNWJM.js +7634 -0
- package/dist/{@react-select-C8Ggns2W.js → @react-select-DS68hCUM.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-ecV8cl3B.js → @react-virtualized-sticky-tree-V-8klKy9.js} +1 -1
- package/dist/{@vendor-CIVr12Xb.js → @vendor-3ORIJA0h.js} +28715 -33811
- package/dist/Common/API/types.d.ts +1 -1
- package/dist/Common/BreadCrumb/Types.d.ts +0 -20
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
- package/dist/Common/ClipboardButton/types.d.ts +2 -12
- package/dist/Common/Common.service.d.ts +1 -4
- package/dist/Common/Constants.d.ts +16 -69
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +0 -8
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -10
- package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/index.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +9 -13
- package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Common/Types.d.ts +5 -64
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +7 -13
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages/ResourceBrowser/types.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +0 -3
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +2 -2
- 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/utils.d.ts +1 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +12 -12
- package/dist/Shared/Components/CICDHistory/ConflictedResourcesTable.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/ResourceConflictDeployDialog.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/ResourceConflictDetailsModal.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +4 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +3 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +65 -1
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +1 -2
- 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/SingleDatePickerComponent.d.ts +11 -0
- 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/DocLink/constants.d.ts +0 -3
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -2
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -21
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +3 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +0 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -69
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +0 -6
- package/dist/Shared/Components/Illustration/Illustration.d.ts +0 -6
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -3
- package/dist/Shared/Components/Security/constants.d.ts +0 -2
- package/dist/Shared/Components/Security/index.d.ts +0 -3
- package/dist/Shared/Components/Security/types.d.ts +0 -10
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -3
- package/dist/Shared/Components/SelectPicker/utils.d.ts +0 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +6 -12
- package/dist/Shared/Components/TrailingItem/types.d.ts +0 -4
- 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/constants.d.ts +0 -3
- package/dist/Shared/Components/TreeView/types.d.ts +3 -17
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +3 -3
- package/dist/Shared/Components/index.d.ts +0 -7
- package/dist/Shared/Helpers.d.ts +2 -11
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +5 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +20 -5
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -32
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +0 -9
- package/dist/Shared/Services/common.service.d.ts +0 -3
- package/dist/Shared/Services/types.d.ts +1 -10
- package/dist/Shared/constants.d.ts +16 -3
- package/dist/Shared/types.d.ts +0 -20
- package/dist/Shared/validations.d.ts +0 -2
- 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/ic-calender-blank.963e3423.svg +19 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +970 -1020
- package/package.json +7 -7
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +0 -2
- package/dist/Common/SegmentedBarChart/utils.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +0 -6
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +0 -1
- 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/Automation&Enablement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +0 -4
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +0 -31
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/DataProtectionManagement/types.d.ts +0 -8
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +0 -2
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +0 -6
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +0 -11
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/SecurityCenterIcon.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/utils.d.ts +0 -6
- package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/index.d.ts +0 -5
- package/dist/Shared/Components/Card/Card.component.d.ts +0 -3
- package/dist/Shared/Components/Card/constants.d.ts +0 -4
- package/dist/Shared/Components/Card/index.d.ts +0 -2
- package/dist/Shared/Components/Card/types.d.ts +0 -25
- package/dist/Shared/Components/Charts/Chart.component.d.ts +0 -121
- package/dist/Shared/Components/Charts/constants.d.ts +0 -10
- package/dist/Shared/Components/Charts/index.d.ts +0 -4
- package/dist/Shared/Components/Charts/plugins.d.ts +0 -7
- package/dist/Shared/Components/Charts/types.d.ts +0 -135
- package/dist/Shared/Components/Charts/utils.d.ts +0 -30
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +0 -3
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +0 -1
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +0 -5
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +0 -2
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +0 -3
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +0 -3
- package/dist/Shared/Components/ExportToCsv/index.d.ts +0 -2
- package/dist/Shared/Components/ExportToCsv/types.d.ts +0 -64
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +0 -3
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +0 -3
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +0 -1
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +0 -4
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +0 -3
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +0 -2
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -20
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +0 -2
- package/dist/Shared/Components/SideNavigation/index.d.ts +0 -2
- package/dist/Shared/Components/SideNavigation/types.d.ts +0 -19
- package/dist/assets/create-backup-schedule.bbac4a86.webp +0 -0
- package/dist/assets/create-backup-snapshot.c794f612.webp +0 -0
- package/dist/assets/ic-ai.25e44e0c.svg +0 -3
- package/dist/assets/ic-alibaba.518d61a4.svg +0 -3
- package/dist/assets/ic-application-group.4b448cca.svg +0 -3
- package/dist/assets/ic-application-management.7fb9e3a0.svg +0 -3
- package/dist/assets/ic-application-template.212d14f1.svg +0 -3
- package/dist/assets/ic-application.4c80bfcf.svg +0 -3
- package/dist/assets/ic-argocd-app.9c5eba79.svg +0 -61
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +0 -3
- package/dist/assets/ic-aws.eb2d0124.svg +0 -12
- package/dist/assets/ic-backup-and-schedule.51b7d3dd.svg +0 -3
- package/dist/assets/ic-backup-color.dc62e9d5.svg +0 -6
- package/dist/assets/ic-backup-location.ebaf1148.svg +0 -3
- package/dist/assets/ic-backup-schedule-color.a16c34b0.svg +0 -5
- package/dist/assets/ic-bg-backup-schedule.9ef9bc39.svg +0 -19
- package/dist/assets/ic-bg-backups.396e99bd.svg +0 -19
- package/dist/assets/ic-bg-build.8609d0ea.svg +0 -13
- package/dist/assets/ic-bg-cpu.15ec70f0.svg +0 -11
- package/dist/assets/ic-bg-deploy.266711fe.svg +0 -22
- package/dist/assets/ic-bg-memory.5373a125.svg +0 -11
- package/dist/assets/ic-bg-pause-schedule.6edcc1d4.svg +0 -14
- package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +0 -22
- package/dist/assets/ic-bg-project.84658405.svg +0 -12
- package/dist/assets/ic-bg-ransomware-vulnerable-cluster.1b25a5d0.svg +0 -7
- package/dist/assets/ic-bg-restore.4fa13869.svg +0 -33
- package/dist/assets/ic-bg-scan.2249360c.svg +0 -28
- package/dist/assets/ic-bg-storage-locations.894070b0.svg +0 -22
- package/dist/assets/ic-bg-webhook.b455152d.svg +0 -13
- package/dist/assets/ic-bot.65f403dd.svg +0 -3
- package/dist/assets/ic-building.2405d07b.svg +0 -3
- package/dist/assets/ic-chart-line-up.7ab47f4e.svg +0 -3
- package/dist/assets/ic-check-circle.af18cd7e.svg +0 -3
- package/dist/assets/ic-circle-small.a0740b0e.svg +0 -3
- package/dist/assets/ic-clipboard.2869fa7d.svg +0 -3
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +0 -3
- package/dist/assets/ic-cloud-upload.55d9c163.svg +0 -3
- package/dist/assets/ic-coins-color-animated.fe11cdc3.svg +0 -112
- package/dist/assets/ic-coins.2c15f406.svg +0 -3
- package/dist/assets/ic-cost-visibility.5595009f.svg +0 -3
- package/dist/assets/ic-database-backup.b9e7c558.svg +0 -3
- package/dist/assets/ic-devtron-text.67a413b6.svg +0 -3
- package/dist/assets/ic-edit-lines.57927b07.svg +0 -3
- package/dist/assets/ic-file-download.ca57c068.svg +0 -5
- package/dist/assets/ic-files-changed.04e6de3f.svg +0 -3
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +0 -3
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +0 -22
- package/dist/assets/ic-global-overview.56ba9dc0.svg +0 -3
- package/dist/assets/ic-google-cloud.3077a8dd.svg +0 -6
- package/dist/assets/ic-infrastructure-management.4b052d41.svg +0 -3
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +0 -4
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +0 -10
- package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +0 -3
- package/dist/assets/ic-otc-cloud.43b31bd8.svg +0 -5
- package/dist/assets/ic-party.cfc7e7c6.svg +0 -4
- package/dist/assets/ic-pause.4e5c6056.svg +0 -4
- package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +0 -4
- package/dist/assets/ic-release-hub.25b9707a.svg +0 -3
- package/dist/assets/ic-resource-browser.4ff3e571.svg +0 -3
- package/dist/assets/ic-resource-watcher.7cce5305.svg +0 -3
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +0 -3
- package/dist/assets/ic-security-fixable.168b5bf8.svg +0 -12
- package/dist/assets/ic-security-not-fixable.be099f65.svg +0 -12
- package/dist/assets/ic-security-policy.874568da.svg +0 -3
- package/dist/assets/ic-security-scan.3ae78d50.svg +0 -3
- package/dist/assets/ic-security-vulnerability.c954b87a.svg +0 -4
- package/dist/assets/ic-software-release-management.dceedf80.svg +0 -3
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +0 -3
- package/dist/assets/ic-tenants.4f997b9a.svg +0 -3
- package/dist/assets/ic-trend-up.5752ef30.svg +0 -3
- package/dist/assets/ic-warning-stroke.fc850a4a.svg +0 -3
- package/dist/assets/img-folder-empty.8e898c33.svg +0 -33
- package/dist/assets/img-no-backup-location.0e8699c5.svg +0 -180
- package/dist/assets/img-no-restores.f26cb7db.svg +0 -114
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
|
@@ -21,8 +21,8 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
|
21
21
|
className?: string;
|
|
22
22
|
defaultValue?: string | number | readonly string[];
|
|
23
23
|
id?: string;
|
|
24
|
-
role?: import('react').AriaRole;
|
|
25
24
|
color?: string;
|
|
25
|
+
role?: import('react').AriaRole;
|
|
26
26
|
about?: string;
|
|
27
27
|
is?: string;
|
|
28
28
|
security?: string;
|
|
@@ -64,7 +64,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
|
64
64
|
itemRef?: string;
|
|
65
65
|
results?: number;
|
|
66
66
|
unselectable?: "on" | "off";
|
|
67
|
-
inputMode?: "search" | "text" | "none" | "url" | "
|
|
67
|
+
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
|
|
68
68
|
"aria-activedescendant"?: string;
|
|
69
69
|
"aria-atomic"?: boolean | "true" | "false";
|
|
70
70
|
"aria-autocomplete"?: "none" | "list" | "inline" | "both";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BackdropProps } from './types';
|
|
2
|
-
declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus,
|
|
2
|
+
declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus, }: BackdropProps) => import('react').ReactPortal;
|
|
3
3
|
export default Backdrop;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { DTFocusTrapType } from '../DTFocusTrap';
|
|
3
|
-
export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'
|
|
3
|
+
export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
|
|
4
4
|
/**
|
|
5
5
|
* The content to be rendered within the backdrop component.
|
|
6
6
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IconBaseColorType
|
|
1
|
+
import { IconBaseColorType } from '../../types';
|
|
2
2
|
import { BadgeProps } from './types';
|
|
3
3
|
export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
|
|
4
4
|
styles: string;
|
|
5
5
|
iconColor: IconBaseColorType;
|
|
6
6
|
};
|
|
7
7
|
export declare const getClassNameAccToSize: (size: BadgeProps["size"]) => "fs-11 lh-16 px-4 py-1" | "fs-12 lh-16 px-6 py-2" | "fs-13 lh-20 px-6 py-2";
|
|
8
|
-
export declare const COMPONENT_SIZE_TO_ICON_SIZE_MAP: Record<BadgeProps['size'], IconBaseSizeType>;
|
|
@@ -100,7 +100,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
100
100
|
startIcon?: import('react').ReactElement;
|
|
101
101
|
endIcon?: import('react').ReactElement;
|
|
102
102
|
fontWeight?: "bold" | "normal";
|
|
103
|
-
}, "style" | "text" | "id" | "
|
|
103
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
104
104
|
ref?: import('react').Ref<HTMLButtonElement>;
|
|
105
105
|
component?: ButtonComponentType.button;
|
|
106
106
|
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
|
@@ -135,7 +135,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
135
135
|
startIcon?: never;
|
|
136
136
|
endIcon?: never;
|
|
137
137
|
fontWeight?: never;
|
|
138
|
-
}, "style" | "text" | "id" | "
|
|
138
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
139
139
|
ref?: import('react').Ref<HTMLButtonElement>;
|
|
140
140
|
component?: ButtonComponentType.button;
|
|
141
141
|
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
|
@@ -164,7 +164,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
164
164
|
startIcon?: import('react').ReactElement;
|
|
165
165
|
endIcon?: import('react').ReactElement;
|
|
166
166
|
fontWeight?: "bold" | "normal";
|
|
167
|
-
}, "style" | "text" | "id" | "
|
|
167
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
168
168
|
ref?: import('react').Ref<HTMLButtonElement>;
|
|
169
169
|
component?: ButtonComponentType.button;
|
|
170
170
|
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
|
@@ -193,7 +193,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
193
193
|
startIcon?: never;
|
|
194
194
|
endIcon?: never;
|
|
195
195
|
fontWeight?: never;
|
|
196
|
-
}, "style" | "text" | "id" | "
|
|
196
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
197
197
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
198
198
|
component: ButtonComponentType.link;
|
|
199
199
|
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
|
@@ -228,7 +228,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
228
228
|
startIcon?: import('react').ReactElement;
|
|
229
229
|
endIcon?: import('react').ReactElement;
|
|
230
230
|
fontWeight?: "bold" | "normal";
|
|
231
|
-
}, "style" | "text" | "id" | "
|
|
231
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
232
232
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
233
233
|
component: ButtonComponentType.link;
|
|
234
234
|
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
|
@@ -263,7 +263,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
263
263
|
startIcon?: never;
|
|
264
264
|
endIcon?: never;
|
|
265
265
|
fontWeight?: never;
|
|
266
|
-
}, "style" | "text" | "id" | "
|
|
266
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
267
267
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
268
268
|
component: ButtonComponentType.link;
|
|
269
269
|
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
|
@@ -292,7 +292,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
292
292
|
startIcon?: import('react').ReactElement;
|
|
293
293
|
endIcon?: import('react').ReactElement;
|
|
294
294
|
fontWeight?: "bold" | "normal";
|
|
295
|
-
}, "style" | "text" | "id" | "
|
|
295
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
296
296
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
297
297
|
component: ButtonComponentType.link;
|
|
298
298
|
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
|
@@ -321,7 +321,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
321
321
|
startIcon?: never;
|
|
322
322
|
endIcon?: never;
|
|
323
323
|
fontWeight?: never;
|
|
324
|
-
}, "style" | "text" | "id" | "
|
|
324
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
325
325
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
326
326
|
component: ButtonComponentType.anchor;
|
|
327
327
|
linkProps?: never;
|
|
@@ -356,7 +356,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
356
356
|
startIcon?: import('react').ReactElement;
|
|
357
357
|
endIcon?: import('react').ReactElement;
|
|
358
358
|
fontWeight?: "bold" | "normal";
|
|
359
|
-
}, "style" | "text" | "id" | "
|
|
359
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
360
360
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
361
361
|
component: ButtonComponentType.anchor;
|
|
362
362
|
linkProps?: never;
|
|
@@ -391,7 +391,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
391
391
|
startIcon?: never;
|
|
392
392
|
endIcon?: never;
|
|
393
393
|
fontWeight?: never;
|
|
394
|
-
}, "style" | "text" | "id" | "
|
|
394
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
395
395
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
396
396
|
component: ButtonComponentType.anchor;
|
|
397
397
|
linkProps?: never;
|
|
@@ -420,7 +420,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
420
420
|
startIcon?: import('react').ReactElement;
|
|
421
421
|
endIcon?: import('react').ReactElement;
|
|
422
422
|
fontWeight?: "bold" | "normal";
|
|
423
|
-
}, "style" | "text" | "id" | "
|
|
423
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
|
424
424
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
|
425
425
|
component: ButtonComponentType.anchor;
|
|
426
426
|
linkProps?: never;
|
|
@@ -449,5 +449,5 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
|
449
449
|
startIcon?: never;
|
|
450
450
|
endIcon?: never;
|
|
451
451
|
fontWeight?: never;
|
|
452
|
-
}, "style" | "text" | "id" | "
|
|
452
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "ariaLabel" | "icon" | "buttonProps" | "isLoading" | "onClick" | "fullWidth" | "fontWeight" | "component" | "linkProps" | "anchorProps" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
453
453
|
export default Button;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TriggerDetailsType } from './types';
|
|
2
|
-
declare const TriggerDetails: import('react').MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, workflowExecutionStages, namespace, }: TriggerDetailsType) => JSX.Element>;
|
|
2
|
+
declare const TriggerDetails: import('react').MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, workflowExecutionStages, namespace, isLatest, appName, }: TriggerDetailsType) => JSX.Element>;
|
|
3
3
|
export default TriggerDetails;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WorkerStatusType } from './types';
|
|
2
|
-
declare const WorkerStatus: import('react').MemoExoticComponent<({ message, podStatus, stage, workerPodName, finishedOn, clusterId, namespace, workerMessageContainerClassName, titleClassName, viewWorkerPodClassName, hideShowMoreMessageButton, }: WorkerStatusType) => JSX.Element | null>;
|
|
2
|
+
declare const WorkerStatus: import('react').MemoExoticComponent<({ message, podStatus, stage, workerPodName, finishedOn, clusterId, namespace, workerMessageContainerClassName, titleClassName, viewWorkerPodClassName, hideShowMoreMessageButton, children, }: WorkerStatusType) => JSX.Element | null>;
|
|
3
3
|
export default WorkerStatus;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FiltersTypeEnum, TableProps } from '../Table';
|
|
2
|
+
import { ResourceConflictItemType, WorkflowStageStatusType } from './types';
|
|
2
3
|
export declare const HISTORY_LABEL: {
|
|
3
4
|
APPLICATION: string;
|
|
4
5
|
ENVIRONMENT: string;
|
|
@@ -85,3 +86,5 @@ export declare const PROGRESSING_STATUS: {
|
|
|
85
86
|
};
|
|
86
87
|
export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
|
|
87
88
|
export declare const APP_HEALTH_DROP_DOWN_LIST: string[];
|
|
89
|
+
export declare const RESOURCE_CONFLICT_DEPLOY_ERROR = "cannot be imported into the current release: invalid ownership metadata;";
|
|
90
|
+
export declare const CONFLICTED_RESOURCES_COLUMNS: TableProps<ResourceConflictItemType, FiltersTypeEnum.STATE>['columns'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
-
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
|
2
|
+
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse, GetResourceConflictDetailsParamsType, ModuleConfigResponse, ResourceConflictItemType, ResourceConflictRedeployParamsType, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
|
3
3
|
export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId, fetchIdData, }: {
|
|
4
4
|
appId: any;
|
|
5
5
|
envId: any;
|
|
@@ -21,3 +21,5 @@ export declare function getManualSync(params: {
|
|
|
21
21
|
export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
|
|
22
22
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, "result">>;
|
|
23
23
|
export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
|
|
24
|
+
export declare const resourceConflictRedeploy: ({ pipelineId, triggerId, appId, }: ResourceConflictRedeployParamsType) => Promise<void>;
|
|
25
|
+
export declare const getResourceConflictDetails: ({ appId, pipelineId, triggerId, signal, }: GetResourceConflictDetailsParamsType) => Promise<ResourceConflictItemType[]>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
|
3
|
+
import { GVKType } from '../../../Pages/ResourceBrowser';
|
|
3
4
|
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
|
4
5
|
import { DeploymentStageType } from '../../constants';
|
|
5
|
-
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
|
6
|
+
import { AggregationKeys, AppDetails, BaseURLParams, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
|
6
7
|
import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
|
|
7
8
|
export declare enum HistoryComponentType {
|
|
8
9
|
CI = "CI",
|
|
@@ -257,6 +258,29 @@ export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTarget
|
|
|
257
258
|
workerPodName?: string;
|
|
258
259
|
triggerMetadata?: string;
|
|
259
260
|
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string, onlyRenderIcon?: boolean) => JSX.Element;
|
|
261
|
+
/**
|
|
262
|
+
* Only present in case of CD trigger details as of now
|
|
263
|
+
*/
|
|
264
|
+
isLatest?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Only present in case of CD trigger details as of now
|
|
267
|
+
*/
|
|
268
|
+
appName?: string;
|
|
269
|
+
}
|
|
270
|
+
export declare enum ResourceConflictModalType {
|
|
271
|
+
DEPLOY_DIALOG = "DEPLOY_DIALOG",
|
|
272
|
+
RESOURCE_DETAIL_MODAL = "RESOURCE_DETAIL_MODAL"
|
|
273
|
+
}
|
|
274
|
+
interface ResourceConflictDialogBaseProps extends Required<Pick<TriggerDetailsType, 'appName' | 'environmentName'>> {
|
|
275
|
+
handleClose: () => void;
|
|
276
|
+
}
|
|
277
|
+
export interface ResourceConflictDeployDialogProps extends ResourceConflictDialogBaseProps {
|
|
278
|
+
}
|
|
279
|
+
export interface ResourceConflictDetailsModalProps extends ResourceConflictDialogBaseProps {
|
|
280
|
+
}
|
|
281
|
+
export interface TriggerOutputURLParamsType extends Pick<BaseURLParams, 'appId' | 'envId'> {
|
|
282
|
+
triggerId: string;
|
|
283
|
+
pipelineId: string;
|
|
260
284
|
}
|
|
261
285
|
export type ProgressingStatusType = {
|
|
262
286
|
stage: DeploymentStageType;
|
|
@@ -283,6 +307,7 @@ export interface WorkerStatusType extends Pick<ExecutionInfoType['workerDetails'
|
|
|
283
307
|
* @default false
|
|
284
308
|
*/
|
|
285
309
|
hideShowMoreMessageButton?: boolean;
|
|
310
|
+
children?: ReactNode;
|
|
286
311
|
}
|
|
287
312
|
export type FinishedType = {
|
|
288
313
|
artifact: string;
|
|
@@ -703,4 +728,43 @@ export interface CIPipelineSourceConfigInterface {
|
|
|
703
728
|
primaryBranchAfterRegex?: string;
|
|
704
729
|
rootClassName?: string;
|
|
705
730
|
}
|
|
731
|
+
export interface ResourceConflictItemType {
|
|
732
|
+
name: string;
|
|
733
|
+
namespace: string;
|
|
734
|
+
gvk: GVKType;
|
|
735
|
+
gvkTitle: string;
|
|
736
|
+
clusterId: number;
|
|
737
|
+
/**
|
|
738
|
+
* Generated at ui
|
|
739
|
+
*/
|
|
740
|
+
id: string;
|
|
741
|
+
}
|
|
742
|
+
export interface ConflictedResourcesTableProps {
|
|
743
|
+
resourceConflictDetails: ResourceConflictItemType[];
|
|
744
|
+
}
|
|
745
|
+
export interface ResourceConflictDeployDialogURLParamsType extends Pick<TriggerOutputURLParamsType, 'appId' | 'envId' | 'pipelineId' | 'triggerId'> {
|
|
746
|
+
}
|
|
747
|
+
export interface ResourceConflictRedeployParamsType extends Pick<ResourceConflictDeployDialogURLParamsType, 'pipelineId' | 'triggerId' | 'appId'> {
|
|
748
|
+
}
|
|
749
|
+
export interface ResourceConflictRedeployPayloadType {
|
|
750
|
+
pipelineId: number;
|
|
751
|
+
appId: number;
|
|
752
|
+
wfrIdForDeploymentWithSpecificTrigger: number;
|
|
753
|
+
helmRedeploymentRequest: true;
|
|
754
|
+
}
|
|
755
|
+
export interface GetResourceConflictDetailsParamsType extends Pick<ResourceConflictDeployDialogURLParamsType, 'pipelineId' | 'triggerId' | 'appId'> {
|
|
756
|
+
signal: AbortSignal;
|
|
757
|
+
}
|
|
758
|
+
export interface ResourceConflictListItemDTO {
|
|
759
|
+
clusterId: number;
|
|
760
|
+
conflictingResources: {
|
|
761
|
+
name: string;
|
|
762
|
+
namespace: string;
|
|
763
|
+
groupVersionKind: {
|
|
764
|
+
Group: string;
|
|
765
|
+
Version: string;
|
|
766
|
+
Kind: NodeType;
|
|
767
|
+
};
|
|
768
|
+
}[];
|
|
769
|
+
}
|
|
706
770
|
export {};
|
|
@@ -40,3 +40,4 @@ export declare const getTriggerStatusIcon: (status: string) => string;
|
|
|
40
40
|
export declare const renderDeploymentTimelineIcon: (iconState: DeploymentStatusBreakdownItemType["icon"]) => JSX.Element;
|
|
41
41
|
export declare const getDeploymentTimelineBGColorFromIcon: (icon: DeploymentStatusBreakdownItemType["icon"]) => string;
|
|
42
42
|
export declare const getTriggerOutputTabs: (triggerDetails: History, deploymentAppType: DeploymentAppTypes) => TabGroupProps["tabs"];
|
|
43
|
+
export declare const getSortedTriggerHistory: (triggerHistory: Map<number, History>) => [number, History][];
|
|
@@ -4,5 +4,5 @@ export declare const useFocusTrapControl: () => {
|
|
|
4
4
|
disableFocusTrap: typeof noop;
|
|
5
5
|
resumeFocusTrap: typeof noop;
|
|
6
6
|
};
|
|
7
|
-
declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus,
|
|
7
|
+
declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus, }: DTFocusTrapType) => JSX.Element;
|
|
8
8
|
export default DTFocusTrap;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Props as FocusTrapProps } from 'focus-trap-react';
|
|
3
2
|
type FocusTargetValue = HTMLElement | SVGElement | string;
|
|
4
3
|
type FocusTargetValueOrFalse = FocusTargetValue | false;
|
|
5
4
|
/**
|
|
@@ -8,7 +7,7 @@ type FocusTargetValueOrFalse = FocusTargetValue | false;
|
|
|
8
7
|
* an opt-out, or a function that returns a DOM node or `false`.
|
|
9
8
|
*/
|
|
10
9
|
type FocusTargetOrFalse = FocusTargetValueOrFalse | (() => FocusTargetValueOrFalse);
|
|
11
|
-
export interface DTFocusTrapType
|
|
10
|
+
export interface DTFocusTrapType {
|
|
12
11
|
/**
|
|
13
12
|
* Callback function that gets triggered when the Escape key is pressed. \
|
|
14
13
|
* Should be wrapped in useCallback to prevent unnecessary re-renders.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DateTimePickerProps } from './types';
|
|
2
|
-
declare const DateTimePicker: ({ date: dateObject,
|
|
2
|
+
declare const DateTimePicker: ({ date: dateObject, onChange, timePickerProps, disabled, id, label, required, hideTimeSelect, readOnly, isTodayBlocked, dataTestIdForTime, dataTestidForDate, openDirection, error, }: DateTimePickerProps) => JSX.Element;
|
|
3
3
|
export default DateTimePicker;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DatePickerRangeControllerProps } from './types';
|
|
2
|
+
export declare const DatePickerRangeController: ({ handlePredefinedRange, handleApply, calendar, calendarInputs, handleDateInput, handleDatesChange, calendarValue, focusedInput, handleFocusChange, }: DatePickerRangeControllerProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SingleDatePickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param date Date value to be displayed
|
|
5
|
+
* @param handleDatesChange Function to handle date change
|
|
6
|
+
* @param readOnly Value to make date picker read only
|
|
7
|
+
* @param isTodayBlocked Value to block today's date
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
declare const SingleDatePickerComponent: ({ date, handleDatesChange, readOnly, isTodayBlocked, displayFormat, dataTestId, }: SingleDatePickerProps) => JSX.Element;
|
|
11
|
+
export default SingleDatePickerComponent;
|
|
@@ -1,4 +1,63 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as moment } from 'moment';
|
|
2
|
+
export declare const selectedStyles: {
|
|
3
|
+
background: string;
|
|
4
|
+
color: string;
|
|
5
|
+
hover: {
|
|
6
|
+
background: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const selectedSpanStyles: {
|
|
11
|
+
background: string;
|
|
12
|
+
color: string;
|
|
13
|
+
hover: {
|
|
14
|
+
background: string;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const hoveredSpanStyles: {
|
|
19
|
+
background: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const customDayStyles: {
|
|
23
|
+
selectedStartStyles: {
|
|
24
|
+
background: string;
|
|
25
|
+
color: string;
|
|
26
|
+
hover: {
|
|
27
|
+
background: string;
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
selectedEndStyles: {
|
|
32
|
+
background: string;
|
|
33
|
+
color: string;
|
|
34
|
+
hover: {
|
|
35
|
+
background: string;
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
hoveredSpanStyles: {
|
|
40
|
+
background: string;
|
|
41
|
+
color: string;
|
|
42
|
+
};
|
|
43
|
+
selectedSpanStyles: {
|
|
44
|
+
background: string;
|
|
45
|
+
color: string;
|
|
46
|
+
hover: {
|
|
47
|
+
background: string;
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
selectedStyles: {
|
|
52
|
+
background: string;
|
|
53
|
+
color: string;
|
|
54
|
+
hover: {
|
|
55
|
+
background: string;
|
|
56
|
+
color: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
border: string;
|
|
60
|
+
};
|
|
2
61
|
export declare const MONTHLY_DATES_CONFIG: {
|
|
3
62
|
'Day 1': string;
|
|
4
63
|
'Day 2': string;
|
|
@@ -94,4 +153,55 @@ export declare const DATE_PICKER_IDS: {
|
|
|
94
153
|
MONTH: string;
|
|
95
154
|
TIME: string;
|
|
96
155
|
};
|
|
97
|
-
export declare const
|
|
156
|
+
export declare const styles: {
|
|
157
|
+
PresetDateRangePicker_panel: {
|
|
158
|
+
padding: string;
|
|
159
|
+
width: string;
|
|
160
|
+
height: string;
|
|
161
|
+
};
|
|
162
|
+
PresetDateRangePicker_button: {
|
|
163
|
+
width: string;
|
|
164
|
+
background: string;
|
|
165
|
+
border: string;
|
|
166
|
+
color: string;
|
|
167
|
+
padding: string;
|
|
168
|
+
font: string;
|
|
169
|
+
fontWeight: number;
|
|
170
|
+
lineHeight: string;
|
|
171
|
+
overflow: string;
|
|
172
|
+
cursor: string;
|
|
173
|
+
':active': {
|
|
174
|
+
outline: number;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
DayPicker__horizontal: {
|
|
178
|
+
borderRadius: string;
|
|
179
|
+
};
|
|
180
|
+
PresetDateRangePicker_button__selected: {
|
|
181
|
+
color: string;
|
|
182
|
+
fontWeight: number;
|
|
183
|
+
background: string;
|
|
184
|
+
outline: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export declare const DayPickerCalendarInfoHorizontal: {
|
|
188
|
+
width: string;
|
|
189
|
+
boxShadow: string;
|
|
190
|
+
};
|
|
191
|
+
export declare const DayPickerRangeControllerPresets: {
|
|
192
|
+
text: string;
|
|
193
|
+
endDate: moment.Moment;
|
|
194
|
+
startDate: moment.Moment;
|
|
195
|
+
endStr: string;
|
|
196
|
+
}[];
|
|
197
|
+
/**
|
|
198
|
+
* Returns a string representing the range of dates
|
|
199
|
+
* given by the start and end dates. If the end date
|
|
200
|
+
* is 'now' and the start date includes 'now',
|
|
201
|
+
* it will return the corresponding range from the
|
|
202
|
+
* DayPickerRangeControllerPresets array.
|
|
203
|
+
* @param startDateStr - the start date string
|
|
204
|
+
* @param endDateStr - the end date string
|
|
205
|
+
* @returns - a string representing the range of dates
|
|
206
|
+
*/
|
|
207
|
+
export declare function getCalendarValue(startDateStr: string, endDateStr: string): string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
2
|
export { default as DateTimePicker } from './DateTimePicker';
|
|
3
|
+
export { DatePickerRangeController } from './DayPickerRangeController';
|
|
3
4
|
export * from './MonthlySelect';
|
|
5
|
+
export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
|
|
4
6
|
export * from './TimeSelect';
|
|
5
7
|
export * from './types';
|
|
6
8
|
export * from './utils';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SingleDatePickerShape } from 'react-dates';
|
|
1
2
|
import { SelectInstance } from 'react-select';
|
|
2
3
|
import { Moment } from 'moment';
|
|
3
4
|
import { SelectPickerOptionType } from '../SelectPicker';
|
|
@@ -80,13 +81,11 @@ export interface TimeSelectProps {
|
|
|
80
81
|
*/
|
|
81
82
|
selectedTimeOption: DateSelectPickerType;
|
|
82
83
|
}
|
|
83
|
-
interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export type UpdateSingleDateType = (date: Date) => void;
|
|
89
|
-
export type DateTimePickerProps = Pick<TimeSelectProps, 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'> & {
|
|
84
|
+
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
|
|
85
|
+
/**
|
|
86
|
+
* Props for the date picker
|
|
87
|
+
*/
|
|
88
|
+
datePickerProps?: any;
|
|
90
89
|
/**
|
|
91
90
|
* Id for the component
|
|
92
91
|
*/
|
|
@@ -99,6 +98,10 @@ export type DateTimePickerProps = Pick<TimeSelectProps, 'timePickerProps' | 'err
|
|
|
99
98
|
* If true, the field is required and asterisk is shown
|
|
100
99
|
*/
|
|
101
100
|
required?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* To hide time selector
|
|
103
|
+
*/
|
|
104
|
+
hideTimeSelect?: boolean;
|
|
102
105
|
/**
|
|
103
106
|
* To make the field read only
|
|
104
107
|
*/
|
|
@@ -107,32 +110,24 @@ export type DateTimePickerProps = Pick<TimeSelectProps, 'timePickerProps' | 'err
|
|
|
107
110
|
* To block today's date
|
|
108
111
|
*/
|
|
109
112
|
isTodayBlocked?: boolean;
|
|
110
|
-
blockPreviousDates?: boolean;
|
|
111
|
-
isOutsideRange?: (day: Date) => boolean;
|
|
112
|
-
} & ({
|
|
113
|
-
isRangePicker: true;
|
|
114
|
-
hideTimeSelect: true;
|
|
115
|
-
dateRange: DateRangeType;
|
|
116
|
-
onChange: UpdateDateRangeType;
|
|
117
|
-
rangeShortcutOptions?: ({
|
|
118
|
-
label: string;
|
|
119
|
-
onClick: () => void;
|
|
120
|
-
value?: never;
|
|
121
|
-
} | {
|
|
122
|
-
label: string;
|
|
123
|
-
onClick?: never;
|
|
124
|
-
value: DateRangeType;
|
|
125
|
-
})[];
|
|
126
|
-
date?: never;
|
|
127
|
-
} | {
|
|
128
|
-
isRangePicker?: false;
|
|
129
|
-
date: TimeSelectProps['date'];
|
|
130
|
-
onChange: UpdateSingleDateType;
|
|
131
113
|
/**
|
|
132
|
-
*
|
|
114
|
+
* Data test id for date picker
|
|
133
115
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
116
|
+
dataTestidForDate?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Function to handle date change
|
|
119
|
+
*/
|
|
120
|
+
onChange: (date: Date) => void;
|
|
121
|
+
}
|
|
122
|
+
export interface DatePickerRangeControllerProps {
|
|
123
|
+
calendar: any;
|
|
124
|
+
calendarInputs: any;
|
|
125
|
+
focusedInput: any;
|
|
126
|
+
handleFocusChange: any;
|
|
127
|
+
handleDatesChange: any;
|
|
128
|
+
handleCalendarInputs?: any;
|
|
129
|
+
calendarValue: string;
|
|
130
|
+
handlePredefinedRange: (start: Moment, end: Moment, endStr: string) => void;
|
|
131
|
+
handleDateInput: (key: 'startDate' | 'endDate', value: string) => void;
|
|
132
|
+
handleApply: (...args: any[]) => void;
|
|
133
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare const MONTHLY_DATE_OPTIONS: {
|
|
|
10
10
|
* Return the options for the time in label and value format
|
|
11
11
|
* @type {SelectPickerOptionType[]}
|
|
12
12
|
*/
|
|
13
|
-
export declare const DEFAULT_TIME_OPTIONS: SelectPickerOptionType
|
|
13
|
+
export declare const DEFAULT_TIME_OPTIONS: SelectPickerOptionType[];
|
|
14
14
|
/**
|
|
15
15
|
* Get the time value from the date object in the format: `hh:mm:ss`
|
|
16
16
|
*/
|
|
@@ -93,9 +93,6 @@ export declare const DOCUMENTATION: {
|
|
|
93
93
|
readonly SOFTWARE_DISTRIBUTION_HUB: "usage/software-distribution-hub";
|
|
94
94
|
readonly RELEASE_TRACKS: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
|
|
95
95
|
readonly RELEASES: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
|
|
96
|
-
readonly RELEASE_HUB: "usage/software-distribution-hub/release-hub";
|
|
97
96
|
readonly TENANTS: "usage/software-distribution-hub/tenants#adding-installation";
|
|
98
97
|
readonly TENANTS_INSTALLATION: "usage/software-distribution-hub/tenants";
|
|
99
|
-
readonly AUTOSCALER_DETECTION: "user-guide/infra-management/infrastructure-overview#troubleshooting-autoscaler-detection";
|
|
100
|
-
readonly COST_CALCULATION: "user-guide/finops/overview-cost-visibility#how-is-the-cost-calculated";
|
|
101
98
|
};
|
|
@@ -31,7 +31,7 @@ type FeatureDescriptionModalWithTabsConfig = {
|
|
|
31
31
|
imageStyles?: never;
|
|
32
32
|
};
|
|
33
33
|
export type FeatureDescriptionModalProps = {
|
|
34
|
-
title:
|
|
34
|
+
title: string;
|
|
35
35
|
closeModalText?: string;
|
|
36
36
|
closeModal?: () => void;
|
|
37
37
|
} & ((BaseFeatureDescriptionModalProps & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { animate, AnimatePresence, motion,
|
|
2
|
-
export { animate, AnimatePresence, motion,
|
|
1
|
+
import { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue } from 'framer-motion';
|
|
2
|
+
export { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue };
|