@mjhls/mjh-framework 1.0.332 → 1.0.334
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/cjs/index.js +31 -4
- package/dist/esm/index.js +31 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -13604,10 +13604,10 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13604
13604
|
|
|
13605
13605
|
return React__default.createElement(
|
|
13606
13606
|
'div',
|
|
13607
|
-
{ className: 'mt-3 mb-
|
|
13607
|
+
{ className: 'mt-3 mb-4' },
|
|
13608
13608
|
React__default.createElement(
|
|
13609
13609
|
reactBootstrap.Carousel,
|
|
13610
|
-
{ activeIndex: carouselIndex, onSelect: onChangeSlide },
|
|
13610
|
+
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
13611
13611
|
slides && slides.map(function (slide) {
|
|
13612
13612
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
13613
13613
|
return React__default.createElement(
|
|
@@ -13632,6 +13632,11 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13632
13632
|
}
|
|
13633
13633
|
return null;
|
|
13634
13634
|
})
|
|
13635
|
+
),
|
|
13636
|
+
React__default.createElement(
|
|
13637
|
+
'style',
|
|
13638
|
+
{ jsx: 'true' },
|
|
13639
|
+
'\n .carousel-indicators {\n bottom: -2.5rem!important;\n }\n .carousel-indicators li{\n width: 20px;\n height: 20px;\n border-radius: 50%!important;\n background-color: var(--secondary);\n }\n .carousel-control-prev{\n justify-content: flex-start;\n \n } \n .carousel-control-next {\n justify-content: flex-end;\n \n }\n '
|
|
13635
13640
|
)
|
|
13636
13641
|
);
|
|
13637
13642
|
};
|
|
@@ -13964,10 +13969,27 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
13964
13969
|
currentPath = _useState4[0],
|
|
13965
13970
|
setCurrentPath = _useState4[1];
|
|
13966
13971
|
|
|
13972
|
+
var _useState5 = React.useState(''),
|
|
13973
|
+
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
13974
|
+
parentPathName = _useState6[0],
|
|
13975
|
+
setParentPathName = _useState6[1];
|
|
13976
|
+
|
|
13977
|
+
var get_parent_path = function get_parent_path(parsedUrl) {
|
|
13978
|
+
var parent_path = '';
|
|
13979
|
+
for (var i = 1; i < parsedUrl.length - 3; i++) {
|
|
13980
|
+
if (parsedUrl.length > i + 1) {
|
|
13981
|
+
parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
|
|
13982
|
+
}
|
|
13983
|
+
}
|
|
13984
|
+
|
|
13985
|
+
return parent_path;
|
|
13986
|
+
};
|
|
13987
|
+
|
|
13967
13988
|
React.useEffect(function () {
|
|
13968
13989
|
var parsedUrl = window.location.href.split('/');
|
|
13969
13990
|
setCurrentPath(parsedUrl[parsedUrl.length - 1].split('?')[0]);
|
|
13970
|
-
|
|
13991
|
+
setParentPathName(parsedUrl[parsedUrl.length - 2].split('?')[0]);
|
|
13992
|
+
setParentPath(get_parent_path(parsedUrl));
|
|
13971
13993
|
}, []);
|
|
13972
13994
|
|
|
13973
13995
|
if (data && data.length > 0) {
|
|
@@ -13997,10 +14019,15 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
13997
14019
|
{ href: '/' },
|
|
13998
14020
|
'home'
|
|
13999
14021
|
),
|
|
14022
|
+
parentPath.split('/').length > 1 && React__default.createElement(
|
|
14023
|
+
Breadcrumb.Item,
|
|
14024
|
+
{ active: true },
|
|
14025
|
+
'...'
|
|
14026
|
+
),
|
|
14000
14027
|
React__default.createElement(
|
|
14001
14028
|
Breadcrumb.Item,
|
|
14002
14029
|
{ href: '/' + parentPath },
|
|
14003
|
-
|
|
14030
|
+
parentPathName
|
|
14004
14031
|
),
|
|
14005
14032
|
React__default.createElement(
|
|
14006
14033
|
Breadcrumb.Item,
|
package/dist/esm/index.js
CHANGED
|
@@ -13601,10 +13601,10 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13601
13601
|
|
|
13602
13602
|
return React__default.createElement(
|
|
13603
13603
|
'div',
|
|
13604
|
-
{ className: 'mt-3 mb-
|
|
13604
|
+
{ className: 'mt-3 mb-4' },
|
|
13605
13605
|
React__default.createElement(
|
|
13606
13606
|
Carousel,
|
|
13607
|
-
{ activeIndex: carouselIndex, onSelect: onChangeSlide },
|
|
13607
|
+
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
13608
13608
|
slides && slides.map(function (slide) {
|
|
13609
13609
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
13610
13610
|
return React__default.createElement(
|
|
@@ -13629,6 +13629,11 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13629
13629
|
}
|
|
13630
13630
|
return null;
|
|
13631
13631
|
})
|
|
13632
|
+
),
|
|
13633
|
+
React__default.createElement(
|
|
13634
|
+
'style',
|
|
13635
|
+
{ jsx: 'true' },
|
|
13636
|
+
'\n .carousel-indicators {\n bottom: -2.5rem!important;\n }\n .carousel-indicators li{\n width: 20px;\n height: 20px;\n border-radius: 50%!important;\n background-color: var(--secondary);\n }\n .carousel-control-prev{\n justify-content: flex-start;\n \n } \n .carousel-control-next {\n justify-content: flex-end;\n \n }\n '
|
|
13632
13637
|
)
|
|
13633
13638
|
);
|
|
13634
13639
|
};
|
|
@@ -13961,10 +13966,27 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
13961
13966
|
currentPath = _useState4[0],
|
|
13962
13967
|
setCurrentPath = _useState4[1];
|
|
13963
13968
|
|
|
13969
|
+
var _useState5 = useState(''),
|
|
13970
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
13971
|
+
parentPathName = _useState6[0],
|
|
13972
|
+
setParentPathName = _useState6[1];
|
|
13973
|
+
|
|
13974
|
+
var get_parent_path = function get_parent_path(parsedUrl) {
|
|
13975
|
+
var parent_path = '';
|
|
13976
|
+
for (var i = 1; i < parsedUrl.length - 3; i++) {
|
|
13977
|
+
if (parsedUrl.length > i + 1) {
|
|
13978
|
+
parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
|
|
13979
|
+
}
|
|
13980
|
+
}
|
|
13981
|
+
|
|
13982
|
+
return parent_path;
|
|
13983
|
+
};
|
|
13984
|
+
|
|
13964
13985
|
useEffect(function () {
|
|
13965
13986
|
var parsedUrl = window.location.href.split('/');
|
|
13966
13987
|
setCurrentPath(parsedUrl[parsedUrl.length - 1].split('?')[0]);
|
|
13967
|
-
|
|
13988
|
+
setParentPathName(parsedUrl[parsedUrl.length - 2].split('?')[0]);
|
|
13989
|
+
setParentPath(get_parent_path(parsedUrl));
|
|
13968
13990
|
}, []);
|
|
13969
13991
|
|
|
13970
13992
|
if (data && data.length > 0) {
|
|
@@ -13994,10 +14016,15 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
13994
14016
|
{ href: '/' },
|
|
13995
14017
|
'home'
|
|
13996
14018
|
),
|
|
14019
|
+
parentPath.split('/').length > 1 && React__default.createElement(
|
|
14020
|
+
Breadcrumb.Item,
|
|
14021
|
+
{ active: true },
|
|
14022
|
+
'...'
|
|
14023
|
+
),
|
|
13997
14024
|
React__default.createElement(
|
|
13998
14025
|
Breadcrumb.Item,
|
|
13999
14026
|
{ href: '/' + parentPath },
|
|
14000
|
-
|
|
14027
|
+
parentPathName
|
|
14001
14028
|
),
|
|
14002
14029
|
React__default.createElement(
|
|
14003
14030
|
Breadcrumb.Item,
|