@devtron-labs/devtron-fe-common-lib 1.20.6-pre-38 → 1.20.6-pre-40
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-L8xbBPsz.js → @code-editor-BLFW7ibH.js} +4704 -4664
- package/dist/{@common-rjsf-CW-p2vUB.js → @common-rjsf-D13pdzrK.js} +2 -2
- package/dist/{@framer-motion-BbD0XILR.js → @framer-motion-DMkBQPN0.js} +1 -1
- package/dist/{@react-dates-DLCF81bK.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-CK9Bxd-k.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-J61SX97M.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-DEAetXNs.js → @vendor-DceGoESd.js} +63 -63
- package/dist/Common/Constants.d.ts +3 -2
- package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +2 -0
- package/dist/Shared/Components/Charts/constants.d.ts +0 -1
- package/dist/Shared/Components/Charts/plugins.d.ts +1 -3
- package/dist/Shared/Components/Charts/types.d.ts +13 -10
- package/dist/Shared/Components/Charts/utils.d.ts +44 -4
- package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +22 -1
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +1 -0
- package/dist/Shared/Services/common.service.d.ts +1 -2
- package/dist/Shared/Services/types.d.ts +1 -4
- package/dist/assets/ic-arrow-white.be4aea3f.svg +3 -0
- package/dist/assets/ic-book-gear.bb9bca1f.svg +9 -0
- package/dist/assets/ic-bulb.3906a732.svg +7 -0
- package/dist/assets/ic-check-green.b03d325d.svg +3 -0
- package/dist/assets/ic-circle-progress.0875625d.svg +6 -0
- package/dist/assets/ic-close-circle-red.72e0a495.svg +3 -0
- package/dist/assets/ic-close-circle.b39dd87d.svg +3 -0
- package/dist/assets/ic-confirm.f6b1c31c.svg +3 -0
- package/dist/assets/ic-dot-circle.5ce1fccf.svg +3 -0
- package/dist/assets/ic-failure-color.e167df98.svg +4 -0
- package/dist/assets/ic-info-filled-new.28815384.svg +8 -0
- package/dist/assets/ic-line.4e8fa046.svg +3 -0
- package/dist/assets/ic-new-chat.f7c90f8e.svg +5 -0
- package/dist/assets/ic-pencil-white.369e78d9.svg +3 -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-spider.99b77bd8.svg +3 -0
- package/dist/assets/ic-timer-green.00bf295e.svg +3 -0
- package/dist/assets/ic-timer-red.656bee16.svg +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +337 -338
- package/package.json +1 -1
- package/dist/assets/ic-coins-color-animated.fe11cdc3.svg +0 -112
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as n, aK as v, aM as J, aL as K } from "./@vendor-
|
|
1
|
+
import { j as n, aK as v, aM as J, aL as K } from "./@vendor-DceGoESd.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 S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-
|
|
4
|
+
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-BLFW7ibH.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,4 +1,4 @@
|
|
|
1
|
-
import { aW as m, aX as lt, aY as R, aZ as Zr, a_ as Le, a$ as oe, b0 as T, b1 as $e, b2 as at, b3 as Gt, b4 as Q, b5 as $r, b6 as oi, b7 as si, b8 as ui, b9 as li, ba as fi, bb as ci, bc as vi, bd as di, be as qr, bf as pi, bg as hi, bh as mi, bi as gi, bj as yi, bk as Jr, bl as Pt, bm as he, bn as X, bo as bi, bp as Qr, bq as z, br as tn, bs as me, bt as Z, bu as Pi, bv as Ot, bw as Vi, bx as Ti, by as en, bz as Ft, bA as O, bB as ge, bC as Si, bD as se, bE as xi, bF as Ci } from "./@vendor-
|
|
1
|
+
import { aW as m, aX as lt, aY as R, aZ as Zr, a_ as Le, a$ as oe, b0 as T, b1 as $e, b2 as at, b3 as Gt, b4 as Q, b5 as $r, b6 as oi, b7 as si, b8 as ui, b9 as li, ba as fi, bb as ci, bc as vi, bd as di, be as qr, bf as pi, bg as hi, bh as mi, bi as gi, bj as yi, bk as Jr, bl as Pt, bm as he, bn as X, bo as bi, bp as Qr, bq as z, br as tn, bs as me, bt as Z, bu as Pi, bv as Ot, bw as Vi, bx as Ti, by as en, bz as Ft, bA as O, bB as ge, bC as Si, bD as se, bE as xi, bF as Ci } from "./@vendor-DceGoESd.js";
|
|
2
2
|
import * as Y from "react";
|
|
3
3
|
import Re, { createContext as St, useContext as F, useLayoutEffect as Ai, useEffect as N, useState as De, useRef as $, useCallback as ye, useMemo as Vt, forwardRef as wi, createElement as Ei, cloneElement as Li, Children as Ri, isValidElement as Di } from "react";
|
|
4
4
|
var qe = "production", Me = typeof process > "u" || process.env === void 0 ? qe : process.env.NODE_ENV || qe, tt = function(t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Te from "react";
|
|
2
|
-
import { bG as he, bH as Ke, bI as we, bJ as cn, bK as Le, bL as Je, bM as tt, bN as at, bO as et, bP as lt, bQ as nt, bR as so, bS as fn, bT as uo, bU as bt, bV as ei, bW as hn, bX as co, bY as fo, bZ as ho, b_ as vn, b$ as Fe, c0 as pn, c1 as ti, c2 as wn, c3 as ai, c4 as ni, c5 as ri, c6 as Rt, c7 as oi, c8 as ii, c9 as li } from "./@vendor-
|
|
2
|
+
import { bG as he, bH as Ke, bI as we, bJ as cn, bK as Le, bL as Je, bM as tt, bN as at, bO as et, bP as lt, bQ as nt, bR as so, bS as fn, bT as uo, bU as bt, bV as ei, bW as hn, bX as co, bY as fo, bZ as ho, b_ as vn, b$ as Fe, c0 as pn, c1 as ti, c2 as wn, c3 as ai, c4 as ni, c5 as ri, c6 as Rt, c7 as oi, c8 as ii, c9 as li } from "./@vendor-DceGoESd.js";
|
|
3
3
|
import { r as Ne, h as si, g as di } from "./@moment-CGWt8tF2.js";
|
|
4
4
|
import './assets/@react-dates.css';var Wt = {}, jt = {}, zt = {}, Nn;
|
|
5
5
|
function Ve() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ca as xt, cb as v, b_ as re, cc as h, c5 as f, cd as Y, ce as U, cf as xe, cg as Bt, ch as Ue, ci as Ft, cj as Vt, ck as Et, cl as yt, cm as Wt, cn as Xt, co as ne, cp as Zt } from "./@vendor-
|
|
1
|
+
import { ca as xt, cb as v, b_ as re, cc as h, c5 as f, cd as Y, ce as U, cf as xe, cg as Bt, ch as Ue, ci as Ft, cj as Vt, ck as Et, cl as yt, cm as Wt, cn as Xt, co as ne, cp as Zt } from "./@vendor-DceGoESd.js";
|
|
2
2
|
import * as y from "react";
|
|
3
3
|
import { useRef as j, useState as ee, useMemo as q, useCallback as D, createContext as Nt, useContext as St, Component as Rt, Fragment as Be, useEffect as Qe, forwardRef as Ht } from "react";
|
|
4
4
|
import { createPortal as Tt } from "react-dom";
|
|
@@ -2,7 +2,7 @@ var v = Object.defineProperty;
|
|
|
2
2
|
var E = (a, h, e) => h in a ? v(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e;
|
|
3
3
|
var f = (a, h, e) => E(a, typeof h != "symbol" ? h + "" : h, e);
|
|
4
4
|
import u, { createRef as k } from "react";
|
|
5
|
-
import { cq as x } from "./@vendor-
|
|
5
|
+
import { cq as x } from "./@vendor-DceGoESd.js";
|
|
6
6
|
const b = () => typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor) ? "-webkit-sticky" : "sticky";
|
|
7
7
|
var g;
|
|
8
8
|
(function(a) {
|
|
@@ -80412,46 +80412,46 @@ const C9e = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c
|
|
|
80412
80412
|
default: D9e
|
|
80413
80413
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
80414
80414
|
export {
|
|
80415
|
-
|
|
80416
|
-
|
|
80417
|
-
|
|
80418
|
-
|
|
80415
|
+
ade as $,
|
|
80416
|
+
cFe as A,
|
|
80417
|
+
ts as B,
|
|
80418
|
+
GIe as C,
|
|
80419
80419
|
AIe as D,
|
|
80420
80420
|
De as E,
|
|
80421
80421
|
OIe as F,
|
|
80422
|
-
|
|
80423
|
-
|
|
80424
|
-
|
|
80425
|
-
|
|
80426
|
-
|
|
80427
|
-
|
|
80428
|
-
|
|
80429
|
-
|
|
80430
|
-
|
|
80431
|
-
|
|
80422
|
+
YIe as G,
|
|
80423
|
+
uFe as H,
|
|
80424
|
+
fle as I,
|
|
80425
|
+
jIe as J,
|
|
80426
|
+
ch as K,
|
|
80427
|
+
ZV as L,
|
|
80428
|
+
oy as M,
|
|
80429
|
+
iy as N,
|
|
80430
|
+
eH as O,
|
|
80431
|
+
MA as P,
|
|
80432
80432
|
_n as Q,
|
|
80433
|
-
|
|
80433
|
+
j5 as R,
|
|
80434
80434
|
bn as S,
|
|
80435
80435
|
Wn as T,
|
|
80436
|
-
|
|
80436
|
+
Wb as U,
|
|
80437
80437
|
dn as V,
|
|
80438
|
-
|
|
80439
|
-
|
|
80440
|
-
|
|
80441
|
-
|
|
80442
|
-
|
|
80438
|
+
MIe as W,
|
|
80439
|
+
$e as X,
|
|
80440
|
+
spe as Y,
|
|
80441
|
+
UIe as Z,
|
|
80442
|
+
V5 as _,
|
|
80443
80443
|
lpe as a,
|
|
80444
80444
|
aj as a$,
|
|
80445
|
-
|
|
80446
|
-
|
|
80447
|
-
|
|
80448
|
-
|
|
80449
|
-
|
|
80450
|
-
|
|
80451
|
-
|
|
80452
|
-
|
|
80453
|
-
|
|
80454
|
-
|
|
80445
|
+
ap as a0,
|
|
80446
|
+
zIe as a1,
|
|
80447
|
+
Xc as a2,
|
|
80448
|
+
LIe as a3,
|
|
80449
|
+
BIe as a4,
|
|
80450
|
+
WIe as a5,
|
|
80451
|
+
ht as a6,
|
|
80452
|
+
VIe as a7,
|
|
80453
|
+
Gce as a8,
|
|
80454
|
+
pFe as a9,
|
|
80455
80455
|
gb as aA,
|
|
80456
80456
|
wMe as aB,
|
|
80457
80457
|
BFe as aC,
|
|
@@ -80479,28 +80479,28 @@ export {
|
|
|
80479
80479
|
U9e as aY,
|
|
80480
80480
|
H9e as aZ,
|
|
80481
80481
|
Rb as a_,
|
|
80482
|
-
|
|
80483
|
-
|
|
80484
|
-
|
|
80485
|
-
|
|
80486
|
-
|
|
80487
|
-
|
|
80488
|
-
|
|
80489
|
-
|
|
80490
|
-
|
|
80491
|
-
|
|
80492
|
-
|
|
80493
|
-
|
|
80494
|
-
|
|
80495
|
-
|
|
80496
|
-
|
|
80497
|
-
|
|
80498
|
-
|
|
80499
|
-
|
|
80500
|
-
|
|
80501
|
-
|
|
80502
|
-
|
|
80503
|
-
|
|
80482
|
+
mFe as aa,
|
|
80483
|
+
gFe as ab,
|
|
80484
|
+
yFe as ac,
|
|
80485
|
+
cu as ad,
|
|
80486
|
+
w8 as ae,
|
|
80487
|
+
C8 as af,
|
|
80488
|
+
Hx as ag,
|
|
80489
|
+
Zx as ah,
|
|
80490
|
+
Wx as ai,
|
|
80491
|
+
Du as aj,
|
|
80492
|
+
Qx as ak,
|
|
80493
|
+
ag as al,
|
|
80494
|
+
dg as am,
|
|
80495
|
+
ub as an,
|
|
80496
|
+
_Fe as ao,
|
|
80497
|
+
CFe as ap,
|
|
80498
|
+
wFe as aq,
|
|
80499
|
+
xFe as ar,
|
|
80500
|
+
LY as as,
|
|
80501
|
+
uf as at,
|
|
80502
|
+
ko as au,
|
|
80503
|
+
j9e as av,
|
|
80504
80504
|
LFe as aw,
|
|
80505
80505
|
jFe as ax,
|
|
80506
80506
|
vb as ay,
|
|
@@ -80601,25 +80601,25 @@ export {
|
|
|
80601
80601
|
gD as cr,
|
|
80602
80602
|
KIe as d,
|
|
80603
80603
|
ZIe as e,
|
|
80604
|
-
|
|
80604
|
+
QIe as f,
|
|
80605
80605
|
dpe as g,
|
|
80606
|
-
|
|
80606
|
+
Cme as h,
|
|
80607
80607
|
q9e as i,
|
|
80608
80608
|
ce as j,
|
|
80609
80609
|
xR as k,
|
|
80610
80610
|
NIe as l,
|
|
80611
|
-
|
|
80611
|
+
Zle as m,
|
|
80612
80612
|
dIe as n,
|
|
80613
80613
|
$A as o,
|
|
80614
|
-
|
|
80615
|
-
|
|
80614
|
+
JIe as p,
|
|
80615
|
+
fFe as q,
|
|
80616
80616
|
nH as r,
|
|
80617
80617
|
qIe as s,
|
|
80618
80618
|
K as t,
|
|
80619
|
-
|
|
80620
|
-
|
|
80621
|
-
|
|
80622
|
-
|
|
80619
|
+
hFe as u,
|
|
80620
|
+
dFe as v,
|
|
80621
|
+
Ype as w,
|
|
80622
|
+
lFe as x,
|
|
80623
80623
|
XIe as y,
|
|
80624
|
-
|
|
80624
|
+
aFe as z
|
|
80625
80625
|
};
|
|
@@ -74,6 +74,7 @@ export declare const URLS: {
|
|
|
74
74
|
readonly INFRASTRUCTURE_MANAGEMENT_CHART_STORE_DISCOVER: "/infrastructure-management/chart-store/discover";
|
|
75
75
|
readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: "/infrastructure-management/resource-browser";
|
|
76
76
|
readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: "/infrastructure-management/resource-watcher";
|
|
77
|
+
readonly INFRASTRUCTURE_MANAGEMENT_AUDIT_LOGS: "/infrastructure-management/audit-logs";
|
|
77
78
|
readonly SOFTWARE_RELEASE_MANAGEMENT: "/software-release-management";
|
|
78
79
|
readonly COST_VISIBILITY: "/cost-visibility";
|
|
79
80
|
readonly COST_VISIBILITY_OVERVIEW: "/cost-visibility/overview";
|
|
@@ -100,8 +101,9 @@ export declare const URLS: {
|
|
|
100
101
|
readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
|
|
101
102
|
readonly PERMISSION_GROUPS: "/global-configuration/auth/groups";
|
|
102
103
|
readonly AI_RECOMMENDATIONS: "/ai-recommendations";
|
|
103
|
-
readonly
|
|
104
|
+
readonly AI_RECOMMENDATIONS_NOTIFICATIONS: "/ai-recommendations/notifications";
|
|
104
105
|
readonly EXTERNAL_APPS: "ea";
|
|
106
|
+
readonly AI_RECOMMENDATIONS_RUNBOOKS: "/ai-recommendations/runbooks";
|
|
105
107
|
};
|
|
106
108
|
export declare const ROUTES: {
|
|
107
109
|
readonly APP: "app";
|
|
@@ -128,7 +130,6 @@ export declare const ROUTES: {
|
|
|
128
130
|
readonly PATCH: "patch";
|
|
129
131
|
readonly ENVIRONMENT_LIST_MIN: "env/autocomplete";
|
|
130
132
|
readonly CLUSTER: "cluster";
|
|
131
|
-
readonly CLUSTER_MIN: "cluster/min";
|
|
132
133
|
readonly API_RESOURCE: "k8s/api-resources";
|
|
133
134
|
readonly GVK: "gvk";
|
|
134
135
|
readonly NAMESPACE: "env/namespace";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from './types';
|
|
2
|
-
declare const Tooltip: ({ shortcutKeyCombo, alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child,
|
|
2
|
+
declare const Tooltip: ({ shortcutKeyCombo, alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -69,6 +69,8 @@ import { ChartProps } from './types';
|
|
|
69
69
|
* @param type - Chart type: 'area', 'pie', 'stackedBar', 'stackedBarHorizontal', or 'line'
|
|
70
70
|
* @param xAxisLabels - Array of labels for the x-axis (or categories for pie charts)
|
|
71
71
|
* @param datasets - Chart data: array of datasets for most charts, single dataset object for pie charts
|
|
72
|
+
* @param xAxisConfig
|
|
73
|
+
* @param yAxisConfig
|
|
72
74
|
*
|
|
73
75
|
* @performance
|
|
74
76
|
* **Memoization Recommendations:**
|
|
@@ -7,4 +7,3 @@ export declare const CHART_AXIS_LABELS_COLOR: Record<AppThemeType, string>;
|
|
|
7
7
|
export declare const CHART_CANVAS_BACKGROUND_COLORS: Record<AppThemeType, string>;
|
|
8
8
|
export declare const LINE_DASH: number[];
|
|
9
9
|
export declare const MAX_BAR_THICKNESS = 96;
|
|
10
|
-
export declare const DIS_JOINT_CHART_POINT_RADIUS = 4;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
1
|
import { Plugin } from 'chart.js';
|
|
3
2
|
import { AppThemeType } from '../../Providers';
|
|
4
|
-
import {
|
|
3
|
+
import { ReferenceLineConfigType } from './types';
|
|
5
4
|
export declare const drawReferenceLine: (config: ReferenceLineConfigType, id: string, appTheme: AppThemeType) => Plugin;
|
|
6
|
-
export declare const htmlLegendPlugin: (id: string, ref: RefObject<HTMLDivElement>, type: ChartType) => Plugin;
|
|
@@ -4,7 +4,7 @@ import { TooltipProps } from '../../../Common/Tooltip';
|
|
|
4
4
|
import { AppThemeType } from '../../Providers';
|
|
5
5
|
import { Never } from '../../types';
|
|
6
6
|
export type ChartType = 'area' | 'pie' | 'stackedBar' | 'stackedBarHorizontal' | 'line';
|
|
7
|
-
export type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray'
|
|
7
|
+
export type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray';
|
|
8
8
|
export type VariantsType = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
9
9
|
export type ChartColorKey = `${ColorTokensType}${VariantsType}`;
|
|
10
10
|
export type ChartTypeWithoutPie = Exclude<ChartType, 'pie'>;
|
|
@@ -28,6 +28,16 @@ export interface ReferenceLineConfigType {
|
|
|
28
28
|
color?: ChartColorKey;
|
|
29
29
|
value: number;
|
|
30
30
|
}
|
|
31
|
+
export interface AxisConfig {
|
|
32
|
+
title?: string;
|
|
33
|
+
unit?: string;
|
|
34
|
+
unitPosition?: 'prefix' | 'suffix';
|
|
35
|
+
labelFormatter?: (value: number | string, index: number) => string | string[] | number | number[];
|
|
36
|
+
hide?: boolean;
|
|
37
|
+
max?: number;
|
|
38
|
+
min?: number;
|
|
39
|
+
stepSize?: number;
|
|
40
|
+
}
|
|
31
41
|
type XYAxisMax = {
|
|
32
42
|
xAxisMax?: number;
|
|
33
43
|
yAxisMax?: number;
|
|
@@ -35,6 +45,8 @@ type XYAxisMax = {
|
|
|
35
45
|
* Optional reference lines to draw across the chart
|
|
36
46
|
*/
|
|
37
47
|
referenceLines?: ReferenceLineConfigType[];
|
|
48
|
+
xAxisConfig?: AxisConfig;
|
|
49
|
+
yAxisConfig?: AxisConfig;
|
|
38
50
|
};
|
|
39
51
|
type OnChartClickHandler = (datasetName: string, value: number) => void;
|
|
40
52
|
type ScaleTickFormatCallbacks = Partial<{
|
|
@@ -81,9 +93,7 @@ export type ChartProps = {
|
|
|
81
93
|
placement?: TooltipProps['placement'];
|
|
82
94
|
datasetValueFormatter?: (value: number) => string | number;
|
|
83
95
|
};
|
|
84
|
-
/** A title for x axis */
|
|
85
96
|
xScaleTitle?: string;
|
|
86
|
-
/** A title for y axis */
|
|
87
97
|
yScaleTitle?: string;
|
|
88
98
|
} & TypeAndDatasetsType;
|
|
89
99
|
export type TransformDatasetProps = {
|
|
@@ -113,11 +123,4 @@ declare module 'chart.js' {
|
|
|
113
123
|
barElementCenterPositioner: TooltipPositionerFunction<'bar'>;
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
|
-
export interface HTMLLegendProps {
|
|
117
|
-
backgroundColor: string;
|
|
118
|
-
label: string;
|
|
119
|
-
onClick: () => void;
|
|
120
|
-
strikeThrough: boolean;
|
|
121
|
-
variant: 'line' | 'square';
|
|
122
|
-
}
|
|
123
126
|
export {};
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ChartDataset, ChartOptions, ChartType as ChartJSChartType, Point, TooltipOptions } from 'chart.js';
|
|
2
|
+
import { Chart, ChartDataset, ChartOptions, ChartType as ChartJSChartType, Point, TooltipOptions } from 'chart.js';
|
|
3
|
+
import { AppThemeType } from '../../Providers';
|
|
3
4
|
import { ChartType, GetDefaultOptionsParams, TransformDataForChartProps } from './types';
|
|
5
|
+
export declare const getLegendsLabelConfig: (type: ChartType, appTheme: AppThemeType) => {
|
|
6
|
+
usePointStyle: false;
|
|
7
|
+
boxHeight: number;
|
|
8
|
+
generateLabels: (chart: Chart<"line">) => {
|
|
9
|
+
fillStyle: string;
|
|
10
|
+
strokeStyle: string;
|
|
11
|
+
lineDash: number[];
|
|
12
|
+
lineWidth: number;
|
|
13
|
+
text: string;
|
|
14
|
+
borderRadius?: number | import('chart.js').BorderRadius;
|
|
15
|
+
datasetIndex?: number;
|
|
16
|
+
index?: number;
|
|
17
|
+
fontColor?: import('chart.js').Color;
|
|
18
|
+
hidden?: boolean;
|
|
19
|
+
lineCap?: CanvasLineCap;
|
|
20
|
+
lineDashOffset?: number;
|
|
21
|
+
lineJoin?: CanvasLineJoin;
|
|
22
|
+
pointStyle?: import('chart.js').PointStyle;
|
|
23
|
+
rotation?: number;
|
|
24
|
+
textAlign?: import('chart.js').TextAlign;
|
|
25
|
+
}[];
|
|
26
|
+
color: string;
|
|
27
|
+
font: {
|
|
28
|
+
family: string;
|
|
29
|
+
size: number;
|
|
30
|
+
lineHeight: string;
|
|
31
|
+
weight: number;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
usePointStyle: true;
|
|
35
|
+
boxHeight: number;
|
|
36
|
+
boxWidth: number;
|
|
37
|
+
pointStyle: "rectRounded";
|
|
38
|
+
color: string;
|
|
39
|
+
font: {
|
|
40
|
+
family: string;
|
|
41
|
+
size: number;
|
|
42
|
+
lineHeight: string;
|
|
43
|
+
weight: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
4
46
|
export declare const getChartJSType: (type: ChartType) => ChartJSChartType;
|
|
5
47
|
export declare const getDefaultOptions: ({ chartProps, appTheme, externalTooltipHandler, setTooltipVisible, }: GetDefaultOptionsParams) => ChartOptions;
|
|
6
48
|
export declare const transformDataForChart: (props: TransformDataForChartProps) => (ChartDataset<"line"> | {
|
|
@@ -14,17 +56,15 @@ export declare const transformDataForChart: (props: TransformDataForChartProps)
|
|
|
14
56
|
backgroundColor: string[];
|
|
15
57
|
hoverBackgroundColor: string[];
|
|
16
58
|
borderColor: string;
|
|
17
|
-
borderWidth: number;
|
|
18
59
|
label: string;
|
|
19
60
|
data: number[];
|
|
20
61
|
} | {
|
|
21
62
|
backgroundColor: string;
|
|
22
63
|
hoverBackgroundColor: string;
|
|
23
64
|
borderColor: string;
|
|
24
|
-
borderWidth?: undefined;
|
|
25
65
|
label: string;
|
|
26
66
|
data: number[];
|
|
27
67
|
})[];
|
|
28
|
-
export declare function chartColorGenerator(): Generator<"DeepPlum500" | "DeepPlum300" | "DeepPlum100" | "DeepPlum50" | "DeepPlum600" | "DeepPlum400" | "DeepPlum200" | "DeepPlum700" | "DeepPlum800" | "DeepPlum900" | "DeepPlum950" | "Magenta500" | "Magenta300" | "Magenta100" | "Magenta50" | "Magenta600" | "Magenta400" | "Magenta200" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta950" | "Slate500" | "Slate300" | "Slate100" | "Slate50" | "Slate600" | "Slate400" | "Slate200" | "Slate700" | "Slate800" | "Slate900" | "Slate950" | "Lavender500" | "Lavender300" | "Lavender100" | "Lavender50" | "Lavender600" | "Lavender400" | "Lavender200" | "Lavender700" | "Lavender800" | "Lavender900" | "Lavender950" | "SkyBlue500" | "SkyBlue300" | "SkyBlue100" | "SkyBlue50" | "SkyBlue600" | "SkyBlue400" | "SkyBlue200" | "SkyBlue700" | "SkyBlue800" | "SkyBlue900" | "SkyBlue950" | "AquaTeal500" | "AquaTeal300" | "AquaTeal100" | "AquaTeal50" | "AquaTeal600" | "AquaTeal400" | "AquaTeal200" | "AquaTeal700" | "AquaTeal800" | "AquaTeal900" | "AquaTeal950" | "LimeGreen500" | "LimeGreen300" | "LimeGreen100" | "LimeGreen50" | "LimeGreen600" | "LimeGreen400" | "LimeGreen200" | "LimeGreen700" | "LimeGreen800" | "LimeGreen900" | "LimeGreen950" | "CoralRed500" | "CoralRed300" | "CoralRed100" | "CoralRed50" | "CoralRed600" | "CoralRed400" | "CoralRed200" | "CoralRed700" | "CoralRed800" | "CoralRed900" | "CoralRed950" | "GoldenYellow500" | "GoldenYellow300" | "GoldenYellow100" | "GoldenYellow50" | "GoldenYellow600" | "GoldenYellow400" | "GoldenYellow200" | "GoldenYellow700" | "GoldenYellow800" | "GoldenYellow900" | "GoldenYellow950" | "CharcoalGray500" | "CharcoalGray300" | "CharcoalGray100" | "CharcoalGray50" | "CharcoalGray600" | "CharcoalGray400" | "CharcoalGray200" | "CharcoalGray700" | "CharcoalGray800" | "CharcoalGray900" | "CharcoalGray950" | "Gray500" | "Gray300" | "Gray100" | "Gray50" | "Gray600" | "Gray400" | "Gray200" | "Gray700" | "Gray800" | "Gray900" | "Gray950"
|
|
68
|
+
export declare function chartColorGenerator(): Generator<"DeepPlum500" | "DeepPlum300" | "DeepPlum100" | "DeepPlum50" | "DeepPlum600" | "DeepPlum400" | "DeepPlum200" | "DeepPlum700" | "DeepPlum800" | "DeepPlum900" | "DeepPlum950" | "Magenta500" | "Magenta300" | "Magenta100" | "Magenta50" | "Magenta600" | "Magenta400" | "Magenta200" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta950" | "Slate500" | "Slate300" | "Slate100" | "Slate50" | "Slate600" | "Slate400" | "Slate200" | "Slate700" | "Slate800" | "Slate900" | "Slate950" | "Lavender500" | "Lavender300" | "Lavender100" | "Lavender50" | "Lavender600" | "Lavender400" | "Lavender200" | "Lavender700" | "Lavender800" | "Lavender900" | "Lavender950" | "SkyBlue500" | "SkyBlue300" | "SkyBlue100" | "SkyBlue50" | "SkyBlue600" | "SkyBlue400" | "SkyBlue200" | "SkyBlue700" | "SkyBlue800" | "SkyBlue900" | "SkyBlue950" | "AquaTeal500" | "AquaTeal300" | "AquaTeal100" | "AquaTeal50" | "AquaTeal600" | "AquaTeal400" | "AquaTeal200" | "AquaTeal700" | "AquaTeal800" | "AquaTeal900" | "AquaTeal950" | "LimeGreen500" | "LimeGreen300" | "LimeGreen100" | "LimeGreen50" | "LimeGreen600" | "LimeGreen400" | "LimeGreen200" | "LimeGreen700" | "LimeGreen800" | "LimeGreen900" | "LimeGreen950" | "CoralRed500" | "CoralRed300" | "CoralRed100" | "CoralRed50" | "CoralRed600" | "CoralRed400" | "CoralRed200" | "CoralRed700" | "CoralRed800" | "CoralRed900" | "CoralRed950" | "GoldenYellow500" | "GoldenYellow300" | "GoldenYellow100" | "GoldenYellow50" | "GoldenYellow600" | "GoldenYellow400" | "GoldenYellow200" | "GoldenYellow700" | "GoldenYellow800" | "GoldenYellow900" | "GoldenYellow950" | "CharcoalGray500" | "CharcoalGray300" | "CharcoalGray100" | "CharcoalGray50" | "CharcoalGray600" | "CharcoalGray400" | "CharcoalGray200" | "CharcoalGray700" | "CharcoalGray800" | "CharcoalGray900" | "CharcoalGray950" | "Gray500" | "Gray300" | "Gray100" | "Gray50" | "Gray600" | "Gray400" | "Gray200" | "Gray700" | "Gray800" | "Gray900" | "Gray950", void, unknown>;
|
|
29
69
|
export declare const buildChartTooltipFromContext: ({ title, body, labelColors: labelColorsProp, }: Pick<Parameters<TooltipOptions["external"]>[0]["tooltip"], "title" | "body" | "labelColors">) => ReactNode;
|
|
30
70
|
export declare const distanceBetweenPoints: (pt1: Point, pt2: Point) => number;
|
|
@@ -90,6 +90,7 @@ export declare const DOCUMENTATION: {
|
|
|
90
90
|
readonly GLOBAL_CONFIG_SSO_LOGIN_MICROSOFT: "global-configurations/authorization/sso-login/microsoft";
|
|
91
91
|
readonly GLOBAL_CONFIG_PULL_IMAGE_DIGEST: "global-configurations/pull-image-digest";
|
|
92
92
|
readonly GLOBAL_CONFIG_TAGS: "getting-started/global-configurations/tags-policy";
|
|
93
|
+
readonly SAMPLE_RUNBOOK_LINK: "https://docs.devtron.ai/user-guide/ai-recommendations/runbook#add-runbook-spec";
|
|
93
94
|
readonly SOFTWARE_DISTRIBUTION_HUB: "usage/software-distribution-hub";
|
|
94
95
|
readonly RELEASE_TRACKS: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
|
|
95
96
|
readonly RELEASES: "usage/software-distribution-hub/release-hub#creating-release-tracks-and-versions";
|
|
@@ -18,6 +18,7 @@ export declare const iconMap: {
|
|
|
18
18
|
'ic-arrow-line-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
19
19
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
20
20
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
21
|
+
'ic-arrow-white': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
21
22
|
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
22
23
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
23
24
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -42,6 +43,7 @@ export declare const iconMap: {
|
|
|
42
43
|
'ic-bg-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
43
44
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
44
45
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
46
|
+
'ic-book-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
45
47
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
46
48
|
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
47
49
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -49,6 +51,7 @@ export declare const iconMap: {
|
|
|
49
51
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
50
52
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
51
53
|
'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
54
|
+
'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
52
55
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
53
56
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
54
57
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -61,16 +64,20 @@ export declare const iconMap: {
|
|
|
61
64
|
'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
62
65
|
'ic-check-all': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
63
66
|
'ic-check-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
67
|
+
'ic-check-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
64
68
|
'ic-check-square': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
65
69
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
66
70
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
67
71
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
68
72
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
69
73
|
'ic-circle-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
74
|
+
'ic-circle-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
70
75
|
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
71
76
|
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
72
77
|
'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
73
78
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
79
|
+
'ic-close-circle-red': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
80
|
+
'ic-close-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
74
81
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
75
82
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
76
83
|
'ic-cloud-upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -78,8 +85,8 @@ export declare const iconMap: {
|
|
|
78
85
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
79
86
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
80
87
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
81
|
-
'ic-coins-color-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
82
88
|
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
89
|
+
'ic-confirm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
83
90
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
84
91
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
85
92
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -107,6 +114,7 @@ export declare const iconMap: {
|
|
|
107
114
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
108
115
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
109
116
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
117
|
+
'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
110
118
|
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
111
119
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
112
120
|
'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -120,6 +128,7 @@ export declare const iconMap: {
|
|
|
120
128
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
121
129
|
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
122
130
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
131
|
+
'ic-failure-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
123
132
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
124
133
|
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
125
134
|
'ic-file-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -167,6 +176,7 @@ export declare const iconMap: {
|
|
|
167
176
|
'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
168
177
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
169
178
|
'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
179
|
+
'ic-info-filled-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
170
180
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
171
181
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
172
182
|
'ic-infrastructure-management': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -184,6 +194,7 @@ export declare const iconMap: {
|
|
|
184
194
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
185
195
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
186
196
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
197
|
+
'ic-line': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
187
198
|
'ic-link': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
188
199
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
189
200
|
'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -206,6 +217,7 @@ export declare const iconMap: {
|
|
|
206
217
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
207
218
|
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
208
219
|
'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
220
|
+
'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
209
221
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
210
222
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
211
223
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -222,12 +234,18 @@ export declare const iconMap: {
|
|
|
222
234
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
223
235
|
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
224
236
|
'ic-pause': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
237
|
+
'ic-pencil-white': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
225
238
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
239
|
+
'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
226
240
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
241
|
+
'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
242
|
+
'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
227
243
|
'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
244
|
+
'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
228
245
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
229
246
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
230
247
|
'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
248
|
+
'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
231
249
|
'ic-release-hub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
232
250
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
233
251
|
'ic-resource-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -248,6 +266,7 @@ export declare const iconMap: {
|
|
|
248
266
|
'ic-sparkle-ai-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
249
267
|
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
250
268
|
'ic-speedometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
269
|
+
'ic-spider': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
251
270
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
252
271
|
'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
253
272
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -276,6 +295,8 @@ export declare const iconMap: {
|
|
|
276
295
|
'ic-thumb-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
277
296
|
'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
278
297
|
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
298
|
+
'ic-timer-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
299
|
+
'ic-timer-red': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
279
300
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
280
301
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
281
302
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -104,5 +104,5 @@ export declare const getAppDetailsURL: (appId: number | string, envId?: number |
|
|
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
|
106
106
|
export declare const YAMLtoJSON: (yamlString: string) => string;
|
|
107
|
-
export declare const formatNumberToCurrency: (value: number, currency: string
|
|
107
|
+
export declare const formatNumberToCurrency: (value: number, currency: string) => string;
|
|
108
108
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
|
2
2
|
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
|
3
3
|
import { ResourceKindType } from '../../types';
|
|
4
|
-
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs' | 'ai-recommendations-overview';
|
|
5
|
-
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
|
|
4
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'infrastructure-management-audit-logs' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs' | 'ai-recommendations-overview' | 'ai-recommendations-runbooks' | 'ai-recommendations-notifications';
|
|
5
|
+
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-runbook' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
|
|
6
6
|
export interface GetUserPreferencesQueryParamsType {
|
|
7
7
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
|
8
8
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
|
2
|
-
import {
|
|
2
|
+
import { ClusterType } from '..';
|
|
3
3
|
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
|
|
4
4
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
|
5
5
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
|
6
6
|
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
|
7
7
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
|
8
8
|
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
|
9
|
-
export declare const getAllClusterListMin: (signal: AbortSignal) => Promise<import('../../Common').ResponseType<AllClusterListMinItemDTO[]>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MainContext } from '../Providers';
|
|
2
|
-
import {
|
|
2
|
+
import { getUrlWithSearchParams } from '../../Common';
|
|
3
3
|
import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
|
|
4
4
|
export interface BaseAppMetaData {
|
|
5
5
|
appId: number;
|
|
@@ -46,7 +46,4 @@ export interface ClusterMinDTO {
|
|
|
46
46
|
isVirtualCluster: boolean;
|
|
47
47
|
isProd: boolean;
|
|
48
48
|
}
|
|
49
|
-
export type AllClusterListMinItemDTO = Pick<ClusterDetailDTO, 'id' | 'cluster_name' | 'isVirtualCluster' | 'isProd'> & {
|
|
50
|
-
costModuleConfig: Pick<ClusterDetailDTO['costModuleConfig'], 'enabled' | 'installationStatus'>;
|
|
51
|
-
};
|
|
52
49
|
export {};
|