@streamscloud/embeddable 15.1.0 → 16.0.0
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/dist/ads/ad-card/cmp.ad-card.svelte +18 -29
- package/dist/ads/ad-card/cmp.ad-card.svelte.d.ts +0 -2
- package/dist/core/graphql.d.ts +1 -1
- package/dist/core/graphql.js +4 -9
- package/dist/core/media/index.d.ts +0 -2
- package/dist/core/media/index.js +0 -2
- package/dist/external-api/data-providers/internal-short-video-player-items-provider.d.ts +1 -1
- package/dist/external-api/data-providers/internal-short-video-player-items-provider.js +2 -2
- package/dist/external-api/data-providers/internal-streams-player-data-provider.js +2 -2
- package/dist/external-api/media-page/index.d.ts +1 -1
- package/dist/external-api/short-videos-player/index.d.ts +1 -1
- package/dist/external-api/streams-player/index.d.ts +1 -1
- package/dist/media-center/media-center/cmp.media-center-proxy.svelte +4 -4
- package/dist/media-center/media-center/discover/community-features-localization.d.ts +4 -6
- package/dist/media-center/media-center/discover/community-features-localization.js +12 -10
- package/dist/media-center/media-center/discover/community-features.svelte +10 -21
- package/dist/media-center/media-center/discover/community-features.svelte.d.ts +0 -2
- package/dist/media-center/media-center/discover/discover-header.svelte +14 -25
- package/dist/media-center/media-center/discover/discover-view-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/discover/discover-view-handler.svelte.js +1 -1
- package/dist/media-center/media-center/discover/discover-view-localization.d.ts +2 -5
- package/dist/media-center/media-center/discover/discover-view-localization.js +6 -8
- package/dist/media-center/media-center/discover/discover-view.svelte +6 -19
- package/dist/media-center/media-center/footer/media-center-footer.svelte +7 -18
- package/dist/media-center/media-center/handlers/media-center-settings-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/header/media-center-header-localization.d.ts +2 -4
- package/dist/media-center/media-center/header/media-center-header-localization.js +12 -12
- package/dist/media-center/media-center/header/media-center-header-mobile.svelte +8 -19
- package/dist/media-center/media-center/header/media-center-header-mobile.svelte.d.ts +0 -2
- package/dist/media-center/media-center/header/media-center-header.svelte +12 -23
- package/dist/media-center/media-center/media-center-context.svelte.d.ts +1 -1
- package/dist/media-center/media-center/media-center-context.svelte.js +1 -1
- package/dist/media-center/media-center/media-center-settings.svelte.d.ts +1 -1
- package/dist/media-center/media-center/media-center-view.svelte +4 -15
- package/dist/media-center/media-center/menu/category-following-wrapper.svelte +5 -16
- package/dist/media-center/media-center/menu/menu-localization.d.ts +5 -8
- package/dist/media-center/media-center/menu/menu-localization.js +15 -14
- package/dist/media-center/media-center/menu/menu.svelte +15 -26
- package/dist/media-center/media-center/moments/cmp.moments-circle.svelte +6 -17
- package/dist/media-center/media-center/moments/moments-feed-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/moments/moments-feed-handler.svelte.js +1 -1
- package/dist/media-center/media-center/moments/moments-state.svelte.d.ts +1 -1
- package/dist/media-center/media-center/posts-feed/feed-providers-generator.d.ts +1 -1
- package/dist/media-center/media-center/posts-feed/feed-providers-generator.js +2 -2
- package/dist/media-center/media-center/posts-feed/posts-feed-handler.svelte.d.ts +2 -2
- package/dist/media-center/media-center/posts-feed/posts-feed-handler.svelte.js +2 -2
- package/dist/media-center/media-center/streams-feed/feed-providers-generator.js +2 -2
- package/dist/media-center/media-center/streams-feed/streams-feed-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/streams-feed/streams-feed-handler.svelte.js +1 -1
- package/dist/media-center/media-center/streams-in-category/streams-in-category-panel.svelte +1 -12
- package/dist/media-center/media-center/types.d.ts +2 -2
- package/dist/media-page/index.d.ts +2 -2
- package/dist/posts/attachments/cmp.attachments.svelte +2 -15
- package/dist/posts/attachments/cmp.attachments.svelte.d.ts +0 -2
- package/dist/posts/controls/post-actions-handler.svelte.d.ts +1 -1
- package/dist/posts/controls/post-actions-handler.svelte.js +2 -3
- package/dist/posts/post-viewer/attachments-horizontal.svelte +10 -21
- package/dist/posts/post-viewer/cmp.post-viewer.svelte +7 -18
- package/dist/posts/post-viewer/cmp.post-viewer.svelte.d.ts +1 -3
- package/dist/posts/post-viewer/heading.svelte +8 -20
- package/dist/posts/post-viewer/media/post-media.svelte +11 -22
- package/dist/posts/post-viewer/media/post-media.svelte.d.ts +0 -2
- package/dist/posts/post-viewer/post-texts.svelte +6 -17
- package/dist/posts/post-viewer/post-viewer-localization.d.ts +2 -5
- package/dist/posts/post-viewer/post-viewer-localization.js +6 -8
- package/dist/posts/posts-player/cmp.posts-player.svelte.d.ts +2 -2
- package/dist/posts/posts-player/index.d.ts +1 -1
- package/dist/posts/posts-player/posts-player-proxy.svelte +5 -1
- package/dist/posts/posts-player/posts-player-proxy.svelte.d.ts +2 -2
- package/dist/posts/posts-player/posts-player-view.svelte +34 -30
- package/dist/posts/posts-player/types.d.ts +2 -2
- package/dist/products/price-helper.js +1 -1
- package/dist/products/product-card/cmp.product-card.svelte +16 -30
- package/dist/products/product-card/cmp.product-card.svelte.d.ts +0 -2
- package/dist/products/product-card/product-card-localization.d.ts +1 -3
- package/dist/products/product-card/product-card-localization.js +3 -4
- package/dist/short-videos/short-video-card/cmp.short-video-card.svelte +19 -35
- package/dist/short-videos/short-video-card/cmp.short-video-card.svelte.d.ts +0 -2
- package/dist/short-videos/short-video-card/localization.d.ts +1 -3
- package/dist/short-videos/short-video-card/localization.js +3 -4
- package/dist/streams/layout/cmp.layout.svelte +3 -14
- package/dist/streams/layout/cmp.slot-content.svelte +5 -16
- package/dist/streams/layout/cmp.slot-content.svelte.d.ts +0 -2
- package/dist/streams/layout/cmp.slot.svelte +1 -12
- package/dist/streams/layout/element-views/cmp.annotation-stream-element.svelte +2 -2
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte +2 -3
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte +1 -12
- package/dist/streams/layout/element-views/cmp.images-stream-element.svelte +3 -14
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte +2 -2
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.products-slider-stream-element.svelte +4 -9
- package/dist/streams/layout/element-views/cmp.products-slider-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte +1 -4
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte +3 -14
- package/dist/streams/layout/element-views/cmp.stock-stream-element.svelte +3 -14
- package/dist/streams/layout/element-views/cmp.stock-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.stream-element.svelte +7 -8
- package/dist/streams/layout/element-views/cmp.stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte +5 -5
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte +5 -5
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.web-view-stream-element.svelte +1 -12
- package/dist/streams/layout/element-views/price-element-view.svelte +7 -18
- package/dist/streams/layout/element-views/price-stream-element-localization.d.ts +2 -5
- package/dist/streams/layout/element-views/price-stream-element-localization.js +6 -8
- package/dist/streams/layout/element-views/stock-stream-element-localization.d.ts +1 -3
- package/dist/streams/layout/element-views/stock-stream-element-localization.js +3 -4
- package/dist/streams/layout/index.d.ts +1 -1
- package/dist/streams/layout/index.js +1 -1
- package/dist/streams/layout/serializer.svelte.js +5 -6
- package/dist/streams/layout/styles-transformer.d.ts +3 -3
- package/dist/streams/layout/styles-transformer.js +1 -1
- package/dist/streams/stream-card/cmp.stream-card.svelte +6 -20
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +6 -19
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +1 -3
- package/dist/streams/streams-player/cmp.streams-player.svelte.d.ts +1 -1
- package/dist/streams/streams-player/index.d.ts +1 -1
- package/dist/streams/streams-player/stream-overview.svelte +5 -16
- package/dist/streams/streams-player/stream-player-localization.d.ts +1 -4
- package/dist/streams/streams-player/stream-player-localization.js +3 -6
- package/dist/streams/streams-player/streams-player-buffer.svelte.d.ts +1 -1
- package/dist/streams/streams-player/streams-player-buffer.svelte.js +1 -1
- package/dist/streams/streams-player/streams-player-proxy.svelte +5 -1
- package/dist/streams/streams-player/streams-player-proxy.svelte.d.ts +1 -1
- package/dist/streams/streams-player/streams-player-view.svelte +71 -79
- package/dist/streams/streams-player/types.d.ts +1 -1
- package/dist/ui/media-item-view/cmp.media-item-view.svelte +5 -16
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte +2 -16
- package/dist/ui/media-items-gallery/types.js +2 -1
- package/dist/ui/player/player/cmp.player.svelte +19 -28
- package/dist/ui/player/player/cmp.player.svelte.d.ts +1 -1
- package/dist/ui/player/player/controls-and-attachments.svelte +16 -32
- package/dist/ui/player/player/controls-and-attachments.svelte.d.ts +1 -1
- package/dist/ui/player/player/overview-panel.svelte +27 -36
- package/dist/ui/player/player/player-config.svelte.d.ts +4 -4
- package/dist/ui/player/player/player-config.svelte.js +3 -3
- package/dist/ui/player/player/player-settings.svelte.d.ts +1 -1
- package/dist/ui/player/progress/cmp.chunks-progress.svelte +1 -12
- package/dist/ui/shadow-dom/cmp.shadow-root.svelte +9 -14
- package/dist/ui/shadow-dom/cmp.shadow-root.svelte.d.ts +2 -0
- package/dist/ui/shadow-dom/colors.scss +2 -2
- package/dist/ui/shadow-dom/shadow-root-service.js +2 -2
- package/package.json +13 -25
- package/dist/core/actions/horizontal-wheel-scroll.d.ts +0 -5
- package/dist/core/actions/horizontal-wheel-scroll.js +0 -20
- package/dist/core/actions/index.d.ts +0 -2
- package/dist/core/actions/index.js +0 -2
- package/dist/core/actions/swallow-touch.d.ts +0 -2
- package/dist/core/actions/swallow-touch.js +0 -17
- package/dist/core/browser.d.ts +0 -1
- package/dist/core/browser.js +0 -1
- package/dist/core/continuation-token.d.ts +0 -11
- package/dist/core/continuation-token.js +0 -35
- package/dist/core/cursor-result.d.ts +0 -9
- package/dist/core/cursor-result.js +0 -1
- package/dist/core/data-loaders/cursor-data-loader.svelte.d.ts +0 -14
- package/dist/core/data-loaders/cursor-data-loader.svelte.js +0 -35
- package/dist/core/data-loaders/data-loader.d.ts +0 -4
- package/dist/core/data-loaders/data-loader.js +0 -1
- package/dist/core/data-loaders/index.d.ts +0 -2
- package/dist/core/data-loaders/index.js +0 -1
- package/dist/core/deferred.d.ts +0 -6
- package/dist/core/deferred.js +0 -13
- package/dist/core/document.event-handlers.d.ts +0 -2
- package/dist/core/document.event-handlers.js +0 -8
- package/dist/core/image-preloader.d.ts +0 -1
- package/dist/core/image-preloader.js +0 -10
- package/dist/core/locale.d.ts +0 -4
- package/dist/core/locale.js +0 -1
- package/dist/core/media/image-helper.d.ts +0 -10
- package/dist/core/media/image-helper.js +0 -30
- package/dist/core/media/images-size-detector.service.d.ts +0 -6
- package/dist/core/media/images-size-detector.service.js +0 -15
- package/dist/core/toastr.d.ts +0 -1
- package/dist/core/toastr.js +0 -26
- package/dist/core/transitions/index.d.ts +0 -1
- package/dist/core/transitions/index.js +0 -1
- package/dist/core/transitions/slide-horizontally.d.ts +0 -7
- package/dist/core/transitions/slide-horizontally.js +0 -55
- package/dist/core/utils/array-helper.d.ts +0 -23
- package/dist/core/utils/array-helper.js +0 -148
- package/dist/core/utils/compact-number.d.ts +0 -8
- package/dist/core/utils/compact-number.js +0 -48
- package/dist/core/utils/date-helper.d.ts +0 -29
- package/dist/core/utils/date-helper.js +0 -146
- package/dist/core/utils/dom-helper.d.ts +0 -12
- package/dist/core/utils/dom-helper.js +0 -76
- package/dist/core/utils/html-helper.d.ts +0 -42
- package/dist/core/utils/html-helper.js +0 -104
- package/dist/core/utils/index.d.ts +0 -3
- package/dist/core/utils/index.js +0 -3
- package/dist/core/utils/number-helper.d.ts +0 -6
- package/dist/core/utils/number-helper.js +0 -28
- package/dist/core/utils/string-generator.d.ts +0 -2
- package/dist/core/utils/string-generator.js +0 -15
- package/dist/core/utils/string-helper.d.ts +0 -10
- package/dist/core/utils/string-helper.js +0 -53
- package/dist/core/utils/url-helper.d.ts +0 -3
- package/dist/core/utils/url-helper.js +0 -13
- package/dist/core/utils/utils.d.ts +0 -29
- package/dist/core/utils/utils.js +0 -104
- package/dist/streams/layout/element-views/short-video-stream-element-localization.d.ts +0 -5
- package/dist/streams/layout/element-views/short-video-stream-element-localization.js +0 -7
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.d.ts +0 -5
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.js +0 -7
- package/dist/ui/button/cmp.button.svelte +0 -10
- package/dist/ui/button/cmp.button.svelte.d.ts +0 -16
- package/dist/ui/button/cmp.options-button.svelte +0 -123
- package/dist/ui/button/cmp.options-button.svelte.d.ts +0 -20
- package/dist/ui/button/index.d.ts +0 -3
- package/dist/ui/button/index.js +0 -3
- package/dist/ui/button/resources/button-base.svelte +0 -84
- package/dist/ui/button/resources/button-base.svelte.d.ts +0 -13
- package/dist/ui/button/resources/button-theme.svelte +0 -53
- package/dist/ui/button/resources/button-theme.svelte.d.ts +0 -10
- package/dist/ui/button/resources/button-types.d.ts +0 -20
- package/dist/ui/button/resources/button-types.js +0 -22
- package/dist/ui/card-actions/card-action-container.d.ts +0 -2
- package/dist/ui/card-actions/card-action-container.js +0 -17
- package/dist/ui/card-actions/cmp.card-action.svelte +0 -28
- package/dist/ui/card-actions/cmp.card-action.svelte.d.ts +0 -10
- package/dist/ui/card-actions/cmp.card-actions.svelte +0 -71
- package/dist/ui/card-actions/cmp.card-actions.svelte.d.ts +0 -9
- package/dist/ui/card-actions/index.d.ts +0 -4
- package/dist/ui/card-actions/index.js +0 -3
- package/dist/ui/card-actions/types.d.ts +0 -9
- package/dist/ui/card-actions/types.js +0 -1
- package/dist/ui/dropdown/cmp.dropdown.svelte +0 -184
- package/dist/ui/dropdown/cmp.dropdown.svelte.d.ts +0 -23
- package/dist/ui/dropdown/dropdown-ignore.d.ts +0 -6
- package/dist/ui/dropdown/dropdown-ignore.js +0 -11
- package/dist/ui/dropdown/index.d.ts +0 -3
- package/dist/ui/dropdown/index.js +0 -2
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte +0 -5
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte.d.ts +0 -7
- package/dist/ui/dynamic-component/index.d.ts +0 -2
- package/dist/ui/dynamic-component/index.js +0 -2
- package/dist/ui/dynamic-component/types.svelte.d.ts +0 -11
- package/dist/ui/dynamic-component/types.svelte.js +0 -13
- package/dist/ui/icon/cmp.icon.svelte +0 -75
- package/dist/ui/icon/cmp.icon.svelte.d.ts +0 -8
- package/dist/ui/icon/index.d.ts +0 -2
- package/dist/ui/icon/index.js +0 -2
- package/dist/ui/icon/types.d.ts +0 -9
- package/dist/ui/icon/types.js +0 -10
- package/dist/ui/image/cmp.image-round.svelte +0 -41
- package/dist/ui/image/cmp.image-round.svelte.d.ts +0 -11
- package/dist/ui/image/cmp.image-rounded.svelte +0 -64
- package/dist/ui/image/cmp.image-rounded.svelte.d.ts +0 -11
- package/dist/ui/image/cmp.image-stub.svelte +0 -31
- package/dist/ui/image/cmp.image-stub.svelte.d.ts +0 -18
- package/dist/ui/image/cmp.image.svelte +0 -79
- package/dist/ui/image/cmp.image.svelte.d.ts +0 -13
- package/dist/ui/image/image-state.d.ts +0 -6
- package/dist/ui/image/image-state.js +0 -17
- package/dist/ui/image/index.d.ts +0 -4
- package/dist/ui/image/index.js +0 -4
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte +0 -75
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte.d.ts +0 -11
- package/dist/ui/infinite-scrolling/index.d.ts +0 -1
- package/dist/ui/infinite-scrolling/index.js +0 -1
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte +0 -119
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte.d.ts +0 -10
- package/dist/ui/line-clamp/cmp.line-clamp.svelte +0 -84
- package/dist/ui/line-clamp/cmp.line-clamp.svelte.d.ts +0 -11
- package/dist/ui/line-clamp/index.d.ts +0 -2
- package/dist/ui/line-clamp/index.js +0 -2
- package/dist/ui/line-clamp/line-clamp-localization.d.ts +0 -6
- package/dist/ui/line-clamp/line-clamp-localization.js +0 -19
- package/dist/ui/line-clamp/line-clamp-types.d.ts +0 -3
- package/dist/ui/line-clamp/line-clamp-types.js +0 -1
- package/dist/ui/line-clamp/line-clamp-utils.d.ts +0 -8
- package/dist/ui/line-clamp/line-clamp-utils.js +0 -33
- package/dist/ui/loading/cmp.loading.svelte +0 -94
- package/dist/ui/loading/cmp.loading.svelte.d.ts +0 -9
- package/dist/ui/loading/index.d.ts +0 -1
- package/dist/ui/loading/index.js +0 -1
- package/dist/ui/media-playback/index.d.ts +0 -2
- package/dist/ui/media-playback/index.js +0 -2
- package/dist/ui/media-playback/playback-manager.svelte.d.ts +0 -25
- package/dist/ui/media-playback/playback-manager.svelte.js +0 -62
- package/dist/ui/media-playback/volume-manager.svelte.d.ts +0 -10
- package/dist/ui/media-playback/volume-manager.svelte.js +0 -27
- package/dist/ui/player/button/cmp.mobile-player-buttons.svelte +0 -37
- package/dist/ui/player/button/cmp.mobile-player-buttons.svelte.d.ts +0 -7
- package/dist/ui/player/button/cmp.player-buttons.svelte +0 -127
- package/dist/ui/player/button/cmp.player-buttons.svelte.d.ts +0 -9
- package/dist/ui/player/button/cmp.responsive-player-buttons.svelte +0 -32
- package/dist/ui/player/button/cmp.responsive-player-buttons.svelte.d.ts +0 -8
- package/dist/ui/player/button/index.d.ts +0 -4
- package/dist/ui/player/button/index.js +0 -3
- package/dist/ui/player/button/types.d.ts +0 -7
- package/dist/ui/player/button/types.js +0 -1
- package/dist/ui/player/providers/chunks-player-buffer/index.d.ts +0 -2
- package/dist/ui/player/providers/chunks-player-buffer/index.js +0 -2
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.d.ts +0 -9
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.js +0 -9
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.d.ts +0 -30
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.js +0 -73
- package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.d.ts +0 -23
- package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.js +0 -220
- package/dist/ui/player/providers/default-chunks-player-buffer.svelte.d.ts +0 -23
- package/dist/ui/player/providers/default-chunks-player-buffer.svelte.js +0 -71
- package/dist/ui/player/providers/default-feed-player-buffer.svelte.d.ts +0 -29
- package/dist/ui/player/providers/default-feed-player-buffer.svelte.js +0 -121
- package/dist/ui/player/providers/index.d.ts +0 -3
- package/dist/ui/player/providers/index.js +0 -2
- package/dist/ui/player/providers/service.d.ts +0 -2
- package/dist/ui/player/providers/service.js +0 -13
- package/dist/ui/player/providers/types.d.ts +0 -54
- package/dist/ui/player/providers/types.js +0 -1
- package/dist/ui/player/slider/cmp.player-slider.svelte +0 -218
- package/dist/ui/player/slider/cmp.player-slider.svelte.d.ts +0 -34
- package/dist/ui/player/slider/index.d.ts +0 -2
- package/dist/ui/player/slider/index.js +0 -2
- package/dist/ui/player/slider/prevent-slider-scroll.d.ts +0 -5
- package/dist/ui/player/slider/prevent-slider-scroll.js +0 -11
- package/dist/ui/player/slider/types.d.ts +0 -16
- package/dist/ui/player/slider/types.js +0 -1
- package/dist/ui/player/slider/wheel-gestures-adapter.d.ts +0 -17
- package/dist/ui/player/slider/wheel-gestures-adapter.js +0 -79
- package/dist/ui/player/slider-horizontal/cmp.slider.svelte +0 -424
- package/dist/ui/player/slider-horizontal/cmp.slider.svelte.d.ts +0 -31
- package/dist/ui/player/slider-horizontal/index.d.ts +0 -2
- package/dist/ui/player/slider-horizontal/index.js +0 -2
- package/dist/ui/player/slider-horizontal/slider-localization.d.ts +0 -5
- package/dist/ui/player/slider-horizontal/slider-localization.js +0 -13
- package/dist/ui/player/slider-horizontal/types.d.ts +0 -11
- package/dist/ui/player/slider-horizontal/types.js +0 -8
- package/dist/ui/player/utils/index.d.ts +0 -1
- package/dist/ui/player/utils/index.js +0 -1
- package/dist/ui/player/utils/touch-synchronizer.d.ts +0 -7
- package/dist/ui/player/utils/touch-synchronizer.js +0 -21
- package/dist/ui/progress/cmp.progress.svelte +0 -40
- package/dist/ui/progress/cmp.progress.svelte.d.ts +0 -6
- package/dist/ui/progress/index.d.ts +0 -1
- package/dist/ui/progress/index.js +0 -1
- package/dist/ui/proportional-container/cmp.proportional-container.svelte +0 -39
- package/dist/ui/proportional-container/cmp.proportional-container.svelte.d.ts +0 -8
- package/dist/ui/proportional-container/index.d.ts +0 -1
- package/dist/ui/proportional-container/index.js +0 -1
- package/dist/ui/seek-bar/cmp.seek-bar.svelte +0 -167
- package/dist/ui/seek-bar/cmp.seek-bar.svelte.d.ts +0 -15
- package/dist/ui/seek-bar/index.d.ts +0 -1
- package/dist/ui/seek-bar/index.js +0 -1
- package/dist/ui/shadow-dom/normalize-shadow.css +0 -350
- package/dist/ui/shadow-dom/reset-shadow.css +0 -176
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte +0 -124
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte.d.ts +0 -8
- package/dist/ui/swipe-indicator/index.d.ts +0 -1
- package/dist/ui/swipe-indicator/index.js +0 -1
- package/dist/ui/swipe-indicator/swipe-indicator-localization.d.ts +0 -5
- package/dist/ui/swipe-indicator/swipe-indicator-localization.js +0 -13
- package/dist/ui/time-ago/cmp.time-ago.svelte +0 -69
- package/dist/ui/time-ago/cmp.time-ago.svelte.d.ts +0 -9
- package/dist/ui/time-ago/index.d.ts +0 -1
- package/dist/ui/time-ago/index.js +0 -1
- package/dist/ui/time-ago/time-ago-localization.d.ts +0 -12
- package/dist/ui/time-ago/time-ago-localization.js +0 -55
- package/dist/ui/video/cmp.video.svelte +0 -387
- package/dist/ui/video/cmp.video.svelte.d.ts +0 -27
- package/dist/ui/video/index.d.ts +0 -2
- package/dist/ui/video/index.js +0 -2
- package/dist/ui/video/types.d.ts +0 -4
- package/dist/ui/video/types.js +0 -5
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
<script lang="ts" generics="T">import { runningInBrowser } from '../../../core/browser';
|
|
2
|
-
import { Utils } from '../../../core/utils';
|
|
3
|
-
import { HtmlHelper } from '../../../core/utils/html-helper';
|
|
4
|
-
import { Icon } from '../../icon';
|
|
5
|
-
import { TouchSynchronizer } from '../utils';
|
|
6
|
-
import { SliderLocalization } from './slider-localization';
|
|
7
|
-
import { SliderMode } from './types';
|
|
8
|
-
import IconChevronLeft from '@fluentui/svg-icons/icons/chevron_left_20_regular.svg?raw';
|
|
9
|
-
import IconChevronRight from '@fluentui/svg-icons/icons/chevron_right_20_regular.svg?raw';
|
|
10
|
-
import { onDestroy, onMount, untrack } from 'svelte';
|
|
11
|
-
let { items, sliderMode = SliderMode.ArrowsWithCounts, dotsConfig = {
|
|
12
|
-
activeHtml: '<i class="fa-solid fa-circle" tabindex="0"></i>',
|
|
13
|
-
inactiveHtml: '<i class="fa-regular fa-circle" tabindex="0"></i>'
|
|
14
|
-
}, locale, initialIndex, autoSlideMs = 0, on, children } = $props();
|
|
15
|
-
const localization = $derived.by(() => new SliderLocalization(locale));
|
|
16
|
-
const itemIndices = $derived(items.map((_, index) => index));
|
|
17
|
-
const animationDuration = 300;
|
|
18
|
-
let previousItems = $state.raw(undefined);
|
|
19
|
-
let selectedIndex = $state(untrack(() => initialIndex));
|
|
20
|
-
let animationIndex = $state(null);
|
|
21
|
-
let interval;
|
|
22
|
-
let slidesRef;
|
|
23
|
-
let sliderWidth = $state(0);
|
|
24
|
-
let swipeTransition = $state(0);
|
|
25
|
-
let resizeObserver;
|
|
26
|
-
onMount(() => {
|
|
27
|
-
notifyIndexChanged();
|
|
28
|
-
setTimeout(() => {
|
|
29
|
-
slidesRef?.classList.toggle('animate', false);
|
|
30
|
-
});
|
|
31
|
-
let touchStartX = 0;
|
|
32
|
-
let touchStartY = 0;
|
|
33
|
-
let touchMoveX = 0;
|
|
34
|
-
let touchStartTime = 0;
|
|
35
|
-
let swipeState = 'not-initialized';
|
|
36
|
-
slidesRef.addEventListener('touchstart', (e) => {
|
|
37
|
-
TouchSynchronizer.touchStarted(slidesRef);
|
|
38
|
-
slidesRef.classList.toggle('animate', false);
|
|
39
|
-
touchStartX = e.changedTouches[0].screenX;
|
|
40
|
-
touchStartY = e.changedTouches[0].screenY;
|
|
41
|
-
touchStartTime = Date.now();
|
|
42
|
-
swipeState = 'not-initialized';
|
|
43
|
-
}, { passive: true });
|
|
44
|
-
slidesRef.addEventListener('touchmove', (e) => {
|
|
45
|
-
if (swipeState === 'horizontal') {
|
|
46
|
-
// Already determined this is a horizontal swipe
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
e.stopPropagation();
|
|
49
|
-
TouchSynchronizer.touchMovePropagationBlocked(slidesRef);
|
|
50
|
-
}
|
|
51
|
-
else if (swipeState === 'vertical') {
|
|
52
|
-
// Already determined this is a vertical swipe
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const touchCurrentX = e.changedTouches[0].screenX;
|
|
56
|
-
const touchCurrentY = e.changedTouches[0].screenY;
|
|
57
|
-
const diffX = Math.abs(touchCurrentX - touchStartX);
|
|
58
|
-
const diffY = Math.abs(touchCurrentY - touchStartY);
|
|
59
|
-
// Determine direction on first significant movement
|
|
60
|
-
if (diffX > 10 || diffY > 10) {
|
|
61
|
-
if (diffX > diffY) {
|
|
62
|
-
// Horizontal swipe - block vertical scroll
|
|
63
|
-
swipeState = 'horizontal';
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
e.stopPropagation();
|
|
66
|
-
TouchSynchronizer.touchMovePropagationBlocked(slidesRef);
|
|
67
|
-
touchMoveX = touchCurrentX - touchStartX;
|
|
68
|
-
const basePosition = -sliderWidth * (animationIndex === null ? selectedIndex + 1 : animationIndex);
|
|
69
|
-
swipeTransition = basePosition + touchMoveX;
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
// Vertical swipe - allow parent to handle
|
|
73
|
-
swipeState = 'vertical';
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}, { passive: false });
|
|
77
|
-
slidesRef.addEventListener('touchend', (e) => {
|
|
78
|
-
const reset = () => {
|
|
79
|
-
swipeTransition = 0;
|
|
80
|
-
touchMoveX = 0;
|
|
81
|
-
};
|
|
82
|
-
// Check if this is a horizontal swipe
|
|
83
|
-
if (swipeState !== 'horizontal') {
|
|
84
|
-
reset();
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
// This is a horizontal swipe - block propagation
|
|
88
|
-
e.stopPropagation();
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
slidesRef.classList.toggle('animate', true);
|
|
91
|
-
TouchSynchronizer.touchEndPropatationBlocked(slidesRef);
|
|
92
|
-
TouchSynchronizer.touchEnded(slidesRef);
|
|
93
|
-
const isFastSwipe = Date.now() - touchStartTime < 300;
|
|
94
|
-
if (!isFastSwipe && Math.abs(touchMoveX) < sliderWidth / 6) {
|
|
95
|
-
reset();
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
if (touchMoveX < 0) {
|
|
99
|
-
loadNext();
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
loadPrevious();
|
|
103
|
-
}
|
|
104
|
-
reset();
|
|
105
|
-
}, { passive: false });
|
|
106
|
-
slidesRef.addEventListener('transitionend', (e) => {
|
|
107
|
-
e.stopPropagation();
|
|
108
|
-
if (animationIndex !== null && animationIndex > items.length - 1) {
|
|
109
|
-
slidesRef.classList.toggle('animate', false);
|
|
110
|
-
animationIndex = null;
|
|
111
|
-
}
|
|
112
|
-
if (animationIndex !== null && animationIndex === 0) {
|
|
113
|
-
slidesRef.classList.toggle('animate', false);
|
|
114
|
-
animationIndex = null;
|
|
115
|
-
}
|
|
116
|
-
setTimeout(() => {
|
|
117
|
-
slidesRef?.classList.toggle('animate', true);
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
if (autoSlideMs) {
|
|
121
|
-
interval = window.setInterval(() => {
|
|
122
|
-
if (items?.length <= 1) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
loadNext();
|
|
126
|
-
}, autoSlideMs);
|
|
127
|
-
}
|
|
128
|
-
sliderWidth = slidesRef.getBoundingClientRect().width;
|
|
129
|
-
let resizeTimeout = 0;
|
|
130
|
-
resizeObserver = new ResizeObserver(() => {
|
|
131
|
-
if (runningInBrowser() && resizeTimeout) {
|
|
132
|
-
window.clearTimeout(resizeTimeout);
|
|
133
|
-
}
|
|
134
|
-
slidesRef.classList.toggle('animate', false);
|
|
135
|
-
sliderWidth = slidesRef.getBoundingClientRect().width;
|
|
136
|
-
resizeTimeout = window.setTimeout(() => {
|
|
137
|
-
slidesRef?.classList.toggle('animate', true);
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
resizeObserver.observe(slidesRef);
|
|
141
|
-
if (runningInBrowser()) {
|
|
142
|
-
window.addEventListener(`keydown`, onKeyPress);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
onDestroy(() => {
|
|
146
|
-
if (resizeObserver) {
|
|
147
|
-
resizeObserver.disconnect();
|
|
148
|
-
}
|
|
149
|
-
if (runningInBrowser()) {
|
|
150
|
-
window.removeEventListener('keydown', onKeyPress);
|
|
151
|
-
if (interval) {
|
|
152
|
-
window.clearInterval(interval);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
const onKeyPress = Utils.throttle((e) => {
|
|
157
|
-
if (e.key === 'ArrowLeft') {
|
|
158
|
-
loadPrevious();
|
|
159
|
-
}
|
|
160
|
-
if (e.key === 'ArrowRight') {
|
|
161
|
-
loadNext();
|
|
162
|
-
}
|
|
163
|
-
}, animationDuration);
|
|
164
|
-
const notifyIndexChanged = () => {
|
|
165
|
-
on?.indexChanged?.(selectedIndex);
|
|
166
|
-
};
|
|
167
|
-
notifyIndexChanged();
|
|
168
|
-
const setIndex = (index) => {
|
|
169
|
-
if (index < 0) {
|
|
170
|
-
animationIndex = 0;
|
|
171
|
-
selectedIndex = items.length - 1;
|
|
172
|
-
}
|
|
173
|
-
else if (index > items.length - 1) {
|
|
174
|
-
animationIndex = index + 1;
|
|
175
|
-
selectedIndex = 0;
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
animationIndex = null;
|
|
179
|
-
selectedIndex = index;
|
|
180
|
-
}
|
|
181
|
-
setTimeout(() => {
|
|
182
|
-
notifyIndexChanged();
|
|
183
|
-
}, 600);
|
|
184
|
-
};
|
|
185
|
-
const loadPrevious = Utils.throttle(() => {
|
|
186
|
-
setIndex(--selectedIndex);
|
|
187
|
-
}, animationDuration);
|
|
188
|
-
const loadNext = Utils.throttle(() => {
|
|
189
|
-
setIndex(++selectedIndex);
|
|
190
|
-
}, animationDuration);
|
|
191
|
-
$effect(() => {
|
|
192
|
-
if (previousItems && items !== previousItems) {
|
|
193
|
-
setIndex(0);
|
|
194
|
-
}
|
|
195
|
-
previousItems = items;
|
|
196
|
-
});
|
|
197
|
-
const styles = $derived.by(() => {
|
|
198
|
-
const values = [
|
|
199
|
-
`transform: translateX(${swipeTransition || (items.length > 1 ? -sliderWidth * (animationIndex === null ? selectedIndex + 1 : animationIndex) : 0)}px)`,
|
|
200
|
-
`--_slider-horizontal--animation: ${animationDuration}ms ease-out transform`
|
|
201
|
-
];
|
|
202
|
-
return values.join(';');
|
|
203
|
-
});
|
|
204
|
-
const showClassicArrowsAndDots = $derived([SliderMode.ArrowsAndDots, SliderMode.ArrowsOnly, SliderMode.DotsOnly, SliderMode.DotsOnlyBelow].includes(sliderMode));
|
|
205
|
-
</script>
|
|
206
|
-
|
|
207
|
-
<div
|
|
208
|
-
class="slider"
|
|
209
|
-
class:slider--arrows-and-dots={sliderMode === SliderMode.ArrowsAndDots}
|
|
210
|
-
class:slider--arrows-only={sliderMode === SliderMode.ArrowsOnly}
|
|
211
|
-
class:slider--dots-only={sliderMode === SliderMode.DotsOnly}
|
|
212
|
-
class:slider--dots-only-below={sliderMode === SliderMode.DotsOnlyBelow}
|
|
213
|
-
class:slider--arrows-with-counts={sliderMode === SliderMode.ArrowsWithCounts}>
|
|
214
|
-
<div class="slider__slides" bind:this={slidesRef} style={styles}>
|
|
215
|
-
{#if items.length > 1}
|
|
216
|
-
<div class="slider__slide">
|
|
217
|
-
{#if children}
|
|
218
|
-
{@render children(items[items.length - 1])}
|
|
219
|
-
{/if}
|
|
220
|
-
</div>
|
|
221
|
-
{/if}
|
|
222
|
-
{#each items as item (item)}
|
|
223
|
-
<div class="slider__slide">
|
|
224
|
-
{#if children}
|
|
225
|
-
{@render children(item)}
|
|
226
|
-
{/if}
|
|
227
|
-
</div>
|
|
228
|
-
{/each}
|
|
229
|
-
{#if items.length > 1}
|
|
230
|
-
<div class="slider__slide" data-after>
|
|
231
|
-
{#if children}
|
|
232
|
-
{@render children(items[0])}
|
|
233
|
-
{/if}
|
|
234
|
-
</div>
|
|
235
|
-
{/if}
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
{#if items.length > 1}
|
|
239
|
-
{#if showClassicArrowsAndDots}
|
|
240
|
-
<button type="button" class="slider__navigation-button slider__navigation-button--prev" onclick={loadPrevious} aria-label="none">
|
|
241
|
-
<Icon src={IconChevronLeft} />
|
|
242
|
-
</button>
|
|
243
|
-
<button type="button" class="slider__navigation-button slider__navigation-button--next" onclick={loadNext} aria-label="none">
|
|
244
|
-
<Icon src={IconChevronRight} />
|
|
245
|
-
</button>
|
|
246
|
-
<div class="slider__dots">
|
|
247
|
-
{#each itemIndices as index (index)}
|
|
248
|
-
<div class="slider__dot" onclick={() => setIndex(index)} onkeydown={() => ({})} role="none">
|
|
249
|
-
{@html HtmlHelper.sanitizeHtml(index === selectedIndex ? dotsConfig.activeHtml : dotsConfig.inactiveHtml)}
|
|
250
|
-
</div>
|
|
251
|
-
{/each}
|
|
252
|
-
</div>
|
|
253
|
-
{:else if sliderMode === SliderMode.ArrowsWithCounts}
|
|
254
|
-
<div class="slider__arrows-with-counts">
|
|
255
|
-
<button type="button" class="slider__counts-navigation-button" onclick={loadPrevious} aria-label="none">
|
|
256
|
-
<Icon src={IconChevronLeft} />
|
|
257
|
-
</button>
|
|
258
|
-
<div class="slider__counts">{localization.nOfM(selectedIndex + 1, items.length)}</div>
|
|
259
|
-
<button type="button" class="slider__counts-navigation-button" onclick={loadNext} aria-label="none">
|
|
260
|
-
<Icon src={IconChevronRight} />
|
|
261
|
-
</button>
|
|
262
|
-
</div>
|
|
263
|
-
{/if}
|
|
264
|
-
{/if}
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
<style>@keyframes fadeIn {
|
|
268
|
-
0% {
|
|
269
|
-
opacity: 1;
|
|
270
|
-
}
|
|
271
|
-
50% {
|
|
272
|
-
opacity: 0.4;
|
|
273
|
-
}
|
|
274
|
-
100% {
|
|
275
|
-
opacity: 1;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
.slider {
|
|
279
|
-
display: flex;
|
|
280
|
-
flex-direction: column;
|
|
281
|
-
flex: 1;
|
|
282
|
-
position: relative;
|
|
283
|
-
width: 100%;
|
|
284
|
-
height: 100%;
|
|
285
|
-
overflow: hidden;
|
|
286
|
-
}
|
|
287
|
-
.slider__slides {
|
|
288
|
-
display: flex;
|
|
289
|
-
height: 100%;
|
|
290
|
-
}
|
|
291
|
-
.slider__slides:global(.animate) {
|
|
292
|
-
transition: var(--_slider-horizontal--animation);
|
|
293
|
-
}
|
|
294
|
-
.slider__slide {
|
|
295
|
-
display: flex;
|
|
296
|
-
justify-content: center;
|
|
297
|
-
align-items: center;
|
|
298
|
-
position: relative;
|
|
299
|
-
height: 100%;
|
|
300
|
-
width: 100%;
|
|
301
|
-
min-width: 100%;
|
|
302
|
-
max-width: 100%;
|
|
303
|
-
}
|
|
304
|
-
.slider__dots {
|
|
305
|
-
margin: 0;
|
|
306
|
-
display: flex;
|
|
307
|
-
justify-content: center;
|
|
308
|
-
z-index: 1;
|
|
309
|
-
gap: 1em;
|
|
310
|
-
flex-wrap: wrap;
|
|
311
|
-
position: absolute;
|
|
312
|
-
left: 0;
|
|
313
|
-
right: 0;
|
|
314
|
-
bottom: 0.625rem;
|
|
315
|
-
font-size: var(--slider-dots-size-internal, var(--slider-dots-size, 0.75rem));
|
|
316
|
-
}
|
|
317
|
-
.slider__dot {
|
|
318
|
-
cursor: pointer;
|
|
319
|
-
color: var(--slider-dots-color, white);
|
|
320
|
-
}
|
|
321
|
-
.slider__navigation-button {
|
|
322
|
-
font-size: 0.75rem;
|
|
323
|
-
width: 1.875rem;
|
|
324
|
-
height: 1.875rem;
|
|
325
|
-
background-color: var(--sc-mc-color--button-secondary);
|
|
326
|
-
border-radius: 50%;
|
|
327
|
-
text-align: center;
|
|
328
|
-
color: var(--sc-mc-color--text-white);
|
|
329
|
-
position: absolute;
|
|
330
|
-
top: 50%;
|
|
331
|
-
transform: translateY(-50%);
|
|
332
|
-
visibility: hidden;
|
|
333
|
-
/* Set 'container-type: inline-size;' to reference container*/
|
|
334
|
-
}
|
|
335
|
-
@container (width < 576px) {
|
|
336
|
-
.slider__navigation-button {
|
|
337
|
-
visibility: visible;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
.slider__navigation-button:disabled {
|
|
341
|
-
opacity: 0.5;
|
|
342
|
-
cursor: default;
|
|
343
|
-
}
|
|
344
|
-
.slider__navigation-button--prev {
|
|
345
|
-
left: 0.9375rem;
|
|
346
|
-
}
|
|
347
|
-
.slider__navigation-button--next {
|
|
348
|
-
right: 0.9375rem;
|
|
349
|
-
}
|
|
350
|
-
.slider__arrows-with-counts {
|
|
351
|
-
position: absolute;
|
|
352
|
-
bottom: 0.75rem;
|
|
353
|
-
left: 50%;
|
|
354
|
-
transform: translateX(-50%);
|
|
355
|
-
display: flex;
|
|
356
|
-
justify-content: center;
|
|
357
|
-
align-items: center;
|
|
358
|
-
height: 1.625rem;
|
|
359
|
-
z-index: 1;
|
|
360
|
-
}
|
|
361
|
-
.slider__counts {
|
|
362
|
-
font-size: 0.9375rem;
|
|
363
|
-
font-weight: 300;
|
|
364
|
-
width: 5.625rem;
|
|
365
|
-
text-align: center;
|
|
366
|
-
color: var(--sc-mc-color--text-white);
|
|
367
|
-
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.05);
|
|
368
|
-
}
|
|
369
|
-
.slider__counts-navigation-button {
|
|
370
|
-
font-size: 0.75rem;
|
|
371
|
-
width: 1.625rem;
|
|
372
|
-
height: 1.625rem;
|
|
373
|
-
background-color: var(--sc-mc-color--button-secondary);
|
|
374
|
-
border-radius: 50%;
|
|
375
|
-
text-align: center;
|
|
376
|
-
color: var(--sc-mc-color--text-white);
|
|
377
|
-
visibility: hidden;
|
|
378
|
-
}
|
|
379
|
-
.slider__counts-navigation-button:disabled {
|
|
380
|
-
opacity: 0.5;
|
|
381
|
-
cursor: default;
|
|
382
|
-
}
|
|
383
|
-
.slider__counts-navigation-button {
|
|
384
|
-
/* Set 'container-type: inline-size;' to reference container*/
|
|
385
|
-
}
|
|
386
|
-
@container (width < 576px) {
|
|
387
|
-
.slider__counts-navigation-button {
|
|
388
|
-
visibility: visible;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
.slider:hover .slider__navigation-button {
|
|
392
|
-
visibility: visible;
|
|
393
|
-
}
|
|
394
|
-
.slider:hover .slider__counts-navigation-button {
|
|
395
|
-
visibility: visible;
|
|
396
|
-
}
|
|
397
|
-
.slider--arrows-only .slider__dots {
|
|
398
|
-
display: none;
|
|
399
|
-
}
|
|
400
|
-
.slider--dots-only .slider__navigation-button {
|
|
401
|
-
display: none;
|
|
402
|
-
}
|
|
403
|
-
.slider--dots-only .slider__dots {
|
|
404
|
-
--slider-dots-size-internal: var(--slider-dots-size, 1rem);
|
|
405
|
-
}
|
|
406
|
-
.slider--dots-only-below .slider__navigation-button {
|
|
407
|
-
display: none;
|
|
408
|
-
}
|
|
409
|
-
.slider--dots-only-below .slider__dots {
|
|
410
|
-
--slider-dots-size-internal: var(--slider-dots-size, 1rem);
|
|
411
|
-
position: static;
|
|
412
|
-
margin-top: 1rem;
|
|
413
|
-
}
|
|
414
|
-
.slider {
|
|
415
|
-
/* Set 'container-type: inline-size;' to reference container*/
|
|
416
|
-
}
|
|
417
|
-
@container (width < 576px) {
|
|
418
|
-
.slider__navigation-button {
|
|
419
|
-
visibility: visible;
|
|
420
|
-
}
|
|
421
|
-
.slider__counts-navigation-button {
|
|
422
|
-
visibility: visible;
|
|
423
|
-
}
|
|
424
|
-
}</style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Locale } from '../../../core/locale';
|
|
2
|
-
import { type SliderDotsConfig, SliderMode } from './types';
|
|
3
|
-
import { type Snippet } from 'svelte';
|
|
4
|
-
declare class __sveltets_Render<T> {
|
|
5
|
-
props(): {
|
|
6
|
-
items: T[];
|
|
7
|
-
initialIndex: number;
|
|
8
|
-
sliderMode?: SliderMode;
|
|
9
|
-
dotsConfig?: SliderDotsConfig;
|
|
10
|
-
autoSlideMs?: number;
|
|
11
|
-
locale: Locale;
|
|
12
|
-
on?: {
|
|
13
|
-
indexChanged: (index: number) => void;
|
|
14
|
-
} | undefined;
|
|
15
|
-
children: Snippet<[T]>;
|
|
16
|
-
};
|
|
17
|
-
events(): {};
|
|
18
|
-
slots(): {};
|
|
19
|
-
bindings(): "";
|
|
20
|
-
exports(): {};
|
|
21
|
-
}
|
|
22
|
-
interface $$IsomorphicComponent {
|
|
23
|
-
new <T>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
24
|
-
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
25
|
-
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
26
|
-
<T>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
27
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
28
|
-
}
|
|
29
|
-
declare const Cmp: $$IsomorphicComponent;
|
|
30
|
-
type Cmp<T> = InstanceType<typeof Cmp<T>>;
|
|
31
|
-
export default Cmp;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var SliderMode;
|
|
2
|
-
(function (SliderMode) {
|
|
3
|
-
SliderMode[SliderMode["ArrowsAndDots"] = 0] = "ArrowsAndDots";
|
|
4
|
-
SliderMode[SliderMode["ArrowsOnly"] = 1] = "ArrowsOnly";
|
|
5
|
-
SliderMode[SliderMode["DotsOnly"] = 2] = "DotsOnly";
|
|
6
|
-
SliderMode[SliderMode["DotsOnlyBelow"] = 3] = "DotsOnlyBelow";
|
|
7
|
-
SliderMode[SliderMode["ArrowsWithCounts"] = 4] = "ArrowsWithCounts";
|
|
8
|
-
})(SliderMode || (SliderMode = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TouchSynchronizer } from './touch-synchronizer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TouchSynchronizer } from './touch-synchronizer';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare class TouchSynchronizer {
|
|
2
|
-
private static listeners;
|
|
3
|
-
static touchStarted: (ref: HTMLElement) => void;
|
|
4
|
-
static touchMovePropagationBlocked: (ref: HTMLElement) => void;
|
|
5
|
-
static touchEndPropatationBlocked: (ref: HTMLElement) => void;
|
|
6
|
-
static touchEnded: (ref: HTMLElement) => void;
|
|
7
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export class TouchSynchronizer {
|
|
2
|
-
static listeners = [];
|
|
3
|
-
static touchStarted = (ref) => {
|
|
4
|
-
TouchSynchronizer.listeners.push(ref);
|
|
5
|
-
};
|
|
6
|
-
static touchMovePropagationBlocked = (ref) => {
|
|
7
|
-
const otherListeners = TouchSynchronizer.listeners.filter((r) => r !== ref);
|
|
8
|
-
otherListeners.forEach((r) => {
|
|
9
|
-
r.dispatchEvent(new TouchEvent('touchend', { cancelable: false }));
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
static touchEndPropatationBlocked = (ref) => {
|
|
13
|
-
const otherListeners = TouchSynchronizer.listeners.filter((r) => r !== ref);
|
|
14
|
-
otherListeners.forEach((r) => {
|
|
15
|
-
r.dispatchEvent(new TouchEvent('touchend', { cancelable: false }));
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
static touchEnded = (ref) => {
|
|
19
|
-
TouchSynchronizer.listeners = TouchSynchronizer.listeners.filter((r) => r !== ref);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { value } = $props();
|
|
2
|
-
</script>
|
|
3
|
-
|
|
4
|
-
<div class="progress">
|
|
5
|
-
<span class="progress__value" class:progress__value--animated={value > 0.01 && value < 0.96} style="width: {`${100 * (value <= 1 ? value : 1)}%`}">
|
|
6
|
-
|
|
7
|
-
</span>
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
<style>@keyframes fadeIn {
|
|
11
|
-
0% {
|
|
12
|
-
opacity: 1;
|
|
13
|
-
}
|
|
14
|
-
50% {
|
|
15
|
-
opacity: 0.4;
|
|
16
|
-
}
|
|
17
|
-
100% {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
.progress {
|
|
22
|
-
--_progress--height: var(--progress--height, 0.25em);
|
|
23
|
-
--_progress--back-color: var(--progress--back-color, #b0b0b0);
|
|
24
|
-
--_progress--front-color: var(--progress--front-color, #ffffff);
|
|
25
|
-
--_progress--box-shadow: var(--progress--box-shadow, 0 2px 3px rgba(0, 0, 0, 0.25) inset);
|
|
26
|
-
--_progress--border-radius: var(--progress--border-radius, 0);
|
|
27
|
-
width: 100%;
|
|
28
|
-
background: var(--_progress--back-color);
|
|
29
|
-
height: var(--_progress--height);
|
|
30
|
-
box-shadow: var(--_progress--box-shadow);
|
|
31
|
-
border-radius: var(--_progress--border-radius);
|
|
32
|
-
}
|
|
33
|
-
.progress__value {
|
|
34
|
-
background: var(--_progress--front-color);
|
|
35
|
-
display: inline-block;
|
|
36
|
-
height: 100%;
|
|
37
|
-
}
|
|
38
|
-
.progress__value--animated {
|
|
39
|
-
transition: width 600ms;
|
|
40
|
-
}</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Progress } from './cmp.progress.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Progress } from './cmp.progress.svelte';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { ratio, children } = $props();
|
|
2
|
-
export {};
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="proportional-container" style={ratio ? `--proportional-container--ratio: ${ratio};` : undefined}>
|
|
6
|
-
<div class="proportional-container__placer">
|
|
7
|
-
{@render children?.()}
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<style>@keyframes fadeIn {
|
|
12
|
-
0% {
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
15
|
-
50% {
|
|
16
|
-
opacity: 0.4;
|
|
17
|
-
}
|
|
18
|
-
100% {
|
|
19
|
-
opacity: 1;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
.proportional-container {
|
|
23
|
-
--_proportional-container--ratio: var(--proportional-container--ratio, 1);
|
|
24
|
-
--_proportional-container--height: var(--proportional-container--height, auto);
|
|
25
|
-
--_proportional-container--width: var(--proportional-container--width, 100%);
|
|
26
|
-
width: var(--_proportional-container--width);
|
|
27
|
-
max-width: 100%;
|
|
28
|
-
height: var(--_proportional-container--height);
|
|
29
|
-
max-height: 100%;
|
|
30
|
-
aspect-ratio: var(--_proportional-container--ratio);
|
|
31
|
-
position: relative;
|
|
32
|
-
}
|
|
33
|
-
.proportional-container__placer {
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 0;
|
|
36
|
-
left: 0;
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: 100%;
|
|
39
|
-
}</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProportionalContainer } from './cmp.proportional-container.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProportionalContainer } from './cmp.proportional-container.svelte';
|