@devtron-labs/devtron-fe-common-lib 0.0.45-beta-1 → 0.0.45-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/Common/CustomInput/CustomInput.d.ts +3 -0
- package/dist/Common/CustomInput/Types.d.ts +24 -0
- package/dist/Common/CustomInput/index.d.ts +2 -0
- package/dist/Common/Helper.d.ts +1 -2
- package/dist/Common/Types.d.ts +0 -18
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +124 -120
- package/package.json +1 -1
- package/src/Common/CustomInput/CustomInput.tsx +92 -0
- package/src/Common/CustomInput/Types.ts +23 -0
- package/src/Common/CustomInput/index.ts +2 -0
- package/src/Common/Helper.tsx +1 -69
- package/src/Common/Types.ts +0 -19
- package/src/Common/index.ts +1 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomInputProps } from "./Types";
|
|
3
|
+
export declare function CustomInput({ name, value, error, onChange, onBlur, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, showLink, linkText, link, helperText, }: CustomInputProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CustomInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
onChange: (e: any) => void;
|
|
6
|
+
onBlur?: (e: any) => void;
|
|
7
|
+
onFocus?: (e: any) => void;
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
labelClassName?: string;
|
|
11
|
+
type?: 'text' | 'number';
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
tabIndex?: number;
|
|
15
|
+
dataTestid?: string;
|
|
16
|
+
isRequiredField?: boolean;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
rootClassName?: string;
|
|
19
|
+
showLink?: boolean;
|
|
20
|
+
link?: string;
|
|
21
|
+
linkText?: string;
|
|
22
|
+
error?: React.ReactNode;
|
|
23
|
+
helperText?: string;
|
|
24
|
+
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Sentry from '@sentry/browser';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AsyncOptions,
|
|
3
|
+
import { AsyncOptions, UseSearchString } from './Types';
|
|
4
4
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
|
5
5
|
interface ConditionalWrapper<T> {
|
|
6
6
|
condition: boolean;
|
|
@@ -25,7 +25,6 @@ export declare function useForm(stateSchema: any, validationSchema: {}, callback
|
|
|
25
25
|
handleOnChange: (event: any) => void;
|
|
26
26
|
handleOnSubmit: (event: any) => void;
|
|
27
27
|
};
|
|
28
|
-
export declare function CustomInput({ name, value, error, onChange, onBlur, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, }: CustomInputProps): JSX.Element;
|
|
29
28
|
export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
|
|
30
29
|
export declare function useSearchString(): UseSearchString;
|
|
31
30
|
export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -563,22 +563,4 @@ export interface CiPipeline {
|
|
|
563
563
|
isOffendingMandatoryPlugin?: boolean;
|
|
564
564
|
pipelineType?: string;
|
|
565
565
|
}
|
|
566
|
-
export interface CustomInputProps {
|
|
567
|
-
name: string;
|
|
568
|
-
value: string;
|
|
569
|
-
error?: React.ReactNode;
|
|
570
|
-
onChange: (e: any) => void;
|
|
571
|
-
onBlur?: (e: any) => void;
|
|
572
|
-
onFocus?: (e: any) => void;
|
|
573
|
-
label?: React.ReactNode;
|
|
574
|
-
type?: string;
|
|
575
|
-
disabled?: boolean;
|
|
576
|
-
labelClassName?: string;
|
|
577
|
-
placeholder?: string;
|
|
578
|
-
tabIndex?: number;
|
|
579
|
-
dataTestid?: string;
|
|
580
|
-
isRequiredField?: boolean;
|
|
581
|
-
autoFocus?: boolean;
|
|
582
|
-
rootClassName?: string;
|
|
583
|
-
}
|
|
584
566
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -9836,28 +9836,6 @@ var moment$1 = {
|
|
|
9836
9836
|
|
|
9837
9837
|
var moment = momentExports;
|
|
9838
9838
|
|
|
9839
|
-
var _g$5;
|
|
9840
|
-
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
9841
|
-
var SvgIcWarning = function SvgIcWarning(props) {
|
|
9842
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
9843
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9844
|
-
width: "1em",
|
|
9845
|
-
height: "1em",
|
|
9846
|
-
viewBox: "0 0 32 32"
|
|
9847
|
-
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
9848
|
-
fill: "none",
|
|
9849
|
-
fillRule: "evenodd"
|
|
9850
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
9851
|
-
d: "M0 0h32v32H0z"
|
|
9852
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
9853
|
-
fill: "#FFCB5D",
|
|
9854
|
-
d: "M18.315 5.052 29.72 25.01A2.667 2.667 0 0 1 27.405 29H4.595a2.667 2.667 0 0 1-2.315-3.99L13.685 5.052a2.667 2.667 0 0 1 4.63 0z"
|
|
9855
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
9856
|
-
fill: "#FFF",
|
|
9857
|
-
d: "M16 22.667a1.333 1.333 0 1 1 0 2.666 1.333 1.333 0 0 1 0-2.666zM16 12c.736 0 1.333.597 1.333 1.333v6.334a1.333 1.333 0 1 1-2.666 0v-6.334c0-.736.597-1.333 1.333-1.333z"
|
|
9858
|
-
}))));
|
|
9859
|
-
};
|
|
9860
|
-
|
|
9861
9839
|
toast.configure({
|
|
9862
9840
|
autoClose: 3000,
|
|
9863
9841
|
hideProgressBar: true,
|
|
@@ -10086,22 +10064,6 @@ function useForm(stateSchema, validationSchema, callback) {
|
|
|
10086
10064
|
};
|
|
10087
10065
|
return { state: state, disable: disable, handleOnChange: handleOnChange, handleOnSubmit: handleOnSubmit };
|
|
10088
10066
|
}
|
|
10089
|
-
function handleError(error) {
|
|
10090
|
-
if (!error) {
|
|
10091
|
-
return [];
|
|
10092
|
-
}
|
|
10093
|
-
if (!Array.isArray(error)) {
|
|
10094
|
-
return [error];
|
|
10095
|
-
}
|
|
10096
|
-
return error;
|
|
10097
|
-
}
|
|
10098
|
-
function CustomInput(_a) {
|
|
10099
|
-
var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onBlur, onBlur = _b === void 0 ? function (e) { } : _b, _c = _a.onFocus, onFocus = _c === void 0 ? function (e) { } : _c, label = _a.label, _d = _a.type, type = _d === void 0 ? 'text' : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.labelClassName, labelClassName = _f === void 0 ? '' : _f, _g = _a.placeholder, placeholder = _g === void 0 ? '' : _g, _h = _a.tabIndex, tabIndex = _h === void 0 ? 1 : _h, _j = _a.dataTestid, dataTestid = _j === void 0 ? '' : _j, _k = _a.isRequiredField, isRequiredField = _k === void 0 ? false : _k, _l = _a.autoFocus, autoFocus = _l === void 0 ? true : _l, _m = _a.rootClassName, rootClassName = _m === void 0 ? '' : _m;
|
|
10100
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top" }, { children: [label ? (jsxRuntime.jsx("label", __assign({ className: "form__label ".concat(labelClassName, " ").concat(isRequiredField ? 'dc__required-field' : '') }, { children: label }))) : (''), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: "off", className: "form__input ".concat(rootClassName), onChange: function (e) {
|
|
10101
|
-
e.persist();
|
|
10102
|
-
onChange(e);
|
|
10103
|
-
}, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex, autoFocus: autoFocus }), handleError(error).map(function (err) { return (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), err] }), err)); })] })));
|
|
10104
|
-
}
|
|
10105
10067
|
function handleUTCTime(ts, isRelativeTime) {
|
|
10106
10068
|
if (isRelativeTime === void 0) { isRelativeTime = false; }
|
|
10107
10069
|
var timestamp = '';
|
|
@@ -10399,9 +10361,9 @@ var Modal = function (_a) {
|
|
|
10399
10361
|
};
|
|
10400
10362
|
|
|
10401
10363
|
var _path$c;
|
|
10402
|
-
function _extends$
|
|
10364
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
10403
10365
|
var SvgIcCross = function SvgIcCross(props) {
|
|
10404
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10366
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
10405
10367
|
width: "1em",
|
|
10406
10368
|
height: "1em",
|
|
10407
10369
|
viewBox: "0 0 24 24",
|
|
@@ -14707,9 +14669,9 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
14707
14669
|
var Tippy = index;
|
|
14708
14670
|
|
|
14709
14671
|
var _path$b;
|
|
14710
|
-
function _extends$
|
|
14672
|
+
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
14711
14673
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
14712
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14674
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
14713
14675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14714
14676
|
width: "1em",
|
|
14715
14677
|
height: "1em",
|
|
@@ -14722,9 +14684,9 @@ var SvgIcHelp = function SvgIcHelp(props) {
|
|
|
14722
14684
|
};
|
|
14723
14685
|
|
|
14724
14686
|
var _path$a;
|
|
14725
|
-
function _extends$
|
|
14687
|
+
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
14726
14688
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
14727
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14689
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
14728
14690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14729
14691
|
viewBox: "0 0 17 16",
|
|
14730
14692
|
width: "1em",
|
|
@@ -14782,9 +14744,9 @@ function TippyCustomized(props) {
|
|
|
14782
14744
|
}
|
|
14783
14745
|
|
|
14784
14746
|
var _path$9, _circle, _path2$1;
|
|
14785
|
-
function _extends$
|
|
14747
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
14786
14748
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
14787
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14749
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
14788
14750
|
width: "1em",
|
|
14789
14751
|
height: "1em",
|
|
14790
14752
|
viewBox: "0 0 20 20",
|
|
@@ -14819,9 +14781,9 @@ function PropagateTagInfo(_a) {
|
|
|
14819
14781
|
}
|
|
14820
14782
|
|
|
14821
14783
|
var _path$8;
|
|
14822
|
-
function _extends$
|
|
14784
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
14823
14785
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
14824
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14786
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
14825
14787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14826
14788
|
width: "1em",
|
|
14827
14789
|
height: "1em",
|
|
@@ -15061,9 +15023,9 @@ var TagDetails = function (_a) {
|
|
|
15061
15023
|
};
|
|
15062
15024
|
|
|
15063
15025
|
var _path$7;
|
|
15064
|
-
function _extends$
|
|
15026
|
+
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
15065
15027
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
15066
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15028
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
15067
15029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15068
15030
|
width: "1em",
|
|
15069
15031
|
height: "1em",
|
|
@@ -15198,8 +15160,8 @@ function ForceDeleteDialog(_a) {
|
|
|
15198
15160
|
return (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(DeleteDialog, __assign({ title: forceDeleteDialogTitle, delete: onClickDelete, closeDelete: closeDeleteModal, deletePrefix: "Force " }, { children: jsxRuntime.jsxs(DeleteDialog.Description, { children: [jsxRuntime.jsxs("p", __assign({ className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg" }, { children: ["Error: ", forceDeleteDialogMessage] })), jsxRuntime.jsx("p", { children: "Do you want to force delete?" })] }) })) }));
|
|
15199
15161
|
}
|
|
15200
15162
|
|
|
15201
|
-
function _extends$
|
|
15202
|
-
_extends$
|
|
15163
|
+
function _extends$e() {
|
|
15164
|
+
_extends$e = Object.assign ? Object.assign.bind() : function (target) {
|
|
15203
15165
|
for (var i = 1; i < arguments.length; i++) {
|
|
15204
15166
|
var source = arguments[i];
|
|
15205
15167
|
for (var key in source) {
|
|
@@ -15210,7 +15172,7 @@ function _extends$d() {
|
|
|
15210
15172
|
}
|
|
15211
15173
|
return target;
|
|
15212
15174
|
};
|
|
15213
|
-
return _extends$
|
|
15175
|
+
return _extends$e.apply(this, arguments);
|
|
15214
15176
|
}
|
|
15215
15177
|
|
|
15216
15178
|
/*
|
|
@@ -18751,7 +18713,7 @@ var Menu = function Menu(props) {
|
|
|
18751
18713
|
getStyles = props.getStyles,
|
|
18752
18714
|
innerRef = props.innerRef,
|
|
18753
18715
|
innerProps = props.innerProps;
|
|
18754
|
-
return jsx("div", _extends$
|
|
18716
|
+
return jsx("div", _extends$e({
|
|
18755
18717
|
css: getStyles('menu', props),
|
|
18756
18718
|
className: cx({
|
|
18757
18719
|
menu: true
|
|
@@ -18783,7 +18745,7 @@ var MenuList$1 = function MenuList(props) {
|
|
|
18783
18745
|
innerProps = props.innerProps,
|
|
18784
18746
|
innerRef = props.innerRef,
|
|
18785
18747
|
isMulti = props.isMulti;
|
|
18786
|
-
return jsx("div", _extends$
|
|
18748
|
+
return jsx("div", _extends$e({
|
|
18787
18749
|
css: getStyles('menuList', props),
|
|
18788
18750
|
className: cx({
|
|
18789
18751
|
'menu-list': true,
|
|
@@ -18814,7 +18776,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
18814
18776
|
cx = props.cx,
|
|
18815
18777
|
getStyles = props.getStyles,
|
|
18816
18778
|
innerProps = props.innerProps;
|
|
18817
|
-
return jsx("div", _extends$
|
|
18779
|
+
return jsx("div", _extends$e({
|
|
18818
18780
|
css: getStyles('noOptionsMessage', props),
|
|
18819
18781
|
className: cx({
|
|
18820
18782
|
'menu-notice': true,
|
|
@@ -18831,7 +18793,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
18831
18793
|
cx = props.cx,
|
|
18832
18794
|
getStyles = props.getStyles,
|
|
18833
18795
|
innerProps = props.innerProps;
|
|
18834
|
-
return jsx("div", _extends$
|
|
18796
|
+
return jsx("div", _extends$e({
|
|
18835
18797
|
css: getStyles('loadingMessage', props),
|
|
18836
18798
|
className: cx({
|
|
18837
18799
|
'menu-notice': true,
|
|
@@ -18919,7 +18881,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
18919
18881
|
rect: rect
|
|
18920
18882
|
}; // same wrapper element whether fixed or portalled
|
|
18921
18883
|
|
|
18922
|
-
var menuWrapper = jsx("div", _extends$
|
|
18884
|
+
var menuWrapper = jsx("div", _extends$e({
|
|
18923
18885
|
css: getStyles('menuPortal', state),
|
|
18924
18886
|
className: cx({
|
|
18925
18887
|
'menu-portal': true
|
|
@@ -18955,7 +18917,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
18955
18917
|
innerProps = props.innerProps,
|
|
18956
18918
|
isDisabled = props.isDisabled,
|
|
18957
18919
|
isRtl = props.isRtl;
|
|
18958
|
-
return jsx("div", _extends$
|
|
18920
|
+
return jsx("div", _extends$e({
|
|
18959
18921
|
css: getStyles('container', props),
|
|
18960
18922
|
className: cx({
|
|
18961
18923
|
'--is-disabled': isDisabled,
|
|
@@ -18990,7 +18952,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
18990
18952
|
isMulti = props.isMulti,
|
|
18991
18953
|
getStyles = props.getStyles,
|
|
18992
18954
|
hasValue = props.hasValue;
|
|
18993
|
-
return jsx("div", _extends$
|
|
18955
|
+
return jsx("div", _extends$e({
|
|
18994
18956
|
css: getStyles('valueContainer', props),
|
|
18995
18957
|
className: cx({
|
|
18996
18958
|
'value-container': true,
|
|
@@ -19016,7 +18978,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
19016
18978
|
cx = props.cx,
|
|
19017
18979
|
innerProps = props.innerProps,
|
|
19018
18980
|
getStyles = props.getStyles;
|
|
19019
|
-
return jsx("div", _extends$
|
|
18981
|
+
return jsx("div", _extends$e({
|
|
19020
18982
|
css: getStyles('indicatorsContainer', props),
|
|
19021
18983
|
className: cx({
|
|
19022
18984
|
indicators: true
|
|
@@ -19047,7 +19009,7 @@ var Svg = function Svg(_ref) {
|
|
|
19047
19009
|
var size = _ref.size,
|
|
19048
19010
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
19049
19011
|
|
|
19050
|
-
return jsx("svg", _extends$
|
|
19012
|
+
return jsx("svg", _extends$e({
|
|
19051
19013
|
height: size,
|
|
19052
19014
|
width: size,
|
|
19053
19015
|
viewBox: "0 0 20 20",
|
|
@@ -19058,14 +19020,14 @@ var Svg = function Svg(_ref) {
|
|
|
19058
19020
|
};
|
|
19059
19021
|
|
|
19060
19022
|
var CrossIcon = function CrossIcon(props) {
|
|
19061
|
-
return jsx(Svg, _extends$
|
|
19023
|
+
return jsx(Svg, _extends$e({
|
|
19062
19024
|
size: 20
|
|
19063
19025
|
}, props), jsx("path", {
|
|
19064
19026
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
19065
19027
|
}));
|
|
19066
19028
|
};
|
|
19067
19029
|
var DownChevron = function DownChevron(props) {
|
|
19068
|
-
return jsx(Svg, _extends$
|
|
19030
|
+
return jsx(Svg, _extends$e({
|
|
19069
19031
|
size: 20
|
|
19070
19032
|
}, props), jsx("path", {
|
|
19071
19033
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -19098,7 +19060,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
|
19098
19060
|
cx = props.cx,
|
|
19099
19061
|
getStyles = props.getStyles,
|
|
19100
19062
|
innerProps = props.innerProps;
|
|
19101
|
-
return jsx("div", _extends$
|
|
19063
|
+
return jsx("div", _extends$e({
|
|
19102
19064
|
css: getStyles('dropdownIndicator', props),
|
|
19103
19065
|
className: cx({
|
|
19104
19066
|
indicator: true,
|
|
@@ -19113,7 +19075,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
19113
19075
|
cx = props.cx,
|
|
19114
19076
|
getStyles = props.getStyles,
|
|
19115
19077
|
innerProps = props.innerProps;
|
|
19116
|
-
return jsx("div", _extends$
|
|
19078
|
+
return jsx("div", _extends$e({
|
|
19117
19079
|
css: getStyles('clearIndicator', props),
|
|
19118
19080
|
className: cx({
|
|
19119
19081
|
indicator: true,
|
|
@@ -19143,7 +19105,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
19143
19105
|
cx = props.cx,
|
|
19144
19106
|
getStyles = props.getStyles,
|
|
19145
19107
|
innerProps = props.innerProps;
|
|
19146
|
-
return jsx("span", _extends$
|
|
19108
|
+
return jsx("span", _extends$e({}, innerProps, {
|
|
19147
19109
|
css: getStyles('indicatorSeparator', props),
|
|
19148
19110
|
className: cx({
|
|
19149
19111
|
'indicator-separator': true
|
|
@@ -19198,7 +19160,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
19198
19160
|
getStyles = props.getStyles,
|
|
19199
19161
|
innerProps = props.innerProps,
|
|
19200
19162
|
isRtl = props.isRtl;
|
|
19201
|
-
return jsx("div", _extends$
|
|
19163
|
+
return jsx("div", _extends$e({
|
|
19202
19164
|
css: getStyles('loadingIndicator', props),
|
|
19203
19165
|
className: cx({
|
|
19204
19166
|
indicator: true,
|
|
@@ -19259,7 +19221,7 @@ var Control = function Control(props) {
|
|
|
19259
19221
|
innerRef = props.innerRef,
|
|
19260
19222
|
innerProps = props.innerProps,
|
|
19261
19223
|
menuIsOpen = props.menuIsOpen;
|
|
19262
|
-
return jsx("div", _extends$
|
|
19224
|
+
return jsx("div", _extends$e({
|
|
19263
19225
|
ref: innerRef,
|
|
19264
19226
|
css: getStyles('control', props),
|
|
19265
19227
|
className: cx({
|
|
@@ -19291,12 +19253,12 @@ var Group = function Group(props) {
|
|
|
19291
19253
|
label = props.label,
|
|
19292
19254
|
theme = props.theme,
|
|
19293
19255
|
selectProps = props.selectProps;
|
|
19294
|
-
return jsx("div", _extends$
|
|
19256
|
+
return jsx("div", _extends$e({
|
|
19295
19257
|
css: getStyles('group', props),
|
|
19296
19258
|
className: cx({
|
|
19297
19259
|
group: true
|
|
19298
19260
|
}, className)
|
|
19299
|
-
}, innerProps), jsx(Heading, _extends$
|
|
19261
|
+
}, innerProps), jsx(Heading, _extends$e({}, headingProps, {
|
|
19300
19262
|
selectProps: selectProps,
|
|
19301
19263
|
theme: theme,
|
|
19302
19264
|
getStyles: getStyles,
|
|
@@ -19328,7 +19290,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
19328
19290
|
_cleanCommonProps.data;
|
|
19329
19291
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
19330
19292
|
|
|
19331
|
-
return jsx("div", _extends$
|
|
19293
|
+
return jsx("div", _extends$e({
|
|
19332
19294
|
css: getStyles('groupHeading', props),
|
|
19333
19295
|
className: cx({
|
|
19334
19296
|
'group-heading': true
|
|
@@ -19404,7 +19366,7 @@ var Input = function Input(props) {
|
|
|
19404
19366
|
}, className),
|
|
19405
19367
|
css: getStyles('input', props),
|
|
19406
19368
|
"data-value": value || ''
|
|
19407
|
-
}, jsx("input", _extends$
|
|
19369
|
+
}, jsx("input", _extends$e({
|
|
19408
19370
|
className: cx({
|
|
19409
19371
|
input: true
|
|
19410
19372
|
}, inputClassName),
|
|
@@ -19474,7 +19436,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
19474
19436
|
function MultiValueRemove$1(_ref5) {
|
|
19475
19437
|
var children = _ref5.children,
|
|
19476
19438
|
innerProps = _ref5.innerProps;
|
|
19477
|
-
return jsx("div", _extends$
|
|
19439
|
+
return jsx("div", _extends$e({
|
|
19478
19440
|
role: "button"
|
|
19479
19441
|
}, innerProps), children || jsx(CrossIcon, {
|
|
19480
19442
|
size: 14
|
|
@@ -19563,7 +19525,7 @@ var Option$1 = function Option(props) {
|
|
|
19563
19525
|
isSelected = props.isSelected,
|
|
19564
19526
|
innerRef = props.innerRef,
|
|
19565
19527
|
innerProps = props.innerProps;
|
|
19566
|
-
return jsx("div", _extends$
|
|
19528
|
+
return jsx("div", _extends$e({
|
|
19567
19529
|
css: getStyles('option', props),
|
|
19568
19530
|
className: cx({
|
|
19569
19531
|
option: true,
|
|
@@ -19595,7 +19557,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19595
19557
|
cx = props.cx,
|
|
19596
19558
|
getStyles = props.getStyles,
|
|
19597
19559
|
innerProps = props.innerProps;
|
|
19598
|
-
return jsx("div", _extends$
|
|
19560
|
+
return jsx("div", _extends$e({
|
|
19599
19561
|
css: getStyles('placeholder', props),
|
|
19600
19562
|
className: cx({
|
|
19601
19563
|
placeholder: true
|
|
@@ -19628,7 +19590,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19628
19590
|
getStyles = props.getStyles,
|
|
19629
19591
|
isDisabled = props.isDisabled,
|
|
19630
19592
|
innerProps = props.innerProps;
|
|
19631
|
-
return jsx("div", _extends$
|
|
19593
|
+
return jsx("div", _extends$e({
|
|
19632
19594
|
css: getStyles('singleValue', props),
|
|
19633
19595
|
className: cx({
|
|
19634
19596
|
'single-value': true,
|
|
@@ -19876,7 +19838,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
19876
19838
|
};
|
|
19877
19839
|
|
|
19878
19840
|
var A11yText = function A11yText(props) {
|
|
19879
|
-
return jsx("span", _extends$
|
|
19841
|
+
return jsx("span", _extends$e({
|
|
19880
19842
|
css: _ref
|
|
19881
19843
|
}, props));
|
|
19882
19844
|
};
|
|
@@ -20412,7 +20374,7 @@ function DummyInput(_ref) {
|
|
|
20412
20374
|
var innerRef = _ref.innerRef,
|
|
20413
20375
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20414
20376
|
|
|
20415
|
-
return jsx("input", _extends$
|
|
20377
|
+
return jsx("input", _extends$e({
|
|
20416
20378
|
ref: innerRef
|
|
20417
20379
|
}, props, {
|
|
20418
20380
|
css: /*#__PURE__*/css$2({
|
|
@@ -22047,7 +22009,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22047
22009
|
|
|
22048
22010
|
if (!isSearchable) {
|
|
22049
22011
|
// use a dummy input to maintain focus/blur functionality
|
|
22050
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
22012
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$e({
|
|
22051
22013
|
id: id,
|
|
22052
22014
|
innerRef: this.getInputRef,
|
|
22053
22015
|
onBlur: this.onInputBlur,
|
|
@@ -22061,7 +22023,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22061
22023
|
}, ariaAttributes));
|
|
22062
22024
|
}
|
|
22063
22025
|
|
|
22064
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
22026
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$e({}, commonProps, {
|
|
22065
22027
|
autoCapitalize: "none",
|
|
22066
22028
|
autoComplete: "off",
|
|
22067
22029
|
autoCorrect: "off",
|
|
@@ -22105,7 +22067,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22105
22067
|
isFocused = _this$state5.isFocused;
|
|
22106
22068
|
|
|
22107
22069
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
22108
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
22070
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$e({}, commonProps, {
|
|
22109
22071
|
key: "placeholder",
|
|
22110
22072
|
isDisabled: isDisabled,
|
|
22111
22073
|
isFocused: isFocused,
|
|
@@ -22119,7 +22081,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22119
22081
|
return selectValue.map(function (opt, index) {
|
|
22120
22082
|
var isOptionFocused = opt === focusedValue;
|
|
22121
22083
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
22122
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
22084
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$e({}, commonProps, {
|
|
22123
22085
|
components: {
|
|
22124
22086
|
Container: MultiValueContainer,
|
|
22125
22087
|
Label: MultiValueLabel,
|
|
@@ -22151,7 +22113,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22151
22113
|
}
|
|
22152
22114
|
|
|
22153
22115
|
var singleValue = selectValue[0];
|
|
22154
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
22116
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$e({}, commonProps, {
|
|
22155
22117
|
data: singleValue,
|
|
22156
22118
|
isDisabled: isDisabled
|
|
22157
22119
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -22177,7 +22139,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22177
22139
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
22178
22140
|
'aria-hidden': 'true'
|
|
22179
22141
|
};
|
|
22180
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
22142
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$e({}, commonProps, {
|
|
22181
22143
|
innerProps: innerProps,
|
|
22182
22144
|
isFocused: isFocused
|
|
22183
22145
|
}));
|
|
@@ -22197,7 +22159,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22197
22159
|
var innerProps = {
|
|
22198
22160
|
'aria-hidden': 'true'
|
|
22199
22161
|
};
|
|
22200
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
22162
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$e({}, commonProps, {
|
|
22201
22163
|
innerProps: innerProps,
|
|
22202
22164
|
isDisabled: isDisabled,
|
|
22203
22165
|
isFocused: isFocused
|
|
@@ -22215,7 +22177,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22215
22177
|
var commonProps = this.commonProps;
|
|
22216
22178
|
var isDisabled = this.props.isDisabled;
|
|
22217
22179
|
var isFocused = this.state.isFocused;
|
|
22218
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
22180
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$e({}, commonProps, {
|
|
22219
22181
|
isDisabled: isDisabled,
|
|
22220
22182
|
isFocused: isFocused
|
|
22221
22183
|
}));
|
|
@@ -22235,7 +22197,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22235
22197
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
22236
22198
|
'aria-hidden': 'true'
|
|
22237
22199
|
};
|
|
22238
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
22200
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$e({}, commonProps, {
|
|
22239
22201
|
innerProps: innerProps,
|
|
22240
22202
|
isDisabled: isDisabled,
|
|
22241
22203
|
isFocused: isFocused
|
|
@@ -22298,7 +22260,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22298
22260
|
onMouseOver: onHover,
|
|
22299
22261
|
tabIndex: -1
|
|
22300
22262
|
};
|
|
22301
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
22263
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$e({}, commonProps, {
|
|
22302
22264
|
innerProps: innerProps,
|
|
22303
22265
|
data: data,
|
|
22304
22266
|
isDisabled: isDisabled,
|
|
@@ -22322,7 +22284,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22322
22284
|
groupIndex = item.index;
|
|
22323
22285
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
22324
22286
|
var headingId = "".concat(groupId, "-heading");
|
|
22325
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
22287
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$e({}, commonProps, {
|
|
22326
22288
|
key: groupId,
|
|
22327
22289
|
data: _data,
|
|
22328
22290
|
options: options,
|
|
@@ -22361,12 +22323,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22361
22323
|
menuPosition: menuPosition,
|
|
22362
22324
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
22363
22325
|
};
|
|
22364
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
22326
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$e({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
22365
22327
|
var ref = _ref4.ref,
|
|
22366
22328
|
_ref4$placerProps = _ref4.placerProps,
|
|
22367
22329
|
placement = _ref4$placerProps.placement,
|
|
22368
22330
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
22369
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
22331
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$e({}, commonProps, menuPlacementProps, {
|
|
22370
22332
|
innerRef: ref,
|
|
22371
22333
|
innerProps: {
|
|
22372
22334
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -22381,7 +22343,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22381
22343
|
onBottomArrive: onMenuScrollToBottom,
|
|
22382
22344
|
lockEnabled: menuShouldBlockScroll
|
|
22383
22345
|
}, function (scrollTargetRef) {
|
|
22384
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
22346
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$e({}, commonProps, {
|
|
22385
22347
|
innerRef: function innerRef(instance) {
|
|
22386
22348
|
_this4.getMenuListRef(instance);
|
|
22387
22349
|
|
|
@@ -22396,7 +22358,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22396
22358
|
// so we use the same component. the actual portalling logic is forked
|
|
22397
22359
|
// within the component based on `menuPosition`
|
|
22398
22360
|
|
|
22399
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
22361
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$e({}, commonProps, {
|
|
22400
22362
|
appendTo: menuPortalTarget,
|
|
22401
22363
|
controlElement: this.controlRef,
|
|
22402
22364
|
menuPlacement: menuPlacement,
|
|
@@ -22461,7 +22423,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22461
22423
|
isFocused = _this$state6.isFocused,
|
|
22462
22424
|
selectValue = _this$state6.selectValue;
|
|
22463
22425
|
var focusableOptions = this.getFocusableOptions();
|
|
22464
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
22426
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$e({}, commonProps, {
|
|
22465
22427
|
id: this.getElementId('live-region'),
|
|
22466
22428
|
ariaSelection: ariaSelection,
|
|
22467
22429
|
focusedOption: focusedOption,
|
|
@@ -22487,7 +22449,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22487
22449
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
22488
22450
|
var isFocused = this.state.isFocused;
|
|
22489
22451
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
22490
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
22452
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$e({}, commonProps, {
|
|
22491
22453
|
className: className,
|
|
22492
22454
|
innerProps: {
|
|
22493
22455
|
id: id,
|
|
@@ -22495,7 +22457,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22495
22457
|
},
|
|
22496
22458
|
isDisabled: isDisabled,
|
|
22497
22459
|
isFocused: isFocused
|
|
22498
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
22460
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$e({}, commonProps, {
|
|
22499
22461
|
innerRef: this.getControlRef,
|
|
22500
22462
|
innerProps: {
|
|
22501
22463
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -22504,9 +22466,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22504
22466
|
isDisabled: isDisabled,
|
|
22505
22467
|
isFocused: isFocused,
|
|
22506
22468
|
menuIsOpen: menuIsOpen
|
|
22507
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
22469
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$e({}, commonProps, {
|
|
22508
22470
|
isDisabled: isDisabled
|
|
22509
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
22471
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$e({}, commonProps, {
|
|
22510
22472
|
isDisabled: isDisabled
|
|
22511
22473
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
22512
22474
|
}
|
|
@@ -22579,22 +22541,22 @@ Select$1.defaultProps = defaultProps;
|
|
|
22579
22541
|
|
|
22580
22542
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22581
22543
|
var baseSelectProps = useStateManager(props);
|
|
22582
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
22544
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$e({
|
|
22583
22545
|
ref: ref
|
|
22584
22546
|
}, baseSelectProps));
|
|
22585
22547
|
});
|
|
22586
22548
|
|
|
22587
22549
|
var ReactSelect = StateManagedSelect;
|
|
22588
22550
|
|
|
22589
|
-
var _g$
|
|
22590
|
-
function _extends$
|
|
22551
|
+
var _g$5;
|
|
22552
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
22591
22553
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
22592
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22554
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
22593
22555
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22594
22556
|
viewBox: "0 0 28 28",
|
|
22595
22557
|
width: "1em",
|
|
22596
22558
|
height: "1em"
|
|
22597
|
-
}, props), _g$
|
|
22559
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
22598
22560
|
fill: "none",
|
|
22599
22561
|
fillRule: "evenodd",
|
|
22600
22562
|
transform: "translate(2 2)"
|
|
@@ -22611,9 +22573,9 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
22611
22573
|
};
|
|
22612
22574
|
|
|
22613
22575
|
var _path$6;
|
|
22614
|
-
function _extends$
|
|
22576
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
22615
22577
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
22616
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22578
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
22617
22579
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22618
22580
|
width: "1em",
|
|
22619
22581
|
height: "1em",
|
|
@@ -22629,15 +22591,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
22629
22591
|
})));
|
|
22630
22592
|
};
|
|
22631
22593
|
|
|
22632
|
-
var _g$
|
|
22633
|
-
function _extends$
|
|
22594
|
+
var _g$4;
|
|
22595
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
22634
22596
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
22635
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22597
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
22636
22598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22637
22599
|
width: "1em",
|
|
22638
22600
|
height: "1em",
|
|
22639
22601
|
viewBox: "0 0 20 21"
|
|
22640
|
-
}, props), _g$
|
|
22602
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
22641
22603
|
fill: "none",
|
|
22642
22604
|
fillRule: "evenodd"
|
|
22643
22605
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -23106,15 +23068,15 @@ exports.ConsequenceAction = void 0;
|
|
|
23106
23068
|
ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
|
|
23107
23069
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
23108
23070
|
|
|
23109
|
-
var _g$
|
|
23110
|
-
function _extends$
|
|
23071
|
+
var _g$3;
|
|
23072
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
23111
23073
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
23112
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23074
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
23113
23075
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23114
23076
|
width: "1em",
|
|
23115
23077
|
height: "1em",
|
|
23116
23078
|
viewBox: "0 0 32 32"
|
|
23117
|
-
}, props), _g$
|
|
23079
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
23118
23080
|
fill: "none",
|
|
23119
23081
|
fillRule: "evenodd"
|
|
23120
23082
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -23189,9 +23151,9 @@ function DeleteComponent(_a) {
|
|
|
23189
23151
|
}
|
|
23190
23152
|
|
|
23191
23153
|
var _path$5;
|
|
23192
|
-
function _extends$
|
|
23154
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
23193
23155
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
23194
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23156
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
23195
23157
|
width: "1em",
|
|
23196
23158
|
height: "1em",
|
|
23197
23159
|
viewBox: "0 0 20 20",
|
|
@@ -23207,9 +23169,9 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
23207
23169
|
};
|
|
23208
23170
|
|
|
23209
23171
|
var _path$4, _path2, _path3;
|
|
23210
|
-
function _extends$
|
|
23172
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
23211
23173
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
23212
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23174
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
23213
23175
|
width: "1em",
|
|
23214
23176
|
height: "1em",
|
|
23215
23177
|
viewBox: "0 0 12 12",
|
|
@@ -23234,9 +23196,9 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
23234
23196
|
};
|
|
23235
23197
|
|
|
23236
23198
|
var _path$3;
|
|
23237
|
-
function _extends$
|
|
23199
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
23238
23200
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
23239
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23201
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
23240
23202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23241
23203
|
width: "1em",
|
|
23242
23204
|
height: "1em",
|
|
@@ -23249,6 +23211,28 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
23249
23211
|
})));
|
|
23250
23212
|
};
|
|
23251
23213
|
|
|
23214
|
+
var _g$2;
|
|
23215
|
+
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
23216
|
+
var SvgIcWarning = function SvgIcWarning(props) {
|
|
23217
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
23218
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23219
|
+
width: "1em",
|
|
23220
|
+
height: "1em",
|
|
23221
|
+
viewBox: "0 0 32 32"
|
|
23222
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
23223
|
+
fill: "none",
|
|
23224
|
+
fillRule: "evenodd"
|
|
23225
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
23226
|
+
d: "M0 0h32v32H0z"
|
|
23227
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
23228
|
+
fill: "#FFCB5D",
|
|
23229
|
+
d: "M18.315 5.052 29.72 25.01A2.667 2.667 0 0 1 27.405 29H4.595a2.667 2.667 0 0 1-2.315-3.99L13.685 5.052a2.667 2.667 0 0 1 4.63 0z"
|
|
23230
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
23231
|
+
fill: "#FFF",
|
|
23232
|
+
d: "M16 22.667a1.333 1.333 0 1 1 0 2.666 1.333 1.333 0 0 1 0-2.666zM16 12c.736 0 1.333.597 1.333 1.333v6.334a1.333 1.333 0 1 1-2.666 0v-6.334c0-.736.597-1.333 1.333-1.333z"
|
|
23233
|
+
}))));
|
|
23234
|
+
};
|
|
23235
|
+
|
|
23252
23236
|
var _g$1;
|
|
23253
23237
|
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
23254
23238
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
@@ -26639,6 +26623,26 @@ function DevtronProgressing(_a) {
|
|
|
26639
26623
|
return (jsxRuntime.jsx("div", __assign({ className: parentClasses ? parentClasses : '' }, { children: jsxRuntime.jsx(SvgIcRotateDevtron, { className: classes ? classes : '' }) })));
|
|
26640
26624
|
}
|
|
26641
26625
|
|
|
26626
|
+
function CustomInput(_a) {
|
|
26627
|
+
var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onBlur, onBlur = _b === void 0 ? function (e) { } : _b, _c = _a.onFocus, onFocus = _c === void 0 ? function (e) { } : _c, label = _a.label, _d = _a.type, type = _d === void 0 ? 'text' : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.labelClassName, labelClassName = _f === void 0 ? '' : _f, _g = _a.placeholder, placeholder = _g === void 0 ? '' : _g, _h = _a.tabIndex, tabIndex = _h === void 0 ? 1 : _h, _j = _a.dataTestid, dataTestid = _j === void 0 ? '' : _j, _k = _a.isRequiredField, isRequiredField = _k === void 0 ? false : _k, _l = _a.autoFocus, autoFocus = _l === void 0 ? true : _l, _m = _a.rootClassName, rootClassName = _m === void 0 ? '' : _m, _o = _a.autoComplete, autoComplete = _o === void 0 ? 'off' : _o, _p = _a.showLink, showLink = _p === void 0 ? false : _p, _q = _a.linkText, linkText = _q === void 0 ? '' : _q, _r = _a.link, link = _r === void 0 ? '' : _r, _s = _a.helperText, helperText = _s === void 0 ? '' : _s;
|
|
26628
|
+
var renderLabelHelperText = function () {
|
|
26629
|
+
return (jsxRuntime.jsx("span", { children: jsxRuntime.jsx("a", __assign({ target: "_blank", href: link, className: "cursor fs-13 onlink" }, { children: linkText })) }));
|
|
26630
|
+
};
|
|
26631
|
+
function handleError(error) {
|
|
26632
|
+
if (!error) {
|
|
26633
|
+
return [];
|
|
26634
|
+
}
|
|
26635
|
+
if (!Array.isArray(error)) {
|
|
26636
|
+
return [error];
|
|
26637
|
+
}
|
|
26638
|
+
return error;
|
|
26639
|
+
}
|
|
26640
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top" }, { children: [label && (jsxRuntime.jsxs("label", __assign({ className: "form__label ".concat(labelClassName, " ").concat(isRequiredField ? 'dc__required-field' : ''), "data-testid": "label-".concat(dataTestid) }, { children: [label, " ", showLink && renderLabelHelperText()] }))), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: autoComplete, className: "form__input ".concat(rootClassName), onChange: function (e) {
|
|
26641
|
+
e.persist();
|
|
26642
|
+
onChange(e);
|
|
26643
|
+
}, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex, autoFocus: autoFocus }), handleError(error).map(function (err) { return (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), err] }), err)); }), helperText ? (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", __assign({ className: "form__text-field-info" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "form__icon form__icon--info" }), jsxRuntime.jsx("p", __assign({ className: "sentence-case" }, { children: helperText }))] })) })) : null] })));
|
|
26644
|
+
}
|
|
26645
|
+
|
|
26642
26646
|
exports.AppStatus = AppStatus;
|
|
26643
26647
|
exports.BreadCrumb = BreadCrumb;
|
|
26644
26648
|
exports.BreadcrumbStore = Store;
|
package/package.json
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { CustomInputProps } from "./Types"
|
|
2
|
+
import { ReactComponent as Info } from '../../Assets/Icon/ic-info-filled.svg'
|
|
3
|
+
import { ReactComponent as FormError } from '../../Assets/Icon/ic-warning.svg'
|
|
4
|
+
|
|
5
|
+
export function CustomInput({
|
|
6
|
+
name,
|
|
7
|
+
value,
|
|
8
|
+
error,
|
|
9
|
+
onChange,
|
|
10
|
+
onBlur = (e) => {},
|
|
11
|
+
onFocus = (e) => {},
|
|
12
|
+
label,
|
|
13
|
+
type = 'text',
|
|
14
|
+
disabled = false,
|
|
15
|
+
labelClassName = '',
|
|
16
|
+
placeholder = '',
|
|
17
|
+
tabIndex = 1,
|
|
18
|
+
dataTestid = '',
|
|
19
|
+
isRequiredField = false,
|
|
20
|
+
autoFocus = true,
|
|
21
|
+
rootClassName = '',
|
|
22
|
+
autoComplete = 'off',
|
|
23
|
+
showLink= false,
|
|
24
|
+
linkText= '',
|
|
25
|
+
link= '',
|
|
26
|
+
helperText= '',
|
|
27
|
+
}: CustomInputProps) {
|
|
28
|
+
|
|
29
|
+
const renderLabelHelperText = () => {
|
|
30
|
+
return (
|
|
31
|
+
<span>
|
|
32
|
+
<a target="_blank" href={link} className="cursor fs-13 onlink">
|
|
33
|
+
{linkText}
|
|
34
|
+
</a>
|
|
35
|
+
</span>
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function handleError(error: any): any[] {
|
|
40
|
+
if (!error) {
|
|
41
|
+
return []
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (!Array.isArray(error)) {
|
|
45
|
+
return [error]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return error
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<div className="flex column left top">
|
|
53
|
+
{label && (
|
|
54
|
+
<label className={`form__label ${labelClassName} ${isRequiredField ? 'dc__required-field' : ''}`} data-testid={`label-${dataTestid}`}>
|
|
55
|
+
{label} {showLink && renderLabelHelperText()}
|
|
56
|
+
</label>
|
|
57
|
+
)}
|
|
58
|
+
<input
|
|
59
|
+
data-testid={dataTestid}
|
|
60
|
+
type={type}
|
|
61
|
+
name={name}
|
|
62
|
+
autoComplete={autoComplete}
|
|
63
|
+
className={`form__input ${rootClassName}`}
|
|
64
|
+
onChange={(e) => {
|
|
65
|
+
e.persist()
|
|
66
|
+
onChange(e)
|
|
67
|
+
}}
|
|
68
|
+
onBlur={onBlur}
|
|
69
|
+
onFocus={onFocus}
|
|
70
|
+
placeholder={placeholder}
|
|
71
|
+
value={value}
|
|
72
|
+
disabled={disabled}
|
|
73
|
+
tabIndex={tabIndex}
|
|
74
|
+
autoFocus={autoFocus}
|
|
75
|
+
/>
|
|
76
|
+
{handleError(error).map((err) => (
|
|
77
|
+
<div className="form__error" key={err}>
|
|
78
|
+
<FormError className="form__icon form__icon--error" />
|
|
79
|
+
{err}
|
|
80
|
+
</div>
|
|
81
|
+
))}
|
|
82
|
+
{helperText ? (
|
|
83
|
+
<>
|
|
84
|
+
<div className="form__text-field-info">
|
|
85
|
+
<Info className="form__icon form__icon--info" />
|
|
86
|
+
<p className="sentence-case">{helperText}</p>
|
|
87
|
+
</div>
|
|
88
|
+
</>
|
|
89
|
+
) : null}
|
|
90
|
+
</div>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CustomInputProps {
|
|
2
|
+
name: string
|
|
3
|
+
value: string | number
|
|
4
|
+
onChange: (e: any) => void
|
|
5
|
+
onBlur?: (e: any) => void
|
|
6
|
+
onFocus?: (e: any) => void
|
|
7
|
+
autoComplete?: string
|
|
8
|
+
label?: React.ReactNode
|
|
9
|
+
labelClassName?: string
|
|
10
|
+
type?: 'text' | 'number'
|
|
11
|
+
disabled?: boolean
|
|
12
|
+
placeholder?: string
|
|
13
|
+
tabIndex?: number
|
|
14
|
+
dataTestid?: string
|
|
15
|
+
isRequiredField?: boolean
|
|
16
|
+
autoFocus?: boolean
|
|
17
|
+
rootClassName?: string
|
|
18
|
+
showLink?: boolean
|
|
19
|
+
link?: string
|
|
20
|
+
linkText?: string
|
|
21
|
+
error?: React.ReactNode
|
|
22
|
+
helperText?: string;
|
|
23
|
+
}
|
package/src/Common/Helper.tsx
CHANGED
|
@@ -3,11 +3,10 @@ import moment from 'moment'
|
|
|
3
3
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
4
4
|
import { useLocation } from 'react-router-dom'
|
|
5
5
|
import { toast } from 'react-toastify'
|
|
6
|
-
import { ReactComponent as FormError } from '../Assets/Icon/ic-warning.svg'
|
|
7
6
|
import { ERROR_EMPTY_SCREEN, TOKEN_COOKIE_NAME } from './Constants'
|
|
8
7
|
import { ServerErrors } from './ServerError'
|
|
9
8
|
import { toastAccessDenied } from './ToastBody'
|
|
10
|
-
import { AsyncOptions, AsyncState,
|
|
9
|
+
import { AsyncOptions, AsyncState, UseSearchString } from './Types'
|
|
11
10
|
|
|
12
11
|
toast.configure({
|
|
13
12
|
autoClose: 3000,
|
|
@@ -277,73 +276,6 @@ export function useForm(stateSchema, validationSchema = {}, callback) {
|
|
|
277
276
|
return { state, disable, handleOnChange, handleOnSubmit }
|
|
278
277
|
}
|
|
279
278
|
|
|
280
|
-
function handleError(error: any): any[] {
|
|
281
|
-
if (!error) {
|
|
282
|
-
return []
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if (!Array.isArray(error)) {
|
|
286
|
-
return [error]
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
return error
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export function CustomInput({
|
|
293
|
-
name,
|
|
294
|
-
value,
|
|
295
|
-
error,
|
|
296
|
-
onChange,
|
|
297
|
-
onBlur = (e) => {},
|
|
298
|
-
onFocus = (e) => {},
|
|
299
|
-
label,
|
|
300
|
-
type = 'text',
|
|
301
|
-
disabled = false,
|
|
302
|
-
labelClassName = '',
|
|
303
|
-
placeholder = '',
|
|
304
|
-
tabIndex = 1,
|
|
305
|
-
dataTestid = '',
|
|
306
|
-
isRequiredField = false,
|
|
307
|
-
autoFocus = true,
|
|
308
|
-
rootClassName = '',
|
|
309
|
-
}: CustomInputProps) {
|
|
310
|
-
return (
|
|
311
|
-
<div className="flex column left top">
|
|
312
|
-
{label ? (
|
|
313
|
-
<label className={`form__label ${labelClassName} ${isRequiredField ? 'dc__required-field' : ''}`}>
|
|
314
|
-
{label}
|
|
315
|
-
</label>
|
|
316
|
-
) : (
|
|
317
|
-
''
|
|
318
|
-
)}
|
|
319
|
-
<input
|
|
320
|
-
data-testid={dataTestid}
|
|
321
|
-
type={type}
|
|
322
|
-
name={name}
|
|
323
|
-
autoComplete="off"
|
|
324
|
-
className={`form__input ${rootClassName}`}
|
|
325
|
-
onChange={(e) => {
|
|
326
|
-
e.persist()
|
|
327
|
-
onChange(e)
|
|
328
|
-
}}
|
|
329
|
-
onBlur={onBlur}
|
|
330
|
-
onFocus={onFocus}
|
|
331
|
-
placeholder={placeholder}
|
|
332
|
-
value={value}
|
|
333
|
-
disabled={disabled}
|
|
334
|
-
tabIndex={tabIndex}
|
|
335
|
-
autoFocus={autoFocus}
|
|
336
|
-
/>
|
|
337
|
-
{handleError(error).map((err) => (
|
|
338
|
-
<div className="form__error" key={err}>
|
|
339
|
-
<FormError className="form__icon form__icon--error" />
|
|
340
|
-
{err}
|
|
341
|
-
</div>
|
|
342
|
-
))}
|
|
343
|
-
</div>
|
|
344
|
-
)
|
|
345
|
-
}
|
|
346
|
-
|
|
347
279
|
export function handleUTCTime(ts: string, isRelativeTime = false) {
|
|
348
280
|
let timestamp = ''
|
|
349
281
|
try {
|
package/src/Common/Types.ts
CHANGED
|
@@ -622,23 +622,4 @@ export interface CiPipeline {
|
|
|
622
622
|
}
|
|
623
623
|
isOffendingMandatoryPlugin?: boolean
|
|
624
624
|
pipelineType?: string
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export interface CustomInputProps {
|
|
628
|
-
name: string
|
|
629
|
-
value: string
|
|
630
|
-
error?: React.ReactNode
|
|
631
|
-
onChange: (e: any) => void
|
|
632
|
-
onBlur?: (e: any) => void
|
|
633
|
-
onFocus?: (e: any) => void
|
|
634
|
-
label?: React.ReactNode
|
|
635
|
-
type?: string
|
|
636
|
-
disabled?: boolean
|
|
637
|
-
labelClassName?: string
|
|
638
|
-
placeholder?: string
|
|
639
|
-
tabIndex?: number
|
|
640
|
-
dataTestid?: string
|
|
641
|
-
isRequiredField?: boolean
|
|
642
|
-
autoFocus?: boolean
|
|
643
|
-
rootClassName?: string
|
|
644
625
|
}
|
package/src/Common/index.ts
CHANGED