@realsee/dnalogel 2.6.7-dev.0 → 2.6.7-dev.10
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 +0 -20
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +5 -4
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
- package/dist/index.cjs.js +55 -52
- package/dist/index.js +6760 -6030
- package/dist/index.umd.js +51 -48
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +264 -44
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -12
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +60 -56
- package/libs/CruisePlugin/Controller.js +26 -26
- package/libs/GuideLinePlugin/Controller.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Media.js +235 -313
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +89 -72
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +86 -72
- package/libs/PanoTagPlugin/Components/Tag/index.js +84 -66
- package/libs/PanoTagPlugin/Components/TagContainer.js +98 -80
- package/libs/PanoTagPlugin/Components/TagItem.js +69 -51
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -4
- package/libs/PanoTagPlugin/controller/TagComputer.js +111 -102
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -0
- package/libs/PanoTagPlugin/controller/index.js +185 -160
- package/libs/PanoTagPlugin/index.js +41 -24
- package/libs/PanoTagPlugin/tag.config.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
- package/libs/index.js +130 -113
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
- package/libs/vendor/simply-reactive/main.js +3 -0
- package/libs/vendor/simply-reactive/src/simply-reactive.js +44 -0
- package/libs/vendor/simply-reactive/src/utils/object.js +12 -0
- package/libs/vendor/simply-reactive/src/utils/subscription.js +28 -0
- package/libs/vendor/simply-reactive/src/utils/watcher.js +17 -0
- package/libs/vendor/svelte/internal/index.js +267 -274
- package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +18 -0
- package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +19 -0
- package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +26 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +51 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +18 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +36 -0
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -0
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +522 -0
- package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +255 -0
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +42 -0
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +104 -0
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +40 -0
- package/libs/vendor/svelte-carousel/src/direction.js +5 -0
- package/libs/vendor/svelte-carousel/src/main.js +1 -0
- package/libs/vendor/svelte-carousel/src/units.js +7 -0
- package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +52 -0
- package/libs/vendor/svelte-carousel/src/utils/clones.js +59 -0
- package/libs/vendor/svelte-carousel/src/utils/event.js +12 -0
- package/libs/vendor/svelte-carousel/src/utils/interval.js +4 -0
- package/libs/vendor/svelte-carousel/src/utils/lazy.js +45 -0
- package/libs/vendor/svelte-carousel/src/utils/math.js +11 -0
- package/libs/vendor/svelte-carousel/src/utils/object.js +13 -0
- package/libs/vendor/svelte-carousel/src/utils/page.js +154 -0
- package/package.json +5 -2
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
- package/libs/vendor/swiper/components-shared/get-changed-params.js +0 -29
- package/libs/vendor/swiper/components-shared/get-params.js +0 -23
- package/libs/vendor/swiper/components-shared/mount-swiper.js +0 -14
- package/libs/vendor/swiper/components-shared/params-list.js +0 -120
- package/libs/vendor/swiper/components-shared/update-swiper.js +0 -36
- package/libs/vendor/swiper/components-shared/utils.js +0 -32
- package/libs/vendor/swiper/svelte/swiper-slide.js +0 -181
- package/libs/vendor/swiper/svelte/swiper-svelte.js +0 -2
- package/libs/vendor/swiper/svelte/swiper.js +0 -253
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
var i = (s, r, l) => new Promise((a, c) => {
|
|
2
|
+
var f = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
o(l.next(t));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
c(n);
|
|
7
|
+
}
|
|
8
|
+
}, e = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
o(l.throw(t));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
c(n);
|
|
13
|
+
}
|
|
14
|
+
}, o = (t) => t.done ? a(t.value) : Promise.resolve(t.value).then(f, e);
|
|
15
|
+
o((l = l.apply(s, r)).next());
|
|
16
|
+
});
|
|
17
|
+
import { simplyReactive as S } from "../../../../simply-reactive/src/simply-reactive.js";
|
|
18
|
+
import { NEXT as C, PREV as g } from "../../direction.js";
|
|
19
|
+
import { getCurrentPageIndexByCurrentParticleIndex as I, getPartialPageSize as h, getPagesCountByParticlesCount as w, getParticleIndexByPageIndex as u } from "../../utils/page.js";
|
|
20
|
+
import { getClonesCount as x } from "../../utils/clones.js";
|
|
21
|
+
import { getAdjacentIndexes as y } from "../../utils/lazy.js";
|
|
22
|
+
import { getValueInRange as p } from "../../utils/math.js";
|
|
23
|
+
import { get as P, switcher as m } from "../../utils/object.js";
|
|
24
|
+
import { ProgressManager as d } from "../../utils/ProgressManager.js";
|
|
25
|
+
function A(s) {
|
|
26
|
+
const r = new d({
|
|
27
|
+
onProgressValueChange: (e) => {
|
|
28
|
+
s("progressValue", 1 - e);
|
|
29
|
+
}
|
|
30
|
+
}), l = S(
|
|
31
|
+
{
|
|
32
|
+
data: {
|
|
33
|
+
particlesCountWithoutClones: 0,
|
|
34
|
+
particlesToShow: 1,
|
|
35
|
+
particlesToShowInit: 1,
|
|
36
|
+
particlesToScroll: 1,
|
|
37
|
+
particlesToScrollInit: 1,
|
|
38
|
+
particlesCount: 1,
|
|
39
|
+
currentParticleIndex: 1,
|
|
40
|
+
infinite: !1,
|
|
41
|
+
autoplayDuration: 1e3,
|
|
42
|
+
clonesCountHead: 0,
|
|
43
|
+
clonesCountTail: 0,
|
|
44
|
+
clonesCountTotal: 0,
|
|
45
|
+
partialPageSize: 1,
|
|
46
|
+
currentPageIndex: 1,
|
|
47
|
+
pagesCount: 1,
|
|
48
|
+
pauseOnFocus: !1,
|
|
49
|
+
focused: !1,
|
|
50
|
+
autoplay: !1,
|
|
51
|
+
autoplayDirection: "next",
|
|
52
|
+
disabled: !1,
|
|
53
|
+
durationMsInit: 1e3,
|
|
54
|
+
durationMs: 1e3,
|
|
55
|
+
offset: 0,
|
|
56
|
+
particleWidth: 0,
|
|
57
|
+
loaded: []
|
|
58
|
+
},
|
|
59
|
+
watch: {
|
|
60
|
+
setLoaded({ data: e }) {
|
|
61
|
+
e.loaded = y({
|
|
62
|
+
infinite: e.infinite,
|
|
63
|
+
pageIndex: e.currentPageIndex,
|
|
64
|
+
pagesCount: e.pagesCount,
|
|
65
|
+
particlesCount: e.particlesCountWithoutClones,
|
|
66
|
+
particlesToShow: e.particlesToShow,
|
|
67
|
+
particlesToScroll: e.particlesToScroll
|
|
68
|
+
}).particleIndexes;
|
|
69
|
+
},
|
|
70
|
+
setCurrentPageIndex({ data: e }) {
|
|
71
|
+
e.currentPageIndex = I({
|
|
72
|
+
currentParticleIndex: e.currentParticleIndex,
|
|
73
|
+
particlesCount: e.particlesCount,
|
|
74
|
+
clonesCountHead: e.clonesCountHead,
|
|
75
|
+
clonesCountTotal: e.clonesCountTotal,
|
|
76
|
+
infinite: e.infinite,
|
|
77
|
+
particlesToScroll: e.particlesToScroll
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
setPartialPageSize({ data: e }) {
|
|
81
|
+
e.partialPageSize = h({
|
|
82
|
+
particlesToScroll: e.particlesToScroll,
|
|
83
|
+
particlesToShow: e.particlesToShow,
|
|
84
|
+
particlesCountWithoutClones: e.particlesCountWithoutClones
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
setClonesCount({ data: e }) {
|
|
88
|
+
const { head: o, tail: t } = x({
|
|
89
|
+
infinite: e.infinite,
|
|
90
|
+
particlesToShow: e.particlesToShow,
|
|
91
|
+
partialPageSize: e.partialPageSize
|
|
92
|
+
});
|
|
93
|
+
e.clonesCountHead = o, e.clonesCountTail = t, e.clonesCountTotal = o + t;
|
|
94
|
+
},
|
|
95
|
+
setProgressManagerAutoplayDuration({ data: e }) {
|
|
96
|
+
r.setAutoplayDuration(e.autoplayDuration);
|
|
97
|
+
},
|
|
98
|
+
toggleProgressManager({ data: { pauseOnFocus: e, focused: o } }) {
|
|
99
|
+
e && (o ? r.pause() : r.resume());
|
|
100
|
+
},
|
|
101
|
+
initDuration({ data: e }) {
|
|
102
|
+
e.durationMs = e.durationMsInit;
|
|
103
|
+
},
|
|
104
|
+
applyAutoplay({ data: e, methods: { _applyAutoplayIfNeeded: o } }) {
|
|
105
|
+
e.autoplay && o(e.autoplay);
|
|
106
|
+
},
|
|
107
|
+
setPagesCount({ data: e }) {
|
|
108
|
+
e.pagesCount = w({
|
|
109
|
+
infinite: e.infinite,
|
|
110
|
+
particlesCountWithoutClones: e.particlesCountWithoutClones,
|
|
111
|
+
particlesToScroll: e.particlesToScroll,
|
|
112
|
+
particlesToShow: e.particlesToShow
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
setParticlesToShow({ data: e }) {
|
|
116
|
+
e.particlesToShow = p(
|
|
117
|
+
1,
|
|
118
|
+
e.particlesToShowInit,
|
|
119
|
+
e.particlesCountWithoutClones
|
|
120
|
+
);
|
|
121
|
+
},
|
|
122
|
+
setParticlesToScroll({ data: e }) {
|
|
123
|
+
e.particlesToScroll = p(
|
|
124
|
+
1,
|
|
125
|
+
e.particlesToScrollInit,
|
|
126
|
+
e.particlesCountWithoutClones
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
methods: {
|
|
131
|
+
_prev({ data: e }) {
|
|
132
|
+
e.currentParticleIndex = u({
|
|
133
|
+
infinite: e.infinite,
|
|
134
|
+
pageIndex: e.currentPageIndex - 1,
|
|
135
|
+
clonesCountHead: e.clonesCountHead,
|
|
136
|
+
clonesCountTail: e.clonesCountTail,
|
|
137
|
+
particlesToScroll: e.particlesToScroll,
|
|
138
|
+
particlesCount: e.particlesCount,
|
|
139
|
+
particlesToShow: e.particlesToShow
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
_next({ data: e }) {
|
|
143
|
+
e.currentParticleIndex = u({
|
|
144
|
+
infinite: e.infinite,
|
|
145
|
+
pageIndex: e.currentPageIndex + 1,
|
|
146
|
+
clonesCountHead: e.clonesCountHead,
|
|
147
|
+
clonesCountTail: e.clonesCountTail,
|
|
148
|
+
particlesToScroll: e.particlesToScroll,
|
|
149
|
+
particlesCount: e.particlesCount,
|
|
150
|
+
particlesToShow: e.particlesToShow
|
|
151
|
+
});
|
|
152
|
+
},
|
|
153
|
+
_moveToParticle({ data: e }, o) {
|
|
154
|
+
e.currentParticleIndex = p(
|
|
155
|
+
0,
|
|
156
|
+
o,
|
|
157
|
+
e.particlesCount - 1
|
|
158
|
+
);
|
|
159
|
+
},
|
|
160
|
+
toggleFocused({ data: e }) {
|
|
161
|
+
e.focused = !e.focused;
|
|
162
|
+
},
|
|
163
|
+
_applyAutoplayIfNeeded(t) {
|
|
164
|
+
return i(this, arguments, function* ({ data: e, methods: o }) {
|
|
165
|
+
if (!e.infinite && (e.autoplayDirection === C && e.currentParticleIndex === e.particlesCount - 1 || e.autoplayDirection === g && e.currentParticleIndex === 0)) {
|
|
166
|
+
r.reset();
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (e.autoplay) {
|
|
170
|
+
const n = () => m({
|
|
171
|
+
[C]: () => i(this, null, function* () {
|
|
172
|
+
return o.showNextPage();
|
|
173
|
+
}),
|
|
174
|
+
[g]: () => i(this, null, function* () {
|
|
175
|
+
return o.showPrevPage();
|
|
176
|
+
})
|
|
177
|
+
})(e.autoplayDirection);
|
|
178
|
+
yield r.start(n);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
_jumpIfNeeded(t) {
|
|
183
|
+
return i(this, arguments, function* ({ data: e, methods: o }) {
|
|
184
|
+
let n = !1;
|
|
185
|
+
return e.infinite && (e.currentParticleIndex === 0 ? (yield o.showParticle(
|
|
186
|
+
e.particlesCount - e.clonesCountTotal,
|
|
187
|
+
{
|
|
188
|
+
animated: !1
|
|
189
|
+
}
|
|
190
|
+
), n = !0) : e.currentParticleIndex === e.particlesCount - e.clonesCountTail && (yield o.showParticle(e.clonesCountHead, {
|
|
191
|
+
animated: !1
|
|
192
|
+
}), n = !0)), n;
|
|
193
|
+
});
|
|
194
|
+
},
|
|
195
|
+
changePage(F, R, T) {
|
|
196
|
+
return i(this, arguments, function* ({ data: e, methods: o }, t, n) {
|
|
197
|
+
if (r.reset(), e.disabled)
|
|
198
|
+
return;
|
|
199
|
+
e.disabled = !0, t(), yield o.offsetPage({ animated: P(n, "animated", !0) }), e.disabled = !1, !(yield o._jumpIfNeeded()) && o._applyAutoplayIfNeeded();
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
showNextPage(n, F) {
|
|
203
|
+
return i(this, arguments, function* ({ data: e, methods: o }, t) {
|
|
204
|
+
e.disabled || (yield o.changePage(o._next, t));
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
showPrevPage(n, F) {
|
|
208
|
+
return i(this, arguments, function* ({ data: e, methods: o }, t) {
|
|
209
|
+
e.disabled || (yield o.changePage(o._prev, t));
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
showParticle(n, F, R) {
|
|
213
|
+
return i(this, arguments, function* ({ methods: e }, o, t) {
|
|
214
|
+
yield e.changePage(
|
|
215
|
+
() => e._moveToParticle(o),
|
|
216
|
+
t
|
|
217
|
+
);
|
|
218
|
+
});
|
|
219
|
+
},
|
|
220
|
+
_getParticleIndexByPageIndex({ data: e }, o) {
|
|
221
|
+
return u({
|
|
222
|
+
infinite: e.infinite,
|
|
223
|
+
pageIndex: o,
|
|
224
|
+
clonesCountHead: e.clonesCountHead,
|
|
225
|
+
clonesCountTail: e.clonesCountTail,
|
|
226
|
+
particlesToScroll: e.particlesToScroll,
|
|
227
|
+
particlesCount: e.particlesCount,
|
|
228
|
+
particlesToShow: e.particlesToShow
|
|
229
|
+
});
|
|
230
|
+
},
|
|
231
|
+
showPage(n, F, R) {
|
|
232
|
+
return i(this, arguments, function* ({ methods: e }, o, t) {
|
|
233
|
+
const T = e._getParticleIndexByPageIndex(o);
|
|
234
|
+
yield e.showParticle(T, t);
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
offsetPage({ data: e }, o) {
|
|
238
|
+
const t = P(o, "animated", !0);
|
|
239
|
+
return new Promise((n) => {
|
|
240
|
+
e.durationMs = t ? e.durationMsInit : 0, e.offset = -e.currentParticleIndex * e.particleWidth, setTimeout(() => {
|
|
241
|
+
n();
|
|
242
|
+
}, e.durationMs);
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
onChange: s
|
|
249
|
+
}
|
|
250
|
+
), [a, c] = l;
|
|
251
|
+
return [{ data: a, progressManager: r }, c, l._internal];
|
|
252
|
+
}
|
|
253
|
+
export {
|
|
254
|
+
A as createCarousel
|
|
255
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SvelteComponent as r, init as l, safe_not_equal as d, append_styles as h, element as u, attr as v, toggle_class as a, insert as _, listen as m, noop as n, detach as p, bubble as g } from "../../../../svelte/internal/index.js";
|
|
2
|
+
function f(e) {
|
|
3
|
+
h(e, "svelte-1mgyhhn", `:root{--sc-dot-size:6px;--sc-active-dot-size:8px;--sc-dot-size-animation-time:250ms}.sc-carousel-dot__dot.svelte-1mgyhhn{background-color:var(--sc-color-rgb-light);border-radius:50%;display:inline-block;opacity:0.5;transition:opacity 100ms ease,\r
|
|
4
|
+
height var(--sc-dot-size-animation-time) ease,\r
|
|
5
|
+
width var(--sc-dot-size-animation-time) ease;cursor:pointer;-webkit-tap-highlight-color:transparent;height:var(--sc-dot-size);width:var(--sc-dot-size)}.sc-carousel-dot__dot.svelte-1mgyhhn:hover{opacity:0.9}.sc-carousel-dot__dot_active.svelte-1mgyhhn{opacity:0.7;height:var(--sc-active-dot-size);width:var(--sc-active-dot-size)}`);
|
|
6
|
+
}
|
|
7
|
+
function b(e) {
|
|
8
|
+
let t, s, c;
|
|
9
|
+
return {
|
|
10
|
+
c() {
|
|
11
|
+
t = u("button"), v(t, "class", "sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"), a(t, "sc-carousel-dot__dot_active", e[0]);
|
|
12
|
+
},
|
|
13
|
+
m(i, o) {
|
|
14
|
+
_(i, t, o), s || (c = m(t, "click", e[1]), s = !0);
|
|
15
|
+
},
|
|
16
|
+
p(i, [o]) {
|
|
17
|
+
o & 1 && a(t, "sc-carousel-dot__dot_active", i[0]);
|
|
18
|
+
},
|
|
19
|
+
i: n,
|
|
20
|
+
o: n,
|
|
21
|
+
d(i) {
|
|
22
|
+
i && p(t), s = !1, c();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function y(e, t, s) {
|
|
27
|
+
let { active: c = !1 } = t;
|
|
28
|
+
function i(o) {
|
|
29
|
+
g.call(this, e, o);
|
|
30
|
+
}
|
|
31
|
+
return e.$$set = (o) => {
|
|
32
|
+
"active" in o && s(0, c = o.active);
|
|
33
|
+
}, [c, i];
|
|
34
|
+
}
|
|
35
|
+
class k extends r {
|
|
36
|
+
constructor(t) {
|
|
37
|
+
super(), l(this, t, y, b, d, { active: 0 }, f);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
k as Dot
|
|
42
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { SvelteComponent as v, init as k, safe_not_equal as y, append_styles as x, element as f, attr as _, insert as g, group_outros as C, update_keyed_each as w, outro_and_destroy_block as D, check_outros as I, transition_in as h, transition_out as p, detach as m, createEventDispatcher as P, create_component as b, space as j, mount_component as z, append as A, destroy_component as q } from "../../../../svelte/internal/index.js";
|
|
2
|
+
import { Dot as E } from "../Dot/Dot.js";
|
|
3
|
+
function M(l) {
|
|
4
|
+
x(l, "svelte-670fde", ".sc-carousel-dots__container.svelte-670fde{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0 30px}.sc-carousel-dots__dot-container.svelte-670fde{height:calc(var(--sc-dot-size) + 14px);width:calc(var(--sc-dot-size) + 10px);display:flex;align-items:center;justify-content:center}");
|
|
5
|
+
}
|
|
6
|
+
function u(l, c, n) {
|
|
7
|
+
const r = l.slice();
|
|
8
|
+
return r[5] = c[n], r[7] = n, r;
|
|
9
|
+
}
|
|
10
|
+
function d(l, c) {
|
|
11
|
+
let n, r, a, o;
|
|
12
|
+
function i() {
|
|
13
|
+
return c[3](c[7]);
|
|
14
|
+
}
|
|
15
|
+
return r = new E({
|
|
16
|
+
props: {
|
|
17
|
+
active: c[1] === c[7]
|
|
18
|
+
}
|
|
19
|
+
}), r.$on("click", i), {
|
|
20
|
+
key: l,
|
|
21
|
+
first: null,
|
|
22
|
+
c() {
|
|
23
|
+
n = f("div"), b(r.$$.fragment), a = j(), _(n, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = n;
|
|
24
|
+
},
|
|
25
|
+
m(t, e) {
|
|
26
|
+
g(t, n, e), z(r, n, null), A(n, a), o = !0;
|
|
27
|
+
},
|
|
28
|
+
p(t, e) {
|
|
29
|
+
c = t;
|
|
30
|
+
const s = {};
|
|
31
|
+
e & 3 && (s.active = c[1] === c[7]), r.$set(s);
|
|
32
|
+
},
|
|
33
|
+
i(t) {
|
|
34
|
+
o || (h(r.$$.fragment, t), o = !0);
|
|
35
|
+
},
|
|
36
|
+
o(t) {
|
|
37
|
+
p(r.$$.fragment, t), o = !1;
|
|
38
|
+
},
|
|
39
|
+
d(t) {
|
|
40
|
+
t && m(n), q(r);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function S(l) {
|
|
45
|
+
let c, n = [], r = /* @__PURE__ */ new Map(), a, o = Array(l[0]);
|
|
46
|
+
const i = (t) => t[7];
|
|
47
|
+
for (let t = 0; t < o.length; t += 1) {
|
|
48
|
+
let e = u(l, o, t), s = i(e);
|
|
49
|
+
r.set(s, n[t] = d(s, e));
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
c() {
|
|
53
|
+
c = f("div");
|
|
54
|
+
for (let t = 0; t < n.length; t += 1)
|
|
55
|
+
n[t].c();
|
|
56
|
+
_(c, "class", "sc-carousel-dots__container svelte-670fde");
|
|
57
|
+
},
|
|
58
|
+
m(t, e) {
|
|
59
|
+
g(t, c, e);
|
|
60
|
+
for (let s = 0; s < n.length; s += 1)
|
|
61
|
+
n[s].m(c, null);
|
|
62
|
+
a = !0;
|
|
63
|
+
},
|
|
64
|
+
p(t, [e]) {
|
|
65
|
+
e & 7 && (o = Array(t[0]), C(), n = w(n, e, i, 1, t, o, r, c, D, d, null, u), I());
|
|
66
|
+
},
|
|
67
|
+
i(t) {
|
|
68
|
+
if (!a) {
|
|
69
|
+
for (let e = 0; e < o.length; e += 1)
|
|
70
|
+
h(n[e]);
|
|
71
|
+
a = !0;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
o(t) {
|
|
75
|
+
for (let e = 0; e < n.length; e += 1)
|
|
76
|
+
p(n[e]);
|
|
77
|
+
a = !1;
|
|
78
|
+
},
|
|
79
|
+
d(t) {
|
|
80
|
+
t && m(c);
|
|
81
|
+
for (let e = 0; e < n.length; e += 1)
|
|
82
|
+
n[e].d();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function B(l, c, n) {
|
|
87
|
+
const r = P();
|
|
88
|
+
let { pagesCount: a = 1 } = c, { currentPageIndex: o = 0 } = c;
|
|
89
|
+
function i(e) {
|
|
90
|
+
r("pageChange", e);
|
|
91
|
+
}
|
|
92
|
+
const t = (e) => i(e);
|
|
93
|
+
return l.$$set = (e) => {
|
|
94
|
+
"pagesCount" in e && n(0, a = e.pagesCount), "currentPageIndex" in e && n(1, o = e.currentPageIndex);
|
|
95
|
+
}, [a, o, i, t];
|
|
96
|
+
}
|
|
97
|
+
class H extends v {
|
|
98
|
+
constructor(c) {
|
|
99
|
+
super(), k(this, c, B, S, y, { pagesCount: 0, currentPageIndex: 1 }, M);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
H as Dots
|
|
104
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SvelteComponent as d, init as l, safe_not_equal as u, append_styles as f, element as _, attr as h, set_style as o, insert as p, noop as a, detach as v } from "../../../../svelte/internal/index.js";
|
|
2
|
+
function m(t) {
|
|
3
|
+
f(t, "svelte-i7yfid", ".sc-carousel-progress__indicator.svelte-i7yfid{height:100%;background-color:var(--sc-color-hex-dark-50p)}");
|
|
4
|
+
}
|
|
5
|
+
function g(t) {
|
|
6
|
+
let e;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
e = _("div"), h(e, "class", "sc-carousel-progress__indicator svelte-i7yfid"), o(e, "width", t[0] + "%");
|
|
10
|
+
},
|
|
11
|
+
m(i, s) {
|
|
12
|
+
p(i, e, s);
|
|
13
|
+
},
|
|
14
|
+
p(i, [s]) {
|
|
15
|
+
s & 1 && o(e, "width", i[0] + "%");
|
|
16
|
+
},
|
|
17
|
+
i: a,
|
|
18
|
+
o: a,
|
|
19
|
+
d(i) {
|
|
20
|
+
i && v(e);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const c = 100;
|
|
25
|
+
function y(t, e, i) {
|
|
26
|
+
let s, { value: r = 0 } = e;
|
|
27
|
+
return t.$$set = (n) => {
|
|
28
|
+
"value" in n && i(1, r = n.value);
|
|
29
|
+
}, t.$$.update = () => {
|
|
30
|
+
t.$$.dirty & 2 && i(0, s = Math.min(Math.max(r * c, 0), c));
|
|
31
|
+
}, [s, r];
|
|
32
|
+
}
|
|
33
|
+
class w extends d {
|
|
34
|
+
constructor(e) {
|
|
35
|
+
super(), l(this, e, y, g, u, { value: 1 }, m);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
w as Progress
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./components/Carousel/Carousel.js";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var h = (u, t, e) => new Promise((a, r) => {
|
|
2
|
+
var i = (s) => {
|
|
3
|
+
try {
|
|
4
|
+
o(e.next(s));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
r(n);
|
|
7
|
+
}
|
|
8
|
+
}, _ = (s) => {
|
|
9
|
+
try {
|
|
10
|
+
o(e.throw(s));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
r(n);
|
|
13
|
+
}
|
|
14
|
+
}, o = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(i, _);
|
|
15
|
+
o((e = e.apply(u, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { setIntervalImmediate as p } from "./interval.js";
|
|
18
|
+
const g = 35, l = 1;
|
|
19
|
+
class P {
|
|
20
|
+
constructor({ onProgressValueChange: t }) {
|
|
21
|
+
this._onProgressValueChange = t, this._autoplayDuration, this._onProgressValueChange, this._interval, this._paused = !1;
|
|
22
|
+
}
|
|
23
|
+
setAutoplayDuration(t) {
|
|
24
|
+
this._autoplayDuration = t;
|
|
25
|
+
}
|
|
26
|
+
start(t) {
|
|
27
|
+
return new Promise((e) => {
|
|
28
|
+
this.reset();
|
|
29
|
+
const a = Math.min(g, Math.max(this._autoplayDuration, 1));
|
|
30
|
+
let r = -a;
|
|
31
|
+
this._interval = p(() => h(this, null, function* () {
|
|
32
|
+
if (this._paused)
|
|
33
|
+
return;
|
|
34
|
+
r += a;
|
|
35
|
+
const i = r / this._autoplayDuration;
|
|
36
|
+
this._onProgressValueChange(i), i > l && (this.reset(), yield t(), e());
|
|
37
|
+
}), a);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
pause() {
|
|
41
|
+
this._paused = !0;
|
|
42
|
+
}
|
|
43
|
+
resume() {
|
|
44
|
+
this._paused = !1;
|
|
45
|
+
}
|
|
46
|
+
reset() {
|
|
47
|
+
clearInterval(this._interval), this._onProgressValueChange(l);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
P as ProgressManager
|
|
52
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var g = Object.defineProperty, p = Object.defineProperties;
|
|
2
|
+
var a = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var f = Object.getOwnPropertySymbols;
|
|
4
|
+
var i = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var h = (n, t, e) => t in n ? g(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, s = (n, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
i.call(t, e) && h(n, e, t[e]);
|
|
8
|
+
if (f)
|
|
9
|
+
for (var e of f(t))
|
|
10
|
+
r.call(t, e) && h(n, e, t[e]);
|
|
11
|
+
return n;
|
|
12
|
+
}, d = (n, t) => p(n, a(t));
|
|
13
|
+
function N({
|
|
14
|
+
clonesCountHead: n,
|
|
15
|
+
clonesCountTail: t,
|
|
16
|
+
particlesContainerChildren: e
|
|
17
|
+
}) {
|
|
18
|
+
const o = [];
|
|
19
|
+
for (let l = 0; l < t; l++)
|
|
20
|
+
o.push(e[l].cloneNode(!0));
|
|
21
|
+
const u = [], c = e.length;
|
|
22
|
+
for (let l = c - 1; l > c - 1 - n; l--)
|
|
23
|
+
u.push(e[l].cloneNode(!0));
|
|
24
|
+
return {
|
|
25
|
+
clonesToAppend: o,
|
|
26
|
+
clonesToPrepend: u
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function x({
|
|
30
|
+
particlesContainer: n,
|
|
31
|
+
clonesToAppend: t,
|
|
32
|
+
clonesToPrepend: e
|
|
33
|
+
}) {
|
|
34
|
+
for (let o = 0; o < t.length; o++)
|
|
35
|
+
n.append(t[o]);
|
|
36
|
+
for (let o = 0; o < e.length; o++)
|
|
37
|
+
n.prepend(e[o]);
|
|
38
|
+
}
|
|
39
|
+
function y({
|
|
40
|
+
infinite: n,
|
|
41
|
+
particlesToShow: t,
|
|
42
|
+
partialPageSize: e
|
|
43
|
+
}) {
|
|
44
|
+
const o = n ? {
|
|
45
|
+
head: Math.ceil(e || t),
|
|
46
|
+
tail: Math.ceil(t)
|
|
47
|
+
} : {
|
|
48
|
+
head: 0,
|
|
49
|
+
tail: 0
|
|
50
|
+
};
|
|
51
|
+
return d(s({}, o), {
|
|
52
|
+
total: o.head + o.tail
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
x as applyClones,
|
|
57
|
+
N as getClones,
|
|
58
|
+
y as getClonesCount
|
|
59
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { getValueInRange as i } from "./math.js";
|
|
2
|
+
function l({
|
|
3
|
+
pageIndex: r,
|
|
4
|
+
particlesToShow: a,
|
|
5
|
+
particlesToScroll: e,
|
|
6
|
+
particlesCount: x
|
|
7
|
+
}) {
|
|
8
|
+
const d = r === 0 ? 0 : a - e, c = r * a - r * d, s = c + Math.max(a, e) - 1, n = [];
|
|
9
|
+
for (let t = c; t <= Math.min(x - 1, s); t++)
|
|
10
|
+
n.push(t);
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
function h({
|
|
14
|
+
infinite: r,
|
|
15
|
+
pageIndex: a,
|
|
16
|
+
pagesCount: e,
|
|
17
|
+
particlesCount: x,
|
|
18
|
+
particlesToShow: d,
|
|
19
|
+
particlesToScroll: c
|
|
20
|
+
}) {
|
|
21
|
+
const s = i(0, a, e - 1);
|
|
22
|
+
let n = s - 1, t = s + 1;
|
|
23
|
+
n = r ? n < 0 ? e - 1 : n : Math.max(0, n), t = r ? t > e - 1 ? 0 : t : Math.min(e - 1, t);
|
|
24
|
+
const f = [.../* @__PURE__ */ new Set([
|
|
25
|
+
n,
|
|
26
|
+
s,
|
|
27
|
+
t,
|
|
28
|
+
0,
|
|
29
|
+
e - 1
|
|
30
|
+
])].sort((o, m) => o - m), I = f.flatMap(
|
|
31
|
+
(o) => l({
|
|
32
|
+
pageIndex: o,
|
|
33
|
+
particlesToShow: d,
|
|
34
|
+
particlesToScroll: c,
|
|
35
|
+
particlesCount: x
|
|
36
|
+
})
|
|
37
|
+
);
|
|
38
|
+
return {
|
|
39
|
+
pageIndexes: f,
|
|
40
|
+
particleIndexes: [...new Set(I)].sort((o, m) => o - m)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
h as getAdjacentIndexes
|
|
45
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const o = (r, n, t) => {
|
|
2
|
+
if (r && r.hasOwnProperty(n))
|
|
3
|
+
return r[n];
|
|
4
|
+
if (t === void 0)
|
|
5
|
+
throw new Error(`Required arg "${n}" was not provided`);
|
|
6
|
+
return t;
|
|
7
|
+
}, w = (r) => (n) => {
|
|
8
|
+
r[n] && r[n]();
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
o as get,
|
|
12
|
+
w as switcher
|
|
13
|
+
};
|