@devtron-labs/devtron-fe-common-lib 0.0.38 → 0.0.39-beta-1
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/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -0
- package/dist/Common/Hooks/index.d.ts +1 -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/index.d.ts +1 -0
- package/dist/index.js +381 -146
- package/package.json +4 -1
- package/src/Assets/Icon/ic-chevron-down.svg +5 -0
- package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +15 -0
- package/src/Common/Hooks/index.ts +1 -0
- package/src/Common/RJSF/Form.tsx +28 -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 +72 -0
- package/src/Common/RJSF/widgets/index.ts +2 -0
- package/src/Common/Security/scanVulnerabilities.css +2 -0
- 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 validator = require('@rjsf/validator-ajv8');
|
|
9
|
+
var utils = require('@rjsf/utils');
|
|
7
10
|
|
|
8
11
|
function _interopNamespaceDefault(e) {
|
|
9
12
|
var n = Object.create(null);
|
|
@@ -693,13 +696,13 @@ function styleInject(css, ref) {
|
|
|
693
696
|
}
|
|
694
697
|
}
|
|
695
698
|
|
|
696
|
-
var css_248z$
|
|
697
|
-
styleInject(css_248z$
|
|
699
|
+
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}";
|
|
700
|
+
styleInject(css_248z$7);
|
|
698
701
|
|
|
699
702
|
var _g$6;
|
|
700
|
-
function _extends$
|
|
703
|
+
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); }
|
|
701
704
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
702
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
705
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
703
706
|
xmlns: "http://www.w3.org/2000/svg",
|
|
704
707
|
viewBox: "0 0 24 24",
|
|
705
708
|
width: "1em",
|
|
@@ -751,8 +754,8 @@ EmptyState.Loading = Loading;
|
|
|
751
754
|
|
|
752
755
|
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}
|
|
753
756
|
|
|
754
|
-
function _extends$
|
|
755
|
-
_extends$
|
|
757
|
+
function _extends$k() {
|
|
758
|
+
_extends$k = Object.assign || function (target) {
|
|
756
759
|
for (var i = 1; i < arguments.length; i++) {
|
|
757
760
|
var source = arguments[i];
|
|
758
761
|
|
|
@@ -766,7 +769,7 @@ function _extends$j() {
|
|
|
766
769
|
return target;
|
|
767
770
|
};
|
|
768
771
|
|
|
769
|
-
return _extends$
|
|
772
|
+
return _extends$k.apply(this, arguments);
|
|
770
773
|
}
|
|
771
774
|
|
|
772
775
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1492,7 +1495,7 @@ function ProgressBar(_ref) {
|
|
|
1492
1495
|
isIn = _ref.isIn,
|
|
1493
1496
|
theme = _ref.theme;
|
|
1494
1497
|
|
|
1495
|
-
var style = _extends$
|
|
1498
|
+
var style = _extends$k({}, userStyle, {
|
|
1496
1499
|
animationDuration: delay + "ms",
|
|
1497
1500
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1498
1501
|
opacity: hide ? 0 : 1
|
|
@@ -1769,9 +1772,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1769
1772
|
,
|
|
1770
1773
|
id: containerId
|
|
1771
1774
|
}, getToastToRender(function (position, toastList) {
|
|
1772
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1775
|
+
var containerStyle = !toastList.length ? _extends$k({}, style, {
|
|
1773
1776
|
pointerEvents: 'none'
|
|
1774
|
-
}) : _extends$
|
|
1777
|
+
}) : _extends$k({}, style);
|
|
1775
1778
|
return React.createElement("div", {
|
|
1776
1779
|
className: getClassName(position),
|
|
1777
1780
|
style: containerStyle,
|
|
@@ -1878,7 +1881,7 @@ function dispatchToast(content, options) {
|
|
|
1878
1881
|
|
|
1879
1882
|
|
|
1880
1883
|
function mergeOptions(type, options) {
|
|
1881
|
-
return _extends$
|
|
1884
|
+
return _extends$k({}, options, {
|
|
1882
1885
|
type: options && options.type || type,
|
|
1883
1886
|
toastId: getToastId(options)
|
|
1884
1887
|
});
|
|
@@ -1895,7 +1898,7 @@ function toast(content, options) {
|
|
|
1895
1898
|
}
|
|
1896
1899
|
|
|
1897
1900
|
toast.loading = function (content, options) {
|
|
1898
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1901
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$k({
|
|
1899
1902
|
isLoading: true,
|
|
1900
1903
|
autoClose: false,
|
|
1901
1904
|
closeOnClick: false,
|
|
@@ -1911,7 +1914,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1911
1914
|
var id;
|
|
1912
1915
|
|
|
1913
1916
|
if (pending) {
|
|
1914
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1917
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$k({}, options, pending));
|
|
1915
1918
|
}
|
|
1916
1919
|
|
|
1917
1920
|
var resetParams = {
|
|
@@ -1930,7 +1933,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1930
1933
|
return;
|
|
1931
1934
|
}
|
|
1932
1935
|
|
|
1933
|
-
var baseParams = _extends$
|
|
1936
|
+
var baseParams = _extends$k({
|
|
1934
1937
|
type: type
|
|
1935
1938
|
}, resetParams, options, {
|
|
1936
1939
|
data: result
|
|
@@ -1941,10 +1944,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1941
1944
|
} : input; // if the id is set we know that it's an update
|
|
1942
1945
|
|
|
1943
1946
|
if (id) {
|
|
1944
|
-
toast.update(id, _extends$
|
|
1947
|
+
toast.update(id, _extends$k({}, baseParams, params));
|
|
1945
1948
|
} else {
|
|
1946
1949
|
// using toast.promise without loading
|
|
1947
|
-
toast(params.render, _extends$
|
|
1950
|
+
toast(params.render, _extends$k({}, baseParams, params));
|
|
1948
1951
|
}
|
|
1949
1952
|
|
|
1950
1953
|
return result;
|
|
@@ -1968,7 +1971,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
1968
1971
|
toast.warn = toast.warning;
|
|
1969
1972
|
|
|
1970
1973
|
toast.dark = function (content, options) {
|
|
1971
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1974
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$k({
|
|
1972
1975
|
theme: 'dark'
|
|
1973
1976
|
}, options)));
|
|
1974
1977
|
};
|
|
@@ -2025,7 +2028,7 @@ toast.update = function (toastId, options) {
|
|
|
2025
2028
|
var oldOptions = toast.props,
|
|
2026
2029
|
oldContent = toast.content;
|
|
2027
2030
|
|
|
2028
|
-
var nextOptions = _extends$
|
|
2031
|
+
var nextOptions = _extends$k({}, oldOptions, options, {
|
|
2029
2032
|
toastId: options.toastId || toastId,
|
|
2030
2033
|
updateId: generateToastId()
|
|
2031
2034
|
});
|
|
@@ -9815,9 +9818,9 @@ function captureException(exception, captureContext) {
|
|
|
9815
9818
|
}
|
|
9816
9819
|
|
|
9817
9820
|
var _g$5;
|
|
9818
|
-
function _extends$
|
|
9821
|
+
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); }
|
|
9819
9822
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
9820
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
9823
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
9821
9824
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9822
9825
|
width: "1em",
|
|
9823
9826
|
height: "1em",
|
|
@@ -10280,8 +10283,8 @@ var VisibleModal = /** @class */ (function (_super) {
|
|
|
10280
10283
|
return VisibleModal;
|
|
10281
10284
|
}(React.Component));
|
|
10282
10285
|
|
|
10283
|
-
var css_248z$
|
|
10284
|
-
styleInject(css_248z$
|
|
10286
|
+
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}";
|
|
10287
|
+
styleInject(css_248z$6);
|
|
10285
10288
|
|
|
10286
10289
|
var Drawer = function (_a) {
|
|
10287
10290
|
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;
|
|
@@ -10355,16 +10358,16 @@ var Modal = function (_a) {
|
|
|
10355
10358
|
}, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
|
|
10356
10359
|
};
|
|
10357
10360
|
|
|
10358
|
-
var _path$
|
|
10359
|
-
function _extends$
|
|
10361
|
+
var _path$c;
|
|
10362
|
+
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); }
|
|
10360
10363
|
var SvgIcCross = function SvgIcCross(props) {
|
|
10361
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10364
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
10362
10365
|
width: "1em",
|
|
10363
10366
|
height: "1em",
|
|
10364
10367
|
viewBox: "0 0 24 24",
|
|
10365
10368
|
fill: "none",
|
|
10366
10369
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10367
|
-
}, props), _path$
|
|
10370
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10368
10371
|
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",
|
|
10369
10372
|
fill: "#596168"
|
|
10370
10373
|
})));
|
|
@@ -14663,38 +14666,38 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
14663
14666
|
|
|
14664
14667
|
var Tippy = index;
|
|
14665
14668
|
|
|
14666
|
-
var _path$
|
|
14667
|
-
function _extends$
|
|
14669
|
+
var _path$b;
|
|
14670
|
+
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); }
|
|
14668
14671
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
14669
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14672
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
14670
14673
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14671
14674
|
width: "1em",
|
|
14672
14675
|
height: "1em",
|
|
14673
14676
|
viewBox: "0 0 24 24"
|
|
14674
|
-
}, props), _path$
|
|
14677
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14675
14678
|
fill: "#767D84",
|
|
14676
14679
|
fillRule: "evenodd",
|
|
14677
14680
|
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"
|
|
14678
14681
|
})));
|
|
14679
14682
|
};
|
|
14680
14683
|
|
|
14681
|
-
var _path$
|
|
14682
|
-
function _extends$
|
|
14684
|
+
var _path$a;
|
|
14685
|
+
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); }
|
|
14683
14686
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
14684
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14687
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
14685
14688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14686
14689
|
viewBox: "0 0 17 16",
|
|
14687
14690
|
width: "1em",
|
|
14688
14691
|
height: "1em"
|
|
14689
|
-
}, props), _path$
|
|
14692
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14690
14693
|
fill: "#767D84",
|
|
14691
14694
|
fillRule: "evenodd",
|
|
14692
14695
|
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"
|
|
14693
14696
|
})));
|
|
14694
14697
|
};
|
|
14695
14698
|
|
|
14696
|
-
var css_248z$
|
|
14697
|
-
styleInject(css_248z$
|
|
14699
|
+
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)}";
|
|
14700
|
+
styleInject(css_248z$5);
|
|
14698
14701
|
|
|
14699
14702
|
// This component will handle some of the new tippy designs and interactions
|
|
14700
14703
|
// So this can be updated to support further for new features or interactions
|
|
@@ -14738,16 +14741,16 @@ function TippyCustomized(props) {
|
|
|
14738
14741
|
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 })));
|
|
14739
14742
|
}
|
|
14740
14743
|
|
|
14741
|
-
var _path$
|
|
14742
|
-
function _extends$
|
|
14744
|
+
var _path$9, _circle, _path2$1;
|
|
14745
|
+
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); }
|
|
14743
14746
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
14744
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14747
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
14745
14748
|
width: "1em",
|
|
14746
14749
|
height: "1em",
|
|
14747
14750
|
viewBox: "0 0 20 20",
|
|
14748
14751
|
fill: "none",
|
|
14749
14752
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14750
|
-
}, props), _path$
|
|
14753
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14751
14754
|
d: "M10 10H3.333",
|
|
14752
14755
|
stroke: "#596168",
|
|
14753
14756
|
strokeWidth: 1.5,
|
|
@@ -14775,15 +14778,15 @@ function PropagateTagInfo(_a) {
|
|
|
14775
14778
|
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" })] })) })));
|
|
14776
14779
|
}
|
|
14777
14780
|
|
|
14778
|
-
var _path$
|
|
14779
|
-
function _extends$
|
|
14781
|
+
var _path$8;
|
|
14782
|
+
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); }
|
|
14780
14783
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
14781
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14784
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
14782
14785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14783
14786
|
width: "1em",
|
|
14784
14787
|
height: "1em",
|
|
14785
14788
|
viewBox: "0 0 20 20"
|
|
14786
|
-
}, props), _path$
|
|
14789
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14787
14790
|
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",
|
|
14788
14791
|
fill: "#06C",
|
|
14789
14792
|
fillRule: "evenodd"
|
|
@@ -15017,15 +15020,15 @@ var TagDetails = function (_a) {
|
|
|
15017
15020
|
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" }) }))] })));
|
|
15018
15021
|
};
|
|
15019
15022
|
|
|
15020
|
-
var _path$
|
|
15021
|
-
function _extends$
|
|
15023
|
+
var _path$7;
|
|
15024
|
+
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); }
|
|
15022
15025
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
15023
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15026
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
15024
15027
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15025
15028
|
width: "1em",
|
|
15026
15029
|
height: "1em",
|
|
15027
15030
|
viewBox: "0 0 24 24"
|
|
15028
|
-
}, props), _path$
|
|
15031
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15029
15032
|
className: "ic-add_svg__fill-color",
|
|
15030
15033
|
fill: "#999",
|
|
15031
15034
|
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"
|
|
@@ -15143,8 +15146,8 @@ function ForceDeleteDialog(_a) {
|
|
|
15143
15146
|
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?" })] }) })) }));
|
|
15144
15147
|
}
|
|
15145
15148
|
|
|
15146
|
-
function _extends$
|
|
15147
|
-
_extends$
|
|
15149
|
+
function _extends$c() {
|
|
15150
|
+
_extends$c = Object.assign ? Object.assign.bind() : function (target) {
|
|
15148
15151
|
for (var i = 1; i < arguments.length; i++) {
|
|
15149
15152
|
var source = arguments[i];
|
|
15150
15153
|
for (var key in source) {
|
|
@@ -15155,7 +15158,7 @@ function _extends$b() {
|
|
|
15155
15158
|
}
|
|
15156
15159
|
return target;
|
|
15157
15160
|
};
|
|
15158
|
-
return _extends$
|
|
15161
|
+
return _extends$c.apply(this, arguments);
|
|
15159
15162
|
}
|
|
15160
15163
|
|
|
15161
15164
|
/*
|
|
@@ -18696,7 +18699,7 @@ var Menu = function Menu(props) {
|
|
|
18696
18699
|
getStyles = props.getStyles,
|
|
18697
18700
|
innerRef = props.innerRef,
|
|
18698
18701
|
innerProps = props.innerProps;
|
|
18699
|
-
return jsx("div", _extends$
|
|
18702
|
+
return jsx("div", _extends$c({
|
|
18700
18703
|
css: getStyles('menu', props),
|
|
18701
18704
|
className: cx({
|
|
18702
18705
|
menu: true
|
|
@@ -18728,7 +18731,7 @@ var MenuList = function MenuList(props) {
|
|
|
18728
18731
|
innerProps = props.innerProps,
|
|
18729
18732
|
innerRef = props.innerRef,
|
|
18730
18733
|
isMulti = props.isMulti;
|
|
18731
|
-
return jsx("div", _extends$
|
|
18734
|
+
return jsx("div", _extends$c({
|
|
18732
18735
|
css: getStyles('menuList', props),
|
|
18733
18736
|
className: cx({
|
|
18734
18737
|
'menu-list': true,
|
|
@@ -18759,7 +18762,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
18759
18762
|
cx = props.cx,
|
|
18760
18763
|
getStyles = props.getStyles,
|
|
18761
18764
|
innerProps = props.innerProps;
|
|
18762
|
-
return jsx("div", _extends$
|
|
18765
|
+
return jsx("div", _extends$c({
|
|
18763
18766
|
css: getStyles('noOptionsMessage', props),
|
|
18764
18767
|
className: cx({
|
|
18765
18768
|
'menu-notice': true,
|
|
@@ -18776,7 +18779,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
18776
18779
|
cx = props.cx,
|
|
18777
18780
|
getStyles = props.getStyles,
|
|
18778
18781
|
innerProps = props.innerProps;
|
|
18779
|
-
return jsx("div", _extends$
|
|
18782
|
+
return jsx("div", _extends$c({
|
|
18780
18783
|
css: getStyles('loadingMessage', props),
|
|
18781
18784
|
className: cx({
|
|
18782
18785
|
'menu-notice': true,
|
|
@@ -18864,7 +18867,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
18864
18867
|
rect: rect
|
|
18865
18868
|
}; // same wrapper element whether fixed or portalled
|
|
18866
18869
|
|
|
18867
|
-
var menuWrapper = jsx("div", _extends$
|
|
18870
|
+
var menuWrapper = jsx("div", _extends$c({
|
|
18868
18871
|
css: getStyles('menuPortal', state),
|
|
18869
18872
|
className: cx({
|
|
18870
18873
|
'menu-portal': true
|
|
@@ -18900,7 +18903,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
18900
18903
|
innerProps = props.innerProps,
|
|
18901
18904
|
isDisabled = props.isDisabled,
|
|
18902
18905
|
isRtl = props.isRtl;
|
|
18903
|
-
return jsx("div", _extends$
|
|
18906
|
+
return jsx("div", _extends$c({
|
|
18904
18907
|
css: getStyles('container', props),
|
|
18905
18908
|
className: cx({
|
|
18906
18909
|
'--is-disabled': isDisabled,
|
|
@@ -18935,7 +18938,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
18935
18938
|
isMulti = props.isMulti,
|
|
18936
18939
|
getStyles = props.getStyles,
|
|
18937
18940
|
hasValue = props.hasValue;
|
|
18938
|
-
return jsx("div", _extends$
|
|
18941
|
+
return jsx("div", _extends$c({
|
|
18939
18942
|
css: getStyles('valueContainer', props),
|
|
18940
18943
|
className: cx({
|
|
18941
18944
|
'value-container': true,
|
|
@@ -18961,7 +18964,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
18961
18964
|
cx = props.cx,
|
|
18962
18965
|
innerProps = props.innerProps,
|
|
18963
18966
|
getStyles = props.getStyles;
|
|
18964
|
-
return jsx("div", _extends$
|
|
18967
|
+
return jsx("div", _extends$c({
|
|
18965
18968
|
css: getStyles('indicatorsContainer', props),
|
|
18966
18969
|
className: cx({
|
|
18967
18970
|
indicators: true
|
|
@@ -18992,7 +18995,7 @@ var Svg = function Svg(_ref) {
|
|
|
18992
18995
|
var size = _ref.size,
|
|
18993
18996
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
18994
18997
|
|
|
18995
|
-
return jsx("svg", _extends$
|
|
18998
|
+
return jsx("svg", _extends$c({
|
|
18996
18999
|
height: size,
|
|
18997
19000
|
width: size,
|
|
18998
19001
|
viewBox: "0 0 20 20",
|
|
@@ -19003,14 +19006,14 @@ var Svg = function Svg(_ref) {
|
|
|
19003
19006
|
};
|
|
19004
19007
|
|
|
19005
19008
|
var CrossIcon = function CrossIcon(props) {
|
|
19006
|
-
return jsx(Svg, _extends$
|
|
19009
|
+
return jsx(Svg, _extends$c({
|
|
19007
19010
|
size: 20
|
|
19008
19011
|
}, props), jsx("path", {
|
|
19009
19012
|
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"
|
|
19010
19013
|
}));
|
|
19011
19014
|
};
|
|
19012
19015
|
var DownChevron = function DownChevron(props) {
|
|
19013
|
-
return jsx(Svg, _extends$
|
|
19016
|
+
return jsx(Svg, _extends$c({
|
|
19014
19017
|
size: 20
|
|
19015
19018
|
}, props), jsx("path", {
|
|
19016
19019
|
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"
|
|
@@ -19037,13 +19040,13 @@ var baseCSS = function baseCSS(_ref3) {
|
|
|
19037
19040
|
};
|
|
19038
19041
|
|
|
19039
19042
|
var dropdownIndicatorCSS = baseCSS;
|
|
19040
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
|
19043
|
+
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
19041
19044
|
var children = props.children,
|
|
19042
19045
|
className = props.className,
|
|
19043
19046
|
cx = props.cx,
|
|
19044
19047
|
getStyles = props.getStyles,
|
|
19045
19048
|
innerProps = props.innerProps;
|
|
19046
|
-
return jsx("div", _extends$
|
|
19049
|
+
return jsx("div", _extends$c({
|
|
19047
19050
|
css: getStyles('dropdownIndicator', props),
|
|
19048
19051
|
className: cx({
|
|
19049
19052
|
indicator: true,
|
|
@@ -19058,7 +19061,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
19058
19061
|
cx = props.cx,
|
|
19059
19062
|
getStyles = props.getStyles,
|
|
19060
19063
|
innerProps = props.innerProps;
|
|
19061
|
-
return jsx("div", _extends$
|
|
19064
|
+
return jsx("div", _extends$c({
|
|
19062
19065
|
css: getStyles('clearIndicator', props),
|
|
19063
19066
|
className: cx({
|
|
19064
19067
|
indicator: true,
|
|
@@ -19088,7 +19091,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
19088
19091
|
cx = props.cx,
|
|
19089
19092
|
getStyles = props.getStyles,
|
|
19090
19093
|
innerProps = props.innerProps;
|
|
19091
|
-
return jsx("span", _extends$
|
|
19094
|
+
return jsx("span", _extends$c({}, innerProps, {
|
|
19092
19095
|
css: getStyles('indicatorSeparator', props),
|
|
19093
19096
|
className: cx({
|
|
19094
19097
|
'indicator-separator': true
|
|
@@ -19143,7 +19146,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
19143
19146
|
getStyles = props.getStyles,
|
|
19144
19147
|
innerProps = props.innerProps,
|
|
19145
19148
|
isRtl = props.isRtl;
|
|
19146
|
-
return jsx("div", _extends$
|
|
19149
|
+
return jsx("div", _extends$c({
|
|
19147
19150
|
css: getStyles('loadingIndicator', props),
|
|
19148
19151
|
className: cx({
|
|
19149
19152
|
indicator: true,
|
|
@@ -19204,7 +19207,7 @@ var Control = function Control(props) {
|
|
|
19204
19207
|
innerRef = props.innerRef,
|
|
19205
19208
|
innerProps = props.innerProps,
|
|
19206
19209
|
menuIsOpen = props.menuIsOpen;
|
|
19207
|
-
return jsx("div", _extends$
|
|
19210
|
+
return jsx("div", _extends$c({
|
|
19208
19211
|
ref: innerRef,
|
|
19209
19212
|
css: getStyles('control', props),
|
|
19210
19213
|
className: cx({
|
|
@@ -19236,12 +19239,12 @@ var Group = function Group(props) {
|
|
|
19236
19239
|
label = props.label,
|
|
19237
19240
|
theme = props.theme,
|
|
19238
19241
|
selectProps = props.selectProps;
|
|
19239
|
-
return jsx("div", _extends$
|
|
19242
|
+
return jsx("div", _extends$c({
|
|
19240
19243
|
css: getStyles('group', props),
|
|
19241
19244
|
className: cx({
|
|
19242
19245
|
group: true
|
|
19243
19246
|
}, className)
|
|
19244
|
-
}, innerProps), jsx(Heading, _extends$
|
|
19247
|
+
}, innerProps), jsx(Heading, _extends$c({}, headingProps, {
|
|
19245
19248
|
selectProps: selectProps,
|
|
19246
19249
|
theme: theme,
|
|
19247
19250
|
getStyles: getStyles,
|
|
@@ -19273,7 +19276,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
19273
19276
|
_cleanCommonProps.data;
|
|
19274
19277
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
19275
19278
|
|
|
19276
|
-
return jsx("div", _extends$
|
|
19279
|
+
return jsx("div", _extends$c({
|
|
19277
19280
|
css: getStyles('groupHeading', props),
|
|
19278
19281
|
className: cx({
|
|
19279
19282
|
'group-heading': true
|
|
@@ -19349,7 +19352,7 @@ var Input = function Input(props) {
|
|
|
19349
19352
|
}, className),
|
|
19350
19353
|
css: getStyles('input', props),
|
|
19351
19354
|
"data-value": value || ''
|
|
19352
|
-
}, jsx("input", _extends$
|
|
19355
|
+
}, jsx("input", _extends$c({
|
|
19353
19356
|
className: cx({
|
|
19354
19357
|
input: true
|
|
19355
19358
|
}, inputClassName),
|
|
@@ -19419,7 +19422,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
19419
19422
|
function MultiValueRemove$1(_ref5) {
|
|
19420
19423
|
var children = _ref5.children,
|
|
19421
19424
|
innerProps = _ref5.innerProps;
|
|
19422
|
-
return jsx("div", _extends$
|
|
19425
|
+
return jsx("div", _extends$c({
|
|
19423
19426
|
role: "button"
|
|
19424
19427
|
}, innerProps), children || jsx(CrossIcon, {
|
|
19425
19428
|
size: 14
|
|
@@ -19508,7 +19511,7 @@ var Option$1 = function Option(props) {
|
|
|
19508
19511
|
isSelected = props.isSelected,
|
|
19509
19512
|
innerRef = props.innerRef,
|
|
19510
19513
|
innerProps = props.innerProps;
|
|
19511
|
-
return jsx("div", _extends$
|
|
19514
|
+
return jsx("div", _extends$c({
|
|
19512
19515
|
css: getStyles('option', props),
|
|
19513
19516
|
className: cx({
|
|
19514
19517
|
option: true,
|
|
@@ -19540,7 +19543,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19540
19543
|
cx = props.cx,
|
|
19541
19544
|
getStyles = props.getStyles,
|
|
19542
19545
|
innerProps = props.innerProps;
|
|
19543
|
-
return jsx("div", _extends$
|
|
19546
|
+
return jsx("div", _extends$c({
|
|
19544
19547
|
css: getStyles('placeholder', props),
|
|
19545
19548
|
className: cx({
|
|
19546
19549
|
placeholder: true
|
|
@@ -19573,7 +19576,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19573
19576
|
getStyles = props.getStyles,
|
|
19574
19577
|
isDisabled = props.isDisabled,
|
|
19575
19578
|
innerProps = props.innerProps;
|
|
19576
|
-
return jsx("div", _extends$
|
|
19579
|
+
return jsx("div", _extends$c({
|
|
19577
19580
|
css: getStyles('singleValue', props),
|
|
19578
19581
|
className: cx({
|
|
19579
19582
|
'single-value': true,
|
|
@@ -19585,7 +19588,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19585
19588
|
var components = {
|
|
19586
19589
|
ClearIndicator: ClearIndicator$1,
|
|
19587
19590
|
Control: Control,
|
|
19588
|
-
DropdownIndicator: DropdownIndicator,
|
|
19591
|
+
DropdownIndicator: DropdownIndicator$1,
|
|
19589
19592
|
DownChevron: DownChevron,
|
|
19590
19593
|
CrossIcon: CrossIcon,
|
|
19591
19594
|
Group: Group,
|
|
@@ -19821,7 +19824,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
19821
19824
|
};
|
|
19822
19825
|
|
|
19823
19826
|
var A11yText = function A11yText(props) {
|
|
19824
|
-
return jsx("span", _extends$
|
|
19827
|
+
return jsx("span", _extends$c({
|
|
19825
19828
|
css: _ref
|
|
19826
19829
|
}, props));
|
|
19827
19830
|
};
|
|
@@ -20357,7 +20360,7 @@ function DummyInput(_ref) {
|
|
|
20357
20360
|
var innerRef = _ref.innerRef,
|
|
20358
20361
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20359
20362
|
|
|
20360
|
-
return jsx("input", _extends$
|
|
20363
|
+
return jsx("input", _extends$c({
|
|
20361
20364
|
ref: innerRef
|
|
20362
20365
|
}, props, {
|
|
20363
20366
|
css: /*#__PURE__*/css$2({
|
|
@@ -21992,7 +21995,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
21992
21995
|
|
|
21993
21996
|
if (!isSearchable) {
|
|
21994
21997
|
// use a dummy input to maintain focus/blur functionality
|
|
21995
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
21998
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$c({
|
|
21996
21999
|
id: id,
|
|
21997
22000
|
innerRef: this.getInputRef,
|
|
21998
22001
|
onBlur: this.onInputBlur,
|
|
@@ -22006,7 +22009,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22006
22009
|
}, ariaAttributes));
|
|
22007
22010
|
}
|
|
22008
22011
|
|
|
22009
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
22012
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$c({}, commonProps, {
|
|
22010
22013
|
autoCapitalize: "none",
|
|
22011
22014
|
autoComplete: "off",
|
|
22012
22015
|
autoCorrect: "off",
|
|
@@ -22050,7 +22053,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22050
22053
|
isFocused = _this$state5.isFocused;
|
|
22051
22054
|
|
|
22052
22055
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
22053
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
22056
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$c({}, commonProps, {
|
|
22054
22057
|
key: "placeholder",
|
|
22055
22058
|
isDisabled: isDisabled,
|
|
22056
22059
|
isFocused: isFocused,
|
|
@@ -22064,7 +22067,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22064
22067
|
return selectValue.map(function (opt, index) {
|
|
22065
22068
|
var isOptionFocused = opt === focusedValue;
|
|
22066
22069
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
22067
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
22070
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$c({}, commonProps, {
|
|
22068
22071
|
components: {
|
|
22069
22072
|
Container: MultiValueContainer,
|
|
22070
22073
|
Label: MultiValueLabel,
|
|
@@ -22096,7 +22099,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22096
22099
|
}
|
|
22097
22100
|
|
|
22098
22101
|
var singleValue = selectValue[0];
|
|
22099
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
22102
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$c({}, commonProps, {
|
|
22100
22103
|
data: singleValue,
|
|
22101
22104
|
isDisabled: isDisabled
|
|
22102
22105
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -22122,7 +22125,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22122
22125
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
22123
22126
|
'aria-hidden': 'true'
|
|
22124
22127
|
};
|
|
22125
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
22128
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$c({}, commonProps, {
|
|
22126
22129
|
innerProps: innerProps,
|
|
22127
22130
|
isFocused: isFocused
|
|
22128
22131
|
}));
|
|
@@ -22142,7 +22145,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22142
22145
|
var innerProps = {
|
|
22143
22146
|
'aria-hidden': 'true'
|
|
22144
22147
|
};
|
|
22145
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
22148
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$c({}, commonProps, {
|
|
22146
22149
|
innerProps: innerProps,
|
|
22147
22150
|
isDisabled: isDisabled,
|
|
22148
22151
|
isFocused: isFocused
|
|
@@ -22160,7 +22163,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22160
22163
|
var commonProps = this.commonProps;
|
|
22161
22164
|
var isDisabled = this.props.isDisabled;
|
|
22162
22165
|
var isFocused = this.state.isFocused;
|
|
22163
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
22166
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$c({}, commonProps, {
|
|
22164
22167
|
isDisabled: isDisabled,
|
|
22165
22168
|
isFocused: isFocused
|
|
22166
22169
|
}));
|
|
@@ -22180,7 +22183,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22180
22183
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
22181
22184
|
'aria-hidden': 'true'
|
|
22182
22185
|
};
|
|
22183
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
22186
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$c({}, commonProps, {
|
|
22184
22187
|
innerProps: innerProps,
|
|
22185
22188
|
isDisabled: isDisabled,
|
|
22186
22189
|
isFocused: isFocused
|
|
@@ -22243,7 +22246,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22243
22246
|
onMouseOver: onHover,
|
|
22244
22247
|
tabIndex: -1
|
|
22245
22248
|
};
|
|
22246
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
22249
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$c({}, commonProps, {
|
|
22247
22250
|
innerProps: innerProps,
|
|
22248
22251
|
data: data,
|
|
22249
22252
|
isDisabled: isDisabled,
|
|
@@ -22267,7 +22270,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22267
22270
|
groupIndex = item.index;
|
|
22268
22271
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
22269
22272
|
var headingId = "".concat(groupId, "-heading");
|
|
22270
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
22273
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$c({}, commonProps, {
|
|
22271
22274
|
key: groupId,
|
|
22272
22275
|
data: _data,
|
|
22273
22276
|
options: options,
|
|
@@ -22306,12 +22309,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22306
22309
|
menuPosition: menuPosition,
|
|
22307
22310
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
22308
22311
|
};
|
|
22309
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
22312
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$c({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
22310
22313
|
var ref = _ref4.ref,
|
|
22311
22314
|
_ref4$placerProps = _ref4.placerProps,
|
|
22312
22315
|
placement = _ref4$placerProps.placement,
|
|
22313
22316
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
22314
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
22317
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$c({}, commonProps, menuPlacementProps, {
|
|
22315
22318
|
innerRef: ref,
|
|
22316
22319
|
innerProps: {
|
|
22317
22320
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -22326,7 +22329,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22326
22329
|
onBottomArrive: onMenuScrollToBottom,
|
|
22327
22330
|
lockEnabled: menuShouldBlockScroll
|
|
22328
22331
|
}, function (scrollTargetRef) {
|
|
22329
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
22332
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$c({}, commonProps, {
|
|
22330
22333
|
innerRef: function innerRef(instance) {
|
|
22331
22334
|
_this4.getMenuListRef(instance);
|
|
22332
22335
|
|
|
@@ -22341,7 +22344,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22341
22344
|
// so we use the same component. the actual portalling logic is forked
|
|
22342
22345
|
// within the component based on `menuPosition`
|
|
22343
22346
|
|
|
22344
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
22347
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$c({}, commonProps, {
|
|
22345
22348
|
appendTo: menuPortalTarget,
|
|
22346
22349
|
controlElement: this.controlRef,
|
|
22347
22350
|
menuPlacement: menuPlacement,
|
|
@@ -22406,7 +22409,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22406
22409
|
isFocused = _this$state6.isFocused,
|
|
22407
22410
|
selectValue = _this$state6.selectValue;
|
|
22408
22411
|
var focusableOptions = this.getFocusableOptions();
|
|
22409
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
22412
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$c({}, commonProps, {
|
|
22410
22413
|
id: this.getElementId('live-region'),
|
|
22411
22414
|
ariaSelection: ariaSelection,
|
|
22412
22415
|
focusedOption: focusedOption,
|
|
@@ -22432,7 +22435,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22432
22435
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
22433
22436
|
var isFocused = this.state.isFocused;
|
|
22434
22437
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
22435
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
22438
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$c({}, commonProps, {
|
|
22436
22439
|
className: className,
|
|
22437
22440
|
innerProps: {
|
|
22438
22441
|
id: id,
|
|
@@ -22440,7 +22443,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22440
22443
|
},
|
|
22441
22444
|
isDisabled: isDisabled,
|
|
22442
22445
|
isFocused: isFocused
|
|
22443
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
22446
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$c({}, commonProps, {
|
|
22444
22447
|
innerRef: this.getControlRef,
|
|
22445
22448
|
innerProps: {
|
|
22446
22449
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -22449,9 +22452,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22449
22452
|
isDisabled: isDisabled,
|
|
22450
22453
|
isFocused: isFocused,
|
|
22451
22454
|
menuIsOpen: menuIsOpen
|
|
22452
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
22455
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$c({}, commonProps, {
|
|
22453
22456
|
isDisabled: isDisabled
|
|
22454
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
22457
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$c({}, commonProps, {
|
|
22455
22458
|
isDisabled: isDisabled
|
|
22456
22459
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
22457
22460
|
}
|
|
@@ -22524,17 +22527,17 @@ Select$1.defaultProps = defaultProps;
|
|
|
22524
22527
|
|
|
22525
22528
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22526
22529
|
var baseSelectProps = useStateManager(props);
|
|
22527
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
22530
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$c({
|
|
22528
22531
|
ref: ref
|
|
22529
22532
|
}, baseSelectProps));
|
|
22530
22533
|
});
|
|
22531
22534
|
|
|
22532
|
-
var
|
|
22535
|
+
var ReactSelect = StateManagedSelect;
|
|
22533
22536
|
|
|
22534
22537
|
var _g$4;
|
|
22535
|
-
function _extends$
|
|
22538
|
+
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); }
|
|
22536
22539
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
22537
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22540
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
22538
22541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22539
22542
|
viewBox: "0 0 28 28",
|
|
22540
22543
|
width: "1em",
|
|
@@ -22555,15 +22558,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
22555
22558
|
}))));
|
|
22556
22559
|
};
|
|
22557
22560
|
|
|
22558
|
-
var _path$
|
|
22559
|
-
function _extends$
|
|
22561
|
+
var _path$6;
|
|
22562
|
+
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); }
|
|
22560
22563
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
22561
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22564
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
22562
22565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22563
22566
|
width: "1em",
|
|
22564
22567
|
height: "1em",
|
|
22565
22568
|
viewBox: "0 0 24 24"
|
|
22566
|
-
}, props), _path$
|
|
22569
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22567
22570
|
stroke: "#06C",
|
|
22568
22571
|
strokeLinecap: "round",
|
|
22569
22572
|
strokeLinejoin: "round",
|
|
@@ -22575,9 +22578,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
22575
22578
|
};
|
|
22576
22579
|
|
|
22577
22580
|
var _g$3;
|
|
22578
|
-
function _extends$
|
|
22581
|
+
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); }
|
|
22579
22582
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
22580
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22583
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
22581
22584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22582
22585
|
width: "1em",
|
|
22583
22586
|
height: "1em",
|
|
@@ -22639,11 +22642,11 @@ var multiSelectStyles = {
|
|
|
22639
22642
|
valueContainer: function (base, state) { return (__assign(__assign({}, base), { color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); },
|
|
22640
22643
|
};
|
|
22641
22644
|
var CustomSelect = function (props) {
|
|
22642
|
-
return jsxRuntime.jsx(
|
|
22645
|
+
return jsxRuntime.jsx(ReactSelect, __assign({}, props));
|
|
22643
22646
|
};
|
|
22644
22647
|
|
|
22645
|
-
var css_248z$
|
|
22646
|
-
styleInject(css_248z$
|
|
22648
|
+
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}";
|
|
22649
|
+
styleInject(css_248z$4);
|
|
22647
22650
|
|
|
22648
22651
|
function InfoColourBar(_a) {
|
|
22649
22652
|
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;
|
|
@@ -22807,7 +22810,7 @@ Valid States of Checkbox:
|
|
|
22807
22810
|
5. disabled: false, checked: true, value: INTERMIDIATE
|
|
22808
22811
|
6. disabled: false, checked: true, value: CHECKED
|
|
22809
22812
|
*/
|
|
22810
|
-
var Checkbox = /** @class */ (function (_super) {
|
|
22813
|
+
var Checkbox$1 = /** @class */ (function (_super) {
|
|
22811
22814
|
__extends(Checkbox, _super);
|
|
22812
22815
|
function Checkbox() {
|
|
22813
22816
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -22820,8 +22823,8 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
22820
22823
|
return Checkbox;
|
|
22821
22824
|
}(React.Component));
|
|
22822
22825
|
|
|
22823
|
-
var css_248z$
|
|
22824
|
-
styleInject(css_248z$
|
|
22826
|
+
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}";
|
|
22827
|
+
styleInject(css_248z$3);
|
|
22825
22828
|
|
|
22826
22829
|
var Toggle = function (_a) {
|
|
22827
22830
|
var _b;
|
|
@@ -22845,8 +22848,8 @@ var Toggle = function (_a) {
|
|
|
22845
22848
|
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) }) }))] })));
|
|
22846
22849
|
};
|
|
22847
22850
|
|
|
22848
|
-
var css_248z$
|
|
22849
|
-
styleInject(css_248z$
|
|
22851
|
+
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}";
|
|
22852
|
+
styleInject(css_248z$2);
|
|
22850
22853
|
|
|
22851
22854
|
function ScanVulnerabilitiesTable(_a) {
|
|
22852
22855
|
var vulnerabilities = _a.vulnerabilities;
|
|
@@ -22861,8 +22864,8 @@ function ScanVulnerabilitiesTable(_a) {
|
|
|
22861
22864
|
})] }) })));
|
|
22862
22865
|
}
|
|
22863
22866
|
|
|
22864
|
-
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}";
|
|
22865
|
-
styleInject(css_248z);
|
|
22867
|
+
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}";
|
|
22868
|
+
styleInject(css_248z$1);
|
|
22866
22869
|
|
|
22867
22870
|
var RadioContext = React.createContext(null);
|
|
22868
22871
|
function useRadioContext() {
|
|
@@ -22956,9 +22959,9 @@ exports.ConsequenceAction = void 0;
|
|
|
22956
22959
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
22957
22960
|
|
|
22958
22961
|
var _g$2;
|
|
22959
|
-
function _extends$
|
|
22962
|
+
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); }
|
|
22960
22963
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
22961
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22964
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
22962
22965
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22963
22966
|
width: "1em",
|
|
22964
22967
|
height: "1em",
|
|
@@ -23037,16 +23040,16 @@ function DeleteComponent(_a) {
|
|
|
23037
23040
|
return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
|
|
23038
23041
|
}
|
|
23039
23042
|
|
|
23040
|
-
var _path$
|
|
23041
|
-
function _extends$
|
|
23043
|
+
var _path$5;
|
|
23044
|
+
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); }
|
|
23042
23045
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
23043
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23046
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
23044
23047
|
width: "1em",
|
|
23045
23048
|
height: "1em",
|
|
23046
23049
|
viewBox: "0 0 20 20",
|
|
23047
23050
|
fill: "none",
|
|
23048
23051
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23049
|
-
}, props), _path$
|
|
23052
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23050
23053
|
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",
|
|
23051
23054
|
stroke: "#596168",
|
|
23052
23055
|
strokeWidth: 1.5,
|
|
@@ -23055,16 +23058,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
23055
23058
|
})));
|
|
23056
23059
|
};
|
|
23057
23060
|
|
|
23058
|
-
var _path$
|
|
23059
|
-
function _extends$
|
|
23061
|
+
var _path$4, _path2, _path3;
|
|
23062
|
+
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); }
|
|
23060
23063
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
23061
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23064
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
23062
23065
|
width: "1em",
|
|
23063
23066
|
height: "1em",
|
|
23064
23067
|
viewBox: "0 0 12 12",
|
|
23065
23068
|
fill: "none",
|
|
23066
23069
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23067
|
-
}, props), _path$
|
|
23070
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23068
23071
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
23069
23072
|
fill: "#767D84"
|
|
23070
23073
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -23082,15 +23085,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
23082
23085
|
})));
|
|
23083
23086
|
};
|
|
23084
23087
|
|
|
23085
|
-
var _path$
|
|
23086
|
-
function _extends$
|
|
23088
|
+
var _path$3;
|
|
23089
|
+
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); }
|
|
23087
23090
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
23088
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23091
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
23089
23092
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23090
23093
|
width: "1em",
|
|
23091
23094
|
height: "1em",
|
|
23092
23095
|
viewBox: "0 0 14 14"
|
|
23093
|
-
}, props), _path$
|
|
23096
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23094
23097
|
fill: "#959BA1",
|
|
23095
23098
|
className: "ic-minus_svg__fill-color",
|
|
23096
23099
|
fillRule: "evenodd",
|
|
@@ -23099,9 +23102,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
23099
23102
|
};
|
|
23100
23103
|
|
|
23101
23104
|
var _g$1;
|
|
23102
|
-
function _extends$
|
|
23105
|
+
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); }
|
|
23103
23106
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
23104
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23107
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
23105
23108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23106
23109
|
width: "1em",
|
|
23107
23110
|
height: "1em",
|
|
@@ -23118,16 +23121,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
23118
23121
|
}))));
|
|
23119
23122
|
};
|
|
23120
23123
|
|
|
23121
|
-
var _path$
|
|
23122
|
-
function _extends$
|
|
23124
|
+
var _path$2;
|
|
23125
|
+
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); }
|
|
23123
23126
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
23124
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23127
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
23125
23128
|
width: "1em",
|
|
23126
23129
|
height: "1em",
|
|
23127
23130
|
viewBox: "0 0 16 16",
|
|
23128
23131
|
fill: "none",
|
|
23129
23132
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23130
|
-
}, props), _path$
|
|
23133
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23131
23134
|
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",
|
|
23132
23135
|
fill: "#3B444C"
|
|
23133
23136
|
})));
|
|
@@ -23479,9 +23482,9 @@ function useDebouncedEffect(callback, delay, deps) {
|
|
|
23479
23482
|
}
|
|
23480
23483
|
|
|
23481
23484
|
var _g;
|
|
23482
|
-
function _extends$
|
|
23485
|
+
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); }
|
|
23483
23486
|
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
23484
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23487
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
23485
23488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23486
23489
|
width: "1em",
|
|
23487
23490
|
height: "1em",
|
|
@@ -23549,15 +23552,15 @@ function Grid(_a) {
|
|
|
23549
23552
|
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
|
|
23550
23553
|
}
|
|
23551
23554
|
|
|
23552
|
-
var _path;
|
|
23553
|
-
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); }
|
|
23555
|
+
var _path$1;
|
|
23556
|
+
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); }
|
|
23554
23557
|
var SvgIcCopy = function SvgIcCopy(props) {
|
|
23555
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
23558
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
23556
23559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23557
23560
|
width: "1em",
|
|
23558
23561
|
height: "1em",
|
|
23559
23562
|
viewBox: "0 0 20 20"
|
|
23560
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23563
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23561
23564
|
fill: "#767D84",
|
|
23562
23565
|
fillRule: "evenodd",
|
|
23563
23566
|
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"
|
|
@@ -23616,6 +23619,20 @@ var useSuperAdmin = function () {
|
|
|
23616
23619
|
return { isSuperAdmin: isSuperAdmin };
|
|
23617
23620
|
};
|
|
23618
23621
|
|
|
23622
|
+
var useClickOutside = function (ref, callback) {
|
|
23623
|
+
React.useEffect(function () {
|
|
23624
|
+
var handleClickOutside = function (e) {
|
|
23625
|
+
if ((ref === null || ref === void 0 ? void 0 : ref.current) && !ref.current.contains(e.target)) {
|
|
23626
|
+
callback();
|
|
23627
|
+
}
|
|
23628
|
+
};
|
|
23629
|
+
document.addEventListener('click', handleClickOutside);
|
|
23630
|
+
return function () {
|
|
23631
|
+
document.removeEventListener('click', handleClickOutside);
|
|
23632
|
+
};
|
|
23633
|
+
}, [ref, callback]);
|
|
23634
|
+
};
|
|
23635
|
+
|
|
23619
23636
|
var StatusConstants = {
|
|
23620
23637
|
NOT_DEPLOYED: {
|
|
23621
23638
|
noSpaceLower: 'notdeployed',
|
|
@@ -23711,12 +23728,228 @@ function AppStatus(_a) {
|
|
|
23711
23728
|
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 }))] })));
|
|
23712
23729
|
}
|
|
23713
23730
|
|
|
23731
|
+
var FieldRowWithLabel = function (_a) {
|
|
23732
|
+
var showLabel = _a.showLabel, label = _a.label, required = _a.required, children = _a.children, id = _a.id, _b = _a.shouldAlignCenter, shouldAlignCenter = _b === void 0 ? true : _b;
|
|
23733
|
+
return (jsxRuntime.jsxs("div", __assign({ className: showLabel
|
|
23734
|
+
? "display-grid dc__gap-12 rjsf-form-template__field ".concat(shouldAlignCenter ? 'flex-align-center' : '')
|
|
23735
|
+
: '' }, { children: [showLabel && (jsxRuntime.jsx("label", __assign({ className: "cn-7 fs-13 lh-32 fw-4 flexbox mb-0", htmlFor: id }, { children: !!label && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", __assign({ className: "dc__ellipsis-right" }, { children: label })), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })) }))), children] })));
|
|
23736
|
+
};
|
|
23737
|
+
|
|
23738
|
+
var ActionButton = function (_a) {
|
|
23739
|
+
var canAdd = _a.canAdd, onAddClick = _a.onAddClick, disabled = _a.disabled, readonly = _a.readonly, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23740
|
+
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23741
|
+
return (canAdd && (jsxRuntime.jsx(AddButton, { onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry })));
|
|
23742
|
+
};
|
|
23743
|
+
var ArrayFieldTemplate = function (_a) {
|
|
23744
|
+
var canAdd = _a.canAdd, className = _a.className, disabled = _a.disabled, idSchema = _a.idSchema, uiSchema = _a.uiSchema, items = _a.items, onAddClick = _a.onAddClick, readonly = _a.readonly, registry = _a.registry, required = _a.required, title = _a.title;
|
|
23745
|
+
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23746
|
+
var ArrayFieldItemTemplate = utils.getTemplate('ArrayFieldItemTemplate', registry, uiOptions);
|
|
23747
|
+
var label = uiOptions.title || title;
|
|
23748
|
+
return (jsxRuntime.jsx("fieldset", __assign({ className: className, id: idSchema.$id }, { children: items.length ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.map(function (_a, index) {
|
|
23749
|
+
var key = _a.key, itemProps = __rest(_a, ["key"]);
|
|
23750
|
+
// Show the title as the label for the first field
|
|
23751
|
+
var children = __assign(__assign({}, itemProps.children), { props: __assign(__assign({}, itemProps.children.props), { name: index === 0 ? label : '' }) });
|
|
23752
|
+
return (jsxRuntime.jsx(ArrayFieldItemTemplate, __assign({}, itemProps, { children: children }), key));
|
|
23753
|
+
}), jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry })] })) : (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, required: required, showLabel: true, id: idSchema.$id }, { children: jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry }) }))) })));
|
|
23754
|
+
};
|
|
23755
|
+
|
|
23756
|
+
var ArrayFieldItemTemplate = function (_a) {
|
|
23757
|
+
var children = _a.children; _a.className; var disabled = _a.disabled, hasToolbar = _a.hasToolbar, hasRemove = _a.hasRemove, index = _a.index, onDropIndexClick = _a.onDropIndexClick, readonly = _a.readonly, registry = _a.registry, uiSchema = _a.uiSchema;
|
|
23758
|
+
var RemoveButton = registry.templates.ButtonTemplates.RemoveButton;
|
|
23759
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "display-grid rjsf-form-template__array-field-item flex-align-center dc__gap-8 mb-12" }, { children: [children, hasToolbar && hasRemove && (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropIndexClick(index), uiSchema: uiSchema, registry: registry }) }))] })));
|
|
23760
|
+
};
|
|
23761
|
+
|
|
23762
|
+
var PLACEHOLDERS = {
|
|
23763
|
+
SELECT: 'Please select an option',
|
|
23764
|
+
INPUT: 'Please enter an input',
|
|
23765
|
+
OBJECT_KEY: 'Please enter a value for the key',
|
|
23766
|
+
};
|
|
23767
|
+
|
|
23768
|
+
var BaseInputTemplate = RJSF.getDefaultRegistry().templates.BaseInputTemplate;
|
|
23769
|
+
var BaseInput = function (_a) {
|
|
23770
|
+
var placeholder = _a.placeholder, props = __rest(_a, ["placeholder"]);
|
|
23771
|
+
return (jsxRuntime.jsx(BaseInputTemplate, __assign({ placeholder: placeholder || PLACEHOLDERS.INPUT }, props, { className: "form__input cn-9 fs-13 lh-20 fw-4" })));
|
|
23772
|
+
};
|
|
23773
|
+
|
|
23774
|
+
var AddButton = function (_a) {
|
|
23775
|
+
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23776
|
+
return (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsxs("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor", title: "Add" }, { children: [jsxRuntime.jsx(SvgIcAdd, { className: "icon-dim-16 fcb-5" }), jsxRuntime.jsx("span", __assign({ className: "cb-5 fs-13 lh-20" }, { children: "Add" }))] })) })));
|
|
23777
|
+
};
|
|
23778
|
+
|
|
23779
|
+
var RemoveButton = function (_a) {
|
|
23780
|
+
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23781
|
+
return (jsxRuntime.jsx("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-16 fcr-5" }) })));
|
|
23782
|
+
};
|
|
23783
|
+
|
|
23784
|
+
var SubmitButton = function (_a) {
|
|
23785
|
+
var uiSchema = _a.uiSchema;
|
|
23786
|
+
var _b = utils.getSubmitButtonOptions(uiSchema), submitText = _b.submitText, norender = _b.norender, _c = _b.props, submitButtonProps = _c === void 0 ? {} : _c;
|
|
23787
|
+
return norender ? null : (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit" }, submitButtonProps, { className: "cta ".concat(submitButtonProps.className || '') }, { children: submitText })) })));
|
|
23788
|
+
};
|
|
23789
|
+
|
|
23790
|
+
var Description = function (_a) {
|
|
23791
|
+
var id = _a.id, description = _a.description;
|
|
23792
|
+
return description && (jsxRuntime.jsxs("div", __assign({ id: id, className: "flex left flex-align-center mt-4 dc__gap-4" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "icon-dim-16 mw-16 info-icon-n5" }), jsxRuntime.jsx("span", __assign({ className: "cn-7 fs-11 fw-4 dc__ellipsis-right" }, { children: description }))] })));
|
|
23793
|
+
};
|
|
23794
|
+
|
|
23795
|
+
var Field$1 = function (props) {
|
|
23796
|
+
var id = props.id, label = props.label, children = props.children, errors = props.errors, hidden = props.hidden, required = props.required, displayLabel = props.displayLabel, registry = props.registry, uiSchema = props.uiSchema, classNames = props.classNames, schema = props.schema, description = props.description;
|
|
23797
|
+
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23798
|
+
var WrapIfAdditionalTemplate = utils.getTemplate('WrapIfAdditionalTemplate', registry, uiOptions);
|
|
23799
|
+
// Object type fields have additional properties for key/value pairs
|
|
23800
|
+
var hasAdditionalProperties = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23801
|
+
// Label is not displayed for boolean fields by default and hide for object type fields
|
|
23802
|
+
var showLabel = (displayLabel || schema.type === 'boolean') && !hasAdditionalProperties;
|
|
23803
|
+
return hidden ? (jsxRuntime.jsx("div", __assign({ className: "hidden" }, { children: children }))) : (jsxRuntime.jsxs("div", __assign({ className: "".concat(classNames, " mb-12") }, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, showLabel: showLabel, id: id, required: required }, { children: jsxRuntime.jsx(WrapIfAdditionalTemplate, __assign({}, props, { children: children })) })), description, errors] })));
|
|
23804
|
+
};
|
|
23805
|
+
|
|
23806
|
+
var FieldErrorTemplate = function (_a) {
|
|
23807
|
+
var _b = _a.errors, errors = _b === void 0 ? [] : _b, idSchema = _a.idSchema;
|
|
23808
|
+
var id = utils.errorId(idSchema);
|
|
23809
|
+
return (errors.length > 0 && (jsxRuntime.jsx("span", __assign({ id: id }, { children: errors
|
|
23810
|
+
.filter(function (elem) { return !!elem; })
|
|
23811
|
+
.map(function (error, index) {
|
|
23812
|
+
return (jsxRuntime.jsxs("span", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] }), index));
|
|
23813
|
+
}) }))));
|
|
23814
|
+
};
|
|
23815
|
+
|
|
23816
|
+
var Field = function (_a) {
|
|
23817
|
+
var disabled = _a.disabled, formData = _a.formData, idSchema = _a.idSchema, onAddClick = _a.onAddClick, properties = _a.properties, readonly = _a.readonly, registry = _a.registry, required = _a.required, schema = _a.schema, title = _a.title, uiSchema = _a.uiSchema;
|
|
23818
|
+
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23819
|
+
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23820
|
+
var ActionButton = utils.canExpand(schema, uiSchema, formData) && (jsxRuntime.jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }));
|
|
23821
|
+
var Properties = properties.map(function (prop) { return prop.content; });
|
|
23822
|
+
if (hasAdditionalProperties) {
|
|
23823
|
+
if (properties.length) {
|
|
23824
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id, shouldAlignCenter: false }, { children: jsxRuntime.jsx("div", { children: Properties }) })), ActionButton] }));
|
|
23825
|
+
}
|
|
23826
|
+
else {
|
|
23827
|
+
return (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id }, { children: ActionButton })));
|
|
23828
|
+
}
|
|
23829
|
+
}
|
|
23830
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [Properties, ActionButton] }));
|
|
23831
|
+
};
|
|
23832
|
+
var ObjectFieldTemplate = function (props) {
|
|
23833
|
+
var idSchema = props.idSchema, registry = props.registry, required = props.required, schema = props.schema, title = props.title, uiSchema = props.uiSchema;
|
|
23834
|
+
var options = utils.getUiOptions(uiSchema);
|
|
23835
|
+
var TitleFieldTemplate = utils.getTemplate('TitleFieldTemplate', registry, options);
|
|
23836
|
+
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23837
|
+
var showTitle = title && !hasAdditionalProperties;
|
|
23838
|
+
return (jsxRuntime.jsxs("fieldset", __assign({ id: idSchema.$id }, { children: [showTitle && (jsxRuntime.jsx(TitleFieldTemplate, { id: utils.titleId(idSchema), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry })), jsxRuntime.jsx(Field, __assign({}, props))] })));
|
|
23839
|
+
};
|
|
23840
|
+
|
|
23841
|
+
var TitleField = function (_a) {
|
|
23842
|
+
var id = _a.id, title = _a.title, required = _a.required;
|
|
23843
|
+
return (jsxRuntime.jsxs("legend", __assign({ className: "fs-13 fw-6 cn-9 lh-20 pb-8 dc__border-bottom en-1 mb-12", id: id }, { children: [jsxRuntime.jsx("span", { children: title }), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })));
|
|
23844
|
+
};
|
|
23845
|
+
|
|
23846
|
+
var WrapIfAdditionalTemplate = function (_a) {
|
|
23847
|
+
var id = _a.id, disabled = _a.disabled, label = _a.label, onKeyChange = _a.onKeyChange, onDropPropertyClick = _a.onDropPropertyClick, readonly = _a.readonly, schema = _a.schema, children = _a.children, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23848
|
+
var templates = registry.templates;
|
|
23849
|
+
var RemoveButton = templates.ButtonTemplates.RemoveButton;
|
|
23850
|
+
var additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23851
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: additional ? (jsxRuntime.jsxs("div", __assign({ className: "rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center" }, { children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx("input", { type: "text", className: "form__input cn-9 fs-13 lh-20 fw-4", id: "".concat(id, "-key"), onBlur: function (event) { return onKeyChange(event.target.value); }, placeholder: PLACEHOLDERS.OBJECT_KEY, defaultValue: label }) }), jsxRuntime.jsx("div", { children: children }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropPropertyClick(label), uiSchema: uiSchema, registry: registry }) })] }))) : (children) }));
|
|
23852
|
+
};
|
|
23853
|
+
|
|
23854
|
+
var Checkbox = function (_a) {
|
|
23855
|
+
var id = _a.id, onChange = _a.onChange, value = _a.value, required = _a.required, disabled = _a.disabled, readonly = _a.readonly, autofocus = _a.autofocus, onBlur = _a.onBlur, onFocus = _a.onFocus;
|
|
23856
|
+
var handleEvent = function (e, type) {
|
|
23857
|
+
var _a = e.target, id = _a.id, checked = _a.checked;
|
|
23858
|
+
if (type === 'blur') {
|
|
23859
|
+
onBlur(id, checked);
|
|
23860
|
+
}
|
|
23861
|
+
else if (type === 'focus') {
|
|
23862
|
+
onFocus(id, checked);
|
|
23863
|
+
}
|
|
23864
|
+
};
|
|
23865
|
+
var isSelected = typeof value === 'undefined' ? false : value;
|
|
23866
|
+
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Toggle, { selected: isSelected, onSelect: onChange, id: id, name: id, required: required, disabled: disabled || readonly, autoFocus: autofocus, rootClassName: "w-32 mb-0 dc__height-inherit", onBlur: function (e) { return handleEvent(e, 'blur'); }, onFocus: function (e) { return handleEvent(e, 'focus'); } }), jsxRuntime.jsx("span", __assign({ className: "dc__capitalize ml-8" }, { children: isSelected.toString() }))] }));
|
|
23867
|
+
};
|
|
23868
|
+
|
|
23869
|
+
/**
|
|
23870
|
+
* Override for the TranslatableString from RJSF
|
|
23871
|
+
*/
|
|
23872
|
+
var translateString = function (stringToTranslate, params) {
|
|
23873
|
+
switch (stringToTranslate) {
|
|
23874
|
+
case utils.TranslatableString.NewStringDefault:
|
|
23875
|
+
// Use an empty string for the new additionalProperties string default value
|
|
23876
|
+
return '';
|
|
23877
|
+
default:
|
|
23878
|
+
return utils.englishStringTranslator(stringToTranslate, params);
|
|
23879
|
+
}
|
|
23880
|
+
};
|
|
23881
|
+
var getCommonSelectStyle = function (styleOverrides) {
|
|
23882
|
+
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
23883
|
+
return __assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0 })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400' })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); } }, styleOverrides);
|
|
23884
|
+
};
|
|
23885
|
+
|
|
23886
|
+
var _path;
|
|
23887
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23888
|
+
var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
23889
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
23890
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23891
|
+
width: "1em",
|
|
23892
|
+
height: "1em",
|
|
23893
|
+
viewBox: "0 0 24 24"
|
|
23894
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23895
|
+
fill: "#999",
|
|
23896
|
+
className: "ic-chevron-down_svg__fill-color",
|
|
23897
|
+
fillRule: "nonzero",
|
|
23898
|
+
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
23899
|
+
})));
|
|
23900
|
+
};
|
|
23901
|
+
|
|
23902
|
+
var commonStyles = getCommonSelectStyle();
|
|
23903
|
+
var DropdownIndicator = function (props) { return (jsxRuntime.jsx(components.DropdownIndicator, __assign({}, props, { children: jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }))); };
|
|
23904
|
+
var Select = function (props) {
|
|
23905
|
+
var id = props.id, _a = props.multiple, multiple = _a === void 0 ? false : _a, options = props.options, value = props.value, disabled = props.disabled, readonly = props.readonly, _b = props.autofocus, autofocus = _b === void 0 ? false : _b, onChange = props.onChange, onBlur = props.onBlur, onFocus = props.onFocus, placeholder = props.placeholder;
|
|
23906
|
+
var _c = options.enumOptions, selectOptions = _c === void 0 ? [] : _c;
|
|
23907
|
+
var emptyValue = multiple ? [] : '';
|
|
23908
|
+
var handleChange = function (option) {
|
|
23909
|
+
onChange(multiple ? option.map(function (o) { return o.value; }) : option.value);
|
|
23910
|
+
};
|
|
23911
|
+
var getOption = function (value) {
|
|
23912
|
+
return multiple
|
|
23913
|
+
? selectOptions.filter(function (option) { return value.includes(option.value); })
|
|
23914
|
+
: selectOptions.find(function (option) { return option.value === value; });
|
|
23915
|
+
};
|
|
23916
|
+
return (jsxRuntime.jsx(ReactSelect, { id: id, name: id, isMulti: multiple, value: typeof value === 'undefined' ? emptyValue : getOption(value), autoFocus: autofocus, onChange: handleChange, options: selectOptions, onBlur: function () { return onBlur(id, value); }, onFocus: function () { return onFocus(id, value); }, placeholder: placeholder || PLACEHOLDERS.SELECT, isDisabled: disabled || readonly, styles: __assign(__assign({}, commonStyles), { control: function (base) { return (__assign(__assign(__assign({}, base), commonStyles.control), { backgroundColor: 'var(--N50)' })); } }), components: {
|
|
23917
|
+
IndicatorSeparator: null,
|
|
23918
|
+
DropdownIndicator: DropdownIndicator,
|
|
23919
|
+
}, menuPlacement: "auto", menuPortalTarget: document.body }));
|
|
23920
|
+
};
|
|
23921
|
+
|
|
23922
|
+
var widgets = {
|
|
23923
|
+
CheckboxWidget: Checkbox,
|
|
23924
|
+
SelectWidget: Select,
|
|
23925
|
+
};
|
|
23926
|
+
var templates = {
|
|
23927
|
+
ArrayFieldItemTemplate: ArrayFieldItemTemplate,
|
|
23928
|
+
ArrayFieldTemplate: ArrayFieldTemplate,
|
|
23929
|
+
BaseInputTemplate: BaseInput,
|
|
23930
|
+
ButtonTemplates: { AddButton: AddButton, RemoveButton: RemoveButton, SubmitButton: SubmitButton },
|
|
23931
|
+
DescriptionFieldTemplate: Description,
|
|
23932
|
+
FieldTemplate: Field$1,
|
|
23933
|
+
FieldErrorTemplate: FieldErrorTemplate,
|
|
23934
|
+
ObjectFieldTemplate: ObjectFieldTemplate,
|
|
23935
|
+
TitleFieldTemplate: TitleField,
|
|
23936
|
+
WrapIfAdditionalTemplate: WrapIfAdditionalTemplate,
|
|
23937
|
+
};
|
|
23938
|
+
|
|
23939
|
+
var css_248z = ".rjsf-form-template__field {\n grid-template-columns: 250px 1fr;\n}\n.rjsf-form-template__additional-fields {\n grid-template-columns: 1fr 1fr minmax(20px, auto);\n}\n.rjsf-form-template__array-field-item {\n grid-template-columns: 1fr auto;\n}\n.rjsf-form-template__array-field-item :first-child {\n margin: 0;\n}";
|
|
23940
|
+
styleInject(css_248z);
|
|
23941
|
+
|
|
23942
|
+
// Need to use this way because the default import was not working as expected
|
|
23943
|
+
// The default import resolves to an object intead of a function
|
|
23944
|
+
var Form = RJSF.default;
|
|
23945
|
+
var 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 }))); };
|
|
23946
|
+
|
|
23714
23947
|
exports.AppStatus = AppStatus;
|
|
23715
23948
|
exports.BreadCrumb = BreadCrumb;
|
|
23716
23949
|
exports.BreadcrumbStore = Store;
|
|
23717
23950
|
exports.BuildStageVariable = BuildStageVariable;
|
|
23718
23951
|
exports.CDModalTab = CDModalTab;
|
|
23719
|
-
exports.Checkbox = Checkbox;
|
|
23952
|
+
exports.Checkbox = Checkbox$1;
|
|
23720
23953
|
exports.ClearIndicator = ClearIndicator;
|
|
23721
23954
|
exports.ClipboardButton = ClipboardButton;
|
|
23722
23955
|
exports.ConditionalWrap = ConditionalWrap;
|
|
@@ -23755,6 +23988,7 @@ exports.PopupMenu = PopupMenu;
|
|
|
23755
23988
|
exports.Progressing = Progressing;
|
|
23756
23989
|
exports.PropagateTagInfo = PropagateTagInfo;
|
|
23757
23990
|
exports.REGISTRY_TYPE_MAP = REGISTRY_TYPE_MAP;
|
|
23991
|
+
exports.RJSFForm = RJSFForm;
|
|
23758
23992
|
exports.ROUTES = ROUTES;
|
|
23759
23993
|
exports.RadioGroup = RadioGroup$1;
|
|
23760
23994
|
exports.RadioGroupItem = RadioGroupItem;
|
|
@@ -23811,6 +24045,7 @@ exports.toastAccessDenied = toastAccessDenied;
|
|
|
23811
24045
|
exports.trash = trash;
|
|
23812
24046
|
exports.useAsync = useAsync;
|
|
23813
24047
|
exports.useBreadcrumb = useBreadcrumb;
|
|
24048
|
+
exports.useClickOutside = useClickOutside;
|
|
23814
24049
|
exports.useEffectAfterMount = useEffectAfterMount;
|
|
23815
24050
|
exports.useForm = useForm;
|
|
23816
24051
|
exports.useSearchString = useSearchString;
|