@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/README.md
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
Several quick start options are available:
|
|
48
48
|
|
|
49
|
-
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.8.
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.8.2.zip)
|
|
50
50
|
- Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
|
|
51
51
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
|
|
52
52
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
|
|
@@ -60,7 +60,7 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
60
60
|
/**
|
|
61
61
|
* Put checkboxes or radios on the opposite side.
|
|
62
62
|
*
|
|
63
|
-
* @
|
|
63
|
+
* @since 4.8.0
|
|
64
64
|
*/
|
|
65
65
|
reverse: BooleanConstructor;
|
|
66
66
|
/**
|
|
@@ -148,7 +148,7 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
148
148
|
/**
|
|
149
149
|
* Put checkboxes or radios on the opposite side.
|
|
150
150
|
*
|
|
151
|
-
* @
|
|
151
|
+
* @since 4.8.0
|
|
152
152
|
*/
|
|
153
153
|
reverse: BooleanConstructor;
|
|
154
154
|
/**
|
|
@@ -18,7 +18,7 @@ declare const CFormSwitch: import("vue").DefineComponent<{
|
|
|
18
18
|
/**
|
|
19
19
|
* Put checkboxes or radios on the opposite side.
|
|
20
20
|
*
|
|
21
|
-
* @
|
|
21
|
+
* @since 4.8.0
|
|
22
22
|
*/
|
|
23
23
|
reverse: BooleanConstructor;
|
|
24
24
|
/**
|
|
@@ -65,7 +65,7 @@ declare const CFormSwitch: import("vue").DefineComponent<{
|
|
|
65
65
|
/**
|
|
66
66
|
* Put checkboxes or radios on the opposite side.
|
|
67
67
|
*
|
|
68
|
-
* @
|
|
68
|
+
* @since 4.8.0
|
|
69
69
|
*/
|
|
70
70
|
reverse: BooleanConstructor;
|
|
71
71
|
/**
|
package/dist/index.es.js
CHANGED
|
@@ -1909,7 +1909,7 @@ const CCarousel = defineComponent({
|
|
|
1909
1909
|
const nextItemWhenVisible = () => {
|
|
1910
1910
|
// Don't call next when the page isn't visible
|
|
1911
1911
|
// or the carousel or its parent isn't visible
|
|
1912
|
-
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
1912
|
+
if (!document.hidden && carouselRef.value && isInViewport(carouselRef.value)) {
|
|
1913
1913
|
handleControlClick('next');
|
|
1914
1914
|
}
|
|
1915
1915
|
};
|
|
@@ -1928,7 +1928,7 @@ const CCarousel = defineComponent({
|
|
|
1928
1928
|
}
|
|
1929
1929
|
};
|
|
1930
1930
|
const handleScroll = () => {
|
|
1931
|
-
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
1931
|
+
if (!document.hidden && carouselRef.value && isInViewport(carouselRef.value)) {
|
|
1932
1932
|
visible.value = true;
|
|
1933
1933
|
}
|
|
1934
1934
|
else {
|
|
@@ -4670,7 +4670,7 @@ const CFormCheck = defineComponent({
|
|
|
4670
4670
|
/**
|
|
4671
4671
|
* Put checkboxes or radios on the opposite side.
|
|
4672
4672
|
*
|
|
4673
|
-
* @
|
|
4673
|
+
* @since 4.8.0
|
|
4674
4674
|
*/
|
|
4675
4675
|
reverse: Boolean,
|
|
4676
4676
|
/**
|
|
@@ -5319,7 +5319,7 @@ const CFormSwitch = defineComponent({
|
|
|
5319
5319
|
/**
|
|
5320
5320
|
* Put checkboxes or radios on the opposite side.
|
|
5321
5321
|
*
|
|
5322
|
-
* @
|
|
5322
|
+
* @since 4.8.0
|
|
5323
5323
|
*/
|
|
5324
5324
|
reverse: Boolean,
|
|
5325
5325
|
/**
|
|
@@ -5765,7 +5765,7 @@ var round = Math.round;
|
|
|
5765
5765
|
function getUAString() {
|
|
5766
5766
|
var uaData = navigator.userAgentData;
|
|
5767
5767
|
|
|
5768
|
-
if (uaData != null && uaData.brands) {
|
|
5768
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
5769
5769
|
return uaData.brands.map(function (item) {
|
|
5770
5770
|
return item.brand + "/" + item.version;
|
|
5771
5771
|
}).join(' ');
|
|
@@ -6093,10 +6093,9 @@ var unsetSides = {
|
|
|
6093
6093
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
6094
6094
|
// cleanly divide the values into the appropriate subpixels.
|
|
6095
6095
|
|
|
6096
|
-
function roundOffsetsByDPR(_ref) {
|
|
6096
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
6097
6097
|
var x = _ref.x,
|
|
6098
6098
|
y = _ref.y;
|
|
6099
|
-
var win = window;
|
|
6100
6099
|
var dpr = win.devicePixelRatio || 1;
|
|
6101
6100
|
return {
|
|
6102
6101
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -6179,7 +6178,7 @@ function mapToStyles(_ref2) {
|
|
|
6179
6178
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
6180
6179
|
x: x,
|
|
6181
6180
|
y: y
|
|
6182
|
-
}) : {
|
|
6181
|
+
}, getWindow(popper)) : {
|
|
6183
6182
|
x: x,
|
|
6184
6183
|
y: y
|
|
6185
6184
|
};
|