@devtron-labs/devtron-fe-common-lib 1.20.7 → 1.21.0-pre-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { j as n, au as T, aw as J, av as K } from "./@vendor-3ORIJA0h.js";
2
2
  import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
3
3
  import z, { getDefaultRegistry as Q } from "@rjsf/core";
4
- import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-Dmh5KrSw.js";
4
+ import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-Br1iijm9.js";
5
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";
6
6
  import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { BreadcrumbTextProps } from './Types';
3
3
  export declare const BreadcrumbText: ({ heading, isActive, shouldTruncate }: BreadcrumbTextProps) => JSX.Element;
4
+ export declare const getBreadCrumbSeparator: (sep?: string) => JSX.Element;
4
5
  declare const Store: ({ children }: {
5
6
  children: any;
6
7
  }) => JSX.Element;
@@ -64,6 +64,9 @@ export declare const URLS: {
64
64
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
65
65
  readonly LICENSE_AUTH: "/license-auth";
66
66
  readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-config/cluster-env/edit/:clusterId";
67
+ readonly OBSERVABILITY: "/observability";
68
+ readonly OBSERVABILITY_OVERVIEW: "/observability/overview";
69
+ readonly OBSERVABILITY_CUSTOMER_LIST: "/observability/tenants";
67
70
  };
68
71
  export declare const ROUTES: {
69
72
  readonly APP: "app";
@@ -128,6 +128,7 @@ export declare enum ResourceBrowserActionMenuEnum {
128
128
  logs = "logs",
129
129
  terminal = "terminal",
130
130
  delete = "delete",
131
- vulnerability = "vulnerability"
131
+ vulnerability = "vulnerability",
132
+ restart = "restart"
132
133
  }
133
134
  export {};
@@ -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;
@@ -1,3 +1,24 @@
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
+ };
1
22
  export declare const customDayStyles: {
2
23
  selectedStartStyles: {
3
24
  background: string;
@@ -132,3 +153,55 @@ export declare const DATE_PICKER_IDS: {
132
153
  MONTH: string;
133
154
  TIME: string;
134
155
  };
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,5 +1,6 @@
1
1
  export * from './constants';
2
2
  export { default as DateTimePicker } from './DateTimePicker';
3
+ export { DatePickerRangeController } from './DayPickerRangeController';
3
4
  export * from './MonthlySelect';
4
5
  export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
5
6
  export * from './TimeSelect';
@@ -119,3 +119,15 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'tim
119
119
  */
120
120
  onChange: (date: Date) => void;
121
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
+ }
@@ -20,6 +20,7 @@ export declare const iconMap: {
20
20
  'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
21
  'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
22
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
+ 'ic-binoculars': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
24
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
25
  'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
26
  'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -77,12 +78,14 @@ export declare const iconMap: {
77
78
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
78
79
  'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
79
80
  'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
+ 'ic-enter-fullscreen': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
80
82
  'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
83
  'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
84
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
85
  'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
86
  'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
87
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
88
+ 'ic-exit-fullscreen': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
89
  'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
90
  'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
88
91
  'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path d="M9.75 8.24978H14.25M21.5241 14.4673L17.4319 5.15603C17.0099 4.7341 16.4376 4.49707 15.8409 4.49707C15.2442 4.49707 14.672 4.7341 14.25 5.15603V15.7498M14.25 15.7498C14.25 17.8208 15.9289 19.4998 18 19.4998C20.0711 19.4998 21.75 17.8208 21.75 15.7498C21.75 13.6787 20.0711 11.9998 18 11.9998C15.9289 11.9998 14.25 13.6787 14.25 15.7498ZM9.75 15.7498V5.15603C9.32805 4.7341 8.75577 4.49707 8.15906 4.49707C7.56235 4.49707 6.99008 4.7341 6.56812 5.15603L2.47594 14.4673M9.75 15.7498C9.75 17.8208 8.07107 19.4998 6 19.4998C3.92893 19.4998 2.25 17.8208 2.25 15.7498C2.25 13.6787 3.92893 11.9998 6 11.9998C8.07107 11.9998 9.75 13.6787 9.75 15.7498Z" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 4.5h4.5m0 0V9m0-4.5-5.25 5.25M9 19.5H4.5m0 0V15m0 4.5 5.25-5.25" vector-effect="non-scaling-stroke"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14.25 5.25v4.5m0 0h4.5m-4.5 0L19.5 4.5M5.25 14.25h4.5m0 0v4.5m0-4.5L4.5 19.5" vector-effect="non-scaling-stroke"/>
3
+ </svg>