@devtron-labs/devtron-fe-common-lib 0.0.39-beta-2 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/Types.d.ts +36 -2
- package/dist/Common/index.d.ts +0 -1
- package/dist/index.js +339 -441
- package/package.json +1 -4
- package/src/Common/Common.service.ts +223 -76
- package/src/Common/Constants.ts +1 -0
- package/src/Common/ImageTags.tsx +11 -2
- package/src/Common/Types.ts +44 -2
- package/src/Common/index.ts +0 -1
- package/dist/Common/RJSF/Form.d.ts +0 -4
- package/dist/Common/RJSF/common/FieldRow.d.ts +0 -3
- package/dist/Common/RJSF/common/types.d.ts +0 -8
- package/dist/Common/RJSF/config.d.ts +0 -4
- package/dist/Common/RJSF/constants.d.ts +0 -5
- package/dist/Common/RJSF/index.d.ts +0 -2
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/BaseInput.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/Description.d.ts +0 -3
- package/dist/Common/RJSF/templates/Field.d.ts +0 -3
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/TitleField.d.ts +0 -3
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/index.d.ts +0 -10
- package/dist/Common/RJSF/types.d.ts +0 -3
- package/dist/Common/RJSF/utils.d.ts +0 -14
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +0 -3
- package/dist/Common/RJSF/widgets/Select.d.ts +0 -3
- package/dist/Common/RJSF/widgets/index.d.ts +0 -2
- package/src/Assets/Icon/ic-chevron-down.svg +0 -5
- package/src/Common/RJSF/Form.tsx +0 -29
- package/src/Common/RJSF/common/FieldRow.tsx +0 -31
- package/src/Common/RJSF/common/types.ts +0 -9
- package/src/Common/RJSF/config.ts +0 -37
- package/src/Common/RJSF/constants.ts +0 -5
- package/src/Common/RJSF/index.ts +0 -2
- package/src/Common/RJSF/rjsfForm.scss +0 -17
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +0 -33
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -77
- package/src/Common/RJSF/templates/BaseInput.tsx +0 -16
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -10
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +0 -3
- package/src/Common/RJSF/templates/Description.tsx +0 -12
- package/src/Common/RJSF/templates/Field.tsx +0 -30
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +0 -25
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +0 -96
- package/src/Common/RJSF/templates/TitleField.tsx +0 -9
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -51
- package/src/Common/RJSF/templates/index.ts +0 -10
- package/src/Common/RJSF/types.ts +0 -4
- package/src/Common/RJSF/utils.ts +0 -59
- package/src/Common/RJSF/widgets/Checkbox.tsx +0 -44
- package/src/Common/RJSF/widgets/Select.tsx +0 -72
- package/src/Common/RJSF/widgets/index.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -4,9 +4,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
6
|
var reactRouterDom = require('react-router-dom');
|
|
7
|
-
var RJSF = require('@rjsf/core');
|
|
8
|
-
var RJSFValidator = require('@rjsf/validator-ajv8');
|
|
9
|
-
var utils = require('@rjsf/utils');
|
|
10
7
|
|
|
11
8
|
function _interopNamespaceDefault(e) {
|
|
12
9
|
var n = Object.create(null);
|
|
@@ -47,6 +44,7 @@ var ROUTES = {
|
|
|
47
44
|
PROJECT_LIST_MIN: 'team/autocomplete',
|
|
48
45
|
USER_CHECK_ROLE: 'user/check/roles',
|
|
49
46
|
IMAGE_TAGGING: 'app/image-tagging',
|
|
47
|
+
CD_MATERIAL_GET: 'app/cd-pipeline'
|
|
50
48
|
};
|
|
51
49
|
exports.KEY_VALUE = void 0;
|
|
52
50
|
(function (KEY_VALUE) {
|
|
@@ -433,6 +431,24 @@ exports.FilterStates = void 0;
|
|
|
433
431
|
FilterStates[FilterStates["BLOCKED"] = 1] = "BLOCKED";
|
|
434
432
|
FilterStates[FilterStates["ERROR"] = 2] = "ERROR";
|
|
435
433
|
})(exports.FilterStates || (exports.FilterStates = {}));
|
|
434
|
+
exports.MaterialDataSource = void 0;
|
|
435
|
+
(function (MaterialDataSource) {
|
|
436
|
+
MaterialDataSource["EXTERNAL"] = "ext";
|
|
437
|
+
})(exports.MaterialDataSource || (exports.MaterialDataSource = {}));
|
|
438
|
+
exports.CDMaterialServiceEnum = void 0;
|
|
439
|
+
(function (CDMaterialServiceEnum) {
|
|
440
|
+
CDMaterialServiceEnum["ROLLBACK"] = "rollback";
|
|
441
|
+
CDMaterialServiceEnum["CD_MATERIALS"] = "cd-materials";
|
|
442
|
+
})(exports.CDMaterialServiceEnum || (exports.CDMaterialServiceEnum = {}));
|
|
443
|
+
exports.CDMaterialResourceQuery = void 0;
|
|
444
|
+
(function (CDMaterialResourceQuery) {
|
|
445
|
+
CDMaterialResourceQuery["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
446
|
+
})(exports.CDMaterialResourceQuery || (exports.CDMaterialResourceQuery = {}));
|
|
447
|
+
exports.CDMaterialFilterQuery = void 0;
|
|
448
|
+
(function (CDMaterialFilterQuery) {
|
|
449
|
+
CDMaterialFilterQuery["RESOURCE"] = "ELIGIBLE_RESOURCES";
|
|
450
|
+
CDMaterialFilterQuery["ALL"] = "ALL_RESOURCES";
|
|
451
|
+
})(exports.CDMaterialFilterQuery || (exports.CDMaterialFilterQuery = {}));
|
|
436
452
|
exports.DeploymentAppTypes = void 0;
|
|
437
453
|
(function (DeploymentAppTypes) {
|
|
438
454
|
DeploymentAppTypes["HELM"] = "helm";
|
|
@@ -696,13 +712,13 @@ function styleInject(css, ref) {
|
|
|
696
712
|
}
|
|
697
713
|
}
|
|
698
714
|
|
|
699
|
-
var css_248z$
|
|
700
|
-
styleInject(css_248z$
|
|
715
|
+
var css_248z$6 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n height: 40%;\n max-height: 200px;\n width: auto;\n max-width: 250px;\n}\n.empty-state svg {\n height: 40%;\n max-height: 200px;\n width: auto;\n}\n.empty-state h1,\n.empty-state h2,\n.empty-state h3,\n.empty-state h4,\n.empty-state h5,\n.empty-state h6 {\n color: var(--N900);\n}\n.empty-state .subtitle {\n font-size: 13px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 6px;\n}\n.empty-state .subtitle--text-start {\n text-align: start;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n text-align: center;\n font-size: 13px;\n color: var(--N700);\n}\n.empty-state strong {\n font-size: 16px;\n margin-bottom: 4px;\n color: var(--N900);\n font-weight: normal;\n}\n.empty-state .select-popup {\n height: min-content;\n max-height: 250px;\n overflow: auto;\n padding: 8px 0;\n}\n.empty-state .empty-state__loader {\n width: 34px;\n height: 34px;\n margin-bottom: 16px;\n}\n.empty-state .empty-state__loading-text {\n font-size: 12px;\n width: 200px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.5;\n letter-spacing: normal;\n text-align: center;\n color: var(--N900);\n}\n.empty-state .button__icon {\n width: 16px;\n height: 16px;\n margin-left: 8px;\n}";
|
|
716
|
+
styleInject(css_248z$6);
|
|
701
717
|
|
|
702
718
|
var _g$6;
|
|
703
|
-
function _extends$
|
|
719
|
+
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); }
|
|
704
720
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
705
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
721
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
706
722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
723
|
viewBox: "0 0 24 24",
|
|
708
724
|
width: "1em",
|
|
@@ -754,8 +770,8 @@ EmptyState.Loading = Loading;
|
|
|
754
770
|
|
|
755
771
|
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}
|
|
756
772
|
|
|
757
|
-
function _extends$
|
|
758
|
-
_extends$
|
|
773
|
+
function _extends$j() {
|
|
774
|
+
_extends$j = Object.assign || function (target) {
|
|
759
775
|
for (var i = 1; i < arguments.length; i++) {
|
|
760
776
|
var source = arguments[i];
|
|
761
777
|
|
|
@@ -769,7 +785,7 @@ function _extends$k() {
|
|
|
769
785
|
return target;
|
|
770
786
|
};
|
|
771
787
|
|
|
772
|
-
return _extends$
|
|
788
|
+
return _extends$j.apply(this, arguments);
|
|
773
789
|
}
|
|
774
790
|
|
|
775
791
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1495,7 +1511,7 @@ function ProgressBar(_ref) {
|
|
|
1495
1511
|
isIn = _ref.isIn,
|
|
1496
1512
|
theme = _ref.theme;
|
|
1497
1513
|
|
|
1498
|
-
var style = _extends$
|
|
1514
|
+
var style = _extends$j({}, userStyle, {
|
|
1499
1515
|
animationDuration: delay + "ms",
|
|
1500
1516
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1501
1517
|
opacity: hide ? 0 : 1
|
|
@@ -1772,9 +1788,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1772
1788
|
,
|
|
1773
1789
|
id: containerId
|
|
1774
1790
|
}, getToastToRender(function (position, toastList) {
|
|
1775
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1791
|
+
var containerStyle = !toastList.length ? _extends$j({}, style, {
|
|
1776
1792
|
pointerEvents: 'none'
|
|
1777
|
-
}) : _extends$
|
|
1793
|
+
}) : _extends$j({}, style);
|
|
1778
1794
|
return React.createElement("div", {
|
|
1779
1795
|
className: getClassName(position),
|
|
1780
1796
|
style: containerStyle,
|
|
@@ -1881,7 +1897,7 @@ function dispatchToast(content, options) {
|
|
|
1881
1897
|
|
|
1882
1898
|
|
|
1883
1899
|
function mergeOptions(type, options) {
|
|
1884
|
-
return _extends$
|
|
1900
|
+
return _extends$j({}, options, {
|
|
1885
1901
|
type: options && options.type || type,
|
|
1886
1902
|
toastId: getToastId(options)
|
|
1887
1903
|
});
|
|
@@ -1898,7 +1914,7 @@ function toast(content, options) {
|
|
|
1898
1914
|
}
|
|
1899
1915
|
|
|
1900
1916
|
toast.loading = function (content, options) {
|
|
1901
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1917
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$j({
|
|
1902
1918
|
isLoading: true,
|
|
1903
1919
|
autoClose: false,
|
|
1904
1920
|
closeOnClick: false,
|
|
@@ -1914,7 +1930,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1914
1930
|
var id;
|
|
1915
1931
|
|
|
1916
1932
|
if (pending) {
|
|
1917
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1933
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$j({}, options, pending));
|
|
1918
1934
|
}
|
|
1919
1935
|
|
|
1920
1936
|
var resetParams = {
|
|
@@ -1933,7 +1949,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1933
1949
|
return;
|
|
1934
1950
|
}
|
|
1935
1951
|
|
|
1936
|
-
var baseParams = _extends$
|
|
1952
|
+
var baseParams = _extends$j({
|
|
1937
1953
|
type: type
|
|
1938
1954
|
}, resetParams, options, {
|
|
1939
1955
|
data: result
|
|
@@ -1944,10 +1960,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1944
1960
|
} : input; // if the id is set we know that it's an update
|
|
1945
1961
|
|
|
1946
1962
|
if (id) {
|
|
1947
|
-
toast.update(id, _extends$
|
|
1963
|
+
toast.update(id, _extends$j({}, baseParams, params));
|
|
1948
1964
|
} else {
|
|
1949
1965
|
// using toast.promise without loading
|
|
1950
|
-
toast(params.render, _extends$
|
|
1966
|
+
toast(params.render, _extends$j({}, baseParams, params));
|
|
1951
1967
|
}
|
|
1952
1968
|
|
|
1953
1969
|
return result;
|
|
@@ -1971,7 +1987,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
1971
1987
|
toast.warn = toast.warning;
|
|
1972
1988
|
|
|
1973
1989
|
toast.dark = function (content, options) {
|
|
1974
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1990
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$j({
|
|
1975
1991
|
theme: 'dark'
|
|
1976
1992
|
}, options)));
|
|
1977
1993
|
};
|
|
@@ -2028,7 +2044,7 @@ toast.update = function (toastId, options) {
|
|
|
2028
2044
|
var oldOptions = toast.props,
|
|
2029
2045
|
oldContent = toast.content;
|
|
2030
2046
|
|
|
2031
|
-
var nextOptions = _extends$
|
|
2047
|
+
var nextOptions = _extends$j({}, oldOptions, options, {
|
|
2032
2048
|
toastId: options.toastId || toastId,
|
|
2033
2049
|
updateId: generateToastId()
|
|
2034
2050
|
});
|
|
@@ -9818,9 +9834,9 @@ function captureException(exception, captureContext) {
|
|
|
9818
9834
|
}
|
|
9819
9835
|
|
|
9820
9836
|
var _g$5;
|
|
9821
|
-
function _extends$
|
|
9837
|
+
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); }
|
|
9822
9838
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
9823
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
9839
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
9824
9840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9825
9841
|
width: "1em",
|
|
9826
9842
|
height: "1em",
|
|
@@ -10283,8 +10299,8 @@ var VisibleModal = /** @class */ (function (_super) {
|
|
|
10283
10299
|
return VisibleModal;
|
|
10284
10300
|
}(React.Component));
|
|
10285
10301
|
|
|
10286
|
-
var css_248z$
|
|
10287
|
-
styleInject(css_248z$
|
|
10302
|
+
var css_248z$5 = ".drawer {\n position: absolute;\n overflow: hidden;\n}\n.drawer.left, .drawer.right {\n top: 0;\n bottom: 0;\n width: 0;\n transition: width 200ms;\n}\n.drawer.left.show, .drawer.right.show {\n min-width: var(--minWidth);\n width: var(--width);\n max-width: var(--maxWidth);\n}\n.drawer.top, .drawer.bottom {\n left: 0;\n right: 0;\n height: 0;\n transition: height 200ms;\n}\n.drawer.top.show, .drawer.bottom.show {\n height: var(--height);\n}\n.drawer.right {\n right: 0;\n}\n.drawer.left {\n left: 0;\n}\n.drawer.top {\n top: 0;\n}\n.drawer.bottom {\n bottom: 0;\n}";
|
|
10303
|
+
styleInject(css_248z$5);
|
|
10288
10304
|
|
|
10289
10305
|
var Drawer = function (_a) {
|
|
10290
10306
|
var children = _a.children, position = _a.position, height = _a.height, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, parentClassName = _a.parentClassName, onEscape = _a.onEscape;
|
|
@@ -10358,16 +10374,16 @@ var Modal = function (_a) {
|
|
|
10358
10374
|
}, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
|
|
10359
10375
|
};
|
|
10360
10376
|
|
|
10361
|
-
var _path$
|
|
10362
|
-
function _extends$
|
|
10377
|
+
var _path$b;
|
|
10378
|
+
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); }
|
|
10363
10379
|
var SvgIcCross = function SvgIcCross(props) {
|
|
10364
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10380
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
10365
10381
|
width: "1em",
|
|
10366
10382
|
height: "1em",
|
|
10367
10383
|
viewBox: "0 0 24 24",
|
|
10368
10384
|
fill: "none",
|
|
10369
10385
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10370
|
-
}, props), _path$
|
|
10386
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10371
10387
|
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",
|
|
10372
10388
|
fill: "#596168"
|
|
10373
10389
|
})));
|
|
@@ -14666,38 +14682,38 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
14666
14682
|
|
|
14667
14683
|
var Tippy = index;
|
|
14668
14684
|
|
|
14669
|
-
var _path$
|
|
14670
|
-
function _extends$
|
|
14685
|
+
var _path$a;
|
|
14686
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
14671
14687
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
14672
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14688
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
14673
14689
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14674
14690
|
width: "1em",
|
|
14675
14691
|
height: "1em",
|
|
14676
14692
|
viewBox: "0 0 24 24"
|
|
14677
|
-
}, props), _path$
|
|
14693
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14678
14694
|
fill: "#767D84",
|
|
14679
14695
|
fillRule: "evenodd",
|
|
14680
14696
|
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"
|
|
14681
14697
|
})));
|
|
14682
14698
|
};
|
|
14683
14699
|
|
|
14684
|
-
var _path$
|
|
14685
|
-
function _extends$
|
|
14700
|
+
var _path$9;
|
|
14701
|
+
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); }
|
|
14686
14702
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
14687
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14703
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
14688
14704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14689
14705
|
viewBox: "0 0 17 16",
|
|
14690
14706
|
width: "1em",
|
|
14691
14707
|
height: "1em"
|
|
14692
|
-
}, props), _path$
|
|
14708
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14693
14709
|
fill: "#767D84",
|
|
14694
14710
|
fillRule: "evenodd",
|
|
14695
14711
|
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"
|
|
14696
14712
|
})));
|
|
14697
14713
|
};
|
|
14698
14714
|
|
|
14699
|
-
var css_248z$
|
|
14700
|
-
styleInject(css_248z$
|
|
14715
|
+
var css_248z$4 = ".tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translateX(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translateX(5px)}";
|
|
14716
|
+
styleInject(css_248z$4);
|
|
14701
14717
|
|
|
14702
14718
|
// This component will handle some of the new tippy designs and interactions
|
|
14703
14719
|
// So this can be updated to support further for new features or interactions
|
|
@@ -14741,16 +14757,16 @@ function TippyCustomized(props) {
|
|
|
14741
14757
|
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 })));
|
|
14742
14758
|
}
|
|
14743
14759
|
|
|
14744
|
-
var _path$
|
|
14745
|
-
function _extends$
|
|
14760
|
+
var _path$8, _circle, _path2$1;
|
|
14761
|
+
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); }
|
|
14746
14762
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
14747
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14763
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
14748
14764
|
width: "1em",
|
|
14749
14765
|
height: "1em",
|
|
14750
14766
|
viewBox: "0 0 20 20",
|
|
14751
14767
|
fill: "none",
|
|
14752
14768
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14753
|
-
}, props), _path$
|
|
14769
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14754
14770
|
d: "M10 10H3.333",
|
|
14755
14771
|
stroke: "#596168",
|
|
14756
14772
|
strokeWidth: 1.5,
|
|
@@ -14778,15 +14794,15 @@ function PropagateTagInfo(_a) {
|
|
|
14778
14794
|
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" })] })) })));
|
|
14779
14795
|
}
|
|
14780
14796
|
|
|
14781
|
-
var _path$
|
|
14782
|
-
function _extends$
|
|
14797
|
+
var _path$7;
|
|
14798
|
+
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); }
|
|
14783
14799
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
14784
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14800
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
14785
14801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14786
14802
|
width: "1em",
|
|
14787
14803
|
height: "1em",
|
|
14788
14804
|
viewBox: "0 0 20 20"
|
|
14789
|
-
}, props), _path$
|
|
14805
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14790
14806
|
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",
|
|
14791
14807
|
fill: "#06C",
|
|
14792
14808
|
fillRule: "evenodd"
|
|
@@ -15020,15 +15036,15 @@ var TagDetails = function (_a) {
|
|
|
15020
15036
|
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" }) }))] })));
|
|
15021
15037
|
};
|
|
15022
15038
|
|
|
15023
|
-
var _path$
|
|
15024
|
-
function _extends$
|
|
15039
|
+
var _path$6;
|
|
15040
|
+
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); }
|
|
15025
15041
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
15026
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15042
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
15027
15043
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15028
15044
|
width: "1em",
|
|
15029
15045
|
height: "1em",
|
|
15030
15046
|
viewBox: "0 0 24 24"
|
|
15031
|
-
}, props), _path$
|
|
15047
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15032
15048
|
className: "ic-add_svg__fill-color",
|
|
15033
15049
|
fill: "#999",
|
|
15034
15050
|
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"
|
|
@@ -15146,8 +15162,8 @@ function ForceDeleteDialog(_a) {
|
|
|
15146
15162
|
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?" })] }) })) }));
|
|
15147
15163
|
}
|
|
15148
15164
|
|
|
15149
|
-
function _extends$
|
|
15150
|
-
_extends$
|
|
15165
|
+
function _extends$b() {
|
|
15166
|
+
_extends$b = Object.assign ? Object.assign.bind() : function (target) {
|
|
15151
15167
|
for (var i = 1; i < arguments.length; i++) {
|
|
15152
15168
|
var source = arguments[i];
|
|
15153
15169
|
for (var key in source) {
|
|
@@ -15158,7 +15174,7 @@ function _extends$c() {
|
|
|
15158
15174
|
}
|
|
15159
15175
|
return target;
|
|
15160
15176
|
};
|
|
15161
|
-
return _extends$
|
|
15177
|
+
return _extends$b.apply(this, arguments);
|
|
15162
15178
|
}
|
|
15163
15179
|
|
|
15164
15180
|
/*
|
|
@@ -18699,7 +18715,7 @@ var Menu = function Menu(props) {
|
|
|
18699
18715
|
getStyles = props.getStyles,
|
|
18700
18716
|
innerRef = props.innerRef,
|
|
18701
18717
|
innerProps = props.innerProps;
|
|
18702
|
-
return jsx("div", _extends$
|
|
18718
|
+
return jsx("div", _extends$b({
|
|
18703
18719
|
css: getStyles('menu', props),
|
|
18704
18720
|
className: cx({
|
|
18705
18721
|
menu: true
|
|
@@ -18731,7 +18747,7 @@ var MenuList = function MenuList(props) {
|
|
|
18731
18747
|
innerProps = props.innerProps,
|
|
18732
18748
|
innerRef = props.innerRef,
|
|
18733
18749
|
isMulti = props.isMulti;
|
|
18734
|
-
return jsx("div", _extends$
|
|
18750
|
+
return jsx("div", _extends$b({
|
|
18735
18751
|
css: getStyles('menuList', props),
|
|
18736
18752
|
className: cx({
|
|
18737
18753
|
'menu-list': true,
|
|
@@ -18762,7 +18778,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
18762
18778
|
cx = props.cx,
|
|
18763
18779
|
getStyles = props.getStyles,
|
|
18764
18780
|
innerProps = props.innerProps;
|
|
18765
|
-
return jsx("div", _extends$
|
|
18781
|
+
return jsx("div", _extends$b({
|
|
18766
18782
|
css: getStyles('noOptionsMessage', props),
|
|
18767
18783
|
className: cx({
|
|
18768
18784
|
'menu-notice': true,
|
|
@@ -18779,7 +18795,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
18779
18795
|
cx = props.cx,
|
|
18780
18796
|
getStyles = props.getStyles,
|
|
18781
18797
|
innerProps = props.innerProps;
|
|
18782
|
-
return jsx("div", _extends$
|
|
18798
|
+
return jsx("div", _extends$b({
|
|
18783
18799
|
css: getStyles('loadingMessage', props),
|
|
18784
18800
|
className: cx({
|
|
18785
18801
|
'menu-notice': true,
|
|
@@ -18867,7 +18883,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
18867
18883
|
rect: rect
|
|
18868
18884
|
}; // same wrapper element whether fixed or portalled
|
|
18869
18885
|
|
|
18870
|
-
var menuWrapper = jsx("div", _extends$
|
|
18886
|
+
var menuWrapper = jsx("div", _extends$b({
|
|
18871
18887
|
css: getStyles('menuPortal', state),
|
|
18872
18888
|
className: cx({
|
|
18873
18889
|
'menu-portal': true
|
|
@@ -18903,7 +18919,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
18903
18919
|
innerProps = props.innerProps,
|
|
18904
18920
|
isDisabled = props.isDisabled,
|
|
18905
18921
|
isRtl = props.isRtl;
|
|
18906
|
-
return jsx("div", _extends$
|
|
18922
|
+
return jsx("div", _extends$b({
|
|
18907
18923
|
css: getStyles('container', props),
|
|
18908
18924
|
className: cx({
|
|
18909
18925
|
'--is-disabled': isDisabled,
|
|
@@ -18938,7 +18954,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
18938
18954
|
isMulti = props.isMulti,
|
|
18939
18955
|
getStyles = props.getStyles,
|
|
18940
18956
|
hasValue = props.hasValue;
|
|
18941
|
-
return jsx("div", _extends$
|
|
18957
|
+
return jsx("div", _extends$b({
|
|
18942
18958
|
css: getStyles('valueContainer', props),
|
|
18943
18959
|
className: cx({
|
|
18944
18960
|
'value-container': true,
|
|
@@ -18964,7 +18980,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
18964
18980
|
cx = props.cx,
|
|
18965
18981
|
innerProps = props.innerProps,
|
|
18966
18982
|
getStyles = props.getStyles;
|
|
18967
|
-
return jsx("div", _extends$
|
|
18983
|
+
return jsx("div", _extends$b({
|
|
18968
18984
|
css: getStyles('indicatorsContainer', props),
|
|
18969
18985
|
className: cx({
|
|
18970
18986
|
indicators: true
|
|
@@ -18995,7 +19011,7 @@ var Svg = function Svg(_ref) {
|
|
|
18995
19011
|
var size = _ref.size,
|
|
18996
19012
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
18997
19013
|
|
|
18998
|
-
return jsx("svg", _extends$
|
|
19014
|
+
return jsx("svg", _extends$b({
|
|
18999
19015
|
height: size,
|
|
19000
19016
|
width: size,
|
|
19001
19017
|
viewBox: "0 0 20 20",
|
|
@@ -19006,14 +19022,14 @@ var Svg = function Svg(_ref) {
|
|
|
19006
19022
|
};
|
|
19007
19023
|
|
|
19008
19024
|
var CrossIcon = function CrossIcon(props) {
|
|
19009
|
-
return jsx(Svg, _extends$
|
|
19025
|
+
return jsx(Svg, _extends$b({
|
|
19010
19026
|
size: 20
|
|
19011
19027
|
}, props), jsx("path", {
|
|
19012
19028
|
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"
|
|
19013
19029
|
}));
|
|
19014
19030
|
};
|
|
19015
19031
|
var DownChevron = function DownChevron(props) {
|
|
19016
|
-
return jsx(Svg, _extends$
|
|
19032
|
+
return jsx(Svg, _extends$b({
|
|
19017
19033
|
size: 20
|
|
19018
19034
|
}, props), jsx("path", {
|
|
19019
19035
|
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"
|
|
@@ -19040,13 +19056,13 @@ var baseCSS = function baseCSS(_ref3) {
|
|
|
19040
19056
|
};
|
|
19041
19057
|
|
|
19042
19058
|
var dropdownIndicatorCSS = baseCSS;
|
|
19043
|
-
var DropdownIndicator
|
|
19059
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
|
19044
19060
|
var children = props.children,
|
|
19045
19061
|
className = props.className,
|
|
19046
19062
|
cx = props.cx,
|
|
19047
19063
|
getStyles = props.getStyles,
|
|
19048
19064
|
innerProps = props.innerProps;
|
|
19049
|
-
return jsx("div", _extends$
|
|
19065
|
+
return jsx("div", _extends$b({
|
|
19050
19066
|
css: getStyles('dropdownIndicator', props),
|
|
19051
19067
|
className: cx({
|
|
19052
19068
|
indicator: true,
|
|
@@ -19061,7 +19077,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
19061
19077
|
cx = props.cx,
|
|
19062
19078
|
getStyles = props.getStyles,
|
|
19063
19079
|
innerProps = props.innerProps;
|
|
19064
|
-
return jsx("div", _extends$
|
|
19080
|
+
return jsx("div", _extends$b({
|
|
19065
19081
|
css: getStyles('clearIndicator', props),
|
|
19066
19082
|
className: cx({
|
|
19067
19083
|
indicator: true,
|
|
@@ -19091,7 +19107,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
19091
19107
|
cx = props.cx,
|
|
19092
19108
|
getStyles = props.getStyles,
|
|
19093
19109
|
innerProps = props.innerProps;
|
|
19094
|
-
return jsx("span", _extends$
|
|
19110
|
+
return jsx("span", _extends$b({}, innerProps, {
|
|
19095
19111
|
css: getStyles('indicatorSeparator', props),
|
|
19096
19112
|
className: cx({
|
|
19097
19113
|
'indicator-separator': true
|
|
@@ -19146,7 +19162,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
19146
19162
|
getStyles = props.getStyles,
|
|
19147
19163
|
innerProps = props.innerProps,
|
|
19148
19164
|
isRtl = props.isRtl;
|
|
19149
|
-
return jsx("div", _extends$
|
|
19165
|
+
return jsx("div", _extends$b({
|
|
19150
19166
|
css: getStyles('loadingIndicator', props),
|
|
19151
19167
|
className: cx({
|
|
19152
19168
|
indicator: true,
|
|
@@ -19207,7 +19223,7 @@ var Control = function Control(props) {
|
|
|
19207
19223
|
innerRef = props.innerRef,
|
|
19208
19224
|
innerProps = props.innerProps,
|
|
19209
19225
|
menuIsOpen = props.menuIsOpen;
|
|
19210
|
-
return jsx("div", _extends$
|
|
19226
|
+
return jsx("div", _extends$b({
|
|
19211
19227
|
ref: innerRef,
|
|
19212
19228
|
css: getStyles('control', props),
|
|
19213
19229
|
className: cx({
|
|
@@ -19239,12 +19255,12 @@ var Group = function Group(props) {
|
|
|
19239
19255
|
label = props.label,
|
|
19240
19256
|
theme = props.theme,
|
|
19241
19257
|
selectProps = props.selectProps;
|
|
19242
|
-
return jsx("div", _extends$
|
|
19258
|
+
return jsx("div", _extends$b({
|
|
19243
19259
|
css: getStyles('group', props),
|
|
19244
19260
|
className: cx({
|
|
19245
19261
|
group: true
|
|
19246
19262
|
}, className)
|
|
19247
|
-
}, innerProps), jsx(Heading, _extends$
|
|
19263
|
+
}, innerProps), jsx(Heading, _extends$b({}, headingProps, {
|
|
19248
19264
|
selectProps: selectProps,
|
|
19249
19265
|
theme: theme,
|
|
19250
19266
|
getStyles: getStyles,
|
|
@@ -19276,7 +19292,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
19276
19292
|
_cleanCommonProps.data;
|
|
19277
19293
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
19278
19294
|
|
|
19279
|
-
return jsx("div", _extends$
|
|
19295
|
+
return jsx("div", _extends$b({
|
|
19280
19296
|
css: getStyles('groupHeading', props),
|
|
19281
19297
|
className: cx({
|
|
19282
19298
|
'group-heading': true
|
|
@@ -19352,7 +19368,7 @@ var Input = function Input(props) {
|
|
|
19352
19368
|
}, className),
|
|
19353
19369
|
css: getStyles('input', props),
|
|
19354
19370
|
"data-value": value || ''
|
|
19355
|
-
}, jsx("input", _extends$
|
|
19371
|
+
}, jsx("input", _extends$b({
|
|
19356
19372
|
className: cx({
|
|
19357
19373
|
input: true
|
|
19358
19374
|
}, inputClassName),
|
|
@@ -19422,7 +19438,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
19422
19438
|
function MultiValueRemove$1(_ref5) {
|
|
19423
19439
|
var children = _ref5.children,
|
|
19424
19440
|
innerProps = _ref5.innerProps;
|
|
19425
|
-
return jsx("div", _extends$
|
|
19441
|
+
return jsx("div", _extends$b({
|
|
19426
19442
|
role: "button"
|
|
19427
19443
|
}, innerProps), children || jsx(CrossIcon, {
|
|
19428
19444
|
size: 14
|
|
@@ -19511,7 +19527,7 @@ var Option$1 = function Option(props) {
|
|
|
19511
19527
|
isSelected = props.isSelected,
|
|
19512
19528
|
innerRef = props.innerRef,
|
|
19513
19529
|
innerProps = props.innerProps;
|
|
19514
|
-
return jsx("div", _extends$
|
|
19530
|
+
return jsx("div", _extends$b({
|
|
19515
19531
|
css: getStyles('option', props),
|
|
19516
19532
|
className: cx({
|
|
19517
19533
|
option: true,
|
|
@@ -19543,7 +19559,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19543
19559
|
cx = props.cx,
|
|
19544
19560
|
getStyles = props.getStyles,
|
|
19545
19561
|
innerProps = props.innerProps;
|
|
19546
|
-
return jsx("div", _extends$
|
|
19562
|
+
return jsx("div", _extends$b({
|
|
19547
19563
|
css: getStyles('placeholder', props),
|
|
19548
19564
|
className: cx({
|
|
19549
19565
|
placeholder: true
|
|
@@ -19576,7 +19592,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19576
19592
|
getStyles = props.getStyles,
|
|
19577
19593
|
isDisabled = props.isDisabled,
|
|
19578
19594
|
innerProps = props.innerProps;
|
|
19579
|
-
return jsx("div", _extends$
|
|
19595
|
+
return jsx("div", _extends$b({
|
|
19580
19596
|
css: getStyles('singleValue', props),
|
|
19581
19597
|
className: cx({
|
|
19582
19598
|
'single-value': true,
|
|
@@ -19588,7 +19604,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19588
19604
|
var components = {
|
|
19589
19605
|
ClearIndicator: ClearIndicator$1,
|
|
19590
19606
|
Control: Control,
|
|
19591
|
-
DropdownIndicator: DropdownIndicator
|
|
19607
|
+
DropdownIndicator: DropdownIndicator,
|
|
19592
19608
|
DownChevron: DownChevron,
|
|
19593
19609
|
CrossIcon: CrossIcon,
|
|
19594
19610
|
Group: Group,
|
|
@@ -19824,7 +19840,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
19824
19840
|
};
|
|
19825
19841
|
|
|
19826
19842
|
var A11yText = function A11yText(props) {
|
|
19827
|
-
return jsx("span", _extends$
|
|
19843
|
+
return jsx("span", _extends$b({
|
|
19828
19844
|
css: _ref
|
|
19829
19845
|
}, props));
|
|
19830
19846
|
};
|
|
@@ -20360,7 +20376,7 @@ function DummyInput(_ref) {
|
|
|
20360
20376
|
var innerRef = _ref.innerRef,
|
|
20361
20377
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20362
20378
|
|
|
20363
|
-
return jsx("input", _extends$
|
|
20379
|
+
return jsx("input", _extends$b({
|
|
20364
20380
|
ref: innerRef
|
|
20365
20381
|
}, props, {
|
|
20366
20382
|
css: /*#__PURE__*/css$2({
|
|
@@ -21995,7 +22011,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
21995
22011
|
|
|
21996
22012
|
if (!isSearchable) {
|
|
21997
22013
|
// use a dummy input to maintain focus/blur functionality
|
|
21998
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
22014
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$b({
|
|
21999
22015
|
id: id,
|
|
22000
22016
|
innerRef: this.getInputRef,
|
|
22001
22017
|
onBlur: this.onInputBlur,
|
|
@@ -22009,7 +22025,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22009
22025
|
}, ariaAttributes));
|
|
22010
22026
|
}
|
|
22011
22027
|
|
|
22012
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
22028
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$b({}, commonProps, {
|
|
22013
22029
|
autoCapitalize: "none",
|
|
22014
22030
|
autoComplete: "off",
|
|
22015
22031
|
autoCorrect: "off",
|
|
@@ -22053,7 +22069,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22053
22069
|
isFocused = _this$state5.isFocused;
|
|
22054
22070
|
|
|
22055
22071
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
22056
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
22072
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$b({}, commonProps, {
|
|
22057
22073
|
key: "placeholder",
|
|
22058
22074
|
isDisabled: isDisabled,
|
|
22059
22075
|
isFocused: isFocused,
|
|
@@ -22067,7 +22083,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22067
22083
|
return selectValue.map(function (opt, index) {
|
|
22068
22084
|
var isOptionFocused = opt === focusedValue;
|
|
22069
22085
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
22070
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
22086
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$b({}, commonProps, {
|
|
22071
22087
|
components: {
|
|
22072
22088
|
Container: MultiValueContainer,
|
|
22073
22089
|
Label: MultiValueLabel,
|
|
@@ -22099,7 +22115,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22099
22115
|
}
|
|
22100
22116
|
|
|
22101
22117
|
var singleValue = selectValue[0];
|
|
22102
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
22118
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$b({}, commonProps, {
|
|
22103
22119
|
data: singleValue,
|
|
22104
22120
|
isDisabled: isDisabled
|
|
22105
22121
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -22125,7 +22141,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22125
22141
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
22126
22142
|
'aria-hidden': 'true'
|
|
22127
22143
|
};
|
|
22128
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
22144
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$b({}, commonProps, {
|
|
22129
22145
|
innerProps: innerProps,
|
|
22130
22146
|
isFocused: isFocused
|
|
22131
22147
|
}));
|
|
@@ -22145,7 +22161,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22145
22161
|
var innerProps = {
|
|
22146
22162
|
'aria-hidden': 'true'
|
|
22147
22163
|
};
|
|
22148
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
22164
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$b({}, commonProps, {
|
|
22149
22165
|
innerProps: innerProps,
|
|
22150
22166
|
isDisabled: isDisabled,
|
|
22151
22167
|
isFocused: isFocused
|
|
@@ -22163,7 +22179,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22163
22179
|
var commonProps = this.commonProps;
|
|
22164
22180
|
var isDisabled = this.props.isDisabled;
|
|
22165
22181
|
var isFocused = this.state.isFocused;
|
|
22166
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
22182
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$b({}, commonProps, {
|
|
22167
22183
|
isDisabled: isDisabled,
|
|
22168
22184
|
isFocused: isFocused
|
|
22169
22185
|
}));
|
|
@@ -22183,7 +22199,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22183
22199
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
22184
22200
|
'aria-hidden': 'true'
|
|
22185
22201
|
};
|
|
22186
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
22202
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$b({}, commonProps, {
|
|
22187
22203
|
innerProps: innerProps,
|
|
22188
22204
|
isDisabled: isDisabled,
|
|
22189
22205
|
isFocused: isFocused
|
|
@@ -22246,7 +22262,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22246
22262
|
onMouseOver: onHover,
|
|
22247
22263
|
tabIndex: -1
|
|
22248
22264
|
};
|
|
22249
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
22265
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$b({}, commonProps, {
|
|
22250
22266
|
innerProps: innerProps,
|
|
22251
22267
|
data: data,
|
|
22252
22268
|
isDisabled: isDisabled,
|
|
@@ -22270,7 +22286,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22270
22286
|
groupIndex = item.index;
|
|
22271
22287
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
22272
22288
|
var headingId = "".concat(groupId, "-heading");
|
|
22273
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
22289
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$b({}, commonProps, {
|
|
22274
22290
|
key: groupId,
|
|
22275
22291
|
data: _data,
|
|
22276
22292
|
options: options,
|
|
@@ -22309,12 +22325,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22309
22325
|
menuPosition: menuPosition,
|
|
22310
22326
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
22311
22327
|
};
|
|
22312
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
22328
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$b({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
22313
22329
|
var ref = _ref4.ref,
|
|
22314
22330
|
_ref4$placerProps = _ref4.placerProps,
|
|
22315
22331
|
placement = _ref4$placerProps.placement,
|
|
22316
22332
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
22317
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
22333
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$b({}, commonProps, menuPlacementProps, {
|
|
22318
22334
|
innerRef: ref,
|
|
22319
22335
|
innerProps: {
|
|
22320
22336
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -22329,7 +22345,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22329
22345
|
onBottomArrive: onMenuScrollToBottom,
|
|
22330
22346
|
lockEnabled: menuShouldBlockScroll
|
|
22331
22347
|
}, function (scrollTargetRef) {
|
|
22332
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
22348
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$b({}, commonProps, {
|
|
22333
22349
|
innerRef: function innerRef(instance) {
|
|
22334
22350
|
_this4.getMenuListRef(instance);
|
|
22335
22351
|
|
|
@@ -22344,7 +22360,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22344
22360
|
// so we use the same component. the actual portalling logic is forked
|
|
22345
22361
|
// within the component based on `menuPosition`
|
|
22346
22362
|
|
|
22347
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
22363
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$b({}, commonProps, {
|
|
22348
22364
|
appendTo: menuPortalTarget,
|
|
22349
22365
|
controlElement: this.controlRef,
|
|
22350
22366
|
menuPlacement: menuPlacement,
|
|
@@ -22409,7 +22425,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22409
22425
|
isFocused = _this$state6.isFocused,
|
|
22410
22426
|
selectValue = _this$state6.selectValue;
|
|
22411
22427
|
var focusableOptions = this.getFocusableOptions();
|
|
22412
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
22428
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$b({}, commonProps, {
|
|
22413
22429
|
id: this.getElementId('live-region'),
|
|
22414
22430
|
ariaSelection: ariaSelection,
|
|
22415
22431
|
focusedOption: focusedOption,
|
|
@@ -22435,7 +22451,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22435
22451
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
22436
22452
|
var isFocused = this.state.isFocused;
|
|
22437
22453
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
22438
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
22454
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$b({}, commonProps, {
|
|
22439
22455
|
className: className,
|
|
22440
22456
|
innerProps: {
|
|
22441
22457
|
id: id,
|
|
@@ -22443,7 +22459,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22443
22459
|
},
|
|
22444
22460
|
isDisabled: isDisabled,
|
|
22445
22461
|
isFocused: isFocused
|
|
22446
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
22462
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$b({}, commonProps, {
|
|
22447
22463
|
innerRef: this.getControlRef,
|
|
22448
22464
|
innerProps: {
|
|
22449
22465
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -22452,9 +22468,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22452
22468
|
isDisabled: isDisabled,
|
|
22453
22469
|
isFocused: isFocused,
|
|
22454
22470
|
menuIsOpen: menuIsOpen
|
|
22455
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
22471
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$b({}, commonProps, {
|
|
22456
22472
|
isDisabled: isDisabled
|
|
22457
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
22473
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$b({}, commonProps, {
|
|
22458
22474
|
isDisabled: isDisabled
|
|
22459
22475
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
22460
22476
|
}
|
|
@@ -22527,17 +22543,17 @@ Select$1.defaultProps = defaultProps;
|
|
|
22527
22543
|
|
|
22528
22544
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22529
22545
|
var baseSelectProps = useStateManager(props);
|
|
22530
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
22546
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$b({
|
|
22531
22547
|
ref: ref
|
|
22532
22548
|
}, baseSelectProps));
|
|
22533
22549
|
});
|
|
22534
22550
|
|
|
22535
|
-
var
|
|
22551
|
+
var Select = StateManagedSelect;
|
|
22536
22552
|
|
|
22537
22553
|
var _g$4;
|
|
22538
|
-
function _extends$
|
|
22554
|
+
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); }
|
|
22539
22555
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
22540
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22556
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
22541
22557
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22542
22558
|
viewBox: "0 0 28 28",
|
|
22543
22559
|
width: "1em",
|
|
@@ -22558,15 +22574,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
22558
22574
|
}))));
|
|
22559
22575
|
};
|
|
22560
22576
|
|
|
22561
|
-
var _path$
|
|
22562
|
-
function _extends$
|
|
22577
|
+
var _path$5;
|
|
22578
|
+
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); }
|
|
22563
22579
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
22564
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22580
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
22565
22581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22566
22582
|
width: "1em",
|
|
22567
22583
|
height: "1em",
|
|
22568
22584
|
viewBox: "0 0 24 24"
|
|
22569
|
-
}, props), _path$
|
|
22585
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22570
22586
|
stroke: "#06C",
|
|
22571
22587
|
strokeLinecap: "round",
|
|
22572
22588
|
strokeLinejoin: "round",
|
|
@@ -22578,9 +22594,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
22578
22594
|
};
|
|
22579
22595
|
|
|
22580
22596
|
var _g$3;
|
|
22581
|
-
function _extends$
|
|
22597
|
+
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); }
|
|
22582
22598
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
22583
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22599
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
22584
22600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22585
22601
|
width: "1em",
|
|
22586
22602
|
height: "1em",
|
|
@@ -22642,11 +22658,11 @@ var multiSelectStyles = {
|
|
|
22642
22658
|
valueContainer: function (base, state) { return (__assign(__assign({}, base), { color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); },
|
|
22643
22659
|
};
|
|
22644
22660
|
var CustomSelect = function (props) {
|
|
22645
|
-
return jsxRuntime.jsx(
|
|
22661
|
+
return jsxRuntime.jsx(Select, __assign({}, props));
|
|
22646
22662
|
};
|
|
22647
22663
|
|
|
22648
|
-
var css_248z$
|
|
22649
|
-
styleInject(css_248z$
|
|
22664
|
+
var css_248z$3 = ".info-bar-container .info_text .success {\n background-color: var(--G100);\n}\n.info-bar-container .warn {\n background: var(--Y100);\n border: solid var(--Y200);\n}\n.info-bar-container .warn .warning-icon path:nth-child(2) {\n fill: var(--Y700);\n}\n.info-bar-container .info_bar {\n background-color: var(--B100);\n border: 1px solid var(--B200);\n}\n.info-bar-container .error_bar {\n background-color: var(--R100);\n border: 1px solid var(--R200);\n}\n.info-bar-container .question-bar {\n background-color: var(--V100);\n border: 1px solid var(--V200);\n}";
|
|
22665
|
+
styleInject(css_248z$3);
|
|
22650
22666
|
|
|
22651
22667
|
function InfoColourBar(_a) {
|
|
22652
22668
|
var message = _a.message, classname = _a.classname, Icon = _a.Icon, iconClass = _a.iconClass, iconSize = _a.iconSize, renderActionButton = _a.renderActionButton, linkText = _a.linkText, redirectLink = _a.redirectLink, linkOnClick = _a.linkOnClick, linkClass = _a.linkClass, internalLink = _a.internalLink, styles = _a.styles;
|
|
@@ -22700,77 +22716,170 @@ function getUserRole(appName) {
|
|
|
22700
22716
|
function setImageTags(request, pipelineId, artifactId) {
|
|
22701
22717
|
return post("".concat(ROUTES.IMAGE_TAGGING, "/").concat(pipelineId, "/").concat(artifactId), request);
|
|
22702
22718
|
}
|
|
22703
|
-
|
|
22704
|
-
var
|
|
22705
|
-
|
|
22706
|
-
|
|
22707
|
-
|
|
22708
|
-
|
|
22709
|
-
|
|
22710
|
-
|
|
22711
|
-
|
|
22712
|
-
|
|
22713
|
-
|
|
22714
|
-
};
|
|
22719
|
+
var processURL = function (url, params) {
|
|
22720
|
+
var validParams = Object.keys(params).filter(function (key) {
|
|
22721
|
+
return params[key] != null;
|
|
22722
|
+
});
|
|
22723
|
+
if (!validParams.length) {
|
|
22724
|
+
return url;
|
|
22725
|
+
}
|
|
22726
|
+
var queryString = validParams
|
|
22727
|
+
.map(function (key) {
|
|
22728
|
+
if (Array.isArray(params[key])) {
|
|
22729
|
+
return "".concat(key, "=").concat(params[key].join(','));
|
|
22715
22730
|
}
|
|
22716
|
-
|
|
22717
|
-
|
|
22718
|
-
|
|
22719
|
-
|
|
22720
|
-
|
|
22721
|
-
|
|
22722
|
-
|
|
22723
|
-
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
|
-
tab: CDModalTab.Changes,
|
|
22734
|
-
showSourceInfo: false,
|
|
22735
|
-
deployed: material.deployed || false,
|
|
22736
|
-
latest: material.latest || false,
|
|
22737
|
-
vulnerabilitiesLoading: true,
|
|
22738
|
-
scanned: material.scanned,
|
|
22739
|
-
scanEnabled: material.scanEnabled,
|
|
22740
|
-
isSelected: !material.vulnerable && filterState === exports.FilterStates.ALLOWED && index === 0,
|
|
22741
|
-
vulnerable: material.vulnerable,
|
|
22742
|
-
runningOnParentCd: material.runningOnParentCd,
|
|
22743
|
-
artifactStatus: artifactStatusValue,
|
|
22744
|
-
userApprovalMetadata: material.userApprovalMetadata,
|
|
22745
|
-
triggeredBy: material.triggeredBy,
|
|
22746
|
-
isVirtualEnvironment: material.isVirtualEnvironment,
|
|
22747
|
-
imageComment: material.imageComment,
|
|
22748
|
-
imageReleaseTags: material.imageReleaseTags,
|
|
22749
|
-
materialInfo: material.material_info
|
|
22750
|
-
? material.material_info.map(function (mat) {
|
|
22751
|
-
return {
|
|
22752
|
-
modifiedTime: mat.modifiedTime ? moment(mat.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : '',
|
|
22753
|
-
commitLink: createGitCommitUrl(mat.url, mat.revision),
|
|
22754
|
-
author: mat.author || '',
|
|
22755
|
-
message: mat.message || '',
|
|
22756
|
-
revision: mat.revision || '',
|
|
22757
|
-
tag: mat.tag || '',
|
|
22758
|
-
webhookData: mat.webhookData || '',
|
|
22759
|
-
url: mat.url || '',
|
|
22760
|
-
branch: (material.ciConfigureSourceType === SourceTypeMap.WEBHOOK
|
|
22761
|
-
? material.ciConfigureSourceValue
|
|
22762
|
-
: mat.branch) || '',
|
|
22763
|
-
type: material.ciConfigureSourceType || '',
|
|
22764
|
-
};
|
|
22765
|
-
})
|
|
22766
|
-
: [],
|
|
22767
|
-
filterState: filterState,
|
|
22768
|
-
};
|
|
22769
|
-
});
|
|
22770
|
-
return {
|
|
22771
|
-
materials: materials
|
|
22772
|
-
};
|
|
22731
|
+
return "".concat(key, "=").concat(params[key]);
|
|
22732
|
+
})
|
|
22733
|
+
.join('&');
|
|
22734
|
+
return "".concat(url, "?").concat(queryString);
|
|
22735
|
+
};
|
|
22736
|
+
var cdMaterialListModal = function (artifacts, offset, artifactId, artifactStatus) {
|
|
22737
|
+
if (!artifacts || !artifacts.length)
|
|
22738
|
+
return [];
|
|
22739
|
+
var markFirstSelected = offset === 0;
|
|
22740
|
+
var startIndex = offset;
|
|
22741
|
+
var isImageMarked = false;
|
|
22742
|
+
var materials = artifacts.map(function (material, index) {
|
|
22743
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22744
|
+
var artifactStatusValue = '';
|
|
22745
|
+
var filterState = (_a = material.filterState) !== null && _a !== void 0 ? _a : exports.FilterStates.ALLOWED;
|
|
22746
|
+
if (artifactId && artifactStatus && material.id === artifactId) {
|
|
22747
|
+
artifactStatusValue = artifactStatus;
|
|
22773
22748
|
}
|
|
22749
|
+
var selectImage = !isImageMarked && markFirstSelected && filterState === exports.FilterStates.ALLOWED ? !material.vulnerable : false;
|
|
22750
|
+
if (selectImage) {
|
|
22751
|
+
isImageMarked = true;
|
|
22752
|
+
}
|
|
22753
|
+
return {
|
|
22754
|
+
index: startIndex + index,
|
|
22755
|
+
id: material.id,
|
|
22756
|
+
deployedTime: material.deployed_time
|
|
22757
|
+
? moment(material.deployed_time).format('ddd, DD MMM YYYY, hh:mm A')
|
|
22758
|
+
: 'Not Deployed',
|
|
22759
|
+
deployedBy: material.deployedBy,
|
|
22760
|
+
wfrId: material.wfrId,
|
|
22761
|
+
tab: CDModalTab.Changes,
|
|
22762
|
+
image: extractImage(material.image),
|
|
22763
|
+
showChanges: false,
|
|
22764
|
+
vulnerabilities: [],
|
|
22765
|
+
buildTime: material.build_time || '',
|
|
22766
|
+
isSelected: selectImage,
|
|
22767
|
+
showSourceInfo: false,
|
|
22768
|
+
deployed: material.deployed || false,
|
|
22769
|
+
latest: material.latest || false,
|
|
22770
|
+
vulnerabilitiesLoading: true,
|
|
22771
|
+
scanned: material.scanned,
|
|
22772
|
+
scanEnabled: material.scanEnabled,
|
|
22773
|
+
vulnerable: material.vulnerable,
|
|
22774
|
+
runningOnParentCd: material.runningOnParentCd,
|
|
22775
|
+
artifactStatus: artifactStatusValue,
|
|
22776
|
+
userApprovalMetadata: material.userApprovalMetadata,
|
|
22777
|
+
triggeredBy: material.triggeredBy,
|
|
22778
|
+
isVirtualEnvironment: material.isVirtualEnvironment,
|
|
22779
|
+
imageComment: material.imageComment,
|
|
22780
|
+
imageReleaseTags: material.imageReleaseTags,
|
|
22781
|
+
// It is going to be null but required in type so can't remove
|
|
22782
|
+
lastExecution: material.lastExecution,
|
|
22783
|
+
materialInfo: material.material_info
|
|
22784
|
+
? material.material_info.map(function (mat) {
|
|
22785
|
+
return {
|
|
22786
|
+
modifiedTime: mat.modifiedTime
|
|
22787
|
+
? moment(mat.modifiedTime).format('ddd, DD MMM YYYY, hh:mm A')
|
|
22788
|
+
: '',
|
|
22789
|
+
commitLink: createGitCommitUrl(mat.url, mat.revision),
|
|
22790
|
+
author: mat.author || '',
|
|
22791
|
+
message: mat.message || '',
|
|
22792
|
+
revision: mat.revision || '',
|
|
22793
|
+
tag: mat.tag || '',
|
|
22794
|
+
webhookData: mat.webhookData || '',
|
|
22795
|
+
url: mat.url || '',
|
|
22796
|
+
branch: (material.ciConfigureSourceType === SourceTypeMap.WEBHOOK
|
|
22797
|
+
? material.ciConfigureSourceValue
|
|
22798
|
+
: mat.branch) || '',
|
|
22799
|
+
type: material.ciConfigureSourceType || '',
|
|
22800
|
+
};
|
|
22801
|
+
})
|
|
22802
|
+
: [],
|
|
22803
|
+
filterState: filterState,
|
|
22804
|
+
appliedFiltersTimestamp: (_b = material.appliedFiltersTimestamp) !== null && _b !== void 0 ? _b : '',
|
|
22805
|
+
appliedFilters: (_c = material.appliedFilters) !== null && _c !== void 0 ? _c : [],
|
|
22806
|
+
appliedFiltersState: (_d = material.appliedFiltersState) !== null && _d !== void 0 ? _d : exports.FilterStates.ALLOWED,
|
|
22807
|
+
createdTime: (_e = material.createdTime) !== null && _e !== void 0 ? _e : '',
|
|
22808
|
+
dataSource: (_f = material.data_source) !== null && _f !== void 0 ? _f : '',
|
|
22809
|
+
};
|
|
22810
|
+
});
|
|
22811
|
+
return materials;
|
|
22812
|
+
};
|
|
22813
|
+
var processCDMaterialsApprovalInfo = function (enableApproval, cdMaterialsResult) {
|
|
22814
|
+
if (!enableApproval) {
|
|
22815
|
+
return {
|
|
22816
|
+
approvalUsers: [],
|
|
22817
|
+
userApprovalConfig: null,
|
|
22818
|
+
requestedUserId: 0,
|
|
22819
|
+
};
|
|
22820
|
+
}
|
|
22821
|
+
return {
|
|
22822
|
+
approvalUsers: cdMaterialsResult.approvalUsers,
|
|
22823
|
+
userApprovalConfig: cdMaterialsResult.userApprovalConfig,
|
|
22824
|
+
requestedUserId: cdMaterialsResult.requestedUserId,
|
|
22825
|
+
};
|
|
22826
|
+
};
|
|
22827
|
+
var processCDMaterialsMetaInfo = function (cdMaterialsResult) {
|
|
22828
|
+
var _a, _b, _c, _d;
|
|
22829
|
+
if (!cdMaterialsResult) {
|
|
22830
|
+
return {
|
|
22831
|
+
tagsEditable: false,
|
|
22832
|
+
appReleaseTagNames: [],
|
|
22833
|
+
hideImageTaggingHardDelete: false,
|
|
22834
|
+
resourceFilters: [],
|
|
22835
|
+
totalCount: 0,
|
|
22836
|
+
canApproverDeploy: (_a = cdMaterialsResult.canApproverDeploy) !== null && _a !== void 0 ? _a : false,
|
|
22837
|
+
};
|
|
22838
|
+
}
|
|
22839
|
+
return {
|
|
22840
|
+
appReleaseTagNames: cdMaterialsResult.appReleaseTagNames,
|
|
22841
|
+
tagsEditable: cdMaterialsResult.tagsEditable,
|
|
22842
|
+
hideImageTaggingHardDelete: cdMaterialsResult.hideImageTaggingHardDelete,
|
|
22843
|
+
resourceFilters: (_b = cdMaterialsResult.resourceFilters) !== null && _b !== void 0 ? _b : [],
|
|
22844
|
+
totalCount: (_c = cdMaterialsResult.totalCount) !== null && _c !== void 0 ? _c : 0,
|
|
22845
|
+
canApproverDeploy: (_d = cdMaterialsResult.canApproverDeploy) !== null && _d !== void 0 ? _d : false,
|
|
22846
|
+
};
|
|
22847
|
+
};
|
|
22848
|
+
var processCDMaterialServiceResponse = function (cdMaterialsResult, stage, offset, filter) {
|
|
22849
|
+
if (!cdMaterialsResult) {
|
|
22850
|
+
return __assign(__assign({ materials: [] }, processCDMaterialsMetaInfo(cdMaterialsResult)), processCDMaterialsApprovalInfo(false, cdMaterialsResult));
|
|
22851
|
+
}
|
|
22852
|
+
var materials = cdMaterialListModal(cdMaterialsResult.ci_artifacts, offset !== null && offset !== void 0 ? offset : 0, cdMaterialsResult.latest_wf_artifact_id, cdMaterialsResult.latest_wf_artifact_status);
|
|
22853
|
+
var approvalInfo = processCDMaterialsApprovalInfo(stage === exports.DeploymentNodeType.CD || stage === exports.DeploymentNodeType.APPROVAL, cdMaterialsResult);
|
|
22854
|
+
var metaInfo = processCDMaterialsMetaInfo(cdMaterialsResult);
|
|
22855
|
+
// TODO: On update of service would remove from here
|
|
22856
|
+
var filteredMaterials = filter && filter === exports.CDMaterialFilterQuery.RESOURCE
|
|
22857
|
+
? materials.filter(function (material) {
|
|
22858
|
+
return material.filterState === exports.FilterStates.ALLOWED;
|
|
22859
|
+
})
|
|
22860
|
+
: materials;
|
|
22861
|
+
return __assign(__assign({ materials: filteredMaterials }, approvalInfo), metaInfo);
|
|
22862
|
+
};
|
|
22863
|
+
var getSanitizedQueryParams = function (queryParams) {
|
|
22864
|
+
queryParams.filter; var rest = __rest(queryParams, ["filter"]);
|
|
22865
|
+
return rest;
|
|
22866
|
+
};
|
|
22867
|
+
var genericCDMaterialsService = function (serviceType, cdMaterialID, stage, signal, queryParams) {
|
|
22868
|
+
if (queryParams === void 0) { queryParams = {}; }
|
|
22869
|
+
// TODO: On update of service would remove from here
|
|
22870
|
+
var manipulatedParams = getSanitizedQueryParams(queryParams);
|
|
22871
|
+
var URL;
|
|
22872
|
+
switch (serviceType) {
|
|
22873
|
+
case exports.CDMaterialServiceEnum.ROLLBACK:
|
|
22874
|
+
URL = processURL("".concat(ROUTES.CD_MATERIAL_GET, "/").concat(cdMaterialID, "/material/rollback"), manipulatedParams);
|
|
22875
|
+
break;
|
|
22876
|
+
// Meant for handling getCDMaterialList
|
|
22877
|
+
default:
|
|
22878
|
+
URL = processURL("".concat(ROUTES.CD_MATERIAL_GET, "/").concat(cdMaterialID, "/material"), __assign(__assign({}, manipulatedParams), { stage: stageMap[stage] }));
|
|
22879
|
+
break;
|
|
22880
|
+
}
|
|
22881
|
+
return get(URL, { signal: signal }).then(function (response) {
|
|
22882
|
+
return processCDMaterialServiceResponse(response.result, stage, queryParams.offset, queryParams.filter);
|
|
22774
22883
|
});
|
|
22775
22884
|
};
|
|
22776
22885
|
function extractImage(image) {
|
|
@@ -22810,7 +22919,7 @@ Valid States of Checkbox:
|
|
|
22810
22919
|
5. disabled: false, checked: true, value: INTERMIDIATE
|
|
22811
22920
|
6. disabled: false, checked: true, value: CHECKED
|
|
22812
22921
|
*/
|
|
22813
|
-
var Checkbox
|
|
22922
|
+
var Checkbox = /** @class */ (function (_super) {
|
|
22814
22923
|
__extends(Checkbox, _super);
|
|
22815
22924
|
function Checkbox() {
|
|
22816
22925
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -22823,8 +22932,8 @@ var Checkbox$1 = /** @class */ (function (_super) {
|
|
|
22823
22932
|
return Checkbox;
|
|
22824
22933
|
}(React.Component));
|
|
22825
22934
|
|
|
22826
|
-
var css_248z$
|
|
22827
|
-
styleInject(css_248z$
|
|
22935
|
+
var css_248z$2 = ".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}";
|
|
22936
|
+
styleInject(css_248z$2);
|
|
22828
22937
|
|
|
22829
22938
|
var Toggle = function (_a) {
|
|
22830
22939
|
var _b;
|
|
@@ -22848,8 +22957,8 @@ var Toggle = function (_a) {
|
|
|
22848
22957
|
return (jsxRuntime.jsxs("label", __assign({}, props, { className: "".concat(rootClassName, " toggle__switch ").concat(disabled ? 'disabled' : ''), style: (_b = {}, _b['--color'] = color, _b) }, { children: [jsxRuntime.jsx("input", { type: "checkbox", checked: !!active, onChange: handleClick, className: "toggle__input" }), jsxRuntime.jsx("span", __assign({ className: "toggle__slider ".concat(Icon ? 'with-icon br-4 dc__border' : 'round'), "data-testid": dataTestId }, { children: Icon && jsxRuntime.jsx(Icon, { className: "icon-dim-20 br-4 p-2 ".concat(iconClass) }) }))] })));
|
|
22849
22958
|
};
|
|
22850
22959
|
|
|
22851
|
-
var css_248z$
|
|
22852
|
-
styleInject(css_248z$
|
|
22960
|
+
var css_248z$1 = ".modal-body--scan-details {\n position: fixed;\n top: 0;\n right: 0;\n background: var(--N000);\n width: 800px;\n}\n\n.security-tab__table {\n width: 100%;\n}\n\n.security-tab__table-header {\n border-bottom: solid 1px var(--N200);\n}\n\n.security-cell-header {\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n letter-spacing: normal;\n text-transform: uppercase;\n color: var(--N500);\n}\n\n.dc__security-tab__table-row {\n font-size: 13px;\n font-weight: normal;\n line-height: 1.54;\n letter-spacing: normal;\n color: var(--N900);\n box-shadow: inset 0 -1px 0 0 #f5f5f5;\n}\n\n.security-tab__cell-cve,\n.security-tab__cell-severity,\n.security-tab__cell-package,\n.security-tab__cell-current-ver,\n.security-tab__cell-fixed-ver,\n.security-tab__cell-policy {\n padding: 10px;\n max-width: 120px;\n word-wrap: break-word;\n}\n\n.security-tab__cell-cve {\n padding-left: 0px;\n text-align: left;\n width: 20%;\n}\n\n.security-tab__cell-policy {\n padding-right: 0px;\n}\n\n.security-tab__cell-policy--whitelist,\n.security-tab__cell-policy--whitelisted {\n color: var(--G500);\n text-transform: capitalize;\n}\n\n.security-tab__cell-policy--block {\n color: var(--R500);\n text-transform: capitalize;\n}\n\n.scanned-object__results {\n margin: 0 20px;\n}";
|
|
22961
|
+
styleInject(css_248z$1);
|
|
22853
22962
|
|
|
22854
22963
|
function ScanVulnerabilitiesTable(_a) {
|
|
22855
22964
|
var vulnerabilities = _a.vulnerabilities;
|
|
@@ -22864,8 +22973,8 @@ function ScanVulnerabilitiesTable(_a) {
|
|
|
22864
22973
|
})] }) })));
|
|
22865
22974
|
}
|
|
22866
22975
|
|
|
22867
|
-
var css_248z
|
|
22868
|
-
styleInject(css_248z
|
|
22976
|
+
var css_248z = ".radio-group {\n height: 30px;\n background: white;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 4px;\n border-radius: 4px;\n}\n.radio-group .label,\n.radio-group .radio,\n.radio-group .checkbox {\n margin: 0;\n}\n.radio-group .radio {\n height: 100%;\n width: auto;\n color: var(--N400);\n display: flex;\n align-items: center;\n}\n.radio-group .radio + .radio {\n margin-top: 0;\n}\n.radio-group input[type=checkbox] {\n display: contents;\n overflow: hidden;\n max-width: 0px;\n height: 0;\n opacity: 0;\n margin: unset;\n}\n.radio-group input + .radio__item-label {\n padding: 4px 6px;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n transition: all 0.5s;\n cursor: pointer;\n}\n.radio-group input[type=checkbox]:checked + .radio__item-label {\n background: #2c3354;\n color: white;\n border-radius: 4px;\n}";
|
|
22977
|
+
styleInject(css_248z);
|
|
22869
22978
|
|
|
22870
22979
|
var RadioContext = React.createContext(null);
|
|
22871
22980
|
function useRadioContext() {
|
|
@@ -22959,9 +23068,9 @@ exports.ConsequenceAction = void 0;
|
|
|
22959
23068
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
22960
23069
|
|
|
22961
23070
|
var _g$2;
|
|
22962
|
-
function _extends$
|
|
23071
|
+
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); }
|
|
22963
23072
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
22964
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23073
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
22965
23074
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22966
23075
|
width: "1em",
|
|
22967
23076
|
height: "1em",
|
|
@@ -23040,16 +23149,16 @@ function DeleteComponent(_a) {
|
|
|
23040
23149
|
return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
|
|
23041
23150
|
}
|
|
23042
23151
|
|
|
23043
|
-
var _path$
|
|
23044
|
-
function _extends$
|
|
23152
|
+
var _path$4;
|
|
23153
|
+
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); }
|
|
23045
23154
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
23046
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23155
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
23047
23156
|
width: "1em",
|
|
23048
23157
|
height: "1em",
|
|
23049
23158
|
viewBox: "0 0 20 20",
|
|
23050
23159
|
fill: "none",
|
|
23051
23160
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23052
|
-
}, props), _path$
|
|
23161
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23053
23162
|
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",
|
|
23054
23163
|
stroke: "#596168",
|
|
23055
23164
|
strokeWidth: 1.5,
|
|
@@ -23058,16 +23167,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
23058
23167
|
})));
|
|
23059
23168
|
};
|
|
23060
23169
|
|
|
23061
|
-
var _path$
|
|
23062
|
-
function _extends$
|
|
23170
|
+
var _path$3, _path2, _path3;
|
|
23171
|
+
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); }
|
|
23063
23172
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
23064
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23173
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
23065
23174
|
width: "1em",
|
|
23066
23175
|
height: "1em",
|
|
23067
23176
|
viewBox: "0 0 12 12",
|
|
23068
23177
|
fill: "none",
|
|
23069
23178
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23070
|
-
}, props), _path$
|
|
23179
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23071
23180
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
23072
23181
|
fill: "#767D84"
|
|
23073
23182
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -23085,15 +23194,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
23085
23194
|
})));
|
|
23086
23195
|
};
|
|
23087
23196
|
|
|
23088
|
-
var _path$
|
|
23089
|
-
function _extends$
|
|
23197
|
+
var _path$2;
|
|
23198
|
+
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); }
|
|
23090
23199
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
23091
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23200
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
23092
23201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23093
23202
|
width: "1em",
|
|
23094
23203
|
height: "1em",
|
|
23095
23204
|
viewBox: "0 0 14 14"
|
|
23096
|
-
}, props), _path$
|
|
23205
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23097
23206
|
fill: "#959BA1",
|
|
23098
23207
|
className: "ic-minus_svg__fill-color",
|
|
23099
23208
|
fillRule: "evenodd",
|
|
@@ -23102,9 +23211,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
23102
23211
|
};
|
|
23103
23212
|
|
|
23104
23213
|
var _g$1;
|
|
23105
|
-
function _extends$
|
|
23214
|
+
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); }
|
|
23106
23215
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
23107
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23216
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
23108
23217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23109
23218
|
width: "1em",
|
|
23110
23219
|
height: "1em",
|
|
@@ -23121,23 +23230,25 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
23121
23230
|
}))));
|
|
23122
23231
|
};
|
|
23123
23232
|
|
|
23124
|
-
var _path$
|
|
23125
|
-
function _extends$
|
|
23233
|
+
var _path$1;
|
|
23234
|
+
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); }
|
|
23126
23235
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
23127
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23236
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
23128
23237
|
width: "1em",
|
|
23129
23238
|
height: "1em",
|
|
23130
23239
|
viewBox: "0 0 16 16",
|
|
23131
23240
|
fill: "none",
|
|
23132
23241
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23133
|
-
}, props), _path$
|
|
23242
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23134
23243
|
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",
|
|
23135
23244
|
fill: "#3B444C"
|
|
23136
23245
|
})));
|
|
23137
23246
|
};
|
|
23138
23247
|
|
|
23139
23248
|
var ImageTagsContainer = function (_a) {
|
|
23140
|
-
var
|
|
23249
|
+
var
|
|
23250
|
+
// Setting it to zero in case of external pipeline
|
|
23251
|
+
ciPipelineId = _a.ciPipelineId, artifactId = _a.artifactId, imageComment = _a.imageComment, imageReleaseTags = _a.imageReleaseTags, updateCurrentAppMaterial = _a.updateCurrentAppMaterial, appReleaseTagNames = _a.appReleaseTagNames, setAppReleaseTagNames = _a.setAppReleaseTagNames, tagsEditable = _a.tagsEditable, setTagsEditable = _a.setTagsEditable, toggleCardMode = _a.toggleCardMode, hideHardDelete = _a.hideHardDelete, forceReInit = _a.forceReInit, isSuperAdmin = _a.isSuperAdmin;
|
|
23141
23252
|
var _b = __read(React.useState(imageReleaseTags ? imageReleaseTags : []), 2), initialTags = _b[0], setInitialTags = _b[1];
|
|
23142
23253
|
var _c = __read(React.useState(imageComment ? imageComment.comment : ''), 2), initialDescription = _c[0], setInitialDescription = _c[1];
|
|
23143
23254
|
var _d = __read(React.useState(appReleaseTagNames ? appReleaseTagNames : []), 2), existingTags = _d[0], setExistingTags = _d[1];
|
|
@@ -23151,6 +23262,7 @@ var ImageTagsContainer = function (_a) {
|
|
|
23151
23262
|
var _m = __read(React.useState([]), 2), hardDeleteTags = _m[0], setHardDeleteTags = _m[1];
|
|
23152
23263
|
var _o = __read(React.useState(''), 2), descriptionValidationMessage = _o[0], setDescriptionValidationMessage = _o[1];
|
|
23153
23264
|
var _p = __read(React.useState(''), 2), textInput = _p[0], setTextInput = _p[1];
|
|
23265
|
+
var _q = __read(React.useState(false), 2), loading = _q[0], setLoading = _q[1];
|
|
23154
23266
|
React.useEffect(function () {
|
|
23155
23267
|
reInitState();
|
|
23156
23268
|
}, [imageReleaseTags, imageComment, tagsEditable]);
|
|
@@ -23298,7 +23410,8 @@ var ImageTagsContainer = function (_a) {
|
|
|
23298
23410
|
hardDeleteTags: hardDeleteTags,
|
|
23299
23411
|
};
|
|
23300
23412
|
// set loading state true
|
|
23301
|
-
|
|
23413
|
+
setLoading(true);
|
|
23414
|
+
setImageTags(payload, ciPipelineId !== null && ciPipelineId !== void 0 ? ciPipelineId : 0, artifactId)
|
|
23302
23415
|
.then(function (res) {
|
|
23303
23416
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
23304
23417
|
var tags = (_b = (_a = res.result) === null || _a === void 0 ? void 0 : _a.imageReleaseTags) === null || _b === void 0 ? void 0 : _b.map(function (tag) { return ({
|
|
@@ -23337,6 +23450,9 @@ var ImageTagsContainer = function (_a) {
|
|
|
23337
23450
|
else {
|
|
23338
23451
|
showError(err);
|
|
23339
23452
|
}
|
|
23453
|
+
})
|
|
23454
|
+
.finally(function () {
|
|
23455
|
+
setLoading(false);
|
|
23340
23456
|
});
|
|
23341
23457
|
return [2 /*return*/];
|
|
23342
23458
|
});
|
|
@@ -23387,10 +23503,10 @@ var ImageTagsContainer = function (_a) {
|
|
|
23387
23503
|
}, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin, duplicateTag: tag === null || tag === void 0 ? void 0 : tag.duplicateTag, hideHardDelete: hideHardDelete }, tag.id)); }) })), showTagsWarning && (jsxRuntime.jsxs("div", __assign({ className: "cn-7 mb-8 flex left" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "form__icon--info icon-dim-16 mr-2" }), "Tags cannot be edited/removed later"] }))), jsxRuntime.jsx("div", __assign({ className: "cn-7 mt-12" }, { children: "Comment" })), jsxRuntime.jsx("div", __assign({ className: "flex left flex-wrap dc__gap-8 w-100 mt-6 mb-12", "data-testid": "add-image-comment-text-area" }, { children: jsxRuntime.jsx("textarea", { value: newDescription, onChange: handleDescriptionChange, className: "flex left flex-wrap dc__gap-8 dc__description-textarea fs-13", style: { height: '90px !important' } }) })), descriptionValidationMessage !== '' && (jsxRuntime.jsxs("div", __assign({ className: "flex left" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), jsxRuntime.jsx("div", __assign({ className: "form__error" }, { children: descriptionValidationMessage }))] }))), jsxRuntime.jsxs("div", __assign({ className: "w-100 flex right mt-12" }, { children: [jsxRuntime.jsx("button", __assign({ className: "cta flex cancel h-32 lh-32-imp", type: "button", onClick: function (e) {
|
|
23388
23504
|
stopPropagation(e);
|
|
23389
23505
|
handleCancel();
|
|
23390
|
-
} }, { children: "Cancel" })), jsxRuntime.jsx("button", __assign({ className: "cta flex h-32 lh-32-imp ml-12", "data-testid": "save-tags-button", type: "button", onClick: function (e) {
|
|
23506
|
+
}, disabled: loading }, { children: "Cancel" })), jsxRuntime.jsx("button", __assign({ className: "cta flex h-32 lh-32-imp ml-12", "data-testid": "save-tags-button", type: "button", onClick: function (e) {
|
|
23391
23507
|
stopPropagation(e);
|
|
23392
23508
|
onClickSave();
|
|
23393
|
-
} }, { children:
|
|
23509
|
+
}, disabled: loading }, { children: loading ? jsxRuntime.jsx(Progressing, {}) : 'Save' }))] }))] }))) : (jsxRuntime.jsxs("div", __assign({ className: "top br-4 bcn-0 image-tags-container flexbox" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex left image-tag-left-border w-100 mt-8 mb-8 pr-10 pl-10", "data-testid": "image-tags-container-hover" }, { children: jsxRuntime.jsxs("div", __assign({ className: 'w-100' }, { children: [initialDescription && jsxRuntime.jsx("div", __assign({ className: "mb-6 fs-13 lh-20 dc__word-break-all" }, { children: initialDescription })), jsxRuntime.jsx("div", __assign({ className: "flex-wrap flex left" }, { children: initialTags === null || initialTags === void 0 ? void 0 : initialTags.map(function (tag, index) { return (jsxRuntime.jsx(ImageTagButton, { text: tag === null || tag === void 0 ? void 0 : tag.tagName, isSoftDeleted: tag === null || tag === void 0 ? void 0 : tag.deleted, isEditing: isEditing, onSoftDeleteClick: function (e) {
|
|
23394
23510
|
stopPropagation(e);
|
|
23395
23511
|
handleTagSoftDelete(index);
|
|
23396
23512
|
}, onHardDeleteClick: function (e) {
|
|
@@ -23482,9 +23598,9 @@ function useDebouncedEffect(callback, delay, deps) {
|
|
|
23482
23598
|
}
|
|
23483
23599
|
|
|
23484
23600
|
var _g;
|
|
23485
|
-
function _extends$
|
|
23601
|
+
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); }
|
|
23486
23602
|
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
23487
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23603
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
23488
23604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23489
23605
|
width: "1em",
|
|
23490
23606
|
height: "1em",
|
|
@@ -23552,15 +23668,15 @@ function Grid(_a) {
|
|
|
23552
23668
|
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
|
|
23553
23669
|
}
|
|
23554
23670
|
|
|
23555
|
-
var _path
|
|
23556
|
-
function _extends
|
|
23671
|
+
var _path;
|
|
23672
|
+
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); }
|
|
23557
23673
|
var SvgIcCopy = function SvgIcCopy(props) {
|
|
23558
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
23674
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
23559
23675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23560
23676
|
width: "1em",
|
|
23561
23677
|
height: "1em",
|
|
23562
23678
|
viewBox: "0 0 20 20"
|
|
23563
|
-
}, props), _path
|
|
23679
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23564
23680
|
fill: "#767D84",
|
|
23565
23681
|
fillRule: "evenodd",
|
|
23566
23682
|
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"
|
|
@@ -23728,229 +23844,12 @@ function AppStatus(_a) {
|
|
|
23728
23844
|
return hideStatusMessage ? (iconClass || isVirtualEnv ? (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: false, placement: "top", content: textContent }, { children: jsxRuntime.jsx("div", __assign({ className: "flex" }, { children: renderIcon() })) }))) : (renderIcon())) : (jsxRuntime.jsxs("div", __assign({ className: "flex left" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex mr-6" }, { children: renderIcon() })), jsxRuntime.jsx("p", __assign({ "data-testid": "".concat(status, "-app-status"), className: "dc__truncate-text dc__first-letter-capitalize cn-6 m-0" }, { children: textContent }))] })));
|
|
23729
23845
|
}
|
|
23730
23846
|
|
|
23731
|
-
var FieldRowWithLabel = function (_a) {
|
|
23732
|
-
var showLabel = _a.showLabel, label = _a.label, required = _a.required, children = _a.children, id = _a.id, _b = _a.shouldAlignCenter, shouldAlignCenter = _b === void 0 ? true : _b;
|
|
23733
|
-
return (jsxRuntime.jsxs("div", __assign({ className: showLabel
|
|
23734
|
-
? "display-grid dc__gap-12 rjsf-form-template__field ".concat(shouldAlignCenter ? 'flex-align-center' : '')
|
|
23735
|
-
: '' }, { children: [showLabel && (jsxRuntime.jsx("label", __assign({ className: "cn-7 fs-13 lh-32 fw-4 flexbox mb-0", htmlFor: id }, { children: !!label && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", __assign({ className: "dc__ellipsis-right" }, { children: label })), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })) }))), children] })));
|
|
23736
|
-
};
|
|
23737
|
-
|
|
23738
|
-
var ActionButton = function (_a) {
|
|
23739
|
-
var canAdd = _a.canAdd, onAddClick = _a.onAddClick, disabled = _a.disabled, readonly = _a.readonly, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23740
|
-
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23741
|
-
return (canAdd && (jsxRuntime.jsx(AddButton, { onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry })));
|
|
23742
|
-
};
|
|
23743
|
-
var ArrayFieldTemplate = function (_a) {
|
|
23744
|
-
var canAdd = _a.canAdd, className = _a.className, disabled = _a.disabled, idSchema = _a.idSchema, uiSchema = _a.uiSchema, items = _a.items, onAddClick = _a.onAddClick, readonly = _a.readonly, registry = _a.registry, required = _a.required, title = _a.title;
|
|
23745
|
-
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23746
|
-
var ArrayFieldItemTemplate = utils.getTemplate('ArrayFieldItemTemplate', registry, uiOptions);
|
|
23747
|
-
var label = uiOptions.title || title;
|
|
23748
|
-
return (jsxRuntime.jsx("fieldset", __assign({ className: className, id: idSchema.$id }, { children: items.length ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.map(function (_a, index) {
|
|
23749
|
-
var key = _a.key, itemProps = __rest(_a, ["key"]);
|
|
23750
|
-
// Show the title as the label for the first field
|
|
23751
|
-
var children = __assign(__assign({}, itemProps.children), { props: __assign(__assign({}, itemProps.children.props), { name: index === 0 ? label : '' }) });
|
|
23752
|
-
return (jsxRuntime.jsx(ArrayFieldItemTemplate, __assign({}, itemProps, { children: children }), key));
|
|
23753
|
-
}), jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry })] })) : (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, required: required, showLabel: true, id: idSchema.$id }, { children: jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry }) }))) })));
|
|
23754
|
-
};
|
|
23755
|
-
|
|
23756
|
-
var ArrayFieldItemTemplate = function (_a) {
|
|
23757
|
-
var children = _a.children; _a.className; var disabled = _a.disabled, hasToolbar = _a.hasToolbar, hasRemove = _a.hasRemove, index = _a.index, onDropIndexClick = _a.onDropIndexClick, readonly = _a.readonly, registry = _a.registry, uiSchema = _a.uiSchema;
|
|
23758
|
-
var RemoveButton = registry.templates.ButtonTemplates.RemoveButton;
|
|
23759
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "display-grid rjsf-form-template__array-field-item flex-align-center dc__gap-8 mb-12" }, { children: [children, hasToolbar && hasRemove && (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropIndexClick(index), uiSchema: uiSchema, registry: registry }) }))] })));
|
|
23760
|
-
};
|
|
23761
|
-
|
|
23762
|
-
var PLACEHOLDERS = {
|
|
23763
|
-
SELECT: 'Please select an option',
|
|
23764
|
-
INPUT: 'Please enter an input',
|
|
23765
|
-
OBJECT_KEY: 'Please enter a value for the key',
|
|
23766
|
-
};
|
|
23767
|
-
|
|
23768
|
-
var BaseInputTemplate = RJSF.getDefaultRegistry().templates.BaseInputTemplate;
|
|
23769
|
-
var BaseInput = function (_a) {
|
|
23770
|
-
var placeholder = _a.placeholder, props = __rest(_a, ["placeholder"]);
|
|
23771
|
-
return (jsxRuntime.jsx(BaseInputTemplate, __assign({ placeholder: placeholder || PLACEHOLDERS.INPUT }, props, { className: "form__input cn-9 fs-13 lh-20 fw-4" })));
|
|
23772
|
-
};
|
|
23773
|
-
|
|
23774
|
-
var AddButton = function (_a) {
|
|
23775
|
-
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23776
|
-
return (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsxs("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor", title: "Add" }, { children: [jsxRuntime.jsx(SvgIcAdd, { className: "icon-dim-16 fcb-5" }), jsxRuntime.jsx("span", __assign({ className: "cb-5 fs-13 lh-20" }, { children: "Add" }))] })) })));
|
|
23777
|
-
};
|
|
23778
|
-
|
|
23779
|
-
var RemoveButton = function (_a) {
|
|
23780
|
-
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23781
|
-
return (jsxRuntime.jsx("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-16 fcr-5" }) })));
|
|
23782
|
-
};
|
|
23783
|
-
|
|
23784
|
-
var SubmitButton = function (_a) {
|
|
23785
|
-
var uiSchema = _a.uiSchema;
|
|
23786
|
-
var _b = utils.getSubmitButtonOptions(uiSchema), submitText = _b.submitText, norender = _b.norender, _c = _b.props, submitButtonProps = _c === void 0 ? {} : _c;
|
|
23787
|
-
return norender ? null : (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit" }, submitButtonProps, { className: "cta ".concat(submitButtonProps.className || '') }, { children: submitText })) })));
|
|
23788
|
-
};
|
|
23789
|
-
|
|
23790
|
-
var Description = function (_a) {
|
|
23791
|
-
var id = _a.id, description = _a.description;
|
|
23792
|
-
return description && (jsxRuntime.jsxs("div", __assign({ id: id, className: "flex left flex-align-center mt-4 dc__gap-4" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "icon-dim-16 mw-16 info-icon-n5" }), jsxRuntime.jsx("span", __assign({ className: "cn-7 fs-11 fw-4 dc__ellipsis-right" }, { children: description }))] })));
|
|
23793
|
-
};
|
|
23794
|
-
|
|
23795
|
-
var Field$1 = function (props) {
|
|
23796
|
-
var id = props.id, label = props.label, children = props.children, errors = props.errors, hidden = props.hidden, required = props.required, displayLabel = props.displayLabel, registry = props.registry, uiSchema = props.uiSchema, classNames = props.classNames, schema = props.schema, description = props.description;
|
|
23797
|
-
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23798
|
-
var WrapIfAdditionalTemplate = utils.getTemplate('WrapIfAdditionalTemplate', registry, uiOptions);
|
|
23799
|
-
// Object type fields have additional properties for key/value pairs
|
|
23800
|
-
var hasAdditionalProperties = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23801
|
-
// Label is not displayed for boolean fields by default and hide for object type fields
|
|
23802
|
-
var showLabel = (displayLabel || schema.type === 'boolean') && !hasAdditionalProperties;
|
|
23803
|
-
return hidden ? (jsxRuntime.jsx("div", __assign({ className: "hidden" }, { children: children }))) : (jsxRuntime.jsxs("div", __assign({ className: "".concat(classNames, " mb-12") }, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, showLabel: showLabel, id: id, required: required }, { children: jsxRuntime.jsx(WrapIfAdditionalTemplate, __assign({}, props, { children: children })) })), description, errors] })));
|
|
23804
|
-
};
|
|
23805
|
-
|
|
23806
|
-
var FieldErrorTemplate = function (_a) {
|
|
23807
|
-
var _b = _a.errors, errors = _b === void 0 ? [] : _b, idSchema = _a.idSchema;
|
|
23808
|
-
var id = utils.errorId(idSchema);
|
|
23809
|
-
return (errors.length > 0 && (jsxRuntime.jsx("span", __assign({ id: id }, { children: errors
|
|
23810
|
-
.filter(function (elem) { return !!elem; })
|
|
23811
|
-
.map(function (error, index) {
|
|
23812
|
-
return (jsxRuntime.jsxs("span", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] }), index));
|
|
23813
|
-
}) }))));
|
|
23814
|
-
};
|
|
23815
|
-
|
|
23816
|
-
var Field = function (_a) {
|
|
23817
|
-
var disabled = _a.disabled, formData = _a.formData, idSchema = _a.idSchema, onAddClick = _a.onAddClick, properties = _a.properties, readonly = _a.readonly, registry = _a.registry, required = _a.required, schema = _a.schema, title = _a.title, uiSchema = _a.uiSchema;
|
|
23818
|
-
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23819
|
-
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23820
|
-
var ActionButton = utils.canExpand(schema, uiSchema, formData) && (jsxRuntime.jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }));
|
|
23821
|
-
var Properties = properties.map(function (prop) { return prop.content; });
|
|
23822
|
-
if (hasAdditionalProperties) {
|
|
23823
|
-
if (properties.length) {
|
|
23824
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id, shouldAlignCenter: false }, { children: jsxRuntime.jsx("div", { children: Properties }) })), ActionButton] }));
|
|
23825
|
-
}
|
|
23826
|
-
else {
|
|
23827
|
-
return (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id }, { children: ActionButton })));
|
|
23828
|
-
}
|
|
23829
|
-
}
|
|
23830
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [Properties, ActionButton] }));
|
|
23831
|
-
};
|
|
23832
|
-
var ObjectFieldTemplate = function (props) {
|
|
23833
|
-
var idSchema = props.idSchema, registry = props.registry, required = props.required, schema = props.schema, title = props.title, uiSchema = props.uiSchema;
|
|
23834
|
-
var options = utils.getUiOptions(uiSchema);
|
|
23835
|
-
var TitleFieldTemplate = utils.getTemplate('TitleFieldTemplate', registry, options);
|
|
23836
|
-
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23837
|
-
var showTitle = title && !hasAdditionalProperties;
|
|
23838
|
-
return (jsxRuntime.jsxs("fieldset", __assign({ id: idSchema.$id }, { children: [showTitle && (jsxRuntime.jsx(TitleFieldTemplate, { id: utils.titleId(idSchema), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry })), jsxRuntime.jsx(Field, __assign({}, props))] })));
|
|
23839
|
-
};
|
|
23840
|
-
|
|
23841
|
-
var TitleField = function (_a) {
|
|
23842
|
-
var id = _a.id, title = _a.title, required = _a.required;
|
|
23843
|
-
return (jsxRuntime.jsxs("legend", __assign({ className: "fs-13 fw-6 cn-9 lh-20 pb-8 dc__border-bottom en-1 mb-12", id: id }, { children: [jsxRuntime.jsx("span", { children: title }), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })));
|
|
23844
|
-
};
|
|
23845
|
-
|
|
23846
|
-
var WrapIfAdditionalTemplate = function (_a) {
|
|
23847
|
-
var id = _a.id, disabled = _a.disabled, label = _a.label, onKeyChange = _a.onKeyChange, onDropPropertyClick = _a.onDropPropertyClick, readonly = _a.readonly, schema = _a.schema, children = _a.children, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23848
|
-
var templates = registry.templates;
|
|
23849
|
-
var RemoveButton = templates.ButtonTemplates.RemoveButton;
|
|
23850
|
-
var additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23851
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: additional ? (jsxRuntime.jsxs("div", __assign({ className: "rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center" }, { children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx("input", { type: "text", className: "form__input cn-9 fs-13 lh-20 fw-4", id: "".concat(id, "-key"), onBlur: function (event) { return onKeyChange(event.target.value); }, placeholder: PLACEHOLDERS.OBJECT_KEY, defaultValue: label }) }), jsxRuntime.jsx("div", { children: children }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropPropertyClick(label), uiSchema: uiSchema, registry: registry }) })] }))) : (children) }));
|
|
23852
|
-
};
|
|
23853
|
-
|
|
23854
|
-
var Checkbox = function (_a) {
|
|
23855
|
-
var id = _a.id, onChange = _a.onChange, value = _a.value, required = _a.required, disabled = _a.disabled, readonly = _a.readonly, autofocus = _a.autofocus, onBlur = _a.onBlur, onFocus = _a.onFocus;
|
|
23856
|
-
var handleEvent = function (e, type) {
|
|
23857
|
-
var _a = e.target, id = _a.id, checked = _a.checked;
|
|
23858
|
-
if (type === 'blur') {
|
|
23859
|
-
onBlur(id, checked);
|
|
23860
|
-
}
|
|
23861
|
-
else if (type === 'focus') {
|
|
23862
|
-
onFocus(id, checked);
|
|
23863
|
-
}
|
|
23864
|
-
};
|
|
23865
|
-
var isSelected = typeof value === 'undefined' ? false : value;
|
|
23866
|
-
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Toggle, { selected: isSelected, onSelect: onChange, id: id, name: id, required: required, disabled: disabled || readonly, autoFocus: autofocus, rootClassName: "w-32 mb-0 dc__height-inherit", onBlur: function (e) { return handleEvent(e, 'blur'); }, onFocus: function (e) { return handleEvent(e, 'focus'); } }), jsxRuntime.jsx("span", __assign({ className: "dc__capitalize ml-8" }, { children: isSelected.toString() }))] }));
|
|
23867
|
-
};
|
|
23868
|
-
|
|
23869
|
-
/**
|
|
23870
|
-
* Override for the TranslatableString from RJSF
|
|
23871
|
-
*/
|
|
23872
|
-
var translateString = function (stringToTranslate, params) {
|
|
23873
|
-
switch (stringToTranslate) {
|
|
23874
|
-
case utils.TranslatableString.NewStringDefault:
|
|
23875
|
-
// Use an empty string for the new additionalProperties string default value
|
|
23876
|
-
return '';
|
|
23877
|
-
default:
|
|
23878
|
-
return utils.englishStringTranslator(stringToTranslate, params);
|
|
23879
|
-
}
|
|
23880
|
-
};
|
|
23881
|
-
var getCommonSelectStyle = function (styleOverrides) {
|
|
23882
|
-
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
23883
|
-
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);
|
|
23884
|
-
};
|
|
23885
|
-
|
|
23886
|
-
var _path;
|
|
23887
|
-
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); }
|
|
23888
|
-
var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
23889
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
23890
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23891
|
-
width: "1em",
|
|
23892
|
-
height: "1em",
|
|
23893
|
-
viewBox: "0 0 24 24"
|
|
23894
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23895
|
-
fill: "#999",
|
|
23896
|
-
className: "ic-chevron-down_svg__fill-color",
|
|
23897
|
-
fillRule: "nonzero",
|
|
23898
|
-
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
23899
|
-
})));
|
|
23900
|
-
};
|
|
23901
|
-
|
|
23902
|
-
var commonStyles = getCommonSelectStyle();
|
|
23903
|
-
var DropdownIndicator = function (props) { return (jsxRuntime.jsx(components.DropdownIndicator, __assign({}, props, { children: jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }))); };
|
|
23904
|
-
var Select = function (props) {
|
|
23905
|
-
var id = props.id, _a = props.multiple, multiple = _a === void 0 ? false : _a, options = props.options, value = props.value, disabled = props.disabled, readonly = props.readonly, _b = props.autofocus, autofocus = _b === void 0 ? false : _b, onChange = props.onChange, onBlur = props.onBlur, onFocus = props.onFocus, placeholder = props.placeholder;
|
|
23906
|
-
var _c = options.enumOptions, selectOptions = _c === void 0 ? [] : _c;
|
|
23907
|
-
var emptyValue = multiple ? [] : '';
|
|
23908
|
-
var handleChange = function (option) {
|
|
23909
|
-
onChange(multiple ? option.map(function (o) { return o.value; }) : option.value);
|
|
23910
|
-
};
|
|
23911
|
-
var getOption = function (value) {
|
|
23912
|
-
return multiple
|
|
23913
|
-
? selectOptions.filter(function (option) { return value.includes(option.value); })
|
|
23914
|
-
: selectOptions.find(function (option) { return option.value === value; });
|
|
23915
|
-
};
|
|
23916
|
-
return (jsxRuntime.jsx(ReactSelect, { id: id, name: id, isMulti: multiple, value: typeof value === 'undefined' ? emptyValue : getOption(value), autoFocus: autofocus, onChange: handleChange, options: selectOptions, onBlur: function () { return onBlur(id, value); }, onFocus: function () { return onFocus(id, value); }, placeholder: placeholder || PLACEHOLDERS.SELECT, isDisabled: disabled || readonly, styles: __assign(__assign({}, commonStyles), { control: function (base) { return (__assign(__assign(__assign({}, base), commonStyles.control), { backgroundColor: 'var(--N50)' })); } }), components: {
|
|
23917
|
-
IndicatorSeparator: null,
|
|
23918
|
-
DropdownIndicator: DropdownIndicator,
|
|
23919
|
-
}, menuPlacement: "auto", menuPortalTarget: document.body }));
|
|
23920
|
-
};
|
|
23921
|
-
|
|
23922
|
-
var widgets = {
|
|
23923
|
-
CheckboxWidget: Checkbox,
|
|
23924
|
-
SelectWidget: Select,
|
|
23925
|
-
};
|
|
23926
|
-
var templates = {
|
|
23927
|
-
ArrayFieldItemTemplate: ArrayFieldItemTemplate,
|
|
23928
|
-
ArrayFieldTemplate: ArrayFieldTemplate,
|
|
23929
|
-
BaseInputTemplate: BaseInput,
|
|
23930
|
-
ButtonTemplates: { AddButton: AddButton, RemoveButton: RemoveButton, SubmitButton: SubmitButton },
|
|
23931
|
-
DescriptionFieldTemplate: Description,
|
|
23932
|
-
FieldTemplate: Field$1,
|
|
23933
|
-
FieldErrorTemplate: FieldErrorTemplate,
|
|
23934
|
-
ObjectFieldTemplate: ObjectFieldTemplate,
|
|
23935
|
-
TitleFieldTemplate: TitleField,
|
|
23936
|
-
WrapIfAdditionalTemplate: WrapIfAdditionalTemplate,
|
|
23937
|
-
};
|
|
23938
|
-
|
|
23939
|
-
var css_248z = ".rjsf-form-template__field {\n grid-template-columns: 250px 1fr;\n}\n.rjsf-form-template__additional-fields {\n grid-template-columns: 1fr 1fr minmax(20px, auto);\n}\n.rjsf-form-template__array-field-item {\n grid-template-columns: 1fr auto;\n}\n.rjsf-form-template__array-field-item :first-child {\n margin: 0;\n}";
|
|
23940
|
-
styleInject(css_248z);
|
|
23941
|
-
|
|
23942
|
-
// Need to use this way because the default import was not working as expected
|
|
23943
|
-
// The default import resolves to an object intead of a function
|
|
23944
|
-
var Form = RJSF.default;
|
|
23945
|
-
var validator = RJSFValidator.default;
|
|
23946
|
-
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 }))); };
|
|
23947
|
-
|
|
23948
23847
|
exports.AppStatus = AppStatus;
|
|
23949
23848
|
exports.BreadCrumb = BreadCrumb;
|
|
23950
23849
|
exports.BreadcrumbStore = Store;
|
|
23951
23850
|
exports.BuildStageVariable = BuildStageVariable;
|
|
23952
23851
|
exports.CDModalTab = CDModalTab;
|
|
23953
|
-
exports.Checkbox = Checkbox
|
|
23852
|
+
exports.Checkbox = Checkbox;
|
|
23954
23853
|
exports.ClearIndicator = ClearIndicator;
|
|
23955
23854
|
exports.ClipboardButton = ClipboardButton;
|
|
23956
23855
|
exports.ConditionalWrap = ConditionalWrap;
|
|
@@ -23989,7 +23888,6 @@ exports.PopupMenu = PopupMenu;
|
|
|
23989
23888
|
exports.Progressing = Progressing;
|
|
23990
23889
|
exports.PropagateTagInfo = PropagateTagInfo;
|
|
23991
23890
|
exports.REGISTRY_TYPE_MAP = REGISTRY_TYPE_MAP;
|
|
23992
|
-
exports.RJSFForm = RJSFForm;
|
|
23993
23891
|
exports.ROUTES = ROUTES;
|
|
23994
23892
|
exports.RadioGroup = RadioGroup$1;
|
|
23995
23893
|
exports.RadioGroupItem = RadioGroupItem;
|
|
@@ -24022,9 +23920,9 @@ exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
|
|
|
24022
23920
|
exports.copyToClipboard = copyToClipboard;
|
|
24023
23921
|
exports.createGitCommitUrl = createGitCommitUrl;
|
|
24024
23922
|
exports.extractImage = extractImage;
|
|
23923
|
+
exports.genericCDMaterialsService = genericCDMaterialsService;
|
|
24025
23924
|
exports.get = get;
|
|
24026
23925
|
exports.getAlphabetIcon = getAlphabetIcon;
|
|
24027
|
-
exports.getCDMaterials = getCDMaterials;
|
|
24028
23926
|
exports.getCookie = getCookie;
|
|
24029
23927
|
exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
|
|
24030
23928
|
exports.getLoginInfo = getLoginInfo;
|