@streamscloud/embeddable 2.0.4 → 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 -28
- 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 -36
- 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 -8
- package/dist/ui/shadow-dom/shadow-host.js +0 -40
- 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,189 +0,0 @@
|
|
|
1
|
-
$input-placeholder-color: var(--input--placeholder--color, #c1c1c1);
|
|
2
|
-
|
|
3
|
-
/*Default margins and paddings are removed*/
|
|
4
|
-
a,
|
|
5
|
-
article,
|
|
6
|
-
aside,
|
|
7
|
-
blockquote,
|
|
8
|
-
body,
|
|
9
|
-
dd,
|
|
10
|
-
div,
|
|
11
|
-
dl,
|
|
12
|
-
dt,
|
|
13
|
-
figcaption,
|
|
14
|
-
figure,
|
|
15
|
-
footer,
|
|
16
|
-
form,
|
|
17
|
-
h1,
|
|
18
|
-
h2,
|
|
19
|
-
h3,
|
|
20
|
-
h4,
|
|
21
|
-
h5,
|
|
22
|
-
h6,
|
|
23
|
-
header,
|
|
24
|
-
html,
|
|
25
|
-
img,
|
|
26
|
-
li,
|
|
27
|
-
nav,
|
|
28
|
-
ol,
|
|
29
|
-
p,
|
|
30
|
-
section,
|
|
31
|
-
table,
|
|
32
|
-
td,
|
|
33
|
-
ul {
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
header,
|
|
39
|
-
section,
|
|
40
|
-
footer,
|
|
41
|
-
aside,
|
|
42
|
-
nav,
|
|
43
|
-
article,
|
|
44
|
-
figure,
|
|
45
|
-
figcaption {
|
|
46
|
-
display: block;
|
|
47
|
-
}
|
|
48
|
-
/*Images are block-level*/
|
|
49
|
-
img,
|
|
50
|
-
svg,
|
|
51
|
-
video,
|
|
52
|
-
canvas,
|
|
53
|
-
audio,
|
|
54
|
-
iframe,
|
|
55
|
-
embed,
|
|
56
|
-
object {
|
|
57
|
-
display: block;
|
|
58
|
-
vertical-align: middle;
|
|
59
|
-
max-width: 100%;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
table {
|
|
63
|
-
border-collapse: collapse;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
img {
|
|
67
|
-
border: none;
|
|
68
|
-
height: auto;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
video {
|
|
72
|
-
outline: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/*Lists are unstyled*/
|
|
76
|
-
ul,
|
|
77
|
-
ol {
|
|
78
|
-
list-style: none;
|
|
79
|
-
margin: 0;
|
|
80
|
-
padding: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
li {
|
|
84
|
-
list-style: inherit;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
input {
|
|
88
|
-
vertical-align: middle;
|
|
89
|
-
min-width: 0;
|
|
90
|
-
&::placeholder {
|
|
91
|
-
color: $input-placeholder-color !important;
|
|
92
|
-
}
|
|
93
|
-
&:-webkit-autofill,
|
|
94
|
-
&:-webkit-autofill:hover,
|
|
95
|
-
&:-webkit-autofill:focus {
|
|
96
|
-
-webkit-background-clip: text;
|
|
97
|
-
}
|
|
98
|
-
/* Chrome, Safari, Edge, Opera */
|
|
99
|
-
&::-webkit-outer-spin-button,
|
|
100
|
-
&::-webkit-inner-spin-button {
|
|
101
|
-
-webkit-appearance: none;
|
|
102
|
-
margin: 0;
|
|
103
|
-
}
|
|
104
|
-
&[type='number'] {
|
|
105
|
-
-moz-appearance: textfield;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
$scrollbar-width: thin;
|
|
110
|
-
$scrollbar-color: var(--custom-scrollbar-color, #7d7d7d);
|
|
111
|
-
$scrollbar-background-color: var(--custom-scrollbar-background, transparent);
|
|
112
|
-
|
|
113
|
-
textarea {
|
|
114
|
-
vertical-align: top;
|
|
115
|
-
resize: vertical;
|
|
116
|
-
scrollbar-color: $scrollbar-color $scrollbar-background-color;
|
|
117
|
-
scrollbar-width: $scrollbar-width;
|
|
118
|
-
&::-webkit-scrollbar {
|
|
119
|
-
@if ($scrollbar-width == thin) {
|
|
120
|
-
width: 3px;
|
|
121
|
-
height: 3px;
|
|
122
|
-
} @else if ($scrollbar-width == none) {
|
|
123
|
-
width: 0;
|
|
124
|
-
height: 0;
|
|
125
|
-
} @else {
|
|
126
|
-
width: 6px;
|
|
127
|
-
height: 6px;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
background: $custom-scrollbar-background;
|
|
131
|
-
visibility: hidden;
|
|
132
|
-
}
|
|
133
|
-
&::-webkit-scrollbar-thumb {
|
|
134
|
-
background: $scrollbar-color;
|
|
135
|
-
}
|
|
136
|
-
&::placeholder {
|
|
137
|
-
color: $input-placeholder-color !important;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
input:focus,
|
|
142
|
-
textarea:focus {
|
|
143
|
-
outline: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
button,
|
|
147
|
-
input[type='submit'] {
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
-webkit-appearance: none;
|
|
150
|
-
background-color: transparent;
|
|
151
|
-
padding: 0;
|
|
152
|
-
text-align: left;
|
|
153
|
-
font: inherit;
|
|
154
|
-
color: inherit;
|
|
155
|
-
box-sizing: border-box;
|
|
156
|
-
&:disabled {
|
|
157
|
-
cursor: default;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
details {
|
|
162
|
-
summary {
|
|
163
|
-
list-style: none;
|
|
164
|
-
&::-webkit-details-marker {
|
|
165
|
-
display: none;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
> * {
|
|
169
|
-
box-sizing: border-box;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
a {
|
|
174
|
-
color: inherit;
|
|
175
|
-
text-decoration: none;
|
|
176
|
-
transition: color linear 0.2s;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
html {
|
|
180
|
-
box-sizing: border-box;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
*,
|
|
184
|
-
*:before,
|
|
185
|
-
*:after {
|
|
186
|
-
box-sizing: inherit;
|
|
187
|
-
border-width: 0;
|
|
188
|
-
border-style: solid;
|
|
189
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ShadowHost } from './shadow-host';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ShadowHost } from './shadow-host';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import normalize from './_normalize.scss?raw';
|
|
2
|
-
import reset from './_reset.scss?raw';
|
|
3
|
-
export class ShadowHost {
|
|
4
|
-
shadowRoot;
|
|
5
|
-
host;
|
|
6
|
-
constructor() {
|
|
7
|
-
const host = document.createElement('div');
|
|
8
|
-
host.style.all = 'unset';
|
|
9
|
-
host.style.position = 'fixed';
|
|
10
|
-
host.style.inset = '0';
|
|
11
|
-
host.style.zIndex = '9999';
|
|
12
|
-
host.style.lineHeight = '1.15';
|
|
13
|
-
host.style.fontFamily = 'system-ui, Avenir, Helvetica, Arial, sans-serif';
|
|
14
|
-
host.style.fontWeight = '400';
|
|
15
|
-
host.style.margin = '0';
|
|
16
|
-
host.style.boxSizing = 'border-box';
|
|
17
|
-
host.style.textAlign = 'initial';
|
|
18
|
-
document.addEventListener('keydown', this.handleEsc);
|
|
19
|
-
this.host = host;
|
|
20
|
-
this.shadowRoot = host.attachShadow({ mode: 'open' });
|
|
21
|
-
const styleElement = document.createElement('style');
|
|
22
|
-
styleElement.textContent = normalize + reset;
|
|
23
|
-
this.shadowRoot.appendChild(styleElement);
|
|
24
|
-
}
|
|
25
|
-
attachToBody() {
|
|
26
|
-
document.getElementsByTagName('html')[0].style.overflow = 'hidden';
|
|
27
|
-
document.body.appendChild(this.host);
|
|
28
|
-
}
|
|
29
|
-
remove() {
|
|
30
|
-
this.host.remove();
|
|
31
|
-
document.getElementsByTagName('html')[0].style.overflow = '';
|
|
32
|
-
document.removeEventListener('keydown', this.handleEsc);
|
|
33
|
-
}
|
|
34
|
-
handleEsc = (event) => {
|
|
35
|
-
if (event.key === 'Escape' || event.key === 'Esc') {
|
|
36
|
-
// Remove the modal from the DOM, for example:
|
|
37
|
-
this.remove();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { ratio, children, left = undefined, right = undefined, on } = $props();
|
|
2
|
-
let containerRef = $state.raw(null);
|
|
3
|
-
let mainSceneRef = $state.raw(null);
|
|
4
|
-
let leftSidebarRef = $state.raw(null);
|
|
5
|
-
let rightSidebarRef = $state.raw(null);
|
|
6
|
-
const notifyDimensionChanged = () => {
|
|
7
|
-
var _a;
|
|
8
|
-
if (!containerRef || !mainSceneRef || !leftSidebarRef || !rightSidebarRef) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
(_a = on === null || on === void 0 ? void 0 : on.dimensionsChanged) === null || _a === void 0 ? void 0 : _a.call(on, {
|
|
12
|
-
mainSceneWidth: mainSceneRef.getBoundingClientRect().width,
|
|
13
|
-
leftSidebarWidth: leftSidebarRef.getBoundingClientRect().width,
|
|
14
|
-
rightSidebarWidth: rightSidebarRef.getBoundingClientRect().width,
|
|
15
|
-
totalWidth: containerRef.getBoundingClientRect().width
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
let computedMainSceneStyle = $state('width: 100%; height: 100%');
|
|
19
|
-
const calcMainSceneSize = () => {
|
|
20
|
-
if (!containerRef) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const { width: parentWidth, height: parentHeight } = containerRef.getBoundingClientRect();
|
|
24
|
-
const parentAspectRatio = parentWidth / parentHeight;
|
|
25
|
-
let width;
|
|
26
|
-
let height;
|
|
27
|
-
let margin;
|
|
28
|
-
if (parentAspectRatio > ratio) {
|
|
29
|
-
// container is wider than main content
|
|
30
|
-
width = `${parentHeight * ratio}px`;
|
|
31
|
-
height = '100%';
|
|
32
|
-
margin = '0 auto';
|
|
33
|
-
}
|
|
34
|
-
else if (parentAspectRatio < ratio) {
|
|
35
|
-
// main content is wider than container
|
|
36
|
-
width = '100%';
|
|
37
|
-
height = `${parentWidth / ratio}px`;
|
|
38
|
-
margin = 'auto 0';
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
// fallback case
|
|
42
|
-
width = '100%';
|
|
43
|
-
height = '100%';
|
|
44
|
-
margin = '0';
|
|
45
|
-
}
|
|
46
|
-
computedMainSceneStyle = `--_spotlight-layout--main--width: ${width}; --_spotlight-layout--main--height: ${height}; --_spotlight-layout--main--margin: ${margin};`;
|
|
47
|
-
};
|
|
48
|
-
$effect(() => {
|
|
49
|
-
let mainSceneSizeCalculationObserver = new ResizeObserver(calcMainSceneSize);
|
|
50
|
-
let dimentionsChangedObserver = new ResizeObserver(notifyDimensionChanged);
|
|
51
|
-
if (containerRef && mainSceneRef && leftSidebarRef && rightSidebarRef) {
|
|
52
|
-
mainSceneSizeCalculationObserver.observe(mainSceneRef);
|
|
53
|
-
dimentionsChangedObserver.observe(containerRef);
|
|
54
|
-
dimentionsChangedObserver.observe(mainSceneRef);
|
|
55
|
-
dimentionsChangedObserver.observe(leftSidebarRef);
|
|
56
|
-
dimentionsChangedObserver.observe(rightSidebarRef);
|
|
57
|
-
}
|
|
58
|
-
return () => {
|
|
59
|
-
mainSceneSizeCalculationObserver.disconnect();
|
|
60
|
-
dimentionsChangedObserver.disconnect();
|
|
61
|
-
};
|
|
62
|
-
});
|
|
63
|
-
export {};
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<div class="spotlight-layout" bind:this={containerRef}>
|
|
67
|
-
<div class="spotlight-layout__sidebar" bind:this={leftSidebarRef}>
|
|
68
|
-
{#if left}
|
|
69
|
-
{@render left()}
|
|
70
|
-
{/if}
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<div class="spotlight-layout__main-scene" bind:this={mainSceneRef} style={computedMainSceneStyle}>
|
|
74
|
-
{@render children()}
|
|
75
|
-
</div>
|
|
76
|
-
<div class="spotlight-layout__sidebar" bind:this={rightSidebarRef}>
|
|
77
|
-
{#if right}
|
|
78
|
-
{@render right()}
|
|
79
|
-
{/if}
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
<style>@keyframes fadeIn {
|
|
84
|
-
0% {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
50% {
|
|
88
|
-
opacity: 0.4;
|
|
89
|
-
}
|
|
90
|
-
100% {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.spotlight-layout {
|
|
95
|
-
width: 100%;
|
|
96
|
-
min-width: 100%;
|
|
97
|
-
max-width: 100%;
|
|
98
|
-
height: 100%;
|
|
99
|
-
min-height: 100%;
|
|
100
|
-
max-height: 100%;
|
|
101
|
-
container-type: inline-size;
|
|
102
|
-
display: flex;
|
|
103
|
-
}
|
|
104
|
-
.spotlight-layout__main-scene {
|
|
105
|
-
width: var(--_spotlight-layout--main--width);
|
|
106
|
-
height: var(--_spotlight-layout--main--height);
|
|
107
|
-
margin: var(--_spotlight-layout--main--margin);
|
|
108
|
-
position: relative;
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
justify-content: center;
|
|
112
|
-
/* Set 'container-type: inline-size;' to reference container*/
|
|
113
|
-
}
|
|
114
|
-
@container (width < 576px) {
|
|
115
|
-
.spotlight-layout__main-scene {
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: 100%;
|
|
118
|
-
margin: 0;
|
|
119
|
-
}
|
|
120
|
-
}</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
type Props = {
|
|
3
|
-
ratio: number;
|
|
4
|
-
children: Snippet;
|
|
5
|
-
left?: Snippet;
|
|
6
|
-
right?: Snippet;
|
|
7
|
-
on?: {
|
|
8
|
-
dimensionsChanged?: (dimensions: {
|
|
9
|
-
mainSceneWidth: number;
|
|
10
|
-
leftSidebarWidth: number;
|
|
11
|
-
rightSidebarWidth: number;
|
|
12
|
-
totalWidth: number;
|
|
13
|
-
}) => void;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
17
|
-
type Cmp = ReturnType<typeof Cmp>;
|
|
18
|
-
export default Cmp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SpotlightLayout } from './cmp.spotlight-layout.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SpotlightLayout } from './cmp.spotlight-layout.svelte';
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<script lang="ts">import { DateFormatOptions, DateHelper } from '../../core/utils/date-helper';
|
|
2
|
-
import { TimeAgoLocalization } from './time-ago-localization.svelte';
|
|
3
|
-
import { onDestroy } from 'svelte';
|
|
4
|
-
let { date = null, thresholdMinutes = 60 * 24 * 2 /* 2 days */, localization: localizationInit } = $props();
|
|
5
|
-
const localization = $derived(new TimeAgoLocalization(localizationInit));
|
|
6
|
-
let timeSpan = $state.raw(null);
|
|
7
|
-
let timeoutId;
|
|
8
|
-
onDestroy(() => {
|
|
9
|
-
disableTimeout();
|
|
10
|
-
});
|
|
11
|
-
const setRelativeTime = (date) => {
|
|
12
|
-
disableTimeout();
|
|
13
|
-
const dateVal = date ? DateHelper.toDate(date) : new Date();
|
|
14
|
-
const setupAbsDate = () => {
|
|
15
|
-
timeSpan = localization.at(dateVal.toLocaleString(localization.locale, dateVal.getFullYear() === new Date().getFullYear() ? DateFormatOptions.dateFormatWithoutYear : DateFormatOptions.dateFormat), dateVal.toLocaleString(localization.locale, DateFormatOptions.timeFormat));
|
|
16
|
-
};
|
|
17
|
-
const diffSeconds = (+new Date() - +dateVal) / 1000;
|
|
18
|
-
if (diffSeconds > thresholdMinutes * 60) {
|
|
19
|
-
return setupAbsDate();
|
|
20
|
-
}
|
|
21
|
-
const secsInHour = 60 * 60; // 3600
|
|
22
|
-
const secsIn2Hours = secsInHour * 2; // 7200
|
|
23
|
-
const secsInDay = 60 * 60 * 24; // 86400
|
|
24
|
-
const secsIn2Days = secsInDay * 2; // 172800
|
|
25
|
-
let refreshIntervalSec;
|
|
26
|
-
if (diffSeconds < 60) {
|
|
27
|
-
timeSpan = localization.justNow;
|
|
28
|
-
refreshIntervalSec = 5;
|
|
29
|
-
}
|
|
30
|
-
else if (diffSeconds < 120) {
|
|
31
|
-
timeSpan = localization.aMinuteAgo;
|
|
32
|
-
refreshIntervalSec = 5;
|
|
33
|
-
}
|
|
34
|
-
else if (diffSeconds < secsInHour) {
|
|
35
|
-
timeSpan = localization.minutesAgo(Math.floor(diffSeconds / 60));
|
|
36
|
-
refreshIntervalSec = 60;
|
|
37
|
-
}
|
|
38
|
-
else if (diffSeconds < secsIn2Hours) {
|
|
39
|
-
timeSpan = localization.anHourAgo;
|
|
40
|
-
refreshIntervalSec = 60;
|
|
41
|
-
}
|
|
42
|
-
else if (diffSeconds < secsInDay) {
|
|
43
|
-
timeSpan = localization.hoursAgo(Math.floor(diffSeconds / secsInHour));
|
|
44
|
-
refreshIntervalSec = 3600;
|
|
45
|
-
}
|
|
46
|
-
else if (diffSeconds < secsIn2Days) {
|
|
47
|
-
timeSpan = localization.yesterday(dateVal.toLocaleString(localization.locale, DateFormatOptions.timeFormat));
|
|
48
|
-
refreshIntervalSec = 3600;
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return setupAbsDate();
|
|
52
|
-
}
|
|
53
|
-
timeoutId = setTimeout(() => setRelativeTime(date), refreshIntervalSec * 1000);
|
|
54
|
-
};
|
|
55
|
-
$effect(() => {
|
|
56
|
-
setRelativeTime(date);
|
|
57
|
-
});
|
|
58
|
-
const disableTimeout = () => {
|
|
59
|
-
if (timeoutId) {
|
|
60
|
-
clearTimeout(timeoutId);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
</script>
|
|
64
|
-
|
|
65
|
-
<span>
|
|
66
|
-
{#if timeSpan}
|
|
67
|
-
{timeSpan}
|
|
68
|
-
{/if}
|
|
69
|
-
</span>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ITimeAgoLocalization } from './time-ago-localization.svelte';
|
|
2
|
-
type Props = {
|
|
3
|
-
date: Date | string | null;
|
|
4
|
-
thresholdMinutes?: number;
|
|
5
|
-
localization?: ITimeAgoLocalization;
|
|
6
|
-
};
|
|
7
|
-
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
8
|
-
type Cmp = ReturnType<typeof Cmp>;
|
|
9
|
-
export default Cmp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TimeAgo } from './cmp.time-ago.svelte';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface ITimeAgoLocalization {
|
|
2
|
-
locale?: string;
|
|
3
|
-
aMinuteAgo?: string;
|
|
4
|
-
anHourAgo?: string;
|
|
5
|
-
justNow?: string;
|
|
6
|
-
at?: (date: string, time: string) => string;
|
|
7
|
-
hoursAgo?: (hours: number) => string;
|
|
8
|
-
minutesAgo?: (minutes: number) => string;
|
|
9
|
-
yesterday?: (time: string) => string;
|
|
10
|
-
}
|
|
11
|
-
export declare class TimeAgoLocalization {
|
|
12
|
-
locale: string;
|
|
13
|
-
aMinuteAgo: string;
|
|
14
|
-
anHourAgo: string;
|
|
15
|
-
justNow: string;
|
|
16
|
-
at: (date: string, time: string) => string;
|
|
17
|
-
hoursAgo: (hours: number) => string;
|
|
18
|
-
minutesAgo: (minutes: number) => string;
|
|
19
|
-
yesterday: (time: string) => string;
|
|
20
|
-
constructor(init?: ITimeAgoLocalization);
|
|
21
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export class TimeAgoLocalization {
|
|
2
|
-
locale = $state('en-US');
|
|
3
|
-
aMinuteAgo = $state('a minute ago');
|
|
4
|
-
anHourAgo = $state('an hour ago');
|
|
5
|
-
justNow = $state('just now');
|
|
6
|
-
at = $state((date, time) => `${date} at ${time}`);
|
|
7
|
-
hoursAgo = $state((hours) => `${hours} hours ago`);
|
|
8
|
-
minutesAgo = $state((minutes) => `${minutes} minutes ago`);
|
|
9
|
-
yesterday = $state((time) => `esterday at ${time}`);
|
|
10
|
-
constructor(init) {
|
|
11
|
-
if (!init) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (init.locale !== undefined) {
|
|
15
|
-
this.locale = init.locale;
|
|
16
|
-
}
|
|
17
|
-
if (init.aMinuteAgo !== undefined) {
|
|
18
|
-
this.aMinuteAgo = init.aMinuteAgo;
|
|
19
|
-
}
|
|
20
|
-
if (init.anHourAgo !== undefined) {
|
|
21
|
-
this.anHourAgo = init.anHourAgo;
|
|
22
|
-
}
|
|
23
|
-
if (init.justNow !== undefined) {
|
|
24
|
-
this.justNow = init.justNow;
|
|
25
|
-
}
|
|
26
|
-
if (init.at !== undefined) {
|
|
27
|
-
this.at = init.at;
|
|
28
|
-
}
|
|
29
|
-
if (init.hoursAgo !== undefined) {
|
|
30
|
-
this.hoursAgo = init.hoursAgo;
|
|
31
|
-
}
|
|
32
|
-
if (init.minutesAgo !== undefined) {
|
|
33
|
-
this.minutesAgo = init.minutesAgo;
|
|
34
|
-
}
|
|
35
|
-
if (init.yesterday !== undefined) {
|
|
36
|
-
this.yesterday = init.yesterday;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|