@coreui/vue-pro 4.8.1 → 4.8.2
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/components/form/CFormCheck.d.ts +2 -2
- package/dist/components/form/CFormSwitch.d.ts +2 -2
- package/dist/index.es.js +7 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +13 -5
- package/src/components/carousel/CCarousel.ts +2 -2
- package/src/components/dropdown/__tests__/CDropdown.spec.ts +1 -1
- package/src/components/form/CFormCheck.ts +1 -1
- package/src/components/form/CFormSwitch.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1913,7 +1913,7 @@ const CCarousel = vue.defineComponent({
|
|
|
1913
1913
|
const nextItemWhenVisible = () => {
|
|
1914
1914
|
// Don't call next when the page isn't visible
|
|
1915
1915
|
// or the carousel or its parent isn't visible
|
|
1916
|
-
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
1916
|
+
if (!document.hidden && carouselRef.value && isInViewport(carouselRef.value)) {
|
|
1917
1917
|
handleControlClick('next');
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
@@ -1932,7 +1932,7 @@ const CCarousel = vue.defineComponent({
|
|
|
1932
1932
|
}
|
|
1933
1933
|
};
|
|
1934
1934
|
const handleScroll = () => {
|
|
1935
|
-
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
1935
|
+
if (!document.hidden && carouselRef.value && isInViewport(carouselRef.value)) {
|
|
1936
1936
|
visible.value = true;
|
|
1937
1937
|
}
|
|
1938
1938
|
else {
|
|
@@ -4674,7 +4674,7 @@ const CFormCheck = vue.defineComponent({
|
|
|
4674
4674
|
/**
|
|
4675
4675
|
* Put checkboxes or radios on the opposite side.
|
|
4676
4676
|
*
|
|
4677
|
-
* @
|
|
4677
|
+
* @since 4.8.0
|
|
4678
4678
|
*/
|
|
4679
4679
|
reverse: Boolean,
|
|
4680
4680
|
/**
|
|
@@ -5323,7 +5323,7 @@ const CFormSwitch = vue.defineComponent({
|
|
|
5323
5323
|
/**
|
|
5324
5324
|
* Put checkboxes or radios on the opposite side.
|
|
5325
5325
|
*
|
|
5326
|
-
* @
|
|
5326
|
+
* @since 4.8.0
|
|
5327
5327
|
*/
|
|
5328
5328
|
reverse: Boolean,
|
|
5329
5329
|
/**
|
|
@@ -5769,7 +5769,7 @@ var round = Math.round;
|
|
|
5769
5769
|
function getUAString() {
|
|
5770
5770
|
var uaData = navigator.userAgentData;
|
|
5771
5771
|
|
|
5772
|
-
if (uaData != null && uaData.brands) {
|
|
5772
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
5773
5773
|
return uaData.brands.map(function (item) {
|
|
5774
5774
|
return item.brand + "/" + item.version;
|
|
5775
5775
|
}).join(' ');
|
|
@@ -6097,10 +6097,9 @@ var unsetSides = {
|
|
|
6097
6097
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
6098
6098
|
// cleanly divide the values into the appropriate subpixels.
|
|
6099
6099
|
|
|
6100
|
-
function roundOffsetsByDPR(_ref) {
|
|
6100
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
6101
6101
|
var x = _ref.x,
|
|
6102
6102
|
y = _ref.y;
|
|
6103
|
-
var win = window;
|
|
6104
6103
|
var dpr = win.devicePixelRatio || 1;
|
|
6105
6104
|
return {
|
|
6106
6105
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -6183,7 +6182,7 @@ function mapToStyles(_ref2) {
|
|
|
6183
6182
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
6184
6183
|
x: x,
|
|
6185
6184
|
y: y
|
|
6186
|
-
}) : {
|
|
6185
|
+
}, getWindow(popper)) : {
|
|
6187
6186
|
x: x,
|
|
6188
6187
|
y: y
|
|
6189
6188
|
};
|