@devtron-labs/devtron-fe-common-lib 0.0.58-beta-22 → 0.0.58-beta-25
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/Api.d.ts +0 -9
- package/dist/Common/Constants.d.ts +0 -1
- package/dist/Common/Helper.d.ts +4 -1
- package/dist/Common/Types.d.ts +2 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +188 -1150
- package/package.json +1 -1
- package/src/Common/Api.ts +0 -21
- package/src/Common/BreadCrumb/Types.ts +1 -0
- package/src/Common/Checkbox.tsx +0 -1
- package/src/Common/Constants.ts +1 -2
- package/src/Common/CustomInput/CustomInput.tsx +1 -2
- package/src/Common/DraggableWrapper/DraggableWrapper.tsx +1 -3
- package/src/Common/Helper.tsx +30 -16
- package/src/Common/RJSF/utils.ts +0 -2
- package/src/Common/SearchBar/SearchBar.component.tsx +13 -24
- package/src/Common/SearchBar/searchBar.scss +1 -1
- package/src/Common/Types.ts +1 -2
- package/src/index.ts +1 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +0 -7
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +0 -4
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -52
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +0 -7
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +0 -6
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +0 -286
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -12
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +0 -4
- package/dist/Shared/Components/APIResponseHandler/constants.d.ts +0 -4
- package/dist/Shared/Components/APIResponseHandler/index.d.ts +0 -2
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +0 -37
- package/dist/Shared/Components/ReactSelect/index.d.ts +0 -1
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -12
- package/dist/Shared/Components/index.d.ts +0 -2
- package/dist/Shared/Helpers.d.ts +0 -16
- package/dist/Shared/index.d.ts +0 -3
- package/dist/Shared/validations.d.ts +0 -7
- package/src/Assets/Icon/ic-cpu.svg +0 -4
- package/src/Assets/Icon/ic-memory.svg +0 -3
- package/src/Assets/Icon/ic-timer.svg +0 -3
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.tsx +0 -128
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.tsx +0 -44
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.tsx +0 -106
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.tsx +0 -55
- package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.tsx +0 -32
- package/src/Pages/GlobalConfigurations/BuildInfra/Descriptor.tsx +0 -45
- package/src/Pages/GlobalConfigurations/BuildInfra/Footer.tsx +0 -55
- package/src/Pages/GlobalConfigurations/BuildInfra/Readme.md +0 -4
- package/src/Pages/GlobalConfigurations/BuildInfra/constants.tsx +0 -141
- package/src/Pages/GlobalConfigurations/BuildInfra/index.ts +0 -7
- package/src/Pages/GlobalConfigurations/BuildInfra/services.tsx +0 -167
- package/src/Pages/GlobalConfigurations/BuildInfra/types.tsx +0 -339
- package/src/Pages/GlobalConfigurations/BuildInfra/utils.tsx +0 -508
- package/src/Pages/GlobalConfigurations/index.ts +0 -1
- package/src/Pages/index.ts +0 -1
- package/src/Shared/Components/APIResponseHandler/APIResponseHandler.tsx +0 -41
- package/src/Shared/Components/APIResponseHandler/constants.tsx +0 -5
- package/src/Shared/Components/APIResponseHandler/index.ts +0 -2
- package/src/Shared/Components/APIResponseHandler/types.tsx +0 -39
- package/src/Shared/Components/ReactSelect/index.ts +0 -1
- package/src/Shared/Components/ReactSelect/utils.tsx +0 -97
- package/src/Shared/Components/index.ts +0 -2
- package/src/Shared/Helpers.tsx +0 -29
- package/src/Shared/index.ts +0 -3
- package/src/Shared/validations.tsx +0 -72
package/dist/index.js
CHANGED
|
@@ -50,8 +50,7 @@ var ROUTES = {
|
|
|
50
50
|
USER_CHECK_ROLE: 'user/check/roles',
|
|
51
51
|
IMAGE_TAGGING: 'app/image-tagging',
|
|
52
52
|
CD_MATERIAL_GET: 'app/cd-pipeline',
|
|
53
|
-
DEPLOYMENT_TEMPLATE_LIST: 'app/template/list'
|
|
54
|
-
INFRA_CONFIG_PROFILE: 'infra-config/profile',
|
|
53
|
+
DEPLOYMENT_TEMPLATE_LIST: 'app/template/list'
|
|
55
54
|
};
|
|
56
55
|
exports.KEY_VALUE = void 0;
|
|
57
56
|
(function (KEY_VALUE) {
|
|
@@ -430,7 +429,6 @@ exports.CHECKBOX_VALUE = void 0;
|
|
|
430
429
|
(function (CHECKBOX_VALUE) {
|
|
431
430
|
CHECKBOX_VALUE["CHECKED"] = "CHECKED";
|
|
432
431
|
CHECKBOX_VALUE["INTERMEDIATE"] = "INTERMEDIATE";
|
|
433
|
-
CHECKBOX_VALUE["BULK_CHECKED"] = "BULK_CHECKED";
|
|
434
432
|
})(exports.CHECKBOX_VALUE || (exports.CHECKBOX_VALUE = {}));
|
|
435
433
|
exports.ImageType = void 0;
|
|
436
434
|
(function (ImageType) {
|
|
@@ -734,22 +732,6 @@ var get = function (url, options) {
|
|
|
734
732
|
};
|
|
735
733
|
var trash = function (url, data, options) {
|
|
736
734
|
return fetchInTime(url, 'DELETE', data, options);
|
|
737
|
-
};
|
|
738
|
-
/**
|
|
739
|
-
* Aborts the previous request before triggering next request
|
|
740
|
-
*/
|
|
741
|
-
var abortPreviousRequests = function (callback, abortControllerRef) {
|
|
742
|
-
abortControllerRef.current.abort();
|
|
743
|
-
// eslint-disable-next-line no-param-reassign
|
|
744
|
-
abortControllerRef.current = new AbortController();
|
|
745
|
-
return callback();
|
|
746
|
-
};
|
|
747
|
-
/**
|
|
748
|
-
* Returns true if the error is due to a aborted request
|
|
749
|
-
*/
|
|
750
|
-
var getIsRequestAborted = function (error) {
|
|
751
|
-
// The 0 code is common for aborted and blocked requests
|
|
752
|
-
return error && error.code === 0 && error.message === 'The user aborted a request.';
|
|
753
735
|
};
|
|
754
736
|
|
|
755
737
|
function styleInject(css, ref) {
|
|
@@ -783,9 +765,9 @@ var css_248z$9 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n heig
|
|
|
783
765
|
styleInject(css_248z$9);
|
|
784
766
|
|
|
785
767
|
var _g$7;
|
|
786
|
-
function _extends$
|
|
768
|
+
function _extends$o() { _extends$o = 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$o.apply(this, arguments); }
|
|
787
769
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
788
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
770
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
789
771
|
xmlns: "http://www.w3.org/2000/svg",
|
|
790
772
|
viewBox: "0 0 24 24",
|
|
791
773
|
width: "1em",
|
|
@@ -837,8 +819,8 @@ EmptyState.Loading = Loading;
|
|
|
837
819
|
|
|
838
820
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
839
821
|
|
|
840
|
-
function _extends$
|
|
841
|
-
_extends$
|
|
822
|
+
function _extends$n() {
|
|
823
|
+
_extends$n = Object.assign || function (target) {
|
|
842
824
|
for (var i = 1; i < arguments.length; i++) {
|
|
843
825
|
var source = arguments[i];
|
|
844
826
|
|
|
@@ -852,7 +834,7 @@ function _extends$q() {
|
|
|
852
834
|
return target;
|
|
853
835
|
};
|
|
854
836
|
|
|
855
|
-
return _extends$
|
|
837
|
+
return _extends$n.apply(this, arguments);
|
|
856
838
|
}
|
|
857
839
|
|
|
858
840
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1578,7 +1560,7 @@ function ProgressBar(_ref) {
|
|
|
1578
1560
|
isIn = _ref.isIn,
|
|
1579
1561
|
theme = _ref.theme;
|
|
1580
1562
|
|
|
1581
|
-
var style = _extends$
|
|
1563
|
+
var style = _extends$n({}, userStyle, {
|
|
1582
1564
|
animationDuration: delay + "ms",
|
|
1583
1565
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1584
1566
|
opacity: hide ? 0 : 1
|
|
@@ -1855,9 +1837,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1855
1837
|
,
|
|
1856
1838
|
id: containerId
|
|
1857
1839
|
}, getToastToRender(function (position, toastList) {
|
|
1858
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1840
|
+
var containerStyle = !toastList.length ? _extends$n({}, style, {
|
|
1859
1841
|
pointerEvents: 'none'
|
|
1860
|
-
}) : _extends$
|
|
1842
|
+
}) : _extends$n({}, style);
|
|
1861
1843
|
return React.createElement("div", {
|
|
1862
1844
|
className: getClassName(position),
|
|
1863
1845
|
style: containerStyle,
|
|
@@ -1964,7 +1946,7 @@ function dispatchToast(content, options) {
|
|
|
1964
1946
|
|
|
1965
1947
|
|
|
1966
1948
|
function mergeOptions(type, options) {
|
|
1967
|
-
return _extends$
|
|
1949
|
+
return _extends$n({}, options, {
|
|
1968
1950
|
type: options && options.type || type,
|
|
1969
1951
|
toastId: getToastId(options)
|
|
1970
1952
|
});
|
|
@@ -1981,7 +1963,7 @@ function toast(content, options) {
|
|
|
1981
1963
|
}
|
|
1982
1964
|
|
|
1983
1965
|
toast.loading = function (content, options) {
|
|
1984
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1966
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
|
|
1985
1967
|
isLoading: true,
|
|
1986
1968
|
autoClose: false,
|
|
1987
1969
|
closeOnClick: false,
|
|
@@ -1997,7 +1979,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1997
1979
|
var id;
|
|
1998
1980
|
|
|
1999
1981
|
if (pending) {
|
|
2000
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1982
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$n({}, options, pending));
|
|
2001
1983
|
}
|
|
2002
1984
|
|
|
2003
1985
|
var resetParams = {
|
|
@@ -2016,7 +1998,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
2016
1998
|
return;
|
|
2017
1999
|
}
|
|
2018
2000
|
|
|
2019
|
-
var baseParams = _extends$
|
|
2001
|
+
var baseParams = _extends$n({
|
|
2020
2002
|
type: type
|
|
2021
2003
|
}, resetParams, options, {
|
|
2022
2004
|
data: result
|
|
@@ -2027,10 +2009,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
2027
2009
|
} : input; // if the id is set we know that it's an update
|
|
2028
2010
|
|
|
2029
2011
|
if (id) {
|
|
2030
|
-
toast.update(id, _extends$
|
|
2012
|
+
toast.update(id, _extends$n({}, baseParams, params));
|
|
2031
2013
|
} else {
|
|
2032
2014
|
// using toast.promise without loading
|
|
2033
|
-
toast(params.render, _extends$
|
|
2015
|
+
toast(params.render, _extends$n({}, baseParams, params));
|
|
2034
2016
|
}
|
|
2035
2017
|
|
|
2036
2018
|
return result;
|
|
@@ -2054,7 +2036,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
2054
2036
|
toast.warn = toast.warning;
|
|
2055
2037
|
|
|
2056
2038
|
toast.dark = function (content, options) {
|
|
2057
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
2039
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
|
|
2058
2040
|
theme: 'dark'
|
|
2059
2041
|
}, options)));
|
|
2060
2042
|
};
|
|
@@ -2111,7 +2093,7 @@ toast.update = function (toastId, options) {
|
|
|
2111
2093
|
var oldOptions = toast.props,
|
|
2112
2094
|
oldContent = toast.content;
|
|
2113
2095
|
|
|
2114
|
-
var nextOptions = _extends$
|
|
2096
|
+
var nextOptions = _extends$n({}, oldOptions, options, {
|
|
2115
2097
|
toastId: options.toastId || toastId,
|
|
2116
2098
|
updateId: generateToastId()
|
|
2117
2099
|
});
|
|
@@ -11822,42 +11804,59 @@ var getFilteredChartVersions = function (charts, selectedChartType) {
|
|
|
11822
11804
|
chartRefId: item.chartRefId,
|
|
11823
11805
|
}); });
|
|
11824
11806
|
};
|
|
11825
|
-
function removeEmptyObjectKeysAndNullValues(obj) {
|
|
11826
|
-
|
|
11827
|
-
for (var key in obj) {
|
|
11807
|
+
function removeEmptyObjectKeysAndNullValues(obj, originaljsonCopy) {
|
|
11808
|
+
var _loop_1 = function (key) {
|
|
11828
11809
|
if (Array.isArray(obj[key])) {
|
|
11829
|
-
if (obj[key].length === 0)
|
|
11830
|
-
continue;
|
|
11831
|
-
obj[key] = obj[key].filter(function (item) { return item !== null; });
|
|
11832
11810
|
// Check if the array is empty
|
|
11833
|
-
if (obj[key].length
|
|
11834
|
-
|
|
11811
|
+
if (obj[key].length !== 0) {
|
|
11812
|
+
obj[key].forEach(function (element, index) {
|
|
11813
|
+
if (element === null || (typeof element === 'object' && Object.keys(element).length === 0))
|
|
11814
|
+
obj[key].splice(index, 1);
|
|
11815
|
+
else
|
|
11816
|
+
removeEmptyObjectKeysAndNullValues(element, originaljsonCopy[key][index]);
|
|
11817
|
+
});
|
|
11818
|
+
}
|
|
11819
|
+
if (obj[key].length === 0 && originaljsonCopy[key].length !== 0) {
|
|
11820
|
+
delete obj[key];
|
|
11835
11821
|
}
|
|
11836
11822
|
}
|
|
11837
11823
|
else if (obj[key] && typeof obj[key] === 'object') {
|
|
11838
|
-
if (removeEmptyObjectKeysAndNullValues(obj[key])
|
|
11824
|
+
if (removeEmptyObjectKeysAndNullValues(obj[key], originaljsonCopy[key]) &&
|
|
11825
|
+
Object.keys(originaljsonCopy[key]).length !== 0) {
|
|
11839
11826
|
delete obj[key];
|
|
11840
11827
|
}
|
|
11841
11828
|
}
|
|
11842
11829
|
else if (obj[key] === undefined) {
|
|
11843
11830
|
delete obj[key];
|
|
11844
11831
|
}
|
|
11832
|
+
};
|
|
11833
|
+
// It recursively removes empty object keys and empty array keys
|
|
11834
|
+
for (var key in obj) {
|
|
11835
|
+
_loop_1(key);
|
|
11845
11836
|
}
|
|
11846
11837
|
return Object.keys(obj).length === 0;
|
|
11847
11838
|
}
|
|
11848
|
-
function getUnlockedJSON(json, jsonPathArray) {
|
|
11839
|
+
function getUnlockedJSON(json, jsonPathArray, removeParentKeysAndEmptyArrays) {
|
|
11840
|
+
if (removeParentKeysAndEmptyArrays === void 0) { removeParentKeysAndEmptyArrays = false; }
|
|
11841
|
+
if (!jsonPathArray.length)
|
|
11842
|
+
return { newDocument: json, removedPatches: [] };
|
|
11849
11843
|
var jsonCopy = JSON.parse(JSON.stringify(json));
|
|
11844
|
+
var originaljsonCopy = JSON.parse(JSON.stringify(json));
|
|
11845
|
+
var removedPatches = [];
|
|
11850
11846
|
var patches = jsonPathArray.flatMap(function (jsonPath) {
|
|
11851
11847
|
var pathsToRemove = JSONPath({ path: jsonPath, json: jsonCopy, resultType: 'all' });
|
|
11848
|
+
//reversing patches to handle correct array index deletion
|
|
11849
|
+
pathsToRemove.reverse();
|
|
11852
11850
|
return pathsToRemove.map(function (result) {
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11851
|
+
//storing removed patches to have functionality of undo
|
|
11852
|
+
removedPatches.push({ op: 'add', path: result.pointer, value: result.value });
|
|
11853
|
+
return { op: 'remove', path: result.pointer };
|
|
11856
11854
|
});
|
|
11857
11855
|
});
|
|
11858
11856
|
var newDocument = applyPatch(jsonCopy, patches).newDocument;
|
|
11859
|
-
|
|
11860
|
-
|
|
11857
|
+
if (removeParentKeysAndEmptyArrays)
|
|
11858
|
+
removeEmptyObjectKeysAndNullValues(newDocument, originaljsonCopy);
|
|
11859
|
+
return { newDocument: newDocument, removedPatches: removedPatches.reverse() };
|
|
11861
11860
|
}
|
|
11862
11861
|
function getLockedJSON(json, jsonPathArray) {
|
|
11863
11862
|
var jsonCopy = JSON.parse(JSON.stringify(json));
|
|
@@ -12028,16 +12027,16 @@ var Modal = function (_a) {
|
|
|
12028
12027
|
}, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
|
|
12029
12028
|
};
|
|
12030
12029
|
|
|
12031
|
-
var _path$
|
|
12032
|
-
function _extends$
|
|
12030
|
+
var _path$d;
|
|
12031
|
+
function _extends$m() { _extends$m = 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$m.apply(this, arguments); }
|
|
12033
12032
|
var SvgIcCross = function SvgIcCross(props) {
|
|
12034
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
12033
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
12035
12034
|
width: "1em",
|
|
12036
12035
|
height: "1em",
|
|
12037
12036
|
viewBox: "0 0 24 24",
|
|
12038
12037
|
fill: "none",
|
|
12039
12038
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12040
|
-
}, props), _path$
|
|
12039
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
12041
12040
|
d: "M19.28 5.78a.75.75 0 0 0-1.06-1.06l1.06 1.06ZM4.72 18.22a.75.75 0 1 0 1.06 1.06l-1.06-1.06Zm13.5 1.06a.75.75 0 1 0 1.06-1.06l-1.06 1.06ZM5.78 4.72a.75.75 0 0 0-1.06 1.06l1.06-1.06Zm12.44 0-6.75 6.75 1.06 1.06 6.75-6.75-1.06-1.06Zm-6.75 6.75-6.75 6.75 1.06 1.06 6.75-6.75-1.06-1.06Zm7.81 6.75-6.75-6.75-1.06 1.06 6.75 6.75 1.06-1.06Zm-6.75-6.75L5.78 4.72 4.72 5.78l6.75 6.75 1.06-1.06Z",
|
|
12042
12041
|
fill: "#596168"
|
|
12043
12042
|
})));
|
|
@@ -16336,30 +16335,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
16336
16335
|
|
|
16337
16336
|
var Tippy = index;
|
|
16338
16337
|
|
|
16339
|
-
var _path$
|
|
16340
|
-
function _extends$
|
|
16338
|
+
var _path$c;
|
|
16339
|
+
function _extends$l() { _extends$l = 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$l.apply(this, arguments); }
|
|
16341
16340
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
16342
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16341
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
16343
16342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16344
16343
|
width: "1em",
|
|
16345
16344
|
height: "1em",
|
|
16346
16345
|
viewBox: "0 0 24 24"
|
|
16347
|
-
}, props), _path$
|
|
16346
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16348
16347
|
fill: "#767D84",
|
|
16349
16348
|
fillRule: "evenodd",
|
|
16350
16349
|
d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-.205 12.868c-.615 0-1.12.505-1.12 1.12 0 .617.505 1.121 1.12 1.121.615 0 1.12-.504 1.12-1.12 0-.616-.506-1.12-1.12-1.12zM11.863 7c-1.667 0-3.197 1.187-3.196 2.527 0 .546.41.833.888.833 1.325 0 .642-1.803 2.39-1.803.82 0 1.311.438 1.311 1.175 0 1.34-2.39 1.708-2.39 3.334 0 .438.287.915.874.915.902 0 .792-.67 1.12-1.148.438-.642 2.473-1.325 2.473-3.101 0-1.927-1.721-2.732-3.47-2.732z"
|
|
16351
16350
|
})));
|
|
16352
16351
|
};
|
|
16353
16352
|
|
|
16354
|
-
var _path$
|
|
16355
|
-
function _extends$
|
|
16353
|
+
var _path$b;
|
|
16354
|
+
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); }
|
|
16356
16355
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
16357
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16356
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
16358
16357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16359
16358
|
viewBox: "0 0 17 16",
|
|
16360
16359
|
width: "1em",
|
|
16361
16360
|
height: "1em"
|
|
16362
|
-
}, props), _path$
|
|
16361
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16363
16362
|
fill: "#767D84",
|
|
16364
16363
|
fillRule: "evenodd",
|
|
16365
16364
|
d: "M9 1.333a6.667 6.667 0 1 1 0 13.334A6.667 6.667 0 0 1 9 1.333zm0 1.334C6.054 2.667 3.667 5.054 3.667 8S6.054 13.333 9 13.333 14.333 10.946 14.333 8 11.946 2.667 9 2.667zm-.137 7.245c.41 0 .747.337.747.747s-.337.747-.747.747-.747-.336-.747-.747a.75.75 0 0 1 .747-.747zm.046-5.245c1.166 0 2.313.537 2.313 1.82 0 1.185-1.357 1.64-1.648 2.068-.22.319-.146.766-.747.766-.392 0-.583-.319-.583-.61 0-1.085 1.593-1.33 1.593-2.223 0-.492-.327-.783-.873-.783-1.166 0-.711 1.202-1.594 1.202-.319 0-.592-.191-.592-.556 0-.893 1.02-1.684 2.13-1.684z"
|
|
@@ -16411,16 +16410,16 @@ function TippyCustomized(props) {
|
|
|
16411
16410
|
return (jsxRuntime.jsx(Tippy, __assign({ className: "".concat(isWhiteTheme ? 'tippy-white-container default-white' : 'tippy-black-container default-black', " no-content-padding tippy-shadow ").concat(className), arrow: arrow || false, interactive: interactive || false, placement: placement || 'top', content: getTippyContent(), trigger: trigger || 'mouseenter', onMount: onTippyMount, onClickOutside: closeTippy, showOnCreate: showOnCreate || false, animation: animation || 'fade', duration: duration || 300, visible: props.visible }, { children: children })));
|
|
16412
16411
|
}
|
|
16413
16412
|
|
|
16414
|
-
var _path$
|
|
16415
|
-
function _extends$
|
|
16413
|
+
var _path$a, _circle, _path2$1;
|
|
16414
|
+
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); }
|
|
16416
16415
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
16417
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16416
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
16418
16417
|
width: "1em",
|
|
16419
16418
|
height: "1em",
|
|
16420
16419
|
viewBox: "0 0 20 20",
|
|
16421
16420
|
fill: "none",
|
|
16422
16421
|
xmlns: "http://www.w3.org/2000/svg"
|
|
16423
|
-
}, props), _path$
|
|
16422
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16424
16423
|
d: "M10 10H3.333",
|
|
16425
16424
|
stroke: "#596168",
|
|
16426
16425
|
strokeWidth: 1.5,
|
|
@@ -16431,7 +16430,7 @@ var SvgInjectTag = function SvgInjectTag(props) {
|
|
|
16431
16430
|
cy: 10,
|
|
16432
16431
|
r: 1.667,
|
|
16433
16432
|
fill: "#596168"
|
|
16434
|
-
})), _path2$
|
|
16433
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16435
16434
|
d: "m4.415 6.403 5.347-3.008a.486.486 0 0 1 .476 0l5.348 3.008a.486.486 0 0 1 .247.424v5.994a.485.485 0 0 1-.247.424l-5.348 3.007a.485.485 0 0 1-.476 0l-5.347-3.007",
|
|
16436
16435
|
stroke: "#596168",
|
|
16437
16436
|
strokeWidth: 1.5,
|
|
@@ -16448,15 +16447,15 @@ function PropagateTagInfo(_a) {
|
|
|
16448
16447
|
return (jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300", placement: "top", Icon: SvgInjectTag, heading: 'Propagate tags to K8s resources', infoText: "", additionalContent: additionalInfo(), showCloseButton: true, trigger: "click", interactive: true, documentationLink: isCreateApp ? DOCUMENTATION.APP_TAGS : DOCUMENTATION.APP_OVERVIEW_TAGS, documentationLinkText: "View Documentation" }, { children: jsxRuntime.jsxs("div", __assign({ className: "flexbox cursor" }, { children: [jsxRuntime.jsx(SvgInjectTag, { className: "icon-dim-16 mt-2 mr-4" }), jsxRuntime.jsx("span", { children: "Propagate tags" }), jsxRuntime.jsx(SvgIcHelpOutline, { className: "icon-dim-16 mt-2 ml-4" })] })) })));
|
|
16449
16448
|
}
|
|
16450
16449
|
|
|
16451
|
-
var _path$
|
|
16452
|
-
function _extends$
|
|
16450
|
+
var _path$9;
|
|
16451
|
+
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); }
|
|
16453
16452
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
16454
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16453
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
16455
16454
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16456
16455
|
width: "1em",
|
|
16457
16456
|
height: "1em",
|
|
16458
16457
|
viewBox: "0 0 20 20"
|
|
16459
|
-
}, props), _path$
|
|
16458
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16460
16459
|
d: "M10 1.667c4.6 0 8.333 3.733 8.333 8.333S14.6 18.333 10 18.333 1.667 14.6 1.667 10 5.4 1.667 10 1.667zm0 1.666A6.67 6.67 0 0 0 3.333 10 6.67 6.67 0 0 0 10 16.667 6.67 6.67 0 0 0 16.667 10 6.67 6.67 0 0 0 10 3.333zm0 5.834c.46 0 .833.373.833.833v3.333a.834.834 0 1 1-1.666 0V10c0-.46.373-.833.833-.833zm0-3.334A.833.833 0 1 1 10 7.5a.833.833 0 0 1 0-1.667z",
|
|
16461
16460
|
fill: "#06C",
|
|
16462
16461
|
fillRule: "evenodd"
|
|
@@ -16690,15 +16689,15 @@ var TagDetails = function (_a) {
|
|
|
16690
16689
|
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox mb-8" }, { children: [jsxRuntime.jsx("div", __assign({ className: "dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ".concat(tagData.propagate ? 'bcn-7' : '', " ").concat(tagData.key.startsWith("devtron.ai/") ? 'cursor-not-allowed bcn-1' : ''), onClick: propagateTagToResource, "data-testid": "propagate-tag-".concat(index) }, { children: jsxRuntime.jsx(SvgInjectTag, { className: "icon-dim-20 mt-4 ".concat(tagData.propagate ? 'scn-0' : '') }) })), jsxRuntime.jsx(TagLabelValueSelector, { selectedTagIndex: index, tagData: tagData, setTagData: setTagData, tagInputType: exports.KEY_VALUE.KEY, placeholder: "Enter key", tabIndex: tabIndex - 1, refVar: keyRef, dependentRef: valueRef, tagOptions: suggestedTagsOptions }), jsxRuntime.jsx(TagLabelValueSelector, { selectedTagIndex: index, tagData: tagData, setTagData: setTagData, tagInputType: exports.KEY_VALUE.VALUE, placeholder: "Enter value", tabIndex: tabIndex, refVar: valueRef, dependentRef: keyRef }), jsxRuntime.jsx("div", __assign({ className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top", onClick: deleteTag, "data-testid": "delete-tag-".concat(index) }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-20 mt-4" }) }))] })));
|
|
16691
16690
|
};
|
|
16692
16691
|
|
|
16693
|
-
var _path$
|
|
16694
|
-
function _extends$
|
|
16692
|
+
var _path$8;
|
|
16693
|
+
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); }
|
|
16695
16694
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
16696
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16695
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
16697
16696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16698
16697
|
width: "1em",
|
|
16699
16698
|
height: "1em",
|
|
16700
16699
|
viewBox: "0 0 24 24"
|
|
16701
|
-
}, props), _path$
|
|
16700
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16702
16701
|
className: "ic-add_svg__fill-color",
|
|
16703
16702
|
fill: "#999",
|
|
16704
16703
|
d: "M18 13h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5V6a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2z"
|
|
@@ -16828,8 +16827,8 @@ function ForceDeleteDialog(_a) {
|
|
|
16828
16827
|
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?" })] }) })) }));
|
|
16829
16828
|
}
|
|
16830
16829
|
|
|
16831
|
-
function _extends$
|
|
16832
|
-
_extends$
|
|
16830
|
+
function _extends$g() {
|
|
16831
|
+
_extends$g = Object.assign ? Object.assign.bind() : function (target) {
|
|
16833
16832
|
for (var i = 1; i < arguments.length; i++) {
|
|
16834
16833
|
var source = arguments[i];
|
|
16835
16834
|
for (var key in source) {
|
|
@@ -16840,7 +16839,7 @@ function _extends$j() {
|
|
|
16840
16839
|
}
|
|
16841
16840
|
return target;
|
|
16842
16841
|
};
|
|
16843
|
-
return _extends$
|
|
16842
|
+
return _extends$g.apply(this, arguments);
|
|
16844
16843
|
}
|
|
16845
16844
|
|
|
16846
16845
|
/*
|
|
@@ -20381,7 +20380,7 @@ var Menu = function Menu(props) {
|
|
|
20381
20380
|
getStyles = props.getStyles,
|
|
20382
20381
|
innerRef = props.innerRef,
|
|
20383
20382
|
innerProps = props.innerProps;
|
|
20384
|
-
return jsx("div", _extends$
|
|
20383
|
+
return jsx("div", _extends$g({
|
|
20385
20384
|
css: getStyles('menu', props),
|
|
20386
20385
|
className: cx({
|
|
20387
20386
|
menu: true
|
|
@@ -20413,7 +20412,7 @@ var MenuList$1 = function MenuList(props) {
|
|
|
20413
20412
|
innerProps = props.innerProps,
|
|
20414
20413
|
innerRef = props.innerRef,
|
|
20415
20414
|
isMulti = props.isMulti;
|
|
20416
|
-
return jsx("div", _extends$
|
|
20415
|
+
return jsx("div", _extends$g({
|
|
20417
20416
|
css: getStyles('menuList', props),
|
|
20418
20417
|
className: cx({
|
|
20419
20418
|
'menu-list': true,
|
|
@@ -20444,7 +20443,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
20444
20443
|
cx = props.cx,
|
|
20445
20444
|
getStyles = props.getStyles,
|
|
20446
20445
|
innerProps = props.innerProps;
|
|
20447
|
-
return jsx("div", _extends$
|
|
20446
|
+
return jsx("div", _extends$g({
|
|
20448
20447
|
css: getStyles('noOptionsMessage', props),
|
|
20449
20448
|
className: cx({
|
|
20450
20449
|
'menu-notice': true,
|
|
@@ -20461,7 +20460,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
20461
20460
|
cx = props.cx,
|
|
20462
20461
|
getStyles = props.getStyles,
|
|
20463
20462
|
innerProps = props.innerProps;
|
|
20464
|
-
return jsx("div", _extends$
|
|
20463
|
+
return jsx("div", _extends$g({
|
|
20465
20464
|
css: getStyles('loadingMessage', props),
|
|
20466
20465
|
className: cx({
|
|
20467
20466
|
'menu-notice': true,
|
|
@@ -20549,7 +20548,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
20549
20548
|
rect: rect
|
|
20550
20549
|
}; // same wrapper element whether fixed or portalled
|
|
20551
20550
|
|
|
20552
|
-
var menuWrapper = jsx("div", _extends$
|
|
20551
|
+
var menuWrapper = jsx("div", _extends$g({
|
|
20553
20552
|
css: getStyles('menuPortal', state),
|
|
20554
20553
|
className: cx({
|
|
20555
20554
|
'menu-portal': true
|
|
@@ -20585,7 +20584,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
20585
20584
|
innerProps = props.innerProps,
|
|
20586
20585
|
isDisabled = props.isDisabled,
|
|
20587
20586
|
isRtl = props.isRtl;
|
|
20588
|
-
return jsx("div", _extends$
|
|
20587
|
+
return jsx("div", _extends$g({
|
|
20589
20588
|
css: getStyles('container', props),
|
|
20590
20589
|
className: cx({
|
|
20591
20590
|
'--is-disabled': isDisabled,
|
|
@@ -20620,7 +20619,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
20620
20619
|
isMulti = props.isMulti,
|
|
20621
20620
|
getStyles = props.getStyles,
|
|
20622
20621
|
hasValue = props.hasValue;
|
|
20623
|
-
return jsx("div", _extends$
|
|
20622
|
+
return jsx("div", _extends$g({
|
|
20624
20623
|
css: getStyles('valueContainer', props),
|
|
20625
20624
|
className: cx({
|
|
20626
20625
|
'value-container': true,
|
|
@@ -20646,7 +20645,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
20646
20645
|
cx = props.cx,
|
|
20647
20646
|
innerProps = props.innerProps,
|
|
20648
20647
|
getStyles = props.getStyles;
|
|
20649
|
-
return jsx("div", _extends$
|
|
20648
|
+
return jsx("div", _extends$g({
|
|
20650
20649
|
css: getStyles('indicatorsContainer', props),
|
|
20651
20650
|
className: cx({
|
|
20652
20651
|
indicators: true
|
|
@@ -20677,7 +20676,7 @@ var Svg = function Svg(_ref) {
|
|
|
20677
20676
|
var size = _ref.size,
|
|
20678
20677
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
20679
20678
|
|
|
20680
|
-
return jsx("svg", _extends$
|
|
20679
|
+
return jsx("svg", _extends$g({
|
|
20681
20680
|
height: size,
|
|
20682
20681
|
width: size,
|
|
20683
20682
|
viewBox: "0 0 20 20",
|
|
@@ -20688,14 +20687,14 @@ var Svg = function Svg(_ref) {
|
|
|
20688
20687
|
};
|
|
20689
20688
|
|
|
20690
20689
|
var CrossIcon = function CrossIcon(props) {
|
|
20691
|
-
return jsx(Svg, _extends$
|
|
20690
|
+
return jsx(Svg, _extends$g({
|
|
20692
20691
|
size: 20
|
|
20693
20692
|
}, props), jsx("path", {
|
|
20694
20693
|
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"
|
|
20695
20694
|
}));
|
|
20696
20695
|
};
|
|
20697
20696
|
var DownChevron = function DownChevron(props) {
|
|
20698
|
-
return jsx(Svg, _extends$
|
|
20697
|
+
return jsx(Svg, _extends$g({
|
|
20699
20698
|
size: 20
|
|
20700
20699
|
}, props), jsx("path", {
|
|
20701
20700
|
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"
|
|
@@ -20728,7 +20727,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
|
20728
20727
|
cx = props.cx,
|
|
20729
20728
|
getStyles = props.getStyles,
|
|
20730
20729
|
innerProps = props.innerProps;
|
|
20731
|
-
return jsx("div", _extends$
|
|
20730
|
+
return jsx("div", _extends$g({
|
|
20732
20731
|
css: getStyles('dropdownIndicator', props),
|
|
20733
20732
|
className: cx({
|
|
20734
20733
|
indicator: true,
|
|
@@ -20743,7 +20742,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
20743
20742
|
cx = props.cx,
|
|
20744
20743
|
getStyles = props.getStyles,
|
|
20745
20744
|
innerProps = props.innerProps;
|
|
20746
|
-
return jsx("div", _extends$
|
|
20745
|
+
return jsx("div", _extends$g({
|
|
20747
20746
|
css: getStyles('clearIndicator', props),
|
|
20748
20747
|
className: cx({
|
|
20749
20748
|
indicator: true,
|
|
@@ -20773,7 +20772,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
20773
20772
|
cx = props.cx,
|
|
20774
20773
|
getStyles = props.getStyles,
|
|
20775
20774
|
innerProps = props.innerProps;
|
|
20776
|
-
return jsx("span", _extends$
|
|
20775
|
+
return jsx("span", _extends$g({}, innerProps, {
|
|
20777
20776
|
css: getStyles('indicatorSeparator', props),
|
|
20778
20777
|
className: cx({
|
|
20779
20778
|
'indicator-separator': true
|
|
@@ -20828,7 +20827,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
20828
20827
|
getStyles = props.getStyles,
|
|
20829
20828
|
innerProps = props.innerProps,
|
|
20830
20829
|
isRtl = props.isRtl;
|
|
20831
|
-
return jsx("div", _extends$
|
|
20830
|
+
return jsx("div", _extends$g({
|
|
20832
20831
|
css: getStyles('loadingIndicator', props),
|
|
20833
20832
|
className: cx({
|
|
20834
20833
|
indicator: true,
|
|
@@ -20889,7 +20888,7 @@ var Control = function Control(props) {
|
|
|
20889
20888
|
innerRef = props.innerRef,
|
|
20890
20889
|
innerProps = props.innerProps,
|
|
20891
20890
|
menuIsOpen = props.menuIsOpen;
|
|
20892
|
-
return jsx("div", _extends$
|
|
20891
|
+
return jsx("div", _extends$g({
|
|
20893
20892
|
ref: innerRef,
|
|
20894
20893
|
css: getStyles('control', props),
|
|
20895
20894
|
className: cx({
|
|
@@ -20921,12 +20920,12 @@ var Group = function Group(props) {
|
|
|
20921
20920
|
label = props.label,
|
|
20922
20921
|
theme = props.theme,
|
|
20923
20922
|
selectProps = props.selectProps;
|
|
20924
|
-
return jsx("div", _extends$
|
|
20923
|
+
return jsx("div", _extends$g({
|
|
20925
20924
|
css: getStyles('group', props),
|
|
20926
20925
|
className: cx({
|
|
20927
20926
|
group: true
|
|
20928
20927
|
}, className)
|
|
20929
|
-
}, innerProps), jsx(Heading, _extends$
|
|
20928
|
+
}, innerProps), jsx(Heading, _extends$g({}, headingProps, {
|
|
20930
20929
|
selectProps: selectProps,
|
|
20931
20930
|
theme: theme,
|
|
20932
20931
|
getStyles: getStyles,
|
|
@@ -20958,7 +20957,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
20958
20957
|
_cleanCommonProps.data;
|
|
20959
20958
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
20960
20959
|
|
|
20961
|
-
return jsx("div", _extends$
|
|
20960
|
+
return jsx("div", _extends$g({
|
|
20962
20961
|
css: getStyles('groupHeading', props),
|
|
20963
20962
|
className: cx({
|
|
20964
20963
|
'group-heading': true
|
|
@@ -21034,7 +21033,7 @@ var Input = function Input(props) {
|
|
|
21034
21033
|
}, className),
|
|
21035
21034
|
css: getStyles('input', props),
|
|
21036
21035
|
"data-value": value || ''
|
|
21037
|
-
}, jsx("input", _extends$
|
|
21036
|
+
}, jsx("input", _extends$g({
|
|
21038
21037
|
className: cx({
|
|
21039
21038
|
input: true
|
|
21040
21039
|
}, inputClassName),
|
|
@@ -21104,7 +21103,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
21104
21103
|
function MultiValueRemove$1(_ref5) {
|
|
21105
21104
|
var children = _ref5.children,
|
|
21106
21105
|
innerProps = _ref5.innerProps;
|
|
21107
|
-
return jsx("div", _extends$
|
|
21106
|
+
return jsx("div", _extends$g({
|
|
21108
21107
|
role: "button"
|
|
21109
21108
|
}, innerProps), children || jsx(CrossIcon, {
|
|
21110
21109
|
size: 14
|
|
@@ -21193,7 +21192,7 @@ var Option$1 = function Option(props) {
|
|
|
21193
21192
|
isSelected = props.isSelected,
|
|
21194
21193
|
innerRef = props.innerRef,
|
|
21195
21194
|
innerProps = props.innerProps;
|
|
21196
|
-
return jsx("div", _extends$
|
|
21195
|
+
return jsx("div", _extends$g({
|
|
21197
21196
|
css: getStyles('option', props),
|
|
21198
21197
|
className: cx({
|
|
21199
21198
|
option: true,
|
|
@@ -21225,7 +21224,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
21225
21224
|
cx = props.cx,
|
|
21226
21225
|
getStyles = props.getStyles,
|
|
21227
21226
|
innerProps = props.innerProps;
|
|
21228
|
-
return jsx("div", _extends$
|
|
21227
|
+
return jsx("div", _extends$g({
|
|
21229
21228
|
css: getStyles('placeholder', props),
|
|
21230
21229
|
className: cx({
|
|
21231
21230
|
placeholder: true
|
|
@@ -21258,7 +21257,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
21258
21257
|
getStyles = props.getStyles,
|
|
21259
21258
|
isDisabled = props.isDisabled,
|
|
21260
21259
|
innerProps = props.innerProps;
|
|
21261
|
-
return jsx("div", _extends$
|
|
21260
|
+
return jsx("div", _extends$g({
|
|
21262
21261
|
css: getStyles('singleValue', props),
|
|
21263
21262
|
className: cx({
|
|
21264
21263
|
'single-value': true,
|
|
@@ -21506,7 +21505,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21506
21505
|
};
|
|
21507
21506
|
|
|
21508
21507
|
var A11yText = function A11yText(props) {
|
|
21509
|
-
return jsx("span", _extends$
|
|
21508
|
+
return jsx("span", _extends$g({
|
|
21510
21509
|
css: _ref
|
|
21511
21510
|
}, props));
|
|
21512
21511
|
};
|
|
@@ -22042,7 +22041,7 @@ function DummyInput(_ref) {
|
|
|
22042
22041
|
var innerRef = _ref.innerRef,
|
|
22043
22042
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
22044
22043
|
|
|
22045
|
-
return jsx("input", _extends$
|
|
22044
|
+
return jsx("input", _extends$g({
|
|
22046
22045
|
ref: innerRef
|
|
22047
22046
|
}, props, {
|
|
22048
22047
|
css: /*#__PURE__*/css$2({
|
|
@@ -23677,7 +23676,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23677
23676
|
|
|
23678
23677
|
if (!isSearchable) {
|
|
23679
23678
|
// use a dummy input to maintain focus/blur functionality
|
|
23680
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
23679
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$g({
|
|
23681
23680
|
id: id,
|
|
23682
23681
|
innerRef: this.getInputRef,
|
|
23683
23682
|
onBlur: this.onInputBlur,
|
|
@@ -23691,7 +23690,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23691
23690
|
}, ariaAttributes));
|
|
23692
23691
|
}
|
|
23693
23692
|
|
|
23694
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
23693
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$g({}, commonProps, {
|
|
23695
23694
|
autoCapitalize: "none",
|
|
23696
23695
|
autoComplete: "off",
|
|
23697
23696
|
autoCorrect: "off",
|
|
@@ -23735,7 +23734,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23735
23734
|
isFocused = _this$state5.isFocused;
|
|
23736
23735
|
|
|
23737
23736
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
23738
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
23737
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$g({}, commonProps, {
|
|
23739
23738
|
key: "placeholder",
|
|
23740
23739
|
isDisabled: isDisabled,
|
|
23741
23740
|
isFocused: isFocused,
|
|
@@ -23749,7 +23748,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23749
23748
|
return selectValue.map(function (opt, index) {
|
|
23750
23749
|
var isOptionFocused = opt === focusedValue;
|
|
23751
23750
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
23752
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
23751
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$g({}, commonProps, {
|
|
23753
23752
|
components: {
|
|
23754
23753
|
Container: MultiValueContainer,
|
|
23755
23754
|
Label: MultiValueLabel,
|
|
@@ -23781,7 +23780,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23781
23780
|
}
|
|
23782
23781
|
|
|
23783
23782
|
var singleValue = selectValue[0];
|
|
23784
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
23783
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$g({}, commonProps, {
|
|
23785
23784
|
data: singleValue,
|
|
23786
23785
|
isDisabled: isDisabled
|
|
23787
23786
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -23807,7 +23806,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23807
23806
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
23808
23807
|
'aria-hidden': 'true'
|
|
23809
23808
|
};
|
|
23810
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
23809
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$g({}, commonProps, {
|
|
23811
23810
|
innerProps: innerProps,
|
|
23812
23811
|
isFocused: isFocused
|
|
23813
23812
|
}));
|
|
@@ -23827,7 +23826,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23827
23826
|
var innerProps = {
|
|
23828
23827
|
'aria-hidden': 'true'
|
|
23829
23828
|
};
|
|
23830
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
23829
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$g({}, commonProps, {
|
|
23831
23830
|
innerProps: innerProps,
|
|
23832
23831
|
isDisabled: isDisabled,
|
|
23833
23832
|
isFocused: isFocused
|
|
@@ -23845,7 +23844,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23845
23844
|
var commonProps = this.commonProps;
|
|
23846
23845
|
var isDisabled = this.props.isDisabled;
|
|
23847
23846
|
var isFocused = this.state.isFocused;
|
|
23848
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
23847
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$g({}, commonProps, {
|
|
23849
23848
|
isDisabled: isDisabled,
|
|
23850
23849
|
isFocused: isFocused
|
|
23851
23850
|
}));
|
|
@@ -23865,7 +23864,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23865
23864
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
23866
23865
|
'aria-hidden': 'true'
|
|
23867
23866
|
};
|
|
23868
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
23867
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$g({}, commonProps, {
|
|
23869
23868
|
innerProps: innerProps,
|
|
23870
23869
|
isDisabled: isDisabled,
|
|
23871
23870
|
isFocused: isFocused
|
|
@@ -23928,7 +23927,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23928
23927
|
onMouseOver: onHover,
|
|
23929
23928
|
tabIndex: -1
|
|
23930
23929
|
};
|
|
23931
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
23930
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$g({}, commonProps, {
|
|
23932
23931
|
innerProps: innerProps,
|
|
23933
23932
|
data: data,
|
|
23934
23933
|
isDisabled: isDisabled,
|
|
@@ -23952,7 +23951,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23952
23951
|
groupIndex = item.index;
|
|
23953
23952
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
23954
23953
|
var headingId = "".concat(groupId, "-heading");
|
|
23955
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
23954
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$g({}, commonProps, {
|
|
23956
23955
|
key: groupId,
|
|
23957
23956
|
data: _data,
|
|
23958
23957
|
options: options,
|
|
@@ -23991,12 +23990,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23991
23990
|
menuPosition: menuPosition,
|
|
23992
23991
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
23993
23992
|
};
|
|
23994
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
23993
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$g({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
23995
23994
|
var ref = _ref4.ref,
|
|
23996
23995
|
_ref4$placerProps = _ref4.placerProps,
|
|
23997
23996
|
placement = _ref4$placerProps.placement,
|
|
23998
23997
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
23999
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
23998
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$g({}, commonProps, menuPlacementProps, {
|
|
24000
23999
|
innerRef: ref,
|
|
24001
24000
|
innerProps: {
|
|
24002
24001
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -24011,7 +24010,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24011
24010
|
onBottomArrive: onMenuScrollToBottom,
|
|
24012
24011
|
lockEnabled: menuShouldBlockScroll
|
|
24013
24012
|
}, function (scrollTargetRef) {
|
|
24014
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
24013
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$g({}, commonProps, {
|
|
24015
24014
|
innerRef: function innerRef(instance) {
|
|
24016
24015
|
_this4.getMenuListRef(instance);
|
|
24017
24016
|
|
|
@@ -24026,7 +24025,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24026
24025
|
// so we use the same component. the actual portalling logic is forked
|
|
24027
24026
|
// within the component based on `menuPosition`
|
|
24028
24027
|
|
|
24029
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
24028
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$g({}, commonProps, {
|
|
24030
24029
|
appendTo: menuPortalTarget,
|
|
24031
24030
|
controlElement: this.controlRef,
|
|
24032
24031
|
menuPlacement: menuPlacement,
|
|
@@ -24091,7 +24090,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24091
24090
|
isFocused = _this$state6.isFocused,
|
|
24092
24091
|
selectValue = _this$state6.selectValue;
|
|
24093
24092
|
var focusableOptions = this.getFocusableOptions();
|
|
24094
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
24093
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$g({}, commonProps, {
|
|
24095
24094
|
id: this.getElementId('live-region'),
|
|
24096
24095
|
ariaSelection: ariaSelection,
|
|
24097
24096
|
focusedOption: focusedOption,
|
|
@@ -24117,7 +24116,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24117
24116
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
24118
24117
|
var isFocused = this.state.isFocused;
|
|
24119
24118
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
24120
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
24119
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$g({}, commonProps, {
|
|
24121
24120
|
className: className,
|
|
24122
24121
|
innerProps: {
|
|
24123
24122
|
id: id,
|
|
@@ -24125,7 +24124,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24125
24124
|
},
|
|
24126
24125
|
isDisabled: isDisabled,
|
|
24127
24126
|
isFocused: isFocused
|
|
24128
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
24127
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$g({}, commonProps, {
|
|
24129
24128
|
innerRef: this.getControlRef,
|
|
24130
24129
|
innerProps: {
|
|
24131
24130
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -24134,9 +24133,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24134
24133
|
isDisabled: isDisabled,
|
|
24135
24134
|
isFocused: isFocused,
|
|
24136
24135
|
menuIsOpen: menuIsOpen
|
|
24137
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
24136
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$g({}, commonProps, {
|
|
24138
24137
|
isDisabled: isDisabled
|
|
24139
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
24138
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$g({}, commonProps, {
|
|
24140
24139
|
isDisabled: isDisabled
|
|
24141
24140
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
24142
24141
|
}
|
|
@@ -24209,7 +24208,7 @@ Select$1.defaultProps = defaultProps;
|
|
|
24209
24208
|
|
|
24210
24209
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24211
24210
|
var baseSelectProps = useStateManager(props);
|
|
24212
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
24211
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$g({
|
|
24213
24212
|
ref: ref
|
|
24214
24213
|
}, baseSelectProps));
|
|
24215
24214
|
});
|
|
@@ -24217,9 +24216,9 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
24217
24216
|
var ReactSelect = StateManagedSelect;
|
|
24218
24217
|
|
|
24219
24218
|
var _g$6;
|
|
24220
|
-
function _extends$
|
|
24219
|
+
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); }
|
|
24221
24220
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
24222
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24221
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
24223
24222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24224
24223
|
viewBox: "0 0 28 28",
|
|
24225
24224
|
width: "1em",
|
|
@@ -24240,15 +24239,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
24240
24239
|
}))));
|
|
24241
24240
|
};
|
|
24242
24241
|
|
|
24243
|
-
var _path$
|
|
24244
|
-
function _extends$
|
|
24242
|
+
var _path$7;
|
|
24243
|
+
function _extends$e() { _extends$e = 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$e.apply(this, arguments); }
|
|
24245
24244
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
24246
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24245
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
24247
24246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24248
24247
|
width: "1em",
|
|
24249
24248
|
height: "1em",
|
|
24250
24249
|
viewBox: "0 0 24 24"
|
|
24251
|
-
}, props), _path$
|
|
24250
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24252
24251
|
stroke: "#06C",
|
|
24253
24252
|
strokeLinecap: "round",
|
|
24254
24253
|
strokeLinejoin: "round",
|
|
@@ -24260,9 +24259,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
24260
24259
|
};
|
|
24261
24260
|
|
|
24262
24261
|
var _g$5;
|
|
24263
|
-
function _extends$
|
|
24262
|
+
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); }
|
|
24264
24263
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
24265
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24264
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
24266
24265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24267
24266
|
width: "1em",
|
|
24268
24267
|
height: "1em",
|
|
@@ -24591,7 +24590,6 @@ Valid States of Checkbox:
|
|
|
24591
24590
|
5. disabled: false, checked: true, value: INTERMIDIATE
|
|
24592
24591
|
6. disabled: false, checked: true, value: CHECKED
|
|
24593
24592
|
*/
|
|
24594
|
-
// TODO: Associate label with input element
|
|
24595
24593
|
var Checkbox$1 = /** @class */ (function (_super) {
|
|
24596
24594
|
__extends$1(Checkbox, _super);
|
|
24597
24595
|
function Checkbox() {
|
|
@@ -24606,9 +24604,9 @@ var Checkbox$1 = /** @class */ (function (_super) {
|
|
|
24606
24604
|
}(React.Component));
|
|
24607
24605
|
|
|
24608
24606
|
var _g$4;
|
|
24609
|
-
function _extends$
|
|
24607
|
+
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); }
|
|
24610
24608
|
var SvgIcSearch = function SvgIcSearch(props) {
|
|
24611
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24609
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
24612
24610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24613
24611
|
viewBox: "0 0 24 24",
|
|
24614
24612
|
width: "1em",
|
|
@@ -24625,9 +24623,9 @@ var SvgIcSearch = function SvgIcSearch(props) {
|
|
|
24625
24623
|
};
|
|
24626
24624
|
|
|
24627
24625
|
var _g$3;
|
|
24628
|
-
function _extends$
|
|
24626
|
+
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); }
|
|
24629
24627
|
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
24630
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24628
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
24631
24629
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24632
24630
|
width: "1em",
|
|
24633
24631
|
height: "1em",
|
|
@@ -24649,7 +24647,7 @@ var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
|
24649
24647
|
}))));
|
|
24650
24648
|
};
|
|
24651
24649
|
|
|
24652
|
-
var css_248z$5 = ".search-bar:focus, .search-bar:focus-within {\n outline: none;\n border: solid 1px var(--B500)
|
|
24650
|
+
var css_248z$5 = ".search-bar:focus, .search-bar:focus-within {\n outline: none;\n border: solid 1px var(--B500);\n}\n.search-bar__input:focus, .search-bar__input:focus-visible {\n border: none;\n outline: none;\n}\n.search-bar__icon {\n z-index: 1;\n top: 50%;\n left: 8px;\n transform: translateY(-50%);\n}\n.search-bar__clear-button {\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}";
|
|
24653
24651
|
styleInject(css_248z$5);
|
|
24654
24652
|
|
|
24655
24653
|
/**
|
|
@@ -24694,21 +24692,6 @@ var SearchBar = function (_a) {
|
|
|
24694
24692
|
handleSearchChange,
|
|
24695
24693
|
debounceTimeout,
|
|
24696
24694
|
]);
|
|
24697
|
-
// assuming initialSearchText will change if we are changing history otherwise will be constant and will not change
|
|
24698
|
-
// since on changing history we expect to make api call using useAsync so not applying handleEnter
|
|
24699
|
-
React.useEffect(function () {
|
|
24700
|
-
inputRef.current.value = initialSearchText;
|
|
24701
|
-
setShowClearButton(!!initialSearchText);
|
|
24702
|
-
}, [initialSearchText]);
|
|
24703
|
-
var _applySearch = function (value) {
|
|
24704
|
-
handleSearchChange(value);
|
|
24705
|
-
handleEnter(value);
|
|
24706
|
-
};
|
|
24707
|
-
var clearSearch = function () {
|
|
24708
|
-
inputRef.current.value = '';
|
|
24709
|
-
_applySearch('');
|
|
24710
|
-
setShowClearButton(false);
|
|
24711
|
-
};
|
|
24712
24695
|
var handleChange = function (e) {
|
|
24713
24696
|
var value = e.target.value;
|
|
24714
24697
|
setShowClearButton(!!value);
|
|
@@ -24719,16 +24702,23 @@ var SearchBar = function (_a) {
|
|
|
24719
24702
|
handleSearchChange(value);
|
|
24720
24703
|
}
|
|
24721
24704
|
};
|
|
24705
|
+
var _applySearch = function (value) {
|
|
24706
|
+
handleSearchChange(value);
|
|
24707
|
+
handleEnter(value);
|
|
24708
|
+
};
|
|
24722
24709
|
var handleKeyDown = function (e) {
|
|
24723
24710
|
var key = e.key;
|
|
24724
24711
|
if (key === 'Enter') {
|
|
24725
|
-
e.preventDefault();
|
|
24726
24712
|
var inputTarget = e.target;
|
|
24727
24713
|
var value = inputTarget.value.trim();
|
|
24728
24714
|
_applySearch(value);
|
|
24729
24715
|
}
|
|
24730
24716
|
};
|
|
24731
|
-
|
|
24717
|
+
var clearSearch = function () {
|
|
24718
|
+
inputRef.current.value = '';
|
|
24719
|
+
_applySearch('');
|
|
24720
|
+
};
|
|
24721
|
+
return (jsxRuntime.jsx("div", __assign({ className: containerClassName }, { children: jsxRuntime.jsxs("div", __assign({ className: "search-bar bcn-0 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32" }, { children: [jsxRuntime.jsx(SvgIcSearch, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-18" }), jsxRuntime.jsx("input", __assign({ placeholder: "Search", "data-testid": "search-bar", type: "text" }, inputProps, { defaultValue: initialSearchText, className: "search-bar__input bcn-0 dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ".concat(showClearButton ? 'pr-30' : 'pr-10'), onChange: handleChange, onKeyDown: handleKeyDown, ref: inputRef })), showClearButton && (jsxRuntime.jsx("button", __assign({ className: "flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5", type: "button", onClick: clearSearch, "aria-label": "Clear search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-18 icon-n4 dc__vertical-align-middle" }) })))] })) })));
|
|
24732
24722
|
};
|
|
24733
24723
|
|
|
24734
24724
|
var css_248z$4 = ".toggle__switch {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.toggle__switch.disabled {\n cursor: not-allowed;\n}\n.toggle__switch.disabled .toggle__slider {\n cursor: not-allowed;\n}\n\n/* Hide default HTML checkbox */\n.toggle__switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.toggle__slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: all 0.4s ease;\n}\n.toggle__slider.round {\n border-radius: 34px;\n}\n.toggle__slider.round:before {\n border-radius: 50%;\n}\n.toggle__slider:before {\n position: absolute;\n content: \"\";\n height: calc(100% - 8px);\n width: calc(50% - 4px);\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: all 0.4s ease;\n}\n.toggle__slider.with-icon {\n background-color: var(--N000) !important;\n}\n.toggle__slider.with-icon svg {\n position: absolute;\n content: \"\";\n top: -1px;\n left: -1px;\n background-color: var(--N300);\n transition: all 0.4s ease;\n}\n\ninput:checked + .toggle__slider {\n background-color: var(--color);\n}\ninput:checked + .toggle__slider:before {\n transform: translateX(100%);\n}\ninput:checked + .toggle__slider.with-icon svg {\n transform: translateX(100%);\n background-color: var(--color);\n}\n\ninput:focus + .toggle__slider {\n box-shadow: 0 0 1px var(--color);\n}";
|
|
@@ -24867,9 +24857,9 @@ exports.ConsequenceAction = void 0;
|
|
|
24867
24857
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
24868
24858
|
|
|
24869
24859
|
var _g$2;
|
|
24870
|
-
function _extends$
|
|
24860
|
+
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); }
|
|
24871
24861
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
24872
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24862
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
24873
24863
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24874
24864
|
width: "1em",
|
|
24875
24865
|
height: "1em",
|
|
@@ -24948,16 +24938,16 @@ function DeleteComponent(_a) {
|
|
|
24948
24938
|
return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
|
|
24949
24939
|
}
|
|
24950
24940
|
|
|
24951
|
-
var _path$
|
|
24952
|
-
function _extends$
|
|
24941
|
+
var _path$6;
|
|
24942
|
+
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); }
|
|
24953
24943
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
24954
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24944
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
24955
24945
|
width: "1em",
|
|
24956
24946
|
height: "1em",
|
|
24957
24947
|
viewBox: "0 0 20 20",
|
|
24958
24948
|
fill: "none",
|
|
24959
24949
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24960
|
-
}, props), _path$
|
|
24950
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24961
24951
|
d: "M10.625 5 15 9.375m-7.5 7.5H3.75a.625.625 0 0 1-.625-.625v-3.491a.625.625 0 0 1 .183-.442l9.375-9.375a.625.625 0 0 1 .884 0l3.491 3.491a.625.625 0 0 1 0 .884L7.5 16.875Z",
|
|
24962
24952
|
stroke: "#596168",
|
|
24963
24953
|
strokeWidth: 1.5,
|
|
@@ -24966,19 +24956,19 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
24966
24956
|
})));
|
|
24967
24957
|
};
|
|
24968
24958
|
|
|
24969
|
-
var _path$
|
|
24970
|
-
function _extends$
|
|
24959
|
+
var _path$5, _path2, _path3;
|
|
24960
|
+
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); }
|
|
24971
24961
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
24972
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24962
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
24973
24963
|
width: "1em",
|
|
24974
24964
|
height: "1em",
|
|
24975
24965
|
viewBox: "0 0 12 12",
|
|
24976
24966
|
fill: "none",
|
|
24977
24967
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24978
|
-
}, props), _path$
|
|
24968
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24979
24969
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
24980
24970
|
fill: "#767D84"
|
|
24981
|
-
})), _path2
|
|
24971
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24982
24972
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
24983
24973
|
stroke: "#596168",
|
|
24984
24974
|
strokeWidth: 1.5,
|
|
@@ -24993,15 +24983,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
24993
24983
|
})));
|
|
24994
24984
|
};
|
|
24995
24985
|
|
|
24996
|
-
var _path$
|
|
24997
|
-
function _extends$
|
|
24986
|
+
var _path$4;
|
|
24987
|
+
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); }
|
|
24998
24988
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
24999
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24989
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
25000
24990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25001
24991
|
width: "1em",
|
|
25002
24992
|
height: "1em",
|
|
25003
24993
|
viewBox: "0 0 14 14"
|
|
25004
|
-
}, props), _path$
|
|
24994
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25005
24995
|
fill: "#959BA1",
|
|
25006
24996
|
className: "ic-minus_svg__fill-color",
|
|
25007
24997
|
fillRule: "evenodd",
|
|
@@ -25010,9 +25000,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
25010
25000
|
};
|
|
25011
25001
|
|
|
25012
25002
|
var _g$1;
|
|
25013
|
-
function _extends$
|
|
25003
|
+
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); }
|
|
25014
25004
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
25015
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25005
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
25016
25006
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25017
25007
|
width: "1em",
|
|
25018
25008
|
height: "1em",
|
|
@@ -25032,9 +25022,9 @@ var SvgIcWarning = function SvgIcWarning(props) {
|
|
|
25032
25022
|
};
|
|
25033
25023
|
|
|
25034
25024
|
var _g;
|
|
25035
|
-
function _extends$
|
|
25025
|
+
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); }
|
|
25036
25026
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
25037
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25027
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
25038
25028
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25039
25029
|
width: "1em",
|
|
25040
25030
|
height: "1em",
|
|
@@ -25051,16 +25041,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
25051
25041
|
}))));
|
|
25052
25042
|
};
|
|
25053
25043
|
|
|
25054
|
-
var _path$
|
|
25055
|
-
function _extends$
|
|
25044
|
+
var _path$3;
|
|
25045
|
+
function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
|
|
25056
25046
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
25057
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25047
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
25058
25048
|
width: "1em",
|
|
25059
25049
|
height: "1em",
|
|
25060
25050
|
viewBox: "0 0 16 16",
|
|
25061
25051
|
fill: "none",
|
|
25062
25052
|
xmlns: "http://www.w3.org/2000/svg"
|
|
25063
|
-
}, props), _path$
|
|
25053
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25064
25054
|
d: "M12.667 4a.667.667 0 0 0-.667.667v2.666a.667.667 0 0 1-.667.667H4.94l.867-.86a.67.67 0 1 0-.947-.947l-2 2a.667.667 0 0 0-.14.22.667.667 0 0 0 0 .507c.032.082.08.157.14.22l2 2a.666.666 0 0 0 .947 0 .667.667 0 0 0 0-.947l-.867-.86h6.393a2 2 0 0 0 2-2V4.667A.667.667 0 0 0 12.667 4Z",
|
|
25065
25055
|
fill: "#3B444C"
|
|
25066
25056
|
})));
|
|
@@ -25466,15 +25456,15 @@ function Grid(_a) {
|
|
|
25466
25456
|
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, containerDivProps, { children: children })));
|
|
25467
25457
|
}
|
|
25468
25458
|
|
|
25469
|
-
var _path$
|
|
25470
|
-
function _extends$
|
|
25459
|
+
var _path$2;
|
|
25460
|
+
function _extends$3() { _extends$3 = 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$3.apply(this, arguments); }
|
|
25471
25461
|
var SvgIcCopy = function SvgIcCopy(props) {
|
|
25472
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25462
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
25473
25463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25474
25464
|
width: "1em",
|
|
25475
25465
|
height: "1em",
|
|
25476
25466
|
viewBox: "0 0 20 20"
|
|
25477
|
-
}, props), _path$
|
|
25467
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25478
25468
|
fill: "#767D84",
|
|
25479
25469
|
fillRule: "evenodd",
|
|
25480
25470
|
d: "M15.833 6.917a2.5 2.5 0 0 1 2.5 2.5v6.416a2.5 2.5 0 0 1-2.5 2.5H9.417a2.5 2.5 0 0 1-2.5-2.5V9.417a2.5 2.5 0 0 1 2.5-2.5zm0 1.666H9.417a.833.833 0 0 0-.834.834v6.416c0 .46.373.834.834.834h6.416c.46 0 .834-.373.834-.834V9.417a.833.833 0 0 0-.834-.834zM10.75 1.667c1.24 0 2.256.968 2.33 2.19l.003.143v.75a.833.833 0 0 1-1.66.097l-.006-.097V4c0-.34-.255-.62-.583-.661l-.084-.006H4c-.34 0-.62.255-.661.583L3.333 4v6.75c0 .34.255.62.583.661l.084.006h.75a.833.833 0 0 1 .097 1.66l-.097.006H4a2.333 2.333 0 0 1-2.33-2.19l-.003-.143V4c0-1.24.968-2.256 2.19-2.33L4 1.668h6.75z"
|
|
@@ -28254,9 +28244,9 @@ var translateString = function (stringToTranslate, params) {
|
|
|
28254
28244
|
return utils.englishStringTranslator(stringToTranslate, params);
|
|
28255
28245
|
}
|
|
28256
28246
|
};
|
|
28257
|
-
var getCommonSelectStyle
|
|
28247
|
+
var getCommonSelectStyle = function (styleOverrides) {
|
|
28258
28248
|
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
28259
|
-
return __assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0
|
|
28249
|
+
return __assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0 })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base, state) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400', color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, multiValue: function (base, state) {
|
|
28260
28250
|
return __assign(__assign({}, base), { border: "1px solid var(--N200)", borderRadius: "4px", background: 'white', height: '28px', marginRight: '8px', padding: '2px', fontSize: '12px' });
|
|
28261
28251
|
} }, styleOverrides);
|
|
28262
28252
|
};
|
|
@@ -28306,15 +28296,15 @@ var getInferredTypeFromValueType = function (value) {
|
|
|
28306
28296
|
}
|
|
28307
28297
|
};
|
|
28308
28298
|
|
|
28309
|
-
var _path$
|
|
28310
|
-
function _extends$
|
|
28299
|
+
var _path$1;
|
|
28300
|
+
function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
|
|
28311
28301
|
var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
28312
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
28302
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
28313
28303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28314
28304
|
width: "1em",
|
|
28315
28305
|
height: "1em",
|
|
28316
28306
|
viewBox: "0 0 24 24"
|
|
28317
|
-
}, props), _path$
|
|
28307
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28318
28308
|
fill: "#999",
|
|
28319
28309
|
className: "ic-chevron-down_svg__fill-color",
|
|
28320
28310
|
fillRule: "nonzero",
|
|
@@ -28322,7 +28312,7 @@ var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
|
28322
28312
|
})));
|
|
28323
28313
|
};
|
|
28324
28314
|
|
|
28325
|
-
var commonStyles = getCommonSelectStyle
|
|
28315
|
+
var commonStyles = getCommonSelectStyle();
|
|
28326
28316
|
var MenuList = function (_a) {
|
|
28327
28317
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
28328
28318
|
return (jsxRuntime.jsx(components.MenuList, __assign({}, props, { children: Array.isArray(children) ? children.slice(0, 20) : children })));
|
|
@@ -28374,9 +28364,9 @@ var validator = RJSFValidator.default;
|
|
|
28374
28364
|
var RJSFForm = function (props) { return (jsxRuntime.jsx(Form, __assign({ noHtml5Validate: true, showErrorList: false, autoComplete: "off" }, props, { validator: validator, templates: __assign(__assign({}, templates), props.templates), widgets: __assign(__assign({}, widgets), props.widgets), translateString: translateString }))); };
|
|
28375
28365
|
|
|
28376
28366
|
var _style, _rect;
|
|
28377
|
-
function _extends$
|
|
28367
|
+
function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
|
|
28378
28368
|
var SvgIcRotateDevtron = function SvgIcRotateDevtron(props) {
|
|
28379
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
28369
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
28380
28370
|
width: "1em",
|
|
28381
28371
|
height: "1em",
|
|
28382
28372
|
viewBox: "0 0 100 100",
|
|
@@ -28511,9 +28501,8 @@ var handleAddCD = function (_a) {
|
|
|
28511
28501
|
handleCDSelect(workflowId, ciPipelineId, pipelineType, startNode.id, isWebhookCD, endNodeId, addPipelineType);
|
|
28512
28502
|
};
|
|
28513
28503
|
|
|
28514
|
-
// TODO: label association with input
|
|
28515
28504
|
function CustomInput(_a) {
|
|
28516
|
-
var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, label = _a.label, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.labelClassName, labelClassName = _e === void 0 ? '' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.tabIndex, tabIndex = _g === void 0 ?
|
|
28505
|
+
var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, label = _a.label, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.labelClassName, labelClassName = _e === void 0 ? '' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.tabIndex, tabIndex = _g === void 0 ? 1 : _g, _h = _a.dataTestid, dataTestid = _h === void 0 ? '' : _h, _j = _a.isRequiredField, isRequiredField = _j === void 0 ? false : _j, _k = _a.autoFocus, autoFocus = _k === void 0 ? false : _k, _l = _a.rootClassName, rootClassName = _l === void 0 ? '' : _l, _m = _a.autoComplete, autoComplete = _m === void 0 ? 'off' : _m, _o = _a.helperText, helperText = _o === void 0 ? '' : _o, handleOnBlur = _a.handleOnBlur, _p = _a.readOnly, readOnly = _p === void 0 ? false : _p, _q = _a.noTrim, noTrim = _q === void 0 ? false : _q, ref = _a.ref, onKeyPress = _a.onKeyPress, defaultValue = _a.defaultValue, onKeyDown = _a.onKeyDown, required = _a.required, additionalErrorInfo = _a.additionalErrorInfo, _r = _a.inputWrapClassName, inputWrapClassName = _r === void 0 ? '' : _r;
|
|
28517
28506
|
function handleError(error) {
|
|
28518
28507
|
if (!Array.isArray(error)) {
|
|
28519
28508
|
return [error];
|
|
@@ -28644,26 +28633,23 @@ function DraggableWrapper(_a) {
|
|
|
28644
28633
|
y: data.y,
|
|
28645
28634
|
});
|
|
28646
28635
|
}
|
|
28647
|
-
return (
|
|
28648
|
-
// Since we are using position fixed so we need to disable click on the div so that it does not interfere with the click of other elements
|
|
28649
|
-
jsxRuntime.jsx("div", __assign({ className: "dc__position-fixed dc__disable-click", style: {
|
|
28636
|
+
return (jsxRuntime.jsx("div", __assign({ className: "dc__position-fixed", style: {
|
|
28650
28637
|
zIndex: zIndex,
|
|
28651
28638
|
} }, { children: jsxRuntime.jsx(Draggable, __assign({ handle: dragSelector, nodeRef: nodeRef, position: position, onDrag: handlePositionChange }, { children: jsxRuntime.jsx("div", __assign({ ref: nodeRef }, childDivProps, { style: {
|
|
28652
28639
|
zIndex: zIndex,
|
|
28653
|
-
pointerEvents: 'auto',
|
|
28654
28640
|
} }, { children: children })) })) })));
|
|
28655
28641
|
}
|
|
28656
28642
|
|
|
28657
|
-
var _path
|
|
28658
|
-
function _extends
|
|
28643
|
+
var _path;
|
|
28644
|
+
function _extends() { _extends = 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.apply(this, arguments); }
|
|
28659
28645
|
var SvgIcDrag = function SvgIcDrag(props) {
|
|
28660
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
28646
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
28661
28647
|
width: "1em",
|
|
28662
28648
|
height: "1em",
|
|
28663
28649
|
viewBox: "0 0 16 16",
|
|
28664
28650
|
fill: "none",
|
|
28665
28651
|
xmlns: "http://www.w3.org/2000/svg"
|
|
28666
|
-
}, props), _path
|
|
28652
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28667
28653
|
d: "M10.334 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",
|
|
28668
28654
|
fill: "#596168"
|
|
28669
28655
|
})));
|
|
@@ -28785,942 +28771,12 @@ var Pagination = function (_a) {
|
|
|
28785
28771
|
jsxRuntime.jsxs("div", __assign({ className: rootClassName || '' }, { children: [jsxRuntime.jsxs("div", __assign({ className: "page-number" }, { children: [offset + 1, " - ", lastPageNo, " of ", size] })), jsxRuntime.jsxs("ul", __assign({ className: "pagination" }, { children: [jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: !pageNoIndex, onClick: selectPreviousPage, type: "button", "aria-label": "Previous page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-left" }) })) })) })), visiblePages.map(function (page) { return (jsxRuntime.jsx(PageValueItem, { value: page.value, isSelected: page.selected, selectPage: selectPage }, page.value)); }), jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: pageNoIndex === pages.length - 1, onClick: selectNextPage, type: "button", "aria-label": "Next page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-right" }) })) })) }))] })), !isPageSizeFix && (jsxRuntime.jsxs("div", __assign({ className: "select" }, { children: [jsxRuntime.jsx("span", __assign({ className: "select__placeholder" }, { children: "Rows per page" })), jsxRuntime.jsx(PageSizeSelector, { pageSizeOptions: pageSizeOptions, pageSize: pageSize, changePageSize: changePageSize })] })))] })));
|
|
28786
28772
|
};
|
|
28787
28773
|
|
|
28788
|
-
var _path$2, _path2;
|
|
28789
|
-
function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
|
|
28790
|
-
var SvgIcCpu = function SvgIcCpu(props) {
|
|
28791
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
28792
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28793
|
-
width: "1em",
|
|
28794
|
-
height: "1em",
|
|
28795
|
-
viewBox: "0 0 20 20",
|
|
28796
|
-
fill: "none"
|
|
28797
|
-
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28798
|
-
d: "M12.5 5.625h-5m5 2.5h-5m8.125-5v13.75c0 .345-.28.625-.625.625H5a.625.625 0 0 1-.625-.625V3.125c0-.345.28-.625.625-.625h10c.345 0 .625.28.625.625Z",
|
|
28799
|
-
stroke: "#596168",
|
|
28800
|
-
strokeWidth: 1.5,
|
|
28801
|
-
strokeLinecap: "round",
|
|
28802
|
-
strokeLinejoin: "round"
|
|
28803
|
-
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28804
|
-
d: "M10 15a.937.937 0 1 0 0-1.875A.937.937 0 0 0 10 15Z",
|
|
28805
|
-
fill: "#596168"
|
|
28806
|
-
})));
|
|
28807
|
-
};
|
|
28808
|
-
|
|
28809
|
-
var _path$1;
|
|
28810
|
-
function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
|
|
28811
|
-
var SvgIcMemory = function SvgIcMemory(props) {
|
|
28812
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
28813
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28814
|
-
width: "1em",
|
|
28815
|
-
height: "1em",
|
|
28816
|
-
viewBox: "0 0 20 20",
|
|
28817
|
-
fill: "none"
|
|
28818
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28819
|
-
d: "M16.25 8.125h1.875m-1.875 3.75h1.875m-16.25-3.75H3.75m-1.875 3.75H3.75m8.125 4.375v1.875m-3.75-1.875v1.875m3.75-16.25V3.75m-3.75-1.875V3.75m-.313 4.063h4.375v4.375H7.814V7.811ZM4.376 3.75h11.25c.345 0 .625.28.625.625v11.25c0 .345-.28.625-.625.625H4.375a.625.625 0 0 1-.625-.625V4.375c0-.345.28-.625.625-.625Z",
|
|
28820
|
-
stroke: "#596168",
|
|
28821
|
-
strokeWidth: 1.5,
|
|
28822
|
-
strokeLinecap: "round",
|
|
28823
|
-
strokeLinejoin: "round"
|
|
28824
|
-
})));
|
|
28825
|
-
};
|
|
28826
|
-
|
|
28827
|
-
var _path;
|
|
28828
|
-
function _extends() { _extends = 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.apply(this, arguments); }
|
|
28829
|
-
var SvgIcTimer = function SvgIcTimer(props) {
|
|
28830
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
28831
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28832
|
-
width: "1em",
|
|
28833
|
-
height: "1em",
|
|
28834
|
-
viewBox: "0 0 20 20",
|
|
28835
|
-
fill: "none"
|
|
28836
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28837
|
-
d: "m10 11.041 3.094-3.093M8.125 1.666h3.75m5 9.376a6.875 6.875 0 1 1-13.75 0 6.875 6.875 0 0 1 13.75 0Z",
|
|
28838
|
-
stroke: "#596168",
|
|
28839
|
-
strokeWidth: 1.5,
|
|
28840
|
-
strokeLinecap: "round",
|
|
28841
|
-
strokeLinejoin: "round"
|
|
28842
|
-
})));
|
|
28843
|
-
};
|
|
28844
|
-
|
|
28845
|
-
var _a$1;
|
|
28846
|
-
/**
|
|
28847
|
-
* Unique actions that will be dispatched and,
|
|
28848
|
-
* Keeping some values (cpu_limit, etc) in sync with backend
|
|
28849
|
-
*/
|
|
28850
|
-
exports.BuildInfraConfigTypes = void 0;
|
|
28851
|
-
(function (BuildInfraConfigTypes) {
|
|
28852
|
-
BuildInfraConfigTypes["CPU_LIMIT"] = "cpu_limit";
|
|
28853
|
-
BuildInfraConfigTypes["CPU_REQUEST"] = "cpu_request";
|
|
28854
|
-
BuildInfraConfigTypes["MEMORY_LIMIT"] = "memory_limit";
|
|
28855
|
-
BuildInfraConfigTypes["MEMORY_REQUEST"] = "memory_request";
|
|
28856
|
-
BuildInfraConfigTypes["BUILD_TIMEOUT"] = "timeout";
|
|
28857
|
-
})(exports.BuildInfraConfigTypes || (exports.BuildInfraConfigTypes = {}));
|
|
28858
|
-
/**
|
|
28859
|
-
* Combination of BuildInfraConfigTypes and BuildInfraMetaConfigTypes is going to derive error state and actions(actions will also be derived with BuildInfraInheritActions)
|
|
28860
|
-
*/
|
|
28861
|
-
exports.BuildInfraMetaConfigTypes = void 0;
|
|
28862
|
-
(function (BuildInfraMetaConfigTypes) {
|
|
28863
|
-
BuildInfraMetaConfigTypes["NAME"] = "name";
|
|
28864
|
-
BuildInfraMetaConfigTypes["DESCRIPTION"] = "description";
|
|
28865
|
-
})(exports.BuildInfraMetaConfigTypes || (exports.BuildInfraMetaConfigTypes = {}));
|
|
28866
|
-
/**
|
|
28867
|
-
* Would be used as key for few components and would be appending activate and de_activate actions to it
|
|
28868
|
-
*/
|
|
28869
|
-
exports.BuildInfraLocators = void 0;
|
|
28870
|
-
(function (BuildInfraLocators) {
|
|
28871
|
-
BuildInfraLocators["CPU"] = "cpu";
|
|
28872
|
-
BuildInfraLocators["MEMORY"] = "memory";
|
|
28873
|
-
// This name can be also different from BuildInfraConfigTypes[BUILD_TIMEOUT] in case we want to show different label
|
|
28874
|
-
BuildInfraLocators["BUILD_TIMEOUT"] = "timeout";
|
|
28875
|
-
})(exports.BuildInfraLocators || (exports.BuildInfraLocators = {}));
|
|
28876
|
-
// FIXME: Derive this from BuildInfraLocators
|
|
28877
|
-
// Appending the locators from above
|
|
28878
|
-
exports.BuildInfraInheritActions = void 0;
|
|
28879
|
-
(function (BuildInfraInheritActions) {
|
|
28880
|
-
BuildInfraInheritActions["ACTIVATE_CPU"] = "activate_cpu";
|
|
28881
|
-
BuildInfraInheritActions["DE_ACTIVATE_CPU"] = "de_activate_cpu";
|
|
28882
|
-
BuildInfraInheritActions["ACTIVATE_MEMORY"] = "activate_memory";
|
|
28883
|
-
BuildInfraInheritActions["DE_ACTIVATE_MEMORY"] = "de_activate_memory";
|
|
28884
|
-
BuildInfraInheritActions["ACTIVATE_BUILD_TIMEOUT"] = "activate_timeout";
|
|
28885
|
-
BuildInfraInheritActions["DE_ACTIVATE_BUILD_TIMEOUT"] = "de_activate_timeout";
|
|
28886
|
-
})(exports.BuildInfraInheritActions || (exports.BuildInfraInheritActions = {}));
|
|
28887
|
-
var BuildInfraConfigActionMap = (_a$1 = {},
|
|
28888
|
-
_a$1[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = exports.BuildInfraLocators.BUILD_TIMEOUT,
|
|
28889
|
-
_a$1[exports.BuildInfraConfigTypes.CPU_LIMIT] = exports.BuildInfraLocators.CPU,
|
|
28890
|
-
_a$1[exports.BuildInfraConfigTypes.CPU_REQUEST] = exports.BuildInfraLocators.CPU,
|
|
28891
|
-
_a$1[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = exports.BuildInfraLocators.MEMORY,
|
|
28892
|
-
_a$1[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = exports.BuildInfraLocators.MEMORY,
|
|
28893
|
-
_a$1);
|
|
28894
|
-
exports.BuildInfraProfileVariants = void 0;
|
|
28895
|
-
(function (BuildInfraProfileVariants) {
|
|
28896
|
-
BuildInfraProfileVariants["DEFAULT"] = "DEFAULT";
|
|
28897
|
-
BuildInfraProfileVariants["NORMAL"] = "NORMAL";
|
|
28898
|
-
BuildInfraProfileVariants["CUSTOM"] = "CUSTOM";
|
|
28899
|
-
})(exports.BuildInfraProfileVariants || (exports.BuildInfraProfileVariants = {}));
|
|
28900
|
-
|
|
28901
|
-
var _a;
|
|
28902
|
-
var BUILD_INFRA_INPUT_CONSTRAINTS = {
|
|
28903
|
-
STEP: 0.01,
|
|
28904
|
-
MIN: 0,
|
|
28905
|
-
DECIMAL_PLACES: 2,
|
|
28906
|
-
};
|
|
28907
|
-
var BUILD_INFRA_TEXT = {
|
|
28908
|
-
HEADING: 'Build Infra Configuration',
|
|
28909
|
-
EDIT_SUBMIT: 'Save changes',
|
|
28910
|
-
SAVE_SUBMIT: 'Save',
|
|
28911
|
-
EDIT_CANCEL: 'Cancel',
|
|
28912
|
-
EDIT_DEFAULT_TOOLTIP: 'Efficiently control infrastructure settings such as CPU, Memory, and Build timeout for your build pipelines. Streamline resource management to optimise build time and cost effortlessly.',
|
|
28913
|
-
DESCRIPTION_LABEL: 'Description',
|
|
28914
|
-
DESCRIPTION_PLACEHOLDER: 'Enter a description here',
|
|
28915
|
-
PROFILE_LABEL: 'Profile name',
|
|
28916
|
-
PROFILE_PLACEHOLDER: 'Eg. java or node',
|
|
28917
|
-
INHERITING_HEADING_DESCRIPTION: 'Inheriting from default',
|
|
28918
|
-
SUBMIT_BUTTON_TIPPY: {
|
|
28919
|
-
INVALID_INPUT: 'Valid input is required for all mandatory fields.',
|
|
28920
|
-
REQUEST_IN_PROGRESS: 'Request in progress.',
|
|
28921
|
-
},
|
|
28922
|
-
VALIDATE_REQUEST_LIMIT: {
|
|
28923
|
-
// Might use the constants from BUILD_INFRA_INPUT_CONSTRAINTS even for NEGATIVE_REQUEST and NEGATIVE_LIMIT
|
|
28924
|
-
NEGATIVE_REQUEST: 'Request should be a positive number.',
|
|
28925
|
-
NEGATIVE_LIMIT: 'Limit should be a positive number.',
|
|
28926
|
-
REQUEST_LESS_THAN_LIMIT: 'Request should be less than or equal to limit.',
|
|
28927
|
-
CAN_NOT_COMPUTE: 'Request and limit value diff are too high to validate.',
|
|
28928
|
-
REQUEST_DECIMAL_PLACES: "Request should be upto ".concat(BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES, " decimal places."),
|
|
28929
|
-
LIMIT_DECIMAL_PLACES: "Limit should be upto ".concat(BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES, " decimal places."),
|
|
28930
|
-
},
|
|
28931
|
-
getInvalidActionMessage: function (action) { return "Invalid action type: ".concat(action); },
|
|
28932
|
-
getSubmitSuccessMessage: function (profileName, isEdited) {
|
|
28933
|
-
return "".concat(profileName, " profile is ").concat(isEdited ? 'updated' : 'created');
|
|
28934
|
-
},
|
|
28935
|
-
PROFILE_NOT_FOUND: {
|
|
28936
|
-
title: 'Profile not found',
|
|
28937
|
-
subTitle: 'The profile you are looking for does not exist.',
|
|
28938
|
-
},
|
|
28939
|
-
INVALID_FORM_MESSAGE: 'Valid input is required for all mandatory fields.',
|
|
28940
|
-
};
|
|
28941
|
-
var BUILD_INFRA_BREADCRUMB = {
|
|
28942
|
-
alias: {
|
|
28943
|
-
'global-config': null,
|
|
28944
|
-
'build-infra': {
|
|
28945
|
-
component: jsxRuntime.jsx("h2", __assign({ className: "m-0 cn-9 fs-16 fw-6 lh-32" }, { children: BUILD_INFRA_TEXT.HEADING })),
|
|
28946
|
-
linked: false,
|
|
28947
|
-
},
|
|
28948
|
-
},
|
|
28949
|
-
};
|
|
28950
|
-
// TODO: move heading to component itself
|
|
28951
|
-
var BUILD_INFRA_FORM_FIELDS = [
|
|
28952
|
-
{
|
|
28953
|
-
heading: jsxRuntime.jsx("h3", __assign({ className: "m-0 cn-9 fs-13 fw-6 lh-20 w-240 dc__no-shrink" }, { children: "CPU (Request - Limit)" })),
|
|
28954
|
-
marker: SvgIcCpu,
|
|
28955
|
-
actions: [
|
|
28956
|
-
{
|
|
28957
|
-
actionType: exports.BuildInfraConfigTypes.CPU_REQUEST,
|
|
28958
|
-
label: 'Request',
|
|
28959
|
-
placeholder: 'Type CPU request',
|
|
28960
|
-
},
|
|
28961
|
-
{
|
|
28962
|
-
actionType: exports.BuildInfraConfigTypes.CPU_LIMIT,
|
|
28963
|
-
label: 'Limit',
|
|
28964
|
-
placeholder: 'Type CPU limit',
|
|
28965
|
-
},
|
|
28966
|
-
],
|
|
28967
|
-
locator: exports.BuildInfraLocators.CPU,
|
|
28968
|
-
},
|
|
28969
|
-
{
|
|
28970
|
-
heading: jsxRuntime.jsx("h3", __assign({ className: "m-0 cn-9 fs-13 fw-6 lh-20 w-240 dc__no-shrink" }, { children: "Memory (Request - Limit)" })),
|
|
28971
|
-
marker: SvgIcMemory,
|
|
28972
|
-
actions: [
|
|
28973
|
-
{
|
|
28974
|
-
actionType: exports.BuildInfraConfigTypes.MEMORY_REQUEST,
|
|
28975
|
-
label: 'Request',
|
|
28976
|
-
placeholder: 'Type memory request',
|
|
28977
|
-
},
|
|
28978
|
-
{
|
|
28979
|
-
actionType: exports.BuildInfraConfigTypes.MEMORY_LIMIT,
|
|
28980
|
-
label: 'Limit',
|
|
28981
|
-
placeholder: 'Type memory limit',
|
|
28982
|
-
},
|
|
28983
|
-
],
|
|
28984
|
-
locator: exports.BuildInfraLocators.MEMORY,
|
|
28985
|
-
},
|
|
28986
|
-
{
|
|
28987
|
-
heading: jsxRuntime.jsx("h3", __assign({ className: "m-0 cn-9 fs-13 fw-6 lh-20 w-240 dc__no-shrink" }, { children: "Build timeout" })),
|
|
28988
|
-
marker: SvgIcTimer,
|
|
28989
|
-
actions: [
|
|
28990
|
-
{
|
|
28991
|
-
actionType: exports.BuildInfraConfigTypes.BUILD_TIMEOUT,
|
|
28992
|
-
label: 'Timeout',
|
|
28993
|
-
placeholder: 'Type build timeout',
|
|
28994
|
-
},
|
|
28995
|
-
],
|
|
28996
|
-
locator: exports.BuildInfraLocators.BUILD_TIMEOUT,
|
|
28997
|
-
},
|
|
28998
|
-
];
|
|
28999
|
-
var PROFILE_INPUT_ERROR_FIELDS = Object.fromEntries(Object.values(__assign(__assign({}, exports.BuildInfraConfigTypes), exports.BuildInfraMetaConfigTypes)).map(function (value) { return [value, null]; }));
|
|
29000
|
-
// fields required to be filled before submitting the form in create view, since we pre-populate the form with default values so no need in configs
|
|
29001
|
-
var CREATE_MODE_REQUIRED_INPUT_FIELDS = [exports.BuildInfraMetaConfigTypes.NAME];
|
|
29002
|
-
var DEFAULT_PROFILE_NAME = 'default';
|
|
29003
|
-
var CREATE_PROFILE_BASE_VALUE = {
|
|
29004
|
-
name: '',
|
|
29005
|
-
description: '',
|
|
29006
|
-
type: exports.BuildInfraProfileVariants.NORMAL,
|
|
29007
|
-
appCount: 0,
|
|
29008
|
-
};
|
|
29009
|
-
var CREATE_VIEW_CHECKED_CONFIGS = (_a = {},
|
|
29010
|
-
_a[exports.BuildInfraConfigTypes.CPU_REQUEST] = true,
|
|
29011
|
-
_a[exports.BuildInfraConfigTypes.CPU_LIMIT] = true,
|
|
29012
|
-
_a);
|
|
29013
|
-
var BUILD_INFRA_TEST_IDS = {
|
|
29014
|
-
SUBMIT_BUTTON: 'build-infra-submit-button',
|
|
29015
|
-
CANCEL_BUTTON: 'build-infra-cancel-button',
|
|
29016
|
-
};
|
|
29017
|
-
|
|
29018
|
-
var Descriptor = function (_a) {
|
|
29019
|
-
var additionalContainerClasses = _a.additionalContainerClasses, breadCrumbs = _a.breadCrumbs, children = _a.children, tippyInfoText = _a.tippyInfoText, tippyAdditionalContent = _a.tippyAdditionalContent;
|
|
29020
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__content-space dc__align-items-center w-100 ".concat(additionalContainerClasses !== null && additionalContainerClasses !== void 0 ? additionalContainerClasses : '') }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__align-items-center dc__gap-4" }, { children: [jsxRuntime.jsx(BreadCrumb, { breadcrumbs: breadCrumbs }), jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300 h-100 dc__align-left", placement: "right", Icon: SvgIcHelp, iconClass: "fcv-5", infoText: tippyInfoText !== null && tippyInfoText !== void 0 ? tippyInfoText : BUILD_INFRA_TEXT.EDIT_DEFAULT_TOOLTIP, additionalContent: tippyAdditionalContent, heading: BUILD_INFRA_TEXT.HEADING, showCloseButton: true, trigger: "click", interactive: true }, { children: jsxRuntime.jsx("button", __assign({ className: "p-0 h-20 dc__no-background dc__no-border dc__tab-focus", type: "button", "aria-label": "build-infra-info" }, { children: jsxRuntime.jsx(SvgIcHelpOutline, { className: "icon-dim-20" }) })) }))] })), children] })));
|
|
29021
|
-
};
|
|
29022
|
-
|
|
29023
|
-
var Footer = function (_a) {
|
|
29024
|
-
var disabled = _a.disabled, handleCancel = _a.handleCancel, editProfile = _a.editProfile, loading = _a.loading;
|
|
29025
|
-
var disableMessage = disabled
|
|
29026
|
-
? BUILD_INFRA_TEXT.SUBMIT_BUTTON_TIPPY.INVALID_INPUT
|
|
29027
|
-
: BUILD_INFRA_TEXT.SUBMIT_BUTTON_TIPPY.REQUEST_IN_PROGRESS;
|
|
29028
|
-
var getButtonText = function () {
|
|
29029
|
-
if (editProfile) {
|
|
29030
|
-
return BUILD_INFRA_TEXT.EDIT_SUBMIT;
|
|
29031
|
-
}
|
|
29032
|
-
return BUILD_INFRA_TEXT.SAVE_SUBMIT;
|
|
29033
|
-
};
|
|
29034
|
-
var renderTippy = function (children) { return (jsxRuntime.jsx(Tippy, __assign({ content: disableMessage, placement: "top", className: "default-tt", arrow: false }, { children: children }))); };
|
|
29035
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flex pl pr pb pt h-64 dc__gap-12 dc__border-top dc__content-start" }, { children: [jsxRuntime.jsx(ConditionalWrap, __assign({ condition: disabled || loading, wrap: renderTippy }, { children: jsxRuntime.jsx("div", __assign({ className: "flexbox dc__align-items-center" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit", className: "cta submit h-32 flex", disabled: disabled || loading, "data-testid": BUILD_INFRA_TEST_IDS.SUBMIT_BUTTON }, { children: loading ? jsxRuntime.jsx(Progressing, { size: 16 }) : getButtonText() })) })) })), handleCancel && (jsxRuntime.jsx("button", __assign({ type: "button", className: "cta cancel h-32 flex", "data-testid": BUILD_INFRA_TEST_IDS.CANCEL_BUTTON, onClick: handleCancel }, { children: BUILD_INFRA_TEXT.EDIT_CANCEL })))] })));
|
|
29036
|
-
};
|
|
29037
|
-
|
|
29038
|
-
var getBaseProfileObject = function (fromCreateView, profile) {
|
|
29039
|
-
if (fromCreateView) {
|
|
29040
|
-
return CREATE_PROFILE_BASE_VALUE;
|
|
29041
|
-
}
|
|
29042
|
-
return {
|
|
29043
|
-
id: profile.id,
|
|
29044
|
-
name: profile.name,
|
|
29045
|
-
description: profile.description,
|
|
29046
|
-
type: profile.type,
|
|
29047
|
-
appCount: profile.appCount,
|
|
29048
|
-
};
|
|
29049
|
-
};
|
|
29050
|
-
// Would receive a single profile and return transformed response
|
|
29051
|
-
var getTransformedBuildInfraProfileResponse = function (_a) {
|
|
29052
|
-
var _b, _c, _d;
|
|
29053
|
-
var configurationUnits = _a.configurationUnits, defaultConfigurations = _a.defaultConfigurations, profile = _a.profile, fromCreateView = _a.fromCreateView;
|
|
29054
|
-
// Assuming would contain all the keys
|
|
29055
|
-
var defaultConfigurationsMap = (_b = defaultConfigurations === null || defaultConfigurations === void 0 ? void 0 : defaultConfigurations.reduce(function (acc, configuration) {
|
|
29056
|
-
acc[configuration.key] = configuration;
|
|
29057
|
-
return acc;
|
|
29058
|
-
}, {})) !== null && _b !== void 0 ? _b : {};
|
|
29059
|
-
var profileConfigurations = (_d = (_c = profile === null || profile === void 0 ? void 0 : profile.configurations) === null || _c === void 0 ? void 0 : _c.reduce(function (acc, configuration) {
|
|
29060
|
-
acc[configuration.key] = configuration;
|
|
29061
|
-
return acc;
|
|
29062
|
-
}, {})) !== null && _d !== void 0 ? _d : {};
|
|
29063
|
-
var configurations = Object.keys(defaultConfigurationsMap).reduce(function (acc, key) {
|
|
29064
|
-
var _a, _b;
|
|
29065
|
-
var defaultConfiguration = defaultConfigurationsMap[key];
|
|
29066
|
-
var profileConfiguration = ((_a = profileConfigurations[key]) === null || _a === void 0 ? void 0 : _a.profileName) === (profile === null || profile === void 0 ? void 0 : profile.name) ? profileConfigurations[key] : null;
|
|
29067
|
-
// Pushing default value in configurations in case we de-activate the configuration
|
|
29068
|
-
var defaultValue = {
|
|
29069
|
-
value: defaultConfiguration.value,
|
|
29070
|
-
unit: defaultConfiguration.unit,
|
|
29071
|
-
};
|
|
29072
|
-
if (fromCreateView) {
|
|
29073
|
-
acc[key] = {
|
|
29074
|
-
key: key,
|
|
29075
|
-
value: defaultConfiguration.value,
|
|
29076
|
-
unit: defaultConfiguration.unit,
|
|
29077
|
-
active: (_b = CREATE_VIEW_CHECKED_CONFIGS[key]) !== null && _b !== void 0 ? _b : false,
|
|
29078
|
-
defaultValue: defaultValue,
|
|
29079
|
-
};
|
|
29080
|
-
return acc;
|
|
29081
|
-
}
|
|
29082
|
-
if (profileConfiguration) {
|
|
29083
|
-
acc[key] = __assign(__assign({}, profileConfiguration), { defaultValue: defaultValue });
|
|
29084
|
-
return acc;
|
|
29085
|
-
}
|
|
29086
|
-
// Removing id from it since we do not have a configuration
|
|
29087
|
-
// While generating payload, we will check on the basis of id and active flag.
|
|
29088
|
-
acc[key] = {
|
|
29089
|
-
key: key,
|
|
29090
|
-
value: defaultConfiguration.value,
|
|
29091
|
-
// saving profile name as undefined and this would be a check, if we are deriving from default or not
|
|
29092
|
-
unit: defaultConfiguration.unit,
|
|
29093
|
-
active: false,
|
|
29094
|
-
defaultValue: defaultValue,
|
|
29095
|
-
};
|
|
29096
|
-
return acc;
|
|
29097
|
-
}, {});
|
|
29098
|
-
return {
|
|
29099
|
-
configurationUnits: configurationUnits,
|
|
29100
|
-
profile: __assign(__assign({}, (profile && getBaseProfileObject(fromCreateView, profile))), { configurations: configurations }),
|
|
29101
|
-
};
|
|
29102
|
-
};
|
|
29103
|
-
var getBuildInfraProfileByName = function (_a) {
|
|
29104
|
-
var name = _a.name, fromCreateView = _a.fromCreateView;
|
|
29105
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
29106
|
-
var response, _b, configurationUnits, defaultConfigurations, profile, error_1;
|
|
29107
|
-
return __generator(this, function (_c) {
|
|
29108
|
-
switch (_c.label) {
|
|
29109
|
-
case 0:
|
|
29110
|
-
_c.trys.push([0, 2, , 3]);
|
|
29111
|
-
return [4 /*yield*/, get("".concat(ROUTES.INFRA_CONFIG_PROFILE, "/").concat(name))];
|
|
29112
|
-
case 1:
|
|
29113
|
-
response = _c.sent();
|
|
29114
|
-
_b = response.result, configurationUnits = _b.configurationUnits, defaultConfigurations = _b.defaultConfigurations, profile = _b.profile;
|
|
29115
|
-
return [2 /*return*/, getTransformedBuildInfraProfileResponse({
|
|
29116
|
-
configurationUnits: configurationUnits,
|
|
29117
|
-
defaultConfigurations: defaultConfigurations,
|
|
29118
|
-
profile: profile,
|
|
29119
|
-
fromCreateView: fromCreateView,
|
|
29120
|
-
})];
|
|
29121
|
-
case 2:
|
|
29122
|
-
error_1 = _c.sent();
|
|
29123
|
-
showError(error_1);
|
|
29124
|
-
throw error_1;
|
|
29125
|
-
case 3: return [2 /*return*/];
|
|
29126
|
-
}
|
|
29127
|
-
});
|
|
29128
|
-
});
|
|
29129
|
-
};
|
|
29130
|
-
var getBuildInfraProfilePayload = function (profileInput) {
|
|
29131
|
-
var currentConfigurations = profileInput.configurations;
|
|
29132
|
-
var configurationKeys = Object.keys(currentConfigurations);
|
|
29133
|
-
// would only keep the configurations with id or active flag as true
|
|
29134
|
-
var configurations = configurationKeys.reduce(function (acc, key) {
|
|
29135
|
-
var configuration = currentConfigurations[key];
|
|
29136
|
-
if (configuration.id || configuration.active) {
|
|
29137
|
-
acc.push({
|
|
29138
|
-
id: configuration.id,
|
|
29139
|
-
key: key,
|
|
29140
|
-
value: Number(configuration.value),
|
|
29141
|
-
unit: configuration.unit,
|
|
29142
|
-
active: configuration.active,
|
|
29143
|
-
});
|
|
29144
|
-
}
|
|
29145
|
-
return acc;
|
|
29146
|
-
}, []);
|
|
29147
|
-
var payload = {
|
|
29148
|
-
name: profileInput.name,
|
|
29149
|
-
description: profileInput.description,
|
|
29150
|
-
type: profileInput.type,
|
|
29151
|
-
configurations: configurations,
|
|
29152
|
-
};
|
|
29153
|
-
return payload;
|
|
29154
|
-
};
|
|
29155
|
-
var updateBuildInfraProfile = function (_a) {
|
|
29156
|
-
var name = _a.name, profileInput = _a.profileInput;
|
|
29157
|
-
var payload = getBuildInfraProfilePayload(profileInput);
|
|
29158
|
-
return put("".concat(ROUTES.INFRA_CONFIG_PROFILE, "/").concat(name), payload);
|
|
29159
|
-
};
|
|
29160
|
-
var createBuildInfraProfile = function (_a) {
|
|
29161
|
-
var profileInput = _a.profileInput;
|
|
29162
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
29163
|
-
var payload;
|
|
29164
|
-
return __generator(this, function (_b) {
|
|
29165
|
-
payload = getBuildInfraProfilePayload(profileInput);
|
|
29166
|
-
return [2 /*return*/, post(ROUTES.INFRA_CONFIG_PROFILE, payload)];
|
|
29167
|
-
});
|
|
29168
|
-
});
|
|
29169
|
-
};
|
|
29170
|
-
|
|
29171
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
29172
|
-
var NOT_FOUND_DEFAULT_TEXT = {
|
|
29173
|
-
title: 'Resource not found',
|
|
29174
|
-
subTitle: 'The resource you are looking for does not exist',
|
|
29175
|
-
};
|
|
29176
|
-
|
|
29177
|
-
var APIResponseHandler = function (_a) {
|
|
29178
|
-
var _b, _c;
|
|
29179
|
-
var isLoading = _a.isLoading, progressingProps = _a.progressingProps, error = _a.error, notAuthorized = _a.notAuthorized, notFoundText = _a.notFoundText, reloadProps = _a.reloadProps, children = _a.children;
|
|
29180
|
-
// keeping it above loading since, not expected to send a call if not authorized
|
|
29181
|
-
if (notAuthorized) {
|
|
29182
|
-
return jsxRuntime.jsx(ErrorScreenNotAuthorized, {});
|
|
29183
|
-
}
|
|
29184
|
-
if (isLoading) {
|
|
29185
|
-
return jsxRuntime.jsx(Progressing, __assign({}, progressingProps));
|
|
29186
|
-
}
|
|
29187
|
-
if (error) {
|
|
29188
|
-
// TODO: Can extend ErrorScreenNotFound
|
|
29189
|
-
if ((error === null || error === void 0 ? void 0 : error.code) === 404) {
|
|
29190
|
-
return (jsxRuntime.jsx(GenericEmptyState, { title: (_b = notFoundText === null || notFoundText === void 0 ? void 0 : notFoundText.title) !== null && _b !== void 0 ? _b : NOT_FOUND_DEFAULT_TEXT.title, subTitle: (_c = notFoundText === null || notFoundText === void 0 ? void 0 : notFoundText.subTitle) !== null && _c !== void 0 ? _c : NOT_FOUND_DEFAULT_TEXT.subTitle }));
|
|
29191
|
-
}
|
|
29192
|
-
return jsxRuntime.jsx(Reload, __assign({}, reloadProps));
|
|
29193
|
-
}
|
|
29194
|
-
// Had to add this since while using it is throwing ts error
|
|
29195
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
29196
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children });
|
|
29197
|
-
};
|
|
29198
|
-
|
|
29199
|
-
var getCommonSelectStyle = function (styleOverrides) {
|
|
29200
|
-
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
29201
|
-
return (__assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0 })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400' })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); } }, styleOverrides));
|
|
29202
|
-
};
|
|
29203
|
-
var getCustomOptionBackgroundColor = function (isSelected, isFocused) {
|
|
29204
|
-
if (isSelected) {
|
|
29205
|
-
return 'var(--B100)';
|
|
29206
|
-
}
|
|
29207
|
-
if (isFocused) {
|
|
29208
|
-
return 'var(--N50)';
|
|
29209
|
-
}
|
|
29210
|
-
return 'var(--white)';
|
|
29211
|
-
};
|
|
29212
|
-
var getCustomOptionSelectionStyle = function (styleOverrides) {
|
|
29213
|
-
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
29214
|
-
return function (base, state) { return (__assign(__assign(__assign({}, base), { backgroundColor: getCustomOptionBackgroundColor(state.isSelected, state.isFocused), color: state.isSelected ? 'var(--B500)' : 'var(--N900)', textOverflow: 'ellipsis', fontWeight: '500', overflow: 'hidden', textAlign: 'left', whiteSpace: 'nowrap', cursor: 'pointer', fontSize: '13px' }), styleOverrides)); };
|
|
29215
|
-
};
|
|
29216
|
-
var SelectOption = function (props) {
|
|
29217
|
-
var selectProps = props.selectProps, data = props.data, showTippy = props.showTippy, style = props.style, placement = props.placement, tippyContent = props.tippyContent, tippyClass = props.tippyClass;
|
|
29218
|
-
selectProps.styles.option = getCustomOptionSelectionStyle(style);
|
|
29219
|
-
var getOption = function () { return (jsxRuntime.jsx("div", __assign({ onClick: stopPropagation }, { children: jsxRuntime.jsx(components.Option, __assign({}, props)) }))); };
|
|
29220
|
-
return showTippy ? (jsxRuntime.jsx(Tippy, __assign({ className: tippyClass || 'default-white', arrow: false, placement: placement || 'right', content: tippyContent || data.label }, { children: getOption() }))) : (getOption());
|
|
29221
|
-
};
|
|
29222
|
-
|
|
29223
|
-
var validateName = function (name) {
|
|
29224
|
-
if (!/^.{3,50}$/.test(name)) {
|
|
29225
|
-
return {
|
|
29226
|
-
isValid: false,
|
|
29227
|
-
message: 'Minimum 3 and maximum 50 characters allowed',
|
|
29228
|
-
};
|
|
29229
|
-
}
|
|
29230
|
-
if (!/^[a-z0-9-._]+$/.test(name)) {
|
|
29231
|
-
return {
|
|
29232
|
-
isValid: false,
|
|
29233
|
-
message: 'Only lowercase alphanumeric characters, -, _ or . allowed',
|
|
29234
|
-
};
|
|
29235
|
-
}
|
|
29236
|
-
if (!/^(?![-._]).*[^-._]$/.test(name)) {
|
|
29237
|
-
return {
|
|
29238
|
-
isValid: false,
|
|
29239
|
-
message: 'Cannot start/end with -, _ or .',
|
|
29240
|
-
};
|
|
29241
|
-
}
|
|
29242
|
-
return {
|
|
29243
|
-
isValid: true,
|
|
29244
|
-
};
|
|
29245
|
-
};
|
|
29246
|
-
var validateDescription = function (description) {
|
|
29247
|
-
if ((description === null || description === void 0 ? void 0 : description.length) > 300) {
|
|
29248
|
-
return {
|
|
29249
|
-
isValid: false,
|
|
29250
|
-
message: 'Maximum 300 characters are allowed',
|
|
29251
|
-
};
|
|
29252
|
-
}
|
|
29253
|
-
return {
|
|
29254
|
-
isValid: true,
|
|
29255
|
-
};
|
|
29256
|
-
};
|
|
29257
|
-
var validateRequiredPositiveNumber = function (value) {
|
|
29258
|
-
if (!value) {
|
|
29259
|
-
return {
|
|
29260
|
-
isValid: false,
|
|
29261
|
-
message: 'This field is required',
|
|
29262
|
-
};
|
|
29263
|
-
}
|
|
29264
|
-
// TODO: Look if regex is available for this, since 0002 is not a valid number
|
|
29265
|
-
if (!/^\d+(\.\d+)?$/.test(value.toString())) {
|
|
29266
|
-
return {
|
|
29267
|
-
isValid: false,
|
|
29268
|
-
message: 'This field should be a valid positive number',
|
|
29269
|
-
};
|
|
29270
|
-
}
|
|
29271
|
-
if (Number(value) <= 0) {
|
|
29272
|
-
return {
|
|
29273
|
-
isValid: false,
|
|
29274
|
-
message: 'Only positive numbers are allowed',
|
|
29275
|
-
};
|
|
29276
|
-
}
|
|
29277
|
-
return {
|
|
29278
|
-
isValid: true,
|
|
29279
|
-
};
|
|
29280
|
-
};
|
|
29281
|
-
|
|
29282
|
-
// Disabling default export since this is a helper function and we would have to export a lot of functions in future.
|
|
29283
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
29284
|
-
var highlightSearchText = function (_a) {
|
|
29285
|
-
var searchText = _a.searchText, text = _a.text, highlightClasses = _a.highlightClasses;
|
|
29286
|
-
if (!searchText) {
|
|
29287
|
-
return text;
|
|
29288
|
-
}
|
|
29289
|
-
try {
|
|
29290
|
-
var regex = new RegExp(searchText, 'gi');
|
|
29291
|
-
return text.replace(regex, function (match) { return "<span class=\"".concat(highlightClasses, "\">").concat(match, "</span>"); });
|
|
29292
|
-
}
|
|
29293
|
-
catch (error) {
|
|
29294
|
-
return text;
|
|
29295
|
-
}
|
|
29296
|
-
};
|
|
29297
|
-
|
|
29298
|
-
var validateRequestLimit = function (_a) {
|
|
29299
|
-
var _b, _c, _d, _e, _f, _g;
|
|
29300
|
-
var request = _a.request, limit = _a.limit, unitsMap = _a.unitsMap;
|
|
29301
|
-
// Request <= Limit
|
|
29302
|
-
// Request and Limit should be numbers can be decimals
|
|
29303
|
-
// Request and Limit should be positive numbers
|
|
29304
|
-
// Request and Limit should be less than Number.MAX_SAFE_INTEGER
|
|
29305
|
-
// Request and Limit should can have at most BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES
|
|
29306
|
-
// Both request and limit should be there
|
|
29307
|
-
var requestNumber = Number(request.value);
|
|
29308
|
-
var limitNumber = Number(limit.value);
|
|
29309
|
-
var requestUnit = Number((_b = unitsMap[request.unit]) === null || _b === void 0 ? void 0 : _b.conversionFactor);
|
|
29310
|
-
var limitUnit = Number((_c = unitsMap[limit.unit]) === null || _c === void 0 ? void 0 : _c.conversionFactor);
|
|
29311
|
-
var requestLimitValidationResponse = {
|
|
29312
|
-
request: {
|
|
29313
|
-
isValid: true,
|
|
29314
|
-
},
|
|
29315
|
-
limit: {
|
|
29316
|
-
isValid: true,
|
|
29317
|
-
},
|
|
29318
|
-
};
|
|
29319
|
-
var isRequestValidNumber = validateRequiredPositiveNumber(request.value).isValid;
|
|
29320
|
-
var isLimitValidNumber = validateRequiredPositiveNumber(limit.value).isValid;
|
|
29321
|
-
if (!isRequestValidNumber) {
|
|
29322
|
-
requestLimitValidationResponse.request = {
|
|
29323
|
-
message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.NEGATIVE_REQUEST,
|
|
29324
|
-
isValid: false,
|
|
29325
|
-
};
|
|
29326
|
-
}
|
|
29327
|
-
if (!isLimitValidNumber) {
|
|
29328
|
-
requestLimitValidationResponse.limit = {
|
|
29329
|
-
message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.NEGATIVE_LIMIT,
|
|
29330
|
-
isValid: false,
|
|
29331
|
-
};
|
|
29332
|
-
}
|
|
29333
|
-
if (!isRequestValidNumber || !isLimitValidNumber) {
|
|
29334
|
-
return requestLimitValidationResponse;
|
|
29335
|
-
}
|
|
29336
|
-
// only two decimal places are allowed
|
|
29337
|
-
var requestDecimalPlaces = (_e = (_d = String(request.value).split('.')[1]) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0;
|
|
29338
|
-
var limitDecimalPlaces = (_g = (_f = String(limit.value).split('.')[1]) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0;
|
|
29339
|
-
if (requestDecimalPlaces > BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES) {
|
|
29340
|
-
requestLimitValidationResponse.request = {
|
|
29341
|
-
message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.REQUEST_DECIMAL_PLACES,
|
|
29342
|
-
isValid: false,
|
|
29343
|
-
};
|
|
29344
|
-
return requestLimitValidationResponse;
|
|
29345
|
-
}
|
|
29346
|
-
if (limitDecimalPlaces > BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES) {
|
|
29347
|
-
requestLimitValidationResponse.limit = {
|
|
29348
|
-
message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.LIMIT_DECIMAL_PLACES,
|
|
29349
|
-
isValid: false,
|
|
29350
|
-
};
|
|
29351
|
-
return requestLimitValidationResponse;
|
|
29352
|
-
}
|
|
29353
|
-
// Assuming requestUnit and requestNumber are not 0
|
|
29354
|
-
// TODO: Communicate this assumption to the backend
|
|
29355
|
-
var limitRequestUnitFactor = limitUnit / requestUnit;
|
|
29356
|
-
var limitRequestFactor = limitNumber / requestNumber;
|
|
29357
|
-
var isDifferenceBigNumber = limitRequestUnitFactor * limitRequestFactor <= Number.MAX_SAFE_INTEGER;
|
|
29358
|
-
if (!isDifferenceBigNumber) {
|
|
29359
|
-
requestLimitValidationResponse.request = {
|
|
29360
|
-
message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.CAN_NOT_COMPUTE,
|
|
29361
|
-
isValid: false,
|
|
29362
|
-
};
|
|
29363
|
-
return requestLimitValidationResponse;
|
|
29364
|
-
}
|
|
29365
|
-
if (limitRequestUnitFactor * limitRequestFactor < 1) {
|
|
29366
|
-
requestLimitValidationResponse.request = {
|
|
29367
|
-
message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.REQUEST_LESS_THAN_LIMIT,
|
|
29368
|
-
isValid: false,
|
|
29369
|
-
};
|
|
29370
|
-
return requestLimitValidationResponse;
|
|
29371
|
-
}
|
|
29372
|
-
return requestLimitValidationResponse;
|
|
29373
|
-
};
|
|
29374
|
-
var getInitialProfileInputErrors = function (fromCreateView) {
|
|
29375
|
-
if (fromCreateView) {
|
|
29376
|
-
var initialProfileInputErrors_1 = __assign({}, PROFILE_INPUT_ERROR_FIELDS);
|
|
29377
|
-
CREATE_MODE_REQUIRED_INPUT_FIELDS.forEach(function (field) {
|
|
29378
|
-
initialProfileInputErrors_1[field] = '';
|
|
29379
|
-
});
|
|
29380
|
-
return initialProfileInputErrors_1;
|
|
29381
|
-
}
|
|
29382
|
-
return __assign({}, PROFILE_INPUT_ERROR_FIELDS);
|
|
29383
|
-
};
|
|
29384
|
-
var useBuildInfraForm = function (_a) {
|
|
29385
|
-
var name = _a.name, editProfile = _a.editProfile, handleSuccessRedirection = _a.handleSuccessRedirection;
|
|
29386
|
-
var fromCreateView = !name;
|
|
29387
|
-
var _b = __read(useAsync(function () {
|
|
29388
|
-
return getBuildInfraProfileByName({
|
|
29389
|
-
name: name !== null && name !== void 0 ? name : DEFAULT_PROFILE_NAME,
|
|
29390
|
-
fromCreateView: fromCreateView,
|
|
29391
|
-
});
|
|
29392
|
-
}, [name]), 4), isLoading = _b[0], profileResponse = _b[1], responseError = _b[2], reloadRequest = _b[3];
|
|
29393
|
-
// If configuration is existing and is active then use it else use default from profileResponse
|
|
29394
|
-
var _c = __read(React.useState(null), 2), profileInput = _c[0], setProfileInput = _c[1];
|
|
29395
|
-
var _d = __read(React.useState(__assign({}, PROFILE_INPUT_ERROR_FIELDS)), 2), profileInputErrors = _d[0], setProfileInputErrors = _d[1];
|
|
29396
|
-
var _e = __read(React.useState(false), 2), loadingActionRequest = _e[0], setLoadingActionRequest = _e[1];
|
|
29397
|
-
React.useEffect(function () {
|
|
29398
|
-
if (!isLoading && (profileResponse === null || profileResponse === void 0 ? void 0 : profileResponse.configurationUnits) && (profileResponse === null || profileResponse === void 0 ? void 0 : profileResponse.profile)) {
|
|
29399
|
-
setProfileInput(__assign({}, profileResponse.profile));
|
|
29400
|
-
setProfileInputErrors(getInitialProfileInputErrors(fromCreateView));
|
|
29401
|
-
}
|
|
29402
|
-
}, [profileResponse, isLoading]);
|
|
29403
|
-
// NOTE: Currently sending and receiving values as string, but will parse it to number for payload
|
|
29404
|
-
var handleProfileInputChange = function (_a) {
|
|
29405
|
-
var action = _a.action, data = _a.data;
|
|
29406
|
-
var currentInput = __assign({}, profileInput);
|
|
29407
|
-
var currentInputErrors = __assign({}, profileInputErrors);
|
|
29408
|
-
var lastSavedConfiguration = profileResponse.profile.configurations;
|
|
29409
|
-
var currentConfiguration = currentInput.configurations;
|
|
29410
|
-
var _b = data !== null && data !== void 0 ? data : { value: null, unit: null }, value = _b.value, unit = _b.unit;
|
|
29411
|
-
switch (action) {
|
|
29412
|
-
case exports.BuildInfraMetaConfigTypes.DESCRIPTION:
|
|
29413
|
-
currentInput.description = value;
|
|
29414
|
-
currentInputErrors.description = validateDescription(value).message;
|
|
29415
|
-
break;
|
|
29416
|
-
case exports.BuildInfraMetaConfigTypes.NAME:
|
|
29417
|
-
currentInput.name = value;
|
|
29418
|
-
currentInputErrors.name = validateName(value).message;
|
|
29419
|
-
break;
|
|
29420
|
-
case exports.BuildInfraConfigTypes.CPU_LIMIT: {
|
|
29421
|
-
currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT]), { value: value, unit: unit });
|
|
29422
|
-
var _c = validateRequestLimit({
|
|
29423
|
-
request: {
|
|
29424
|
-
value: currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].value,
|
|
29425
|
-
unit: currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].unit,
|
|
29426
|
-
},
|
|
29427
|
-
limit: {
|
|
29428
|
-
value: value,
|
|
29429
|
-
unit: unit,
|
|
29430
|
-
},
|
|
29431
|
-
unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.CPU_LIMIT],
|
|
29432
|
-
}), request = _c.request, limit = _c.limit;
|
|
29433
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = limit.message;
|
|
29434
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = request.message;
|
|
29435
|
-
break;
|
|
29436
|
-
}
|
|
29437
|
-
case exports.BuildInfraConfigTypes.CPU_REQUEST: {
|
|
29438
|
-
currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST]), { value: value, unit: unit });
|
|
29439
|
-
var _d = validateRequestLimit({
|
|
29440
|
-
request: {
|
|
29441
|
-
value: value,
|
|
29442
|
-
unit: unit,
|
|
29443
|
-
},
|
|
29444
|
-
limit: {
|
|
29445
|
-
value: currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].value,
|
|
29446
|
-
unit: currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].unit,
|
|
29447
|
-
},
|
|
29448
|
-
unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.CPU_LIMIT],
|
|
29449
|
-
}), request = _d.request, limit = _d.limit;
|
|
29450
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = limit.message;
|
|
29451
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = request.message;
|
|
29452
|
-
break;
|
|
29453
|
-
}
|
|
29454
|
-
case exports.BuildInfraConfigTypes.MEMORY_LIMIT: {
|
|
29455
|
-
currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT]), { value: value, unit: unit });
|
|
29456
|
-
var _e = validateRequestLimit({
|
|
29457
|
-
request: {
|
|
29458
|
-
value: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].value,
|
|
29459
|
-
unit: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].unit,
|
|
29460
|
-
},
|
|
29461
|
-
limit: {
|
|
29462
|
-
value: value,
|
|
29463
|
-
unit: unit,
|
|
29464
|
-
},
|
|
29465
|
-
unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.MEMORY_LIMIT],
|
|
29466
|
-
}), request = _e.request, limit = _e.limit;
|
|
29467
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = limit.message;
|
|
29468
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = request.message;
|
|
29469
|
-
break;
|
|
29470
|
-
}
|
|
29471
|
-
case exports.BuildInfraConfigTypes.MEMORY_REQUEST: {
|
|
29472
|
-
currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST]), { value: value, unit: unit });
|
|
29473
|
-
var _f = validateRequestLimit({
|
|
29474
|
-
request: {
|
|
29475
|
-
value: value,
|
|
29476
|
-
unit: unit,
|
|
29477
|
-
},
|
|
29478
|
-
limit: {
|
|
29479
|
-
value: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].value,
|
|
29480
|
-
unit: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].unit,
|
|
29481
|
-
},
|
|
29482
|
-
unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.MEMORY_LIMIT],
|
|
29483
|
-
}), request = _f.request, limit = _f.limit;
|
|
29484
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = limit.message;
|
|
29485
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = request.message;
|
|
29486
|
-
break;
|
|
29487
|
-
}
|
|
29488
|
-
case exports.BuildInfraConfigTypes.BUILD_TIMEOUT: {
|
|
29489
|
-
currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT]), { value: value, unit: unit });
|
|
29490
|
-
currentInputErrors[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = validateRequiredPositiveNumber(value).message;
|
|
29491
|
-
break;
|
|
29492
|
-
}
|
|
29493
|
-
case exports.BuildInfraInheritActions.ACTIVATE_CPU:
|
|
29494
|
-
currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].unit, active: true });
|
|
29495
|
-
currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].unit, active: true });
|
|
29496
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = null;
|
|
29497
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = null;
|
|
29498
|
-
break;
|
|
29499
|
-
case exports.BuildInfraInheritActions.ACTIVATE_MEMORY:
|
|
29500
|
-
currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].unit, active: true });
|
|
29501
|
-
currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].unit, active: true });
|
|
29502
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = null;
|
|
29503
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = null;
|
|
29504
|
-
break;
|
|
29505
|
-
case exports.BuildInfraInheritActions.ACTIVATE_BUILD_TIMEOUT:
|
|
29506
|
-
currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].unit, active: true });
|
|
29507
|
-
currentInputErrors[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = null;
|
|
29508
|
-
break;
|
|
29509
|
-
case exports.BuildInfraInheritActions.DE_ACTIVATE_BUILD_TIMEOUT:
|
|
29510
|
-
// Reverting the value and unit to defaultValues
|
|
29511
|
-
currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].defaultValue.unit, active: false });
|
|
29512
|
-
currentInputErrors[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = null;
|
|
29513
|
-
break;
|
|
29514
|
-
case exports.BuildInfraInheritActions.DE_ACTIVATE_CPU:
|
|
29515
|
-
currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].defaultValue.unit, active: false });
|
|
29516
|
-
currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].defaultValue.unit, active: false });
|
|
29517
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = null;
|
|
29518
|
-
currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = null;
|
|
29519
|
-
break;
|
|
29520
|
-
case exports.BuildInfraInheritActions.DE_ACTIVATE_MEMORY:
|
|
29521
|
-
currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].defaultValue.unit, active: false });
|
|
29522
|
-
currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].defaultValue.unit, active: false });
|
|
29523
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = null;
|
|
29524
|
-
currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = null;
|
|
29525
|
-
break;
|
|
29526
|
-
default:
|
|
29527
|
-
throw new Error(BUILD_INFRA_TEXT.getInvalidActionMessage(action));
|
|
29528
|
-
}
|
|
29529
|
-
setProfileInput(currentInput);
|
|
29530
|
-
setProfileInputErrors(currentInputErrors);
|
|
29531
|
-
};
|
|
29532
|
-
var handleSubmit = function (e) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29533
|
-
var hasErrors, err_1;
|
|
29534
|
-
return __generator(this, function (_a) {
|
|
29535
|
-
switch (_a.label) {
|
|
29536
|
-
case 0:
|
|
29537
|
-
e.preventDefault();
|
|
29538
|
-
hasErrors = Object.keys(profileInputErrors).filter(function (item) { return profileInputErrors[item] !== null && profileInputErrors[item] !== undefined; }).length > 0;
|
|
29539
|
-
if (hasErrors) {
|
|
29540
|
-
toast.error(BUILD_INFRA_TEXT.INVALID_FORM_MESSAGE);
|
|
29541
|
-
return [2 /*return*/];
|
|
29542
|
-
}
|
|
29543
|
-
setLoadingActionRequest(true);
|
|
29544
|
-
_a.label = 1;
|
|
29545
|
-
case 1:
|
|
29546
|
-
_a.trys.push([1, 6, , 7]);
|
|
29547
|
-
if (!editProfile) return [3 /*break*/, 3];
|
|
29548
|
-
return [4 /*yield*/, updateBuildInfraProfile({ name: name, profileInput: profileInput })];
|
|
29549
|
-
case 2:
|
|
29550
|
-
_a.sent();
|
|
29551
|
-
return [3 /*break*/, 5];
|
|
29552
|
-
case 3: return [4 /*yield*/, createBuildInfraProfile({ profileInput: profileInput })];
|
|
29553
|
-
case 4:
|
|
29554
|
-
_a.sent();
|
|
29555
|
-
_a.label = 5;
|
|
29556
|
-
case 5:
|
|
29557
|
-
setLoadingActionRequest(false);
|
|
29558
|
-
toast.success(BUILD_INFRA_TEXT.getSubmitSuccessMessage(profileInput.name, editProfile));
|
|
29559
|
-
if (handleSuccessRedirection) {
|
|
29560
|
-
handleSuccessRedirection();
|
|
29561
|
-
}
|
|
29562
|
-
else {
|
|
29563
|
-
reloadRequest();
|
|
29564
|
-
}
|
|
29565
|
-
return [3 /*break*/, 7];
|
|
29566
|
-
case 6:
|
|
29567
|
-
err_1 = _a.sent();
|
|
29568
|
-
showError(err_1);
|
|
29569
|
-
setLoadingActionRequest(false);
|
|
29570
|
-
return [3 /*break*/, 7];
|
|
29571
|
-
case 7: return [2 /*return*/];
|
|
29572
|
-
}
|
|
29573
|
-
});
|
|
29574
|
-
}); };
|
|
29575
|
-
return {
|
|
29576
|
-
isLoading: isLoading,
|
|
29577
|
-
profileResponse: profileResponse,
|
|
29578
|
-
responseError: responseError,
|
|
29579
|
-
reloadRequest: reloadRequest,
|
|
29580
|
-
profileInput: profileInput,
|
|
29581
|
-
profileInputErrors: profileInputErrors,
|
|
29582
|
-
handleProfileInputChange: handleProfileInputChange,
|
|
29583
|
-
loadingActionRequest: loadingActionRequest,
|
|
29584
|
-
handleSubmit: handleSubmit,
|
|
29585
|
-
};
|
|
29586
|
-
};
|
|
29587
|
-
var getOptionBackgroundColor = function (isFocused, isSelected) {
|
|
29588
|
-
if (isSelected) {
|
|
29589
|
-
return 'var(--B100)';
|
|
29590
|
-
}
|
|
29591
|
-
if (isFocused) {
|
|
29592
|
-
return 'var(--N50)';
|
|
29593
|
-
}
|
|
29594
|
-
return 'var(--white)';
|
|
29595
|
-
};
|
|
29596
|
-
var unitSelectorStyles = function () {
|
|
29597
|
-
return getCommonSelectStyle({
|
|
29598
|
-
control: function (base, state) { return (__assign(__assign({}, base), { borderRadius: 0, backgroundColor: 'var(--N0)', border: state.isFocused ? '1px solid var(--B500) !important' : '1px solid var(--N200)', alignItems: 'center', cursor: 'pointer', borderTopRightRadius: '4px', borderBottomRightRadius: '4px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', outline: 'none', boxShadow: 'none', '&:hover': {
|
|
29599
|
-
border: '1px solid var(--N400)',
|
|
29600
|
-
} })); },
|
|
29601
|
-
indicatorContainer: function (base) { return (__assign(__assign({}, base), { padding: '0px' })); },
|
|
29602
|
-
dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N600)', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); },
|
|
29603
|
-
option: function (base, state) { return (__assign(__assign({}, base), { padding: '4px 12px', backgroundColor: getOptionBackgroundColor(state.isFocused, state.isSelected), color: 'var(--N900)', cursor: 'pointer', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', height: '36px' })); },
|
|
29604
|
-
valueContainer: function (base) { return (__assign(__assign({}, base), { color: 'var(--N900)', fontSize: '13px', fontWeight: '400', lineHeight: '20px' })); },
|
|
29605
|
-
menuList: function (base) { return (__assign(__assign({}, base), { maxHeight: '164px', height: '100%' })); },
|
|
29606
|
-
});
|
|
29607
|
-
};
|
|
29608
|
-
|
|
29609
|
-
/**
|
|
29610
|
-
* In case need arise for variants break this CustomInput and Select as a separate component
|
|
29611
|
-
*/
|
|
29612
|
-
var BuildInfraFormAction = function (_a) {
|
|
29613
|
-
var actionType = _a.actionType, label = _a.label, placeholder = _a.placeholder, error = _a.error, isRequired = _a.isRequired, profileUnitsMap = _a.profileUnitsMap, handleProfileInputChange = _a.handleProfileInputChange, currentUnitName = _a.currentUnitName, currentValue = _a.currentValue;
|
|
29614
|
-
var handleUnitChange = function (selectedUnit) {
|
|
29615
|
-
var data = {
|
|
29616
|
-
unit: selectedUnit.label,
|
|
29617
|
-
value: currentValue,
|
|
29618
|
-
};
|
|
29619
|
-
handleProfileInputChange({ action: actionType, data: data });
|
|
29620
|
-
};
|
|
29621
|
-
var handleInputChange = function (e) {
|
|
29622
|
-
var data = {
|
|
29623
|
-
unit: currentUnitName,
|
|
29624
|
-
value: e.currentTarget.value,
|
|
29625
|
-
};
|
|
29626
|
-
handleProfileInputChange({ action: actionType, data: data });
|
|
29627
|
-
};
|
|
29628
|
-
var unitOptions = React.useMemo(function () {
|
|
29629
|
-
var _a, _b;
|
|
29630
|
-
var units = (_b = (_a = Object.values(profileUnitsMap)) === null || _a === void 0 ? void 0 : _a.map(function (unit) { return ({
|
|
29631
|
-
label: unit.name,
|
|
29632
|
-
value: String(unit.conversionFactor),
|
|
29633
|
-
}); })) !== null && _b !== void 0 ? _b : [];
|
|
29634
|
-
return units.sort(function (a, b) { return Number(a.value) - Number(b.value); });
|
|
29635
|
-
}, [profileUnitsMap]);
|
|
29636
|
-
var currentUnit = React.useMemo(function () { return unitOptions.find(function (unit) { return unit.label === currentUnitName; }); }, [unitOptions, currentUnitName]);
|
|
29637
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-4 dc__mxw-420 w-100 dc__align-start" }, { children: [jsxRuntime.jsx("label", __assign({ htmlFor: "".concat(actionType, "-input"), className: "fs-13 fw-4 lh-20 cn-7 ".concat(isRequired ? 'dc__required-field' : '') }, { children: label })), jsxRuntime.jsxs("div", __assign({ className: "w-100 flexbox dc__align-items-center" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex-grow-1" }, { children: jsxRuntime.jsx("input", { "data-testid": "".concat(actionType, "-input-field"), name: actionType, type: "number", step: BUILD_INFRA_INPUT_CONSTRAINTS.STEP, min: BUILD_INFRA_INPUT_CONSTRAINTS.MIN, className: "form__input dc__no-right-border dc__no-right-radius", placeholder: placeholder, value: currentValue, onChange: handleInputChange, required: isRequired, autoComplete: "off", id: "".concat(actionType, "-input") }) })), profileUnitsMap && (jsxRuntime.jsx(ReactSelect, { name: "".concat(actionType, "-unit"), className: "bcn-0 dc__mxw-120", options: unitOptions, value: currentUnit, onChange: handleUnitChange, isSearchable: false, components: {
|
|
29638
|
-
IndicatorSeparator: null,
|
|
29639
|
-
ClearIndicator: null,
|
|
29640
|
-
}, styles: unitSelectorStyles() }))] })), error && (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] })))] })));
|
|
29641
|
-
};
|
|
29642
|
-
|
|
29643
|
-
var BuildInfraFormItem = function (_a) {
|
|
29644
|
-
var heading = _a.heading, Marker = _a.marker, children = _a.children, isInheriting = _a.isInheriting, showDivider = _a.showDivider, handleProfileInputChange = _a.handleProfileInputChange, locator = _a.locator, isDefaultProfile = _a.isDefaultProfile;
|
|
29645
|
-
var handleActivationChange = function (e) {
|
|
29646
|
-
var checked = e.currentTarget.checked;
|
|
29647
|
-
var action = (checked ? "activate_".concat(locator) : "de_activate_".concat(locator));
|
|
29648
|
-
handleProfileInputChange({ action: action });
|
|
29649
|
-
};
|
|
29650
|
-
var renderMarker = function () {
|
|
29651
|
-
if (isDefaultProfile) {
|
|
29652
|
-
return jsxRuntime.jsx(Marker, { className: "icon-dim-20 dc__no-shrink" });
|
|
29653
|
-
}
|
|
29654
|
-
return (jsxRuntime.jsx(Checkbox$1, { onChange: handleActivationChange, isChecked: !isInheriting, value: exports.CHECKBOX_VALUE.CHECKED, dataTestId: "".concat(locator, "_marker") }));
|
|
29655
|
-
};
|
|
29656
|
-
// If in configuration active is false, means it is inheriting values from other profile
|
|
29657
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: "flexbox-col dc__gap-8 w-100" }, { children: jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__gap-12 dc__align-start w-100" }, { children: [renderMarker(), jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-8 w-100" }, { children: [heading, !isInheriting && children] }))] })) })), showDivider && jsxRuntime.jsx("div", { className: "w-100 dc__border-bottom-n1" })] }));
|
|
29658
|
-
};
|
|
29659
|
-
|
|
29660
|
-
var BuildInfraProfileDescriptionField = function (_a) {
|
|
29661
|
-
var handleProfileInputChange = _a.handleProfileInputChange, currentValue = _a.currentValue, error = _a.error;
|
|
29662
|
-
var handleChange = function (e) {
|
|
29663
|
-
handleProfileInputChange({
|
|
29664
|
-
action: exports.BuildInfraMetaConfigTypes.DESCRIPTION,
|
|
29665
|
-
data: { value: e.currentTarget.value },
|
|
29666
|
-
});
|
|
29667
|
-
};
|
|
29668
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-4 w-100 dc__align-start" }, { children: [jsxRuntime.jsx("label", __assign({ htmlFor: "build-infra-profile-description", className: "m-0 fs-13 fw-4 lh-20 cn-7" }, { children: BUILD_INFRA_TEXT.DESCRIPTION_LABEL })), jsxRuntime.jsx("textarea", { "data-testid": "build-infra-profile-description", name: "profile-description", className: "form__textarea mxh-140 dc__hover-border-n300", id: "build-infra-profile-description", placeholder: BUILD_INFRA_TEXT.DESCRIPTION_PLACEHOLDER, value: currentValue, onChange: handleChange }), error && (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] })))] })));
|
|
29669
|
-
};
|
|
29670
|
-
|
|
29671
|
-
var BuildInfraProfileNameField = function (_a) {
|
|
29672
|
-
var handleProfileInputChange = _a.handleProfileInputChange, currentValue = _a.currentValue, error = _a.error;
|
|
29673
|
-
var handleChange = function (e) {
|
|
29674
|
-
handleProfileInputChange({ action: exports.BuildInfraMetaConfigTypes.NAME, data: { value: e.currentTarget.value } });
|
|
29675
|
-
};
|
|
29676
|
-
return (jsxRuntime.jsx("div", __assign({ className: "flexbox-col dc__gap-4 w-100 dc__align-start" }, { children: jsxRuntime.jsx(CustomInput, { name: "profile-name", label: BUILD_INFRA_TEXT.PROFILE_LABEL, labelClassName: "m-0 dc__required-field fs-13 fw-4 lh-20 cn-7", placeholder: BUILD_INFRA_TEXT.PROFILE_PLACEHOLDER, value: currentValue, onChange: handleChange, error: error, required: true, inputWrapClassName: "w-100" }) })));
|
|
29677
|
-
};
|
|
29678
|
-
|
|
29679
|
-
var InheritingHeader = function (_a) {
|
|
29680
|
-
var defaultHeading = _a.defaultHeading, inheritingData = _a.inheritingData, isInheriting = _a.isInheriting, isDefaultProfile = _a.isDefaultProfile;
|
|
29681
|
-
var inheritingDataString = inheritingData.map(function (data) { var _a; return "".concat(data.value, " ").concat((_a = data.unit) !== null && _a !== void 0 ? _a : ''); }).join(' - ');
|
|
29682
|
-
if (isDefaultProfile || !isInheriting) {
|
|
29683
|
-
// For typing issues
|
|
29684
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
29685
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: defaultHeading });
|
|
29686
|
-
}
|
|
29687
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__align-items-center dc__content-space w-100" }, { children: [defaultHeading, jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__content-space w-100" }, { children: [jsxRuntime.jsx("span", __assign({ className: "m-0 pt-0 pb-0 pl-4 pr-4 fs-13 lh-20 fw-4 cn-9 dc__ellipsis-right dc__word-break-all flex-grow-1" }, { children: inheritingDataString })), jsxRuntime.jsx("p", __assign({ className: "m-0 cn-7 fs-13 fw-4 lh-20 dc__no-shrink" }, { children: BUILD_INFRA_TEXT.INHERITING_HEADING_DESCRIPTION }))] }))] })));
|
|
29688
|
-
};
|
|
29689
|
-
var BuildInfraConfigForm = function (_a) {
|
|
29690
|
-
var profileInput = _a.profileInput, profileInputErrors = _a.profileInputErrors, handleProfileInputChange = _a.handleProfileInputChange, isDefaultProfile = _a.isDefaultProfile, unitsMap = _a.unitsMap, configurationContainerLabel = _a.configurationContainerLabel;
|
|
29691
|
-
var currentConfigurations = profileInput === null || profileInput === void 0 ? void 0 : profileInput.configurations;
|
|
29692
|
-
// will get the desired configuration from the currentConfigurations and then check if it is active or not
|
|
29693
|
-
var isInheritingProfileValues = function (actions) {
|
|
29694
|
-
return actions.some(function (action) { return !currentConfigurations[action.actionType].active; });
|
|
29695
|
-
};
|
|
29696
|
-
// Had to show loader for an instance due to batching of state updates not working as expected :/
|
|
29697
|
-
if (!currentConfigurations) {
|
|
29698
|
-
return jsxRuntime.jsx(Progressing, { pageLoader: true });
|
|
29699
|
-
}
|
|
29700
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__mxw-920 dc__gap-16" }, { children: [!isDefaultProfile && (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-12" }, { children: [jsxRuntime.jsx(BuildInfraProfileNameField, { handleProfileInputChange: handleProfileInputChange, currentValue: profileInput.name, error: profileInputErrors.name }), jsxRuntime.jsx(BuildInfraProfileDescriptionField, { handleProfileInputChange: handleProfileInputChange, currentValue: profileInput.description, error: profileInputErrors.description })] }))), jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-12" }, { children: [configurationContainerLabel, jsxRuntime.jsx("div", __assign({ className: "w-100 flexbox-col dc__gap-16 br-4 dc__border-n1 p-16" }, { children: BUILD_INFRA_FORM_FIELDS.map(function (field, index) { return (jsxRuntime.jsx(BuildInfraFormItem, __assign({ marker: field.marker, heading: jsxRuntime.jsx(InheritingHeader, { defaultHeading: field.heading, inheritingData: field.actions.map(function (action) { return currentConfigurations[action.actionType]; }), isInheriting: isInheritingProfileValues(field.actions), isDefaultProfile: isDefaultProfile }), showDivider: index !== BUILD_INFRA_FORM_FIELDS.length - 1, isInheriting: isInheritingProfileValues(field.actions), handleProfileInputChange: handleProfileInputChange, locator: field.locator, isDefaultProfile: isDefaultProfile }, { children: jsxRuntime.jsx("div", __assign({ className: "w-50 flexbox dc__gap-12 w-100 dc__align-start" }, { children: field.actions.map(function (action) { return (jsxRuntime.jsx(BuildInfraFormAction, { actionType: action.actionType, label: action.label, placeholder: action.placeholder, error: profileInputErrors[action.actionType],
|
|
29701
|
-
// Assumption is for default profiles all input fields are required
|
|
29702
|
-
isRequired: true, profileUnitsMap: unitsMap[action.actionType], handleProfileInputChange: handleProfileInputChange, currentUnitName: currentConfigurations[action.actionType].unit, currentValue: currentConfigurations[action.actionType].value }, action.actionType)); }) })) }), field.locator)); }) }))] }))] })));
|
|
29703
|
-
};
|
|
29704
|
-
|
|
29705
|
-
exports.APIResponseHandler = APIResponseHandler;
|
|
29706
28774
|
exports.AddCDButton = AddCDButton;
|
|
29707
28775
|
exports.AppStatus = AppStatus;
|
|
29708
|
-
exports.BUILD_INFRA_BREADCRUMB = BUILD_INFRA_BREADCRUMB;
|
|
29709
|
-
exports.BUILD_INFRA_FORM_FIELDS = BUILD_INFRA_FORM_FIELDS;
|
|
29710
|
-
exports.BUILD_INFRA_INPUT_CONSTRAINTS = BUILD_INFRA_INPUT_CONSTRAINTS;
|
|
29711
|
-
exports.BUILD_INFRA_TEST_IDS = BUILD_INFRA_TEST_IDS;
|
|
29712
|
-
exports.BUILD_INFRA_TEXT = BUILD_INFRA_TEXT;
|
|
29713
28776
|
exports.BreadCrumb = BreadCrumb;
|
|
29714
28777
|
exports.BreadcrumbStore = Store;
|
|
29715
|
-
exports.BuildInfraConfigActionMap = BuildInfraConfigActionMap;
|
|
29716
|
-
exports.BuildInfraConfigForm = BuildInfraConfigForm;
|
|
29717
|
-
exports.BuildInfraDescriptor = Descriptor;
|
|
29718
|
-
exports.BuildInfraFooter = Footer;
|
|
29719
28778
|
exports.BuildStageVariable = BuildStageVariable;
|
|
29720
28779
|
exports.CDModalTab = CDModalTab;
|
|
29721
|
-
exports.CREATE_MODE_REQUIRED_INPUT_FIELDS = CREATE_MODE_REQUIRED_INPUT_FIELDS;
|
|
29722
|
-
exports.CREATE_PROFILE_BASE_VALUE = CREATE_PROFILE_BASE_VALUE;
|
|
29723
|
-
exports.CREATE_VIEW_CHECKED_CONFIGS = CREATE_VIEW_CHECKED_CONFIGS;
|
|
29724
28780
|
exports.ChartVersionAndTypeSelector = ChartVersionAndTypeSelector;
|
|
29725
28781
|
exports.Checkbox = Checkbox$1;
|
|
29726
28782
|
exports.ClearIndicator = ClearIndicator;
|
|
@@ -29729,7 +28785,6 @@ exports.ConditionalWrap = ConditionalWrap;
|
|
|
29729
28785
|
exports.ConfirmationDialog = ConfirmationDialog;
|
|
29730
28786
|
exports.CustomInput = CustomInput;
|
|
29731
28787
|
exports.CustomSelect = CustomSelect;
|
|
29732
|
-
exports.DEFAULT_PROFILE_NAME = DEFAULT_PROFILE_NAME;
|
|
29733
28788
|
exports.DEFAULT_TAG_DATA = DEFAULT_TAG_DATA;
|
|
29734
28789
|
exports.DOCUMENTATION = DOCUMENTATION;
|
|
29735
28790
|
exports.DOCUMENTATION_HOME_PAGE = DOCUMENTATION_HOME_PAGE;
|
|
@@ -29763,7 +28818,6 @@ exports.MultiValueRemove = MultiValueRemove;
|
|
|
29763
28818
|
exports.OpaqueModal = OpaqueModal;
|
|
29764
28819
|
exports.Option = Option;
|
|
29765
28820
|
exports.PATTERNS = PATTERNS;
|
|
29766
|
-
exports.PROFILE_INPUT_ERROR_FIELDS = PROFILE_INPUT_ERROR_FIELDS;
|
|
29767
28821
|
exports.Pagination = Pagination;
|
|
29768
28822
|
exports.PopupMenu = PopupMenu;
|
|
29769
28823
|
exports.Progressing = Progressing;
|
|
@@ -29780,7 +28834,6 @@ exports.ResizableTextarea = ResizableTextarea;
|
|
|
29780
28834
|
exports.SELECTED_APPROVAL_TAB_STATE = SELECTED_APPROVAL_TAB_STATE;
|
|
29781
28835
|
exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
|
|
29782
28836
|
exports.SearchBar = SearchBar;
|
|
29783
|
-
exports.SelectOption = SelectOption;
|
|
29784
28837
|
exports.ServerError = ServerError;
|
|
29785
28838
|
exports.ServerErrors = ServerErrors;
|
|
29786
28839
|
exports.SingleSelectOption = SingleSelectOption;
|
|
@@ -29800,10 +28853,8 @@ exports.TriggerTypeMap = TriggerTypeMap;
|
|
|
29800
28853
|
exports.URLS = URLS;
|
|
29801
28854
|
exports.VisibleModal = VisibleModal;
|
|
29802
28855
|
exports.VisibleModal2 = VisibleModal2;
|
|
29803
|
-
exports.abortPreviousRequests = abortPreviousRequests;
|
|
29804
28856
|
exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
|
|
29805
28857
|
exports.copyToClipboard = copyToClipboard;
|
|
29806
|
-
exports.createBuildInfraProfile = createBuildInfraProfile;
|
|
29807
28858
|
exports.createGitCommitUrl = createGitCommitUrl;
|
|
29808
28859
|
exports.customStyles = customStyles;
|
|
29809
28860
|
exports.debounce = debounce$2;
|
|
@@ -29812,26 +28863,20 @@ exports.fetchChartTemplateVersions = fetchChartTemplateVersions;
|
|
|
29812
28863
|
exports.genericCDMaterialsService = genericCDMaterialsService;
|
|
29813
28864
|
exports.get = get;
|
|
29814
28865
|
exports.getAlphabetIcon = getAlphabetIcon;
|
|
29815
|
-
exports.getBuildInfraProfileByName = getBuildInfraProfileByName;
|
|
29816
|
-
exports.getCommonSelectStyle = getCommonSelectStyle;
|
|
29817
28866
|
exports.getCookie = getCookie;
|
|
29818
|
-
exports.getCustomOptionSelectionStyle = getCustomOptionSelectionStyle;
|
|
29819
28867
|
exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
|
|
29820
28868
|
exports.getFilteredChartVersions = getFilteredChartVersions;
|
|
29821
28869
|
exports.getInferredTypeFromValueType = getInferredTypeFromValueType;
|
|
29822
|
-
exports.getIsRequestAborted = getIsRequestAborted;
|
|
29823
28870
|
exports.getLockedJSON = getLockedJSON;
|
|
29824
28871
|
exports.getLoginInfo = getLoginInfo;
|
|
29825
28872
|
exports.getRandomColor = getRandomColor;
|
|
29826
28873
|
exports.getRedirectionProps = getRedirectionProps;
|
|
29827
28874
|
exports.getTeamListMin = getTeamListMin;
|
|
29828
|
-
exports.getTransformedBuildInfraProfileResponse = getTransformedBuildInfraProfileResponse;
|
|
29829
28875
|
exports.getUnlockedJSON = getUnlockedJSON;
|
|
29830
28876
|
exports.getUrlWithSearchParams = getUrlWithSearchParams;
|
|
29831
28877
|
exports.getUserRole = getUserRole;
|
|
29832
28878
|
exports.handleAddCD = handleAddCD;
|
|
29833
28879
|
exports.handleUTCTime = handleUTCTime;
|
|
29834
|
-
exports.highlightSearchText = highlightSearchText;
|
|
29835
28880
|
exports.logExceptionToSentry = logExceptionToSentry;
|
|
29836
28881
|
exports.multiSelectStyles = multiSelectStyles;
|
|
29837
28882
|
exports.noop = noop$1;
|
|
@@ -29845,11 +28890,8 @@ exports.sortCallback = sortCallback;
|
|
|
29845
28890
|
exports.stopPropagation = stopPropagation;
|
|
29846
28891
|
exports.toastAccessDenied = toastAccessDenied;
|
|
29847
28892
|
exports.trash = trash;
|
|
29848
|
-
exports.unitSelectorStyles = unitSelectorStyles;
|
|
29849
|
-
exports.updateBuildInfraProfile = updateBuildInfraProfile;
|
|
29850
28893
|
exports.useAsync = useAsync;
|
|
29851
28894
|
exports.useBreadcrumb = useBreadcrumb;
|
|
29852
|
-
exports.useBuildInfraForm = useBuildInfraForm;
|
|
29853
28895
|
exports.useClickOutside = useClickOutside;
|
|
29854
28896
|
exports.useEffectAfterMount = useEffectAfterMount;
|
|
29855
28897
|
exports.useForm = useForm;
|
|
@@ -29857,7 +28899,3 @@ exports.useSearchString = useSearchString;
|
|
|
29857
28899
|
exports.useSuperAdmin = useSuperAdmin;
|
|
29858
28900
|
exports.useThrottledEffect = useThrottledEffect;
|
|
29859
28901
|
exports.useWindowSize = useWindowSize;
|
|
29860
|
-
exports.validateDescription = validateDescription;
|
|
29861
|
-
exports.validateName = validateName;
|
|
29862
|
-
exports.validateRequestLimit = validateRequestLimit;
|
|
29863
|
-
exports.validateRequiredPositiveNumber = validateRequiredPositiveNumber;
|