@salesgenterp/ui-components 0.4.334 → 0.4.336
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.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4812,7 +4812,8 @@ var LandingCarousel = function LandingCarousel(_ref) {
|
|
|
4812
4812
|
var _brandData2;
|
|
4813
4813
|
var brandList = _ref.brandList,
|
|
4814
4814
|
noImgUrl = _ref.noImgUrl,
|
|
4815
|
-
isSlider = _ref.isSlider
|
|
4815
|
+
isSlider = _ref.isSlider,
|
|
4816
|
+
filterNoUrlData = _ref.filterNoUrlData;
|
|
4816
4817
|
var brandListData = (brandList === null || brandList === void 0 ? void 0 : brandList.content) || [];
|
|
4817
4818
|
var spaceBetweenCol = 4;
|
|
4818
4819
|
var brandData = function brandData() {
|
|
@@ -4859,10 +4860,14 @@ var LandingCarousel = function LandingCarousel(_ref) {
|
|
|
4859
4860
|
var _brandData;
|
|
4860
4861
|
return /*#__PURE__*/React__default.createElement(Root$6, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4861
4862
|
container: true,
|
|
4862
|
-
spacing: 1
|
|
4863
|
+
spacing: 1,
|
|
4864
|
+
justifyContent: 'center'
|
|
4863
4865
|
}, (_brandData = brandData()) === null || _brandData === void 0 ? void 0 : _brandData.map(function (item, i) {
|
|
4864
|
-
var _item$brandAttachment, _item$brandAttachment2;
|
|
4866
|
+
var _item$brandAttachment, _item$brandAttachment2, _item$brandAttachment3, _item$brandAttachment4;
|
|
4865
4867
|
var brand = item === null || item === void 0 ? void 0 : (_item$brandAttachment = item.brandAttachmentMap) === null || _item$brandAttachment === void 0 ? void 0 : (_item$brandAttachment2 = _item$brandAttachment['Brand Logo']) === null || _item$brandAttachment2 === void 0 ? void 0 : _item$brandAttachment2[0];
|
|
4868
|
+
if (filterNoUrlData && !(item !== null && item !== void 0 && (_item$brandAttachment3 = item.brandAttachmentMap) !== null && _item$brandAttachment3 !== void 0 && (_item$brandAttachment4 = _item$brandAttachment3['Brand Logo']) !== null && _item$brandAttachment4 !== void 0 && _item$brandAttachment4[0])) {
|
|
4869
|
+
return;
|
|
4870
|
+
}
|
|
4866
4871
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4867
4872
|
item: true,
|
|
4868
4873
|
key: i
|
|
@@ -4892,8 +4897,8 @@ var LandingCarousel = function LandingCarousel(_ref) {
|
|
|
4892
4897
|
}), /*#__PURE__*/React__default.createElement(ReactSlick, _extends({}, settings(), {
|
|
4893
4898
|
spaceBetweenCol: spaceBetweenCol
|
|
4894
4899
|
}), (_brandData2 = brandData()) === null || _brandData2 === void 0 ? void 0 : _brandData2.map(function (item, i) {
|
|
4895
|
-
var _item$
|
|
4896
|
-
var brand = item === null || item === void 0 ? void 0 : (_item$
|
|
4900
|
+
var _item$brandAttachment5, _item$brandAttachment6;
|
|
4901
|
+
var brand = item === null || item === void 0 ? void 0 : (_item$brandAttachment5 = item.brandAttachmentMap) === null || _item$brandAttachment5 === void 0 ? void 0 : (_item$brandAttachment6 = _item$brandAttachment5['Brand Logo']) === null || _item$brandAttachment6 === void 0 ? void 0 : _item$brandAttachment6[0];
|
|
4897
4902
|
return /*#__PURE__*/React__default.createElement(SliderItem, null, /*#__PURE__*/React__default.createElement("a", {
|
|
4898
4903
|
href: (brand === null || brand === void 0 ? void 0 : brand.redirectPath) || ''
|
|
4899
4904
|
}, isVideo(brand === null || brand === void 0 ? void 0 : brand.url) ? /*#__PURE__*/React__default.createElement(Video, {
|
|
@@ -4930,7 +4935,9 @@ var BrandList = function BrandList(_ref) {
|
|
|
4930
4935
|
size = _ref$size === void 0 ? 20 : _ref$size,
|
|
4931
4936
|
_ref$isSlider = _ref.isSlider,
|
|
4932
4937
|
isSlider = _ref$isSlider === void 0 ? true : _ref$isSlider,
|
|
4933
|
-
noImgUrl = _ref.noImgUrl
|
|
4938
|
+
noImgUrl = _ref.noImgUrl,
|
|
4939
|
+
_ref$filterNoUrlData = _ref.filterNoUrlData,
|
|
4940
|
+
filterNoUrlData = _ref$filterNoUrlData === void 0 ? false : _ref$filterNoUrlData;
|
|
4934
4941
|
var _useState = React.useState(false),
|
|
4935
4942
|
loading = _useState[0],
|
|
4936
4943
|
setLoading = _useState[1];
|
|
@@ -4963,7 +4970,8 @@ var BrandList = function BrandList(_ref) {
|
|
|
4963
4970
|
}, /*#__PURE__*/React__default.createElement(Root$7, null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(MainContainer$1, null, loading ? /*#__PURE__*/React__default.createElement(Loader, null) : /*#__PURE__*/React__default.createElement(LandingCarousel, {
|
|
4964
4971
|
brandList: brandList,
|
|
4965
4972
|
noImgUrl: noImgUrl,
|
|
4966
|
-
isSlider: isSlider
|
|
4973
|
+
isSlider: isSlider,
|
|
4974
|
+
filterNoUrlData: filterNoUrlData
|
|
4967
4975
|
}))));
|
|
4968
4976
|
};
|
|
4969
4977
|
var Root$7 = styled__default.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose([""])));
|
|
@@ -7521,6 +7529,7 @@ var HomeBanner = function HomeBanner(_ref) {
|
|
|
7521
7529
|
lg: (config === null || config === void 0 ? void 0 : config.rowLg) || 12,
|
|
7522
7530
|
xl: (config === null || config === void 0 ? void 0 : config.rowLg) || 12
|
|
7523
7531
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7532
|
+
"class": "silderTypeContainer",
|
|
7524
7533
|
style: {
|
|
7525
7534
|
padding: ((config === null || config === void 0 ? void 0 : config.spaceBetweenRow) || 0) * 4 + "px",
|
|
7526
7535
|
height: '100%'
|