hr-design-system-handlebars 1.102.5 → 1.103.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/.storybook/main.js +3 -0
- package/.storybook/preview-head.html +3 -0
- package/CHANGELOG.md +24 -0
- package/dist/assets/index.css +12 -3
- package/dist/assets/js/components/dataPolicySettings/dataPolicySettingsDs.feature.js +47 -51
- package/dist/assets/js/components/externalService/externalServiceDs.feature.js +24 -6
- package/dist/assets/js/utils.js +73 -0
- package/dist/views/components/externalService/external_service.hbs +1 -1
- package/dist/views/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/dist/views/components/page/index/page_test_story.hbs +1 -1
- package/dist/views_static/components/externalService/external_service.hbs +1 -1
- package/dist/views_static/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/dist/views_static/components/page/index/page_test_story.hbs +1 -1
- package/package.json +2 -2
- package/src/assets/fixtures/banner/banner.json +7 -7
- package/src/assets/fixtures/button/button.json +142 -0
- package/src/assets/fixtures/button/link_button.json +153 -0
- package/src/assets/fixtures/label/label.json +65 -0
- package/src/assets/fixtures/mediaplayer/mediaplayer_button.json +40 -0
- package/src/assets/fixtures/mediaplayer/mediaplayer_snapshots.json +151 -0
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb.inc.json +8 -10
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb.json +113 -0
- package/src/assets/fixtures/page/metadatabox.inc.json +98 -0
- package/src/assets/fixtures/page/metadatabox.json +89 -16
- package/src/assets/fixtures/page/page.json +5 -4
- package/src/assets/fixtures/pagination/page_pagination.inc.json +157 -0
- package/src/assets/fixtures/pagination/page_pagination.json +251 -88
- package/src/assets/fixtures/site_header/site_header.inc.json +83 -0
- package/src/assets/fixtures/site_header/site_header.json +122 -0
- package/src/assets/fixtures/teaser/components/teaser_byline.json +35 -0
- package/src/assets/fixtures/teaser/components/teaser_headings.json +61 -0
- package/src/assets/fixtures/teaser/components/teaser_text.json +45 -0
- package/src/assets/fixtures/teaser/components/teaser_title.json +38 -0
- package/src/assets/fixtures/teaser/teaser_alternative.json +478 -0
- package/src/assets/fixtures/teaser/teaser_alternative_av.json +465 -0
- package/src/assets/fixtures/teaser/teaser_cluster.json +682 -0
- package/src/assets/fixtures/teaser/teaser_content_nav.json +532 -0
- package/src/assets/fixtures/teaser/teaser_event.json +284 -0
- package/src/assets/fixtures/teaser/teaser_indextext.json +180 -0
- package/src/assets/fixtures/teaser/teaser_podcast.json +75 -2
- package/src/assets/fixtures/teaser/teaser_poster.json +322 -0
- package/src/assets/fixtures/teaser/teaser_stage.json +145 -0
- package/src/assets/fixtures/teaser/teaser_standard.json +371 -0
- package/src/assets/fixtures/teaser/teaser_standard_av.json +285 -0
- package/src/assets/fixtures/teaser/teaser_ticker_alternative.json +156 -0
- package/src/assets/fixtures/teaser/teaser_ticker_standard.json +241 -0
- package/src/assets/fixtures/teaser/teaser_ticker_timeline.json +75 -28
- package/src/assets/js/utils.js +73 -0
- package/src/stories/basics/SnapshotStories.mdx +353 -0
- package/src/stories/views/components/button/button.mdx +3 -5
- package/src/stories/views/components/button/button.stories.js +71 -93
- package/src/stories/views/components/button/fixtures/button.json +1 -0
- package/src/stories/views/components/button/fixtures/link_button.json +1 -0
- package/src/stories/views/components/button/link_button.mdx +3 -5
- package/src/stories/views/components/button/link_button.stories.js +67 -97
- package/src/stories/views/components/dataPolicySettings/dataPolicySettingsDs.feature.js +47 -51
- package/src/stories/views/components/externalService/externalServiceDs.feature.js +24 -6
- package/src/stories/views/components/externalService/external_service.hbs +1 -1
- package/src/stories/views/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/src/stories/views/components/grid/grid.stories.js +3 -0
- package/src/stories/views/components/label/fixtures/label.json +1 -0
- package/src/stories/views/components/label/label.stories.js +31 -3
- package/src/stories/views/components/mediaplayer/fixtures/mediaplayer_button.json +1 -0
- package/src/stories/views/components/mediaplayer/fixtures/mediaplayer_snapshots.json +1 -0
- package/src/stories/views/components/mediaplayer/mediaplayer.stories.js +32 -12
- package/src/stories/views/components/mediaplayer/mediaplayer_button.stories.js +41 -34
- package/src/stories/views/components/navigation/breadcrumb/breadcrumb.stories.js +30 -29
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb.json +1 -0
- package/src/stories/views/components/page/components/metadatabox.stories.js +87 -23
- package/src/stories/views/components/page/fixtures/metadatabox.json +1 -1
- package/src/stories/views/components/page/index/page.data.js +10 -14
- package/src/stories/views/components/page/index/page.stories.js +3 -3
- package/src/stories/views/components/page/index/page_test_story.hbs +1 -1
- package/src/stories/views/components/pagination/fixtures/page_pagination.json +1 -1
- package/src/stories/views/components/pagination/page_pagination.data.js +2 -2
- package/src/stories/views/components/pagination/page_pagination.stories.js +45 -114
- package/src/stories/views/components/podcast/podcast_subscribe_button.stories.js +2 -2
- package/src/stories/views/components/site_header/fixtures/site_header.json +1 -0
- package/src/stories/views/components/site_header/header.stories.js +32 -17
- package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.js +164 -44
- package/src/stories/views/components/teaser/components/fixtures/teaser_byline.json +1 -0
- package/src/stories/views/components/teaser/components/fixtures/teaser_headings.json +1 -0
- package/src/stories/views/components/teaser/components/fixtures/teaser_text.json +1 -0
- package/src/stories/views/components/teaser/components/fixtures/teaser_title.json +1 -0
- package/src/stories/views/components/teaser/components/teaser_byline.stories.js +32 -8
- package/src/stories/views/components/teaser/components/teaser_heading.stories.js +36 -38
- package/src/stories/views/components/teaser/components/teaser_text.stories.js +34 -23
- package/src/stories/views/components/teaser/components/teaser_title.stories.js +35 -23
- package/src/stories/views/components/teaser/content_nav/teaser_content_nav.stories.js +100 -33
- package/src/stories/views/components/teaser/fixtures/teaser_alternative.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_av.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_cluster.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_indextext.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_podcast.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_stage.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_av.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_alternative.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_standard.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_timeline.json +1 -1
- package/src/stories/views/components/teaser/podcast/podcast.stories.js +37 -25
- package/src/stories/views/components/teaser/teaser_alternativ.stories.js +124 -36
- package/src/stories/views/components/teaser/teaser_alternativ_av.stories.js +187 -36
- package/src/stories/views/components/teaser/teaser_indextext.stories.js +87 -18
- package/src/stories/views/components/teaser/teaser_poster.stories.js +87 -12
- package/src/stories/views/components/teaser/teaser_stage.stories.js +69 -12
- package/src/stories/views/components/teaser/teaser_standard.stories.js +182 -48
- package/src/stories/views/components/teaser/teaser_standard_av.stories.js +108 -31
- package/src/stories/views/components/teaser/teaser_standard_event.stories.js +122 -51
- package/src/stories/views/components/teaser/ticker/teaser_ticker_alternativ.stories.js +55 -11
- package/src/stories/views/components/teaser/ticker/teaser_ticker_standard.stories.js +77 -22
- package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.stories.js +35 -13
- package/tailwind.config.js +2 -1
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_2_level.json +0 -15
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_3_level.json +0 -19
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_4_level.json +0 -23
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_5_level.json +0 -27
- package/src/assets/fixtures/page/metadatabox_comments.json +0 -23
- package/src/assets/fixtures/page/metadatabox_more_authors.json +0 -43
- package/src/assets/fixtures/page/metadatabox_more_authors_comments.json +0 -47
- package/src/assets/fixtures/page/metadatabox_one_author.json +0 -34
- package/src/assets/fixtures/page/metadatabox_one_author_comments.json +0 -38
- package/src/assets/fixtures/page/metadatabox_one_author_without_picture.json +0 -24
- package/src/assets/fixtures/site_header/site_header_default.json +0 -26
- package/src/assets/fixtures/site_header/site_header_default_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_submenu.json +0 -17
- package/src/assets/fixtures/site_header/site_header_mit_submenu_as_flyout.json +0 -17
- package/src/assets/fixtures/site_header/site_header_mit_submenu_as_flyout_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_submenu_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_top_topics.json +0 -20
- package/src/assets/fixtures/site_header/site_header_mit_top_topics_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_warnung.json +0 -17
- package/src/assets/fixtures/site_header/site_header_mit_warnung_no_sticky.json +0 -9
- package/src/assets/fixtures/teaser/cluster_teaser_100.json +0 -21
- package/src/assets/fixtures/teaser/cluster_teaser_100_genre.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_100_image.json +0 -50
- package/src/assets/fixtures/teaser/cluster_teaser_33.json +0 -21
- package/src/assets/fixtures/teaser/cluster_teaser_33_genre.json +0 -42
- package/src/assets/fixtures/teaser/cluster_teaser_33_image.json +0 -69
- package/src/assets/fixtures/teaser/cluster_teaser_33_long_title.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_50.json +0 -21
- package/src/assets/fixtures/teaser/cluster_teaser_50_genre.json +0 -42
- package/src/assets/fixtures/teaser/cluster_teaser_50_image.json +0 -69
- package/src/assets/fixtures/teaser/cluster_teaser_Podcast_Channel.json +0 -67
- package/src/assets/fixtures/teaser/cluster_teaser_extern_100.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_extern_33.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_extern_50.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_100.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_33.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_50.json +0 -29
- package/src/assets/fixtures/teaser/stage_teaser.json +0 -4
- package/src/assets/fixtures/teaser/stage_teaser_eventtag.json +0 -48
- package/src/assets/fixtures/teaser/stage_teaser_program.json +0 -55
- package/src/assets/fixtures/teaser/stage_teaser_wide.json +0 -23
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_audio.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_download.json +0 -46
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_featured_content.json +0 -38
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_link.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_live.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_single_event.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_two_events.json +0 -43
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_video.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_audio.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_download.json +0 -46
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_link.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_live.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_video.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif.json +0 -27
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_audio.json +0 -27
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_comments.json +0 -27
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_label.json +0 -38
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_live.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_program.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_video.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_without_teaserimage_50_serif.json +0 -26
- package/src/assets/fixtures/teaser/teaser_comments_without_teaserinfo.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_dropdown_100.json +0 -10
- package/src/assets/fixtures/teaser/teaser_content_nav_dropdown_autosuggest_100.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_dropdown_subgroups.json +0 -215
- package/src/assets/fixtures/teaser/teaser_content_nav_flow_100.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_flow_autosuggest.json +0 -18
- package/src/assets/fixtures/teaser/teaser_content_nav_list_100.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_list_autosuggest.json +0 -18
- package/src/assets/fixtures/teaser/teaser_content_nav_mixed_100.json +0 -187
- package/src/assets/fixtures/teaser/teaser_content_nav_mixed_autosuggest.json +0 -14
- package/src/assets/fixtures/teaser/teaser_indextext_100_accented.json +0 -26
- package/src/assets/fixtures/teaser/teaser_indextext_100_boxed.json +0 -26
- package/src/assets/fixtures/teaser/teaser_indextext_100_highlighted.json +0 -26
- package/src/assets/fixtures/teaser/teaser_indextext_50_accented.json +0 -26
- package/src/assets/fixtures/teaser/teaser_poster_lg.json +0 -39
- package/src/assets/fixtures/teaser/teaser_poster_md.json +0 -39
- package/src/assets/fixtures/teaser/teaser_poster_md_label.json +0 -60
- package/src/assets/fixtures/teaser/teaser_poster_md_label_byline.json +0 -50
- package/src/assets/fixtures/teaser/teaser_standard_100_serif.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_download.json +0 -21
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_program.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_single_event.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_two_events.json +0 -26
- package/src/assets/fixtures/teaser/teaser_standard_25_serif.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_audio.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_audio_livestream.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_link.json +0 -31
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_live.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_podcast.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_video.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_33_long_geotag.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_33_serif.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_multiple_events.json +0 -36
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_single_event.json +0 -18
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_single_event_status.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_two_events.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_50_serif.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_audio.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_audio_livestream.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_download.json +0 -21
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_featured_content.json +0 -17
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_link_two_click.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_live.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_podcast.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_single_event.json +0 -17
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_video.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_66_serif_single_event.json +0 -25
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif.json +0 -4
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif_comments.json +0 -4
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif_label.json +0 -17
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif_link.json +0 -4
- package/src/assets/fixtures/teaser/teaser_standard_without_teaserimage_25_serif.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_without_teaserimage_50_serif.json +0 -14
- package/src/assets/fixtures/teaser/ticker_teaser_alternativ_100.json +0 -54
- package/src/assets/fixtures/teaser/ticker_teaser_alternativ_hero.json +0 -42
- package/src/assets/fixtures/teaser/ticker_teaser_alternativ_hero_audio.json +0 -42
- package/src/assets/fixtures/teaser/ticker_teaser_standard_100.json +0 -37
- package/src/assets/fixtures/teaser/ticker_teaser_standard_25.json +0 -50
- package/src/assets/fixtures/teaser/ticker_teaser_standard_33.json +0 -37
- package/src/assets/fixtures/teaser/ticker_teaser_standard_50.json +0 -37
- package/src/assets/fixtures/teaser/ticker_teaser_standard_hero.json +0 -25
- package/src/assets/fixtures/teaser/ticker_teaser_standard_hero_audio.json +0 -25
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_2_level.json +0 -1
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_3_level.json +0 -1
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_4_level.json +0 -1
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_5_level.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_comments.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_more_authors.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_more_authors_comments.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_one_author.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_one_author_comments.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_one_author_without_picture.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_default.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_default_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_asFlyout_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_as_flyout.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_as_flyout_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung_no_sticky.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_genre.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_image.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_genre.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_image.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_long_title.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_genre.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_image.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_Podcast_Channel.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_eventtag.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_program.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_wide.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_featured_content.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_two_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_comments.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_program.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_without_teaserimage_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_comments_without_teaserinfo.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_dropdown_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_dropdown_autosuggest_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_dropdown_subgroups.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_flow_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_flow_autosuggest.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_list_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_list_autosuggest.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_mixed_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_mixed_autosuggest.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_accented.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_boxed.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_highlighted.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_50_accented.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label_byline.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_program.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_two_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio_livestream.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_podcast.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_long_geotag.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_multiple_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event_status.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_two_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio_livestream.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_featured_content.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_link_two_click.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_podcast.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_66_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_comments.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_without_teaserimage_25_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_without_teaserimage_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_25.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio.json +0 -1
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { userEvent, within, waitFor } from '@storybook/test'
|
|
2
|
-
import
|
|
2
|
+
import snapshotsJson from './fixtures/mediaplayer_snapshots.json'
|
|
3
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
import { delay } from 'underscore'
|
|
5
|
+
const handlebars = require('hrHandlebars')
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const hbsTemplates = []
|
|
8
|
+
hbsTemplates['mediaplayer'] = handlebars.compile(`
|
|
9
|
+
{{> components/mediaplayer/media_player}}
|
|
10
|
+
`)
|
|
11
|
+
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
return hbsTemplates['mediaplayer']({ ...args })
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const snapshotTemplate = (args) => {
|
|
17
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
export default {
|
|
@@ -33,6 +40,7 @@ export default {
|
|
|
33
40
|
controls: {
|
|
34
41
|
sort: 'requiredFirst',
|
|
35
42
|
},
|
|
43
|
+
chromatic: { disableSnapshot: true }
|
|
36
44
|
},
|
|
37
45
|
}
|
|
38
46
|
|
|
@@ -46,7 +54,7 @@ export const Videoplayer = {
|
|
|
46
54
|
</div>`
|
|
47
55
|
},
|
|
48
56
|
],
|
|
49
|
-
args:
|
|
57
|
+
args: snapshotsJson.video.args,
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
export const VideoplayerSettings = {
|
|
@@ -59,7 +67,10 @@ export const VideoplayerSettings = {
|
|
|
59
67
|
</div>`
|
|
60
68
|
},
|
|
61
69
|
],
|
|
62
|
-
args:
|
|
70
|
+
args: snapshotsJson.video.args,
|
|
71
|
+
parameters: {
|
|
72
|
+
chromatic: { disableSnapshot: false },
|
|
73
|
+
},
|
|
63
74
|
play: async ({ canvasElement }) => {
|
|
64
75
|
let canvas = within(canvasElement)
|
|
65
76
|
await userEvent.click(await canvas.findByTitle('Wiedergabe [Leertaste]'))
|
|
@@ -79,7 +90,7 @@ export const VideoplayerLive = {
|
|
|
79
90
|
},
|
|
80
91
|
],
|
|
81
92
|
name: 'Videoplayer Livestream',
|
|
82
|
-
args:
|
|
93
|
+
args: snapshotsJson.video_livestream.args,
|
|
83
94
|
}
|
|
84
95
|
|
|
85
96
|
export const Audioplayer = {
|
|
@@ -92,7 +103,7 @@ export const Audioplayer = {
|
|
|
92
103
|
</div>`
|
|
93
104
|
},
|
|
94
105
|
],
|
|
95
|
-
args:
|
|
106
|
+
args: snapshotsJson.audio.args,
|
|
96
107
|
}
|
|
97
108
|
|
|
98
109
|
export const AudioplayerLivestream = {
|
|
@@ -105,5 +116,14 @@ export const AudioplayerLivestream = {
|
|
|
105
116
|
},
|
|
106
117
|
],
|
|
107
118
|
name: 'Audioplayer Livestream',
|
|
108
|
-
args:
|
|
119
|
+
args: snapshotsJson.audio_event_livestream.args,
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const Snapshot = {
|
|
123
|
+
render: snapshotTemplate.bind({}),
|
|
124
|
+
name: 'Snapshot',
|
|
125
|
+
args: snapshotsJson,
|
|
126
|
+
parameters: {
|
|
127
|
+
chromatic: { disableSnapshot: false },
|
|
128
|
+
}
|
|
109
129
|
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import snapshotsJson from './fixtures/mediaplayer_button.json'
|
|
2
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
1
3
|
const handlebars = require('hrHandlebars')
|
|
2
4
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
6
|
-
let hbsTemplate = handlebars.compile(`
|
|
5
|
+
const hbsTemplates = []
|
|
6
|
+
hbsTemplates['button'] = handlebars.compile(`
|
|
7
7
|
{{> components/mediaplayer/mediaplayer_button _css="!static"}}
|
|
8
8
|
`)
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
const buttonTemplate = (args) => {
|
|
11
|
+
return hbsTemplates['button']({ ...args })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const snapshotTemplate = (args) => {
|
|
15
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
export default {
|
|
@@ -38,6 +44,7 @@ export default {
|
|
|
38
44
|
controls: {
|
|
39
45
|
sort: 'alpha',
|
|
40
46
|
},
|
|
47
|
+
chromatic: { disableSnapshot: true }
|
|
41
48
|
},
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -45,11 +52,7 @@ export const Spielplatz = {
|
|
|
45
52
|
render: buttonTemplate.bind({}),
|
|
46
53
|
name: 'Spielplatz',
|
|
47
54
|
|
|
48
|
-
args:
|
|
49
|
-
_icon: 'play_button',
|
|
50
|
-
_label: 'Video',
|
|
51
|
-
_isLivestream: false,
|
|
52
|
-
},
|
|
55
|
+
args: snapshotsJson['button-video'].args,
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
export const Video = {
|
|
@@ -70,11 +73,7 @@ export const Video = {
|
|
|
70
73
|
},
|
|
71
74
|
},
|
|
72
75
|
|
|
73
|
-
args:
|
|
74
|
-
_icon: 'play_button',
|
|
75
|
-
_label: 'Video',
|
|
76
|
-
_isLivestream: false,
|
|
77
|
-
},
|
|
76
|
+
args: snapshotsJson['button-video'].args,
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
export const Audio = {
|
|
@@ -95,11 +94,7 @@ export const Audio = {
|
|
|
95
94
|
},
|
|
96
95
|
},
|
|
97
96
|
|
|
98
|
-
args:
|
|
99
|
-
_icon: 'audio_button',
|
|
100
|
-
_label: 'Audio',
|
|
101
|
-
_isLivestream: false,
|
|
102
|
-
},
|
|
97
|
+
args: snapshotsJson['button-audio'].args,
|
|
103
98
|
}
|
|
104
99
|
|
|
105
100
|
export const Podcast = {
|
|
@@ -120,11 +115,7 @@ export const Podcast = {
|
|
|
120
115
|
},
|
|
121
116
|
},
|
|
122
117
|
|
|
123
|
-
args:
|
|
124
|
-
_icon: 'podcast-button',
|
|
125
|
-
_label: 'Podcast',
|
|
126
|
-
_isLivestream: false,
|
|
127
|
-
},
|
|
118
|
+
args: snapshotsJson['button-podcast'].args,
|
|
128
119
|
}
|
|
129
120
|
|
|
130
121
|
export const VideoLivestream = {
|
|
@@ -145,11 +136,7 @@ export const VideoLivestream = {
|
|
|
145
136
|
},
|
|
146
137
|
},
|
|
147
138
|
|
|
148
|
-
args:
|
|
149
|
-
_icon: 'play_button',
|
|
150
|
-
_label: 'Video - Livestream',
|
|
151
|
-
_isLivestream: true,
|
|
152
|
-
},
|
|
139
|
+
args: snapshotsJson['button-video-livestream'].args,
|
|
153
140
|
}
|
|
154
141
|
|
|
155
142
|
export const AudioLivestream = {
|
|
@@ -170,9 +157,29 @@ export const AudioLivestream = {
|
|
|
170
157
|
},
|
|
171
158
|
},
|
|
172
159
|
|
|
173
|
-
args:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
160
|
+
args: snapshotsJson['button-audio-livestream'].args
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export const Snapshot = {
|
|
164
|
+
render: snapshotTemplate.bind({}),
|
|
165
|
+
name: 'Snapshot',
|
|
166
|
+
|
|
167
|
+
argTypes: {
|
|
168
|
+
_icon: {
|
|
169
|
+
control: false,
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
_label: {
|
|
173
|
+
control: false,
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
_isLivestream: {
|
|
177
|
+
control: false,
|
|
178
|
+
},
|
|
177
179
|
},
|
|
180
|
+
|
|
181
|
+
args: snapshotsJson,
|
|
182
|
+
parameters: {
|
|
183
|
+
chromatic: { disableSnapshot: false },
|
|
184
|
+
}
|
|
178
185
|
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
2
|
+
import fixtures from './fixtures/breadcrumb.json'
|
|
3
|
+
|
|
4
|
+
const handlebars = require('hrHandlebars')
|
|
5
|
+
const hbsTemplates = []
|
|
6
|
+
hbsTemplates['default'] = handlebars.compile(`
|
|
7
|
+
{{> components/navigation/breadcrumb/breadcrumb}}
|
|
8
|
+
`)
|
|
6
9
|
|
|
7
10
|
const Template = (args) => {
|
|
8
11
|
// You can either use a function to create DOM elements or use a plain html string!
|
|
9
12
|
// return `<div>${label}</div>`;
|
|
10
|
-
return
|
|
13
|
+
return hbsTemplates['default']({ ...args })
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const snapshotTemplate = (args) => {
|
|
17
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
export default {
|
|
@@ -44,6 +51,9 @@ export default {
|
|
|
44
51
|
controls: {
|
|
45
52
|
sort: 'alpha',
|
|
46
53
|
},
|
|
54
|
+
chromatic: {
|
|
55
|
+
disableSnapshot: true
|
|
56
|
+
},
|
|
47
57
|
},
|
|
48
58
|
decorators: [
|
|
49
59
|
(Story) => {
|
|
@@ -60,42 +70,33 @@ export default {
|
|
|
60
70
|
export const breadcrumb2Level = {
|
|
61
71
|
render: Template.bind({}),
|
|
62
72
|
name: 'Breadcrumb 2 Level',
|
|
63
|
-
args:
|
|
64
|
-
_currentPageUrl: '#currentPage',
|
|
65
|
-
_currentPageTitle: 'Kurzer Titel',
|
|
66
|
-
...breadcrumb2LevelData.breadcrumb,
|
|
67
|
-
},
|
|
73
|
+
args: fixtures['2_levels'].args,
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
export const breadcrumb3Level = {
|
|
71
77
|
render: Template.bind({}),
|
|
72
78
|
name: 'Breadcrumb 3 Level',
|
|
73
|
-
args:
|
|
74
|
-
_currentPageUrl: '#currentPage',
|
|
75
|
-
_currentPageTitle:
|
|
76
|
-
'Korruptionsprozess: Verteidigung von Ex-Oberstaatsanwalt plädiert auf höchstens vier Jahre Haft',
|
|
77
|
-
...breadcrumb3LevelData.breadcrumb,
|
|
78
|
-
},
|
|
79
|
+
args: fixtures['3_levels'].args,
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
export const breadcrumb4Level = {
|
|
82
83
|
render: Template.bind({}),
|
|
83
84
|
name: 'Breadcrumb 4 Level',
|
|
84
|
-
args:
|
|
85
|
-
_currentPageUrl: '#currentPage',
|
|
86
|
-
_currentPageTitle:
|
|
87
|
-
'Darmstadt 98 bleibt trotz Enttäuschung cool: "Keinen Stift in der Hose" ',
|
|
88
|
-
...breadcrumb4LevelData.breadcrumb,
|
|
89
|
-
},
|
|
85
|
+
args: fixtures['4_levels'].args,
|
|
90
86
|
}
|
|
91
87
|
|
|
92
88
|
export const breadcrumb5Level = {
|
|
93
89
|
render: Template.bind({}),
|
|
94
90
|
name: 'Breadcrumb 5 Level',
|
|
95
|
-
args:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
91
|
+
args: fixtures['5_levels'].args,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export const Snapshot = {
|
|
95
|
+
render: snapshotTemplate.bind({}),
|
|
96
|
+
name: 'Snapshot',
|
|
97
|
+
|
|
98
|
+
args: fixtures,
|
|
99
|
+
parameters: {
|
|
100
|
+
chromatic: { disableSnapshot: false },
|
|
101
|
+
}
|
|
101
102
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"config":{"template":"default"},"2_levels":{"args":{"showBreadcrumbTitleAlways":false,"breadcrumbSsi":{"breadcrumb":[{"url":"item-1","title":"Start"}]},"_currentPageUrl":"#currentPage","_currentPageTitle":"Kurzer Titel"}},"3_levels":{"args":{"showBreadcrumbTitleAlways":false,"breadcrumbSsi":{"breadcrumb":[{"url":"item-1","title":"Start"},{"url":"panorama","title":"Panorama"}]},"_currentPageUrl":"#currentPage","_currentPageTitle":"Korruptionsprozess: Verteidigung von Ex-Oberstaatsanwalt plädiert auf höchstens vier Jahre Haft"}},"4_levels":{"args":{"showBreadcrumbTitleAlways":false,"breadcrumbSsi":{"breadcrumb":[{"url":"item-1","title":"Start"},{"url":"sport","title":"Sport"},{"url":"darmstadt98","title":"Darmstadt 98"}]},"_currentPageUrl":"#currentPage","_currentPageTitle":"Darmstadt 98 bleibt trotz Enttäuschung cool: \"Keinen Stift in der Hose\""}},"5_levels":{"args":{"showBreadcrumbTitleAlways":false,"breadcrumbSsi":{"breadcrumb":[{"url":"item-1","title":"Start"},{"url":"sport","title":"Sport"},{"url":"fussball","title":"Fußball"},{"url":"eintracht","title":"Eintracht Frankfurt"}]},"_currentPageUrl":"#currentPage","_currentPageTitle":"Verein bestätigt: Eintracht Frankfurt trennt sich im Sommer von Oliver Glasner"}}}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import metadatabox_comments_json from '../fixtures/metadatabox_comments.json'
|
|
4
|
-
import metadatabox_one_author_json from '../fixtures/metadatabox_one_author.json'
|
|
5
|
-
import metadatabox_one_author_without_picture_json from '../fixtures/metadatabox_one_author_without_picture.json'
|
|
6
|
-
import metadatabox_one_author_comments_json from '../fixtures/metadatabox_one_author_comments.json'
|
|
7
|
-
import metadatabox_more_authors_json from '../fixtures/metadatabox_more_authors.json'
|
|
8
|
-
import metadatabox_more_authors_comments_json from '../fixtures/metadatabox_more_authors_comments.json'
|
|
1
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
2
|
+
import fixtures from '../fixtures/metadatabox.json'
|
|
9
3
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
const handlebars = require('hrHandlebars')
|
|
5
|
+
const hbsTemplates = []
|
|
6
|
+
hbsTemplates['default'] = handlebars.compile(`
|
|
7
|
+
{{> components/page/components/metadatabox}}
|
|
8
|
+
`)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
console.log("Args: ", args)
|
|
14
|
+
return hbsTemplates['default']({ ...args })
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const snapshotTemplate = (args) => {
|
|
18
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
export default {
|
|
@@ -21,6 +26,18 @@ export default {
|
|
|
21
26
|
description: 'Datum anzeigen',
|
|
22
27
|
},
|
|
23
28
|
},
|
|
29
|
+
parameters: {
|
|
30
|
+
controls: {
|
|
31
|
+
sort: 'alpha',
|
|
32
|
+
},
|
|
33
|
+
chromatic: {
|
|
34
|
+
disableSnapshot: true
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const Default = {
|
|
40
|
+
render: Template.bind({}),
|
|
24
41
|
decorators: [
|
|
25
42
|
(Story) => {
|
|
26
43
|
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
@@ -28,46 +45,93 @@ export default {
|
|
|
28
45
|
</div>`
|
|
29
46
|
},
|
|
30
47
|
],
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const Default = {
|
|
34
|
-
render: Template.bind({}),
|
|
35
48
|
name: 'Nur Datum',
|
|
36
|
-
args:
|
|
49
|
+
args: fixtures.metadatabox.args,
|
|
37
50
|
}
|
|
38
51
|
|
|
39
52
|
export const WithComments = {
|
|
40
53
|
render: Template.bind({}),
|
|
54
|
+
decorators: [
|
|
55
|
+
(Story) => {
|
|
56
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
57
|
+
${Story()}
|
|
58
|
+
</div>`
|
|
59
|
+
},
|
|
60
|
+
],
|
|
41
61
|
name: 'Datum und Kommentar-Link',
|
|
42
|
-
args:
|
|
62
|
+
args: fixtures.metadatabox_with_comments.args,
|
|
43
63
|
}
|
|
44
64
|
|
|
45
65
|
export const WithOneAuthor = {
|
|
46
66
|
render: Template.bind({}),
|
|
67
|
+
decorators: [
|
|
68
|
+
(Story) => {
|
|
69
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
70
|
+
${Story()}
|
|
71
|
+
</div>`
|
|
72
|
+
},
|
|
73
|
+
],
|
|
47
74
|
name: 'Ein Autor',
|
|
48
|
-
args:
|
|
75
|
+
args: fixtures.metadatabox_with_one_author.args,
|
|
49
76
|
}
|
|
50
77
|
|
|
51
78
|
export const WithOneAuthorWithoutPicture = {
|
|
52
79
|
render: Template.bind({}),
|
|
80
|
+
decorators: [
|
|
81
|
+
(Story) => {
|
|
82
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
83
|
+
${Story()}
|
|
84
|
+
</div>`
|
|
85
|
+
},
|
|
86
|
+
],
|
|
53
87
|
name: 'Ein Autor ohne Bild',
|
|
54
|
-
args:
|
|
88
|
+
args: fixtures.metadatabox_with_one_author_and_without_picture.args,
|
|
55
89
|
}
|
|
56
90
|
|
|
57
91
|
export const WithMoreAuthors = {
|
|
58
92
|
render: Template.bind({}),
|
|
93
|
+
decorators: [
|
|
94
|
+
(Story) => {
|
|
95
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
96
|
+
${Story()}
|
|
97
|
+
</div>`
|
|
98
|
+
},
|
|
99
|
+
],
|
|
59
100
|
name: 'Mehrere Autoren',
|
|
60
|
-
args:
|
|
101
|
+
args: fixtures.metadatabox_with_more_authors.args,
|
|
61
102
|
}
|
|
62
103
|
|
|
63
104
|
export const WithOneAuthorAndComments = {
|
|
64
105
|
render: Template.bind({}),
|
|
106
|
+
decorators: [
|
|
107
|
+
(Story) => {
|
|
108
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
109
|
+
${Story()}
|
|
110
|
+
</div>`
|
|
111
|
+
},
|
|
112
|
+
],
|
|
65
113
|
name: 'Ein Autor und Kommentar-Link',
|
|
66
|
-
args:
|
|
114
|
+
args: fixtures.metadatabox_with_one_author_and_comments.args,
|
|
67
115
|
}
|
|
68
116
|
|
|
69
117
|
export const WithMoreAuthorsAndComments = {
|
|
70
118
|
render: Template.bind({}),
|
|
119
|
+
decorators: [
|
|
120
|
+
(Story) => {
|
|
121
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
122
|
+
${Story()}
|
|
123
|
+
</div>`
|
|
124
|
+
},
|
|
125
|
+
],
|
|
71
126
|
name: 'Mehrere Autoren und Kommentar-Link',
|
|
72
|
-
args:
|
|
127
|
+
args: fixtures.metadatabox_with_more_authors_and_comments.args,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const Snapshot = {
|
|
131
|
+
render: snapshotTemplate.bind({}),
|
|
132
|
+
name: 'Snapshot',
|
|
133
|
+
args: fixtures,
|
|
134
|
+
parameters: {
|
|
135
|
+
chromatic: { disableSnapshot: false },
|
|
136
|
+
}
|
|
73
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_showDate":true,"hasMoreThanOneAuthor":false,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}
|
|
1
|
+
{"config":{"template":"default"},"metadatabox":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasMoreThanOneAuthor":false,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_comments":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasMoreThanOneAuthor":false,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"},"userComments":{"HasOneComment":false,"quantity":"117"}}},"metadatabox_with_one_author":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasOneAuthor":true,"hasMoreThanOneAuthor":false,"hasDwellTime":true,"authorTitle":"Steffen Rebhahn","textAfterAuthor":"(Redaktion hessenschau.de)","authorImage":{"isImage":true,"caption":"Steffen Rebhahn","copyrightWithLinks":"hr","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1_small.jpg","sources":[{"sizes":"50px","srcset":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__xsmall.jpg 260w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__small.jpg 380w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__medium.jpg 480w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1.jpg 720w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__large.jpg 960w"}]}},"authorUrl":"/author-url","webviewAuthorUrl":"webview-author-url","documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_one_author_and_comments":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasOneAuthor":true,"hasMoreThanOneAuthor":false,"hasDwellTime":true,"authorTitle":"Steffen Rebhahn","textAfterAuthor":"(Redaktion hessenschau.de)","authorImage":{"isImage":true,"caption":"Steffen Rebhahn","copyrightWithLinks":"hr","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1_small.jpg","sources":[{"sizes":"50px","srcset":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__xsmall.jpg 260w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__small.jpg 380w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__medium.jpg 480w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1.jpg 720w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__large.jpg 960w"}]}},"authorUrl":"/author-url","webviewAuthorUrl":"webview-author-url","documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"},"userComments":{"HasOneComment":false,"quantity":"117"}}},"metadatabox_with_one_author_and_without_picture":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasOneAuthor":true,"hasMoreThanOneAuthor":false,"hasDwellTime":true,"authorTitle":"Steffen Rebhahn","textAfterAuthor":"(Redaktion hessenschau.de)","authorImage":{},"authorUrl":"/author-url","webviewAuthorUrl":"webview-author-url","documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_more_authors":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasMoreThanOneAuthor":true,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"authorItems":[{"hasProfileLink":false,"from":"Von","textAfterAuthor":"Horst Schlämmer","delimiter":", "},{"hasProfileLink":false,"from":"","textAfterAuthor":"Karl Dall","delimiter":" und "},{"hasProfileLink":true,"from":"","authorName":"Peter Lustig","delimiter":"","link":{"url":"/author-url","isTargetBlank":false}}],"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_more_authors_and_comments":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasMoreThanOneAuthor":true,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"authorItems":[{"hasProfileLink":false,"from":"Von","textAfterAuthor":"Horst Schlämmer","delimiter":", "},{"hasProfileLink":false,"from":"","textAfterAuthor":"Karl Dall","delimiter":" und "},{"hasProfileLink":true,"from":"","authorName":"Peter Lustig","delimiter":"","link":{"url":"/author-url","isTargetBlank":false}}],"socialSharing":{"twitterLink":"/twitterLink-url","facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"},"userComments":{"HasOneComment":false,"quantity":"117"}}}}
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import structuredClone from 'core-js-pure/actual/structured-clone'
|
|
2
|
-
import NavigationData from '../../site_header/fixtures/
|
|
3
|
-
import
|
|
4
|
-
import NavigationData3 from '../../site_header/fixtures/site_header_mit_submenu.json'
|
|
5
|
-
import NavigationData4 from '../../site_header/fixtures/site_header_mit_top_topics.json'
|
|
6
|
-
|
|
7
|
-
import hero_teaser from '../../teaser/fixtures/teaser_standard_hero_serif.json'
|
|
2
|
+
import NavigationData from '../../site_header/fixtures/site_header.json'
|
|
3
|
+
import teaserStandard from '../../teaser/fixtures/teaser_standard.json'
|
|
8
4
|
|
|
9
5
|
import data_story from '../story/fixtures/story.json'
|
|
10
|
-
import data_breadcrumb from '../../navigation/breadcrumb/fixtures/
|
|
6
|
+
import data_breadcrumb from '../../navigation/breadcrumb/fixtures/breadcrumb.json'
|
|
11
7
|
|
|
12
8
|
const NavigationDataWithTeaser = structuredClone(
|
|
13
|
-
Object.assign({}, NavigationData,
|
|
9
|
+
Object.assign({}, NavigationData.default.args, teaserStandard.group_hero.hero.args.logicItem.includeModel)
|
|
14
10
|
)
|
|
15
11
|
const NavigationDataWithTeaser2 = structuredClone(
|
|
16
|
-
Object.assign({},
|
|
12
|
+
Object.assign({}, NavigationData.with_warnings.args, teaserStandard.group_hero.hero.args.logicItem.includeModel)
|
|
17
13
|
)
|
|
18
14
|
const NavigationDataWithTeaser3 = structuredClone(
|
|
19
|
-
Object.assign({},
|
|
15
|
+
Object.assign({}, NavigationData.with_submenu.args, teaserStandard.group_hero.hero.args.logicItem.includeModel)
|
|
20
16
|
)
|
|
21
17
|
const NavigationDataWithTeaser4 = structuredClone(
|
|
22
|
-
Object.assign({},
|
|
18
|
+
Object.assign({}, NavigationData.with_top_topics.args, teaserStandard.group_hero.hero.args.logicItem.includeModel)
|
|
23
19
|
)
|
|
24
20
|
const NavigationDataWithTeaser5 = structuredClone(
|
|
25
|
-
Object.assign({}, NavigationData, data_story)
|
|
21
|
+
Object.assign({}, NavigationData.default.args, data_story)
|
|
26
22
|
)
|
|
27
|
-
const NavigationDataWithBreadcrumb = structuredClone(Object.assign({}, NavigationDataWithTeaser5, data_breadcrumb))
|
|
28
|
-
export { NavigationDataWithTeaser, NavigationDataWithTeaser2, NavigationDataWithTeaser3, NavigationDataWithTeaser4,NavigationDataWithBreadcrumb
|
|
23
|
+
const NavigationDataWithBreadcrumb = structuredClone(Object.assign({}, NavigationDataWithTeaser5, data_breadcrumb['5_levels'].args))
|
|
24
|
+
export { NavigationDataWithTeaser, NavigationDataWithTeaser2, NavigationDataWithTeaser3, NavigationDataWithTeaser4, NavigationDataWithBreadcrumb }
|
|
@@ -26,11 +26,11 @@ const Template2 = (args, { globals: { theme } }) => {
|
|
|
26
26
|
return page_pagination({ brand, ...args })
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const Template3 = (args
|
|
29
|
+
const Template3 = (args) => {
|
|
30
30
|
// You can either use a function to create DOM elements or use a plain html string!
|
|
31
31
|
// return `<div>${label}</div>`;
|
|
32
|
-
|
|
33
|
-
return page_article({
|
|
32
|
+
console.log("Artikel ", { ...args })
|
|
33
|
+
return page_article({ ...args })
|
|
34
34
|
}
|
|
35
35
|
export default {
|
|
36
36
|
title: 'Seiten/Index',
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
{{#unless _webview}}
|
|
23
23
|
{{#> components/banner/header/breadcrumb_wrapper _hasContentNav=this.structureNav.contentNav _hasBannerImage=this.hasBannerImage}}
|
|
24
|
-
{{> components/navigation/breadcrumb/breadcrumb this
|
|
24
|
+
{{> components/navigation/breadcrumb/breadcrumb this _currentPageUrl=this.url _currentPageTitle=this.breadcrumbTitle }}
|
|
25
25
|
{{/components/banner/header/breadcrumb_wrapper }}
|
|
26
26
|
{{/unless}}
|
|
27
27
|
|