@terraware/web-components 5.0.11 → 5.0.13
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/components/PhotosCarousel/PhotoSlide.d.ts +10 -0
- package/components/PhotosCarousel/PhotoSlide.d.ts.map +1 -0
- package/components/PhotosCarousel/PhotoSlide.js +36 -0
- package/components/PhotosCarousel/index.d.ts +2 -2
- package/components/PhotosCarousel/index.d.ts.map +1 -1
- package/components/PhotosCarousel/index.js +72 -83
- package/components/PhotosCarousel/styles.scss +100 -13
- package/components/PhotosCarousel/usePhotosCarousel.d.ts +15 -0
- package/components/PhotosCarousel/usePhotosCarousel.d.ts.map +1 -0
- package/components/PhotosCarousel/usePhotosCarousel.js +79 -0
- package/components/TimelineSliderV2/layout.d.ts +16 -0
- package/components/TimelineSliderV2/layout.d.ts.map +1 -0
- package/components/TimelineSliderV2/layout.js +168 -0
- package/components/TimelineSliderV2/types.d.ts +43 -0
- package/components/TimelineSliderV2/types.d.ts.map +1 -0
- package/components/TimelineSliderV2/types.js +1 -0
- package/components/ViewPhotosDialog/index.d.ts +0 -2
- package/components/ViewPhotosDialog/index.d.ts.map +1 -1
- package/components/ViewPhotosDialog/index.js +2 -18
- package/components/VirtualWalkthrough/AnnotationPanel.js +2 -2
- package/license-report.html +1 -1
- package/package.json +2 -2
- package/_vendor/react-multi-carousel/index.js +0 -13
- package/_vendor/react-multi-carousel/lib/Arrows.js +0 -13
- package/_vendor/react-multi-carousel/lib/Carousel.js +0 -19
- package/_vendor/react-multi-carousel/lib/CarouselItems.js +0 -14
- package/_vendor/react-multi-carousel/lib/Dots.js +0 -16
- package/_vendor/react-multi-carousel/lib/index.js +0 -13
- package/_vendor/react-multi-carousel/lib/types.js +0 -13
- package/_vendor/react-multi-carousel/lib/utils/clones.js +0 -14
- package/_vendor/react-multi-carousel/lib/utils/common.js +0 -13
- package/_vendor/react-multi-carousel/lib/utils/dots.js +0 -14
- package/_vendor/react-multi-carousel/lib/utils/elementWidth.js +0 -12
- package/_vendor/react-multi-carousel/lib/utils/index.js +0 -20
- package/_vendor/react-multi-carousel/lib/utils/mouseOrTouchMove.js +0 -14
- package/_vendor/react-multi-carousel/lib/utils/next.js +0 -13
- package/_vendor/react-multi-carousel/lib/utils/previous.js +0 -14
- package/_vendor/react-multi-carousel/lib/utils/throttle.js +0 -12
- package/_vendor/react-multi-carousel/lib/utils/throwError.js +0 -14
- package/_virtual/Arrows.js +0 -3
- package/_virtual/Carousel.js +0 -3
- package/_virtual/CarouselItems.js +0 -3
- package/_virtual/Dots.js +0 -3
- package/_virtual/_commonjsHelpers.js +0 -5
- package/_virtual/clones.js +0 -3
- package/_virtual/common.js +0 -3
- package/_virtual/dots2.js +0 -3
- package/_virtual/elementWidth.js +0 -3
- package/_virtual/index.js +0 -7
- package/_virtual/index2.js +0 -3
- package/_virtual/index3.js +0 -3
- package/_virtual/mouseOrTouchMove.js +0 -3
- package/_virtual/next.js +0 -3
- package/_virtual/previous.js +0 -3
- package/_virtual/throttle.js +0 -3
- package/_virtual/throwError.js +0 -3
- package/_virtual/types.js +0 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type LayoutMark = {
|
|
2
|
+
color: string;
|
|
3
|
+
id: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export type ColorWeight = {
|
|
7
|
+
color: string;
|
|
8
|
+
weight: number;
|
|
9
|
+
};
|
|
10
|
+
export type PositionedMark = {
|
|
11
|
+
color: string;
|
|
12
|
+
id: string;
|
|
13
|
+
positionPx: number;
|
|
14
|
+
};
|
|
15
|
+
export type TimelineCluster = {
|
|
16
|
+
anchorPx: number;
|
|
17
|
+
id: string;
|
|
18
|
+
members: PositionedMark[];
|
|
19
|
+
};
|
|
20
|
+
export type TimelineNode = {
|
|
21
|
+
colorWeights: ColorWeight[];
|
|
22
|
+
dimmed: boolean;
|
|
23
|
+
id: string;
|
|
24
|
+
leftPx: number;
|
|
25
|
+
markIds: string[];
|
|
26
|
+
sizePx: number;
|
|
27
|
+
};
|
|
28
|
+
export type ExpandedBand = {
|
|
29
|
+
leftPx: number;
|
|
30
|
+
memberCount: number;
|
|
31
|
+
widthPx: number;
|
|
32
|
+
};
|
|
33
|
+
export type TimelineLayout = {
|
|
34
|
+
band?: ExpandedBand;
|
|
35
|
+
nodes: TimelineNode[];
|
|
36
|
+
};
|
|
37
|
+
export type BuildLayoutParams = {
|
|
38
|
+
containerWidth: number;
|
|
39
|
+
expandedClusterId?: string;
|
|
40
|
+
marks: LayoutMark[];
|
|
41
|
+
thresholdPx?: number;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/TimelineSliderV2/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewPhotosDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,GAAG,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewPhotosDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,GAAG,EAAuB,MAAM,OAAO,CAAC;AAG7D,OAAuB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAoBlF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import Button from '../Button/Button.js';
|
|
3
2
|
import DialogBox from '../DialogBox/DialogBox.js';
|
|
4
3
|
import PhotosCarousel from '../PhotosCarousel/index.js';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -10,8 +9,6 @@ function ViewPhotosDialog(props) {
|
|
|
10
9
|
open,
|
|
11
10
|
photos,
|
|
12
11
|
initialSelectedSlide,
|
|
13
|
-
nextButtonLabel,
|
|
14
|
-
prevButtonLabel,
|
|
15
12
|
title,
|
|
16
13
|
numbered,
|
|
17
14
|
dots
|
|
@@ -20,32 +17,19 @@ function ViewPhotosDialog(props) {
|
|
|
20
17
|
useEffect(() => {
|
|
21
18
|
setSelectedSlide(initialSelectedSlide);
|
|
22
19
|
}, [initialSelectedSlide, open]);
|
|
23
|
-
const isPreviousDisabled = selectedSlide <= 0;
|
|
24
|
-
const isNextDisabled = selectedSlide >= photos.length - 1;
|
|
25
20
|
return /*#__PURE__*/jsx(DialogBox, {
|
|
26
21
|
onClose: onClose,
|
|
27
22
|
open: open,
|
|
28
23
|
title: title,
|
|
29
24
|
size: "large",
|
|
30
25
|
scrolled: true,
|
|
31
|
-
middleButtons: [/*#__PURE__*/jsx(Button, {
|
|
32
|
-
label: prevButtonLabel,
|
|
33
|
-
priority: "secondary",
|
|
34
|
-
onClick: () => setSelectedSlide(slide => Math.max(0, slide - 1)),
|
|
35
|
-
disabled: isPreviousDisabled,
|
|
36
|
-
icon: "caretLeft"
|
|
37
|
-
}, 'button-1'), /*#__PURE__*/jsx(Button, {
|
|
38
|
-
label: nextButtonLabel,
|
|
39
|
-
onClick: () => setSelectedSlide(slide => Math.min(photos.length - 1, slide + 1)),
|
|
40
|
-
disabled: isNextDisabled,
|
|
41
|
-
rightIcon: "caretRight"
|
|
42
|
-
}, 'button-2')],
|
|
43
26
|
children: /*#__PURE__*/jsx(PhotosCarousel, {
|
|
44
27
|
photos: photos,
|
|
45
28
|
selectedSlide: selectedSlide,
|
|
46
29
|
onSlideChange: setSelectedSlide,
|
|
47
30
|
numbered: numbered,
|
|
48
|
-
dots: dots
|
|
31
|
+
dots: dots,
|
|
32
|
+
showArrows: true
|
|
49
33
|
})
|
|
50
34
|
});
|
|
51
35
|
}
|
|
@@ -41,10 +41,10 @@ const CAROUSEL_SX = {
|
|
|
41
41
|
borderRadius: '12px 12px 0 0',
|
|
42
42
|
overflow: 'hidden',
|
|
43
43
|
flexShrink: 0,
|
|
44
|
-
'& .
|
|
44
|
+
'& .embla__slide__img': {
|
|
45
45
|
height: 'min(400px, 40vh)'
|
|
46
46
|
},
|
|
47
|
-
'& .
|
|
47
|
+
'& .embla__slide': {
|
|
48
48
|
minHeight: 'min(200px, 20vh)'
|
|
49
49
|
}
|
|
50
50
|
};
|
package/license-report.html
CHANGED
|
@@ -48,6 +48,6 @@ td {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
</style>
|
|
51
|
-
<table><thead><tr><th class="string">department</th><th class="string">related to</th><th class="string">name</th><th class="string">license period</th><th class="string">material / not material</th><th class="string">license type</th><th class="string">link</th><th class="string">remote version</th><th class="string">installed version</th><th class="string">defined version</th><th class="string">author</th></tr></thead><tbody><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@dnd-kit/core</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/clauderic/dnd-kit.git</td><td class="string">6.3.1</td><td class="string">6.3.1</td><td class="string">^6.0.7</td><td class="string">Claudéric Demers</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@dnd-kit/sortable</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/clauderic/dnd-kit.git</td><td class="string">10.0.0</td><td class="string">10.0.0</td><td class="string">^10.0.0</td><td class="string">Claudéric Demers</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@emotion/react</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/emotion-js/emotion.git#main</td><td class="string">11.14.0</td><td class="string">11.14.0</td><td class="string">^11.11.3</td><td class="string">Emotion Contributors</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@emotion/styled</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/emotion-js/emotion.git#main</td><td class="string">11.14.1</td><td class="string">11.14.1</td><td class="string">^11.11.3</td><td class="string">n/a</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/icons-material</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/material-ui.git</td><td class="string">6.5.0</td><td class="string">6.5.0</td><td class="string">^6.0.0</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/lab</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/material-ui.git</td><td class="string">6.0.1-beta.36</td><td class="string">6.0.1-beta.36</td><td class="string">^6.0.1-beta.36</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/material</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/material-ui.git</td><td class="string">6.5.0</td><td class="string">6.5.0</td><td class="string">^6.0.0</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/x-date-pickers</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/mui-x.git</td><td class="string">7.29.4</td><td class="string">7.29.4</td><td class="string">^7.22.0</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@playcanvas/react</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/playcanvas/react.git</td><td class="string">0.11.5</td><td class="string">0.11.5</td><td class="string">0.11.5</td><td class="string">n/a</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">classnames</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/JedWatson/classnames.git</td><td class="string">2.5.1</td><td class="string">2.5.1</td><td class="string">^2.3.2</td><td class="string">Jed Watson</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">csv-parse</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">https://github.com/adaltas/node-csv.git</td><td class="string">5.6.0</td><td class="string">5.6.0</td><td class="string">^5.5.5</td><td class="string">David Worms <david@adaltas.com> (https://www.adaltas.com)</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">geojson</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">http://github.com/caseycesari/geojson.js.git</td><td class="string">0.5.0</td><td class="string">0.5.0</td><td class="string">^0.5.0</td><td class="string">Casey Cesari</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">luxon</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/moment/luxon.git</td><td class="string">3.7.2</td><td class="string">3.7.2</td><td class="string">^3.3.0</td><td class="string">Isaac Cambron</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">marked</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git://github.com/markedjs/marked.git</td><td class="string">16.4.2</td><td class="string">16.4.2</td><td class="string">^16.2.1</td><td class="string">Christopher Jeffrey</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">material-react-table</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/KevinVandy/material-react-table.git</td><td class="string">3.2.1</td><td class="string">3.2.1</td><td class="string">^3.2.1</td><td class="string">KevinVandy</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">playcanvas</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/playcanvas/engine.git</td><td class="string">2.21.3</td><td class="string">2.21.3</td><td class="string">2.21.3</td><td class="string">PlayCanvas <support@playcanvas.com></td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">prettier</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/prettier/prettier.git</td><td class="string">3.9.6</td><td class="string">3.8.1</td><td class="string">^3.8.1</td><td class="string">James Long</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">react-intersection-observer</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/thebuilder/react-intersection-observer.git</td><td class="string">9.16.0</td><td class="string">9.16.0</td><td class="string">^9.5.2</td><td class="string">Daniel Schmidt</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">react-multi-carousel</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/YIZHUANG/react-multi-carousel.git</td><td class="string">2.8.6</td><td class="string">2.8.6</td><td class="string">^2.8.2</td><td class="string">YI ZHUANG https://github.com/YIZHUANG</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">react-responsive</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git://github.com/contra/react-responsive.git</td><td class="string">9.0.2</td><td class="string">9.0.2</td><td class="string">^9.0.2</td><td class="string">Contra <yo@contra.io> (https://contra.io)</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">sass</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/sass/dart-sass.git</td><td class="string">1.104.1</td><td class="string">1.97.2</td><td class="string">^1.75.0</td><td class="string">Natalie Weizenbaum nweiz@google.com https://github.com/nex3</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">tinycolor2</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/bgrins/TinyColor.git</td><td class="string">1.6.0</td><td class="string">1.6.0</td><td class="string">^1.6.0</td><td class="string">Brian Grinstead <briangrinstead@gmail.com> (http://briangrinstead.com)</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">web-vitals</td><td class="string">perpetual</td><td class="string">material</td><td class="string">Apache-2.0</td><td class="string">git+https://github.com/GoogleChrome/web-vitals.git</td><td class="string">3.5.2</td><td class="string">3.5.2</td><td class="string">^3.5.2</td><td class="string">Philip Walton philip@philipwalton.com http://philipwalton.com</td></tr></tbody></table>
|
|
51
|
+
<table><thead><tr><th class="string">department</th><th class="string">related to</th><th class="string">name</th><th class="string">license period</th><th class="string">material / not material</th><th class="string">license type</th><th class="string">link</th><th class="string">remote version</th><th class="string">installed version</th><th class="string">defined version</th><th class="string">author</th></tr></thead><tbody><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@dnd-kit/core</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/clauderic/dnd-kit.git</td><td class="string">6.3.1</td><td class="string">6.3.1</td><td class="string">^6.0.7</td><td class="string">Claudéric Demers</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@dnd-kit/sortable</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/clauderic/dnd-kit.git</td><td class="string">10.0.0</td><td class="string">10.0.0</td><td class="string">^10.0.0</td><td class="string">Claudéric Demers</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@emotion/react</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/emotion-js/emotion.git#main</td><td class="string">11.14.0</td><td class="string">11.14.0</td><td class="string">^11.11.3</td><td class="string">Emotion Contributors</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@emotion/styled</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/emotion-js/emotion.git#main</td><td class="string">11.14.1</td><td class="string">11.14.1</td><td class="string">^11.11.3</td><td class="string">n/a</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/icons-material</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/material-ui.git</td><td class="string">6.5.0</td><td class="string">6.5.0</td><td class="string">^6.0.0</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/lab</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/material-ui.git</td><td class="string">6.0.1-beta.36</td><td class="string">6.0.1-beta.36</td><td class="string">^6.0.1-beta.36</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/material</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/material-ui.git</td><td class="string">6.5.0</td><td class="string">6.5.0</td><td class="string">^6.0.0</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@mui/x-date-pickers</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/mui/mui-x.git</td><td class="string">7.29.4</td><td class="string">7.29.4</td><td class="string">^7.22.0</td><td class="string">MUI Team</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">@playcanvas/react</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/playcanvas/react.git</td><td class="string">0.11.5</td><td class="string">0.11.5</td><td class="string">0.11.5</td><td class="string">n/a</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">classnames</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/JedWatson/classnames.git</td><td class="string">2.5.1</td><td class="string">2.5.1</td><td class="string">^2.3.2</td><td class="string">Jed Watson</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">csv-parse</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">https://github.com/adaltas/node-csv.git</td><td class="string">5.6.0</td><td class="string">5.6.0</td><td class="string">^5.5.5</td><td class="string">David Worms <david@adaltas.com> (https://www.adaltas.com)</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">embla-carousel-react</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/davidjerleke/embla-carousel</td><td class="string">8.6.0</td><td class="string">8.6.0</td><td class="string">^8.6.0</td><td class="string">David Jerleke</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">geojson</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">http://github.com/caseycesari/geojson.js.git</td><td class="string">0.5.0</td><td class="string">0.5.0</td><td class="string">^0.5.0</td><td class="string">Casey Cesari</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">luxon</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/moment/luxon.git</td><td class="string">3.7.2</td><td class="string">3.7.2</td><td class="string">^3.3.0</td><td class="string">Isaac Cambron</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">marked</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git://github.com/markedjs/marked.git</td><td class="string">16.4.2</td><td class="string">16.4.2</td><td class="string">^16.2.1</td><td class="string">Christopher Jeffrey</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">material-react-table</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/KevinVandy/material-react-table.git</td><td class="string">3.2.1</td><td class="string">3.2.1</td><td class="string">^3.2.1</td><td class="string">KevinVandy</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">playcanvas</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/playcanvas/engine.git</td><td class="string">2.21.3</td><td class="string">2.21.3</td><td class="string">2.21.3</td><td class="string">PlayCanvas <support@playcanvas.com></td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">prettier</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/prettier/prettier.git</td><td class="string">3.9.7</td><td class="string">3.8.1</td><td class="string">^3.8.1</td><td class="string">James Long</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">react-intersection-observer</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/thebuilder/react-intersection-observer.git</td><td class="string">9.16.0</td><td class="string">9.16.0</td><td class="string">^9.5.2</td><td class="string">Daniel Schmidt</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">react-responsive</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git://github.com/contra/react-responsive.git</td><td class="string">9.0.2</td><td class="string">9.0.2</td><td class="string">^9.0.2</td><td class="string">Contra <yo@contra.io> (https://contra.io)</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">sass</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/sass/dart-sass.git</td><td class="string">1.104.1</td><td class="string">1.97.2</td><td class="string">^1.75.0</td><td class="string">Natalie Weizenbaum nweiz@google.com https://github.com/nex3</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">tinycolor2</td><td class="string">perpetual</td><td class="string">material</td><td class="string">MIT</td><td class="string">git+https://github.com/bgrins/TinyColor.git</td><td class="string">1.6.0</td><td class="string">1.6.0</td><td class="string">^1.6.0</td><td class="string">Brian Grinstead <briangrinstead@gmail.com> (http://briangrinstead.com)</td></tr><tr><td class="string">terraware</td><td class="string">web-components</td><td class="string">web-vitals</td><td class="string">perpetual</td><td class="string">material</td><td class="string">Apache-2.0</td><td class="string">git+https://github.com/GoogleChrome/web-vitals.git</td><td class="string">3.5.2</td><td class="string">3.5.2</td><td class="string">^3.5.2</td><td class="string">Philip Walton philip@philipwalton.com http://philipwalton.com</td></tr></tbody></table>
|
|
52
52
|
</body>
|
|
53
53
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terraware/web-components",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.13",
|
|
4
4
|
"author": "Terraformation Inc.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@playcanvas/react": "0.11.5",
|
|
26
26
|
"classnames": "^2.3.2",
|
|
27
27
|
"csv-parse": "^5.5.5",
|
|
28
|
+
"embla-carousel-react": "^8.6.0",
|
|
28
29
|
"geojson": "^0.5.0",
|
|
29
30
|
"luxon": "^3.3.0",
|
|
30
31
|
"marked": "^16.2.1",
|
|
@@ -32,7 +33,6 @@
|
|
|
32
33
|
"playcanvas": "2.21.3",
|
|
33
34
|
"prettier": "^3.8.1",
|
|
34
35
|
"react-intersection-observer": "^9.5.2",
|
|
35
|
-
"react-multi-carousel": "^2.8.2",
|
|
36
36
|
"react-responsive": "^9.0.2",
|
|
37
37
|
"sass": "^1.75.0",
|
|
38
38
|
"tinycolor2": "^1.6.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __require as requireLib } from './lib/index.js';
|
|
2
|
-
|
|
3
|
-
var reactMultiCarousel;
|
|
4
|
-
var hasRequiredReactMultiCarousel;
|
|
5
|
-
|
|
6
|
-
function requireReactMultiCarousel () {
|
|
7
|
-
if (hasRequiredReactMultiCarousel) return reactMultiCarousel;
|
|
8
|
-
hasRequiredReactMultiCarousel = 1;
|
|
9
|
-
reactMultiCarousel = requireLib();
|
|
10
|
-
return reactMultiCarousel;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { requireReactMultiCarousel as __require };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as Arrows } from '../../../_virtual/Arrows.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
var hasRequiredArrows;
|
|
5
|
-
|
|
6
|
-
function requireArrows () {
|
|
7
|
-
if (hasRequiredArrows) return Arrows;
|
|
8
|
-
hasRequiredArrows = 1;
|
|
9
|
-
Object.defineProperty(Arrows,"__esModule",{value:true});var React$1=React,LeftArrow=function(_a){var customLeftArrow=_a.customLeftArrow,getState=_a.getState,previous=_a.previous,disabled=_a.disabled,rtl=_a.rtl;if(customLeftArrow)return React$1.cloneElement(customLeftArrow,{onClick:function(){return previous()},carouselState:getState(),disabled:disabled,rtl:rtl});var rtlClassName=rtl?"rtl":"";return React$1.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+rtlClassName,onClick:function(){return previous()},type:"button",disabled:disabled})};Arrows.LeftArrow=LeftArrow;var RightArrow=function(_a){var customRightArrow=_a.customRightArrow,getState=_a.getState,next=_a.next,disabled=_a.disabled,rtl=_a.rtl;if(customRightArrow)return React$1.cloneElement(customRightArrow,{onClick:function(){return next()},carouselState:getState(),disabled:disabled,rtl:rtl});var rtlClassName=rtl?"rtl":"";return React$1.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+rtlClassName,onClick:function(){return next()},type:"button",disabled:disabled})};Arrows.RightArrow=RightArrow;
|
|
10
|
-
return Arrows;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { requireArrows as __require };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __exports as Carousel } from '../../../_virtual/Carousel.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { __require as requireUtils } from './utils/index.js';
|
|
4
|
-
import { __require as requireTypes } from './types.js';
|
|
5
|
-
import { __require as requireDots } from './Dots.js';
|
|
6
|
-
import { __require as requireArrows } from './Arrows.js';
|
|
7
|
-
import { __require as requireCarouselItems } from './CarouselItems.js';
|
|
8
|
-
import { __require as requireCommon } from './utils/common.js';
|
|
9
|
-
|
|
10
|
-
var hasRequiredCarousel;
|
|
11
|
-
|
|
12
|
-
function requireCarousel () {
|
|
13
|
-
if (hasRequiredCarousel) return Carousel;
|
|
14
|
-
hasRequiredCarousel = 1;
|
|
15
|
-
var __extends=Carousel&&Carousel.__extends||function(){var extendStatics=function(d,b){return (extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);})(d,b)};return function(d,b){function __(){this.constructor=d;}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __);}}();Object.defineProperty(Carousel,"__esModule",{value:true});var React$1=React,utils_1=requireUtils(),types_1=requireTypes(),Dots_1=requireDots(),Arrows_1=requireArrows(),CarouselItems_1=requireCarouselItems(),common_1=requireCommon(),defaultTransitionDuration=400,defaultTransition="transform 400ms ease-in-out",Carousel$1=function(_super){function Carousel(props){var _this=_super.call(this,props)||this;return _this.containerRef=React$1.createRef(),_this.listRef=React$1.createRef(),_this.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:React$1.Children.count(props.children),deviceType:"",domLoaded:false,transform:0,containerWidth:0},_this.onResize=_this.onResize.bind(_this),_this.handleDown=_this.handleDown.bind(_this),_this.handleMove=_this.handleMove.bind(_this),_this.handleOut=_this.handleOut.bind(_this),_this.onKeyUp=_this.onKeyUp.bind(_this),_this.handleEnter=_this.handleEnter.bind(_this),_this.setIsInThrottle=_this.setIsInThrottle.bind(_this),_this.next=utils_1.throttle(_this.next.bind(_this),props.transitionDuration||defaultTransitionDuration,_this.setIsInThrottle),_this.previous=utils_1.throttle(_this.previous.bind(_this),props.transitionDuration||defaultTransitionDuration,_this.setIsInThrottle),_this.goToSlide=utils_1.throttle(_this.goToSlide.bind(_this),props.transitionDuration||defaultTransitionDuration,_this.setIsInThrottle),_this.onMove=false,_this.initialX=0,_this.lastX=0,_this.isAnimationAllowed=false,_this.direction="",_this.initialY=0,_this.isInThrottle=false,_this.transformPlaceHolder=0,_this}return __extends(Carousel,_super),Carousel.prototype.resetTotalItems=function(){var _this=this,totalItems=React$1.Children.count(this.props.children),currentSlide=utils_1.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,totalItems));this.setState({totalItems:totalItems,currentSlide:currentSlide},function(){_this.setContainerAndItemWidth(_this.state.slidesToShow,true);});},Carousel.prototype.setIsInThrottle=function(isInThrottle){ void 0===isInThrottle&&(isInThrottle=false),this.isInThrottle=isInThrottle;},Carousel.prototype.setTransformDirectly=function(position,withAnimation){var additionalTransfrom=this.props.additionalTransfrom;this.transformPlaceHolder=position;var currentTransform=common_1.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(withAnimation),this.listRef.current.style.transform="translate3d("+(currentTransform+additionalTransfrom)+"px,0,0)");},Carousel.prototype.setAnimationDirectly=function(animationAllowed){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=animationAllowed?this.props.customTransition||defaultTransition:"none");},Carousel.prototype.componentDidMount=function(){this.setState({domLoaded:true}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(true),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));},Carousel.prototype.setClones=function(slidesToShow,itemWidth,forResizing,resetCurrentSlide){var _this=this;void 0===resetCurrentSlide&&(resetCurrentSlide=false),this.isAnimationAllowed=false;var childrenArr=React$1.Children.toArray(this.props.children),initialSlide=utils_1.getInitialSlideInInfiniteMode(slidesToShow||this.state.slidesToShow,childrenArr),clones=utils_1.getClones(this.state.slidesToShow,childrenArr),currentSlide=childrenArr.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:clones.length,currentSlide:forResizing&&!resetCurrentSlide?currentSlide:initialSlide},function(){_this.correctItemsPosition(itemWidth||_this.state.itemWidth);});},Carousel.prototype.setItemsToShow=function(shouldCorrectItemPosition,resetCurrentSlide){var _this=this,responsive=this.props.responsive;Object.keys(responsive).forEach(function(item){var _a=responsive[item],breakpoint=_a.breakpoint,items=_a.items,max=breakpoint.max,min=breakpoint.min,widths=[window.innerWidth];window.screen&&window.screen.width&&widths.push(window.screen.width);var screenWidth=Math.min.apply(Math,widths);min<=screenWidth&&screenWidth<=max&&(_this.setState({slidesToShow:items,deviceType:item}),_this.setContainerAndItemWidth(items,shouldCorrectItemPosition,resetCurrentSlide));});},Carousel.prototype.setContainerAndItemWidth=function(slidesToShow,shouldCorrectItemPosition,resetCurrentSlide){var _this=this;if(this.containerRef&&this.containerRef.current){var containerWidth=this.containerRef.current.offsetWidth,itemWidth_1=utils_1.getItemClientSideWidth(this.props,slidesToShow,containerWidth);this.setState({containerWidth:containerWidth,itemWidth:itemWidth_1},function(){_this.props.infinite&&_this.setClones(slidesToShow,itemWidth_1,shouldCorrectItemPosition,resetCurrentSlide);}),shouldCorrectItemPosition&&this.correctItemsPosition(itemWidth_1);}},Carousel.prototype.correctItemsPosition=function(itemWidth,isAnimationAllowed,setToDomDirectly){isAnimationAllowed&&(this.isAnimationAllowed=true),!isAnimationAllowed&&this.isAnimationAllowed&&(this.isAnimationAllowed=false);var nextTransform=this.state.totalItems<this.state.slidesToShow?0:-itemWidth*this.state.currentSlide;setToDomDirectly&&this.setTransformDirectly(nextTransform,true),this.setState({transform:nextTransform});},Carousel.prototype.onResize=function(value){var shouldCorrectItemPosition;shouldCorrectItemPosition=!!this.props.infinite&&("boolean"!=typeof value||!value),this.setItemsToShow(shouldCorrectItemPosition);},Carousel.prototype.componentDidUpdate=function(_a,_b){var _this=this,keyBoardControl=_a.keyBoardControl,autoPlay=_a.autoPlay,children=_a.children,containerWidth=_b.containerWidth,domLoaded=_b.domLoaded,currentSlide=_b.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==containerWidth&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){_this.setItemsToShow(true);},this.props.transitionDuration||defaultTransitionDuration)),keyBoardControl&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!keyBoardControl&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),autoPlay&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),autoPlay||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),children.length!==this.props.children.length?Carousel.clonesTimeout=setTimeout(function(){_this.props.infinite?_this.setClones(_this.state.slidesToShow,_this.state.itemWidth,true,true):_this.resetTotalItems();},this.props.transitionDuration||defaultTransitionDuration):this.props.infinite&&this.state.currentSlide!==currentSlide&&this.correctClonesPosition({domLoaded:domLoaded}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&utils_1.isInRightEnd(this.state)){var rewindBuffer=this.props.transitionDuration||defaultTransitionDuration;Carousel.isInThrottleTimeout=setTimeout(function(){_this.setIsInThrottle(false),_this.resetAutoplayInterval(),_this.goToSlide(0,void 0,!!_this.props.rewindWithAnimation);},rewindBuffer+this.props.autoPlaySpeed);}},Carousel.prototype.correctClonesPosition=function(_a){var _this=this,domLoaded=_a.domLoaded,childrenArr=React$1.Children.toArray(this.props.children),_b=utils_1.checkClonesPosition(this.state,childrenArr,this.props),isReachingTheEnd=_b.isReachingTheEnd,isReachingTheStart=_b.isReachingTheStart,nextSlide=_b.nextSlide,nextPosition=_b.nextPosition;this.state.domLoaded&&domLoaded&&(isReachingTheEnd||isReachingTheStart)&&(this.isAnimationAllowed=false,Carousel.transformTimeout=setTimeout(function(){_this.setState({transform:nextPosition,currentSlide:nextSlide});},this.props.transitionDuration||defaultTransitionDuration));},Carousel.prototype.next=function(slidesHavePassed){var _this=this;void 0===slidesHavePassed&&(slidesHavePassed=0);var _a=this.props,afterChange=_a.afterChange,beforeChange=_a.beforeChange;if(!utils_1.notEnoughChildren(this.state)){var _b=utils_1.populateNextSlides(this.state,this.props,slidesHavePassed),nextSlides=_b.nextSlides,nextPosition=_b.nextPosition,previousSlide=this.state.currentSlide;void 0!==nextSlides&&void 0!==nextPosition&&("function"==typeof beforeChange&&beforeChange(nextSlides,this.getState()),this.isAnimationAllowed=true,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:nextPosition,currentSlide:nextSlides},function(){"function"==typeof afterChange&&(Carousel.afterChangeTimeout=setTimeout(function(){afterChange(previousSlide,_this.getState());},_this.props.transitionDuration||defaultTransitionDuration));}));}},Carousel.prototype.previous=function(slidesHavePassed){var _this=this;void 0===slidesHavePassed&&(slidesHavePassed=0);var _a=this.props,afterChange=_a.afterChange,beforeChange=_a.beforeChange;if(!utils_1.notEnoughChildren(this.state)){var _b=utils_1.populatePreviousSlides(this.state,this.props,slidesHavePassed),nextSlides=_b.nextSlides,nextPosition=_b.nextPosition;if(void 0!==nextSlides&&void 0!==nextPosition){var previousSlide=this.state.currentSlide;"function"==typeof beforeChange&&beforeChange(nextSlides,this.getState()),this.isAnimationAllowed=true,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:nextPosition,currentSlide:nextSlides},function(){"function"==typeof afterChange&&(Carousel.afterChangeTimeout2=setTimeout(function(){afterChange(previousSlide,_this.getState());},_this.props.transitionDuration||defaultTransitionDuration));});}}},Carousel.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));},Carousel.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),Carousel.clonesTimeout&&clearTimeout(Carousel.clonesTimeout),Carousel.isInThrottleTimeout&&clearTimeout(Carousel.isInThrottleTimeout),Carousel.transformTimeout&&clearTimeout(Carousel.transformTimeout),Carousel.afterChangeTimeout&&clearTimeout(Carousel.afterChangeTimeout),Carousel.afterChangeTimeout2&&clearTimeout(Carousel.afterChangeTimeout2),Carousel.afterChangeTimeout3&&clearTimeout(Carousel.afterChangeTimeout3);},Carousel.prototype.resetMoveStatus=function(){this.onMove=false,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0;},Carousel.prototype.getCords=function(_a){var clientX=_a.clientX,clientY=_a.clientY;return {clientX:common_1.parsePosition(this.props,clientX),clientY:common_1.parsePosition(this.props,clientY)}},Carousel.prototype.handleDown=function(e){if(!(!types_1.isMouseMoveEvent(e)&&!this.props.swipeable||types_1.isMouseMoveEvent(e)&&!this.props.draggable||this.isInThrottle)){var _a=this.getCords(types_1.isMouseMoveEvent(e)?e:e.touches[0]),clientX=_a.clientX,clientY=_a.clientY;this.onMove=true,this.initialX=clientX,this.initialY=clientY,this.lastX=clientX,this.isAnimationAllowed=false;}},Carousel.prototype.handleMove=function(e){if(!(!types_1.isMouseMoveEvent(e)&&!this.props.swipeable||types_1.isMouseMoveEvent(e)&&!this.props.draggable||utils_1.notEnoughChildren(this.state))){var _a=this.getCords(types_1.isMouseMoveEvent(e)?e:e.touches[0]),clientX=_a.clientX,clientY=_a.clientY,diffX=this.initialX-clientX,diffY=this.initialY-clientY;if(this.onMove){if(!(Math.abs(diffX)>Math.abs(diffY)))return;var _b=utils_1.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,clientX,this.transformPlaceHolder),direction=_b.direction,nextPosition=_b.nextPosition,canContinue=_b.canContinue;direction&&(this.direction=direction,canContinue&&void 0!==nextPosition&&this.setTransformDirectly(nextPosition)),this.lastX=clientX;}}},Carousel.prototype.handleOut=function(e){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var shouldDisableOnMobile="touchend"===e.type&&!this.props.swipeable,shouldDisableOnDesktop=("mouseleave"===e.type||"mouseup"===e.type)&&!this.props.draggable;if(!shouldDisableOnMobile&&!shouldDisableOnDesktop&&this.onMove){if(this.setAnimationDirectly(true),"right"===this.direction)if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var slidesHavePassed=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(slidesHavePassed);}else this.correctItemsPosition(this.state.itemWidth,true,true);if("left"===this.direction)if(this.lastX-this.initialX>this.props.minimumTouchDrag){slidesHavePassed=Math.round((this.lastX-this.initialX)/this.state.itemWidth);this.previous(slidesHavePassed);}else this.correctItemsPosition(this.state.itemWidth,true,true);this.resetMoveStatus();}},Carousel.prototype.isInViewport=function(el){var _a=el.getBoundingClientRect(),_b=_a.top,top=void 0===_b?0:_b,_c=_a.left,left=void 0===_c?0:_c,_d=_a.bottom,bottom=void 0===_d?0:_d,_e=_a.right,right=void 0===_e?0:_e;return 0<=top&&0<=left&&bottom<=(window.innerHeight||document.documentElement.clientHeight)&&right<=(window.innerWidth||document.documentElement.clientWidth)},Carousel.prototype.isChildOfCarousel=function(el){return !!(el instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(el)},Carousel.prototype.onKeyUp=function(e){var target=e.target;switch(e.keyCode){case 37:if(this.isChildOfCarousel(target))return this.previous();break;case 39:if(this.isChildOfCarousel(target))return this.next();break;case 9:if(this.isChildOfCarousel(target)&&target instanceof HTMLInputElement&&this.isInViewport(target))return this.next()}},Carousel.prototype.handleEnter=function(e){types_1.isMouseMoveEvent(e)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0);},Carousel.prototype.goToSlide=function(slide,skipCallbacks,animationAllowed){var _this=this;if(void 0===animationAllowed&&(animationAllowed=true),!this.isInThrottle){var itemWidth=this.state.itemWidth,_a=this.props,afterChange=_a.afterChange,beforeChange=_a.beforeChange,previousSlide=this.state.currentSlide;"function"!=typeof beforeChange||skipCallbacks&&("object"!=typeof skipCallbacks||skipCallbacks.skipBeforeChange)||beforeChange(slide,this.getState()),this.isAnimationAllowed=animationAllowed,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:slide,transform:-itemWidth*slide},function(){_this.props.infinite&&_this.correctClonesPosition({domLoaded:true}),"function"!=typeof afterChange||skipCallbacks&&("object"!=typeof skipCallbacks||skipCallbacks.skipAfterChange)||(Carousel.afterChangeTimeout3=setTimeout(function(){afterChange(previousSlide,_this.getState());},_this.props.transitionDuration||defaultTransitionDuration));});}},Carousel.prototype.getState=function(){return this.state},Carousel.prototype.renderLeftArrow=function(disbaled){var _this=this,_a=this.props,customLeftArrow=_a.customLeftArrow,rtl=_a.rtl;return React$1.createElement(Arrows_1.LeftArrow,{customLeftArrow:customLeftArrow,getState:function(){return _this.getState()},previous:this.previous,disabled:disbaled,rtl:rtl})},Carousel.prototype.renderRightArrow=function(disbaled){var _this=this,_a=this.props,customRightArrow=_a.customRightArrow,rtl=_a.rtl;return React$1.createElement(Arrows_1.RightArrow,{customRightArrow:customRightArrow,getState:function(){return _this.getState()},next:this.next,disabled:disbaled,rtl:rtl})},Carousel.prototype.renderButtonGroups=function(){var _this=this,customButtonGroup=this.props.customButtonGroup;return customButtonGroup?React$1.cloneElement(customButtonGroup,{previous:function(){return _this.previous()},next:function(){return _this.next()},goToSlide:function(slideIndex,skipCallbacks){return _this.goToSlide(slideIndex,skipCallbacks)},carouselState:this.getState()}):null},Carousel.prototype.renderDotsList=function(){var _this=this;return React$1.createElement(Dots_1.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return _this.getState()}})},Carousel.prototype.renderCarouselItems=function(){var clones=[];if(this.props.infinite){var childrenArr=React$1.Children.toArray(this.props.children);clones=utils_1.getClones(this.state.slidesToShow,childrenArr);}return React$1.createElement(CarouselItems_1.default,{clones:clones,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:utils_1.notEnoughChildren(this.state),props:this.props})},Carousel.prototype.render=function(){var _a=this.props,deviceType=_a.deviceType,arrows=_a.arrows,renderArrowsWhenDisabled=_a.renderArrowsWhenDisabled,removeArrowOnDeviceType=_a.removeArrowOnDeviceType,infinite=_a.infinite,containerClass=_a.containerClass,sliderClass=_a.sliderClass,customTransition=_a.customTransition,additionalTransfrom=_a.additionalTransfrom,renderDotsOutside=_a.renderDotsOutside,renderButtonGroupOutside=_a.renderButtonGroupOutside,className=_a.className,rtl=_a.rtl;"production"!==process.env.NODE_ENV&&utils_1.throwError(this.state,this.props);var _b=utils_1.getInitialState(this.state,this.props),shouldRenderOnSSR=_b.shouldRenderOnSSR,shouldRenderAtAll=_b.shouldRenderAtAll,isLeftEndReach=utils_1.isInLeftEnd(this.state),isRightEndReach=utils_1.isInRightEnd(this.state),shouldShowArrows=arrows&&!(removeArrowOnDeviceType&&(deviceType&&-1<removeArrowOnDeviceType.indexOf(deviceType)||this.state.deviceType&&-1<removeArrowOnDeviceType.indexOf(this.state.deviceType)))&&!utils_1.notEnoughChildren(this.state)&&shouldRenderAtAll,disableLeftArrow=!infinite&&isLeftEndReach,disableRightArrow=!infinite&&isRightEndReach,currentTransform=common_1.getTransform(this.state,this.props);return React$1.createElement(React$1.Fragment,null,React$1.createElement("div",{className:"react-multi-carousel-list "+containerClass+" "+className,dir:rtl?"rtl":"ltr",ref:this.containerRef},React$1.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+sliderClass,style:{transition:this.isAnimationAllowed?customTransition||defaultTransition:"none",overflow:shouldRenderOnSSR?"hidden":"unset",transform:"translate3d("+(currentTransform+additionalTransfrom)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),shouldShowArrows&&(!disableLeftArrow||renderArrowsWhenDisabled)&&this.renderLeftArrow(disableLeftArrow),shouldShowArrows&&(!disableRightArrow||renderArrowsWhenDisabled)&&this.renderRightArrow(disableRightArrow),shouldRenderAtAll&&!renderButtonGroupOutside&&this.renderButtonGroups(),shouldRenderAtAll&&!renderDotsOutside&&this.renderDotsList()),shouldRenderAtAll&&renderDotsOutside&&this.renderDotsList(),shouldRenderAtAll&&renderButtonGroupOutside&&this.renderButtonGroups())},Carousel.defaultProps={slidesToSlide:1,infinite:false,draggable:true,swipeable:true,arrows:true,renderArrowsWhenDisabled:false,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:true,autoPlaySpeed:3e3,showDots:false,renderDotsOutside:false,renderButtonGroupOutside:false,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:false,centerMode:false,additionalTransfrom:0,pauseOnHover:true,shouldResetAutoplay:true,rewind:false,rtl:false,rewindWithAnimation:false},Carousel}(React$1.Component);Carousel.default=Carousel$1;
|
|
16
|
-
return Carousel;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { requireCarousel as __require };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __exports as CarouselItems } from '../../../_virtual/CarouselItems.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { __require as requireUtils } from './utils/index.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredCarouselItems;
|
|
6
|
-
|
|
7
|
-
function requireCarouselItems () {
|
|
8
|
-
if (hasRequiredCarouselItems) return CarouselItems;
|
|
9
|
-
hasRequiredCarouselItems = 1;
|
|
10
|
-
Object.defineProperty(CarouselItems,"__esModule",{value:true});var React$1=React,utils_1=requireUtils(),CarouselItems$1=function(_a){var props=_a.props,state=_a.state,goToSlide=_a.goToSlide,clones=_a.clones,notEnoughChildren=_a.notEnoughChildren,itemWidth=state.itemWidth,children=props.children,infinite=props.infinite,itemClass=props.itemClass,itemAriaLabel=props.itemAriaLabel,partialVisbile=props.partialVisbile,partialVisible=props.partialVisible,_b=utils_1.getInitialState(state,props),flexBisis=_b.flexBisis,shouldRenderOnSSR=_b.shouldRenderOnSSR,domFullyLoaded=_b.domFullyLoaded,partialVisibilityGutter=_b.partialVisibilityGutter;return _b.shouldRenderAtAll?(partialVisbile&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),React$1.createElement(React$1.Fragment,null,(infinite?clones:React$1.Children.toArray(children)).map(function(child,index){return React$1.createElement("li",{key:index,"data-index":index,onClick:function(){props.focusOnSelect&&goToSlide(index);},"aria-hidden":utils_1.getIfSlideIsVisbile(index,state)?"false":"true","aria-label":itemAriaLabel||(child.props.ariaLabel?child.props.ariaLabel:null),style:{flex:shouldRenderOnSSR?"1 0 "+flexBisis+"%":"auto",position:"relative",width:domFullyLoaded?((partialVisbile||partialVisible)&&partialVisibilityGutter&&!notEnoughChildren?itemWidth-partialVisibilityGutter:itemWidth)+"px":"auto"},className:"react-multi-carousel-item "+(utils_1.getIfSlideIsVisbile(index,state)?"react-multi-carousel-item--active":"")+" "+itemClass},child)}))):null};CarouselItems.default=CarouselItems$1;
|
|
11
|
-
return CarouselItems;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { requireCarouselItems as __require };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __exports as Dots } from '../../../_virtual/Dots.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { __require as requireClones } from './utils/clones.js';
|
|
4
|
-
import { __require as requireDots$1 } from './utils/dots.js';
|
|
5
|
-
import { __require as requireCommon } from './utils/common.js';
|
|
6
|
-
|
|
7
|
-
var hasRequiredDots;
|
|
8
|
-
|
|
9
|
-
function requireDots () {
|
|
10
|
-
if (hasRequiredDots) return Dots;
|
|
11
|
-
hasRequiredDots = 1;
|
|
12
|
-
Object.defineProperty(Dots,"__esModule",{value:true});var React$1=React,clones_1=requireClones(),dots_1=requireDots$1(),common_1=requireCommon(),Dots$1=function(_a){var props=_a.props,state=_a.state,goToSlide=_a.goToSlide,getState=_a.getState,showDots=props.showDots,customDot=props.customDot,dotListClass=props.dotListClass,infinite=props.infinite,children=props.children;if(!showDots||common_1.notEnoughChildren(state))return null;var numberOfDotsToShow,currentSlide=state.currentSlide,slidesToShow=state.slidesToShow,slidesToSlide=common_1.getSlidesToSlide(state,props),childrenArr=React$1.Children.toArray(children);numberOfDotsToShow=infinite?Math.ceil(childrenArr.length/slidesToSlide):Math.ceil((childrenArr.length-slidesToShow)/slidesToSlide)+1;var nextSlidesTable=dots_1.getLookupTableForNextSlides(numberOfDotsToShow,state,props,childrenArr),lookupTable=clones_1.getOriginalIndexLookupTableByClones(slidesToShow,childrenArr),currentSlides=lookupTable[currentSlide];return React$1.createElement("ul",{className:"react-multi-carousel-dot-list "+dotListClass},Array(numberOfDotsToShow).fill(0).map(function(_,index){var isActive,nextSlide;if(infinite){nextSlide=nextSlidesTable[index];var cloneIndex=lookupTable[nextSlide];isActive=currentSlides===cloneIndex||cloneIndex<=currentSlides&¤tSlides<cloneIndex+slidesToSlide;}else {var maximumNextSlide=childrenArr.length-slidesToShow,possibileNextSlides=index*slidesToSlide;isActive=(nextSlide=maximumNextSlide<possibileNextSlides?maximumNextSlide:possibileNextSlides)===currentSlide||nextSlide<currentSlide&¤tSlide<nextSlide+slidesToSlide&¤tSlide<childrenArr.length-slidesToShow;}return customDot?React$1.cloneElement(customDot,{index:index,active:isActive,key:index,onClick:function(){return goToSlide(nextSlide)},carouselState:getState()}):React$1.createElement("li",{"data-index":index,key:index,className:"react-multi-carousel-dot "+(isActive?"react-multi-carousel-dot--active":"")},React$1.createElement("button",{"aria-label":"Go to slide "+(index+1),onClick:function(){return goToSlide(nextSlide)}}))}))};Dots.default=Dots$1;
|
|
13
|
-
return Dots;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { requireDots as __require };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as lib } from '../../../_virtual/index2.js';
|
|
2
|
-
import { __require as requireCarousel } from './Carousel.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredLib;
|
|
5
|
-
|
|
6
|
-
function requireLib () {
|
|
7
|
-
if (hasRequiredLib) return lib;
|
|
8
|
-
hasRequiredLib = 1;
|
|
9
|
-
Object.defineProperty(lib,"__esModule",{value:true});var Carousel_1=requireCarousel();lib.default=Carousel_1.default;
|
|
10
|
-
return lib;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { requireLib as __require };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as types } from '../../../_virtual/types.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
var hasRequiredTypes;
|
|
5
|
-
|
|
6
|
-
function requireTypes () {
|
|
7
|
-
if (hasRequiredTypes) return types;
|
|
8
|
-
hasRequiredTypes = 1;
|
|
9
|
-
var __extends=types&&types.__extends||function(){var extendStatics=function(d,b){return (extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);})(d,b)};return function(d,b){function __(){this.constructor=d;}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __);}}();Object.defineProperty(types,"__esModule",{value:true});var React$1=React;function isMouseMoveEvent(e){return "clientY"in e}types.isMouseMoveEvent=isMouseMoveEvent;var Carousel=function(_super){function Carousel(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(Carousel,_super),Carousel}(React$1.Component);types.default=Carousel;
|
|
10
|
-
return types;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { requireTypes as __require };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __exports as clones } from '../../../../_virtual/clones.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredClones;
|
|
4
|
-
|
|
5
|
-
function requireClones () {
|
|
6
|
-
if (hasRequiredClones) return clones;
|
|
7
|
-
hasRequiredClones = 1;
|
|
8
|
-
(function (exports) {
|
|
9
|
-
function getOriginalCounterPart(index,_a,childrenArr){var slidesToShow=_a.slidesToShow,currentSlide=_a.currentSlide;return childrenArr.length>2*slidesToShow?index+2*slidesToShow:currentSlide>=childrenArr.length?childrenArr.length+index:index}function getOriginalIndexLookupTableByClones(slidesToShow,childrenArr){if(childrenArr.length>2*slidesToShow){for(var table={},firstBeginningOfClones=childrenArr.length-2*slidesToShow,firstEndOfClones=childrenArr.length-firstBeginningOfClones,firstCount=firstBeginningOfClones,i=0;i<firstEndOfClones;i++)table[i]=firstCount,firstCount++;var secondBeginningOfClones=childrenArr.length+firstEndOfClones,secondEndOfClones=secondBeginningOfClones+childrenArr.slice(0,2*slidesToShow).length,secondCount=0;for(i=secondBeginningOfClones;i<=secondEndOfClones;i++)table[i]=secondCount,secondCount++;var originalEnd=secondBeginningOfClones,originalCounter=0;for(i=firstEndOfClones;i<originalEnd;i++)table[i]=originalCounter,originalCounter++;return table}table={};var totalSlides=3*childrenArr.length,count=0;for(i=0;i<totalSlides;i++)table[i]=count,++count===childrenArr.length&&(count=0);return table}function getClones(slidesToShow,childrenArr){return childrenArr.length<slidesToShow?childrenArr:childrenArr.length>2*slidesToShow?childrenArr.slice(childrenArr.length-2*slidesToShow,childrenArr.length).concat(childrenArr,childrenArr.slice(0,2*slidesToShow)):childrenArr.concat(childrenArr,childrenArr)}function getInitialSlideInInfiniteMode(slidesToShow,childrenArr){return childrenArr.length>2*slidesToShow?2*slidesToShow:childrenArr.length}function checkClonesPosition(_a,childrenArr,props){var isReachingTheEnd,currentSlide=_a.currentSlide,slidesToShow=_a.slidesToShow,itemWidth=_a.itemWidth,totalItems=_a.totalItems,nextSlide=0,nextPosition=0,isReachingTheStart=0===currentSlide,originalFirstSlide=childrenArr.length-(childrenArr.length-2*slidesToShow);return childrenArr.length<slidesToShow?(nextPosition=nextSlide=0,isReachingTheStart=isReachingTheEnd=false):childrenArr.length>2*slidesToShow?((isReachingTheEnd=currentSlide>=originalFirstSlide+childrenArr.length)&&(nextPosition=-itemWidth*(nextSlide=currentSlide-childrenArr.length)),isReachingTheStart&&(nextPosition=-itemWidth*(nextSlide=originalFirstSlide+(childrenArr.length-2*slidesToShow)))):((isReachingTheEnd=currentSlide>=2*childrenArr.length)&&(nextPosition=-itemWidth*(nextSlide=currentSlide-childrenArr.length)),isReachingTheStart&&(nextPosition=props.showDots?-itemWidth*(nextSlide=childrenArr.length):-itemWidth*(nextSlide=totalItems/3))),{isReachingTheEnd:isReachingTheEnd,isReachingTheStart:isReachingTheStart,nextSlide:nextSlide,nextPosition:nextPosition}}Object.defineProperty(exports,"__esModule",{value:true}),exports.getOriginalCounterPart=getOriginalCounterPart,exports.getOriginalIndexLookupTableByClones=getOriginalIndexLookupTableByClones,exports.getClones=getClones,exports.getInitialSlideInInfiniteMode=getInitialSlideInInfiniteMode,exports.checkClonesPosition=checkClonesPosition;
|
|
10
|
-
} (clones));
|
|
11
|
-
return clones;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { requireClones as __require };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as common } from '../../../../_virtual/common.js';
|
|
2
|
-
import { __require as requireElementWidth } from './elementWidth.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredCommon;
|
|
5
|
-
|
|
6
|
-
function requireCommon () {
|
|
7
|
-
if (hasRequiredCommon) return common;
|
|
8
|
-
hasRequiredCommon = 1;
|
|
9
|
-
Object.defineProperty(common,"__esModule",{value:true});var elementWidth_1=requireElementWidth();function notEnoughChildren(state){var slidesToShow=state.slidesToShow;return state.totalItems<slidesToShow}function getInitialState(state,props){var flexBisis,domLoaded=state.domLoaded,slidesToShow=state.slidesToShow,containerWidth=state.containerWidth,itemWidth=state.itemWidth,deviceType=props.deviceType,responsive=props.responsive,ssr=props.ssr,partialVisbile=props.partialVisbile,partialVisible=props.partialVisible,domFullyLoaded=Boolean(domLoaded&&slidesToShow&&containerWidth&&itemWidth);ssr&&deviceType&&!domFullyLoaded&&(flexBisis=elementWidth_1.getWidthFromDeviceType(deviceType,responsive));var shouldRenderOnSSR=Boolean(ssr&&deviceType&&!domFullyLoaded&&flexBisis);return {shouldRenderOnSSR:shouldRenderOnSSR,flexBisis:flexBisis,domFullyLoaded:domFullyLoaded,partialVisibilityGutter:elementWidth_1.getPartialVisibilityGutter(responsive,partialVisbile||partialVisible,deviceType,state.deviceType),shouldRenderAtAll:shouldRenderOnSSR||domFullyLoaded}}function getIfSlideIsVisbile(index,state){var currentSlide=state.currentSlide,slidesToShow=state.slidesToShow;return currentSlide<=index&&index<currentSlide+slidesToShow}function getTransformForCenterMode(state,props,transformPlaceHolder){var transform=transformPlaceHolder||state.transform;return !props.infinite&&0===state.currentSlide||notEnoughChildren(state)?transform:transform+state.itemWidth/2}function isInLeftEnd(_a){return !(0<_a.currentSlide)}function isInRightEnd(_a){var currentSlide=_a.currentSlide,totalItems=_a.totalItems;return !(currentSlide+_a.slidesToShow<totalItems)}function getTransformForPartialVsibile(state,partialVisibilityGutter,props,transformPlaceHolder){ void 0===partialVisibilityGutter&&(partialVisibilityGutter=0);var currentSlide=state.currentSlide,slidesToShow=state.slidesToShow,isRightEndReach=isInRightEnd(state),shouldRemoveRightGutter=!props.infinite&&isRightEndReach,baseTransform=transformPlaceHolder||state.transform;if(notEnoughChildren(state))return baseTransform;var transform=baseTransform+currentSlide*partialVisibilityGutter;return shouldRemoveRightGutter?transform+(state.containerWidth-(state.itemWidth-partialVisibilityGutter)*slidesToShow):transform}function parsePosition(props,position){return props.rtl?-1*position:position}function getTransform(state,props,transformPlaceHolder){var partialVisbile=props.partialVisbile,partialVisible=props.partialVisible,responsive=props.responsive,deviceType=props.deviceType,centerMode=props.centerMode,transform=transformPlaceHolder||state.transform,partialVisibilityGutter=elementWidth_1.getPartialVisibilityGutter(responsive,partialVisbile||partialVisible,deviceType,state.deviceType);return parsePosition(props,partialVisible||partialVisbile?getTransformForPartialVsibile(state,partialVisibilityGutter,props,transformPlaceHolder):centerMode?getTransformForCenterMode(state,props,transformPlaceHolder):transform)}function getSlidesToSlide(state,props){var domLoaded=state.domLoaded,slidesToShow=state.slidesToShow,containerWidth=state.containerWidth,itemWidth=state.itemWidth,deviceType=props.deviceType,responsive=props.responsive,slidesToScroll=props.slidesToSlide||1,domFullyLoaded=Boolean(domLoaded&&slidesToShow&&containerWidth&&itemWidth);return props.ssr&&props.deviceType&&!domFullyLoaded&&Object.keys(responsive).forEach(function(device){var slidesToSlide=responsive[device].slidesToSlide;deviceType===device&&slidesToSlide&&(slidesToScroll=slidesToSlide);}),domFullyLoaded&&Object.keys(responsive).forEach(function(item){var _a=responsive[item],breakpoint=_a.breakpoint,slidesToSlide=_a.slidesToSlide,max=breakpoint.max,min=breakpoint.min;slidesToSlide&&window.innerWidth>=min&&window.innerWidth<=max&&(slidesToScroll=slidesToSlide);}),slidesToScroll}common.notEnoughChildren=notEnoughChildren,common.getInitialState=getInitialState,common.getIfSlideIsVisbile=getIfSlideIsVisbile,common.getTransformForCenterMode=getTransformForCenterMode,common.isInLeftEnd=isInLeftEnd,common.isInRightEnd=isInRightEnd,common.getTransformForPartialVsibile=getTransformForPartialVsibile,common.parsePosition=parsePosition,common.getTransform=getTransform,common.getSlidesToSlide=getSlidesToSlide;
|
|
10
|
-
return common;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { requireCommon as __require };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __exports as dots } from '../../../../_virtual/dots2.js';
|
|
2
|
-
import { __require as requireClones } from './clones.js';
|
|
3
|
-
import { __require as requireCommon } from './common.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredDots;
|
|
6
|
-
|
|
7
|
-
function requireDots () {
|
|
8
|
-
if (hasRequiredDots) return dots;
|
|
9
|
-
hasRequiredDots = 1;
|
|
10
|
-
Object.defineProperty(dots,"__esModule",{value:true});var clones_1=requireClones(),common_1=requireCommon();function getLookupTableForNextSlides(numberOfDotsToShow,state,props,childrenArr){var table={},slidesToSlide=common_1.getSlidesToSlide(state,props);return Array(numberOfDotsToShow).fill(0).forEach(function(_,i){var nextSlide=clones_1.getOriginalCounterPart(i,state,childrenArr);if(0===i)table[0]=nextSlide;else {var now=table[i-1]+slidesToSlide;table[i]=now;}}),table}dots.getLookupTableForNextSlides=getLookupTableForNextSlides;
|
|
11
|
-
return dots;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { requireDots as __require };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __exports as elementWidth } from '../../../../_virtual/elementWidth.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredElementWidth;
|
|
4
|
-
|
|
5
|
-
function requireElementWidth () {
|
|
6
|
-
if (hasRequiredElementWidth) return elementWidth;
|
|
7
|
-
hasRequiredElementWidth = 1;
|
|
8
|
-
Object.defineProperty(elementWidth,"__esModule",{value:true});var hasWarnAboutTypo=false;function getPartialVisibilityGutter(responsive,partialVisible,serverSideDeviceType,clientSideDeviceType){var gutter=0,deviceType=clientSideDeviceType||serverSideDeviceType;return partialVisible&&deviceType&&(!hasWarnAboutTypo&&"production"!==process.env.NODE_ENV&&responsive[deviceType].paritialVisibilityGutter&&(hasWarnAboutTypo=true,console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")),gutter=responsive[deviceType].partialVisibilityGutter||responsive[deviceType].paritialVisibilityGutter),gutter}function getWidthFromDeviceType(deviceType,responsive){var itemWidth;responsive[deviceType]&&(itemWidth=(100/responsive[deviceType].items).toFixed(1));return itemWidth}function getItemClientSideWidth(props,slidesToShow,containerWidth){return Math.round(containerWidth/(slidesToShow+(props.centerMode?1:0)))}elementWidth.getPartialVisibilityGutter=getPartialVisibilityGutter,elementWidth.getWidthFromDeviceType=getWidthFromDeviceType,elementWidth.getItemClientSideWidth=getItemClientSideWidth;
|
|
9
|
-
return elementWidth;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { requireElementWidth as __require };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { __exports as utils } from '../../../../_virtual/index3.js';
|
|
2
|
-
import { __require as requireClones } from './clones.js';
|
|
3
|
-
import { __require as requireElementWidth } from './elementWidth.js';
|
|
4
|
-
import { __require as requireCommon } from './common.js';
|
|
5
|
-
import { __require as requireThrottle } from './throttle.js';
|
|
6
|
-
import { __require as requireThrowError } from './throwError.js';
|
|
7
|
-
import { __require as requireNext } from './next.js';
|
|
8
|
-
import { __require as requirePrevious } from './previous.js';
|
|
9
|
-
import { __require as requireMouseOrTouchMove } from './mouseOrTouchMove.js';
|
|
10
|
-
|
|
11
|
-
var hasRequiredUtils;
|
|
12
|
-
|
|
13
|
-
function requireUtils () {
|
|
14
|
-
if (hasRequiredUtils) return utils;
|
|
15
|
-
hasRequiredUtils = 1;
|
|
16
|
-
Object.defineProperty(utils,"__esModule",{value:true});var clones_1=requireClones();utils.getOriginalCounterPart=clones_1.getOriginalCounterPart,utils.getClones=clones_1.getClones,utils.checkClonesPosition=clones_1.checkClonesPosition,utils.getInitialSlideInInfiniteMode=clones_1.getInitialSlideInInfiniteMode;var elementWidth_1=requireElementWidth();utils.getWidthFromDeviceType=elementWidth_1.getWidthFromDeviceType,utils.getPartialVisibilityGutter=elementWidth_1.getPartialVisibilityGutter,utils.getItemClientSideWidth=elementWidth_1.getItemClientSideWidth;var common_1=requireCommon();utils.getInitialState=common_1.getInitialState,utils.getIfSlideIsVisbile=common_1.getIfSlideIsVisbile,utils.getTransformForCenterMode=common_1.getTransformForCenterMode,utils.getTransformForPartialVsibile=common_1.getTransformForPartialVsibile,utils.isInLeftEnd=common_1.isInLeftEnd,utils.isInRightEnd=common_1.isInRightEnd,utils.notEnoughChildren=common_1.notEnoughChildren,utils.getSlidesToSlide=common_1.getSlidesToSlide;var throttle_1=requireThrottle();utils.throttle=throttle_1.default;var throwError_1=requireThrowError();utils.throwError=throwError_1.default;var next_1=requireNext();utils.populateNextSlides=next_1.populateNextSlides;var previous_1=requirePrevious();utils.populatePreviousSlides=previous_1.populatePreviousSlides;var mouseOrTouchMove_1=requireMouseOrTouchMove();utils.populateSlidesOnMouseTouchMove=mouseOrTouchMove_1.populateSlidesOnMouseTouchMove;
|
|
17
|
-
return utils;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { requireUtils as __require };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __exports as mouseOrTouchMove } from '../../../../_virtual/mouseOrTouchMove.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredMouseOrTouchMove;
|
|
4
|
-
|
|
5
|
-
function requireMouseOrTouchMove () {
|
|
6
|
-
if (hasRequiredMouseOrTouchMove) return mouseOrTouchMove;
|
|
7
|
-
hasRequiredMouseOrTouchMove = 1;
|
|
8
|
-
(function (exports) {
|
|
9
|
-
function populateSlidesOnMouseTouchMove(state,props,initialX,lastX,clientX,transformPlaceHolder){var direction,nextPosition,itemWidth=state.itemWidth,slidesToShow=state.slidesToShow,totalItems=state.totalItems,currentSlide=state.currentSlide,infinite=props.infinite,canContinue=false,slidesHavePassedRight=Math.round((initialX-lastX)/itemWidth),slidesHavePassedLeft=Math.round((lastX-initialX)/itemWidth),isMovingLeft=initialX<clientX;if(clientX<initialX&&!!(slidesHavePassedRight<=slidesToShow)){direction="right";var translateXLimit=Math.abs(-itemWidth*(totalItems-slidesToShow)),nextTranslate=transformPlaceHolder-(lastX-clientX),isLastSlide=currentSlide===totalItems-slidesToShow;(Math.abs(nextTranslate)<=translateXLimit||isLastSlide&&infinite)&&(nextPosition=nextTranslate,canContinue=true);}isMovingLeft&&slidesHavePassedLeft<=slidesToShow&&(direction="left",((nextTranslate=transformPlaceHolder+(clientX-lastX))<=0||0===currentSlide&&infinite)&&(canContinue=true,nextPosition=nextTranslate));return {direction:direction,nextPosition:nextPosition,canContinue:canContinue}}Object.defineProperty(exports,"__esModule",{value:true}),exports.populateSlidesOnMouseTouchMove=populateSlidesOnMouseTouchMove;
|
|
10
|
-
} (mouseOrTouchMove));
|
|
11
|
-
return mouseOrTouchMove;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { requireMouseOrTouchMove as __require };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as next } from '../../../../_virtual/next.js';
|
|
2
|
-
import { __require as requireCommon } from './common.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredNext;
|
|
5
|
-
|
|
6
|
-
function requireNext () {
|
|
7
|
-
if (hasRequiredNext) return next;
|
|
8
|
-
hasRequiredNext = 1;
|
|
9
|
-
Object.defineProperty(next,"__esModule",{value:true});var common_1=requireCommon();function populateNextSlides(state,props,slidesHavePassed){ void 0===slidesHavePassed&&(slidesHavePassed=0);var nextSlides,nextPosition,slidesToShow=state.slidesToShow,currentSlide=state.currentSlide,itemWidth=state.itemWidth,totalItems=state.totalItems,slidesToSlide=common_1.getSlidesToSlide(state,props),nextMaximumSlides=currentSlide+1+slidesHavePassed+slidesToShow+(0<slidesHavePassed?0:slidesToSlide);return nextPosition=nextMaximumSlides<=totalItems?-itemWidth*(nextSlides=currentSlide+slidesHavePassed+(0<slidesHavePassed?0:slidesToSlide)):totalItems<nextMaximumSlides&¤tSlide!==totalItems-slidesToShow?-itemWidth*(nextSlides=totalItems-slidesToShow):nextSlides=void 0,{nextSlides:nextSlides,nextPosition:nextPosition}}next.populateNextSlides=populateNextSlides;
|
|
10
|
-
return next;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { requireNext as __require };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __exports as previous } from '../../../../_virtual/previous.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { __require as requireCommon } from './common.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredPrevious;
|
|
6
|
-
|
|
7
|
-
function requirePrevious () {
|
|
8
|
-
if (hasRequiredPrevious) return previous;
|
|
9
|
-
hasRequiredPrevious = 1;
|
|
10
|
-
Object.defineProperty(previous,"__esModule",{value:true});var React$1=React,common_1=requireCommon(),common_2=requireCommon();function populatePreviousSlides(state,props,slidesHavePassed){ void 0===slidesHavePassed&&(slidesHavePassed=0);var nextSlides,nextPosition,currentSlide=state.currentSlide,itemWidth=state.itemWidth,slidesToShow=state.slidesToShow,children=props.children,showDots=props.showDots,infinite=props.infinite,slidesToSlide=common_1.getSlidesToSlide(state,props),nextMaximumSlides=currentSlide-slidesHavePassed-(0<slidesHavePassed?0:slidesToSlide),additionalSlides=(React$1.Children.toArray(children).length-slidesToShow)%slidesToSlide;return nextPosition=0<=nextMaximumSlides?(nextSlides=nextMaximumSlides,showDots&&!infinite&&0<additionalSlides&&common_2.isInRightEnd(state)&&(nextSlides=currentSlide-additionalSlides),-itemWidth*nextSlides):nextSlides=nextMaximumSlides<0&&0!==currentSlide?0:void 0,{nextSlides:nextSlides,nextPosition:nextPosition}}previous.populatePreviousSlides=populatePreviousSlides;
|
|
11
|
-
return previous;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { requirePrevious as __require };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __exports as throttle } from '../../../../_virtual/throttle.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredThrottle;
|
|
4
|
-
|
|
5
|
-
function requireThrottle () {
|
|
6
|
-
if (hasRequiredThrottle) return throttle;
|
|
7
|
-
hasRequiredThrottle = 1;
|
|
8
|
-
Object.defineProperty(throttle,"__esModule",{value:true});var throttle$1=function(func,limit,setIsInThrottle){var inThrottle;return function(){var args=arguments;inThrottle||(func.apply(this,args),inThrottle=true,"function"==typeof setIsInThrottle&&setIsInThrottle(true),setTimeout(function(){inThrottle=false,"function"==typeof setIsInThrottle&&setIsInThrottle(false);},limit));}};throttle.default=throttle$1;
|
|
9
|
-
return throttle;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { requireThrottle as __require };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __exports as throwError } from '../../../../_virtual/throwError.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredThrowError;
|
|
4
|
-
|
|
5
|
-
function requireThrowError () {
|
|
6
|
-
if (hasRequiredThrowError) return throwError;
|
|
7
|
-
hasRequiredThrowError = 1;
|
|
8
|
-
(function (exports) {
|
|
9
|
-
function throwError(state,props){var partialVisbile=props.partialVisbile,partialVisible=props.partialVisible,centerMode=props.centerMode,ssr=props.ssr,responsive=props.responsive;if((partialVisbile||partialVisible)&¢erMode)throw new Error("center mode can not be used at the same time with partialVisible");if(!responsive)throw ssr?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(responsive&&"object"!=typeof responsive)throw new Error("responsive prop must be an object")}Object.defineProperty(exports,"__esModule",{value:true}),exports.default=throwError;
|
|
10
|
-
} (throwError));
|
|
11
|
-
return throwError;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { requireThrowError as __require };
|
package/_virtual/Arrows.js
DELETED
package/_virtual/Carousel.js
DELETED
package/_virtual/Dots.js
DELETED