@mjhls/mjh-framework 1.0.26 → 1.0.28
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/index.es.js +55 -58
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +55 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -694,7 +694,7 @@ var DeckContent = function (_React$Component) {
|
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
return React__default.createElement(
|
|
697
|
-
'
|
|
697
|
+
'div',
|
|
698
698
|
{ className: 'contentDeck' },
|
|
699
699
|
autoScroll ? React__default.createElement(
|
|
700
700
|
React__default.Fragment,
|
|
@@ -1085,6 +1085,13 @@ var LeftNav = function LeftNav(props) {
|
|
|
1085
1085
|
var leftItems = props.leftItems;
|
|
1086
1086
|
|
|
1087
1087
|
|
|
1088
|
+
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
1089
|
+
if (/(http|https?)([^\s]+)/g.test(url)) {
|
|
1090
|
+
return true;
|
|
1091
|
+
}
|
|
1092
|
+
return false;
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1088
1095
|
return React__default.createElement(
|
|
1089
1096
|
'section',
|
|
1090
1097
|
null,
|
|
@@ -1095,7 +1102,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1095
1102
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
1096
1103
|
if (subIndex === 0) {
|
|
1097
1104
|
return React__default.createElement(
|
|
1098
|
-
|
|
1105
|
+
React__default.Fragment,
|
|
1099
1106
|
{ key: subIndex },
|
|
1100
1107
|
React__default.createElement(
|
|
1101
1108
|
ListGroup.Item,
|
|
@@ -1118,12 +1125,16 @@ var LeftNav = function LeftNav(props) {
|
|
|
1118
1125
|
);
|
|
1119
1126
|
} else {
|
|
1120
1127
|
return React__default.createElement(
|
|
1121
|
-
|
|
1128
|
+
React__default.Fragment,
|
|
1122
1129
|
{ key: subIndex },
|
|
1123
1130
|
React__default.createElement(
|
|
1124
1131
|
ListGroup.Item,
|
|
1125
1132
|
{ as: 'li' },
|
|
1126
|
-
React__default.createElement(
|
|
1133
|
+
checkUrlIsExternal(subRow.url) ? React__default.createElement(
|
|
1134
|
+
'a',
|
|
1135
|
+
{ target: '_blank', href: subRow.url },
|
|
1136
|
+
subRow.name
|
|
1137
|
+
) : React__default.createElement(
|
|
1127
1138
|
Link,
|
|
1128
1139
|
{ href: subRow.url || '#' },
|
|
1129
1140
|
React__default.createElement(
|
|
@@ -1719,8 +1730,7 @@ var Search$1 = withRouter(Search);
|
|
|
1719
1730
|
|
|
1720
1731
|
var NavDvm = function NavDvm(props) {
|
|
1721
1732
|
var logo = props.logo,
|
|
1722
|
-
dataObject = props.dataObject
|
|
1723
|
-
subNavHeads = props.subNavHeads;
|
|
1733
|
+
dataObject = props.dataObject;
|
|
1724
1734
|
|
|
1725
1735
|
|
|
1726
1736
|
return React__default.createElement(
|
|
@@ -1728,53 +1738,34 @@ var NavDvm = function NavDvm(props) {
|
|
|
1728
1738
|
null,
|
|
1729
1739
|
React__default.createElement(
|
|
1730
1740
|
Navbar,
|
|
1731
|
-
{ expand: 'md'
|
|
1741
|
+
{ expand: 'md' },
|
|
1732
1742
|
React__default.createElement(
|
|
1733
1743
|
Container,
|
|
1734
|
-
|
|
1744
|
+
null,
|
|
1745
|
+
React__default.createElement(Nav, { className: 'justify-content-start leftHeader' }),
|
|
1735
1746
|
React__default.createElement(
|
|
1736
|
-
|
|
1737
|
-
{ className: '
|
|
1747
|
+
Nav,
|
|
1748
|
+
{ className: 'justify-content-center', style: { margin: '0 auto' } },
|
|
1738
1749
|
React__default.createElement(
|
|
1739
|
-
|
|
1740
|
-
|
|
1750
|
+
Nav.Item,
|
|
1751
|
+
null,
|
|
1741
1752
|
React__default.createElement(
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
React__default.createElement(
|
|
1753
|
+
Link,
|
|
1754
|
+
{ href: '/' },
|
|
1755
|
+
React__default.createElement(
|
|
1756
|
+
'a',
|
|
1757
|
+
null,
|
|
1758
|
+
React__default.createElement('img', { src: logo, style: { height: '55px' } })
|
|
1759
|
+
)
|
|
1745
1760
|
)
|
|
1746
|
-
),
|
|
1747
|
-
React__default.createElement(
|
|
1748
|
-
'div',
|
|
1749
|
-
{ className: ' ml-4 d-flex align-items-center' },
|
|
1750
|
-
React__default.createElement(Search$1, { btnText: 'Search' })
|
|
1751
1761
|
)
|
|
1752
1762
|
),
|
|
1753
|
-
React__default.createElement(
|
|
1754
|
-
'div',
|
|
1755
|
-
{ className: 'login-right-wrapper w-50 my-3', style: { background: 'linear-gradient(to right,#104676,#01ABB5)' } },
|
|
1756
|
-
React__default.createElement(
|
|
1757
|
-
'div',
|
|
1758
|
-
{ className: 'row' },
|
|
1759
|
-
subNavHeads && subNavHeads.map(function (item, index) {
|
|
1760
|
-
return React__default.createElement(
|
|
1761
|
-
'div',
|
|
1762
|
-
{ key: index, className: 'col-3 py-1', style: { fontSize: '12px' } },
|
|
1763
|
-
React__default.createElement(
|
|
1764
|
-
'span',
|
|
1765
|
-
{ style: { color: '#fff' } },
|
|
1766
|
-
item.name,
|
|
1767
|
-
' '
|
|
1768
|
-
)
|
|
1769
|
-
);
|
|
1770
|
-
})
|
|
1771
|
-
)
|
|
1772
|
-
)
|
|
1763
|
+
React__default.createElement(Nav, { className: 'justify-content-end rightHeader' })
|
|
1773
1764
|
)
|
|
1774
1765
|
),
|
|
1775
1766
|
React__default.createElement(
|
|
1776
1767
|
Navbar,
|
|
1777
|
-
{ variant: 'dark',
|
|
1768
|
+
{ variant: 'dark', expand: 'lg', bg: 'primary' },
|
|
1778
1769
|
React__default.createElement(
|
|
1779
1770
|
Container,
|
|
1780
1771
|
null,
|
|
@@ -1796,10 +1787,10 @@ var NavDvm = function NavDvm(props) {
|
|
|
1796
1787
|
} else {
|
|
1797
1788
|
return React__default.createElement(
|
|
1798
1789
|
Link,
|
|
1799
|
-
{ href: ddRow.url },
|
|
1790
|
+
{ key: subIndex, href: ddRow.url || '#' },
|
|
1800
1791
|
React__default.createElement(
|
|
1801
1792
|
'a',
|
|
1802
|
-
{
|
|
1793
|
+
{ className: 'dropdown-item' },
|
|
1803
1794
|
ddRow.name
|
|
1804
1795
|
)
|
|
1805
1796
|
);
|
|
@@ -1807,18 +1798,21 @@ var NavDvm = function NavDvm(props) {
|
|
|
1807
1798
|
})
|
|
1808
1799
|
);
|
|
1809
1800
|
} else {
|
|
1801
|
+
// Link default
|
|
1802
|
+
// return <Nav.Link href={row.url} key={index}>{row.name}</Nav.Link>
|
|
1810
1803
|
return React__default.createElement(
|
|
1811
1804
|
Link,
|
|
1812
|
-
{ href: row.url },
|
|
1805
|
+
{ key: index, href: row.url },
|
|
1813
1806
|
React__default.createElement(
|
|
1814
1807
|
'a',
|
|
1815
|
-
{
|
|
1808
|
+
{ className: 'nav-link' },
|
|
1816
1809
|
row.name
|
|
1817
1810
|
)
|
|
1818
1811
|
);
|
|
1819
1812
|
}
|
|
1820
1813
|
})
|
|
1821
|
-
)
|
|
1814
|
+
),
|
|
1815
|
+
React__default.createElement(Search$1, null)
|
|
1822
1816
|
)
|
|
1823
1817
|
)
|
|
1824
1818
|
)
|
|
@@ -3625,20 +3619,23 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
3625
3619
|
var caption = _ref.caption,
|
|
3626
3620
|
asset = _ref.asset;
|
|
3627
3621
|
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
React__default.createElement(Figure.Image, { alt: asset ? asset.originalFilename : '', src: asset.url ? asset.url : '/placeholder.jpg' }),
|
|
3635
|
-
caption && React__default.createElement(
|
|
3636
|
-
Figure.Caption,
|
|
3622
|
+
if (asset && asset.url) {
|
|
3623
|
+
return React__default.createElement(
|
|
3624
|
+
'div',
|
|
3625
|
+
{ style: { textAlign: 'center', marginTop: '1em', marginBottom: '1em' } },
|
|
3626
|
+
React__default.createElement(
|
|
3627
|
+
Figure,
|
|
3637
3628
|
null,
|
|
3638
|
-
|
|
3629
|
+
React__default.createElement(Figure.Image, { alt: asset ? asset.originalFilename : '', src: asset.url }),
|
|
3630
|
+
caption && React__default.createElement(
|
|
3631
|
+
Figure.Caption,
|
|
3632
|
+
null,
|
|
3633
|
+
caption
|
|
3634
|
+
)
|
|
3639
3635
|
)
|
|
3640
|
-
)
|
|
3641
|
-
|
|
3636
|
+
);
|
|
3637
|
+
}
|
|
3638
|
+
return null;
|
|
3642
3639
|
};
|
|
3643
3640
|
|
|
3644
3641
|
var Slideshow = function Slideshow(_ref) {
|