vviinn-widgets 2.7.2 → 2.8.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/components/Handler.js +270 -0
- package/dist/components/NonEmptyArray.js +5699 -0
- package/dist/components/cropper-handler.js +6 -0
- package/dist/components/cropper-handler2.js +39 -0
- package/dist/{cjs/customized-slots-06ca4007.js → components/customized-slots.js} +3 -6
- package/dist/components/highlight-box.js +6 -0
- package/dist/components/highlight-box2.js +52 -0
- package/dist/components/image-cropper.js +6 -0
- package/dist/components/image-cropper2.js +138 -0
- package/dist/components/imageSearch.store.js +10686 -0
- package/dist/components/index.js +1 -0
- package/dist/{esm/index-443468c7.js → components/index2.js} +2 -2
- package/dist/components/index3.js +130 -0
- package/dist/components/recommendations-sidebar.js +101 -0
- package/dist/components/resizer.worker.js +11 -0
- package/dist/components/search-filters.js +6 -0
- package/dist/components/search-filters2.js +89 -0
- package/dist/components/tracking.worker.js +11 -0
- package/dist/components/vviinn-carousel.js +6 -0
- package/dist/components/vviinn-carousel2.js +235 -0
- package/dist/components/vviinn-detected-object.js +6 -0
- package/dist/components/vviinn-detected-object2.js +67 -0
- package/dist/components/vviinn-empty-results.js +6 -0
- package/dist/components/vviinn-empty-results2.js +35 -0
- package/dist/components/vviinn-error.js +6 -0
- package/dist/components/vviinn-error2.js +28 -0
- package/dist/components/vviinn-example-image.js +6 -0
- package/dist/components/vviinn-example-image2.js +57 -0
- package/dist/components/vviinn-example-images.js +6 -0
- package/dist/components/vviinn-example-images2.js +53 -0
- package/dist/components/vviinn-image-selector.js +6 -0
- package/dist/components/vviinn-image-selector2.js +135 -0
- package/dist/components/vviinn-image-view.js +6 -0
- package/dist/components/vviinn-image-view2.js +95 -0
- package/dist/components/vviinn-modal.js +6 -0
- package/dist/components/vviinn-modal2.js +46 -0
- package/dist/components/vviinn-onboarding-card-1.js +6 -0
- package/dist/components/vviinn-onboarding-card-12.js +34 -0
- package/dist/components/vviinn-onboarding-card-2.js +6 -0
- package/dist/components/vviinn-onboarding-card-22.js +34 -0
- package/dist/components/vviinn-onboarding-card-3.js +6 -0
- package/dist/components/vviinn-onboarding-card-32.js +34 -0
- package/dist/components/vviinn-onboarding.js +6 -0
- package/dist/components/vviinn-onboarding2.js +63 -0
- package/dist/components/vviinn-overlay.js +6 -0
- package/dist/components/vviinn-overlay2.js +28 -0
- package/dist/components/vviinn-overlayed-modal.js +6 -0
- package/dist/components/vviinn-overlayed-modal2.js +45 -0
- package/dist/components/vviinn-preloader.js +6 -0
- package/dist/components/vviinn-preloader2.js +34 -0
- package/dist/components/vviinn-privacy-badge.js +6 -0
- package/dist/components/vviinn-privacy-badge2.js +33 -0
- package/dist/components/vviinn-product-card.js +6 -0
- package/dist/components/vviinn-product-card2.js +216 -0
- package/dist/components/vviinn-recommendations-sidebar.js +6 -0
- package/dist/components/vviinn-server-error.js +6 -0
- package/dist/components/vviinn-server-error2.js +35 -0
- package/dist/components/vviinn-slide.js +6 -0
- package/dist/components/vviinn-slide2.js +28 -0
- package/dist/components/vviinn-slider.js +6 -0
- package/dist/components/vviinn-slider2.js +159 -0
- package/dist/components/vviinn-teaser.js +6 -0
- package/dist/components/vviinn-teaser2.js +33 -0
- package/dist/components/vviinn-vpr-button.js +93 -0
- package/dist/components/vviinn-vpr-vidget.js +3360 -0
- package/dist/components/vviinn-vpr-widget.js +6 -0
- package/dist/components/vviinn-vps-button.js +224 -0
- package/dist/components/vviinn-vps-widget.js +6 -0
- package/dist/components/vviinn-vps-widget2.js +350 -0
- package/dist/components/vviinn-wrong-format.js +6 -0
- package/dist/components/vviinn-wrong-format2.js +35 -0
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/stories/lol.d.ts +2 -0
- package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -1
- package/dist/vviinn-widgets/Array-bdfc75db.js +4870 -0
- package/dist/vviinn-widgets/Handler-edcb46f4.js +1422 -0
- package/dist/vviinn-widgets/NonEmptyArray-947ab7b3.js +4411 -0
- package/dist/{esm/app-globals-865bc7a7.js → vviinn-widgets/app-globals-c0aa8ec3.js} +922 -10
- package/dist/vviinn-widgets/cropper-handler.entry.js +23 -0
- package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
- package/dist/{esm/customized-slots-96902edf.js → vviinn-widgets/customized-slots-5c1c623a.js} +1 -1
- package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
- package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
- package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +33 -70
- package/dist/{cjs/index-df6896e2.js → vviinn-widgets/imageSearch.store-0eed9a5c.js} +11598 -15320
- package/dist/{esm/index-2fdd499d.js → vviinn-widgets/imageSearch.store-b28bddb0.js} +11971 -15281
- package/dist/{collection/components/vviinn-icons/index.js → vviinn-widgets/index-44058ea2.js} +14 -11
- package/dist/vviinn-widgets/index-6c6de682.js +3857 -0
- package/dist/vviinn-widgets/index-de3e14da.js +3010 -0
- package/dist/vviinn-widgets/index.esm.js +1 -0
- package/dist/vviinn-widgets/number-171db649.js +1499 -0
- package/dist/vviinn-widgets/search-filters.entry.js +76 -0
- package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
- package/dist/{collection/components/vviinn-carousel/vviinn-carousel.js → vviinn-widgets/vviinn-carousel.entry.js} +18 -113
- package/dist/vviinn-widgets/vviinn-detected-object.entry.js +54 -0
- package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
- package/dist/vviinn-widgets/vviinn-error.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
- package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
- package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
- package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
- package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
- package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
- package/dist/vviinn-widgets/vviinn-preloader.entry.js +25 -0
- package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
- package/dist/vviinn-widgets/vviinn-product-card.entry.js +188 -0
- package/dist/{esm → vviinn-widgets}/vviinn-recommendations-sidebar.entry.js +2 -2
- package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
- package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
- package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
- package/dist/{esm → vviinn-widgets}/vviinn-vpr-button.entry.js +2 -2
- package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +4588 -0
- package/dist/{esm → vviinn-widgets}/vviinn-vps-button.entry.js +3 -3
- package/dist/vviinn-widgets/vviinn-vps-widget.entry.js +170 -0
- package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
- package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
- package/package.json +8 -2
- package/www/build/p-06c76b5e.js +1 -0
- package/www/build/p-07e16d04.js +15 -0
- package/{dist/vviinn-widgets/p-a6e0710f.entry.js → www/build/p-44bc50de.entry.js} +1 -1
- package/www/build/p-510922c6.js +1 -0
- package/www/build/p-57ce8de3.css +1 -0
- package/www/build/p-591cb193.entry.js +1 -0
- package/www/build/p-6b9d242e.js +1 -0
- package/www/build/p-880bccf1.js +1 -0
- package/www/build/p-b0ada114.entry.js +1 -0
- package/www/build/p-b7be7c70.entry.js +1 -0
- package/{dist/vviinn-widgets/p-166970f3.js → www/build/p-ea8dea5c.js} +1 -1
- package/www/build/vviinn-widgets.css +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +32261 -1
- package/www/sw.js +66 -0
- package/dist/cjs/app-globals-8db3bcbe.js +0 -6912
- package/dist/cjs/cropper-handler_27.cjs.entry.js +0 -1135
- package/dist/cjs/index-3c3ab815.js +0 -1354
- package/dist/cjs/index-f66cd8d1.js +0 -39
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -23
- package/dist/cjs/vviinn-carousel_2.cjs.entry.js +0 -1001
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +0 -65
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +0 -49
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -43
- package/dist/cjs/vviinn-widgets.cjs.js +0 -21
- package/dist/collection/Image/error.js +0 -14
- package/dist/collection/Image/form.js +0 -5
- package/dist/collection/Image/fromFile.js +0 -18
- package/dist/collection/Image/imageToB64.js +0 -9
- package/dist/collection/Image/index.js +0 -0
- package/dist/collection/Image/renderPromise.js +0 -6
- package/dist/collection/Image/resizeImage.js +0 -28
- package/dist/collection/Image/sizing.js +0 -39
- package/dist/collection/Image/toFile.js +0 -17
- package/dist/collection/analytics/GAnalytics.js +0 -32
- package/dist/collection/analytics/GeneralAnalytics.js +0 -9
- package/dist/collection/analytics/GtagAnalytics.js +0 -35
- package/dist/collection/analytics/ProductAnalytics.js +0 -1
- package/dist/collection/campaign/Campaign.js +0 -8
- package/dist/collection/campaign/CampaignService.js +0 -5
- package/dist/collection/campaign/VCSCampaign.js +0 -1
- package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
- package/dist/collection/campaign/VCSCampaignService.js +0 -7
- package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
- package/dist/collection/campaign/VPRCampaignService.js +0 -7
- package/dist/collection/collection-manifest.json +0 -43
- package/dist/collection/components/customized-slots.js +0 -47
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
- package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
- package/dist/collection/components/image-search/search-filters/search-filters.js +0 -125
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -142
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
- package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
- package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -100
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
- package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
- package/dist/collection/components/vviinn-product-card/stories/args.js +0 -73
- package/dist/collection/components/vviinn-product-card/stories/decorators.js +0 -51
- package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +0 -105
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -95
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -462
- package/dist/collection/components/vviinn-slider/arrow.js +0 -11
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +0 -238
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +0 -220
- package/dist/collection/components/vviinn-vpr-button/stories/args.js +0 -213
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +0 -91
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +0 -35
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +0 -179
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +0 -197
- package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +0 -29
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +0 -211
- package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -510
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -79
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +0 -35
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -3
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -195
- package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +0 -37
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -375
- package/dist/collection/cropper/Cropper.js +0 -1
- package/dist/collection/cropper/Handler.js +0 -61
- package/dist/collection/dom/index.js +0 -3
- package/dist/collection/error.js +0 -14
- package/dist/collection/file/index.js +0 -4
- package/dist/collection/geometry/Clip.js +0 -14
- package/dist/collection/geometry/Point.js +0 -32
- package/dist/collection/geometry/Rectangle.js +0 -95
- package/dist/collection/geometry/RectangleAlt.js +0 -1
- package/dist/collection/geometry/Sized.js +0 -8
- package/dist/collection/global.js +0 -19
- package/dist/collection/index.js +0 -1
- package/dist/collection/interfaces/generated.js +0 -5
- package/dist/collection/interfaces/recommendation.js +0 -1
- package/dist/collection/network/apiClient.js +0 -9
- package/dist/collection/network/ion/File.js +0 -14
- package/dist/collection/network/ion/Form.js +0 -64
- package/dist/collection/network/ion/Link.js +0 -8
- package/dist/collection/network/ion/ValueObject.js +0 -23
- package/dist/collection/network/request.js +0 -19
- package/dist/collection/network/utils.js +0 -37
- package/dist/collection/openApi/index.js +0 -27
- package/dist/collection/recommendation/events.js +0 -1
- package/dist/collection/recommendation/recommendation.js +0 -1
- package/dist/collection/searchSession/searchSession.js +0 -31
- package/dist/collection/sentry.js +0 -14
- package/dist/collection/slider/GridMode.js +0 -1
- package/dist/collection/store/file-processing.js +0 -13
- package/dist/collection/store/imageSearch.store.js +0 -133
- package/dist/collection/store/store.js +0 -3
- package/dist/collection/store/tracking.store.js +0 -3
- package/dist/collection/stories/Button.js +0 -21
- package/dist/collection/stories/Button.stories.js +0 -42
- package/dist/collection/stories/Header.js +0 -45
- package/dist/collection/stories/Header.stories.js +0 -15
- package/dist/collection/stories/Page.js +0 -61
- package/dist/collection/stories/Page.stories.js +0 -19
- package/dist/collection/stories/assets/code-brackets.svg +0 -1
- package/dist/collection/stories/assets/colors.svg +0 -1
- package/dist/collection/stories/assets/comments.svg +0 -1
- package/dist/collection/stories/assets/direction.svg +0 -1
- package/dist/collection/stories/assets/flow.svg +0 -1
- package/dist/collection/stories/assets/plugin.svg +0 -1
- package/dist/collection/stories/assets/repo.svg +0 -1
- package/dist/collection/stories/assets/stackalt.svg +0 -1
- package/dist/collection/stories/image-selector.stories.js +0 -6
- package/dist/collection/stories/image-view.stories.js +0 -6
- package/dist/collection/stories/modal.stories.js +0 -12
- package/dist/collection/stories/onboarding.stories.js +0 -11
- package/dist/collection/stories/overlay.stories.js +0 -5
- package/dist/collection/stories/overlayedModal.stories.js +0 -8
- package/dist/collection/stories/privacy-badge.stories.js +0 -11
- package/dist/collection/stories/slider.stories.js +0 -17
- package/dist/collection/stories/teaser.stories.js +0 -5
- package/dist/collection/stories/vps-widget.stories.js +0 -47
- package/dist/collection/stories/vviinn-product.stories.js +0 -19
- package/dist/collection/tracking/event.js +0 -3
- package/dist/collection/tracking/filter.js +0 -5
- package/dist/collection/tracking/index.js +0 -13
- package/dist/collection/tracking/models.js +0 -6
- package/dist/collection/tracking/product.js +0 -18
- package/dist/collection/tracking/search.js +0 -5
- package/dist/collection/tracking/widget.js +0 -10
- package/dist/collection/utils/collections/collectionsUtils.js +0 -5
- package/dist/collection/utils/either.js +0 -3
- package/dist/collection/utils/enum/enumUtils.js +0 -3
- package/dist/collection/utils/event/Events.js +0 -1
- package/dist/collection/utils/number/index.js +0 -4
- package/dist/collection/utils/option/option.js +0 -4
- package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
- package/dist/collection/utils/token/tokenUtils.js +0 -9
- package/dist/esm/cropper-handler_27.entry.js +0 -1105
- package/dist/esm/index-51f71d18.js +0 -1323
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -19
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/vviinn-carousel_2.entry.js +0 -996
- package/dist/esm/vviinn-widgets.js +0 -19
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -12
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/vviinn-widgets/p-2dd35f19.entry.js +0 -1
- package/dist/vviinn-widgets/p-3469b71a.js +0 -1
- package/dist/vviinn-widgets/p-40bea5b5.entry.js +0 -1
- package/dist/vviinn-widgets/p-465d043d.js +0 -15
- package/dist/vviinn-widgets/p-59bd2a99.js +0 -1
- package/dist/vviinn-widgets/p-74ed36af.entry.js +0 -1
- package/dist/vviinn-widgets/p-9def6b8b.entry.js +0 -1
- package/dist/vviinn-widgets/p-cd995515.js +0 -1
- package/www/build/p-166970f3.js +0 -1
- package/www/build/p-2dd35f19.entry.js +0 -1
- package/www/build/p-3469b71a.js +0 -1
- package/www/build/p-40bea5b5.entry.js +0 -1
- package/www/build/p-465d043d.js +0 -15
- package/www/build/p-59bd2a99.js +0 -1
- package/www/build/p-61933b75.js +0 -1
- package/www/build/p-74ed36af.entry.js +0 -1
- package/www/build/p-9def6b8b.entry.js +0 -1
- package/www/build/p-a67898be.css +0 -1
- package/www/build/p-a6e0710f.entry.js +0 -1
- package/www/build/p-cd995515.js +0 -1
- package/www/favicon.ico +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { pipe } from "fp-ts/lib/function";
|
|
2
|
-
import * as E from "fp-ts/lib/Either";
|
|
3
|
-
import { h } from "@stencil/core";
|
|
4
|
-
const FIT_EXPR = /fit\/\d+\//;
|
|
5
|
-
export const containsFit = (url) => {
|
|
6
|
-
return pipe(url.match(FIT_EXPR), E.fromNullable(url), E.map(() => url));
|
|
7
|
-
};
|
|
8
|
-
export const processWidth = (url, size) => {
|
|
9
|
-
return pipe(containsFit(url), E.map((url) => url.replace(FIT_EXPR, `fit/${size}/`)), E.getOrElse(() => url));
|
|
10
|
-
};
|
|
11
|
-
export const Linked = (props, child) => props.deeplink ? (h("a", { class: props.part, part: props.part, href: props.deeplink }, child)) : (child);
|
|
12
|
-
const FormattedPrice = (props) => {
|
|
13
|
-
var _a;
|
|
14
|
-
const locale = props.locale;
|
|
15
|
-
const formattedPrice = new Intl.NumberFormat(locale, {
|
|
16
|
-
minimumFractionDigits: 2,
|
|
17
|
-
}).format(props.price);
|
|
18
|
-
const fullPrice = `${(_a = props.prefix) !== null && _a !== void 0 ? _a : ""} ${formattedPrice} ${props.currency}`;
|
|
19
|
-
return (h("span", { class: "price-amount", part: "price-amount" }, fullPrice));
|
|
20
|
-
};
|
|
21
|
-
export const Price = (props) => {
|
|
22
|
-
const priceEl = (h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.price, locale: props.locale }));
|
|
23
|
-
return (h("span", { class: "price-container", part: "price-container" }, props.salePrice ? ([
|
|
24
|
-
h("span", { class: "price-sale", part: "price-sale" },
|
|
25
|
-
h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.salePrice, locale: props.locale })),
|
|
26
|
-
h("span", { class: "price-outdated", part: "price-outdated" }, priceEl),
|
|
27
|
-
]) : (h("span", { class: "price-regular", part: "price-regular" }, priceEl))));
|
|
28
|
-
};
|
|
29
|
-
export const Image = (props, onLoadEnd = () => undefined) => (h("picture", null,
|
|
30
|
-
h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image", width: props.width, height: props.height, src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
|
|
31
|
-
export const ResponsiveImage = (props, onLoadEnd = () => undefined) => (h("picture", null,
|
|
32
|
-
h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image responsive", src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export const argTypes = {
|
|
2
|
-
imageWidth: {
|
|
3
|
-
name: "Card width (px)",
|
|
4
|
-
},
|
|
5
|
-
imageBorder: {
|
|
6
|
-
name: "Image border",
|
|
7
|
-
},
|
|
8
|
-
imageBorderColor: {
|
|
9
|
-
name: "Image border color",
|
|
10
|
-
control: {
|
|
11
|
-
type: "color",
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
imageBackground: {
|
|
15
|
-
name: "Image background",
|
|
16
|
-
description: "Adding a light-gray filter on top of the image to distinguish it from the rest of the product card content.",
|
|
17
|
-
},
|
|
18
|
-
showBrand: {
|
|
19
|
-
name: "Show brand",
|
|
20
|
-
description: "Using the [title] attribute from product feed.",
|
|
21
|
-
},
|
|
22
|
-
titleLineCount: {
|
|
23
|
-
name: "Number of text lines for Product title",
|
|
24
|
-
options: [1, 2, 3],
|
|
25
|
-
control: {
|
|
26
|
-
type: "select",
|
|
27
|
-
default: 0,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
locale: {
|
|
31
|
-
name: "Locale",
|
|
32
|
-
options: ["de-DE", "en-US"],
|
|
33
|
-
control: {
|
|
34
|
-
type: "select",
|
|
35
|
-
default: 0,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
currencyValue: {
|
|
39
|
-
name: "Currency",
|
|
40
|
-
options: ["$", "€", "£", "¥", "₽"],
|
|
41
|
-
control: {
|
|
42
|
-
type: "select",
|
|
43
|
-
default: 0,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
contentAlignment: {
|
|
47
|
-
name: "Content alignment",
|
|
48
|
-
options: ["Left", "Centered", "Right"],
|
|
49
|
-
mapping: {
|
|
50
|
-
Left: 0,
|
|
51
|
-
Centered: 1,
|
|
52
|
-
Right: 2,
|
|
53
|
-
},
|
|
54
|
-
control: {
|
|
55
|
-
type: "select",
|
|
56
|
-
default: 0,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
primaryTextColor: {
|
|
60
|
-
name: "Primary text color",
|
|
61
|
-
control: {
|
|
62
|
-
type: "color",
|
|
63
|
-
},
|
|
64
|
-
description: "Used where the most user attention is needed: product brand, product title, and price.",
|
|
65
|
-
},
|
|
66
|
-
secondaryTextColor: {
|
|
67
|
-
name: "Secondary text color",
|
|
68
|
-
description: "Used in Old Price",
|
|
69
|
-
control: {
|
|
70
|
-
type: "color",
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export const productDecorator = (story) => `
|
|
2
|
-
<style>
|
|
3
|
-
html, body, #root, #root-inner {
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
#root-inner {
|
|
9
|
-
display: grid;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-items: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.product-wrapper {
|
|
15
|
-
width: 240px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
vviinn-product-card {
|
|
19
|
-
align-items: start;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
vviinn-product-card::part(image) {
|
|
23
|
-
border: 1px solid #DDDDDD;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
vviinn-product-card::part(brand) {
|
|
27
|
-
display: flex;
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
font-size: 16px;
|
|
30
|
-
line-height: 24px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
vviinn-product-card::part(brand),
|
|
34
|
-
vviinn-product-card::part(title) {
|
|
35
|
-
text-align: left;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
vviinn-product-card::part(title) {
|
|
39
|
-
order: 2;
|
|
40
|
-
max-width: unset;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
vviinn-product-card::part(price-container) {
|
|
44
|
-
order: 3;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
</style>
|
|
48
|
-
<div class="product-wrapper">
|
|
49
|
-
${story()}
|
|
50
|
-
</div>
|
|
51
|
-
`;
|
package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { argTypes } from "./args";
|
|
2
|
-
import { productDecorator } from "./decorators";
|
|
3
|
-
export default {
|
|
4
|
-
title: "Elements/Product Card",
|
|
5
|
-
component: "vviinn-product-card",
|
|
6
|
-
decorators: [
|
|
7
|
-
productDecorator
|
|
8
|
-
],
|
|
9
|
-
argTypes
|
|
10
|
-
};
|
|
11
|
-
const showImageBorders = (x, color) => {
|
|
12
|
-
const borderRule = x ? `1px solid ${color}` : "none";
|
|
13
|
-
return `
|
|
14
|
-
vviinn-product-card::part(image) {
|
|
15
|
-
border: ${borderRule};
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
};
|
|
19
|
-
const setupBrandVisibility = (show) => `
|
|
20
|
-
vviinn-product-card::part(brand) {
|
|
21
|
-
display: ${show ? "flex" : "none"};
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
|
-
const setupTitleLineCount = (count) => `
|
|
25
|
-
vviinn-product-card::part(title) {
|
|
26
|
-
-webkit-line-clamp: ${count};
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
const allignementLeft = `
|
|
30
|
-
vviinn-product-card::part(title),
|
|
31
|
-
vviinn-product-card::part(brand),
|
|
32
|
-
vviinn-product-card::part(type),
|
|
33
|
-
vviinn-product-card::part(deeplink),
|
|
34
|
-
vviinn-product-card::part(price-container) {
|
|
35
|
-
align-self: start;
|
|
36
|
-
text-align: left;
|
|
37
|
-
}`;
|
|
38
|
-
const allignementCenter = `
|
|
39
|
-
vviinn-product-card::part(title),
|
|
40
|
-
vviinn-product-card::part(brand),
|
|
41
|
-
vviinn-product-card::part(type),
|
|
42
|
-
vviinn-product-card::part(deeplink),
|
|
43
|
-
vviinn-product-card::part(price-container) {
|
|
44
|
-
align-self: center;
|
|
45
|
-
text-align: center;
|
|
46
|
-
}`;
|
|
47
|
-
const allignementRight = `
|
|
48
|
-
vviinn-product-card::part(title),
|
|
49
|
-
vviinn-product-card::part(brand),
|
|
50
|
-
vviinn-product-card::part(type),
|
|
51
|
-
vviinn-product-card::part(deeplink),
|
|
52
|
-
vviinn-product-card::part(price-container) {
|
|
53
|
-
align-self: end;
|
|
54
|
-
text-align: right;
|
|
55
|
-
}`;
|
|
56
|
-
const allignement = new Map([
|
|
57
|
-
[0, allignementLeft],
|
|
58
|
-
[1, allignementCenter],
|
|
59
|
-
[2, allignementRight],
|
|
60
|
-
]);
|
|
61
|
-
const Template = (args) => `
|
|
62
|
-
<style>
|
|
63
|
-
${allignement.get(args.contentAlignment)}
|
|
64
|
-
${showImageBorders(args.imageBorder, args.imageBorderColor)}
|
|
65
|
-
${setupBrandVisibility(args.showBrand)}
|
|
66
|
-
${setupTitleLineCount(args.titleLineCount)}
|
|
67
|
-
|
|
68
|
-
vviinn-product-card::part(title),
|
|
69
|
-
vviinn-product-card::part(brand),
|
|
70
|
-
vviinn-product-card::part(type),
|
|
71
|
-
vviinn-product-card::part(price-sale),
|
|
72
|
-
vviinn-product-card::part(price-regular) {
|
|
73
|
-
color: ${args.primaryTextColor};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
vviinn-product-card::part(price-outdated) {
|
|
77
|
-
color: ${args.secondaryTextColor};
|
|
78
|
-
}
|
|
79
|
-
</style>
|
|
80
|
-
<vviinn-product-card
|
|
81
|
-
product-title="Couchtisch Rolf Benz 8770 Ronald Schmitt"
|
|
82
|
-
brand="Ronald Schmitt"
|
|
83
|
-
product-type="Couchtische"
|
|
84
|
-
price="3629"
|
|
85
|
-
sale-price="1653"
|
|
86
|
-
image="https://www.moebel-shop.de/media/image/e3/e9/28/0749295-001_600x600.jpg"
|
|
87
|
-
image-width="${args.imageWidth}"
|
|
88
|
-
dimmed-background="${args.imageBackground}"
|
|
89
|
-
locale="${args.locale}"
|
|
90
|
-
currency="${args.currencyValue}"
|
|
91
|
-
></vviinn-product-card>`;
|
|
92
|
-
export const Default = Template.bind({});
|
|
93
|
-
Default.args = {
|
|
94
|
-
imageWidth: 240,
|
|
95
|
-
contentAlignment: "Left",
|
|
96
|
-
imageBorder: true,
|
|
97
|
-
imageBorderColor: "#dddddd",
|
|
98
|
-
imageBackground: false,
|
|
99
|
-
primaryTextColor: "#161616",
|
|
100
|
-
secondaryTextColor: "#757575",
|
|
101
|
-
showBrand: false,
|
|
102
|
-
titleLineCount: 2,
|
|
103
|
-
locale: "en-US",
|
|
104
|
-
currencyValue: "€"
|
|
105
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
align-items: center;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.price-container {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.price-sale,
|
|
15
|
-
.price-regular {
|
|
16
|
-
font-style: normal;
|
|
17
|
-
font-weight: normal;
|
|
18
|
-
font-size: 16px;
|
|
19
|
-
line-height: 24px;
|
|
20
|
-
color: #161616;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.price-outdated {
|
|
24
|
-
font-style: normal;
|
|
25
|
-
font-weight: normal;
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
line-height: 24px;
|
|
28
|
-
color: #757575;
|
|
29
|
-
text-decoration: line-through;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.product-type {
|
|
33
|
-
word-wrap: anywhere;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.image {
|
|
37
|
-
display: grid;
|
|
38
|
-
align-content: center;
|
|
39
|
-
-o-object-position: 50% 50%;
|
|
40
|
-
object-position: 50% 50%;
|
|
41
|
-
-o-object-fit: contain;
|
|
42
|
-
object-fit: contain;
|
|
43
|
-
text-align: center;
|
|
44
|
-
box-sizing: border-box;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
img.responsive {
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: auto;
|
|
50
|
-
aspect-ratio: 1;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.brand,
|
|
54
|
-
.type {
|
|
55
|
-
display: none;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.title {
|
|
59
|
-
-webkit-box-orient: vertical;
|
|
60
|
-
-webkit-line-clamp: 2;
|
|
61
|
-
color: #161616;
|
|
62
|
-
display: -webkit-box;
|
|
63
|
-
font-size: 16px;
|
|
64
|
-
font-style: normal;
|
|
65
|
-
font-weight: 500;
|
|
66
|
-
line-height: 24px;
|
|
67
|
-
margin-bottom: 8px;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.deeplink {
|
|
72
|
-
text-decoration: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.image-link {
|
|
76
|
-
display: contents;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
picture {
|
|
80
|
-
position: relative;
|
|
81
|
-
width: 100%;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:host(.dimmed) picture::before {
|
|
85
|
-
content: "";
|
|
86
|
-
width: 100%;
|
|
87
|
-
height: 100%;
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
background: #f7f7f7;
|
|
90
|
-
display: block;
|
|
91
|
-
top: 0;
|
|
92
|
-
left: 0;
|
|
93
|
-
position: absolute;
|
|
94
|
-
mix-blend-mode: multiply;
|
|
95
|
-
}
|