@bigbinary/neeto-molecules 1.0.55-beta → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Container.cjs.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/CustomDomainDashboard.cjs.js +73 -18
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +157 -102
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/Header.cjs.js +15 -6
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +17 -8
- package/dist/Header.js.map +1 -1
- package/dist/IpRestriction.cjs.js +52 -6
- package/dist/IpRestriction.cjs.js.map +1 -1
- package/dist/IpRestriction.js +104 -58
- package/dist/IpRestriction.js.map +1 -1
- package/dist/MenuBar.cjs.js +1 -1
- package/dist/MenuBar.js +1 -1
- package/dist/NeetoWidget.cjs.js +53 -7
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +135 -89
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PageLoader.cjs.js +70 -6
- package/dist/PageLoader.cjs.js.map +1 -1
- package/dist/PageLoader.js +62 -16
- package/dist/PageLoader.js.map +1 -1
- package/dist/Sidebar.cjs.js +56 -108
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +57 -109
- package/dist/Sidebar.js.map +1 -1
- package/package.json +2 -2
- package/src/translations/en.json +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
2
3
|
import { snakeToCamelCase, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
3
4
|
import { useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
|
-
import { Typography, Dropdown as Dropdown$1,
|
|
5
|
+
import { Typography, Dropdown as Dropdown$1, Button, Input, Alert, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
|
|
5
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
6
|
-
import { MenuVertical, Search, Column, Download, Filter, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
7
|
+
import { Right, MenuVertical, HamburgerMenu, Search, Column, Download, Filter, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
7
8
|
import { isEmpty } from 'ramda';
|
|
8
9
|
import { Link } from 'react-router-dom';
|
|
9
|
-
import { Neeto } from '@bigbinary/neeto-icons/logos';
|
|
10
10
|
import ManageColumns from '@bigbinary/neeto-molecules/Columns';
|
|
11
11
|
import { Filters } from '@bigbinary/neeto-filters-frontend';
|
|
12
12
|
import { Formik, Form } from 'formik';
|
|
@@ -17,8 +17,8 @@ import * as Yup from 'yup';
|
|
|
17
17
|
import { useQueryClient, useMutation, useQuery } from 'react-query';
|
|
18
18
|
import axios from 'axios';
|
|
19
19
|
|
|
20
|
-
function _extends() {
|
|
21
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
20
|
+
function _extends$1() {
|
|
21
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
22
22
|
for (var i = 1; i < arguments.length; i++) {
|
|
23
23
|
var source = arguments[i];
|
|
24
24
|
for (var key in source) {
|
|
@@ -29,7 +29,7 @@ function _extends() {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
return _extends.apply(this, arguments);
|
|
32
|
+
return _extends$1.apply(this, arguments);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function _arrayWithHoles(arr) {
|
|
@@ -1332,14 +1332,14 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1332
1332
|
|
|
1333
1333
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
1334
1334
|
|
|
1335
|
-
var css$3 = ".neeto-molecules-container{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;height:100vh;justify-content:flex-start;overflow-y:auto;padding:0
|
|
1335
|
+
var css$3 = ".neeto-molecules-container{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;height:100vh;justify-content:flex-start;overflow-y:auto;padding:0 24px}.neeto-molecules-container--header-fixed{padding:0}.neeto-molecules-container--header-fixed>.neeto-molecules-header,.neeto-molecules-container--header-fixed>.neeto-molecules-scrollable,.neeto-molecules-container--header-fixed>.neeto-molecules-subheader{padding-left:24px;padding-right:24px}";
|
|
1336
1336
|
n(css$3,{});
|
|
1337
1337
|
|
|
1338
1338
|
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1339
1339
|
var _ref$isHeaderFixed = _ref.isHeaderFixed,
|
|
1340
1340
|
isHeaderFixed = _ref$isHeaderFixed === void 0 ? false : _ref$isHeaderFixed,
|
|
1341
1341
|
children = _ref.children;
|
|
1342
|
-
return /*#__PURE__*/
|
|
1342
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1343
1343
|
ref: ref,
|
|
1344
1344
|
className: classnames("neeto-molecules-container", {
|
|
1345
1345
|
"neeto-molecules-container--header-fixed": isHeaderFixed
|
|
@@ -1354,31 +1354,32 @@ Container.propTypes = {
|
|
|
1354
1354
|
isHeaderFixed: propTypes.exports.bool
|
|
1355
1355
|
};
|
|
1356
1356
|
|
|
1357
|
-
var css$2 = ".neeto-molecules-header{align-items:
|
|
1357
|
+
var css$2 = ".neeto-molecules-header{align-items:center;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:var(--neeto-ui-main-header-height);padding:24px 0;width:100%}.neeto-molecules-header--has-breadcrumbs{min-height:var(--neeto-ui-main-header-with-breadcrumbs-height)}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.neeto-molecules-header .neeto-molecules-header__left-data-wrap{display:flex;flex-wrap:wrap}.neeto-molecules-header .neeto-molecules-header__page-title{display:flex;flex-direction:row;width:100%}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex}.neeto-molecules-header .neeto-molecules-header__breadcrumb{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;line-height:1}.neeto-molecules-header .neeto-molecules-header__breadcrumb a{text-decoration:none;transition:all .3s ease-in-out}.neeto-molecules-header .neeto-molecules-header__breadcrumb a:focus-visible{border-radius:var(--neeto-ui-rounded-sm);outline:3px solid rgba(var(--neeto-ui-primary-500),50%)}.neeto-molecules-header .neeto-molecules-header__breadcrumb-separator{margin:0 4px}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}";
|
|
1358
1358
|
n(css$2,{});
|
|
1359
1359
|
|
|
1360
1360
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
1361
1361
|
var breadcrumbs = _ref.breadcrumbs;
|
|
1362
|
-
return /*#__PURE__*/
|
|
1362
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1363
1363
|
className: "neeto-molecules-header__breadcrumbs-wrap"
|
|
1364
1364
|
}, breadcrumbs.map(function (_ref2, index) {
|
|
1365
1365
|
var text = _ref2.text,
|
|
1366
1366
|
link = _ref2.link;
|
|
1367
|
-
return /*#__PURE__*/
|
|
1367
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1368
1368
|
className: "neeto-molecules-header__breadcrumb",
|
|
1369
1369
|
key: index
|
|
1370
|
-
}, /*#__PURE__*/
|
|
1370
|
+
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
1371
1371
|
to: link
|
|
1372
|
-
}, /*#__PURE__*/
|
|
1373
|
-
className: "neeto-
|
|
1372
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1373
|
+
className: "neeto-molecules-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
|
|
1374
1374
|
component: "span",
|
|
1375
1375
|
"data-cy": text,
|
|
1376
1376
|
"data-test-id": text,
|
|
1377
1377
|
style: "body2",
|
|
1378
1378
|
weight: "normal"
|
|
1379
|
-
}, text)),
|
|
1380
|
-
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-
|
|
1381
|
-
|
|
1379
|
+
}, text)), /*#__PURE__*/React__default.createElement(Right, {
|
|
1380
|
+
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-gray-400",
|
|
1381
|
+
size: 16
|
|
1382
|
+
}));
|
|
1382
1383
|
}));
|
|
1383
1384
|
};
|
|
1384
1385
|
|
|
@@ -1416,7 +1417,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1416
1417
|
var _ref$dropdownProps = _ref.dropdownProps,
|
|
1417
1418
|
children = _ref$dropdownProps.children,
|
|
1418
1419
|
otherProps = _objectWithoutProperties(_ref$dropdownProps, _excluded$3);
|
|
1419
|
-
return /*#__PURE__*/
|
|
1420
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
1420
1421
|
buttonProps: {
|
|
1421
1422
|
className: "ml-1.5"
|
|
1422
1423
|
},
|
|
@@ -1429,6 +1430,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1429
1430
|
|
|
1430
1431
|
var Header = function Header(_ref) {
|
|
1431
1432
|
var title = _ref.title,
|
|
1433
|
+
menuBarToggle = _ref.menuBarToggle,
|
|
1432
1434
|
searchProps = _ref.searchProps,
|
|
1433
1435
|
_ref$className = _ref.className,
|
|
1434
1436
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -1439,37 +1441,90 @@ var Header = function Header(_ref) {
|
|
|
1439
1441
|
var searchRef = useRef(null);
|
|
1440
1442
|
var _useTranslation = useTranslation(),
|
|
1441
1443
|
t = _useTranslation.t;
|
|
1442
|
-
return /*#__PURE__*/
|
|
1444
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1443
1445
|
className: classnames(["neeto-molecules-header", {
|
|
1444
1446
|
"neeto-molecules-header--has-breadcrumbs": !isEmpty(breadcrumbs)
|
|
1445
1447
|
}, className])
|
|
1446
|
-
}, /*#__PURE__*/
|
|
1448
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1447
1449
|
className: "neeto-molecules-header__left"
|
|
1448
|
-
}, /*#__PURE__*/
|
|
1450
|
+
}, menuBarToggle && /*#__PURE__*/React__default.createElement(Button, {
|
|
1451
|
+
"aria-label": "Toggle Menubar",
|
|
1452
|
+
className: "neeto-molecules-header__toggle-menubar-btn",
|
|
1453
|
+
"data-cy": "menubar-toggle-button",
|
|
1454
|
+
icon: HamburgerMenu,
|
|
1455
|
+
style: "text",
|
|
1456
|
+
onClick: menuBarToggle
|
|
1457
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1449
1458
|
className: "neeto-molecules-header__left-data-wrap"
|
|
1450
|
-
}, breadcrumbs && /*#__PURE__*/
|
|
1459
|
+
}, breadcrumbs && /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
1451
1460
|
breadcrumbs: breadcrumbs
|
|
1452
|
-
}), /*#__PURE__*/
|
|
1461
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1453
1462
|
className: "neeto-molecules-header__page-title"
|
|
1454
|
-
}, /*#__PURE__*/
|
|
1463
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1455
1464
|
"data-cy": "main-header",
|
|
1456
1465
|
"data-test-id": "main-header",
|
|
1457
1466
|
lineHeight: "tight",
|
|
1458
1467
|
style: "h2",
|
|
1459
1468
|
weight: "semibold"
|
|
1460
|
-
}, title), dropdownProps && /*#__PURE__*/
|
|
1469
|
+
}, title), dropdownProps && /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
1461
1470
|
dropdownProps: dropdownProps
|
|
1462
|
-
})))), /*#__PURE__*/
|
|
1471
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
1463
1472
|
className: "neeto-ui-gap-3 neeto-molecules-header__right"
|
|
1464
|
-
}, searchProps && /*#__PURE__*/
|
|
1473
|
+
}, searchProps && /*#__PURE__*/React__default.createElement(Input, _extends$1({
|
|
1465
1474
|
placeholder: t("neetoMolecules.common.actions.search"),
|
|
1466
|
-
prefix: /*#__PURE__*/
|
|
1475
|
+
prefix: /*#__PURE__*/React__default.createElement(Search, null),
|
|
1467
1476
|
ref: searchRef,
|
|
1468
1477
|
type: "search",
|
|
1469
1478
|
className: classnames(["neeto-molecules-header__search-input", searchProps.className])
|
|
1470
1479
|
}, searchProps)), actionBlock));
|
|
1471
1480
|
};
|
|
1472
1481
|
|
|
1482
|
+
var _path, _path2, _g, _defs;
|
|
1483
|
+
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); }
|
|
1484
|
+
var SvgNeeto = function SvgNeeto(props) {
|
|
1485
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
1486
|
+
width: 50,
|
|
1487
|
+
height: 50,
|
|
1488
|
+
viewBox: "0 0 415 415",
|
|
1489
|
+
fill: "none",
|
|
1490
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1491
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
1492
|
+
d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
|
|
1493
|
+
fill: "#0043AC"
|
|
1494
|
+
})), /*#__PURE__*/React.createElement("mask", {
|
|
1495
|
+
id: "neeto_svg__a",
|
|
1496
|
+
style: {
|
|
1497
|
+
maskType: "alpha"
|
|
1498
|
+
},
|
|
1499
|
+
maskUnits: "userSpaceOnUse",
|
|
1500
|
+
x: 0,
|
|
1501
|
+
y: 0,
|
|
1502
|
+
width: 415,
|
|
1503
|
+
height: 415
|
|
1504
|
+
}, _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
1505
|
+
d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
|
|
1506
|
+
fill: "#0043AC"
|
|
1507
|
+
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
1508
|
+
mask: "url(#neeto_svg__a)"
|
|
1509
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1510
|
+
d: "M233.747 348.74c88.579 101.145 172.015 116.411 202.661 111.401v32.491H-8.032V230.487c43.685-2.726 153.2 17.108 241.779 118.253Z",
|
|
1511
|
+
fill: "url(#neeto_svg__b)"
|
|
1512
|
+
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("radialGradient", {
|
|
1513
|
+
id: "neeto_svg__b",
|
|
1514
|
+
cx: 0,
|
|
1515
|
+
cy: 0,
|
|
1516
|
+
r: 1,
|
|
1517
|
+
gradientUnits: "userSpaceOnUse",
|
|
1518
|
+
gradientTransform: "rotate(47.118 -220.556 214.818) scale(427.964 725.049)"
|
|
1519
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
1520
|
+
stopColor: "#0043AC"
|
|
1521
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
1522
|
+
offset: 1,
|
|
1523
|
+
stopColor: "#3DB1CA",
|
|
1524
|
+
stopOpacity: 0.8
|
|
1525
|
+
})))));
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1473
1528
|
var css$1 = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{height:66px;margin-bottom:16px;overflow:hidden;padding:8px;position:relative;width:66px}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__spinner{display:flex;gap:2px;height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-molecules-pageloader__spinner>div{animation:neeto-ui-stretch-delay 1.2s ease-in-out infinite;background-color:#fff;border-radius:2px;display:inline-flex;height:100%;width:2px}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2{animation-delay:-1.1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3{animation-delay:-1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4{animation-delay:-.9s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5{animation-delay:-.8s}@keyframes neeto-ui-stretch-delay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";
|
|
1474
1529
|
n(css$1,{});
|
|
1475
1530
|
|
|
@@ -1478,28 +1533,28 @@ var PageLoader = function PageLoader(_ref) {
|
|
|
1478
1533
|
var _ref$text = _ref.text,
|
|
1479
1534
|
text = _ref$text === void 0 ? "" : _ref$text,
|
|
1480
1535
|
otherProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
1481
|
-
return /*#__PURE__*/
|
|
1536
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1482
1537
|
className: "neeto-molecules-pageloader__wrapper"
|
|
1483
|
-
}, otherProps), /*#__PURE__*/
|
|
1538
|
+
}, otherProps), /*#__PURE__*/React__default.createElement("div", {
|
|
1484
1539
|
className: "neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center"
|
|
1485
|
-
}, /*#__PURE__*/
|
|
1540
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1486
1541
|
className: "neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center"
|
|
1487
|
-
}, /*#__PURE__*/
|
|
1542
|
+
}, /*#__PURE__*/React__default.createElement(SvgNeeto, {
|
|
1488
1543
|
className: "neeto-molecules-pageloader__logo",
|
|
1489
1544
|
size: 50
|
|
1490
|
-
}), /*#__PURE__*/
|
|
1545
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1491
1546
|
className: "neeto-molecules-pageloader__spinner"
|
|
1492
|
-
}, /*#__PURE__*/
|
|
1547
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1493
1548
|
className: "neeto-molecules-pageloader__rect1"
|
|
1494
|
-
}), /*#__PURE__*/
|
|
1549
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1495
1550
|
className: "neeto-molecules-pageloader__rect2"
|
|
1496
|
-
}), /*#__PURE__*/
|
|
1551
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1497
1552
|
className: "neeto-molecules-pageloader__rect3"
|
|
1498
|
-
}), /*#__PURE__*/
|
|
1553
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1499
1554
|
className: "neeto-molecules-pageloader__rect4"
|
|
1500
|
-
}), /*#__PURE__*/
|
|
1555
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1501
1556
|
className: "neeto-molecules-pageloader__rect5"
|
|
1502
|
-
}))), text && /*#__PURE__*/
|
|
1557
|
+
}))), text && /*#__PURE__*/React__default.createElement(Typography, {
|
|
1503
1558
|
style: "h5",
|
|
1504
1559
|
weight: "semibold"
|
|
1505
1560
|
}, text)));
|
|
@@ -1558,9 +1613,9 @@ var Columns = function Columns(_ref) {
|
|
|
1558
1613
|
t = _useTranslation.t;
|
|
1559
1614
|
var buttonProps = dropdownProps.buttonProps,
|
|
1560
1615
|
restDropdownProps = _objectWithoutProperties(dropdownProps, _excluded2);
|
|
1561
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1562
1617
|
className: "neeto-molecules-subheader__columns"
|
|
1563
|
-
}, /*#__PURE__*/
|
|
1618
|
+
}, /*#__PURE__*/React__default.createElement(ManageColumns, _extends$1({
|
|
1564
1619
|
dropdownProps: _objectSpread$2({
|
|
1565
1620
|
buttonProps: _objectSpread$2({
|
|
1566
1621
|
icon: Column,
|
|
@@ -1583,9 +1638,9 @@ var DownloadButton = function DownloadButton(_ref) {
|
|
|
1583
1638
|
dataCy = _ref$dataCy === void 0 ? "download-button" : _ref$dataCy;
|
|
1584
1639
|
var _useTranslation = useTranslation(),
|
|
1585
1640
|
t = _useTranslation.t;
|
|
1586
|
-
return /*#__PURE__*/
|
|
1641
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1587
1642
|
className: "neeto-molecules-subheader__download"
|
|
1588
|
-
}, /*#__PURE__*/
|
|
1643
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1589
1644
|
"data-cy": dataCy,
|
|
1590
1645
|
"data-testid": "download-button",
|
|
1591
1646
|
icon: Download,
|
|
@@ -1595,7 +1650,7 @@ var DownloadButton = function DownloadButton(_ref) {
|
|
|
1595
1650
|
position: "bottom"
|
|
1596
1651
|
},
|
|
1597
1652
|
onClick: onClick
|
|
1598
|
-
}), count && /*#__PURE__*/
|
|
1653
|
+
}), count && /*#__PURE__*/React__default.createElement("span", {
|
|
1599
1654
|
className: "neeto-molecules-subheader__download-count"
|
|
1600
1655
|
}, count));
|
|
1601
1656
|
};
|
|
@@ -1608,9 +1663,9 @@ var FilterButton = function FilterButton(_ref) {
|
|
|
1608
1663
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1609
1664
|
var _useTranslation = useTranslation(),
|
|
1610
1665
|
t = _useTranslation.t;
|
|
1611
|
-
return /*#__PURE__*/
|
|
1666
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1612
1667
|
className: "neeto-molecules-subheader__filter"
|
|
1613
|
-
}, /*#__PURE__*/
|
|
1668
|
+
}, /*#__PURE__*/React__default.createElement(Filters, _extends$1({
|
|
1614
1669
|
buttonProps: _objectSpread$1({
|
|
1615
1670
|
"data-testid": "filter-button",
|
|
1616
1671
|
icon: Filter,
|
|
@@ -1628,9 +1683,9 @@ var RightBlock = function RightBlock(_ref) {
|
|
|
1628
1683
|
var downloadButtonProps = _ref.downloadButtonProps,
|
|
1629
1684
|
columnsButtonProps = _ref.columnsButtonProps,
|
|
1630
1685
|
filterProps = _ref.filterProps;
|
|
1631
|
-
return /*#__PURE__*/
|
|
1686
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1632
1687
|
className: "neeto-molecules-subheader__right-actions"
|
|
1633
|
-
}, downloadButtonProps && /*#__PURE__*/
|
|
1688
|
+
}, downloadButtonProps && /*#__PURE__*/React__default.createElement(DownloadButton, downloadButtonProps), columnsButtonProps && /*#__PURE__*/React__default.createElement(Columns, columnsButtonProps), filterProps && /*#__PURE__*/React__default.createElement(FilterButton, filterProps));
|
|
1634
1689
|
};
|
|
1635
1690
|
|
|
1636
1691
|
var css = ".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-ui-sub-header-bottom-margin);min-height:var(--neeto-ui-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions>:not([hidden])~:not([hidden]){border-left:thin solid rgb(var(--neeto-ui-gray-300));padding-left:8px}.neeto-molecules-subheader__download{position:relative}.neeto-molecules-subheader__download-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;font-size:10px;justify-content:center;min-height:16px;min-width:16px;position:absolute;right:-2px;text-align:center;top:-2px;z-index:1}";
|
|
@@ -1641,14 +1696,14 @@ var SubHeader = function SubHeader(_ref) {
|
|
|
1641
1696
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
1642
1697
|
leftActionBlock = _ref.leftActionBlock,
|
|
1643
1698
|
rightActionBlock = _ref.rightActionBlock;
|
|
1644
|
-
return /*#__PURE__*/
|
|
1699
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1645
1700
|
className: classnames(["neeto-molecules-subheader", className]),
|
|
1646
1701
|
"data-testid": "subheader"
|
|
1647
|
-
}, /*#__PURE__*/
|
|
1702
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1648
1703
|
className: "neeto-molecules-subheader__left-wrapper"
|
|
1649
|
-
}, leftActionBlock && /*#__PURE__*/
|
|
1704
|
+
}, leftActionBlock && /*#__PURE__*/React__default.createElement("div", {
|
|
1650
1705
|
className: "neeto-molecules-subheader__left"
|
|
1651
|
-
}, leftActionBlock)), rightActionBlock && /*#__PURE__*/
|
|
1706
|
+
}, leftActionBlock)), rightActionBlock && /*#__PURE__*/React__default.createElement("div", {
|
|
1652
1707
|
className: "neeto-molecules-subheader__right"
|
|
1653
1708
|
}, rightActionBlock));
|
|
1654
1709
|
};
|
|
@@ -1671,13 +1726,13 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
1671
1726
|
hostname = _ref.hostname;
|
|
1672
1727
|
var _useTranslation = useTranslation(),
|
|
1673
1728
|
t = _useTranslation.t;
|
|
1674
|
-
return /*#__PURE__*/
|
|
1729
|
+
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
1675
1730
|
cancelButtonLabel: t("neetoMolecules.common.actions.cancel"),
|
|
1676
1731
|
isOpen: isOpen,
|
|
1677
1732
|
isSubmitting: isSubmitting,
|
|
1678
1733
|
submitButtonLabel: t("neetoMolecules.common.actions.delete"),
|
|
1679
1734
|
title: t("neetoMolecules.customDomain.delete"),
|
|
1680
|
-
message: /*#__PURE__*/
|
|
1735
|
+
message: /*#__PURE__*/React__default.createElement(Trans, {
|
|
1681
1736
|
i18nKey: "neetoMolecules.customDomain.alertMessage",
|
|
1682
1737
|
values: {
|
|
1683
1738
|
hostname: hostname
|
|
@@ -1703,27 +1758,27 @@ var TagBlock = function TagBlock(_ref) {
|
|
|
1703
1758
|
t = _useTranslation.t;
|
|
1704
1759
|
var isDomainValidated = status === "active" || status === "pending_cname_validation";
|
|
1705
1760
|
var camelCasedStatus = snakeToCamelCase(status || "");
|
|
1706
|
-
return /*#__PURE__*/
|
|
1761
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1707
1762
|
className: classnames("flex gap-2", {
|
|
1708
1763
|
"flex-col items-start": stacked
|
|
1709
1764
|
})
|
|
1710
|
-
}, status === "failed" ? /*#__PURE__*/
|
|
1765
|
+
}, status === "failed" ? /*#__PURE__*/React__default.createElement(Tag, {
|
|
1711
1766
|
indicatorStyle: "danger",
|
|
1712
1767
|
label: t("neetoMolecules.customDomain.status.".concat(camelCasedStatus)),
|
|
1713
1768
|
style: "secondary"
|
|
1714
|
-
}) : /*#__PURE__*/
|
|
1769
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tag, {
|
|
1715
1770
|
indicatorStyle: isDomainValidated ? "success" : "warning",
|
|
1716
1771
|
style: "secondary",
|
|
1717
1772
|
label: t("neetoMolecules.customDomain.status.domain.".concat(camelCasedStatus))
|
|
1718
|
-
}), isDomainValidated && /*#__PURE__*/
|
|
1773
|
+
}), isDomainValidated && /*#__PURE__*/React__default.createElement("div", {
|
|
1719
1774
|
className: classnames("flex items-center justify-between gap-2", {
|
|
1720
1775
|
"w-full": stacked
|
|
1721
1776
|
})
|
|
1722
|
-
}, /*#__PURE__*/
|
|
1777
|
+
}, /*#__PURE__*/React__default.createElement(Tag, {
|
|
1723
1778
|
indicatorStyle: status === "active" ? "success" : "warning",
|
|
1724
1779
|
style: "secondary",
|
|
1725
1780
|
label: t("neetoMolecules.customDomain.status.cname.".concat(camelCasedStatus))
|
|
1726
|
-
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/
|
|
1781
|
+
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
1727
1782
|
className: "text-xs",
|
|
1728
1783
|
style: "link",
|
|
1729
1784
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameCheck"),
|
|
@@ -1743,7 +1798,7 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1743
1798
|
dataIndex: "status",
|
|
1744
1799
|
key: "status",
|
|
1745
1800
|
render: function render(status) {
|
|
1746
|
-
return /*#__PURE__*/
|
|
1801
|
+
return /*#__PURE__*/React__default.createElement(TagBlock, {
|
|
1747
1802
|
status: status
|
|
1748
1803
|
});
|
|
1749
1804
|
},
|
|
@@ -1752,11 +1807,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1752
1807
|
id: "actions",
|
|
1753
1808
|
width: "10%",
|
|
1754
1809
|
render: function render(_, customDomain) {
|
|
1755
|
-
return /*#__PURE__*/
|
|
1810
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1756
1811
|
onClick: function onClick(e) {
|
|
1757
1812
|
return e.stopPropagation();
|
|
1758
1813
|
}
|
|
1759
|
-
}, /*#__PURE__*/
|
|
1814
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
1760
1815
|
autoWidth: true,
|
|
1761
1816
|
buttonProps: {
|
|
1762
1817
|
style: "text"
|
|
@@ -1764,11 +1819,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1764
1819
|
icon: MenuHorizontal,
|
|
1765
1820
|
position: "bottom-end",
|
|
1766
1821
|
strategy: "fixed"
|
|
1767
|
-
}, /*#__PURE__*/
|
|
1822
|
+
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
1768
1823
|
onClick: function onClick() {
|
|
1769
1824
|
return enableManagePane(customDomain);
|
|
1770
1825
|
}
|
|
1771
|
-
}, t$1("neetoMolecules.common.actions.edit")), /*#__PURE__*/
|
|
1826
|
+
}, t$1("neetoMolecules.common.actions.edit")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
1772
1827
|
onClick: function onClick() {
|
|
1773
1828
|
return enableDeleteAlert(customDomain);
|
|
1774
1829
|
}
|
|
@@ -1813,29 +1868,29 @@ var Record = function Record(_ref) {
|
|
|
1813
1868
|
recordDescription = _recordData.recordDescription,
|
|
1814
1869
|
recordNameLabel = _recordData.recordNameLabel,
|
|
1815
1870
|
recordValueLabel = _recordData.recordValueLabel;
|
|
1816
|
-
return /*#__PURE__*/
|
|
1871
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1817
1872
|
className: "mt-6 grid gap-4"
|
|
1818
|
-
}, customDomain.status !== "active" && /*#__PURE__*/
|
|
1873
|
+
}, customDomain.status !== "active" && /*#__PURE__*/React__default.createElement(Callout, {
|
|
1819
1874
|
icon: Info,
|
|
1820
1875
|
style: "info"
|
|
1821
|
-
}, recordDescription), /*#__PURE__*/
|
|
1876
|
+
}, recordDescription), /*#__PURE__*/React__default.createElement(Input, {
|
|
1822
1877
|
disabled: true,
|
|
1823
1878
|
"data-cy": joinHyphenCase(recordNameLabel),
|
|
1824
1879
|
label: recordNameLabel,
|
|
1825
1880
|
value: recordName,
|
|
1826
|
-
suffix: /*#__PURE__*/
|
|
1881
|
+
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
1827
1882
|
icon: Copy,
|
|
1828
1883
|
style: "text",
|
|
1829
1884
|
onClick: function onClick() {
|
|
1830
1885
|
return copyToClipboard(recordName);
|
|
1831
1886
|
}
|
|
1832
1887
|
})
|
|
1833
|
-
}), /*#__PURE__*/
|
|
1888
|
+
}), /*#__PURE__*/React__default.createElement(Input, {
|
|
1834
1889
|
disabled: true,
|
|
1835
1890
|
"data-cy": joinHyphenCase(recordValueLabel),
|
|
1836
1891
|
label: recordValueLabel,
|
|
1837
1892
|
value: recordValue,
|
|
1838
|
-
suffix: /*#__PURE__*/
|
|
1893
|
+
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
1839
1894
|
icon: Copy,
|
|
1840
1895
|
style: "text",
|
|
1841
1896
|
onClick: function onClick() {
|
|
@@ -1849,17 +1904,17 @@ var CustomDomainInfo = function CustomDomainInfo(_ref) {
|
|
|
1849
1904
|
var time = _ref.time;
|
|
1850
1905
|
var _useTranslation = useTranslation(),
|
|
1851
1906
|
t = _useTranslation.t;
|
|
1852
|
-
return /*#__PURE__*/
|
|
1907
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1853
1908
|
className: "space-y-6"
|
|
1854
|
-
}, /*#__PURE__*/
|
|
1909
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1855
1910
|
className: "neeto-ui-rounded neeto-ui-bg-gray-100 neeto-ui-text-gray-700 space-y-3 p-4"
|
|
1856
|
-
}, /*#__PURE__*/
|
|
1911
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
1857
1912
|
i18nKey: "neetoMolecules.customDomain.messageBlock.dnsStatus"
|
|
1858
|
-
}), /*#__PURE__*/
|
|
1913
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
1859
1914
|
href: "mailto:support@neeto.com",
|
|
1860
1915
|
label: "support@neeto.com",
|
|
1861
1916
|
style: "link"
|
|
1862
|
-
})), /*#__PURE__*/
|
|
1917
|
+
})), /*#__PURE__*/React__default.createElement(Callout, {
|
|
1863
1918
|
icon: Info,
|
|
1864
1919
|
style: "info"
|
|
1865
1920
|
}, t("neetoMolecules.customDomain.messageBlock.cnameAddedTime", {
|
|
@@ -2025,61 +2080,61 @@ var Manage = function Manage(_ref) {
|
|
|
2025
2080
|
}
|
|
2026
2081
|
});
|
|
2027
2082
|
};
|
|
2028
|
-
return /*#__PURE__*/
|
|
2083
|
+
return /*#__PURE__*/React__default.createElement(Pane, {
|
|
2029
2084
|
initialFocusRef: initialFocusRef,
|
|
2030
2085
|
isOpen: isOpen,
|
|
2031
2086
|
onClose: onClose
|
|
2032
|
-
}, /*#__PURE__*/
|
|
2087
|
+
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
2033
2088
|
enableReinitialize: true,
|
|
2034
2089
|
initialValues: customDomain || INITIAL_VALUES,
|
|
2035
2090
|
validationSchema: getCustomDomainValidationSchema(),
|
|
2036
2091
|
onSubmit: handleSubmit
|
|
2037
2092
|
}, function (_ref2) {
|
|
2038
2093
|
var dirty = _ref2.dirty;
|
|
2039
|
-
return /*#__PURE__*/
|
|
2094
|
+
return /*#__PURE__*/React__default.createElement(Form, null, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
2040
2095
|
"data-cy": "add-custom-domain-pane-heading",
|
|
2041
2096
|
style: "h2",
|
|
2042
2097
|
weight: "semibold"
|
|
2043
|
-
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.edit") : t("neetoMolecules.customDomain.addNew"))), /*#__PURE__*/
|
|
2098
|
+
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.edit") : t("neetoMolecules.customDomain.addNew"))), /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
2044
2099
|
className: "w-full space-y-6"
|
|
2045
|
-
}, isNotEmpty(customDomain) && /*#__PURE__*/
|
|
2100
|
+
}, isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(TagBlock, {
|
|
2046
2101
|
stacked: true,
|
|
2047
2102
|
handleValidateCname: handleValidateCname,
|
|
2048
2103
|
isCnameRecordsAdded: customDomain.addedCnameAt,
|
|
2049
2104
|
status: customDomain.status
|
|
2050
|
-
}), /*#__PURE__*/
|
|
2105
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2051
2106
|
className: "space-y-2"
|
|
2052
|
-
}, /*#__PURE__*/
|
|
2107
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
2053
2108
|
htmlFor: "hostname"
|
|
2054
|
-
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.customDomain", SINGULAR) : t("neetoMolecules.customDomain.label")), /*#__PURE__*/
|
|
2109
|
+
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.customDomain", SINGULAR) : t("neetoMolecules.customDomain.label")), /*#__PURE__*/React__default.createElement("div", {
|
|
2055
2110
|
className: "flex items-start gap-2"
|
|
2056
|
-
}, /*#__PURE__*/
|
|
2111
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
2057
2112
|
"data-cy": "custom-domain-input-field",
|
|
2058
2113
|
disabled: isNotEmpty(customDomain),
|
|
2059
2114
|
name: "hostname",
|
|
2060
2115
|
placeholder: t("neetoMolecules.customDomain.placeholder"),
|
|
2061
2116
|
ref: initialFocusRef
|
|
2062
|
-
}), !isNotEmpty(customDomain) && /*#__PURE__*/
|
|
2117
|
+
}), !isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(Button, {
|
|
2063
2118
|
"data-cy": "submit-custom-domain-button",
|
|
2064
2119
|
disabled: !dirty || isCreating,
|
|
2065
2120
|
icon: Check,
|
|
2066
2121
|
loading: isCreating,
|
|
2067
2122
|
style: "primary",
|
|
2068
2123
|
type: "submit"
|
|
2069
|
-
}))), isNotEmpty(customDomain) && /*#__PURE__*/
|
|
2124
|
+
}))), isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Record, {
|
|
2070
2125
|
customDomain: customDomain
|
|
2071
|
-
}), customDomain.status === "pending_domain_validation" && /*#__PURE__*/
|
|
2126
|
+
}), customDomain.status === "pending_domain_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
2072
2127
|
"data-cy": "validate-domain-button",
|
|
2073
2128
|
disabled: isValidating,
|
|
2074
2129
|
loading: isValidating,
|
|
2075
2130
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.domain"),
|
|
2076
2131
|
onClick: handleValidateDomain
|
|
2077
|
-
}), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/
|
|
2132
|
+
}), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(Button, {
|
|
2078
2133
|
"data-cy": "validate-cname-record-button",
|
|
2079
2134
|
loading: isCnameValidating || isUpdating,
|
|
2080
2135
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameAdded"),
|
|
2081
2136
|
onClick: handleUpdateCname
|
|
2082
|
-
}), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/
|
|
2137
|
+
}), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(CustomDomainInfo, {
|
|
2083
2138
|
time: customDomain.addedCnameAt
|
|
2084
2139
|
})))));
|
|
2085
2140
|
}));
|
|
@@ -2139,9 +2194,9 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
|
|
|
2139
2194
|
setIsAlertOpen(false);
|
|
2140
2195
|
setCustomDomain({});
|
|
2141
2196
|
};
|
|
2142
|
-
return /*#__PURE__*/
|
|
2197
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Container, null, /*#__PURE__*/React__default.createElement(Header, _extends$1({
|
|
2143
2198
|
title: t("neetoMolecules.customDomain.customDomain", PLURAL),
|
|
2144
|
-
actionBlock: /*#__PURE__*/
|
|
2199
|
+
actionBlock: /*#__PURE__*/React__default.createElement(Button, {
|
|
2145
2200
|
"data-cy": "add-new-custom-domain-button",
|
|
2146
2201
|
label: t("neetoMolecules.customDomain.addNew"),
|
|
2147
2202
|
onClick: function onClick() {
|
|
@@ -2156,25 +2211,25 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
|
|
|
2156
2211
|
placeholder: t("neetoMolecules.customDomain.search"),
|
|
2157
2212
|
"data-cy": "custom-domain-search-field"
|
|
2158
2213
|
}
|
|
2159
|
-
}, headerProps)), isLoading && /*#__PURE__*/
|
|
2214
|
+
}, headerProps)), isLoading && /*#__PURE__*/React__default.createElement("div", {
|
|
2160
2215
|
className: "h-screen w-full"
|
|
2161
|
-
}, /*#__PURE__*/
|
|
2216
|
+
}, /*#__PURE__*/React__default.createElement(PageLoader, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default.createElement("div", {
|
|
2162
2217
|
className: "w-full flex-grow"
|
|
2163
|
-
}, /*#__PURE__*/
|
|
2164
|
-
leftActionBlock: /*#__PURE__*/
|
|
2218
|
+
}, /*#__PURE__*/React__default.createElement(SubHeader, {
|
|
2219
|
+
leftActionBlock: /*#__PURE__*/React__default.createElement(Typography, {
|
|
2165
2220
|
className: "neeto-ui-gray-800 font-semibold",
|
|
2166
2221
|
component: "h4"
|
|
2167
2222
|
}, t("neetoMolecules.customDomain.customDomainWithCount", {
|
|
2168
2223
|
count: data === null || data === void 0 ? void 0 : (_data$customDomains = data.customDomains) === null || _data$customDomains === void 0 ? void 0 : _data$customDomains.length
|
|
2169
2224
|
}))
|
|
2170
|
-
}), /*#__PURE__*/
|
|
2225
|
+
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table, {
|
|
2171
2226
|
allowRowClick: false,
|
|
2172
2227
|
rowData: data === null || data === void 0 ? void 0 : data.customDomains,
|
|
2173
2228
|
rowSelection: false,
|
|
2174
2229
|
columnData: renderColumnData(enableManagePane, enableDeleteAlert)
|
|
2175
|
-
}))) : /*#__PURE__*/
|
|
2230
|
+
}))) : /*#__PURE__*/React__default.createElement("div", {
|
|
2176
2231
|
className: "flex h-full w-full flex-grow items-center justify-center"
|
|
2177
|
-
}, /*#__PURE__*/
|
|
2232
|
+
}, /*#__PURE__*/React__default.createElement(NoData, {
|
|
2178
2233
|
title: t("neetoMolecules.customDomain.notFound"),
|
|
2179
2234
|
primaryButtonProps: {
|
|
2180
2235
|
label: t("neetoMolecules.customDomain.addNew"),
|
|
@@ -2182,14 +2237,14 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
|
|
|
2182
2237
|
return enableManagePane(null);
|
|
2183
2238
|
}
|
|
2184
2239
|
}
|
|
2185
|
-
})))), /*#__PURE__*/
|
|
2240
|
+
})))), /*#__PURE__*/React__default.createElement(Manage, {
|
|
2186
2241
|
customDomain: customDomain,
|
|
2187
2242
|
hasOne: false,
|
|
2188
2243
|
isOpen: isPaneOpen,
|
|
2189
2244
|
setCustomDomain: setCustomDomain,
|
|
2190
2245
|
url: url,
|
|
2191
2246
|
onClose: disableManagePane
|
|
2192
|
-
}), /*#__PURE__*/
|
|
2247
|
+
}), /*#__PURE__*/React__default.createElement(DeleteAlert, {
|
|
2193
2248
|
hostname: customDomain === null || customDomain === void 0 ? void 0 : customDomain.hostname,
|
|
2194
2249
|
isOpen: isAlertOpen,
|
|
2195
2250
|
isSubmitting: isDeleting,
|