@streamscloud/embeddable 2.1.0 → 2.1.1
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/package.json +1 -1
- package/dist/core/continuation-token.d.ts +0 -10
- package/dist/core/continuation-token.js +0 -32
- 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/enums.d.ts +0 -33
- package/dist/core/enums.js +0 -39
- package/dist/core/graphql.d.ts +0 -1
- package/dist/core/graphql.js +0 -10
- 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/media/index.d.ts +0 -4
- package/dist/core/media/index.js +0 -4
- package/dist/core/media/media-item-url.service.d.ts +0 -2
- package/dist/core/media/media-item-url.service.js +0 -3
- package/dist/core/media/types.d.ts +0 -13
- package/dist/core/media/types.js +0 -1
- 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/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 -40
- package/dist/core/utils/html-helper.js +0 -97
- 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 -28
- package/dist/core/utils/utils.js +0 -100
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/products/price-helper.d.ts +0 -4
- package/dist/products/price-helper.js +0 -47
- package/dist/short-videos/short-video-viewer/cmp.ad.svelte +0 -74
- package/dist/short-videos/short-video-viewer/cmp.ad.svelte.d.ts +0 -7
- package/dist/short-videos/short-video-viewer/cmp.attachments-inline.svelte +0 -70
- package/dist/short-videos/short-video-viewer/cmp.attachments-inline.svelte.d.ts +0 -7
- package/dist/short-videos/short-video-viewer/cmp.attachments.svelte +0 -68
- package/dist/short-videos/short-video-viewer/cmp.attachments.svelte.d.ts +0 -9
- package/dist/short-videos/short-video-viewer/cmp.product.svelte +0 -156
- package/dist/short-videos/short-video-viewer/cmp.product.svelte.d.ts +0 -10
- package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte +0 -124
- package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte.d.ts +0 -10
- package/dist/short-videos/short-video-viewer/cmp.short-video-heading.svelte +0 -86
- package/dist/short-videos/short-video-viewer/cmp.short-video-heading.svelte.d.ts +0 -9
- package/dist/short-videos/short-video-viewer/cmp.short-video-viewer.svelte +0 -133
- package/dist/short-videos/short-video-viewer/cmp.short-video-viewer.svelte.d.ts +0 -12
- package/dist/short-videos/short-video-viewer/description.svelte +0 -46
- package/dist/short-videos/short-video-viewer/description.svelte.d.ts +0 -9
- package/dist/short-videos/short-video-viewer/index.d.ts +0 -9
- package/dist/short-videos/short-video-viewer/index.js +0 -6
- package/dist/short-videos/short-video-viewer/mapper.d.ts +0 -3
- package/dist/short-videos/short-video-viewer/mapper.js +0 -56
- package/dist/short-videos/short-video-viewer/operations.generated.d.ts +0 -56
- package/dist/short-videos/short-video-viewer/operations.generated.js +0 -151
- package/dist/short-videos/short-video-viewer/operations.graphql +0 -53
- package/dist/short-videos/short-video-viewer/short-video-attachments-localization.svelte.d.ts +0 -12
- package/dist/short-videos/short-video-viewer/short-video-attachments-localization.svelte.js +0 -10
- package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.d.ts +0 -13
- package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.js +0 -10
- package/dist/short-videos/short-video-viewer/short-video-product-localization.svelte.d.ts +0 -7
- package/dist/short-videos/short-video-viewer/short-video-product-localization.svelte.js +0 -11
- package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.d.ts +0 -13
- package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.js +0 -10
- package/dist/short-videos/short-video-viewer/types.d.ts +0 -40
- package/dist/short-videos/short-video-viewer/types.js +0 -1
- package/dist/short-videos/short-video-viewer/ui-manager.svelte.d.ts +0 -12
- package/dist/short-videos/short-video-viewer/ui-manager.svelte.js +0 -26
- package/dist/short-videos/short-videos-player/action-button.svelte +0 -38
- package/dist/short-videos/short-videos-player/action-button.svelte.d.ts +0 -10
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte +0 -91
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte.d.ts +0 -13
- package/dist/short-videos/short-videos-player/controls.svelte +0 -222
- package/dist/short-videos/short-videos-player/controls.svelte.d.ts +0 -15
- package/dist/short-videos/short-videos-player/index.d.ts +0 -31
- package/dist/short-videos/short-videos-player/index.js +0 -40
- package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.d.ts +0 -8
- package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.js +0 -6
- package/dist/short-videos/short-videos-player/ui-manager.svelte.d.ts +0 -16
- package/dist/short-videos/short-videos-player/ui-manager.svelte.js +0 -25
- package/dist/streams/layout/cmp.layout.svelte +0 -34
- package/dist/streams/layout/cmp.layout.svelte.d.ts +0 -9
- package/dist/streams/layout/cmp.slot-content.svelte +0 -32
- package/dist/streams/layout/cmp.slot-content.svelte.d.ts +0 -9
- package/dist/streams/layout/cmp.slot.svelte +0 -26
- package/dist/streams/layout/cmp.slot.svelte.d.ts +0 -9
- package/dist/streams/layout/component.d.ts +0 -6
- package/dist/streams/layout/component.js +0 -1
- package/dist/streams/layout/css-values.d.ts +0 -10
- package/dist/streams/layout/css-values.js +0 -1
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte +0 -16
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte.d.ts +0 -11
- package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte +0 -38
- package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte.d.ts +0 -9
- package/dist/streams/layout/element-views/cmp.images-stream-element.svelte +0 -30
- package/dist/streams/layout/element-views/cmp.images-stream-element.svelte.d.ts +0 -9
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte +0 -97
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte.d.ts +0 -11
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte +0 -6
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte.d.ts +0 -7
- package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte +0 -45
- package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte.d.ts +0 -9
- package/dist/streams/layout/element-views/cmp.stream-element.svelte +0 -60
- package/dist/streams/layout/element-views/cmp.stream-element.svelte.d.ts +0 -13
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte +0 -23
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte.d.ts +0 -9
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte +0 -8
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte.d.ts +0 -7
- package/dist/streams/layout/element-views/data-by-key-accessor.d.ts +0 -3
- package/dist/streams/layout/element-views/data-by-key-accessor.js +0 -55
- package/dist/streams/layout/element-views/index.d.ts +0 -11
- package/dist/streams/layout/element-views/index.js +0 -9
- package/dist/streams/layout/element-views/price-stream-element-localization.svelte.d.ts +0 -9
- package/dist/streams/layout/element-views/price-stream-element-localization.svelte.js +0 -8
- package/dist/streams/layout/element-views/stream-element-localization.svelte.d.ts +0 -8
- package/dist/streams/layout/element-views/stream-element-localization.svelte.js +0 -6
- package/dist/streams/layout/elements.d.ts +0 -51
- package/dist/streams/layout/elements.js +0 -1
- package/dist/streams/layout/enums.d.ts +0 -45
- package/dist/streams/layout/enums.js +0 -54
- package/dist/streams/layout/index.d.ts +0 -19
- package/dist/streams/layout/index.js +0 -15
- package/dist/streams/layout/layout.d.ts +0 -13
- package/dist/streams/layout/layout.js +0 -1
- package/dist/streams/layout/models/index.d.ts +0 -6
- package/dist/streams/layout/models/index.js +0 -1
- package/dist/streams/layout/models/mapper.d.ts +0 -3
- package/dist/streams/layout/models/mapper.js +0 -62
- package/dist/streams/layout/models/stream-layout-blob-model.d.ts +0 -4
- package/dist/streams/layout/models/stream-layout-blob-model.js +0 -1
- package/dist/streams/layout/models/stream-layout-media-item-model.d.ts +0 -6
- package/dist/streams/layout/models/stream-layout-media-item-model.js +0 -1
- package/dist/streams/layout/models/stream-layout-post-header-model.d.ts +0 -11
- package/dist/streams/layout/models/stream-layout-post-header-model.js +0 -1
- package/dist/streams/layout/models/stream-layout-product-model.d.ts +0 -19
- package/dist/streams/layout/models/stream-layout-product-model.js +0 -1
- package/dist/streams/layout/models/stream-layout-short-video-model.d.ts +0 -31
- package/dist/streams/layout/models/stream-layout-short-video-model.js +0 -1
- package/dist/streams/layout/serializer.d.ts +0 -3
- package/dist/streams/layout/serializer.js +0 -6
- package/dist/streams/layout/slot-data-input.d.ts +0 -14
- package/dist/streams/layout/slot-data-input.js +0 -1
- package/dist/streams/layout/slot-data.d.ts +0 -18
- package/dist/streams/layout/slot-data.js +0 -1
- package/dist/streams/layout/slot.d.ts +0 -16
- package/dist/streams/layout/slot.js +0 -1
- package/dist/streams/layout/styles-transformer.d.ts +0 -13
- package/dist/streams/layout/styles-transformer.js +0 -140
- package/dist/streams/layout/styles.d.ts +0 -43
- package/dist/streams/layout/styles.js +0 -1
- package/dist/streams/layout/type-guards.d.ts +0 -8
- package/dist/streams/layout/type-guards.js +0 -21
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +0 -13
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +0 -7
- package/dist/streams/stream-page-viewer/index.d.ts +0 -2
- package/dist/streams/stream-page-viewer/index.js +0 -1
- package/dist/streams/stream-page-viewer/mapper.d.ts +0 -3
- package/dist/streams/stream-page-viewer/mapper.js +0 -22
- package/dist/streams/stream-page-viewer/operations.generated.d.ts +0 -10
- package/dist/streams/stream-page-viewer/operations.generated.js +0 -27
- package/dist/streams/stream-page-viewer/operations.graphql +0 -8
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.d.ts +0 -13
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.js +0 -10
- package/dist/streams/stream-page-viewer/types.d.ts +0 -18
- package/dist/streams/stream-page-viewer/types.js +0 -1
- package/dist/streams/stream-player/action-button.svelte +0 -38
- package/dist/streams/stream-player/action-button.svelte.d.ts +0 -10
- package/dist/streams/stream-player/cmp.stream-player.svelte +0 -149
- package/dist/streams/stream-player/cmp.stream-player.svelte.d.ts +0 -17
- package/dist/streams/stream-player/controls.svelte +0 -230
- package/dist/streams/stream-player/controls.svelte.d.ts +0 -14
- package/dist/streams/stream-player/index.d.ts +0 -37
- package/dist/streams/stream-player/index.js +0 -50
- package/dist/streams/stream-player/mapper.d.ts +0 -3
- package/dist/streams/stream-player/mapper.js +0 -15
- package/dist/streams/stream-player/operations.generated.d.ts +0 -65
- package/dist/streams/stream-player/operations.generated.js +0 -196
- package/dist/streams/stream-player/operations.graphql +0 -35
- package/dist/streams/stream-player/stream-overview.svelte +0 -239
- package/dist/streams/stream-player/stream-overview.svelte.d.ts +0 -17
- package/dist/streams/stream-player/stream-player-buffer.svelte.d.ts +0 -25
- package/dist/streams/stream-player/stream-player-buffer.svelte.js +0 -84
- package/dist/streams/stream-player/stream-player-localization.svelte.d.ts +0 -12
- package/dist/streams/stream-player/stream-player-localization.svelte.js +0 -10
- package/dist/streams/stream-player/types.d.ts +0 -12
- package/dist/streams/stream-player/types.js +0 -1
- package/dist/streams/stream-player/ui-manager.svelte.d.ts +0 -17
- package/dist/streams/stream-player/ui-manager.svelte.js +0 -26
- package/dist/ui/button/cmp.button.svelte +0 -10
- package/dist/ui/button/cmp.button.svelte.d.ts +0 -16
- package/dist/ui/button/index.d.ts +0 -2
- package/dist/ui/button/index.js +0 -2
- 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 -204
- package/dist/ui/button/resources/button-theme.svelte.d.ts +0 -10
- package/dist/ui/button/resources/button-types.d.ts +0 -21
- package/dist/ui/button/resources/button-types.js +0 -23
- 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 -113
- 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 -71
- package/dist/ui/image/cmp.image-rounded.svelte.d.ts +0 -11
- package/dist/ui/image/cmp.image-stub.svelte +0 -34
- package/dist/ui/image/cmp.image-stub.svelte.d.ts +0 -18
- package/dist/ui/image/cmp.image.svelte +0 -82
- 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 -84
- 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.svelte +0 -89
- package/dist/ui/line-clamp/cmp.line-clamp.svelte.d.ts +0 -12
- 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.svelte.d.ts +0 -9
- package/dist/ui/line-clamp/line-clamp-localization.svelte.js +0 -15
- 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 -97
- 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-item-view/cmp.media-item-view.svelte +0 -91
- package/dist/ui/media-item-view/cmp.media-item-view.svelte.d.ts +0 -13
- package/dist/ui/media-item-view/index.d.ts +0 -1
- package/dist/ui/media-item-view/index.js +0 -1
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte +0 -278
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte.d.ts +0 -13
- package/dist/ui/media-items-gallery/index.d.ts +0 -1
- package/dist/ui/media-items-gallery/index.js +0 -1
- package/dist/ui/media-items-gallery/types.d.ts +0 -12
- package/dist/ui/media-items-gallery/types.js +0 -35
- 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/cmp.player-slider.svelte +0 -161
- package/dist/ui/player/cmp.player-slider.svelte.d.ts +0 -33
- package/dist/ui/player/index.d.ts +0 -4
- package/dist/ui/player/index.js +0 -3
- package/dist/ui/player/player-buffer.svelte.d.ts +0 -28
- package/dist/ui/player/player-buffer.svelte.js +0 -64
- package/dist/ui/player/prevent-slider-scroll.d.ts +0 -5
- package/dist/ui/player/prevent-slider-scroll.js +0 -11
- package/dist/ui/player/types.d.ts +0 -14
- package/dist/ui/player/types.js +0 -1
- package/dist/ui/progress/cmp.progress.svelte +0 -37
- 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 -63
- package/dist/ui/seek-bar/cmp.seek-bar.svelte.d.ts +0 -12
- 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.scss +0 -350
- package/dist/ui/shadow-dom/_reset.scss +0 -189
- package/dist/ui/shadow-dom/index.d.ts +0 -1
- package/dist/ui/shadow-dom/index.js +0 -1
- package/dist/ui/shadow-dom/shadow-host.d.ts +0 -11
- package/dist/ui/shadow-dom/shadow-host.js +0 -45
- package/dist/ui/spotlight-layout/cmp.spotlight-layout.svelte +0 -120
- package/dist/ui/spotlight-layout/cmp.spotlight-layout.svelte.d.ts +0 -18
- package/dist/ui/spotlight-layout/index.d.ts +0 -1
- package/dist/ui/spotlight-layout/index.js +0 -1
- 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 -2
- package/dist/ui/time-ago/index.js +0 -1
- package/dist/ui/time-ago/time-ago-localization.svelte.d.ts +0 -21
- package/dist/ui/time-ago/time-ago-localization.svelte.js +0 -39
- package/dist/ui/video/cmp.video.svelte +0 -377
- package/dist/ui/video/cmp.video.svelte.d.ts +0 -24
- package/dist/ui/video/index.d.ts +0 -1
- package/dist/ui/video/index.js +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { IPlayerBuffer } from './types';
|
|
2
|
-
export declare class PlayerBuffer<T extends {
|
|
3
|
-
id: string;
|
|
4
|
-
}> implements IPlayerBuffer<T> {
|
|
5
|
-
readonly loaded: T[];
|
|
6
|
-
readonly currentIndex: number;
|
|
7
|
-
readonly current: T | null;
|
|
8
|
-
readonly canLoadNext: boolean;
|
|
9
|
-
readonly canLoadPrevious: boolean;
|
|
10
|
-
readonly navigationDisabled: boolean;
|
|
11
|
-
readonly animationDuration = 1200;
|
|
12
|
-
private _currentIndex;
|
|
13
|
-
private _loaded;
|
|
14
|
-
private loadMoreFn;
|
|
15
|
-
private isLoading;
|
|
16
|
-
constructor(provider: PlayerItemsProvider<T>);
|
|
17
|
-
loadNext: () => Promise<void>;
|
|
18
|
-
loadPrevious: () => Promise<void>;
|
|
19
|
-
reset: () => void;
|
|
20
|
-
private warmUpBuffer;
|
|
21
|
-
}
|
|
22
|
-
export type PlayerItemsProvider<T> = {
|
|
23
|
-
initialData: {
|
|
24
|
-
prefetchedItems: T[];
|
|
25
|
-
startIndex: number;
|
|
26
|
-
};
|
|
27
|
-
loadMore(): Promise<T[]>;
|
|
28
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Utils } from '../../core/utils';
|
|
2
|
-
export class PlayerBuffer {
|
|
3
|
-
loaded = $derived.by(() => this._loaded);
|
|
4
|
-
currentIndex = $derived.by(() => this._currentIndex);
|
|
5
|
-
current = $derived(this.currentIndex >= 0 ? this.loaded[this.currentIndex] : null);
|
|
6
|
-
canLoadNext = $derived(this.currentIndex < this.loaded.length - 1);
|
|
7
|
-
canLoadPrevious = $derived(this.currentIndex > 0);
|
|
8
|
-
navigationDisabled = $derived(!this.canLoadNext && !this.canLoadPrevious);
|
|
9
|
-
animationDuration = 1200;
|
|
10
|
-
_currentIndex = $state(-1);
|
|
11
|
-
_loaded = $state.raw([]);
|
|
12
|
-
loadMoreFn;
|
|
13
|
-
isLoading = false;
|
|
14
|
-
constructor(provider) {
|
|
15
|
-
this.loadMoreFn = provider.loadMore;
|
|
16
|
-
this._loaded = provider.initialData.prefetchedItems;
|
|
17
|
-
this._currentIndex = this._loaded.length
|
|
18
|
-
? provider.initialData.startIndex >= this._loaded.length
|
|
19
|
-
? this._loaded.length - 1
|
|
20
|
-
: provider.initialData.startIndex
|
|
21
|
-
: -1;
|
|
22
|
-
this.warmUpBuffer();
|
|
23
|
-
this.loadNext = Utils.throttle(this.loadNext, this.animationDuration);
|
|
24
|
-
this.loadPrevious = Utils.throttle(this.loadPrevious, this.animationDuration);
|
|
25
|
-
}
|
|
26
|
-
loadNext = async () => {
|
|
27
|
-
if (!this.canLoadNext) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
++this._currentIndex;
|
|
31
|
-
this.warmUpBuffer();
|
|
32
|
-
};
|
|
33
|
-
loadPrevious = async () => {
|
|
34
|
-
if (!this.canLoadPrevious) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
--this._currentIndex;
|
|
38
|
-
};
|
|
39
|
-
reset = () => {
|
|
40
|
-
this._loaded = [];
|
|
41
|
-
this._currentIndex = -1;
|
|
42
|
-
this.isLoading = false;
|
|
43
|
-
this.warmUpBuffer();
|
|
44
|
-
};
|
|
45
|
-
warmUpBuffer = async () => {
|
|
46
|
-
const bufferSize = 5;
|
|
47
|
-
if (this._loaded.length >= this.currentIndex + bufferSize || this.isLoading) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
this.isLoading = true;
|
|
51
|
-
try {
|
|
52
|
-
const result = await this.loadMoreFn();
|
|
53
|
-
this._loaded = [...this._loaded, ...result];
|
|
54
|
-
if (this.currentIndex < 0) {
|
|
55
|
-
if (this._loaded.length > 0) {
|
|
56
|
-
this._currentIndex = 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
finally {
|
|
61
|
-
this.isLoading = false;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @type {import('svelte/action').Action} */
|
|
2
|
-
export const preventSliderScroll = (node, value = true) => {
|
|
3
|
-
node.dataset[preventScrollingAttrubute] = value.toString();
|
|
4
|
-
return {
|
|
5
|
-
destroy() {
|
|
6
|
-
// the node has been removed from the DOM
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export const isScrollingPrevented = (node) => node.dataset[preventScrollingAttrubute] === 'true';
|
|
11
|
-
const preventScrollingAttrubute = 'preventPlayerScrolling';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface IPlayerBuffer<T extends {
|
|
2
|
-
id: string;
|
|
3
|
-
}> {
|
|
4
|
-
readonly current: T | null;
|
|
5
|
-
readonly currentIndex: number;
|
|
6
|
-
readonly loaded: T[];
|
|
7
|
-
readonly canLoadNext: boolean;
|
|
8
|
-
readonly canLoadPrevious: boolean;
|
|
9
|
-
readonly navigationDisabled: boolean;
|
|
10
|
-
readonly animationDuration: number;
|
|
11
|
-
loadNext: () => void;
|
|
12
|
-
loadPrevious: () => void;
|
|
13
|
-
reset: () => void;
|
|
14
|
-
}
|
package/dist/ui/player/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +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
|
-
width: 100%;
|
|
26
|
-
background: var(--_progress--back-color);
|
|
27
|
-
height: var(--_progress--height);
|
|
28
|
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25) inset;
|
|
29
|
-
}
|
|
30
|
-
.progress__value {
|
|
31
|
-
background: var(--_progress--front-color);
|
|
32
|
-
display: inline-block;
|
|
33
|
-
height: 100%;
|
|
34
|
-
}
|
|
35
|
-
.progress__value--animated {
|
|
36
|
-
transition: width 600ms;
|
|
37
|
-
}</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';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { value, on } = $props();
|
|
2
|
-
let progressRef;
|
|
3
|
-
let valueRef;
|
|
4
|
-
const handleSeek = (e) => {
|
|
5
|
-
e.stopPropagation();
|
|
6
|
-
const { left, width } = progressRef.getBoundingClientRect();
|
|
7
|
-
const x = e.clientX - left;
|
|
8
|
-
const percent = x / width;
|
|
9
|
-
value = percent;
|
|
10
|
-
valueRef.style.transition = 'none';
|
|
11
|
-
valueRef.style.width = `${100 * percent}%`;
|
|
12
|
-
setTimeout(() => {
|
|
13
|
-
valueRef.style.transition = '';
|
|
14
|
-
}, 0);
|
|
15
|
-
on === null || on === void 0 ? void 0 : on.seek(percent);
|
|
16
|
-
};
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<div class="seek-bar" onclick={handleSeek} onkeydown={() => ({})} role="none">
|
|
20
|
-
<div class="seek-bar__container" bind:this={progressRef}>
|
|
21
|
-
<span
|
|
22
|
-
class="seek-bar__value"
|
|
23
|
-
class:seek-bar__value--animate={value > 0.001 && value < 0.96}
|
|
24
|
-
style="width: {`${100 * (value <= 1 ? value : 1)}%`}"
|
|
25
|
-
bind:this={valueRef}>
|
|
26
|
-
|
|
27
|
-
</span>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<style>@keyframes fadeIn {
|
|
32
|
-
0% {
|
|
33
|
-
opacity: 1;
|
|
34
|
-
}
|
|
35
|
-
50% {
|
|
36
|
-
opacity: 0.4;
|
|
37
|
-
}
|
|
38
|
-
100% {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.seek-bar {
|
|
43
|
-
--_seek-bar--height: var(--seek-bar--height, 0.25em);
|
|
44
|
-
--_seek-bar--back-color: var(--seek-bar--back-color, #b0b0b0);
|
|
45
|
-
--_seek-bar--front-color: var(--seek-bar--front-color, #ffffff);
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
}
|
|
48
|
-
.seek-bar__container {
|
|
49
|
-
width: 100%;
|
|
50
|
-
background: var(--_seek-bar--back-color);
|
|
51
|
-
height: var(--_seek-bar--height);
|
|
52
|
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25) inset;
|
|
53
|
-
border-radius: calc(var(--_seek-bar--height) / 2);
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
}
|
|
56
|
-
.seek-bar__value {
|
|
57
|
-
background: var(--_seek-bar--front-color);
|
|
58
|
-
display: inline-block;
|
|
59
|
-
height: 100%;
|
|
60
|
-
}
|
|
61
|
-
.seek-bar__value--animate {
|
|
62
|
-
transition: width 500ms;
|
|
63
|
-
}</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SeekBar } from './cmp.seek-bar.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SeekBar } from './cmp.seek-bar.svelte';
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
-
|
|
3
|
-
/* Document
|
|
4
|
-
========================================================================== */
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* 1. Correct the line height in all browsers.
|
|
8
|
-
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
html {
|
|
12
|
-
line-height: 1.15; /* 1 */
|
|
13
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Sections
|
|
17
|
-
========================================================================== */
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Remove the margin in all browsers.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
body {
|
|
24
|
-
margin: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Render the `main` element consistently in IE.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
main {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
-
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
h1 {
|
|
41
|
-
font-size: 2em;
|
|
42
|
-
margin: 0.67em 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Grouping content
|
|
46
|
-
========================================================================== */
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 1. Add the correct box sizing in Firefox.
|
|
50
|
-
* 2. Show the overflow in Edge and IE.
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
hr {
|
|
54
|
-
box-sizing: content-box; /* 1 */
|
|
55
|
-
height: 0; /* 1 */
|
|
56
|
-
overflow: visible; /* 2 */
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
pre {
|
|
65
|
-
font-family: monospace, monospace; /* 1 */
|
|
66
|
-
font-size: 1em; /* 2 */
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* Text-level semantics
|
|
70
|
-
========================================================================== */
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Remove the gray background on active links in IE 10.
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
a {
|
|
77
|
-
background-color: transparent;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 1. Remove the bottom border in Chrome 57-
|
|
82
|
-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
abbr[title] {
|
|
86
|
-
border-bottom: none; /* 1 */
|
|
87
|
-
text-decoration: underline dotted; /* 2 */
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
b,
|
|
95
|
-
strong {
|
|
96
|
-
font-weight: bolder;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
101
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
code,
|
|
105
|
-
kbd,
|
|
106
|
-
samp {
|
|
107
|
-
font-family: monospace, monospace; /* 1 */
|
|
108
|
-
font-size: 1em; /* 2 */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Add the correct font size in all browsers.
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
small {
|
|
116
|
-
font-size: 80%;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
121
|
-
* all browsers.
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
sub,
|
|
125
|
-
sup {
|
|
126
|
-
font-size: 75%;
|
|
127
|
-
line-height: 0;
|
|
128
|
-
position: relative;
|
|
129
|
-
vertical-align: baseline;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
sub {
|
|
133
|
-
bottom: -0.25em;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
sup {
|
|
137
|
-
top: -0.5em;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Embedded content
|
|
141
|
-
========================================================================== */
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Remove the border on images inside links in IE 10.
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
img {
|
|
148
|
-
border-style: none;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Forms
|
|
152
|
-
========================================================================== */
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* 1. Change the font styles in all browsers.
|
|
156
|
-
* 2. Remove the margin in Firefox and Safari.
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
button,
|
|
160
|
-
input,
|
|
161
|
-
optgroup,
|
|
162
|
-
select,
|
|
163
|
-
textarea {
|
|
164
|
-
font-family: inherit; /* 1 */
|
|
165
|
-
font-size: 100%; /* 1 */
|
|
166
|
-
line-height: 1.15; /* 1 */
|
|
167
|
-
margin: 0; /* 2 */
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Show the overflow in IE.
|
|
172
|
-
* 1. Show the overflow in Edge.
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
button,
|
|
176
|
-
input {
|
|
177
|
-
/* 1 */
|
|
178
|
-
overflow: visible;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
183
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
button,
|
|
187
|
-
select {
|
|
188
|
-
/* 1 */
|
|
189
|
-
text-transform: none;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Correct the inability to style clickable types in iOS and Safari.
|
|
194
|
-
*/
|
|
195
|
-
|
|
196
|
-
button,
|
|
197
|
-
[type='button'],
|
|
198
|
-
[type='reset'],
|
|
199
|
-
[type='submit'] {
|
|
200
|
-
-webkit-appearance: button;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Remove the inner border and padding in Firefox.
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
button::-moz-focus-inner,
|
|
208
|
-
[type='button']::-moz-focus-inner,
|
|
209
|
-
[type='reset']::-moz-focus-inner,
|
|
210
|
-
[type='submit']::-moz-focus-inner {
|
|
211
|
-
border-style: none;
|
|
212
|
-
padding: 0;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Restore the focus styles unset by the previous rule.
|
|
217
|
-
*/
|
|
218
|
-
|
|
219
|
-
button:-moz-focusring,
|
|
220
|
-
[type='button']:-moz-focusring,
|
|
221
|
-
[type='reset']:-moz-focusring,
|
|
222
|
-
[type='submit']:-moz-focusring {
|
|
223
|
-
outline: 1px dotted ButtonText;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Correct the padding in Firefox.
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
|
-
fieldset {
|
|
231
|
-
padding: 0.35em 0.75em 0.625em;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* 1. Correct the text wrapping in Edge and IE.
|
|
236
|
-
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
237
|
-
* 3. Remove the padding so developers are not caught out when they zero out
|
|
238
|
-
* `fieldset` elements in all browsers.
|
|
239
|
-
*/
|
|
240
|
-
|
|
241
|
-
legend {
|
|
242
|
-
box-sizing: border-box; /* 1 */
|
|
243
|
-
color: inherit; /* 2 */
|
|
244
|
-
display: table; /* 1 */
|
|
245
|
-
max-width: 100%; /* 1 */
|
|
246
|
-
padding: 0; /* 3 */
|
|
247
|
-
white-space: normal; /* 1 */
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
252
|
-
*/
|
|
253
|
-
|
|
254
|
-
progress {
|
|
255
|
-
vertical-align: baseline;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Remove the default vertical scrollbar in IE 10+.
|
|
260
|
-
*/
|
|
261
|
-
|
|
262
|
-
textarea {
|
|
263
|
-
overflow: auto;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* 1. Add the correct box sizing in IE 10.
|
|
268
|
-
* 2. Remove the padding in IE 10.
|
|
269
|
-
*/
|
|
270
|
-
|
|
271
|
-
[type='checkbox'],
|
|
272
|
-
[type='radio'] {
|
|
273
|
-
box-sizing: border-box; /* 1 */
|
|
274
|
-
padding: 0; /* 2 */
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
[type='number']::-webkit-inner-spin-button,
|
|
282
|
-
[type='number']::-webkit-outer-spin-button {
|
|
283
|
-
height: auto;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* 1. Correct the odd appearance in Chrome and Safari.
|
|
288
|
-
* 2. Correct the outline style in Safari.
|
|
289
|
-
*/
|
|
290
|
-
|
|
291
|
-
[type='search'] {
|
|
292
|
-
-webkit-appearance: textfield; /* 1 */
|
|
293
|
-
outline-offset: -2px; /* 2 */
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Remove the inner padding in Chrome and Safari on macOS.
|
|
298
|
-
*/
|
|
299
|
-
|
|
300
|
-
[type='search']::-webkit-search-decoration {
|
|
301
|
-
-webkit-appearance: none;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
306
|
-
* 2. Change font properties to `inherit` in Safari.
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
::-webkit-file-upload-button {
|
|
310
|
-
-webkit-appearance: button; /* 1 */
|
|
311
|
-
font: inherit; /* 2 */
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/* Interactive
|
|
315
|
-
========================================================================== */
|
|
316
|
-
|
|
317
|
-
/*
|
|
318
|
-
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
details {
|
|
322
|
-
display: block;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/*
|
|
326
|
-
* Add the correct display in all browsers.
|
|
327
|
-
*/
|
|
328
|
-
|
|
329
|
-
summary {
|
|
330
|
-
display: list-item;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/* Misc
|
|
334
|
-
========================================================================== */
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Add the correct display in IE 10+.
|
|
338
|
-
*/
|
|
339
|
-
|
|
340
|
-
template {
|
|
341
|
-
display: none;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Add the correct display in IE 10.
|
|
346
|
-
*/
|
|
347
|
-
|
|
348
|
-
[hidden] {
|
|
349
|
-
display: none;
|
|
350
|
-
}
|