@bigbinary/neeto-molecules 1.0.24 → 1.0.25
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/DateFormat.cjs.js +93 -52
- package/dist/DateFormat.cjs.js.map +1 -1
- package/dist/DateFormat.js +93 -52
- package/dist/DateFormat.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +47 -47
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +47 -47
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/Sidebar.cjs.js +41 -6
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +42 -7
- package/dist/Sidebar.js.map +1 -1
- package/package.json +1 -1
- package/types/DateFormat.d.ts +1 -0
- package/types/NeetoWidget.d.ts +3 -1
package/dist/Sidebar.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Link, useLocation, NavLink } from 'react-router-dom';
|
|
|
4
4
|
import { NeetoIcon, Close, Search, AppSwitcher as AppSwitcher$1, Book, Keyboard, ChatEmpty, Gift, User, Settings, LeftArrow, Help } from '@bigbinary/neeto-icons';
|
|
5
5
|
import { Typography, Button, Input, Tooltip, Avatar } from '@bigbinary/neetoui';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { capitalize, noop as noop$1, truncate,
|
|
7
|
+
import { capitalize, noop as noop$1, truncate, _findBy } from '@bigbinary/neeto-commons-frontend/pure';
|
|
8
8
|
import * as AppIcons from '@bigbinary/neeto-icons/app-icons';
|
|
9
9
|
import { t as t$1 } from 'i18next';
|
|
10
10
|
import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -35509,7 +35509,7 @@ var Footer = function Footer(_ref) {
|
|
|
35509
35509
|
|
|
35510
35510
|
function cov_17k34ad0bz() {
|
|
35511
35511
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Header.jsx";
|
|
35512
|
-
var hash = "
|
|
35512
|
+
var hash = "c1f927311f5d22150d89fd74d94931189bdccf83";
|
|
35513
35513
|
var global = new Function("return this")();
|
|
35514
35514
|
var gcv = "__coverage__";
|
|
35515
35515
|
var coverageData = {
|
|
@@ -35594,6 +35594,39 @@ function cov_17k34ad0bz() {
|
|
|
35594
35594
|
},
|
|
35595
35595
|
branchMap: {
|
|
35596
35596
|
"0": {
|
|
35597
|
+
loc: {
|
|
35598
|
+
start: {
|
|
35599
|
+
line: 18,
|
|
35600
|
+
column: 4
|
|
35601
|
+
},
|
|
35602
|
+
end: {
|
|
35603
|
+
line: 21,
|
|
35604
|
+
column: 36
|
|
35605
|
+
}
|
|
35606
|
+
},
|
|
35607
|
+
type: "binary-expr",
|
|
35608
|
+
locations: [{
|
|
35609
|
+
start: {
|
|
35610
|
+
line: 18,
|
|
35611
|
+
column: 4
|
|
35612
|
+
},
|
|
35613
|
+
end: {
|
|
35614
|
+
line: 21,
|
|
35615
|
+
column: 10
|
|
35616
|
+
}
|
|
35617
|
+
}, {
|
|
35618
|
+
start: {
|
|
35619
|
+
line: 21,
|
|
35620
|
+
column: 14
|
|
35621
|
+
},
|
|
35622
|
+
end: {
|
|
35623
|
+
line: 21,
|
|
35624
|
+
column: 36
|
|
35625
|
+
}
|
|
35626
|
+
}],
|
|
35627
|
+
line: 18
|
|
35628
|
+
},
|
|
35629
|
+
"1": {
|
|
35597
35630
|
loc: {
|
|
35598
35631
|
start: {
|
|
35599
35632
|
line: 31,
|
|
@@ -35638,10 +35671,11 @@ function cov_17k34ad0bz() {
|
|
|
35638
35671
|
"0": 0
|
|
35639
35672
|
},
|
|
35640
35673
|
b: {
|
|
35641
|
-
"0": [0, 0]
|
|
35674
|
+
"0": [0, 0],
|
|
35675
|
+
"1": [0, 0]
|
|
35642
35676
|
},
|
|
35643
35677
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
35644
|
-
hash: "
|
|
35678
|
+
hash: "c1f927311f5d22150d89fd74d94931189bdccf83"
|
|
35645
35679
|
};
|
|
35646
35680
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
35647
35681
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -35659,12 +35693,13 @@ function cov_17k34ad0bz() {
|
|
|
35659
35693
|
cov_17k34ad0bz();
|
|
35660
35694
|
cov_17k34ad0bz().s[0]++;
|
|
35661
35695
|
var Header = function Header() {
|
|
35696
|
+
var _ref, _findBy2;
|
|
35662
35697
|
cov_17k34ad0bz().f[0]++;
|
|
35663
35698
|
var logoName = (cov_17k34ad0bz().s[1]++, "Neeto".concat(capitalize(globalProps.appName.substr(5).toLowerCase())));
|
|
35664
35699
|
var ProductLogo = (cov_17k34ad0bz().s[2]++, ProductLogos[logoName]);
|
|
35665
|
-
var homeUrl = (cov_17k34ad0bz().s[3]++, new URL(
|
|
35700
|
+
var homeUrl = (cov_17k34ad0bz().s[3]++, new URL((_ref = (cov_17k34ad0bz().b[0][0]++, (_findBy2 = _findBy({
|
|
35666
35701
|
name: globalProps.appName.split("neeto")[1]
|
|
35667
|
-
}, globalProps.neetoApps).url));
|
|
35702
|
+
}, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url)) !== null && _ref !== void 0 ? _ref : (cov_17k34ad0bz().b[0][1]++, window.location.origin)));
|
|
35668
35703
|
cov_17k34ad0bz().s[4]++;
|
|
35669
35704
|
return /*#__PURE__*/React.createElement("div", {
|
|
35670
35705
|
className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
|
|
@@ -35673,7 +35708,7 @@ var Header = function Header() {
|
|
|
35673
35708
|
className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
|
|
35674
35709
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
35675
35710
|
to: homeUrl.pathname
|
|
35676
|
-
}, ProductLogo ? (cov_17k34ad0bz().b[
|
|
35711
|
+
}, ProductLogo ? (cov_17k34ad0bz().b[1][0]++, /*#__PURE__*/React.createElement(ProductLogo, null)) : (cov_17k34ad0bz().b[1][1]++, /*#__PURE__*/React.createElement(Neeto, null)))));
|
|
35677
35712
|
};
|
|
35678
35713
|
|
|
35679
35714
|
var _excluded = ["label", "to", "icon", "description"];
|