@devtron-labs/devtron-fe-common-lib 0.0.40-beta-2 → 0.0.40-beta-3
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/DebouncedSearch/DebouncedSearch.d.ts +1 -1
- package/dist/Common/DebouncedSearch/Types.d.ts +0 -1
- package/dist/Common/Helper.d.ts +7 -0
- package/dist/Common/RJSF/Form.d.ts +4 -0
- package/dist/Common/RJSF/common/FieldRow.d.ts +3 -0
- package/dist/Common/RJSF/common/types.d.ts +8 -0
- package/dist/Common/RJSF/config.d.ts +4 -0
- package/dist/Common/RJSF/constants.d.ts +5 -0
- package/dist/Common/RJSF/index.d.ts +2 -0
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/BaseInput.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +3 -0
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -0
- package/dist/Common/RJSF/templates/Description.d.ts +3 -0
- package/dist/Common/RJSF/templates/Field.d.ts +3 -0
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +3 -0
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +3 -0
- package/dist/Common/RJSF/templates/index.d.ts +10 -0
- package/dist/Common/RJSF/types.d.ts +3 -0
- package/dist/Common/RJSF/utils.d.ts +14 -0
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +3 -0
- package/dist/Common/RJSF/widgets/Select.d.ts +3 -0
- package/dist/Common/RJSF/widgets/index.d.ts +2 -0
- package/dist/Common/Types.d.ts +0 -1
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +394 -151
- package/package.json +4 -1
- package/src/Assets/Icon/ic-chevron-down.svg +5 -0
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +1 -2
- package/src/Common/DebouncedSearch/Types.ts +0 -1
- package/src/Common/Helper.tsx +17 -0
- package/src/Common/RJSF/Form.tsx +29 -0
- package/src/Common/RJSF/common/FieldRow.tsx +31 -0
- package/src/Common/RJSF/common/types.ts +9 -0
- package/src/Common/RJSF/config.ts +37 -0
- package/src/Common/RJSF/constants.ts +5 -0
- package/src/Common/RJSF/index.ts +2 -0
- package/src/Common/RJSF/rjsfForm.scss +17 -0
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +33 -0
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +77 -0
- package/src/Common/RJSF/templates/BaseInput.tsx +16 -0
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +18 -0
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +10 -0
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +18 -0
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +3 -0
- package/src/Common/RJSF/templates/Description.tsx +12 -0
- package/src/Common/RJSF/templates/Field.tsx +30 -0
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +25 -0
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +96 -0
- package/src/Common/RJSF/templates/TitleField.tsx +9 -0
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +51 -0
- package/src/Common/RJSF/templates/index.ts +10 -0
- package/src/Common/RJSF/types.ts +4 -0
- package/src/Common/RJSF/utils.ts +59 -0
- package/src/Common/RJSF/widgets/Checkbox.tsx +44 -0
- package/src/Common/RJSF/widgets/Select.tsx +76 -0
- package/src/Common/RJSF/widgets/index.ts +2 -0
- package/src/Common/Types.ts +0 -1
- package/src/Common/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -4,6 +4,9 @@ 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');
|
|
7
10
|
|
|
8
11
|
function _interopNamespaceDefault(e) {
|
|
9
12
|
var n = Object.create(null);
|
|
@@ -712,13 +715,13 @@ function styleInject(css, ref) {
|
|
|
712
715
|
}
|
|
713
716
|
}
|
|
714
717
|
|
|
715
|
-
var css_248z$
|
|
716
|
-
styleInject(css_248z$
|
|
718
|
+
var css_248z$7 = ".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}";
|
|
719
|
+
styleInject(css_248z$7);
|
|
717
720
|
|
|
718
721
|
var _g$6;
|
|
719
|
-
function _extends$
|
|
722
|
+
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
720
723
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
721
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
724
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
722
725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
723
726
|
viewBox: "0 0 24 24",
|
|
724
727
|
width: "1em",
|
|
@@ -770,8 +773,8 @@ EmptyState.Loading = Loading;
|
|
|
770
773
|
|
|
771
774
|
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}
|
|
772
775
|
|
|
773
|
-
function _extends$
|
|
774
|
-
_extends$
|
|
776
|
+
function _extends$k() {
|
|
777
|
+
_extends$k = Object.assign || function (target) {
|
|
775
778
|
for (var i = 1; i < arguments.length; i++) {
|
|
776
779
|
var source = arguments[i];
|
|
777
780
|
|
|
@@ -785,7 +788,7 @@ function _extends$j() {
|
|
|
785
788
|
return target;
|
|
786
789
|
};
|
|
787
790
|
|
|
788
|
-
return _extends$
|
|
791
|
+
return _extends$k.apply(this, arguments);
|
|
789
792
|
}
|
|
790
793
|
|
|
791
794
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1511,7 +1514,7 @@ function ProgressBar(_ref) {
|
|
|
1511
1514
|
isIn = _ref.isIn,
|
|
1512
1515
|
theme = _ref.theme;
|
|
1513
1516
|
|
|
1514
|
-
var style = _extends$
|
|
1517
|
+
var style = _extends$k({}, userStyle, {
|
|
1515
1518
|
animationDuration: delay + "ms",
|
|
1516
1519
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1517
1520
|
opacity: hide ? 0 : 1
|
|
@@ -1788,9 +1791,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1788
1791
|
,
|
|
1789
1792
|
id: containerId
|
|
1790
1793
|
}, getToastToRender(function (position, toastList) {
|
|
1791
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1794
|
+
var containerStyle = !toastList.length ? _extends$k({}, style, {
|
|
1792
1795
|
pointerEvents: 'none'
|
|
1793
|
-
}) : _extends$
|
|
1796
|
+
}) : _extends$k({}, style);
|
|
1794
1797
|
return React.createElement("div", {
|
|
1795
1798
|
className: getClassName(position),
|
|
1796
1799
|
style: containerStyle,
|
|
@@ -1897,7 +1900,7 @@ function dispatchToast(content, options) {
|
|
|
1897
1900
|
|
|
1898
1901
|
|
|
1899
1902
|
function mergeOptions(type, options) {
|
|
1900
|
-
return _extends$
|
|
1903
|
+
return _extends$k({}, options, {
|
|
1901
1904
|
type: options && options.type || type,
|
|
1902
1905
|
toastId: getToastId(options)
|
|
1903
1906
|
});
|
|
@@ -1914,7 +1917,7 @@ function toast(content, options) {
|
|
|
1914
1917
|
}
|
|
1915
1918
|
|
|
1916
1919
|
toast.loading = function (content, options) {
|
|
1917
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1920
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$k({
|
|
1918
1921
|
isLoading: true,
|
|
1919
1922
|
autoClose: false,
|
|
1920
1923
|
closeOnClick: false,
|
|
@@ -1930,7 +1933,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1930
1933
|
var id;
|
|
1931
1934
|
|
|
1932
1935
|
if (pending) {
|
|
1933
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1936
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$k({}, options, pending));
|
|
1934
1937
|
}
|
|
1935
1938
|
|
|
1936
1939
|
var resetParams = {
|
|
@@ -1949,7 +1952,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1949
1952
|
return;
|
|
1950
1953
|
}
|
|
1951
1954
|
|
|
1952
|
-
var baseParams = _extends$
|
|
1955
|
+
var baseParams = _extends$k({
|
|
1953
1956
|
type: type
|
|
1954
1957
|
}, resetParams, options, {
|
|
1955
1958
|
data: result
|
|
@@ -1960,10 +1963,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1960
1963
|
} : input; // if the id is set we know that it's an update
|
|
1961
1964
|
|
|
1962
1965
|
if (id) {
|
|
1963
|
-
toast.update(id, _extends$
|
|
1966
|
+
toast.update(id, _extends$k({}, baseParams, params));
|
|
1964
1967
|
} else {
|
|
1965
1968
|
// using toast.promise without loading
|
|
1966
|
-
toast(params.render, _extends$
|
|
1969
|
+
toast(params.render, _extends$k({}, baseParams, params));
|
|
1967
1970
|
}
|
|
1968
1971
|
|
|
1969
1972
|
return result;
|
|
@@ -1987,7 +1990,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
1987
1990
|
toast.warn = toast.warning;
|
|
1988
1991
|
|
|
1989
1992
|
toast.dark = function (content, options) {
|
|
1990
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1993
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$k({
|
|
1991
1994
|
theme: 'dark'
|
|
1992
1995
|
}, options)));
|
|
1993
1996
|
};
|
|
@@ -2044,7 +2047,7 @@ toast.update = function (toastId, options) {
|
|
|
2044
2047
|
var oldOptions = toast.props,
|
|
2045
2048
|
oldContent = toast.content;
|
|
2046
2049
|
|
|
2047
|
-
var nextOptions = _extends$
|
|
2050
|
+
var nextOptions = _extends$k({}, oldOptions, options, {
|
|
2048
2051
|
toastId: options.toastId || toastId,
|
|
2049
2052
|
updateId: generateToastId()
|
|
2050
2053
|
});
|
|
@@ -9834,9 +9837,9 @@ function captureException(exception, captureContext) {
|
|
|
9834
9837
|
}
|
|
9835
9838
|
|
|
9836
9839
|
var _g$5;
|
|
9837
|
-
function _extends$
|
|
9840
|
+
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
9838
9841
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
9839
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
9842
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
9840
9843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9841
9844
|
width: "1em",
|
|
9842
9845
|
height: "1em",
|
|
@@ -10247,6 +10250,22 @@ var processDeployedTime = function (lastDeployed, isArgoInstalled) {
|
|
|
10247
10250
|
else {
|
|
10248
10251
|
return isArgoInstalled ? '' : 'Not deployed';
|
|
10249
10252
|
}
|
|
10253
|
+
};
|
|
10254
|
+
/**
|
|
10255
|
+
* Appends search parameters to the url as a query string
|
|
10256
|
+
*
|
|
10257
|
+
* @param url URL to which the search params needs to be added
|
|
10258
|
+
* @param params Object for the search parameters
|
|
10259
|
+
*/
|
|
10260
|
+
var getUrlWithSearchParams = function (url, params) {
|
|
10261
|
+
var searchParams = new URLSearchParams();
|
|
10262
|
+
Object.keys(params).forEach(function (key) {
|
|
10263
|
+
if (params[key]) {
|
|
10264
|
+
searchParams.append(key, params[key]);
|
|
10265
|
+
}
|
|
10266
|
+
});
|
|
10267
|
+
var queryString = searchParams.toString();
|
|
10268
|
+
return url + (queryString ? "?".concat(queryString) : '');
|
|
10250
10269
|
};
|
|
10251
10270
|
|
|
10252
10271
|
function Progressing(_a) {
|
|
@@ -10299,8 +10318,8 @@ var VisibleModal = /** @class */ (function (_super) {
|
|
|
10299
10318
|
return VisibleModal;
|
|
10300
10319
|
}(React.Component));
|
|
10301
10320
|
|
|
10302
|
-
var css_248z$
|
|
10303
|
-
styleInject(css_248z$
|
|
10321
|
+
var css_248z$6 = ".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}";
|
|
10322
|
+
styleInject(css_248z$6);
|
|
10304
10323
|
|
|
10305
10324
|
var Drawer = function (_a) {
|
|
10306
10325
|
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;
|
|
@@ -10374,16 +10393,16 @@ var Modal = function (_a) {
|
|
|
10374
10393
|
}, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
|
|
10375
10394
|
};
|
|
10376
10395
|
|
|
10377
|
-
var _path$
|
|
10378
|
-
function _extends$
|
|
10396
|
+
var _path$c;
|
|
10397
|
+
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); }
|
|
10379
10398
|
var SvgIcCross = function SvgIcCross(props) {
|
|
10380
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10399
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
10381
10400
|
width: "1em",
|
|
10382
10401
|
height: "1em",
|
|
10383
10402
|
viewBox: "0 0 24 24",
|
|
10384
10403
|
fill: "none",
|
|
10385
10404
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10386
|
-
}, props), _path$
|
|
10405
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10387
10406
|
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",
|
|
10388
10407
|
fill: "#596168"
|
|
10389
10408
|
})));
|
|
@@ -14682,38 +14701,38 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
14682
14701
|
|
|
14683
14702
|
var Tippy = index;
|
|
14684
14703
|
|
|
14685
|
-
var _path$
|
|
14686
|
-
function _extends$
|
|
14704
|
+
var _path$b;
|
|
14705
|
+
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); }
|
|
14687
14706
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
14688
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14707
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
14689
14708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14690
14709
|
width: "1em",
|
|
14691
14710
|
height: "1em",
|
|
14692
14711
|
viewBox: "0 0 24 24"
|
|
14693
|
-
}, props), _path$
|
|
14712
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14694
14713
|
fill: "#767D84",
|
|
14695
14714
|
fillRule: "evenodd",
|
|
14696
14715
|
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"
|
|
14697
14716
|
})));
|
|
14698
14717
|
};
|
|
14699
14718
|
|
|
14700
|
-
var _path$
|
|
14701
|
-
function _extends$
|
|
14719
|
+
var _path$a;
|
|
14720
|
+
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); }
|
|
14702
14721
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
14703
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14722
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
14704
14723
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14705
14724
|
viewBox: "0 0 17 16",
|
|
14706
14725
|
width: "1em",
|
|
14707
14726
|
height: "1em"
|
|
14708
|
-
}, props), _path$
|
|
14727
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14709
14728
|
fill: "#767D84",
|
|
14710
14729
|
fillRule: "evenodd",
|
|
14711
14730
|
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"
|
|
14712
14731
|
})));
|
|
14713
14732
|
};
|
|
14714
14733
|
|
|
14715
|
-
var css_248z$
|
|
14716
|
-
styleInject(css_248z$
|
|
14734
|
+
var css_248z$5 = ".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)}";
|
|
14735
|
+
styleInject(css_248z$5);
|
|
14717
14736
|
|
|
14718
14737
|
// This component will handle some of the new tippy designs and interactions
|
|
14719
14738
|
// So this can be updated to support further for new features or interactions
|
|
@@ -14757,16 +14776,16 @@ function TippyCustomized(props) {
|
|
|
14757
14776
|
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 })));
|
|
14758
14777
|
}
|
|
14759
14778
|
|
|
14760
|
-
var _path$
|
|
14761
|
-
function _extends$
|
|
14779
|
+
var _path$9, _circle, _path2$1;
|
|
14780
|
+
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); }
|
|
14762
14781
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
14763
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14782
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
14764
14783
|
width: "1em",
|
|
14765
14784
|
height: "1em",
|
|
14766
14785
|
viewBox: "0 0 20 20",
|
|
14767
14786
|
fill: "none",
|
|
14768
14787
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14769
|
-
}, props), _path$
|
|
14788
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14770
14789
|
d: "M10 10H3.333",
|
|
14771
14790
|
stroke: "#596168",
|
|
14772
14791
|
strokeWidth: 1.5,
|
|
@@ -14794,15 +14813,15 @@ function PropagateTagInfo(_a) {
|
|
|
14794
14813
|
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" })] })) })));
|
|
14795
14814
|
}
|
|
14796
14815
|
|
|
14797
|
-
var _path$
|
|
14798
|
-
function _extends$
|
|
14816
|
+
var _path$8;
|
|
14817
|
+
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); }
|
|
14799
14818
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
14800
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14819
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
14801
14820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14802
14821
|
width: "1em",
|
|
14803
14822
|
height: "1em",
|
|
14804
14823
|
viewBox: "0 0 20 20"
|
|
14805
|
-
}, props), _path$
|
|
14824
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14806
14825
|
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",
|
|
14807
14826
|
fill: "#06C",
|
|
14808
14827
|
fillRule: "evenodd"
|
|
@@ -15036,15 +15055,15 @@ var TagDetails = function (_a) {
|
|
|
15036
15055
|
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" }) }))] })));
|
|
15037
15056
|
};
|
|
15038
15057
|
|
|
15039
|
-
var _path$
|
|
15040
|
-
function _extends$
|
|
15058
|
+
var _path$7;
|
|
15059
|
+
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); }
|
|
15041
15060
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
15042
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15061
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
15043
15062
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15044
15063
|
width: "1em",
|
|
15045
15064
|
height: "1em",
|
|
15046
15065
|
viewBox: "0 0 24 24"
|
|
15047
|
-
}, props), _path$
|
|
15066
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15048
15067
|
className: "ic-add_svg__fill-color",
|
|
15049
15068
|
fill: "#999",
|
|
15050
15069
|
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"
|
|
@@ -15162,8 +15181,8 @@ function ForceDeleteDialog(_a) {
|
|
|
15162
15181
|
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?" })] }) })) }));
|
|
15163
15182
|
}
|
|
15164
15183
|
|
|
15165
|
-
function _extends$
|
|
15166
|
-
_extends$
|
|
15184
|
+
function _extends$c() {
|
|
15185
|
+
_extends$c = Object.assign ? Object.assign.bind() : function (target) {
|
|
15167
15186
|
for (var i = 1; i < arguments.length; i++) {
|
|
15168
15187
|
var source = arguments[i];
|
|
15169
15188
|
for (var key in source) {
|
|
@@ -15174,7 +15193,7 @@ function _extends$b() {
|
|
|
15174
15193
|
}
|
|
15175
15194
|
return target;
|
|
15176
15195
|
};
|
|
15177
|
-
return _extends$
|
|
15196
|
+
return _extends$c.apply(this, arguments);
|
|
15178
15197
|
}
|
|
15179
15198
|
|
|
15180
15199
|
/*
|
|
@@ -18715,7 +18734,7 @@ var Menu = function Menu(props) {
|
|
|
18715
18734
|
getStyles = props.getStyles,
|
|
18716
18735
|
innerRef = props.innerRef,
|
|
18717
18736
|
innerProps = props.innerProps;
|
|
18718
|
-
return jsx("div", _extends$
|
|
18737
|
+
return jsx("div", _extends$c({
|
|
18719
18738
|
css: getStyles('menu', props),
|
|
18720
18739
|
className: cx({
|
|
18721
18740
|
menu: true
|
|
@@ -18739,7 +18758,7 @@ var menuListCSS = function menuListCSS(_ref4) {
|
|
|
18739
18758
|
WebkitOverflowScrolling: 'touch'
|
|
18740
18759
|
};
|
|
18741
18760
|
};
|
|
18742
|
-
var MenuList = function MenuList(props) {
|
|
18761
|
+
var MenuList$1 = function MenuList(props) {
|
|
18743
18762
|
var children = props.children,
|
|
18744
18763
|
className = props.className,
|
|
18745
18764
|
cx = props.cx,
|
|
@@ -18747,7 +18766,7 @@ var MenuList = function MenuList(props) {
|
|
|
18747
18766
|
innerProps = props.innerProps,
|
|
18748
18767
|
innerRef = props.innerRef,
|
|
18749
18768
|
isMulti = props.isMulti;
|
|
18750
|
-
return jsx("div", _extends$
|
|
18769
|
+
return jsx("div", _extends$c({
|
|
18751
18770
|
css: getStyles('menuList', props),
|
|
18752
18771
|
className: cx({
|
|
18753
18772
|
'menu-list': true,
|
|
@@ -18778,7 +18797,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
18778
18797
|
cx = props.cx,
|
|
18779
18798
|
getStyles = props.getStyles,
|
|
18780
18799
|
innerProps = props.innerProps;
|
|
18781
|
-
return jsx("div", _extends$
|
|
18800
|
+
return jsx("div", _extends$c({
|
|
18782
18801
|
css: getStyles('noOptionsMessage', props),
|
|
18783
18802
|
className: cx({
|
|
18784
18803
|
'menu-notice': true,
|
|
@@ -18795,7 +18814,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
18795
18814
|
cx = props.cx,
|
|
18796
18815
|
getStyles = props.getStyles,
|
|
18797
18816
|
innerProps = props.innerProps;
|
|
18798
|
-
return jsx("div", _extends$
|
|
18817
|
+
return jsx("div", _extends$c({
|
|
18799
18818
|
css: getStyles('loadingMessage', props),
|
|
18800
18819
|
className: cx({
|
|
18801
18820
|
'menu-notice': true,
|
|
@@ -18883,7 +18902,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
18883
18902
|
rect: rect
|
|
18884
18903
|
}; // same wrapper element whether fixed or portalled
|
|
18885
18904
|
|
|
18886
|
-
var menuWrapper = jsx("div", _extends$
|
|
18905
|
+
var menuWrapper = jsx("div", _extends$c({
|
|
18887
18906
|
css: getStyles('menuPortal', state),
|
|
18888
18907
|
className: cx({
|
|
18889
18908
|
'menu-portal': true
|
|
@@ -18919,7 +18938,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
18919
18938
|
innerProps = props.innerProps,
|
|
18920
18939
|
isDisabled = props.isDisabled,
|
|
18921
18940
|
isRtl = props.isRtl;
|
|
18922
|
-
return jsx("div", _extends$
|
|
18941
|
+
return jsx("div", _extends$c({
|
|
18923
18942
|
css: getStyles('container', props),
|
|
18924
18943
|
className: cx({
|
|
18925
18944
|
'--is-disabled': isDisabled,
|
|
@@ -18954,7 +18973,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
18954
18973
|
isMulti = props.isMulti,
|
|
18955
18974
|
getStyles = props.getStyles,
|
|
18956
18975
|
hasValue = props.hasValue;
|
|
18957
|
-
return jsx("div", _extends$
|
|
18976
|
+
return jsx("div", _extends$c({
|
|
18958
18977
|
css: getStyles('valueContainer', props),
|
|
18959
18978
|
className: cx({
|
|
18960
18979
|
'value-container': true,
|
|
@@ -18980,7 +18999,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
18980
18999
|
cx = props.cx,
|
|
18981
19000
|
innerProps = props.innerProps,
|
|
18982
19001
|
getStyles = props.getStyles;
|
|
18983
|
-
return jsx("div", _extends$
|
|
19002
|
+
return jsx("div", _extends$c({
|
|
18984
19003
|
css: getStyles('indicatorsContainer', props),
|
|
18985
19004
|
className: cx({
|
|
18986
19005
|
indicators: true
|
|
@@ -19011,7 +19030,7 @@ var Svg = function Svg(_ref) {
|
|
|
19011
19030
|
var size = _ref.size,
|
|
19012
19031
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
19013
19032
|
|
|
19014
|
-
return jsx("svg", _extends$
|
|
19033
|
+
return jsx("svg", _extends$c({
|
|
19015
19034
|
height: size,
|
|
19016
19035
|
width: size,
|
|
19017
19036
|
viewBox: "0 0 20 20",
|
|
@@ -19022,14 +19041,14 @@ var Svg = function Svg(_ref) {
|
|
|
19022
19041
|
};
|
|
19023
19042
|
|
|
19024
19043
|
var CrossIcon = function CrossIcon(props) {
|
|
19025
|
-
return jsx(Svg, _extends$
|
|
19044
|
+
return jsx(Svg, _extends$c({
|
|
19026
19045
|
size: 20
|
|
19027
19046
|
}, props), jsx("path", {
|
|
19028
19047
|
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"
|
|
19029
19048
|
}));
|
|
19030
19049
|
};
|
|
19031
19050
|
var DownChevron = function DownChevron(props) {
|
|
19032
|
-
return jsx(Svg, _extends$
|
|
19051
|
+
return jsx(Svg, _extends$c({
|
|
19033
19052
|
size: 20
|
|
19034
19053
|
}, props), jsx("path", {
|
|
19035
19054
|
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"
|
|
@@ -19056,13 +19075,13 @@ var baseCSS = function baseCSS(_ref3) {
|
|
|
19056
19075
|
};
|
|
19057
19076
|
|
|
19058
19077
|
var dropdownIndicatorCSS = baseCSS;
|
|
19059
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
|
19078
|
+
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
19060
19079
|
var children = props.children,
|
|
19061
19080
|
className = props.className,
|
|
19062
19081
|
cx = props.cx,
|
|
19063
19082
|
getStyles = props.getStyles,
|
|
19064
19083
|
innerProps = props.innerProps;
|
|
19065
|
-
return jsx("div", _extends$
|
|
19084
|
+
return jsx("div", _extends$c({
|
|
19066
19085
|
css: getStyles('dropdownIndicator', props),
|
|
19067
19086
|
className: cx({
|
|
19068
19087
|
indicator: true,
|
|
@@ -19077,7 +19096,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
19077
19096
|
cx = props.cx,
|
|
19078
19097
|
getStyles = props.getStyles,
|
|
19079
19098
|
innerProps = props.innerProps;
|
|
19080
|
-
return jsx("div", _extends$
|
|
19099
|
+
return jsx("div", _extends$c({
|
|
19081
19100
|
css: getStyles('clearIndicator', props),
|
|
19082
19101
|
className: cx({
|
|
19083
19102
|
indicator: true,
|
|
@@ -19107,7 +19126,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
19107
19126
|
cx = props.cx,
|
|
19108
19127
|
getStyles = props.getStyles,
|
|
19109
19128
|
innerProps = props.innerProps;
|
|
19110
|
-
return jsx("span", _extends$
|
|
19129
|
+
return jsx("span", _extends$c({}, innerProps, {
|
|
19111
19130
|
css: getStyles('indicatorSeparator', props),
|
|
19112
19131
|
className: cx({
|
|
19113
19132
|
'indicator-separator': true
|
|
@@ -19162,7 +19181,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
19162
19181
|
getStyles = props.getStyles,
|
|
19163
19182
|
innerProps = props.innerProps,
|
|
19164
19183
|
isRtl = props.isRtl;
|
|
19165
|
-
return jsx("div", _extends$
|
|
19184
|
+
return jsx("div", _extends$c({
|
|
19166
19185
|
css: getStyles('loadingIndicator', props),
|
|
19167
19186
|
className: cx({
|
|
19168
19187
|
indicator: true,
|
|
@@ -19223,7 +19242,7 @@ var Control = function Control(props) {
|
|
|
19223
19242
|
innerRef = props.innerRef,
|
|
19224
19243
|
innerProps = props.innerProps,
|
|
19225
19244
|
menuIsOpen = props.menuIsOpen;
|
|
19226
|
-
return jsx("div", _extends$
|
|
19245
|
+
return jsx("div", _extends$c({
|
|
19227
19246
|
ref: innerRef,
|
|
19228
19247
|
css: getStyles('control', props),
|
|
19229
19248
|
className: cx({
|
|
@@ -19255,12 +19274,12 @@ var Group = function Group(props) {
|
|
|
19255
19274
|
label = props.label,
|
|
19256
19275
|
theme = props.theme,
|
|
19257
19276
|
selectProps = props.selectProps;
|
|
19258
|
-
return jsx("div", _extends$
|
|
19277
|
+
return jsx("div", _extends$c({
|
|
19259
19278
|
css: getStyles('group', props),
|
|
19260
19279
|
className: cx({
|
|
19261
19280
|
group: true
|
|
19262
19281
|
}, className)
|
|
19263
|
-
}, innerProps), jsx(Heading, _extends$
|
|
19282
|
+
}, innerProps), jsx(Heading, _extends$c({}, headingProps, {
|
|
19264
19283
|
selectProps: selectProps,
|
|
19265
19284
|
theme: theme,
|
|
19266
19285
|
getStyles: getStyles,
|
|
@@ -19292,7 +19311,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
19292
19311
|
_cleanCommonProps.data;
|
|
19293
19312
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
19294
19313
|
|
|
19295
|
-
return jsx("div", _extends$
|
|
19314
|
+
return jsx("div", _extends$c({
|
|
19296
19315
|
css: getStyles('groupHeading', props),
|
|
19297
19316
|
className: cx({
|
|
19298
19317
|
'group-heading': true
|
|
@@ -19368,7 +19387,7 @@ var Input = function Input(props) {
|
|
|
19368
19387
|
}, className),
|
|
19369
19388
|
css: getStyles('input', props),
|
|
19370
19389
|
"data-value": value || ''
|
|
19371
|
-
}, jsx("input", _extends$
|
|
19390
|
+
}, jsx("input", _extends$c({
|
|
19372
19391
|
className: cx({
|
|
19373
19392
|
input: true
|
|
19374
19393
|
}, inputClassName),
|
|
@@ -19438,7 +19457,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
19438
19457
|
function MultiValueRemove$1(_ref5) {
|
|
19439
19458
|
var children = _ref5.children,
|
|
19440
19459
|
innerProps = _ref5.innerProps;
|
|
19441
|
-
return jsx("div", _extends$
|
|
19460
|
+
return jsx("div", _extends$c({
|
|
19442
19461
|
role: "button"
|
|
19443
19462
|
}, innerProps), children || jsx(CrossIcon, {
|
|
19444
19463
|
size: 14
|
|
@@ -19527,7 +19546,7 @@ var Option$1 = function Option(props) {
|
|
|
19527
19546
|
isSelected = props.isSelected,
|
|
19528
19547
|
innerRef = props.innerRef,
|
|
19529
19548
|
innerProps = props.innerProps;
|
|
19530
|
-
return jsx("div", _extends$
|
|
19549
|
+
return jsx("div", _extends$c({
|
|
19531
19550
|
css: getStyles('option', props),
|
|
19532
19551
|
className: cx({
|
|
19533
19552
|
option: true,
|
|
@@ -19559,7 +19578,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19559
19578
|
cx = props.cx,
|
|
19560
19579
|
getStyles = props.getStyles,
|
|
19561
19580
|
innerProps = props.innerProps;
|
|
19562
|
-
return jsx("div", _extends$
|
|
19581
|
+
return jsx("div", _extends$c({
|
|
19563
19582
|
css: getStyles('placeholder', props),
|
|
19564
19583
|
className: cx({
|
|
19565
19584
|
placeholder: true
|
|
@@ -19592,7 +19611,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19592
19611
|
getStyles = props.getStyles,
|
|
19593
19612
|
isDisabled = props.isDisabled,
|
|
19594
19613
|
innerProps = props.innerProps;
|
|
19595
|
-
return jsx("div", _extends$
|
|
19614
|
+
return jsx("div", _extends$c({
|
|
19596
19615
|
css: getStyles('singleValue', props),
|
|
19597
19616
|
className: cx({
|
|
19598
19617
|
'single-value': true,
|
|
@@ -19604,7 +19623,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19604
19623
|
var components = {
|
|
19605
19624
|
ClearIndicator: ClearIndicator$1,
|
|
19606
19625
|
Control: Control,
|
|
19607
|
-
DropdownIndicator: DropdownIndicator,
|
|
19626
|
+
DropdownIndicator: DropdownIndicator$1,
|
|
19608
19627
|
DownChevron: DownChevron,
|
|
19609
19628
|
CrossIcon: CrossIcon,
|
|
19610
19629
|
Group: Group,
|
|
@@ -19614,7 +19633,7 @@ var components = {
|
|
|
19614
19633
|
Input: Input,
|
|
19615
19634
|
LoadingIndicator: LoadingIndicator,
|
|
19616
19635
|
Menu: Menu,
|
|
19617
|
-
MenuList: MenuList,
|
|
19636
|
+
MenuList: MenuList$1,
|
|
19618
19637
|
MenuPortal: MenuPortal,
|
|
19619
19638
|
LoadingMessage: LoadingMessage,
|
|
19620
19639
|
NoOptionsMessage: NoOptionsMessage,
|
|
@@ -19840,7 +19859,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
19840
19859
|
};
|
|
19841
19860
|
|
|
19842
19861
|
var A11yText = function A11yText(props) {
|
|
19843
|
-
return jsx("span", _extends$
|
|
19862
|
+
return jsx("span", _extends$c({
|
|
19844
19863
|
css: _ref
|
|
19845
19864
|
}, props));
|
|
19846
19865
|
};
|
|
@@ -20376,7 +20395,7 @@ function DummyInput(_ref) {
|
|
|
20376
20395
|
var innerRef = _ref.innerRef,
|
|
20377
20396
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20378
20397
|
|
|
20379
|
-
return jsx("input", _extends$
|
|
20398
|
+
return jsx("input", _extends$c({
|
|
20380
20399
|
ref: innerRef
|
|
20381
20400
|
}, props, {
|
|
20382
20401
|
css: /*#__PURE__*/css$2({
|
|
@@ -22011,7 +22030,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22011
22030
|
|
|
22012
22031
|
if (!isSearchable) {
|
|
22013
22032
|
// use a dummy input to maintain focus/blur functionality
|
|
22014
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
22033
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$c({
|
|
22015
22034
|
id: id,
|
|
22016
22035
|
innerRef: this.getInputRef,
|
|
22017
22036
|
onBlur: this.onInputBlur,
|
|
@@ -22025,7 +22044,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22025
22044
|
}, ariaAttributes));
|
|
22026
22045
|
}
|
|
22027
22046
|
|
|
22028
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
22047
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$c({}, commonProps, {
|
|
22029
22048
|
autoCapitalize: "none",
|
|
22030
22049
|
autoComplete: "off",
|
|
22031
22050
|
autoCorrect: "off",
|
|
@@ -22069,7 +22088,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22069
22088
|
isFocused = _this$state5.isFocused;
|
|
22070
22089
|
|
|
22071
22090
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
22072
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
22091
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$c({}, commonProps, {
|
|
22073
22092
|
key: "placeholder",
|
|
22074
22093
|
isDisabled: isDisabled,
|
|
22075
22094
|
isFocused: isFocused,
|
|
@@ -22083,7 +22102,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22083
22102
|
return selectValue.map(function (opt, index) {
|
|
22084
22103
|
var isOptionFocused = opt === focusedValue;
|
|
22085
22104
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
22086
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
22105
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$c({}, commonProps, {
|
|
22087
22106
|
components: {
|
|
22088
22107
|
Container: MultiValueContainer,
|
|
22089
22108
|
Label: MultiValueLabel,
|
|
@@ -22115,7 +22134,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22115
22134
|
}
|
|
22116
22135
|
|
|
22117
22136
|
var singleValue = selectValue[0];
|
|
22118
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
22137
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$c({}, commonProps, {
|
|
22119
22138
|
data: singleValue,
|
|
22120
22139
|
isDisabled: isDisabled
|
|
22121
22140
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -22141,7 +22160,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22141
22160
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
22142
22161
|
'aria-hidden': 'true'
|
|
22143
22162
|
};
|
|
22144
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
22163
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$c({}, commonProps, {
|
|
22145
22164
|
innerProps: innerProps,
|
|
22146
22165
|
isFocused: isFocused
|
|
22147
22166
|
}));
|
|
@@ -22161,7 +22180,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22161
22180
|
var innerProps = {
|
|
22162
22181
|
'aria-hidden': 'true'
|
|
22163
22182
|
};
|
|
22164
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
22183
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$c({}, commonProps, {
|
|
22165
22184
|
innerProps: innerProps,
|
|
22166
22185
|
isDisabled: isDisabled,
|
|
22167
22186
|
isFocused: isFocused
|
|
@@ -22179,7 +22198,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22179
22198
|
var commonProps = this.commonProps;
|
|
22180
22199
|
var isDisabled = this.props.isDisabled;
|
|
22181
22200
|
var isFocused = this.state.isFocused;
|
|
22182
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
22201
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$c({}, commonProps, {
|
|
22183
22202
|
isDisabled: isDisabled,
|
|
22184
22203
|
isFocused: isFocused
|
|
22185
22204
|
}));
|
|
@@ -22199,7 +22218,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22199
22218
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
22200
22219
|
'aria-hidden': 'true'
|
|
22201
22220
|
};
|
|
22202
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
22221
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$c({}, commonProps, {
|
|
22203
22222
|
innerProps: innerProps,
|
|
22204
22223
|
isDisabled: isDisabled,
|
|
22205
22224
|
isFocused: isFocused
|
|
@@ -22262,7 +22281,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22262
22281
|
onMouseOver: onHover,
|
|
22263
22282
|
tabIndex: -1
|
|
22264
22283
|
};
|
|
22265
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
22284
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$c({}, commonProps, {
|
|
22266
22285
|
innerProps: innerProps,
|
|
22267
22286
|
data: data,
|
|
22268
22287
|
isDisabled: isDisabled,
|
|
@@ -22286,7 +22305,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22286
22305
|
groupIndex = item.index;
|
|
22287
22306
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
22288
22307
|
var headingId = "".concat(groupId, "-heading");
|
|
22289
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
22308
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$c({}, commonProps, {
|
|
22290
22309
|
key: groupId,
|
|
22291
22310
|
data: _data,
|
|
22292
22311
|
options: options,
|
|
@@ -22325,12 +22344,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22325
22344
|
menuPosition: menuPosition,
|
|
22326
22345
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
22327
22346
|
};
|
|
22328
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
22347
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$c({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
22329
22348
|
var ref = _ref4.ref,
|
|
22330
22349
|
_ref4$placerProps = _ref4.placerProps,
|
|
22331
22350
|
placement = _ref4$placerProps.placement,
|
|
22332
22351
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
22333
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
22352
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$c({}, commonProps, menuPlacementProps, {
|
|
22334
22353
|
innerRef: ref,
|
|
22335
22354
|
innerProps: {
|
|
22336
22355
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -22345,7 +22364,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22345
22364
|
onBottomArrive: onMenuScrollToBottom,
|
|
22346
22365
|
lockEnabled: menuShouldBlockScroll
|
|
22347
22366
|
}, function (scrollTargetRef) {
|
|
22348
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
22367
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$c({}, commonProps, {
|
|
22349
22368
|
innerRef: function innerRef(instance) {
|
|
22350
22369
|
_this4.getMenuListRef(instance);
|
|
22351
22370
|
|
|
@@ -22360,7 +22379,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22360
22379
|
// so we use the same component. the actual portalling logic is forked
|
|
22361
22380
|
// within the component based on `menuPosition`
|
|
22362
22381
|
|
|
22363
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
22382
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$c({}, commonProps, {
|
|
22364
22383
|
appendTo: menuPortalTarget,
|
|
22365
22384
|
controlElement: this.controlRef,
|
|
22366
22385
|
menuPlacement: menuPlacement,
|
|
@@ -22425,7 +22444,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22425
22444
|
isFocused = _this$state6.isFocused,
|
|
22426
22445
|
selectValue = _this$state6.selectValue;
|
|
22427
22446
|
var focusableOptions = this.getFocusableOptions();
|
|
22428
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
22447
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$c({}, commonProps, {
|
|
22429
22448
|
id: this.getElementId('live-region'),
|
|
22430
22449
|
ariaSelection: ariaSelection,
|
|
22431
22450
|
focusedOption: focusedOption,
|
|
@@ -22451,7 +22470,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22451
22470
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
22452
22471
|
var isFocused = this.state.isFocused;
|
|
22453
22472
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
22454
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
22473
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$c({}, commonProps, {
|
|
22455
22474
|
className: className,
|
|
22456
22475
|
innerProps: {
|
|
22457
22476
|
id: id,
|
|
@@ -22459,7 +22478,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22459
22478
|
},
|
|
22460
22479
|
isDisabled: isDisabled,
|
|
22461
22480
|
isFocused: isFocused
|
|
22462
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
22481
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$c({}, commonProps, {
|
|
22463
22482
|
innerRef: this.getControlRef,
|
|
22464
22483
|
innerProps: {
|
|
22465
22484
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -22468,9 +22487,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22468
22487
|
isDisabled: isDisabled,
|
|
22469
22488
|
isFocused: isFocused,
|
|
22470
22489
|
menuIsOpen: menuIsOpen
|
|
22471
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
22490
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$c({}, commonProps, {
|
|
22472
22491
|
isDisabled: isDisabled
|
|
22473
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
22492
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$c({}, commonProps, {
|
|
22474
22493
|
isDisabled: isDisabled
|
|
22475
22494
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
22476
22495
|
}
|
|
@@ -22543,17 +22562,17 @@ Select$1.defaultProps = defaultProps;
|
|
|
22543
22562
|
|
|
22544
22563
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22545
22564
|
var baseSelectProps = useStateManager(props);
|
|
22546
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
22565
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$c({
|
|
22547
22566
|
ref: ref
|
|
22548
22567
|
}, baseSelectProps));
|
|
22549
22568
|
});
|
|
22550
22569
|
|
|
22551
|
-
var
|
|
22570
|
+
var ReactSelect = StateManagedSelect;
|
|
22552
22571
|
|
|
22553
22572
|
var _g$4;
|
|
22554
|
-
function _extends$
|
|
22573
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
22555
22574
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
22556
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22575
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
22557
22576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22558
22577
|
viewBox: "0 0 28 28",
|
|
22559
22578
|
width: "1em",
|
|
@@ -22574,15 +22593,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
22574
22593
|
}))));
|
|
22575
22594
|
};
|
|
22576
22595
|
|
|
22577
|
-
var _path$
|
|
22578
|
-
function _extends$
|
|
22596
|
+
var _path$6;
|
|
22597
|
+
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); }
|
|
22579
22598
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
22580
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22599
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
22581
22600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22582
22601
|
width: "1em",
|
|
22583
22602
|
height: "1em",
|
|
22584
22603
|
viewBox: "0 0 24 24"
|
|
22585
|
-
}, props), _path$
|
|
22604
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22586
22605
|
stroke: "#06C",
|
|
22587
22606
|
strokeLinecap: "round",
|
|
22588
22607
|
strokeLinejoin: "round",
|
|
@@ -22594,9 +22613,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
22594
22613
|
};
|
|
22595
22614
|
|
|
22596
22615
|
var _g$3;
|
|
22597
|
-
function _extends$
|
|
22616
|
+
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); }
|
|
22598
22617
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
22599
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22618
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
22600
22619
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22601
22620
|
width: "1em",
|
|
22602
22621
|
height: "1em",
|
|
@@ -22658,11 +22677,11 @@ var multiSelectStyles = {
|
|
|
22658
22677
|
valueContainer: function (base, state) { return (__assign(__assign({}, base), { color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); },
|
|
22659
22678
|
};
|
|
22660
22679
|
var CustomSelect = function (props) {
|
|
22661
|
-
return jsxRuntime.jsx(
|
|
22680
|
+
return jsxRuntime.jsx(ReactSelect, __assign({}, props));
|
|
22662
22681
|
};
|
|
22663
22682
|
|
|
22664
|
-
var css_248z$
|
|
22665
|
-
styleInject(css_248z$
|
|
22683
|
+
var css_248z$4 = ".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}";
|
|
22684
|
+
styleInject(css_248z$4);
|
|
22666
22685
|
|
|
22667
22686
|
function InfoColourBar(_a) {
|
|
22668
22687
|
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;
|
|
@@ -22919,7 +22938,7 @@ Valid States of Checkbox:
|
|
|
22919
22938
|
5. disabled: false, checked: true, value: INTERMIDIATE
|
|
22920
22939
|
6. disabled: false, checked: true, value: CHECKED
|
|
22921
22940
|
*/
|
|
22922
|
-
var Checkbox = /** @class */ (function (_super) {
|
|
22941
|
+
var Checkbox$1 = /** @class */ (function (_super) {
|
|
22923
22942
|
__extends(Checkbox, _super);
|
|
22924
22943
|
function Checkbox() {
|
|
22925
22944
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -22932,8 +22951,8 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
22932
22951
|
return Checkbox;
|
|
22933
22952
|
}(React.Component));
|
|
22934
22953
|
|
|
22935
|
-
var css_248z$
|
|
22936
|
-
styleInject(css_248z$
|
|
22954
|
+
var css_248z$3 = ".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}";
|
|
22955
|
+
styleInject(css_248z$3);
|
|
22937
22956
|
|
|
22938
22957
|
var Toggle = function (_a) {
|
|
22939
22958
|
var _b;
|
|
@@ -22957,8 +22976,8 @@ var Toggle = function (_a) {
|
|
|
22957
22976
|
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) }) }))] })));
|
|
22958
22977
|
};
|
|
22959
22978
|
|
|
22960
|
-
var css_248z$
|
|
22961
|
-
styleInject(css_248z$
|
|
22979
|
+
var css_248z$2 = ".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}";
|
|
22980
|
+
styleInject(css_248z$2);
|
|
22962
22981
|
|
|
22963
22982
|
function ScanVulnerabilitiesTable(_a) {
|
|
22964
22983
|
var vulnerabilities = _a.vulnerabilities;
|
|
@@ -22973,8 +22992,8 @@ function ScanVulnerabilitiesTable(_a) {
|
|
|
22973
22992
|
})] }) })));
|
|
22974
22993
|
}
|
|
22975
22994
|
|
|
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);
|
|
22995
|
+
var css_248z$1 = ".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}";
|
|
22996
|
+
styleInject(css_248z$1);
|
|
22978
22997
|
|
|
22979
22998
|
var RadioContext = React.createContext(null);
|
|
22980
22999
|
function useRadioContext() {
|
|
@@ -23068,9 +23087,9 @@ exports.ConsequenceAction = void 0;
|
|
|
23068
23087
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
23069
23088
|
|
|
23070
23089
|
var _g$2;
|
|
23071
|
-
function _extends$
|
|
23090
|
+
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); }
|
|
23072
23091
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
23073
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23092
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
23074
23093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23075
23094
|
width: "1em",
|
|
23076
23095
|
height: "1em",
|
|
@@ -23149,16 +23168,16 @@ function DeleteComponent(_a) {
|
|
|
23149
23168
|
return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
|
|
23150
23169
|
}
|
|
23151
23170
|
|
|
23152
|
-
var _path$
|
|
23153
|
-
function _extends$
|
|
23171
|
+
var _path$5;
|
|
23172
|
+
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); }
|
|
23154
23173
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
23155
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23174
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
23156
23175
|
width: "1em",
|
|
23157
23176
|
height: "1em",
|
|
23158
23177
|
viewBox: "0 0 20 20",
|
|
23159
23178
|
fill: "none",
|
|
23160
23179
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23161
|
-
}, props), _path$
|
|
23180
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23162
23181
|
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",
|
|
23163
23182
|
stroke: "#596168",
|
|
23164
23183
|
strokeWidth: 1.5,
|
|
@@ -23167,16 +23186,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
23167
23186
|
})));
|
|
23168
23187
|
};
|
|
23169
23188
|
|
|
23170
|
-
var _path$
|
|
23171
|
-
function _extends$
|
|
23189
|
+
var _path$4, _path2, _path3;
|
|
23190
|
+
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); }
|
|
23172
23191
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
23173
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23192
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
23174
23193
|
width: "1em",
|
|
23175
23194
|
height: "1em",
|
|
23176
23195
|
viewBox: "0 0 12 12",
|
|
23177
23196
|
fill: "none",
|
|
23178
23197
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23179
|
-
}, props), _path$
|
|
23198
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23180
23199
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
23181
23200
|
fill: "#767D84"
|
|
23182
23201
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -23194,15 +23213,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
23194
23213
|
})));
|
|
23195
23214
|
};
|
|
23196
23215
|
|
|
23197
|
-
var _path$
|
|
23198
|
-
function _extends$
|
|
23216
|
+
var _path$3;
|
|
23217
|
+
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); }
|
|
23199
23218
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
23200
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23219
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
23201
23220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23202
23221
|
width: "1em",
|
|
23203
23222
|
height: "1em",
|
|
23204
23223
|
viewBox: "0 0 14 14"
|
|
23205
|
-
}, props), _path$
|
|
23224
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23206
23225
|
fill: "#959BA1",
|
|
23207
23226
|
className: "ic-minus_svg__fill-color",
|
|
23208
23227
|
fillRule: "evenodd",
|
|
@@ -23211,9 +23230,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
23211
23230
|
};
|
|
23212
23231
|
|
|
23213
23232
|
var _g$1;
|
|
23214
|
-
function _extends$
|
|
23233
|
+
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); }
|
|
23215
23234
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
23216
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23235
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
23217
23236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23218
23237
|
width: "1em",
|
|
23219
23238
|
height: "1em",
|
|
@@ -23230,16 +23249,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
23230
23249
|
}))));
|
|
23231
23250
|
};
|
|
23232
23251
|
|
|
23233
|
-
var _path$
|
|
23234
|
-
function _extends$
|
|
23252
|
+
var _path$2;
|
|
23253
|
+
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); }
|
|
23235
23254
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
23236
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23255
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
23237
23256
|
width: "1em",
|
|
23238
23257
|
height: "1em",
|
|
23239
23258
|
viewBox: "0 0 16 16",
|
|
23240
23259
|
fill: "none",
|
|
23241
23260
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23242
|
-
}, props), _path$
|
|
23261
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23243
23262
|
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",
|
|
23244
23263
|
fill: "#3B444C"
|
|
23245
23264
|
})));
|
|
@@ -23598,9 +23617,9 @@ function useDebouncedEffect(callback, delay, deps) {
|
|
|
23598
23617
|
}
|
|
23599
23618
|
|
|
23600
23619
|
var _g;
|
|
23601
|
-
function _extends$
|
|
23620
|
+
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); }
|
|
23602
23621
|
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
23603
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23622
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
23604
23623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23605
23624
|
width: "1em",
|
|
23606
23625
|
height: "1em",
|
|
@@ -23635,8 +23654,8 @@ var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
|
23635
23654
|
* @param showClearIcon - (Optional) To show the clear icon default value is true
|
|
23636
23655
|
*/
|
|
23637
23656
|
function DebouncedSearch(_a) {
|
|
23638
|
-
var onSearch = _a.onSearch, Icon = _a.Icon, children = _a.children, placeholder = _a.placeholder, _b = _a.containerClass, containerClass = _b === void 0 ? '' : _b, _c = _a.iconClass, iconClass = _c === void 0 ? '' : _c, _d = _a.inputClass, inputClass = _d === void 0 ? '' : _d, _e = _a.debounceTimeout, debounceTimeout = _e === void 0 ? 500 : _e, clearSearch = _a.clearSearch, _f = _a.showClearIcon, showClearIcon = _f === void 0 ? true : _f
|
|
23639
|
-
var
|
|
23657
|
+
var onSearch = _a.onSearch, Icon = _a.Icon, children = _a.children, placeholder = _a.placeholder, _b = _a.containerClass, containerClass = _b === void 0 ? '' : _b, _c = _a.iconClass, iconClass = _c === void 0 ? '' : _c, _d = _a.inputClass, inputClass = _d === void 0 ? '' : _d, _e = _a.debounceTimeout, debounceTimeout = _e === void 0 ? 500 : _e, clearSearch = _a.clearSearch, _f = _a.showClearIcon, showClearIcon = _f === void 0 ? true : _f;
|
|
23658
|
+
var _g = __read(React.useState(''), 2), searchText = _g[0], setSearchText = _g[1];
|
|
23640
23659
|
React.useEffect(function () {
|
|
23641
23660
|
setSearchText('');
|
|
23642
23661
|
}, [clearSearch]);
|
|
@@ -23647,7 +23666,7 @@ function DebouncedSearch(_a) {
|
|
|
23647
23666
|
setSearchText('');
|
|
23648
23667
|
};
|
|
23649
23668
|
useDebouncedEffect(function () { return onSearch(searchText); }, debounceTimeout, [searchText, onSearch]);
|
|
23650
|
-
return (jsxRuntime.jsxs("div", __assign({ className: containerClass }, { children: [Icon && jsxRuntime.jsx(Icon, { className: iconClass }), jsxRuntime.jsx("input", { type: "text", className: inputClass, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Search', value: searchText, onChange: handleSearchTextChange, autoFocus:
|
|
23669
|
+
return (jsxRuntime.jsxs("div", __assign({ className: containerClass }, { children: [Icon && jsxRuntime.jsx(Icon, { className: iconClass }), jsxRuntime.jsx("input", { type: "text", className: inputClass, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Search', value: searchText, onChange: handleSearchTextChange, autoFocus: true, "data-testid": "debounced-search" }), showClearIcon && !!searchText && (jsxRuntime.jsx("button", __assign({ type: "button", className: "dc__outline-none-imp dc__no-border p-0 bc-n50 flex", onClick: handleClearSearch, "data-testid": "clear-search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-20 icon-n6" }) }))), children] })));
|
|
23651
23670
|
}
|
|
23652
23671
|
|
|
23653
23672
|
// This is meant to be a reusable component that will provide a grid like dynamic layout where xs is the number of columns out of 12 that the item will take up
|
|
@@ -23668,15 +23687,15 @@ function Grid(_a) {
|
|
|
23668
23687
|
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
|
|
23669
23688
|
}
|
|
23670
23689
|
|
|
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); }
|
|
23690
|
+
var _path$1;
|
|
23691
|
+
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); }
|
|
23673
23692
|
var SvgIcCopy = function SvgIcCopy(props) {
|
|
23674
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
23693
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
23675
23694
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23676
23695
|
width: "1em",
|
|
23677
23696
|
height: "1em",
|
|
23678
23697
|
viewBox: "0 0 20 20"
|
|
23679
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23698
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23680
23699
|
fill: "#767D84",
|
|
23681
23700
|
fillRule: "evenodd",
|
|
23682
23701
|
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"
|
|
@@ -23844,12 +23863,234 @@ function AppStatus(_a) {
|
|
|
23844
23863
|
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 }))] })));
|
|
23845
23864
|
}
|
|
23846
23865
|
|
|
23866
|
+
var FieldRowWithLabel = function (_a) {
|
|
23867
|
+
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;
|
|
23868
|
+
return (jsxRuntime.jsxs("div", __assign({ className: showLabel
|
|
23869
|
+
? "display-grid dc__gap-12 rjsf-form-template__field ".concat(shouldAlignCenter ? 'flex-align-center' : '')
|
|
23870
|
+
: '' }, { 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] })));
|
|
23871
|
+
};
|
|
23872
|
+
|
|
23873
|
+
var ActionButton = function (_a) {
|
|
23874
|
+
var canAdd = _a.canAdd, onAddClick = _a.onAddClick, disabled = _a.disabled, readonly = _a.readonly, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23875
|
+
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23876
|
+
return (canAdd && (jsxRuntime.jsx(AddButton, { onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry })));
|
|
23877
|
+
};
|
|
23878
|
+
var ArrayFieldTemplate = function (_a) {
|
|
23879
|
+
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;
|
|
23880
|
+
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23881
|
+
var ArrayFieldItemTemplate = utils.getTemplate('ArrayFieldItemTemplate', registry, uiOptions);
|
|
23882
|
+
var label = uiOptions.title || title;
|
|
23883
|
+
return (jsxRuntime.jsx("fieldset", __assign({ className: className, id: idSchema.$id }, { children: items.length ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.map(function (_a, index) {
|
|
23884
|
+
var key = _a.key, itemProps = __rest(_a, ["key"]);
|
|
23885
|
+
// Show the title as the label for the first field
|
|
23886
|
+
var children = __assign(__assign({}, itemProps.children), { props: __assign(__assign({}, itemProps.children.props), { name: index === 0 ? label : '' }) });
|
|
23887
|
+
return (jsxRuntime.jsx(ArrayFieldItemTemplate, __assign({}, itemProps, { children: children }), key));
|
|
23888
|
+
}), 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 }) }))) })));
|
|
23889
|
+
};
|
|
23890
|
+
|
|
23891
|
+
var ArrayFieldItemTemplate = function (_a) {
|
|
23892
|
+
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;
|
|
23893
|
+
var RemoveButton = registry.templates.ButtonTemplates.RemoveButton;
|
|
23894
|
+
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 }) }))] })));
|
|
23895
|
+
};
|
|
23896
|
+
|
|
23897
|
+
var PLACEHOLDERS = {
|
|
23898
|
+
SELECT: 'Please select an option',
|
|
23899
|
+
INPUT: 'Please enter an input',
|
|
23900
|
+
OBJECT_KEY: 'Please enter a value for the key',
|
|
23901
|
+
};
|
|
23902
|
+
|
|
23903
|
+
var BaseInputTemplate = RJSF.getDefaultRegistry().templates.BaseInputTemplate;
|
|
23904
|
+
var BaseInput = function (_a) {
|
|
23905
|
+
var placeholder = _a.placeholder, props = __rest(_a, ["placeholder"]);
|
|
23906
|
+
return (jsxRuntime.jsx(BaseInputTemplate, __assign({ placeholder: placeholder || PLACEHOLDERS.INPUT }, props, { className: "form__input cn-9 fs-13 lh-20 fw-4" })));
|
|
23907
|
+
};
|
|
23908
|
+
|
|
23909
|
+
var AddButton = function (_a) {
|
|
23910
|
+
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23911
|
+
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" }))] })) })));
|
|
23912
|
+
};
|
|
23913
|
+
|
|
23914
|
+
var RemoveButton = function (_a) {
|
|
23915
|
+
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23916
|
+
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" }) })));
|
|
23917
|
+
};
|
|
23918
|
+
|
|
23919
|
+
var SubmitButton = function (_a) {
|
|
23920
|
+
var uiSchema = _a.uiSchema;
|
|
23921
|
+
var _b = utils.getSubmitButtonOptions(uiSchema), submitText = _b.submitText, norender = _b.norender, _c = _b.props, submitButtonProps = _c === void 0 ? {} : _c;
|
|
23922
|
+
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 })) })));
|
|
23923
|
+
};
|
|
23924
|
+
|
|
23925
|
+
var Description = function (_a) {
|
|
23926
|
+
var id = _a.id, description = _a.description;
|
|
23927
|
+
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 }))] })));
|
|
23928
|
+
};
|
|
23929
|
+
|
|
23930
|
+
var Field$1 = function (props) {
|
|
23931
|
+
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;
|
|
23932
|
+
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23933
|
+
var WrapIfAdditionalTemplate = utils.getTemplate('WrapIfAdditionalTemplate', registry, uiOptions);
|
|
23934
|
+
// Object type fields have additional properties for key/value pairs
|
|
23935
|
+
var hasAdditionalProperties = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23936
|
+
// Label is not displayed for boolean fields by default and hide for object type fields
|
|
23937
|
+
var showLabel = (displayLabel || schema.type === 'boolean') && !hasAdditionalProperties;
|
|
23938
|
+
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] })));
|
|
23939
|
+
};
|
|
23940
|
+
|
|
23941
|
+
var FieldErrorTemplate = function (_a) {
|
|
23942
|
+
var _b = _a.errors, errors = _b === void 0 ? [] : _b, idSchema = _a.idSchema;
|
|
23943
|
+
var id = utils.errorId(idSchema);
|
|
23944
|
+
return (errors.length > 0 && (jsxRuntime.jsx("span", __assign({ id: id }, { children: errors
|
|
23945
|
+
.filter(function (elem) { return !!elem; })
|
|
23946
|
+
.map(function (error, index) {
|
|
23947
|
+
return (jsxRuntime.jsxs("span", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] }), index));
|
|
23948
|
+
}) }))));
|
|
23949
|
+
};
|
|
23950
|
+
|
|
23951
|
+
var Field = function (_a) {
|
|
23952
|
+
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;
|
|
23953
|
+
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23954
|
+
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23955
|
+
var ActionButton = utils.canExpand(schema, uiSchema, formData) && (jsxRuntime.jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }));
|
|
23956
|
+
var Properties = properties.map(function (prop) { return prop.content; });
|
|
23957
|
+
if (hasAdditionalProperties) {
|
|
23958
|
+
if (properties.length) {
|
|
23959
|
+
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] }));
|
|
23960
|
+
}
|
|
23961
|
+
else {
|
|
23962
|
+
return (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id }, { children: ActionButton })));
|
|
23963
|
+
}
|
|
23964
|
+
}
|
|
23965
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [Properties, ActionButton] }));
|
|
23966
|
+
};
|
|
23967
|
+
var ObjectFieldTemplate = function (props) {
|
|
23968
|
+
var idSchema = props.idSchema, registry = props.registry, required = props.required, schema = props.schema, title = props.title, uiSchema = props.uiSchema;
|
|
23969
|
+
var options = utils.getUiOptions(uiSchema);
|
|
23970
|
+
var TitleFieldTemplate = utils.getTemplate('TitleFieldTemplate', registry, options);
|
|
23971
|
+
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23972
|
+
var showTitle = title && !hasAdditionalProperties;
|
|
23973
|
+
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))] })));
|
|
23974
|
+
};
|
|
23975
|
+
|
|
23976
|
+
var TitleField = function (_a) {
|
|
23977
|
+
var id = _a.id, title = _a.title, required = _a.required;
|
|
23978
|
+
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*" }))] })));
|
|
23979
|
+
};
|
|
23980
|
+
|
|
23981
|
+
var WrapIfAdditionalTemplate = function (_a) {
|
|
23982
|
+
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;
|
|
23983
|
+
var templates = registry.templates;
|
|
23984
|
+
var RemoveButton = templates.ButtonTemplates.RemoveButton;
|
|
23985
|
+
var additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23986
|
+
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) }));
|
|
23987
|
+
};
|
|
23988
|
+
|
|
23989
|
+
var Checkbox = function (_a) {
|
|
23990
|
+
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;
|
|
23991
|
+
var handleEvent = function (e, type) {
|
|
23992
|
+
var _a = e.target, id = _a.id, checked = _a.checked;
|
|
23993
|
+
if (type === 'blur') {
|
|
23994
|
+
onBlur(id, checked);
|
|
23995
|
+
}
|
|
23996
|
+
else if (type === 'focus') {
|
|
23997
|
+
onFocus(id, checked);
|
|
23998
|
+
}
|
|
23999
|
+
};
|
|
24000
|
+
var isSelected = typeof value === 'undefined' ? false : value;
|
|
24001
|
+
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() }))] }));
|
|
24002
|
+
};
|
|
24003
|
+
|
|
24004
|
+
/**
|
|
24005
|
+
* Override for the TranslatableString from RJSF
|
|
24006
|
+
*/
|
|
24007
|
+
var translateString = function (stringToTranslate, params) {
|
|
24008
|
+
switch (stringToTranslate) {
|
|
24009
|
+
case utils.TranslatableString.NewStringDefault:
|
|
24010
|
+
// Use an empty string for the new additionalProperties string default value
|
|
24011
|
+
return '';
|
|
24012
|
+
default:
|
|
24013
|
+
return utils.englishStringTranslator(stringToTranslate, params);
|
|
24014
|
+
}
|
|
24015
|
+
};
|
|
24016
|
+
var getCommonSelectStyle = function (styleOverrides) {
|
|
24017
|
+
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
24018
|
+
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);
|
|
24019
|
+
};
|
|
24020
|
+
|
|
24021
|
+
var _path;
|
|
24022
|
+
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); }
|
|
24023
|
+
var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
24024
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
24025
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24026
|
+
width: "1em",
|
|
24027
|
+
height: "1em",
|
|
24028
|
+
viewBox: "0 0 24 24"
|
|
24029
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24030
|
+
fill: "#999",
|
|
24031
|
+
className: "ic-chevron-down_svg__fill-color",
|
|
24032
|
+
fillRule: "nonzero",
|
|
24033
|
+
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
24034
|
+
})));
|
|
24035
|
+
};
|
|
24036
|
+
|
|
24037
|
+
var commonStyles = getCommonSelectStyle();
|
|
24038
|
+
var MenuList = function (_a) {
|
|
24039
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
24040
|
+
return (jsxRuntime.jsx(components.MenuList, __assign({}, props, { children: Array.isArray(children) ? children.slice(0, 20) : children })));
|
|
24041
|
+
};
|
|
24042
|
+
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" }) }))); };
|
|
24043
|
+
var Select = function (props) {
|
|
24044
|
+
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;
|
|
24045
|
+
var _c = options.enumOptions, selectOptions = _c === void 0 ? [] : _c;
|
|
24046
|
+
var emptyValue = multiple ? [] : '';
|
|
24047
|
+
var handleChange = function (option) {
|
|
24048
|
+
onChange(multiple ? option.map(function (o) { return o.value; }) : option.value);
|
|
24049
|
+
};
|
|
24050
|
+
var getOption = function (value) {
|
|
24051
|
+
return multiple
|
|
24052
|
+
? selectOptions.filter(function (option) { return value.includes(option.value); })
|
|
24053
|
+
: selectOptions.find(function (option) { return option.value === value; });
|
|
24054
|
+
};
|
|
24055
|
+
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: {
|
|
24056
|
+
IndicatorSeparator: null,
|
|
24057
|
+
DropdownIndicator: DropdownIndicator,
|
|
24058
|
+
MenuList: MenuList,
|
|
24059
|
+
}, menuPlacement: "auto" }));
|
|
24060
|
+
};
|
|
24061
|
+
|
|
24062
|
+
var widgets = {
|
|
24063
|
+
CheckboxWidget: Checkbox,
|
|
24064
|
+
SelectWidget: Select,
|
|
24065
|
+
};
|
|
24066
|
+
var templates = {
|
|
24067
|
+
ArrayFieldItemTemplate: ArrayFieldItemTemplate,
|
|
24068
|
+
ArrayFieldTemplate: ArrayFieldTemplate,
|
|
24069
|
+
BaseInputTemplate: BaseInput,
|
|
24070
|
+
ButtonTemplates: { AddButton: AddButton, RemoveButton: RemoveButton, SubmitButton: SubmitButton },
|
|
24071
|
+
DescriptionFieldTemplate: Description,
|
|
24072
|
+
FieldTemplate: Field$1,
|
|
24073
|
+
FieldErrorTemplate: FieldErrorTemplate,
|
|
24074
|
+
ObjectFieldTemplate: ObjectFieldTemplate,
|
|
24075
|
+
TitleFieldTemplate: TitleField,
|
|
24076
|
+
WrapIfAdditionalTemplate: WrapIfAdditionalTemplate,
|
|
24077
|
+
};
|
|
24078
|
+
|
|
24079
|
+
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}";
|
|
24080
|
+
styleInject(css_248z);
|
|
24081
|
+
|
|
24082
|
+
// Need to use this way because the default import was not working as expected
|
|
24083
|
+
// The default import resolves to an object intead of a function
|
|
24084
|
+
var Form = RJSF.default;
|
|
24085
|
+
var validator = RJSFValidator.default;
|
|
24086
|
+
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 }))); };
|
|
24087
|
+
|
|
23847
24088
|
exports.AppStatus = AppStatus;
|
|
23848
24089
|
exports.BreadCrumb = BreadCrumb;
|
|
23849
24090
|
exports.BreadcrumbStore = Store;
|
|
23850
24091
|
exports.BuildStageVariable = BuildStageVariable;
|
|
23851
24092
|
exports.CDModalTab = CDModalTab;
|
|
23852
|
-
exports.Checkbox = Checkbox;
|
|
24093
|
+
exports.Checkbox = Checkbox$1;
|
|
23853
24094
|
exports.ClearIndicator = ClearIndicator;
|
|
23854
24095
|
exports.ClipboardButton = ClipboardButton;
|
|
23855
24096
|
exports.ConditionalWrap = ConditionalWrap;
|
|
@@ -23888,6 +24129,7 @@ exports.PopupMenu = PopupMenu;
|
|
|
23888
24129
|
exports.Progressing = Progressing;
|
|
23889
24130
|
exports.PropagateTagInfo = PropagateTagInfo;
|
|
23890
24131
|
exports.REGISTRY_TYPE_MAP = REGISTRY_TYPE_MAP;
|
|
24132
|
+
exports.RJSFForm = RJSFForm;
|
|
23891
24133
|
exports.ROUTES = ROUTES;
|
|
23892
24134
|
exports.RadioGroup = RadioGroup$1;
|
|
23893
24135
|
exports.RadioGroupItem = RadioGroupItem;
|
|
@@ -23928,6 +24170,7 @@ exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
|
|
|
23928
24170
|
exports.getLoginInfo = getLoginInfo;
|
|
23929
24171
|
exports.getRandomColor = getRandomColor;
|
|
23930
24172
|
exports.getTeamListMin = getTeamListMin;
|
|
24173
|
+
exports.getUrlWithSearchParams = getUrlWithSearchParams;
|
|
23931
24174
|
exports.getUserRole = getUserRole;
|
|
23932
24175
|
exports.handleUTCTime = handleUTCTime;
|
|
23933
24176
|
exports.multiSelectStyles = multiSelectStyles;
|