@mjhls/mjh-framework 1.0.161 → 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 +12 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
@@ -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 () {
|
|
@@ -16001,7 +16003,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
16001
16003
|
React__default.createElement('iframe', {
|
|
16002
16004
|
id: 'ustream-iframe',
|
|
16003
16005
|
src: src,
|
|
16004
|
-
webkitallowfullscreen: true,
|
|
16006
|
+
webkitallowfullscreen: 'true',
|
|
16005
16007
|
allowFullScreen: true,
|
|
16006
16008
|
frameBorder: 'no',
|
|
16007
16009
|
style: { maxWidth: '100%', height: currentHeight, width: currentWidth } })
|