@mjhls/mjh-framework 1.0.160 → 1.0.162
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/README.md +1 -1
- package/dist/index.es.js +17 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -18,7 +18,7 @@ import ListGroup from 'react-bootstrap/ListGroup';
|
|
|
18
18
|
import Head from 'next/head';
|
|
19
19
|
import Accordion from 'react-bootstrap/Accordion';
|
|
20
20
|
import { useAccordionToggle } from 'react-bootstrap/AccordionToggle';
|
|
21
|
-
import { FacebookShareButton, TwitterShareButton, PinterestShareButton, EmailShareButton, FacebookIcon, TwitterIcon, PinterestIcon, EmailIcon } from 'react-share';
|
|
21
|
+
import { FacebookShareButton, TwitterShareButton, LinkedinShareButton, PinterestShareButton, EmailShareButton, FacebookIcon, TwitterIcon, LinkedinIcon, PinterestIcon, EmailIcon } from 'react-share';
|
|
22
22
|
import Form from 'react-bootstrap/Form';
|
|
23
23
|
import FormControl from 'react-bootstrap/FormControl';
|
|
24
24
|
import Nav from 'react-bootstrap/Nav';
|
|
@@ -8398,7 +8398,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
8398
8398
|
args[_key] = arguments[_key];
|
|
8399
8399
|
}
|
|
8400
8400
|
|
|
8401
|
-
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || Object.getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
8401
|
+
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || Object.getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.state = {
|
|
8402
8402
|
data: _this.data,
|
|
8403
8403
|
dataKeptToCompareNewDatarecord: _this.data,
|
|
8404
8404
|
per: _this.params ? _this.params.to : 2,
|
|
@@ -8605,8 +8605,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
8605
8605
|
}
|
|
8606
8606
|
} else return null;
|
|
8607
8607
|
}, _this.cardLoader = function (page, columns, variant) {
|
|
8608
|
-
|
|
8609
|
-
var itemCounter = 0;
|
|
8608
|
+
var numberOfItemsBeforeAd = 6;
|
|
8610
8609
|
return React__default.createElement(
|
|
8611
8610
|
Row,
|
|
8612
8611
|
null,
|
|
@@ -8616,7 +8615,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
8616
8615
|
|
|
8617
8616
|
return React__default.createElement(
|
|
8618
8617
|
React__default.Fragment,
|
|
8619
|
-
{ key:
|
|
8618
|
+
{ key: index$$1 },
|
|
8620
8619
|
React__default.createElement(
|
|
8621
8620
|
VisibilitySensor,
|
|
8622
8621
|
{
|
|
@@ -8624,17 +8623,20 @@ var MasterDeck = function (_React$Component) {
|
|
|
8624
8623
|
isVisible && _this.changePageNumber(pageNumber);
|
|
8625
8624
|
} },
|
|
8626
8625
|
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index$$1 })
|
|
8626
|
+
),
|
|
8627
|
+
main_36 && _this.rightItems && (index$$1 + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
8628
|
+
'div',
|
|
8629
|
+
{ style: { margin: '0 auto' } },
|
|
8630
|
+
_this.renderMobileAd(index$$1, numberOfItemsBeforeAd, _this.rightItems)
|
|
8627
8631
|
)
|
|
8628
8632
|
);
|
|
8629
8633
|
})
|
|
8630
8634
|
);
|
|
8631
|
-
}, _this.renderMobileAd = function (index$$1, numberOfItemsBeforeAd) {
|
|
8632
|
-
var rightItems = _this.props.rightItems;
|
|
8633
|
-
|
|
8635
|
+
}, _this.renderMobileAd = function (index$$1, numberOfItemsBeforeAd, rightItems) {
|
|
8634
8636
|
var i = ((index$$1 + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
8635
8637
|
return React__default.createElement(
|
|
8636
8638
|
'div',
|
|
8637
|
-
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
8639
|
+
{ style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
8638
8640
|
rightItems[i].component
|
|
8639
8641
|
);
|
|
8640
8642
|
}, _this.renderManualPagination = function () {
|
|
@@ -9480,6 +9482,11 @@ var SocialShare = function SocialShare(props) {
|
|
|
9480
9482
|
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
9481
9483
|
React__default.createElement(TwitterIcon, { size: size, round: true })
|
|
9482
9484
|
),
|
|
9485
|
+
React__default.createElement(
|
|
9486
|
+
LinkedinShareButton,
|
|
9487
|
+
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
9488
|
+
React__default.createElement(LinkedinIcon, { size: size, round: true })
|
|
9489
|
+
),
|
|
9483
9490
|
React__default.createElement(
|
|
9484
9491
|
PinterestShareButton,
|
|
9485
9492
|
{ url: shareUrl, media: shareImage, description: shareSummary },
|
|
@@ -15996,7 +16003,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
15996
16003
|
React__default.createElement('iframe', {
|
|
15997
16004
|
id: 'ustream-iframe',
|
|
15998
16005
|
src: src,
|
|
15999
|
-
webkitallowfullscreen: true,
|
|
16006
|
+
webkitallowfullscreen: 'true',
|
|
16000
16007
|
allowFullScreen: true,
|
|
16001
16008
|
frameBorder: 'no',
|
|
16002
16009
|
style: { maxWidth: '100%', height: currentHeight, width: currentWidth } })
|