@devtron-labs/devtron-fe-common-lib 0.0.55-beta-2 → 0.0.55-beta-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +96 -0
- package/.eslintrc.js +84 -16
- package/.github/pull_request_template.md +25 -0
- package/.github/workflows/ci.yml +31 -0
- package/.github/workflows/release-package.yml +2 -3
- package/.husky/pre-commit +5 -0
- package/.lintstagedrc +3 -0
- package/.nvmrc +1 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +2 -0
- package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -0
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -0
- package/dist/Common/DraggableWrapper/index.d.ts +3 -0
- package/dist/Common/DraggableWrapper/types.d.ts +23 -0
- package/dist/Common/Grid/Grid.d.ts +1 -1
- package/dist/Common/Grid/types.d.ts +2 -2
- package/dist/Common/Helper.d.ts +5 -4
- package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Pagination/PageSizeSelector.d.ts +4 -0
- package/dist/Common/Pagination/Pagination.d.ts +5 -0
- package/dist/Common/Pagination/constants.d.ts +5 -0
- package/dist/Common/Pagination/index.d.ts +1 -0
- package/dist/Common/Pagination/types.d.ts +51 -0
- package/dist/Common/Pagination/utils.d.ts +6 -0
- package/dist/Common/SearchBar/SearchBar.component.d.ts +39 -0
- package/dist/Common/SearchBar/index.d.ts +2 -0
- package/dist/Common/SearchBar/types.d.ts +35 -0
- package/dist/Common/Types.d.ts +16 -2
- package/dist/Common/index.d.ts +3 -0
- package/dist/index.js +594 -233
- package/package.json +21 -3
- package/src/Assets/Icon/ic-drag.svg +8 -0
- package/src/Assets/Icon/ic-search.svg +6 -0
- package/src/Common/Constants.ts +3 -1
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +2 -0
- package/src/Common/DraggableWrapper/DraggableButton.tsx +14 -0
- package/src/Common/DraggableWrapper/DraggableWrapper.tsx +116 -0
- package/src/Common/DraggableWrapper/index.ts +3 -0
- package/src/Common/DraggableWrapper/types.ts +27 -0
- package/src/Common/Grid/Grid.tsx +7 -2
- package/src/Common/Grid/types.ts +3 -1
- package/src/Common/Helper.tsx +31 -23
- package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +31 -0
- package/src/Common/Hooks/index.ts +1 -0
- package/src/Common/Pagination/PageSizeSelector.tsx +78 -0
- package/src/Common/Pagination/Pagination.tsx +127 -0
- package/src/Common/Pagination/constants.ts +6 -0
- package/src/Common/Pagination/index.tsx +3 -0
- package/src/Common/Pagination/pagination.scss +123 -0
- package/src/Common/Pagination/types.ts +55 -0
- package/src/Common/Pagination/utils.tsx +24 -0
- package/src/Common/SearchBar/SearchBar.component.tsx +120 -0
- package/src/Common/SearchBar/index.ts +2 -0
- package/src/Common/SearchBar/searchBar.scss +31 -0
- package/src/Common/SearchBar/types.ts +36 -0
- package/src/Common/Types.ts +16 -2
- package/src/Common/index.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var vm = require('vm');
|
|
|
8
8
|
var RJSF = require('@rjsf/core');
|
|
9
9
|
var RJSFValidator = require('@rjsf/validator-ajv8');
|
|
10
10
|
var utils = require('@rjsf/utils');
|
|
11
|
+
var Draggable = require('react-draggable');
|
|
11
12
|
|
|
12
13
|
function _interopNamespaceDefault(e) {
|
|
13
14
|
var n = Object.create(null);
|
|
@@ -256,7 +257,8 @@ var RepositoryAction = {
|
|
|
256
257
|
CONTAINER: "CONTAINER",
|
|
257
258
|
CHART_PULL: "CHART_PULL",
|
|
258
259
|
CHART_PUSH: "CHART_PUSH"
|
|
259
|
-
};
|
|
260
|
+
};
|
|
261
|
+
var MAX_Z_INDEX = 2147483647;
|
|
260
262
|
|
|
261
263
|
/******************************************************************************
|
|
262
264
|
Copyright (c) Microsoft Corporation.
|
|
@@ -272,7 +274,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
272
274
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
273
275
|
PERFORMANCE OF THIS SOFTWARE.
|
|
274
276
|
***************************************************************************** */
|
|
275
|
-
/* global Reflect, Promise */
|
|
277
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
276
278
|
|
|
277
279
|
var extendStatics = function(d, b) {
|
|
278
280
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -375,7 +377,12 @@ function __spreadArray(to, from, pack) {
|
|
|
375
377
|
}
|
|
376
378
|
}
|
|
377
379
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
378
|
-
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
383
|
+
var e = new Error(message);
|
|
384
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
385
|
+
};
|
|
379
386
|
|
|
380
387
|
var ServerError = /** @class */ (function () {
|
|
381
388
|
function ServerError(error) {
|
|
@@ -745,18 +752,18 @@ function styleInject(css, ref) {
|
|
|
745
752
|
}
|
|
746
753
|
}
|
|
747
754
|
|
|
748
|
-
var css_248z$
|
|
749
|
-
styleInject(css_248z$
|
|
755
|
+
var css_248z$9 = ".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}";
|
|
756
|
+
styleInject(css_248z$9);
|
|
750
757
|
|
|
751
|
-
var _g$
|
|
752
|
-
function _extends$
|
|
758
|
+
var _g$7;
|
|
759
|
+
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
753
760
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
754
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
761
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
755
762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
756
763
|
viewBox: "0 0 24 24",
|
|
757
764
|
width: "1em",
|
|
758
765
|
height: "1em"
|
|
759
|
-
}, props), _g$
|
|
766
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
760
767
|
fill: "none"
|
|
761
768
|
}, /*#__PURE__*/React__namespace.createElement("animateTransform", {
|
|
762
769
|
attributeName: "transform",
|
|
@@ -803,8 +810,8 @@ EmptyState.Loading = Loading;
|
|
|
803
810
|
|
|
804
811
|
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}
|
|
805
812
|
|
|
806
|
-
function _extends$
|
|
807
|
-
_extends$
|
|
813
|
+
function _extends$n() {
|
|
814
|
+
_extends$n = Object.assign || function (target) {
|
|
808
815
|
for (var i = 1; i < arguments.length; i++) {
|
|
809
816
|
var source = arguments[i];
|
|
810
817
|
|
|
@@ -818,7 +825,7 @@ function _extends$l() {
|
|
|
818
825
|
return target;
|
|
819
826
|
};
|
|
820
827
|
|
|
821
|
-
return _extends$
|
|
828
|
+
return _extends$n.apply(this, arguments);
|
|
822
829
|
}
|
|
823
830
|
|
|
824
831
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1544,7 +1551,7 @@ function ProgressBar(_ref) {
|
|
|
1544
1551
|
isIn = _ref.isIn,
|
|
1545
1552
|
theme = _ref.theme;
|
|
1546
1553
|
|
|
1547
|
-
var style = _extends$
|
|
1554
|
+
var style = _extends$n({}, userStyle, {
|
|
1548
1555
|
animationDuration: delay + "ms",
|
|
1549
1556
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1550
1557
|
opacity: hide ? 0 : 1
|
|
@@ -1821,9 +1828,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1821
1828
|
,
|
|
1822
1829
|
id: containerId
|
|
1823
1830
|
}, getToastToRender(function (position, toastList) {
|
|
1824
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1831
|
+
var containerStyle = !toastList.length ? _extends$n({}, style, {
|
|
1825
1832
|
pointerEvents: 'none'
|
|
1826
|
-
}) : _extends$
|
|
1833
|
+
}) : _extends$n({}, style);
|
|
1827
1834
|
return React.createElement("div", {
|
|
1828
1835
|
className: getClassName(position),
|
|
1829
1836
|
style: containerStyle,
|
|
@@ -1930,7 +1937,7 @@ function dispatchToast(content, options) {
|
|
|
1930
1937
|
|
|
1931
1938
|
|
|
1932
1939
|
function mergeOptions(type, options) {
|
|
1933
|
-
return _extends$
|
|
1940
|
+
return _extends$n({}, options, {
|
|
1934
1941
|
type: options && options.type || type,
|
|
1935
1942
|
toastId: getToastId(options)
|
|
1936
1943
|
});
|
|
@@ -1947,7 +1954,7 @@ function toast(content, options) {
|
|
|
1947
1954
|
}
|
|
1948
1955
|
|
|
1949
1956
|
toast.loading = function (content, options) {
|
|
1950
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1957
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
|
|
1951
1958
|
isLoading: true,
|
|
1952
1959
|
autoClose: false,
|
|
1953
1960
|
closeOnClick: false,
|
|
@@ -1963,7 +1970,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1963
1970
|
var id;
|
|
1964
1971
|
|
|
1965
1972
|
if (pending) {
|
|
1966
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1973
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$n({}, options, pending));
|
|
1967
1974
|
}
|
|
1968
1975
|
|
|
1969
1976
|
var resetParams = {
|
|
@@ -1982,7 +1989,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1982
1989
|
return;
|
|
1983
1990
|
}
|
|
1984
1991
|
|
|
1985
|
-
var baseParams = _extends$
|
|
1992
|
+
var baseParams = _extends$n({
|
|
1986
1993
|
type: type
|
|
1987
1994
|
}, resetParams, options, {
|
|
1988
1995
|
data: result
|
|
@@ -1993,10 +2000,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1993
2000
|
} : input; // if the id is set we know that it's an update
|
|
1994
2001
|
|
|
1995
2002
|
if (id) {
|
|
1996
|
-
toast.update(id, _extends$
|
|
2003
|
+
toast.update(id, _extends$n({}, baseParams, params));
|
|
1997
2004
|
} else {
|
|
1998
2005
|
// using toast.promise without loading
|
|
1999
|
-
toast(params.render, _extends$
|
|
2006
|
+
toast(params.render, _extends$n({}, baseParams, params));
|
|
2000
2007
|
}
|
|
2001
2008
|
|
|
2002
2009
|
return result;
|
|
@@ -2020,7 +2027,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
2020
2027
|
toast.warn = toast.warning;
|
|
2021
2028
|
|
|
2022
2029
|
toast.dark = function (content, options) {
|
|
2023
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
2030
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
|
|
2024
2031
|
theme: 'dark'
|
|
2025
2032
|
}, options)));
|
|
2026
2033
|
};
|
|
@@ -2077,7 +2084,7 @@ toast.update = function (toastId, options) {
|
|
|
2077
2084
|
var oldOptions = toast.props,
|
|
2078
2085
|
oldContent = toast.content;
|
|
2079
2086
|
|
|
2080
|
-
var nextOptions = _extends$
|
|
2087
|
+
var nextOptions = _extends$n({}, oldOptions, options, {
|
|
2081
2088
|
toastId: options.toastId || toastId,
|
|
2082
2089
|
updateId: generateToastId()
|
|
2083
2090
|
});
|
|
@@ -11780,18 +11787,20 @@ var getFilteredChartVersions = function (charts, selectedChartType) {
|
|
|
11780
11787
|
chartRefId: item.chartRefId,
|
|
11781
11788
|
}); });
|
|
11782
11789
|
};
|
|
11783
|
-
function removeEmptyObjectKeysAndNullValues(obj
|
|
11784
|
-
// It recursively removes empty object keys and
|
|
11790
|
+
function removeEmptyObjectKeysAndNullValues(obj) {
|
|
11791
|
+
// It recursively removes empty object keys and array values that are null
|
|
11785
11792
|
for (var key in obj) {
|
|
11786
11793
|
if (Array.isArray(obj[key])) {
|
|
11794
|
+
if (obj[key].length === 0)
|
|
11795
|
+
continue;
|
|
11796
|
+
obj[key] = obj[key].filter(function (item) { return item !== null; });
|
|
11787
11797
|
// Check if the array is empty
|
|
11788
|
-
if (obj[key].length === 0
|
|
11789
|
-
delete obj[key];
|
|
11798
|
+
if (obj[key].length === 0) {
|
|
11799
|
+
delete obj[key]; // Delete the key if the array is empty
|
|
11790
11800
|
}
|
|
11791
11801
|
}
|
|
11792
11802
|
else if (obj[key] && typeof obj[key] === 'object') {
|
|
11793
|
-
if (removeEmptyObjectKeysAndNullValues(obj[key]
|
|
11794
|
-
Object.keys(originaljsonCopy[key]).length !== 0) {
|
|
11803
|
+
if (removeEmptyObjectKeysAndNullValues(obj[key])) {
|
|
11795
11804
|
delete obj[key];
|
|
11796
11805
|
}
|
|
11797
11806
|
}
|
|
@@ -11801,27 +11810,19 @@ function removeEmptyObjectKeysAndNullValues(obj, originaljsonCopy) {
|
|
|
11801
11810
|
}
|
|
11802
11811
|
return Object.keys(obj).length === 0;
|
|
11803
11812
|
}
|
|
11804
|
-
function getUnlockedJSON(json, jsonPathArray
|
|
11805
|
-
if (removeParentKeysAndEmptyArrays === void 0) { removeParentKeysAndEmptyArrays = false; }
|
|
11806
|
-
if (!jsonPathArray.length)
|
|
11807
|
-
return { newDocument: json, removedPatches: [] };
|
|
11813
|
+
function getUnlockedJSON(json, jsonPathArray) {
|
|
11808
11814
|
var jsonCopy = JSON.parse(JSON.stringify(json));
|
|
11809
|
-
var originaljsonCopy = JSON.parse(JSON.stringify(json));
|
|
11810
|
-
var removedPatches = [];
|
|
11811
11815
|
var patches = jsonPathArray.flatMap(function (jsonPath) {
|
|
11812
11816
|
var pathsToRemove = JSONPath({ path: jsonPath, json: jsonCopy, resultType: 'all' });
|
|
11813
|
-
//reversing patches to handle correct array index deletion
|
|
11814
|
-
pathsToRemove.reverse();
|
|
11815
11817
|
return pathsToRemove.map(function (result) {
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11818
|
+
return Array.isArray(result.parent)
|
|
11819
|
+
? { op: 'replace', path: result.pointer, value: null }
|
|
11820
|
+
: { op: 'remove', path: result.pointer };
|
|
11819
11821
|
});
|
|
11820
11822
|
});
|
|
11821
11823
|
var newDocument = applyPatch(jsonCopy, patches).newDocument;
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
return { newDocument: newDocument, removedPatches: removedPatches.reverse() };
|
|
11824
|
+
removeEmptyObjectKeysAndNullValues(newDocument);
|
|
11825
|
+
return newDocument;
|
|
11825
11826
|
}
|
|
11826
11827
|
function getLockedJSON(json, jsonPathArray) {
|
|
11827
11828
|
var jsonCopy = JSON.parse(JSON.stringify(json));
|
|
@@ -11845,7 +11846,27 @@ function getLockedJSON(json, jsonPathArray) {
|
|
|
11845
11846
|
});
|
|
11846
11847
|
});
|
|
11847
11848
|
return resultJson['$'];
|
|
11848
|
-
}
|
|
11849
|
+
}
|
|
11850
|
+
/**
|
|
11851
|
+
* Returns a debounced variant of the function
|
|
11852
|
+
*/
|
|
11853
|
+
var debounce$2 = function (func, timeout) {
|
|
11854
|
+
if (timeout === void 0) { timeout = 500; }
|
|
11855
|
+
var timer;
|
|
11856
|
+
return function () {
|
|
11857
|
+
var args = [];
|
|
11858
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
11859
|
+
args[_i] = arguments[_i];
|
|
11860
|
+
}
|
|
11861
|
+
var context = this;
|
|
11862
|
+
if (timer)
|
|
11863
|
+
clearTimeout(timer);
|
|
11864
|
+
timer = setTimeout(function () {
|
|
11865
|
+
timer = null;
|
|
11866
|
+
func.apply(context, args);
|
|
11867
|
+
}, timeout);
|
|
11868
|
+
};
|
|
11869
|
+
};
|
|
11849
11870
|
|
|
11850
11871
|
function Progressing(_a) {
|
|
11851
11872
|
var pageLoader = _a.pageLoader, size = _a.size, theme = _a.theme, styles = _a.styles, fillColor = _a.fillColor;
|
|
@@ -11897,8 +11918,8 @@ var VisibleModal = /** @class */ (function (_super) {
|
|
|
11897
11918
|
return VisibleModal;
|
|
11898
11919
|
}(React.Component));
|
|
11899
11920
|
|
|
11900
|
-
var css_248z$
|
|
11901
|
-
styleInject(css_248z$
|
|
11921
|
+
var css_248z$8 = ".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}";
|
|
11922
|
+
styleInject(css_248z$8);
|
|
11902
11923
|
|
|
11903
11924
|
var Drawer = function (_a) {
|
|
11904
11925
|
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;
|
|
@@ -11972,16 +11993,16 @@ var Modal = function (_a) {
|
|
|
11972
11993
|
}, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
|
|
11973
11994
|
};
|
|
11974
11995
|
|
|
11975
|
-
var _path$
|
|
11976
|
-
function _extends$
|
|
11996
|
+
var _path$d;
|
|
11997
|
+
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
11977
11998
|
var SvgIcCross = function SvgIcCross(props) {
|
|
11978
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
11999
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
11979
12000
|
width: "1em",
|
|
11980
12001
|
height: "1em",
|
|
11981
12002
|
viewBox: "0 0 24 24",
|
|
11982
12003
|
fill: "none",
|
|
11983
12004
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11984
|
-
}, props), _path$
|
|
12005
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
11985
12006
|
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",
|
|
11986
12007
|
fill: "#596168"
|
|
11987
12008
|
})));
|
|
@@ -16280,38 +16301,38 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
16280
16301
|
|
|
16281
16302
|
var Tippy = index;
|
|
16282
16303
|
|
|
16283
|
-
var _path$
|
|
16284
|
-
function _extends$
|
|
16304
|
+
var _path$c;
|
|
16305
|
+
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); }
|
|
16285
16306
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
16286
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16307
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
16287
16308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16288
16309
|
width: "1em",
|
|
16289
16310
|
height: "1em",
|
|
16290
16311
|
viewBox: "0 0 24 24"
|
|
16291
|
-
}, props), _path$
|
|
16312
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16292
16313
|
fill: "#767D84",
|
|
16293
16314
|
fillRule: "evenodd",
|
|
16294
16315
|
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"
|
|
16295
16316
|
})));
|
|
16296
16317
|
};
|
|
16297
16318
|
|
|
16298
|
-
var _path$
|
|
16299
|
-
function _extends$
|
|
16319
|
+
var _path$b;
|
|
16320
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
16300
16321
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
16301
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16322
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
16302
16323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16303
16324
|
viewBox: "0 0 17 16",
|
|
16304
16325
|
width: "1em",
|
|
16305
16326
|
height: "1em"
|
|
16306
|
-
}, props), _path$
|
|
16327
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16307
16328
|
fill: "#767D84",
|
|
16308
16329
|
fillRule: "evenodd",
|
|
16309
16330
|
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"
|
|
16310
16331
|
})));
|
|
16311
16332
|
};
|
|
16312
16333
|
|
|
16313
|
-
var css_248z$
|
|
16314
|
-
styleInject(css_248z$
|
|
16334
|
+
var css_248z$7 = ".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)}";
|
|
16335
|
+
styleInject(css_248z$7);
|
|
16315
16336
|
|
|
16316
16337
|
// This component will handle some of the new tippy designs and interactions
|
|
16317
16338
|
// So this can be updated to support further for new features or interactions
|
|
@@ -16355,16 +16376,16 @@ function TippyCustomized(props) {
|
|
|
16355
16376
|
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 })));
|
|
16356
16377
|
}
|
|
16357
16378
|
|
|
16358
|
-
var _path$
|
|
16359
|
-
function _extends$
|
|
16379
|
+
var _path$a, _circle, _path2$1;
|
|
16380
|
+
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); }
|
|
16360
16381
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
16361
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16382
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
16362
16383
|
width: "1em",
|
|
16363
16384
|
height: "1em",
|
|
16364
16385
|
viewBox: "0 0 20 20",
|
|
16365
16386
|
fill: "none",
|
|
16366
16387
|
xmlns: "http://www.w3.org/2000/svg"
|
|
16367
|
-
}, props), _path$
|
|
16388
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16368
16389
|
d: "M10 10H3.333",
|
|
16369
16390
|
stroke: "#596168",
|
|
16370
16391
|
strokeWidth: 1.5,
|
|
@@ -16392,15 +16413,15 @@ function PropagateTagInfo(_a) {
|
|
|
16392
16413
|
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" })] })) })));
|
|
16393
16414
|
}
|
|
16394
16415
|
|
|
16395
|
-
var _path$
|
|
16396
|
-
function _extends$
|
|
16416
|
+
var _path$9;
|
|
16417
|
+
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); }
|
|
16397
16418
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
16398
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16419
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
16399
16420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16400
16421
|
width: "1em",
|
|
16401
16422
|
height: "1em",
|
|
16402
16423
|
viewBox: "0 0 20 20"
|
|
16403
|
-
}, props), _path$
|
|
16424
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16404
16425
|
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",
|
|
16405
16426
|
fill: "#06C",
|
|
16406
16427
|
fillRule: "evenodd"
|
|
@@ -16634,15 +16655,15 @@ var TagDetails = function (_a) {
|
|
|
16634
16655
|
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" }) }))] })));
|
|
16635
16656
|
};
|
|
16636
16657
|
|
|
16637
|
-
var _path$
|
|
16638
|
-
function _extends$
|
|
16658
|
+
var _path$8;
|
|
16659
|
+
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); }
|
|
16639
16660
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
16640
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16661
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
16641
16662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16642
16663
|
width: "1em",
|
|
16643
16664
|
height: "1em",
|
|
16644
16665
|
viewBox: "0 0 24 24"
|
|
16645
|
-
}, props), _path$
|
|
16666
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16646
16667
|
className: "ic-add_svg__fill-color",
|
|
16647
16668
|
fill: "#999",
|
|
16648
16669
|
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"
|
|
@@ -16772,8 +16793,8 @@ function ForceDeleteDialog(_a) {
|
|
|
16772
16793
|
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?" })] }) })) }));
|
|
16773
16794
|
}
|
|
16774
16795
|
|
|
16775
|
-
function _extends$
|
|
16776
|
-
_extends$
|
|
16796
|
+
function _extends$g() {
|
|
16797
|
+
_extends$g = Object.assign ? Object.assign.bind() : function (target) {
|
|
16777
16798
|
for (var i = 1; i < arguments.length; i++) {
|
|
16778
16799
|
var source = arguments[i];
|
|
16779
16800
|
for (var key in source) {
|
|
@@ -16784,7 +16805,7 @@ function _extends$e() {
|
|
|
16784
16805
|
}
|
|
16785
16806
|
return target;
|
|
16786
16807
|
};
|
|
16787
|
-
return _extends$
|
|
16808
|
+
return _extends$g.apply(this, arguments);
|
|
16788
16809
|
}
|
|
16789
16810
|
|
|
16790
16811
|
/*
|
|
@@ -19612,14 +19633,14 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
19612
19633
|
return target;
|
|
19613
19634
|
}
|
|
19614
19635
|
|
|
19615
|
-
function _typeof(
|
|
19636
|
+
function _typeof(o) {
|
|
19616
19637
|
"@babel/helpers - typeof";
|
|
19617
19638
|
|
|
19618
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
19619
|
-
return typeof
|
|
19620
|
-
} : function (
|
|
19621
|
-
return
|
|
19622
|
-
}, _typeof(
|
|
19639
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
19640
|
+
return typeof o;
|
|
19641
|
+
} : function (o) {
|
|
19642
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
19643
|
+
}, _typeof(o);
|
|
19623
19644
|
}
|
|
19624
19645
|
|
|
19625
19646
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -19628,20 +19649,20 @@ function _classCallCheck(instance, Constructor) {
|
|
|
19628
19649
|
}
|
|
19629
19650
|
}
|
|
19630
19651
|
|
|
19631
|
-
function
|
|
19632
|
-
if (
|
|
19633
|
-
var
|
|
19634
|
-
if (
|
|
19635
|
-
var
|
|
19636
|
-
if (
|
|
19652
|
+
function toPrimitive(t, r) {
|
|
19653
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
19654
|
+
var e = t[Symbol.toPrimitive];
|
|
19655
|
+
if (void 0 !== e) {
|
|
19656
|
+
var i = e.call(t, r || "default");
|
|
19657
|
+
if ("object" != _typeof(i)) return i;
|
|
19637
19658
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19638
19659
|
}
|
|
19639
|
-
return (
|
|
19660
|
+
return ("string" === r ? String : Number)(t);
|
|
19640
19661
|
}
|
|
19641
19662
|
|
|
19642
|
-
function
|
|
19643
|
-
var
|
|
19644
|
-
return _typeof(
|
|
19663
|
+
function toPropertyKey(t) {
|
|
19664
|
+
var i = toPrimitive(t, "string");
|
|
19665
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
19645
19666
|
}
|
|
19646
19667
|
|
|
19647
19668
|
function _defineProperties(target, props) {
|
|
@@ -19650,7 +19671,7 @@ function _defineProperties(target, props) {
|
|
|
19650
19671
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
19651
19672
|
descriptor.configurable = true;
|
|
19652
19673
|
if ("value" in descriptor) descriptor.writable = true;
|
|
19653
|
-
Object.defineProperty(target,
|
|
19674
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
19654
19675
|
}
|
|
19655
19676
|
}
|
|
19656
19677
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -19688,7 +19709,7 @@ function _inherits(subClass, superClass) {
|
|
|
19688
19709
|
}
|
|
19689
19710
|
|
|
19690
19711
|
function _defineProperty$1(obj, key, value) {
|
|
19691
|
-
key =
|
|
19712
|
+
key = toPropertyKey(key);
|
|
19692
19713
|
if (key in obj) {
|
|
19693
19714
|
Object.defineProperty(obj, key, {
|
|
19694
19715
|
value: value,
|
|
@@ -20325,7 +20346,7 @@ var Menu = function Menu(props) {
|
|
|
20325
20346
|
getStyles = props.getStyles,
|
|
20326
20347
|
innerRef = props.innerRef,
|
|
20327
20348
|
innerProps = props.innerProps;
|
|
20328
|
-
return jsx("div", _extends$
|
|
20349
|
+
return jsx("div", _extends$g({
|
|
20329
20350
|
css: getStyles('menu', props),
|
|
20330
20351
|
className: cx({
|
|
20331
20352
|
menu: true
|
|
@@ -20357,7 +20378,7 @@ var MenuList$1 = function MenuList(props) {
|
|
|
20357
20378
|
innerProps = props.innerProps,
|
|
20358
20379
|
innerRef = props.innerRef,
|
|
20359
20380
|
isMulti = props.isMulti;
|
|
20360
|
-
return jsx("div", _extends$
|
|
20381
|
+
return jsx("div", _extends$g({
|
|
20361
20382
|
css: getStyles('menuList', props),
|
|
20362
20383
|
className: cx({
|
|
20363
20384
|
'menu-list': true,
|
|
@@ -20388,7 +20409,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
20388
20409
|
cx = props.cx,
|
|
20389
20410
|
getStyles = props.getStyles,
|
|
20390
20411
|
innerProps = props.innerProps;
|
|
20391
|
-
return jsx("div", _extends$
|
|
20412
|
+
return jsx("div", _extends$g({
|
|
20392
20413
|
css: getStyles('noOptionsMessage', props),
|
|
20393
20414
|
className: cx({
|
|
20394
20415
|
'menu-notice': true,
|
|
@@ -20405,7 +20426,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
20405
20426
|
cx = props.cx,
|
|
20406
20427
|
getStyles = props.getStyles,
|
|
20407
20428
|
innerProps = props.innerProps;
|
|
20408
|
-
return jsx("div", _extends$
|
|
20429
|
+
return jsx("div", _extends$g({
|
|
20409
20430
|
css: getStyles('loadingMessage', props),
|
|
20410
20431
|
className: cx({
|
|
20411
20432
|
'menu-notice': true,
|
|
@@ -20493,7 +20514,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
20493
20514
|
rect: rect
|
|
20494
20515
|
}; // same wrapper element whether fixed or portalled
|
|
20495
20516
|
|
|
20496
|
-
var menuWrapper = jsx("div", _extends$
|
|
20517
|
+
var menuWrapper = jsx("div", _extends$g({
|
|
20497
20518
|
css: getStyles('menuPortal', state),
|
|
20498
20519
|
className: cx({
|
|
20499
20520
|
'menu-portal': true
|
|
@@ -20529,7 +20550,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
20529
20550
|
innerProps = props.innerProps,
|
|
20530
20551
|
isDisabled = props.isDisabled,
|
|
20531
20552
|
isRtl = props.isRtl;
|
|
20532
|
-
return jsx("div", _extends$
|
|
20553
|
+
return jsx("div", _extends$g({
|
|
20533
20554
|
css: getStyles('container', props),
|
|
20534
20555
|
className: cx({
|
|
20535
20556
|
'--is-disabled': isDisabled,
|
|
@@ -20564,7 +20585,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
20564
20585
|
isMulti = props.isMulti,
|
|
20565
20586
|
getStyles = props.getStyles,
|
|
20566
20587
|
hasValue = props.hasValue;
|
|
20567
|
-
return jsx("div", _extends$
|
|
20588
|
+
return jsx("div", _extends$g({
|
|
20568
20589
|
css: getStyles('valueContainer', props),
|
|
20569
20590
|
className: cx({
|
|
20570
20591
|
'value-container': true,
|
|
@@ -20590,7 +20611,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
20590
20611
|
cx = props.cx,
|
|
20591
20612
|
innerProps = props.innerProps,
|
|
20592
20613
|
getStyles = props.getStyles;
|
|
20593
|
-
return jsx("div", _extends$
|
|
20614
|
+
return jsx("div", _extends$g({
|
|
20594
20615
|
css: getStyles('indicatorsContainer', props),
|
|
20595
20616
|
className: cx({
|
|
20596
20617
|
indicators: true
|
|
@@ -20621,7 +20642,7 @@ var Svg = function Svg(_ref) {
|
|
|
20621
20642
|
var size = _ref.size,
|
|
20622
20643
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
20623
20644
|
|
|
20624
|
-
return jsx("svg", _extends$
|
|
20645
|
+
return jsx("svg", _extends$g({
|
|
20625
20646
|
height: size,
|
|
20626
20647
|
width: size,
|
|
20627
20648
|
viewBox: "0 0 20 20",
|
|
@@ -20632,14 +20653,14 @@ var Svg = function Svg(_ref) {
|
|
|
20632
20653
|
};
|
|
20633
20654
|
|
|
20634
20655
|
var CrossIcon = function CrossIcon(props) {
|
|
20635
|
-
return jsx(Svg, _extends$
|
|
20656
|
+
return jsx(Svg, _extends$g({
|
|
20636
20657
|
size: 20
|
|
20637
20658
|
}, props), jsx("path", {
|
|
20638
20659
|
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"
|
|
20639
20660
|
}));
|
|
20640
20661
|
};
|
|
20641
20662
|
var DownChevron = function DownChevron(props) {
|
|
20642
|
-
return jsx(Svg, _extends$
|
|
20663
|
+
return jsx(Svg, _extends$g({
|
|
20643
20664
|
size: 20
|
|
20644
20665
|
}, props), jsx("path", {
|
|
20645
20666
|
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"
|
|
@@ -20672,7 +20693,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
|
20672
20693
|
cx = props.cx,
|
|
20673
20694
|
getStyles = props.getStyles,
|
|
20674
20695
|
innerProps = props.innerProps;
|
|
20675
|
-
return jsx("div", _extends$
|
|
20696
|
+
return jsx("div", _extends$g({
|
|
20676
20697
|
css: getStyles('dropdownIndicator', props),
|
|
20677
20698
|
className: cx({
|
|
20678
20699
|
indicator: true,
|
|
@@ -20687,7 +20708,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
20687
20708
|
cx = props.cx,
|
|
20688
20709
|
getStyles = props.getStyles,
|
|
20689
20710
|
innerProps = props.innerProps;
|
|
20690
|
-
return jsx("div", _extends$
|
|
20711
|
+
return jsx("div", _extends$g({
|
|
20691
20712
|
css: getStyles('clearIndicator', props),
|
|
20692
20713
|
className: cx({
|
|
20693
20714
|
indicator: true,
|
|
@@ -20717,7 +20738,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
20717
20738
|
cx = props.cx,
|
|
20718
20739
|
getStyles = props.getStyles,
|
|
20719
20740
|
innerProps = props.innerProps;
|
|
20720
|
-
return jsx("span", _extends$
|
|
20741
|
+
return jsx("span", _extends$g({}, innerProps, {
|
|
20721
20742
|
css: getStyles('indicatorSeparator', props),
|
|
20722
20743
|
className: cx({
|
|
20723
20744
|
'indicator-separator': true
|
|
@@ -20772,7 +20793,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
20772
20793
|
getStyles = props.getStyles,
|
|
20773
20794
|
innerProps = props.innerProps,
|
|
20774
20795
|
isRtl = props.isRtl;
|
|
20775
|
-
return jsx("div", _extends$
|
|
20796
|
+
return jsx("div", _extends$g({
|
|
20776
20797
|
css: getStyles('loadingIndicator', props),
|
|
20777
20798
|
className: cx({
|
|
20778
20799
|
indicator: true,
|
|
@@ -20833,7 +20854,7 @@ var Control = function Control(props) {
|
|
|
20833
20854
|
innerRef = props.innerRef,
|
|
20834
20855
|
innerProps = props.innerProps,
|
|
20835
20856
|
menuIsOpen = props.menuIsOpen;
|
|
20836
|
-
return jsx("div", _extends$
|
|
20857
|
+
return jsx("div", _extends$g({
|
|
20837
20858
|
ref: innerRef,
|
|
20838
20859
|
css: getStyles('control', props),
|
|
20839
20860
|
className: cx({
|
|
@@ -20865,12 +20886,12 @@ var Group = function Group(props) {
|
|
|
20865
20886
|
label = props.label,
|
|
20866
20887
|
theme = props.theme,
|
|
20867
20888
|
selectProps = props.selectProps;
|
|
20868
|
-
return jsx("div", _extends$
|
|
20889
|
+
return jsx("div", _extends$g({
|
|
20869
20890
|
css: getStyles('group', props),
|
|
20870
20891
|
className: cx({
|
|
20871
20892
|
group: true
|
|
20872
20893
|
}, className)
|
|
20873
|
-
}, innerProps), jsx(Heading, _extends$
|
|
20894
|
+
}, innerProps), jsx(Heading, _extends$g({}, headingProps, {
|
|
20874
20895
|
selectProps: selectProps,
|
|
20875
20896
|
theme: theme,
|
|
20876
20897
|
getStyles: getStyles,
|
|
@@ -20902,7 +20923,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
20902
20923
|
_cleanCommonProps.data;
|
|
20903
20924
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
20904
20925
|
|
|
20905
|
-
return jsx("div", _extends$
|
|
20926
|
+
return jsx("div", _extends$g({
|
|
20906
20927
|
css: getStyles('groupHeading', props),
|
|
20907
20928
|
className: cx({
|
|
20908
20929
|
'group-heading': true
|
|
@@ -20978,7 +20999,7 @@ var Input = function Input(props) {
|
|
|
20978
20999
|
}, className),
|
|
20979
21000
|
css: getStyles('input', props),
|
|
20980
21001
|
"data-value": value || ''
|
|
20981
|
-
}, jsx("input", _extends$
|
|
21002
|
+
}, jsx("input", _extends$g({
|
|
20982
21003
|
className: cx({
|
|
20983
21004
|
input: true
|
|
20984
21005
|
}, inputClassName),
|
|
@@ -21048,7 +21069,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
21048
21069
|
function MultiValueRemove$1(_ref5) {
|
|
21049
21070
|
var children = _ref5.children,
|
|
21050
21071
|
innerProps = _ref5.innerProps;
|
|
21051
|
-
return jsx("div", _extends$
|
|
21072
|
+
return jsx("div", _extends$g({
|
|
21052
21073
|
role: "button"
|
|
21053
21074
|
}, innerProps), children || jsx(CrossIcon, {
|
|
21054
21075
|
size: 14
|
|
@@ -21137,7 +21158,7 @@ var Option$1 = function Option(props) {
|
|
|
21137
21158
|
isSelected = props.isSelected,
|
|
21138
21159
|
innerRef = props.innerRef,
|
|
21139
21160
|
innerProps = props.innerProps;
|
|
21140
|
-
return jsx("div", _extends$
|
|
21161
|
+
return jsx("div", _extends$g({
|
|
21141
21162
|
css: getStyles('option', props),
|
|
21142
21163
|
className: cx({
|
|
21143
21164
|
option: true,
|
|
@@ -21169,7 +21190,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
21169
21190
|
cx = props.cx,
|
|
21170
21191
|
getStyles = props.getStyles,
|
|
21171
21192
|
innerProps = props.innerProps;
|
|
21172
|
-
return jsx("div", _extends$
|
|
21193
|
+
return jsx("div", _extends$g({
|
|
21173
21194
|
css: getStyles('placeholder', props),
|
|
21174
21195
|
className: cx({
|
|
21175
21196
|
placeholder: true
|
|
@@ -21202,7 +21223,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
21202
21223
|
getStyles = props.getStyles,
|
|
21203
21224
|
isDisabled = props.isDisabled,
|
|
21204
21225
|
innerProps = props.innerProps;
|
|
21205
|
-
return jsx("div", _extends$
|
|
21226
|
+
return jsx("div", _extends$g({
|
|
21206
21227
|
css: getStyles('singleValue', props),
|
|
21207
21228
|
className: cx({
|
|
21208
21229
|
'single-value': true,
|
|
@@ -21246,31 +21267,31 @@ function _arrayWithHoles(arr) {
|
|
|
21246
21267
|
if (Array.isArray(arr)) return arr;
|
|
21247
21268
|
}
|
|
21248
21269
|
|
|
21249
|
-
function _iterableToArrayLimit(
|
|
21250
|
-
var
|
|
21251
|
-
if (null !=
|
|
21252
|
-
var
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21270
|
+
function _iterableToArrayLimit(r, l) {
|
|
21271
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
21272
|
+
if (null != t) {
|
|
21273
|
+
var e,
|
|
21274
|
+
n,
|
|
21275
|
+
i,
|
|
21276
|
+
u,
|
|
21277
|
+
a = [],
|
|
21278
|
+
f = !0,
|
|
21279
|
+
o = !1;
|
|
21259
21280
|
try {
|
|
21260
|
-
if (
|
|
21261
|
-
if (Object(
|
|
21262
|
-
|
|
21263
|
-
} else for (; !(
|
|
21264
|
-
} catch (
|
|
21265
|
-
|
|
21281
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
21282
|
+
if (Object(t) !== t) return;
|
|
21283
|
+
f = !1;
|
|
21284
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
21285
|
+
} catch (r) {
|
|
21286
|
+
o = !0, n = r;
|
|
21266
21287
|
} finally {
|
|
21267
21288
|
try {
|
|
21268
|
-
if (!
|
|
21289
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
21269
21290
|
} finally {
|
|
21270
|
-
if (
|
|
21291
|
+
if (o) throw n;
|
|
21271
21292
|
}
|
|
21272
21293
|
}
|
|
21273
|
-
return
|
|
21294
|
+
return a;
|
|
21274
21295
|
}
|
|
21275
21296
|
}
|
|
21276
21297
|
|
|
@@ -21450,7 +21471,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21450
21471
|
};
|
|
21451
21472
|
|
|
21452
21473
|
var A11yText = function A11yText(props) {
|
|
21453
|
-
return jsx("span", _extends$
|
|
21474
|
+
return jsx("span", _extends$g({
|
|
21454
21475
|
css: _ref
|
|
21455
21476
|
}, props));
|
|
21456
21477
|
};
|
|
@@ -21986,7 +22007,7 @@ function DummyInput(_ref) {
|
|
|
21986
22007
|
var innerRef = _ref.innerRef,
|
|
21987
22008
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21988
22009
|
|
|
21989
|
-
return jsx("input", _extends$
|
|
22010
|
+
return jsx("input", _extends$g({
|
|
21990
22011
|
ref: innerRef
|
|
21991
22012
|
}, props, {
|
|
21992
22013
|
css: /*#__PURE__*/css$2({
|
|
@@ -23621,7 +23642,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23621
23642
|
|
|
23622
23643
|
if (!isSearchable) {
|
|
23623
23644
|
// use a dummy input to maintain focus/blur functionality
|
|
23624
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
23645
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$g({
|
|
23625
23646
|
id: id,
|
|
23626
23647
|
innerRef: this.getInputRef,
|
|
23627
23648
|
onBlur: this.onInputBlur,
|
|
@@ -23635,7 +23656,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23635
23656
|
}, ariaAttributes));
|
|
23636
23657
|
}
|
|
23637
23658
|
|
|
23638
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
23659
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$g({}, commonProps, {
|
|
23639
23660
|
autoCapitalize: "none",
|
|
23640
23661
|
autoComplete: "off",
|
|
23641
23662
|
autoCorrect: "off",
|
|
@@ -23679,7 +23700,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23679
23700
|
isFocused = _this$state5.isFocused;
|
|
23680
23701
|
|
|
23681
23702
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
23682
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
23703
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$g({}, commonProps, {
|
|
23683
23704
|
key: "placeholder",
|
|
23684
23705
|
isDisabled: isDisabled,
|
|
23685
23706
|
isFocused: isFocused,
|
|
@@ -23693,7 +23714,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23693
23714
|
return selectValue.map(function (opt, index) {
|
|
23694
23715
|
var isOptionFocused = opt === focusedValue;
|
|
23695
23716
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
23696
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
23717
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$g({}, commonProps, {
|
|
23697
23718
|
components: {
|
|
23698
23719
|
Container: MultiValueContainer,
|
|
23699
23720
|
Label: MultiValueLabel,
|
|
@@ -23725,7 +23746,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23725
23746
|
}
|
|
23726
23747
|
|
|
23727
23748
|
var singleValue = selectValue[0];
|
|
23728
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
23749
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$g({}, commonProps, {
|
|
23729
23750
|
data: singleValue,
|
|
23730
23751
|
isDisabled: isDisabled
|
|
23731
23752
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -23751,7 +23772,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23751
23772
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
23752
23773
|
'aria-hidden': 'true'
|
|
23753
23774
|
};
|
|
23754
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
23775
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$g({}, commonProps, {
|
|
23755
23776
|
innerProps: innerProps,
|
|
23756
23777
|
isFocused: isFocused
|
|
23757
23778
|
}));
|
|
@@ -23771,7 +23792,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23771
23792
|
var innerProps = {
|
|
23772
23793
|
'aria-hidden': 'true'
|
|
23773
23794
|
};
|
|
23774
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
23795
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$g({}, commonProps, {
|
|
23775
23796
|
innerProps: innerProps,
|
|
23776
23797
|
isDisabled: isDisabled,
|
|
23777
23798
|
isFocused: isFocused
|
|
@@ -23789,7 +23810,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23789
23810
|
var commonProps = this.commonProps;
|
|
23790
23811
|
var isDisabled = this.props.isDisabled;
|
|
23791
23812
|
var isFocused = this.state.isFocused;
|
|
23792
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
23813
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$g({}, commonProps, {
|
|
23793
23814
|
isDisabled: isDisabled,
|
|
23794
23815
|
isFocused: isFocused
|
|
23795
23816
|
}));
|
|
@@ -23809,7 +23830,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23809
23830
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
23810
23831
|
'aria-hidden': 'true'
|
|
23811
23832
|
};
|
|
23812
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
23833
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$g({}, commonProps, {
|
|
23813
23834
|
innerProps: innerProps,
|
|
23814
23835
|
isDisabled: isDisabled,
|
|
23815
23836
|
isFocused: isFocused
|
|
@@ -23872,7 +23893,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23872
23893
|
onMouseOver: onHover,
|
|
23873
23894
|
tabIndex: -1
|
|
23874
23895
|
};
|
|
23875
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
23896
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$g({}, commonProps, {
|
|
23876
23897
|
innerProps: innerProps,
|
|
23877
23898
|
data: data,
|
|
23878
23899
|
isDisabled: isDisabled,
|
|
@@ -23896,7 +23917,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23896
23917
|
groupIndex = item.index;
|
|
23897
23918
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
23898
23919
|
var headingId = "".concat(groupId, "-heading");
|
|
23899
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
23920
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$g({}, commonProps, {
|
|
23900
23921
|
key: groupId,
|
|
23901
23922
|
data: _data,
|
|
23902
23923
|
options: options,
|
|
@@ -23935,12 +23956,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23935
23956
|
menuPosition: menuPosition,
|
|
23936
23957
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
23937
23958
|
};
|
|
23938
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
23959
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$g({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
23939
23960
|
var ref = _ref4.ref,
|
|
23940
23961
|
_ref4$placerProps = _ref4.placerProps,
|
|
23941
23962
|
placement = _ref4$placerProps.placement,
|
|
23942
23963
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
23943
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
23964
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$g({}, commonProps, menuPlacementProps, {
|
|
23944
23965
|
innerRef: ref,
|
|
23945
23966
|
innerProps: {
|
|
23946
23967
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -23955,7 +23976,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23955
23976
|
onBottomArrive: onMenuScrollToBottom,
|
|
23956
23977
|
lockEnabled: menuShouldBlockScroll
|
|
23957
23978
|
}, function (scrollTargetRef) {
|
|
23958
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
23979
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$g({}, commonProps, {
|
|
23959
23980
|
innerRef: function innerRef(instance) {
|
|
23960
23981
|
_this4.getMenuListRef(instance);
|
|
23961
23982
|
|
|
@@ -23970,7 +23991,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23970
23991
|
// so we use the same component. the actual portalling logic is forked
|
|
23971
23992
|
// within the component based on `menuPosition`
|
|
23972
23993
|
|
|
23973
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
23994
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$g({}, commonProps, {
|
|
23974
23995
|
appendTo: menuPortalTarget,
|
|
23975
23996
|
controlElement: this.controlRef,
|
|
23976
23997
|
menuPlacement: menuPlacement,
|
|
@@ -24035,7 +24056,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24035
24056
|
isFocused = _this$state6.isFocused,
|
|
24036
24057
|
selectValue = _this$state6.selectValue;
|
|
24037
24058
|
var focusableOptions = this.getFocusableOptions();
|
|
24038
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
24059
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$g({}, commonProps, {
|
|
24039
24060
|
id: this.getElementId('live-region'),
|
|
24040
24061
|
ariaSelection: ariaSelection,
|
|
24041
24062
|
focusedOption: focusedOption,
|
|
@@ -24061,7 +24082,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24061
24082
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
24062
24083
|
var isFocused = this.state.isFocused;
|
|
24063
24084
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
24064
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
24085
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$g({}, commonProps, {
|
|
24065
24086
|
className: className,
|
|
24066
24087
|
innerProps: {
|
|
24067
24088
|
id: id,
|
|
@@ -24069,7 +24090,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24069
24090
|
},
|
|
24070
24091
|
isDisabled: isDisabled,
|
|
24071
24092
|
isFocused: isFocused
|
|
24072
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
24093
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$g({}, commonProps, {
|
|
24073
24094
|
innerRef: this.getControlRef,
|
|
24074
24095
|
innerProps: {
|
|
24075
24096
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -24078,9 +24099,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24078
24099
|
isDisabled: isDisabled,
|
|
24079
24100
|
isFocused: isFocused,
|
|
24080
24101
|
menuIsOpen: menuIsOpen
|
|
24081
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
24102
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$g({}, commonProps, {
|
|
24082
24103
|
isDisabled: isDisabled
|
|
24083
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
24104
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$g({}, commonProps, {
|
|
24084
24105
|
isDisabled: isDisabled
|
|
24085
24106
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
24086
24107
|
}
|
|
@@ -24153,22 +24174,22 @@ Select$1.defaultProps = defaultProps;
|
|
|
24153
24174
|
|
|
24154
24175
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24155
24176
|
var baseSelectProps = useStateManager(props);
|
|
24156
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
24177
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$g({
|
|
24157
24178
|
ref: ref
|
|
24158
24179
|
}, baseSelectProps));
|
|
24159
24180
|
});
|
|
24160
24181
|
|
|
24161
24182
|
var ReactSelect = StateManagedSelect;
|
|
24162
24183
|
|
|
24163
|
-
var _g$
|
|
24164
|
-
function _extends$
|
|
24184
|
+
var _g$6;
|
|
24185
|
+
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); }
|
|
24165
24186
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
24166
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24187
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
24167
24188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24168
24189
|
viewBox: "0 0 28 28",
|
|
24169
24190
|
width: "1em",
|
|
24170
24191
|
height: "1em"
|
|
24171
|
-
}, props), _g$
|
|
24192
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24172
24193
|
fill: "none",
|
|
24173
24194
|
fillRule: "evenodd",
|
|
24174
24195
|
transform: "translate(2 2)"
|
|
@@ -24184,15 +24205,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
24184
24205
|
}))));
|
|
24185
24206
|
};
|
|
24186
24207
|
|
|
24187
|
-
var _path$
|
|
24188
|
-
function _extends$
|
|
24208
|
+
var _path$7;
|
|
24209
|
+
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); }
|
|
24189
24210
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
24190
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24211
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
24191
24212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24192
24213
|
width: "1em",
|
|
24193
24214
|
height: "1em",
|
|
24194
24215
|
viewBox: "0 0 24 24"
|
|
24195
|
-
}, props), _path$
|
|
24216
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24196
24217
|
stroke: "#06C",
|
|
24197
24218
|
strokeLinecap: "round",
|
|
24198
24219
|
strokeLinejoin: "round",
|
|
@@ -24203,15 +24224,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
24203
24224
|
})));
|
|
24204
24225
|
};
|
|
24205
24226
|
|
|
24206
|
-
var _g$
|
|
24207
|
-
function _extends$
|
|
24227
|
+
var _g$5;
|
|
24228
|
+
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); }
|
|
24208
24229
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
24209
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24230
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
24210
24231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24211
24232
|
width: "1em",
|
|
24212
24233
|
height: "1em",
|
|
24213
24234
|
viewBox: "0 0 20 21"
|
|
24214
|
-
}, props), _g$
|
|
24235
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24215
24236
|
fill: "none",
|
|
24216
24237
|
fillRule: "evenodd"
|
|
24217
24238
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24271,8 +24292,8 @@ var CustomSelect = function (props) {
|
|
|
24271
24292
|
return jsxRuntime.jsx(ReactSelect, __assign({}, props));
|
|
24272
24293
|
};
|
|
24273
24294
|
|
|
24274
|
-
var css_248z$
|
|
24275
|
-
styleInject(css_248z$
|
|
24295
|
+
var css_248z$6 = ".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}";
|
|
24296
|
+
styleInject(css_248z$6);
|
|
24276
24297
|
|
|
24277
24298
|
function InfoColourBar(_a) {
|
|
24278
24299
|
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;
|
|
@@ -24548,8 +24569,126 @@ var Checkbox$1 = /** @class */ (function (_super) {
|
|
|
24548
24569
|
return Checkbox;
|
|
24549
24570
|
}(React.Component));
|
|
24550
24571
|
|
|
24551
|
-
var
|
|
24552
|
-
|
|
24572
|
+
var _g$4;
|
|
24573
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
24574
|
+
var SvgIcSearch = function SvgIcSearch(props) {
|
|
24575
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
24576
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24577
|
+
viewBox: "0 0 24 24",
|
|
24578
|
+
width: "1em",
|
|
24579
|
+
height: "1em"
|
|
24580
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24581
|
+
fill: "none",
|
|
24582
|
+
fillRule: "evenodd"
|
|
24583
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
24584
|
+
d: "M0 0h24v24H0z"
|
|
24585
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
24586
|
+
fill: "#959BA1",
|
|
24587
|
+
d: "M10 2a8 8 0 0 1 6.32 12.905l5.044 5.045a1 1 0 1 1-1.414 1.414l-5.045-5.043A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z"
|
|
24588
|
+
}))));
|
|
24589
|
+
};
|
|
24590
|
+
|
|
24591
|
+
var _g$3;
|
|
24592
|
+
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); }
|
|
24593
|
+
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
24594
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
24595
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24596
|
+
width: "1em",
|
|
24597
|
+
height: "1em",
|
|
24598
|
+
viewBox: "0 0 32 32"
|
|
24599
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24600
|
+
transform: "translate(2.667 2.667)",
|
|
24601
|
+
fill: "none",
|
|
24602
|
+
fillRule: "evenodd"
|
|
24603
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
24604
|
+
width: 26.667,
|
|
24605
|
+
height: 26.667,
|
|
24606
|
+
className: "ic-error-cross_svg__fill-color",
|
|
24607
|
+
fill: "#596168",
|
|
24608
|
+
rx: 13.333
|
|
24609
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
24610
|
+
fill: "#FFF",
|
|
24611
|
+
fillRule: "nonzero",
|
|
24612
|
+
d: "M8.62 8.62a1.332 1.332 0 0 1 1.885 0l2.828 2.827 2.829-2.828a1.334 1.334 0 0 1 1.777-.097l.108.097a1.333 1.333 0 0 1 0 1.886l-2.828 2.828 2.828 2.829c.486.486.519 1.254.098 1.777l-.098.108a1.332 1.332 0 0 1-1.885 0l-2.83-2.828-2.827 2.828a1.334 1.334 0 0 1-1.777.098l-.109-.098a1.333 1.333 0 0 1 0-1.885l2.828-2.83-2.828-2.827a1.334 1.334 0 0 1-.097-1.777z"
|
|
24613
|
+
}))));
|
|
24614
|
+
};
|
|
24615
|
+
|
|
24616
|
+
var css_248z$5 = ".search-bar:focus, .search-bar:focus-within {\n outline: none;\n border: solid 1px var(--B500);\n}\n.search-bar__input:focus, .search-bar__input:focus-visible {\n border: none;\n outline: none;\n}\n.search-bar__icon {\n z-index: 1;\n top: 50%;\n left: 8px;\n transform: translateY(-50%);\n}\n.search-bar__clear-button {\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}";
|
|
24617
|
+
styleInject(css_248z$5);
|
|
24618
|
+
|
|
24619
|
+
/**
|
|
24620
|
+
* Generic search input component with support for enter based and debounced search
|
|
24621
|
+
* Note: The component is uncontrolled
|
|
24622
|
+
*
|
|
24623
|
+
* @example Usage with default debounced search
|
|
24624
|
+
* ```tsx
|
|
24625
|
+
* <SearchBar handleSearchChange={triggerSearchApi} shouldDebounce />
|
|
24626
|
+
* ```
|
|
24627
|
+
*
|
|
24628
|
+
* @example Initial search text
|
|
24629
|
+
* ```tsx
|
|
24630
|
+
* <SearchBar initialSearchText="Keyword" />
|
|
24631
|
+
* ```
|
|
24632
|
+
*
|
|
24633
|
+
* @example Custom width
|
|
24634
|
+
* ```tsx
|
|
24635
|
+
* <SearchBar containerClassName="w-300" />
|
|
24636
|
+
* ```
|
|
24637
|
+
*
|
|
24638
|
+
* @example Trigger search on enter key press
|
|
24639
|
+
* ```tsx
|
|
24640
|
+
* <SearchBar handleEnter={triggerSearchApi} />
|
|
24641
|
+
* ```
|
|
24642
|
+
*
|
|
24643
|
+
* @example Custom timeout for debounced search
|
|
24644
|
+
* ```tsx
|
|
24645
|
+
* <SearchBar handleSearchChange={triggerSearchApi} shouldDebounce debounceTimeout={500} />
|
|
24646
|
+
* ```
|
|
24647
|
+
*
|
|
24648
|
+
* @example Placeholder for the search
|
|
24649
|
+
* ```tsx
|
|
24650
|
+
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
24651
|
+
* ```
|
|
24652
|
+
*/
|
|
24653
|
+
var SearchBar = function (_a) {
|
|
24654
|
+
var _b = _a.initialSearchText, initialSearchText = _b === void 0 ? '' : _b, _c = _a.handleSearchChange, handleSearchChange = _c === void 0 ? function () { } : _c, _d = _a.handleEnter, handleEnter = _d === void 0 ? function () { } : _d, _e = _a.inputProps, inputProps = _e === void 0 ? {} : _e, containerClassName = _a.containerClassName, _f = _a.shouldDebounce, shouldDebounce = _f === void 0 ? false : _f, _g = _a.debounceTimeout, debounceTimeout = _g === void 0 ? 300 : _g;
|
|
24655
|
+
var _h = __read(React.useState(!!initialSearchText), 2), showClearButton = _h[0], setShowClearButton = _h[1];
|
|
24656
|
+
var inputRef = React.useRef();
|
|
24657
|
+
var debouncedSearchChange = React.useCallback(debounce$2(handleSearchChange, debounceTimeout), [
|
|
24658
|
+
handleSearchChange,
|
|
24659
|
+
debounceTimeout,
|
|
24660
|
+
]);
|
|
24661
|
+
var handleChange = function (e) {
|
|
24662
|
+
var value = e.target.value;
|
|
24663
|
+
setShowClearButton(!!value);
|
|
24664
|
+
if (shouldDebounce) {
|
|
24665
|
+
debouncedSearchChange(value);
|
|
24666
|
+
}
|
|
24667
|
+
else {
|
|
24668
|
+
handleSearchChange(value);
|
|
24669
|
+
}
|
|
24670
|
+
};
|
|
24671
|
+
var _applySearch = function (value) {
|
|
24672
|
+
handleSearchChange(value);
|
|
24673
|
+
handleEnter(value);
|
|
24674
|
+
};
|
|
24675
|
+
var handleKeyDown = function (e) {
|
|
24676
|
+
var key = e.key;
|
|
24677
|
+
if (key === 'Enter') {
|
|
24678
|
+
var inputTarget = e.target;
|
|
24679
|
+
var value = inputTarget.value.trim();
|
|
24680
|
+
_applySearch(value);
|
|
24681
|
+
}
|
|
24682
|
+
};
|
|
24683
|
+
var clearSearch = function () {
|
|
24684
|
+
inputRef.current.value = '';
|
|
24685
|
+
_applySearch('');
|
|
24686
|
+
};
|
|
24687
|
+
return (jsxRuntime.jsx("div", __assign({ className: containerClassName }, { children: jsxRuntime.jsxs("div", __assign({ className: "search-bar bcn-0 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32" }, { children: [jsxRuntime.jsx(SvgIcSearch, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-18" }), jsxRuntime.jsx("input", __assign({ placeholder: "Search", "data-testid": "search-bar", type: "text" }, inputProps, { defaultValue: initialSearchText, className: "search-bar__input bcn-0 dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ".concat(showClearButton ? 'pr-30' : 'pr-10'), onChange: handleChange, onKeyDown: handleKeyDown, ref: inputRef })), showClearButton && (jsxRuntime.jsx("button", __assign({ className: "flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5", type: "button", onClick: clearSearch, "aria-label": "Clear search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-18 icon-n4 dc__vertical-align-middle" }) })))] })) })));
|
|
24688
|
+
};
|
|
24689
|
+
|
|
24690
|
+
var css_248z$4 = ".toggle__switch {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.toggle__switch.disabled {\n cursor: not-allowed;\n}\n.toggle__switch.disabled .toggle__slider {\n cursor: not-allowed;\n}\n\n/* Hide default HTML checkbox */\n.toggle__switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.toggle__slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: all 0.4s ease;\n}\n.toggle__slider.round {\n border-radius: 34px;\n}\n.toggle__slider.round:before {\n border-radius: 50%;\n}\n.toggle__slider:before {\n position: absolute;\n content: \"\";\n height: calc(100% - 8px);\n width: calc(50% - 4px);\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: all 0.4s ease;\n}\n.toggle__slider.with-icon {\n background-color: var(--N000) !important;\n}\n.toggle__slider.with-icon svg {\n position: absolute;\n content: \"\";\n top: -1px;\n left: -1px;\n background-color: var(--N300);\n transition: all 0.4s ease;\n}\n\ninput:checked + .toggle__slider {\n background-color: var(--color);\n}\ninput:checked + .toggle__slider:before {\n transform: translateX(100%);\n}\ninput:checked + .toggle__slider.with-icon svg {\n transform: translateX(100%);\n background-color: var(--color);\n}\n\ninput:focus + .toggle__slider {\n box-shadow: 0 0 1px var(--color);\n}";
|
|
24691
|
+
styleInject(css_248z$4);
|
|
24553
24692
|
|
|
24554
24693
|
var Toggle = function (_a) {
|
|
24555
24694
|
var _b;
|
|
@@ -24573,8 +24712,8 @@ var Toggle = function (_a) {
|
|
|
24573
24712
|
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) }) }))] })));
|
|
24574
24713
|
};
|
|
24575
24714
|
|
|
24576
|
-
var css_248z$
|
|
24577
|
-
styleInject(css_248z$
|
|
24715
|
+
var css_248z$3 = ".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}";
|
|
24716
|
+
styleInject(css_248z$3);
|
|
24578
24717
|
|
|
24579
24718
|
function ScanVulnerabilitiesTable(_a) {
|
|
24580
24719
|
var vulnerabilities = _a.vulnerabilities;
|
|
@@ -24589,8 +24728,8 @@ function ScanVulnerabilitiesTable(_a) {
|
|
|
24589
24728
|
})] }) })));
|
|
24590
24729
|
}
|
|
24591
24730
|
|
|
24592
|
-
var css_248z$
|
|
24593
|
-
styleInject(css_248z$
|
|
24731
|
+
var css_248z$2 = ".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}";
|
|
24732
|
+
styleInject(css_248z$2);
|
|
24594
24733
|
|
|
24595
24734
|
var RadioContext = React.createContext(null);
|
|
24596
24735
|
function useRadioContext() {
|
|
@@ -24683,7 +24822,7 @@ exports.ConsequenceAction = void 0;
|
|
|
24683
24822
|
ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
|
|
24684
24823
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
24685
24824
|
|
|
24686
|
-
var _g$
|
|
24825
|
+
var _g$2;
|
|
24687
24826
|
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); }
|
|
24688
24827
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
24689
24828
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
@@ -24691,7 +24830,7 @@ var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
|
24691
24830
|
width: "1em",
|
|
24692
24831
|
height: "1em",
|
|
24693
24832
|
viewBox: "0 0 32 32"
|
|
24694
|
-
}, props), _g$
|
|
24833
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24695
24834
|
fill: "none",
|
|
24696
24835
|
fillRule: "evenodd"
|
|
24697
24836
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24765,7 +24904,7 @@ function DeleteComponent(_a) {
|
|
|
24765
24904
|
return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
|
|
24766
24905
|
}
|
|
24767
24906
|
|
|
24768
|
-
var _path$
|
|
24907
|
+
var _path$6;
|
|
24769
24908
|
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); }
|
|
24770
24909
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
24771
24910
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
@@ -24774,7 +24913,7 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
24774
24913
|
viewBox: "0 0 20 20",
|
|
24775
24914
|
fill: "none",
|
|
24776
24915
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24777
|
-
}, props), _path$
|
|
24916
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24778
24917
|
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",
|
|
24779
24918
|
stroke: "#596168",
|
|
24780
24919
|
strokeWidth: 1.5,
|
|
@@ -24783,7 +24922,7 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
24783
24922
|
})));
|
|
24784
24923
|
};
|
|
24785
24924
|
|
|
24786
|
-
var _path$
|
|
24925
|
+
var _path$5, _path2, _path3;
|
|
24787
24926
|
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); }
|
|
24788
24927
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
24789
24928
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
@@ -24792,7 +24931,7 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
24792
24931
|
viewBox: "0 0 12 12",
|
|
24793
24932
|
fill: "none",
|
|
24794
24933
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24795
|
-
}, props), _path$
|
|
24934
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24796
24935
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
24797
24936
|
fill: "#767D84"
|
|
24798
24937
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24810,7 +24949,7 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
24810
24949
|
})));
|
|
24811
24950
|
};
|
|
24812
24951
|
|
|
24813
|
-
var _path$
|
|
24952
|
+
var _path$4;
|
|
24814
24953
|
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); }
|
|
24815
24954
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
24816
24955
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
@@ -24818,7 +24957,7 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
24818
24957
|
width: "1em",
|
|
24819
24958
|
height: "1em",
|
|
24820
24959
|
viewBox: "0 0 14 14"
|
|
24821
|
-
}, props), _path$
|
|
24960
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24822
24961
|
fill: "#959BA1",
|
|
24823
24962
|
className: "ic-minus_svg__fill-color",
|
|
24824
24963
|
fillRule: "evenodd",
|
|
@@ -24826,7 +24965,7 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
24826
24965
|
})));
|
|
24827
24966
|
};
|
|
24828
24967
|
|
|
24829
|
-
var _g$
|
|
24968
|
+
var _g$1;
|
|
24830
24969
|
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); }
|
|
24831
24970
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
24832
24971
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
@@ -24834,7 +24973,7 @@ var SvgIcWarning = function SvgIcWarning(props) {
|
|
|
24834
24973
|
width: "1em",
|
|
24835
24974
|
height: "1em",
|
|
24836
24975
|
viewBox: "0 0 32 32"
|
|
24837
|
-
}, props), _g$
|
|
24976
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24838
24977
|
fill: "none",
|
|
24839
24978
|
fillRule: "evenodd"
|
|
24840
24979
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24848,7 +24987,7 @@ var SvgIcWarning = function SvgIcWarning(props) {
|
|
|
24848
24987
|
}))));
|
|
24849
24988
|
};
|
|
24850
24989
|
|
|
24851
|
-
var _g
|
|
24990
|
+
var _g;
|
|
24852
24991
|
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); }
|
|
24853
24992
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
24854
24993
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
@@ -24856,7 +24995,7 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
24856
24995
|
width: "1em",
|
|
24857
24996
|
height: "1em",
|
|
24858
24997
|
viewBox: "0 0 20 20"
|
|
24859
|
-
}, props), _g
|
|
24998
|
+
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24860
24999
|
fill: "none",
|
|
24861
25000
|
fillRule: "evenodd"
|
|
24862
25001
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24868,7 +25007,7 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
24868
25007
|
}))));
|
|
24869
25008
|
};
|
|
24870
25009
|
|
|
24871
|
-
var _path$
|
|
25010
|
+
var _path$3;
|
|
24872
25011
|
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); }
|
|
24873
25012
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
24874
25013
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
@@ -24877,7 +25016,7 @@ var SvgIcEnter = function SvgIcEnter(props) {
|
|
|
24877
25016
|
viewBox: "0 0 16 16",
|
|
24878
25017
|
fill: "none",
|
|
24879
25018
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24880
|
-
}, props), _path$
|
|
25019
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
24881
25020
|
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",
|
|
24882
25021
|
fill: "#3B444C"
|
|
24883
25022
|
})));
|
|
@@ -25235,32 +25374,9 @@ function useDebouncedEffect(callback, delay, deps) {
|
|
|
25235
25374
|
}, __spreadArray([delay], __read(deps), false));
|
|
25236
25375
|
}
|
|
25237
25376
|
|
|
25238
|
-
var _g;
|
|
25239
|
-
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); }
|
|
25240
|
-
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
25241
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
25242
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25243
|
-
width: "1em",
|
|
25244
|
-
height: "1em",
|
|
25245
|
-
viewBox: "0 0 32 32"
|
|
25246
|
-
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
25247
|
-
transform: "translate(2.667 2.667)",
|
|
25248
|
-
fill: "none",
|
|
25249
|
-
fillRule: "evenodd"
|
|
25250
|
-
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
25251
|
-
width: 26.667,
|
|
25252
|
-
height: 26.667,
|
|
25253
|
-
className: "ic-error-cross_svg__fill-color",
|
|
25254
|
-
fill: "#596168",
|
|
25255
|
-
rx: 13.333
|
|
25256
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
25257
|
-
fill: "#FFF",
|
|
25258
|
-
fillRule: "nonzero",
|
|
25259
|
-
d: "M8.62 8.62a1.332 1.332 0 0 1 1.885 0l2.828 2.827 2.829-2.828a1.334 1.334 0 0 1 1.777-.097l.108.097a1.333 1.333 0 0 1 0 1.886l-2.828 2.828 2.828 2.829c.486.486.519 1.254.098 1.777l-.098.108a1.332 1.332 0 0 1-1.885 0l-2.83-2.828-2.827 2.828a1.334 1.334 0 0 1-1.777.098l-.109-.098a1.333 1.333 0 0 1 0-1.885l2.828-2.83-2.828-2.827a1.334 1.334 0 0 1-.097-1.777z"
|
|
25260
|
-
}))));
|
|
25261
|
-
};
|
|
25262
|
-
|
|
25263
25377
|
/**
|
|
25378
|
+
* @deprecated Use `SearchBar` component instead.
|
|
25379
|
+
*
|
|
25264
25380
|
* @param onSearch - Callback function to be called on search
|
|
25265
25381
|
* @param Icon - (Optional) Icon to be shown before the input
|
|
25266
25382
|
* @param iconClass - (Optional) Class for the icon
|
|
@@ -25290,7 +25406,7 @@ function DebouncedSearch(_a) {
|
|
|
25290
25406
|
|
|
25291
25407
|
// This is meant to be a reusable component that will provide a grid like dynamic layout where xs is the number of columns out of 12 that the item will take up
|
|
25292
25408
|
function Grid(_a) {
|
|
25293
|
-
var container = _a.container, _b = _a.spacing, spacing = _b === void 0 ? 0 : _b, item = _a.item, xs = _a.xs, _c = _a.containerClass, containerClass = _c === void 0 ? '' : _c, _d = _a.itemClass, itemClass = _d === void 0 ? '' : _d, children = _a.children;
|
|
25409
|
+
var container = _a.container, _b = _a.spacing, spacing = _b === void 0 ? 0 : _b, item = _a.item, xs = _a.xs, _c = _a.containerClass, containerClass = _c === void 0 ? '' : _c, _d = _a.itemClass, itemClass = _d === void 0 ? '' : _d, children = _a.children, containerDivProps = __rest(_a, ["container", "spacing", "item", "xs", "containerClass", "itemClass", "children"]);
|
|
25294
25410
|
var containerStyles = container ? { gap: spacing + 'px' } : {};
|
|
25295
25411
|
if (item) {
|
|
25296
25412
|
var getColumnWidth = function () {
|
|
@@ -25301,20 +25417,20 @@ function Grid(_a) {
|
|
|
25301
25417
|
var itemStyles = {
|
|
25302
25418
|
flex: "1 1 ".concat(getColumnWidth()),
|
|
25303
25419
|
};
|
|
25304
|
-
return (jsxRuntime.jsx("div", __assign({ className: "p-0 ".concat(itemClass), style: itemStyles }, { children: children })));
|
|
25420
|
+
return (jsxRuntime.jsx("div", __assign({ className: "p-0 ".concat(itemClass), style: itemStyles }, containerDivProps, { children: children })));
|
|
25305
25421
|
}
|
|
25306
|
-
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
|
|
25422
|
+
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, containerDivProps, { children: children })));
|
|
25307
25423
|
}
|
|
25308
25424
|
|
|
25309
|
-
var _path$
|
|
25310
|
-
function _extends$
|
|
25425
|
+
var _path$2;
|
|
25426
|
+
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); }
|
|
25311
25427
|
var SvgIcCopy = function SvgIcCopy(props) {
|
|
25312
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25428
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
25313
25429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25314
25430
|
width: "1em",
|
|
25315
25431
|
height: "1em",
|
|
25316
25432
|
viewBox: "0 0 20 20"
|
|
25317
|
-
}, props), _path$
|
|
25433
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25318
25434
|
fill: "#767D84",
|
|
25319
25435
|
fillRule: "evenodd",
|
|
25320
25436
|
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"
|
|
@@ -25387,6 +25503,30 @@ var useClickOutside = function (ref, callback) {
|
|
|
25387
25503
|
}, [ref, callback]);
|
|
25388
25504
|
};
|
|
25389
25505
|
|
|
25506
|
+
var timeout;
|
|
25507
|
+
var getSize = function () {
|
|
25508
|
+
return {
|
|
25509
|
+
width: window.innerWidth,
|
|
25510
|
+
height: window.innerHeight,
|
|
25511
|
+
};
|
|
25512
|
+
};
|
|
25513
|
+
var useWindowSize = function () {
|
|
25514
|
+
var _a = __read(React.useState(getSize), 2), windowSize = _a[0], setWindowSize = _a[1];
|
|
25515
|
+
function handleResize(e) {
|
|
25516
|
+
if (timeout) {
|
|
25517
|
+
window.cancelAnimationFrame(timeout);
|
|
25518
|
+
}
|
|
25519
|
+
timeout = window.requestAnimationFrame(function () {
|
|
25520
|
+
setWindowSize(getSize());
|
|
25521
|
+
});
|
|
25522
|
+
}
|
|
25523
|
+
React.useEffect(function () {
|
|
25524
|
+
window.addEventListener('resize', handleResize, false);
|
|
25525
|
+
return function () { return window.removeEventListener('resize', handleResize, false); };
|
|
25526
|
+
}, []);
|
|
25527
|
+
return windowSize;
|
|
25528
|
+
};
|
|
25529
|
+
|
|
25390
25530
|
var StatusConstants = {
|
|
25391
25531
|
NOT_DEPLOYED: {
|
|
25392
25532
|
noSpaceLower: 'notdeployed',
|
|
@@ -28122,15 +28262,15 @@ var getInferredTypeFromValueType = function (value) {
|
|
|
28122
28262
|
}
|
|
28123
28263
|
};
|
|
28124
28264
|
|
|
28125
|
-
var _path;
|
|
28126
|
-
function _extends$
|
|
28265
|
+
var _path$1;
|
|
28266
|
+
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); }
|
|
28127
28267
|
var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
28128
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
28268
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
28129
28269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28130
28270
|
width: "1em",
|
|
28131
28271
|
height: "1em",
|
|
28132
28272
|
viewBox: "0 0 24 24"
|
|
28133
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28273
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28134
28274
|
fill: "#999",
|
|
28135
28275
|
className: "ic-chevron-down_svg__fill-color",
|
|
28136
28276
|
fillRule: "nonzero",
|
|
@@ -28180,8 +28320,8 @@ var templates = {
|
|
|
28180
28320
|
WrapIfAdditionalTemplate: WrapIfAdditionalTemplate,
|
|
28181
28321
|
};
|
|
28182
28322
|
|
|
28183
|
-
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}";
|
|
28184
|
-
styleInject(css_248z);
|
|
28323
|
+
var css_248z$1 = ".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}";
|
|
28324
|
+
styleInject(css_248z$1);
|
|
28185
28325
|
|
|
28186
28326
|
// Need to use this way because the default import was not working as expected
|
|
28187
28327
|
// The default import resolves to an object intead of a function
|
|
@@ -28190,9 +28330,9 @@ var validator = RJSFValidator.default;
|
|
|
28190
28330
|
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 }))); };
|
|
28191
28331
|
|
|
28192
28332
|
var _style, _rect;
|
|
28193
|
-
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); }
|
|
28333
|
+
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); }
|
|
28194
28334
|
var SvgIcRotateDevtron = function SvgIcRotateDevtron(props) {
|
|
28195
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
28335
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
28196
28336
|
width: "1em",
|
|
28197
28337
|
height: "1em",
|
|
28198
28338
|
viewBox: "0 0 100 100",
|
|
@@ -28383,6 +28523,220 @@ function CustomInput(_a) {
|
|
|
28383
28523
|
}, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex, autoFocus: autoFocus, readOnly: readOnly, ref: ref, onKeyPress: onKeyPress, defaultValue: defaultValue, onKeyDown: onKeyDown, required: required }), getInputError(), helperText && (jsxRuntime.jsxs("div", __assign({ className: "form__text-field-info" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "form__icon form__icon--info" }), jsxRuntime.jsx("p", __assign({ className: "sentence-case" }, { children: helperText }))] })))] })));
|
|
28384
28524
|
}
|
|
28385
28525
|
|
|
28526
|
+
exports.DraggablePositionVariant = void 0;
|
|
28527
|
+
(function (DraggablePositionVariant) {
|
|
28528
|
+
DraggablePositionVariant["PARENT_BOTTOM_CENTER"] = "PARENT_BOTTOM_CENTER";
|
|
28529
|
+
DraggablePositionVariant["SCREEN_BOTTOM_CENTER"] = "SCREEN_BOTTOM_CENTER";
|
|
28530
|
+
// Can add more based on requirement
|
|
28531
|
+
})(exports.DraggablePositionVariant || (exports.DraggablePositionVariant = {}));
|
|
28532
|
+
|
|
28533
|
+
/**
|
|
28534
|
+
* TODO: import it as lazy, after it is supported in common
|
|
28535
|
+
* 1. If using react select please use menuPlacement='auto'
|
|
28536
|
+
* 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
|
|
28537
|
+
* 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
|
|
28538
|
+
*/
|
|
28539
|
+
function DraggableWrapper(_a) {
|
|
28540
|
+
var children = _a.children, _b = _a.zIndex, zIndex = _b === void 0 ? MAX_Z_INDEX : _b, positionVariant = _a.positionVariant, dragSelector = _a.dragSelector, parentRef = _a.parentRef, _c = _a.boundaryGap, boundaryGap = _c === void 0 ? 16 : _c, _d = _a.childDivProps, childDivProps = _d === void 0 ? {} : _d;
|
|
28541
|
+
var windowSize = useWindowSize();
|
|
28542
|
+
var nodeRef = React.useRef(null);
|
|
28543
|
+
var _e = __read(React.useState({
|
|
28544
|
+
x: 0,
|
|
28545
|
+
y: 0,
|
|
28546
|
+
}), 2), position = _e[0], setPosition = _e[1];
|
|
28547
|
+
var getDefaultPosition = function (positionVariant) {
|
|
28548
|
+
var _a, _b, _c, _d, _e, _f;
|
|
28549
|
+
// if this return x: 0, y: 0 then it will be top left corner of parentDiv
|
|
28550
|
+
var parentRect = (_b = (_a = parentRef === null || parentRef === void 0 ? void 0 : parentRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : {
|
|
28551
|
+
width: 0,
|
|
28552
|
+
height: 0,
|
|
28553
|
+
top: 0,
|
|
28554
|
+
left: 0,
|
|
28555
|
+
bottom: 0,
|
|
28556
|
+
};
|
|
28557
|
+
var nodeRefHeight = (_d = (_c = nodeRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().height) !== null && _d !== void 0 ? _d : 0;
|
|
28558
|
+
var nodeRefWidth = (_f = (_e = nodeRef.current) === null || _e === void 0 ? void 0 : _e.getBoundingClientRect().width) !== null && _f !== void 0 ? _f : 0;
|
|
28559
|
+
switch (positionVariant) {
|
|
28560
|
+
case exports.DraggablePositionVariant.PARENT_BOTTOM_CENTER: {
|
|
28561
|
+
// currently at parentRect.x and need to start to the center of its width and half of node should lie on left of center and other half on right
|
|
28562
|
+
var x = (parentRect.width - nodeRefWidth) / 2;
|
|
28563
|
+
// currently at parentRect.y now parent height can be greater than windowSize.height so taking min
|
|
28564
|
+
// subtracting parentRect.top since window height already contains that
|
|
28565
|
+
var baseY = parentRect.height > windowSize.height ? windowSize.height - parentRect.top : parentRect.height;
|
|
28566
|
+
var y = baseY - nodeRefHeight - boundaryGap;
|
|
28567
|
+
return { x: x, y: y };
|
|
28568
|
+
}
|
|
28569
|
+
// Add more cases for other variants if needed
|
|
28570
|
+
default: {
|
|
28571
|
+
// Since need node to be in center of screen so subtracting width/2 by left of parentRect it will start the node from center but want node's midpoint at center so subtracting node's width from it.
|
|
28572
|
+
var x = windowSize.width / 2 - parentRect.left - nodeRefWidth / 2;
|
|
28573
|
+
// subtracting top since windowSize already contains that
|
|
28574
|
+
var y = windowSize.height - parentRect.top - nodeRefHeight - boundaryGap;
|
|
28575
|
+
return { x: x, y: y };
|
|
28576
|
+
}
|
|
28577
|
+
}
|
|
28578
|
+
};
|
|
28579
|
+
// On change of windowSize we will reset the position to default
|
|
28580
|
+
React.useEffect(function () {
|
|
28581
|
+
var defaultPosition = getDefaultPosition(positionVariant);
|
|
28582
|
+
setPosition(defaultPosition);
|
|
28583
|
+
}, [nodeRef, positionVariant, windowSize]);
|
|
28584
|
+
// Would be called on drag and will not update the state if the new position is out of window screen
|
|
28585
|
+
function handlePositionChange(e, data) {
|
|
28586
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
28587
|
+
var offsetX = (_b = (_a = parentRef === null || parentRef === void 0 ? void 0 : parentRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left) !== null && _b !== void 0 ? _b : 0;
|
|
28588
|
+
var offsetY = (_d = (_c = parentRef === null || parentRef === void 0 ? void 0 : parentRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().top) !== null && _d !== void 0 ? _d : 0;
|
|
28589
|
+
var nodeRefHeight = (_f = (_e = nodeRef.current) === null || _e === void 0 ? void 0 : _e.getBoundingClientRect().height) !== null && _f !== void 0 ? _f : 0;
|
|
28590
|
+
var nodeRefWidth = (_h = (_g = nodeRef.current) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().width) !== null && _h !== void 0 ? _h : 0;
|
|
28591
|
+
if (offsetX + data.x + nodeRefWidth + boundaryGap > windowSize.width ||
|
|
28592
|
+
offsetY + data.y + nodeRefHeight + boundaryGap > windowSize.height ||
|
|
28593
|
+
offsetX + data.x < 0 ||
|
|
28594
|
+
offsetY + data.y < 0) {
|
|
28595
|
+
return;
|
|
28596
|
+
}
|
|
28597
|
+
setPosition({
|
|
28598
|
+
x: data.x,
|
|
28599
|
+
y: data.y,
|
|
28600
|
+
});
|
|
28601
|
+
}
|
|
28602
|
+
return (jsxRuntime.jsx("div", __assign({ className: "dc__position-fixed", style: {
|
|
28603
|
+
zIndex: zIndex,
|
|
28604
|
+
} }, { children: jsxRuntime.jsx(Draggable, __assign({ handle: dragSelector, nodeRef: nodeRef, position: position, onDrag: handlePositionChange }, { children: jsxRuntime.jsx("div", __assign({ ref: nodeRef }, childDivProps, { style: {
|
|
28605
|
+
zIndex: zIndex,
|
|
28606
|
+
} }, { children: children })) })) })));
|
|
28607
|
+
}
|
|
28608
|
+
|
|
28609
|
+
var _path;
|
|
28610
|
+
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); }
|
|
28611
|
+
var SvgIcDrag = function SvgIcDrag(props) {
|
|
28612
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
28613
|
+
width: "1em",
|
|
28614
|
+
height: "1em",
|
|
28615
|
+
viewBox: "0 0 16 16",
|
|
28616
|
+
fill: "none",
|
|
28617
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
28618
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
28619
|
+
d: "M10.334 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",
|
|
28620
|
+
fill: "#596168"
|
|
28621
|
+
})));
|
|
28622
|
+
};
|
|
28623
|
+
|
|
28624
|
+
function DraggableButton(_a) {
|
|
28625
|
+
var dragClassName = _a.dragClassName;
|
|
28626
|
+
return (jsxRuntime.jsx("button", __assign({ type: "button", className: "".concat(dragClassName, " dc__outline-none-imp dc__no-border p-0 dc__transparent h-20") }, { children: jsxRuntime.jsx(SvgIcDrag, { className: "dc__grabbable icon-dim-20 fcn-6" }) })));
|
|
28627
|
+
}
|
|
28628
|
+
|
|
28629
|
+
var VISIBLE_PAGES_LIMIT = 5;
|
|
28630
|
+
var FALLBACK_PAGE_SIZE_OPTIONS = [
|
|
28631
|
+
{ value: 20, selected: true },
|
|
28632
|
+
{ value: 40, selected: false },
|
|
28633
|
+
{ value: 50, selected: false },
|
|
28634
|
+
];
|
|
28635
|
+
|
|
28636
|
+
/**
|
|
28637
|
+
* Returns an array of pages numbers and whether they are selected, visible or not
|
|
28638
|
+
*/
|
|
28639
|
+
var createPageArr = function (_a) {
|
|
28640
|
+
var size = _a.size, pageSize = _a.pageSize, selectedPageNo = _a.selectedPageNo;
|
|
28641
|
+
var arr = [];
|
|
28642
|
+
var numberOfPages = Math.ceil(size / pageSize);
|
|
28643
|
+
// we are showing 2 numbers before and after the selected page, so computing the lower and upper bounds
|
|
28644
|
+
var lowerBound = selectedPageNo - 2 < 1 ? 1 : selectedPageNo - 2;
|
|
28645
|
+
var upperBound = selectedPageNo + 2 > numberOfPages ? numberOfPages : selectedPageNo + 2;
|
|
28646
|
+
for (var i = 1; i <= numberOfPages; i++) {
|
|
28647
|
+
arr.push({
|
|
28648
|
+
value: i,
|
|
28649
|
+
selected: i === selectedPageNo,
|
|
28650
|
+
isVisible: upperBound - VISIBLE_PAGES_LIMIT < i && i < lowerBound + VISIBLE_PAGES_LIMIT,
|
|
28651
|
+
});
|
|
28652
|
+
}
|
|
28653
|
+
return arr;
|
|
28654
|
+
};
|
|
28655
|
+
var getDefaultPageValueOptions = function (pageSizeOptions) {
|
|
28656
|
+
return (pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions.length) ? pageSizeOptions : FALLBACK_PAGE_SIZE_OPTIONS;
|
|
28657
|
+
};
|
|
28658
|
+
|
|
28659
|
+
var PageSizeItems = function (_a) {
|
|
28660
|
+
var optionValue = _a.optionValue, options = _a.options, setOptions = _a.setOptions, handleCloseDropdown = _a.handleCloseDropdown, changePageSize = _a.changePageSize;
|
|
28661
|
+
var handlePageSizeSelect = function () {
|
|
28662
|
+
var newOptions = options.map(function (_option) { return ({
|
|
28663
|
+
value: _option.value,
|
|
28664
|
+
selected: _option.value === optionValue,
|
|
28665
|
+
}); });
|
|
28666
|
+
setOptions(__spreadArray([], __read(newOptions), false));
|
|
28667
|
+
handleCloseDropdown();
|
|
28668
|
+
changePageSize(optionValue);
|
|
28669
|
+
};
|
|
28670
|
+
return (jsxRuntime.jsx("div", __assign({ className: "select__item", onClick: handlePageSizeSelect }, { children: optionValue }), optionValue));
|
|
28671
|
+
};
|
|
28672
|
+
var PageSizeSelector = function (_a) {
|
|
28673
|
+
var pageSizeOptions = _a.pageSizeOptions, pageSize = _a.pageSize, changePageSize = _a.changePageSize;
|
|
28674
|
+
var defaultOptions = getDefaultPageValueOptions(pageSizeOptions).map(function (option) { return ({
|
|
28675
|
+
value: option.value,
|
|
28676
|
+
selected: option.value === pageSize,
|
|
28677
|
+
}); });
|
|
28678
|
+
var _b = __read(React.useState(false), 2), isDropdownOpen = _b[0], setIsDropdownOpen = _b[1];
|
|
28679
|
+
var _c = __read(React.useState(defaultOptions), 2), options = _c[0], setOptions = _c[1];
|
|
28680
|
+
var handleCloseDropdown = function () {
|
|
28681
|
+
setIsDropdownOpen(false);
|
|
28682
|
+
};
|
|
28683
|
+
var handleDropdownToggle = function () {
|
|
28684
|
+
setIsDropdownOpen(!isDropdownOpen);
|
|
28685
|
+
};
|
|
28686
|
+
var dropdownRef = React.useRef(null);
|
|
28687
|
+
useClickOutside(dropdownRef, handleCloseDropdown);
|
|
28688
|
+
var selectedOption = options.find(function (option) { return option.selected; });
|
|
28689
|
+
var font = isDropdownOpen ? 'fa fa-caret-up' : 'fa fa-caret-down';
|
|
28690
|
+
return (jsxRuntime.jsxs("div", __assign({ ref: dropdownRef }, { children: [isDropdownOpen && (jsxRuntime.jsx("div", __assign({ className: "pagination__select-menu" }, { children: options.map(function (_option) { return (jsxRuntime.jsx(PageSizeItems, { optionValue: _option.value, options: options, setOptions: setOptions, handleCloseDropdown: handleCloseDropdown, changePageSize: changePageSize })); }) }))), jsxRuntime.jsxs("button", __assign({ type: "button", className: "select__button", onClick: handleDropdownToggle }, { children: [jsxRuntime.jsx("span", { children: selectedOption ? selectedOption.value : '' }), jsxRuntime.jsx("span", __assign({ className: "select__icon" }, { children: jsxRuntime.jsx("i", { className: font }) }))] }))] })));
|
|
28691
|
+
};
|
|
28692
|
+
|
|
28693
|
+
var css_248z = ".pagination-wrapper {\n display: flex;\n align-items: center;\n padding: 0px 24px;\n justify-content: space-between;\n margin: 0px;\n background-color: var(--white);\n}\n\n.pagination {\n margin-top: 16px;\n margin-bottom: 16px;\n padding: 0px;\n}\n\n.select {\n display: flex;\n align-items: center;\n position: relative;\n}\n\n.select__placeholder {\n font-size: 12px;\n font-weight: normal;\n font-style: normal;\n font-stretch: normal;\n line-height: 1.5;\n letter-spacing: normal;\n color: var(--N700);\n margin-right: 8px;\n}\n\n.pagination__select-menu {\n padding: 0px;\n list-style: none;\n overflow: hidden;\n border: solid 1px var(--N200);\n border-radius: 4px;\n width: 64px;\n position: absolute;\n bottom: 31px;\n background-color: var(--white);\n}\n\n.select__button {\n width: 64px;\n background-color: transparent;\n border-radius: 4px;\n border: solid 1px var(--N200);\n padding: 5px 10px;\n text-align: left;\n}\n\n.select__item {\n padding: 5px 10px;\n cursor: pointer;\n}\n\n.select__icon {\n margin-left: 18px;\n}\n\n.page {\n margin: 0px 8px;\n display: inline-block;\n}\n\n.page-number {\n font-size: 12px;\n font-weight: normal;\n font-style: normal;\n font-stretch: normal;\n line-height: 1.5;\n letter-spacing: normal;\n color: var(--N700);\n}\n\n.page__button {\n width: 24px;\n height: 24px;\n border-radius: 8px;\n color: var(--B500);\n background-color: var(--white);\n padding: 0px;\n user-select: none;\n}\n\n.page__button--icon {\n background-color: var(--white);\n color: var(--B500);\n}\n\n/* MODIFIERS */\n.page__button--selected {\n color: var(--white);\n background-color: var(--B500);\n}\n\n/* States and Selectorys */\n.page__button:disabled {\n opacity: 0.5;\n}\n\n.select__item:hover {\n background-color: var(--N50);\n}\n\n.page__button:hover ~ :disabled {\n background-color: var(--B100);\n}\n\n.page__button--selected:hover {\n color: var(--white);\n background-color: var(--B500);\n}\n\n@media (min-width: 1024px) {\n .pagination {\n margin: 16px auto;\n }\n}";
|
|
28694
|
+
styleInject(css_248z);
|
|
28695
|
+
|
|
28696
|
+
var PageValueItem = function (_a) {
|
|
28697
|
+
var value = _a.value, isSelected = _a.isSelected, selectPage = _a.selectPage;
|
|
28698
|
+
var classes = isSelected ? 'page__button page__button--selected' : 'page__button';
|
|
28699
|
+
var handlePageSelection = function () {
|
|
28700
|
+
selectPage(value);
|
|
28701
|
+
};
|
|
28702
|
+
return (jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: classes, onClick: handlePageSelection, type: "button" }, { children: value })) })));
|
|
28703
|
+
};
|
|
28704
|
+
// NOTE: This component will heavily benefit from data normalization
|
|
28705
|
+
var Pagination = function (_a) {
|
|
28706
|
+
var size = _a.size, pageSize = _a.pageSize, offset = _a.offset, changePage = _a.changePage, changePageSize = _a.changePageSize, isPageSizeFix = _a.isPageSizeFix, pageSizeOptions = _a.pageSizeOptions, rootClassName = _a.rootClassName;
|
|
28707
|
+
var _b = __read(React.useState([]), 2), pages = _b[0], setPages = _b[1];
|
|
28708
|
+
React.useEffect(function () {
|
|
28709
|
+
var _pages = createPageArr({ size: size, pageSize: pageSize, selectedPageNo: 1 });
|
|
28710
|
+
setPages(_pages);
|
|
28711
|
+
}, [size, pageSize]);
|
|
28712
|
+
React.useEffect(function () {
|
|
28713
|
+
var selectedPageNo = 1 + Math.floor(offset / pageSize);
|
|
28714
|
+
var _pages = createPageArr({ size: size, pageSize: pageSize, selectedPageNo: selectedPageNo });
|
|
28715
|
+
setPages(_pages);
|
|
28716
|
+
}, [offset]);
|
|
28717
|
+
var selectPage = function (selectedPageNo) {
|
|
28718
|
+
var _pages = createPageArr({ size: size, pageSize: pageSize, selectedPageNo: selectedPageNo });
|
|
28719
|
+
setPages(_pages);
|
|
28720
|
+
changePage(selectedPageNo);
|
|
28721
|
+
};
|
|
28722
|
+
var selectPreviousPage = function () {
|
|
28723
|
+
var currPage = pages.find(function (page) { return page.selected; });
|
|
28724
|
+
var selectedPageNo = currPage.value - 1;
|
|
28725
|
+
selectPage(selectedPageNo);
|
|
28726
|
+
};
|
|
28727
|
+
var selectNextPage = function () {
|
|
28728
|
+
var currPage = pages.find(function (page) { return page.selected; });
|
|
28729
|
+
var selectedPageNo = currPage.value + 1;
|
|
28730
|
+
selectPage(selectedPageNo);
|
|
28731
|
+
};
|
|
28732
|
+
var lastPageNo = offset + pageSize < size ? offset + pageSize : size;
|
|
28733
|
+
var pageNoIndex = pages.findIndex(function (page) { return page.selected; });
|
|
28734
|
+
var visiblePages = pages.filter(function (page) { return page.isVisible; });
|
|
28735
|
+
return (
|
|
28736
|
+
// TODO: Remove pagination-wrapper from dashboard
|
|
28737
|
+
jsxRuntime.jsxs("div", __assign({ className: rootClassName || '' }, { children: [jsxRuntime.jsxs("div", __assign({ className: "page-number" }, { children: [offset + 1, " - ", lastPageNo, " of ", size] })), jsxRuntime.jsxs("ul", __assign({ className: "pagination" }, { children: [jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: !pageNoIndex, onClick: selectPreviousPage, type: "button", "aria-label": "Previous page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-left" }) })) })) })), visiblePages.map(function (page) { return (jsxRuntime.jsx(PageValueItem, { value: page.value, isSelected: page.selected, selectPage: selectPage }, page.value)); }), jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: pageNoIndex === pages.length - 1, onClick: selectNextPage, type: "button", "aria-label": "Next page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-right" }) })) })) }))] })), !isPageSizeFix && (jsxRuntime.jsxs("div", __assign({ className: "select" }, { children: [jsxRuntime.jsx("span", __assign({ className: "select__placeholder" }, { children: "Rows per page" })), jsxRuntime.jsx(PageSizeSelector, { pageSizeOptions: pageSizeOptions, pageSize: pageSize, changePageSize: changePageSize })] })))] })));
|
|
28738
|
+
};
|
|
28739
|
+
|
|
28386
28740
|
exports.AddCDButton = AddCDButton;
|
|
28387
28741
|
exports.AppStatus = AppStatus;
|
|
28388
28742
|
exports.BreadCrumb = BreadCrumb;
|
|
@@ -28407,6 +28761,8 @@ exports.DetailsProgressing = DetailsProgressing;
|
|
|
28407
28761
|
exports.DevtronProgressing = DevtronProgressing;
|
|
28408
28762
|
exports.DialogForm = DialogForm;
|
|
28409
28763
|
exports.DialogFormSubmit = DialogFormSubmit;
|
|
28764
|
+
exports.DraggableButton = DraggableButton;
|
|
28765
|
+
exports.DraggableWrapper = DraggableWrapper;
|
|
28410
28766
|
exports.Drawer = Drawer;
|
|
28411
28767
|
exports.ERROR_EMPTY_SCREEN = ERROR_EMPTY_SCREEN;
|
|
28412
28768
|
exports.EmptyState = EmptyState;
|
|
@@ -28420,6 +28776,7 @@ exports.Host = Host;
|
|
|
28420
28776
|
exports.ImageTagButton = ImageTagButton;
|
|
28421
28777
|
exports.ImageTagsContainer = ImageTagsContainer;
|
|
28422
28778
|
exports.InfoColourBar = InfoColourBar;
|
|
28779
|
+
exports.MAX_Z_INDEX = MAX_Z_INDEX;
|
|
28423
28780
|
exports.Modal = Modal;
|
|
28424
28781
|
exports.MultiValueChipContainer = MultiValueChipContainer;
|
|
28425
28782
|
exports.MultiValueContainer = MultiValueContainer;
|
|
@@ -28427,6 +28784,7 @@ exports.MultiValueRemove = MultiValueRemove;
|
|
|
28427
28784
|
exports.OpaqueModal = OpaqueModal;
|
|
28428
28785
|
exports.Option = Option;
|
|
28429
28786
|
exports.PATTERNS = PATTERNS;
|
|
28787
|
+
exports.Pagination = Pagination;
|
|
28430
28788
|
exports.PopupMenu = PopupMenu;
|
|
28431
28789
|
exports.Progressing = Progressing;
|
|
28432
28790
|
exports.PropagateTagInfo = PropagateTagInfo;
|
|
@@ -28440,6 +28798,7 @@ exports.RepositoryAction = RepositoryAction;
|
|
|
28440
28798
|
exports.ResizableTagTextArea = ResizableTagTextArea;
|
|
28441
28799
|
exports.ResizableTextarea = ResizableTextarea;
|
|
28442
28800
|
exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
|
|
28801
|
+
exports.SearchBar = SearchBar;
|
|
28443
28802
|
exports.ServerError = ServerError;
|
|
28444
28803
|
exports.ServerErrors = ServerErrors;
|
|
28445
28804
|
exports.SingleSelectOption = SingleSelectOption;
|
|
@@ -28463,6 +28822,7 @@ exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
|
|
|
28463
28822
|
exports.copyToClipboard = copyToClipboard;
|
|
28464
28823
|
exports.createGitCommitUrl = createGitCommitUrl;
|
|
28465
28824
|
exports.customStyles = customStyles;
|
|
28825
|
+
exports.debounce = debounce$2;
|
|
28466
28826
|
exports.extractImage = extractImage;
|
|
28467
28827
|
exports.fetchChartTemplateVersions = fetchChartTemplateVersions;
|
|
28468
28828
|
exports.genericCDMaterialsService = genericCDMaterialsService;
|
|
@@ -28503,3 +28863,4 @@ exports.useForm = useForm;
|
|
|
28503
28863
|
exports.useSearchString = useSearchString;
|
|
28504
28864
|
exports.useSuperAdmin = useSuperAdmin;
|
|
28505
28865
|
exports.useThrottledEffect = useThrottledEffect;
|
|
28866
|
+
exports.useWindowSize = useWindowSize;
|